~james-page/ubuntu/raring/openvswitch/lts-raring-backport-dkms

« back to all changes in this revision

Viewing changes to .pc/debian-changes-1.4.2+git20120612-9/tests/testsuite

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-08-07 16:00:53 UTC
  • mfrom: (5.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20120807160053-nj4pgmkn6bp8t4md
Tags: 1.4.2+git20120612-9ubuntu1
* Merge from Debian unstable; remaining changes:
  - d/control: Disable openvswitch-datapath-dkms package.
* Dropped changes:
  - d/patches/kernel_3.5_support.patch: Superceded by 
    bug-684057-ovs-ctl-Add-support-for-newer-module-name.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Generated from ../tests/testsuite.at by GNU Autoconf 2.69.
 
3
#
 
4
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
 
5
#
 
6
# This test suite is free software; the Free Software Foundation gives
 
7
# unlimited permission to copy, distribute and modify it.
 
8
#
 
9
# Copyright (c) 2009, 2010, 2011 Nicira Networks.
 
10
#
 
11
# Licensed under the Apache License, Version 2.0 (the "License");
 
12
# you may not use this file except in compliance with the License.
 
13
# You may obtain a copy of the License at:
 
14
#
 
15
#     http://www.apache.org/licenses/LICENSE-2.0
 
16
#
 
17
# Unless required by applicable law or agreed to in writing, software
 
18
# distributed under the License is distributed on an "AS IS" BASIS,
 
19
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
20
# See the License for the specific language governing permissions and
 
21
# limitations under the License.
 
22
## -------------------- ##
 
23
## M4sh Initialization. ##
 
24
## -------------------- ##
 
25
 
 
26
# Be more Bourne compatible
 
27
DUALCASE=1; export DUALCASE # for MKS sh
 
28
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
29
  emulate sh
 
30
  NULLCMD=:
 
31
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
32
  # is contrary to our usage.  Disable this feature.
 
33
  alias -g '${1+"$@"}'='"$@"'
 
34
  setopt NO_GLOB_SUBST
 
35
else
 
36
  case `(set -o) 2>/dev/null` in #(
 
37
  *posix*) :
 
38
    set -o posix ;; #(
 
39
  *) :
 
40
     ;;
 
41
esac
 
42
fi
 
43
 
 
44
 
 
45
as_nl='
 
46
'
 
47
export as_nl
 
48
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
49
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
50
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
51
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
52
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
53
# but without wasting forks for bash or zsh.
 
54
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
55
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
56
  as_echo='print -r --'
 
57
  as_echo_n='print -rn --'
 
58
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
59
  as_echo='printf %s\n'
 
60
  as_echo_n='printf %s'
 
61
else
 
62
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
63
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
64
    as_echo_n='/usr/ucb/echo -n'
 
65
  else
 
66
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
67
    as_echo_n_body='eval
 
68
      arg=$1;
 
69
      case $arg in #(
 
70
      *"$as_nl"*)
 
71
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
72
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
73
      esac;
 
74
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
75
    '
 
76
    export as_echo_n_body
 
77
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
78
  fi
 
79
  export as_echo_body
 
80
  as_echo='sh -c $as_echo_body as_echo'
 
81
fi
 
82
 
 
83
# The user is always right.
 
84
if test "${PATH_SEPARATOR+set}" != set; then
 
85
  PATH_SEPARATOR=:
 
86
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
87
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
88
      PATH_SEPARATOR=';'
 
89
  }
 
90
fi
 
91
 
 
92
 
 
93
# IFS
 
94
# We need space, tab and new line, in precisely that order.  Quoting is
 
95
# there to prevent editors from complaining about space-tab.
 
96
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
97
# splitting by setting IFS to empty value.)
 
98
IFS=" ""        $as_nl"
 
99
 
 
100
# Find who we are.  Look in the path if we contain no directory separator.
 
101
as_myself=
 
102
case $0 in #((
 
103
  *[\\/]* ) as_myself=$0 ;;
 
104
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
105
for as_dir in $PATH
 
106
do
 
107
  IFS=$as_save_IFS
 
108
  test -z "$as_dir" && as_dir=.
 
109
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
110
  done
 
111
IFS=$as_save_IFS
 
112
 
 
113
     ;;
 
114
esac
 
115
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
116
# in which case we are not to be found in the path.
 
117
if test "x$as_myself" = x; then
 
118
  as_myself=$0
 
119
fi
 
120
if test ! -f "$as_myself"; then
 
121
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
122
  exit 1
 
123
fi
 
124
 
 
125
# Unset variables that we do not need and which cause bugs (e.g. in
 
126
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
127
# suppresses any "Segmentation fault" message there.  '((' could
 
128
# trigger a bug in pdksh 5.2.14.
 
129
for as_var in BASH_ENV ENV MAIL MAILPATH
 
130
do eval test x\${$as_var+set} = xset \
 
131
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
132
done
 
133
PS1='$ '
 
134
PS2='> '
 
135
PS4='+ '
 
136
 
 
137
# NLS nuisances.
 
138
LC_ALL=C
 
139
export LC_ALL
 
140
LANGUAGE=C
 
141
export LANGUAGE
 
142
 
 
143
# CDPATH.
 
144
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
145
 
 
146
if test "x$CONFIG_SHELL" = x; then
 
147
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
148
  emulate sh
 
149
  NULLCMD=:
 
150
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
151
  # is contrary to our usage.  Disable this feature.
 
152
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
153
  setopt NO_GLOB_SUBST
 
154
else
 
155
  case \`(set -o) 2>/dev/null\` in #(
 
156
  *posix*) :
 
157
    set -o posix ;; #(
 
158
  *) :
 
159
     ;;
 
160
esac
 
161
fi
 
162
"
 
163
  as_required="as_fn_return () { (exit \$1); }
 
164
as_fn_success () { as_fn_return 0; }
 
165
as_fn_failure () { as_fn_return 1; }
 
166
as_fn_ret_success () { return 0; }
 
167
as_fn_ret_failure () { return 1; }
 
168
 
 
169
exitcode=0
 
170
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
171
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
172
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
173
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
174
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
175
 
 
176
else
 
177
  exitcode=1; echo positional parameters were not saved.
 
178
fi
 
179
test x\$exitcode = x0 || exit 1
 
180
test -x / || exit 1"
 
181
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
182
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
183
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
184
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
185
test \$(( 1 + 1 )) = 2 || exit 1"
 
186
  if (eval "$as_required") 2>/dev/null; then :
 
187
  as_have_required=yes
 
188
else
 
189
  as_have_required=no
 
190
fi
 
191
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
192
 
 
193
else
 
194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
195
as_found=false
 
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
197
do
 
198
  IFS=$as_save_IFS
 
199
  test -z "$as_dir" && as_dir=.
 
200
  as_found=:
 
201
  case $as_dir in #(
 
202
         /*)
 
203
           for as_base in sh bash ksh sh5; do
 
204
             # Try only shells that exist, to save several forks.
 
205
             as_shell=$as_dir/$as_base
 
206
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
207
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$as_shell as_have_required=yes
 
209
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
210
  break 2
 
211
fi
 
212
fi
 
213
           done;;
 
214
       esac
 
215
  as_found=false
 
216
done
 
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
218
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
219
  CONFIG_SHELL=$SHELL as_have_required=yes
 
220
fi; }
 
221
IFS=$as_save_IFS
 
222
 
 
223
 
 
224
      if test "x$CONFIG_SHELL" != x; then :
 
225
  export CONFIG_SHELL
 
226
             # We cannot yet assume a decent shell, so we have to provide a
 
227
# neutralization value for shells without unset; and this also
 
228
# works around shells that cannot unset nonexistent variables.
 
229
# Preserve -v and -x to the replacement shell.
 
230
BASH_ENV=/dev/null
 
231
ENV=/dev/null
 
232
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
233
case $- in # ((((
 
234
  *v*x* | *x*v* ) as_opts=-vx ;;
 
235
  *v* ) as_opts=-v ;;
 
236
  *x* ) as_opts=-x ;;
 
237
  * ) as_opts= ;;
 
238
esac
 
239
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
240
# Admittedly, this is quite paranoid, since all the known shells bail
 
241
# out after a failed `exec'.
 
242
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
243
exit 255
 
244
fi
 
245
 
 
246
    if test x$as_have_required = xno; then :
 
247
  $as_echo "$0: This script requires a shell more modern than all"
 
248
  $as_echo "$0: the shells that I found on your system."
 
249
  if test x${ZSH_VERSION+set} = xset ; then
 
250
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
251
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
252
  else
 
253
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
254
$0: including any error possibly output before this
 
255
$0: message. Then install a modern shell, or manually run
 
256
$0: the script under such a shell if you do have one."
 
257
  fi
 
258
  exit 1
 
259
fi
 
260
fi
 
261
fi
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
export SHELL
 
264
# Unset more variables known to interfere with behavior of common tools.
 
265
CLICOLOR_FORCE= GREP_OPTIONS=
 
266
unset CLICOLOR_FORCE GREP_OPTIONS
 
267
 
 
268
## --------------------- ##
 
269
## M4sh Shell Functions. ##
 
270
## --------------------- ##
 
271
# as_fn_unset VAR
 
272
# ---------------
 
273
# Portably unset VAR.
 
274
as_fn_unset ()
 
275
{
 
276
  { eval $1=; unset $1;}
 
277
}
 
278
as_unset=as_fn_unset
 
279
 
 
280
# as_fn_set_status STATUS
 
281
# -----------------------
 
282
# Set $? to STATUS, without forking.
 
283
as_fn_set_status ()
 
284
{
 
285
  return $1
 
286
} # as_fn_set_status
 
287
 
 
288
# as_fn_exit STATUS
 
289
# -----------------
 
290
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
291
as_fn_exit ()
 
292
{
 
293
  set +e
 
294
  as_fn_set_status $1
 
295
  exit $1
 
296
} # as_fn_exit
 
297
 
 
298
# as_fn_mkdir_p
 
299
# -------------
 
300
# Create "$as_dir" as a directory, including parents if necessary.
 
301
as_fn_mkdir_p ()
 
302
{
 
303
 
 
304
  case $as_dir in #(
 
305
  -*) as_dir=./$as_dir;;
 
306
  esac
 
307
  test -d "$as_dir" || eval $as_mkdir_p || {
 
308
    as_dirs=
 
309
    while :; do
 
310
      case $as_dir in #(
 
311
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
312
      *) as_qdir=$as_dir;;
 
313
      esac
 
314
      as_dirs="'$as_qdir' $as_dirs"
 
315
      as_dir=`$as_dirname -- "$as_dir" ||
 
316
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
317
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
318
         X"$as_dir" : 'X\(//\)$' \| \
 
319
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
320
$as_echo X"$as_dir" |
 
321
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
322
            s//\1/
 
323
            q
 
324
          }
 
325
          /^X\(\/\/\)[^/].*/{
 
326
            s//\1/
 
327
            q
 
328
          }
 
329
          /^X\(\/\/\)$/{
 
330
            s//\1/
 
331
            q
 
332
          }
 
333
          /^X\(\/\).*/{
 
334
            s//\1/
 
335
            q
 
336
          }
 
337
          s/.*/./; q'`
 
338
      test -d "$as_dir" && break
 
339
    done
 
340
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
341
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
342
 
 
343
 
 
344
} # as_fn_mkdir_p
 
345
 
 
346
# as_fn_executable_p FILE
 
347
# -----------------------
 
348
# Test if FILE is an executable regular file.
 
349
as_fn_executable_p ()
 
350
{
 
351
  test -f "$1" && test -x "$1"
 
352
} # as_fn_executable_p
 
353
# as_fn_append VAR VALUE
 
354
# ----------------------
 
355
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
356
# advantage of any shell optimizations that allow amortized linear growth over
 
357
# repeated appends, instead of the typical quadratic growth present in naive
 
358
# implementations.
 
359
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
360
  eval 'as_fn_append ()
 
361
  {
 
362
    eval $1+=\$2
 
363
  }'
 
364
else
 
365
  as_fn_append ()
 
366
  {
 
367
    eval $1=\$$1\$2
 
368
  }
 
369
fi # as_fn_append
 
370
 
 
371
# as_fn_arith ARG...
 
372
# ------------------
 
373
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
374
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
375
# must be portable across $(()) and expr.
 
376
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
377
  eval 'as_fn_arith ()
 
378
  {
 
379
    as_val=$(( $* ))
 
380
  }'
 
381
else
 
382
  as_fn_arith ()
 
383
  {
 
384
    as_val=`expr "$@" || test $? -eq 1`
 
385
  }
 
386
fi # as_fn_arith
 
387
 
 
388
 
 
389
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
390
# ----------------------------------------
 
391
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
392
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
393
# script with STATUS, using 1 if that was 0.
 
394
as_fn_error ()
 
395
{
 
396
  as_status=$1; test $as_status -eq 0 && as_status=1
 
397
  if test "$4"; then
 
398
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
399
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
400
  fi
 
401
  $as_echo "$as_me: error: $2" >&2
 
402
  as_fn_exit $as_status
 
403
} # as_fn_error
 
404
 
 
405
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
406
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
407
  as_expr=expr
 
408
else
 
409
  as_expr=false
 
410
fi
 
411
 
 
412
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
413
  as_basename=basename
 
414
else
 
415
  as_basename=false
 
416
fi
 
417
 
 
418
as_me=`$as_basename -- "$0" ||
 
419
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
420
         X"$0" : 'X\(//\)$' \| \
 
421
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
422
$as_echo X/"$0" |
 
423
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
424
            s//\1/
 
425
            q
 
426
          }
 
427
          /^X\/\(\/\/\)$/{
 
428
            s//\1/
 
429
            q
 
430
          }
 
431
          /^X\/\(\/\).*/{
 
432
            s//\1/
 
433
            q
 
434
          }
 
435
          s/.*/./; q'`
 
436
 
 
437
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
438
  as_dirname=dirname
 
439
else
 
440
  as_dirname=false
 
441
fi
 
442
 
 
443
# Avoid depending upon Character Ranges.
 
444
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
445
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
446
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
447
as_cr_digits='0123456789'
 
448
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
449
 
 
450
 
 
451
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
452
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
453
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
454
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
455
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
456
  sed -n '
 
457
    p
 
458
    /[$]LINENO/=
 
459
  ' <$as_myself |
 
460
    sed '
 
461
      s/[$]LINENO.*/&-/
 
462
      t lineno
 
463
      b
 
464
      :lineno
 
465
      N
 
466
      :loop
 
467
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
468
      t loop
 
469
      s/-\n.*//
 
470
    ' >$as_me.lineno &&
 
471
  chmod +x "$as_me.lineno" ||
 
472
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
473
 
 
474
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
475
  # already done that, so ensure we don't try to do so again and fall
 
476
  # in an infinite loop.  This has already happened in practice.
 
477
  _as_can_reexec=no; export _as_can_reexec
 
478
  # Don't try to exec as it changes $[0], causing all sort of problems
 
479
  # (the dirname of $[0] is not the place where we might find the
 
480
  # original and so on.  Autoconf is especially sensitive to this).
 
481
  . "./$as_me.lineno"
 
482
  # Exit status is that of the last command.
 
483
  exit
 
484
}
 
485
 
 
486
ECHO_C= ECHO_N= ECHO_T=
 
487
case `echo -n x` in #(((((
 
488
-n*)
 
489
  case `echo 'xy\c'` in
 
490
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
491
  xy)  ECHO_C='\c';;
 
492
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
493
       ECHO_T=' ';;
 
494
  esac;;
 
495
*)
 
496
  ECHO_N='-n';;
 
497
esac
 
498
 
 
499
rm -f conf$$ conf$$.exe conf$$.file
 
500
if test -d conf$$.dir; then
 
501
  rm -f conf$$.dir/conf$$.file
 
502
else
 
503
  rm -f conf$$.dir
 
504
  mkdir conf$$.dir 2>/dev/null
 
505
fi
 
506
if (echo >conf$$.file) 2>/dev/null; then
 
507
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
508
    as_ln_s='ln -s'
 
509
    # ... but there are two gotchas:
 
510
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
511
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
512
    # In both cases, we have to default to `cp -pR'.
 
513
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
514
      as_ln_s='cp -pR'
 
515
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
516
    as_ln_s=ln
 
517
  else
 
518
    as_ln_s='cp -pR'
 
519
  fi
 
520
else
 
521
  as_ln_s='cp -pR'
 
522
fi
 
523
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
524
rmdir conf$$.dir 2>/dev/null
 
525
 
 
526
if mkdir -p . 2>/dev/null; then
 
527
  as_mkdir_p='mkdir -p "$as_dir"'
 
528
else
 
529
  test -d ./-p && rmdir ./-p
 
530
  as_mkdir_p=false
 
531
fi
 
532
 
 
533
as_test_x='test -x'
 
534
as_executable_p=as_fn_executable_p
 
535
 
 
536
# Sed expression to map a string onto a valid CPP name.
 
537
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
538
 
 
539
# Sed expression to map a string onto a valid variable name.
 
540
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
541
 
 
542
 
 
543
 
 
544
 
 
545
 
 
546
SHELL=${CONFIG_SHELL-/bin/sh}
 
547
 
 
548
# How were we run?
 
549
at_cli_args="$@"
 
550
 
 
551
 
 
552
# Not all shells have the 'times' builtin; the subshell is needed to make
 
553
# sure we discard the 'times: not found' message from the shell.
 
554
at_times_p=false
 
555
(times) >/dev/null 2>&1 && at_times_p=:
 
556
 
 
557
# CLI Arguments to pass to the debugging scripts.
 
558
at_debug_args=
 
559
# -e sets to true
 
560
at_errexit_p=false
 
561
# Shall we be verbose?  ':' means no, empty means yes.
 
562
at_verbose=:
 
563
at_quiet=
 
564
# Running several jobs in parallel, 0 means as many as test groups.
 
565
at_jobs=1
 
566
at_traceon=:
 
567
at_trace_echo=:
 
568
at_check_filter_trace=:
 
569
 
 
570
# Shall we keep the debug scripts?  Must be `:' when the suite is
 
571
# run by a debug script, so that the script doesn't remove itself.
 
572
at_debug_p=false
 
573
# Display help message?
 
574
at_help_p=false
 
575
# Display the version message?
 
576
at_version_p=false
 
577
# List test groups?
 
578
at_list_p=false
 
579
# --clean
 
580
at_clean=false
 
581
# Test groups to run
 
582
at_groups=
 
583
# Whether to rerun failed tests.
 
584
at_recheck=
 
585
# Whether a write failure occurred
 
586
at_write_fail=0
 
587
 
 
588
# The directory we run the suite in.  Default to . if no -C option.
 
589
at_dir=`pwd`
 
590
# An absolute reference to this testsuite script.
 
591
case $as_myself in
 
592
  [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
 
593
  * ) at_myself=$at_dir/$as_myself ;;
 
594
esac
 
595
# Whether -C is in effect.
 
596
at_change_dir=false
 
597
 
 
598
# Whether to enable colored test results.
 
599
at_color=no
 
600
# List of the tested programs.
 
601
at_tested='ovs-vswitchd
 
602
ovs-vsctl
 
603
perl'
 
604
# As many question marks as there are digits in the last test group number.
 
605
# Used to normalize the test group numbers so that `ls' lists them in
 
606
# numerical order.
 
607
at_format='???'
 
608
# Description of all the test groups.
 
609
at_help_all="1;lacp.at:3;lacp - config;;
 
610
2;lacp.at:39;lacp - config;;
 
611
3;library.at:3;test flow extractor;;
 
612
4;library.at:9;test TCP/IP checksumming;;
 
613
5;library.at:14;test hash functions;;
 
614
6;library.at:18;test hash map;;
 
615
7;library.at:23;test linked lists;;
 
616
8;library.at:28;test packet library;;
 
617
9;library.at:32;test SHA-1;;
 
618
10;library.at:37;test type properties;;
 
619
11;library.at:41;test strtok_r bug fix;;
 
620
12;library.at:46;test byte order conversion;byte order;
 
621
13;library.at:51;test random number generator;;
 
622
14;library.at:103;test log_2_floor;;
 
623
15;library.at:107;test unix socket -- short pathname;;
 
624
16;library.at:116;test unix socket -- long pathname;;
 
625
17;bundle.at:10;hrw bundle link selection;;
 
626
18;bundle.at:80;active_backup bundle link selection;;
 
627
19;bundle.at:151;hrw bundle single link selection;;
 
628
20;bundle.at:159;hrw bundle no link selection;;
 
629
21;bundle.at:166;bundle action missing argument;;
 
630
22;bundle.at:172;bundle action bad fields;;
 
631
23;bundle.at:178;bundle action bad algorithm;;
 
632
24;bundle.at:184;bundle action bad slave type;;
 
633
25;bundle.at:190;bundle action bad slave delimiter;;
 
634
26;classifier.at:2;flow classifier - empty;;
 
635
27;classifier.at:2;flow classifier - destroy null;;
 
636
28;classifier.at:2;flow classifier - single rule;;
 
637
29;classifier.at:2;flow classifier - rule replacement;;
 
638
30;classifier.at:2;flow classifier - many rules in one list;;
 
639
31;classifier.at:2;flow classifier - many rules in one table;;
 
640
32;classifier.at:2;flow classifier - many rules in two tables;;
 
641
33;classifier.at:2;flow classifier - many rules in five tables;;
 
642
34;check-structs.at:11;check struct tail padding;check-structs;
 
643
35;check-structs.at:21;check struct internal alignment;check-structs;
 
644
36;check-structs.at:32;check struct declared size;check-structs;
 
645
37;check-structs.at:44;check wrong struct's declared size;check-structs;
 
646
38;daemon.at:3;daemon;;
 
647
39;daemon.at:22;daemon --monitor;;
 
648
40;daemon.at:66;daemon --detach;;
 
649
41;daemon.at:83;daemon --detach --monitor;;
 
650
42;daemon.at:133;daemon --detach startup errors;;
 
651
43;daemon.at:142;daemon --detach --monitor startup errors;;
 
652
44;daemon.at:153;daemon --detach closes standard fds;;
 
653
45;daemon.at:176;daemon --detach --monitor closes standard fds;;
 
654
46;daemon-py.at:3;daemon - Python;;
 
655
47;daemon-py.at:21;daemon --monitor - Python;;
 
656
48;daemon-py.at:64;daemon --monitor restart exit code - Python;;
 
657
49;daemon-py.at:107;daemon --detach - Python;;
 
658
50;daemon-py.at:123;daemon --detach --monitor - Python;;
 
659
51;daemon-py.at:172;daemon --detach startup errors - Python;;
 
660
52;daemon-py.at:181;daemon --detach --monitor startup errors - Python;;
 
661
53;daemon-py.at:190;daemon --detach closes standard fds - Python;;
 
662
54;daemon-py.at:210;daemon --detach --monitor closes standard fds;;
 
663
55;ofp-print.at:3;empty;ofp-print;
 
664
56;ofp-print.at:9;too short;ofp-print;
 
665
57;ofp-print.at:17;wrong OpenFlow version;ofp-print;
 
666
58;ofp-print.at:25;truncated message;ofp-print;
 
667
59;ofp-print.at:33;message only uses part of buffer;ofp-print;
 
668
60;ofp-print.at:42;OFPT_HELLO - ordinary;ofp-print;
 
669
61;ofp-print.at:49;OFPT_HELLO with extra data;ofp-print;
 
670
62;ofp-print.at:58;OFPT_ERROR with type OFPET_HELLO_FAILED;ofp-print;
 
671
63;ofp-print.at:66;OFPT_ERROR with type OFPET_BAD_REQUEST;ofp-print;
 
672
64;ofp-print.at:75;OFPT_ERROR with code NXBRC_NXM_BAD_PREREQ;ofp-print;
 
673
65;ofp-print.at:83;OFPT_ECHO_REQUEST, empty payload;ofp-print;
 
674
66;ofp-print.at:90;OFPT_ECHO_REQUEST, 5-byte payload;ofp-print;
 
675
67;ofp-print.at:98;OFPT_ECHO_REPLY, empty payload;ofp-print;
 
676
68;ofp-print.at:105;OFPT_ECHO_REPLY, 5-byte payload;ofp-print;
 
677
69;ofp-print.at:113;OFPT_FEATURES_REQUEST;ofp-print;
 
678
70;ofp-print.at:120;OFPT_FEATURES_REPLY;ofp-print;
 
679
71;ofp-print.at:165;OFPT_FEATURES_REPLY cut off mid-port;ofp-print;
 
680
72;ofp-print.at:204;OFPT_GET_CONFIG_REQUEST;ofp-print;
 
681
73;ofp-print.at:211;OFPT_GET_CONFIG_REPLY, most common form;ofp-print;
 
682
74;ofp-print.at:219;OFPT_GET_CONFIG_REPLY, frags and miss_send_len;ofp-print;
 
683
75;ofp-print.at:226;OFPT_PACKET_IN;ofp-print;
 
684
76;ofp-print.at:245;OFPT_FLOW_REMOVED;ofp-print;
 
685
77;ofp-print.at:259;OFPT_PORT_STATUS;ofp-print;
 
686
78;ofp-print.at:276;OFPT_PACKET_OUT;ofp-print;
 
687
79;ofp-print.at:291;OFPT_FLOW_MOD - low verbosity;ofp-print;
 
688
80;ofp-print.at:309;OFPT_FLOW_MOD - high verbosity;ofp-print;
 
689
81;ofp-print.at:326;OFPT_PORT_MOD;ofp-print;
 
690
82;ofp-print.at:337;OFPST_DESC request;ofp-print ofpt_stats_request;
 
691
83;ofp-print.at:344;OFPST_DESC reply;ofp-print ofpt_stats_reply;
 
692
84;ofp-print.at:424;OFPST_FLOW request;ofp-print ofpt_stats_request;
 
693
85;ofp-print.at:436;OFPST_FLOW reply;ofp-print ofpt_stats_reply;
 
694
86;ofp-print.at:480;OFPST_AGGREGATE request;ofp-print ofpt_stats_request;
 
695
87;ofp-print.at:492;OFPST_AGGREGATE reply;ofp-print ofpt_stats_reply;
 
696
88;ofp-print.at:503;OFPST_TABLE request;ofp-print ofpt_stats_request;
 
697
89;ofp-print.at:510;OFPST_TABLE reply;ofp-print ofpt_stats_reply;
 
698
90;ofp-print.at:525;OFPST_PORT request;ofp-print ofpt_stats_request;
 
699
91;ofp-print.at:535;OFPST_PORT reply;ofp-print ofpt_stats_reply;
 
700
92;ofp-print.at:578;OFPST_QUEUE request;ofp-print ofpt_stats_request;
 
701
93;ofp-print.at:588;OFPST_QUEUE reply;ofp-print ofpt_stats_reply;
 
702
94;ofp-print.at:615;OFPT_BARRIER_REQUEST;ofp-print;
 
703
95;ofp-print.at:622;OFPT_BARRIER_REPLY;ofp-print;
 
704
96;ofp-print.at:629;NXT_ROLE_REQUEST;ofp-print;
 
705
97;ofp-print.at:639;NXT_ROLE_REPLY;ofp-print;
 
706
98;ofp-print.at:649;NXT_SET_FLOW_FORMAT;ofp-print;
 
707
99;ofp-print.at:660;NXT_FLOW_MOD, low verbosity;ofp-print;
 
708
100;ofp-print.at:675;NXT_FLOW_MOD, high verbosity;ofp-print;
 
709
101;ofp-print.at:689;NXT_FLOW_REMOVED;ofp-print;
 
710
102;ofp-print.at:705;NXT_FLOW_MOD_TABLE_ID;ofp-print;
 
711
103;ofp-print.at:715;NXST_FLOW request;ofp-print ofpt_stats_request;
 
712
104;ofp-print.at:725;NXST_FLOW reply;ofp-print ofpt_stats_reply;
 
713
105;ofp-print.at:879;NXST_AGGREGATE request;ofp-print ofpt_stats_request;
 
714
106;ofp-print.at:889;NXST_AGGREGATE reply;ofp-print ofpt_stats_reply;
 
715
107;ovs-ofctl.at:3;ovs-ofctl parse-flows;;
 
716
108;ovs-ofctl.at:64;ovs-ofctl -F nxm parse-flows;;
 
717
109;ovs-ofctl.at:123;ovs-ofctl -F nxm -mmm parse-flows;;
 
718
110;ovs-ofctl.at:178;ovs-ofctl parse-nx-match;nx-match;
 
719
111;ovs-ofctl.at:562;ovs-ofctl -F option and tun_id;;
 
720
112;ovs-ofctl.at:572;ovs-ofctl -F option with flow_mods;;
 
721
113;ovs-ofctl.at:584;ovs-ofctl dump-flows honors -F option;;
 
722
114;ovs-ofctl.at:596;ovs-ofctl dump-flows rejects bad -F option;;
 
723
115;ovs-ofctl.at:605;ovs-ofctl add-flow reports non-normalized flows;;
 
724
116;odp.at:3;OVS datapath parsing and formatting - valid forms;;
 
725
117;multipath.at:10;modulo_n multipath link selection;;
 
726
118;multipath.at:78;hash_threshold multipath link selection;;
 
727
119;multipath.at:146;hrw multipath link selection;;
 
728
120;multipath.at:214;iter_hash multipath link selection;;
 
729
121;multipath.at:282;multipath action missing argument;;
 
730
122;multipath.at:288;multipath action bad fields;;
 
731
123;multipath.at:294;multipath action bad algorithm;;
 
732
124;multipath.at:300;multipath action bad n_links;;
 
733
125;multipath.at:306;multipath action destination too narrow;;
 
734
126;autopath.at:3;autopath basic;;
 
735
127;autopath.at:12;autopath action missing argument;;
 
736
128;autopath.at:18;autopath action bad port;;
 
737
129;autopath.at:24;autopath action destination too narrow;;
 
738
130;learn.at:3;learning action - parsing and formatting;;
 
739
131;learn.at:16;learning action - examples;;
 
740
132;learn.at:33;learning action - satisfied prerequisites;;
 
741
133;learn.at:46;learning action - invalid prerequisites;;
 
742
134;learn.at:57;learning action - standard VLAN+MAC learning;;
 
743
135;vconn.at:20;unix vconn - refuse connection;;
 
744
136;vconn.at:20;unix vconn - accept then close;;
 
745
137;vconn.at:20;unix vconn - read hello;;
 
746
138;vconn.at:20;unix vconn - send plain hello;;
 
747
139;vconn.at:20;unix vconn - send long hello;;
 
748
140;vconn.at:20;unix vconn - send echo hello;;
 
749
141;vconn.at:20;unix vconn - send short hello;;
 
750
142;vconn.at:20;unix vconn - send invalid version hello;;
 
751
143;vconn.at:21;tcp vconn - refuse connection;;
 
752
144;vconn.at:21;tcp vconn - accept then close;;
 
753
145;vconn.at:21;tcp vconn - read hello;;
 
754
146;vconn.at:21;tcp vconn - send plain hello;;
 
755
147;vconn.at:21;tcp vconn - send long hello;;
 
756
148;vconn.at:21;tcp vconn - send echo hello;;
 
757
149;vconn.at:21;tcp vconn - send short hello;;
 
758
150;vconn.at:21;tcp vconn - send invalid version hello;;
 
759
151;vconn.at:22;ssl vconn - refuse connection;;
 
760
152;vconn.at:22;ssl vconn - accept then close;;
 
761
153;vconn.at:22;ssl vconn - read hello;;
 
762
154;vconn.at:22;ssl vconn - send plain hello;;
 
763
155;vconn.at:22;ssl vconn - send long hello;;
 
764
156;vconn.at:22;ssl vconn - send echo hello;;
 
765
157;vconn.at:22;ssl vconn - send short hello;;
 
766
158;vconn.at:22;ssl vconn - send invalid version hello;;
 
767
159;file_name.at:12;components of \"/usr/lib\" are \"/usr\", \"lib\";dir_name base_name;
 
768
160;file_name.at:13;components of \"/usr/\" are \"/\", \"usr\";dir_name base_name;
 
769
161;file_name.at:14;components of \"usr\" are \".\", \"usr\";dir_name base_name;
 
770
162;file_name.at:15;components of \"/\" are \"/\", \"/\";dir_name base_name;
 
771
163;file_name.at:16;components of \".\" are \".\", \".\";dir_name base_name;
 
772
164;file_name.at:17;components of \"..\" are \".\", \"..\";dir_name base_name;
 
773
165;file_name.at:18;components of \"//\" are \"//\", \"//\";dir_name base_name;
 
774
166;file_name.at:19;components of \"//foo\" are \"//\", \"foo\";dir_name base_name;
 
775
167;file_name.at:20;components of \"\" are \".\", \".\";dir_name base_name;
 
776
168;file_name.at:23;components of \"dir/file\" are \"dir\", \"file\";dir_name base_name;
 
777
169;file_name.at:24;components of \"dir/file/\" are \"dir\", \"file\";dir_name base_name;
 
778
170;file_name.at:25;components of \"dir/file//\" are \"dir\", \"file\";dir_name base_name;
 
779
171;file_name.at:26;components of \"///foo\" are \"/\", \"foo\";dir_name base_name;
 
780
172;aes128.at:10;wikipedia test vector 1;aes128;
 
781
173;aes128.at:16;wikipedia test vector 2;aes128;
 
782
174;aes128.at:22;NIST KAT ECBKeySbox128e vector 0;aes128;
 
783
175;aes128.at:28;NIST KAT ECBKeySbox128e vector 1;aes128;
 
784
176;aes128.at:34;NIST KAT ECBKeySbox128e vector 2;aes128;
 
785
177;aes128.at:40;NIST KAT ECBKeySbox128e vector 3;aes128;
 
786
178;aes128.at:46;NIST KAT ECBKeySbox128e vector 4;aes128;
 
787
179;aes128.at:52;NIST KAT ECBKeySbox128e vector 5;aes128;
 
788
180;aes128.at:58;NIST KAT ECBKeySbox128e vector 6;aes128;
 
789
181;aes128.at:64;NIST KAT ECBKeySbox128e vector 7;aes128;
 
790
182;aes128.at:70;NIST KAT ECBKeySbox128e vector 8;aes128;
 
791
183;aes128.at:76;NIST KAT ECBKeySbox128e vector 9;aes128;
 
792
184;aes128.at:82;NIST KAT ECBKeySbox128e vector 10;aes128;
 
793
185;aes128.at:88;NIST KAT ECBKeySbox128e vector 11;aes128;
 
794
186;aes128.at:94;NIST KAT ECBKeySbox128e vector 12;aes128;
 
795
187;aes128.at:100;NIST KAT ECBKeySbox128e vector 13;aes128;
 
796
188;aes128.at:106;NIST KAT ECBKeySbox128e vector 14;aes128;
 
797
189;aes128.at:112;NIST KAT ECBKeySbox128e vector 15;aes128;
 
798
190;aes128.at:118;NIST KAT ECBKeySbox128e vector 16;aes128;
 
799
191;aes128.at:124;NIST KAT ECBKeySbox128e vector 17;aes128;
 
800
192;aes128.at:130;NIST KAT ECBKeySbox128e vector 18;aes128;
 
801
193;aes128.at:136;NIST KAT ECBKeySbox128e vector 19;aes128;
 
802
194;aes128.at:142;NIST KAT ECBKeySbox128e vector 20;aes128;
 
803
195;uuid.at:17;UUID generation;uuid;
 
804
196;uuid.at:27;UUID parsing and serialization;uuid;
 
805
197;uuid.at:34;UUID generation, parsing, serialization;uuid;
 
806
198;json.at:65;empty array - C;json positive;
 
807
199;json.at:65;empty array - Python;json positive python;
 
808
200;json.at:66;single-element array - C;json positive;
 
809
201;json.at:66;single-element array - Python;json positive python;
 
810
202;json.at:67;2-element array - C;json positive;
 
811
203;json.at:67;2-element array - Python;json positive python;
 
812
204;json.at:68;many-element array - C;json positive;
 
813
205;json.at:68;many-element array - Python;json positive python;
 
814
206;json.at:71;missing comma - C;json negative;
 
815
207;json.at:71;missing comma - Python;json negative python;
 
816
208;json.at:73;trailing comma not allowed - C;json negative;
 
817
209;json.at:73;trailing comma not allowed - Python;json negative python;
 
818
210;json.at:75;doubled comma not allowed - C;json negative;
 
819
211;json.at:75;doubled comma not allowed - Python;json negative python;
 
820
212;json.at:80;empty string - C;json positive;
 
821
213;json.at:80;empty string - Python;json positive python;
 
822
214;json.at:81;1-character strings - C;json positive;
 
823
215;json.at:81;1-character strings - Python;json positive python;
 
824
216;json.at:84;escape sequences - C;json positive;
 
825
217;json.at:84;escape sequences - Python;json positive python;
 
826
218;json.at:87;Unicode escape sequences - C;json positive;
 
827
219;json.at:87;Unicode escape sequences - Python;json positive python;
 
828
220;json.at:90;surrogate pairs - C;json positive;
 
829
221;json.at:93;surrogate pairs - Python;json positive python;
 
830
222;json.at:96;a string by itself is not valid JSON - C;json negative;
 
831
223;json.at:96;a string by itself is not valid JSON - Python;json negative python;
 
832
224;json.at:98;end of line in quoted string - C;json negative;
 
833
225;json.at:98;end of line in quoted string - Python;json negative python;
 
834
226;json.at:102;formfeed in quoted string - C;json negative;
 
835
227;json.at:102;formfeed in quoted string - Python;json negative python;
 
836
228;json.at:105;bad escape in quoted string - C;json negative;
 
837
229;json.at:105;bad escape in quoted string - Python;json negative python;
 
838
230;json.at:108;\\u must be followed by 4 hex digits (1) - C;json negative;
 
839
231;json.at:108;\\u must be followed by 4 hex digits (1) - Python;json negative python;
 
840
232;json.at:111;\\u must be followed by 4 hex digits (2) - C;json negative;
 
841
233;json.at:111;\\u must be followed by 4 hex digits (2) - Python;json negative python;
 
842
234;json.at:114;isolated leading surrogate not allowed - C;json negative;
 
843
235;json.at:114;isolated leading surrogate not allowed - Python;json negative python;
 
844
236;json.at:117;surrogatess must paired properly - C;json negative;
 
845
237;json.at:117;surrogatess must paired properly - Python;json negative python;
 
846
238;json.at:120;null bytes not allowed - C;json negative;
 
847
239;json.at:120;null bytes not allowed - Python;json negative python;
 
848
240;json.at:124;end of input in quoted string - C;json negative;
 
849
241;json.at:131;end of input in quoted string - Python;json negative python;
 
850
242;json.at:142;empty object - C;json positive;
 
851
243;json.at:142;empty object - Python;json positive python;
 
852
244;json.at:143;simple object - C;json positive;
 
853
245;json.at:143;simple object - Python;json positive python;
 
854
246;json.at:146;bad value - C;json negative;
 
855
247;json.at:146;bad value - Python;json negative python;
 
856
248;json.at:148;missing colon - C;json negative;
 
857
249;json.at:148;missing colon - Python;json negative python;
 
858
250;json.at:150;missing comma - C;json negative;
 
859
251;json.at:150;missing comma - Python;json negative python;
 
860
252;json.at:152;trailing comma not allowed - C;json negative;
 
861
253;json.at:152;trailing comma not allowed - Python;json negative python;
 
862
254;json.at:155;doubled comma not allowed - C;json negative;
 
863
255;json.at:155;doubled comma not allowed - Python;json negative python;
 
864
256;json.at:158;names must be strings - C;json negative;
 
865
257;json.at:158;names must be strings - Python;json negative python;
 
866
258;json.at:164;null - C;json positive;
 
867
259;json.at:164;null - Python;json positive python;
 
868
260;json.at:165;false - C;json positive;
 
869
261;json.at:165;false - Python;json positive python;
 
870
262;json.at:166;true - C;json positive;
 
871
263;json.at:166;true - Python;json positive python;
 
872
264;json.at:167;a literal by itself is not valid JSON - C;json negative;
 
873
265;json.at:167;a literal by itself is not valid JSON - Python;json negative python;
 
874
266;json.at:169;nullify is invalid - C;json negative;
 
875
267;json.at:169;nullify is invalid - Python;json negative python;
 
876
268;json.at:171;nubs is invalid - C;json negative;
 
877
269;json.at:171;nubs is invalid - Python;json negative python;
 
878
270;json.at:173;xxx is invalid - C;json negative;
 
879
271;json.at:173;xxx is invalid - Python;json negative python;
 
880
272;json.at:178;integers expressed as reals - C;json positive;
 
881
273;json.at:178;integers expressed as reals - Python;json positive python;
 
882
274;json.at:188;large integers - C;json positive;
 
883
275;json.at:188;large integers - Python;json positive python;
 
884
276;json.at:192;large integers expressed as reals - C;json positive;
 
885
277;json.at:192;large integers expressed as reals - Python;json positive python;
 
886
278;json.at:200;large integers that overflow to reals - C;json positive;
 
887
279;json.at:200;large integers that overflow to reals - Python;json positive python;
 
888
280;json.at:205;negative zero - C;json positive;
 
889
281;json.at:205;negative zero - Python;json positive python;
 
890
282;json.at:210;reals - C;json positive;
 
891
283;json.at:210;reals - Python;json positive python;
 
892
284;json.at:214;scientific notation - C;json positive;
 
893
285;json.at:214;scientific notation - Python;json positive python;
 
894
286;json.at:221;+/- DBL_MAX - C;json positive;
 
895
287;json.at:221;+/- DBL_MAX - Python;json positive python;
 
896
288;json.at:226;negative reals - C;json positive;
 
897
289;json.at:226;negative reals - Python;json positive python;
 
898
290;json.at:230;negative scientific notation - C;json positive;
 
899
291;json.at:230;negative scientific notation - Python;json positive python;
 
900
292;json.at:234;1e-9999 underflows to 0 - C;json positive;
 
901
293;json.at:234;1e-9999 underflows to 0 - Python;json positive python;
 
902
294;json.at:238;a number by itself is not valid JSON - C;json negative;
 
903
295;json.at:238;a number by itself is not valid JSON - Python;json negative python;
 
904
296;json.at:240;leading zeros not allowed - C;json negative;
 
905
297;json.at:240;leading zeros not allowed - Python;json negative python;
 
906
298;json.at:244;1e9999 is too big - C;json negative;
 
907
299;json.at:244;1e9999 is too big - Python;json negative python;
 
908
300;json.at:248;exponent bigger than INT_MAX - C;json negative;
 
909
301;json.at:248;exponent bigger than INT_MAX - Python;json negative python;
 
910
302;json.at:252;decimal point must be followed by digit - C;json negative;
 
911
303;json.at:252;decimal point must be followed by digit - Python;json negative python;
 
912
304;json.at:256;exponent must contain at least one digit (1) - C;json negative;
 
913
305;json.at:256;exponent must contain at least one digit (1) - Python;json negative python;
 
914
306;json.at:260;exponent must contain at least one digit (2) - C;json negative;
 
915
307;json.at:260;exponent must contain at least one digit (2) - Python;json negative python;
 
916
308;json.at:264;exponent must contain at least one digit (3) - C;json negative;
 
917
309;json.at:264;exponent must contain at least one digit (3) - Python;json negative python;
 
918
310;json.at:271;RFC 4267 object example - C;json positive;
 
919
311;json.at:271;RFC 4267 object example - Python;json positive python;
 
920
312;json.at:287;RFC 4267 array example - C;json positive;
 
921
313;json.at:287;RFC 4267 array example - Python;json positive python;
 
922
314;json.at:314;trailing garbage - C;json negative;
 
923
315;json.at:314;trailing garbage - Python;json negative python;
 
924
316;json.at:316;formfeeds are not valid white space - C;json negative;
 
925
317;json.at:316;formfeeds are not valid white space - Python;json negative python;
 
926
318;json.at:318;';' is not a valid token - C;json negative;
 
927
319;json.at:318;';' is not a valid token - Python;json negative python;
 
928
320;json.at:320;arrays nesting too deep - C;json negative;
 
929
321;json.at:320;arrays nesting too deep - Python;json negative python;
 
930
322;json.at:324;objects nesting too deep - C;json negative;
 
931
323;json.at:324;objects nesting too deep - Python;json negative python;
 
932
324;json.at:329;input may not be empty;json negative;
 
933
325;json.at:337;multiple adjacent objects - C;json positive;
 
934
326;json.at:337;multiple adjacent objects - Python;json positive python;
 
935
327;json.at:342;multiple space-separated objects - C;json positive;
 
936
328;json.at:342;multiple space-separated objects - Python;json positive python;
 
937
329;json.at:347;multiple objects on separate lines - C;json positive;
 
938
330;json.at:347;multiple objects on separate lines - Python;json positive python;
 
939
331;json.at:354;multiple objects and arrays - C;json positive;
 
940
332;json.at:354;multiple objects and arrays - Python;json positive python;
 
941
333;json.at:360;garbage between multiple objects - C;json negative;
 
942
334;json.at:360;garbage between multiple objects - Python;json negative python;
 
943
335;json.at:364;garbage after multiple objects - C;json negative;
 
944
336;json.at:364;garbage after multiple objects - Python;json negative python;
 
945
337;jsonrpc.at:3;JSON-RPC request and successful reply;;
 
946
338;jsonrpc.at:14;JSON-RPC request and error reply;;
 
947
339;jsonrpc.at:25;JSON-RPC notification;;
 
948
340;jsonrpc-py.at:3;JSON-RPC request and successful reply - Python;;
 
949
341;jsonrpc-py.at:15;JSON-RPC request and error reply - Python;;
 
950
342;jsonrpc-py.at:27;JSON-RPC notification - Python;;
 
951
343;timeval.at:3;check that time advances;timeval;
 
952
344;timeval.at:8;check that time advances after daemonize();timeval;
 
953
345;lockfile.at:11;lock and unlock;lockfile;
 
954
346;lockfile.at:12;lock and unlock twice;lockfile;
 
955
347;lockfile.at:13;lock blocks same process;lockfile;
 
956
348;lockfile.at:14;lock blocks same process twice;lockfile;
 
957
349;lockfile.at:15;lock blocks other process;lockfile;
 
958
350;lockfile.at:16;lock twice blocks other process;lockfile;
 
959
351;lockfile.at:17;lock and unlock allows other process;lockfile;
 
960
352;lockfile.at:18;lock timeout gets the lock;lockfile;
 
961
353;lockfile.at:19;lock timeout runs out;lockfile;
 
962
354;lockfile.at:20;lock multiple;lockfile;
 
963
355;reconnect.at:26;nothing happens if not enabled - C;reconnect;
 
964
356;reconnect.at:26;nothing happens if not enabled - Python;reconnect;
 
965
357;reconnect.at:37;quick connect, idle disconnect - C;reconnect;
 
966
358;reconnect.at:37;quick connect, idle disconnect - Python;reconnect;
 
967
359;reconnect.at:93;slow connect, idle disconnect - C;reconnect;
 
968
360;reconnect.at:93;slow connect, idle disconnect - Python;reconnect;
 
969
361;reconnect.at:163;connect backs off - C;reconnect;
 
970
362;reconnect.at:163;connect backs off - Python;reconnect;
 
971
363;reconnect.at:362;connections with no data preserve backoff - C;reconnect;
 
972
364;reconnect.at:362;connections with no data preserve backoff - Python;reconnect;
 
973
365;reconnect.at:526;brief connection preserves backoff - C;reconnect;
 
974
366;reconnect.at:526;brief connection preserves backoff - Python;reconnect;
 
975
367;reconnect.at:657;brief connection with data preserves backoff - C;reconnect;
 
976
368;reconnect.at:657;brief connection with data preserves backoff - Python;reconnect;
 
977
369;reconnect.at:818;long connection resets backoff - C;reconnect;
 
978
370;reconnect.at:818;long connection resets backoff - Python;reconnect;
 
979
371;reconnect.at:979;connection attempt fails quickly - C;reconnect;
 
980
372;reconnect.at:979;connection attempt fails quickly - Python;reconnect;
 
981
373;reconnect.at:1034;max-tries of 1 honored - C;reconnect;
 
982
374;reconnect.at:1034;max-tries of 1 honored - Python;reconnect;
 
983
375;reconnect.at:1094;max-tries of 0 honored - C;reconnect;
 
984
376;reconnect.at:1094;max-tries of 0 honored - Python;reconnect;
 
985
377;reconnect.at:1110;passive mode - C;reconnect;
 
986
378;reconnect.at:1110;passive mode - Python;reconnect;
 
987
379;ofproto.at:3;ofproto - echo request;;
 
988
380;ofproto.at:9;ofproto - feature request, config request;;
 
989
381;ofproto.at:26;ofproto - port stats;;
 
990
382;ofproto.at:39;ofproto - queue stats;;
 
991
383;ofproto.at:48;ofproto - mod-port;;
 
992
384;ofproto.at:73;ofproto - basic flow_mod commands (NXM);;
 
993
385;ofproto.at:95;ofproto - basic flow_mod commands (OpenFlow 1.0);;
 
994
386;ofproto-dpif.at:3;ofproto-dpif - resubmit;;
 
995
387;ofproto-dpif.at:21;ofproto-dpif - registers;;
 
996
388;ofproto-dpif.at:46;ofproto-dpif - output;;
 
997
389;ofproto-dpif.at:65;ofproto-dpif - DSCP;;
 
998
390;ofproto-dpif.at:92;ofproto-dpif - output/flood flags;;
 
999
391;ofproto-dpif.at:161;ofproto-dpif - set_tunnel;;
 
1000
392;ofproto-dpif.at:179;ofproto-dpif - VLAN handling;;
 
1001
393;ofproto-dpif.at:328;ofproto-dpif - fragment handling;;
 
1002
394;ofproto-dpif.at:368;ofproto-dpif - exit;;
 
1003
395;ofproto-dpif.at:392;ofproto-dpif - mirroring, select_all;;
 
1004
396;ofproto-dpif.at:439;ofproto-dpif - mirroring, select_src;;
 
1005
397;ofproto-dpif.at:484;ofproto-dpif - mirroring, OFPP_NONE ingress port;;
 
1006
398;ofproto-dpif.at:518;ofproto-dpif - mirroring, select_dst;;
 
1007
399;ofproto-dpif.at:565;ofproto-dpif - mirroring, select_vlan;;
 
1008
400;ofproto-dpif.at:617;ofproto-dpif - mirroring, output_port;;
 
1009
401;ofproto-dpif.at:664;ofproto-dpif - mirroring, output_vlan;;
 
1010
402;ofproto-dpif.at:724;ofproto-dpif - MAC learning;;
 
1011
403;ovsdb-log.at:3;create empty, reread;ovsdb log;
 
1012
404;ovsdb-log.at:18;write one, reread;ovsdb log;
 
1013
405;ovsdb-log.at:35;check that create fails if file exists;ovsdb log;
 
1014
406;ovsdb-log.at:55;write one, reread;ovsdb log;
 
1015
407;ovsdb-log.at:76;write one, reread, append;ovsdb log;
 
1016
408;ovsdb-log.at:106;write, reread one, overwrite;ovsdb log;
 
1017
409;ovsdb-log.at:132;write, add corrupted data, read;ovsdb log;
 
1018
410;ovsdb-log.at:154;write, add corrupted data, read, overwrite;ovsdb log;
 
1019
411;ovsdb-log.at:186;write, corrupt some data, read, overwrite;ovsdb log;
 
1020
412;ovsdb-log.at:219;write, truncate file, read, overwrite;ovsdb log;
 
1021
413;ovsdb-log.at:252;write bad JSON, read, overwrite;ovsdb log;
 
1022
414;ovsdb-types.at:3;integer - C;ovsdb positive;
 
1023
415;ovsdb-types.at:3;integer - Python;ovsdb positive python;
 
1024
416;ovsdb-types.at:5;real - C;ovsdb positive;
 
1025
417;ovsdb-types.at:5;real - Python;ovsdb positive python;
 
1026
418;ovsdb-types.at:7;boolean - C;ovsdb positive;
 
1027
419;ovsdb-types.at:7;boolean - Python;ovsdb positive python;
 
1028
420;ovsdb-types.at:9;string - C;ovsdb positive;
 
1029
421;ovsdb-types.at:9;string - Python;ovsdb positive python;
 
1030
422;ovsdb-types.at:11;uuid - C;ovsdb positive;
 
1031
423;ovsdb-types.at:11;uuid - Python;ovsdb positive python;
 
1032
424;ovsdb-types.at:13;void is not a valid atomic-type - C;ovsdb negative;
 
1033
425;ovsdb-types.at:13;void is not a valid atomic-type - Python;ovsdb negative;
 
1034
426;ovsdb-types.at:18;integer enum - C;ovsdb positive;
 
1035
427;ovsdb-types.at:18;integer enum - Python;ovsdb positive python;
 
1036
428;ovsdb-types.at:21;integer >= 5 - C;ovsdb positive;
 
1037
429;ovsdb-types.at:21;integer >= 5 - Python;ovsdb positive python;
 
1038
430;ovsdb-types.at:24;integer <= 7 - C;ovsdb positive;
 
1039
431;ovsdb-types.at:24;integer <= 7 - Python;ovsdb positive python;
 
1040
432;ovsdb-types.at:27;integer between -5 and 10 - C;ovsdb positive;
 
1041
433;ovsdb-types.at:27;integer between -5 and 10 - Python;ovsdb positive python;
 
1042
434;ovsdb-types.at:30;integer max may not be less than min - C;ovsdb negative;
 
1043
435;ovsdb-types.at:30;integer max may not be less than min - Python;ovsdb negative;
 
1044
436;ovsdb-types.at:34;real enum - C;ovsdb positive;
 
1045
437;ovsdb-types.at:34;real enum - Python;ovsdb positive python;
 
1046
438;ovsdb-types.at:37;real >= -1.5 - C;ovsdb positive;
 
1047
439;ovsdb-types.at:37;real >= -1.5 - Python;ovsdb positive python;
 
1048
440;ovsdb-types.at:40;real <= 1e5 - C;ovsdb positive;
 
1049
441;ovsdb-types.at:40;real <= 1e5 - Python;ovsdb positive python;
 
1050
442;ovsdb-types.at:43;real between -2.5 and 3.75 - C;ovsdb positive;
 
1051
443;ovsdb-types.at:43;real between -2.5 and 3.75 - Python;ovsdb positive python;
 
1052
444;ovsdb-types.at:46;real max may not be less than min - C;ovsdb negative;
 
1053
445;ovsdb-types.at:46;real max may not be less than min - Python;ovsdb negative;
 
1054
446;ovsdb-types.at:50;boolean - C;ovsdb positive;
 
1055
447;ovsdb-types.at:50;boolean - Python;ovsdb positive python;
 
1056
448;ovsdb-types.at:52;boolean enum - C;ovsdb positive;
 
1057
449;ovsdb-types.at:52;boolean enum - Python;ovsdb positive python;
 
1058
450;ovsdb-types.at:56;string enum - C;ovsdb positive;
 
1059
451;ovsdb-types.at:56;string enum - Python;ovsdb positive python;
 
1060
452;ovsdb-types.at:59;string minLength - C;ovsdb positive;
 
1061
453;ovsdb-types.at:59;string minLength - Python;ovsdb positive python;
 
1062
454;ovsdb-types.at:62;string maxLength - C;ovsdb positive;
 
1063
455;ovsdb-types.at:62;string maxLength - Python;ovsdb positive python;
 
1064
456;ovsdb-types.at:65;string minLength and maxLength - C;ovsdb positive;
 
1065
457;ovsdb-types.at:65;string minLength and maxLength - Python;ovsdb positive python;
 
1066
458;ovsdb-types.at:68;maxLength must not be less than minLength - C;ovsdb negative;
 
1067
459;ovsdb-types.at:68;maxLength must not be less than minLength - Python;ovsdb negative;
 
1068
460;ovsdb-types.at:71;maxLength must not be negative - C;ovsdb negative;
 
1069
461;ovsdb-types.at:71;maxLength must not be negative - Python;ovsdb negative;
 
1070
462;ovsdb-types.at:75;uuid enum - C;ovsdb positive;
 
1071
463;ovsdb-types.at:75;uuid enum - Python;ovsdb positive python;
 
1072
464;ovsdb-types.at:78;uuid refTable - C;ovsdb positive;
 
1073
465;ovsdb-types.at:78;uuid refTable - Python;ovsdb positive python;
 
1074
466;ovsdb-types.at:81;uuid refTable must be valid id - C;ovsdb negative;
 
1075
467;ovsdb-types.at:81;uuid refTable must be valid id - Python;ovsdb negative;
 
1076
468;ovsdb-types.at:85;void is not a valid base-type - C;ovsdb negative;
 
1077
469;ovsdb-types.at:85;void is not a valid base-type - Python;ovsdb negative;
 
1078
470;ovsdb-types.at:87;\"type\" member must be present - C;ovsdb negative;
 
1079
471;ovsdb-types.at:87;\"type\" member must be present - Python;ovsdb negative;
 
1080
472;ovsdb-types.at:92;simple integer - C;ovsdb positive;
 
1081
473;ovsdb-types.at:92;simple integer - Python;ovsdb positive python;
 
1082
474;ovsdb-types.at:94;simple real - C;ovsdb positive;
 
1083
475;ovsdb-types.at:94;simple real - Python;ovsdb positive python;
 
1084
476;ovsdb-types.at:96;simple boolean - C;ovsdb positive;
 
1085
477;ovsdb-types.at:96;simple boolean - Python;ovsdb positive python;
 
1086
478;ovsdb-types.at:98;simple string - C;ovsdb positive;
 
1087
479;ovsdb-types.at:98;simple string - Python;ovsdb positive python;
 
1088
480;ovsdb-types.at:100;simple uuid - C;ovsdb positive;
 
1089
481;ovsdb-types.at:100;simple uuid - Python;ovsdb positive python;
 
1090
482;ovsdb-types.at:102;integer in object - C;ovsdb positive;
 
1091
483;ovsdb-types.at:102;integer in object - Python;ovsdb positive python;
 
1092
484;ovsdb-types.at:104;real in object with explicit min and max - C;ovsdb positive;
 
1093
485;ovsdb-types.at:104;real in object with explicit min and max - Python;ovsdb positive python;
 
1094
486;ovsdb-types.at:107;key type is required - C;ovsdb negative;
 
1095
487;ovsdb-types.at:107;key type is required - Python;ovsdb negative;
 
1096
488;ovsdb-types.at:109;void is not a valid type - C;ovsdb negative;
 
1097
489;ovsdb-types.at:109;void is not a valid type - Python;ovsdb negative;
 
1098
490;ovsdb-types.at:114;optional boolean - C;ovsdb positive set;
 
1099
491;ovsdb-types.at:114;optional boolean - Python;ovsdb positive python set;
 
1100
492;ovsdb-types.at:118;set of 1 to 3 uuids - C;ovsdb positive;
 
1101
493;ovsdb-types.at:118;set of 1 to 3 uuids - Python;ovsdb positive python;
 
1102
494;ovsdb-types.at:121;set of 0 to 3 strings - C;ovsdb positive;
 
1103
495;ovsdb-types.at:121;set of 0 to 3 strings - Python;ovsdb positive python;
 
1104
496;ovsdb-types.at:124;set of 0 or more integers - C;ovsdb positive;
 
1105
497;ovsdb-types.at:124;set of 0 or more integers - Python;ovsdb positive python;
 
1106
498;ovsdb-types.at:127;set of 1 or more reals - C;ovsdb positive;
 
1107
499;ovsdb-types.at:127;set of 1 or more reals - Python;ovsdb positive python;
 
1108
500;ovsdb-types.at:131;set max cannot be less than min - C;ovsdb negative;
 
1109
501;ovsdb-types.at:131;set max cannot be less than min - Python;ovsdb negative;
 
1110
502;ovsdb-types.at:134;set max cannot be negative - C;ovsdb negative;
 
1111
503;ovsdb-types.at:134;set max cannot be negative - Python;ovsdb negative;
 
1112
504;ovsdb-types.at:137;set min cannot be negative - C;ovsdb negative;
 
1113
505;ovsdb-types.at:137;set min cannot be negative - Python;ovsdb negative;
 
1114
506;ovsdb-types.at:140;set min cannot be greater than one - C;ovsdb negative;
 
1115
507;ovsdb-types.at:140;set min cannot be greater than one - Python;ovsdb negative;
 
1116
508;ovsdb-types.at:146;map of 1 integer to boolean - C;ovsdb positive;
 
1117
509;ovsdb-types.at:146;map of 1 integer to boolean - Python;ovsdb positive python;
 
1118
510;ovsdb-types.at:149;map of 1 boolean to integer, explicit min and max - C;ovsdb positive;
 
1119
511;ovsdb-types.at:149;map of 1 boolean to integer, explicit min and max - Python;ovsdb positive python;
 
1120
512;ovsdb-types.at:152;map of 1 to 5 uuid to real - C;ovsdb positive;
 
1121
513;ovsdb-types.at:152;map of 1 to 5 uuid to real - Python;ovsdb positive python;
 
1122
514;ovsdb-types.at:155;map of 0 to 10 string to uuid - C;ovsdb positive;
 
1123
515;ovsdb-types.at:155;map of 0 to 10 string to uuid - Python;ovsdb positive python;
 
1124
516;ovsdb-types.at:158;map of 1 to 20 real to string - C;ovsdb positive;
 
1125
517;ovsdb-types.at:158;map of 1 to 20 real to string - Python;ovsdb positive python;
 
1126
518;ovsdb-types.at:161;map of 0 or more string to real - C;ovsdb positive;
 
1127
519;ovsdb-types.at:161;map of 0 or more string to real - Python;ovsdb positive python;
 
1128
520;ovsdb-types.at:165;map key type is required - C;ovsdb negative;
 
1129
521;ovsdb-types.at:165;map key type is required - Python;ovsdb negative;
 
1130
522;ovsdb-data.at:3;default atoms - C;ovsdb positive;
 
1131
523;ovsdb-data.at:3;default atoms - Python;ovsdb positive python;
 
1132
524;ovsdb-data.at:11;default data - C;ovsdb positive;
 
1133
525;ovsdb-data.at:11;default data - Python;ovsdb positive python;
 
1134
526;ovsdb-data.at:76;integer atom from JSON - C;ovsdb positive;
 
1135
527;ovsdb-data.at:76;integer atom from JSON - Python;ovsdb positive python;
 
1136
528;ovsdb-data.at:89;integer atom from string;ovsdb positive;
 
1137
529;ovsdb-data.at:102;real atom from JSON - C;ovsdb positive;
 
1138
530;ovsdb-data.at:102;real atom from JSON - Python;ovsdb positive python;
 
1139
531;ovsdb-data.at:119;real atom from string;ovsdb positive;
 
1140
532;ovsdb-data.at:136;boolean atom from JSON - C;ovsdb positive;
 
1141
533;ovsdb-data.at:136;boolean atom from JSON - Python;ovsdb positive python;
 
1142
534;ovsdb-data.at:141;boolean atom from string;ovsdb positive;
 
1143
535;ovsdb-data.at:146;string atom from JSON - C;ovsdb positive;
 
1144
536;ovsdb-data.at:146;string atom from JSON - Python;ovsdb positive python;
 
1145
537;ovsdb-data.at:152;string atom from string;ovsdb positive;
 
1146
538;ovsdb-data.at:167;uuid atom from JSON - C;ovsdb positive;
 
1147
539;ovsdb-data.at:167;uuid atom from JSON - Python;ovsdb positive python;
 
1148
540;ovsdb-data.at:171;uuid atom from string;ovsdb positive;
 
1149
541;ovsdb-data.at:175;integer atom sorting - C;ovsdb positive;
 
1150
542;ovsdb-data.at:175;integer atom sorting - Python;ovsdb positive python;
 
1151
543;ovsdb-data.at:179;real atom sorting - C;ovsdb positive;
 
1152
544;ovsdb-data.at:179;real atom sorting - Python;ovsdb positive python;
 
1153
545;ovsdb-data.at:183;boolean atom sorting - C;ovsdb positive;
 
1154
546;ovsdb-data.at:183;boolean atom sorting - Python;ovsdb positive python;
 
1155
547;ovsdb-data.at:187;string atom sorting - C;ovsdb positive;
 
1156
548;ovsdb-data.at:187;string atom sorting - Python;ovsdb positive python;
 
1157
549;ovsdb-data.at:191;uuid atom sorting - C;ovsdb positive;
 
1158
550;ovsdb-data.at:191;uuid atom sorting - Python;ovsdb positive python;
 
1159
551;ovsdb-data.at:228;real not acceptable integer JSON atom - C;ovsdb positive;
 
1160
552;ovsdb-data.at:228;real not acceptable integer JSON atom - Python;ovsdb positive python;
 
1161
553;ovsdb-data.at:234;no invalid UTF-8 sequences in strings;ovsdb positive;
 
1162
554;ovsdb-data.at:249;no invalid UTF-8 sequences in strings - Python;ovsdb positive python;
 
1163
555;ovsdb-data.at:257;real not acceptable integer string atom;ovsdb negative;
 
1164
556;ovsdb-data.at:261;string \"true\" not acceptable boolean JSON atom - C;ovsdb positive;
 
1165
557;ovsdb-data.at:261;string \"true\" not acceptable boolean JSON atom - Python;ovsdb positive python;
 
1166
558;ovsdb-data.at:265;string \"true\" not acceptable boolean string atom;ovsdb negative;
 
1167
559;ovsdb-data.at:269;integer not acceptable string JSON atom - C;ovsdb positive;
 
1168
560;ovsdb-data.at:269;integer not acceptable string JSON atom - Python;ovsdb positive python;
 
1169
561;ovsdb-data.at:273;uuid atom must be expressed as JSON array - C;ovsdb positive;
 
1170
562;ovsdb-data.at:273;uuid atom must be expressed as JSON array - Python;ovsdb positive python;
 
1171
563;ovsdb-data.at:277;named-uuid requires symbol table - C;ovsdb positive;
 
1172
564;ovsdb-data.at:277;named-uuid requires symbol table - Python;ovsdb positive python;
 
1173
565;ovsdb-data.at:281;empty string atom must be quoted;ovsdb negative;
 
1174
566;ovsdb-data.at:285;quotes must be balanced;ovsdb negative;
 
1175
567;ovsdb-data.at:289;uuids must be valid;ovsdb negative;
 
1176
568;ovsdb-data.at:295;integer atom enum - C;ovsdb positive;
 
1177
569;ovsdb-data.at:295;integer atom enum - Python;ovsdb positive python;
 
1178
570;ovsdb-data.at:318;real atom enum - C;ovsdb positive;
 
1179
571;ovsdb-data.at:318;real atom enum - Python;ovsdb positive python;
 
1180
572;ovsdb-data.at:335;boolean atom enum - C;ovsdb positive;
 
1181
573;ovsdb-data.at:335;boolean atom enum - Python;ovsdb positive python;
 
1182
574;ovsdb-data.at:342;string atom enum - C;ovsdb positive;
 
1183
575;ovsdb-data.at:342;string atom enum - Python;ovsdb positive python;
 
1184
576;ovsdb-data.at:357;uuid atom enum - C;ovsdb positive;
 
1185
577;ovsdb-data.at:357;uuid atom enum - Python;ovsdb positive python;
 
1186
578;ovsdb-data.at:368;integers >= 5 - C;ovsdb positive;
 
1187
579;ovsdb-data.at:368;integers >= 5 - Python;ovsdb positive python;
 
1188
580;ovsdb-data.at:381;integers <= -1 - C;ovsdb positive;
 
1189
581;ovsdb-data.at:381;integers <= -1 - Python;ovsdb positive python;
 
1190
582;ovsdb-data.at:392;integers in range -10 to 10 - C;ovsdb positive;
 
1191
583;ovsdb-data.at:392;integers in range -10 to 10 - Python;ovsdb positive python;
 
1192
584;ovsdb-data.at:413;reals >= 5 - C;ovsdb positive;
 
1193
585;ovsdb-data.at:413;reals >= 5 - Python;ovsdb positive python;
 
1194
586;ovsdb-data.at:426;reals <= -1 - C;ovsdb positive;
 
1195
587;ovsdb-data.at:426;reals <= -1 - Python;ovsdb positive python;
 
1196
588;ovsdb-data.at:437;reals in range -10 to 10 - C;ovsdb positive;
 
1197
589;ovsdb-data.at:437;reals in range -10 to 10 - Python;ovsdb positive python;
 
1198
590;ovsdb-data.at:458;strings at least 2 characters long - C;ovsdb positive;
 
1199
591;ovsdb-data.at:458;strings at least 2 characters long - Python;ovsdb positive python;
 
1200
592;ovsdb-data.at:476;strings no more than 2 characters long - C;ovsdb positive;
 
1201
593;ovsdb-data.at:476;strings no more than 2 characters long - Python;ovsdb positive python;
 
1202
594;ovsdb-data.at:491;integer JSON datum - C;ovsdb positive;
 
1203
595;ovsdb-data.at:491;integer JSON datum - Python;ovsdb positive python;
 
1204
596;ovsdb-data.at:497;integer string datum;ovsdb positive;
 
1205
597;ovsdb-data.at:504;real JSON datum - C;ovsdb positive;
 
1206
598;ovsdb-data.at:504;real JSON datum - Python;ovsdb positive python;
 
1207
599;ovsdb-data.at:510;real string datum;ovsdb positive;
 
1208
600;ovsdb-data.at:516;boolean JSON datum - C;ovsdb positive;
 
1209
601;ovsdb-data.at:516;boolean JSON datum - Python;ovsdb positive python;
 
1210
602;ovsdb-data.at:521;boolean string datum;ovsdb positive;
 
1211
603;ovsdb-data.at:526;string JSON datum - C;ovsdb positive;
 
1212
604;ovsdb-data.at:526;string JSON datum - Python;ovsdb positive python;
 
1213
605;ovsdb-data.at:532;string string datum;ovsdb positive;
 
1214
606;ovsdb-data.at:541;JSON optional boolean - C;ovsdb positive set;
 
1215
607;ovsdb-data.at:541;JSON optional boolean - Python;ovsdb positive python set;
 
1216
608;ovsdb-data.at:551;string optional boolean;ovsdb positive set;
 
1217
609;ovsdb-data.at:561;JSON set of 0 or more integers - C;ovsdb positive;
 
1218
610;ovsdb-data.at:561;JSON set of 0 or more integers - Python;ovsdb positive python;
 
1219
611;ovsdb-data.at:578;string set of 0 or more integers;ovsdb positive;
 
1220
612;ovsdb-data.at:593;JSON set of 1 to 3 uuids - C;ovsdb positive;
 
1221
613;ovsdb-data.at:593;JSON set of 1 to 3 uuids - Python;ovsdb positive python;
 
1222
614;ovsdb-data.at:604;string set of 1 to 3 uuids;ovsdb positive;
 
1223
615;ovsdb-data.at:613;JSON set of 0 to 3 strings - C;ovsdb positive;
 
1224
616;ovsdb-data.at:613;JSON set of 0 to 3 strings - Python;ovsdb positive python;
 
1225
617;ovsdb-data.at:626;string set of 0 to 3 strings;ovsdb positive;
 
1226
618;ovsdb-data.at:637;duplicate boolean not allowed in JSON set - C;ovsdb negative;
 
1227
619;ovsdb-data.at:637;duplicate boolean not allowed in JSON set - Python;ovsdb negative;
 
1228
620;ovsdb-data.at:641;duplicate boolean not allowed in string set;ovsdb negative;
 
1229
621;ovsdb-data.at:645;duplicate integer not allowed in JSON set - C;ovsdb negative;
 
1230
622;ovsdb-data.at:645;duplicate integer not allowed in JSON set - Python;ovsdb negative;
 
1231
623;ovsdb-data.at:649;duplicate integer not allowed in string set;ovsdb negative;
 
1232
624;ovsdb-data.at:653;duplicate real not allowed in JSON set - C;ovsdb negative;
 
1233
625;ovsdb-data.at:653;duplicate real not allowed in JSON set - Python;ovsdb negative;
 
1234
626;ovsdb-data.at:657;duplicate real not allowed in string set;ovsdb negative;
 
1235
627;ovsdb-data.at:661;duplicate string not allowed in JSON set - C;ovsdb negative;
 
1236
628;ovsdb-data.at:661;duplicate string not allowed in JSON set - Python;ovsdb negative;
 
1237
629;ovsdb-data.at:665;duplicate string not allowed in string set;ovsdb negative;
 
1238
630;ovsdb-data.at:669;duplicate uuid not allowed in JSON set - C;ovsdb negative;
 
1239
631;ovsdb-data.at:669;duplicate uuid not allowed in JSON set - Python;ovsdb negative;
 
1240
632;ovsdb-data.at:676;duplicate uuid not allowed in string set;ovsdb negative;
 
1241
633;ovsdb-data.at:685;JSON map of 1 integer to boolean - C;ovsdb positive;
 
1242
634;ovsdb-data.at:685;JSON map of 1 integer to boolean - Python;ovsdb positive python;
 
1243
635;ovsdb-data.at:690;string map of 1 integer to boolean;ovsdb positive;
 
1244
636;ovsdb-data.at:695;JSON map of at least 1 integer to boolean - C;ovsdb positive;
 
1245
637;ovsdb-data.at:695;JSON map of at least 1 integer to boolean - Python;ovsdb positive python;
 
1246
638;ovsdb-data.at:704;string map of at least 1 integer to boolean;ovsdb positive;
 
1247
639;ovsdb-data.at:713;JSON map of 1 boolean to integer - C;ovsdb positive;
 
1248
640;ovsdb-data.at:713;JSON map of 1 boolean to integer - Python;ovsdb positive python;
 
1249
641;ovsdb-data.at:718;string map of 1 boolean to integer;ovsdb positive;
 
1250
642;ovsdb-data.at:723;JSON map of 1 uuid to real - C;ovsdb positive;
 
1251
643;ovsdb-data.at:723;JSON map of 1 uuid to real - Python;ovsdb positive python;
 
1252
644;ovsdb-data.at:732;string map of 1 uuid to real;ovsdb positive;
 
1253
645;ovsdb-data.at:741;JSON map of 10 string to string - C;ovsdb positive;
 
1254
646;ovsdb-data.at:741;JSON map of 10 string to string - Python;ovsdb positive python;
 
1255
647;ovsdb-data.at:755;string map of 10 string to string;ovsdb positive;
 
1256
648;ovsdb-data.at:769;duplicate integer key not allowed in JSON map - C;ovsdb negative;
 
1257
649;ovsdb-data.at:769;duplicate integer key not allowed in JSON map - Python;ovsdb negative;
 
1258
650;ovsdb-data.at:774;duplicate integer key not allowed in string map;ovsdb negative;
 
1259
651;ovsdb-column.at:3;ordinary column - C;ovsdb positive;
 
1260
652;ovsdb-column.at:3;ordinary column - Python;ovsdb positive python;
 
1261
653;ovsdb-column.at:7;immutable column - C;ovsdb positive;
 
1262
654;ovsdb-column.at:7;immutable column - Python;ovsdb positive python;
 
1263
655;ovsdb-column.at:11;ephemeral column - C;ovsdb positive;
 
1264
656;ovsdb-column.at:11;ephemeral column - Python;ovsdb positive python;
 
1265
657;ovsdb-table.at:3;non-root table with one column - C;ovsdb positive;
 
1266
658;ovsdb-table.at:3;non-root table with one column - Python;ovsdb positive python;
 
1267
659;ovsdb-table.at:7;immutable table with one column - C;ovsdb positive;
 
1268
660;ovsdb-table.at:7;immutable table with one column - Python;ovsdb positive python;
 
1269
661;ovsdb-table.at:13;root table with one column - C;ovsdb positive;
 
1270
662;ovsdb-table.at:13;root table with one column - Python;ovsdb positive python;
 
1271
663;ovsdb-table.at:19;non-root table with default_is_root=true - C;ovsdb positive;
 
1272
664;ovsdb-table.at:19;non-root table with default_is_root=true - Python;ovsdb positive python;
 
1273
665;ovsdb-table.at:23;root table with default_is_root=true - C;ovsdb positive;
 
1274
666;ovsdb-table.at:23;root table with default_is_root=true - Python;ovsdb positive python;
 
1275
667;ovsdb-table.at:29;table with maxRows of 2 - C;ovsdb positive;
 
1276
668;ovsdb-table.at:29;table with maxRows of 2 - Python;ovsdb positive python;
 
1277
669;ovsdb-table.at:34;table with index - C;ovsdb positive;
 
1278
670;ovsdb-table.at:34;table with index - Python;ovsdb positive python;
 
1279
671;ovsdb-table.at:40;table with syntax error in index - C;ovsdb negative;
 
1280
672;ovsdb-table.at:40;table with syntax error in index - Python;ovsdb negative;
 
1281
673;ovsdb-table.at:46;table with empty index - C;ovsdb negative;
 
1282
674;ovsdb-table.at:46;table with empty index - Python;ovsdb negative;
 
1283
675;ovsdb-table.at:52;table with index of ephemeral column - C;ovsdb negative;
 
1284
676;ovsdb-table.at:52;table with index of ephemeral column - Python;ovsdb negative;
 
1285
677;ovsdb-table.at:59;column names may not begin with _ - C;ovsdb negative table;
 
1286
678;ovsdb-table.at:59;column names may not begin with _ - Python;ovsdb negative table;
 
1287
679;ovsdb-table.at:65;table must have at least one column (1) - C;ovsdb negative;
 
1288
680;ovsdb-table.at:65;table must have at least one column (1) - Python;ovsdb negative;
 
1289
681;ovsdb-table.at:69;table must have at least one column (2) - C;ovsdb negative;
 
1290
682;ovsdb-table.at:69;table must have at least one column (2) - Python;ovsdb negative;
 
1291
683;ovsdb-table.at:73;table maxRows must be positive - C;ovsdb negative;
 
1292
684;ovsdb-table.at:73;table maxRows must be positive - Python;ovsdb negative;
 
1293
685;ovsdb-row.at:5;row with one string column;ovsdb positive;
 
1294
686;ovsdb-row.at:21;row with one integer column;ovsdb positive;
 
1295
687;ovsdb-row.at:37;row with one real column;ovsdb positive;
 
1296
688;ovsdb-row.at:53;row with one boolean column;ovsdb positive;
 
1297
689;ovsdb-row.at:66;row with one uuid column;ovsdb positive;
 
1298
690;ovsdb-row.at:79;row with set of 1 to 2 elements;ovsdb positive;
 
1299
691;ovsdb-row.at:86;row with map of 1 to 2 elements;ovsdb positive;
 
1300
692;ovsdb-row.at:93;row with several columns;ovsdb positive;
 
1301
693;ovsdb-row.at:115;row hashing (scalars);ovsdb positive;
 
1302
694;ovsdb-row.at:184;row hashing (sets);ovsdb positive;
 
1303
695;ovsdb-row.at:237;row hashing (maps);ovsdb positive;
 
1304
696;ovsdb-schema.at:3;schema with valid refTables - C;ovsdb positive;
 
1305
697;ovsdb-schema.at:3;schema with valid refTables - Python;ovsdb positive python;
 
1306
698;ovsdb-schema.at:30;schema with ephemeral strong references - C;ovsdb positive;
 
1307
699;ovsdb-schema.at:30;schema with ephemeral strong references - Python;ovsdb positive python;
 
1308
700;ovsdb-schema.at:61;schema without version number - C;ovsdb positive;
 
1309
701;ovsdb-schema.at:61;schema without version number - Python;ovsdb positive python;
 
1310
702;ovsdb-schema.at:71;schema with invalid refTables - C;ovsdb negative;
 
1311
703;ovsdb-schema.at:71;schema with invalid refTables - Python;ovsdb negative;
 
1312
704;ovsdb-schema.at:94;schema with invalid version number - C;ovsdb negative;
 
1313
705;ovsdb-schema.at:94;schema with invalid version number - Python;ovsdb negative;
 
1314
706;ovsdb-condition.at:3;null condition;ovsdb positive;
 
1315
707;ovsdb-condition.at:9;conditions on scalars;ovsdb positive condition;
 
1316
708;ovsdb-condition.at:75;disallowed conditions on scalars;ovsdb negative condition;
 
1317
709;ovsdb-condition.at:112;conditions on sets;ovsdb positive condition;
 
1318
710;ovsdb-condition.at:173;condition sorting;ovsdb positive;
 
1319
711;ovsdb-condition.at:187;evaluating null condition;ovsdb positive;
 
1320
712;ovsdb-condition.at:196;evaluating conditions on integers;ovsdb positive condition;
 
1321
713;ovsdb-condition.at:221;evaluating conditions on reals;ovsdb positive condition;
 
1322
714;ovsdb-condition.at:246;evaluating conditions on booleans;ovsdb positive condition;
 
1323
715;ovsdb-condition.at:270;evaluating conditions on strings;ovsdb positive condition;
 
1324
716;ovsdb-condition.at:295;evaluating conditions on UUIDs;ovsdb positive condition;
 
1325
717;ovsdb-condition.at:321;evaluating conditions on sets;ovsdb positive condition;
 
1326
718;ovsdb-condition.at:403;evaluating conditions on maps (1);ovsdb positive condition;
 
1327
719;ovsdb-condition.at:488;evaluating conditions on maps (2);ovsdb positive condition;
 
1328
720;ovsdb-mutation.at:3;null mutation;ovsdb positive;
 
1329
721;ovsdb-mutation.at:9;mutations on scalars;ovsdb positive mutation;
 
1330
722;ovsdb-mutation.at:37;disallowed mutations on scalars;ovsdb negative mutation;
 
1331
723;ovsdb-mutation.at:102;mutations on sets;ovsdb positive mutation;
 
1332
724;ovsdb-mutation.at:154;executing null mutation;ovsdb positive;
 
1333
725;ovsdb-mutation.at:167;executing mutations on integers;ovsdb positive mutation;
 
1334
726;ovsdb-mutation.at:204;integer overflow detection;ovsdb positive mutation;
 
1335
727;ovsdb-mutation.at:285;executing mutations on integers with constraints;ovsdb positive mutation;
 
1336
728;ovsdb-mutation.at:324;executing mutations on reals;ovsdb positive mutation;
 
1337
729;ovsdb-mutation.at:355;real overflow detection;ovsdb positive mutation;
 
1338
730;ovsdb-mutation.at:398;executing mutations on reals with constraints;ovsdb positive mutation;
 
1339
731;ovsdb-mutation.at:431;executing mutations on integer sets;ovsdb positive mutation;
 
1340
732;ovsdb-mutation.at:505;executing mutations on integer sets with constraints;ovsdb positive mutation;
 
1341
733;ovsdb-mutation.at:544;executing mutations on real sets;ovsdb positive mutation;
 
1342
734;ovsdb-mutation.at:617;executing mutations on boolean sets;ovsdb positive mutation;
 
1343
735;ovsdb-mutation.at:667;executing mutations on string sets;ovsdb positive mutation;
 
1344
736;ovsdb-mutation.at:717;executing mutations on uuid sets;ovsdb positive mutation;
 
1345
737;ovsdb-mutation.at:767;executing mutations on integer maps;ovsdb positive mutation;
 
1346
738;ovsdb-query.at:3;queries on scalars;ovsdb positive query;
 
1347
739;ovsdb-query.at:95;queries on sets;ovsdb positive query;
 
1348
740;ovsdb-query.at:176;queries on maps (1);ovsdb positive query;
 
1349
741;ovsdb-query.at:260;queries on maps (2);ovsdb positive query;
 
1350
742;ovsdb-query.at:351;UUID-distinct queries on scalars;ovsdb positive query;
 
1351
743;ovsdb-query.at:444;Boolean-distinct queries on scalars;ovsdb positive query;
 
1352
744;ovsdb-query.at:537;parse colunn set containing bad name;ovsdb negative;
 
1353
745;ovsdb-transaction.at:3;empty table, empty transaction;ovsdb positive;
 
1354
746;ovsdb-transaction.at:17;nonempty table, empty transaction;ovsdb positive;
 
1355
747;ovsdb-transaction.at:41;insert, commit;ovsdb positive transaction;
 
1356
748;ovsdb-transaction.at:70;insert, abort;ovsdb positive transaction;
 
1357
749;ovsdb-transaction.at:98;modify, commit;ovsdb positive transaction;
 
1358
750;ovsdb-transaction.at:127;modify, abort;ovsdb positive transaction;
 
1359
751;ovsdb-transaction.at:156;delete, commit;ovsdb positive transaction;
 
1360
752;ovsdb-transaction.at:181;delete, abort;ovsdb positive transaction;
 
1361
753;ovsdb-transaction.at:207;modify, delete, commit;ovsdb positive transaction;
 
1362
754;ovsdb-transaction.at:234;modify, delete, abort;ovsdb positive transaction;
 
1363
755;ovsdb-transaction.at:262;insert, delete, commit;ovsdb positive transaction;
 
1364
756;ovsdb-transaction.at:291;insert, delete, abort;ovsdb positive transaction;
 
1365
757;ovsdb-transaction.at:322;insert, modify, delete, commit;ovsdb positive transaction;
 
1366
758;ovsdb-transaction.at:353;insert, modify, delete, abort;ovsdb positive transaction;
 
1367
759;ovsdb-transaction.at:385;deletes are aborted cleanly;ovsdb positive transaction;
 
1368
760;ovsdb-execution.at:120;uuid-name must be <id>;ovsdb execute execution positive;
 
1369
761;ovsdb-execution.at:130;named-uuid must be <id>;ovsdb execute execution positive;
 
1370
762;ovsdb-execution.at:139;duplicate uuid-name not allowed;ovsdb execute execution positive;
 
1371
763;ovsdb-execution.at:1038;insert default row, query table;ovsdb execute execution positive;
 
1372
764;ovsdb-execution.at:1038;insert row, query table;ovsdb execute execution positive;
 
1373
765;ovsdb-execution.at:1038;insert rows, query by value;ovsdb execute execution positive;
 
1374
766;ovsdb-execution.at:1038;insert rows, query by named-uuid;ovsdb execute execution positive;
 
1375
767;ovsdb-execution.at:1038;insert rows, update rows by value;ovsdb execute execution positive;
 
1376
768;ovsdb-execution.at:1038;insert rows, mutate rows;ovsdb execute execution positive;
 
1377
769;ovsdb-execution.at:1038;insert rows, delete by named-uuid;ovsdb execute execution positive;
 
1378
770;ovsdb-execution.at:1038;insert rows, delete rows by value;ovsdb execute execution positive;
 
1379
771;ovsdb-execution.at:1038;insert rows, delete by (non-matching) value;ovsdb execute execution positive;
 
1380
772;ovsdb-execution.at:1038;insert rows, delete all;ovsdb execute execution positive;
 
1381
773;ovsdb-execution.at:1038;insert row, query table, commit;ovsdb execute execution positive;
 
1382
774;ovsdb-execution.at:1038;insert row, query table, commit durably;ovsdb execute execution positive;
 
1383
775;ovsdb-execution.at:1038;equality wait with correct rows;ovsdb execute execution positive;
 
1384
776;ovsdb-execution.at:1038;equality wait with extra row;ovsdb execute execution positive;
 
1385
777;ovsdb-execution.at:1038;equality wait with missing row;ovsdb execute execution positive;
 
1386
778;ovsdb-execution.at:1038;inequality wait with correct rows;ovsdb execute execution positive;
 
1387
779;ovsdb-execution.at:1038;inequality wait with extra row;ovsdb execute execution positive;
 
1388
780;ovsdb-execution.at:1038;inequality wait with missing row;ovsdb execute execution positive;
 
1389
781;ovsdb-execution.at:1038;insert and update constraints;ovsdb execute execution positive;
 
1390
782;ovsdb-execution.at:1038;index uniqueness checking;ovsdb execute execution positive;
 
1391
783;ovsdb-execution.at:1038;referential integrity -- simple;ovsdb execute execution positive;
 
1392
784;ovsdb-execution.at:1038;referential integrity -- mutual references;ovsdb execute execution positive;
 
1393
785;ovsdb-execution.at:1038;weak references;ovsdb execute execution positive;
 
1394
786;ovsdb-execution.at:1038;garbage collection;ovsdb execute execution positive;
 
1395
787;ovsdb-trigger.at:15;trigger fires immediately;ovsdb execute execution trigger positive;
 
1396
788;ovsdb-trigger.at:38;trigger times out;ovsdb execute execution trigger positive;
 
1397
789;ovsdb-trigger.at:61;trigger fires after delay;ovsdb execute execution trigger positive;
 
1398
790;ovsdb-trigger.at:92;delayed trigger modifies database;ovsdb execute execution trigger positive;
 
1399
791;ovsdb-trigger.at:132;one delayed trigger wakes up another;ovsdb execute execution trigger positive;
 
1400
792;ovsdb-tool.at:30;insert default row, query table;ovsdb file positive;
 
1401
793;ovsdb-tool.at:30;insert row, query table;ovsdb file positive;
 
1402
794;ovsdb-tool.at:30;insert rows, query by value;ovsdb file positive;
 
1403
795;ovsdb-tool.at:30;insert rows, query by named-uuid;ovsdb file positive;
 
1404
796;ovsdb-tool.at:30;insert rows, update rows by value;ovsdb file positive;
 
1405
797;ovsdb-tool.at:30;insert rows, mutate rows;ovsdb file positive;
 
1406
798;ovsdb-tool.at:30;insert rows, delete by named-uuid;ovsdb file positive;
 
1407
799;ovsdb-tool.at:30;insert rows, delete rows by value;ovsdb file positive;
 
1408
800;ovsdb-tool.at:30;insert rows, delete by (non-matching) value;ovsdb file positive;
 
1409
801;ovsdb-tool.at:30;insert rows, delete all;ovsdb file positive;
 
1410
802;ovsdb-tool.at:30;insert row, query table, commit;ovsdb file positive;
 
1411
803;ovsdb-tool.at:30;insert row, query table, commit durably;ovsdb file positive;
 
1412
804;ovsdb-tool.at:30;equality wait with correct rows;ovsdb file positive;
 
1413
805;ovsdb-tool.at:30;equality wait with extra row;ovsdb file positive;
 
1414
806;ovsdb-tool.at:30;equality wait with missing row;ovsdb file positive;
 
1415
807;ovsdb-tool.at:30;inequality wait with correct rows;ovsdb file positive;
 
1416
808;ovsdb-tool.at:30;inequality wait with extra row;ovsdb file positive;
 
1417
809;ovsdb-tool.at:30;inequality wait with missing row;ovsdb file positive;
 
1418
810;ovsdb-tool.at:30;insert and update constraints;ovsdb file positive;
 
1419
811;ovsdb-tool.at:30;index uniqueness checking;ovsdb file positive;
 
1420
812;ovsdb-tool.at:30;referential integrity -- simple;ovsdb file positive;
 
1421
813;ovsdb-tool.at:30;referential integrity -- mutual references;ovsdb file positive;
 
1422
814;ovsdb-tool.at:30;weak references;ovsdb file positive;
 
1423
815;ovsdb-tool.at:30;garbage collection;ovsdb file positive;
 
1424
816;ovsdb-tool.at:32;transaction comments;ovsdb file positive;
 
1425
817;ovsdb-tool.at:51;ovsdb-tool compact;ovsdb file positive;
 
1426
818;ovsdb-tool.at:145;ovsdb-tool convert -- removing a column;ovsdb file positive;
 
1427
819;ovsdb-tool.at:210;ovsdb-tool convert -- adding a column;ovsdb file positive;
 
1428
820;ovsdb-tool.at:274;ovsdb-tool schema-version;ovsdb file positive;
 
1429
821;ovsdb-tool.at:282;ovsdb-tool db-version;ovsdb file positive;
 
1430
822;ovsdb-tool.at:292;ovsdb-tool schema-cksum;ovsdb file positive;
 
1431
823;ovsdb-tool.at:300;ovsdb-tool db-cksum;ovsdb file positive;
 
1432
824;ovsdb-tool.at:310;ovsdb-tool needs-conversion (no conversion needed);ovsdb file positive;
 
1433
825;ovsdb-tool.at:320;ovsdb-tool needs-conversion (conversion needed);ovsdb file positive;
 
1434
826;ovsdb-server.at:39;insert default row, query table;ovsdb server positive unix;
 
1435
827;ovsdb-server.at:39;insert row, query table;ovsdb server positive unix;
 
1436
828;ovsdb-server.at:39;insert rows, query by value;ovsdb server positive unix;
 
1437
829;ovsdb-server.at:39;insert rows, query by named-uuid;ovsdb server positive unix;
 
1438
830;ovsdb-server.at:39;insert rows, update rows by value;ovsdb server positive unix;
 
1439
831;ovsdb-server.at:39;insert rows, mutate rows;ovsdb server positive unix;
 
1440
832;ovsdb-server.at:39;insert rows, delete by named-uuid;ovsdb server positive unix;
 
1441
833;ovsdb-server.at:39;insert rows, delete rows by value;ovsdb server positive unix;
 
1442
834;ovsdb-server.at:39;insert rows, delete by (non-matching) value;ovsdb server positive unix;
 
1443
835;ovsdb-server.at:39;insert rows, delete all;ovsdb server positive unix;
 
1444
836;ovsdb-server.at:39;insert row, query table, commit;ovsdb server positive unix;
 
1445
837;ovsdb-server.at:39;insert row, query table, commit durably;ovsdb server positive unix;
 
1446
838;ovsdb-server.at:39;equality wait with correct rows;ovsdb server positive unix;
 
1447
839;ovsdb-server.at:39;equality wait with extra row;ovsdb server positive unix;
 
1448
840;ovsdb-server.at:39;equality wait with missing row;ovsdb server positive unix;
 
1449
841;ovsdb-server.at:39;inequality wait with correct rows;ovsdb server positive unix;
 
1450
842;ovsdb-server.at:39;inequality wait with extra row;ovsdb server positive unix;
 
1451
843;ovsdb-server.at:39;inequality wait with missing row;ovsdb server positive unix;
 
1452
844;ovsdb-server.at:39;insert and update constraints;ovsdb server positive unix;
 
1453
845;ovsdb-server.at:39;index uniqueness checking;ovsdb server positive unix;
 
1454
846;ovsdb-server.at:39;referential integrity -- simple;ovsdb server positive unix;
 
1455
847;ovsdb-server.at:39;referential integrity -- mutual references;ovsdb server positive unix;
 
1456
848;ovsdb-server.at:39;weak references;ovsdb server positive unix;
 
1457
849;ovsdb-server.at:39;garbage collection;ovsdb server positive unix;
 
1458
850;ovsdb-server.at:41;truncating corrupted database log;ovsdb server positive unix;
 
1459
851;ovsdb-server.at:88;truncating database log with bad transaction;ovsdb server positive unix;
 
1460
852;ovsdb-server.at:136;ovsdb-client get-schema-version;ovsdb server positive;
 
1461
853;ovsdb-server.at:147;database multiplexing implementation;ovsdb server positive;
 
1462
854;ovsdb-server.at:164;--remote=db: implementation;ovsdb server positive;
 
1463
855;ovsdb-server.at:199;SSL db: implementation;ovsdb server positive ssl \$5;
 
1464
856;ovsdb-server.at:253;compacting online;ovsdb server compact;
 
1465
857;ovsdb-server.at:410;insert default row, query table;ovsdb server positive ssl;
 
1466
858;ovsdb-server.at:410;insert row, query table;ovsdb server positive ssl;
 
1467
859;ovsdb-server.at:410;insert rows, query by value;ovsdb server positive ssl;
 
1468
860;ovsdb-server.at:410;insert rows, query by named-uuid;ovsdb server positive ssl;
 
1469
861;ovsdb-server.at:410;insert rows, update rows by value;ovsdb server positive ssl;
 
1470
862;ovsdb-server.at:410;insert rows, mutate rows;ovsdb server positive ssl;
 
1471
863;ovsdb-server.at:410;insert rows, delete by named-uuid;ovsdb server positive ssl;
 
1472
864;ovsdb-server.at:410;insert rows, delete rows by value;ovsdb server positive ssl;
 
1473
865;ovsdb-server.at:410;insert rows, delete by (non-matching) value;ovsdb server positive ssl;
 
1474
866;ovsdb-server.at:410;insert rows, delete all;ovsdb server positive ssl;
 
1475
867;ovsdb-server.at:410;insert row, query table, commit;ovsdb server positive ssl;
 
1476
868;ovsdb-server.at:410;insert row, query table, commit durably;ovsdb server positive ssl;
 
1477
869;ovsdb-server.at:410;equality wait with correct rows;ovsdb server positive ssl;
 
1478
870;ovsdb-server.at:410;equality wait with extra row;ovsdb server positive ssl;
 
1479
871;ovsdb-server.at:410;equality wait with missing row;ovsdb server positive ssl;
 
1480
872;ovsdb-server.at:410;inequality wait with correct rows;ovsdb server positive ssl;
 
1481
873;ovsdb-server.at:410;inequality wait with extra row;ovsdb server positive ssl;
 
1482
874;ovsdb-server.at:410;inequality wait with missing row;ovsdb server positive ssl;
 
1483
875;ovsdb-server.at:410;insert and update constraints;ovsdb server positive ssl;
 
1484
876;ovsdb-server.at:410;index uniqueness checking;ovsdb server positive ssl;
 
1485
877;ovsdb-server.at:410;referential integrity -- simple;ovsdb server positive ssl;
 
1486
878;ovsdb-server.at:410;referential integrity -- mutual references;ovsdb server positive ssl;
 
1487
879;ovsdb-server.at:410;weak references;ovsdb server positive ssl;
 
1488
880;ovsdb-server.at:410;garbage collection;ovsdb server positive ssl;
 
1489
881;ovsdb-server.at:446;insert default row, query table;ovsdb server positive transient;
 
1490
882;ovsdb-server.at:446;insert row, query table;ovsdb server positive transient;
 
1491
883;ovsdb-server.at:446;insert rows, query by value;ovsdb server positive transient;
 
1492
884;ovsdb-server.at:446;insert rows, query by named-uuid;ovsdb server positive transient;
 
1493
885;ovsdb-server.at:446;insert rows, update rows by value;ovsdb server positive transient;
 
1494
886;ovsdb-server.at:446;insert rows, mutate rows;ovsdb server positive transient;
 
1495
887;ovsdb-server.at:446;insert rows, delete by named-uuid;ovsdb server positive transient;
 
1496
888;ovsdb-server.at:446;insert rows, delete rows by value;ovsdb server positive transient;
 
1497
889;ovsdb-server.at:446;insert rows, delete by (non-matching) value;ovsdb server positive transient;
 
1498
890;ovsdb-server.at:446;insert rows, delete all;ovsdb server positive transient;
 
1499
891;ovsdb-server.at:446;insert row, query table, commit;ovsdb server positive transient;
 
1500
892;ovsdb-server.at:446;insert row, query table, commit durably;ovsdb server positive transient;
 
1501
893;ovsdb-server.at:446;equality wait with correct rows;ovsdb server positive transient;
 
1502
894;ovsdb-server.at:446;equality wait with extra row;ovsdb server positive transient;
 
1503
895;ovsdb-server.at:446;equality wait with missing row;ovsdb server positive transient;
 
1504
896;ovsdb-server.at:446;inequality wait with correct rows;ovsdb server positive transient;
 
1505
897;ovsdb-server.at:446;inequality wait with extra row;ovsdb server positive transient;
 
1506
898;ovsdb-server.at:446;inequality wait with missing row;ovsdb server positive transient;
 
1507
899;ovsdb-server.at:446;insert and update constraints;ovsdb server positive transient;
 
1508
900;ovsdb-server.at:446;index uniqueness checking;ovsdb server positive transient;
 
1509
901;ovsdb-server.at:446;referential integrity -- simple;ovsdb server positive transient;
 
1510
902;ovsdb-server.at:446;referential integrity -- mutual references;ovsdb server positive transient;
 
1511
903;ovsdb-server.at:446;weak references;ovsdb server positive transient;
 
1512
904;ovsdb-server.at:446;garbage collection;ovsdb server positive transient;
 
1513
905;ovsdb-monitor.at:42;monitor insert into empty table;ovsdb server monitor positive;
 
1514
906;ovsdb-monitor.at:54;monitor insert into populated table;ovsdb server monitor positive;
 
1515
907;ovsdb-monitor.at:72;monitor delete;ovsdb server monitor positive;
 
1516
908;ovsdb-monitor.at:90;monitor row update;ovsdb server monitor positive;
 
1517
909;ovsdb-monitor.at:110;monitor no-op row updates;ovsdb server monitor positive;
 
1518
910;ovsdb-monitor.at:133;monitor insert-and-update transaction;ovsdb server monitor positive;
 
1519
911;ovsdb-monitor.at:156;monitor insert-update-and-delete transaction;ovsdb server monitor positive;
 
1520
912;ovsdb-monitor.at:185;monitor weak reference change;ovsdb server monitor positive;
 
1521
913;ovsdb-monitor.at:220;monitor insert-update-and-delete transaction;ovsdb server monitor positive;
 
1522
914;ovsdb-monitor.at:271;monitor all operations;ovsdb server monitor positive;
 
1523
915;ovsdb-monitor.at:291;monitor initial only;ovsdb server monitor positive;
 
1524
916;ovsdb-monitor.at:298;monitor insert only;ovsdb server monitor positive;
 
1525
917;ovsdb-monitor.at:305;monitor delete only;ovsdb server monitor positive;
 
1526
918;ovsdb-monitor.at:313;monitor modify only;ovsdb server monitor positive;
 
1527
919;ovsdb-idl.at:55;simple idl, initially empty, no ops - C;ovsdb server idl positive;
 
1528
920;ovsdb-idl.at:55;simple idl, initially empty, no ops - Python;ovsdb server idl positive python;
 
1529
921;ovsdb-idl.at:62;simple idl, initially empty, various ops - C;ovsdb server idl positive;
 
1530
922;ovsdb-idl.at:62;simple idl, initially empty, various ops - Python;ovsdb server idl positive python;
 
1531
923;ovsdb-idl.at:140;simple idl, initially populated - C;ovsdb server idl positive;
 
1532
924;ovsdb-idl.at:140;simple idl, initially populated - Python;ovsdb server idl positive python;
 
1533
925;ovsdb-idl.at:171;simple idl, writing via IDL - C;ovsdb server idl positive;
 
1534
926;ovsdb-idl.at:171;simple idl, writing via IDL - Python;ovsdb server idl positive python;
 
1535
927;ovsdb-idl.at:202;simple idl, handling verification failure - C;ovsdb server idl positive;
 
1536
928;ovsdb-idl.at:202;simple idl, handling verification failure - Python;ovsdb server idl positive python;
 
1537
929;ovsdb-idl.at:233;simple idl, increment operation - C;ovsdb server idl positive;
 
1538
930;ovsdb-idl.at:233;simple idl, increment operation - Python;ovsdb server idl positive python;
 
1539
931;ovsdb-idl.at:245;simple idl, aborting - C;ovsdb server idl positive;
 
1540
932;ovsdb-idl.at:245;simple idl, aborting - Python;ovsdb server idl positive python;
 
1541
933;ovsdb-idl.at:259;simple idl, destroy without commit or abort - C;ovsdb server idl positive;
 
1542
934;ovsdb-idl.at:259;simple idl, destroy without commit or abort - Python;ovsdb server idl positive python;
 
1543
935;ovsdb-idl.at:273;self-linking idl, consistent ops - C;ovsdb server idl positive;
 
1544
936;ovsdb-idl.at:273;self-linking idl, consistent ops - Python;ovsdb server idl positive python;
 
1545
937;ovsdb-idl.at:317;self-linking idl, inconsistent ops - C;ovsdb server idl positive;
 
1546
938;ovsdb-idl.at:317;self-linking idl, inconsistent ops - Python;ovsdb server idl positive python;
 
1547
939;ovsdb-idl.at:365;self-linking idl, sets - C;ovsdb server idl positive;
 
1548
940;ovsdb-idl.at:365;self-linking idl, sets - Python;ovsdb server idl positive python;
 
1549
941;ovsdb-idl.at:415;external-linking idl, consistent ops - C;ovsdb server idl positive;
 
1550
942;ovsdb-idl.at:415;external-linking idl, consistent ops - Python;ovsdb server idl positive python;
 
1551
943;ovs-vsctl.at:145;add-br a;ovs-vsctl;
 
1552
944;ovs-vsctl.at:155;add-br a, add-br a;ovs-vsctl;
 
1553
945;ovs-vsctl.at:165;add-br a, add-br b;ovs-vsctl;
 
1554
946;ovs-vsctl.at:182;add-br a, add-br b, del-br a;ovs-vsctl;
 
1555
947;ovs-vsctl.at:193;add-br a, del-br a, add-br a;ovs-vsctl;
 
1556
948;ovs-vsctl.at:213;add-br a, add-port a a1, add-port a a2;ovs-vsctl;
 
1557
949;ovs-vsctl.at:227;add-br a, add-port a a1, add-port a a1;ovs-vsctl;
 
1558
950;ovs-vsctl.at:239;add-br a b, add-port a a1, add-port b b1, del-br a;ovs-vsctl;
 
1559
951;ovs-vsctl.at:261;add-br a, add-bond a bond0 a1 a2 a3;ovs-vsctl;
 
1560
952;ovs-vsctl.at:279;add-br a b, add-port a a1, add-port b b1, del-port a a1;ovs-vsctl;
 
1561
953;ovs-vsctl.at:304;add-br a, add-bond a bond0 a1 a2 a3, del-port bond0;ovs-vsctl;
 
1562
954;ovs-vsctl.at:321;external IDs;ovs-vsctl;
 
1563
955;ovs-vsctl.at:377;controllers;controller ovs-vsctl;
 
1564
956;ovs-vsctl.at:488;simple fake bridge (VLAN 9);ovs-vsctl fake-bridge;
 
1565
957;ovs-vsctl.at:488;simple fake bridge + del-br fake bridge (VLAN 9);ovs-vsctl fake-bridge;
 
1566
958;ovs-vsctl.at:488;simple fake bridge + del-br real bridge (VLAN 9);ovs-vsctl fake-bridge;
 
1567
959;ovs-vsctl.at:488;simple fake bridge + external IDs (VLAN 9);ovs-vsctl fake-bridge;
 
1568
960;ovs-vsctl.at:489;simple fake bridge (VLAN 0);ovs-vsctl fake-bridge;
 
1569
961;ovs-vsctl.at:489;simple fake bridge + del-br fake bridge (VLAN 0);ovs-vsctl fake-bridge;
 
1570
962;ovs-vsctl.at:489;simple fake bridge + del-br real bridge (VLAN 0);ovs-vsctl fake-bridge;
 
1571
963;ovs-vsctl.at:489;simple fake bridge + external IDs (VLAN 0);ovs-vsctl fake-bridge;
 
1572
964;ovs-vsctl.at:501;fake bridge on bond;ovs-vsctl fake-bridge;
 
1573
965;ovs-vsctl.at:513;fake bridge on bond + del-br fake bridge;ovs-vsctl fake-bridge;
 
1574
966;ovs-vsctl.at:525;fake bridge on bond + del-br real bridge;ovs-vsctl fake-bridge;
 
1575
967;ovs-vsctl.at:537;managers;manager ovs-vsctl;
 
1576
968;ovs-vsctl.at:563;database commands -- positive checks;ovs-vsctl;
 
1577
969;ovs-vsctl.at:654;database commands -- negative checks;ovs-vsctl;
 
1578
970;ovs-vsctl.at:741;database commands -- wait-until immediately true;ovs-vsctl;
 
1579
971;ovs-vsctl.at:760;database commands -- wait-until must wait;ovs-vsctl;
 
1580
972;ovs-vsctl.at:799;--id option on create, get commands;ovs-vsctl;
 
1581
973;ovs-vsctl.at:848;unreferenced record warnings;ovs-vsctl;
 
1582
974;ovs-vsctl.at:882;created row UUID is wrong in same execution;ovs-vsctl;
 
1583
975;ovs-monitor-ipsec.at:3;ovs-monitor-ipsec;;
 
1584
976;ovs-xapi-sync.at:3;ovs-xapi-sync;;
 
1585
977;interface-reconfigure.at:691;non-VLAN, non-bond;interface-reconfigure;
 
1586
978;interface-reconfigure.at:766;VLAN, non-bond;interface-reconfigure;
 
1587
979;interface-reconfigure.at:839;Bond, non-VLAN;interface-reconfigure;
 
1588
980;interface-reconfigure.at:927;VLAN on bond;interface-reconfigure;
 
1589
981;stp.at:3;STP example from IEEE 802.1D-1998;stp;
 
1590
982;stp.at:21;STP example from IEEE 802.1D-2004 figures 17.4 and 17.5;stp;
 
1591
983;stp.at:58;STP example from IEEE 802.1D-2004 figure 17.6;stp;
 
1592
984;stp.at:78;STP example from IEEE 802.1D-2004 figure 17.7;stp;
 
1593
985;stp.at:101;STP.io.1.1: Link Failure;stp;
 
1594
986;stp.at:134;STP.io.1.2: Repeated Network;stp;
 
1595
987;stp.at:154;STP.io.1.4: Network Initialization;stp;
 
1596
988;stp.at:174;STP.io.1.5: Topology Change;stp;
 
1597
989;stp.at:221;STP.op.1.1 and STP.op.1.2;stp;
 
1598
990;stp.at:235;STP.op.1.4: All Ports Initialized to Designated Ports;stp;
 
1599
991;stp.at:250;STP.op.3.1: Root Bridge Selection: Root ID Values;stp;
 
1600
992;stp.at:268;STP.op.3.3: Root Bridge Selection: Bridge ID Values;stp;
 
1601
993;stp.at:286;STP.op.3.3: Root Bridge Selection: Bridge ID Values;stp;
 
1602
994;vlog.at:3;vlog - Python;;
 
1603
"
 
1604
# List of the all the test groups.
 
1605
at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
 
1606
 
 
1607
# at_fn_validate_ranges NAME...
 
1608
# -----------------------------
 
1609
# Validate and normalize the test group number contained in each variable
 
1610
# NAME. Leading zeroes are treated as decimal.
 
1611
at_fn_validate_ranges ()
 
1612
{
 
1613
  for at_grp
 
1614
  do
 
1615
    eval at_value=\$$at_grp
 
1616
    if test $at_value -lt 1 || test $at_value -gt 994; then
 
1617
      $as_echo "invalid test group: $at_value" >&2
 
1618
      exit 1
 
1619
    fi
 
1620
    case $at_value in
 
1621
      0*) # We want to treat leading 0 as decimal, like expr and test, but
 
1622
          # AS_VAR_ARITH treats it as octal if it uses $(( )).
 
1623
          # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
 
1624
          # expr fork, but it is not worth the effort to determine if the
 
1625
          # shell supports XSI when the user can just avoid leading 0.
 
1626
          eval $at_grp='`expr $at_value + 0`' ;;
 
1627
    esac
 
1628
  done
 
1629
}
 
1630
 
 
1631
at_prev=
 
1632
for at_option
 
1633
do
 
1634
  # If the previous option needs an argument, assign it.
 
1635
  if test -n "$at_prev"; then
 
1636
    at_option=$at_prev=$at_option
 
1637
    at_prev=
 
1638
  fi
 
1639
 
 
1640
  case $at_option in
 
1641
  *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
 
1642
  *)    at_optarg= ;;
 
1643
  esac
 
1644
 
 
1645
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1646
 
 
1647
  case $at_option in
 
1648
    --help | -h )
 
1649
        at_help_p=:
 
1650
        ;;
 
1651
 
 
1652
    --list | -l )
 
1653
        at_list_p=:
 
1654
        ;;
 
1655
 
 
1656
    --version | -V )
 
1657
        at_version_p=:
 
1658
        ;;
 
1659
 
 
1660
    --clean | -c )
 
1661
        at_clean=:
 
1662
        ;;
 
1663
 
 
1664
    --color )
 
1665
        at_color=always
 
1666
        ;;
 
1667
    --color=* )
 
1668
        case $at_optarg in
 
1669
        no | never | none) at_color=never ;;
 
1670
        auto | tty | if-tty) at_color=auto ;;
 
1671
        always | yes | force) at_color=always ;;
 
1672
        *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
 
1673
           as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
 
1674
        esac
 
1675
        ;;
 
1676
 
 
1677
    --debug | -d )
 
1678
        at_debug_p=:
 
1679
        ;;
 
1680
 
 
1681
    --errexit | -e )
 
1682
        at_debug_p=:
 
1683
        at_errexit_p=:
 
1684
        ;;
 
1685
 
 
1686
    --verbose | -v )
 
1687
        at_verbose=; at_quiet=:
 
1688
        ;;
 
1689
 
 
1690
    --trace | -x )
 
1691
        at_traceon='set -x'
 
1692
        at_trace_echo=echo
 
1693
        at_check_filter_trace=at_fn_filter_trace
 
1694
        ;;
 
1695
 
 
1696
    [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
 
1697
        at_fn_validate_ranges at_option
 
1698
        as_fn_append at_groups "$at_option$as_nl"
 
1699
        ;;
 
1700
 
 
1701
    # Ranges
 
1702
    [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
 
1703
        at_range_start=`echo $at_option |tr -d X-`
 
1704
        at_fn_validate_ranges at_range_start
 
1705
        at_range=`$as_echo "$at_groups_all" | \
 
1706
          sed -ne '/^'$at_range_start'$/,$p'`
 
1707
        as_fn_append at_groups "$at_range$as_nl"
 
1708
        ;;
 
1709
 
 
1710
    -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
 
1711
        at_range_end=`echo $at_option |tr -d X-`
 
1712
        at_fn_validate_ranges at_range_end
 
1713
        at_range=`$as_echo "$at_groups_all" | \
 
1714
          sed -ne '1,/^'$at_range_end'$/p'`
 
1715
        as_fn_append at_groups "$at_range$as_nl"
 
1716
        ;;
 
1717
 
 
1718
    [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
 
1719
    [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
 
1720
    [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
 
1721
    [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
 
1722
    [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
 
1723
    [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
 
1724
        at_range_start=`expr $at_option : '\(.*\)-'`
 
1725
        at_range_end=`expr $at_option : '.*-\(.*\)'`
 
1726
        if test $at_range_start -gt $at_range_end; then
 
1727
          at_tmp=$at_range_end
 
1728
          at_range_end=$at_range_start
 
1729
          at_range_start=$at_tmp
 
1730
        fi
 
1731
        at_fn_validate_ranges at_range_start at_range_end
 
1732
        at_range=`$as_echo "$at_groups_all" | \
 
1733
          sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
 
1734
        as_fn_append at_groups "$at_range$as_nl"
 
1735
        ;;
 
1736
 
 
1737
    # Directory selection.
 
1738
    --directory | -C )
 
1739
        at_prev=--directory
 
1740
        ;;
 
1741
    --directory=* )
 
1742
        at_change_dir=:
 
1743
        at_dir=$at_optarg
 
1744
        if test x- = "x$at_dir" ; then
 
1745
          at_dir=./-
 
1746
        fi
 
1747
        ;;
 
1748
 
 
1749
    # Parallel execution.
 
1750
    --jobs | -j )
 
1751
        at_jobs=0
 
1752
        ;;
 
1753
    --jobs=* | -j[0-9]* )
 
1754
        if test -n "$at_optarg"; then
 
1755
          at_jobs=$at_optarg
 
1756
        else
 
1757
          at_jobs=`expr X$at_option : 'X-j\(.*\)'`
 
1758
        fi
 
1759
        case $at_jobs in *[!0-9]*)
 
1760
          at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
 
1761
          as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
 
1762
        esac
 
1763
        ;;
 
1764
 
 
1765
    # Keywords.
 
1766
    --keywords | -k )
 
1767
        at_prev=--keywords
 
1768
        ;;
 
1769
    --keywords=* )
 
1770
        at_groups_selected=$at_help_all
 
1771
        at_save_IFS=$IFS
 
1772
        IFS=,
 
1773
        set X $at_optarg
 
1774
        shift
 
1775
        IFS=$at_save_IFS
 
1776
        for at_keyword
 
1777
        do
 
1778
          at_invert=
 
1779
          case $at_keyword in
 
1780
          '!'*)
 
1781
            at_invert="-v"
 
1782
            at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
 
1783
            ;;
 
1784
          esac
 
1785
          # It is on purpose that we match the test group titles too.
 
1786
          at_groups_selected=`$as_echo "$at_groups_selected" |
 
1787
              grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
 
1788
        done
 
1789
        # Smash the keywords.
 
1790
        at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
 
1791
        as_fn_append at_groups "$at_groups_selected$as_nl"
 
1792
        ;;
 
1793
    --recheck)
 
1794
        at_recheck=:
 
1795
        ;;
 
1796
 
 
1797
    *=*)
 
1798
        at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
 
1799
        # Reject names that are not valid shell variable names.
 
1800
        case $at_envvar in
 
1801
          '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1802
            as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
 
1803
        esac
 
1804
        at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
1805
        # Export now, but save eval for later and for debug scripts.
 
1806
        export $at_envvar
 
1807
        as_fn_append at_debug_args " $at_envvar='$at_value'"
 
1808
        ;;
 
1809
 
 
1810
     *) $as_echo "$as_me: invalid option: $at_option" >&2
 
1811
        $as_echo "Try \`$0 --help' for more information." >&2
 
1812
        exit 1
 
1813
        ;;
 
1814
  esac
 
1815
done
 
1816
 
 
1817
# Verify our last option didn't require an argument
 
1818
if test -n "$at_prev"; then :
 
1819
  as_fn_error $? "\`$at_prev' requires an argument"
 
1820
fi
 
1821
 
 
1822
# The file containing the suite.
 
1823
at_suite_log=$at_dir/$as_me.log
 
1824
 
 
1825
# Selected test groups.
 
1826
if test -z "$at_groups$at_recheck"; then
 
1827
  at_groups=$at_groups_all
 
1828
else
 
1829
  if test -n "$at_recheck" && test -r "$at_suite_log"; then
 
1830
    at_oldfails=`sed -n '
 
1831
      /^Failed tests:$/,/^Skipped tests:$/{
 
1832
        s/^[ ]*\([1-9][0-9]*\):.*/\1/p
 
1833
      }
 
1834
      /^Unexpected passes:$/,/^## Detailed failed tests/{
 
1835
        s/^[ ]*\([1-9][0-9]*\):.*/\1/p
 
1836
      }
 
1837
      /^## Detailed failed tests/q
 
1838
      ' "$at_suite_log"`
 
1839
    as_fn_append at_groups "$at_oldfails$as_nl"
 
1840
  fi
 
1841
  # Sort the tests, removing duplicates.
 
1842
  at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
 
1843
fi
 
1844
 
 
1845
if test x"$at_color" = xalways \
 
1846
   || { test x"$at_color" = xauto && test -t 1; }; then
 
1847
  at_red=`printf '\033[0;31m'`
 
1848
  at_grn=`printf '\033[0;32m'`
 
1849
  at_lgn=`printf '\033[1;32m'`
 
1850
  at_blu=`printf '\033[1;34m'`
 
1851
  at_std=`printf '\033[m'`
 
1852
else
 
1853
  at_red= at_grn= at_lgn= at_blu= at_std=
 
1854
fi
 
1855
 
 
1856
# Help message.
 
1857
if $at_help_p; then
 
1858
  cat <<_ATEOF || at_write_fail=1
 
1859
Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
 
1860
 
 
1861
Run all the tests, or the selected TESTS, given by numeric ranges, and
 
1862
save a detailed log file.  Upon failure, create debugging scripts.
 
1863
 
 
1864
Do not change environment variables directly.  Instead, set them via
 
1865
command line arguments.  Set \`AUTOTEST_PATH' to select the executables
 
1866
to exercise.  Each relative directory is expanded as build and source
 
1867
directories relative to the top level of this distribution.
 
1868
E.g., from within the build directory /tmp/foo-1.0, invoking this:
 
1869
 
 
1870
  $ $0 AUTOTEST_PATH=bin
 
1871
 
 
1872
is equivalent to the following, assuming the source directory is /src/foo-1.0:
 
1873
 
 
1874
  PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
 
1875
_ATEOF
 
1876
cat <<_ATEOF || at_write_fail=1
 
1877
 
 
1878
Operation modes:
 
1879
  -h, --help     print the help message, then exit
 
1880
  -V, --version  print version number, then exit
 
1881
  -c, --clean    remove all the files this test suite might create and exit
 
1882
  -l, --list     describes all the tests, or the selected TESTS
 
1883
_ATEOF
 
1884
cat <<_ATEOF || at_write_fail=1
 
1885
 
 
1886
Execution tuning:
 
1887
  -C, --directory=DIR
 
1888
                 change to directory DIR before starting
 
1889
      --color[=never|auto|always]
 
1890
                 enable colored test results on terminal, or always
 
1891
  -j, --jobs[=N]
 
1892
                 Allow N jobs at once; infinite jobs with no arg (default 1)
 
1893
  -k, --keywords=KEYWORDS
 
1894
                 select the tests matching all the comma-separated KEYWORDS
 
1895
                 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
 
1896
      --recheck  select all tests that failed or passed unexpectedly last time
 
1897
  -e, --errexit  abort as soon as a test fails; implies --debug
 
1898
  -v, --verbose  force more detailed output
 
1899
                 default for debugging scripts
 
1900
  -d, --debug    inhibit clean up and top-level logging
 
1901
                 default for debugging scripts
 
1902
  -x, --trace    enable tests shell tracing
 
1903
_ATEOF
 
1904
cat <<_ATEOF || at_write_fail=1
 
1905
 
 
1906
Report bugs to <ovs-bugs@openvswitch.org>.
 
1907
_ATEOF
 
1908
  exit $at_write_fail
 
1909
fi
 
1910
 
 
1911
# List of tests.
 
1912
if $at_list_p; then
 
1913
  cat <<_ATEOF || at_write_fail=1
 
1914
openvswitch 1.4.2 test suite test groups:
 
1915
 
 
1916
 NUM: FILE-NAME:LINE     TEST-GROUP-NAME
 
1917
      KEYWORDS
 
1918
 
 
1919
_ATEOF
 
1920
  # Pass an empty line as separator between selected groups and help.
 
1921
  $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
 
1922
    awk 'NF == 1 && FS != ";" {
 
1923
           selected[$ 1] = 1
 
1924
           next
 
1925
         }
 
1926
         /^$/ { FS = ";" }
 
1927
         NF > 0 {
 
1928
           if (selected[$ 1]) {
 
1929
             printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
 
1930
             if ($ 4) {
 
1931
               lmax = 79
 
1932
               indent = "     "
 
1933
               line = indent
 
1934
               len = length (line)
 
1935
               n = split ($ 4, a, " ")
 
1936
               for (i = 1; i <= n; i++) {
 
1937
                 l = length (a[i]) + 1
 
1938
                 if (i > 1 && len + l > lmax) {
 
1939
                   print line
 
1940
                   line = indent " " a[i]
 
1941
                   len = length (line)
 
1942
                 } else {
 
1943
                   line = line " " a[i]
 
1944
                   len += l
 
1945
                 }
 
1946
               }
 
1947
               if (n)
 
1948
                 print line
 
1949
             }
 
1950
           }
 
1951
         }' || at_write_fail=1
 
1952
  exit $at_write_fail
 
1953
fi
 
1954
if $at_version_p; then
 
1955
  $as_echo "$as_me (openvswitch 1.4.2)" &&
 
1956
  cat <<\_ATEOF || at_write_fail=1
 
1957
 
 
1958
Copyright (C) 2012 Free Software Foundation, Inc.
 
1959
This test suite is free software; the Free Software Foundation gives
 
1960
unlimited permission to copy, distribute and modify it.
 
1961
 
 
1962
Copyright (c) 2009, 2010, 2011 Nicira Networks.
 
1963
 
 
1964
Licensed under the Apache License, Version 2.0 (the "License");
 
1965
you may not use this file except in compliance with the License.
 
1966
You may obtain a copy of the License at:
 
1967
 
 
1968
    http://www.apache.org/licenses/LICENSE-2.0
 
1969
 
 
1970
Unless required by applicable law or agreed to in writing, software
 
1971
distributed under the License is distributed on an "AS IS" BASIS,
 
1972
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
1973
See the License for the specific language governing permissions and
 
1974
limitations under the License.
 
1975
_ATEOF
 
1976
  exit $at_write_fail
 
1977
fi
 
1978
 
 
1979
# Should we print banners?  Yes if more than one test is run.
 
1980
case $at_groups in #(
 
1981
  *$as_nl* )
 
1982
      at_print_banners=: ;; #(
 
1983
  * ) at_print_banners=false ;;
 
1984
esac
 
1985
# Text for banner N, set to a single space once printed.
 
1986
# Banner 1. lacp.at:1
 
1987
# Category starts at test group 1.
 
1988
at_banner_text_1="lacp"
 
1989
# Banner 2. library.at:1
 
1990
# Category starts at test group 3.
 
1991
at_banner_text_2="library unit tests"
 
1992
# Banner 3. bundle.at:1
 
1993
# Category starts at test group 17.
 
1994
at_banner_text_3="bundle link selection"
 
1995
# Banner 4. classifier.at:1
 
1996
# Category starts at test group 26.
 
1997
at_banner_text_4="flow classifier unit tests"
 
1998
# Banner 5. check-structs.at:1
 
1999
# Category starts at test group 34.
 
2000
at_banner_text_5="struct alignment checker unit tests"
 
2001
# Banner 6. daemon.at:1
 
2002
# Category starts at test group 38.
 
2003
at_banner_text_6="daemon unit tests - C"
 
2004
# Banner 7. daemon-py.at:1
 
2005
# Category starts at test group 46.
 
2006
at_banner_text_7="daemon unit tests - Python"
 
2007
# Banner 8. ofp-print.at:1
 
2008
# Category starts at test group 55.
 
2009
at_banner_text_8="ofp-print"
 
2010
# Banner 9. ovs-ofctl.at:1
 
2011
# Category starts at test group 107.
 
2012
at_banner_text_9="ovs-ofctl"
 
2013
# Banner 10. odp.at:1
 
2014
# Category starts at test group 116.
 
2015
at_banner_text_10="datapath parsing and formatting"
 
2016
# Banner 11. multipath.at:1
 
2017
# Category starts at test group 117.
 
2018
at_banner_text_11="multipath link selection"
 
2019
# Banner 12. autopath.at:1
 
2020
# Category starts at test group 126.
 
2021
at_banner_text_12="autopath link selection"
 
2022
# Banner 13. learn.at:1
 
2023
# Category starts at test group 130.
 
2024
at_banner_text_13="learning action"
 
2025
# Banner 14. vconn.at:20
 
2026
# Category starts at test group 135.
 
2027
at_banner_text_14="vconn library -- unix class"
 
2028
# Banner 15. vconn.at:21
 
2029
# Category starts at test group 143.
 
2030
at_banner_text_15="vconn library -- tcp class"
 
2031
# Banner 16. vconn.at:22
 
2032
# Category starts at test group 151.
 
2033
at_banner_text_16="vconn library -- ssl class"
 
2034
# Banner 17. file_name.at:1
 
2035
# Category starts at test group 159.
 
2036
at_banner_text_17="test dir_name and base_name functions"
 
2037
# Banner 18. aes128.at:1
 
2038
# Category starts at test group 172.
 
2039
at_banner_text_18="AES-128 unit tests"
 
2040
# Banner 19. uuid.at:1
 
2041
# Category starts at test group 195.
 
2042
at_banner_text_19="UUID unit tests"
 
2043
# Banner 20. json.at:63
 
2044
# Category starts at test group 198.
 
2045
at_banner_text_20="JSON -- arrays"
 
2046
# Banner 21. json.at:78
 
2047
# Category starts at test group 212.
 
2048
at_banner_text_21="JSON -- strings"
 
2049
# Banner 22. json.at:140
 
2050
# Category starts at test group 242.
 
2051
at_banner_text_22="JSON -- objects"
 
2052
# Banner 23. json.at:162
 
2053
# Category starts at test group 258.
 
2054
at_banner_text_23="JSON -- literal names"
 
2055
# Banner 24. json.at:176
 
2056
# Category starts at test group 272.
 
2057
at_banner_text_24="JSON -- numbers"
 
2058
# Banner 25. json.at:269
 
2059
# Category starts at test group 310.
 
2060
at_banner_text_25="JSON -- RFC 4627 examples"
 
2061
# Banner 26. json.at:312
 
2062
# Category starts at test group 314.
 
2063
at_banner_text_26="JSON -- pathological cases"
 
2064
# Banner 27. json.at:335
 
2065
# Category starts at test group 325.
 
2066
at_banner_text_27="JSON -- multiple inputs"
 
2067
# Banner 28. jsonrpc.at:1
 
2068
# Category starts at test group 337.
 
2069
at_banner_text_28="JSON-RPC - C"
 
2070
# Banner 29. jsonrpc-py.at:1
 
2071
# Category starts at test group 340.
 
2072
at_banner_text_29="JSON-RPC - Python"
 
2073
# Banner 30. timeval.at:1
 
2074
# Category starts at test group 343.
 
2075
at_banner_text_30="timeval unit tests"
 
2076
# Banner 31. lockfile.at:1
 
2077
# Category starts at test group 345.
 
2078
at_banner_text_31="lockfile unit tests"
 
2079
# Banner 32. reconnect.at:1
 
2080
# Category starts at test group 355.
 
2081
at_banner_text_32="reconnect library"
 
2082
# Banner 33. ofproto.at:1
 
2083
# Category starts at test group 379.
 
2084
at_banner_text_33="ofproto"
 
2085
# Banner 34. ofproto-dpif.at:1
 
2086
# Category starts at test group 386.
 
2087
at_banner_text_34="ofproto-dpif"
 
2088
# Banner 35. ovsdb-log.at:1
 
2089
# Category starts at test group 403.
 
2090
at_banner_text_35="OVSDB -- logging"
 
2091
# Banner 36. ovsdb-types.at:1
 
2092
# Category starts at test group 414.
 
2093
at_banner_text_36="OVSDB -- atomic types"
 
2094
# Banner 37. ovsdb-types.at:16
 
2095
# Category starts at test group 426.
 
2096
at_banner_text_37="OVSDB -- base types"
 
2097
# Banner 38. ovsdb-types.at:90
 
2098
# Category starts at test group 472.
 
2099
at_banner_text_38="OVSDB -- simple types"
 
2100
# Banner 39. ovsdb-types.at:112
 
2101
# Category starts at test group 490.
 
2102
at_banner_text_39="OVSDB -- set types"
 
2103
# Banner 40. ovsdb-types.at:144
 
2104
# Category starts at test group 508.
 
2105
at_banner_text_40="OVSDB -- map types"
 
2106
# Banner 41. ovsdb-data.at:1
 
2107
# Category starts at test group 522.
 
2108
at_banner_text_41="OVSDB -- default values"
 
2109
# Banner 42. ovsdb-data.at:74
 
2110
# Category starts at test group 526.
 
2111
at_banner_text_42="OVSDB -- atoms without constraints"
 
2112
# Banner 43. ovsdb-data.at:293
 
2113
# Category starts at test group 568.
 
2114
at_banner_text_43="OVSDB -- atoms with enum constraints"
 
2115
# Banner 44. ovsdb-data.at:366
 
2116
# Category starts at test group 578.
 
2117
at_banner_text_44="OVSDB -- atoms with other constraints"
 
2118
# Banner 45. ovsdb-data.at:489
 
2119
# Category starts at test group 594.
 
2120
at_banner_text_45="OSVDB -- simple data"
 
2121
# Banner 46. ovsdb-data.at:539
 
2122
# Category starts at test group 606.
 
2123
at_banner_text_46="OVSDB -- set data"
 
2124
# Banner 47. ovsdb-data.at:683
 
2125
# Category starts at test group 633.
 
2126
at_banner_text_47="OVSDB -- map data"
 
2127
# Banner 48. ovsdb-column.at:1
 
2128
# Category starts at test group 651.
 
2129
at_banner_text_48="OVSDB -- columns"
 
2130
# Banner 49. ovsdb-table.at:1
 
2131
# Category starts at test group 657.
 
2132
at_banner_text_49="OVSDB -- tables"
 
2133
# Banner 50. ovsdb-row.at:1
 
2134
# Category starts at test group 685.
 
2135
at_banner_text_50="OVSDB -- rows"
 
2136
# Banner 51. ovsdb-schema.at:1
 
2137
# Category starts at test group 696.
 
2138
at_banner_text_51="OVSDB -- schemas"
 
2139
# Banner 52. ovsdb-condition.at:1
 
2140
# Category starts at test group 706.
 
2141
at_banner_text_52="OVSDB -- conditions"
 
2142
# Banner 53. ovsdb-mutation.at:1
 
2143
# Category starts at test group 720.
 
2144
at_banner_text_53="OVSDB -- mutations"
 
2145
# Banner 54. ovsdb-query.at:1
 
2146
# Category starts at test group 738.
 
2147
at_banner_text_54="OVSDB -- queries"
 
2148
# Banner 55. ovsdb-transaction.at:1
 
2149
# Category starts at test group 745.
 
2150
at_banner_text_55="OVSDB -- transactions"
 
2151
# Banner 56. ovsdb-execution.at:1
 
2152
# Category starts at test group 760.
 
2153
at_banner_text_56="OVSDB -- execution"
 
2154
# Banner 57. ovsdb-trigger.at:1
 
2155
# Category starts at test group 787.
 
2156
at_banner_text_57="OVSDB -- triggers"
 
2157
# Banner 58. ovsdb-tool.at:1
 
2158
# Category starts at test group 792.
 
2159
at_banner_text_58="OVSDB -- ovsdb-tool"
 
2160
# Banner 59. ovsdb-server.at:1
 
2161
# Category starts at test group 826.
 
2162
at_banner_text_59="OVSDB -- ovsdb-server transactions (Unix sockets)"
 
2163
# Banner 60. ovsdb-server.at:373
 
2164
# Category starts at test group 857.
 
2165
at_banner_text_60="OVSDB -- ovsdb-server transactions (SSL sockets)"
 
2166
# Banner 61. ovsdb-server.at:412
 
2167
# Category starts at test group 881.
 
2168
at_banner_text_61="OVSDB -- transactions on transient ovsdb-server"
 
2169
# Banner 62. ovsdb-monitor.at:1
 
2170
# Category starts at test group 905.
 
2171
at_banner_text_62="OVSDB -- ovsdb-server monitors"
 
2172
# Banner 63. ovsdb-monitor.at:249
 
2173
# Category starts at test group 914.
 
2174
at_banner_text_63="ovsdb -- ovsdb-monitor monitor only some operations"
 
2175
# Banner 64. ovsdb-idl.at:1
 
2176
# Category starts at test group 919.
 
2177
at_banner_text_64="OVSDB -- interface description language (IDL)"
 
2178
# Banner 65. ovs-vsctl.at:143
 
2179
# Category starts at test group 943.
 
2180
at_banner_text_65="ovs-vsctl unit tests -- real bridges"
 
2181
# Banner 66. ovs-vsctl.at:488
 
2182
# Category starts at test group 956.
 
2183
at_banner_text_66="ovs-vsctl unit tests -- fake bridges (VLAN 9)"
 
2184
# Banner 67. ovs-vsctl.at:489
 
2185
# Category starts at test group 960.
 
2186
at_banner_text_67="ovs-vsctl unit tests -- fake bridges (VLAN 0)"
 
2187
# Banner 68. ovs-vsctl.at:535
 
2188
# Category starts at test group 967.
 
2189
at_banner_text_68="ovs-vsctl unit tests -- manager commands"
 
2190
# Banner 69. ovs-vsctl.at:561
 
2191
# Category starts at test group 968.
 
2192
at_banner_text_69="ovs-vsctl unit tests -- database commands"
 
2193
# Banner 70. ovs-monitor-ipsec.at:1
 
2194
# Category starts at test group 975.
 
2195
at_banner_text_70="ovs-monitor-ipsec"
 
2196
# Banner 71. ovs-xapi-sync.at:1
 
2197
# Category starts at test group 976.
 
2198
at_banner_text_71="ovs-xapi-sync"
 
2199
# Banner 72. interface-reconfigure.at:689
 
2200
# Category starts at test group 977.
 
2201
at_banner_text_72="interface-reconfigure"
 
2202
# Banner 73. stp.at:1
 
2203
# Category starts at test group 981.
 
2204
at_banner_text_73="Spanning Tree Protocol unit tests"
 
2205
# Banner 74. vlog.at:1
 
2206
# Category starts at test group 994.
 
2207
at_banner_text_74="vlog"
 
2208
 
 
2209
# Take any -C into account.
 
2210
if $at_change_dir ; then
 
2211
  test x != "x$at_dir" && cd "$at_dir" \
 
2212
    || as_fn_error $? "unable to change directory"
 
2213
  at_dir=`pwd`
 
2214
fi
 
2215
 
 
2216
# Load the config files for any default variable assignments.
 
2217
for at_file in atconfig atlocal
 
2218
do
 
2219
  test -r $at_file || continue
 
2220
  . ./$at_file || as_fn_error $? "invalid content: $at_file"
 
2221
done
 
2222
 
 
2223
# Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
 
2224
: "${at_top_build_prefix=$at_top_builddir}"
 
2225
 
 
2226
# Perform any assignments requested during argument parsing.
 
2227
eval "$at_debug_args"
 
2228
 
 
2229
# atconfig delivers names relative to the directory the test suite is
 
2230
# in, but the groups themselves are run in testsuite-dir/group-dir.
 
2231
if test -n "$at_top_srcdir"; then
 
2232
  builddir=../..
 
2233
  for at_dir_var in srcdir top_srcdir top_build_prefix
 
2234
  do
 
2235
    eval at_val=\$at_$at_dir_var
 
2236
    case $at_val in
 
2237
      [\\/$]* | ?:[\\/]* ) at_prefix= ;;
 
2238
      *) at_prefix=../../ ;;
 
2239
    esac
 
2240
    eval "$at_dir_var=\$at_prefix\$at_val"
 
2241
  done
 
2242
fi
 
2243
 
 
2244
## -------------------- ##
 
2245
## Directory structure. ##
 
2246
## -------------------- ##
 
2247
 
 
2248
# This is the set of directories and files used by this script
 
2249
# (non-literals are capitalized):
 
2250
#
 
2251
# TESTSUITE         - the testsuite
 
2252
# TESTSUITE.log     - summarizes the complete testsuite run
 
2253
# TESTSUITE.dir/    - created during a run, remains after -d or failed test
 
2254
# + at-groups/      - during a run: status of all groups in run
 
2255
# | + NNN/          - during a run: meta-data about test group NNN
 
2256
# | | + check-line  - location (source file and line) of current AT_CHECK
 
2257
# | | + status      - exit status of current AT_CHECK
 
2258
# | | + stdout      - stdout of current AT_CHECK
 
2259
# | | + stder1      - stderr, including trace
 
2260
# | | + stderr      - stderr, with trace filtered out
 
2261
# | | + test-source - portion of testsuite that defines group
 
2262
# | | + times       - timestamps for computing duration
 
2263
# | | + pass        - created if group passed
 
2264
# | | + xpass       - created if group xpassed
 
2265
# | | + fail        - created if group failed
 
2266
# | | + xfail       - created if group xfailed
 
2267
# | | + skip        - created if group skipped
 
2268
# + at-stop         - during a run: end the run if this file exists
 
2269
# + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
 
2270
# + 0..NNN/         - created for each group NNN, remains after -d or failed test
 
2271
# | + TESTSUITE.log - summarizes the group results
 
2272
# | + ...           - files created during the group
 
2273
 
 
2274
# The directory the whole suite works in.
 
2275
# Should be absolute to let the user `cd' at will.
 
2276
at_suite_dir=$at_dir/$as_me.dir
 
2277
# The file containing the suite ($at_dir might have changed since earlier).
 
2278
at_suite_log=$at_dir/$as_me.log
 
2279
# The directory containing helper files per test group.
 
2280
at_helper_dir=$at_suite_dir/at-groups
 
2281
# Stop file: if it exists, do not start new jobs.
 
2282
at_stop_file=$at_suite_dir/at-stop
 
2283
# The fifo used for the job dispatcher.
 
2284
at_job_fifo=$at_suite_dir/at-job-fifo
 
2285
 
 
2286
if $at_clean; then
 
2287
  test -d "$at_suite_dir" &&
 
2288
    find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
 
2289
  rm -f -r "$at_suite_dir" "$at_suite_log"
 
2290
  exit $?
 
2291
fi
 
2292
 
 
2293
# Don't take risks: use only absolute directories in PATH.
 
2294
#
 
2295
# For stand-alone test suites (ie. atconfig was not found),
 
2296
# AUTOTEST_PATH is relative to `.'.
 
2297
#
 
2298
# For embedded test suites, AUTOTEST_PATH is relative to the top level
 
2299
# of the package.  Then expand it into build/src parts, since users
 
2300
# may create executables in both places.
 
2301
AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
 
2302
at_path=
 
2303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2304
for as_dir in $AUTOTEST_PATH $PATH
 
2305
do
 
2306
  IFS=$as_save_IFS
 
2307
  test -z "$as_dir" && as_dir=.
 
2308
    test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
 
2309
case $as_dir in
 
2310
  [\\/]* | ?:[\\/]* )
 
2311
    as_fn_append at_path "$as_dir"
 
2312
    ;;
 
2313
  * )
 
2314
    if test -z "$at_top_build_prefix"; then
 
2315
      # Stand-alone test suite.
 
2316
      as_fn_append at_path "$as_dir"
 
2317
    else
 
2318
      # Embedded test suite.
 
2319
      as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
 
2320
      as_fn_append at_path "$at_top_srcdir/$as_dir"
 
2321
    fi
 
2322
    ;;
 
2323
esac
 
2324
  done
 
2325
IFS=$as_save_IFS
 
2326
 
 
2327
 
 
2328
# Now build and simplify PATH.
 
2329
#
 
2330
# There might be directories that don't exist, but don't redirect
 
2331
# builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
 
2332
at_new_path=
 
2333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2334
for as_dir in $at_path
 
2335
do
 
2336
  IFS=$as_save_IFS
 
2337
  test -z "$as_dir" && as_dir=.
 
2338
    test -d "$as_dir" || continue
 
2339
case $as_dir in
 
2340
  [\\/]* | ?:[\\/]* ) ;;
 
2341
  * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
 
2342
esac
 
2343
case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
 
2344
  *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
 
2345
  $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
 
2346
  *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
 
2347
esac
 
2348
  done
 
2349
IFS=$as_save_IFS
 
2350
 
 
2351
PATH=$at_new_path
 
2352
export PATH
 
2353
 
 
2354
# Setting up the FDs.
 
2355
 
 
2356
 
 
2357
 
 
2358
# 5 is the log file.  Not to be overwritten if `-d'.
 
2359
if $at_debug_p; then
 
2360
  at_suite_log=/dev/null
 
2361
else
 
2362
  : >"$at_suite_log"
 
2363
fi
 
2364
exec 5>>"$at_suite_log"
 
2365
 
 
2366
# Banners and logs.
 
2367
$as_echo "## ----------------------------- ##
 
2368
## openvswitch 1.4.2 test suite. ##
 
2369
## ----------------------------- ##"
 
2370
{
 
2371
  $as_echo "## ----------------------------- ##
 
2372
## openvswitch 1.4.2 test suite. ##
 
2373
## ----------------------------- ##"
 
2374
  echo
 
2375
 
 
2376
  $as_echo "$as_me: command line was:"
 
2377
  $as_echo "  \$ $0 $at_cli_args"
 
2378
  echo
 
2379
 
 
2380
  # If ChangeLog exists, list a few lines in case it might help determining
 
2381
  # the exact version.
 
2382
  if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
 
2383
    $as_echo "## ---------- ##
 
2384
## ChangeLog. ##
 
2385
## ---------- ##"
 
2386
    echo
 
2387
    sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
 
2388
    echo
 
2389
  fi
 
2390
 
 
2391
  {
 
2392
cat <<_ASUNAME
 
2393
## --------- ##
 
2394
## Platform. ##
 
2395
## --------- ##
 
2396
 
 
2397
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2398
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2399
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2400
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2401
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2402
 
 
2403
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2404
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2405
 
 
2406
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2407
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2408
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2409
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2410
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2411
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2412
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2413
 
 
2414
_ASUNAME
 
2415
 
 
2416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2417
for as_dir in $PATH
 
2418
do
 
2419
  IFS=$as_save_IFS
 
2420
  test -z "$as_dir" && as_dir=.
 
2421
    $as_echo "PATH: $as_dir"
 
2422
  done
 
2423
IFS=$as_save_IFS
 
2424
 
 
2425
}
 
2426
  echo
 
2427
 
 
2428
  # Contents of the config files.
 
2429
  for at_file in atconfig atlocal
 
2430
  do
 
2431
    test -r $at_file || continue
 
2432
    $as_echo "$as_me: $at_file:"
 
2433
    sed 's/^/| /' $at_file
 
2434
    echo
 
2435
  done
 
2436
} >&5
 
2437
 
 
2438
 
 
2439
## ------------------------- ##
 
2440
## Autotest shell functions. ##
 
2441
## ------------------------- ##
 
2442
 
 
2443
# at_fn_banner NUMBER
 
2444
# -------------------
 
2445
# Output banner NUMBER, provided the testsuite is running multiple groups and
 
2446
# this particular banner has not yet been printed.
 
2447
at_fn_banner ()
 
2448
{
 
2449
  $at_print_banners || return 0
 
2450
  eval at_banner_text=\$at_banner_text_$1
 
2451
  test "x$at_banner_text" = "x " && return 0
 
2452
  eval "at_banner_text_$1=\" \""
 
2453
  if test -z "$at_banner_text"; then
 
2454
    $at_first || echo
 
2455
  else
 
2456
    $as_echo "$as_nl$at_banner_text$as_nl"
 
2457
  fi
 
2458
} # at_fn_banner
 
2459
 
 
2460
# at_fn_check_prepare_notrace REASON LINE
 
2461
# ---------------------------------------
 
2462
# Perform AT_CHECK preparations for the command at LINE for an untraceable
 
2463
# command; REASON is the reason for disabling tracing.
 
2464
at_fn_check_prepare_notrace ()
 
2465
{
 
2466
  $at_trace_echo "Not enabling shell tracing (command contains $1)"
 
2467
  $as_echo "$2" >"$at_check_line_file"
 
2468
  at_check_trace=: at_check_filter=:
 
2469
  : >"$at_stdout"; : >"$at_stderr"
 
2470
}
 
2471
 
 
2472
# at_fn_check_prepare_trace LINE
 
2473
# ------------------------------
 
2474
# Perform AT_CHECK preparations for the command at LINE for a traceable
 
2475
# command.
 
2476
at_fn_check_prepare_trace ()
 
2477
{
 
2478
  $as_echo "$1" >"$at_check_line_file"
 
2479
  at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
 
2480
  : >"$at_stdout"; : >"$at_stderr"
 
2481
}
 
2482
 
 
2483
# at_fn_check_prepare_dynamic COMMAND LINE
 
2484
# ----------------------------------------
 
2485
# Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
 
2486
# preparation function.
 
2487
at_fn_check_prepare_dynamic ()
 
2488
{
 
2489
  case $1 in
 
2490
    *$as_nl*)
 
2491
      at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
 
2492
    *)
 
2493
      at_fn_check_prepare_trace "$2" ;;
 
2494
  esac
 
2495
}
 
2496
 
 
2497
# at_fn_filter_trace
 
2498
# ------------------
 
2499
# Remove the lines in the file "$at_stderr" generated by "set -x" and print
 
2500
# them to stderr.
 
2501
at_fn_filter_trace ()
 
2502
{
 
2503
  mv "$at_stderr" "$at_stder1"
 
2504
  grep '^ *+' "$at_stder1" >&2
 
2505
  grep -v '^ *+' "$at_stder1" >"$at_stderr"
 
2506
}
 
2507
 
 
2508
# at_fn_log_failure FILE-LIST
 
2509
# ---------------------------
 
2510
# Copy the files in the list on stdout with a "> " prefix, and exit the shell
 
2511
# with a failure exit code.
 
2512
at_fn_log_failure ()
 
2513
{
 
2514
  for file
 
2515
    do $as_echo "$file:"; sed 's/^/> /' "$file"; done
 
2516
  echo 1 > "$at_status_file"
 
2517
  exit 1
 
2518
}
 
2519
 
 
2520
# at_fn_check_skip EXIT-CODE LINE
 
2521
# -------------------------------
 
2522
# Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
 
2523
# the test group subshell with that same exit code. Use LINE in any report
 
2524
# about test failure.
 
2525
at_fn_check_skip ()
 
2526
{
 
2527
  case $1 in
 
2528
    99) echo 99 > "$at_status_file"; at_failed=:
 
2529
        $as_echo "$2: hard failure"; exit 99;;
 
2530
    77) echo 77 > "$at_status_file"; exit 77;;
 
2531
  esac
 
2532
}
 
2533
 
 
2534
# at_fn_check_status EXPECTED EXIT-CODE LINE
 
2535
# ------------------------------------------
 
2536
# Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
 
2537
# Otherwise, if it is 77 or 99, exit the test group subshell with that same
 
2538
# exit code; if it is anything else print an error message referring to LINE,
 
2539
# and fail the test.
 
2540
at_fn_check_status ()
 
2541
{
 
2542
  case $2 in
 
2543
    $1 ) ;;
 
2544
    77) echo 77 > "$at_status_file"; exit 77;;
 
2545
    99) echo 99 > "$at_status_file"; at_failed=:
 
2546
        $as_echo "$3: hard failure"; exit 99;;
 
2547
    *) $as_echo "$3: exit code was $2, expected $1"
 
2548
      at_failed=:;;
 
2549
  esac
 
2550
}
 
2551
 
 
2552
# at_fn_diff_devnull FILE
 
2553
# -----------------------
 
2554
# Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
 
2555
# invocations.
 
2556
at_fn_diff_devnull ()
 
2557
{
 
2558
  test -s "$1" || return 0
 
2559
  $at_diff "$at_devnull" "$1"
 
2560
}
 
2561
 
 
2562
# at_fn_test NUMBER
 
2563
# -----------------
 
2564
# Parse out test NUMBER from the tail of this file.
 
2565
at_fn_test ()
 
2566
{
 
2567
  eval at_sed=\$at_sed$1
 
2568
  sed "$at_sed" "$at_myself" > "$at_test_source"
 
2569
}
 
2570
 
 
2571
# at_fn_create_debugging_script
 
2572
# -----------------------------
 
2573
# Create the debugging script $at_group_dir/run which will reproduce the
 
2574
# current test group.
 
2575
at_fn_create_debugging_script ()
 
2576
{
 
2577
  {
 
2578
    echo "#! /bin/sh" &&
 
2579
    echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
 
2580
    $as_echo "cd '$at_dir'" &&
 
2581
    $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
 
2582
    echo 'exit 1'
 
2583
  } >"$at_group_dir/run" &&
 
2584
  chmod +x "$at_group_dir/run"
 
2585
}
 
2586
 
 
2587
## -------------------------------- ##
 
2588
## End of autotest shell functions. ##
 
2589
## -------------------------------- ##
 
2590
{
 
2591
  $as_echo "## ---------------- ##
 
2592
## Tested programs. ##
 
2593
## ---------------- ##"
 
2594
  echo
 
2595
} >&5
 
2596
 
 
2597
# Report what programs are being tested.
 
2598
for at_program in : $at_tested
 
2599
do
 
2600
  test "$at_program" = : && continue
 
2601
  case $at_program in
 
2602
    [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
 
2603
    * )
 
2604
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2605
for as_dir in $PATH
 
2606
do
 
2607
  IFS=$as_save_IFS
 
2608
  test -z "$as_dir" && as_dir=.
 
2609
    test -f "$as_dir/$at_program" && break
 
2610
  done
 
2611
IFS=$as_save_IFS
 
2612
 
 
2613
    at_program_=$as_dir/$at_program ;;
 
2614
  esac
 
2615
  if test -f "$at_program_"; then
 
2616
    {
 
2617
      $as_echo "$at_srcdir/testsuite.at:1: $at_program_ --version"
 
2618
      "$at_program_" --version </dev/null
 
2619
      echo
 
2620
    } >&5 2>&1
 
2621
  else
 
2622
    as_fn_error $? "cannot find $at_program" "$LINENO" 5
 
2623
  fi
 
2624
done
 
2625
 
 
2626
{
 
2627
  $as_echo "## ------------------ ##
 
2628
## Running the tests. ##
 
2629
## ------------------ ##"
 
2630
} >&5
 
2631
 
 
2632
at_start_date=`date`
 
2633
at_start_time=`date +%s 2>/dev/null`
 
2634
$as_echo "$as_me: starting at: $at_start_date" >&5
 
2635
 
 
2636
# Create the master directory if it doesn't already exist.
 
2637
as_dir="$at_suite_dir"; as_fn_mkdir_p ||
 
2638
  as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
 
2639
 
 
2640
# Can we diff with `/dev/null'?  DU 5.0 refuses.
 
2641
if diff /dev/null /dev/null >/dev/null 2>&1; then
 
2642
  at_devnull=/dev/null
 
2643
else
 
2644
  at_devnull=$at_suite_dir/devnull
 
2645
  >"$at_devnull"
 
2646
fi
 
2647
 
 
2648
# Use `diff -u' when possible.
 
2649
if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
 
2650
then
 
2651
  at_diff='diff -u'
 
2652
else
 
2653
  at_diff=diff
 
2654
fi
 
2655
 
 
2656
# Get the last needed group.
 
2657
for at_group in : $at_groups; do :; done
 
2658
 
 
2659
# Extract the start and end lines of each test group at the tail
 
2660
# of this file
 
2661
awk '
 
2662
BEGIN { FS="" }
 
2663
/^#AT_START_/ {
 
2664
  start = NR
 
2665
}
 
2666
/^#AT_STOP_/ {
 
2667
  test = substr ($ 0, 10)
 
2668
  print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
 
2669
  if (test == "'"$at_group"'") exit
 
2670
}' "$at_myself" > "$at_suite_dir/at-source-lines" &&
 
2671
. "$at_suite_dir/at-source-lines" ||
 
2672
  as_fn_error $? "cannot create test line number cache" "$LINENO" 5
 
2673
rm -f "$at_suite_dir/at-source-lines"
 
2674
 
 
2675
# Set number of jobs for `-j'; avoid more jobs than test groups.
 
2676
set X $at_groups; shift; at_max_jobs=$#
 
2677
if test $at_max_jobs -eq 0; then
 
2678
  at_jobs=1
 
2679
fi
 
2680
if test $at_jobs -ne 1 &&
 
2681
   { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
 
2682
  at_jobs=$at_max_jobs
 
2683
fi
 
2684
 
 
2685
# If parallel mode, don't output banners, don't split summary lines.
 
2686
if test $at_jobs -ne 1; then
 
2687
  at_print_banners=false
 
2688
  at_quiet=:
 
2689
fi
 
2690
 
 
2691
# Set up helper dirs.
 
2692
rm -rf "$at_helper_dir" &&
 
2693
mkdir "$at_helper_dir" &&
 
2694
cd "$at_helper_dir" &&
 
2695
{ test -z "$at_groups" || mkdir $at_groups; } ||
 
2696
as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
 
2697
 
 
2698
# Functions for running a test group.  We leave the actual
 
2699
# test group execution outside of a shell function in order
 
2700
# to avoid hitting zsh 4.x exit status bugs.
 
2701
 
 
2702
# at_fn_group_prepare
 
2703
# -------------------
 
2704
# Prepare for running a test group.
 
2705
at_fn_group_prepare ()
 
2706
{
 
2707
  # The directory for additional per-group helper files.
 
2708
  at_job_dir=$at_helper_dir/$at_group
 
2709
  # The file containing the location of the last AT_CHECK.
 
2710
  at_check_line_file=$at_job_dir/check-line
 
2711
  # The file containing the exit status of the last command.
 
2712
  at_status_file=$at_job_dir/status
 
2713
  # The files containing the output of the tested commands.
 
2714
  at_stdout=$at_job_dir/stdout
 
2715
  at_stder1=$at_job_dir/stder1
 
2716
  at_stderr=$at_job_dir/stderr
 
2717
  # The file containing the code for a test group.
 
2718
  at_test_source=$at_job_dir/test-source
 
2719
  # The file containing dates.
 
2720
  at_times_file=$at_job_dir/times
 
2721
 
 
2722
  # Be sure to come back to the top test directory.
 
2723
  cd "$at_suite_dir"
 
2724
 
 
2725
  # Clearly separate the test groups when verbose.
 
2726
  $at_first || $at_verbose echo
 
2727
 
 
2728
  at_group_normalized=$at_group
 
2729
 
 
2730
  eval 'while :; do
 
2731
    case $at_group_normalized in #(
 
2732
    '"$at_format"'*) break;;
 
2733
    esac
 
2734
    at_group_normalized=0$at_group_normalized
 
2735
  done'
 
2736
 
 
2737
 
 
2738
  # Create a fresh directory for the next test group, and enter.
 
2739
  # If one already exists, the user may have invoked ./run from
 
2740
  # within that directory; we remove the contents, but not the
 
2741
  # directory itself, so that we aren't pulling the rug out from
 
2742
  # under the shell's notion of the current directory.
 
2743
  at_group_dir=$at_suite_dir/$at_group_normalized
 
2744
  at_group_log=$at_group_dir/$as_me.log
 
2745
  if test -d "$at_group_dir"; then
 
2746
  find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
 
2747
  rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
 
2748
fi ||
 
2749
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
 
2750
$as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
 
2751
  # Be tolerant if the above `rm' was not able to remove the directory.
 
2752
  as_dir="$at_group_dir"; as_fn_mkdir_p
 
2753
 
 
2754
  echo 0 > "$at_status_file"
 
2755
 
 
2756
  # In verbose mode, append to the log file *and* show on
 
2757
  # the standard output; in quiet mode only write to the log.
 
2758
  if test -z "$at_verbose"; then
 
2759
    at_tee_pipe='tee -a "$at_group_log"'
 
2760
  else
 
2761
    at_tee_pipe='cat >> "$at_group_log"'
 
2762
  fi
 
2763
}
 
2764
 
 
2765
# at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
 
2766
# -------------------------------------------------
 
2767
# Declare the test group ORDINAL, located at LINE with group description DESC,
 
2768
# and residing under BANNER. Use PAD to align the status column.
 
2769
at_fn_group_banner ()
 
2770
{
 
2771
  at_setup_line="$2"
 
2772
  test -n "$5" && at_fn_banner $5
 
2773
  at_desc="$3"
 
2774
  case $1 in
 
2775
    [0-9])      at_desc_line="  $1: ";;
 
2776
    [0-9][0-9]) at_desc_line=" $1: " ;;
 
2777
    *)          at_desc_line="$1: "  ;;
 
2778
  esac
 
2779
  as_fn_append at_desc_line "$3$4"
 
2780
  $at_quiet $as_echo_n "$at_desc_line"
 
2781
  echo "#                             -*- compilation -*-" >> "$at_group_log"
 
2782
}
 
2783
 
 
2784
# at_fn_group_postprocess
 
2785
# -----------------------
 
2786
# Perform cleanup after running a test group.
 
2787
at_fn_group_postprocess ()
 
2788
{
 
2789
  # Be sure to come back to the suite directory, in particular
 
2790
  # since below we might `rm' the group directory we are in currently.
 
2791
  cd "$at_suite_dir"
 
2792
 
 
2793
  if test ! -f "$at_check_line_file"; then
 
2794
    sed "s/^ */$as_me: WARNING: /" <<_ATEOF
 
2795
      A failure happened in a test group before any test could be
 
2796
      run. This means that test suite is improperly designed.  Please
 
2797
      report this failure to <ovs-bugs@openvswitch.org>.
 
2798
_ATEOF
 
2799
    $as_echo "$at_setup_line" >"$at_check_line_file"
 
2800
    at_status=99
 
2801
  fi
 
2802
  $at_verbose $as_echo_n "$at_group. $at_setup_line: "
 
2803
  $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
 
2804
  case $at_xfail:$at_status in
 
2805
    yes:0)
 
2806
        at_msg="UNEXPECTED PASS"
 
2807
        at_res=xpass
 
2808
        at_errexit=$at_errexit_p
 
2809
        at_color=$at_red
 
2810
        ;;
 
2811
    no:0)
 
2812
        at_msg="ok"
 
2813
        at_res=pass
 
2814
        at_errexit=false
 
2815
        at_color=$at_grn
 
2816
        ;;
 
2817
    *:77)
 
2818
        at_msg='skipped ('`cat "$at_check_line_file"`')'
 
2819
        at_res=skip
 
2820
        at_errexit=false
 
2821
        at_color=$at_blu
 
2822
        ;;
 
2823
    no:* | *:99)
 
2824
        at_msg='FAILED ('`cat "$at_check_line_file"`')'
 
2825
        at_res=fail
 
2826
        at_errexit=$at_errexit_p
 
2827
        at_color=$at_red
 
2828
        ;;
 
2829
    yes:*)
 
2830
        at_msg='expected failure ('`cat "$at_check_line_file"`')'
 
2831
        at_res=xfail
 
2832
        at_errexit=false
 
2833
        at_color=$at_lgn
 
2834
        ;;
 
2835
  esac
 
2836
  echo "$at_res" > "$at_job_dir/$at_res"
 
2837
  # In parallel mode, output the summary line only afterwards.
 
2838
  if test $at_jobs -ne 1 && test -n "$at_verbose"; then
 
2839
    $as_echo "$at_desc_line $at_color$at_msg$at_std"
 
2840
  else
 
2841
    # Make sure there is a separator even with long titles.
 
2842
    $as_echo " $at_color$at_msg$at_std"
 
2843
  fi
 
2844
  at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
 
2845
  case $at_status in
 
2846
    0|77)
 
2847
      # $at_times_file is only available if the group succeeded.
 
2848
      # We're not including the group log, so the success message
 
2849
      # is written in the global log separately.  But we also
 
2850
      # write to the group log in case they're using -d.
 
2851
      if test -f "$at_times_file"; then
 
2852
        at_log_msg="$at_log_msg     ("`sed 1d "$at_times_file"`')'
 
2853
        rm -f "$at_times_file"
 
2854
      fi
 
2855
      $as_echo "$at_log_msg" >> "$at_group_log"
 
2856
      $as_echo "$at_log_msg" >&5
 
2857
 
 
2858
      # Cleanup the group directory, unless the user wants the files
 
2859
      # or the success was unexpected.
 
2860
      if $at_debug_p || test $at_res = xpass; then
 
2861
        at_fn_create_debugging_script
 
2862
        if test $at_res = xpass && $at_errexit; then
 
2863
          echo stop > "$at_stop_file"
 
2864
        fi
 
2865
      else
 
2866
        if test -d "$at_group_dir"; then
 
2867
          find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
 
2868
          rm -fr "$at_group_dir"
 
2869
        fi
 
2870
        rm -f "$at_test_source"
 
2871
      fi
 
2872
      ;;
 
2873
    *)
 
2874
      # Upon failure, include the log into the testsuite's global
 
2875
      # log.  The failure message is written in the group log.  It
 
2876
      # is later included in the global log.
 
2877
      $as_echo "$at_log_msg" >> "$at_group_log"
 
2878
 
 
2879
      # Upon failure, keep the group directory for autopsy, and create
 
2880
      # the debugging script.  With -e, do not start any further tests.
 
2881
      at_fn_create_debugging_script
 
2882
      if $at_errexit; then
 
2883
        echo stop > "$at_stop_file"
 
2884
      fi
 
2885
      ;;
 
2886
  esac
 
2887
}
 
2888
 
 
2889
 
 
2890
## ------------ ##
 
2891
## Driver loop. ##
 
2892
## ------------ ##
 
2893
 
 
2894
 
 
2895
if (set -m && set +m && set +b) >/dev/null 2>&1; then
 
2896
  set +b
 
2897
  at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
 
2898
else
 
2899
  at_job_control_on=: at_job_control_off=: at_job_group=
 
2900
fi
 
2901
 
 
2902
for at_signal in 1 2 15; do
 
2903
  trap 'set +x; set +e
 
2904
        $at_job_control_off
 
2905
        at_signal='"$at_signal"'
 
2906
        echo stop > "$at_stop_file"
 
2907
        trap "" $at_signal
 
2908
        at_pgids=
 
2909
        for at_pgid in `jobs -p 2>/dev/null`; do
 
2910
          at_pgids="$at_pgids $at_job_group$at_pgid"
 
2911
        done
 
2912
        test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
 
2913
        wait
 
2914
        if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
 
2915
          echo >&2
 
2916
        fi
 
2917
        at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
 
2918
        set x $at_signame
 
2919
        test 0 -gt 2 && at_signame=$at_signal
 
2920
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
 
2921
$as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
 
2922
        as_fn_arith 128 + $at_signal && exit_status=$as_val
 
2923
        as_fn_exit $exit_status' $at_signal
 
2924
done
 
2925
 
 
2926
rm -f "$at_stop_file"
 
2927
at_first=:
 
2928
 
 
2929
if test $at_jobs -ne 1 &&
 
2930
     rm -f "$at_job_fifo" &&
 
2931
     test -n "$at_job_group" &&
 
2932
     ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
 
2933
then
 
2934
  # FIFO job dispatcher.
 
2935
 
 
2936
  trap 'at_pids=
 
2937
        for at_pid in `jobs -p`; do
 
2938
          at_pids="$at_pids $at_job_group$at_pid"
 
2939
        done
 
2940
        if test -n "$at_pids"; then
 
2941
          at_sig=TSTP
 
2942
          test "${TMOUT+set}" = set && at_sig=STOP
 
2943
          kill -$at_sig $at_pids 2>/dev/null
 
2944
        fi
 
2945
        kill -STOP $$
 
2946
        test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
 
2947
 
 
2948
  echo
 
2949
  # Turn jobs into a list of numbers, starting from 1.
 
2950
  at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
 
2951
 
 
2952
  set X $at_joblist
 
2953
  shift
 
2954
  for at_group in $at_groups; do
 
2955
    $at_job_control_on 2>/dev/null
 
2956
    (
 
2957
      # Start one test group.
 
2958
      $at_job_control_off
 
2959
      if $at_first; then
 
2960
        exec 7>"$at_job_fifo"
 
2961
      else
 
2962
        exec 6<&-
 
2963
      fi
 
2964
      trap 'set +x; set +e
 
2965
            trap "" PIPE
 
2966
            echo stop > "$at_stop_file"
 
2967
            echo >&7
 
2968
            as_fn_exit 141' PIPE
 
2969
      at_fn_group_prepare
 
2970
      if cd "$at_group_dir" &&
 
2971
         at_fn_test $at_group &&
 
2972
         . "$at_test_source"
 
2973
      then :; else
 
2974
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
 
2975
$as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
 
2976
        at_failed=:
 
2977
      fi
 
2978
      at_fn_group_postprocess
 
2979
      echo >&7
 
2980
    ) &
 
2981
    $at_job_control_off
 
2982
    if $at_first; then
 
2983
      at_first=false
 
2984
      exec 6<"$at_job_fifo" 7>"$at_job_fifo"
 
2985
    fi
 
2986
    shift # Consume one token.
 
2987
    if test $# -gt 0; then :; else
 
2988
      read at_token <&6 || break
 
2989
      set x $*
 
2990
    fi
 
2991
    test -f "$at_stop_file" && break
 
2992
  done
 
2993
  exec 7>&-
 
2994
  # Read back the remaining ($at_jobs - 1) tokens.
 
2995
  set X $at_joblist
 
2996
  shift
 
2997
  if test $# -gt 0; then
 
2998
    shift
 
2999
    for at_job
 
3000
    do
 
3001
      read at_token
 
3002
    done <&6
 
3003
  fi
 
3004
  exec 6<&-
 
3005
  wait
 
3006
else
 
3007
  # Run serially, avoid forks and other potential surprises.
 
3008
  for at_group in $at_groups; do
 
3009
    at_fn_group_prepare
 
3010
    if cd "$at_group_dir" &&
 
3011
       at_fn_test $at_group &&
 
3012
       . "$at_test_source"; then :; else
 
3013
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
 
3014
$as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
 
3015
      at_failed=:
 
3016
    fi
 
3017
    at_fn_group_postprocess
 
3018
    test -f "$at_stop_file" && break
 
3019
    at_first=false
 
3020
  done
 
3021
fi
 
3022
 
 
3023
# Wrap up the test suite with summary statistics.
 
3024
cd "$at_helper_dir"
 
3025
 
 
3026
# Use ?..???? when the list must remain sorted, the faster * otherwise.
 
3027
at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
 
3028
at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
 
3029
at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
 
3030
at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
 
3031
                 echo $f; done | sed '/?/d; s,/xpass,,'`
 
3032
at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
 
3033
                echo $f; done | sed '/?/d; s,/fail,,'`
 
3034
 
 
3035
set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
 
3036
shift; at_group_count=$#
 
3037
set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
 
3038
set X $at_xfail_list; shift; at_xfail_count=$#
 
3039
set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
 
3040
set X $at_skip_list; shift; at_skip_count=$#
 
3041
 
 
3042
as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
 
3043
as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
 
3044
as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
 
3045
 
 
3046
# Back to the top directory.
 
3047
cd "$at_dir"
 
3048
rm -rf "$at_helper_dir"
 
3049
 
 
3050
# Compute the duration of the suite.
 
3051
at_stop_date=`date`
 
3052
at_stop_time=`date +%s 2>/dev/null`
 
3053
$as_echo "$as_me: ending at: $at_stop_date" >&5
 
3054
case $at_start_time,$at_stop_time in
 
3055
  [0-9]*,[0-9]*)
 
3056
    as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
 
3057
    as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
 
3058
    as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
 
3059
    as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
 
3060
    as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
 
3061
    at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
 
3062
    $as_echo "$as_me: test suite duration: $at_duration" >&5
 
3063
    ;;
 
3064
esac
 
3065
 
 
3066
echo
 
3067
$as_echo "## ------------- ##
 
3068
## Test results. ##
 
3069
## ------------- ##"
 
3070
echo
 
3071
{
 
3072
  echo
 
3073
  $as_echo "## ------------- ##
 
3074
## Test results. ##
 
3075
## ------------- ##"
 
3076
  echo
 
3077
} >&5
 
3078
 
 
3079
if test $at_run_count = 1; then
 
3080
  at_result="1 test"
 
3081
  at_were=was
 
3082
else
 
3083
  at_result="$at_run_count tests"
 
3084
  at_were=were
 
3085
fi
 
3086
if $at_errexit_p && test $at_unexpected_count != 0; then
 
3087
  if test $at_xpass_count = 1; then
 
3088
    at_result="$at_result $at_were run, one passed"
 
3089
  else
 
3090
    at_result="$at_result $at_were run, one failed"
 
3091
  fi
 
3092
  at_result="$at_result unexpectedly and inhibited subsequent tests."
 
3093
  at_color=$at_red
 
3094
else
 
3095
  # Don't you just love exponential explosion of the number of cases?
 
3096
  at_color=$at_red
 
3097
  case $at_xpass_count:$at_fail_count:$at_xfail_count in
 
3098
    # So far, so good.
 
3099
    0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
 
3100
    0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
 
3101
 
 
3102
    # Some unexpected failures
 
3103
    0:*:0) at_result="$at_result $at_were run,
 
3104
$at_fail_count failed unexpectedly." ;;
 
3105
 
 
3106
    # Some failures, both expected and unexpected
 
3107
    0:*:1) at_result="$at_result $at_were run,
 
3108
$at_total_fail_count failed ($at_xfail_count expected failure)." ;;
 
3109
    0:*:*) at_result="$at_result $at_were run,
 
3110
$at_total_fail_count failed ($at_xfail_count expected failures)." ;;
 
3111
 
 
3112
    # No unexpected failures, but some xpasses
 
3113
    *:0:*) at_result="$at_result $at_were run,
 
3114
$at_xpass_count passed unexpectedly." ;;
 
3115
 
 
3116
    # No expected failures, but failures and xpasses
 
3117
    *:1:0) at_result="$at_result $at_were run,
 
3118
$at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
 
3119
    *:*:0) at_result="$at_result $at_were run,
 
3120
$at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
 
3121
 
 
3122
    # All of them.
 
3123
    *:*:1) at_result="$at_result $at_were run,
 
3124
$at_xpass_count passed unexpectedly,
 
3125
$at_total_fail_count failed ($at_xfail_count expected failure)." ;;
 
3126
    *:*:*) at_result="$at_result $at_were run,
 
3127
$at_xpass_count passed unexpectedly,
 
3128
$at_total_fail_count failed ($at_xfail_count expected failures)." ;;
 
3129
  esac
 
3130
 
 
3131
  if test $at_skip_count = 0 && test $at_run_count -gt 1; then
 
3132
    at_result="All $at_result"
 
3133
  fi
 
3134
fi
 
3135
 
 
3136
# Now put skips in the mix.
 
3137
case $at_skip_count in
 
3138
  0) ;;
 
3139
  1) at_result="$at_result
 
3140
1 test was skipped." ;;
 
3141
  *) at_result="$at_result
 
3142
$at_skip_count tests were skipped." ;;
 
3143
esac
 
3144
 
 
3145
if test $at_unexpected_count = 0; then
 
3146
  echo "$at_color$at_result$at_std"
 
3147
  echo "$at_result" >&5
 
3148
else
 
3149
  echo "${at_color}ERROR: $at_result$at_std" >&2
 
3150
  echo "ERROR: $at_result" >&5
 
3151
  {
 
3152
    echo
 
3153
    $as_echo "## ------------------------ ##
 
3154
## Summary of the failures. ##
 
3155
## ------------------------ ##"
 
3156
 
 
3157
    # Summary of failed and skipped tests.
 
3158
    if test $at_fail_count != 0; then
 
3159
      echo "Failed tests:"
 
3160
      $SHELL "$at_myself" $at_fail_list --list
 
3161
      echo
 
3162
    fi
 
3163
    if test $at_skip_count != 0; then
 
3164
      echo "Skipped tests:"
 
3165
      $SHELL "$at_myself" $at_skip_list --list
 
3166
      echo
 
3167
    fi
 
3168
    if test $at_xpass_count != 0; then
 
3169
      echo "Unexpected passes:"
 
3170
      $SHELL "$at_myself" $at_xpass_list --list
 
3171
      echo
 
3172
    fi
 
3173
    if test $at_fail_count != 0; then
 
3174
      $as_echo "## ---------------------- ##
 
3175
## Detailed failed tests. ##
 
3176
## ---------------------- ##"
 
3177
      echo
 
3178
      for at_group in $at_fail_list
 
3179
      do
 
3180
        at_group_normalized=$at_group
 
3181
 
 
3182
  eval 'while :; do
 
3183
    case $at_group_normalized in #(
 
3184
    '"$at_format"'*) break;;
 
3185
    esac
 
3186
    at_group_normalized=0$at_group_normalized
 
3187
  done'
 
3188
 
 
3189
        cat "$at_suite_dir/$at_group_normalized/$as_me.log"
 
3190
        echo
 
3191
      done
 
3192
      echo
 
3193
    fi
 
3194
    if test -n "$at_top_srcdir"; then
 
3195
      sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
3196
## ${at_top_build_prefix}config.log ##
 
3197
_ASBOX
 
3198
      sed 's/^/| /' ${at_top_build_prefix}config.log
 
3199
      echo
 
3200
    fi
 
3201
  } >&5
 
3202
 
 
3203
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
3204
## $as_me.log was created. ##
 
3205
_ASBOX
 
3206
 
 
3207
  echo
 
3208
  if $at_debug_p; then
 
3209
    at_msg='per-test log files'
 
3210
  else
 
3211
    at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
 
3212
  fi
 
3213
  $as_echo "Please send $at_msg and all information you think might help:
 
3214
 
 
3215
   To: <ovs-bugs@openvswitch.org>
 
3216
   Subject: [openvswitch 1.4.2] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
 
3217
 
 
3218
You may investigate any problem if you feel able to do so, in which
 
3219
case the test suite provides a good starting point.  Its output may
 
3220
be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
 
3221
"
 
3222
  exit 1
 
3223
fi
 
3224
 
 
3225
exit 0
 
3226
 
 
3227
## ------------- ##
 
3228
## Actual tests. ##
 
3229
## ------------- ##
 
3230
#AT_START_1
 
3231
at_fn_group_banner 1 'lacp.at:3' \
 
3232
  "lacp - config" "                                  " 1
 
3233
at_xfail=no
 
3234
(
 
3235
  $as_echo "1. $at_setup_line: testing $at_desc ..."
 
3236
  $at_traceon
 
3237
 
 
3238
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
3239
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
3240
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
3241
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
3242
 
 
3243
      mkdir openvswitch
 
3244
   touch openvswitch/.conf.db.~lock~
 
3245
   { set +x
 
3246
$as_echo "$at_srcdir/lacp.at:4: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
3247
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "lacp.at:4"
 
3248
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
3249
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3250
at_status=$? at_failed=false
 
3251
$at_check_filter
 
3252
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3253
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3254
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:4"
 
3255
$at_failed && at_fn_log_failure
 
3256
$at_traceon; }
 
3257
 
 
3258
 
 
3259
      { set +x
 
3260
$as_echo "$at_srcdir/lacp.at:4: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
3261
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "lacp.at:4"
 
3262
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
3263
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3264
at_status=$? at_failed=false
 
3265
$at_check_filter
 
3266
echo stderr:; tee stderr <"$at_stderr"
 
3267
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3268
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:4"
 
3269
$at_failed && at_fn_log_failure
 
3270
$at_traceon; }
 
3271
 
 
3272
   { set +x
 
3273
$as_echo "$at_srcdir/lacp.at:4: sed < stderr '/vlog|INFO|opened log file/d'"
 
3274
at_fn_check_prepare_notrace 'a shell pipeline' "lacp.at:4"
 
3275
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
3276
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3277
at_status=$? at_failed=false
 
3278
$at_check_filter
 
3279
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3280
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3281
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:4"
 
3282
$at_failed && at_fn_log_failure
 
3283
$at_traceon; }
 
3284
 
 
3285
 
 
3286
 
 
3287
      { set +x
 
3288
$as_echo "$at_srcdir/lacp.at:4: ovs-vsctl --no-wait init"
 
3289
at_fn_check_prepare_trace "lacp.at:4"
 
3290
( $at_check_trace; ovs-vsctl --no-wait init
 
3291
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3292
at_status=$? at_failed=false
 
3293
$at_check_filter
 
3294
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3295
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3296
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:4"
 
3297
$at_failed && at_fn_log_failure  \
 
3298
"ovsdb-server.log"
 
3299
$at_traceon; }
 
3300
 
 
3301
 
 
3302
      { set +x
 
3303
$as_echo "$at_srcdir/lacp.at:4: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
3304
at_fn_check_prepare_trace "lacp.at:4"
 
3305
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
3306
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3307
at_status=$? at_failed=false
 
3308
$at_check_filter
 
3309
echo stderr:; tee stderr <"$at_stderr"
 
3310
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3311
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:4"
 
3312
$at_failed && at_fn_log_failure  \
 
3313
"ovsdb-server.log"
 
3314
$at_traceon; }
 
3315
 
 
3316
 
 
3317
   { set +x
 
3318
$as_echo "$at_srcdir/lacp.at:4: sed < stderr '
 
3319
/vlog|INFO|opened log file/d
 
3320
/reconnect|INFO|/d
 
3321
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
3322
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
3323
/ofproto|INFO|using datapath ID/d
 
3324
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
3325
at_fn_check_prepare_notrace 'an embedded newline' "lacp.at:4"
 
3326
( $at_check_trace; sed < stderr '
 
3327
/vlog|INFO|opened log file/d
 
3328
/reconnect|INFO|/d
 
3329
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
3330
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
3331
/ofproto|INFO|using datapath ID/d
 
3332
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
3333
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3334
at_status=$? at_failed=false
 
3335
$at_check_filter
 
3336
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3337
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3338
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:4"
 
3339
$at_failed && at_fn_log_failure  \
 
3340
"ovsdb-server.log" \
 
3341
"ovs-vswitchd.log"
 
3342
$at_traceon; }
 
3343
 
 
3344
 
 
3345
      { set +x
 
3346
$as_echo "$at_srcdir/lacp.at:4: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- \\
 
3347
        add-port br0 p1 --\\
 
3348
        set Port p1 lacp=active --\\
 
3349
        set Interface p1 type=dummy "
 
3350
at_fn_check_prepare_notrace 'an embedded newline' "lacp.at:4"
 
3351
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- \
 
3352
        add-port br0 p1 --\
 
3353
        set Port p1 lacp=active --\
 
3354
        set Interface p1 type=dummy
 
3355
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3356
at_status=$? at_failed=false
 
3357
$at_check_filter
 
3358
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3359
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3360
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:4"
 
3361
$at_failed && at_fn_log_failure  \
 
3362
"ovsdb-server.log" \
 
3363
"ovs-vswitchd.log"
 
3364
$at_traceon; }
 
3365
 
 
3366
 
 
3367
 
 
3368
{ set +x
 
3369
$as_echo "$at_srcdir/lacp.at:9: ovs-appctl lacp/show"
 
3370
at_fn_check_prepare_trace "lacp.at:9"
 
3371
( $at_check_trace; ovs-appctl lacp/show
 
3372
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3373
at_status=$? at_failed=false
 
3374
$at_check_filter
 
3375
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3376
echo stdout:; tee stdout <"$at_stdout"
 
3377
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:9"
 
3378
$at_failed && at_fn_log_failure  \
 
3379
"ovsdb-server.log" \
 
3380
"ovs-vswitchd.log"
 
3381
$at_traceon; }
 
3382
 
 
3383
{ set +x
 
3384
$as_echo "$at_srcdir/lacp.at:10: cat stdout"
 
3385
at_fn_check_prepare_trace "lacp.at:10"
 
3386
( $at_check_trace; cat stdout
 
3387
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3388
at_status=$? at_failed=false
 
3389
$at_check_filter
 
3390
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3391
echo >>"$at_stdout"; $as_echo "---- p1 ----
 
3392
        status: active negotiated
 
3393
        sys_id: aa:55:aa:55:00:00
 
3394
        sys_priority: 65535
 
3395
        aggregation key: 1
 
3396
        lacp_time: slow
 
3397
 
 
3398
slave: p1: expired attached
 
3399
        port_id: 1
 
3400
        port_priority: 65535
 
3401
 
 
3402
        actor sys_id: aa:55:aa:55:00:00
 
3403
        actor sys_priority: 65535
 
3404
        actor port_id: 1
 
3405
        actor port_priority: 65535
 
3406
        actor key: 1
 
3407
        actor state: activity synchronized collecting distributing expired
 
3408
 
 
3409
        partner sys_id: 00:00:00:00:00:00
 
3410
        partner sys_priority: 0
 
3411
        partner port_id: 0
 
3412
        partner port_priority: 0
 
3413
        partner key: 0
 
3414
        partner state: timeout
 
3415
" | \
 
3416
  $at_diff - "$at_stdout" || at_failed=:
 
3417
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:10"
 
3418
$at_failed && at_fn_log_failure  \
 
3419
"ovsdb-server.log" \
 
3420
"ovs-vswitchd.log"
 
3421
$at_traceon; }
 
3422
 
 
3423
{ set +x
 
3424
$as_echo "$at_srcdir/lacp.at:36: ovs-appctl -t ovs-vswitchd exit"
 
3425
at_fn_check_prepare_trace "lacp.at:36"
 
3426
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
3427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3428
at_status=$? at_failed=false
 
3429
$at_check_filter
 
3430
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3431
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3432
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:36"
 
3433
$at_failed && at_fn_log_failure  \
 
3434
"ovsdb-server.log" \
 
3435
"ovs-vswitchd.log"
 
3436
$at_traceon; }
 
3437
 
 
3438
   { set +x
 
3439
$as_echo "$at_srcdir/lacp.at:36: ovs-appctl -t ovsdb-server exit"
 
3440
at_fn_check_prepare_trace "lacp.at:36"
 
3441
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
3442
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3443
at_status=$? at_failed=false
 
3444
$at_check_filter
 
3445
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3446
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3447
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:36"
 
3448
$at_failed && at_fn_log_failure  \
 
3449
"ovsdb-server.log" \
 
3450
"ovs-vswitchd.log"
 
3451
$at_traceon; }
 
3452
 
 
3453
   trap '' 0
 
3454
  set +x
 
3455
  $at_times_p && times >"$at_times_file"
 
3456
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3457
read at_status <"$at_status_file"
 
3458
#AT_STOP_1
 
3459
#AT_START_2
 
3460
at_fn_group_banner 2 'lacp.at:39' \
 
3461
  "lacp - config" "                                  " 1
 
3462
at_xfail=no
 
3463
(
 
3464
  $as_echo "2. $at_setup_line: testing $at_desc ..."
 
3465
  $at_traceon
 
3466
 
 
3467
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
3468
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
3469
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
3470
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
3471
 
 
3472
      mkdir openvswitch
 
3473
   touch openvswitch/.conf.db.~lock~
 
3474
   { set +x
 
3475
$as_echo "$at_srcdir/lacp.at:40: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
3476
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "lacp.at:40"
 
3477
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
3478
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3479
at_status=$? at_failed=false
 
3480
$at_check_filter
 
3481
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3482
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3483
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:40"
 
3484
$at_failed && at_fn_log_failure
 
3485
$at_traceon; }
 
3486
 
 
3487
 
 
3488
      { set +x
 
3489
$as_echo "$at_srcdir/lacp.at:40: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
3490
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "lacp.at:40"
 
3491
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
3492
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3493
at_status=$? at_failed=false
 
3494
$at_check_filter
 
3495
echo stderr:; tee stderr <"$at_stderr"
 
3496
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3497
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:40"
 
3498
$at_failed && at_fn_log_failure
 
3499
$at_traceon; }
 
3500
 
 
3501
   { set +x
 
3502
$as_echo "$at_srcdir/lacp.at:40: sed < stderr '/vlog|INFO|opened log file/d'"
 
3503
at_fn_check_prepare_notrace 'a shell pipeline' "lacp.at:40"
 
3504
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
3505
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3506
at_status=$? at_failed=false
 
3507
$at_check_filter
 
3508
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3509
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3510
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:40"
 
3511
$at_failed && at_fn_log_failure
 
3512
$at_traceon; }
 
3513
 
 
3514
 
 
3515
 
 
3516
      { set +x
 
3517
$as_echo "$at_srcdir/lacp.at:40: ovs-vsctl --no-wait init"
 
3518
at_fn_check_prepare_trace "lacp.at:40"
 
3519
( $at_check_trace; ovs-vsctl --no-wait init
 
3520
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3521
at_status=$? at_failed=false
 
3522
$at_check_filter
 
3523
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3524
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3525
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:40"
 
3526
$at_failed && at_fn_log_failure  \
 
3527
"ovsdb-server.log"
 
3528
$at_traceon; }
 
3529
 
 
3530
 
 
3531
      { set +x
 
3532
$as_echo "$at_srcdir/lacp.at:40: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
3533
at_fn_check_prepare_trace "lacp.at:40"
 
3534
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
3535
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3536
at_status=$? at_failed=false
 
3537
$at_check_filter
 
3538
echo stderr:; tee stderr <"$at_stderr"
 
3539
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3540
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:40"
 
3541
$at_failed && at_fn_log_failure  \
 
3542
"ovsdb-server.log"
 
3543
$at_traceon; }
 
3544
 
 
3545
 
 
3546
   { set +x
 
3547
$as_echo "$at_srcdir/lacp.at:40: sed < stderr '
 
3548
/vlog|INFO|opened log file/d
 
3549
/reconnect|INFO|/d
 
3550
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
3551
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
3552
/ofproto|INFO|using datapath ID/d
 
3553
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
3554
at_fn_check_prepare_notrace 'an embedded newline' "lacp.at:40"
 
3555
( $at_check_trace; sed < stderr '
 
3556
/vlog|INFO|opened log file/d
 
3557
/reconnect|INFO|/d
 
3558
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
3559
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
3560
/ofproto|INFO|using datapath ID/d
 
3561
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
3562
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3563
at_status=$? at_failed=false
 
3564
$at_check_filter
 
3565
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3566
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3567
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:40"
 
3568
$at_failed && at_fn_log_failure  \
 
3569
"ovsdb-server.log" \
 
3570
"ovs-vswitchd.log"
 
3571
$at_traceon; }
 
3572
 
 
3573
 
 
3574
      { set +x
 
3575
$as_echo "$at_srcdir/lacp.at:40: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --         add-bond br0 bond p1 p2 --\\
 
3576
        set Port bond lacp=active \\
 
3577
            other_config:lacp-time=\"fast\" \\
 
3578
            other_config:lacp-system-id=11:22:33:44:55:66 \\
 
3579
            other_config:lacp-system-priority=54321 --\\
 
3580
        set Interface p1 type=dummy \\
 
3581
            other_config:lacp-port-id=11 \\
 
3582
            other_config:lacp-port-priority=111 \\
 
3583
            other_config:lacp-aggregation-key=3333 --\\
 
3584
        set Interface p2 type=dummy \\
 
3585
            other_config:lacp-port-id=22 \\
 
3586
            other_config:lacp-port-priority=222 \\
 
3587
            other_config:lacp-aggregation-key=3333 "
 
3588
at_fn_check_prepare_notrace 'an embedded newline' "lacp.at:40"
 
3589
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --         add-bond br0 bond p1 p2 --\
 
3590
        set Port bond lacp=active \
 
3591
            other_config:lacp-time="fast" \
 
3592
            other_config:lacp-system-id=11:22:33:44:55:66 \
 
3593
            other_config:lacp-system-priority=54321 --\
 
3594
        set Interface p1 type=dummy \
 
3595
            other_config:lacp-port-id=11 \
 
3596
            other_config:lacp-port-priority=111 \
 
3597
            other_config:lacp-aggregation-key=3333 --\
 
3598
        set Interface p2 type=dummy \
 
3599
            other_config:lacp-port-id=22 \
 
3600
            other_config:lacp-port-priority=222 \
 
3601
            other_config:lacp-aggregation-key=3333
 
3602
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3603
at_status=$? at_failed=false
 
3604
$at_check_filter
 
3605
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3606
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3607
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:40"
 
3608
$at_failed && at_fn_log_failure  \
 
3609
"ovsdb-server.log" \
 
3610
"ovs-vswitchd.log"
 
3611
$at_traceon; }
 
3612
 
 
3613
 
 
3614
 
 
3615
{ set +x
 
3616
$as_echo "$at_srcdir/lacp.at:55: ovs-appctl lacp/show"
 
3617
at_fn_check_prepare_trace "lacp.at:55"
 
3618
( $at_check_trace; ovs-appctl lacp/show
 
3619
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3620
at_status=$? at_failed=false
 
3621
$at_check_filter
 
3622
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3623
echo stdout:; tee stdout <"$at_stdout"
 
3624
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:55"
 
3625
$at_failed && at_fn_log_failure  \
 
3626
"ovsdb-server.log" \
 
3627
"ovs-vswitchd.log"
 
3628
$at_traceon; }
 
3629
 
 
3630
{ set +x
 
3631
$as_echo "$at_srcdir/lacp.at:56: sed -e 's/aggregation key:.*/aggregation key: <omitted>/' < stdout"
 
3632
at_fn_check_prepare_trace "lacp.at:56"
 
3633
( $at_check_trace; sed -e 's/aggregation key:.*/aggregation key: <omitted>/' < stdout
 
3634
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3635
at_status=$? at_failed=false
 
3636
$at_check_filter
 
3637
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3638
echo >>"$at_stdout"; $as_echo "---- bond ----
 
3639
        status: active negotiated
 
3640
        sys_id: 11:22:33:44:55:66
 
3641
        sys_priority: 54321
 
3642
        aggregation key: <omitted>
 
3643
        lacp_time: fast
 
3644
 
 
3645
slave: p1: expired attached
 
3646
        port_id: 11
 
3647
        port_priority: 111
 
3648
 
 
3649
        actor sys_id: 11:22:33:44:55:66
 
3650
        actor sys_priority: 54321
 
3651
        actor port_id: 11
 
3652
        actor port_priority: 111
 
3653
        actor key: 3333
 
3654
        actor state: activity timeout aggregation synchronized collecting distributing expired
 
3655
 
 
3656
        partner sys_id: 00:00:00:00:00:00
 
3657
        partner sys_priority: 0
 
3658
        partner port_id: 0
 
3659
        partner port_priority: 0
 
3660
        partner key: 0
 
3661
        partner state: timeout
 
3662
 
 
3663
slave: p2: expired attached
 
3664
        port_id: 22
 
3665
        port_priority: 222
 
3666
 
 
3667
        actor sys_id: 11:22:33:44:55:66
 
3668
        actor sys_priority: 54321
 
3669
        actor port_id: 22
 
3670
        actor port_priority: 222
 
3671
        actor key: 3333
 
3672
        actor state: activity timeout aggregation synchronized collecting distributing expired
 
3673
 
 
3674
        partner sys_id: 00:00:00:00:00:00
 
3675
        partner sys_priority: 0
 
3676
        partner port_id: 0
 
3677
        partner port_priority: 0
 
3678
        partner key: 0
 
3679
        partner state: timeout
 
3680
" | \
 
3681
  $at_diff - "$at_stdout" || at_failed=:
 
3682
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:56"
 
3683
$at_failed && at_fn_log_failure  \
 
3684
"ovsdb-server.log" \
 
3685
"ovs-vswitchd.log"
 
3686
$at_traceon; }
 
3687
 
 
3688
{ set +x
 
3689
$as_echo "$at_srcdir/lacp.at:100: ovs-appctl -t ovs-vswitchd exit"
 
3690
at_fn_check_prepare_trace "lacp.at:100"
 
3691
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
3692
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3693
at_status=$? at_failed=false
 
3694
$at_check_filter
 
3695
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3696
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3697
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:100"
 
3698
$at_failed && at_fn_log_failure  \
 
3699
"ovsdb-server.log" \
 
3700
"ovs-vswitchd.log"
 
3701
$at_traceon; }
 
3702
 
 
3703
   { set +x
 
3704
$as_echo "$at_srcdir/lacp.at:100: ovs-appctl -t ovsdb-server exit"
 
3705
at_fn_check_prepare_trace "lacp.at:100"
 
3706
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
3707
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3708
at_status=$? at_failed=false
 
3709
$at_check_filter
 
3710
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3711
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3712
at_fn_check_status 0 $at_status "$at_srcdir/lacp.at:100"
 
3713
$at_failed && at_fn_log_failure  \
 
3714
"ovsdb-server.log" \
 
3715
"ovs-vswitchd.log"
 
3716
$at_traceon; }
 
3717
 
 
3718
   trap '' 0
 
3719
  set +x
 
3720
  $at_times_p && times >"$at_times_file"
 
3721
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3722
read at_status <"$at_status_file"
 
3723
#AT_STOP_2
 
3724
#AT_START_3
 
3725
at_fn_group_banner 3 'library.at:3' \
 
3726
  "test flow extractor" "                            " 2
 
3727
at_xfail=no
 
3728
(
 
3729
  $as_echo "3. $at_setup_line: testing $at_desc ..."
 
3730
  $at_traceon
 
3731
 
 
3732
{ set +x
 
3733
$as_echo "$at_srcdir/library.at:4: \$PERL \`which flowgen.pl\` >/dev/null 3>flows 4>pcap"
 
3734
at_fn_check_prepare_notrace 'a `...` command substitution' "library.at:4"
 
3735
( $at_check_trace; $PERL `which flowgen.pl` >/dev/null 3>flows 4>pcap
 
3736
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3737
at_status=$? at_failed=false
 
3738
$at_check_filter
 
3739
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3740
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3741
at_fn_check_status 0 $at_status "$at_srcdir/library.at:4"
 
3742
$at_failed && at_fn_log_failure
 
3743
$at_traceon; }
 
3744
 
 
3745
{ set +x
 
3746
$as_echo "$at_srcdir/library.at:5: test-flows <flows 3<pcap"
 
3747
at_fn_check_prepare_trace "library.at:5"
 
3748
( $at_check_trace; test-flows <flows 3<pcap
 
3749
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3750
at_status=$? at_failed=false
 
3751
$at_check_filter
 
3752
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3753
echo >>"$at_stdout"; $as_echo "checked 247 packets, 0 errors
 
3754
" | \
 
3755
  $at_diff - "$at_stdout" || at_failed=:
 
3756
at_fn_check_status 0 $at_status "$at_srcdir/library.at:5"
 
3757
$at_failed && at_fn_log_failure
 
3758
$at_traceon; }
 
3759
 
 
3760
  set +x
 
3761
  $at_times_p && times >"$at_times_file"
 
3762
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3763
read at_status <"$at_status_file"
 
3764
#AT_STOP_3
 
3765
#AT_START_4
 
3766
at_fn_group_banner 4 'library.at:9' \
 
3767
  "test TCP/IP checksumming" "                       " 2
 
3768
at_xfail=no
 
3769
(
 
3770
  $as_echo "4. $at_setup_line: testing $at_desc ..."
 
3771
  $at_traceon
 
3772
 
 
3773
{ set +x
 
3774
$as_echo "$at_srcdir/library.at:10: test-csum"
 
3775
at_fn_check_prepare_trace "library.at:10"
 
3776
( $at_check_trace; test-csum
 
3777
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3778
at_status=$? at_failed=false
 
3779
$at_check_filter
 
3780
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3781
echo >>"$at_stdout"; $as_echo "....#....#....##................................#................................#
 
3782
" | \
 
3783
  $at_diff - "$at_stdout" || at_failed=:
 
3784
at_fn_check_status 0 $at_status "$at_srcdir/library.at:10"
 
3785
$at_failed && at_fn_log_failure
 
3786
$at_traceon; }
 
3787
 
 
3788
  set +x
 
3789
  $at_times_p && times >"$at_times_file"
 
3790
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3791
read at_status <"$at_status_file"
 
3792
#AT_STOP_4
 
3793
#AT_START_5
 
3794
at_fn_group_banner 5 'library.at:14' \
 
3795
  "test hash functions" "                            " 2
 
3796
at_xfail=no
 
3797
(
 
3798
  $as_echo "5. $at_setup_line: testing $at_desc ..."
 
3799
  $at_traceon
 
3800
 
 
3801
{ set +x
 
3802
$as_echo "$at_srcdir/library.at:15: test-hash"
 
3803
at_fn_check_prepare_trace "library.at:15"
 
3804
( $at_check_trace; test-hash
 
3805
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3806
at_status=$? at_failed=false
 
3807
$at_check_filter
 
3808
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3809
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3810
at_fn_check_status 0 $at_status "$at_srcdir/library.at:15"
 
3811
$at_failed && at_fn_log_failure
 
3812
$at_traceon; }
 
3813
 
 
3814
  set +x
 
3815
  $at_times_p && times >"$at_times_file"
 
3816
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3817
read at_status <"$at_status_file"
 
3818
#AT_STOP_5
 
3819
#AT_START_6
 
3820
at_fn_group_banner 6 'library.at:18' \
 
3821
  "test hash map" "                                  " 2
 
3822
at_xfail=no
 
3823
(
 
3824
  $as_echo "6. $at_setup_line: testing $at_desc ..."
 
3825
  $at_traceon
 
3826
 
 
3827
{ set +x
 
3828
$as_echo "$at_srcdir/library.at:19: test-hmap"
 
3829
at_fn_check_prepare_trace "library.at:19"
 
3830
( $at_check_trace; test-hmap
 
3831
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3832
at_status=$? at_failed=false
 
3833
$at_check_filter
 
3834
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3835
echo >>"$at_stdout"; $as_echo ".........
 
3836
" | \
 
3837
  $at_diff - "$at_stdout" || at_failed=:
 
3838
at_fn_check_status 0 $at_status "$at_srcdir/library.at:19"
 
3839
$at_failed && at_fn_log_failure
 
3840
$at_traceon; }
 
3841
 
 
3842
  set +x
 
3843
  $at_times_p && times >"$at_times_file"
 
3844
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3845
read at_status <"$at_status_file"
 
3846
#AT_STOP_6
 
3847
#AT_START_7
 
3848
at_fn_group_banner 7 'library.at:23' \
 
3849
  "test linked lists" "                              " 2
 
3850
at_xfail=no
 
3851
(
 
3852
  $as_echo "7. $at_setup_line: testing $at_desc ..."
 
3853
  $at_traceon
 
3854
 
 
3855
{ set +x
 
3856
$as_echo "$at_srcdir/library.at:24: test-list"
 
3857
at_fn_check_prepare_trace "library.at:24"
 
3858
( $at_check_trace; test-list
 
3859
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3860
at_status=$? at_failed=false
 
3861
$at_check_filter
 
3862
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3863
echo >>"$at_stdout"; $as_echo "..
 
3864
" | \
 
3865
  $at_diff - "$at_stdout" || at_failed=:
 
3866
at_fn_check_status 0 $at_status "$at_srcdir/library.at:24"
 
3867
$at_failed && at_fn_log_failure
 
3868
$at_traceon; }
 
3869
 
 
3870
  set +x
 
3871
  $at_times_p && times >"$at_times_file"
 
3872
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3873
read at_status <"$at_status_file"
 
3874
#AT_STOP_7
 
3875
#AT_START_8
 
3876
at_fn_group_banner 8 'library.at:28' \
 
3877
  "test packet library" "                            " 2
 
3878
at_xfail=no
 
3879
(
 
3880
  $as_echo "8. $at_setup_line: testing $at_desc ..."
 
3881
  $at_traceon
 
3882
 
 
3883
{ set +x
 
3884
$as_echo "$at_srcdir/library.at:29: test-packets"
 
3885
at_fn_check_prepare_trace "library.at:29"
 
3886
( $at_check_trace; test-packets
 
3887
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3888
at_status=$? at_failed=false
 
3889
$at_check_filter
 
3890
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3891
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3892
at_fn_check_status 0 $at_status "$at_srcdir/library.at:29"
 
3893
$at_failed && at_fn_log_failure
 
3894
$at_traceon; }
 
3895
 
 
3896
  set +x
 
3897
  $at_times_p && times >"$at_times_file"
 
3898
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3899
read at_status <"$at_status_file"
 
3900
#AT_STOP_8
 
3901
#AT_START_9
 
3902
at_fn_group_banner 9 'library.at:32' \
 
3903
  "test SHA-1" "                                     " 2
 
3904
at_xfail=no
 
3905
(
 
3906
  $as_echo "9. $at_setup_line: testing $at_desc ..."
 
3907
  $at_traceon
 
3908
 
 
3909
{ set +x
 
3910
$as_echo "$at_srcdir/library.at:33: test-sha1"
 
3911
at_fn_check_prepare_trace "library.at:33"
 
3912
( $at_check_trace; test-sha1
 
3913
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3914
at_status=$? at_failed=false
 
3915
$at_check_filter
 
3916
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3917
echo >>"$at_stdout"; $as_echo ".........
 
3918
" | \
 
3919
  $at_diff - "$at_stdout" || at_failed=:
 
3920
at_fn_check_status 0 $at_status "$at_srcdir/library.at:33"
 
3921
$at_failed && at_fn_log_failure
 
3922
$at_traceon; }
 
3923
 
 
3924
  set +x
 
3925
  $at_times_p && times >"$at_times_file"
 
3926
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3927
read at_status <"$at_status_file"
 
3928
#AT_STOP_9
 
3929
#AT_START_10
 
3930
at_fn_group_banner 10 'library.at:37' \
 
3931
  "test type properties" "                           " 2
 
3932
at_xfail=no
 
3933
(
 
3934
  $as_echo "10. $at_setup_line: testing $at_desc ..."
 
3935
  $at_traceon
 
3936
 
 
3937
{ set +x
 
3938
$as_echo "$at_srcdir/library.at:38: test-type-props"
 
3939
at_fn_check_prepare_trace "library.at:38"
 
3940
( $at_check_trace; test-type-props
 
3941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3942
at_status=$? at_failed=false
 
3943
$at_check_filter
 
3944
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3945
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
3946
at_fn_check_status 0 $at_status "$at_srcdir/library.at:38"
 
3947
$at_failed && at_fn_log_failure
 
3948
$at_traceon; }
 
3949
 
 
3950
  set +x
 
3951
  $at_times_p && times >"$at_times_file"
 
3952
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3953
read at_status <"$at_status_file"
 
3954
#AT_STOP_10
 
3955
#AT_START_11
 
3956
at_fn_group_banner 11 'library.at:41' \
 
3957
  "test strtok_r bug fix" "                          " 2
 
3958
at_xfail=no
 
3959
(
 
3960
  $as_echo "11. $at_setup_line: testing $at_desc ..."
 
3961
  $at_traceon
 
3962
 
 
3963
{ set +x
 
3964
$as_echo "$at_srcdir/library.at:42: test-strtok_r"
 
3965
at_fn_check_prepare_trace "library.at:42"
 
3966
( $at_check_trace; test-strtok_r
 
3967
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3968
at_status=$? at_failed=false
 
3969
$at_check_filter
 
3970
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
3971
echo >>"$at_stdout"; $as_echo "NULL NULL
 
3972
" | \
 
3973
  $at_diff - "$at_stdout" || at_failed=:
 
3974
at_fn_check_status 0 $at_status "$at_srcdir/library.at:42"
 
3975
$at_failed && at_fn_log_failure
 
3976
$at_traceon; }
 
3977
 
 
3978
  set +x
 
3979
  $at_times_p && times >"$at_times_file"
 
3980
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
3981
read at_status <"$at_status_file"
 
3982
#AT_STOP_11
 
3983
#AT_START_12
 
3984
at_fn_group_banner 12 'library.at:46' \
 
3985
  "test byte order conversion" "                     " 2
 
3986
at_xfail=no
 
3987
(
 
3988
  $as_echo "12. $at_setup_line: testing $at_desc ..."
 
3989
  $at_traceon
 
3990
 
 
3991
 
 
3992
{ set +x
 
3993
$as_echo "$at_srcdir/library.at:48: test-byte-order"
 
3994
at_fn_check_prepare_trace "library.at:48"
 
3995
( $at_check_trace; test-byte-order
 
3996
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
3997
at_status=$? at_failed=false
 
3998
$at_check_filter
 
3999
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4000
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4001
at_fn_check_status 0 $at_status "$at_srcdir/library.at:48"
 
4002
$at_failed && at_fn_log_failure
 
4003
$at_traceon; }
 
4004
 
 
4005
  set +x
 
4006
  $at_times_p && times >"$at_times_file"
 
4007
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4008
read at_status <"$at_status_file"
 
4009
#AT_STOP_12
 
4010
#AT_START_13
 
4011
at_fn_group_banner 13 'library.at:51' \
 
4012
  "test random number generator" "                   " 2
 
4013
at_xfail=no
 
4014
(
 
4015
  $as_echo "13. $at_setup_line: testing $at_desc ..."
 
4016
  $at_traceon
 
4017
 
 
4018
{ set +x
 
4019
$as_echo "$at_srcdir/library.at:52: test-random"
 
4020
at_fn_check_prepare_trace "library.at:52"
 
4021
( $at_check_trace; test-random
 
4022
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4023
at_status=$? at_failed=false
 
4024
$at_check_filter
 
4025
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4026
echo >>"$at_stdout"; $as_echo "average=7fa2014f
 
4027
 
 
4028
bit      0     1
 
4029
  0  4946  5054
 
4030
  1  4939  5061
 
4031
  2  4947  5053
 
4032
  3  4935  5065
 
4033
  4  5004  4996
 
4034
  5  4998  5002
 
4035
  6  5062  4938
 
4036
  7  5009  4991
 
4037
  8  5001  4999
 
4038
  9  5022  4978
 
4039
 10  5006  4994
 
4040
 11  5039  4961
 
4041
 12  4940  5060
 
4042
 13  5048  4952
 
4043
 14  4930  5070
 
4044
 15  4973  5027
 
4045
 16  4954  5046
 
4046
 17  5043  4957
 
4047
 18  5020  4980
 
4048
 19  5104  4896
 
4049
 20  5051  4949
 
4050
 21  5003  4997
 
4051
 22  5110  4890
 
4052
 23  4950  5050
 
4053
 24  5016  4984
 
4054
 25  5019  4981
 
4055
 26  4948  5052
 
4056
 27  4995  5005
 
4057
 28  4995  5005
 
4058
 29  4969  5031
 
4059
 30  5109  4891
 
4060
 31  4984  5016
 
4061
(expected values are 5000)
 
4062
 
 
4063
nibble   0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15
 
4064
     0 640 589 610 613 588 632 650 613 582 646 627 640 612 650 637 671
 
4065
     1 626 642 663 620 630 609 617 602 615 638 614 644 641 597 598 644
 
4066
     2 667 611 617 613 609 629 642 651 604 641 594 659 651 610 617 585
 
4067
     3 621 662 594 605 618 644 616 613 613 616 611 608 614 660 653 652
 
4068
     4 641 668 621 664 619 624 625 642 624 629 607 566 599 639 618 614
 
4069
     5 666 629 620 621 581 615 598 620 630 651 671 622 628 603 657 588
 
4070
     6 620 640 621 606 603 644 628 633 620 597 653 591 637 658 634 615
 
4071
     7 636 645 679 593 598 609 612 612 623 626 638 669 603 629 606 622
 
4072
(expected values are 625)
 
4073
" | \
 
4074
  $at_diff - "$at_stdout" || at_failed=:
 
4075
at_fn_check_status 0 $at_status "$at_srcdir/library.at:52"
 
4076
$at_failed && at_fn_log_failure
 
4077
$at_traceon; }
 
4078
 
 
4079
  set +x
 
4080
  $at_times_p && times >"$at_times_file"
 
4081
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4082
read at_status <"$at_status_file"
 
4083
#AT_STOP_13
 
4084
#AT_START_14
 
4085
at_fn_group_banner 14 'library.at:103' \
 
4086
  "test log_2_floor" "                               " 2
 
4087
at_xfail=no
 
4088
(
 
4089
  $as_echo "14. $at_setup_line: testing $at_desc ..."
 
4090
  $at_traceon
 
4091
 
 
4092
{ set +x
 
4093
$as_echo "$at_srcdir/library.at:104: test-util"
 
4094
at_fn_check_prepare_trace "library.at:104"
 
4095
( $at_check_trace; test-util
 
4096
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4097
at_status=$? at_failed=false
 
4098
$at_check_filter
 
4099
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4100
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4101
at_fn_check_status 0 $at_status "$at_srcdir/library.at:104"
 
4102
$at_failed && at_fn_log_failure
 
4103
$at_traceon; }
 
4104
 
 
4105
  set +x
 
4106
  $at_times_p && times >"$at_times_file"
 
4107
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4108
read at_status <"$at_status_file"
 
4109
#AT_STOP_14
 
4110
#AT_START_15
 
4111
at_fn_group_banner 15 'library.at:107' \
 
4112
  "test unix socket -- short pathname" "             " 2
 
4113
at_xfail=no
 
4114
(
 
4115
  $as_echo "15. $at_setup_line: testing $at_desc ..."
 
4116
  $at_traceon
 
4117
 
 
4118
{ set +x
 
4119
$as_echo "$at_srcdir/library.at:108: test-unix-socket x"
 
4120
at_fn_check_prepare_trace "library.at:108"
 
4121
( $at_check_trace; test-unix-socket x
 
4122
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4123
at_status=$? at_failed=false
 
4124
$at_check_filter
 
4125
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4126
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4127
at_fn_check_status 0 $at_status "$at_srcdir/library.at:108"
 
4128
$at_failed && at_fn_log_failure
 
4129
$at_traceon; }
 
4130
 
 
4131
  set +x
 
4132
  $at_times_p && times >"$at_times_file"
 
4133
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4134
read at_status <"$at_status_file"
 
4135
#AT_STOP_15
 
4136
#AT_START_16
 
4137
at_fn_group_banner 16 'library.at:116' \
 
4138
  "test unix socket -- long pathname" "              " 2
 
4139
at_xfail=no
 
4140
(
 
4141
  $as_echo "16. $at_setup_line: testing $at_desc ..."
 
4142
  $at_traceon
 
4143
 
 
4144
{ set +x
 
4145
$as_echo "$at_srcdir/library.at:117:     case \`uname\` in       *[lL]inux*)
 
4146
        exit 0
 
4147
        ;;       *)
 
4148
                exit 77
 
4149
        ;;
 
4150
    esac
 
4151
"
 
4152
at_fn_check_prepare_notrace 'a `...` command substitution' "library.at:117"
 
4153
( $at_check_trace;     case `uname` in       *[lL]inux*)
 
4154
        exit 0
 
4155
        ;;       *)
 
4156
                exit 77
 
4157
        ;;
 
4158
    esac
 
4159
 
 
4160
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4161
at_status=$? at_failed=false
 
4162
$at_check_filter
 
4163
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4164
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4165
at_fn_check_status 0 $at_status "$at_srcdir/library.at:117"
 
4166
$at_failed && at_fn_log_failure
 
4167
$at_traceon; }
 
4168
 
 
4169
mkdir 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
 
4170
cd 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
 
4171
{ set +x
 
4172
$as_echo "$at_srcdir/library.at:131: test-unix-socket ../012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/socket socket"
 
4173
at_fn_check_prepare_trace "library.at:131"
 
4174
( $at_check_trace; test-unix-socket ../012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/socket socket
 
4175
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4176
at_status=$? at_failed=false
 
4177
$at_check_filter
 
4178
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4179
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4180
at_fn_check_status 0 $at_status "$at_srcdir/library.at:131"
 
4181
$at_failed && at_fn_log_failure
 
4182
$at_traceon; }
 
4183
 
 
4184
  set +x
 
4185
  $at_times_p && times >"$at_times_file"
 
4186
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4187
read at_status <"$at_status_file"
 
4188
#AT_STOP_16
 
4189
#AT_START_17
 
4190
at_fn_group_banner 17 'bundle.at:10' \
 
4191
  "hrw bundle link selection" "                      " 3
 
4192
at_xfail=no
 
4193
(
 
4194
  $as_echo "17. $at_setup_line: testing $at_desc ..."
 
4195
  $at_traceon
 
4196
 
 
4197
{ set +x
 
4198
$as_echo "$at_srcdir/bundle.at:11: test-bundle 'symmetric_l4,60,hrw,ofport,NXM_NX_REG0[],slaves:1,2,3,4,5'"
 
4199
at_fn_check_prepare_trace "bundle.at:11"
 
4200
( $at_check_trace; test-bundle 'symmetric_l4,60,hrw,ofport,NXM_NX_REG0[],slaves:1,2,3,4,5'
 
4201
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4202
at_status=$? at_failed=false
 
4203
$at_check_filter
 
4204
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4205
echo stdout:; cat "$at_stdout"
 
4206
at_fn_check_status 0 $at_status "$at_srcdir/bundle.at:11"
 
4207
$at_failed && at_fn_log_failure
 
4208
$at_traceon; }
 
4209
 
 
4210
# 100000: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4211
# 110000: disruption=0.50 (perfect=0.50) 0.50 0.50 0.00 0.00 0.00 0.00
 
4212
# 010000: disruption=0.50 (perfect=0.50) 0.00 1.00 0.00 0.00 0.00 0.00
 
4213
# 011000: disruption=0.50 (perfect=0.50) 0.00 0.50 0.50 0.00 0.00 0.00
 
4214
# 111000: disruption=0.33 (perfect=0.33) 0.33 0.33 0.34 0.00 0.00 0.00
 
4215
# 101000: disruption=0.33 (perfect=0.33) 0.50 0.00 0.50 0.00 0.00 0.00
 
4216
# 001000: disruption=0.50 (perfect=0.50) 0.00 0.00 1.00 0.00 0.00 0.00
 
4217
# 001100: disruption=0.50 (perfect=0.50) 0.00 0.00 0.50 0.50 0.00 0.00
 
4218
# 101100: disruption=0.33 (perfect=0.33) 0.33 0.00 0.34 0.33 0.00 0.00
 
4219
# 111100: disruption=0.25 (perfect=0.25) 0.25 0.25 0.25 0.25 0.00 0.00
 
4220
# 011100: disruption=0.25 (perfect=0.25) 0.00 0.33 0.33 0.33 0.00 0.00
 
4221
# 010100: disruption=0.33 (perfect=0.33) 0.00 0.50 0.00 0.50 0.00 0.00
 
4222
# 110100: disruption=0.33 (perfect=0.33) 0.33 0.33 0.00 0.34 0.00 0.00
 
4223
# 100100: disruption=0.33 (perfect=0.33) 0.50 0.00 0.00 0.50 0.00 0.00
 
4224
# 000100: disruption=0.50 (perfect=0.50) 0.00 0.00 0.00 1.00 0.00 0.00
 
4225
# 000110: disruption=0.50 (perfect=0.50) 0.00 0.00 0.00 0.50 0.50 0.00
 
4226
# 100110: disruption=0.33 (perfect=0.33) 0.33 0.00 0.00 0.33 0.33 0.00
 
4227
# 110110: disruption=0.25 (perfect=0.25) 0.25 0.25 0.00 0.25 0.25 0.00
 
4228
# 010110: disruption=0.25 (perfect=0.25) 0.00 0.34 0.00 0.33 0.33 0.00
 
4229
# 011110: disruption=0.25 (perfect=0.25) 0.00 0.25 0.25 0.25 0.25 0.00
 
4230
# 111110: disruption=0.20 (perfect=0.20) 0.20 0.20 0.20 0.20 0.20 0.00
 
4231
# 101110: disruption=0.20 (perfect=0.20) 0.25 0.00 0.25 0.25 0.25 0.00
 
4232
# 001110: disruption=0.25 (perfect=0.25) 0.00 0.00 0.34 0.33 0.33 0.00
 
4233
# 001010: disruption=0.33 (perfect=0.33) 0.00 0.00 0.50 0.00 0.50 0.00
 
4234
# 101010: disruption=0.33 (perfect=0.33) 0.33 0.00 0.34 0.00 0.33 0.00
 
4235
# 111010: disruption=0.25 (perfect=0.25) 0.25 0.25 0.25 0.00 0.25 0.00
 
4236
# 011010: disruption=0.25 (perfect=0.25) 0.00 0.33 0.34 0.00 0.33 0.00
 
4237
# 010010: disruption=0.34 (perfect=0.33) 0.00 0.50 0.00 0.00 0.50 0.00
 
4238
# 110010: disruption=0.33 (perfect=0.33) 0.33 0.33 0.00 0.00 0.33 0.00
 
4239
# 100010: disruption=0.33 (perfect=0.33) 0.50 0.00 0.00 0.00 0.50 0.00
 
4240
# 000010: disruption=0.50 (perfect=0.50) 0.00 0.00 0.00 0.00 1.00 0.00
 
4241
# 000011: disruption=0.50 (perfect=0.50) 0.00 0.00 0.00 0.00 0.50 0.50
 
4242
# 100011: disruption=0.33 (perfect=0.33) 0.33 0.00 0.00 0.00 0.33 0.33
 
4243
# 110011: disruption=0.25 (perfect=0.25) 0.25 0.25 0.00 0.00 0.25 0.25
 
4244
# 010011: disruption=0.25 (perfect=0.25) 0.00 0.33 0.00 0.00 0.33 0.33
 
4245
# 011011: disruption=0.25 (perfect=0.25) 0.00 0.25 0.25 0.00 0.25 0.25
 
4246
# 111011: disruption=0.20 (perfect=0.20) 0.20 0.20 0.20 0.00 0.20 0.20
 
4247
# 101011: disruption=0.20 (perfect=0.20) 0.25 0.00 0.25 0.00 0.25 0.25
 
4248
# 001011: disruption=0.25 (perfect=0.25) 0.00 0.00 0.34 0.00 0.33 0.33
 
4249
# 001111: disruption=0.25 (perfect=0.25) 0.00 0.00 0.25 0.25 0.25 0.25
 
4250
# 101111: disruption=0.20 (perfect=0.20) 0.20 0.00 0.20 0.20 0.20 0.20
 
4251
# 111111: disruption=0.17 (perfect=0.17) 0.17 0.17 0.17 0.17 0.17 0.17
 
4252
# 011111: disruption=0.17 (perfect=0.17) 0.00 0.20 0.20 0.20 0.20 0.20
 
4253
# 010111: disruption=0.20 (perfect=0.20) 0.00 0.25 0.00 0.25 0.25 0.25
 
4254
# 110111: disruption=0.20 (perfect=0.20) 0.20 0.20 0.00 0.20 0.20 0.20
 
4255
# 100111: disruption=0.20 (perfect=0.20) 0.25 0.00 0.00 0.25 0.25 0.25
 
4256
# 000111: disruption=0.25 (perfect=0.25) 0.00 0.00 0.00 0.33 0.33 0.33
 
4257
# 000101: disruption=0.33 (perfect=0.33) 0.00 0.00 0.00 0.50 0.00 0.50
 
4258
# 100101: disruption=0.33 (perfect=0.33) 0.33 0.00 0.00 0.33 0.00 0.33
 
4259
# 110101: disruption=0.25 (perfect=0.25) 0.25 0.25 0.00 0.25 0.00 0.25
 
4260
# 010101: disruption=0.25 (perfect=0.25) 0.00 0.33 0.00 0.33 0.00 0.33
 
4261
# 011101: disruption=0.25 (perfect=0.25) 0.00 0.25 0.25 0.25 0.00 0.25
 
4262
# 111101: disruption=0.20 (perfect=0.20) 0.20 0.20 0.20 0.20 0.00 0.20
 
4263
# 101101: disruption=0.20 (perfect=0.20) 0.25 0.00 0.25 0.25 0.00 0.25
 
4264
# 001101: disruption=0.25 (perfect=0.25) 0.00 0.00 0.33 0.33 0.00 0.33
 
4265
# 001001: disruption=0.33 (perfect=0.33) 0.00 0.00 0.50 0.00 0.00 0.50
 
4266
# 101001: disruption=0.33 (perfect=0.33) 0.33 0.00 0.33 0.00 0.00 0.33
 
4267
# 111001: disruption=0.25 (perfect=0.25) 0.25 0.25 0.25 0.00 0.00 0.25
 
4268
# 011001: disruption=0.25 (perfect=0.25) 0.00 0.33 0.34 0.00 0.00 0.33
 
4269
# 010001: disruption=0.34 (perfect=0.33) 0.00 0.50 0.00 0.00 0.00 0.50
 
4270
# 110001: disruption=0.33 (perfect=0.33) 0.33 0.33 0.00 0.00 0.00 0.34
 
4271
# 100001: disruption=0.33 (perfect=0.33) 0.50 0.00 0.00 0.00 0.00 0.50
 
4272
# 000001: disruption=0.50 (perfect=0.50) 0.00 0.00 0.00 0.00 0.00 1.00
 
4273
# 000000: disruption=1.00 (perfect=1.00) 0.00 0.00 0.00 0.00 0.00 0.00
 
4274
# 100000: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4275
  set +x
 
4276
  $at_times_p && times >"$at_times_file"
 
4277
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4278
read at_status <"$at_status_file"
 
4279
#AT_STOP_17
 
4280
#AT_START_18
 
4281
at_fn_group_banner 18 'bundle.at:80' \
 
4282
  "active_backup bundle link selection" "            " 3
 
4283
at_xfail=no
 
4284
(
 
4285
  $as_echo "18. $at_setup_line: testing $at_desc ..."
 
4286
  $at_traceon
 
4287
 
 
4288
{ set +x
 
4289
$as_echo "$at_srcdir/bundle.at:81: test-bundle 'symmetric_l4,60,active_backup,ofport,NXM_NX_REG0[],slaves:1,2,3,4,5,6'"
 
4290
at_fn_check_prepare_trace "bundle.at:81"
 
4291
( $at_check_trace; test-bundle 'symmetric_l4,60,active_backup,ofport,NXM_NX_REG0[],slaves:1,2,3,4,5,6'
 
4292
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4293
at_status=$? at_failed=false
 
4294
$at_check_filter
 
4295
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4296
echo >>"$at_stdout"; $as_echo "100000: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4297
110000: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4298
010000: disruption=1.00 (perfect=1.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4299
011000: disruption=0.00 (perfect=0.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4300
111000: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4301
101000: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4302
001000: disruption=1.00 (perfect=1.00) 0.00 0.00 1.00 0.00 0.00 0.00
 
4303
001100: disruption=0.00 (perfect=0.00) 0.00 0.00 1.00 0.00 0.00 0.00
 
4304
101100: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4305
111100: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4306
011100: disruption=1.00 (perfect=1.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4307
010100: disruption=0.00 (perfect=0.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4308
110100: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4309
100100: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4310
000100: disruption=1.00 (perfect=1.00) 0.00 0.00 0.00 1.00 0.00 0.00
 
4311
000110: disruption=0.00 (perfect=0.00) 0.00 0.00 0.00 1.00 0.00 0.00
 
4312
100110: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4313
110110: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4314
010110: disruption=1.00 (perfect=1.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4315
011110: disruption=0.00 (perfect=0.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4316
111110: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4317
101110: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4318
001110: disruption=1.00 (perfect=1.00) 0.00 0.00 1.00 0.00 0.00 0.00
 
4319
001010: disruption=0.00 (perfect=0.00) 0.00 0.00 1.00 0.00 0.00 0.00
 
4320
101010: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4321
111010: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4322
011010: disruption=1.00 (perfect=1.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4323
010010: disruption=0.00 (perfect=0.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4324
110010: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4325
100010: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4326
000010: disruption=1.00 (perfect=1.00) 0.00 0.00 0.00 0.00 1.00 0.00
 
4327
000011: disruption=0.00 (perfect=0.00) 0.00 0.00 0.00 0.00 1.00 0.00
 
4328
100011: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4329
110011: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4330
010011: disruption=1.00 (perfect=1.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4331
011011: disruption=0.00 (perfect=0.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4332
111011: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4333
101011: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4334
001011: disruption=1.00 (perfect=1.00) 0.00 0.00 1.00 0.00 0.00 0.00
 
4335
001111: disruption=0.00 (perfect=0.00) 0.00 0.00 1.00 0.00 0.00 0.00
 
4336
101111: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4337
111111: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4338
011111: disruption=1.00 (perfect=1.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4339
010111: disruption=0.00 (perfect=0.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4340
110111: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4341
100111: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4342
000111: disruption=1.00 (perfect=1.00) 0.00 0.00 0.00 1.00 0.00 0.00
 
4343
000101: disruption=0.00 (perfect=0.00) 0.00 0.00 0.00 1.00 0.00 0.00
 
4344
100101: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4345
110101: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4346
010101: disruption=1.00 (perfect=1.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4347
011101: disruption=0.00 (perfect=0.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4348
111101: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4349
101101: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4350
001101: disruption=1.00 (perfect=1.00) 0.00 0.00 1.00 0.00 0.00 0.00
 
4351
001001: disruption=0.00 (perfect=0.00) 0.00 0.00 1.00 0.00 0.00 0.00
 
4352
101001: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4353
111001: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4354
011001: disruption=1.00 (perfect=1.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4355
010001: disruption=0.00 (perfect=0.00) 0.00 1.00 0.00 0.00 0.00 0.00
 
4356
110001: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4357
100001: disruption=0.00 (perfect=0.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4358
000001: disruption=1.00 (perfect=1.00) 0.00 0.00 0.00 0.00 0.00 1.00
 
4359
000000: disruption=1.00 (perfect=1.00) 0.00 0.00 0.00 0.00 0.00 0.00
 
4360
100000: disruption=1.00 (perfect=1.00) 1.00 0.00 0.00 0.00 0.00 0.00
 
4361
" | \
 
4362
  $at_diff - "$at_stdout" || at_failed=:
 
4363
at_fn_check_status 0 $at_status "$at_srcdir/bundle.at:81"
 
4364
$at_failed && at_fn_log_failure
 
4365
$at_traceon; }
 
4366
 
 
4367
  set +x
 
4368
  $at_times_p && times >"$at_times_file"
 
4369
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4370
read at_status <"$at_status_file"
 
4371
#AT_STOP_18
 
4372
#AT_START_19
 
4373
at_fn_group_banner 19 'bundle.at:151' \
 
4374
  "hrw bundle single link selection" "               " 3
 
4375
at_xfail=no
 
4376
(
 
4377
  $as_echo "19. $at_setup_line: testing $at_desc ..."
 
4378
  $at_traceon
 
4379
 
 
4380
{ set +x
 
4381
$as_echo "$at_srcdir/bundle.at:152: test-bundle 'symmetric_l4,60,hrw,ofport,NXM_NX_REG0[],slaves:1'"
 
4382
at_fn_check_prepare_trace "bundle.at:152"
 
4383
( $at_check_trace; test-bundle 'symmetric_l4,60,hrw,ofport,NXM_NX_REG0[],slaves:1'
 
4384
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4385
at_status=$? at_failed=false
 
4386
$at_check_filter
 
4387
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4388
echo stdout:; cat "$at_stdout"
 
4389
at_fn_check_status 0 $at_status "$at_srcdir/bundle.at:152"
 
4390
$at_failed && at_fn_log_failure
 
4391
$at_traceon; }
 
4392
 
 
4393
# 1: disruption=1.00 (perfect=1.00) 1.00
 
4394
# 0: disruption=1.00 (perfect=1.00) 0.00
 
4395
# 1: disruption=1.00 (perfect=1.00) 1.00
 
4396
  set +x
 
4397
  $at_times_p && times >"$at_times_file"
 
4398
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4399
read at_status <"$at_status_file"
 
4400
#AT_STOP_19
 
4401
#AT_START_20
 
4402
at_fn_group_banner 20 'bundle.at:159' \
 
4403
  "hrw bundle no link selection" "                   " 3
 
4404
at_xfail=no
 
4405
(
 
4406
  $as_echo "20. $at_setup_line: testing $at_desc ..."
 
4407
  $at_traceon
 
4408
 
 
4409
{ set +x
 
4410
$as_echo "$at_srcdir/bundle.at:160: test-bundle 'symmetric_l4,60,hrw,ofport,NXM_NX_REG0[],slaves:'"
 
4411
at_fn_check_prepare_trace "bundle.at:160"
 
4412
( $at_check_trace; test-bundle 'symmetric_l4,60,hrw,ofport,NXM_NX_REG0[],slaves:'
 
4413
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4414
at_status=$? at_failed=false
 
4415
$at_check_filter
 
4416
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4417
echo stdout:; cat "$at_stdout"
 
4418
at_fn_check_status 0 $at_status "$at_srcdir/bundle.at:160"
 
4419
$at_failed && at_fn_log_failure
 
4420
$at_traceon; }
 
4421
 
 
4422
  set +x
 
4423
  $at_times_p && times >"$at_times_file"
 
4424
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4425
read at_status <"$at_status_file"
 
4426
#AT_STOP_20
 
4427
#AT_START_21
 
4428
at_fn_group_banner 21 'bundle.at:166' \
 
4429
  "bundle action missing argument" "                 " 3
 
4430
at_xfail=no
 
4431
(
 
4432
  $as_echo "21. $at_setup_line: testing $at_desc ..."
 
4433
  $at_traceon
 
4434
 
 
4435
{ set +x
 
4436
$as_echo "$at_srcdir/bundle.at:167: ovs-ofctl parse-flow actions=bundle"
 
4437
at_fn_check_prepare_trace "bundle.at:167"
 
4438
( $at_check_trace; ovs-ofctl parse-flow actions=bundle
 
4439
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4440
at_status=$? at_failed=false
 
4441
$at_check_filter
 
4442
echo >>"$at_stderr"; $as_echo "ovs-ofctl: : not enough arguments to bundle action
 
4443
" | \
 
4444
  $at_diff - "$at_stderr" || at_failed=:
 
4445
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4446
at_fn_check_status 1 $at_status "$at_srcdir/bundle.at:167"
 
4447
$at_failed && at_fn_log_failure
 
4448
$at_traceon; }
 
4449
 
 
4450
  set +x
 
4451
  $at_times_p && times >"$at_times_file"
 
4452
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4453
read at_status <"$at_status_file"
 
4454
#AT_STOP_21
 
4455
#AT_START_22
 
4456
at_fn_group_banner 22 'bundle.at:172' \
 
4457
  "bundle action bad fields" "                       " 3
 
4458
at_xfail=no
 
4459
(
 
4460
  $as_echo "22. $at_setup_line: testing $at_desc ..."
 
4461
  $at_traceon
 
4462
 
 
4463
{ set +x
 
4464
$as_echo "$at_srcdir/bundle.at:173: ovs-ofctl parse-flow 'actions=bundle(xyzzy,60,hrw,ofport,slaves:1,2))'"
 
4465
at_fn_check_prepare_trace "bundle.at:173"
 
4466
( $at_check_trace; ovs-ofctl parse-flow 'actions=bundle(xyzzy,60,hrw,ofport,slaves:1,2))'
 
4467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4468
at_status=$? at_failed=false
 
4469
$at_check_filter
 
4470
echo >>"$at_stderr"; $as_echo "ovs-ofctl: xyzzy,60,hrw,ofport,slaves:1,2: unknown fields \`xyzzy'
 
4471
" | \
 
4472
  $at_diff - "$at_stderr" || at_failed=:
 
4473
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4474
at_fn_check_status 1 $at_status "$at_srcdir/bundle.at:173"
 
4475
$at_failed && at_fn_log_failure
 
4476
$at_traceon; }
 
4477
 
 
4478
  set +x
 
4479
  $at_times_p && times >"$at_times_file"
 
4480
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4481
read at_status <"$at_status_file"
 
4482
#AT_STOP_22
 
4483
#AT_START_23
 
4484
at_fn_group_banner 23 'bundle.at:178' \
 
4485
  "bundle action bad algorithm" "                    " 3
 
4486
at_xfail=no
 
4487
(
 
4488
  $as_echo "23. $at_setup_line: testing $at_desc ..."
 
4489
  $at_traceon
 
4490
 
 
4491
{ set +x
 
4492
$as_echo "$at_srcdir/bundle.at:179: ovs-ofctl parse-flow 'actions=bundle(symmetric_l4,60,fubar,ofport,slaves:1,2))'"
 
4493
at_fn_check_prepare_trace "bundle.at:179"
 
4494
( $at_check_trace; ovs-ofctl parse-flow 'actions=bundle(symmetric_l4,60,fubar,ofport,slaves:1,2))'
 
4495
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4496
at_status=$? at_failed=false
 
4497
$at_check_filter
 
4498
echo >>"$at_stderr"; $as_echo "ovs-ofctl: symmetric_l4,60,fubar,ofport,slaves:1,2: unknown algorithm \`fubar'
 
4499
" | \
 
4500
  $at_diff - "$at_stderr" || at_failed=:
 
4501
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4502
at_fn_check_status 1 $at_status "$at_srcdir/bundle.at:179"
 
4503
$at_failed && at_fn_log_failure
 
4504
$at_traceon; }
 
4505
 
 
4506
  set +x
 
4507
  $at_times_p && times >"$at_times_file"
 
4508
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4509
read at_status <"$at_status_file"
 
4510
#AT_STOP_23
 
4511
#AT_START_24
 
4512
at_fn_group_banner 24 'bundle.at:184' \
 
4513
  "bundle action bad slave type" "                   " 3
 
4514
at_xfail=no
 
4515
(
 
4516
  $as_echo "24. $at_setup_line: testing $at_desc ..."
 
4517
  $at_traceon
 
4518
 
 
4519
{ set +x
 
4520
$as_echo "$at_srcdir/bundle.at:185: ovs-ofctl parse-flow 'actions=bundle(symmetric_l4,60,hrw,robot,slaves:1,2))'"
 
4521
at_fn_check_prepare_trace "bundle.at:185"
 
4522
( $at_check_trace; ovs-ofctl parse-flow 'actions=bundle(symmetric_l4,60,hrw,robot,slaves:1,2))'
 
4523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4524
at_status=$? at_failed=false
 
4525
$at_check_filter
 
4526
echo >>"$at_stderr"; $as_echo "ovs-ofctl: symmetric_l4,60,hrw,robot,slaves:1,2: unknown slave_type \`robot'
 
4527
" | \
 
4528
  $at_diff - "$at_stderr" || at_failed=:
 
4529
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4530
at_fn_check_status 1 $at_status "$at_srcdir/bundle.at:185"
 
4531
$at_failed && at_fn_log_failure
 
4532
$at_traceon; }
 
4533
 
 
4534
  set +x
 
4535
  $at_times_p && times >"$at_times_file"
 
4536
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4537
read at_status <"$at_status_file"
 
4538
#AT_STOP_24
 
4539
#AT_START_25
 
4540
at_fn_group_banner 25 'bundle.at:190' \
 
4541
  "bundle action bad slave delimiter" "              " 3
 
4542
at_xfail=no
 
4543
(
 
4544
  $as_echo "25. $at_setup_line: testing $at_desc ..."
 
4545
  $at_traceon
 
4546
 
 
4547
{ set +x
 
4548
$as_echo "$at_srcdir/bundle.at:191: ovs-ofctl parse-flow 'actions=bundle(symmetric_l4,60,hrw,ofport,robot:1,2))'"
 
4549
at_fn_check_prepare_trace "bundle.at:191"
 
4550
( $at_check_trace; ovs-ofctl parse-flow 'actions=bundle(symmetric_l4,60,hrw,ofport,robot:1,2))'
 
4551
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4552
at_status=$? at_failed=false
 
4553
$at_check_filter
 
4554
echo >>"$at_stderr"; $as_echo "ovs-ofctl: symmetric_l4,60,hrw,ofport,robot:1,2: missing slave delimiter, expected \`slaves' got \`robot'
 
4555
" | \
 
4556
  $at_diff - "$at_stderr" || at_failed=:
 
4557
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4558
at_fn_check_status 1 $at_status "$at_srcdir/bundle.at:191"
 
4559
$at_failed && at_fn_log_failure
 
4560
$at_traceon; }
 
4561
 
 
4562
  set +x
 
4563
  $at_times_p && times >"$at_times_file"
 
4564
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4565
read at_status <"$at_status_file"
 
4566
#AT_STOP_25
 
4567
#AT_START_26
 
4568
at_fn_group_banner 26 'classifier.at:2' \
 
4569
  "flow classifier - empty" "                        " 4
 
4570
at_xfail=no
 
4571
(
 
4572
  $as_echo "26. $at_setup_line: testing $at_desc ..."
 
4573
  $at_traceon
 
4574
 
 
4575
   { set +x
 
4576
$as_echo "$at_srcdir/classifier.at:2: test-classifier empty"
 
4577
at_fn_check_prepare_trace "classifier.at:2"
 
4578
( $at_check_trace; test-classifier empty
 
4579
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4580
at_status=$? at_failed=false
 
4581
$at_check_filter
 
4582
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4583
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4584
at_fn_check_status 0 $at_status "$at_srcdir/classifier.at:2"
 
4585
$at_failed && at_fn_log_failure
 
4586
$at_traceon; }
 
4587
 
 
4588
     set +x
 
4589
  $at_times_p && times >"$at_times_file"
 
4590
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4591
read at_status <"$at_status_file"
 
4592
#AT_STOP_26
 
4593
#AT_START_27
 
4594
at_fn_group_banner 27 'classifier.at:2' \
 
4595
  "flow classifier - destroy null" "                 " 4
 
4596
at_xfail=no
 
4597
(
 
4598
  $as_echo "27. $at_setup_line: testing $at_desc ..."
 
4599
  $at_traceon
 
4600
 
 
4601
   { set +x
 
4602
$as_echo "$at_srcdir/classifier.at:2: test-classifier destroy-null"
 
4603
at_fn_check_prepare_trace "classifier.at:2"
 
4604
( $at_check_trace; test-classifier destroy-null
 
4605
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4606
at_status=$? at_failed=false
 
4607
$at_check_filter
 
4608
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4609
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4610
at_fn_check_status 0 $at_status "$at_srcdir/classifier.at:2"
 
4611
$at_failed && at_fn_log_failure
 
4612
$at_traceon; }
 
4613
 
 
4614
     set +x
 
4615
  $at_times_p && times >"$at_times_file"
 
4616
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4617
read at_status <"$at_status_file"
 
4618
#AT_STOP_27
 
4619
#AT_START_28
 
4620
at_fn_group_banner 28 'classifier.at:2' \
 
4621
  "flow classifier - single rule" "                  " 4
 
4622
at_xfail=no
 
4623
(
 
4624
  $as_echo "28. $at_setup_line: testing $at_desc ..."
 
4625
  $at_traceon
 
4626
 
 
4627
   { set +x
 
4628
$as_echo "$at_srcdir/classifier.at:2: test-classifier single-rule"
 
4629
at_fn_check_prepare_trace "classifier.at:2"
 
4630
( $at_check_trace; test-classifier single-rule
 
4631
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4632
at_status=$? at_failed=false
 
4633
$at_check_filter
 
4634
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4635
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4636
at_fn_check_status 0 $at_status "$at_srcdir/classifier.at:2"
 
4637
$at_failed && at_fn_log_failure
 
4638
$at_traceon; }
 
4639
 
 
4640
     set +x
 
4641
  $at_times_p && times >"$at_times_file"
 
4642
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4643
read at_status <"$at_status_file"
 
4644
#AT_STOP_28
 
4645
#AT_START_29
 
4646
at_fn_group_banner 29 'classifier.at:2' \
 
4647
  "flow classifier - rule replacement" "             " 4
 
4648
at_xfail=no
 
4649
(
 
4650
  $as_echo "29. $at_setup_line: testing $at_desc ..."
 
4651
  $at_traceon
 
4652
 
 
4653
   { set +x
 
4654
$as_echo "$at_srcdir/classifier.at:2: test-classifier rule-replacement"
 
4655
at_fn_check_prepare_trace "classifier.at:2"
 
4656
( $at_check_trace; test-classifier rule-replacement
 
4657
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4658
at_status=$? at_failed=false
 
4659
$at_check_filter
 
4660
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4661
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4662
at_fn_check_status 0 $at_status "$at_srcdir/classifier.at:2"
 
4663
$at_failed && at_fn_log_failure
 
4664
$at_traceon; }
 
4665
 
 
4666
     set +x
 
4667
  $at_times_p && times >"$at_times_file"
 
4668
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4669
read at_status <"$at_status_file"
 
4670
#AT_STOP_29
 
4671
#AT_START_30
 
4672
at_fn_group_banner 30 'classifier.at:2' \
 
4673
  "flow classifier - many rules in one list" "       " 4
 
4674
at_xfail=no
 
4675
(
 
4676
  $as_echo "30. $at_setup_line: testing $at_desc ..."
 
4677
  $at_traceon
 
4678
 
 
4679
   { set +x
 
4680
$as_echo "$at_srcdir/classifier.at:2: test-classifier many-rules-in-one-list"
 
4681
at_fn_check_prepare_trace "classifier.at:2"
 
4682
( $at_check_trace; test-classifier many-rules-in-one-list
 
4683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4684
at_status=$? at_failed=false
 
4685
$at_check_filter
 
4686
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4687
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4688
at_fn_check_status 0 $at_status "$at_srcdir/classifier.at:2"
 
4689
$at_failed && at_fn_log_failure
 
4690
$at_traceon; }
 
4691
 
 
4692
     set +x
 
4693
  $at_times_p && times >"$at_times_file"
 
4694
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4695
read at_status <"$at_status_file"
 
4696
#AT_STOP_30
 
4697
#AT_START_31
 
4698
at_fn_group_banner 31 'classifier.at:2' \
 
4699
  "flow classifier - many rules in one table" "      " 4
 
4700
at_xfail=no
 
4701
(
 
4702
  $as_echo "31. $at_setup_line: testing $at_desc ..."
 
4703
  $at_traceon
 
4704
 
 
4705
   { set +x
 
4706
$as_echo "$at_srcdir/classifier.at:2: test-classifier many-rules-in-one-table"
 
4707
at_fn_check_prepare_trace "classifier.at:2"
 
4708
( $at_check_trace; test-classifier many-rules-in-one-table
 
4709
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4710
at_status=$? at_failed=false
 
4711
$at_check_filter
 
4712
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4713
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4714
at_fn_check_status 0 $at_status "$at_srcdir/classifier.at:2"
 
4715
$at_failed && at_fn_log_failure
 
4716
$at_traceon; }
 
4717
 
 
4718
     set +x
 
4719
  $at_times_p && times >"$at_times_file"
 
4720
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4721
read at_status <"$at_status_file"
 
4722
#AT_STOP_31
 
4723
#AT_START_32
 
4724
at_fn_group_banner 32 'classifier.at:2' \
 
4725
  "flow classifier - many rules in two tables" "     " 4
 
4726
at_xfail=no
 
4727
(
 
4728
  $as_echo "32. $at_setup_line: testing $at_desc ..."
 
4729
  $at_traceon
 
4730
 
 
4731
   { set +x
 
4732
$as_echo "$at_srcdir/classifier.at:2: test-classifier many-rules-in-two-tables"
 
4733
at_fn_check_prepare_trace "classifier.at:2"
 
4734
( $at_check_trace; test-classifier many-rules-in-two-tables
 
4735
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4736
at_status=$? at_failed=false
 
4737
$at_check_filter
 
4738
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4739
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4740
at_fn_check_status 0 $at_status "$at_srcdir/classifier.at:2"
 
4741
$at_failed && at_fn_log_failure
 
4742
$at_traceon; }
 
4743
 
 
4744
     set +x
 
4745
  $at_times_p && times >"$at_times_file"
 
4746
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4747
read at_status <"$at_status_file"
 
4748
#AT_STOP_32
 
4749
#AT_START_33
 
4750
at_fn_group_banner 33 'classifier.at:2' \
 
4751
  "flow classifier - many rules in five tables" "    " 4
 
4752
at_xfail=no
 
4753
(
 
4754
  $as_echo "33. $at_setup_line: testing $at_desc ..."
 
4755
  $at_traceon
 
4756
 
 
4757
   { set +x
 
4758
$as_echo "$at_srcdir/classifier.at:2: test-classifier many-rules-in-five-tables"
 
4759
at_fn_check_prepare_trace "classifier.at:2"
 
4760
( $at_check_trace; test-classifier many-rules-in-five-tables
 
4761
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4762
at_status=$? at_failed=false
 
4763
$at_check_filter
 
4764
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4765
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4766
at_fn_check_status 0 $at_status "$at_srcdir/classifier.at:2"
 
4767
$at_failed && at_fn_log_failure
 
4768
$at_traceon; }
 
4769
 
 
4770
     set +x
 
4771
  $at_times_p && times >"$at_times_file"
 
4772
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4773
read at_status <"$at_status_file"
 
4774
#AT_STOP_33
 
4775
#AT_START_34
 
4776
at_fn_group_banner 34 'check-structs.at:11' \
 
4777
  "check struct tail padding" "                      " 5
 
4778
at_xfail=no
 
4779
(
 
4780
  $as_echo "34. $at_setup_line: testing $at_desc ..."
 
4781
  $at_traceon
 
4782
 
 
4783
 
 
4784
   $as_echo "check-structs.at:12" >"$at_check_line_file"
 
4785
(test $HAVE_PYTHON = no) \
 
4786
  && at_fn_check_skip 77 "$at_srcdir/check-structs.at:12"
 
4787
   cat >test.h <<'_ATEOF'
 
4788
struct xyz {
 
4789
    uint16_t x;
 
4790
};
 
4791
_ATEOF
 
4792
 
 
4793
   { set +x
 
4794
$as_echo "$at_srcdir/check-structs.at:12: \$PYTHON \$top_srcdir/build-aux/check-structs test.h"
 
4795
at_fn_check_prepare_dynamic "$PYTHON $top_srcdir/build-aux/check-structs test.h" "check-structs.at:12"
 
4796
( $at_check_trace; $PYTHON $top_srcdir/build-aux/check-structs test.h
 
4797
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4798
at_status=$? at_failed=false
 
4799
$at_check_filter
 
4800
echo >>"$at_stderr"; $as_echo "test.h:3: warning: struct xyz needs 2 bytes of tail padding
 
4801
" | \
 
4802
  $at_diff - "$at_stderr" || at_failed=:
 
4803
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4804
at_fn_check_status 1 $at_status "$at_srcdir/check-structs.at:12"
 
4805
$at_failed && at_fn_log_failure
 
4806
$at_traceon; }
 
4807
 
 
4808
  set +x
 
4809
  $at_times_p && times >"$at_times_file"
 
4810
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4811
read at_status <"$at_status_file"
 
4812
#AT_STOP_34
 
4813
#AT_START_35
 
4814
at_fn_group_banner 35 'check-structs.at:21' \
 
4815
  "check struct internal alignment" "                " 5
 
4816
at_xfail=no
 
4817
(
 
4818
  $as_echo "35. $at_setup_line: testing $at_desc ..."
 
4819
  $at_traceon
 
4820
 
 
4821
 
 
4822
   $as_echo "check-structs.at:22" >"$at_check_line_file"
 
4823
(test $HAVE_PYTHON = no) \
 
4824
  && at_fn_check_skip 77 "$at_srcdir/check-structs.at:22"
 
4825
   cat >test.h <<'_ATEOF'
 
4826
struct xyzzy {
 
4827
    uint16_t x;
 
4828
    uint32_t y;
 
4829
};
 
4830
_ATEOF
 
4831
 
 
4832
   { set +x
 
4833
$as_echo "$at_srcdir/check-structs.at:22: \$PYTHON \$top_srcdir/build-aux/check-structs test.h"
 
4834
at_fn_check_prepare_dynamic "$PYTHON $top_srcdir/build-aux/check-structs test.h" "check-structs.at:22"
 
4835
( $at_check_trace; $PYTHON $top_srcdir/build-aux/check-structs test.h
 
4836
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4837
at_status=$? at_failed=false
 
4838
$at_check_filter
 
4839
echo >>"$at_stderr"; $as_echo "test.h:3: warning: struct xyzzy member y is 2 bytes short of 4-byte alignment
 
4840
" | \
 
4841
  $at_diff - "$at_stderr" || at_failed=:
 
4842
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4843
at_fn_check_status 1 $at_status "$at_srcdir/check-structs.at:22"
 
4844
$at_failed && at_fn_log_failure
 
4845
$at_traceon; }
 
4846
 
 
4847
  set +x
 
4848
  $at_times_p && times >"$at_times_file"
 
4849
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4850
read at_status <"$at_status_file"
 
4851
#AT_STOP_35
 
4852
#AT_START_36
 
4853
at_fn_group_banner 36 'check-structs.at:32' \
 
4854
  "check struct declared size" "                     " 5
 
4855
at_xfail=no
 
4856
(
 
4857
  $as_echo "36. $at_setup_line: testing $at_desc ..."
 
4858
  $at_traceon
 
4859
 
 
4860
 
 
4861
   $as_echo "check-structs.at:33" >"$at_check_line_file"
 
4862
(test $HAVE_PYTHON = no) \
 
4863
  && at_fn_check_skip 77 "$at_srcdir/check-structs.at:33"
 
4864
   cat >test.h <<'_ATEOF'
 
4865
struct wibble {
 
4866
    uint64_t z;
 
4867
};
 
4868
OFP_ASSERT(sizeof(struct wibble) == 12);
 
4869
 
 
4870
_ATEOF
 
4871
 
 
4872
   { set +x
 
4873
$as_echo "$at_srcdir/check-structs.at:33: \$PYTHON \$top_srcdir/build-aux/check-structs test.h"
 
4874
at_fn_check_prepare_dynamic "$PYTHON $top_srcdir/build-aux/check-structs test.h" "check-structs.at:33"
 
4875
( $at_check_trace; $PYTHON $top_srcdir/build-aux/check-structs test.h
 
4876
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4877
at_status=$? at_failed=false
 
4878
$at_check_filter
 
4879
echo >>"$at_stderr"; $as_echo "test.h:4: warning: struct wibble is 8 bytes long but declared as 12
 
4880
" | \
 
4881
  $at_diff - "$at_stderr" || at_failed=:
 
4882
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4883
at_fn_check_status 1 $at_status "$at_srcdir/check-structs.at:33"
 
4884
$at_failed && at_fn_log_failure
 
4885
$at_traceon; }
 
4886
 
 
4887
  set +x
 
4888
  $at_times_p && times >"$at_times_file"
 
4889
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4890
read at_status <"$at_status_file"
 
4891
#AT_STOP_36
 
4892
#AT_START_37
 
4893
at_fn_group_banner 37 'check-structs.at:44' \
 
4894
  "check wrong struct's declared size" "             " 5
 
4895
at_xfail=no
 
4896
(
 
4897
  $as_echo "37. $at_setup_line: testing $at_desc ..."
 
4898
  $at_traceon
 
4899
 
 
4900
 
 
4901
   $as_echo "check-structs.at:45" >"$at_check_line_file"
 
4902
(test $HAVE_PYTHON = no) \
 
4903
  && at_fn_check_skip 77 "$at_srcdir/check-structs.at:45"
 
4904
   cat >test.h <<'_ATEOF'
 
4905
struct moo {
 
4906
    uint64_t bar;
 
4907
};
 
4908
OFP_ASSERT(sizeof(struct moo) == 8);
 
4909
struct wibble {
 
4910
    uint64_t z;
 
4911
};
 
4912
OFP_ASSERT(sizeof(struct moo) == 8);
 
4913
 
 
4914
_ATEOF
 
4915
 
 
4916
   { set +x
 
4917
$as_echo "$at_srcdir/check-structs.at:45: \$PYTHON \$top_srcdir/build-aux/check-structs test.h"
 
4918
at_fn_check_prepare_dynamic "$PYTHON $top_srcdir/build-aux/check-structs test.h" "check-structs.at:45"
 
4919
( $at_check_trace; $PYTHON $top_srcdir/build-aux/check-structs test.h
 
4920
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4921
at_status=$? at_failed=false
 
4922
$at_check_filter
 
4923
echo >>"$at_stderr"; $as_echo "test.h:8: warning: checking size of struct moo but struct wibble was most recently defined
 
4924
" | \
 
4925
  $at_diff - "$at_stderr" || at_failed=:
 
4926
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4927
at_fn_check_status 1 $at_status "$at_srcdir/check-structs.at:45"
 
4928
$at_failed && at_fn_log_failure
 
4929
$at_traceon; }
 
4930
 
 
4931
  set +x
 
4932
  $at_times_p && times >"$at_times_file"
 
4933
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
4934
read at_status <"$at_status_file"
 
4935
#AT_STOP_37
 
4936
#AT_START_38
 
4937
at_fn_group_banner 38 'daemon.at:3' \
 
4938
  "daemon" "                                         " 6
 
4939
at_xfail=no
 
4940
(
 
4941
  $as_echo "38. $at_setup_line: testing $at_desc ..."
 
4942
  $at_traceon
 
4943
 
 
4944
$as_echo "daemon.at:4" >"$at_check_line_file"
 
4945
(test "$CHECK_LCOV" = true) \
 
4946
  && at_fn_check_skip 77 "$at_srcdir/daemon.at:4" # lcov wrapper make pids differ
 
4947
{ set +x
 
4948
$as_echo "$at_srcdir/daemon.at:5: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
4949
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon.at:5"
 
4950
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
4951
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4952
at_status=$? at_failed=false
 
4953
$at_check_filter
 
4954
echo stderr:; cat "$at_stderr"
 
4955
echo stdout:; tee stdout <"$at_stdout"
 
4956
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:5"
 
4957
$at_failed && at_fn_log_failure
 
4958
$at_traceon; }
 
4959
 
 
4960
   { set +x
 
4961
$as_echo "$at_srcdir/daemon.at:5: ovsdb-tool transact db \\
 
4962
        '[\"Open_vSwitch\",
 
4963
          {\"op\": \"insert\",
 
4964
           \"table\": \"Open_vSwitch\",
 
4965
           \"row\": {}}]'"
 
4966
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:5"
 
4967
( $at_check_trace; ovsdb-tool transact db \
 
4968
        '["Open_vSwitch",
 
4969
          {"op": "insert",
 
4970
           "table": "Open_vSwitch",
 
4971
           "row": {}}]'
 
4972
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4973
at_status=$? at_failed=false
 
4974
$at_check_filter
 
4975
echo stderr:; cat "$at_stderr"
 
4976
echo stdout:; cat "$at_stdout"
 
4977
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:5"
 
4978
$at_failed && at_fn_log_failure
 
4979
$at_traceon; }
 
4980
 
 
4981
 
 
4982
 
 
4983
# Start the daemon and wait for the pidfile to get created
 
4984
# and that its contents are the correct pid.
 
4985
{ set +x
 
4986
$as_echo "$at_srcdir/daemon.at:10: ovsdb-server --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db& echo \$! > expected"
 
4987
at_fn_check_prepare_dynamic "ovsdb-server --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db& echo $! > expected" "daemon.at:10"
 
4988
( $at_check_trace; ovsdb-server --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db& echo $! > expected
 
4989
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
4990
at_status=$? at_failed=false
 
4991
$at_check_filter
 
4992
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
4993
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
4994
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:10"
 
4995
$at_failed && at_fn_log_failure  \
 
4996
"pid" \
 
4997
"expected"
 
4998
$at_traceon; }
 
4999
 
 
5000
{ set +x
 
5001
$as_echo "$at_srcdir/daemon.at:11: # First try a quick sleep, so that the test completes very quickly
 
5002
     # in the normal case.  POSIX doesn't require fractional times to
 
5003
     # work, so this might not work.
 
5004
     sleep 0.1
 
5005
     if test -s pid; then exit 0; fi
 
5006
     # Then wait up to 10 seconds.
 
5007
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5008
       sleep 1
 
5009
       if test -s pid; then exit 0; fi
 
5010
     done
 
5011
     exit 1"
 
5012
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:11"
 
5013
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
5014
     # in the normal case.  POSIX doesn't require fractional times to
 
5015
     # work, so this might not work.
 
5016
     sleep 0.1
 
5017
     if test -s pid; then exit 0; fi
 
5018
     # Then wait up to 10 seconds.
 
5019
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5020
       sleep 1
 
5021
       if test -s pid; then exit 0; fi
 
5022
     done
 
5023
     exit 1
 
5024
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5025
at_status=$? at_failed=false
 
5026
$at_check_filter
 
5027
echo stderr:; cat "$at_stderr"
 
5028
echo stdout:; cat "$at_stdout"
 
5029
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:11"
 
5030
if $at_failed; then :
 
5031
  kill `cat expected`
 
5032
fi
 
5033
$at_failed && at_fn_log_failure  \
 
5034
"pid" \
 
5035
"expected"
 
5036
$at_traceon; }
 
5037
 
 
5038
{ set +x
 
5039
$as_echo "$at_srcdir/daemon.at:12: pid=\`cat pid\` && expected=\`cat expected\` && test \"\$pid\" = \"\$expected\""
 
5040
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:12"
 
5041
( $at_check_trace; pid=`cat pid` && expected=`cat expected` && test "$pid" = "$expected"
 
5042
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5043
at_status=$? at_failed=false
 
5044
$at_check_filter
 
5045
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5046
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5047
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:12"
 
5048
if $at_failed; then :
 
5049
  kill `cat expected`
 
5050
fi
 
5051
$at_failed && at_fn_log_failure  \
 
5052
"pid" \
 
5053
"expected"
 
5054
$at_traceon; }
 
5055
 
 
5056
{ set +x
 
5057
$as_echo "$at_srcdir/daemon.at:15: kill -0 \`cat pid\`"
 
5058
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:15"
 
5059
( $at_check_trace; kill -0 `cat pid`
 
5060
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5061
at_status=$? at_failed=false
 
5062
$at_check_filter
 
5063
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5064
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5065
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:15"
 
5066
if $at_failed; then :
 
5067
  kill `cat expected`
 
5068
fi
 
5069
$at_failed && at_fn_log_failure  \
 
5070
"pid" \
 
5071
"expected"
 
5072
$at_traceon; }
 
5073
 
 
5074
# Kill the daemon and make sure that the pidfile gets deleted.
 
5075
kill `cat expected`
 
5076
{ set +x
 
5077
$as_echo "$at_srcdir/daemon.at:18: # First try a quick sleep, so that the test completes very quickly
 
5078
     # in the normal case.  POSIX doesn't require fractional times to
 
5079
     # work, so this might not work.
 
5080
     sleep 0.1
 
5081
     if kill -0 \`cat expected\`; then :; else exit 0; fi
 
5082
     # Then wait up to 10 seconds.
 
5083
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5084
       sleep 1
 
5085
       if kill -0 \`cat expected\`; then :; else exit 0; fi
 
5086
     done
 
5087
     exit 1"
 
5088
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:18"
 
5089
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
5090
     # in the normal case.  POSIX doesn't require fractional times to
 
5091
     # work, so this might not work.
 
5092
     sleep 0.1
 
5093
     if kill -0 `cat expected`; then :; else exit 0; fi
 
5094
     # Then wait up to 10 seconds.
 
5095
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5096
       sleep 1
 
5097
       if kill -0 `cat expected`; then :; else exit 0; fi
 
5098
     done
 
5099
     exit 1
 
5100
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5101
at_status=$? at_failed=false
 
5102
$at_check_filter
 
5103
echo stderr:; cat "$at_stderr"
 
5104
echo stdout:; cat "$at_stdout"
 
5105
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:18"
 
5106
$at_failed && at_fn_log_failure  \
 
5107
"pid" \
 
5108
"expected"
 
5109
$at_traceon; }
 
5110
 
 
5111
{ set +x
 
5112
$as_echo "$at_srcdir/daemon.at:19: test ! -e pid"
 
5113
at_fn_check_prepare_trace "daemon.at:19"
 
5114
( $at_check_trace; test ! -e pid
 
5115
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5116
at_status=$? at_failed=false
 
5117
$at_check_filter
 
5118
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5119
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5120
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:19"
 
5121
$at_failed && at_fn_log_failure  \
 
5122
"pid" \
 
5123
"expected"
 
5124
$at_traceon; }
 
5125
 
 
5126
  set +x
 
5127
  $at_times_p && times >"$at_times_file"
 
5128
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
5129
read at_status <"$at_status_file"
 
5130
#AT_STOP_38
 
5131
#AT_START_39
 
5132
at_fn_group_banner 39 'daemon.at:22' \
 
5133
  "daemon --monitor" "                               " 6
 
5134
at_xfail=no
 
5135
(
 
5136
  $as_echo "39. $at_setup_line: testing $at_desc ..."
 
5137
  $at_traceon
 
5138
 
 
5139
$as_echo "daemon.at:23" >"$at_check_line_file"
 
5140
(test "$CHECK_LCOV" = true) \
 
5141
  && at_fn_check_skip 77 "$at_srcdir/daemon.at:23" # lcov wrapper make pids differ
 
5142
{ set +x
 
5143
$as_echo "$at_srcdir/daemon.at:24: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
5144
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon.at:24"
 
5145
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
5146
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5147
at_status=$? at_failed=false
 
5148
$at_check_filter
 
5149
echo stderr:; cat "$at_stderr"
 
5150
echo stdout:; tee stdout <"$at_stdout"
 
5151
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:24"
 
5152
$at_failed && at_fn_log_failure
 
5153
$at_traceon; }
 
5154
 
 
5155
   { set +x
 
5156
$as_echo "$at_srcdir/daemon.at:24: ovsdb-tool transact db \\
 
5157
        '[\"Open_vSwitch\",
 
5158
          {\"op\": \"insert\",
 
5159
           \"table\": \"Open_vSwitch\",
 
5160
           \"row\": {}}]'"
 
5161
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:24"
 
5162
( $at_check_trace; ovsdb-tool transact db \
 
5163
        '["Open_vSwitch",
 
5164
          {"op": "insert",
 
5165
           "table": "Open_vSwitch",
 
5166
           "row": {}}]'
 
5167
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5168
at_status=$? at_failed=false
 
5169
$at_check_filter
 
5170
echo stderr:; cat "$at_stderr"
 
5171
echo stdout:; cat "$at_stdout"
 
5172
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:24"
 
5173
$at_failed && at_fn_log_failure
 
5174
$at_traceon; }
 
5175
 
 
5176
 
 
5177
 
 
5178
 
 
5179
 
 
5180
# Start the daemon and wait for the pidfile to get created.
 
5181
{ set +x
 
5182
$as_echo "$at_srcdir/daemon.at:30: ovsdb-server --monitor --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db& echo \$! > parent"
 
5183
at_fn_check_prepare_dynamic "ovsdb-server --monitor --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db& echo $! > parent" "daemon.at:30"
 
5184
( $at_check_trace; ovsdb-server --monitor --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db& echo $! > parent
 
5185
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5186
at_status=$? at_failed=false
 
5187
$at_check_filter
 
5188
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5189
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5190
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:30"
 
5191
$at_failed && at_fn_log_failure  \
 
5192
"pid" \
 
5193
"parent" \
 
5194
"parentpid" \
 
5195
"newpid"
 
5196
$at_traceon; }
 
5197
 
 
5198
{ set +x
 
5199
$as_echo "$at_srcdir/daemon.at:31: # First try a quick sleep, so that the test completes very quickly
 
5200
     # in the normal case.  POSIX doesn't require fractional times to
 
5201
     # work, so this might not work.
 
5202
     sleep 0.1
 
5203
     if test -s pid; then exit 0; fi
 
5204
     # Then wait up to 10 seconds.
 
5205
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5206
       sleep 1
 
5207
       if test -s pid; then exit 0; fi
 
5208
     done
 
5209
     exit 1"
 
5210
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:31"
 
5211
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
5212
     # in the normal case.  POSIX doesn't require fractional times to
 
5213
     # work, so this might not work.
 
5214
     sleep 0.1
 
5215
     if test -s pid; then exit 0; fi
 
5216
     # Then wait up to 10 seconds.
 
5217
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5218
       sleep 1
 
5219
       if test -s pid; then exit 0; fi
 
5220
     done
 
5221
     exit 1
 
5222
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5223
at_status=$? at_failed=false
 
5224
$at_check_filter
 
5225
echo stderr:; cat "$at_stderr"
 
5226
echo stdout:; cat "$at_stdout"
 
5227
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:31"
 
5228
if $at_failed; then :
 
5229
  kill `cat parent`
 
5230
fi
 
5231
$at_failed && at_fn_log_failure  \
 
5232
"pid" \
 
5233
"parent" \
 
5234
"parentpid" \
 
5235
"newpid"
 
5236
$at_traceon; }
 
5237
 
 
5238
# Check that the pidfile names a running process,
 
5239
# and that the parent process of that process is our child process.
 
5240
{ set +x
 
5241
$as_echo "$at_srcdir/daemon.at:34: kill -0 \`cat pid\`"
 
5242
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:34"
 
5243
( $at_check_trace; kill -0 `cat pid`
 
5244
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5245
at_status=$? at_failed=false
 
5246
$at_check_filter
 
5247
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5248
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5249
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:34"
 
5250
if $at_failed; then :
 
5251
  kill `cat parent`
 
5252
fi
 
5253
$at_failed && at_fn_log_failure  \
 
5254
"pid" \
 
5255
"parent" \
 
5256
"parentpid" \
 
5257
"newpid"
 
5258
$at_traceon; }
 
5259
 
 
5260
{ set +x
 
5261
$as_echo "$at_srcdir/daemon.at:35: ps -o ppid= -p \`cat pid\` > parentpid"
 
5262
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:35"
 
5263
( $at_check_trace; ps -o ppid= -p `cat pid` > parentpid
 
5264
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5265
at_status=$? at_failed=false
 
5266
$at_check_filter
 
5267
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5268
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5269
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:35"
 
5270
if $at_failed; then :
 
5271
  kill `cat parent`
 
5272
fi
 
5273
$at_failed && at_fn_log_failure  \
 
5274
"pid" \
 
5275
"parent" \
 
5276
"parentpid" \
 
5277
"newpid"
 
5278
$at_traceon; }
 
5279
 
 
5280
{ set +x
 
5281
$as_echo "$at_srcdir/daemon.at:37: parentpid=\`cat parentpid\` &&
 
5282
   parent=\`cat parent\` &&
 
5283
   test \$parentpid = \$parent"
 
5284
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:37"
 
5285
( $at_check_trace; parentpid=`cat parentpid` &&
 
5286
   parent=`cat parent` &&
 
5287
   test $parentpid = $parent
 
5288
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5289
at_status=$? at_failed=false
 
5290
$at_check_filter
 
5291
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5292
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5293
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:37"
 
5294
if $at_failed; then :
 
5295
  kill `cat parent`
 
5296
fi
 
5297
$at_failed && at_fn_log_failure  \
 
5298
"pid" \
 
5299
"parent" \
 
5300
"parentpid" \
 
5301
"newpid"
 
5302
$at_traceon; }
 
5303
 
 
5304
# Kill the daemon process, making it look like a segfault,
 
5305
# and wait for a new child process to get spawned.
 
5306
{ set +x
 
5307
$as_echo "$at_srcdir/daemon.at:44: cp pid oldpid"
 
5308
at_fn_check_prepare_trace "daemon.at:44"
 
5309
( $at_check_trace; cp pid oldpid
 
5310
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5311
at_status=$? at_failed=false
 
5312
$at_check_filter
 
5313
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5314
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5315
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:44"
 
5316
if $at_failed; then :
 
5317
  kill `cat parent`
 
5318
fi
 
5319
$at_failed && at_fn_log_failure  \
 
5320
"pid" \
 
5321
"parent" \
 
5322
"parentpid" \
 
5323
"newpid"
 
5324
$at_traceon; }
 
5325
 
 
5326
{ set +x
 
5327
$as_echo "$at_srcdir/daemon.at:45: kill -SEGV \`cat pid\`"
 
5328
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:45"
 
5329
( $at_check_trace; kill -SEGV `cat pid`
 
5330
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5331
at_status=$? at_failed=false
 
5332
$at_check_filter
 
5333
echo stderr:; cat "$at_stderr"
 
5334
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5335
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:45"
 
5336
if $at_failed; then :
 
5337
  kill `cat parent`
 
5338
fi
 
5339
$at_failed && at_fn_log_failure  \
 
5340
"pid" \
 
5341
"parent" \
 
5342
"parentpid" \
 
5343
"newpid"
 
5344
$at_traceon; }
 
5345
 
 
5346
{ set +x
 
5347
$as_echo "$at_srcdir/daemon.at:46: # First try a quick sleep, so that the test completes very quickly
 
5348
     # in the normal case.  POSIX doesn't require fractional times to
 
5349
     # work, so this might not work.
 
5350
     sleep 0.1
 
5351
     if kill -0 \`cat oldpid\`; then :; else exit 0; fi
 
5352
     # Then wait up to 10 seconds.
 
5353
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5354
       sleep 1
 
5355
       if kill -0 \`cat oldpid\`; then :; else exit 0; fi
 
5356
     done
 
5357
     exit 1"
 
5358
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:46"
 
5359
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
5360
     # in the normal case.  POSIX doesn't require fractional times to
 
5361
     # work, so this might not work.
 
5362
     sleep 0.1
 
5363
     if kill -0 `cat oldpid`; then :; else exit 0; fi
 
5364
     # Then wait up to 10 seconds.
 
5365
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5366
       sleep 1
 
5367
       if kill -0 `cat oldpid`; then :; else exit 0; fi
 
5368
     done
 
5369
     exit 1
 
5370
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5371
at_status=$? at_failed=false
 
5372
$at_check_filter
 
5373
echo stderr:; cat "$at_stderr"
 
5374
echo stdout:; cat "$at_stdout"
 
5375
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:46"
 
5376
if $at_failed; then :
 
5377
  kill `cat parent`
 
5378
fi
 
5379
$at_failed && at_fn_log_failure  \
 
5380
"pid" \
 
5381
"parent" \
 
5382
"parentpid" \
 
5383
"newpid"
 
5384
$at_traceon; }
 
5385
 
 
5386
{ set +x
 
5387
$as_echo "$at_srcdir/daemon.at:47: # First try a quick sleep, so that the test completes very quickly
 
5388
     # in the normal case.  POSIX doesn't require fractional times to
 
5389
     # work, so this might not work.
 
5390
     sleep 0.1
 
5391
     if test -s pid && test \`cat pid\` != \`cat oldpid\`; then exit 0; fi
 
5392
     # Then wait up to 10 seconds.
 
5393
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5394
       sleep 1
 
5395
       if test -s pid && test \`cat pid\` != \`cat oldpid\`; then exit 0; fi
 
5396
     done
 
5397
     exit 1"
 
5398
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:47"
 
5399
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
5400
     # in the normal case.  POSIX doesn't require fractional times to
 
5401
     # work, so this might not work.
 
5402
     sleep 0.1
 
5403
     if test -s pid && test `cat pid` != `cat oldpid`; then exit 0; fi
 
5404
     # Then wait up to 10 seconds.
 
5405
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5406
       sleep 1
 
5407
       if test -s pid && test `cat pid` != `cat oldpid`; then exit 0; fi
 
5408
     done
 
5409
     exit 1
 
5410
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5411
at_status=$? at_failed=false
 
5412
$at_check_filter
 
5413
echo stderr:; cat "$at_stderr"
 
5414
echo stdout:; cat "$at_stdout"
 
5415
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:47"
 
5416
if $at_failed; then :
 
5417
  kill `cat parent`
 
5418
fi
 
5419
$at_failed && at_fn_log_failure  \
 
5420
"pid" \
 
5421
"parent" \
 
5422
"parentpid" \
 
5423
"newpid"
 
5424
$at_traceon; }
 
5425
 
 
5426
{ set +x
 
5427
$as_echo "$at_srcdir/daemon.at:49: cp pid newpid"
 
5428
at_fn_check_prepare_trace "daemon.at:49"
 
5429
( $at_check_trace; cp pid newpid
 
5430
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5431
at_status=$? at_failed=false
 
5432
$at_check_filter
 
5433
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5434
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5435
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:49"
 
5436
if $at_failed; then :
 
5437
  kill `cat parent`
 
5438
fi
 
5439
$at_failed && at_fn_log_failure  \
 
5440
"pid" \
 
5441
"parent" \
 
5442
"parentpid" \
 
5443
"newpid"
 
5444
$at_traceon; }
 
5445
 
 
5446
# Check that the pidfile names a running process,
 
5447
# and that the parent process of that process is our child process.
 
5448
{ set +x
 
5449
$as_echo "$at_srcdir/daemon.at:52: ps -o ppid= -p \`cat pid\` > parentpid"
 
5450
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:52"
 
5451
( $at_check_trace; ps -o ppid= -p `cat pid` > parentpid
 
5452
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5453
at_status=$? at_failed=false
 
5454
$at_check_filter
 
5455
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5456
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5457
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:52"
 
5458
if $at_failed; then :
 
5459
  kill `cat parent`
 
5460
fi
 
5461
$at_failed && at_fn_log_failure  \
 
5462
"pid" \
 
5463
"parent" \
 
5464
"parentpid" \
 
5465
"newpid"
 
5466
$at_traceon; }
 
5467
 
 
5468
{ set +x
 
5469
$as_echo "$at_srcdir/daemon.at:54: parentpid=\`cat parentpid\` &&
 
5470
   parent=\`cat parent\` &&
 
5471
   test \$parentpid = \$parent"
 
5472
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:54"
 
5473
( $at_check_trace; parentpid=`cat parentpid` &&
 
5474
   parent=`cat parent` &&
 
5475
   test $parentpid = $parent
 
5476
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5477
at_status=$? at_failed=false
 
5478
$at_check_filter
 
5479
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5480
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5481
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:54"
 
5482
if $at_failed; then :
 
5483
  kill `cat parent`
 
5484
fi
 
5485
$at_failed && at_fn_log_failure  \
 
5486
"pid" \
 
5487
"parent" \
 
5488
"parentpid" \
 
5489
"newpid"
 
5490
$at_traceon; }
 
5491
 
 
5492
# Kill the daemon process with SIGTERM, and wait for the daemon
 
5493
# and the monitor processes to go away and the pidfile to get deleted.
 
5494
{ set +x
 
5495
$as_echo "$at_srcdir/daemon.at:61: kill \`cat pid\`"
 
5496
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:61"
 
5497
( $at_check_trace; kill `cat pid`
 
5498
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5499
at_status=$? at_failed=false
 
5500
$at_check_filter
 
5501
echo stderr:; cat "$at_stderr"
 
5502
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5503
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:61"
 
5504
if $at_failed; then :
 
5505
  kill `cat parent`
 
5506
fi
 
5507
$at_failed && at_fn_log_failure  \
 
5508
"pid" \
 
5509
"parent" \
 
5510
"parentpid" \
 
5511
"newpid"
 
5512
$at_traceon; }
 
5513
 
 
5514
{ set +x
 
5515
$as_echo "$at_srcdir/daemon.at:62: # First try a quick sleep, so that the test completes very quickly
 
5516
     # in the normal case.  POSIX doesn't require fractional times to
 
5517
     # work, so this might not work.
 
5518
     sleep 0.1
 
5519
     if kill -0 \`cat parent\` || kill -0 \`cat newpid\` || test -e pid; then :; else exit 0; fi
 
5520
     # Then wait up to 10 seconds.
 
5521
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5522
       sleep 1
 
5523
       if kill -0 \`cat parent\` || kill -0 \`cat newpid\` || test -e pid; then :; else exit 0; fi
 
5524
     done
 
5525
     exit 1"
 
5526
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:62"
 
5527
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
5528
     # in the normal case.  POSIX doesn't require fractional times to
 
5529
     # work, so this might not work.
 
5530
     sleep 0.1
 
5531
     if kill -0 `cat parent` || kill -0 `cat newpid` || test -e pid; then :; else exit 0; fi
 
5532
     # Then wait up to 10 seconds.
 
5533
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5534
       sleep 1
 
5535
       if kill -0 `cat parent` || kill -0 `cat newpid` || test -e pid; then :; else exit 0; fi
 
5536
     done
 
5537
     exit 1
 
5538
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5539
at_status=$? at_failed=false
 
5540
$at_check_filter
 
5541
echo stderr:; cat "$at_stderr"
 
5542
echo stdout:; cat "$at_stdout"
 
5543
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:62"
 
5544
if $at_failed; then :
 
5545
  kill `cat parent`
 
5546
fi
 
5547
$at_failed && at_fn_log_failure  \
 
5548
"pid" \
 
5549
"parent" \
 
5550
"parentpid" \
 
5551
"newpid"
 
5552
$at_traceon; }
 
5553
 
 
5554
  set +x
 
5555
  $at_times_p && times >"$at_times_file"
 
5556
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
5557
read at_status <"$at_status_file"
 
5558
#AT_STOP_39
 
5559
#AT_START_40
 
5560
at_fn_group_banner 40 'daemon.at:66' \
 
5561
  "daemon --detach" "                                " 6
 
5562
at_xfail=no
 
5563
(
 
5564
  $as_echo "40. $at_setup_line: testing $at_desc ..."
 
5565
  $at_traceon
 
5566
 
 
5567
$as_echo "daemon.at:67" >"$at_check_line_file"
 
5568
(test "$CHECK_LCOV" = true) \
 
5569
  && at_fn_check_skip 77 "$at_srcdir/daemon.at:67" # lcov wrapper make pids differ
 
5570
 
 
5571
{ set +x
 
5572
$as_echo "$at_srcdir/daemon.at:69: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
5573
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon.at:69"
 
5574
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
5575
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5576
at_status=$? at_failed=false
 
5577
$at_check_filter
 
5578
echo stderr:; cat "$at_stderr"
 
5579
echo stdout:; tee stdout <"$at_stdout"
 
5580
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:69"
 
5581
$at_failed && at_fn_log_failure  \
 
5582
"pid"
 
5583
$at_traceon; }
 
5584
 
 
5585
   { set +x
 
5586
$as_echo "$at_srcdir/daemon.at:69: ovsdb-tool transact db \\
 
5587
        '[\"Open_vSwitch\",
 
5588
          {\"op\": \"insert\",
 
5589
           \"table\": \"Open_vSwitch\",
 
5590
           \"row\": {}}]'"
 
5591
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:69"
 
5592
( $at_check_trace; ovsdb-tool transact db \
 
5593
        '["Open_vSwitch",
 
5594
          {"op": "insert",
 
5595
           "table": "Open_vSwitch",
 
5596
           "row": {}}]'
 
5597
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5598
at_status=$? at_failed=false
 
5599
$at_check_filter
 
5600
echo stderr:; cat "$at_stderr"
 
5601
echo stdout:; cat "$at_stdout"
 
5602
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:69"
 
5603
$at_failed && at_fn_log_failure  \
 
5604
"pid"
 
5605
$at_traceon; }
 
5606
 
 
5607
# Start the daemon and make sure that the pidfile exists immediately.
 
5608
# We don't wait for the pidfile to get created because the daemon is
 
5609
# supposed to do so before the parent exits.
 
5610
{ set +x
 
5611
$as_echo "$at_srcdir/daemon.at:73: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
5612
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "daemon.at:73"
 
5613
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
5614
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5615
at_status=$? at_failed=false
 
5616
$at_check_filter
 
5617
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5618
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5619
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:73"
 
5620
$at_failed && at_fn_log_failure  \
 
5621
"pid"
 
5622
$at_traceon; }
 
5623
 
 
5624
{ set +x
 
5625
$as_echo "$at_srcdir/daemon.at:74: test -s pid"
 
5626
at_fn_check_prepare_trace "daemon.at:74"
 
5627
( $at_check_trace; test -s pid
 
5628
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5629
at_status=$? at_failed=false
 
5630
$at_check_filter
 
5631
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5632
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5633
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:74"
 
5634
$at_failed && at_fn_log_failure  \
 
5635
"pid"
 
5636
$at_traceon; }
 
5637
 
 
5638
{ set +x
 
5639
$as_echo "$at_srcdir/daemon.at:75: kill -0 \`cat pid\`"
 
5640
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:75"
 
5641
( $at_check_trace; kill -0 `cat pid`
 
5642
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5643
at_status=$? at_failed=false
 
5644
$at_check_filter
 
5645
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5646
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5647
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:75"
 
5648
$at_failed && at_fn_log_failure  \
 
5649
"pid"
 
5650
$at_traceon; }
 
5651
 
 
5652
# Kill the daemon and make sure that the pidfile gets deleted.
 
5653
cp pid saved-pid
 
5654
kill `cat pid`
 
5655
{ set +x
 
5656
$as_echo "$at_srcdir/daemon.at:79: # First try a quick sleep, so that the test completes very quickly
 
5657
     # in the normal case.  POSIX doesn't require fractional times to
 
5658
     # work, so this might not work.
 
5659
     sleep 0.1
 
5660
     if kill -0 \`cat saved-pid\`; then :; else exit 0; fi
 
5661
     # Then wait up to 10 seconds.
 
5662
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5663
       sleep 1
 
5664
       if kill -0 \`cat saved-pid\`; then :; else exit 0; fi
 
5665
     done
 
5666
     exit 1"
 
5667
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:79"
 
5668
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
5669
     # in the normal case.  POSIX doesn't require fractional times to
 
5670
     # work, so this might not work.
 
5671
     sleep 0.1
 
5672
     if kill -0 `cat saved-pid`; then :; else exit 0; fi
 
5673
     # Then wait up to 10 seconds.
 
5674
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5675
       sleep 1
 
5676
       if kill -0 `cat saved-pid`; then :; else exit 0; fi
 
5677
     done
 
5678
     exit 1
 
5679
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5680
at_status=$? at_failed=false
 
5681
$at_check_filter
 
5682
echo stderr:; cat "$at_stderr"
 
5683
echo stdout:; cat "$at_stdout"
 
5684
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:79"
 
5685
$at_failed && at_fn_log_failure  \
 
5686
"pid"
 
5687
$at_traceon; }
 
5688
 
 
5689
{ set +x
 
5690
$as_echo "$at_srcdir/daemon.at:80: test ! -e pid"
 
5691
at_fn_check_prepare_trace "daemon.at:80"
 
5692
( $at_check_trace; test ! -e pid
 
5693
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5694
at_status=$? at_failed=false
 
5695
$at_check_filter
 
5696
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5697
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5698
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:80"
 
5699
$at_failed && at_fn_log_failure  \
 
5700
"pid"
 
5701
$at_traceon; }
 
5702
 
 
5703
  set +x
 
5704
  $at_times_p && times >"$at_times_file"
 
5705
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
5706
read at_status <"$at_status_file"
 
5707
#AT_STOP_40
 
5708
#AT_START_41
 
5709
at_fn_group_banner 41 'daemon.at:83' \
 
5710
  "daemon --detach --monitor" "                      " 6
 
5711
at_xfail=no
 
5712
(
 
5713
  $as_echo "41. $at_setup_line: testing $at_desc ..."
 
5714
  $at_traceon
 
5715
 
 
5716
$as_echo "daemon.at:84" >"$at_check_line_file"
 
5717
(test "$CHECK_LCOV" = true) \
 
5718
  && at_fn_check_skip 77 "$at_srcdir/daemon.at:84" # lcov wrapper make pids differ
 
5719
 
 
5720
{ set +x
 
5721
$as_echo "$at_srcdir/daemon.at:87: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
5722
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon.at:87"
 
5723
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
5724
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5725
at_status=$? at_failed=false
 
5726
$at_check_filter
 
5727
echo stderr:; cat "$at_stderr"
 
5728
echo stdout:; tee stdout <"$at_stdout"
 
5729
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:87"
 
5730
$at_failed && at_fn_log_failure
 
5731
$at_traceon; }
 
5732
 
 
5733
   { set +x
 
5734
$as_echo "$at_srcdir/daemon.at:87: ovsdb-tool transact db \\
 
5735
        '[\"Open_vSwitch\",
 
5736
          {\"op\": \"insert\",
 
5737
           \"table\": \"Open_vSwitch\",
 
5738
           \"row\": {}}]'"
 
5739
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:87"
 
5740
( $at_check_trace; ovsdb-tool transact db \
 
5741
        '["Open_vSwitch",
 
5742
          {"op": "insert",
 
5743
           "table": "Open_vSwitch",
 
5744
           "row": {}}]'
 
5745
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5746
at_status=$? at_failed=false
 
5747
$at_check_filter
 
5748
echo stderr:; cat "$at_stderr"
 
5749
echo stdout:; cat "$at_stdout"
 
5750
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:87"
 
5751
$at_failed && at_fn_log_failure
 
5752
$at_traceon; }
 
5753
 
 
5754
 
 
5755
 
 
5756
 
 
5757
 
 
5758
 
 
5759
 
 
5760
# Start the daemon and make sure that the pidfile exists immediately.
 
5761
# We don't wait for the pidfile to get created because the daemon is
 
5762
# supposed to do so before the parent exits.
 
5763
{ set +x
 
5764
$as_echo "$at_srcdir/daemon.at:97: ovsdb-server --detach --pidfile=\$PWD/daemon --monitor --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
5765
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/daemon --monitor --remote=punix:socket --unixctl=$PWD/unixctl db" "daemon.at:97"
 
5766
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/daemon --monitor --remote=punix:socket --unixctl=$PWD/unixctl db
 
5767
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5768
at_status=$? at_failed=false
 
5769
$at_check_filter
 
5770
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5771
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5772
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:97"
 
5773
$at_failed && at_fn_log_failure  \
 
5774
"daemon" \
 
5775
"olddaemon" \
 
5776
"newdaemon" \
 
5777
"monitor" \
 
5778
"newmonitor" \
 
5779
"init"
 
5780
$at_traceon; }
 
5781
 
 
5782
{ set +x
 
5783
$as_echo "$at_srcdir/daemon.at:98: test -s daemon"
 
5784
at_fn_check_prepare_trace "daemon.at:98"
 
5785
( $at_check_trace; test -s daemon
 
5786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5787
at_status=$? at_failed=false
 
5788
$at_check_filter
 
5789
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5790
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5791
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:98"
 
5792
$at_failed && at_fn_log_failure  \
 
5793
"daemon" \
 
5794
"olddaemon" \
 
5795
"newdaemon" \
 
5796
"monitor" \
 
5797
"newmonitor" \
 
5798
"init"
 
5799
$at_traceon; }
 
5800
 
 
5801
# Check that the pidfile names a running process,
 
5802
# and that the parent process of that process is a running process,
 
5803
# and that the parent process of that process is init.
 
5804
{ set +x
 
5805
$as_echo "$at_srcdir/daemon.at:102: kill -0 \`cat daemon\`"
 
5806
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:102"
 
5807
( $at_check_trace; kill -0 `cat daemon`
 
5808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5809
at_status=$? at_failed=false
 
5810
$at_check_filter
 
5811
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5812
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5813
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:102"
 
5814
if $at_failed; then :
 
5815
  kill `cat daemon monitor`
 
5816
fi
 
5817
$at_failed && at_fn_log_failure  \
 
5818
"daemon" \
 
5819
"olddaemon" \
 
5820
"newdaemon" \
 
5821
"monitor" \
 
5822
"newmonitor" \
 
5823
"init"
 
5824
$at_traceon; }
 
5825
 
 
5826
{ set +x
 
5827
$as_echo "$at_srcdir/daemon.at:103: ps -o ppid= -p \`cat daemon\` > monitor"
 
5828
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:103"
 
5829
( $at_check_trace; ps -o ppid= -p `cat daemon` > monitor
 
5830
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5831
at_status=$? at_failed=false
 
5832
$at_check_filter
 
5833
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5834
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5835
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:103"
 
5836
if $at_failed; then :
 
5837
  kill `cat daemon monitor`
 
5838
fi
 
5839
$at_failed && at_fn_log_failure  \
 
5840
"daemon" \
 
5841
"olddaemon" \
 
5842
"newdaemon" \
 
5843
"monitor" \
 
5844
"newmonitor" \
 
5845
"init"
 
5846
$at_traceon; }
 
5847
 
 
5848
{ set +x
 
5849
$as_echo "$at_srcdir/daemon.at:104: kill -0 \`cat monitor\`"
 
5850
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:104"
 
5851
( $at_check_trace; kill -0 `cat monitor`
 
5852
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5853
at_status=$? at_failed=false
 
5854
$at_check_filter
 
5855
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5856
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5857
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:104"
 
5858
if $at_failed; then :
 
5859
  kill `cat daemon monitor`
 
5860
fi
 
5861
$at_failed && at_fn_log_failure  \
 
5862
"daemon" \
 
5863
"olddaemon" \
 
5864
"newdaemon" \
 
5865
"monitor" \
 
5866
"newmonitor" \
 
5867
"init"
 
5868
$at_traceon; }
 
5869
 
 
5870
{ set +x
 
5871
$as_echo "$at_srcdir/daemon.at:105: ps -o ppid= -p \`cat monitor\` > init"
 
5872
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:105"
 
5873
( $at_check_trace; ps -o ppid= -p `cat monitor` > init
 
5874
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5875
at_status=$? at_failed=false
 
5876
$at_check_filter
 
5877
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5878
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5879
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:105"
 
5880
if $at_failed; then :
 
5881
  kill `cat daemon monitor`
 
5882
fi
 
5883
$at_failed && at_fn_log_failure  \
 
5884
"daemon" \
 
5885
"olddaemon" \
 
5886
"newdaemon" \
 
5887
"monitor" \
 
5888
"newmonitor" \
 
5889
"init"
 
5890
$at_traceon; }
 
5891
 
 
5892
{ set +x
 
5893
$as_echo "$at_srcdir/daemon.at:106: test \`cat init\` = 1"
 
5894
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:106"
 
5895
( $at_check_trace; test `cat init` = 1
 
5896
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5897
at_status=$? at_failed=false
 
5898
$at_check_filter
 
5899
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5900
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5901
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:106"
 
5902
if $at_failed; then :
 
5903
  kill `cat daemon monitor`
 
5904
fi
 
5905
$at_failed && at_fn_log_failure  \
 
5906
"daemon" \
 
5907
"olddaemon" \
 
5908
"newdaemon" \
 
5909
"monitor" \
 
5910
"newmonitor" \
 
5911
"init"
 
5912
$at_traceon; }
 
5913
 
 
5914
# Kill the daemon process, making it look like a segfault,
 
5915
# and wait for a new daemon process to get spawned.
 
5916
{ set +x
 
5917
$as_echo "$at_srcdir/daemon.at:109: cp daemon olddaemon"
 
5918
at_fn_check_prepare_trace "daemon.at:109"
 
5919
( $at_check_trace; cp daemon olddaemon
 
5920
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5921
at_status=$? at_failed=false
 
5922
$at_check_filter
 
5923
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5924
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5925
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:109"
 
5926
if $at_failed; then :
 
5927
  kill `cat daemon monitor`
 
5928
fi
 
5929
$at_failed && at_fn_log_failure  \
 
5930
"daemon" \
 
5931
"olddaemon" \
 
5932
"newdaemon" \
 
5933
"monitor" \
 
5934
"newmonitor" \
 
5935
"init"
 
5936
$at_traceon; }
 
5937
 
 
5938
{ set +x
 
5939
$as_echo "$at_srcdir/daemon.at:110: kill -SEGV \`cat daemon\`"
 
5940
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:110"
 
5941
( $at_check_trace; kill -SEGV `cat daemon`
 
5942
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5943
at_status=$? at_failed=false
 
5944
$at_check_filter
 
5945
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
5946
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
5947
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:110"
 
5948
if $at_failed; then :
 
5949
  kill `cat daemon monitor`
 
5950
fi
 
5951
$at_failed && at_fn_log_failure  \
 
5952
"daemon" \
 
5953
"olddaemon" \
 
5954
"newdaemon" \
 
5955
"monitor" \
 
5956
"newmonitor" \
 
5957
"init"
 
5958
$at_traceon; }
 
5959
 
 
5960
{ set +x
 
5961
$as_echo "$at_srcdir/daemon.at:111: # First try a quick sleep, so that the test completes very quickly
 
5962
     # in the normal case.  POSIX doesn't require fractional times to
 
5963
     # work, so this might not work.
 
5964
     sleep 0.1
 
5965
     if kill -0 \`cat olddaemon\`; then :; else exit 0; fi
 
5966
     # Then wait up to 10 seconds.
 
5967
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5968
       sleep 1
 
5969
       if kill -0 \`cat olddaemon\`; then :; else exit 0; fi
 
5970
     done
 
5971
     exit 1"
 
5972
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:111"
 
5973
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
5974
     # in the normal case.  POSIX doesn't require fractional times to
 
5975
     # work, so this might not work.
 
5976
     sleep 0.1
 
5977
     if kill -0 `cat olddaemon`; then :; else exit 0; fi
 
5978
     # Then wait up to 10 seconds.
 
5979
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
5980
       sleep 1
 
5981
       if kill -0 `cat olddaemon`; then :; else exit 0; fi
 
5982
     done
 
5983
     exit 1
 
5984
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
5985
at_status=$? at_failed=false
 
5986
$at_check_filter
 
5987
echo stderr:; cat "$at_stderr"
 
5988
echo stdout:; cat "$at_stdout"
 
5989
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:111"
 
5990
if $at_failed; then :
 
5991
  kill `cat olddaemon daemon`
 
5992
fi
 
5993
$at_failed && at_fn_log_failure  \
 
5994
"daemon" \
 
5995
"olddaemon" \
 
5996
"newdaemon" \
 
5997
"monitor" \
 
5998
"newmonitor" \
 
5999
"init"
 
6000
$at_traceon; }
 
6001
 
 
6002
{ set +x
 
6003
$as_echo "$at_srcdir/daemon.at:112: # First try a quick sleep, so that the test completes very quickly
 
6004
     # in the normal case.  POSIX doesn't require fractional times to
 
6005
     # work, so this might not work.
 
6006
     sleep 0.1
 
6007
     if test -s daemon && test \`cat daemon\` != \`cat olddaemon\`; then exit 0; fi
 
6008
     # Then wait up to 10 seconds.
 
6009
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6010
       sleep 1
 
6011
       if test -s daemon && test \`cat daemon\` != \`cat olddaemon\`; then exit 0; fi
 
6012
     done
 
6013
     exit 1"
 
6014
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:112"
 
6015
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
6016
     # in the normal case.  POSIX doesn't require fractional times to
 
6017
     # work, so this might not work.
 
6018
     sleep 0.1
 
6019
     if test -s daemon && test `cat daemon` != `cat olddaemon`; then exit 0; fi
 
6020
     # Then wait up to 10 seconds.
 
6021
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6022
       sleep 1
 
6023
       if test -s daemon && test `cat daemon` != `cat olddaemon`; then exit 0; fi
 
6024
     done
 
6025
     exit 1
 
6026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6027
at_status=$? at_failed=false
 
6028
$at_check_filter
 
6029
echo stderr:; cat "$at_stderr"
 
6030
echo stdout:; cat "$at_stdout"
 
6031
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:112"
 
6032
if $at_failed; then :
 
6033
  kill `cat olddaemon daemon`
 
6034
fi
 
6035
$at_failed && at_fn_log_failure  \
 
6036
"daemon" \
 
6037
"olddaemon" \
 
6038
"newdaemon" \
 
6039
"monitor" \
 
6040
"newmonitor" \
 
6041
"init"
 
6042
$at_traceon; }
 
6043
 
 
6044
{ set +x
 
6045
$as_echo "$at_srcdir/daemon.at:114: cp daemon newdaemon"
 
6046
at_fn_check_prepare_trace "daemon.at:114"
 
6047
( $at_check_trace; cp daemon newdaemon
 
6048
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6049
at_status=$? at_failed=false
 
6050
$at_check_filter
 
6051
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6052
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6053
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:114"
 
6054
if $at_failed; then :
 
6055
  kill `cat daemon monitor`
 
6056
fi
 
6057
$at_failed && at_fn_log_failure  \
 
6058
"daemon" \
 
6059
"olddaemon" \
 
6060
"newdaemon" \
 
6061
"monitor" \
 
6062
"newmonitor" \
 
6063
"init"
 
6064
$at_traceon; }
 
6065
 
 
6066
# Check that the pidfile names a running process,
 
6067
# and that the parent process of that process is our child process.
 
6068
{ set +x
 
6069
$as_echo "$at_srcdir/daemon.at:117: kill -0 \`cat daemon\`"
 
6070
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:117"
 
6071
( $at_check_trace; kill -0 `cat daemon`
 
6072
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6073
at_status=$? at_failed=false
 
6074
$at_check_filter
 
6075
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6076
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6077
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:117"
 
6078
if $at_failed; then :
 
6079
  kill `cat daemon monitor`
 
6080
fi
 
6081
$at_failed && at_fn_log_failure  \
 
6082
"daemon" \
 
6083
"olddaemon" \
 
6084
"newdaemon" \
 
6085
"monitor" \
 
6086
"newmonitor" \
 
6087
"init"
 
6088
$at_traceon; }
 
6089
 
 
6090
{ set +x
 
6091
$as_echo "$at_srcdir/daemon.at:118: diff olddaemon newdaemon"
 
6092
at_fn_check_prepare_trace "daemon.at:118"
 
6093
( $at_check_trace; diff olddaemon newdaemon
 
6094
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6095
at_status=$? at_failed=false
 
6096
$at_check_filter
 
6097
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6098
echo stdout:; cat "$at_stdout"
 
6099
at_fn_check_status 1 $at_status "$at_srcdir/daemon.at:118"
 
6100
if $at_failed; then :
 
6101
  kill `cat daemon monitor`
 
6102
fi
 
6103
$at_failed && at_fn_log_failure  \
 
6104
"daemon" \
 
6105
"olddaemon" \
 
6106
"newdaemon" \
 
6107
"monitor" \
 
6108
"newmonitor" \
 
6109
"init"
 
6110
$at_traceon; }
 
6111
 
 
6112
{ set +x
 
6113
$as_echo "$at_srcdir/daemon.at:119: ps -o ppid= -p \`cat daemon\` > newmonitor"
 
6114
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:119"
 
6115
( $at_check_trace; ps -o ppid= -p `cat daemon` > newmonitor
 
6116
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6117
at_status=$? at_failed=false
 
6118
$at_check_filter
 
6119
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6120
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6121
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:119"
 
6122
if $at_failed; then :
 
6123
  kill `cat daemon monitor`
 
6124
fi
 
6125
$at_failed && at_fn_log_failure  \
 
6126
"daemon" \
 
6127
"olddaemon" \
 
6128
"newdaemon" \
 
6129
"monitor" \
 
6130
"newmonitor" \
 
6131
"init"
 
6132
$at_traceon; }
 
6133
 
 
6134
{ set +x
 
6135
$as_echo "$at_srcdir/daemon.at:120: diff monitor newmonitor"
 
6136
at_fn_check_prepare_trace "daemon.at:120"
 
6137
( $at_check_trace; diff monitor newmonitor
 
6138
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6139
at_status=$? at_failed=false
 
6140
$at_check_filter
 
6141
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6142
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6143
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:120"
 
6144
if $at_failed; then :
 
6145
  kill `cat daemon monitor`
 
6146
fi
 
6147
$at_failed && at_fn_log_failure  \
 
6148
"daemon" \
 
6149
"olddaemon" \
 
6150
"newdaemon" \
 
6151
"monitor" \
 
6152
"newmonitor" \
 
6153
"init"
 
6154
$at_traceon; }
 
6155
 
 
6156
{ set +x
 
6157
$as_echo "$at_srcdir/daemon.at:121: kill -0 \`cat newmonitor\`"
 
6158
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:121"
 
6159
( $at_check_trace; kill -0 `cat newmonitor`
 
6160
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6161
at_status=$? at_failed=false
 
6162
$at_check_filter
 
6163
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6164
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6165
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:121"
 
6166
if $at_failed; then :
 
6167
  kill `cat daemon monitor`
 
6168
fi
 
6169
$at_failed && at_fn_log_failure  \
 
6170
"daemon" \
 
6171
"olddaemon" \
 
6172
"newdaemon" \
 
6173
"monitor" \
 
6174
"newmonitor" \
 
6175
"init"
 
6176
$at_traceon; }
 
6177
 
 
6178
{ set +x
 
6179
$as_echo "$at_srcdir/daemon.at:122: ps -o ppid= -p \`cat newmonitor\` > init"
 
6180
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:122"
 
6181
( $at_check_trace; ps -o ppid= -p `cat newmonitor` > init
 
6182
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6183
at_status=$? at_failed=false
 
6184
$at_check_filter
 
6185
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6186
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6187
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:122"
 
6188
if $at_failed; then :
 
6189
  kill `cat daemon monitor`
 
6190
fi
 
6191
$at_failed && at_fn_log_failure  \
 
6192
"daemon" \
 
6193
"olddaemon" \
 
6194
"newdaemon" \
 
6195
"monitor" \
 
6196
"newmonitor" \
 
6197
"init"
 
6198
$at_traceon; }
 
6199
 
 
6200
{ set +x
 
6201
$as_echo "$at_srcdir/daemon.at:123: test \`cat init\` = 1"
 
6202
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:123"
 
6203
( $at_check_trace; test `cat init` = 1
 
6204
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6205
at_status=$? at_failed=false
 
6206
$at_check_filter
 
6207
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6208
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6209
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:123"
 
6210
if $at_failed; then :
 
6211
  kill `cat daemon monitor`
 
6212
fi
 
6213
$at_failed && at_fn_log_failure  \
 
6214
"daemon" \
 
6215
"olddaemon" \
 
6216
"newdaemon" \
 
6217
"monitor" \
 
6218
"newmonitor" \
 
6219
"init"
 
6220
$at_traceon; }
 
6221
 
 
6222
# Kill the daemon process with SIGTERM, and wait for the daemon
 
6223
# and the monitor processes to go away and the pidfile to get deleted.
 
6224
{ set +x
 
6225
$as_echo "$at_srcdir/daemon.at:126: kill \`cat daemon\`"
 
6226
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:126"
 
6227
( $at_check_trace; kill `cat daemon`
 
6228
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6229
at_status=$? at_failed=false
 
6230
$at_check_filter
 
6231
echo stderr:; cat "$at_stderr"
 
6232
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6233
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:126"
 
6234
if $at_failed; then :
 
6235
  kill `cat daemon monitor`
 
6236
fi
 
6237
$at_failed && at_fn_log_failure  \
 
6238
"daemon" \
 
6239
"olddaemon" \
 
6240
"newdaemon" \
 
6241
"monitor" \
 
6242
"newmonitor" \
 
6243
"init"
 
6244
$at_traceon; }
 
6245
 
 
6246
{ set +x
 
6247
$as_echo "$at_srcdir/daemon.at:127: # First try a quick sleep, so that the test completes very quickly
 
6248
     # in the normal case.  POSIX doesn't require fractional times to
 
6249
     # work, so this might not work.
 
6250
     sleep 0.1
 
6251
     if kill -0 \`cat monitor\` || kill -0 \`cat newdaemon\` || test -e daemon; then :; else exit 0; fi
 
6252
     # Then wait up to 10 seconds.
 
6253
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6254
       sleep 1
 
6255
       if kill -0 \`cat monitor\` || kill -0 \`cat newdaemon\` || test -e daemon; then :; else exit 0; fi
 
6256
     done
 
6257
     exit 1"
 
6258
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:127"
 
6259
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
6260
     # in the normal case.  POSIX doesn't require fractional times to
 
6261
     # work, so this might not work.
 
6262
     sleep 0.1
 
6263
     if kill -0 `cat monitor` || kill -0 `cat newdaemon` || test -e daemon; then :; else exit 0; fi
 
6264
     # Then wait up to 10 seconds.
 
6265
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6266
       sleep 1
 
6267
       if kill -0 `cat monitor` || kill -0 `cat newdaemon` || test -e daemon; then :; else exit 0; fi
 
6268
     done
 
6269
     exit 1
 
6270
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6271
at_status=$? at_failed=false
 
6272
$at_check_filter
 
6273
echo stderr:; cat "$at_stderr"
 
6274
echo stdout:; cat "$at_stdout"
 
6275
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:127"
 
6276
if $at_failed; then :
 
6277
  kill `cat monitor newdaemon`
 
6278
fi
 
6279
$at_failed && at_fn_log_failure  \
 
6280
"daemon" \
 
6281
"olddaemon" \
 
6282
"newdaemon" \
 
6283
"monitor" \
 
6284
"newmonitor" \
 
6285
"init"
 
6286
$at_traceon; }
 
6287
 
 
6288
 
 
6289
  set +x
 
6290
  $at_times_p && times >"$at_times_file"
 
6291
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
6292
read at_status <"$at_status_file"
 
6293
#AT_STOP_41
 
6294
#AT_START_42
 
6295
at_fn_group_banner 42 'daemon.at:133' \
 
6296
  "daemon --detach startup errors" "                 " 6
 
6297
at_xfail=no
 
6298
(
 
6299
  $as_echo "42. $at_setup_line: testing $at_desc ..."
 
6300
  $at_traceon
 
6301
 
 
6302
 
 
6303
{ set +x
 
6304
$as_echo "$at_srcdir/daemon.at:135: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
6305
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon.at:135"
 
6306
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
6307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6308
at_status=$? at_failed=false
 
6309
$at_check_filter
 
6310
echo stderr:; cat "$at_stderr"
 
6311
echo stdout:; tee stdout <"$at_stdout"
 
6312
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:135"
 
6313
$at_failed && at_fn_log_failure  \
 
6314
"pid"
 
6315
$at_traceon; }
 
6316
 
 
6317
   { set +x
 
6318
$as_echo "$at_srcdir/daemon.at:135: ovsdb-tool transact db \\
 
6319
        '[\"Open_vSwitch\",
 
6320
          {\"op\": \"insert\",
 
6321
           \"table\": \"Open_vSwitch\",
 
6322
           \"row\": {}}]'"
 
6323
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:135"
 
6324
( $at_check_trace; ovsdb-tool transact db \
 
6325
        '["Open_vSwitch",
 
6326
          {"op": "insert",
 
6327
           "table": "Open_vSwitch",
 
6328
           "row": {}}]'
 
6329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6330
at_status=$? at_failed=false
 
6331
$at_check_filter
 
6332
echo stderr:; cat "$at_stderr"
 
6333
echo stdout:; cat "$at_stdout"
 
6334
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:135"
 
6335
$at_failed && at_fn_log_failure  \
 
6336
"pid"
 
6337
$at_traceon; }
 
6338
 
 
6339
{ set +x
 
6340
$as_echo "$at_srcdir/daemon.at:136: ovsdb-server --detach --pidfile=\$PWD/pid --unixctl=\$PWD/nonexistent/unixctl db"
 
6341
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/nonexistent/unixctl db" "daemon.at:136"
 
6342
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/nonexistent/unixctl db
 
6343
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6344
at_status=$? at_failed=false
 
6345
$at_check_filter
 
6346
echo stderr:; tee stderr <"$at_stderr"
 
6347
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6348
at_fn_check_status 1 $at_status "$at_srcdir/daemon.at:136"
 
6349
$at_failed && at_fn_log_failure  \
 
6350
"pid"
 
6351
$at_traceon; }
 
6352
 
 
6353
{ set +x
 
6354
$as_echo "$at_srcdir/daemon.at:137: grep 'ovsdb-server: could not initialize control socket' stderr"
 
6355
at_fn_check_prepare_trace "daemon.at:137"
 
6356
( $at_check_trace; grep 'ovsdb-server: could not initialize control socket' stderr
 
6357
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6358
at_status=$? at_failed=false
 
6359
$at_check_filter
 
6360
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6361
echo stdout:; cat "$at_stdout"
 
6362
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:137"
 
6363
$at_failed && at_fn_log_failure  \
 
6364
"pid"
 
6365
$at_traceon; }
 
6366
 
 
6367
{ set +x
 
6368
$as_echo "$at_srcdir/daemon.at:139: test ! -s pid"
 
6369
at_fn_check_prepare_trace "daemon.at:139"
 
6370
( $at_check_trace; test ! -s pid
 
6371
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6372
at_status=$? at_failed=false
 
6373
$at_check_filter
 
6374
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6375
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6376
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:139"
 
6377
$at_failed && at_fn_log_failure  \
 
6378
"pid"
 
6379
$at_traceon; }
 
6380
 
 
6381
  set +x
 
6382
  $at_times_p && times >"$at_times_file"
 
6383
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
6384
read at_status <"$at_status_file"
 
6385
#AT_STOP_42
 
6386
#AT_START_43
 
6387
at_fn_group_banner 43 'daemon.at:142' \
 
6388
  "daemon --detach --monitor startup errors" "       " 6
 
6389
at_xfail=no
 
6390
(
 
6391
  $as_echo "43. $at_setup_line: testing $at_desc ..."
 
6392
  $at_traceon
 
6393
 
 
6394
 
 
6395
{ set +x
 
6396
$as_echo "$at_srcdir/daemon.at:144: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
6397
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon.at:144"
 
6398
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
6399
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6400
at_status=$? at_failed=false
 
6401
$at_check_filter
 
6402
echo stderr:; cat "$at_stderr"
 
6403
echo stdout:; tee stdout <"$at_stdout"
 
6404
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:144"
 
6405
$at_failed && at_fn_log_failure  \
 
6406
"pid"
 
6407
$at_traceon; }
 
6408
 
 
6409
   { set +x
 
6410
$as_echo "$at_srcdir/daemon.at:144: ovsdb-tool transact db \\
 
6411
        '[\"Open_vSwitch\",
 
6412
          {\"op\": \"insert\",
 
6413
           \"table\": \"Open_vSwitch\",
 
6414
           \"row\": {}}]'"
 
6415
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:144"
 
6416
( $at_check_trace; ovsdb-tool transact db \
 
6417
        '["Open_vSwitch",
 
6418
          {"op": "insert",
 
6419
           "table": "Open_vSwitch",
 
6420
           "row": {}}]'
 
6421
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6422
at_status=$? at_failed=false
 
6423
$at_check_filter
 
6424
echo stderr:; cat "$at_stderr"
 
6425
echo stdout:; cat "$at_stdout"
 
6426
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:144"
 
6427
$at_failed && at_fn_log_failure  \
 
6428
"pid"
 
6429
$at_traceon; }
 
6430
 
 
6431
{ set +x
 
6432
$as_echo "$at_srcdir/daemon.at:145: ovsdb-server --detach --pidfile=\$PWD/pid --monitor --unixctl=\$PWD/nonexistent/unixctl db"
 
6433
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --monitor --unixctl=$PWD/nonexistent/unixctl db" "daemon.at:145"
 
6434
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --monitor --unixctl=$PWD/nonexistent/unixctl db
 
6435
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6436
at_status=$? at_failed=false
 
6437
$at_check_filter
 
6438
echo stderr:; tee stderr <"$at_stderr"
 
6439
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6440
at_fn_check_status 1 $at_status "$at_srcdir/daemon.at:145"
 
6441
$at_failed && at_fn_log_failure  \
 
6442
"pid"
 
6443
$at_traceon; }
 
6444
 
 
6445
{ set +x
 
6446
$as_echo "$at_srcdir/daemon.at:146: grep 'ovsdb-server: could not initialize control socket' stderr"
 
6447
at_fn_check_prepare_trace "daemon.at:146"
 
6448
( $at_check_trace; grep 'ovsdb-server: could not initialize control socket' stderr
 
6449
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6450
at_status=$? at_failed=false
 
6451
$at_check_filter
 
6452
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6453
echo stdout:; cat "$at_stdout"
 
6454
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:146"
 
6455
$at_failed && at_fn_log_failure  \
 
6456
"pid"
 
6457
$at_traceon; }
 
6458
 
 
6459
{ set +x
 
6460
$as_echo "$at_srcdir/daemon.at:148: test ! -s pid"
 
6461
at_fn_check_prepare_trace "daemon.at:148"
 
6462
( $at_check_trace; test ! -s pid
 
6463
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6464
at_status=$? at_failed=false
 
6465
$at_check_filter
 
6466
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6467
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6468
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:148"
 
6469
$at_failed && at_fn_log_failure  \
 
6470
"pid"
 
6471
$at_traceon; }
 
6472
 
 
6473
  set +x
 
6474
  $at_times_p && times >"$at_times_file"
 
6475
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
6476
read at_status <"$at_status_file"
 
6477
#AT_STOP_43
 
6478
#AT_START_44
 
6479
at_fn_group_banner 44 'daemon.at:153' \
 
6480
  "daemon --detach closes standard fds" "            " 6
 
6481
at_xfail=no
 
6482
(
 
6483
  $as_echo "44. $at_setup_line: testing $at_desc ..."
 
6484
  $at_traceon
 
6485
 
 
6486
$as_echo "daemon.at:154" >"$at_check_line_file"
 
6487
at_fn_check_skip 77 "$at_srcdir/daemon.at:154"
 
6488
 
 
6489
 
 
6490
 
 
6491
{ set +x
 
6492
$as_echo "$at_srcdir/daemon.at:158: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
6493
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon.at:158"
 
6494
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
6495
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6496
at_status=$? at_failed=false
 
6497
$at_check_filter
 
6498
echo stderr:; cat "$at_stderr"
 
6499
echo stdout:; tee stdout <"$at_stdout"
 
6500
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:158"
 
6501
$at_failed && at_fn_log_failure  \
 
6502
"pid" \
 
6503
"status" \
 
6504
"stderr"
 
6505
$at_traceon; }
 
6506
 
 
6507
   { set +x
 
6508
$as_echo "$at_srcdir/daemon.at:158: ovsdb-tool transact db \\
 
6509
        '[\"Open_vSwitch\",
 
6510
          {\"op\": \"insert\",
 
6511
           \"table\": \"Open_vSwitch\",
 
6512
           \"row\": {}}]'"
 
6513
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:158"
 
6514
( $at_check_trace; ovsdb-tool transact db \
 
6515
        '["Open_vSwitch",
 
6516
          {"op": "insert",
 
6517
           "table": "Open_vSwitch",
 
6518
           "row": {}}]'
 
6519
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6520
at_status=$? at_failed=false
 
6521
$at_check_filter
 
6522
echo stderr:; cat "$at_stderr"
 
6523
echo stdout:; cat "$at_stdout"
 
6524
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:158"
 
6525
$at_failed && at_fn_log_failure  \
 
6526
"pid" \
 
6527
"status" \
 
6528
"stderr"
 
6529
$at_traceon; }
 
6530
 
 
6531
{ set +x
 
6532
$as_echo "$at_srcdir/daemon.at:159: (yes 2>stderr; echo \$? > status) | ovsdb-server --detach --pidfile=\$PWD/pid --unixctl=\$PWD/unixctl db"
 
6533
at_fn_check_prepare_notrace 'a shell pipeline' "daemon.at:159"
 
6534
( $at_check_trace; (yes 2>stderr; echo $? > status) | ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/unixctl db
 
6535
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6536
at_status=$? at_failed=false
 
6537
$at_check_filter
 
6538
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6539
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6540
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:159"
 
6541
$at_failed && at_fn_log_failure  \
 
6542
"pid" \
 
6543
"status" \
 
6544
"stderr"
 
6545
$at_traceon; }
 
6546
 
 
6547
{ set +x
 
6548
$as_echo "$at_srcdir/daemon.at:160: kill \`cat pid\`"
 
6549
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:160"
 
6550
( $at_check_trace; kill `cat pid`
 
6551
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6552
at_status=$? at_failed=false
 
6553
$at_check_filter
 
6554
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6555
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6556
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:160"
 
6557
$at_failed && at_fn_log_failure  \
 
6558
"pid" \
 
6559
"status" \
 
6560
"stderr"
 
6561
$at_traceon; }
 
6562
 
 
6563
{ set +x
 
6564
$as_echo "$at_srcdir/daemon.at:161: test -s status"
 
6565
at_fn_check_prepare_trace "daemon.at:161"
 
6566
( $at_check_trace; test -s status
 
6567
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6568
at_status=$? at_failed=false
 
6569
$at_check_filter
 
6570
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6571
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6572
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:161"
 
6573
$at_failed && at_fn_log_failure  \
 
6574
"pid" \
 
6575
"status" \
 
6576
"stderr"
 
6577
$at_traceon; }
 
6578
 
 
6579
if grep '[bB]roken pipe' stderr >/dev/null 2>&1; then
 
6580
  # Something in the environment caused SIGPIPE to be ignored, but
 
6581
  # 'yes' at least told us that it got EPIPE.  Good enough; we know
 
6582
  # that stdout was closed.
 
6583
  :
 
6584
else
 
6585
  # Otherwise make sure that 'yes' died from SIGPIPE.
 
6586
  { set +x
 
6587
$as_echo "$at_srcdir/daemon.at:169: kill -l \`cat status\`"
 
6588
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:169"
 
6589
( $at_check_trace; kill -l `cat status`
 
6590
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6591
at_status=$? at_failed=false
 
6592
$at_check_filter
 
6593
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6594
echo >>"$at_stdout"; $as_echo "PIPE
 
6595
" | \
 
6596
  $at_diff - "$at_stdout" || at_failed=:
 
6597
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:169"
 
6598
$at_failed && at_fn_log_failure  \
 
6599
"pid" \
 
6600
"status" \
 
6601
"stderr"
 
6602
$at_traceon; }
 
6603
 
 
6604
fi
 
6605
  set +x
 
6606
  $at_times_p && times >"$at_times_file"
 
6607
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
6608
read at_status <"$at_status_file"
 
6609
#AT_STOP_44
 
6610
#AT_START_45
 
6611
at_fn_group_banner 45 'daemon.at:176' \
 
6612
  "daemon --detach --monitor closes standard fds" "  " 6
 
6613
at_xfail=no
 
6614
(
 
6615
  $as_echo "45. $at_setup_line: testing $at_desc ..."
 
6616
  $at_traceon
 
6617
 
 
6618
$as_echo "daemon.at:177" >"$at_check_line_file"
 
6619
at_fn_check_skip 77 "$at_srcdir/daemon.at:177"
 
6620
 
 
6621
 
 
6622
 
 
6623
{ set +x
 
6624
$as_echo "$at_srcdir/daemon.at:181: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
6625
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon.at:181"
 
6626
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
6627
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6628
at_status=$? at_failed=false
 
6629
$at_check_filter
 
6630
echo stderr:; cat "$at_stderr"
 
6631
echo stdout:; tee stdout <"$at_stdout"
 
6632
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:181"
 
6633
$at_failed && at_fn_log_failure  \
 
6634
"pid" \
 
6635
"status" \
 
6636
"stderr"
 
6637
$at_traceon; }
 
6638
 
 
6639
   { set +x
 
6640
$as_echo "$at_srcdir/daemon.at:181: ovsdb-tool transact db \\
 
6641
        '[\"Open_vSwitch\",
 
6642
          {\"op\": \"insert\",
 
6643
           \"table\": \"Open_vSwitch\",
 
6644
           \"row\": {}}]'"
 
6645
at_fn_check_prepare_notrace 'an embedded newline' "daemon.at:181"
 
6646
( $at_check_trace; ovsdb-tool transact db \
 
6647
        '["Open_vSwitch",
 
6648
          {"op": "insert",
 
6649
           "table": "Open_vSwitch",
 
6650
           "row": {}}]'
 
6651
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6652
at_status=$? at_failed=false
 
6653
$at_check_filter
 
6654
echo stderr:; cat "$at_stderr"
 
6655
echo stdout:; cat "$at_stdout"
 
6656
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:181"
 
6657
$at_failed && at_fn_log_failure  \
 
6658
"pid" \
 
6659
"status" \
 
6660
"stderr"
 
6661
$at_traceon; }
 
6662
 
 
6663
{ set +x
 
6664
$as_echo "$at_srcdir/daemon.at:182: (yes 2>stderr; echo \$? > status) | ovsdb-server --detach --monitor --pidfile=\$PWD/pid --unixctl=\$PWD/unixctl db"
 
6665
at_fn_check_prepare_notrace 'a shell pipeline' "daemon.at:182"
 
6666
( $at_check_trace; (yes 2>stderr; echo $? > status) | ovsdb-server --detach --monitor --pidfile=$PWD/pid --unixctl=$PWD/unixctl db
 
6667
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6668
at_status=$? at_failed=false
 
6669
$at_check_filter
 
6670
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6671
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6672
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:182"
 
6673
$at_failed && at_fn_log_failure  \
 
6674
"pid" \
 
6675
"status" \
 
6676
"stderr"
 
6677
$at_traceon; }
 
6678
 
 
6679
{ set +x
 
6680
$as_echo "$at_srcdir/daemon.at:183: kill \`cat pid\`"
 
6681
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:183"
 
6682
( $at_check_trace; kill `cat pid`
 
6683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6684
at_status=$? at_failed=false
 
6685
$at_check_filter
 
6686
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6687
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6688
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:183"
 
6689
$at_failed && at_fn_log_failure  \
 
6690
"pid" \
 
6691
"status" \
 
6692
"stderr"
 
6693
$at_traceon; }
 
6694
 
 
6695
{ set +x
 
6696
$as_echo "$at_srcdir/daemon.at:184: test -s status"
 
6697
at_fn_check_prepare_trace "daemon.at:184"
 
6698
( $at_check_trace; test -s status
 
6699
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6700
at_status=$? at_failed=false
 
6701
$at_check_filter
 
6702
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6703
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6704
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:184"
 
6705
$at_failed && at_fn_log_failure  \
 
6706
"pid" \
 
6707
"status" \
 
6708
"stderr"
 
6709
$at_traceon; }
 
6710
 
 
6711
if grep '[bB]roken pipe' stderr >/dev/null 2>&1; then
 
6712
  # Something in the environment caused SIGPIPE to be ignored, but
 
6713
  # 'yes' at least told us that it got EPIPE.  Good enough; we know
 
6714
  # that stdout was closed.
 
6715
  :
 
6716
else
 
6717
  # Otherwise make sure that 'yes' died from SIGPIPE.
 
6718
  { set +x
 
6719
$as_echo "$at_srcdir/daemon.at:192: kill -l \`cat status\`"
 
6720
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon.at:192"
 
6721
( $at_check_trace; kill -l `cat status`
 
6722
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6723
at_status=$? at_failed=false
 
6724
$at_check_filter
 
6725
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6726
echo >>"$at_stdout"; $as_echo "PIPE
 
6727
" | \
 
6728
  $at_diff - "$at_stdout" || at_failed=:
 
6729
at_fn_check_status 0 $at_status "$at_srcdir/daemon.at:192"
 
6730
$at_failed && at_fn_log_failure  \
 
6731
"pid" \
 
6732
"status" \
 
6733
"stderr"
 
6734
$at_traceon; }
 
6735
 
 
6736
fi
 
6737
  set +x
 
6738
  $at_times_p && times >"$at_times_file"
 
6739
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
6740
read at_status <"$at_status_file"
 
6741
#AT_STOP_45
 
6742
#AT_START_46
 
6743
at_fn_group_banner 46 'daemon-py.at:3' \
 
6744
  "daemon - Python" "                                " 7
 
6745
at_xfail=no
 
6746
(
 
6747
  $as_echo "46. $at_setup_line: testing $at_desc ..."
 
6748
  $at_traceon
 
6749
 
 
6750
$as_echo "daemon-py.at:4" >"$at_check_line_file"
 
6751
(test $HAVE_PYTHON = no) \
 
6752
  && at_fn_check_skip 77 "$at_srcdir/daemon-py.at:4"
 
6753
 
 
6754
 
 
6755
# Start the daemon and wait for the pidfile to get created
 
6756
# and that its contents are the correct pid.
 
6757
{ set +x
 
6758
$as_echo "$at_srcdir/daemon-py.at:9: \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/pid& echo \$! > expected"
 
6759
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:9"
 
6760
( $at_check_trace; $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/pid& echo $! > expected
 
6761
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6762
at_status=$? at_failed=false
 
6763
$at_check_filter
 
6764
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6765
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6766
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:9"
 
6767
$at_failed && at_fn_log_failure  \
 
6768
"pid" \
 
6769
"expected"
 
6770
$at_traceon; }
 
6771
 
 
6772
{ set +x
 
6773
$as_echo "$at_srcdir/daemon-py.at:10: # First try a quick sleep, so that the test completes very quickly
 
6774
     # in the normal case.  POSIX doesn't require fractional times to
 
6775
     # work, so this might not work.
 
6776
     sleep 0.1
 
6777
     if test -s pid; then exit 0; fi
 
6778
     # Then wait up to 10 seconds.
 
6779
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6780
       sleep 1
 
6781
       if test -s pid; then exit 0; fi
 
6782
     done
 
6783
     exit 1"
 
6784
at_fn_check_prepare_notrace 'an embedded newline' "daemon-py.at:10"
 
6785
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
6786
     # in the normal case.  POSIX doesn't require fractional times to
 
6787
     # work, so this might not work.
 
6788
     sleep 0.1
 
6789
     if test -s pid; then exit 0; fi
 
6790
     # Then wait up to 10 seconds.
 
6791
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6792
       sleep 1
 
6793
       if test -s pid; then exit 0; fi
 
6794
     done
 
6795
     exit 1
 
6796
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6797
at_status=$? at_failed=false
 
6798
$at_check_filter
 
6799
echo stderr:; cat "$at_stderr"
 
6800
echo stdout:; cat "$at_stdout"
 
6801
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:10"
 
6802
if $at_failed; then :
 
6803
  kill `cat expected`
 
6804
fi
 
6805
$at_failed && at_fn_log_failure  \
 
6806
"pid" \
 
6807
"expected"
 
6808
$at_traceon; }
 
6809
 
 
6810
{ set +x
 
6811
$as_echo "$at_srcdir/daemon-py.at:11: pid=\`cat pid\` && expected=\`cat expected\` && test \"\$pid\" = \"\$expected\""
 
6812
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:11"
 
6813
( $at_check_trace; pid=`cat pid` && expected=`cat expected` && test "$pid" = "$expected"
 
6814
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6815
at_status=$? at_failed=false
 
6816
$at_check_filter
 
6817
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6818
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6819
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:11"
 
6820
if $at_failed; then :
 
6821
  kill `cat expected`
 
6822
fi
 
6823
$at_failed && at_fn_log_failure  \
 
6824
"pid" \
 
6825
"expected"
 
6826
$at_traceon; }
 
6827
 
 
6828
{ set +x
 
6829
$as_echo "$at_srcdir/daemon-py.at:14: kill -0 \`cat pid\`"
 
6830
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:14"
 
6831
( $at_check_trace; kill -0 `cat pid`
 
6832
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6833
at_status=$? at_failed=false
 
6834
$at_check_filter
 
6835
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6836
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6837
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:14"
 
6838
if $at_failed; then :
 
6839
  kill `cat expected`
 
6840
fi
 
6841
$at_failed && at_fn_log_failure  \
 
6842
"pid" \
 
6843
"expected"
 
6844
$at_traceon; }
 
6845
 
 
6846
# Kill the daemon and make sure that the pidfile gets deleted.
 
6847
kill `cat expected`
 
6848
{ set +x
 
6849
$as_echo "$at_srcdir/daemon-py.at:17: # First try a quick sleep, so that the test completes very quickly
 
6850
     # in the normal case.  POSIX doesn't require fractional times to
 
6851
     # work, so this might not work.
 
6852
     sleep 0.1
 
6853
     if kill -0 \`cat expected\`; then :; else exit 0; fi
 
6854
     # Then wait up to 10 seconds.
 
6855
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6856
       sleep 1
 
6857
       if kill -0 \`cat expected\`; then :; else exit 0; fi
 
6858
     done
 
6859
     exit 1"
 
6860
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:17"
 
6861
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
6862
     # in the normal case.  POSIX doesn't require fractional times to
 
6863
     # work, so this might not work.
 
6864
     sleep 0.1
 
6865
     if kill -0 `cat expected`; then :; else exit 0; fi
 
6866
     # Then wait up to 10 seconds.
 
6867
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6868
       sleep 1
 
6869
       if kill -0 `cat expected`; then :; else exit 0; fi
 
6870
     done
 
6871
     exit 1
 
6872
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6873
at_status=$? at_failed=false
 
6874
$at_check_filter
 
6875
echo stderr:; cat "$at_stderr"
 
6876
echo stdout:; cat "$at_stdout"
 
6877
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:17"
 
6878
$at_failed && at_fn_log_failure  \
 
6879
"pid" \
 
6880
"expected"
 
6881
$at_traceon; }
 
6882
 
 
6883
{ set +x
 
6884
$as_echo "$at_srcdir/daemon-py.at:18: test ! -e pid"
 
6885
at_fn_check_prepare_trace "daemon-py.at:18"
 
6886
( $at_check_trace; test ! -e pid
 
6887
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6888
at_status=$? at_failed=false
 
6889
$at_check_filter
 
6890
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6891
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6892
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:18"
 
6893
$at_failed && at_fn_log_failure  \
 
6894
"pid" \
 
6895
"expected"
 
6896
$at_traceon; }
 
6897
 
 
6898
  set +x
 
6899
  $at_times_p && times >"$at_times_file"
 
6900
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
6901
read at_status <"$at_status_file"
 
6902
#AT_STOP_46
 
6903
#AT_START_47
 
6904
at_fn_group_banner 47 'daemon-py.at:21' \
 
6905
  "daemon --monitor - Python" "                      " 7
 
6906
at_xfail=no
 
6907
(
 
6908
  $as_echo "47. $at_setup_line: testing $at_desc ..."
 
6909
  $at_traceon
 
6910
 
 
6911
$as_echo "daemon-py.at:22" >"$at_check_line_file"
 
6912
(test $HAVE_PYTHON = no) \
 
6913
  && at_fn_check_skip 77 "$at_srcdir/daemon-py.at:22"
 
6914
 
 
6915
 
 
6916
 
 
6917
 
 
6918
# Start the daemon and wait for the pidfile to get created.
 
6919
{ set +x
 
6920
$as_echo "$at_srcdir/daemon-py.at:28: \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/pid --monitor& echo \$! > parent"
 
6921
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:28"
 
6922
( $at_check_trace; $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/pid --monitor& echo $! > parent
 
6923
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6924
at_status=$? at_failed=false
 
6925
$at_check_filter
 
6926
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6927
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6928
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:28"
 
6929
$at_failed && at_fn_log_failure  \
 
6930
"pid" \
 
6931
"parent" \
 
6932
"parentpid" \
 
6933
"newpid"
 
6934
$at_traceon; }
 
6935
 
 
6936
{ set +x
 
6937
$as_echo "$at_srcdir/daemon-py.at:29: # First try a quick sleep, so that the test completes very quickly
 
6938
     # in the normal case.  POSIX doesn't require fractional times to
 
6939
     # work, so this might not work.
 
6940
     sleep 0.1
 
6941
     if test -s pid; then exit 0; fi
 
6942
     # Then wait up to 10 seconds.
 
6943
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6944
       sleep 1
 
6945
       if test -s pid; then exit 0; fi
 
6946
     done
 
6947
     exit 1"
 
6948
at_fn_check_prepare_notrace 'an embedded newline' "daemon-py.at:29"
 
6949
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
6950
     # in the normal case.  POSIX doesn't require fractional times to
 
6951
     # work, so this might not work.
 
6952
     sleep 0.1
 
6953
     if test -s pid; then exit 0; fi
 
6954
     # Then wait up to 10 seconds.
 
6955
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
6956
       sleep 1
 
6957
       if test -s pid; then exit 0; fi
 
6958
     done
 
6959
     exit 1
 
6960
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6961
at_status=$? at_failed=false
 
6962
$at_check_filter
 
6963
echo stderr:; cat "$at_stderr"
 
6964
echo stdout:; cat "$at_stdout"
 
6965
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:29"
 
6966
if $at_failed; then :
 
6967
  kill `cat parent`
 
6968
fi
 
6969
$at_failed && at_fn_log_failure  \
 
6970
"pid" \
 
6971
"parent" \
 
6972
"parentpid" \
 
6973
"newpid"
 
6974
$at_traceon; }
 
6975
 
 
6976
# Check that the pidfile names a running process,
 
6977
# and that the parent process of that process is our child process.
 
6978
{ set +x
 
6979
$as_echo "$at_srcdir/daemon-py.at:32: kill -0 \`cat pid\`"
 
6980
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:32"
 
6981
( $at_check_trace; kill -0 `cat pid`
 
6982
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
6983
at_status=$? at_failed=false
 
6984
$at_check_filter
 
6985
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
6986
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
6987
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:32"
 
6988
if $at_failed; then :
 
6989
  kill `cat parent`
 
6990
fi
 
6991
$at_failed && at_fn_log_failure  \
 
6992
"pid" \
 
6993
"parent" \
 
6994
"parentpid" \
 
6995
"newpid"
 
6996
$at_traceon; }
 
6997
 
 
6998
{ set +x
 
6999
$as_echo "$at_srcdir/daemon-py.at:33: ps -o ppid= -p \`cat pid\` > parentpid"
 
7000
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:33"
 
7001
( $at_check_trace; ps -o ppid= -p `cat pid` > parentpid
 
7002
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7003
at_status=$? at_failed=false
 
7004
$at_check_filter
 
7005
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7006
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7007
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:33"
 
7008
if $at_failed; then :
 
7009
  kill `cat parent`
 
7010
fi
 
7011
$at_failed && at_fn_log_failure  \
 
7012
"pid" \
 
7013
"parent" \
 
7014
"parentpid" \
 
7015
"newpid"
 
7016
$at_traceon; }
 
7017
 
 
7018
{ set +x
 
7019
$as_echo "$at_srcdir/daemon-py.at:35: parentpid=\`cat parentpid\` &&
 
7020
   parent=\`cat parent\` &&
 
7021
   test \$parentpid = \$parent"
 
7022
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:35"
 
7023
( $at_check_trace; parentpid=`cat parentpid` &&
 
7024
   parent=`cat parent` &&
 
7025
   test $parentpid = $parent
 
7026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7027
at_status=$? at_failed=false
 
7028
$at_check_filter
 
7029
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7030
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7031
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:35"
 
7032
if $at_failed; then :
 
7033
  kill `cat parent`
 
7034
fi
 
7035
$at_failed && at_fn_log_failure  \
 
7036
"pid" \
 
7037
"parent" \
 
7038
"parentpid" \
 
7039
"newpid"
 
7040
$at_traceon; }
 
7041
 
 
7042
# Kill the daemon process, making it look like a segfault,
 
7043
# and wait for a new child process to get spawned.
 
7044
{ set +x
 
7045
$as_echo "$at_srcdir/daemon-py.at:42: cp pid oldpid"
 
7046
at_fn_check_prepare_trace "daemon-py.at:42"
 
7047
( $at_check_trace; cp pid oldpid
 
7048
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7049
at_status=$? at_failed=false
 
7050
$at_check_filter
 
7051
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7052
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7053
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:42"
 
7054
if $at_failed; then :
 
7055
  kill `cat parent`
 
7056
fi
 
7057
$at_failed && at_fn_log_failure  \
 
7058
"pid" \
 
7059
"parent" \
 
7060
"parentpid" \
 
7061
"newpid"
 
7062
$at_traceon; }
 
7063
 
 
7064
{ set +x
 
7065
$as_echo "$at_srcdir/daemon-py.at:43: kill -SEGV \`cat pid\`"
 
7066
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:43"
 
7067
( $at_check_trace; kill -SEGV `cat pid`
 
7068
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7069
at_status=$? at_failed=false
 
7070
$at_check_filter
 
7071
echo stderr:; cat "$at_stderr"
 
7072
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7073
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:43"
 
7074
if $at_failed; then :
 
7075
  kill `cat parent`
 
7076
fi
 
7077
$at_failed && at_fn_log_failure  \
 
7078
"pid" \
 
7079
"parent" \
 
7080
"parentpid" \
 
7081
"newpid"
 
7082
$at_traceon; }
 
7083
 
 
7084
{ set +x
 
7085
$as_echo "$at_srcdir/daemon-py.at:44: # First try a quick sleep, so that the test completes very quickly
 
7086
     # in the normal case.  POSIX doesn't require fractional times to
 
7087
     # work, so this might not work.
 
7088
     sleep 0.1
 
7089
     if kill -0 \`cat oldpid\`; then :; else exit 0; fi
 
7090
     # Then wait up to 10 seconds.
 
7091
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7092
       sleep 1
 
7093
       if kill -0 \`cat oldpid\`; then :; else exit 0; fi
 
7094
     done
 
7095
     exit 1"
 
7096
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:44"
 
7097
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
7098
     # in the normal case.  POSIX doesn't require fractional times to
 
7099
     # work, so this might not work.
 
7100
     sleep 0.1
 
7101
     if kill -0 `cat oldpid`; then :; else exit 0; fi
 
7102
     # Then wait up to 10 seconds.
 
7103
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7104
       sleep 1
 
7105
       if kill -0 `cat oldpid`; then :; else exit 0; fi
 
7106
     done
 
7107
     exit 1
 
7108
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7109
at_status=$? at_failed=false
 
7110
$at_check_filter
 
7111
echo stderr:; cat "$at_stderr"
 
7112
echo stdout:; cat "$at_stdout"
 
7113
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:44"
 
7114
if $at_failed; then :
 
7115
  kill `cat parent`
 
7116
fi
 
7117
$at_failed && at_fn_log_failure  \
 
7118
"pid" \
 
7119
"parent" \
 
7120
"parentpid" \
 
7121
"newpid"
 
7122
$at_traceon; }
 
7123
 
 
7124
{ set +x
 
7125
$as_echo "$at_srcdir/daemon-py.at:45: # First try a quick sleep, so that the test completes very quickly
 
7126
     # in the normal case.  POSIX doesn't require fractional times to
 
7127
     # work, so this might not work.
 
7128
     sleep 0.1
 
7129
     if test -s pid && test \`cat pid\` != \`cat oldpid\`; then exit 0; fi
 
7130
     # Then wait up to 10 seconds.
 
7131
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7132
       sleep 1
 
7133
       if test -s pid && test \`cat pid\` != \`cat oldpid\`; then exit 0; fi
 
7134
     done
 
7135
     exit 1"
 
7136
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:45"
 
7137
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
7138
     # in the normal case.  POSIX doesn't require fractional times to
 
7139
     # work, so this might not work.
 
7140
     sleep 0.1
 
7141
     if test -s pid && test `cat pid` != `cat oldpid`; then exit 0; fi
 
7142
     # Then wait up to 10 seconds.
 
7143
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7144
       sleep 1
 
7145
       if test -s pid && test `cat pid` != `cat oldpid`; then exit 0; fi
 
7146
     done
 
7147
     exit 1
 
7148
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7149
at_status=$? at_failed=false
 
7150
$at_check_filter
 
7151
echo stderr:; cat "$at_stderr"
 
7152
echo stdout:; cat "$at_stdout"
 
7153
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:45"
 
7154
if $at_failed; then :
 
7155
  kill `cat parent`
 
7156
fi
 
7157
$at_failed && at_fn_log_failure  \
 
7158
"pid" \
 
7159
"parent" \
 
7160
"parentpid" \
 
7161
"newpid"
 
7162
$at_traceon; }
 
7163
 
 
7164
{ set +x
 
7165
$as_echo "$at_srcdir/daemon-py.at:47: cp pid newpid"
 
7166
at_fn_check_prepare_trace "daemon-py.at:47"
 
7167
( $at_check_trace; cp pid newpid
 
7168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7169
at_status=$? at_failed=false
 
7170
$at_check_filter
 
7171
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7172
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7173
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:47"
 
7174
if $at_failed; then :
 
7175
  kill `cat parent`
 
7176
fi
 
7177
$at_failed && at_fn_log_failure  \
 
7178
"pid" \
 
7179
"parent" \
 
7180
"parentpid" \
 
7181
"newpid"
 
7182
$at_traceon; }
 
7183
 
 
7184
# Check that the pidfile names a running process,
 
7185
# and that the parent process of that process is our child process.
 
7186
{ set +x
 
7187
$as_echo "$at_srcdir/daemon-py.at:50: ps -o ppid= -p \`cat pid\` > parentpid"
 
7188
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:50"
 
7189
( $at_check_trace; ps -o ppid= -p `cat pid` > parentpid
 
7190
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7191
at_status=$? at_failed=false
 
7192
$at_check_filter
 
7193
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7194
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7195
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:50"
 
7196
if $at_failed; then :
 
7197
  kill `cat parent`
 
7198
fi
 
7199
$at_failed && at_fn_log_failure  \
 
7200
"pid" \
 
7201
"parent" \
 
7202
"parentpid" \
 
7203
"newpid"
 
7204
$at_traceon; }
 
7205
 
 
7206
{ set +x
 
7207
$as_echo "$at_srcdir/daemon-py.at:52: parentpid=\`cat parentpid\` &&
 
7208
   parent=\`cat parent\` &&
 
7209
   test \$parentpid = \$parent"
 
7210
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:52"
 
7211
( $at_check_trace; parentpid=`cat parentpid` &&
 
7212
   parent=`cat parent` &&
 
7213
   test $parentpid = $parent
 
7214
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7215
at_status=$? at_failed=false
 
7216
$at_check_filter
 
7217
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7218
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7219
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:52"
 
7220
if $at_failed; then :
 
7221
  kill `cat parent`
 
7222
fi
 
7223
$at_failed && at_fn_log_failure  \
 
7224
"pid" \
 
7225
"parent" \
 
7226
"parentpid" \
 
7227
"newpid"
 
7228
$at_traceon; }
 
7229
 
 
7230
# Kill the daemon process with SIGTERM, and wait for the daemon
 
7231
# and the monitor processes to go away and the pidfile to get deleted.
 
7232
{ set +x
 
7233
$as_echo "$at_srcdir/daemon-py.at:59: kill \`cat pid\`"
 
7234
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:59"
 
7235
( $at_check_trace; kill `cat pid`
 
7236
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7237
at_status=$? at_failed=false
 
7238
$at_check_filter
 
7239
echo stderr:; cat "$at_stderr"
 
7240
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7241
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:59"
 
7242
if $at_failed; then :
 
7243
  kill `cat parent`
 
7244
fi
 
7245
$at_failed && at_fn_log_failure  \
 
7246
"pid" \
 
7247
"parent" \
 
7248
"parentpid" \
 
7249
"newpid"
 
7250
$at_traceon; }
 
7251
 
 
7252
{ set +x
 
7253
$as_echo "$at_srcdir/daemon-py.at:60: # First try a quick sleep, so that the test completes very quickly
 
7254
     # in the normal case.  POSIX doesn't require fractional times to
 
7255
     # work, so this might not work.
 
7256
     sleep 0.1
 
7257
     if kill -0 \`cat parent\` || kill -0 \`cat newpid\` || test -e pid; then :; else exit 0; fi
 
7258
     # Then wait up to 10 seconds.
 
7259
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7260
       sleep 1
 
7261
       if kill -0 \`cat parent\` || kill -0 \`cat newpid\` || test -e pid; then :; else exit 0; fi
 
7262
     done
 
7263
     exit 1"
 
7264
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:60"
 
7265
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
7266
     # in the normal case.  POSIX doesn't require fractional times to
 
7267
     # work, so this might not work.
 
7268
     sleep 0.1
 
7269
     if kill -0 `cat parent` || kill -0 `cat newpid` || test -e pid; then :; else exit 0; fi
 
7270
     # Then wait up to 10 seconds.
 
7271
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7272
       sleep 1
 
7273
       if kill -0 `cat parent` || kill -0 `cat newpid` || test -e pid; then :; else exit 0; fi
 
7274
     done
 
7275
     exit 1
 
7276
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7277
at_status=$? at_failed=false
 
7278
$at_check_filter
 
7279
echo stderr:; cat "$at_stderr"
 
7280
echo stdout:; cat "$at_stdout"
 
7281
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:60"
 
7282
if $at_failed; then :
 
7283
  kill `cat parent`
 
7284
fi
 
7285
$at_failed && at_fn_log_failure  \
 
7286
"pid" \
 
7287
"parent" \
 
7288
"parentpid" \
 
7289
"newpid"
 
7290
$at_traceon; }
 
7291
 
 
7292
  set +x
 
7293
  $at_times_p && times >"$at_times_file"
 
7294
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
7295
read at_status <"$at_status_file"
 
7296
#AT_STOP_47
 
7297
#AT_START_48
 
7298
at_fn_group_banner 48 'daemon-py.at:64' \
 
7299
  "daemon --monitor restart exit code - Python" "    " 7
 
7300
at_xfail=no
 
7301
(
 
7302
  $as_echo "48. $at_setup_line: testing $at_desc ..."
 
7303
  $at_traceon
 
7304
 
 
7305
$as_echo "daemon-py.at:65" >"$at_check_line_file"
 
7306
(test $HAVE_PYTHON = no) \
 
7307
  && at_fn_check_skip 77 "$at_srcdir/daemon-py.at:65"
 
7308
 
 
7309
 
 
7310
 
 
7311
 
 
7312
# Start the daemon and wait for the pidfile to get created.
 
7313
{ set +x
 
7314
$as_echo "$at_srcdir/daemon-py.at:71: \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/pid --monitor& echo \$! > parent"
 
7315
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:71"
 
7316
( $at_check_trace; $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/pid --monitor& echo $! > parent
 
7317
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7318
at_status=$? at_failed=false
 
7319
$at_check_filter
 
7320
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7321
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7322
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:71"
 
7323
$at_failed && at_fn_log_failure  \
 
7324
"pid" \
 
7325
"parent" \
 
7326
"parentpid" \
 
7327
"newpid"
 
7328
$at_traceon; }
 
7329
 
 
7330
{ set +x
 
7331
$as_echo "$at_srcdir/daemon-py.at:72: # First try a quick sleep, so that the test completes very quickly
 
7332
     # in the normal case.  POSIX doesn't require fractional times to
 
7333
     # work, so this might not work.
 
7334
     sleep 0.1
 
7335
     if test -s pid; then exit 0; fi
 
7336
     # Then wait up to 10 seconds.
 
7337
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7338
       sleep 1
 
7339
       if test -s pid; then exit 0; fi
 
7340
     done
 
7341
     exit 1"
 
7342
at_fn_check_prepare_notrace 'an embedded newline' "daemon-py.at:72"
 
7343
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
7344
     # in the normal case.  POSIX doesn't require fractional times to
 
7345
     # work, so this might not work.
 
7346
     sleep 0.1
 
7347
     if test -s pid; then exit 0; fi
 
7348
     # Then wait up to 10 seconds.
 
7349
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7350
       sleep 1
 
7351
       if test -s pid; then exit 0; fi
 
7352
     done
 
7353
     exit 1
 
7354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7355
at_status=$? at_failed=false
 
7356
$at_check_filter
 
7357
echo stderr:; cat "$at_stderr"
 
7358
echo stdout:; cat "$at_stdout"
 
7359
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:72"
 
7360
if $at_failed; then :
 
7361
  kill `cat parent`
 
7362
fi
 
7363
$at_failed && at_fn_log_failure  \
 
7364
"pid" \
 
7365
"parent" \
 
7366
"parentpid" \
 
7367
"newpid"
 
7368
$at_traceon; }
 
7369
 
 
7370
# Check that the pidfile names a running process,
 
7371
# and that the parent process of that process is our child process.
 
7372
{ set +x
 
7373
$as_echo "$at_srcdir/daemon-py.at:75: kill -0 \`cat pid\`"
 
7374
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:75"
 
7375
( $at_check_trace; kill -0 `cat pid`
 
7376
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7377
at_status=$? at_failed=false
 
7378
$at_check_filter
 
7379
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7380
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7381
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:75"
 
7382
if $at_failed; then :
 
7383
  kill `cat parent`
 
7384
fi
 
7385
$at_failed && at_fn_log_failure  \
 
7386
"pid" \
 
7387
"parent" \
 
7388
"parentpid" \
 
7389
"newpid"
 
7390
$at_traceon; }
 
7391
 
 
7392
{ set +x
 
7393
$as_echo "$at_srcdir/daemon-py.at:76: ps -o ppid= -p \`cat pid\` > parentpid"
 
7394
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:76"
 
7395
( $at_check_trace; ps -o ppid= -p `cat pid` > parentpid
 
7396
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7397
at_status=$? at_failed=false
 
7398
$at_check_filter
 
7399
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7400
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7401
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:76"
 
7402
if $at_failed; then :
 
7403
  kill `cat parent`
 
7404
fi
 
7405
$at_failed && at_fn_log_failure  \
 
7406
"pid" \
 
7407
"parent" \
 
7408
"parentpid" \
 
7409
"newpid"
 
7410
$at_traceon; }
 
7411
 
 
7412
{ set +x
 
7413
$as_echo "$at_srcdir/daemon-py.at:78: parentpid=\`cat parentpid\` &&
 
7414
   parent=\`cat parent\` &&
 
7415
   test \$parentpid = \$parent"
 
7416
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:78"
 
7417
( $at_check_trace; parentpid=`cat parentpid` &&
 
7418
   parent=`cat parent` &&
 
7419
   test $parentpid = $parent
 
7420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7421
at_status=$? at_failed=false
 
7422
$at_check_filter
 
7423
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7424
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7425
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:78"
 
7426
if $at_failed; then :
 
7427
  kill `cat parent`
 
7428
fi
 
7429
$at_failed && at_fn_log_failure  \
 
7430
"pid" \
 
7431
"parent" \
 
7432
"parentpid" \
 
7433
"newpid"
 
7434
$at_traceon; }
 
7435
 
 
7436
# HUP the daemon process causing it to throw an exception,
 
7437
# and wait for a new child process to get spawned.
 
7438
{ set +x
 
7439
$as_echo "$at_srcdir/daemon-py.at:85: cp pid oldpid"
 
7440
at_fn_check_prepare_trace "daemon-py.at:85"
 
7441
( $at_check_trace; cp pid oldpid
 
7442
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7443
at_status=$? at_failed=false
 
7444
$at_check_filter
 
7445
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7446
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7447
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:85"
 
7448
if $at_failed; then :
 
7449
  kill `cat parent`
 
7450
fi
 
7451
$at_failed && at_fn_log_failure  \
 
7452
"pid" \
 
7453
"parent" \
 
7454
"parentpid" \
 
7455
"newpid"
 
7456
$at_traceon; }
 
7457
 
 
7458
{ set +x
 
7459
$as_echo "$at_srcdir/daemon-py.at:86: kill -HUP \`cat pid\`"
 
7460
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:86"
 
7461
( $at_check_trace; kill -HUP `cat pid`
 
7462
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7463
at_status=$? at_failed=false
 
7464
$at_check_filter
 
7465
echo stderr:; cat "$at_stderr"
 
7466
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7467
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:86"
 
7468
if $at_failed; then :
 
7469
  kill `cat parent`
 
7470
fi
 
7471
$at_failed && at_fn_log_failure  \
 
7472
"pid" \
 
7473
"parent" \
 
7474
"parentpid" \
 
7475
"newpid"
 
7476
$at_traceon; }
 
7477
 
 
7478
{ set +x
 
7479
$as_echo "$at_srcdir/daemon-py.at:87: # First try a quick sleep, so that the test completes very quickly
 
7480
     # in the normal case.  POSIX doesn't require fractional times to
 
7481
     # work, so this might not work.
 
7482
     sleep 0.1
 
7483
     if kill -0 \`cat oldpid\`; then :; else exit 0; fi
 
7484
     # Then wait up to 10 seconds.
 
7485
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7486
       sleep 1
 
7487
       if kill -0 \`cat oldpid\`; then :; else exit 0; fi
 
7488
     done
 
7489
     exit 1"
 
7490
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:87"
 
7491
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
7492
     # in the normal case.  POSIX doesn't require fractional times to
 
7493
     # work, so this might not work.
 
7494
     sleep 0.1
 
7495
     if kill -0 `cat oldpid`; then :; else exit 0; fi
 
7496
     # Then wait up to 10 seconds.
 
7497
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7498
       sleep 1
 
7499
       if kill -0 `cat oldpid`; then :; else exit 0; fi
 
7500
     done
 
7501
     exit 1
 
7502
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7503
at_status=$? at_failed=false
 
7504
$at_check_filter
 
7505
echo stderr:; cat "$at_stderr"
 
7506
echo stdout:; cat "$at_stdout"
 
7507
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:87"
 
7508
if $at_failed; then :
 
7509
  kill `cat parent`
 
7510
fi
 
7511
$at_failed && at_fn_log_failure  \
 
7512
"pid" \
 
7513
"parent" \
 
7514
"parentpid" \
 
7515
"newpid"
 
7516
$at_traceon; }
 
7517
 
 
7518
{ set +x
 
7519
$as_echo "$at_srcdir/daemon-py.at:88: # First try a quick sleep, so that the test completes very quickly
 
7520
     # in the normal case.  POSIX doesn't require fractional times to
 
7521
     # work, so this might not work.
 
7522
     sleep 0.1
 
7523
     if test -s pid && test \`cat pid\` != \`cat oldpid\`; then exit 0; fi
 
7524
     # Then wait up to 10 seconds.
 
7525
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7526
       sleep 1
 
7527
       if test -s pid && test \`cat pid\` != \`cat oldpid\`; then exit 0; fi
 
7528
     done
 
7529
     exit 1"
 
7530
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:88"
 
7531
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
7532
     # in the normal case.  POSIX doesn't require fractional times to
 
7533
     # work, so this might not work.
 
7534
     sleep 0.1
 
7535
     if test -s pid && test `cat pid` != `cat oldpid`; then exit 0; fi
 
7536
     # Then wait up to 10 seconds.
 
7537
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7538
       sleep 1
 
7539
       if test -s pid && test `cat pid` != `cat oldpid`; then exit 0; fi
 
7540
     done
 
7541
     exit 1
 
7542
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7543
at_status=$? at_failed=false
 
7544
$at_check_filter
 
7545
echo stderr:; cat "$at_stderr"
 
7546
echo stdout:; cat "$at_stdout"
 
7547
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:88"
 
7548
if $at_failed; then :
 
7549
  kill `cat parent`
 
7550
fi
 
7551
$at_failed && at_fn_log_failure  \
 
7552
"pid" \
 
7553
"parent" \
 
7554
"parentpid" \
 
7555
"newpid"
 
7556
$at_traceon; }
 
7557
 
 
7558
{ set +x
 
7559
$as_echo "$at_srcdir/daemon-py.at:90: cp pid newpid"
 
7560
at_fn_check_prepare_trace "daemon-py.at:90"
 
7561
( $at_check_trace; cp pid newpid
 
7562
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7563
at_status=$? at_failed=false
 
7564
$at_check_filter
 
7565
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7566
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7567
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:90"
 
7568
if $at_failed; then :
 
7569
  kill `cat parent`
 
7570
fi
 
7571
$at_failed && at_fn_log_failure  \
 
7572
"pid" \
 
7573
"parent" \
 
7574
"parentpid" \
 
7575
"newpid"
 
7576
$at_traceon; }
 
7577
 
 
7578
# Check that the pidfile names a running process,
 
7579
# and that the parent process of that process is our child process.
 
7580
{ set +x
 
7581
$as_echo "$at_srcdir/daemon-py.at:93: ps -o ppid= -p \`cat pid\` > parentpid"
 
7582
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:93"
 
7583
( $at_check_trace; ps -o ppid= -p `cat pid` > parentpid
 
7584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7585
at_status=$? at_failed=false
 
7586
$at_check_filter
 
7587
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7588
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7589
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:93"
 
7590
if $at_failed; then :
 
7591
  kill `cat parent`
 
7592
fi
 
7593
$at_failed && at_fn_log_failure  \
 
7594
"pid" \
 
7595
"parent" \
 
7596
"parentpid" \
 
7597
"newpid"
 
7598
$at_traceon; }
 
7599
 
 
7600
{ set +x
 
7601
$as_echo "$at_srcdir/daemon-py.at:95: parentpid=\`cat parentpid\` &&
 
7602
   parent=\`cat parent\` &&
 
7603
   test \$parentpid = \$parent"
 
7604
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:95"
 
7605
( $at_check_trace; parentpid=`cat parentpid` &&
 
7606
   parent=`cat parent` &&
 
7607
   test $parentpid = $parent
 
7608
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7609
at_status=$? at_failed=false
 
7610
$at_check_filter
 
7611
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7612
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7613
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:95"
 
7614
if $at_failed; then :
 
7615
  kill `cat parent`
 
7616
fi
 
7617
$at_failed && at_fn_log_failure  \
 
7618
"pid" \
 
7619
"parent" \
 
7620
"parentpid" \
 
7621
"newpid"
 
7622
$at_traceon; }
 
7623
 
 
7624
# Kill the daemon process with SIGTERM, and wait for the daemon
 
7625
# and the monitor processes to go away and the pidfile to get deleted.
 
7626
{ set +x
 
7627
$as_echo "$at_srcdir/daemon-py.at:102: kill \`cat pid\`"
 
7628
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:102"
 
7629
( $at_check_trace; kill `cat pid`
 
7630
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7631
at_status=$? at_failed=false
 
7632
$at_check_filter
 
7633
echo stderr:; cat "$at_stderr"
 
7634
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7635
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:102"
 
7636
if $at_failed; then :
 
7637
  kill `cat parent`
 
7638
fi
 
7639
$at_failed && at_fn_log_failure  \
 
7640
"pid" \
 
7641
"parent" \
 
7642
"parentpid" \
 
7643
"newpid"
 
7644
$at_traceon; }
 
7645
 
 
7646
{ set +x
 
7647
$as_echo "$at_srcdir/daemon-py.at:103: # First try a quick sleep, so that the test completes very quickly
 
7648
     # in the normal case.  POSIX doesn't require fractional times to
 
7649
     # work, so this might not work.
 
7650
     sleep 0.1
 
7651
     if kill -0 \`cat parent\` || kill -0 \`cat newpid\` || test -e pid; then :; else exit 0; fi
 
7652
     # Then wait up to 10 seconds.
 
7653
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7654
       sleep 1
 
7655
       if kill -0 \`cat parent\` || kill -0 \`cat newpid\` || test -e pid; then :; else exit 0; fi
 
7656
     done
 
7657
     exit 1"
 
7658
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:103"
 
7659
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
7660
     # in the normal case.  POSIX doesn't require fractional times to
 
7661
     # work, so this might not work.
 
7662
     sleep 0.1
 
7663
     if kill -0 `cat parent` || kill -0 `cat newpid` || test -e pid; then :; else exit 0; fi
 
7664
     # Then wait up to 10 seconds.
 
7665
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7666
       sleep 1
 
7667
       if kill -0 `cat parent` || kill -0 `cat newpid` || test -e pid; then :; else exit 0; fi
 
7668
     done
 
7669
     exit 1
 
7670
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7671
at_status=$? at_failed=false
 
7672
$at_check_filter
 
7673
echo stderr:; cat "$at_stderr"
 
7674
echo stdout:; cat "$at_stdout"
 
7675
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:103"
 
7676
if $at_failed; then :
 
7677
  kill `cat parent`
 
7678
fi
 
7679
$at_failed && at_fn_log_failure  \
 
7680
"pid" \
 
7681
"parent" \
 
7682
"parentpid" \
 
7683
"newpid"
 
7684
$at_traceon; }
 
7685
 
 
7686
  set +x
 
7687
  $at_times_p && times >"$at_times_file"
 
7688
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
7689
read at_status <"$at_status_file"
 
7690
#AT_STOP_48
 
7691
#AT_START_49
 
7692
at_fn_group_banner 49 'daemon-py.at:107' \
 
7693
  "daemon --detach - Python" "                       " 7
 
7694
at_xfail=no
 
7695
(
 
7696
  $as_echo "49. $at_setup_line: testing $at_desc ..."
 
7697
  $at_traceon
 
7698
 
 
7699
$as_echo "daemon-py.at:108" >"$at_check_line_file"
 
7700
(test $HAVE_PYTHON = no) \
 
7701
  && at_fn_check_skip 77 "$at_srcdir/daemon-py.at:108"
 
7702
 
 
7703
# Start the daemon and make sure that the pidfile exists immediately.
 
7704
# We don't wait for the pidfile to get created because the daemon is
 
7705
# supposed to do so before the parent exits.
 
7706
{ set +x
 
7707
$as_echo "$at_srcdir/daemon-py.at:113: \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/pid --detach"
 
7708
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:113"
 
7709
( $at_check_trace; $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/pid --detach
 
7710
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7711
at_status=$? at_failed=false
 
7712
$at_check_filter
 
7713
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7714
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7715
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:113"
 
7716
$at_failed && at_fn_log_failure  \
 
7717
"pid"
 
7718
$at_traceon; }
 
7719
 
 
7720
{ set +x
 
7721
$as_echo "$at_srcdir/daemon-py.at:114: test -s pid"
 
7722
at_fn_check_prepare_trace "daemon-py.at:114"
 
7723
( $at_check_trace; test -s pid
 
7724
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7725
at_status=$? at_failed=false
 
7726
$at_check_filter
 
7727
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7728
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7729
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:114"
 
7730
$at_failed && at_fn_log_failure  \
 
7731
"pid"
 
7732
$at_traceon; }
 
7733
 
 
7734
{ set +x
 
7735
$as_echo "$at_srcdir/daemon-py.at:115: kill -0 \`cat pid\`"
 
7736
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:115"
 
7737
( $at_check_trace; kill -0 `cat pid`
 
7738
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7739
at_status=$? at_failed=false
 
7740
$at_check_filter
 
7741
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7742
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7743
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:115"
 
7744
$at_failed && at_fn_log_failure  \
 
7745
"pid"
 
7746
$at_traceon; }
 
7747
 
 
7748
# Kill the daemon and make sure that the pidfile gets deleted.
 
7749
cp pid saved-pid
 
7750
kill `cat pid`
 
7751
{ set +x
 
7752
$as_echo "$at_srcdir/daemon-py.at:119: # First try a quick sleep, so that the test completes very quickly
 
7753
     # in the normal case.  POSIX doesn't require fractional times to
 
7754
     # work, so this might not work.
 
7755
     sleep 0.1
 
7756
     if kill -0 \`cat saved-pid\`; then :; else exit 0; fi
 
7757
     # Then wait up to 10 seconds.
 
7758
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7759
       sleep 1
 
7760
       if kill -0 \`cat saved-pid\`; then :; else exit 0; fi
 
7761
     done
 
7762
     exit 1"
 
7763
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:119"
 
7764
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
7765
     # in the normal case.  POSIX doesn't require fractional times to
 
7766
     # work, so this might not work.
 
7767
     sleep 0.1
 
7768
     if kill -0 `cat saved-pid`; then :; else exit 0; fi
 
7769
     # Then wait up to 10 seconds.
 
7770
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
7771
       sleep 1
 
7772
       if kill -0 `cat saved-pid`; then :; else exit 0; fi
 
7773
     done
 
7774
     exit 1
 
7775
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7776
at_status=$? at_failed=false
 
7777
$at_check_filter
 
7778
echo stderr:; cat "$at_stderr"
 
7779
echo stdout:; cat "$at_stdout"
 
7780
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:119"
 
7781
$at_failed && at_fn_log_failure  \
 
7782
"pid"
 
7783
$at_traceon; }
 
7784
 
 
7785
{ set +x
 
7786
$as_echo "$at_srcdir/daemon-py.at:120: test ! -e pid"
 
7787
at_fn_check_prepare_trace "daemon-py.at:120"
 
7788
( $at_check_trace; test ! -e pid
 
7789
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7790
at_status=$? at_failed=false
 
7791
$at_check_filter
 
7792
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7793
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7794
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:120"
 
7795
$at_failed && at_fn_log_failure  \
 
7796
"pid"
 
7797
$at_traceon; }
 
7798
 
 
7799
  set +x
 
7800
  $at_times_p && times >"$at_times_file"
 
7801
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
7802
read at_status <"$at_status_file"
 
7803
#AT_STOP_49
 
7804
#AT_START_50
 
7805
at_fn_group_banner 50 'daemon-py.at:123' \
 
7806
  "daemon --detach --monitor - Python" "             " 7
 
7807
at_xfail=no
 
7808
(
 
7809
  $as_echo "50. $at_setup_line: testing $at_desc ..."
 
7810
  $at_traceon
 
7811
 
 
7812
$as_echo "daemon-py.at:124" >"$at_check_line_file"
 
7813
(test $HAVE_PYTHON = no) \
 
7814
  && at_fn_check_skip 77 "$at_srcdir/daemon-py.at:124"
 
7815
 
 
7816
 
 
7817
 
 
7818
 
 
7819
 
 
7820
 
 
7821
 
 
7822
# Start the daemon and make sure that the pidfile exists immediately.
 
7823
# We don't wait for the pidfile to get created because the daemon is
 
7824
# supposed to do so before the parent exits.
 
7825
{ set +x
 
7826
$as_echo "$at_srcdir/daemon-py.at:136: \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/daemon --detach --monitor"
 
7827
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:136"
 
7828
( $at_check_trace; $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/daemon --detach --monitor
 
7829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7830
at_status=$? at_failed=false
 
7831
$at_check_filter
 
7832
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7833
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7834
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:136"
 
7835
$at_failed && at_fn_log_failure  \
 
7836
"daemon" \
 
7837
"olddaemon" \
 
7838
"newdaemon" \
 
7839
"monitor" \
 
7840
"newmonitor" \
 
7841
"init"
 
7842
$at_traceon; }
 
7843
 
 
7844
{ set +x
 
7845
$as_echo "$at_srcdir/daemon-py.at:137: test -s daemon"
 
7846
at_fn_check_prepare_trace "daemon-py.at:137"
 
7847
( $at_check_trace; test -s daemon
 
7848
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7849
at_status=$? at_failed=false
 
7850
$at_check_filter
 
7851
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7852
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7853
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:137"
 
7854
$at_failed && at_fn_log_failure  \
 
7855
"daemon" \
 
7856
"olddaemon" \
 
7857
"newdaemon" \
 
7858
"monitor" \
 
7859
"newmonitor" \
 
7860
"init"
 
7861
$at_traceon; }
 
7862
 
 
7863
# Check that the pidfile names a running process,
 
7864
# and that the parent process of that process is a running process,
 
7865
# and that the parent process of that process is init.
 
7866
{ set +x
 
7867
$as_echo "$at_srcdir/daemon-py.at:141: kill -0 \`cat daemon\`"
 
7868
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:141"
 
7869
( $at_check_trace; kill -0 `cat daemon`
 
7870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7871
at_status=$? at_failed=false
 
7872
$at_check_filter
 
7873
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7874
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7875
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:141"
 
7876
if $at_failed; then :
 
7877
  kill `cat daemon monitor`
 
7878
fi
 
7879
$at_failed && at_fn_log_failure  \
 
7880
"daemon" \
 
7881
"olddaemon" \
 
7882
"newdaemon" \
 
7883
"monitor" \
 
7884
"newmonitor" \
 
7885
"init"
 
7886
$at_traceon; }
 
7887
 
 
7888
{ set +x
 
7889
$as_echo "$at_srcdir/daemon-py.at:142: ps -o ppid= -p \`cat daemon\` > monitor"
 
7890
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:142"
 
7891
( $at_check_trace; ps -o ppid= -p `cat daemon` > monitor
 
7892
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7893
at_status=$? at_failed=false
 
7894
$at_check_filter
 
7895
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7896
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7897
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:142"
 
7898
if $at_failed; then :
 
7899
  kill `cat daemon monitor`
 
7900
fi
 
7901
$at_failed && at_fn_log_failure  \
 
7902
"daemon" \
 
7903
"olddaemon" \
 
7904
"newdaemon" \
 
7905
"monitor" \
 
7906
"newmonitor" \
 
7907
"init"
 
7908
$at_traceon; }
 
7909
 
 
7910
{ set +x
 
7911
$as_echo "$at_srcdir/daemon-py.at:143: kill -0 \`cat monitor\`"
 
7912
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:143"
 
7913
( $at_check_trace; kill -0 `cat monitor`
 
7914
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7915
at_status=$? at_failed=false
 
7916
$at_check_filter
 
7917
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7918
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7919
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:143"
 
7920
if $at_failed; then :
 
7921
  kill `cat daemon monitor`
 
7922
fi
 
7923
$at_failed && at_fn_log_failure  \
 
7924
"daemon" \
 
7925
"olddaemon" \
 
7926
"newdaemon" \
 
7927
"monitor" \
 
7928
"newmonitor" \
 
7929
"init"
 
7930
$at_traceon; }
 
7931
 
 
7932
{ set +x
 
7933
$as_echo "$at_srcdir/daemon-py.at:144: ps -o ppid= -p \`cat monitor\` > init"
 
7934
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:144"
 
7935
( $at_check_trace; ps -o ppid= -p `cat monitor` > init
 
7936
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7937
at_status=$? at_failed=false
 
7938
$at_check_filter
 
7939
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7940
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7941
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:144"
 
7942
if $at_failed; then :
 
7943
  kill `cat daemon monitor`
 
7944
fi
 
7945
$at_failed && at_fn_log_failure  \
 
7946
"daemon" \
 
7947
"olddaemon" \
 
7948
"newdaemon" \
 
7949
"monitor" \
 
7950
"newmonitor" \
 
7951
"init"
 
7952
$at_traceon; }
 
7953
 
 
7954
{ set +x
 
7955
$as_echo "$at_srcdir/daemon-py.at:145: test \`cat init\` = 1"
 
7956
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:145"
 
7957
( $at_check_trace; test `cat init` = 1
 
7958
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7959
at_status=$? at_failed=false
 
7960
$at_check_filter
 
7961
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7962
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7963
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:145"
 
7964
if $at_failed; then :
 
7965
  kill `cat daemon monitor`
 
7966
fi
 
7967
$at_failed && at_fn_log_failure  \
 
7968
"daemon" \
 
7969
"olddaemon" \
 
7970
"newdaemon" \
 
7971
"monitor" \
 
7972
"newmonitor" \
 
7973
"init"
 
7974
$at_traceon; }
 
7975
 
 
7976
# Kill the daemon process, making it look like a segfault,
 
7977
# and wait for a new daemon process to get spawned.
 
7978
{ set +x
 
7979
$as_echo "$at_srcdir/daemon-py.at:148: cp daemon olddaemon"
 
7980
at_fn_check_prepare_trace "daemon-py.at:148"
 
7981
( $at_check_trace; cp daemon olddaemon
 
7982
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
7983
at_status=$? at_failed=false
 
7984
$at_check_filter
 
7985
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
7986
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
7987
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:148"
 
7988
if $at_failed; then :
 
7989
  kill `cat daemon monitor`
 
7990
fi
 
7991
$at_failed && at_fn_log_failure  \
 
7992
"daemon" \
 
7993
"olddaemon" \
 
7994
"newdaemon" \
 
7995
"monitor" \
 
7996
"newmonitor" \
 
7997
"init"
 
7998
$at_traceon; }
 
7999
 
 
8000
{ set +x
 
8001
$as_echo "$at_srcdir/daemon-py.at:149: kill -SEGV \`cat daemon\`"
 
8002
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:149"
 
8003
( $at_check_trace; kill -SEGV `cat daemon`
 
8004
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8005
at_status=$? at_failed=false
 
8006
$at_check_filter
 
8007
echo stderr:; cat "$at_stderr"
 
8008
echo stdout:; cat "$at_stdout"
 
8009
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:149"
 
8010
if $at_failed; then :
 
8011
  kill `cat daemon monitor`
 
8012
fi
 
8013
$at_failed && at_fn_log_failure  \
 
8014
"daemon" \
 
8015
"olddaemon" \
 
8016
"newdaemon" \
 
8017
"monitor" \
 
8018
"newmonitor" \
 
8019
"init"
 
8020
$at_traceon; }
 
8021
 
 
8022
{ set +x
 
8023
$as_echo "$at_srcdir/daemon-py.at:150: # First try a quick sleep, so that the test completes very quickly
 
8024
     # in the normal case.  POSIX doesn't require fractional times to
 
8025
     # work, so this might not work.
 
8026
     sleep 0.1
 
8027
     if kill -0 \`cat olddaemon\`; then :; else exit 0; fi
 
8028
     # Then wait up to 10 seconds.
 
8029
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
8030
       sleep 1
 
8031
       if kill -0 \`cat olddaemon\`; then :; else exit 0; fi
 
8032
     done
 
8033
     exit 1"
 
8034
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:150"
 
8035
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
8036
     # in the normal case.  POSIX doesn't require fractional times to
 
8037
     # work, so this might not work.
 
8038
     sleep 0.1
 
8039
     if kill -0 `cat olddaemon`; then :; else exit 0; fi
 
8040
     # Then wait up to 10 seconds.
 
8041
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
8042
       sleep 1
 
8043
       if kill -0 `cat olddaemon`; then :; else exit 0; fi
 
8044
     done
 
8045
     exit 1
 
8046
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8047
at_status=$? at_failed=false
 
8048
$at_check_filter
 
8049
echo stderr:; cat "$at_stderr"
 
8050
echo stdout:; cat "$at_stdout"
 
8051
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:150"
 
8052
if $at_failed; then :
 
8053
  kill `cat olddaemon daemon`
 
8054
fi
 
8055
$at_failed && at_fn_log_failure  \
 
8056
"daemon" \
 
8057
"olddaemon" \
 
8058
"newdaemon" \
 
8059
"monitor" \
 
8060
"newmonitor" \
 
8061
"init"
 
8062
$at_traceon; }
 
8063
 
 
8064
{ set +x
 
8065
$as_echo "$at_srcdir/daemon-py.at:151: # First try a quick sleep, so that the test completes very quickly
 
8066
     # in the normal case.  POSIX doesn't require fractional times to
 
8067
     # work, so this might not work.
 
8068
     sleep 0.1
 
8069
     if test -s daemon && test \`cat daemon\` != \`cat olddaemon\`; then exit 0; fi
 
8070
     # Then wait up to 10 seconds.
 
8071
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
8072
       sleep 1
 
8073
       if test -s daemon && test \`cat daemon\` != \`cat olddaemon\`; then exit 0; fi
 
8074
     done
 
8075
     exit 1"
 
8076
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:151"
 
8077
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
8078
     # in the normal case.  POSIX doesn't require fractional times to
 
8079
     # work, so this might not work.
 
8080
     sleep 0.1
 
8081
     if test -s daemon && test `cat daemon` != `cat olddaemon`; then exit 0; fi
 
8082
     # Then wait up to 10 seconds.
 
8083
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
8084
       sleep 1
 
8085
       if test -s daemon && test `cat daemon` != `cat olddaemon`; then exit 0; fi
 
8086
     done
 
8087
     exit 1
 
8088
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8089
at_status=$? at_failed=false
 
8090
$at_check_filter
 
8091
echo stderr:; cat "$at_stderr"
 
8092
echo stdout:; cat "$at_stdout"
 
8093
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:151"
 
8094
if $at_failed; then :
 
8095
  kill `cat olddaemon daemon`
 
8096
fi
 
8097
$at_failed && at_fn_log_failure  \
 
8098
"daemon" \
 
8099
"olddaemon" \
 
8100
"newdaemon" \
 
8101
"monitor" \
 
8102
"newmonitor" \
 
8103
"init"
 
8104
$at_traceon; }
 
8105
 
 
8106
{ set +x
 
8107
$as_echo "$at_srcdir/daemon-py.at:153: cp daemon newdaemon"
 
8108
at_fn_check_prepare_trace "daemon-py.at:153"
 
8109
( $at_check_trace; cp daemon newdaemon
 
8110
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8111
at_status=$? at_failed=false
 
8112
$at_check_filter
 
8113
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8114
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8115
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:153"
 
8116
if $at_failed; then :
 
8117
  kill `cat daemon monitor`
 
8118
fi
 
8119
$at_failed && at_fn_log_failure  \
 
8120
"daemon" \
 
8121
"olddaemon" \
 
8122
"newdaemon" \
 
8123
"monitor" \
 
8124
"newmonitor" \
 
8125
"init"
 
8126
$at_traceon; }
 
8127
 
 
8128
# Check that the pidfile names a running process,
 
8129
# and that the parent process of that process is our child process.
 
8130
{ set +x
 
8131
$as_echo "$at_srcdir/daemon-py.at:156: kill -0 \`cat daemon\`"
 
8132
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:156"
 
8133
( $at_check_trace; kill -0 `cat daemon`
 
8134
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8135
at_status=$? at_failed=false
 
8136
$at_check_filter
 
8137
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8138
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8139
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:156"
 
8140
if $at_failed; then :
 
8141
  kill `cat daemon monitor`
 
8142
fi
 
8143
$at_failed && at_fn_log_failure  \
 
8144
"daemon" \
 
8145
"olddaemon" \
 
8146
"newdaemon" \
 
8147
"monitor" \
 
8148
"newmonitor" \
 
8149
"init"
 
8150
$at_traceon; }
 
8151
 
 
8152
{ set +x
 
8153
$as_echo "$at_srcdir/daemon-py.at:157: diff olddaemon newdaemon"
 
8154
at_fn_check_prepare_trace "daemon-py.at:157"
 
8155
( $at_check_trace; diff olddaemon newdaemon
 
8156
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8157
at_status=$? at_failed=false
 
8158
$at_check_filter
 
8159
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8160
echo stdout:; cat "$at_stdout"
 
8161
at_fn_check_status 1 $at_status "$at_srcdir/daemon-py.at:157"
 
8162
if $at_failed; then :
 
8163
  kill `cat daemon monitor`
 
8164
fi
 
8165
$at_failed && at_fn_log_failure  \
 
8166
"daemon" \
 
8167
"olddaemon" \
 
8168
"newdaemon" \
 
8169
"monitor" \
 
8170
"newmonitor" \
 
8171
"init"
 
8172
$at_traceon; }
 
8173
 
 
8174
{ set +x
 
8175
$as_echo "$at_srcdir/daemon-py.at:158: ps -o ppid= -p \`cat daemon\` > newmonitor"
 
8176
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:158"
 
8177
( $at_check_trace; ps -o ppid= -p `cat daemon` > newmonitor
 
8178
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8179
at_status=$? at_failed=false
 
8180
$at_check_filter
 
8181
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8182
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8183
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:158"
 
8184
if $at_failed; then :
 
8185
  kill `cat daemon monitor`
 
8186
fi
 
8187
$at_failed && at_fn_log_failure  \
 
8188
"daemon" \
 
8189
"olddaemon" \
 
8190
"newdaemon" \
 
8191
"monitor" \
 
8192
"newmonitor" \
 
8193
"init"
 
8194
$at_traceon; }
 
8195
 
 
8196
{ set +x
 
8197
$as_echo "$at_srcdir/daemon-py.at:159: diff monitor newmonitor"
 
8198
at_fn_check_prepare_trace "daemon-py.at:159"
 
8199
( $at_check_trace; diff monitor newmonitor
 
8200
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8201
at_status=$? at_failed=false
 
8202
$at_check_filter
 
8203
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8204
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8205
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:159"
 
8206
if $at_failed; then :
 
8207
  kill `cat daemon monitor`
 
8208
fi
 
8209
$at_failed && at_fn_log_failure  \
 
8210
"daemon" \
 
8211
"olddaemon" \
 
8212
"newdaemon" \
 
8213
"monitor" \
 
8214
"newmonitor" \
 
8215
"init"
 
8216
$at_traceon; }
 
8217
 
 
8218
{ set +x
 
8219
$as_echo "$at_srcdir/daemon-py.at:160: kill -0 \`cat newmonitor\`"
 
8220
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:160"
 
8221
( $at_check_trace; kill -0 `cat newmonitor`
 
8222
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8223
at_status=$? at_failed=false
 
8224
$at_check_filter
 
8225
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8226
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8227
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:160"
 
8228
if $at_failed; then :
 
8229
  kill `cat daemon monitor`
 
8230
fi
 
8231
$at_failed && at_fn_log_failure  \
 
8232
"daemon" \
 
8233
"olddaemon" \
 
8234
"newdaemon" \
 
8235
"monitor" \
 
8236
"newmonitor" \
 
8237
"init"
 
8238
$at_traceon; }
 
8239
 
 
8240
{ set +x
 
8241
$as_echo "$at_srcdir/daemon-py.at:161: ps -o ppid= -p \`cat newmonitor\` > init"
 
8242
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:161"
 
8243
( $at_check_trace; ps -o ppid= -p `cat newmonitor` > init
 
8244
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8245
at_status=$? at_failed=false
 
8246
$at_check_filter
 
8247
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8248
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8249
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:161"
 
8250
if $at_failed; then :
 
8251
  kill `cat daemon monitor`
 
8252
fi
 
8253
$at_failed && at_fn_log_failure  \
 
8254
"daemon" \
 
8255
"olddaemon" \
 
8256
"newdaemon" \
 
8257
"monitor" \
 
8258
"newmonitor" \
 
8259
"init"
 
8260
$at_traceon; }
 
8261
 
 
8262
{ set +x
 
8263
$as_echo "$at_srcdir/daemon-py.at:162: test \`cat init\` = 1"
 
8264
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:162"
 
8265
( $at_check_trace; test `cat init` = 1
 
8266
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8267
at_status=$? at_failed=false
 
8268
$at_check_filter
 
8269
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8270
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8271
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:162"
 
8272
if $at_failed; then :
 
8273
  kill `cat daemon monitor`
 
8274
fi
 
8275
$at_failed && at_fn_log_failure  \
 
8276
"daemon" \
 
8277
"olddaemon" \
 
8278
"newdaemon" \
 
8279
"monitor" \
 
8280
"newmonitor" \
 
8281
"init"
 
8282
$at_traceon; }
 
8283
 
 
8284
# Kill the daemon process with SIGTERM, and wait for the daemon
 
8285
# and the monitor processes to go away and the pidfile to get deleted.
 
8286
{ set +x
 
8287
$as_echo "$at_srcdir/daemon-py.at:165: kill \`cat daemon\`"
 
8288
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:165"
 
8289
( $at_check_trace; kill `cat daemon`
 
8290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8291
at_status=$? at_failed=false
 
8292
$at_check_filter
 
8293
echo stderr:; cat "$at_stderr"
 
8294
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8295
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:165"
 
8296
if $at_failed; then :
 
8297
  kill `cat daemon monitor`
 
8298
fi
 
8299
$at_failed && at_fn_log_failure  \
 
8300
"daemon" \
 
8301
"olddaemon" \
 
8302
"newdaemon" \
 
8303
"monitor" \
 
8304
"newmonitor" \
 
8305
"init"
 
8306
$at_traceon; }
 
8307
 
 
8308
{ set +x
 
8309
$as_echo "$at_srcdir/daemon-py.at:166: # First try a quick sleep, so that the test completes very quickly
 
8310
     # in the normal case.  POSIX doesn't require fractional times to
 
8311
     # work, so this might not work.
 
8312
     sleep 0.1
 
8313
     if kill -0 \`cat monitor\` || kill -0 \`cat newdaemon\` || test -e daemon; then :; else exit 0; fi
 
8314
     # Then wait up to 10 seconds.
 
8315
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
8316
       sleep 1
 
8317
       if kill -0 \`cat monitor\` || kill -0 \`cat newdaemon\` || test -e daemon; then :; else exit 0; fi
 
8318
     done
 
8319
     exit 1"
 
8320
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:166"
 
8321
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
8322
     # in the normal case.  POSIX doesn't require fractional times to
 
8323
     # work, so this might not work.
 
8324
     sleep 0.1
 
8325
     if kill -0 `cat monitor` || kill -0 `cat newdaemon` || test -e daemon; then :; else exit 0; fi
 
8326
     # Then wait up to 10 seconds.
 
8327
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
8328
       sleep 1
 
8329
       if kill -0 `cat monitor` || kill -0 `cat newdaemon` || test -e daemon; then :; else exit 0; fi
 
8330
     done
 
8331
     exit 1
 
8332
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8333
at_status=$? at_failed=false
 
8334
$at_check_filter
 
8335
echo stderr:; cat "$at_stderr"
 
8336
echo stdout:; cat "$at_stdout"
 
8337
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:166"
 
8338
if $at_failed; then :
 
8339
  kill `cat monitor newdaemon`
 
8340
fi
 
8341
$at_failed && at_fn_log_failure  \
 
8342
"daemon" \
 
8343
"olddaemon" \
 
8344
"newdaemon" \
 
8345
"monitor" \
 
8346
"newmonitor" \
 
8347
"init"
 
8348
$at_traceon; }
 
8349
 
 
8350
 
 
8351
  set +x
 
8352
  $at_times_p && times >"$at_times_file"
 
8353
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8354
read at_status <"$at_status_file"
 
8355
#AT_STOP_50
 
8356
#AT_START_51
 
8357
at_fn_group_banner 51 'daemon-py.at:172' \
 
8358
  "daemon --detach startup errors - Python" "        " 7
 
8359
at_xfail=no
 
8360
(
 
8361
  $as_echo "51. $at_setup_line: testing $at_desc ..."
 
8362
  $at_traceon
 
8363
 
 
8364
$as_echo "daemon-py.at:173" >"$at_check_line_file"
 
8365
(test $HAVE_PYTHON = no) \
 
8366
  && at_fn_check_skip 77 "$at_srcdir/daemon-py.at:173"
 
8367
 
 
8368
{ set +x
 
8369
$as_echo "$at_srcdir/daemon-py.at:175: \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/pid --detach --bail"
 
8370
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:175"
 
8371
( $at_check_trace; $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/pid --detach --bail
 
8372
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8373
at_status=$? at_failed=false
 
8374
$at_check_filter
 
8375
echo stderr:; tee stderr <"$at_stderr"
 
8376
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8377
at_fn_check_status 1 $at_status "$at_srcdir/daemon-py.at:175"
 
8378
$at_failed && at_fn_log_failure  \
 
8379
"pid"
 
8380
$at_traceon; }
 
8381
 
 
8382
{ set +x
 
8383
$as_echo "$at_srcdir/daemon-py.at:176: grep 'test-daemon.py: exiting after daemonize_start() as requested' stderr"
 
8384
at_fn_check_prepare_trace "daemon-py.at:176"
 
8385
( $at_check_trace; grep 'test-daemon.py: exiting after daemonize_start() as requested' stderr
 
8386
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8387
at_status=$? at_failed=false
 
8388
$at_check_filter
 
8389
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8390
echo stdout:; cat "$at_stdout"
 
8391
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:176"
 
8392
$at_failed && at_fn_log_failure  \
 
8393
"pid"
 
8394
$at_traceon; }
 
8395
 
 
8396
{ set +x
 
8397
$as_echo "$at_srcdir/daemon-py.at:178: test ! -s pid"
 
8398
at_fn_check_prepare_trace "daemon-py.at:178"
 
8399
( $at_check_trace; test ! -s pid
 
8400
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8401
at_status=$? at_failed=false
 
8402
$at_check_filter
 
8403
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8404
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8405
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:178"
 
8406
$at_failed && at_fn_log_failure  \
 
8407
"pid"
 
8408
$at_traceon; }
 
8409
 
 
8410
  set +x
 
8411
  $at_times_p && times >"$at_times_file"
 
8412
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8413
read at_status <"$at_status_file"
 
8414
#AT_STOP_51
 
8415
#AT_START_52
 
8416
at_fn_group_banner 52 'daemon-py.at:181' \
 
8417
  "daemon --detach --monitor startup errors - Python" "" 7
 
8418
at_xfail=no
 
8419
(
 
8420
  $as_echo "52. $at_setup_line: testing $at_desc ..."
 
8421
  $at_traceon
 
8422
 
 
8423
$as_echo "daemon-py.at:182" >"$at_check_line_file"
 
8424
(test $HAVE_PYTHON = no) \
 
8425
  && at_fn_check_skip 77 "$at_srcdir/daemon-py.at:182"
 
8426
 
 
8427
{ set +x
 
8428
$as_echo "$at_srcdir/daemon-py.at:184: \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/pid --detach --monitor --bail"
 
8429
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:184"
 
8430
( $at_check_trace; $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/pid --detach --monitor --bail
 
8431
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8432
at_status=$? at_failed=false
 
8433
$at_check_filter
 
8434
echo stderr:; tee stderr <"$at_stderr"
 
8435
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8436
at_fn_check_status 1 $at_status "$at_srcdir/daemon-py.at:184"
 
8437
$at_failed && at_fn_log_failure  \
 
8438
"pid"
 
8439
$at_traceon; }
 
8440
 
 
8441
{ set +x
 
8442
$as_echo "$at_srcdir/daemon-py.at:185: grep 'test-daemon.py: exiting after daemonize_start() as requested' stderr"
 
8443
at_fn_check_prepare_trace "daemon-py.at:185"
 
8444
( $at_check_trace; grep 'test-daemon.py: exiting after daemonize_start() as requested' stderr
 
8445
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8446
at_status=$? at_failed=false
 
8447
$at_check_filter
 
8448
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8449
echo stdout:; cat "$at_stdout"
 
8450
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:185"
 
8451
$at_failed && at_fn_log_failure  \
 
8452
"pid"
 
8453
$at_traceon; }
 
8454
 
 
8455
{ set +x
 
8456
$as_echo "$at_srcdir/daemon-py.at:187: test ! -s pid"
 
8457
at_fn_check_prepare_trace "daemon-py.at:187"
 
8458
( $at_check_trace; test ! -s pid
 
8459
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8460
at_status=$? at_failed=false
 
8461
$at_check_filter
 
8462
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8463
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8464
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:187"
 
8465
$at_failed && at_fn_log_failure  \
 
8466
"pid"
 
8467
$at_traceon; }
 
8468
 
 
8469
  set +x
 
8470
  $at_times_p && times >"$at_times_file"
 
8471
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8472
read at_status <"$at_status_file"
 
8473
#AT_STOP_52
 
8474
#AT_START_53
 
8475
at_fn_group_banner 53 'daemon-py.at:190' \
 
8476
  "daemon --detach closes standard fds - Python" "   " 7
 
8477
at_xfail=no
 
8478
(
 
8479
  $as_echo "53. $at_setup_line: testing $at_desc ..."
 
8480
  $at_traceon
 
8481
 
 
8482
$as_echo "daemon-py.at:191" >"$at_check_line_file"
 
8483
(test $HAVE_PYTHON = no) \
 
8484
  && at_fn_check_skip 77 "$at_srcdir/daemon-py.at:191"
 
8485
 
 
8486
 
 
8487
 
 
8488
{ set +x
 
8489
$as_echo "$at_srcdir/daemon-py.at:195: (yes 2>stderr; echo \$? > status) | \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/pid --detach"
 
8490
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:195"
 
8491
( $at_check_trace; (yes 2>stderr; echo $? > status) | $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/pid --detach
 
8492
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8493
at_status=$? at_failed=false
 
8494
$at_check_filter
 
8495
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8496
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8497
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:195"
 
8498
$at_failed && at_fn_log_failure  \
 
8499
"pid" \
 
8500
"status" \
 
8501
"stderr"
 
8502
$at_traceon; }
 
8503
 
 
8504
{ set +x
 
8505
$as_echo "$at_srcdir/daemon-py.at:196: kill \`cat pid\`"
 
8506
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:196"
 
8507
( $at_check_trace; kill `cat pid`
 
8508
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8509
at_status=$? at_failed=false
 
8510
$at_check_filter
 
8511
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8512
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8513
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:196"
 
8514
$at_failed && at_fn_log_failure  \
 
8515
"pid" \
 
8516
"status" \
 
8517
"stderr"
 
8518
$at_traceon; }
 
8519
 
 
8520
{ set +x
 
8521
$as_echo "$at_srcdir/daemon-py.at:197: test -s status"
 
8522
at_fn_check_prepare_trace "daemon-py.at:197"
 
8523
( $at_check_trace; test -s status
 
8524
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8525
at_status=$? at_failed=false
 
8526
$at_check_filter
 
8527
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8528
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8529
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:197"
 
8530
$at_failed && at_fn_log_failure  \
 
8531
"pid" \
 
8532
"status" \
 
8533
"stderr"
 
8534
$at_traceon; }
 
8535
 
 
8536
if grep '[bB]roken pipe' stderr >/dev/null 2>&1; then
 
8537
  # Something in the environment caused SIGPIPE to be ignored, but
 
8538
  # 'yes' at least told us that it got EPIPE.  Good enough; we know
 
8539
  # that stdout was closed.
 
8540
  :
 
8541
else
 
8542
  # Otherwise make sure that 'yes' died from SIGPIPE.
 
8543
  { set +x
 
8544
$as_echo "$at_srcdir/daemon-py.at:205: kill -l \`cat status\`"
 
8545
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:205"
 
8546
( $at_check_trace; kill -l `cat status`
 
8547
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8548
at_status=$? at_failed=false
 
8549
$at_check_filter
 
8550
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8551
echo >>"$at_stdout"; $as_echo "PIPE
 
8552
" | \
 
8553
  $at_diff - "$at_stdout" || at_failed=:
 
8554
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:205"
 
8555
$at_failed && at_fn_log_failure  \
 
8556
"pid" \
 
8557
"status" \
 
8558
"stderr"
 
8559
$at_traceon; }
 
8560
 
 
8561
fi
 
8562
  set +x
 
8563
  $at_times_p && times >"$at_times_file"
 
8564
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8565
read at_status <"$at_status_file"
 
8566
#AT_STOP_53
 
8567
#AT_START_54
 
8568
at_fn_group_banner 54 'daemon-py.at:210' \
 
8569
  "daemon --detach --monitor closes standard fds" "  " 7
 
8570
at_xfail=no
 
8571
(
 
8572
  $as_echo "54. $at_setup_line: testing $at_desc ..."
 
8573
  $at_traceon
 
8574
 
 
8575
 
 
8576
 
 
8577
 
 
8578
{ set +x
 
8579
$as_echo "$at_srcdir/daemon-py.at:214: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
8580
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "daemon-py.at:214"
 
8581
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
8582
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8583
at_status=$? at_failed=false
 
8584
$at_check_filter
 
8585
echo stderr:; cat "$at_stderr"
 
8586
echo stdout:; tee stdout <"$at_stdout"
 
8587
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:214"
 
8588
$at_failed && at_fn_log_failure  \
 
8589
"pid" \
 
8590
"status" \
 
8591
"stderr"
 
8592
$at_traceon; }
 
8593
 
 
8594
   { set +x
 
8595
$as_echo "$at_srcdir/daemon-py.at:214: ovsdb-tool transact db \\
 
8596
        '[\"Open_vSwitch\",
 
8597
          {\"op\": \"insert\",
 
8598
           \"table\": \"Open_vSwitch\",
 
8599
           \"row\": {}}]'"
 
8600
at_fn_check_prepare_notrace 'an embedded newline' "daemon-py.at:214"
 
8601
( $at_check_trace; ovsdb-tool transact db \
 
8602
        '["Open_vSwitch",
 
8603
          {"op": "insert",
 
8604
           "table": "Open_vSwitch",
 
8605
           "row": {}}]'
 
8606
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8607
at_status=$? at_failed=false
 
8608
$at_check_filter
 
8609
echo stderr:; cat "$at_stderr"
 
8610
echo stdout:; cat "$at_stdout"
 
8611
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:214"
 
8612
$at_failed && at_fn_log_failure  \
 
8613
"pid" \
 
8614
"status" \
 
8615
"stderr"
 
8616
$at_traceon; }
 
8617
 
 
8618
{ set +x
 
8619
$as_echo "$at_srcdir/daemon-py.at:215: (yes 2>stderr; echo \$? > status) | \$PYTHON \$srcdir/test-daemon.py --pidfile=\`pwd\`/pid --detach"
 
8620
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:215"
 
8621
( $at_check_trace; (yes 2>stderr; echo $? > status) | $PYTHON $srcdir/test-daemon.py --pidfile=`pwd`/pid --detach
 
8622
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8623
at_status=$? at_failed=false
 
8624
$at_check_filter
 
8625
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8626
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8627
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:215"
 
8628
$at_failed && at_fn_log_failure  \
 
8629
"pid" \
 
8630
"status" \
 
8631
"stderr"
 
8632
$at_traceon; }
 
8633
 
 
8634
{ set +x
 
8635
$as_echo "$at_srcdir/daemon-py.at:216: kill \`cat pid\`"
 
8636
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:216"
 
8637
( $at_check_trace; kill `cat pid`
 
8638
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8639
at_status=$? at_failed=false
 
8640
$at_check_filter
 
8641
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8642
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8643
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:216"
 
8644
$at_failed && at_fn_log_failure  \
 
8645
"pid" \
 
8646
"status" \
 
8647
"stderr"
 
8648
$at_traceon; }
 
8649
 
 
8650
{ set +x
 
8651
$as_echo "$at_srcdir/daemon-py.at:217: test -s status"
 
8652
at_fn_check_prepare_trace "daemon-py.at:217"
 
8653
( $at_check_trace; test -s status
 
8654
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8655
at_status=$? at_failed=false
 
8656
$at_check_filter
 
8657
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8658
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
8659
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:217"
 
8660
$at_failed && at_fn_log_failure  \
 
8661
"pid" \
 
8662
"status" \
 
8663
"stderr"
 
8664
$at_traceon; }
 
8665
 
 
8666
if grep '[bB]roken pipe' stderr >/dev/null 2>&1; then
 
8667
  # Something in the environment caused SIGPIPE to be ignored, but
 
8668
  # 'yes' at least told us that it got EPIPE.  Good enough; we know
 
8669
  # that stdout was closed.
 
8670
  :
 
8671
else
 
8672
  # Otherwise make sure that 'yes' died from SIGPIPE.
 
8673
  { set +x
 
8674
$as_echo "$at_srcdir/daemon-py.at:225: kill -l \`cat status\`"
 
8675
at_fn_check_prepare_notrace 'a `...` command substitution' "daemon-py.at:225"
 
8676
( $at_check_trace; kill -l `cat status`
 
8677
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8678
at_status=$? at_failed=false
 
8679
$at_check_filter
 
8680
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8681
echo >>"$at_stdout"; $as_echo "PIPE
 
8682
" | \
 
8683
  $at_diff - "$at_stdout" || at_failed=:
 
8684
at_fn_check_status 0 $at_status "$at_srcdir/daemon-py.at:225"
 
8685
$at_failed && at_fn_log_failure  \
 
8686
"pid" \
 
8687
"status" \
 
8688
"stderr"
 
8689
$at_traceon; }
 
8690
 
 
8691
fi
 
8692
  set +x
 
8693
  $at_times_p && times >"$at_times_file"
 
8694
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8695
read at_status <"$at_status_file"
 
8696
#AT_STOP_54
 
8697
#AT_START_55
 
8698
at_fn_group_banner 55 'ofp-print.at:3' \
 
8699
  "empty" "                                          " 8
 
8700
at_xfail=no
 
8701
(
 
8702
  $as_echo "55. $at_setup_line: testing $at_desc ..."
 
8703
  $at_traceon
 
8704
 
 
8705
 
 
8706
{ set +x
 
8707
$as_echo "$at_srcdir/ofp-print.at:5: ovs-ofctl ofp-print ''"
 
8708
at_fn_check_prepare_trace "ofp-print.at:5"
 
8709
( $at_check_trace; ovs-ofctl ofp-print ''
 
8710
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8711
at_status=$? at_failed=false
 
8712
$at_check_filter
 
8713
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8714
echo >>"$at_stdout"; $as_echo "OpenFlow message is empty
 
8715
" | \
 
8716
  $at_diff - "$at_stdout" || at_failed=:
 
8717
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:5"
 
8718
$at_failed && at_fn_log_failure
 
8719
$at_traceon; }
 
8720
 
 
8721
  set +x
 
8722
  $at_times_p && times >"$at_times_file"
 
8723
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8724
read at_status <"$at_status_file"
 
8725
#AT_STOP_55
 
8726
#AT_START_56
 
8727
at_fn_group_banner 56 'ofp-print.at:9' \
 
8728
  "too short" "                                      " 8
 
8729
at_xfail=no
 
8730
(
 
8731
  $as_echo "56. $at_setup_line: testing $at_desc ..."
 
8732
  $at_traceon
 
8733
 
 
8734
 
 
8735
{ set +x
 
8736
$as_echo "$at_srcdir/ofp-print.at:11: ovs-ofctl ofp-print aabb"
 
8737
at_fn_check_prepare_trace "ofp-print.at:11"
 
8738
( $at_check_trace; ovs-ofctl ofp-print aabb
 
8739
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8740
at_status=$? at_failed=false
 
8741
$at_check_filter
 
8742
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8743
echo >>"$at_stdout"; $as_echo "OpenFlow packet too short (only 2 bytes):
 
8744
00000000  aa bb                                           |..              |
 
8745
" | \
 
8746
  $at_diff - "$at_stdout" || at_failed=:
 
8747
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:11"
 
8748
$at_failed && at_fn_log_failure
 
8749
$at_traceon; }
 
8750
 
 
8751
  set +x
 
8752
  $at_times_p && times >"$at_times_file"
 
8753
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8754
read at_status <"$at_status_file"
 
8755
#AT_STOP_56
 
8756
#AT_START_57
 
8757
at_fn_group_banner 57 'ofp-print.at:17' \
 
8758
  "wrong OpenFlow version" "                         " 8
 
8759
at_xfail=no
 
8760
(
 
8761
  $as_echo "57. $at_setup_line: testing $at_desc ..."
 
8762
  $at_traceon
 
8763
 
 
8764
 
 
8765
{ set +x
 
8766
$as_echo "$at_srcdir/ofp-print.at:19: ovs-ofctl ofp-print aabbccddeeff0011"
 
8767
at_fn_check_prepare_trace "ofp-print.at:19"
 
8768
( $at_check_trace; ovs-ofctl ofp-print aabbccddeeff0011
 
8769
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8770
at_status=$? at_failed=false
 
8771
$at_check_filter
 
8772
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8773
echo >>"$at_stdout"; $as_echo "Bad OpenFlow version 170:
 
8774
00000000  aa bb cc dd ee ff 00 11-                        |........        |
 
8775
" | \
 
8776
  $at_diff - "$at_stdout" || at_failed=:
 
8777
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:19"
 
8778
$at_failed && at_fn_log_failure
 
8779
$at_traceon; }
 
8780
 
 
8781
  set +x
 
8782
  $at_times_p && times >"$at_times_file"
 
8783
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8784
read at_status <"$at_status_file"
 
8785
#AT_STOP_57
 
8786
#AT_START_58
 
8787
at_fn_group_banner 58 'ofp-print.at:25' \
 
8788
  "truncated message" "                              " 8
 
8789
at_xfail=no
 
8790
(
 
8791
  $as_echo "58. $at_setup_line: testing $at_desc ..."
 
8792
  $at_traceon
 
8793
 
 
8794
 
 
8795
{ set +x
 
8796
$as_echo "$at_srcdir/ofp-print.at:27: ovs-ofctl ofp-print 01bbccddeeff0011"
 
8797
at_fn_check_prepare_trace "ofp-print.at:27"
 
8798
( $at_check_trace; ovs-ofctl ofp-print 01bbccddeeff0011
 
8799
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8800
at_status=$? at_failed=false
 
8801
$at_check_filter
 
8802
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8803
echo >>"$at_stdout"; $as_echo "(***truncated to 8 bytes from 52445***)
 
8804
00000000  01 bb cc dd ee ff 00 11-                        |........        |
 
8805
" | \
 
8806
  $at_diff - "$at_stdout" || at_failed=:
 
8807
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:27"
 
8808
$at_failed && at_fn_log_failure
 
8809
$at_traceon; }
 
8810
 
 
8811
  set +x
 
8812
  $at_times_p && times >"$at_times_file"
 
8813
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8814
read at_status <"$at_status_file"
 
8815
#AT_STOP_58
 
8816
#AT_START_59
 
8817
at_fn_group_banner 59 'ofp-print.at:33' \
 
8818
  "message only uses part of buffer" "               " 8
 
8819
at_xfail=no
 
8820
(
 
8821
  $as_echo "59. $at_setup_line: testing $at_desc ..."
 
8822
  $at_traceon
 
8823
 
 
8824
 
 
8825
{ set +x
 
8826
$as_echo "$at_srcdir/ofp-print.at:35: ovs-ofctl ofp-print 01bb0009eeff00112233"
 
8827
at_fn_check_prepare_trace "ofp-print.at:35"
 
8828
( $at_check_trace; ovs-ofctl ofp-print 01bb0009eeff00112233
 
8829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8830
at_status=$? at_failed=false
 
8831
$at_check_filter
 
8832
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8833
echo >>"$at_stdout"; $as_echo "(***only uses 9 bytes out of 10***)
 
8834
00000000  01 bb 00 09 ee ff 00 11-22 33                   |........\"3      |
 
8835
" | \
 
8836
  $at_diff - "$at_stdout" || at_failed=:
 
8837
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:35"
 
8838
$at_failed && at_fn_log_failure
 
8839
$at_traceon; }
 
8840
 
 
8841
# "
 
8842
  set +x
 
8843
  $at_times_p && times >"$at_times_file"
 
8844
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8845
read at_status <"$at_status_file"
 
8846
#AT_STOP_59
 
8847
#AT_START_60
 
8848
at_fn_group_banner 60 'ofp-print.at:42' \
 
8849
  "OFPT_HELLO - ordinary" "                          " 8
 
8850
at_xfail=no
 
8851
(
 
8852
  $as_echo "60. $at_setup_line: testing $at_desc ..."
 
8853
  $at_traceon
 
8854
 
 
8855
 
 
8856
{ set +x
 
8857
$as_echo "$at_srcdir/ofp-print.at:44: ovs-ofctl ofp-print 0100000800000000"
 
8858
at_fn_check_prepare_trace "ofp-print.at:44"
 
8859
( $at_check_trace; ovs-ofctl ofp-print 0100000800000000
 
8860
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8861
at_status=$? at_failed=false
 
8862
$at_check_filter
 
8863
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8864
echo >>"$at_stdout"; $as_echo "OFPT_HELLO (xid=0x0):
 
8865
" | \
 
8866
  $at_diff - "$at_stdout" || at_failed=:
 
8867
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:44"
 
8868
$at_failed && at_fn_log_failure
 
8869
$at_traceon; }
 
8870
 
 
8871
  set +x
 
8872
  $at_times_p && times >"$at_times_file"
 
8873
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8874
read at_status <"$at_status_file"
 
8875
#AT_STOP_60
 
8876
#AT_START_61
 
8877
at_fn_group_banner 61 'ofp-print.at:49' \
 
8878
  "OFPT_HELLO with extra data" "                     " 8
 
8879
at_xfail=no
 
8880
(
 
8881
  $as_echo "61. $at_setup_line: testing $at_desc ..."
 
8882
  $at_traceon
 
8883
 
 
8884
 
 
8885
{ set +x
 
8886
$as_echo "$at_srcdir/ofp-print.at:51: ovs-ofctl ofp-print 0100001300000000657874726120646174610a"
 
8887
at_fn_check_prepare_trace "ofp-print.at:51"
 
8888
( $at_check_trace; ovs-ofctl ofp-print 0100001300000000657874726120646174610a
 
8889
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8890
at_status=$? at_failed=false
 
8891
$at_check_filter
 
8892
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8893
echo >>"$at_stdout"; $as_echo "OFPT_HELLO (xid=0x0):
 
8894
00000000  65 78 74 72 61 20 64 61-74 61 0a                |extra data.     |
 
8895
" | \
 
8896
  $at_diff - "$at_stdout" || at_failed=:
 
8897
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:51"
 
8898
$at_failed && at_fn_log_failure
 
8899
$at_traceon; }
 
8900
 
 
8901
  set +x
 
8902
  $at_times_p && times >"$at_times_file"
 
8903
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8904
read at_status <"$at_status_file"
 
8905
#AT_STOP_61
 
8906
#AT_START_62
 
8907
at_fn_group_banner 62 'ofp-print.at:58' \
 
8908
  "OFPT_ERROR with type OFPET_HELLO_FAILED" "        " 8
 
8909
at_xfail=no
 
8910
(
 
8911
  $as_echo "62. $at_setup_line: testing $at_desc ..."
 
8912
  $at_traceon
 
8913
 
 
8914
 
 
8915
{ set +x
 
8916
$as_echo "$at_srcdir/ofp-print.at:60: ovs-ofctl ofp-print 010100170000000000000001657874726120646174610a"
 
8917
at_fn_check_prepare_trace "ofp-print.at:60"
 
8918
( $at_check_trace; ovs-ofctl ofp-print 010100170000000000000001657874726120646174610a
 
8919
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8920
at_status=$? at_failed=false
 
8921
$at_check_filter
 
8922
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8923
echo >>"$at_stdout"; $as_echo "OFPT_ERROR (xid=0x0): type OFPET_HELLO_FAILED, code OFPHFC_EPERM
 
8924
extra data\\012
 
8925
" | \
 
8926
  $at_diff - "$at_stdout" || at_failed=:
 
8927
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:60"
 
8928
$at_failed && at_fn_log_failure
 
8929
$at_traceon; }
 
8930
 
 
8931
  set +x
 
8932
  $at_times_p && times >"$at_times_file"
 
8933
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8934
read at_status <"$at_status_file"
 
8935
#AT_STOP_62
 
8936
#AT_START_63
 
8937
at_fn_group_banner 63 'ofp-print.at:66' \
 
8938
  "OFPT_ERROR with type OFPET_BAD_REQUEST" "         " 8
 
8939
at_xfail=no
 
8940
(
 
8941
  $as_echo "63. $at_setup_line: testing $at_desc ..."
 
8942
  $at_traceon
 
8943
 
 
8944
 
 
8945
{ set +x
 
8946
$as_echo "$at_srcdir/ofp-print.at:68: ovs-ofctl ofp-print 01010014000000000001000601bbccddeeff0011"
 
8947
at_fn_check_prepare_trace "ofp-print.at:68"
 
8948
( $at_check_trace; ovs-ofctl ofp-print 01010014000000000001000601bbccddeeff0011
 
8949
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8950
at_status=$? at_failed=false
 
8951
$at_check_filter
 
8952
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8953
echo >>"$at_stdout"; $as_echo "OFPT_ERROR (xid=0x0): type OFPET_BAD_REQUEST, code OFPBRC_BAD_LEN
 
8954
(***truncated to 8 bytes from 52445***)
 
8955
00000000  01 bb cc dd ee ff 00 11-                        |........        |
 
8956
" | \
 
8957
  $at_diff - "$at_stdout" || at_failed=:
 
8958
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:68"
 
8959
$at_failed && at_fn_log_failure
 
8960
$at_traceon; }
 
8961
 
 
8962
  set +x
 
8963
  $at_times_p && times >"$at_times_file"
 
8964
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8965
read at_status <"$at_status_file"
 
8966
#AT_STOP_63
 
8967
#AT_START_64
 
8968
at_fn_group_banner 64 'ofp-print.at:75' \
 
8969
  "OFPT_ERROR with code NXBRC_NXM_BAD_PREREQ" "      " 8
 
8970
at_xfail=no
 
8971
(
 
8972
  $as_echo "64. $at_setup_line: testing $at_desc ..."
 
8973
  $at_traceon
 
8974
 
 
8975
 
 
8976
{ set +x
 
8977
$as_echo "$at_srcdir/ofp-print.at:77: ovs-ofctl ofp-print '0101001c55555555 b0c20000 0000232000010104 0102000811111111'"
 
8978
at_fn_check_prepare_trace "ofp-print.at:77"
 
8979
( $at_check_trace; ovs-ofctl ofp-print '0101001c55555555 b0c20000 0000232000010104 0102000811111111'
 
8980
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
8981
at_status=$? at_failed=false
 
8982
$at_check_filter
 
8983
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
8984
echo >>"$at_stdout"; $as_echo "OFPT_ERROR (xid=0x55555555): type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ
 
8985
OFPT_ECHO_REQUEST (xid=0x11111111): 0 bytes of payload
 
8986
" | \
 
8987
  $at_diff - "$at_stdout" || at_failed=:
 
8988
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:77"
 
8989
$at_failed && at_fn_log_failure
 
8990
$at_traceon; }
 
8991
 
 
8992
  set +x
 
8993
  $at_times_p && times >"$at_times_file"
 
8994
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
8995
read at_status <"$at_status_file"
 
8996
#AT_STOP_64
 
8997
#AT_START_65
 
8998
at_fn_group_banner 65 'ofp-print.at:83' \
 
8999
  "OFPT_ECHO_REQUEST, empty payload" "               " 8
 
9000
at_xfail=no
 
9001
(
 
9002
  $as_echo "65. $at_setup_line: testing $at_desc ..."
 
9003
  $at_traceon
 
9004
 
 
9005
 
 
9006
{ set +x
 
9007
$as_echo "$at_srcdir/ofp-print.at:85: ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'"
 
9008
at_fn_check_prepare_trace "ofp-print.at:85"
 
9009
( $at_check_trace; ovs-ofctl ofp-print '01 02 00 08 00 00 00 01'
 
9010
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9011
at_status=$? at_failed=false
 
9012
$at_check_filter
 
9013
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9014
echo >>"$at_stdout"; $as_echo "OFPT_ECHO_REQUEST (xid=0x1): 0 bytes of payload
 
9015
" | \
 
9016
  $at_diff - "$at_stdout" || at_failed=:
 
9017
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:85"
 
9018
$at_failed && at_fn_log_failure
 
9019
$at_traceon; }
 
9020
 
 
9021
  set +x
 
9022
  $at_times_p && times >"$at_times_file"
 
9023
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9024
read at_status <"$at_status_file"
 
9025
#AT_STOP_65
 
9026
#AT_START_66
 
9027
at_fn_group_banner 66 'ofp-print.at:90' \
 
9028
  "OFPT_ECHO_REQUEST, 5-byte payload" "              " 8
 
9029
at_xfail=no
 
9030
(
 
9031
  $as_echo "66. $at_setup_line: testing $at_desc ..."
 
9032
  $at_traceon
 
9033
 
 
9034
 
 
9035
{ set +x
 
9036
$as_echo "$at_srcdir/ofp-print.at:92: ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'"
 
9037
at_fn_check_prepare_trace "ofp-print.at:92"
 
9038
( $at_check_trace; ovs-ofctl ofp-print '0102000d00000001 25 53 54 1a 9d'
 
9039
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9040
at_status=$? at_failed=false
 
9041
$at_check_filter
 
9042
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9043
echo >>"$at_stdout"; $as_echo "OFPT_ECHO_REQUEST (xid=0x1): 5 bytes of payload
 
9044
00000000  25 53 54 1a 9d                                  |%ST..           |
 
9045
" | \
 
9046
  $at_diff - "$at_stdout" || at_failed=:
 
9047
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:92"
 
9048
$at_failed && at_fn_log_failure
 
9049
$at_traceon; }
 
9050
 
 
9051
  set +x
 
9052
  $at_times_p && times >"$at_times_file"
 
9053
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9054
read at_status <"$at_status_file"
 
9055
#AT_STOP_66
 
9056
#AT_START_67
 
9057
at_fn_group_banner 67 'ofp-print.at:98' \
 
9058
  "OFPT_ECHO_REPLY, empty payload" "                 " 8
 
9059
at_xfail=no
 
9060
(
 
9061
  $as_echo "67. $at_setup_line: testing $at_desc ..."
 
9062
  $at_traceon
 
9063
 
 
9064
 
 
9065
{ set +x
 
9066
$as_echo "$at_srcdir/ofp-print.at:100: ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'"
 
9067
at_fn_check_prepare_trace "ofp-print.at:100"
 
9068
( $at_check_trace; ovs-ofctl ofp-print '01 03 00 08 00 00 00 01'
 
9069
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9070
at_status=$? at_failed=false
 
9071
$at_check_filter
 
9072
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9073
echo >>"$at_stdout"; $as_echo "OFPT_ECHO_REPLY (xid=0x1): 0 bytes of payload
 
9074
" | \
 
9075
  $at_diff - "$at_stdout" || at_failed=:
 
9076
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:100"
 
9077
$at_failed && at_fn_log_failure
 
9078
$at_traceon; }
 
9079
 
 
9080
  set +x
 
9081
  $at_times_p && times >"$at_times_file"
 
9082
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9083
read at_status <"$at_status_file"
 
9084
#AT_STOP_67
 
9085
#AT_START_68
 
9086
at_fn_group_banner 68 'ofp-print.at:105' \
 
9087
  "OFPT_ECHO_REPLY, 5-byte payload" "                " 8
 
9088
at_xfail=no
 
9089
(
 
9090
  $as_echo "68. $at_setup_line: testing $at_desc ..."
 
9091
  $at_traceon
 
9092
 
 
9093
 
 
9094
{ set +x
 
9095
$as_echo "$at_srcdir/ofp-print.at:107: ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'"
 
9096
at_fn_check_prepare_trace "ofp-print.at:107"
 
9097
( $at_check_trace; ovs-ofctl ofp-print '0103000d0000000ba330efaf9e'
 
9098
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9099
at_status=$? at_failed=false
 
9100
$at_check_filter
 
9101
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9102
echo >>"$at_stdout"; $as_echo "OFPT_ECHO_REPLY (xid=0xb): 5 bytes of payload
 
9103
00000000  a3 30 ef af 9e                                  |.0...           |
 
9104
" | \
 
9105
  $at_diff - "$at_stdout" || at_failed=:
 
9106
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:107"
 
9107
$at_failed && at_fn_log_failure
 
9108
$at_traceon; }
 
9109
 
 
9110
  set +x
 
9111
  $at_times_p && times >"$at_times_file"
 
9112
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9113
read at_status <"$at_status_file"
 
9114
#AT_STOP_68
 
9115
#AT_START_69
 
9116
at_fn_group_banner 69 'ofp-print.at:113' \
 
9117
  "OFPT_FEATURES_REQUEST" "                          " 8
 
9118
at_xfail=no
 
9119
(
 
9120
  $as_echo "69. $at_setup_line: testing $at_desc ..."
 
9121
  $at_traceon
 
9122
 
 
9123
 
 
9124
{ set +x
 
9125
$as_echo "$at_srcdir/ofp-print.at:115: ovs-ofctl ofp-print '0105000800000001'"
 
9126
at_fn_check_prepare_trace "ofp-print.at:115"
 
9127
( $at_check_trace; ovs-ofctl ofp-print '0105000800000001'
 
9128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9129
at_status=$? at_failed=false
 
9130
$at_check_filter
 
9131
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9132
echo >>"$at_stdout"; $as_echo "OFPT_FEATURES_REQUEST (xid=0x1):
 
9133
" | \
 
9134
  $at_diff - "$at_stdout" || at_failed=:
 
9135
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:115"
 
9136
$at_failed && at_fn_log_failure
 
9137
$at_traceon; }
 
9138
 
 
9139
  set +x
 
9140
  $at_times_p && times >"$at_times_file"
 
9141
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9142
read at_status <"$at_status_file"
 
9143
#AT_STOP_69
 
9144
#AT_START_70
 
9145
at_fn_group_banner 70 'ofp-print.at:120' \
 
9146
  "OFPT_FEATURES_REPLY" "                            " 8
 
9147
at_xfail=no
 
9148
(
 
9149
  $as_echo "70. $at_setup_line: testing $at_desc ..."
 
9150
  $at_traceon
 
9151
 
 
9152
 
 
9153
{ set +x
 
9154
$as_echo "$at_srcdir/ofp-print.at:122: ovs-ofctl ofp-print \"\\
 
9155
01 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \\
 
9156
00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \\
 
9157
ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \\
 
9158
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \\
 
9159
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9160
00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \\
 
9161
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9162
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \\
 
9163
00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \\
 
9164
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9165
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \\
 
9166
00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \\
 
9167
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9168
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \\
 
9169
\""
 
9170
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:122"
 
9171
( $at_check_trace; ovs-ofctl ofp-print "\
 
9172
01 06 00 e0 00 00 00 01 00 00 50 54 00 00 00 01 \
 
9173
00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
 
9174
ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
 
9175
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
 
9176
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9177
00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
 
9178
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9179
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
 
9180
00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
 
9181
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9182
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
 
9183
00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
 
9184
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9185
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
 
9186
"
 
9187
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9188
at_status=$? at_failed=false
 
9189
$at_check_filter
 
9190
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9191
echo >>"$at_stdout"; $as_echo "OFPT_FEATURES_REPLY (xid=0x1): ver:0x1, dpid:0000505400000001
 
9192
n_tables:2, n_buffers:256
 
9193
features: capabilities:0x87, actions:0xfff
 
9194
 1(eth1): addr:50:54:00:00:00:02
 
9195
     config:     0
 
9196
     state:      0
 
9197
     current:    100MB-FD AUTO_NEG
 
9198
     advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
 
9199
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
 
9200
 2(eth2): addr:50:54:00:00:00:03
 
9201
     config:     0
 
9202
     state:      0
 
9203
     current:    100MB-FD AUTO_NEG
 
9204
     advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
 
9205
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
 
9206
 3(eth0): addr:50:54:00:00:00:01
 
9207
     config:     0
 
9208
     state:      0
 
9209
     current:    100MB-FD AUTO_NEG
 
9210
     advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
 
9211
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
 
9212
 LOCAL(br0): addr:50:54:00:00:00:01
 
9213
     config:     PORT_DOWN
 
9214
     state:      LINK_DOWN
 
9215
" | \
 
9216
  $at_diff - "$at_stdout" || at_failed=:
 
9217
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:122"
 
9218
$at_failed && at_fn_log_failure
 
9219
$at_traceon; }
 
9220
 
 
9221
  set +x
 
9222
  $at_times_p && times >"$at_times_file"
 
9223
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9224
read at_status <"$at_status_file"
 
9225
#AT_STOP_70
 
9226
#AT_START_71
 
9227
at_fn_group_banner 71 'ofp-print.at:165' \
 
9228
  "OFPT_FEATURES_REPLY cut off mid-port" "           " 8
 
9229
at_xfail=no
 
9230
(
 
9231
  $as_echo "71. $at_setup_line: testing $at_desc ..."
 
9232
  $at_traceon
 
9233
 
 
9234
 
 
9235
{ set +x
 
9236
$as_echo "$at_srcdir/ofp-print.at:167: ovs-ofctl ofp-print \"\\
 
9237
01 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \\
 
9238
00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \\
 
9239
ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \\
 
9240
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \\
 
9241
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9242
00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \\
 
9243
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9244
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \\
 
9245
00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \\
 
9246
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9247
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \\
 
9248
00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \\
 
9249
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9250
00 00 02 08 00 00 02 8f 00 00 02 8f \\
 
9251
\""
 
9252
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:167"
 
9253
( $at_check_trace; ovs-ofctl ofp-print "\
 
9254
01 06 00 dc 00 00 00 01 00 00 50 54 00 00 00 01 \
 
9255
00 00 01 00 02 00 00 00 00 00 00 87 00 00 0f ff \
 
9256
ff fe 50 54 00 00 00 01 62 72 30 00 00 00 00 00 \
 
9257
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
 
9258
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9259
00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
 
9260
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9261
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
 
9262
00 02 50 54 00 00 00 03 65 74 68 32 00 00 00 00 \
 
9263
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9264
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
 
9265
00 01 50 54 00 00 00 02 65 74 68 31 00 00 00 00 \
 
9266
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9267
00 00 02 08 00 00 02 8f 00 00 02 8f \
 
9268
"
 
9269
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9270
at_status=$? at_failed=false
 
9271
$at_check_filter
 
9272
echo stderr:; tee stderr <"$at_stderr"
 
9273
echo >>"$at_stdout"; $as_echo "***decode error: type OFPET_BAD_REQUEST, code OFPBRC_BAD_LEN***
 
9274
00000000  01 06 00 dc 00 00 00 01-00 00 50 54 00 00 00 01 |..........PT....|
 
9275
00000010  00 00 01 00 02 00 00 00-00 00 00 87 00 00 0f ff |................|
 
9276
00000020  ff fe 50 54 00 00 00 01-62 72 30 00 00 00 00 00 |..PT....br0.....|
 
9277
00000030  00 00 00 00 00 00 00 00-00 00 00 01 00 00 00 01 |................|
 
9278
00000040  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
 
9279
00000050  00 03 50 54 00 00 00 01-65 74 68 30 00 00 00 00 |..PT....eth0....|
 
9280
00000060  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
 
9281
00000070  00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
 
9282
00000080  00 02 50 54 00 00 00 03-65 74 68 32 00 00 00 00 |..PT....eth2....|
 
9283
00000090  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
 
9284
000000a0  00 00 02 08 00 00 02 8f-00 00 02 8f 00 00 00 00 |................|
 
9285
000000b0  00 01 50 54 00 00 00 02-65 74 68 31 00 00 00 00 |..PT....eth1....|
 
9286
000000c0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 |................|
 
9287
000000d0  00 00 02 08 00 00 02 8f-00 00 02 8f             |............    |
 
9288
" | \
 
9289
  $at_diff - "$at_stdout" || at_failed=:
 
9290
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:167"
 
9291
$at_failed && at_fn_log_failure
 
9292
$at_traceon; }
 
9293
 
 
9294
{ set +x
 
9295
$as_echo "$at_srcdir/ofp-print.at:199: sed 's/.*|//' stderr"
 
9296
at_fn_check_prepare_notrace 'a shell pipeline' "ofp-print.at:199"
 
9297
( $at_check_trace; sed 's/.*|//' stderr
 
9298
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9299
at_status=$? at_failed=false
 
9300
$at_check_filter
 
9301
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9302
echo >>"$at_stdout"; $as_echo "received OFPT_FEATURES_REPLY with incorrect length 220 (must be exactly 32 bytes or longer by an integer multiple of 48 bytes)
 
9303
" | \
 
9304
  $at_diff - "$at_stdout" || at_failed=:
 
9305
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:199"
 
9306
$at_failed && at_fn_log_failure
 
9307
$at_traceon; }
 
9308
 
 
9309
  set +x
 
9310
  $at_times_p && times >"$at_times_file"
 
9311
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9312
read at_status <"$at_status_file"
 
9313
#AT_STOP_71
 
9314
#AT_START_72
 
9315
at_fn_group_banner 72 'ofp-print.at:204' \
 
9316
  "OFPT_GET_CONFIG_REQUEST" "                        " 8
 
9317
at_xfail=no
 
9318
(
 
9319
  $as_echo "72. $at_setup_line: testing $at_desc ..."
 
9320
  $at_traceon
 
9321
 
 
9322
 
 
9323
{ set +x
 
9324
$as_echo "$at_srcdir/ofp-print.at:206: ovs-ofctl ofp-print '0107000800000001'"
 
9325
at_fn_check_prepare_trace "ofp-print.at:206"
 
9326
( $at_check_trace; ovs-ofctl ofp-print '0107000800000001'
 
9327
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9328
at_status=$? at_failed=false
 
9329
$at_check_filter
 
9330
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9331
echo >>"$at_stdout"; $as_echo "OFPT_GET_CONFIG_REQUEST (xid=0x1):
 
9332
" | \
 
9333
  $at_diff - "$at_stdout" || at_failed=:
 
9334
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:206"
 
9335
$at_failed && at_fn_log_failure
 
9336
$at_traceon; }
 
9337
 
 
9338
  set +x
 
9339
  $at_times_p && times >"$at_times_file"
 
9340
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9341
read at_status <"$at_status_file"
 
9342
#AT_STOP_72
 
9343
#AT_START_73
 
9344
at_fn_group_banner 73 'ofp-print.at:211' \
 
9345
  "OFPT_GET_CONFIG_REPLY, most common form" "        " 8
 
9346
at_xfail=no
 
9347
(
 
9348
  $as_echo "73. $at_setup_line: testing $at_desc ..."
 
9349
  $at_traceon
 
9350
 
 
9351
 
 
9352
{ set +x
 
9353
$as_echo "$at_srcdir/ofp-print.at:213: ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'"
 
9354
at_fn_check_prepare_trace "ofp-print.at:213"
 
9355
( $at_check_trace; ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 00 00 00'
 
9356
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9357
at_status=$? at_failed=false
 
9358
$at_check_filter
 
9359
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9360
echo >>"$at_stdout"; $as_echo "OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0
 
9361
" | \
 
9362
  $at_diff - "$at_stdout" || at_failed=:
 
9363
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:213"
 
9364
$at_failed && at_fn_log_failure
 
9365
$at_traceon; }
 
9366
 
 
9367
  set +x
 
9368
  $at_times_p && times >"$at_times_file"
 
9369
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9370
read at_status <"$at_status_file"
 
9371
#AT_STOP_73
 
9372
#AT_START_74
 
9373
at_fn_group_banner 74 'ofp-print.at:219' \
 
9374
  "OFPT_GET_CONFIG_REPLY, frags and miss_send_len" " " 8
 
9375
at_xfail=no
 
9376
(
 
9377
  $as_echo "74. $at_setup_line: testing $at_desc ..."
 
9378
  $at_traceon
 
9379
 
 
9380
 
 
9381
{ set +x
 
9382
$as_echo "$at_srcdir/ofp-print.at:221: ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'"
 
9383
at_fn_check_prepare_trace "ofp-print.at:221"
 
9384
( $at_check_trace; ovs-ofctl ofp-print '01 08 00 0c 00 00 00 03 00 02 00 ff'
 
9385
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9386
at_status=$? at_failed=false
 
9387
$at_check_filter
 
9388
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9389
echo >>"$at_stdout"; $as_echo "OFPT_GET_CONFIG_REPLY (xid=0x3): frags=reassemble miss_send_len=255
 
9390
" | \
 
9391
  $at_diff - "$at_stdout" || at_failed=:
 
9392
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:221"
 
9393
$at_failed && at_fn_log_failure
 
9394
$at_traceon; }
 
9395
 
 
9396
  set +x
 
9397
  $at_times_p && times >"$at_times_file"
 
9398
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9399
read at_status <"$at_status_file"
 
9400
#AT_STOP_74
 
9401
#AT_START_75
 
9402
at_fn_group_banner 75 'ofp-print.at:226' \
 
9403
  "OFPT_PACKET_IN" "                                 " 8
 
9404
at_xfail=no
 
9405
(
 
9406
  $as_echo "75. $at_setup_line: testing $at_desc ..."
 
9407
  $at_traceon
 
9408
 
 
9409
 
 
9410
$as_echo "ofp-print.at:228" >"$at_check_line_file"
 
9411
(test ! -x /usr/sbin/tcpdump) \
 
9412
  && at_fn_check_skip 77 "$at_srcdir/ofp-print.at:228"
 
9413
{ set +x
 
9414
$as_echo "$at_srcdir/ofp-print.at:229: ovs-ofctl ofp-print \"\\
 
9415
01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \\
 
9416
00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \\
 
9417
45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \\
 
9418
c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \\
 
9419
50 00 02 00 26 e8 00 00 00 00 00 00 00 00 \\
 
9420
\""
 
9421
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:229"
 
9422
( $at_check_trace; ovs-ofctl ofp-print "\
 
9423
01 0a 00 4e 00 00 00 00 00 00 01 11 00 3c 00 03 \
 
9424
00 00 50 54 00 00 00 06 50 54 00 00 00 05 08 00 \
 
9425
45 00 00 28 bd 12 00 00 40 06 3c 6a c0 a8 00 01 \
 
9426
c0 a8 00 02 27 2f 00 00 78 50 cc 5b 57 af 42 1e \
 
9427
50 00 02 00 26 e8 00 00 00 00 00 00 00 00 \
 
9428
"
 
9429
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9430
at_status=$? at_failed=false
 
9431
$at_check_filter
 
9432
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9433
echo stdout:; tee stdout <"$at_stdout"
 
9434
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:229"
 
9435
$at_failed && at_fn_log_failure
 
9436
$at_traceon; }
 
9437
 
 
9438
{ set +x
 
9439
$as_echo "$at_srcdir/ofp-print.at:238: sed 's/\\(length 60:\\).*/\\1 .../' stdout"
 
9440
at_fn_check_prepare_trace "ofp-print.at:238"
 
9441
( $at_check_trace; sed 's/\(length 60:\).*/\1 .../' stdout
 
9442
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9443
at_status=$? at_failed=false
 
9444
$at_check_filter
 
9445
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9446
echo >>"$at_stdout"; $as_echo "OFPT_PACKET_IN (xid=0x0): total_len=60 in_port=3 data_len=60 buffer=0x00000111
 
9447
priority0:tunnel0:in_port0003:tci(0) mac50:54:00:00:00:05->50:54:00:00:00:06 type0800 proto6 tos0 ttl64 ip192.168.0.1->192.168.0.2 port10031->0
 
9448
50:54:00:00:00:05 > 50:54:00:00:00:06, ethertype IPv4 (0x0800), length 60: ...
 
9449
" | \
 
9450
  $at_diff - "$at_stdout" || at_failed=:
 
9451
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:238"
 
9452
$at_failed && at_fn_log_failure
 
9453
$at_traceon; }
 
9454
 
 
9455
  set +x
 
9456
  $at_times_p && times >"$at_times_file"
 
9457
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9458
read at_status <"$at_status_file"
 
9459
#AT_STOP_75
 
9460
#AT_START_76
 
9461
at_fn_group_banner 76 'ofp-print.at:245' \
 
9462
  "OFPT_FLOW_REMOVED" "                              " 8
 
9463
at_xfail=no
 
9464
(
 
9465
  $as_echo "76. $at_setup_line: testing $at_desc ..."
 
9466
  $at_traceon
 
9467
 
 
9468
 
 
9469
{ set +x
 
9470
$as_echo "$at_srcdir/ofp-print.at:247: ovs-ofctl ofp-print \"\\
 
9471
01 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \\
 
9472
00 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \\
 
9473
00 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \\
 
9474
00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \\
 
9475
30 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \\
 
9476
00 00 00 00 00 00 00 3c \\
 
9477
\""
 
9478
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:247"
 
9479
( $at_check_trace; ovs-ofctl ofp-print "\
 
9480
01 0b 00 58 00 00 00 00 00 00 00 00 00 03 50 54 \
 
9481
00 00 00 05 50 54 00 00 00 06 ff ff 00 00 08 06 \
 
9482
00 02 00 00 c0 a8 00 01 c0 a8 00 02 00 00 00 00 \
 
9483
00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 05 \
 
9484
30 e0 35 00 00 05 00 00 00 00 00 00 00 00 00 01 \
 
9485
00 00 00 00 00 00 00 3c \
 
9486
"
 
9487
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9488
at_status=$? at_failed=false
 
9489
$at_check_filter
 
9490
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9491
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 reason=idle duration5.82s idle5 pkts1 bytes60
 
9492
" | \
 
9493
  $at_diff - "$at_stdout" || at_failed=:
 
9494
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:247"
 
9495
$at_failed && at_fn_log_failure
 
9496
$at_traceon; }
 
9497
 
 
9498
  set +x
 
9499
  $at_times_p && times >"$at_times_file"
 
9500
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9501
read at_status <"$at_status_file"
 
9502
#AT_STOP_76
 
9503
#AT_START_77
 
9504
at_fn_group_banner 77 'ofp-print.at:259' \
 
9505
  "OFPT_PORT_STATUS" "                               " 8
 
9506
at_xfail=no
 
9507
(
 
9508
  $as_echo "77. $at_setup_line: testing $at_desc ..."
 
9509
  $at_traceon
 
9510
 
 
9511
 
 
9512
{ set +x
 
9513
$as_echo "$at_srcdir/ofp-print.at:261: ovs-ofctl ofp-print \"\\
 
9514
01 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \\
 
9515
00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \\
 
9516
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \\
 
9517
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \\
 
9518
\""
 
9519
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:261"
 
9520
( $at_check_trace; ovs-ofctl ofp-print "\
 
9521
01 0c 00 40 00 00 00 00 02 00 00 00 00 00 00 00 \
 
9522
00 03 50 54 00 00 00 01 65 74 68 30 00 00 00 00 \
 
9523
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 01 \
 
9524
00 00 02 08 00 00 02 8f 00 00 02 8f 00 00 00 00 \
 
9525
"
 
9526
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9527
at_status=$? at_failed=false
 
9528
$at_check_filter
 
9529
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9530
echo >>"$at_stdout"; $as_echo "OFPT_PORT_STATUS (xid=0x0): MOD: 3(eth0): addr:50:54:00:00:00:01
 
9531
     config:     PORT_DOWN
 
9532
     state:      LINK_DOWN
 
9533
     current:    100MB-FD AUTO_NEG
 
9534
     advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
 
9535
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD COPPER AUTO_NEG
 
9536
" | \
 
9537
  $at_diff - "$at_stdout" || at_failed=:
 
9538
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:261"
 
9539
$at_failed && at_fn_log_failure
 
9540
$at_traceon; }
 
9541
 
 
9542
  set +x
 
9543
  $at_times_p && times >"$at_times_file"
 
9544
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9545
read at_status <"$at_status_file"
 
9546
#AT_STOP_77
 
9547
#AT_START_78
 
9548
at_fn_group_banner 78 'ofp-print.at:276' \
 
9549
  "OFPT_PACKET_OUT" "                                " 8
 
9550
at_xfail=no
 
9551
(
 
9552
  $as_echo "78. $at_setup_line: testing $at_desc ..."
 
9553
  $at_traceon
 
9554
 
 
9555
 
 
9556
{ set +x
 
9557
$as_echo "$at_srcdir/ofp-print.at:278: ovs-ofctl ofp-print \"\\
 
9558
01 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \\
 
9559
00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \\
 
9560
00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \\
 
9561
b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \\
 
9562
00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \\
 
9563
00 00 00 00 \\
 
9564
\""
 
9565
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:278"
 
9566
( $at_check_trace; ovs-ofctl ofp-print "\
 
9567
01 0d 00 54 00 00 00 00 00 00 01 14 00 01 00 08 \
 
9568
00 00 00 08 00 03 00 00 50 54 00 00 00 05 50 54 \
 
9569
00 00 00 06 08 00 45 00 00 28 00 00 40 00 40 06 \
 
9570
b9 7c c0 a8 00 02 c0 a8 00 01 00 00 2b 60 00 00 \
 
9571
00 00 6a 4f 2b 58 50 14 00 00 6d 75 00 00 00 00 \
 
9572
00 00 00 00 \
 
9573
"
 
9574
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9575
at_status=$? at_failed=false
 
9576
$at_check_filter
 
9577
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9578
echo >>"$at_stdout"; $as_echo "OFPT_PACKET_OUT (xid=0x0): in_port=1 actions_len=8 actions=output:3 buffer=0x00000114
 
9579
" | \
 
9580
  $at_diff - "$at_stdout" || at_failed=:
 
9581
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:278"
 
9582
$at_failed && at_fn_log_failure
 
9583
$at_traceon; }
 
9584
 
 
9585
  set +x
 
9586
  $at_times_p && times >"$at_times_file"
 
9587
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9588
read at_status <"$at_status_file"
 
9589
#AT_STOP_78
 
9590
#AT_START_79
 
9591
at_fn_group_banner 79 'ofp-print.at:291' \
 
9592
  "OFPT_FLOW_MOD - low verbosity" "                  " 8
 
9593
at_xfail=no
 
9594
(
 
9595
  $as_echo "79. $at_setup_line: testing $at_desc ..."
 
9596
  $at_traceon
 
9597
 
 
9598
 
 
9599
{ set +x
 
9600
$as_echo "$at_srcdir/ofp-print.at:293: ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print \"\\
 
9601
01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \\
 
9602
00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \\
 
9603
00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \\
 
9604
00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \\
 
9605
00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \\
 
9606
\" 2"
 
9607
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:293"
 
9608
( $at_check_trace; ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
 
9609
01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
 
9610
00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
 
9611
00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
 
9612
00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
 
9613
00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
 
9614
" 2
 
9615
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9616
at_status=$? at_failed=false
 
9617
$at_check_filter
 
9618
echo >>"$at_stderr"; $as_echo "ofp_util|INFO|normalization changed ofp_match, details:
 
9619
ofp_util|INFO| pre: priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
 
9620
ofp_util|INFO|post: priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2
 
9621
" | \
 
9622
  $at_diff - "$at_stderr" || at_failed=:
 
9623
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_MOD (xid=0x0): ADD priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2 idle:5 buf:0x10e actions=output:3
 
9624
" | \
 
9625
  $at_diff - "$at_stdout" || at_failed=:
 
9626
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:293"
 
9627
$at_failed && at_fn_log_failure
 
9628
$at_traceon; }
 
9629
 
 
9630
  set +x
 
9631
  $at_times_p && times >"$at_times_file"
 
9632
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9633
read at_status <"$at_status_file"
 
9634
#AT_STOP_79
 
9635
#AT_START_80
 
9636
at_fn_group_banner 80 'ofp-print.at:309' \
 
9637
  "OFPT_FLOW_MOD - high verbosity" "                 " 8
 
9638
at_xfail=no
 
9639
(
 
9640
  $as_echo "80. $at_setup_line: testing $at_desc ..."
 
9641
  $at_traceon
 
9642
 
 
9643
 
 
9644
{ set +x
 
9645
$as_echo "$at_srcdir/ofp-print.at:311: ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print \"\\
 
9646
01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \\
 
9647
00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \\
 
9648
00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \\
 
9649
00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \\
 
9650
00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \\
 
9651
\" 3"
 
9652
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:311"
 
9653
( $at_check_trace; ovs-ofctl '-vPATTERN:console:%c|%p|%m' ofp-print "\
 
9654
01 0e 00 50 00 00 00 00 00 00 00 00 00 01 50 54 \
 
9655
00 00 00 06 50 54 00 00 00 05 ff ff 00 00 08 06 \
 
9656
00 02 00 00 c0 a8 00 02 c0 a8 00 01 00 00 00 00 \
 
9657
00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 \
 
9658
00 00 01 0e 00 00 00 00 00 00 00 08 00 03 00 00 \
 
9659
" 3
 
9660
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9661
at_status=$? at_failed=false
 
9662
$at_check_filter
 
9663
echo >>"$at_stderr"; $as_echo "ofp_util|INFO|normalization changed ofp_match, details:
 
9664
ofp_util|INFO| pre: priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0
 
9665
ofp_util|INFO|post: priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2
 
9666
" | \
 
9667
  $at_diff - "$at_stderr" || at_failed=:
 
9668
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_MOD (xid=0x0): ADD arp,in_port=1,dl_vlan=65535,dl_vlan_pcp=0,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 idle:5 pri:65535 buf:0x10e actions=output:3
 
9669
" | \
 
9670
  $at_diff - "$at_stdout" || at_failed=:
 
9671
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:311"
 
9672
$at_failed && at_fn_log_failure
 
9673
$at_traceon; }
 
9674
 
 
9675
  set +x
 
9676
  $at_times_p && times >"$at_times_file"
 
9677
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9678
read at_status <"$at_status_file"
 
9679
#AT_STOP_80
 
9680
#AT_START_81
 
9681
at_fn_group_banner 81 'ofp-print.at:326' \
 
9682
  "OFPT_PORT_MOD" "                                  " 8
 
9683
at_xfail=no
 
9684
(
 
9685
  $as_echo "81. $at_setup_line: testing $at_desc ..."
 
9686
  $at_traceon
 
9687
 
 
9688
 
 
9689
{ set +x
 
9690
$as_echo "$at_srcdir/ofp-print.at:328: ovs-ofctl ofp-print \"\\
 
9691
01 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \\
 
9692
00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \\
 
9693
\" 3"
 
9694
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:328"
 
9695
( $at_check_trace; ovs-ofctl ofp-print "\
 
9696
01 0f 00 20 00 00 00 03 00 03 50 54 00 00 00 01 \
 
9697
00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 \
 
9698
" 3
 
9699
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9700
at_status=$? at_failed=false
 
9701
$at_check_filter
 
9702
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9703
echo >>"$at_stdout"; $as_echo "OFPT_PORT_MOD (xid=0x3):port: 3: addr:50:54:00:00:00:01, config: 0x1, mask:0x1
 
9704
     advertise: UNCHANGED
 
9705
" | \
 
9706
  $at_diff - "$at_stdout" || at_failed=:
 
9707
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:328"
 
9708
$at_failed && at_fn_log_failure
 
9709
$at_traceon; }
 
9710
 
 
9711
  set +x
 
9712
  $at_times_p && times >"$at_times_file"
 
9713
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9714
read at_status <"$at_status_file"
 
9715
#AT_STOP_81
 
9716
#AT_START_82
 
9717
at_fn_group_banner 82 'ofp-print.at:337' \
 
9718
  "OFPST_DESC request" "                             " 8
 
9719
at_xfail=no
 
9720
(
 
9721
  $as_echo "82. $at_setup_line: testing $at_desc ..."
 
9722
  $at_traceon
 
9723
 
 
9724
 
 
9725
{ set +x
 
9726
$as_echo "$at_srcdir/ofp-print.at:339: ovs-ofctl ofp-print \"0110000c0000000100000000\""
 
9727
at_fn_check_prepare_trace "ofp-print.at:339"
 
9728
( $at_check_trace; ovs-ofctl ofp-print "0110000c0000000100000000"
 
9729
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9730
at_status=$? at_failed=false
 
9731
$at_check_filter
 
9732
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9733
echo >>"$at_stdout"; $as_echo "OFPST_DESC request (xid=0x1):
 
9734
" | \
 
9735
  $at_diff - "$at_stdout" || at_failed=:
 
9736
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:339"
 
9737
$at_failed && at_fn_log_failure
 
9738
$at_traceon; }
 
9739
 
 
9740
  set +x
 
9741
  $at_times_p && times >"$at_times_file"
 
9742
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9743
read at_status <"$at_status_file"
 
9744
#AT_STOP_82
 
9745
#AT_START_83
 
9746
at_fn_group_banner 83 'ofp-print.at:344' \
 
9747
  "OFPST_DESC reply" "                               " 8
 
9748
at_xfail=no
 
9749
(
 
9750
  $as_echo "83. $at_setup_line: testing $at_desc ..."
 
9751
  $at_traceon
 
9752
 
 
9753
 
 
9754
{ set +x
 
9755
$as_echo "$at_srcdir/ofp-print.at:346: ovs-ofctl ofp-print \"\\
 
9756
01 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \\
 
9757
72 61 20 4e 65 74 77 6f 72 6b 73 2c 20 49 6e 63 \\
 
9758
2e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9759
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9760
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9761
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9762
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9763
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9764
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9765
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9766
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9767
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9768
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9769
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9770
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9771
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9772
00 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \\
 
9773
20 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \\
 
9774
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9775
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9776
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9777
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9778
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9779
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9780
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9781
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9782
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9783
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9784
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9785
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9786
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9787
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9788
00 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \\
 
9789
30 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \\
 
9790
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9791
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9792
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9793
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9794
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9795
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9796
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9797
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9798
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9799
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9800
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9801
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9802
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9803
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9804
00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \\
 
9805
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9806
00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \\
 
9807
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9808
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9809
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9810
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9811
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9812
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9813
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9814
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9815
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9816
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9817
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9818
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9819
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9820
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9821
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9822
00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9823
\""
 
9824
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:346"
 
9825
( $at_check_trace; ovs-ofctl ofp-print "\
 
9826
01 11 04 2c 00 00 00 01 00 00 00 00 4e 69 63 69 \
 
9827
72 61 20 4e 65 74 77 6f 72 6b 73 2c 20 49 6e 63 \
 
9828
2e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9829
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9830
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9831
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9832
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9833
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9834
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9835
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9836
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9837
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9838
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9839
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9840
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9841
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9842
00 00 00 00 00 00 00 00 00 00 00 00 4f 70 65 6e \
 
9843
20 76 53 77 69 74 63 68 00 00 00 00 00 00 00 00 \
 
9844
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9845
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9846
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9847
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9848
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9849
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9850
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9851
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9852
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9853
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9854
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9855
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9856
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9857
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9858
00 00 00 00 00 00 00 00 00 00 00 00 31 2e 31 2e \
 
9859
30 70 72 65 32 00 00 00 00 00 00 00 00 00 00 00 \
 
9860
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9861
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9862
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9863
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9864
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9865
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9866
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9867
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9868
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9869
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9870
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9871
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9872
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9873
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9874
00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
 
9875
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9876
00 00 00 00 00 00 00 00 00 00 00 00 4e 6f 6e 65 \
 
9877
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9878
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9879
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9880
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9881
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9882
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9883
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9884
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9885
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9886
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9887
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9888
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9889
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9890
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9891
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9892
00 00 00 00 00 00 00 00 00 00 00 00 \
 
9893
"
 
9894
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9895
at_status=$? at_failed=false
 
9896
$at_check_filter
 
9897
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9898
echo >>"$at_stdout"; $as_echo "OFPST_DESC reply (xid=0x1):
 
9899
Manufacturer: Nicira Networks, Inc.
 
9900
Hardware: Open vSwitch
 
9901
Software: 1.1.0pre2
 
9902
Serial Num: None
 
9903
DP Description: None
 
9904
" | \
 
9905
  $at_diff - "$at_stdout" || at_failed=:
 
9906
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:346"
 
9907
$at_failed && at_fn_log_failure
 
9908
$at_traceon; }
 
9909
 
 
9910
  set +x
 
9911
  $at_times_p && times >"$at_times_file"
 
9912
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9913
read at_status <"$at_status_file"
 
9914
#AT_STOP_83
 
9915
#AT_START_84
 
9916
at_fn_group_banner 84 'ofp-print.at:424' \
 
9917
  "OFPST_FLOW request" "                             " 8
 
9918
at_xfail=no
 
9919
(
 
9920
  $as_echo "84. $at_setup_line: testing $at_desc ..."
 
9921
  $at_traceon
 
9922
 
 
9923
 
 
9924
{ set +x
 
9925
$as_echo "$at_srcdir/ofp-print.at:426: ovs-ofctl ofp-print \"\\
 
9926
01 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \\
 
9927
ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9928
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9929
00 00 00 00 ff 00 ff ff \\
 
9930
\""
 
9931
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:426"
 
9932
( $at_check_trace; ovs-ofctl ofp-print "\
 
9933
01 10 00 38 00 00 00 04 00 01 00 00 00 38 20 ff \
 
9934
ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9935
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
9936
00 00 00 00 ff 00 ff ff \
 
9937
"
 
9938
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
9939
at_status=$? at_failed=false
 
9940
$at_check_filter
 
9941
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
9942
echo >>"$at_stdout"; $as_echo "OFPST_FLOW request (xid=0x4): 
 
9943
" | \
 
9944
  $at_diff - "$at_stdout" || at_failed=:
 
9945
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:426"
 
9946
$at_failed && at_fn_log_failure
 
9947
$at_traceon; }
 
9948
 
 
9949
  set +x
 
9950
  $at_times_p && times >"$at_times_file"
 
9951
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
9952
read at_status <"$at_status_file"
 
9953
#AT_STOP_84
 
9954
#AT_START_85
 
9955
at_fn_group_banner 85 'ofp-print.at:436' \
 
9956
  "OFPST_FLOW reply" "                               " 8
 
9957
at_xfail=no
 
9958
(
 
9959
  $as_echo "85. $at_setup_line: testing $at_desc ..."
 
9960
  $at_traceon
 
9961
 
 
9962
 
 
9963
{ set +x
 
9964
$as_echo "$at_srcdir/ofp-print.at:438: ovs-ofctl ofp-print \"\\
 
9965
01 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \\
 
9966
00 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \\
 
9967
00 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \\
 
9968
c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \\
 
9969
ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9970
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \\
 
9971
00 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \\
 
9972
00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \\
 
9973
00 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \\
 
9974
c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \\
 
9975
ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9976
00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \\
 
9977
00 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \\
 
9978
00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \\
 
9979
00 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \\
 
9980
c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \\
 
9981
ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9982
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \\
 
9983
00 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \\
 
9984
00 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \\
 
9985
00 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \\
 
9986
c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \\
 
9987
80 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9988
00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \\
 
9989
00 00 04 fa 00 00 00 08 00 01 00 00 \\
 
9990
00 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \\
 
9991
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9992
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9993
00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \\
 
9994
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
9995
00 00 00 00 00 00 00 00 \\
 
9996
\""
 
9997
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:438"
 
9998
( $at_check_trace; ovs-ofctl ofp-print "\
 
9999
01 11 01 e4 00 00 00 04 00 01 00 00 00 60 00 00 \
 
10000
00 00 00 00 00 03 50 54 00 00 00 05 50 54 00 00 \
 
10001
00 06 ff ff 00 00 08 06 00 02 00 00 c0 a8 00 01 \
 
10002
c0 a8 00 02 00 00 00 00 00 00 00 04 0b eb c2 00 \
 
10003
ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10004
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
 
10005
00 00 00 3c 00 00 00 08 00 01 00 00 00 60 00 00 \
 
10006
00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
 
10007
00 05 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 02 \
 
10008
c0 a8 00 01 00 00 00 00 00 00 00 08 35 a4 e9 00 \
 
10009
ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10010
00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
 
10011
00 00 04 fa 00 00 00 08 00 03 00 00 00 60 00 00 \
 
10012
00 00 00 00 00 01 50 54 00 00 00 06 50 54 00 00 \
 
10013
00 05 ff ff 00 00 08 06 00 01 00 00 c0 a8 00 02 \
 
10014
c0 a8 00 01 00 00 00 00 00 00 00 04 10 b0 76 00 \
 
10015
ff ff 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10016
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 \
 
10017
00 00 00 3c 00 00 00 08 00 03 00 00 00 60 00 00 \
 
10018
00 00 00 01 00 03 50 54 00 00 00 05 50 54 00 00 \
 
10019
00 06 ff ff 00 00 08 00 00 01 00 00 c0 a8 00 01 \
 
10020
c0 a8 00 02 00 08 00 00 00 00 00 09 05 b8 d8 00 \
 
10021
80 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10022
00 00 00 00 00 00 00 00 00 00 00 0d 00 00 00 00 \
 
10023
00 00 04 fa 00 00 00 08 00 01 00 00 \
 
10024
00 58 02 00 00 3f ff ff 00 00 00 00 00 00 00 00 \
 
10025
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10026
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10027
00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 \
 
10028
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10029
00 00 00 00 00 00 00 00 \
 
10030
"
 
10031
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10032
at_status=$? at_failed=false
 
10033
$at_check_filter
 
10034
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10035
echo >>"$at_stdout"; $as_echo "OFPST_FLOW reply (xid=0x4):
 
10036
 cookie=0x0, duration=4.2s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,arp_op=2,nw_tos=0,tp_src=0,tp_dst=0 actions=output:1
 
10037
 cookie=0x0, duration=8.9s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5,priority=65535,icmp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:3
 
10038
 cookie=0x0, duration=4.28s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,arp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,arp_op=1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:3
 
10039
 cookie=0x0, duration=9.096s, table=0, n_packets=13, n_bytes=1274, idle_timeout=5,icmp,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,icmp_type=8,icmp_code=0 actions=output:1
 
10040
 cookie=0x0, duration=0s, table=2, n_packets=0, n_bytes=0, actions=drop
 
10041
" | \
 
10042
  $at_diff - "$at_stdout" || at_failed=:
 
10043
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:438"
 
10044
$at_failed && at_fn_log_failure
 
10045
$at_traceon; }
 
10046
 
 
10047
  set +x
 
10048
  $at_times_p && times >"$at_times_file"
 
10049
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10050
read at_status <"$at_status_file"
 
10051
#AT_STOP_85
 
10052
#AT_START_86
 
10053
at_fn_group_banner 86 'ofp-print.at:480' \
 
10054
  "OFPST_AGGREGATE request" "                        " 8
 
10055
at_xfail=no
 
10056
(
 
10057
  $as_echo "86. $at_setup_line: testing $at_desc ..."
 
10058
  $at_traceon
 
10059
 
 
10060
 
 
10061
{ set +x
 
10062
$as_echo "$at_srcdir/ofp-print.at:482: ovs-ofctl ofp-print \"\\
 
10063
01 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \\
 
10064
ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10065
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10066
00 00 00 00 ff 00 ff ff \\
 
10067
\""
 
10068
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:482"
 
10069
( $at_check_trace; ovs-ofctl ofp-print "\
 
10070
01 10 00 38 00 00 00 04 00 02 00 00 00 38 20 ff \
 
10071
ff fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10072
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10073
00 00 00 00 ff 00 ff ff \
 
10074
"
 
10075
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10076
at_status=$? at_failed=false
 
10077
$at_check_filter
 
10078
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10079
echo >>"$at_stdout"; $as_echo "OFPST_AGGREGATE request (xid=0x4): 
 
10080
" | \
 
10081
  $at_diff - "$at_stdout" || at_failed=:
 
10082
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:482"
 
10083
$at_failed && at_fn_log_failure
 
10084
$at_traceon; }
 
10085
 
 
10086
  set +x
 
10087
  $at_times_p && times >"$at_times_file"
 
10088
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10089
read at_status <"$at_status_file"
 
10090
#AT_STOP_86
 
10091
#AT_START_87
 
10092
at_fn_group_banner 87 'ofp-print.at:492' \
 
10093
  "OFPST_AGGREGATE reply" "                          " 8
 
10094
at_xfail=no
 
10095
(
 
10096
  $as_echo "87. $at_setup_line: testing $at_desc ..."
 
10097
  $at_traceon
 
10098
 
 
10099
 
 
10100
{ set +x
 
10101
$as_echo "$at_srcdir/ofp-print.at:494: ovs-ofctl ofp-print \"\\
 
10102
01 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \\
 
10103
00 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \\
 
10104
00 00 00 00 \\
 
10105
\""
 
10106
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:494"
 
10107
( $at_check_trace; ovs-ofctl ofp-print "\
 
10108
01 11 00 24 00 00 00 04 00 02 00 00 00 00 00 00 \
 
10109
00 00 01 82 00 00 00 00 00 00 93 78 00 00 00 04 \
 
10110
00 00 00 00 \
 
10111
"
 
10112
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10113
at_status=$? at_failed=false
 
10114
$at_check_filter
 
10115
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10116
echo >>"$at_stdout"; $as_echo "OFPST_AGGREGATE reply (xid=0x4): packet_count=386 byte_count=37752 flow_count=4
 
10117
" | \
 
10118
  $at_diff - "$at_stdout" || at_failed=:
 
10119
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:494"
 
10120
$at_failed && at_fn_log_failure
 
10121
$at_traceon; }
 
10122
 
 
10123
  set +x
 
10124
  $at_times_p && times >"$at_times_file"
 
10125
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10126
read at_status <"$at_status_file"
 
10127
#AT_STOP_87
 
10128
#AT_START_88
 
10129
at_fn_group_banner 88 'ofp-print.at:503' \
 
10130
  "OFPST_TABLE request" "                            " 8
 
10131
at_xfail=no
 
10132
(
 
10133
  $as_echo "88. $at_setup_line: testing $at_desc ..."
 
10134
  $at_traceon
 
10135
 
 
10136
 
 
10137
{ set +x
 
10138
$as_echo "$at_srcdir/ofp-print.at:505: ovs-ofctl ofp-print \"0110000c0000000100030000\""
 
10139
at_fn_check_prepare_trace "ofp-print.at:505"
 
10140
( $at_check_trace; ovs-ofctl ofp-print "0110000c0000000100030000"
 
10141
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10142
at_status=$? at_failed=false
 
10143
$at_check_filter
 
10144
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10145
echo >>"$at_stdout"; $as_echo "OFPST_TABLE request (xid=0x1):
 
10146
" | \
 
10147
  $at_diff - "$at_stdout" || at_failed=:
 
10148
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:505"
 
10149
$at_failed && at_fn_log_failure
 
10150
$at_traceon; }
 
10151
 
 
10152
  set +x
 
10153
  $at_times_p && times >"$at_times_file"
 
10154
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10155
read at_status <"$at_status_file"
 
10156
#AT_STOP_88
 
10157
#AT_START_89
 
10158
at_fn_group_banner 89 'ofp-print.at:510' \
 
10159
  "OFPST_TABLE reply" "                              " 8
 
10160
at_xfail=no
 
10161
(
 
10162
  $as_echo "89. $at_setup_line: testing $at_desc ..."
 
10163
  $at_traceon
 
10164
 
 
10165
 
 
10166
{ set +x
 
10167
$as_echo "$at_srcdir/ofp-print.at:512: ovs-ofctl ofp-print \"\\
 
10168
01 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \\
 
10169
63 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \\
 
10170
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10171
00 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \\
 
10172
00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10173
\""
 
10174
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:512"
 
10175
( $at_check_trace; ovs-ofctl ofp-print "\
 
10176
01 11 00 4c 00 00 00 01 00 03 00 00 00 00 00 00 \
 
10177
63 6c 61 73 73 69 66 69 65 72 00 00 00 00 00 00 \
 
10178
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10179
00 3f ff ff 00 10 00 00 00 00 00 0b 00 00 00 00 \
 
10180
00 00 00 00 00 00 00 00 00 00 00 00 \
 
10181
"
 
10182
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10183
at_status=$? at_failed=false
 
10184
$at_check_filter
 
10185
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10186
echo >>"$at_stdout"; $as_echo "OFPST_TABLE reply (xid=0x1): 1 tables
 
10187
  0: classifier: wild=0x3fffff, max=1048576, active=11
 
10188
               lookup=0, matched=0
 
10189
" | \
 
10190
  $at_diff - "$at_stdout" || at_failed=:
 
10191
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:512"
 
10192
$at_failed && at_fn_log_failure
 
10193
$at_traceon; }
 
10194
 
 
10195
  set +x
 
10196
  $at_times_p && times >"$at_times_file"
 
10197
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10198
read at_status <"$at_status_file"
 
10199
#AT_STOP_89
 
10200
#AT_START_90
 
10201
at_fn_group_banner 90 'ofp-print.at:525' \
 
10202
  "OFPST_PORT request" "                             " 8
 
10203
at_xfail=no
 
10204
(
 
10205
  $as_echo "90. $at_setup_line: testing $at_desc ..."
 
10206
  $at_traceon
 
10207
 
 
10208
 
 
10209
{ set +x
 
10210
$as_echo "$at_srcdir/ofp-print.at:527: ovs-ofctl ofp-print \"\\
 
10211
01 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \\
 
10212
00 00 00 00 \\
 
10213
\""
 
10214
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:527"
 
10215
( $at_check_trace; ovs-ofctl ofp-print "\
 
10216
01 10 00 14 00 00 00 01 00 04 00 00 ff ff 00 00 \
 
10217
00 00 00 00 \
 
10218
"
 
10219
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10220
at_status=$? at_failed=false
 
10221
$at_check_filter
 
10222
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10223
echo >>"$at_stdout"; $as_echo "OFPST_PORT request (xid=0x1): port_no=65535
 
10224
" | \
 
10225
  $at_diff - "$at_stdout" || at_failed=:
 
10226
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:527"
 
10227
$at_failed && at_fn_log_failure
 
10228
$at_traceon; }
 
10229
 
 
10230
  set +x
 
10231
  $at_times_p && times >"$at_times_file"
 
10232
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10233
read at_status <"$at_status_file"
 
10234
#AT_STOP_90
 
10235
#AT_START_91
 
10236
at_fn_group_banner 91 'ofp-print.at:535' \
 
10237
  "OFPST_PORT reply" "                               " 8
 
10238
at_xfail=no
 
10239
(
 
10240
  $as_echo "91. $at_setup_line: testing $at_desc ..."
 
10241
  $at_traceon
 
10242
 
 
10243
 
 
10244
{ set +x
 
10245
$as_echo "$at_srcdir/ofp-print.at:537: ovs-ofctl ofp-print \"\\
 
10246
01 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \\
 
10247
00 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \\
 
10248
00 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \\
 
10249
00 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10250
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10251
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10252
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10253
00 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \\
 
10254
00 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \\
 
10255
00 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \\
 
10256
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10257
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10258
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10259
00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \\
 
10260
00 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \\
 
10261
00 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \\
 
10262
00 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10263
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10264
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10265
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10266
00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \\
 
10267
00 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \\
 
10268
00 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \\
 
10269
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10270
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10271
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10272
00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10273
\""
 
10274
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:537"
 
10275
( $at_check_trace; ovs-ofctl ofp-print "\
 
10276
01 11 01 ac 00 00 00 01 00 04 00 00 00 03 00 00 \
 
10277
00 00 00 00 00 00 00 00 00 00 4d 20 00 00 00 00 \
 
10278
00 00 14 32 00 00 00 00 00 0f 60 4e 00 00 00 00 \
 
10279
00 05 71 bc 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10280
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10281
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10282
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10283
00 00 00 00 ff fe 00 00 00 00 00 00 00 00 00 00 \
 
10284
00 00 02 ac 00 00 00 00 00 00 01 f5 00 00 00 00 \
 
10285
00 01 0c 8c 00 00 00 00 00 00 db 1c 00 00 00 00 \
 
10286
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10287
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10288
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10289
00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
 
10290
00 00 00 00 00 00 00 00 00 00 06 be 00 00 00 00 \
 
10291
00 00 05 84 00 00 00 00 00 02 34 b4 00 00 00 00 \
 
10292
00 02 23 d4 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10293
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10294
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10295
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10296
00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 \
 
10297
00 00 14 12 00 00 00 00 00 00 14 66 00 00 00 00 \
 
10298
00 04 a2 54 00 00 00 00 00 05 8a 1e 00 00 00 00 \
 
10299
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10300
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10301
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10302
00 00 00 00 00 00 00 00 00 00 00 00 \
 
10303
"
 
10304
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10305
at_status=$? at_failed=false
 
10306
$at_check_filter
 
10307
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10308
echo >>"$at_stdout"; $as_echo "OFPST_PORT reply (xid=0x1): 4 ports
 
10309
  port  3: rx pkts=19744, bytes=1007694, drop=0, errs=0, frame=0, over=0, crc=0
 
10310
           tx pkts=5170, bytes=356796, drop=0, errs=0, coll=0
 
10311
  port 65534: rx pkts=684, bytes=68748, drop=0, errs=0, frame=0, over=0, crc=0
 
10312
           tx pkts=501, bytes=56092, drop=0, errs=0, coll=0
 
10313
  port  2: rx pkts=1726, bytes=144564, drop=0, errs=0, frame=0, over=0, crc=0
 
10314
           tx pkts=1412, bytes=140244, drop=0, errs=0, coll=0
 
10315
  port  1: rx pkts=5138, bytes=303700, drop=0, errs=0, frame=0, over=0, crc=0
 
10316
           tx pkts=5222, bytes=363038, drop=0, errs=0, coll=0
 
10317
" | \
 
10318
  $at_diff - "$at_stdout" || at_failed=:
 
10319
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:537"
 
10320
$at_failed && at_fn_log_failure
 
10321
$at_traceon; }
 
10322
 
 
10323
  set +x
 
10324
  $at_times_p && times >"$at_times_file"
 
10325
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10326
read at_status <"$at_status_file"
 
10327
#AT_STOP_91
 
10328
#AT_START_92
 
10329
at_fn_group_banner 92 'ofp-print.at:578' \
 
10330
  "OFPST_QUEUE request" "                            " 8
 
10331
at_xfail=no
 
10332
(
 
10333
  $as_echo "92. $at_setup_line: testing $at_desc ..."
 
10334
  $at_traceon
 
10335
 
 
10336
 
 
10337
{ set +x
 
10338
$as_echo "$at_srcdir/ofp-print.at:580: ovs-ofctl ofp-print \"\\
 
10339
01 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \\
 
10340
ff ff ff ff \\
 
10341
\""
 
10342
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:580"
 
10343
( $at_check_trace; ovs-ofctl ofp-print "\
 
10344
01 10 00 14 00 00 00 01 00 05 00 00 ff fc 00 00 \
 
10345
ff ff ff ff \
 
10346
"
 
10347
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10348
at_status=$? at_failed=false
 
10349
$at_check_filter
 
10350
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10351
echo >>"$at_stdout"; $as_echo "OFPST_QUEUE request (xid=0x1):port=ALL queue=ALL
 
10352
" | \
 
10353
  $at_diff - "$at_stdout" || at_failed=:
 
10354
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:580"
 
10355
$at_failed && at_fn_log_failure
 
10356
$at_traceon; }
 
10357
 
 
10358
  set +x
 
10359
  $at_times_p && times >"$at_times_file"
 
10360
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10361
read at_status <"$at_status_file"
 
10362
#AT_STOP_92
 
10363
#AT_START_93
 
10364
at_fn_group_banner 93 'ofp-print.at:588' \
 
10365
  "OFPST_QUEUE reply" "                              " 8
 
10366
at_xfail=no
 
10367
(
 
10368
  $as_echo "93. $at_setup_line: testing $at_desc ..."
 
10369
  $at_traceon
 
10370
 
 
10371
 
 
10372
{ set +x
 
10373
$as_echo "$at_srcdir/ofp-print.at:590: ovs-ofctl ofp-print \"\\
 
10374
01 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \\
 
10375
00 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \\
 
10376
00 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \\
 
10377
00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10378
00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \\
 
10379
00 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \\
 
10380
00 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \\
 
10381
00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10382
00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \\
 
10383
00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10384
00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \\
 
10385
00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10386
00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10387
\""
 
10388
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:590"
 
10389
( $at_check_trace; ovs-ofctl ofp-print "\
 
10390
01 11 00 cc 00 00 00 01 00 05 00 00 00 03 00 00 \
 
10391
00 00 00 01 00 00 00 00 00 00 01 2e 00 00 00 00 \
 
10392
00 00 00 01 00 00 00 00 00 00 00 00 00 03 00 00 \
 
10393
00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10394
00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00 \
 
10395
00 00 00 01 00 00 00 00 00 00 08 34 00 00 00 00 \
 
10396
00 00 00 14 00 00 00 00 00 00 00 00 00 02 00 00 \
 
10397
00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10398
00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
 
10399
00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10400
00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 \
 
10401
00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10402
00 00 00 00 00 00 00 00 00 00 00 00 \
 
10403
"
 
10404
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10405
at_status=$? at_failed=false
 
10406
$at_check_filter
 
10407
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10408
echo >>"$at_stdout"; $as_echo "OFPST_QUEUE reply (xid=0x1): 6 queues
 
10409
  port 3 queue 1: bytes=302, pkts=1, errors=0
 
10410
  port 3 queue 2: bytes=0, pkts=0, errors=0
 
10411
  port 2 queue 1: bytes=2100, pkts=20, errors=0
 
10412
  port 2 queue 2: bytes=0, pkts=0, errors=0
 
10413
  port 1 queue 1: bytes=0, pkts=0, errors=0
 
10414
  port 1 queue 2: bytes=0, pkts=0, errors=0
 
10415
" | \
 
10416
  $at_diff - "$at_stdout" || at_failed=:
 
10417
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:590"
 
10418
$at_failed && at_fn_log_failure
 
10419
$at_traceon; }
 
10420
 
 
10421
  set +x
 
10422
  $at_times_p && times >"$at_times_file"
 
10423
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10424
read at_status <"$at_status_file"
 
10425
#AT_STOP_93
 
10426
#AT_START_94
 
10427
at_fn_group_banner 94 'ofp-print.at:615' \
 
10428
  "OFPT_BARRIER_REQUEST" "                           " 8
 
10429
at_xfail=no
 
10430
(
 
10431
  $as_echo "94. $at_setup_line: testing $at_desc ..."
 
10432
  $at_traceon
 
10433
 
 
10434
 
 
10435
{ set +x
 
10436
$as_echo "$at_srcdir/ofp-print.at:617: ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'"
 
10437
at_fn_check_prepare_trace "ofp-print.at:617"
 
10438
( $at_check_trace; ovs-ofctl ofp-print '01 12 00 08 00 00 00 01'
 
10439
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10440
at_status=$? at_failed=false
 
10441
$at_check_filter
 
10442
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10443
echo >>"$at_stdout"; $as_echo "OFPT_BARRIER_REQUEST (xid=0x1):
 
10444
" | \
 
10445
  $at_diff - "$at_stdout" || at_failed=:
 
10446
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:617"
 
10447
$at_failed && at_fn_log_failure
 
10448
$at_traceon; }
 
10449
 
 
10450
  set +x
 
10451
  $at_times_p && times >"$at_times_file"
 
10452
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10453
read at_status <"$at_status_file"
 
10454
#AT_STOP_94
 
10455
#AT_START_95
 
10456
at_fn_group_banner 95 'ofp-print.at:622' \
 
10457
  "OFPT_BARRIER_REPLY" "                             " 8
 
10458
at_xfail=no
 
10459
(
 
10460
  $as_echo "95. $at_setup_line: testing $at_desc ..."
 
10461
  $at_traceon
 
10462
 
 
10463
 
 
10464
{ set +x
 
10465
$as_echo "$at_srcdir/ofp-print.at:624: ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'"
 
10466
at_fn_check_prepare_trace "ofp-print.at:624"
 
10467
( $at_check_trace; ovs-ofctl ofp-print '01 13 00 08 00 00 00 01'
 
10468
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10469
at_status=$? at_failed=false
 
10470
$at_check_filter
 
10471
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10472
echo >>"$at_stdout"; $as_echo "OFPT_BARRIER_REPLY (xid=0x1):
 
10473
" | \
 
10474
  $at_diff - "$at_stdout" || at_failed=:
 
10475
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:624"
 
10476
$at_failed && at_fn_log_failure
 
10477
$at_traceon; }
 
10478
 
 
10479
  set +x
 
10480
  $at_times_p && times >"$at_times_file"
 
10481
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10482
read at_status <"$at_status_file"
 
10483
#AT_STOP_95
 
10484
#AT_START_96
 
10485
at_fn_group_banner 96 'ofp-print.at:629' \
 
10486
  "NXT_ROLE_REQUEST" "                               " 8
 
10487
at_xfail=no
 
10488
(
 
10489
  $as_echo "96. $at_setup_line: testing $at_desc ..."
 
10490
  $at_traceon
 
10491
 
 
10492
 
 
10493
{ set +x
 
10494
$as_echo "$at_srcdir/ofp-print.at:631: ovs-ofctl ofp-print \"\\
 
10495
01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \\
 
10496
00 00 00 01 \\
 
10497
\""
 
10498
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:631"
 
10499
( $at_check_trace; ovs-ofctl ofp-print "\
 
10500
01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0a \
 
10501
00 00 00 01 \
 
10502
"
 
10503
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10504
at_status=$? at_failed=false
 
10505
$at_check_filter
 
10506
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10507
echo >>"$at_stdout"; $as_echo "NXT_ROLE_REQUEST (xid=0x2): role=master
 
10508
" | \
 
10509
  $at_diff - "$at_stdout" || at_failed=:
 
10510
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:631"
 
10511
$at_failed && at_fn_log_failure
 
10512
$at_traceon; }
 
10513
 
 
10514
  set +x
 
10515
  $at_times_p && times >"$at_times_file"
 
10516
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10517
read at_status <"$at_status_file"
 
10518
#AT_STOP_96
 
10519
#AT_START_97
 
10520
at_fn_group_banner 97 'ofp-print.at:639' \
 
10521
  "NXT_ROLE_REPLY" "                                 " 8
 
10522
at_xfail=no
 
10523
(
 
10524
  $as_echo "97. $at_setup_line: testing $at_desc ..."
 
10525
  $at_traceon
 
10526
 
 
10527
 
 
10528
{ set +x
 
10529
$as_echo "$at_srcdir/ofp-print.at:641: ovs-ofctl ofp-print \"\\
 
10530
01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \\
 
10531
00 00 00 02 \\
 
10532
\""
 
10533
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:641"
 
10534
( $at_check_trace; ovs-ofctl ofp-print "\
 
10535
01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0b \
 
10536
00 00 00 02 \
 
10537
"
 
10538
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10539
at_status=$? at_failed=false
 
10540
$at_check_filter
 
10541
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10542
echo >>"$at_stdout"; $as_echo "NXT_ROLE_REPLY (xid=0x2): role=slave
 
10543
" | \
 
10544
  $at_diff - "$at_stdout" || at_failed=:
 
10545
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:641"
 
10546
$at_failed && at_fn_log_failure
 
10547
$at_traceon; }
 
10548
 
 
10549
  set +x
 
10550
  $at_times_p && times >"$at_times_file"
 
10551
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10552
read at_status <"$at_status_file"
 
10553
#AT_STOP_97
 
10554
#AT_START_98
 
10555
at_fn_group_banner 98 'ofp-print.at:649' \
 
10556
  "NXT_SET_FLOW_FORMAT" "                            " 8
 
10557
at_xfail=no
 
10558
(
 
10559
  $as_echo "98. $at_setup_line: testing $at_desc ..."
 
10560
  $at_traceon
 
10561
 
 
10562
 
 
10563
{ set +x
 
10564
$as_echo "$at_srcdir/ofp-print.at:651: ovs-ofctl ofp-print \"\\
 
10565
01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \\
 
10566
00 00 00 02 \\
 
10567
\""
 
10568
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:651"
 
10569
( $at_check_trace; ovs-ofctl ofp-print "\
 
10570
01 04 00 14 00 00 00 02 00 00 23 20 00 00 00 0c \
 
10571
00 00 00 02 \
 
10572
"
 
10573
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10574
at_status=$? at_failed=false
 
10575
$at_check_filter
 
10576
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10577
echo >>"$at_stdout"; $as_echo "NXT_SET_FLOW_FORMAT (xid=0x2): format=nxm
 
10578
" | \
 
10579
  $at_diff - "$at_stdout" || at_failed=:
 
10580
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:651"
 
10581
$at_failed && at_fn_log_failure
 
10582
$at_traceon; }
 
10583
 
 
10584
  set +x
 
10585
  $at_times_p && times >"$at_times_file"
 
10586
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10587
read at_status <"$at_status_file"
 
10588
#AT_STOP_98
 
10589
#AT_START_99
 
10590
at_fn_group_banner 99 'ofp-print.at:660' \
 
10591
  "NXT_FLOW_MOD, low verbosity" "                    " 8
 
10592
at_xfail=no
 
10593
(
 
10594
  $as_echo "99. $at_setup_line: testing $at_desc ..."
 
10595
  $at_traceon
 
10596
 
 
10597
 
 
10598
{ set +x
 
10599
$as_echo "$at_srcdir/ofp-print.at:662: ovs-ofctl ofp-print \"\\
 
10600
01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \\
 
10601
00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \\
 
10602
ff ff ff ff ff ff 00 00 00 14 00 00 00 00 00 00 \\
 
10603
00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \\
 
10604
00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \\
 
10605
00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \\
 
10606
\" 2"
 
10607
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:662"
 
10608
( $at_check_trace; ovs-ofctl ofp-print "\
 
10609
01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
 
10610
00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
 
10611
ff ff ff ff ff ff 00 00 00 14 00 00 00 00 00 00 \
 
10612
00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
 
10613
00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
 
10614
00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
 
10615
" 2
 
10616
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10617
at_status=$? at_failed=false
 
10618
$at_check_filter
 
10619
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10620
echo >>"$at_stdout"; $as_echo "NXT_FLOW_MOD (xid=0x2): ADD reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[]
 
10621
" | \
 
10622
  $at_diff - "$at_stdout" || at_failed=:
 
10623
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:662"
 
10624
$at_failed && at_fn_log_failure
 
10625
$at_traceon; }
 
10626
 
 
10627
  set +x
 
10628
  $at_times_p && times >"$at_times_file"
 
10629
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10630
read at_status <"$at_status_file"
 
10631
#AT_STOP_99
 
10632
#AT_START_100
 
10633
at_fn_group_banner 100 'ofp-print.at:675' \
 
10634
  "NXT_FLOW_MOD, high verbosity" "                   " 8
 
10635
at_xfail=no
 
10636
(
 
10637
  $as_echo "100. $at_setup_line: testing $at_desc ..."
 
10638
  $at_traceon
 
10639
 
 
10640
 
 
10641
{ set +x
 
10642
$as_echo "$at_srcdir/ofp-print.at:677: ovs-ofctl ofp-print \"\\
 
10643
01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \\
 
10644
00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \\
 
10645
ff ff ff ff ff ff 00 00 00 14 00 00 00 00 00 00 \\
 
10646
00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \\
 
10647
00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \\
 
10648
00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \\
 
10649
\" 3"
 
10650
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:677"
 
10651
( $at_check_trace; ovs-ofctl ofp-print "\
 
10652
01 04 00 60 00 00 00 02 00 00 23 20 00 00 00 0d \
 
10653
00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 00 \
 
10654
ff ff ff ff ff ff 00 00 00 14 00 00 00 00 00 00 \
 
10655
00 01 20 08 00 00 00 00 00 00 01 c8 00 01 00 04 \
 
10656
00 00 00 7b 00 00 00 00 ff ff 00 18 00 00 23 20 \
 
10657
00 07 00 1f 00 01 00 04 00 00 00 00 00 00 00 05 \
 
10658
" 3
 
10659
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10660
at_status=$? at_failed=false
 
10661
$at_check_filter
 
10662
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10663
echo >>"$at_stdout"; $as_echo "NXT_FLOW_MOD (xid=0x2): ADD NXM_NX_TUN_ID(00000000000001c8), NXM_NX_REG0(0000007b) actions=load:0x5->NXM_NX_REG0[]
 
10664
" | \
 
10665
  $at_diff - "$at_stdout" || at_failed=:
 
10666
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:677"
 
10667
$at_failed && at_fn_log_failure
 
10668
$at_traceon; }
 
10669
 
 
10670
  set +x
 
10671
  $at_times_p && times >"$at_times_file"
 
10672
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10673
read at_status <"$at_status_file"
 
10674
#AT_STOP_100
 
10675
#AT_START_101
 
10676
at_fn_group_banner 101 'ofp-print.at:689' \
 
10677
  "NXT_FLOW_REMOVED" "                               " 8
 
10678
at_xfail=no
 
10679
(
 
10680
  $as_echo "101. $at_setup_line: testing $at_desc ..."
 
10681
  $at_traceon
 
10682
 
 
10683
 
 
10684
{ set +x
 
10685
$as_echo "$at_srcdir/ofp-print.at:691: ovs-ofctl ofp-print \"\\
 
10686
01 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \\
 
10687
00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 06 \\
 
10688
01 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \\
 
10689
00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \\
 
10690
02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \\
 
10691
00 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \\
 
10692
1e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \\
 
10693
c0 a8 00 02 00 00 00 00 \\
 
10694
\""
 
10695
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:691"
 
10696
( $at_check_trace; ovs-ofctl ofp-print "\
 
10697
01 04 00 78 00 00 00 00 00 00 23 20 00 00 00 0e \
 
10698
00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 06 \
 
10699
01 6e 36 00 00 05 00 3c 00 00 00 00 00 00 00 01 \
 
10700
00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
 
10701
02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
 
10702
00 05 00 00 06 02 08 06 00 00 08 02 00 00 00 00 \
 
10703
1e 02 00 02 00 00 20 04 c0 a8 00 01 00 00 22 04 \
 
10704
c0 a8 00 02 00 00 00 00 \
 
10705
"
 
10706
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10707
at_status=$? at_failed=false
 
10708
$at_check_filter
 
10709
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10710
echo >>"$at_stdout"; $as_echo "NXT_FLOW_REMOVED (xid=0x0): priority=65535,arp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,arp_op=2 reason=idle duration6.024s idle5 pkts1 bytes60
 
10711
" | \
 
10712
  $at_diff - "$at_stdout" || at_failed=:
 
10713
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:691"
 
10714
$at_failed && at_fn_log_failure
 
10715
$at_traceon; }
 
10716
 
 
10717
  set +x
 
10718
  $at_times_p && times >"$at_times_file"
 
10719
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10720
read at_status <"$at_status_file"
 
10721
#AT_STOP_101
 
10722
#AT_START_102
 
10723
at_fn_group_banner 102 'ofp-print.at:705' \
 
10724
  "NXT_FLOW_MOD_TABLE_ID" "                          " 8
 
10725
at_xfail=no
 
10726
(
 
10727
  $as_echo "102. $at_setup_line: testing $at_desc ..."
 
10728
  $at_traceon
 
10729
 
 
10730
 
 
10731
{ set +x
 
10732
$as_echo "$at_srcdir/ofp-print.at:707: ovs-ofctl ofp-print \"\\
 
10733
01 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \\
 
10734
01 00 00 00 00 00 00 00 \\
 
10735
\""
 
10736
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:707"
 
10737
( $at_check_trace; ovs-ofctl ofp-print "\
 
10738
01 04 00 18 01 02 03 04 00 00 23 20 00 00 00 0f \
 
10739
01 00 00 00 00 00 00 00 \
 
10740
"
 
10741
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10742
at_status=$? at_failed=false
 
10743
$at_check_filter
 
10744
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10745
echo >>"$at_stdout"; $as_echo "NXT_FLOW_MOD_TABLE_ID (xid=0x1020304): enable
 
10746
" | \
 
10747
  $at_diff - "$at_stdout" || at_failed=:
 
10748
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:707"
 
10749
$at_failed && at_fn_log_failure
 
10750
$at_traceon; }
 
10751
 
 
10752
  set +x
 
10753
  $at_times_p && times >"$at_times_file"
 
10754
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10755
read at_status <"$at_status_file"
 
10756
#AT_STOP_102
 
10757
#AT_START_103
 
10758
at_fn_group_banner 103 'ofp-print.at:715' \
 
10759
  "NXST_FLOW request" "                              " 8
 
10760
at_xfail=no
 
10761
(
 
10762
  $as_echo "103. $at_setup_line: testing $at_desc ..."
 
10763
  $at_traceon
 
10764
 
 
10765
 
 
10766
{ set +x
 
10767
$as_echo "$at_srcdir/ofp-print.at:717: ovs-ofctl ofp-print \"\\
 
10768
01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \\
 
10769
00 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \\
 
10770
\""
 
10771
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:717"
 
10772
( $at_check_trace; ovs-ofctl ofp-print "\
 
10773
01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
 
10774
00 00 00 00 00 00 00 00 ff ff 00 00 ff 00 00 00 \
 
10775
"
 
10776
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
10777
at_status=$? at_failed=false
 
10778
$at_check_filter
 
10779
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
10780
echo >>"$at_stdout"; $as_echo "NXST_FLOW request (xid=0x4): 
 
10781
" | \
 
10782
  $at_diff - "$at_stdout" || at_failed=:
 
10783
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:717"
 
10784
$at_failed && at_fn_log_failure
 
10785
$at_traceon; }
 
10786
 
 
10787
  set +x
 
10788
  $at_times_p && times >"$at_times_file"
 
10789
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
10790
read at_status <"$at_status_file"
 
10791
#AT_STOP_103
 
10792
#AT_START_104
 
10793
at_fn_group_banner 104 'ofp-print.at:725' \
 
10794
  "NXST_FLOW reply" "                                " 8
 
10795
at_xfail=no
 
10796
(
 
10797
  $as_echo "104. $at_setup_line: testing $at_desc ..."
 
10798
  $at_traceon
 
10799
 
 
10800
 
 
10801
{ set +x
 
10802
$as_echo "$at_srcdir/ofp-print.at:727: ovs-ofctl ofp-print \"\\
 
10803
01 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \\
 
10804
00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \\
 
10805
02 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \\
 
10806
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \\
 
10807
00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \\
 
10808
02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \\
 
10809
00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \\
 
10810
0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \\
 
10811
a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \\
 
10812
14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \\
 
10813
00 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \\
 
10814
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10815
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \\
 
10816
00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \\
 
10817
00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \\
 
10818
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \\
 
10819
a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \\
 
10820
00 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \\
 
10821
00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \\
 
10822
33 f9 aa 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \\
 
10823
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \\
 
10824
00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \\
 
10825
02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \\
 
10826
00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \\
 
10827
0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \\
 
10828
a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \\
 
10829
14 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \\
 
10830
00 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \\
 
10831
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10832
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \\
 
10833
00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \\
 
10834
00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \\
 
10835
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \\
 
10836
a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \\
 
10837
00 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \\
 
10838
00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \\
 
10839
34 73 bc 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \\
 
10840
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \\
 
10841
00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \\
 
10842
02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \\
 
10843
00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \\
 
10844
0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \\
 
10845
a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \\
 
10846
14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \\
 
10847
00 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \\
 
10848
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10849
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \\
 
10850
00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \\
 
10851
00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \\
 
10852
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \\
 
10853
a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \\
 
10854
00 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \\
 
10855
00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \\
 
10856
02 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \\
 
10857
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \\
 
10858
00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \\
 
10859
02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \\
 
10860
00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \\
 
10861
0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \\
 
10862
a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \\
 
10863
14 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \\
 
10864
00 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \\
 
10865
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10866
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \\
 
10867
00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \\
 
10868
00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \\
 
10869
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \\
 
10870
a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \\
 
10871
00 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \\
 
10872
00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \\
 
10873
27 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \\
 
10874
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \\
 
10875
00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \\
 
10876
02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \\
 
10877
00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \\
 
10878
0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \\
 
10879
a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \\
 
10880
14 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \\
 
10881
00 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \\
 
10882
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10883
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \\
 
10884
00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \\
 
10885
00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \\
 
10886
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \\
 
10887
a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \\
 
10888
00 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \\
 
10889
00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \\
 
10890
0a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \\
 
10891
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \\
 
10892
00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \\
 
10893
02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \\
 
10894
00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \\
 
10895
0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \\
 
10896
a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \\
 
10897
14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \\
 
10898
00 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \\
 
10899
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10900
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \\
 
10901
00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \\
 
10902
00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \\
 
10903
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \\
 
10904
a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \\
 
10905
00 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \\
 
10906
00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \\
 
10907
04 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \\
 
10908
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \\
 
10909
00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \\
 
10910
02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \\
 
10911
00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \\
 
10912
0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \\
 
10913
a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \\
 
10914
14 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \\
 
10915
00 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \\
 
10916
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10917
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \\
 
10918
00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \\
 
10919
00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \\
 
10920
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \\
 
10921
a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \\
 
10922
00 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \\
 
10923
00 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \\
 
10924
2e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \\
 
10925
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10926
00 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \\
 
10927
00 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \\
 
10928
ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \\
 
10929
00 00 00 00 00 00 00 05 \\
 
10930
00 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \\
 
10931
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \\
 
10932
00 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \\
 
10933
\""
 
10934
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:727"
 
10935
( $at_check_trace; ovs-ofctl ofp-print "\
 
10936
01 11 08 18 00 00 00 04 ff ff 00 00 00 00 23 20 \
 
10937
00 00 00 00 00 00 00 00 00 88 00 00 00 00 00 01 \
 
10938
02 dc 6c 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
 
10939
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
 
10940
00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
 
10941
02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
 
10942
00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
 
10943
0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
 
10944
a8 00 02 00 00 0c 01 06 00 00 12 02 09 e7 00 00 \
 
10945
14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
 
10946
00 88 00 00 00 00 00 03 32 11 62 00 ff ff 00 05 \
 
10947
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10948
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
 
10949
00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
 
10950
00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
 
10951
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
 
10952
a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
 
10953
00 00 12 02 09 e4 00 00 14 02 00 00 00 00 00 00 \
 
10954
00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
 
10955
33 f9 aa 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
 
10956
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
 
10957
00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
 
10958
02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
 
10959
00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
 
10960
0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
 
10961
a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
 
10962
14 02 09 e5 00 00 00 00 00 00 00 08 00 03 00 00 \
 
10963
00 88 00 00 00 00 00 04 2d 0f a5 00 ff ff 00 05 \
 
10964
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10965
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
 
10966
00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
 
10967
00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
 
10968
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
 
10969
a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
 
10970
00 00 12 02 09 e3 00 00 14 02 00 00 00 00 00 00 \
 
10971
00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 02 \
 
10972
34 73 bc 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
 
10973
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
 
10974
00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
 
10975
02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
 
10976
00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
 
10977
0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
 
10978
a8 00 02 00 00 0c 01 06 00 00 12 02 09 e5 00 00 \
 
10979
14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
 
10980
00 88 00 00 00 00 00 05 28 0d e8 00 ff ff 00 05 \
 
10981
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10982
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
 
10983
00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
 
10984
00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
 
10985
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
 
10986
a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
 
10987
00 00 12 02 09 e2 00 00 14 02 00 00 00 00 00 00 \
 
10988
00 00 00 08 00 01 00 00 00 88 00 00 00 00 00 01 \
 
10989
02 62 5a 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
 
10990
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
 
10991
00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
 
10992
02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
 
10993
00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
 
10994
0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
 
10995
a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
 
10996
14 02 09 e7 00 00 00 00 00 00 00 08 00 03 00 00 \
 
10997
00 88 00 00 00 00 00 01 38 be 5e 00 ff ff 00 05 \
 
10998
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
 
10999
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
 
11000
00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
 
11001
00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
 
11002
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
 
11003
a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
 
11004
00 00 12 02 00 00 00 00 14 02 09 e6 00 00 00 00 \
 
11005
00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 04 \
 
11006
27 d0 df 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
 
11007
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
 
11008
00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
 
11009
02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
 
11010
00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
 
11011
0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
 
11012
a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
 
11013
14 02 09 e3 00 00 00 00 00 00 00 08 00 03 00 00 \
 
11014
00 88 00 00 00 00 00 03 2c d2 9c 00 ff ff 00 05 \
 
11015
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
 
11016
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
 
11017
00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
 
11018
00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
 
11019
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
 
11020
a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
 
11021
00 00 12 02 00 00 00 00 14 02 09 e4 00 00 00 00 \
 
11022
00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
 
11023
0a 40 83 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
 
11024
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
 
11025
00 00 00 00 00 00 00 3c 00 00 00 02 00 03 00 00 \
 
11026
02 06 50 54 00 00 00 06 00 00 04 06 50 54 00 00 \
 
11027
00 05 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
 
11028
0a 01 00 00 00 0e 04 c0 a8 00 01 00 00 10 04 c0 \
 
11029
a8 00 02 00 00 0c 01 06 00 00 12 02 09 e8 00 00 \
 
11030
14 02 00 00 00 00 00 00 00 00 00 08 00 01 00 00 \
 
11031
00 88 00 00 00 00 00 05 25 31 7c 00 ff ff 00 05 \
 
11032
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
 
11033
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
 
11034
00 00 00 02 00 01 00 00 02 06 50 54 00 00 00 05 \
 
11035
00 00 04 06 50 54 00 00 00 06 00 00 06 02 08 00 \
 
11036
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
 
11037
a8 00 02 00 00 10 04 c0 a8 00 01 00 00 0c 01 06 \
 
11038
00 00 12 02 00 00 00 00 14 02 09 e2 00 00 00 00 \
 
11039
00 00 00 08 00 03 00 00 00 88 00 00 00 00 00 00 \
 
11040
04 c4 b4 00 ff ff 00 05 00 00 00 4c 00 00 00 00 \
 
11041
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 \
 
11042
00 00 00 00 00 00 00 3c 00 00 00 02 00 01 00 00 \
 
11043
02 06 50 54 00 00 00 05 00 00 04 06 50 54 00 00 \
 
11044
00 06 00 00 06 02 08 00 00 00 08 02 00 00 00 00 \
 
11045
0a 01 00 00 00 0e 04 c0 a8 00 02 00 00 10 04 c0 \
 
11046
a8 00 01 00 00 0c 01 06 00 00 12 02 00 00 00 00 \
 
11047
14 02 09 e8 00 00 00 00 00 00 00 08 00 03 00 00 \
 
11048
00 88 00 00 00 00 00 01 39 38 70 00 ff ff 00 05 \
 
11049
00 00 00 4c 00 00 00 00 00 00 00 00 00 00 00 00 \
 
11050
00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 3c \
 
11051
00 00 00 02 00 03 00 00 02 06 50 54 00 00 00 06 \
 
11052
00 00 04 06 50 54 00 00 00 05 00 00 06 02 08 00 \
 
11053
00 00 08 02 00 00 00 00 0a 01 00 00 00 0e 04 c0 \
 
11054
a8 00 01 00 00 10 04 c0 a8 00 02 00 00 0c 01 06 \
 
11055
00 00 12 02 09 e6 00 00 14 02 00 00 00 00 00 00 \
 
11056
00 00 00 08 00 01 00 00 00 60 00 00 00 00 00 e4 \
 
11057
2e 7d db 00 80 00 00 00 00 00 00 14 00 00 00 00 \
 
11058
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
11059
00 00 00 00 00 00 00 00 00 01 20 08 00 00 00 00 \
 
11060
00 00 01 c8 00 01 00 04 00 00 00 7b 00 00 00 00 \
 
11061
ff ff 00 18 00 00 23 20 00 07 00 1f 00 01 00 04 \
 
11062
00 00 00 00 00 00 00 05 \
 
11063
00 30 01 00 00 00 0e 10 00 07 a1 20 80 00 00 00 \
 
11064
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
 
11065
00 00 00 00 00 00 00 64 00 00 00 00 00 00 19 00 \
 
11066
"
 
11067
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11068
at_status=$? at_failed=false
 
11069
$at_check_filter
 
11070
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11071
echo >>"$at_stdout"; $as_echo "NXST_FLOW reply (xid=0x4):
 
11072
 cookie=0x0, duration=1.048s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2535,tp_dst=0 actions=output:1
 
11073
 cookie=0x0, duration=3.84s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2532,tp_dst=0 actions=output:1
 
11074
 cookie=0x0, duration=2.872s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2533 actions=output:3
 
11075
 cookie=0x0, duration=4.756s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2531,tp_dst=0 actions=output:1
 
11076
 cookie=0x0, duration=2.88s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2533,tp_dst=0 actions=output:1
 
11077
 cookie=0x0, duration=5.672s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2530,tp_dst=0 actions=output:1
 
11078
 cookie=0x0, duration=1.04s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2535 actions=output:3
 
11079
 cookie=0x0, duration=1.952s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2534 actions=output:3
 
11080
 cookie=0x0, duration=4.668s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2531 actions=output:3
 
11081
 cookie=0x0, duration=3.752s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2532 actions=output:3
 
11082
 cookie=0x0, duration=0.172s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2536,tp_dst=0 actions=output:1
 
11083
 cookie=0x0, duration=5.624s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2530 actions=output:3
 
11084
 cookie=0x0, duration=0.08s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:06,dl_dst=50:54:00:00:00:05,nw_src=192.168.0.2,nw_dst=192.168.0.1,nw_tos=0,tp_src=0,tp_dst=2536 actions=output:3
 
11085
 cookie=0x0, duration=1.96s, table=0, n_packets=1, n_bytes=60, idle_timeout=5,priority=65535,tcp,in_port=3,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:06,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_tos=0,tp_src=2534,tp_dst=0 actions=output:1
 
11086
 cookie=0x0, duration=228.78s, table=0, n_packets=0, n_bytes=0, reg0=0x7b,tun_id=0x1c8 actions=load:0x5->NXM_NX_REG0[]
 
11087
 cookie=0x0, duration=3600.0005s, table=1, n_packets=100, n_bytes=6400, actions=drop
 
11088
" | \
 
11089
  $at_diff - "$at_stdout" || at_failed=:
 
11090
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:727"
 
11091
$at_failed && at_fn_log_failure
 
11092
$at_traceon; }
 
11093
 
 
11094
  set +x
 
11095
  $at_times_p && times >"$at_times_file"
 
11096
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
11097
read at_status <"$at_status_file"
 
11098
#AT_STOP_104
 
11099
#AT_START_105
 
11100
at_fn_group_banner 105 'ofp-print.at:879' \
 
11101
  "NXST_AGGREGATE request" "                         " 8
 
11102
at_xfail=no
 
11103
(
 
11104
  $as_echo "105. $at_setup_line: testing $at_desc ..."
 
11105
  $at_traceon
 
11106
 
 
11107
 
 
11108
{ set +x
 
11109
$as_echo "$at_srcdir/ofp-print.at:881: ovs-ofctl ofp-print \"\\
 
11110
01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \\
 
11111
00 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \\
 
11112
\""
 
11113
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:881"
 
11114
( $at_check_trace; ovs-ofctl ofp-print "\
 
11115
01 10 00 20 00 00 00 04 ff ff 00 00 00 00 23 20 \
 
11116
00 00 00 01 00 00 00 00 ff ff 00 00 ff 00 00 00 \
 
11117
"
 
11118
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11119
at_status=$? at_failed=false
 
11120
$at_check_filter
 
11121
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11122
echo >>"$at_stdout"; $as_echo "NXST_AGGREGATE request (xid=0x4): 
 
11123
" | \
 
11124
  $at_diff - "$at_stdout" || at_failed=:
 
11125
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:881"
 
11126
$at_failed && at_fn_log_failure
 
11127
$at_traceon; }
 
11128
 
 
11129
  set +x
 
11130
  $at_times_p && times >"$at_times_file"
 
11131
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
11132
read at_status <"$at_status_file"
 
11133
#AT_STOP_105
 
11134
#AT_START_106
 
11135
at_fn_group_banner 106 'ofp-print.at:889' \
 
11136
  "NXST_AGGREGATE reply" "                           " 8
 
11137
at_xfail=no
 
11138
(
 
11139
  $as_echo "106. $at_setup_line: testing $at_desc ..."
 
11140
  $at_traceon
 
11141
 
 
11142
 
 
11143
{ set +x
 
11144
$as_echo "$at_srcdir/ofp-print.at:891: ovs-ofctl ofp-print \"\\
 
11145
01 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \\
 
11146
00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \\
 
11147
00 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \\
 
11148
\""
 
11149
at_fn_check_prepare_notrace 'an embedded newline' "ofp-print.at:891"
 
11150
( $at_check_trace; ovs-ofctl ofp-print "\
 
11151
01 11 00 30 00 00 00 04 ff ff 00 00 00 00 23 20 \
 
11152
00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 07 \
 
11153
00 00 00 00 00 00 01 a4 00 00 00 07 00 00 00 00 \
 
11154
"
 
11155
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11156
at_status=$? at_failed=false
 
11157
$at_check_filter
 
11158
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11159
echo >>"$at_stdout"; $as_echo "NXST_AGGREGATE reply (xid=0x4): packet_count=7 byte_count=420 flow_count=7
 
11160
" | \
 
11161
  $at_diff - "$at_stdout" || at_failed=:
 
11162
at_fn_check_status 0 $at_status "$at_srcdir/ofp-print.at:891"
 
11163
$at_failed && at_fn_log_failure
 
11164
$at_traceon; }
 
11165
 
 
11166
  set +x
 
11167
  $at_times_p && times >"$at_times_file"
 
11168
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
11169
read at_status <"$at_status_file"
 
11170
#AT_STOP_106
 
11171
#AT_START_107
 
11172
at_fn_group_banner 107 'ovs-ofctl.at:3' \
 
11173
  "ovs-ofctl parse-flows" "                          " 9
 
11174
at_xfail=no
 
11175
(
 
11176
  $as_echo "107. $at_setup_line: testing $at_desc ..."
 
11177
  $at_traceon
 
11178
 
 
11179
cat >flows.txt <<'_ATEOF'
 
11180
 
 
11181
# comment
 
11182
tcp,tp_src=123,actions=flood
 
11183
in_port=LOCAL dl_vlan=9 dl_src=00:0A:E4:25:6B:B0 actions=drop
 
11184
udp dl_vlan_pcp=7 idle_timeout=5 actions=strip_vlan output:0
 
11185
tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
 
11186
udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
 
11187
cookie=0x123456789abcdef hard_timeout=10 priority=60000 actions=controller
 
11188
actions=note:41.42.43,note:00.01.02.03.04.05.06.07,note
 
11189
tun_id=0x1234,cookie=0x5678,actions=flood
 
11190
actions=set_tunnel:0x1234,set_tunnel64:0x9876,set_tunnel:0x123456789
 
11191
actions=multipath(eth_src, 50, hrw, 12, 0, NXM_NX_REG0[0..3]),multipath(symmetric_l4, 1024, iter_hash, 5000, 5050, NXM_NX_REG0[0..12])
 
11192
table=1,actions=drop
 
11193
tun_id=0x1234000056780000/0xffff0000ffff0000,actions=drop
 
11194
actions=bundle(eth_src,50,active_backup,ofport,slaves:1)
 
11195
actions=bundle(symmetric_l4,60,hrw,ofport,slaves:2,3)
 
11196
actions=bundle(symmetric_l4,60,hrw,ofport,slaves:)
 
11197
actions=output:1,bundle(eth_src,0,hrw,ofport,slaves:1),output:2
 
11198
actions=bundle_load(eth_src,50,active_backup,ofport,NXM_NX_REG0[],slaves:1)
 
11199
actions=bundle_load(symmetric_l4,60,hrw,ofport,NXM_NX_REG0[0..15],slaves:2,3)
 
11200
actions=bundle_load(symmetric_l4,60,hrw,ofport,NXM_NX_REG0[0..15],slaves:[2,3])
 
11201
actions=bundle_load(symmetric_l4,60,hrw,ofport,NXM_NX_REG0[0..30],slaves:)
 
11202
actions=output:1,bundle_load(eth_src,0,hrw,ofport,NXM_NX_REG0[16..31],slaves:1),output:2
 
11203
actions=resubmit:1,resubmit(2),resubmit(,3),resubmit(2,3)
 
11204
actions=output:1,output:NXM_NX_REG0[],output:2,output:NXM_NX_REG1[16..31],output:3
 
11205
actions=output:1,exit,output:2
 
11206
_ATEOF
 
11207
 
 
11208
 
 
11209
{ set +x
 
11210
$as_echo "$at_srcdir/ovs-ofctl.at:32: ovs-ofctl parse-flows flows.txt
 
11211
"
 
11212
at_fn_check_prepare_notrace 'an embedded newline' "ovs-ofctl.at:32"
 
11213
( $at_check_trace; ovs-ofctl parse-flows flows.txt
 
11214
 
 
11215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11216
at_status=$? at_failed=false
 
11217
$at_check_filter
 
11218
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11219
echo stdout:; tee stdout <"$at_stdout"
 
11220
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:32"
 
11221
$at_failed && at_fn_log_failure
 
11222
$at_traceon; }
 
11223
 
 
11224
{ set +x
 
11225
$as_echo "$at_srcdir/ovs-ofctl.at:34: sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout"
 
11226
at_fn_check_prepare_trace "ovs-ofctl.at:34"
 
11227
( $at_check_trace; sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout
 
11228
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11229
at_status=$? at_failed=false
 
11230
$at_check_filter
 
11231
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11232
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_MOD: ADD tcp,tp_src=123 actions=FLOOD
 
11233
OFPT_FLOW_MOD: ADD in_port=65534,dl_vlan=9,dl_src=00:0a:e4:25:6b:b0 actions=drop
 
11234
OFPT_FLOW_MOD: ADD udp,dl_vlan_pcp=7 idle:5 actions=strip_vlan,output:0
 
11235
OFPT_FLOW_MOD: ADD tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
 
11236
OFPT_FLOW_MOD: ADD udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
 
11237
OFPT_FLOW_MOD: ADD priority=60000 cookie:0x123456789abcdef hard:10 actions=CONTROLLER:65535
 
11238
OFPT_FLOW_MOD: ADD actions=note:41.42.43.00.00.00,note:00.01.02.03.04.05.06.07.00.00.00.00.00.00,note:00.00.00.00.00.00
 
11239
NXT_SET_FLOW_FORMAT: format=nxm
 
11240
NXT_FLOW_MOD: ADD tun_id=0x1234 cookie:0x5678 actions=FLOOD
 
11241
NXT_FLOW_MOD: ADD actions=set_tunnel:0x1234,set_tunnel64:0x9876,set_tunnel64:0x123456789
 
11242
NXT_FLOW_MOD: ADD actions=multipath(eth_src,50,hrw,12,0,NXM_NX_REG0[0..3]),multipath(symmetric_l4,1024,iter_hash,5000,5050,NXM_NX_REG0[0..12])
 
11243
NXT_FLOW_MOD_TABLE_ID: enable
 
11244
NXT_FLOW_MOD: ADD table:1 actions=drop
 
11245
NXT_FLOW_MOD: ADD table:255 tun_id=0x1234000056780000/0xffff0000ffff0000 actions=drop
 
11246
NXT_FLOW_MOD: ADD table:255 actions=bundle(eth_src,50,active_backup,ofport,slaves:1)
 
11247
NXT_FLOW_MOD: ADD table:255 actions=bundle(symmetric_l4,60,hrw,ofport,slaves:2,3)
 
11248
NXT_FLOW_MOD: ADD table:255 actions=bundle(symmetric_l4,60,hrw,ofport,slaves:)
 
11249
NXT_FLOW_MOD: ADD table:255 actions=output:1,bundle(eth_src,0,hrw,ofport,slaves:1),output:2
 
11250
NXT_FLOW_MOD: ADD table:255 actions=bundle_load(eth_src,50,active_backup,ofport,NXM_NX_REG0[],slaves:1)
 
11251
NXT_FLOW_MOD: ADD table:255 actions=bundle_load(symmetric_l4,60,hrw,ofport,NXM_NX_REG0[0..15],slaves:2,3)
 
11252
NXT_FLOW_MOD: ADD table:255 actions=bundle_load(symmetric_l4,60,hrw,ofport,NXM_NX_REG0[0..15],slaves:2,3)
 
11253
NXT_FLOW_MOD: ADD table:255 actions=bundle_load(symmetric_l4,60,hrw,ofport,NXM_NX_REG0[0..30],slaves:)
 
11254
NXT_FLOW_MOD: ADD table:255 actions=output:1,bundle_load(eth_src,0,hrw,ofport,NXM_NX_REG0[16..31],slaves:1),output:2
 
11255
NXT_FLOW_MOD: ADD table:255 actions=resubmit:1,resubmit:2,resubmit(,3),resubmit(2,3)
 
11256
NXT_FLOW_MOD: ADD table:255 actions=output:1,output:NXM_NX_REG0[],output:2,output:NXM_NX_REG1[16..31],output:3
 
11257
NXT_FLOW_MOD: ADD table:255 actions=output:1,exit,output:2
 
11258
" | \
 
11259
  $at_diff - "$at_stdout" || at_failed=:
 
11260
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:34"
 
11261
$at_failed && at_fn_log_failure
 
11262
$at_traceon; }
 
11263
 
 
11264
  set +x
 
11265
  $at_times_p && times >"$at_times_file"
 
11266
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
11267
read at_status <"$at_status_file"
 
11268
#AT_STOP_107
 
11269
#AT_START_108
 
11270
at_fn_group_banner 108 'ovs-ofctl.at:64' \
 
11271
  "ovs-ofctl -F nxm parse-flows" "                   " 9
 
11272
at_xfail=no
 
11273
(
 
11274
  $as_echo "108. $at_setup_line: testing $at_desc ..."
 
11275
  $at_traceon
 
11276
 
 
11277
cat >flows.txt <<'_ATEOF'
 
11278
 
 
11279
# comment
 
11280
tcp,tp_src=123,actions=flood
 
11281
in_port=LOCAL dl_vlan=9 dl_src=00:0A:E4:25:6B:B0 actions=drop
 
11282
arp,dl_src=00:0A:E4:25:6B:B0,arp_sha=00:0A:E4:25:6B:B0 actions=drop
 
11283
ipv6,ipv6_label=0x12345 actions=2
 
11284
ipv6,ipv6_src=2001:db8:3c4d:1:2:3:4:5 actions=3
 
11285
ipv6,ipv6_src=2001:db8:3c4d:1:2:3:4:5/64 actions=4
 
11286
ipv6,ipv6_dst=2001:db8:3c4d:1:2:3:4:5/127 actions=5
 
11287
tcp6,ipv6_src=2001:db8:3c4d:1::1,tp_dst=80 actions=drop
 
11288
udp6,ipv6_src=2001:db8:3c4d:1::3,tp_dst=53 actions=drop
 
11289
in_port=3 icmp6,ipv6_src=2001:db8:3c4d:1::1,icmp_type=134 actions=drop
 
11290
udp dl_vlan_pcp=7 idle_timeout=5 actions=strip_vlan output:0
 
11291
tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
 
11292
udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
 
11293
icmp6,icmp_type=135,nd_target=FEC0::1234:F045:8FFF:1111:FE4E:0571 actions=drop
 
11294
icmp6,icmp_type=135,nd_sll=00:0A:E4:25:6B:B0 actions=drop
 
11295
icmp6,icmp_type=136,nd_target=FEC0::1234:F045:8FFF:1111:FE4E:0571,nd_tll=00:0A:E4:25:6B:B1 actions=drop
 
11296
cookie=0x123456789abcdef hard_timeout=10 priority=60000 actions=controller
 
11297
actions=note:41.42.43,note:00.01.02.03.04.05.06.07,note
 
11298
tun_id=0x1234,cookie=0x5678,actions=flood
 
11299
actions=drop
 
11300
tun_id=0x1234000056780000/0xffff0000ffff0000,actions=drop
 
11301
dl_dst=01:00:00:00:00:00/01:00:00:00:00:00,actions=drop
 
11302
dl_dst=00:00:00:00:00:00/01:00:00:00:00:00,actions=drop
 
11303
dl_dst=aa:bb:cc:dd:ee:ff/fe:ff:ff:ff:ff:ff,actions=drop
 
11304
dl_dst=aa:bb:cc:dd:ee:ff/00:00:00:00:00:00,actions=drop
 
11305
_ATEOF
 
11306
 
 
11307
{ set +x
 
11308
$as_echo "$at_srcdir/ovs-ofctl.at:93: ovs-ofctl -F nxm parse-flows flows.txt"
 
11309
at_fn_check_prepare_trace "ovs-ofctl.at:93"
 
11310
( $at_check_trace; ovs-ofctl -F nxm parse-flows flows.txt
 
11311
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11312
at_status=$? at_failed=false
 
11313
$at_check_filter
 
11314
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11315
echo stdout:; tee stdout <"$at_stdout"
 
11316
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:93"
 
11317
$at_failed && at_fn_log_failure
 
11318
$at_traceon; }
 
11319
 
 
11320
{ set +x
 
11321
$as_echo "$at_srcdir/ovs-ofctl.at:94: sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout"
 
11322
at_fn_check_prepare_trace "ovs-ofctl.at:94"
 
11323
( $at_check_trace; sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout
 
11324
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11325
at_status=$? at_failed=false
 
11326
$at_check_filter
 
11327
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11328
echo >>"$at_stdout"; $as_echo "NXT_FLOW_MOD: ADD tcp,tp_src=123 actions=FLOOD
 
11329
NXT_FLOW_MOD: ADD in_port=65534,dl_vlan=9,dl_src=00:0a:e4:25:6b:b0 actions=drop
 
11330
NXT_FLOW_MOD: ADD arp,dl_src=00:0a:e4:25:6b:b0,arp_sha=00:0a:e4:25:6b:b0 actions=drop
 
11331
NXT_FLOW_MOD: ADD ipv6,ipv6_label=0x12345 actions=output:2
 
11332
NXT_FLOW_MOD: ADD ipv6,ipv6_src=2001:db8:3c4d:1:2:3:4:5 actions=output:3
 
11333
NXT_FLOW_MOD: ADD ipv6,ipv6_src=2001:db8:3c4d:1::/64 actions=output:4
 
11334
NXT_FLOW_MOD: ADD ipv6,ipv6_dst=2001:db8:3c4d:1:2:3:4:4/127 actions=output:5
 
11335
NXT_FLOW_MOD: ADD tcp6,ipv6_src=2001:db8:3c4d:1::1,tp_dst=80 actions=drop
 
11336
NXT_FLOW_MOD: ADD udp6,ipv6_src=2001:db8:3c4d:1::3,tp_dst=53 actions=drop
 
11337
NXT_FLOW_MOD: ADD icmp6,in_port=3,ipv6_src=2001:db8:3c4d:1::1,icmp_type=134 actions=drop
 
11338
NXT_FLOW_MOD: ADD udp,dl_vlan_pcp=7 idle:5 actions=strip_vlan,output:0
 
11339
NXT_FLOW_MOD: ADD tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
 
11340
NXT_FLOW_MOD: ADD udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
 
11341
NXT_FLOW_MOD: ADD icmp6,icmp_type=135,nd_target=fec0:0:1234:f045:8fff:1111:fe4e:571 actions=drop
 
11342
NXT_FLOW_MOD: ADD icmp6,icmp_type=135,nd_sll=00:0a:e4:25:6b:b0 actions=drop
 
11343
NXT_FLOW_MOD: ADD icmp6,icmp_type=136,nd_target=fec0:0:1234:f045:8fff:1111:fe4e:571,nd_tll=00:0a:e4:25:6b:b1 actions=drop
 
11344
NXT_FLOW_MOD: ADD priority=60000 cookie:0x123456789abcdef hard:10 actions=CONTROLLER:65535
 
11345
NXT_FLOW_MOD: ADD actions=note:41.42.43.00.00.00,note:00.01.02.03.04.05.06.07.00.00.00.00.00.00,note:00.00.00.00.00.00
 
11346
NXT_FLOW_MOD: ADD tun_id=0x1234 cookie:0x5678 actions=FLOOD
 
11347
NXT_FLOW_MOD: ADD actions=drop
 
11348
NXT_FLOW_MOD: ADD tun_id=0x1234000056780000/0xffff0000ffff0000 actions=drop
 
11349
NXT_FLOW_MOD: ADD dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=drop
 
11350
NXT_FLOW_MOD: ADD dl_dst=00:00:00:00:00:00/01:00:00:00:00:00 actions=drop
 
11351
NXT_FLOW_MOD: ADD dl_dst=aa:bb:cc:dd:ee:ff/fe:ff:ff:ff:ff:ff actions=drop
 
11352
NXT_FLOW_MOD: ADD actions=drop
 
11353
" | \
 
11354
  $at_diff - "$at_stdout" || at_failed=:
 
11355
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:94"
 
11356
$at_failed && at_fn_log_failure
 
11357
$at_traceon; }
 
11358
 
 
11359
  set +x
 
11360
  $at_times_p && times >"$at_times_file"
 
11361
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
11362
read at_status <"$at_status_file"
 
11363
#AT_STOP_108
 
11364
#AT_START_109
 
11365
at_fn_group_banner 109 'ovs-ofctl.at:123' \
 
11366
  "ovs-ofctl -F nxm -mmm parse-flows" "              " 9
 
11367
at_xfail=no
 
11368
(
 
11369
  $as_echo "109. $at_setup_line: testing $at_desc ..."
 
11370
  $at_traceon
 
11371
 
 
11372
cat >flows.txt <<'_ATEOF'
 
11373
 
 
11374
# comment
 
11375
tcp,tp_src=123,actions=flood
 
11376
in_port=LOCAL dl_vlan=9 dl_src=00:0A:E4:25:6B:B0 actions=drop
 
11377
arp,dl_src=00:0A:E4:25:6B:B0,arp_sha=00:0A:E4:25:6B:B0 actions=drop
 
11378
ipv6,ipv6_label=0x12345 actions=2
 
11379
ipv6,ipv6_src=2001:db8:3c4d:1:2:3:4:5 actions=3
 
11380
ipv6,ipv6_src=2001:db8:3c4d:1:2:3:4:5/64 actions=4
 
11381
ipv6,ipv6_dst=2001:db8:3c4d:1:2:3:4:5/127 actions=5
 
11382
tcp6,ipv6_src=2001:db8:3c4d:1::1,tp_dst=80 actions=drop
 
11383
udp6,ipv6_src=2001:db8:3c4d:1::3,tp_dst=53 actions=drop
 
11384
in_port=3 icmp6,ipv6_src=2001:db8:3c4d:1::1,icmp_type=134 actions=drop
 
11385
udp dl_vlan_pcp=7 idle_timeout=5 actions=strip_vlan output:0
 
11386
tcp,nw_src=192.168.0.3,tp_dst=80 actions=set_queue:37,output:1
 
11387
udp,nw_src=192.168.0.3,tp_dst=53 actions=pop_queue,output:1
 
11388
icmp6,icmp_type=135,nd_target=FEC0::1234:F045:8FFF:1111:FE4E:0571 actions=drop
 
11389
icmp6,icmp_type=135,nd_sll=00:0A:E4:25:6B:B0 actions=drop
 
11390
icmp6,icmp_type=136,nd_target=FEC0::1234:F045:8FFF:1111:FE4E:0571,nd_tll=00:0A:E4:25:6B:B1 actions=drop
 
11391
cookie=0x123456789abcdef hard_timeout=10 priority=60000 actions=controller
 
11392
actions=note:41.42.43,note:00.01.02.03.04.05.06.07,note
 
11393
tun_id=0x1234,cookie=0x5678,actions=flood
 
11394
actions=drop
 
11395
reg0=123,actions=move:NXM_NX_REG0[0..5]->NXM_NX_REG1[26..31],load:55->NXM_NX_REG2[0..31],move:NXM_NX_REG0[0..31]->NXM_NX_TUN_ID[0..31],move:NXM_NX_REG0[0..15]->NXM_OF_VLAN_TCI[]
 
11396
actions=autopath(5,NXM_NX_REG0[])
 
11397
vlan_tci=0x1123/0x1fff,actions=drop
 
11398
_ATEOF
 
11399
 
 
11400
{ set +x
 
11401
$as_echo "$at_srcdir/ovs-ofctl.at:150: ovs-ofctl -F nxm -mmm parse-flows flows.txt"
 
11402
at_fn_check_prepare_trace "ovs-ofctl.at:150"
 
11403
( $at_check_trace; ovs-ofctl -F nxm -mmm parse-flows flows.txt
 
11404
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11405
at_status=$? at_failed=false
 
11406
$at_check_filter
 
11407
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11408
echo stdout:; tee stdout <"$at_stdout"
 
11409
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:150"
 
11410
$at_failed && at_fn_log_failure
 
11411
$at_traceon; }
 
11412
 
 
11413
{ set +x
 
11414
$as_echo "$at_srcdir/ovs-ofctl.at:151: sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout"
 
11415
at_fn_check_prepare_trace "ovs-ofctl.at:151"
 
11416
( $at_check_trace; sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout
 
11417
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11418
at_status=$? at_failed=false
 
11419
$at_check_filter
 
11420
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11421
echo >>"$at_stdout"; $as_echo "NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(06), NXM_OF_TCP_SRC(007b) actions=FLOOD
 
11422
NXT_FLOW_MOD: ADD NXM_OF_IN_PORT(fffe), NXM_OF_ETH_SRC(000ae4256bb0), NXM_OF_VLAN_TCI_W(1009/1fff) actions=drop
 
11423
NXT_FLOW_MOD: ADD NXM_OF_ETH_SRC(000ae4256bb0), NXM_OF_ETH_TYPE(0806), NXM_NX_ARP_SHA(000ae4256bb0) actions=drop
 
11424
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_LABEL(00012345) actions=output:2
 
11425
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_SRC(20010db83c4d00010002000300040005) actions=output:3
 
11426
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_SRC_W(20010db83c4d00010000000000000000/ffffffffffffffff0000000000000000) actions=output:4
 
11427
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_DST_W(20010db83c4d00010002000300040004/fffffffffffffffffffffffffffffffe) actions=output:5
 
11428
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_SRC(20010db83c4d00010000000000000001), NXM_OF_IP_PROTO(06), NXM_OF_TCP_DST(0050) actions=drop
 
11429
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_SRC(20010db83c4d00010000000000000003), NXM_OF_IP_PROTO(11), NXM_OF_UDP_DST(0035) actions=drop
 
11430
NXT_FLOW_MOD: ADD NXM_OF_IN_PORT(0003), NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_SRC(20010db83c4d00010000000000000001), NXM_OF_IP_PROTO(3a), NXM_NX_ICMPV6_TYPE(86) actions=drop
 
11431
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0800), NXM_OF_VLAN_TCI_W(f000/f000), NXM_OF_IP_PROTO(11) idle:5 actions=strip_vlan,output:0
 
11432
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0800), NXM_OF_IP_SRC(c0a80003), NXM_OF_IP_PROTO(06), NXM_OF_TCP_DST(0050) actions=set_queue:37,output:1
 
11433
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(0800), NXM_OF_IP_SRC(c0a80003), NXM_OF_IP_PROTO(11), NXM_OF_UDP_DST(0035) actions=pop_queue,output:1
 
11434
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_OF_IP_PROTO(3a), NXM_NX_ICMPV6_TYPE(87), NXM_NX_ND_TARGET(fec000001234f0458fff1111fe4e0571) actions=drop
 
11435
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_OF_IP_PROTO(3a), NXM_NX_ICMPV6_TYPE(87), NXM_NX_ND_SLL(000ae4256bb0) actions=drop
 
11436
NXT_FLOW_MOD: ADD NXM_OF_ETH_TYPE(86dd), NXM_OF_IP_PROTO(3a), NXM_NX_ICMPV6_TYPE(88), NXM_NX_ND_TARGET(fec000001234f0458fff1111fe4e0571), NXM_NX_ND_TLL(000ae4256bb1) actions=drop
 
11437
NXT_FLOW_MOD: ADD <any> cookie:0x123456789abcdef hard:10 pri:60000 actions=CONTROLLER:65535
 
11438
NXT_FLOW_MOD: ADD <any> actions=note:41.42.43.00.00.00,note:00.01.02.03.04.05.06.07.00.00.00.00.00.00,note:00.00.00.00.00.00
 
11439
NXT_FLOW_MOD: ADD NXM_NX_TUN_ID(0000000000001234) cookie:0x5678 actions=FLOOD
 
11440
NXT_FLOW_MOD: ADD <any> actions=drop
 
11441
NXT_FLOW_MOD: ADD NXM_NX_REG0(0000007b) actions=move:NXM_NX_REG0[0..5]->NXM_NX_REG1[26..31],load:0x37->NXM_NX_REG2[],move:NXM_NX_REG0[]->NXM_NX_TUN_ID[0..31],move:NXM_NX_REG0[0..15]->NXM_OF_VLAN_TCI[]
 
11442
NXT_FLOW_MOD: ADD <any> actions=autopath(5,NXM_NX_REG0[])
 
11443
NXT_FLOW_MOD: ADD NXM_OF_VLAN_TCI_W(1123/1fff) actions=drop
 
11444
" | \
 
11445
  $at_diff - "$at_stdout" || at_failed=:
 
11446
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:151"
 
11447
$at_failed && at_fn_log_failure
 
11448
$at_traceon; }
 
11449
 
 
11450
  set +x
 
11451
  $at_times_p && times >"$at_times_file"
 
11452
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
11453
read at_status <"$at_status_file"
 
11454
#AT_STOP_109
 
11455
#AT_START_110
 
11456
at_fn_group_banner 110 'ovs-ofctl.at:178' \
 
11457
  "ovs-ofctl parse-nx-match" "                       " 9
 
11458
at_xfail=no
 
11459
(
 
11460
  $as_echo "110. $at_setup_line: testing $at_desc ..."
 
11461
  $at_traceon
 
11462
 
 
11463
 
 
11464
cat >nx-match.txt <<'_ATEOF'
 
11465
<any>
 
11466
 
 
11467
# in port
 
11468
NXM_OF_IN_PORT(0000)
 
11469
NXM_OF_IN_PORT(fffe)
 
11470
 
 
11471
# eth dst
 
11472
NXM_OF_ETH_DST(0002e30f80a4)
 
11473
NXM_OF_ETH_DST_W(010000000000/010000000000)
 
11474
NXM_OF_ETH_DST_W(000000000000/010000000000)
 
11475
NXM_OF_ETH_DST_W(ffffffffffff/010000000000)
 
11476
NXM_OF_ETH_DST_W(0002e30f80a4/ffffffffffff)
 
11477
NXM_OF_ETH_DST_W(0002e30f80a4/feffffffffff)
 
11478
 
 
11479
# eth src
 
11480
NXM_OF_ETH_SRC(020898456ddb)
 
11481
 
 
11482
# eth type
 
11483
NXM_OF_ETH_TYPE(0800)
 
11484
NXM_OF_ETH_TYPE(0800) NXM_OF_IN_PORT(0012)
 
11485
 
 
11486
# vlan tci
 
11487
NXM_OF_VLAN_TCI(f009)
 
11488
NXM_OF_VLAN_TCI(f009) NXM_OF_VLAN_TCI(f009)
 
11489
NXM_OF_VLAN_TCI(0000)           # Packets without 802.1Q header.
 
11490
NXM_OF_VLAN_TCI(3123)           # Packets with VID=123, PCP=1.
 
11491
NXM_OF_VLAN_TCI(0123)           # Does not make sense (but supported anyway)
 
11492
NXM_OF_VLAN_TCI_W(1123/1fff)    # Packets with VID=123, any PCP.
 
11493
NXM_OF_VLAN_TCI_W(f000/f000)    # Packets with any VID, PCP=7.
 
11494
NXM_OF_VLAN_TCI_W(0000/e000)    # No 802.1Q or with VID=0
 
11495
 
 
11496
# IP TOS
 
11497
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_TOS(f0)
 
11498
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_TOS(41)
 
11499
NXM_OF_IP_TOS(f0)
 
11500
 
 
11501
# IP ECN
 
11502
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_ECN(03)
 
11503
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_ECN(06)
 
11504
NXM_NX_IP_ECN(03)
 
11505
 
 
11506
# IP protocol
 
11507
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(01)
 
11508
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(05)
 
11509
NXM_OF_IP_PROTO(05)
 
11510
 
 
11511
# IP TTL
 
11512
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_TTL(80)
 
11513
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_TTL(ff)
 
11514
NXM_NX_IP_TTL(80)
 
11515
 
 
11516
# IP source
 
11517
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_SRC(ac100014)
 
11518
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_SRC_W(C0a80000/FFFF0000)
 
11519
NXM_OF_ETH_TYPE(0806) NXM_OF_IP_SRC(ac100014)
 
11520
NXM_OF_IP_SRC_W(C0D80000/FFFF0000)
 
11521
 
 
11522
# IP destination
 
11523
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_DST(ac100014)
 
11524
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_DST_W(C0a88012/FFFF0000)
 
11525
NXM_OF_IP_DST(ac100014)
 
11526
NXM_OF_ETH_TYPE(0806) NXM_OF_IP_DST_W(C0D80000/FFFF0000)
 
11527
 
 
11528
# TCP source port
 
11529
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(06) NXM_OF_TCP_SRC(4231)
 
11530
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(07) NXM_OF_TCP_SRC(4231)
 
11531
 
 
11532
# TCP destination port
 
11533
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(06) NXM_OF_TCP_DST(4231)
 
11534
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(07) NXM_OF_TCP_DST(4231)
 
11535
 
 
11536
# UDP source port
 
11537
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(11) NXM_OF_UDP_SRC(8732)
 
11538
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(06) NXM_OF_UDP_SRC(7823)
 
11539
 
 
11540
# UDP destination port
 
11541
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(11) NXM_OF_UDP_DST(1782)
 
11542
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(02) NXM_OF_UDP_DST(1293)
 
11543
 
 
11544
# ICMP type
 
11545
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(01) NXM_OF_ICMP_TYPE(12)
 
11546
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(00) NXM_OF_ICMP_TYPE(10)
 
11547
 
 
11548
# ICMP code
 
11549
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(01) NXM_OF_ICMP_CODE(12)
 
11550
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(00) NXM_OF_ICMP_CODE(10)
 
11551
NXM_OF_ETH_TYPE(0800) NXM_OF_ICMP_CODE(10)
 
11552
NXM_OF_ICMP_CODE(00)
 
11553
 
 
11554
# ARP opcode
 
11555
NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_OP(0001)
 
11556
NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_OP(1111)
 
11557
NXM_OF_ETH_TYPE(0000) NXM_OF_ARP_OP(0001)
 
11558
NXM_OF_ARP_OP(0001)
 
11559
NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_OP(0001) NXM_OF_ARP_OP(0001)
 
11560
 
 
11561
# ARP source protocol address
 
11562
NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_SPA(ac100014)
 
11563
NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_SPA_W(C0a81234/FFFFFF00)
 
11564
NXM_OF_ETH_TYPE(0800) NXM_OF_ARP_SPA(ac100014)
 
11565
NXM_OF_ARP_SPA_W(C0D8fedc/FFFF0000)
 
11566
 
 
11567
# ARP destination protocol address
 
11568
NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_TPA(ac100014)
 
11569
NXM_OF_ETH_TYPE(0806) NXM_OF_ARP_TPA_W(C0a812fe/FFFFFF00)
 
11570
NXM_OF_ETH_TYPE(0800) NXM_OF_ARP_TPA(ac100014)
 
11571
NXM_OF_ARP_TPA_W(C0D80000/FFFF0000)
 
11572
 
 
11573
# ARP source hardware address
 
11574
NXM_OF_ETH_TYPE(0806) NXM_NX_ARP_SHA(0002e30f80a4)
 
11575
NXM_OF_ETH_TYPE(0800) NXM_NX_ARP_SHA(0002e30f80a4)
 
11576
NXM_NX_ARP_SHA(0002e30f80a4)
 
11577
 
 
11578
# ARP destination hardware address
 
11579
NXM_OF_ETH_TYPE(0806) NXM_NX_ARP_THA(0002e30f80a4)
 
11580
NXM_OF_ETH_TYPE(0800) NXM_NX_ARP_THA(0002e30f80a4)
 
11581
NXM_NX_ARP_THA(0002e30f80a4)
 
11582
 
 
11583
# IPv6 source
 
11584
NXM_OF_ETH_TYPE(86dd) NXM_NX_IPV6_SRC(20010db83c4d00010002000300040005)
 
11585
NXM_OF_ETH_TYPE(0800) NXM_NX_IPV6_SRC(20010db83c4d00010002000300040005)
 
11586
NXM_OF_ETH_TYPE(86dd) NXM_NX_IPV6_SRC_W(20010db83c4d00010000000000000000/ffffffffffffffff0000000000000000)
 
11587
NXM_OF_ETH_TYPE(0800) NXM_NX_IPV6_SRC_W(20010db83c4d00010000000000000000/ffffffffffffffff0000000000000000)
 
11588
 
 
11589
# IPv6 destination
 
11590
NXM_OF_ETH_TYPE(86dd) NXM_NX_IPV6_DST(20010db83c4d00010002000300040005)
 
11591
NXM_OF_ETH_TYPE(0800) NXM_NX_IPV6_DST(20010db83c4d00010002000300040005)
 
11592
NXM_OF_ETH_TYPE(86dd) NXM_NX_IPV6_DST_W(20010db83c4d00010000000000000000/ffffffffffffffff0000000000000000)
 
11593
NXM_OF_ETH_TYPE(0800) NXM_NX_IPV6_DST_W(20010db83c4d00010000000000000000/ffffffffffffffff0000000000000000)
 
11594
 
 
11595
# ND source hardware address
 
11596
NXM_OF_ETH_TYPE(86dd) NXM_OF_IP_PROTO(3a) NXM_NX_ICMPV6_TYPE(87) NXM_NX_ND_TARGET(20010db83c4d00010002000300040005) NXM_NX_ND_SLL(0002e30f80a4)
 
11597
NXM_OF_ETH_TYPE(86dd) NXM_OF_IP_PROTO(3a) NXM_NX_ICMPV6_TYPE(88) NXM_NX_ND_TARGET(20010db83c4d00010002000300040005) NXM_NX_ND_SLL(0002e30f80a4)
 
11598
NXM_OF_ETH_TYPE(86dd) NXM_OF_IP_PROTO(3b) NXM_NX_ICMPV6_TYPE(87) NXM_NX_ND_TARGET(20010db83c4d00010002000300040005) NXM_NX_ND_SLL(0002e30f80a4)
 
11599
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(3a) NXM_NX_ICMPV6_TYPE(87) NXM_NX_ND_TARGET(20010db83c4d00010002000300040005) NXM_NX_ND_SLL(0002e30f80a4)
 
11600
 
 
11601
# ND destination hardware address
 
11602
NXM_OF_ETH_TYPE(86dd) NXM_OF_IP_PROTO(3a) NXM_NX_ICMPV6_TYPE(88) NXM_NX_ND_TARGET(20010db83c4d00010002000300040005) NXM_NX_ND_TLL(0002e30f80a4)
 
11603
NXM_OF_ETH_TYPE(86dd) NXM_OF_IP_PROTO(3a) NXM_NX_ICMPV6_TYPE(87) NXM_NX_ND_TARGET(20010db83c4d00010002000300040005) NXM_NX_ND_TLL(0002e30f80a4)
 
11604
NXM_OF_ETH_TYPE(86dd) NXM_OF_IP_PROTO(3b) NXM_NX_ICMPV6_TYPE(87) NXM_NX_ND_TARGET(20010db83c4d00010002000300040005) NXM_NX_ND_TLL(0002e30f80a4)
 
11605
NXM_OF_ETH_TYPE(0800) NXM_OF_IP_PROTO(3a) NXM_NX_ICMPV6_TYPE(88) NXM_NX_ND_TARGET(20010db83c4d00010002000300040005) NXM_NX_ND_TLL(0002e30f80a4)
 
11606
 
 
11607
# IPv4 fragments.
 
11608
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG(00)
 
11609
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG(01)
 
11610
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG(02)
 
11611
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG(03)
 
11612
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG_W(00/03)
 
11613
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG_W(00/fd)
 
11614
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG_W(00/02)
 
11615
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG_W(01/01)
 
11616
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG_W(02/02)
 
11617
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG_W(03/03)
 
11618
NXM_OF_ETH_TYPE(0800) NXM_NX_IP_FRAG(f3)
 
11619
 
 
11620
# IPv6 fragments.
 
11621
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG(00)
 
11622
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG(01)
 
11623
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG(02)
 
11624
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG(03)
 
11625
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG_W(00/03)
 
11626
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG_W(00/01)
 
11627
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG_W(00/02)
 
11628
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG_W(01/01)
 
11629
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG_W(02/02)
 
11630
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG_W(03/03)
 
11631
NXM_OF_ETH_TYPE(86dd) NXM_NX_IP_FRAG(f3)
 
11632
 
 
11633
# Tunnel ID.
 
11634
NXM_NX_TUN_ID(00000000abcdef01)
 
11635
NXM_NX_TUN_ID_W(84200000abcdef01/84200000FFFFFFFF)
 
11636
 
 
11637
# Register 0.
 
11638
NXM_NX_REG0(acebdf56)
 
11639
NXM_NX_REG0_W(a0e0d050/f0f0f0f0)
 
11640
 
 
11641
# Invalid field number.
 
11642
01020304(1111/2222)
 
11643
 
 
11644
# Unimplemented registers.
 
11645
#
 
11646
# This test assumes that at least two registers, but fewer than 16,
 
11647
# registers are implemented.
 
11648
00010004(12345678)
 
11649
00010108(12345678/12345678)
 
11650
00011e04(12345678)
 
11651
00011f08(12345678/12345678)
 
11652
_ATEOF
 
11653
 
 
11654
{ set +x
 
11655
$as_echo "$at_srcdir/ovs-ofctl.at:369: ovs-ofctl parse-nx-match < nx-match.txt"
 
11656
at_fn_check_prepare_trace "ovs-ofctl.at:369"
 
11657
( $at_check_trace; ovs-ofctl parse-nx-match < nx-match.txt
 
11658
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11659
at_status=$? at_failed=false
 
11660
$at_check_filter
 
11661
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11662
echo >>"$at_stdout"; $as_echo "<any>
 
11663
 
 
11664
# in port
 
11665
NXM_OF_IN_PORT(0000)
 
11666
NXM_OF_IN_PORT(fffe)
 
11667
 
 
11668
# eth dst
 
11669
NXM_OF_ETH_DST(0002e30f80a4)
 
11670
NXM_OF_ETH_DST_W(010000000000/010000000000)
 
11671
NXM_OF_ETH_DST_W(000000000000/010000000000)
 
11672
NXM_OF_ETH_DST_W(010000000000/010000000000)
 
11673
NXM_OF_ETH_DST(0002e30f80a4)
 
11674
NXM_OF_ETH_DST_W(0002e30f80a4/feffffffffff)
 
11675
 
 
11676
# eth src
 
11677
NXM_OF_ETH_SRC(020898456ddb)
 
11678
 
 
11679
# eth type
 
11680
NXM_OF_ETH_TYPE(0800)
 
11681
NXM_OF_IN_PORT(0012), NXM_OF_ETH_TYPE(0800)
 
11682
 
 
11683
# vlan tci
 
11684
NXM_OF_VLAN_TCI(f009)
 
11685
nx_pull_match() returned error 44010105 (type OFPET_BAD_REQUEST, code NXBRC_NXM_DUP_TYPE)
 
11686
NXM_OF_VLAN_TCI(0000)
 
11687
NXM_OF_VLAN_TCI(3123)
 
11688
NXM_OF_VLAN_TCI(0123)
 
11689
NXM_OF_VLAN_TCI_W(1123/1fff)
 
11690
NXM_OF_VLAN_TCI_W(f000/f000)
 
11691
NXM_OF_VLAN_TCI_W(0000/e000)
 
11692
 
 
11693
# IP TOS
 
11694
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_TOS(f0)
 
11695
nx_pull_match() returned error 44010102 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_VALUE)
 
11696
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11697
 
 
11698
# IP ECN
 
11699
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_ECN(03)
 
11700
nx_pull_match() returned error 44010102 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_VALUE)
 
11701
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11702
 
 
11703
# IP protocol
 
11704
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(01)
 
11705
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(05)
 
11706
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11707
 
 
11708
# IP TTL
 
11709
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_TTL(80)
 
11710
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_TTL(ff)
 
11711
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11712
 
 
11713
# IP source
 
11714
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_SRC(ac100014)
 
11715
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_SRC_W(c0a80000/ffff0000)
 
11716
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11717
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11718
 
 
11719
# IP destination
 
11720
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_DST(ac100014)
 
11721
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_DST_W(c0a80000/ffff0000)
 
11722
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11723
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11724
 
 
11725
# TCP source port
 
11726
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(06), NXM_OF_TCP_SRC(4231)
 
11727
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11728
 
 
11729
# TCP destination port
 
11730
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(06), NXM_OF_TCP_DST(4231)
 
11731
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11732
 
 
11733
# UDP source port
 
11734
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(11), NXM_OF_UDP_SRC(8732)
 
11735
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11736
 
 
11737
# UDP destination port
 
11738
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(11), NXM_OF_UDP_DST(1782)
 
11739
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11740
 
 
11741
# ICMP type
 
11742
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(01), NXM_OF_ICMP_TYPE(12)
 
11743
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11744
 
 
11745
# ICMP code
 
11746
NXM_OF_ETH_TYPE(0800), NXM_OF_IP_PROTO(01), NXM_OF_ICMP_CODE(12)
 
11747
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11748
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11749
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11750
 
 
11751
# ARP opcode
 
11752
NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_OP(0001)
 
11753
nx_pull_match() returned error 44010102 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_VALUE)
 
11754
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11755
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11756
nx_pull_match() returned error 44010105 (type OFPET_BAD_REQUEST, code NXBRC_NXM_DUP_TYPE)
 
11757
 
 
11758
# ARP source protocol address
 
11759
NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_SPA(ac100014)
 
11760
NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_SPA_W(c0a81200/ffffff00)
 
11761
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11762
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11763
 
 
11764
# ARP destination protocol address
 
11765
NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_TPA(ac100014)
 
11766
NXM_OF_ETH_TYPE(0806), NXM_OF_ARP_TPA_W(c0a81200/ffffff00)
 
11767
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11768
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11769
 
 
11770
# ARP source hardware address
 
11771
NXM_OF_ETH_TYPE(0806), NXM_NX_ARP_SHA(0002e30f80a4)
 
11772
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11773
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11774
 
 
11775
# ARP destination hardware address
 
11776
NXM_OF_ETH_TYPE(0806), NXM_NX_ARP_THA(0002e30f80a4)
 
11777
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11778
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11779
 
 
11780
# IPv6 source
 
11781
NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_SRC(20010db83c4d00010002000300040005)
 
11782
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11783
NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_SRC_W(20010db83c4d00010000000000000000/ffffffffffffffff0000000000000000)
 
11784
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11785
 
 
11786
# IPv6 destination
 
11787
NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_DST(20010db83c4d00010002000300040005)
 
11788
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11789
NXM_OF_ETH_TYPE(86dd), NXM_NX_IPV6_DST_W(20010db83c4d00010000000000000000/ffffffffffffffff0000000000000000)
 
11790
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11791
 
 
11792
# ND source hardware address
 
11793
NXM_OF_ETH_TYPE(86dd), NXM_OF_IP_PROTO(3a), NXM_NX_ICMPV6_TYPE(87), NXM_NX_ND_TARGET(20010db83c4d00010002000300040005), NXM_NX_ND_SLL(0002e30f80a4)
 
11794
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11795
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11796
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11797
 
 
11798
# ND destination hardware address
 
11799
NXM_OF_ETH_TYPE(86dd), NXM_OF_IP_PROTO(3a), NXM_NX_ICMPV6_TYPE(88), NXM_NX_ND_TARGET(20010db83c4d00010002000300040005), NXM_NX_ND_TLL(0002e30f80a4)
 
11800
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11801
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11802
nx_pull_match() returned error 44010104 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_PREREQ)
 
11803
 
 
11804
# IPv4 fragments.
 
11805
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG(00)
 
11806
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG(01)
 
11807
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG(02)
 
11808
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG(03)
 
11809
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG(00)
 
11810
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG_W(00/01)
 
11811
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG_W(00/02)
 
11812
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG_W(01/01)
 
11813
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG_W(02/02)
 
11814
NXM_OF_ETH_TYPE(0800), NXM_NX_IP_FRAG(03)
 
11815
nx_pull_match() returned error 44010102 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_VALUE)
 
11816
 
 
11817
# IPv6 fragments.
 
11818
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG(00)
 
11819
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG(01)
 
11820
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG(02)
 
11821
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG(03)
 
11822
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG(00)
 
11823
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG_W(00/01)
 
11824
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG_W(00/02)
 
11825
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG_W(01/01)
 
11826
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG_W(02/02)
 
11827
NXM_OF_ETH_TYPE(86dd), NXM_NX_IP_FRAG(03)
 
11828
nx_pull_match() returned error 44010102 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_VALUE)
 
11829
 
 
11830
# Tunnel ID.
 
11831
NXM_NX_TUN_ID(00000000abcdef01)
 
11832
NXM_NX_TUN_ID_W(84200000abcdef01/84200000ffffffff)
 
11833
 
 
11834
# Register 0.
 
11835
NXM_NX_REG0(acebdf56)
 
11836
NXM_NX_REG0_W(a0e0d050/f0f0f0f0)
 
11837
 
 
11838
# Invalid field number.
 
11839
nx_pull_match() returned error 44010101 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_TYPE)
 
11840
 
 
11841
# Unimplemented registers.
 
11842
#
 
11843
# This test assumes that at least two registers, but fewer than 16,
 
11844
# registers are implemented.
 
11845
NXM_NX_REG0(12345678)
 
11846
NXM_NX_REG0_W(12345678/12345678)
 
11847
nx_pull_match() returned error 44010101 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_TYPE)
 
11848
nx_pull_match() returned error 44010101 (type OFPET_BAD_REQUEST, code NXBRC_NXM_BAD_TYPE)
 
11849
" | \
 
11850
  $at_diff - "$at_stdout" || at_failed=:
 
11851
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:369"
 
11852
$at_failed && at_fn_log_failure
 
11853
$at_traceon; }
 
11854
 
 
11855
  set +x
 
11856
  $at_times_p && times >"$at_times_file"
 
11857
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
11858
read at_status <"$at_status_file"
 
11859
#AT_STOP_110
 
11860
#AT_START_111
 
11861
at_fn_group_banner 111 'ovs-ofctl.at:562' \
 
11862
  "ovs-ofctl -F option and tun_id" "                 " 9
 
11863
at_xfail=no
 
11864
(
 
11865
  $as_echo "111. $at_setup_line: testing $at_desc ..."
 
11866
  $at_traceon
 
11867
 
 
11868
{ set +x
 
11869
$as_echo "$at_srcdir/ovs-ofctl.at:563: ovs-ofctl -F openflow10 add-flow dummy tun_id=123,actions=drop"
 
11870
at_fn_check_prepare_trace "ovs-ofctl.at:563"
 
11871
( $at_check_trace; ovs-ofctl -F openflow10 add-flow dummy tun_id=123,actions=drop
 
11872
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11873
at_status=$? at_failed=false
 
11874
$at_check_filter
 
11875
echo >>"$at_stderr"; $as_echo "ovs-ofctl: flow cannot be expressed in flow format openflow10 (flow format nxm or better is required)
 
11876
" | \
 
11877
  $at_diff - "$at_stderr" || at_failed=:
 
11878
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
11879
at_fn_check_status 1 $at_status "$at_srcdir/ovs-ofctl.at:563"
 
11880
$at_failed && at_fn_log_failure
 
11881
$at_traceon; }
 
11882
 
 
11883
  set +x
 
11884
  $at_times_p && times >"$at_times_file"
 
11885
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
11886
read at_status <"$at_status_file"
 
11887
#AT_STOP_111
 
11888
#AT_START_112
 
11889
at_fn_group_banner 112 'ovs-ofctl.at:572' \
 
11890
  "ovs-ofctl -F option with flow_mods" "             " 9
 
11891
at_xfail=no
 
11892
(
 
11893
  $as_echo "112. $at_setup_line: testing $at_desc ..."
 
11894
  $at_traceon
 
11895
 
 
11896
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
11897
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
11898
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
11899
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
11900
 
 
11901
      mkdir openvswitch
 
11902
   touch openvswitch/.conf.db.~lock~
 
11903
   { set +x
 
11904
$as_echo "$at_srcdir/ovs-ofctl.at:573: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
11905
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-ofctl.at:573"
 
11906
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
11907
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11908
at_status=$? at_failed=false
 
11909
$at_check_filter
 
11910
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11911
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
11912
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:573"
 
11913
$at_failed && at_fn_log_failure
 
11914
$at_traceon; }
 
11915
 
 
11916
 
 
11917
      { set +x
 
11918
$as_echo "$at_srcdir/ovs-ofctl.at:573: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
11919
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ovs-ofctl.at:573"
 
11920
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
11921
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11922
at_status=$? at_failed=false
 
11923
$at_check_filter
 
11924
echo stderr:; tee stderr <"$at_stderr"
 
11925
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
11926
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:573"
 
11927
$at_failed && at_fn_log_failure
 
11928
$at_traceon; }
 
11929
 
 
11930
   { set +x
 
11931
$as_echo "$at_srcdir/ovs-ofctl.at:573: sed < stderr '/vlog|INFO|opened log file/d'"
 
11932
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-ofctl.at:573"
 
11933
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
11934
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11935
at_status=$? at_failed=false
 
11936
$at_check_filter
 
11937
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11938
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
11939
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:573"
 
11940
$at_failed && at_fn_log_failure
 
11941
$at_traceon; }
 
11942
 
 
11943
 
 
11944
 
 
11945
      { set +x
 
11946
$as_echo "$at_srcdir/ovs-ofctl.at:573: ovs-vsctl --no-wait init"
 
11947
at_fn_check_prepare_trace "ovs-ofctl.at:573"
 
11948
( $at_check_trace; ovs-vsctl --no-wait init
 
11949
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11950
at_status=$? at_failed=false
 
11951
$at_check_filter
 
11952
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11953
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
11954
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:573"
 
11955
$at_failed && at_fn_log_failure  \
 
11956
"ovsdb-server.log"
 
11957
$at_traceon; }
 
11958
 
 
11959
 
 
11960
      { set +x
 
11961
$as_echo "$at_srcdir/ovs-ofctl.at:573: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
11962
at_fn_check_prepare_trace "ovs-ofctl.at:573"
 
11963
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
11964
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11965
at_status=$? at_failed=false
 
11966
$at_check_filter
 
11967
echo stderr:; tee stderr <"$at_stderr"
 
11968
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
11969
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:573"
 
11970
$at_failed && at_fn_log_failure  \
 
11971
"ovsdb-server.log"
 
11972
$at_traceon; }
 
11973
 
 
11974
 
 
11975
   { set +x
 
11976
$as_echo "$at_srcdir/ovs-ofctl.at:573: sed < stderr '
 
11977
/vlog|INFO|opened log file/d
 
11978
/reconnect|INFO|/d
 
11979
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
11980
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
11981
/ofproto|INFO|using datapath ID/d
 
11982
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
11983
at_fn_check_prepare_notrace 'an embedded newline' "ovs-ofctl.at:573"
 
11984
( $at_check_trace; sed < stderr '
 
11985
/vlog|INFO|opened log file/d
 
11986
/reconnect|INFO|/d
 
11987
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
11988
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
11989
/ofproto|INFO|using datapath ID/d
 
11990
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
11991
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
11992
at_status=$? at_failed=false
 
11993
$at_check_filter
 
11994
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
11995
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
11996
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:573"
 
11997
$at_failed && at_fn_log_failure  \
 
11998
"ovsdb-server.log" \
 
11999
"ovs-vswitchd.log"
 
12000
$at_traceon; }
 
12001
 
 
12002
 
 
12003
      { set +x
 
12004
$as_echo "$at_srcdir/ovs-ofctl.at:573: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
12005
at_fn_check_prepare_trace "ovs-ofctl.at:573"
 
12006
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
12007
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12008
at_status=$? at_failed=false
 
12009
$at_check_filter
 
12010
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12011
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12012
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:573"
 
12013
$at_failed && at_fn_log_failure  \
 
12014
"ovsdb-server.log" \
 
12015
"ovs-vswitchd.log"
 
12016
$at_traceon; }
 
12017
 
 
12018
 
 
12019
{ set +x
 
12020
$as_echo "$at_srcdir/ovs-ofctl.at:574: ovs-ofctl -F nxm add-flow br0 tun_id=0x12345678,actions=drop"
 
12021
at_fn_check_prepare_trace "ovs-ofctl.at:574"
 
12022
( $at_check_trace; ovs-ofctl -F nxm add-flow br0 tun_id=0x12345678,actions=drop
 
12023
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12024
at_status=$? at_failed=false
 
12025
$at_check_filter
 
12026
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12027
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12028
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:574"
 
12029
$at_failed && at_fn_log_failure  \
 
12030
"ovsdb-server.log" \
 
12031
"ovs-vswitchd.log"
 
12032
$at_traceon; }
 
12033
 
 
12034
{ set +x
 
12035
$as_echo "$at_srcdir/ovs-ofctl.at:575: ovs-ofctl dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\\bduration=[0-9.]*s/duration=?s/'"
 
12036
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-ofctl.at:575"
 
12037
( $at_check_trace; ovs-ofctl dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\bduration=[0-9.]*s/duration=?s/'
 
12038
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12039
at_status=$? at_failed=false
 
12040
$at_check_filter
 
12041
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12042
echo >>"$at_stdout"; $as_echo "NXST_FLOW reply:
 
12043
 cookie=0x0, duration=?s, table=0, n_packets=0, n_bytes=0, tun_id=0x12345678 actions=drop
 
12044
" | \
 
12045
  $at_diff - "$at_stdout" || at_failed=:
 
12046
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:575"
 
12047
$at_failed && at_fn_log_failure  \
 
12048
"ovsdb-server.log" \
 
12049
"ovs-vswitchd.log"
 
12050
$at_traceon; }
 
12051
 
 
12052
{ set +x
 
12053
$as_echo "$at_srcdir/ovs-ofctl.at:579: ovs-appctl -t ovs-vswitchd exit"
 
12054
at_fn_check_prepare_trace "ovs-ofctl.at:579"
 
12055
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
12056
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12057
at_status=$? at_failed=false
 
12058
$at_check_filter
 
12059
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12060
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12061
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:579"
 
12062
$at_failed && at_fn_log_failure  \
 
12063
"ovsdb-server.log" \
 
12064
"ovs-vswitchd.log"
 
12065
$at_traceon; }
 
12066
 
 
12067
   { set +x
 
12068
$as_echo "$at_srcdir/ovs-ofctl.at:579: ovs-appctl -t ovsdb-server exit"
 
12069
at_fn_check_prepare_trace "ovs-ofctl.at:579"
 
12070
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
12071
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12072
at_status=$? at_failed=false
 
12073
$at_check_filter
 
12074
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12075
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12076
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:579"
 
12077
$at_failed && at_fn_log_failure  \
 
12078
"ovsdb-server.log" \
 
12079
"ovs-vswitchd.log"
 
12080
$at_traceon; }
 
12081
 
 
12082
   trap '' 0
 
12083
  set +x
 
12084
  $at_times_p && times >"$at_times_file"
 
12085
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
12086
read at_status <"$at_status_file"
 
12087
#AT_STOP_112
 
12088
#AT_START_113
 
12089
at_fn_group_banner 113 'ovs-ofctl.at:584' \
 
12090
  "ovs-ofctl dump-flows honors -F option" "          " 9
 
12091
at_xfail=no
 
12092
(
 
12093
  $as_echo "113. $at_setup_line: testing $at_desc ..."
 
12094
  $at_traceon
 
12095
 
 
12096
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
12097
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
12098
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
12099
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
12100
 
 
12101
      mkdir openvswitch
 
12102
   touch openvswitch/.conf.db.~lock~
 
12103
   { set +x
 
12104
$as_echo "$at_srcdir/ovs-ofctl.at:585: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
12105
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-ofctl.at:585"
 
12106
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
12107
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12108
at_status=$? at_failed=false
 
12109
$at_check_filter
 
12110
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12111
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12112
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:585"
 
12113
$at_failed && at_fn_log_failure
 
12114
$at_traceon; }
 
12115
 
 
12116
 
 
12117
      { set +x
 
12118
$as_echo "$at_srcdir/ovs-ofctl.at:585: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
12119
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ovs-ofctl.at:585"
 
12120
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
12121
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12122
at_status=$? at_failed=false
 
12123
$at_check_filter
 
12124
echo stderr:; tee stderr <"$at_stderr"
 
12125
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12126
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:585"
 
12127
$at_failed && at_fn_log_failure
 
12128
$at_traceon; }
 
12129
 
 
12130
   { set +x
 
12131
$as_echo "$at_srcdir/ovs-ofctl.at:585: sed < stderr '/vlog|INFO|opened log file/d'"
 
12132
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-ofctl.at:585"
 
12133
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
12134
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12135
at_status=$? at_failed=false
 
12136
$at_check_filter
 
12137
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12138
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12139
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:585"
 
12140
$at_failed && at_fn_log_failure
 
12141
$at_traceon; }
 
12142
 
 
12143
 
 
12144
 
 
12145
      { set +x
 
12146
$as_echo "$at_srcdir/ovs-ofctl.at:585: ovs-vsctl --no-wait init"
 
12147
at_fn_check_prepare_trace "ovs-ofctl.at:585"
 
12148
( $at_check_trace; ovs-vsctl --no-wait init
 
12149
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12150
at_status=$? at_failed=false
 
12151
$at_check_filter
 
12152
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12153
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12154
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:585"
 
12155
$at_failed && at_fn_log_failure  \
 
12156
"ovsdb-server.log"
 
12157
$at_traceon; }
 
12158
 
 
12159
 
 
12160
      { set +x
 
12161
$as_echo "$at_srcdir/ovs-ofctl.at:585: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
12162
at_fn_check_prepare_trace "ovs-ofctl.at:585"
 
12163
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
12164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12165
at_status=$? at_failed=false
 
12166
$at_check_filter
 
12167
echo stderr:; tee stderr <"$at_stderr"
 
12168
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12169
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:585"
 
12170
$at_failed && at_fn_log_failure  \
 
12171
"ovsdb-server.log"
 
12172
$at_traceon; }
 
12173
 
 
12174
 
 
12175
   { set +x
 
12176
$as_echo "$at_srcdir/ovs-ofctl.at:585: sed < stderr '
 
12177
/vlog|INFO|opened log file/d
 
12178
/reconnect|INFO|/d
 
12179
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
12180
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
12181
/ofproto|INFO|using datapath ID/d
 
12182
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
12183
at_fn_check_prepare_notrace 'an embedded newline' "ovs-ofctl.at:585"
 
12184
( $at_check_trace; sed < stderr '
 
12185
/vlog|INFO|opened log file/d
 
12186
/reconnect|INFO|/d
 
12187
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
12188
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
12189
/ofproto|INFO|using datapath ID/d
 
12190
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
12191
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12192
at_status=$? at_failed=false
 
12193
$at_check_filter
 
12194
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12195
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12196
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:585"
 
12197
$at_failed && at_fn_log_failure  \
 
12198
"ovsdb-server.log" \
 
12199
"ovs-vswitchd.log"
 
12200
$at_traceon; }
 
12201
 
 
12202
 
 
12203
      { set +x
 
12204
$as_echo "$at_srcdir/ovs-ofctl.at:585: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
12205
at_fn_check_prepare_trace "ovs-ofctl.at:585"
 
12206
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
12207
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12208
at_status=$? at_failed=false
 
12209
$at_check_filter
 
12210
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12211
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12212
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:585"
 
12213
$at_failed && at_fn_log_failure  \
 
12214
"ovsdb-server.log" \
 
12215
"ovs-vswitchd.log"
 
12216
$at_traceon; }
 
12217
 
 
12218
 
 
12219
{ set +x
 
12220
$as_echo "$at_srcdir/ovs-ofctl.at:586: ovs-ofctl add-flow br0 reg0=0x12345,actions=drop"
 
12221
at_fn_check_prepare_trace "ovs-ofctl.at:586"
 
12222
( $at_check_trace; ovs-ofctl add-flow br0 reg0=0x12345,actions=drop
 
12223
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12224
at_status=$? at_failed=false
 
12225
$at_check_filter
 
12226
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12227
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12228
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:586"
 
12229
$at_failed && at_fn_log_failure  \
 
12230
"ovsdb-server.log" \
 
12231
"ovs-vswitchd.log"
 
12232
$at_traceon; }
 
12233
 
 
12234
{ set +x
 
12235
$as_echo "$at_srcdir/ovs-ofctl.at:587: ovs-ofctl -F openflow10 dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\\bduration=[0-9.]*s/duration=?s/'"
 
12236
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-ofctl.at:587"
 
12237
( $at_check_trace; ovs-ofctl -F openflow10 dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\bduration=[0-9.]*s/duration=?s/'
 
12238
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12239
at_status=$? at_failed=false
 
12240
$at_check_filter
 
12241
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12242
echo >>"$at_stdout"; $as_echo "OFPST_FLOW reply:
 
12243
 cookie=0x0, duration=?s, table=0, n_packets=0, n_bytes=0, actions=drop
 
12244
" | \
 
12245
  $at_diff - "$at_stdout" || at_failed=:
 
12246
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:587"
 
12247
$at_failed && at_fn_log_failure  \
 
12248
"ovsdb-server.log" \
 
12249
"ovs-vswitchd.log"
 
12250
$at_traceon; }
 
12251
 
 
12252
{ set +x
 
12253
$as_echo "$at_srcdir/ovs-ofctl.at:591: ovs-appctl -t ovs-vswitchd exit"
 
12254
at_fn_check_prepare_trace "ovs-ofctl.at:591"
 
12255
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
12256
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12257
at_status=$? at_failed=false
 
12258
$at_check_filter
 
12259
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12260
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12261
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:591"
 
12262
$at_failed && at_fn_log_failure  \
 
12263
"ovsdb-server.log" \
 
12264
"ovs-vswitchd.log"
 
12265
$at_traceon; }
 
12266
 
 
12267
   { set +x
 
12268
$as_echo "$at_srcdir/ovs-ofctl.at:591: ovs-appctl -t ovsdb-server exit"
 
12269
at_fn_check_prepare_trace "ovs-ofctl.at:591"
 
12270
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
12271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12272
at_status=$? at_failed=false
 
12273
$at_check_filter
 
12274
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12275
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12276
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:591"
 
12277
$at_failed && at_fn_log_failure  \
 
12278
"ovsdb-server.log" \
 
12279
"ovs-vswitchd.log"
 
12280
$at_traceon; }
 
12281
 
 
12282
   trap '' 0
 
12283
  set +x
 
12284
  $at_times_p && times >"$at_times_file"
 
12285
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
12286
read at_status <"$at_status_file"
 
12287
#AT_STOP_113
 
12288
#AT_START_114
 
12289
at_fn_group_banner 114 'ovs-ofctl.at:596' \
 
12290
  "ovs-ofctl dump-flows rejects bad -F option" "     " 9
 
12291
at_xfail=no
 
12292
(
 
12293
  $as_echo "114. $at_setup_line: testing $at_desc ..."
 
12294
  $at_traceon
 
12295
 
 
12296
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
12297
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
12298
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
12299
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
12300
 
 
12301
      mkdir openvswitch
 
12302
   touch openvswitch/.conf.db.~lock~
 
12303
   { set +x
 
12304
$as_echo "$at_srcdir/ovs-ofctl.at:597: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
12305
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-ofctl.at:597"
 
12306
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
12307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12308
at_status=$? at_failed=false
 
12309
$at_check_filter
 
12310
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12311
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12312
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:597"
 
12313
$at_failed && at_fn_log_failure
 
12314
$at_traceon; }
 
12315
 
 
12316
 
 
12317
      { set +x
 
12318
$as_echo "$at_srcdir/ovs-ofctl.at:597: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
12319
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ovs-ofctl.at:597"
 
12320
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
12321
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12322
at_status=$? at_failed=false
 
12323
$at_check_filter
 
12324
echo stderr:; tee stderr <"$at_stderr"
 
12325
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12326
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:597"
 
12327
$at_failed && at_fn_log_failure
 
12328
$at_traceon; }
 
12329
 
 
12330
   { set +x
 
12331
$as_echo "$at_srcdir/ovs-ofctl.at:597: sed < stderr '/vlog|INFO|opened log file/d'"
 
12332
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-ofctl.at:597"
 
12333
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
12334
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12335
at_status=$? at_failed=false
 
12336
$at_check_filter
 
12337
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12338
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12339
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:597"
 
12340
$at_failed && at_fn_log_failure
 
12341
$at_traceon; }
 
12342
 
 
12343
 
 
12344
 
 
12345
      { set +x
 
12346
$as_echo "$at_srcdir/ovs-ofctl.at:597: ovs-vsctl --no-wait init"
 
12347
at_fn_check_prepare_trace "ovs-ofctl.at:597"
 
12348
( $at_check_trace; ovs-vsctl --no-wait init
 
12349
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12350
at_status=$? at_failed=false
 
12351
$at_check_filter
 
12352
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12353
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12354
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:597"
 
12355
$at_failed && at_fn_log_failure  \
 
12356
"ovsdb-server.log"
 
12357
$at_traceon; }
 
12358
 
 
12359
 
 
12360
      { set +x
 
12361
$as_echo "$at_srcdir/ovs-ofctl.at:597: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
12362
at_fn_check_prepare_trace "ovs-ofctl.at:597"
 
12363
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
12364
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12365
at_status=$? at_failed=false
 
12366
$at_check_filter
 
12367
echo stderr:; tee stderr <"$at_stderr"
 
12368
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12369
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:597"
 
12370
$at_failed && at_fn_log_failure  \
 
12371
"ovsdb-server.log"
 
12372
$at_traceon; }
 
12373
 
 
12374
 
 
12375
   { set +x
 
12376
$as_echo "$at_srcdir/ovs-ofctl.at:597: sed < stderr '
 
12377
/vlog|INFO|opened log file/d
 
12378
/reconnect|INFO|/d
 
12379
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
12380
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
12381
/ofproto|INFO|using datapath ID/d
 
12382
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
12383
at_fn_check_prepare_notrace 'an embedded newline' "ovs-ofctl.at:597"
 
12384
( $at_check_trace; sed < stderr '
 
12385
/vlog|INFO|opened log file/d
 
12386
/reconnect|INFO|/d
 
12387
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
12388
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
12389
/ofproto|INFO|using datapath ID/d
 
12390
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
12391
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12392
at_status=$? at_failed=false
 
12393
$at_check_filter
 
12394
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12395
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12396
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:597"
 
12397
$at_failed && at_fn_log_failure  \
 
12398
"ovsdb-server.log" \
 
12399
"ovs-vswitchd.log"
 
12400
$at_traceon; }
 
12401
 
 
12402
 
 
12403
      { set +x
 
12404
$as_echo "$at_srcdir/ovs-ofctl.at:597: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
12405
at_fn_check_prepare_trace "ovs-ofctl.at:597"
 
12406
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
12407
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12408
at_status=$? at_failed=false
 
12409
$at_check_filter
 
12410
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12411
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12412
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:597"
 
12413
$at_failed && at_fn_log_failure  \
 
12414
"ovsdb-server.log" \
 
12415
"ovs-vswitchd.log"
 
12416
$at_traceon; }
 
12417
 
 
12418
 
 
12419
{ set +x
 
12420
$as_echo "$at_srcdir/ovs-ofctl.at:598: ovs-ofctl -F openflow10 dump-flows unix:br0.mgmt reg0=0xabcdef"
 
12421
at_fn_check_prepare_trace "ovs-ofctl.at:598"
 
12422
( $at_check_trace; ovs-ofctl -F openflow10 dump-flows unix:br0.mgmt reg0=0xabcdef
 
12423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12424
at_status=$? at_failed=false
 
12425
$at_check_filter
 
12426
echo >>"$at_stderr"; $as_echo "ovs-ofctl: unix:br0.mgmt: cannot use requested flow format nxm for specified flow
 
12427
" | \
 
12428
  $at_diff - "$at_stderr" || at_failed=:
 
12429
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12430
at_fn_check_status 1 $at_status "$at_srcdir/ovs-ofctl.at:598"
 
12431
$at_failed && at_fn_log_failure  \
 
12432
"ovsdb-server.log" \
 
12433
"ovs-vswitchd.log"
 
12434
$at_traceon; }
 
12435
 
 
12436
{ set +x
 
12437
$as_echo "$at_srcdir/ovs-ofctl.at:601: ovs-appctl -t ovs-vswitchd exit"
 
12438
at_fn_check_prepare_trace "ovs-ofctl.at:601"
 
12439
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
12440
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12441
at_status=$? at_failed=false
 
12442
$at_check_filter
 
12443
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12444
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12445
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:601"
 
12446
$at_failed && at_fn_log_failure  \
 
12447
"ovsdb-server.log" \
 
12448
"ovs-vswitchd.log"
 
12449
$at_traceon; }
 
12450
 
 
12451
   { set +x
 
12452
$as_echo "$at_srcdir/ovs-ofctl.at:601: ovs-appctl -t ovsdb-server exit"
 
12453
at_fn_check_prepare_trace "ovs-ofctl.at:601"
 
12454
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
12455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12456
at_status=$? at_failed=false
 
12457
$at_check_filter
 
12458
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12459
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12460
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:601"
 
12461
$at_failed && at_fn_log_failure  \
 
12462
"ovsdb-server.log" \
 
12463
"ovs-vswitchd.log"
 
12464
$at_traceon; }
 
12465
 
 
12466
   trap '' 0
 
12467
  set +x
 
12468
  $at_times_p && times >"$at_times_file"
 
12469
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
12470
read at_status <"$at_status_file"
 
12471
#AT_STOP_114
 
12472
#AT_START_115
 
12473
at_fn_group_banner 115 'ovs-ofctl.at:605' \
 
12474
  "ovs-ofctl add-flow reports non-normalized flows" "" 9
 
12475
at_xfail=no
 
12476
(
 
12477
  $as_echo "115. $at_setup_line: testing $at_desc ..."
 
12478
  $at_traceon
 
12479
 
 
12480
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
12481
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
12482
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
12483
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
12484
 
 
12485
      mkdir openvswitch
 
12486
   touch openvswitch/.conf.db.~lock~
 
12487
   { set +x
 
12488
$as_echo "$at_srcdir/ovs-ofctl.at:606: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
12489
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-ofctl.at:606"
 
12490
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
12491
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12492
at_status=$? at_failed=false
 
12493
$at_check_filter
 
12494
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12495
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12496
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:606"
 
12497
$at_failed && at_fn_log_failure
 
12498
$at_traceon; }
 
12499
 
 
12500
 
 
12501
      { set +x
 
12502
$as_echo "$at_srcdir/ovs-ofctl.at:606: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
12503
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ovs-ofctl.at:606"
 
12504
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
12505
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12506
at_status=$? at_failed=false
 
12507
$at_check_filter
 
12508
echo stderr:; tee stderr <"$at_stderr"
 
12509
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12510
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:606"
 
12511
$at_failed && at_fn_log_failure
 
12512
$at_traceon; }
 
12513
 
 
12514
   { set +x
 
12515
$as_echo "$at_srcdir/ovs-ofctl.at:606: sed < stderr '/vlog|INFO|opened log file/d'"
 
12516
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-ofctl.at:606"
 
12517
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
12518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12519
at_status=$? at_failed=false
 
12520
$at_check_filter
 
12521
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12522
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12523
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:606"
 
12524
$at_failed && at_fn_log_failure
 
12525
$at_traceon; }
 
12526
 
 
12527
 
 
12528
 
 
12529
      { set +x
 
12530
$as_echo "$at_srcdir/ovs-ofctl.at:606: ovs-vsctl --no-wait init"
 
12531
at_fn_check_prepare_trace "ovs-ofctl.at:606"
 
12532
( $at_check_trace; ovs-vsctl --no-wait init
 
12533
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12534
at_status=$? at_failed=false
 
12535
$at_check_filter
 
12536
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12537
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12538
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:606"
 
12539
$at_failed && at_fn_log_failure  \
 
12540
"ovsdb-server.log"
 
12541
$at_traceon; }
 
12542
 
 
12543
 
 
12544
      { set +x
 
12545
$as_echo "$at_srcdir/ovs-ofctl.at:606: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
12546
at_fn_check_prepare_trace "ovs-ofctl.at:606"
 
12547
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
12548
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12549
at_status=$? at_failed=false
 
12550
$at_check_filter
 
12551
echo stderr:; tee stderr <"$at_stderr"
 
12552
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12553
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:606"
 
12554
$at_failed && at_fn_log_failure  \
 
12555
"ovsdb-server.log"
 
12556
$at_traceon; }
 
12557
 
 
12558
 
 
12559
   { set +x
 
12560
$as_echo "$at_srcdir/ovs-ofctl.at:606: sed < stderr '
 
12561
/vlog|INFO|opened log file/d
 
12562
/reconnect|INFO|/d
 
12563
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
12564
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
12565
/ofproto|INFO|using datapath ID/d
 
12566
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
12567
at_fn_check_prepare_notrace 'an embedded newline' "ovs-ofctl.at:606"
 
12568
( $at_check_trace; sed < stderr '
 
12569
/vlog|INFO|opened log file/d
 
12570
/reconnect|INFO|/d
 
12571
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
12572
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
12573
/ofproto|INFO|using datapath ID/d
 
12574
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
12575
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12576
at_status=$? at_failed=false
 
12577
$at_check_filter
 
12578
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12579
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12580
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:606"
 
12581
$at_failed && at_fn_log_failure  \
 
12582
"ovsdb-server.log" \
 
12583
"ovs-vswitchd.log"
 
12584
$at_traceon; }
 
12585
 
 
12586
 
 
12587
      { set +x
 
12588
$as_echo "$at_srcdir/ovs-ofctl.at:606: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
12589
at_fn_check_prepare_trace "ovs-ofctl.at:606"
 
12590
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
12591
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12592
at_status=$? at_failed=false
 
12593
$at_check_filter
 
12594
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12595
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12596
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:606"
 
12597
$at_failed && at_fn_log_failure  \
 
12598
"ovsdb-server.log" \
 
12599
"ovs-vswitchd.log"
 
12600
$at_traceon; }
 
12601
 
 
12602
 
 
12603
{ set +x
 
12604
$as_echo "$at_srcdir/ovs-ofctl.at:607: ovs-ofctl -vPATTERN:ANY:'%c|%p|%m' add-flow br0 nw_src=1.2.3.4,actions=5"
 
12605
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-ofctl.at:607"
 
12606
( $at_check_trace; ovs-ofctl -vPATTERN:ANY:'%c|%p|%m' add-flow br0 nw_src=1.2.3.4,actions=5
 
12607
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12608
at_status=$? at_failed=false
 
12609
$at_check_filter
 
12610
echo >>"$at_stderr"; $as_echo "ofp_util|INFO|normalization changed ofp_match, details:
 
12611
ofp_util|INFO| pre: nw_src=1.2.3.4
 
12612
ofp_util|INFO|post: 
 
12613
" | \
 
12614
  $at_diff - "$at_stderr" || at_failed=:
 
12615
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12616
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:607"
 
12617
$at_failed && at_fn_log_failure  \
 
12618
"ovsdb-server.log" \
 
12619
"ovs-vswitchd.log"
 
12620
$at_traceon; }
 
12621
 
 
12622
{ set +x
 
12623
$as_echo "$at_srcdir/ovs-ofctl.at:613: ovs-appctl -t ovs-vswitchd exit"
 
12624
at_fn_check_prepare_trace "ovs-ofctl.at:613"
 
12625
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
12626
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12627
at_status=$? at_failed=false
 
12628
$at_check_filter
 
12629
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12630
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12631
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:613"
 
12632
$at_failed && at_fn_log_failure  \
 
12633
"ovsdb-server.log" \
 
12634
"ovs-vswitchd.log"
 
12635
$at_traceon; }
 
12636
 
 
12637
   { set +x
 
12638
$as_echo "$at_srcdir/ovs-ofctl.at:613: ovs-appctl -t ovsdb-server exit"
 
12639
at_fn_check_prepare_trace "ovs-ofctl.at:613"
 
12640
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
12641
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12642
at_status=$? at_failed=false
 
12643
$at_check_filter
 
12644
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12645
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
12646
at_fn_check_status 0 $at_status "$at_srcdir/ovs-ofctl.at:613"
 
12647
$at_failed && at_fn_log_failure  \
 
12648
"ovsdb-server.log" \
 
12649
"ovs-vswitchd.log"
 
12650
$at_traceon; }
 
12651
 
 
12652
   trap '' 0
 
12653
  set +x
 
12654
  $at_times_p && times >"$at_times_file"
 
12655
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
12656
read at_status <"$at_status_file"
 
12657
#AT_STOP_115
 
12658
#AT_START_116
 
12659
at_fn_group_banner 116 'odp.at:3' \
 
12660
  "OVS datapath parsing and formatting - valid forms" "" 10
 
12661
at_xfail=no
 
12662
(
 
12663
  $as_echo "116. $at_setup_line: testing $at_desc ..."
 
12664
  $at_traceon
 
12665
 
 
12666
cat >odp-base.txt <<'_ATEOF'
 
12667
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15)
 
12668
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x1234)
 
12669
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x0800),ipv4(src=35.8.2.41,dst=172.16.0.20,proto=5,tos=0x80,ttl=128,frag=no)
 
12670
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x0800),ipv4(src=35.8.2.41,dst=172.16.0.20,proto=5,tos=0x81,ttl=128,frag=no)
 
12671
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x0800),ipv4(src=35.8.2.41,dst=172.16.0.20,proto=5,tos=0x80,ttl=128,frag=first)
 
12672
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x0800),ipv4(src=35.8.2.41,dst=172.16.0.20,proto=5,tos=0x80,ttl=128,frag=later)
 
12673
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x0800),ipv4(src=35.8.2.41,dst=172.16.0.20,proto=6,tos=0,ttl=128,frag=no),tcp(src=80,dst=8080)
 
12674
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x0800),ipv4(src=35.8.2.41,dst=172.16.0.20,proto=17,tos=0,ttl=128,frag=no),udp(src=81,dst=6632)
 
12675
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x0800),ipv4(src=35.8.2.41,dst=172.16.0.20,proto=1,tos=0,ttl=128,frag=no),icmp(type=1,code=2)
 
12676
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=10,tclass=0x70,hlimit=128,frag=no)
 
12677
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=10,tclass=0x71,hlimit=128,frag=no)
 
12678
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=10,tclass=0x70,hlimit=128,frag=first)
 
12679
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=10,tclass=0x70,hlimit=128,frag=later)
 
12680
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=6,tclass=0,hlimit=128,frag=no),tcp(src=80,dst=8080)
 
12681
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=17,tclass=0,hlimit=128,frag=no),udp(src=6630,dst=22)
 
12682
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=58,tclass=0,hlimit=128,frag=no),icmpv6(type=1,code=2)
 
12683
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=58,tclass=0,hlimit=128,frag=no),icmpv6(type=135,code=0),nd(target=::3)
 
12684
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=58,tclass=0,hlimit=128,frag=no),icmpv6(type=135,code=0),nd(target=::3,sll=00:05:06:07:08:09)
 
12685
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=58,tclass=0,hlimit=128,frag=no),icmpv6(type=136,code=0),nd(target=::3,tll=00:0a:0b:0c:0d:0e)
 
12686
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=58,tclass=0,hlimit=128,frag=no),icmpv6(type=136,code=0),nd(target=::3,sll=00:05:06:07:08:09,tll=00:0a:0b:0c:0d:0e)
 
12687
in_port(1),eth(src=00:01:02:03:04:05,dst=10:11:12:13:14:15),eth_type(0x0806),arp(sip=1.2.3.4,tip=5.6.7.8,op=1,sha=00:0f:10:11:12:13,tha=00:14:15:16:17:18)
 
12688
_ATEOF
 
12689
 
 
12690
 
 
12691
(echo '# Valid forms without tun_id or VLAN header.'
 
12692
 cat odp-base.txt
 
12693
 
 
12694
 echo
 
12695
 echo '# Valid forms with tun_id header.'
 
12696
 sed 's/^/tun_id(0x7f10354),/' odp-base.txt
 
12697
 
 
12698
 echo
 
12699
 echo '# Valid forms with VLAN header.'
 
12700
 sed 's/\(eth([^)]*)\),*/\1,eth_type(0x8100),vlan(vid=99,pcp=7),encap(/
 
12701
s/$/)/' odp-base.txt
 
12702
 
 
12703
 echo
 
12704
 echo '# Valid forms with QoS priority.'
 
12705
 sed 's/^/priority(1234),/' odp-base.txt
 
12706
 
 
12707
 echo
 
12708
 echo '# Valid forms with tun_id and VLAN headers.'
 
12709
 sed 's/^/tun_id(0xfedcba9876543210),/
 
12710
s/\(eth([^)]*)\),*/\1,eth_type(0x8100),vlan(vid=99,pcp=7),encap(/
 
12711
s/$/)/' odp-base.txt
 
12712
 
 
12713
 echo
 
12714
 echo '# Valid forms with QOS priority, tun_id, and VLAN headers.'
 
12715
 sed 's/^/priority(1234),tun_id(0xfedcba9876543210),/
 
12716
s/\(eth([^)]*)\),*/\1,eth_type(0x8100),vlan(vid=99,pcp=7),encap(/
 
12717
s/$/)/' odp-base.txt
 
12718
 
 
12719
 echo
 
12720
 echo '# Valid forms with IP first fragment.'
 
12721
sed -n 's/,frag=no),/,frag=first),/p' odp-base.txt
 
12722
 
 
12723
 echo
 
12724
 echo '# Valid forms with IP later fragment.'
 
12725
sed -n 's/,frag=no),.*/,frag=later)/p' odp-base.txt) > odp.txt
 
12726
 
 
12727
{ set +x
 
12728
$as_echo "$at_srcdir/odp.at:64: test-odp < odp.txt"
 
12729
at_fn_check_prepare_trace "odp.at:64"
 
12730
( $at_check_trace; test-odp < odp.txt
 
12731
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12732
at_status=$? at_failed=false
 
12733
$at_check_filter
 
12734
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12735
echo >>"$at_stdout"; $as_echo "`cat odp.txt`
 
12736
" | \
 
12737
  $at_diff - "$at_stdout" || at_failed=:
 
12738
at_fn_check_status 0 $at_status "$at_srcdir/odp.at:64"
 
12739
$at_failed && at_fn_log_failure  \
 
12740
"odp.txt"
 
12741
$at_traceon; }
 
12742
 
 
12743
  set +x
 
12744
  $at_times_p && times >"$at_times_file"
 
12745
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
12746
read at_status <"$at_status_file"
 
12747
#AT_STOP_116
 
12748
#AT_START_117
 
12749
at_fn_group_banner 117 'multipath.at:10' \
 
12750
  "modulo_n multipath link selection" "              " 11
 
12751
at_xfail=no
 
12752
(
 
12753
  $as_echo "117. $at_setup_line: testing $at_desc ..."
 
12754
  $at_traceon
 
12755
 
 
12756
{ set +x
 
12757
$as_echo "$at_srcdir/multipath.at:11: test-multipath 'eth_src,50,modulo_n,1,0,NXM_NX_REG0[]'"
 
12758
at_fn_check_prepare_trace "multipath.at:11"
 
12759
( $at_check_trace; test-multipath 'eth_src,50,modulo_n,1,0,NXM_NX_REG0[]'
 
12760
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12761
at_status=$? at_failed=false
 
12762
$at_check_filter
 
12763
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12764
echo stdout:; cat "$at_stdout"
 
12765
at_fn_check_status 0 $at_status "$at_srcdir/multipath.at:11"
 
12766
$at_failed && at_fn_log_failure
 
12767
$at_traceon; }
 
12768
 
 
12769
# 1 ->  2: disruption=0.50 (perfect=0.50); stddev/expected=0.0000
 
12770
# 2 ->  3: disruption=0.66 (perfect=0.33); stddev/expected=0.0023
 
12771
# 3 ->  4: disruption=0.75 (perfect=0.25); stddev/expected=0.0061
 
12772
# 4 ->  5: disruption=0.80 (perfect=0.20); stddev/expected=0.0082
 
12773
# 5 ->  6: disruption=0.83 (perfect=0.17); stddev/expected=0.0083
 
12774
# 6 ->  7: disruption=0.86 (perfect=0.14); stddev/expected=0.0061
 
12775
# 7 ->  8: disruption=0.88 (perfect=0.12); stddev/expected=0.0103
 
12776
# 8 ->  9: disruption=0.89 (perfect=0.11); stddev/expected=0.0129
 
12777
# 9 -> 10: disruption=0.90 (perfect=0.10); stddev/expected=0.0091
 
12778
#10 -> 11: disruption=0.91 (perfect=0.09); stddev/expected=0.0114
 
12779
#11 -> 12: disruption=0.91 (perfect=0.08); stddev/expected=0.0073
 
12780
#12 -> 13: disruption=0.92 (perfect=0.08); stddev/expected=0.0165
 
12781
#13 -> 14: disruption=0.93 (perfect=0.07); stddev/expected=0.0149
 
12782
#14 -> 15: disruption=0.93 (perfect=0.07); stddev/expected=0.0127
 
12783
#15 -> 16: disruption=0.94 (perfect=0.06); stddev/expected=0.0142
 
12784
#16 -> 17: disruption=0.94 (perfect=0.06); stddev/expected=0.0098
 
12785
#17 -> 18: disruption=0.94 (perfect=0.06); stddev/expected=0.0159
 
12786
#18 -> 19: disruption=0.95 (perfect=0.05); stddev/expected=0.0121
 
12787
#19 -> 20: disruption=0.95 (perfect=0.05); stddev/expected=0.0195
 
12788
#20 -> 21: disruption=0.95 (perfect=0.05); stddev/expected=0.0120
 
12789
#21 -> 22: disruption=0.95 (perfect=0.05); stddev/expected=0.0181
 
12790
#22 -> 23: disruption=0.96 (perfect=0.04); stddev/expected=0.0222
 
12791
#23 -> 24: disruption=0.96 (perfect=0.04); stddev/expected=0.0164
 
12792
#24 -> 25: disruption=0.96 (perfect=0.04); stddev/expected=0.0146
 
12793
#25 -> 26: disruption=0.96 (perfect=0.04); stddev/expected=0.0175
 
12794
#26 -> 27: disruption=0.96 (perfect=0.04); stddev/expected=0.0231
 
12795
#27 -> 28: disruption=0.96 (perfect=0.04); stddev/expected=0.0172
 
12796
#28 -> 29: disruption=0.97 (perfect=0.03); stddev/expected=0.0211
 
12797
#29 -> 30: disruption=0.97 (perfect=0.03); stddev/expected=0.0213
 
12798
#30 -> 31: disruption=0.97 (perfect=0.03); stddev/expected=0.0253
 
12799
#31 -> 32: disruption=0.97 (perfect=0.03); stddev/expected=0.0208
 
12800
#32 -> 33: disruption=0.97 (perfect=0.03); stddev/expected=0.0223
 
12801
#33 -> 34: disruption=0.97 (perfect=0.03); stddev/expected=0.0215
 
12802
#34 -> 35: disruption=0.97 (perfect=0.03); stddev/expected=0.0201
 
12803
#35 -> 36: disruption=0.97 (perfect=0.03); stddev/expected=0.0220
 
12804
#36 -> 37: disruption=0.97 (perfect=0.03); stddev/expected=0.0221
 
12805
#37 -> 38: disruption=0.97 (perfect=0.03); stddev/expected=0.0201
 
12806
#38 -> 39: disruption=0.97 (perfect=0.03); stddev/expected=0.0215
 
12807
#39 -> 40: disruption=0.97 (perfect=0.03); stddev/expected=0.0271
 
12808
#40 -> 41: disruption=0.98 (perfect=0.02); stddev/expected=0.0272
 
12809
#41 -> 42: disruption=0.98 (perfect=0.02); stddev/expected=0.0208
 
12810
#42 -> 43: disruption=0.98 (perfect=0.02); stddev/expected=0.0226
 
12811
#43 -> 44: disruption=0.98 (perfect=0.02); stddev/expected=0.0264
 
12812
#44 -> 45: disruption=0.98 (perfect=0.02); stddev/expected=0.0233
 
12813
#45 -> 46: disruption=0.98 (perfect=0.02); stddev/expected=0.0285
 
12814
#46 -> 47: disruption=0.98 (perfect=0.02); stddev/expected=0.0246
 
12815
#47 -> 48: disruption=0.98 (perfect=0.02); stddev/expected=0.0282
 
12816
#48 -> 49: disruption=0.98 (perfect=0.02); stddev/expected=0.0233
 
12817
#49 -> 50: disruption=0.98 (perfect=0.02); stddev/expected=0.0197
 
12818
#50 -> 51: disruption=0.98 (perfect=0.02); stddev/expected=0.0317
 
12819
#51 -> 52: disruption=0.98 (perfect=0.02); stddev/expected=0.0283
 
12820
#52 -> 53: disruption=0.98 (perfect=0.02); stddev/expected=0.0282
 
12821
#53 -> 54: disruption=0.98 (perfect=0.02); stddev/expected=0.0273
 
12822
#54 -> 55: disruption=0.98 (perfect=0.02); stddev/expected=0.0283
 
12823
#55 -> 56: disruption=0.98 (perfect=0.02); stddev/expected=0.0288
 
12824
#56 -> 57: disruption=0.98 (perfect=0.02); stddev/expected=0.0263
 
12825
#57 -> 58: disruption=0.98 (perfect=0.02); stddev/expected=0.0339
 
12826
#58 -> 59: disruption=0.98 (perfect=0.02); stddev/expected=0.0262
 
12827
#59 -> 60: disruption=0.98 (perfect=0.02); stddev/expected=0.0309
 
12828
#60 -> 61: disruption=0.98 (perfect=0.02); stddev/expected=0.0285
 
12829
#61 -> 62: disruption=0.98 (perfect=0.02); stddev/expected=0.0288
 
12830
#62 -> 63: disruption=0.98 (perfect=0.02); stddev/expected=0.0298
 
12831
#63 -> 64: disruption=0.98 (perfect=0.02); stddev/expected=0.0277
 
12832
  set +x
 
12833
  $at_times_p && times >"$at_times_file"
 
12834
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
12835
read at_status <"$at_status_file"
 
12836
#AT_STOP_117
 
12837
#AT_START_118
 
12838
at_fn_group_banner 118 'multipath.at:78' \
 
12839
  "hash_threshold multipath link selection" "        " 11
 
12840
at_xfail=no
 
12841
(
 
12842
  $as_echo "118. $at_setup_line: testing $at_desc ..."
 
12843
  $at_traceon
 
12844
 
 
12845
{ set +x
 
12846
$as_echo "$at_srcdir/multipath.at:79: test-multipath 'eth_src,50,hash_threshold,1,0,NXM_NX_REG0[]'"
 
12847
at_fn_check_prepare_trace "multipath.at:79"
 
12848
( $at_check_trace; test-multipath 'eth_src,50,hash_threshold,1,0,NXM_NX_REG0[]'
 
12849
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12850
at_status=$? at_failed=false
 
12851
$at_check_filter
 
12852
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12853
echo stdout:; cat "$at_stdout"
 
12854
at_fn_check_status 0 $at_status "$at_srcdir/multipath.at:79"
 
12855
$at_failed && at_fn_log_failure
 
12856
$at_traceon; }
 
12857
 
 
12858
# 1 ->  2: disruption=0.50 (perfect=0.50); stddev/expected=0.0000
 
12859
# 2 ->  3: disruption=0.50 (perfect=0.33); stddev/expected=0.0056
 
12860
# 3 ->  4: disruption=0.50 (perfect=0.25); stddev/expected=0.0050
 
12861
# 4 ->  5: disruption=0.50 (perfect=0.20); stddev/expected=0.0074
 
12862
# 5 ->  6: disruption=0.50 (perfect=0.17); stddev/expected=0.0031
 
12863
# 6 ->  7: disruption=0.50 (perfect=0.14); stddev/expected=0.0078
 
12864
# 7 ->  8: disruption=0.50 (perfect=0.12); stddev/expected=0.0085
 
12865
# 8 ->  9: disruption=0.50 (perfect=0.11); stddev/expected=0.0093
 
12866
# 9 -> 10: disruption=0.50 (perfect=0.10); stddev/expected=0.0083
 
12867
#10 -> 11: disruption=0.51 (perfect=0.09); stddev/expected=0.0110
 
12868
#11 -> 12: disruption=0.50 (perfect=0.08); stddev/expected=0.0124
 
12869
#12 -> 13: disruption=0.50 (perfect=0.08); stddev/expected=0.0143
 
12870
#13 -> 14: disruption=0.50 (perfect=0.07); stddev/expected=0.0148
 
12871
#14 -> 15: disruption=0.50 (perfect=0.07); stddev/expected=0.0099
 
12872
#15 -> 16: disruption=0.50 (perfect=0.06); stddev/expected=0.0166
 
12873
#16 -> 17: disruption=0.50 (perfect=0.06); stddev/expected=0.0099
 
12874
#17 -> 18: disruption=0.50 (perfect=0.06); stddev/expected=0.0194
 
12875
#18 -> 19: disruption=0.50 (perfect=0.05); stddev/expected=0.0169
 
12876
#19 -> 20: disruption=0.50 (perfect=0.05); stddev/expected=0.0169
 
12877
#20 -> 21: disruption=0.50 (perfect=0.05); stddev/expected=0.0185
 
12878
#21 -> 22: disruption=0.50 (perfect=0.05); stddev/expected=0.0160
 
12879
#22 -> 23: disruption=0.50 (perfect=0.04); stddev/expected=0.0236
 
12880
#23 -> 24: disruption=0.50 (perfect=0.04); stddev/expected=0.0147
 
12881
#24 -> 25: disruption=0.50 (perfect=0.04); stddev/expected=0.0195
 
12882
#25 -> 26: disruption=0.50 (perfect=0.04); stddev/expected=0.0199
 
12883
#26 -> 27: disruption=0.50 (perfect=0.04); stddev/expected=0.0227
 
12884
#27 -> 28: disruption=0.50 (perfect=0.04); stddev/expected=0.0198
 
12885
#28 -> 29: disruption=0.50 (perfect=0.03); stddev/expected=0.0216
 
12886
#29 -> 30: disruption=0.50 (perfect=0.03); stddev/expected=0.0233
 
12887
#30 -> 31: disruption=0.50 (perfect=0.03); stddev/expected=0.0266
 
12888
#31 -> 32: disruption=0.51 (perfect=0.03); stddev/expected=0.0238
 
12889
#32 -> 33: disruption=0.50 (perfect=0.03); stddev/expected=0.0194
 
12890
#33 -> 34: disruption=0.50 (perfect=0.03); stddev/expected=0.0173
 
12891
#34 -> 35: disruption=0.50 (perfect=0.03); stddev/expected=0.0223
 
12892
#35 -> 36: disruption=0.50 (perfect=0.03); stddev/expected=0.0220
 
12893
#36 -> 37: disruption=0.50 (perfect=0.03); stddev/expected=0.0237
 
12894
#37 -> 38: disruption=0.50 (perfect=0.03); stddev/expected=0.0237
 
12895
#38 -> 39: disruption=0.50 (perfect=0.03); stddev/expected=0.0251
 
12896
#39 -> 40: disruption=0.50 (perfect=0.03); stddev/expected=0.0212
 
12897
#40 -> 41: disruption=0.50 (perfect=0.02); stddev/expected=0.0267
 
12898
#41 -> 42: disruption=0.50 (perfect=0.02); stddev/expected=0.0242
 
12899
#42 -> 43: disruption=0.50 (perfect=0.02); stddev/expected=0.0222
 
12900
#43 -> 44: disruption=0.50 (perfect=0.02); stddev/expected=0.0244
 
12901
#44 -> 45: disruption=0.50 (perfect=0.02); stddev/expected=0.0231
 
12902
#45 -> 46: disruption=0.50 (perfect=0.02); stddev/expected=0.0299
 
12903
#46 -> 47: disruption=0.50 (perfect=0.02); stddev/expected=0.0263
 
12904
#47 -> 48: disruption=0.50 (perfect=0.02); stddev/expected=0.0307
 
12905
#48 -> 49: disruption=0.50 (perfect=0.02); stddev/expected=0.0253
 
12906
#49 -> 50: disruption=0.50 (perfect=0.02); stddev/expected=0.0228
 
12907
#50 -> 51: disruption=0.50 (perfect=0.02); stddev/expected=0.0273
 
12908
#51 -> 52: disruption=0.50 (perfect=0.02); stddev/expected=0.0243
 
12909
#52 -> 53: disruption=0.50 (perfect=0.02); stddev/expected=0.0268
 
12910
#53 -> 54: disruption=0.50 (perfect=0.02); stddev/expected=0.0251
 
12911
#54 -> 55: disruption=0.50 (perfect=0.02); stddev/expected=0.0297
 
12912
#55 -> 56: disruption=0.50 (perfect=0.02); stddev/expected=0.0287
 
12913
#56 -> 57: disruption=0.50 (perfect=0.02); stddev/expected=0.0299
 
12914
#57 -> 58: disruption=0.50 (perfect=0.02); stddev/expected=0.0272
 
12915
#58 -> 59: disruption=0.50 (perfect=0.02); stddev/expected=0.0295
 
12916
#59 -> 60: disruption=0.50 (perfect=0.02); stddev/expected=0.0312
 
12917
#60 -> 61: disruption=0.50 (perfect=0.02); stddev/expected=0.0361
 
12918
#61 -> 62: disruption=0.50 (perfect=0.02); stddev/expected=0.0308
 
12919
#62 -> 63: disruption=0.50 (perfect=0.02); stddev/expected=0.0283
 
12920
#63 -> 64: disruption=0.50 (perfect=0.02); stddev/expected=0.0325
 
12921
  set +x
 
12922
  $at_times_p && times >"$at_times_file"
 
12923
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
12924
read at_status <"$at_status_file"
 
12925
#AT_STOP_118
 
12926
#AT_START_119
 
12927
at_fn_group_banner 119 'multipath.at:146' \
 
12928
  "hrw multipath link selection" "                   " 11
 
12929
at_xfail=no
 
12930
(
 
12931
  $as_echo "119. $at_setup_line: testing $at_desc ..."
 
12932
  $at_traceon
 
12933
 
 
12934
{ set +x
 
12935
$as_echo "$at_srcdir/multipath.at:147: test-multipath 'eth_src,50,hrw,1,0,NXM_NX_REG0[]'"
 
12936
at_fn_check_prepare_trace "multipath.at:147"
 
12937
( $at_check_trace; test-multipath 'eth_src,50,hrw,1,0,NXM_NX_REG0[]'
 
12938
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
12939
at_status=$? at_failed=false
 
12940
$at_check_filter
 
12941
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
12942
echo stdout:; cat "$at_stdout"
 
12943
at_fn_check_status 0 $at_status "$at_srcdir/multipath.at:147"
 
12944
$at_failed && at_fn_log_failure
 
12945
$at_traceon; }
 
12946
 
 
12947
# 1 ->  2: disruption=0.50 (perfect=0.50); stddev/expected=0.0000
 
12948
# 2 ->  3: disruption=0.33 (perfect=0.33); stddev/expected=0.0033
 
12949
# 3 ->  4: disruption=0.25 (perfect=0.25); stddev/expected=0.0076
 
12950
# 4 ->  5: disruption=0.20 (perfect=0.20); stddev/expected=0.0059
 
12951
# 5 ->  6: disruption=0.17 (perfect=0.17); stddev/expected=0.0030
 
12952
# 6 ->  7: disruption=0.14 (perfect=0.14); stddev/expected=0.0124
 
12953
# 7 ->  8: disruption=0.13 (perfect=0.12); stddev/expected=0.0072
 
12954
# 8 ->  9: disruption=0.11 (perfect=0.11); stddev/expected=0.0074
 
12955
# 9 -> 10: disruption=0.10 (perfect=0.10); stddev/expected=0.0161
 
12956
#10 -> 11: disruption=0.09 (perfect=0.09); stddev/expected=0.0055
 
12957
#11 -> 12: disruption=0.08 (perfect=0.08); stddev/expected=0.0092
 
12958
#12 -> 13: disruption=0.08 (perfect=0.08); stddev/expected=0.0134
 
12959
#13 -> 14: disruption=0.07 (perfect=0.07); stddev/expected=0.0124
 
12960
#14 -> 15: disruption=0.07 (perfect=0.07); stddev/expected=0.0156
 
12961
#15 -> 16: disruption=0.06 (perfect=0.06); stddev/expected=0.0182
 
12962
#16 -> 17: disruption=0.06 (perfect=0.06); stddev/expected=0.0150
 
12963
#17 -> 18: disruption=0.06 (perfect=0.06); stddev/expected=0.0109
 
12964
#18 -> 19: disruption=0.05 (perfect=0.05); stddev/expected=0.0162
 
12965
#19 -> 20: disruption=0.05 (perfect=0.05); stddev/expected=0.0149
 
12966
#20 -> 21: disruption=0.05 (perfect=0.05); stddev/expected=0.0148
 
12967
#21 -> 22: disruption=0.05 (perfect=0.05); stddev/expected=0.0230
 
12968
#22 -> 23: disruption=0.04 (perfect=0.04); stddev/expected=0.0208
 
12969
#23 -> 24: disruption=0.04 (perfect=0.04); stddev/expected=0.0210
 
12970
#24 -> 25: disruption=0.04 (perfect=0.04); stddev/expected=0.0228
 
12971
#25 -> 26: disruption=0.04 (perfect=0.04); stddev/expected=0.0155
 
12972
#26 -> 27: disruption=0.04 (perfect=0.04); stddev/expected=0.0208
 
12973
#27 -> 28: disruption=0.04 (perfect=0.04); stddev/expected=0.0218
 
12974
#28 -> 29: disruption=0.03 (perfect=0.03); stddev/expected=0.0193
 
12975
#29 -> 30: disruption=0.03 (perfect=0.03); stddev/expected=0.0169
 
12976
#30 -> 31: disruption=0.03 (perfect=0.03); stddev/expected=0.0163
 
12977
#31 -> 32: disruption=0.03 (perfect=0.03); stddev/expected=0.0192
 
12978
#32 -> 33: disruption=0.03 (perfect=0.03); stddev/expected=0.0212
 
12979
#33 -> 34: disruption=0.03 (perfect=0.03); stddev/expected=0.0240
 
12980
#34 -> 35: disruption=0.03 (perfect=0.03); stddev/expected=0.0227
 
12981
#35 -> 36: disruption=0.03 (perfect=0.03); stddev/expected=0.0230
 
12982
#36 -> 37: disruption=0.03 (perfect=0.03); stddev/expected=0.0183
 
12983
#37 -> 38: disruption=0.03 (perfect=0.03); stddev/expected=0.0227
 
12984
#38 -> 39: disruption=0.03 (perfect=0.03); stddev/expected=0.0255
 
12985
#39 -> 40: disruption=0.03 (perfect=0.03); stddev/expected=0.0247
 
12986
#40 -> 41: disruption=0.02 (perfect=0.02); stddev/expected=0.0228
 
12987
#41 -> 42: disruption=0.02 (perfect=0.02); stddev/expected=0.0247
 
12988
#42 -> 43: disruption=0.02 (perfect=0.02); stddev/expected=0.0265
 
12989
#43 -> 44: disruption=0.02 (perfect=0.02); stddev/expected=0.0250
 
12990
#44 -> 45: disruption=0.02 (perfect=0.02); stddev/expected=0.0258
 
12991
#45 -> 46: disruption=0.02 (perfect=0.02); stddev/expected=0.0196
 
12992
#46 -> 47: disruption=0.02 (perfect=0.02); stddev/expected=0.0235
 
12993
#47 -> 48: disruption=0.02 (perfect=0.02); stddev/expected=0.0314
 
12994
#48 -> 49: disruption=0.02 (perfect=0.02); stddev/expected=0.0293
 
12995
#49 -> 50: disruption=0.02 (perfect=0.02); stddev/expected=0.0241
 
12996
#50 -> 51: disruption=0.02 (perfect=0.02); stddev/expected=0.0291
 
12997
#51 -> 52: disruption=0.02 (perfect=0.02); stddev/expected=0.0304
 
12998
#52 -> 53: disruption=0.02 (perfect=0.02); stddev/expected=0.0307
 
12999
#53 -> 54: disruption=0.02 (perfect=0.02); stddev/expected=0.0250
 
13000
#54 -> 55: disruption=0.02 (perfect=0.02); stddev/expected=0.0290
 
13001
#55 -> 56: disruption=0.02 (perfect=0.02); stddev/expected=0.0284
 
13002
#56 -> 57: disruption=0.02 (perfect=0.02); stddev/expected=0.0272
 
13003
#57 -> 58: disruption=0.02 (perfect=0.02); stddev/expected=0.0272
 
13004
#58 -> 59: disruption=0.02 (perfect=0.02); stddev/expected=0.0304
 
13005
#59 -> 60: disruption=0.02 (perfect=0.02); stddev/expected=0.0345
 
13006
#60 -> 61: disruption=0.02 (perfect=0.02); stddev/expected=0.0251
 
13007
#61 -> 62: disruption=0.02 (perfect=0.02); stddev/expected=0.0249
 
13008
#62 -> 63: disruption=0.02 (perfect=0.02); stddev/expected=0.0285
 
13009
#63 -> 64: disruption=0.02 (perfect=0.02); stddev/expected=0.0285
 
13010
  set +x
 
13011
  $at_times_p && times >"$at_times_file"
 
13012
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13013
read at_status <"$at_status_file"
 
13014
#AT_STOP_119
 
13015
#AT_START_120
 
13016
at_fn_group_banner 120 'multipath.at:214' \
 
13017
  "iter_hash multipath link selection" "             " 11
 
13018
at_xfail=no
 
13019
(
 
13020
  $as_echo "120. $at_setup_line: testing $at_desc ..."
 
13021
  $at_traceon
 
13022
 
 
13023
{ set +x
 
13024
$as_echo "$at_srcdir/multipath.at:215: test-multipath 'eth_src,50,iter_hash,1,0,NXM_NX_REG0[]'"
 
13025
at_fn_check_prepare_trace "multipath.at:215"
 
13026
( $at_check_trace; test-multipath 'eth_src,50,iter_hash,1,0,NXM_NX_REG0[]'
 
13027
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13028
at_status=$? at_failed=false
 
13029
$at_check_filter
 
13030
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13031
echo stdout:; cat "$at_stdout"
 
13032
at_fn_check_status 0 $at_status "$at_srcdir/multipath.at:215"
 
13033
$at_failed && at_fn_log_failure
 
13034
$at_traceon; }
 
13035
 
 
13036
# 1 ->  2: disruption=0.50 (perfect=0.50); stddev/expected=0.0000
 
13037
# 2 ->  3: disruption=0.42 (perfect=0.33); stddev/expected=0.0034
 
13038
# 3 ->  4: disruption=0.25 (perfect=0.25); stddev/expected=0.0082
 
13039
# 4 ->  5: disruption=0.42 (perfect=0.20); stddev/expected=0.0073
 
13040
# 5 ->  6: disruption=0.17 (perfect=0.17); stddev/expected=0.0040
 
13041
# 6 ->  7: disruption=0.14 (perfect=0.14); stddev/expected=0.0069
 
13042
# 7 ->  8: disruption=0.13 (perfect=0.12); stddev/expected=0.0131
 
13043
# 8 ->  9: disruption=0.45 (perfect=0.11); stddev/expected=0.0093
 
13044
# 9 -> 10: disruption=0.10 (perfect=0.10); stddev/expected=0.0127
 
13045
#10 -> 11: disruption=0.09 (perfect=0.09); stddev/expected=0.0134
 
13046
#11 -> 12: disruption=0.08 (perfect=0.08); stddev/expected=0.0101
 
13047
#12 -> 13: disruption=0.08 (perfect=0.08); stddev/expected=0.0127
 
13048
#13 -> 14: disruption=0.07 (perfect=0.07); stddev/expected=0.0115
 
13049
#14 -> 15: disruption=0.07 (perfect=0.07); stddev/expected=0.0100
 
13050
#15 -> 16: disruption=0.06 (perfect=0.06); stddev/expected=0.0111
 
13051
#16 -> 17: disruption=0.47 (perfect=0.06); stddev/expected=0.0137
 
13052
#17 -> 18: disruption=0.05 (perfect=0.06); stddev/expected=0.0204
 
13053
#18 -> 19: disruption=0.05 (perfect=0.05); stddev/expected=0.0082
 
13054
#19 -> 20: disruption=0.05 (perfect=0.05); stddev/expected=0.0124
 
13055
#20 -> 21: disruption=0.05 (perfect=0.05); stddev/expected=0.0203
 
13056
#21 -> 22: disruption=0.05 (perfect=0.05); stddev/expected=0.0196
 
13057
#22 -> 23: disruption=0.04 (perfect=0.04); stddev/expected=0.0183
 
13058
#23 -> 24: disruption=0.04 (perfect=0.04); stddev/expected=0.0212
 
13059
#24 -> 25: disruption=0.04 (perfect=0.04); stddev/expected=0.0176
 
13060
#25 -> 26: disruption=0.04 (perfect=0.04); stddev/expected=0.0173
 
13061
#26 -> 27: disruption=0.04 (perfect=0.04); stddev/expected=0.0159
 
13062
#27 -> 28: disruption=0.03 (perfect=0.04); stddev/expected=0.0168
 
13063
#28 -> 29: disruption=0.03 (perfect=0.03); stddev/expected=0.0190
 
13064
#29 -> 30: disruption=0.03 (perfect=0.03); stddev/expected=0.0305
 
13065
#30 -> 31: disruption=0.03 (perfect=0.03); stddev/expected=0.0282
 
13066
#31 -> 32: disruption=0.03 (perfect=0.03); stddev/expected=0.0255
 
13067
#32 -> 33: disruption=0.49 (perfect=0.03); stddev/expected=0.0220
 
13068
#33 -> 34: disruption=0.03 (perfect=0.03); stddev/expected=0.0188
 
13069
#34 -> 35: disruption=0.03 (perfect=0.03); stddev/expected=0.0203
 
13070
#35 -> 36: disruption=0.03 (perfect=0.03); stddev/expected=0.0207
 
13071
#36 -> 37: disruption=0.03 (perfect=0.03); stddev/expected=0.0261
 
13072
#37 -> 38: disruption=0.03 (perfect=0.03); stddev/expected=0.0226
 
13073
#38 -> 39: disruption=0.03 (perfect=0.03); stddev/expected=0.0233
 
13074
#39 -> 40: disruption=0.03 (perfect=0.03); stddev/expected=0.0161
 
13075
#40 -> 41: disruption=0.03 (perfect=0.02); stddev/expected=0.0303
 
13076
#41 -> 42: disruption=0.02 (perfect=0.02); stddev/expected=0.0249
 
13077
#42 -> 43: disruption=0.02 (perfect=0.02); stddev/expected=0.0262
 
13078
#43 -> 44: disruption=0.02 (perfect=0.02); stddev/expected=0.0260
 
13079
#44 -> 45: disruption=0.02 (perfect=0.02); stddev/expected=0.0266
 
13080
#45 -> 46: disruption=0.02 (perfect=0.02); stddev/expected=0.0287
 
13081
#46 -> 47: disruption=0.02 (perfect=0.02); stddev/expected=0.0213
 
13082
#47 -> 48: disruption=0.02 (perfect=0.02); stddev/expected=0.0301
 
13083
#48 -> 49: disruption=0.02 (perfect=0.02); stddev/expected=0.0230
 
13084
#49 -> 50: disruption=0.02 (perfect=0.02); stddev/expected=0.0248
 
13085
#50 -> 51: disruption=0.02 (perfect=0.02); stddev/expected=0.0203
 
13086
#51 -> 52: disruption=0.02 (perfect=0.02); stddev/expected=0.0235
 
13087
#52 -> 53: disruption=0.02 (perfect=0.02); stddev/expected=0.0340
 
13088
#53 -> 54: disruption=0.02 (perfect=0.02); stddev/expected=0.0264
 
13089
#54 -> 55: disruption=0.02 (perfect=0.02); stddev/expected=0.0292
 
13090
#55 -> 56: disruption=0.02 (perfect=0.02); stddev/expected=0.0246
 
13091
#56 -> 57: disruption=0.02 (perfect=0.02); stddev/expected=0.0270
 
13092
#57 -> 58: disruption=0.02 (perfect=0.02); stddev/expected=0.0299
 
13093
#58 -> 59: disruption=0.02 (perfect=0.02); stddev/expected=0.0307
 
13094
#59 -> 60: disruption=0.02 (perfect=0.02); stddev/expected=0.0275
 
13095
#60 -> 61: disruption=0.02 (perfect=0.02); stddev/expected=0.0289
 
13096
#61 -> 62: disruption=0.02 (perfect=0.02); stddev/expected=0.0292
 
13097
#62 -> 63: disruption=0.02 (perfect=0.02); stddev/expected=0.0292
 
13098
#63 -> 64: disruption=0.02 (perfect=0.02); stddev/expected=0.0307
 
13099
  set +x
 
13100
  $at_times_p && times >"$at_times_file"
 
13101
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13102
read at_status <"$at_status_file"
 
13103
#AT_STOP_120
 
13104
#AT_START_121
 
13105
at_fn_group_banner 121 'multipath.at:282' \
 
13106
  "multipath action missing argument" "              " 11
 
13107
at_xfail=no
 
13108
(
 
13109
  $as_echo "121. $at_setup_line: testing $at_desc ..."
 
13110
  $at_traceon
 
13111
 
 
13112
{ set +x
 
13113
$as_echo "$at_srcdir/multipath.at:283: ovs-ofctl parse-flow actions=multipath"
 
13114
at_fn_check_prepare_trace "multipath.at:283"
 
13115
( $at_check_trace; ovs-ofctl parse-flow actions=multipath
 
13116
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13117
at_status=$? at_failed=false
 
13118
$at_check_filter
 
13119
echo >>"$at_stderr"; $as_echo "ovs-ofctl: : not enough arguments to multipath action
 
13120
" | \
 
13121
  $at_diff - "$at_stderr" || at_failed=:
 
13122
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13123
at_fn_check_status 1 $at_status "$at_srcdir/multipath.at:283"
 
13124
$at_failed && at_fn_log_failure
 
13125
$at_traceon; }
 
13126
 
 
13127
  set +x
 
13128
  $at_times_p && times >"$at_times_file"
 
13129
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13130
read at_status <"$at_status_file"
 
13131
#AT_STOP_121
 
13132
#AT_START_122
 
13133
at_fn_group_banner 122 'multipath.at:288' \
 
13134
  "multipath action bad fields" "                    " 11
 
13135
at_xfail=no
 
13136
(
 
13137
  $as_echo "122. $at_setup_line: testing $at_desc ..."
 
13138
  $at_traceon
 
13139
 
 
13140
{ set +x
 
13141
$as_echo "$at_srcdir/multipath.at:289: ovs-ofctl parse-flow 'actions=multipath(xyzzy,50,modulo_n,1,0,NXM_NX_REG0[])'"
 
13142
at_fn_check_prepare_trace "multipath.at:289"
 
13143
( $at_check_trace; ovs-ofctl parse-flow 'actions=multipath(xyzzy,50,modulo_n,1,0,NXM_NX_REG0[])'
 
13144
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13145
at_status=$? at_failed=false
 
13146
$at_check_filter
 
13147
echo >>"$at_stderr"; $as_echo "ovs-ofctl: xyzzy,50,modulo_n,1,0,NXM_NX_REG0[]: unknown fields \`xyzzy'
 
13148
" | \
 
13149
  $at_diff - "$at_stderr" || at_failed=:
 
13150
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13151
at_fn_check_status 1 $at_status "$at_srcdir/multipath.at:289"
 
13152
$at_failed && at_fn_log_failure
 
13153
$at_traceon; }
 
13154
 
 
13155
  set +x
 
13156
  $at_times_p && times >"$at_times_file"
 
13157
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13158
read at_status <"$at_status_file"
 
13159
#AT_STOP_122
 
13160
#AT_START_123
 
13161
at_fn_group_banner 123 'multipath.at:294' \
 
13162
  "multipath action bad algorithm" "                 " 11
 
13163
at_xfail=no
 
13164
(
 
13165
  $as_echo "123. $at_setup_line: testing $at_desc ..."
 
13166
  $at_traceon
 
13167
 
 
13168
{ set +x
 
13169
$as_echo "$at_srcdir/multipath.at:295: ovs-ofctl parse-flow 'actions=multipath(eth_src,50,fubar,1,0,NXM_NX_REG0[])'"
 
13170
at_fn_check_prepare_trace "multipath.at:295"
 
13171
( $at_check_trace; ovs-ofctl parse-flow 'actions=multipath(eth_src,50,fubar,1,0,NXM_NX_REG0[])'
 
13172
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13173
at_status=$? at_failed=false
 
13174
$at_check_filter
 
13175
echo >>"$at_stderr"; $as_echo "ovs-ofctl: eth_src,50,fubar,1,0,NXM_NX_REG0[]: unknown algorithm \`fubar'
 
13176
" | \
 
13177
  $at_diff - "$at_stderr" || at_failed=:
 
13178
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13179
at_fn_check_status 1 $at_status "$at_srcdir/multipath.at:295"
 
13180
$at_failed && at_fn_log_failure
 
13181
$at_traceon; }
 
13182
 
 
13183
  set +x
 
13184
  $at_times_p && times >"$at_times_file"
 
13185
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13186
read at_status <"$at_status_file"
 
13187
#AT_STOP_123
 
13188
#AT_START_124
 
13189
at_fn_group_banner 124 'multipath.at:300' \
 
13190
  "multipath action bad n_links" "                   " 11
 
13191
at_xfail=no
 
13192
(
 
13193
  $as_echo "124. $at_setup_line: testing $at_desc ..."
 
13194
  $at_traceon
 
13195
 
 
13196
{ set +x
 
13197
$as_echo "$at_srcdir/multipath.at:301: ovs-ofctl parse-flow 'actions=multipath(eth_src,50,modulo_n,0,0,NXM_NX_REG0[])'"
 
13198
at_fn_check_prepare_trace "multipath.at:301"
 
13199
( $at_check_trace; ovs-ofctl parse-flow 'actions=multipath(eth_src,50,modulo_n,0,0,NXM_NX_REG0[])'
 
13200
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13201
at_status=$? at_failed=false
 
13202
$at_check_filter
 
13203
echo >>"$at_stderr"; $as_echo "ovs-ofctl: eth_src,50,modulo_n,0,0,NXM_NX_REG0[]: n_links 0 is not in valid range 1 to 65536
 
13204
" | \
 
13205
  $at_diff - "$at_stderr" || at_failed=:
 
13206
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13207
at_fn_check_status 1 $at_status "$at_srcdir/multipath.at:301"
 
13208
$at_failed && at_fn_log_failure
 
13209
$at_traceon; }
 
13210
 
 
13211
  set +x
 
13212
  $at_times_p && times >"$at_times_file"
 
13213
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13214
read at_status <"$at_status_file"
 
13215
#AT_STOP_124
 
13216
#AT_START_125
 
13217
at_fn_group_banner 125 'multipath.at:306' \
 
13218
  "multipath action destination too narrow" "        " 11
 
13219
at_xfail=no
 
13220
(
 
13221
  $as_echo "125. $at_setup_line: testing $at_desc ..."
 
13222
  $at_traceon
 
13223
 
 
13224
{ set +x
 
13225
$as_echo "$at_srcdir/multipath.at:307: ovs-ofctl parse-flow 'actions=multipath(eth_src,50,modulo_n,1024,0,NXM_NX_REG0[0..7])'"
 
13226
at_fn_check_prepare_trace "multipath.at:307"
 
13227
( $at_check_trace; ovs-ofctl parse-flow 'actions=multipath(eth_src,50,modulo_n,1024,0,NXM_NX_REG0[0..7])'
 
13228
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13229
at_status=$? at_failed=false
 
13230
$at_check_filter
 
13231
echo >>"$at_stderr"; $as_echo "ovs-ofctl: eth_src,50,modulo_n,1024,0,NXM_NX_REG0[0..7]: 8-bit destination field has 256 possible values, less than specified n_links 1024
 
13232
" | \
 
13233
  $at_diff - "$at_stderr" || at_failed=:
 
13234
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13235
at_fn_check_status 1 $at_status "$at_srcdir/multipath.at:307"
 
13236
$at_failed && at_fn_log_failure
 
13237
$at_traceon; }
 
13238
 
 
13239
  set +x
 
13240
  $at_times_p && times >"$at_times_file"
 
13241
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13242
read at_status <"$at_status_file"
 
13243
#AT_STOP_125
 
13244
#AT_START_126
 
13245
at_fn_group_banner 126 'autopath.at:3' \
 
13246
  "autopath basic" "                                 " 12
 
13247
at_xfail=no
 
13248
(
 
13249
  $as_echo "126. $at_setup_line: testing $at_desc ..."
 
13250
  $at_traceon
 
13251
 
 
13252
{ set +x
 
13253
$as_echo "$at_srcdir/autopath.at:4: ovs-ofctl parse-flow 'actions=autopath(1, NXM_NX_REG0[])'"
 
13254
at_fn_check_prepare_trace "autopath.at:4"
 
13255
( $at_check_trace; ovs-ofctl parse-flow 'actions=autopath(1, NXM_NX_REG0[])'
 
13256
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13257
at_status=$? at_failed=false
 
13258
$at_check_filter
 
13259
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13260
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(1,NXM_NX_REG0[])
 
13261
" | \
 
13262
  $at_diff - "$at_stdout" || at_failed=:
 
13263
at_fn_check_status 0 $at_status "$at_srcdir/autopath.at:4"
 
13264
$at_failed && at_fn_log_failure
 
13265
$at_traceon; }
 
13266
 
 
13267
{ set +x
 
13268
$as_echo "$at_srcdir/autopath.at:7: ovs-ofctl parse-flow 'actions=autopath(2, NXM_NX_REG0[2..30])'"
 
13269
at_fn_check_prepare_trace "autopath.at:7"
 
13270
( $at_check_trace; ovs-ofctl parse-flow 'actions=autopath(2, NXM_NX_REG0[2..30])'
 
13271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13272
at_status=$? at_failed=false
 
13273
$at_check_filter
 
13274
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13275
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_MOD (xid=0x1): ADD actions=autopath(2,NXM_NX_REG0[2..30])
 
13276
" | \
 
13277
  $at_diff - "$at_stdout" || at_failed=:
 
13278
at_fn_check_status 0 $at_status "$at_srcdir/autopath.at:7"
 
13279
$at_failed && at_fn_log_failure
 
13280
$at_traceon; }
 
13281
 
 
13282
  set +x
 
13283
  $at_times_p && times >"$at_times_file"
 
13284
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13285
read at_status <"$at_status_file"
 
13286
#AT_STOP_126
 
13287
#AT_START_127
 
13288
at_fn_group_banner 127 'autopath.at:12' \
 
13289
  "autopath action missing argument" "               " 12
 
13290
at_xfail=no
 
13291
(
 
13292
  $as_echo "127. $at_setup_line: testing $at_desc ..."
 
13293
  $at_traceon
 
13294
 
 
13295
{ set +x
 
13296
$as_echo "$at_srcdir/autopath.at:13: ovs-ofctl parse-flow actions=autopath"
 
13297
at_fn_check_prepare_trace "autopath.at:13"
 
13298
( $at_check_trace; ovs-ofctl parse-flow actions=autopath
 
13299
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13300
at_status=$? at_failed=false
 
13301
$at_check_filter
 
13302
echo >>"$at_stderr"; $as_echo "ovs-ofctl: : not enough arguments to autopath action
 
13303
" | \
 
13304
  $at_diff - "$at_stderr" || at_failed=:
 
13305
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13306
at_fn_check_status 1 $at_status "$at_srcdir/autopath.at:13"
 
13307
$at_failed && at_fn_log_failure
 
13308
$at_traceon; }
 
13309
 
 
13310
  set +x
 
13311
  $at_times_p && times >"$at_times_file"
 
13312
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13313
read at_status <"$at_status_file"
 
13314
#AT_STOP_127
 
13315
#AT_START_128
 
13316
at_fn_group_banner 128 'autopath.at:18' \
 
13317
  "autopath action bad port" "                       " 12
 
13318
at_xfail=no
 
13319
(
 
13320
  $as_echo "128. $at_setup_line: testing $at_desc ..."
 
13321
  $at_traceon
 
13322
 
 
13323
{ set +x
 
13324
$as_echo "$at_srcdir/autopath.at:19: ovs-ofctl parse-flow 'actions=autopath(bad, NXM_NX_REG0[])'"
 
13325
at_fn_check_prepare_trace "autopath.at:19"
 
13326
( $at_check_trace; ovs-ofctl parse-flow 'actions=autopath(bad, NXM_NX_REG0[])'
 
13327
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13328
at_status=$? at_failed=false
 
13329
$at_check_filter
 
13330
echo >>"$at_stderr"; $as_echo "ovs-ofctl: bad, NXM_NX_REG0[]: autopath id 0 is not in valid range 1 to 4294967295
 
13331
" | \
 
13332
  $at_diff - "$at_stderr" || at_failed=:
 
13333
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13334
at_fn_check_status 1 $at_status "$at_srcdir/autopath.at:19"
 
13335
$at_failed && at_fn_log_failure
 
13336
$at_traceon; }
 
13337
 
 
13338
  set +x
 
13339
  $at_times_p && times >"$at_times_file"
 
13340
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13341
read at_status <"$at_status_file"
 
13342
#AT_STOP_128
 
13343
#AT_START_129
 
13344
at_fn_group_banner 129 'autopath.at:24' \
 
13345
  "autopath action destination too narrow" "         " 12
 
13346
at_xfail=no
 
13347
(
 
13348
  $as_echo "129. $at_setup_line: testing $at_desc ..."
 
13349
  $at_traceon
 
13350
 
 
13351
{ set +x
 
13352
$as_echo "$at_srcdir/autopath.at:25: ovs-ofctl parse-flow 'actions=autopath(1,NXM_NX_REG0[0..7])'"
 
13353
at_fn_check_prepare_trace "autopath.at:25"
 
13354
( $at_check_trace; ovs-ofctl parse-flow 'actions=autopath(1,NXM_NX_REG0[0..7])'
 
13355
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13356
at_status=$? at_failed=false
 
13357
$at_check_filter
 
13358
echo >>"$at_stderr"; $as_echo "ovs-ofctl: 1,NXM_NX_REG0[0..7]: 8-bit destination field has 256 possible values, less than required 65536
 
13359
" | \
 
13360
  $at_diff - "$at_stderr" || at_failed=:
 
13361
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13362
at_fn_check_status 1 $at_status "$at_srcdir/autopath.at:25"
 
13363
$at_failed && at_fn_log_failure
 
13364
$at_traceon; }
 
13365
 
 
13366
  set +x
 
13367
  $at_times_p && times >"$at_times_file"
 
13368
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13369
read at_status <"$at_status_file"
 
13370
#AT_STOP_129
 
13371
#AT_START_130
 
13372
at_fn_group_banner 130 'learn.at:3' \
 
13373
  "learning action - parsing and formatting" "       " 13
 
13374
at_xfail=no
 
13375
(
 
13376
  $as_echo "130. $at_setup_line: testing $at_desc ..."
 
13377
  $at_traceon
 
13378
 
 
13379
cat >flows.txt <<'_ATEOF'
 
13380
 
 
13381
actions=learn()
 
13382
actions=learn(NXM_OF_VLAN_TCI[0..11], NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], output:NXM_OF_IN_PORT[], load:10->NXM_NX_REG0[5..10])
 
13383
actions=learn(table=1,idle_timeout=1, hard_timeout=2, priority=10, cookie=0xfedcba9876543210, in_port=99,NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],load:NXM_OF_IN_PORT[]->NXM_NX_REG1[16..31])
 
13384
_ATEOF
 
13385
 
 
13386
{ set +x
 
13387
$as_echo "$at_srcdir/learn.at:9: ovs-ofctl parse-flows flows.txt"
 
13388
at_fn_check_prepare_trace "learn.at:9"
 
13389
( $at_check_trace; ovs-ofctl parse-flows flows.txt
 
13390
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13391
at_status=$? at_failed=false
 
13392
$at_check_filter
 
13393
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13394
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_MOD (xid=0x1): ADD actions=learn(table=1)
 
13395
OFPT_FLOW_MOD (xid=0x2): ADD actions=learn(table=1,NXM_OF_VLAN_TCI[0..11],NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],output:NXM_OF_IN_PORT[],load:0x000a->NXM_NX_REG0[5..10])
 
13396
OFPT_FLOW_MOD (xid=0x3): ADD actions=learn(table=1,idle_timeout=1,hard_timeout=2,priority=10,cookie=0xfedcba9876543210,in_port=99,NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],load:NXM_OF_IN_PORT[]->NXM_NX_REG1[16..31])
 
13397
" | \
 
13398
  $at_diff - "$at_stdout" || at_failed=:
 
13399
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:9"
 
13400
$at_failed && at_fn_log_failure
 
13401
$at_traceon; }
 
13402
 
 
13403
  set +x
 
13404
  $at_times_p && times >"$at_times_file"
 
13405
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13406
read at_status <"$at_status_file"
 
13407
#AT_STOP_130
 
13408
#AT_START_131
 
13409
at_fn_group_banner 131 'learn.at:16' \
 
13410
  "learning action - examples" "                     " 13
 
13411
at_xfail=no
 
13412
(
 
13413
  $as_echo "131. $at_setup_line: testing $at_desc ..."
 
13414
  $at_traceon
 
13415
 
 
13416
cat >flows.txt <<'_ATEOF'
 
13417
 
 
13418
# These are the examples from nicira-ext.h.
 
13419
actions=learn(in_port=99,NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], load:NXM_OF_IN_PORT[]->NXM_NX_REG1[16..31])
 
13420
actions=learn(NXM_OF_VLAN_TCI[0..11], NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],output:NXM_OF_IN_PORT[])
 
13421
table=0 actions=learn(table=1,hard_timeout=10, NXM_OF_VLAN_TCI[0..11],output:NXM_OF_IN_PORT[]), resubmit(,1)
 
13422
table=1 priority=0 actions=flood
 
13423
_ATEOF
 
13424
 
 
13425
{ set +x
 
13426
$as_echo "$at_srcdir/learn.at:24: ovs-ofctl parse-flows flows.txt"
 
13427
at_fn_check_prepare_trace "learn.at:24"
 
13428
( $at_check_trace; ovs-ofctl parse-flows flows.txt
 
13429
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13430
at_status=$? at_failed=false
 
13431
$at_check_filter
 
13432
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13433
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_MOD (xid=0x1): ADD actions=learn(table=1,in_port=99,NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],load:NXM_OF_IN_PORT[]->NXM_NX_REG1[16..31])
 
13434
OFPT_FLOW_MOD (xid=0x2): ADD actions=learn(table=1,NXM_OF_VLAN_TCI[0..11],NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[],output:NXM_OF_IN_PORT[])
 
13435
NXT_FLOW_MOD_TABLE_ID (xid=0x3): enable
 
13436
OFPT_FLOW_MOD (xid=0x4): ADD actions=learn(table=1,hard_timeout=10,NXM_OF_VLAN_TCI[0..11],output:NXM_OF_IN_PORT[]),resubmit(,1)
 
13437
OFPT_FLOW_MOD (xid=0x5): ADD table:1 priority=0 actions=FLOOD
 
13438
" | \
 
13439
  $at_diff - "$at_stdout" || at_failed=:
 
13440
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:24"
 
13441
$at_failed && at_fn_log_failure
 
13442
$at_traceon; }
 
13443
 
 
13444
  set +x
 
13445
  $at_times_p && times >"$at_times_file"
 
13446
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13447
read at_status <"$at_status_file"
 
13448
#AT_STOP_131
 
13449
#AT_START_132
 
13450
at_fn_group_banner 132 'learn.at:33' \
 
13451
  "learning action - satisfied prerequisites" "      " 13
 
13452
at_xfail=no
 
13453
(
 
13454
  $as_echo "132. $at_setup_line: testing $at_desc ..."
 
13455
  $at_traceon
 
13456
 
 
13457
cat >flows.txt <<'_ATEOF'
 
13458
actions=learn(eth_type=0x800,load:5->NXM_OF_IP_DST[])
 
13459
ip,actions=learn(load:NXM_OF_IP_DST[]->NXM_NX_REG1[])
 
13460
ip,actions=learn(eth_type=0x800,NXM_OF_IP_DST[])
 
13461
_ATEOF
 
13462
 
 
13463
{ set +x
 
13464
$as_echo "$at_srcdir/learn.at:39: ovs-ofctl parse-flows flows.txt"
 
13465
at_fn_check_prepare_trace "learn.at:39"
 
13466
( $at_check_trace; ovs-ofctl parse-flows flows.txt
 
13467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13468
at_status=$? at_failed=false
 
13469
$at_check_filter
 
13470
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13471
echo >>"$at_stdout"; $as_echo "OFPT_FLOW_MOD (xid=0x1): ADD actions=learn(table=1,eth_type=0x800,load:0x00000005->NXM_OF_IP_DST[])
 
13472
OFPT_FLOW_MOD (xid=0x2): ADD ip actions=learn(table=1,load:NXM_OF_IP_DST[]->NXM_NX_REG1[])
 
13473
OFPT_FLOW_MOD (xid=0x3): ADD ip actions=learn(table=1,eth_type=0x800,NXM_OF_IP_DST[])
 
13474
" | \
 
13475
  $at_diff - "$at_stdout" || at_failed=:
 
13476
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:39"
 
13477
$at_failed && at_fn_log_failure
 
13478
$at_traceon; }
 
13479
 
 
13480
  set +x
 
13481
  $at_times_p && times >"$at_times_file"
 
13482
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13483
read at_status <"$at_status_file"
 
13484
#AT_STOP_132
 
13485
#AT_START_133
 
13486
at_fn_group_banner 133 'learn.at:46' \
 
13487
  "learning action - invalid prerequisites" "        " 13
 
13488
at_xfail=no
 
13489
(
 
13490
  $as_echo "133. $at_setup_line: testing $at_desc ..."
 
13491
  $at_traceon
 
13492
 
 
13493
{ set +x
 
13494
$as_echo "$at_srcdir/learn.at:47: ovs-ofctl parse-flow 'actions=learn(load:5->NXM_OF_IP_DST[])'"
 
13495
at_fn_check_prepare_trace "learn.at:47"
 
13496
( $at_check_trace; ovs-ofctl parse-flow 'actions=learn(load:5->NXM_OF_IP_DST[])'
 
13497
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13498
at_status=$? at_failed=false
 
13499
$at_check_filter
 
13500
echo >>"$at_stderr"; $as_echo "ovs-ofctl: load:5->NXM_OF_IP_DST[]: cannot specify destination field ip_dst because prerequisites are not satisfied
 
13501
" | \
 
13502
  $at_diff - "$at_stderr" || at_failed=:
 
13503
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13504
at_fn_check_status 1 $at_status "$at_srcdir/learn.at:47"
 
13505
$at_failed && at_fn_log_failure
 
13506
$at_traceon; }
 
13507
 
 
13508
{ set +x
 
13509
$as_echo "$at_srcdir/learn.at:51: ovs-ofctl parse-flow 'actions=learn(load:NXM_OF_IP_DST[]->NXM_NX_REG1[])'"
 
13510
at_fn_check_prepare_trace "learn.at:51"
 
13511
( $at_check_trace; ovs-ofctl parse-flow 'actions=learn(load:NXM_OF_IP_DST[]->NXM_NX_REG1[])'
 
13512
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13513
at_status=$? at_failed=false
 
13514
$at_check_filter
 
13515
echo >>"$at_stderr"; $as_echo "ovs-ofctl: load:NXM_OF_IP_DST[]->NXM_NX_REG1[]: cannot specify source field ip_dst because prerequisites are not satisfied
 
13516
" | \
 
13517
  $at_diff - "$at_stderr" || at_failed=:
 
13518
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13519
at_fn_check_status 1 $at_status "$at_srcdir/learn.at:51"
 
13520
$at_failed && at_fn_log_failure
 
13521
$at_traceon; }
 
13522
 
 
13523
  set +x
 
13524
  $at_times_p && times >"$at_times_file"
 
13525
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13526
read at_status <"$at_status_file"
 
13527
#AT_STOP_133
 
13528
#AT_START_134
 
13529
at_fn_group_banner 134 'learn.at:57' \
 
13530
  "learning action - standard VLAN+MAC learning" "   " 13
 
13531
at_xfail=no
 
13532
(
 
13533
  $as_echo "134. $at_setup_line: testing $at_desc ..."
 
13534
  $at_traceon
 
13535
 
 
13536
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
13537
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
13538
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
13539
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
13540
 
 
13541
      mkdir openvswitch
 
13542
   touch openvswitch/.conf.db.~lock~
 
13543
   { set +x
 
13544
$as_echo "$at_srcdir/learn.at:58: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
13545
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "learn.at:58"
 
13546
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
13547
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13548
at_status=$? at_failed=false
 
13549
$at_check_filter
 
13550
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13551
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13552
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:58"
 
13553
$at_failed && at_fn_log_failure
 
13554
$at_traceon; }
 
13555
 
 
13556
 
 
13557
      { set +x
 
13558
$as_echo "$at_srcdir/learn.at:58: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
13559
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "learn.at:58"
 
13560
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
13561
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13562
at_status=$? at_failed=false
 
13563
$at_check_filter
 
13564
echo stderr:; tee stderr <"$at_stderr"
 
13565
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13566
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:58"
 
13567
$at_failed && at_fn_log_failure
 
13568
$at_traceon; }
 
13569
 
 
13570
   { set +x
 
13571
$as_echo "$at_srcdir/learn.at:58: sed < stderr '/vlog|INFO|opened log file/d'"
 
13572
at_fn_check_prepare_notrace 'a shell pipeline' "learn.at:58"
 
13573
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
13574
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13575
at_status=$? at_failed=false
 
13576
$at_check_filter
 
13577
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13578
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13579
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:58"
 
13580
$at_failed && at_fn_log_failure
 
13581
$at_traceon; }
 
13582
 
 
13583
 
 
13584
 
 
13585
      { set +x
 
13586
$as_echo "$at_srcdir/learn.at:58: ovs-vsctl --no-wait init"
 
13587
at_fn_check_prepare_trace "learn.at:58"
 
13588
( $at_check_trace; ovs-vsctl --no-wait init
 
13589
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13590
at_status=$? at_failed=false
 
13591
$at_check_filter
 
13592
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13593
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13594
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:58"
 
13595
$at_failed && at_fn_log_failure  \
 
13596
"ovsdb-server.log"
 
13597
$at_traceon; }
 
13598
 
 
13599
 
 
13600
      { set +x
 
13601
$as_echo "$at_srcdir/learn.at:58: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
13602
at_fn_check_prepare_trace "learn.at:58"
 
13603
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
13604
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13605
at_status=$? at_failed=false
 
13606
$at_check_filter
 
13607
echo stderr:; tee stderr <"$at_stderr"
 
13608
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13609
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:58"
 
13610
$at_failed && at_fn_log_failure  \
 
13611
"ovsdb-server.log"
 
13612
$at_traceon; }
 
13613
 
 
13614
 
 
13615
   { set +x
 
13616
$as_echo "$at_srcdir/learn.at:58: sed < stderr '
 
13617
/vlog|INFO|opened log file/d
 
13618
/reconnect|INFO|/d
 
13619
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
13620
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
13621
/ofproto|INFO|using datapath ID/d
 
13622
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
13623
at_fn_check_prepare_notrace 'an embedded newline' "learn.at:58"
 
13624
( $at_check_trace; sed < stderr '
 
13625
/vlog|INFO|opened log file/d
 
13626
/reconnect|INFO|/d
 
13627
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
13628
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
13629
/ofproto|INFO|using datapath ID/d
 
13630
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
13631
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13632
at_status=$? at_failed=false
 
13633
$at_check_filter
 
13634
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13635
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13636
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:58"
 
13637
$at_failed && at_fn_log_failure  \
 
13638
"ovsdb-server.log" \
 
13639
"ovs-vswitchd.log"
 
13640
$at_traceon; }
 
13641
 
 
13642
 
 
13643
      { set +x
 
13644
$as_echo "$at_srcdir/learn.at:58: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- add-port br0 eth0 -- set Interface eth0 type=dummy -- \\
 
13645
   add-port br0 eth1 -- set Interface eth1 type=dummy -- \\
 
13646
   add-port br0 eth2 -- set Interface eth2 type=dummy"
 
13647
at_fn_check_prepare_notrace 'an embedded newline' "learn.at:58"
 
13648
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- add-port br0 eth0 -- set Interface eth0 type=dummy -- \
 
13649
   add-port br0 eth1 -- set Interface eth1 type=dummy -- \
 
13650
   add-port br0 eth2 -- set Interface eth2 type=dummy
 
13651
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13652
at_status=$? at_failed=false
 
13653
$at_check_filter
 
13654
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13655
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13656
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:58"
 
13657
$at_failed && at_fn_log_failure  \
 
13658
"ovsdb-server.log" \
 
13659
"ovs-vswitchd.log"
 
13660
$at_traceon; }
 
13661
 
 
13662
 
 
13663
# Set up flow table for VLAN+MAC learning.
 
13664
cat >flows.txt <<'_ATEOF'
 
13665
 
 
13666
table=0 actions=learn(table=1, hard_timeout=60, NXM_OF_VLAN_TCI[0..11], NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], output:NXM_OF_IN_PORT[]), resubmit(,1)
 
13667
table=1 priority=0 actions=flood
 
13668
_ATEOF
 
13669
 
 
13670
{ set +x
 
13671
$as_echo "$at_srcdir/learn.at:67: ovs-ofctl add-flows br0 flows.txt"
 
13672
at_fn_check_prepare_trace "learn.at:67"
 
13673
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
13674
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13675
at_status=$? at_failed=false
 
13676
$at_check_filter
 
13677
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13678
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13679
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:67"
 
13680
$at_failed && at_fn_log_failure  \
 
13681
"ovsdb-server.log" \
 
13682
"ovs-vswitchd.log"
 
13683
$at_traceon; }
 
13684
 
 
13685
 
 
13686
# Trace an ARP packet arriving on port 3, to create a MAC learning entry.
 
13687
{ set +x
 
13688
$as_echo "$at_srcdir/learn.at:70: ovs-appctl ofproto/trace br0 'in_port(3),eth(src=50:54:00:00:00:05,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=192.168.0.1,tip=192.168.0.2,op=1,sha=50:54:00:00:00:05,tha=00:00:00:00:00:00)' -generate"
 
13689
at_fn_check_prepare_trace "learn.at:70"
 
13690
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(3),eth(src=50:54:00:00:00:05,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=192.168.0.1,tip=192.168.0.2,op=1,sha=50:54:00:00:00:05,tha=00:00:00:00:00:00)' -generate
 
13691
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13692
at_status=$? at_failed=false
 
13693
$at_check_filter
 
13694
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13695
echo stdout:; tee stdout <"$at_stdout"
 
13696
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:70"
 
13697
$at_failed && at_fn_log_failure  \
 
13698
"ovsdb-server.log" \
 
13699
"ovs-vswitchd.log"
 
13700
$at_traceon; }
 
13701
 
 
13702
{ set +x
 
13703
$as_echo "$at_srcdir/learn.at:71: tail -1 stdout"
 
13704
at_fn_check_prepare_trace "learn.at:71"
 
13705
( $at_check_trace; tail -1 stdout
 
13706
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13707
at_status=$? at_failed=false
 
13708
$at_check_filter
 
13709
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13710
echo >>"$at_stdout"; $as_echo "Datapath actions: 2,0,1
 
13711
" | \
 
13712
  $at_diff - "$at_stdout" || at_failed=:
 
13713
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:71"
 
13714
$at_failed && at_fn_log_failure  \
 
13715
"ovsdb-server.log" \
 
13716
"ovs-vswitchd.log"
 
13717
$at_traceon; }
 
13718
 
 
13719
 
 
13720
# Check for the MAC learning entry.
 
13721
{ set +x
 
13722
$as_echo "$at_srcdir/learn.at:75: ovs-ofctl dump-flows br0 table=1 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\\bduration=[0-9.]*s/duration=?s/' | sort"
 
13723
at_fn_check_prepare_notrace 'a shell pipeline' "learn.at:75"
 
13724
( $at_check_trace; ovs-ofctl dump-flows br0 table=1 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\bduration=[0-9.]*s/duration=?s/' | sort
 
13725
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13726
at_status=$? at_failed=false
 
13727
$at_check_filter
 
13728
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13729
echo >>"$at_stdout"; $as_echo " cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, hard_timeout=60,vlan_tci=0x0000/0x0fff,dl_dst=50:54:00:00:00:05 actions=output:3
 
13730
 cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, priority=0 actions=FLOOD
 
13731
NXST_FLOW reply:
 
13732
" | \
 
13733
  $at_diff - "$at_stdout" || at_failed=:
 
13734
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:75"
 
13735
$at_failed && at_fn_log_failure  \
 
13736
"ovsdb-server.log" \
 
13737
"ovs-vswitchd.log"
 
13738
$at_traceon; }
 
13739
 
 
13740
 
 
13741
# Trace a packet arrival destined for the learned MAC.
 
13742
# (This will also learn a MAC.)
 
13743
{ set +x
 
13744
$as_echo "$at_srcdir/learn.at:83: ovs-appctl ofproto/trace br0 'in_port(1),eth(src=50:54:00:00:00:06,dst=50:54:00:00:00:05),eth_type(0x0806),arp(sip=192.168.0.2,tip=192.168.0.1,op=2,sha=50:54:00:00:00:06,tha=50:54:00:00:00:05)' -generate"
 
13745
at_fn_check_prepare_trace "learn.at:83"
 
13746
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(1),eth(src=50:54:00:00:00:06,dst=50:54:00:00:00:05),eth_type(0x0806),arp(sip=192.168.0.2,tip=192.168.0.1,op=2,sha=50:54:00:00:00:06,tha=50:54:00:00:00:05)' -generate
 
13747
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13748
at_status=$? at_failed=false
 
13749
$at_check_filter
 
13750
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13751
echo stdout:; tee stdout <"$at_stdout"
 
13752
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:83"
 
13753
$at_failed && at_fn_log_failure  \
 
13754
"ovsdb-server.log" \
 
13755
"ovs-vswitchd.log"
 
13756
$at_traceon; }
 
13757
 
 
13758
{ set +x
 
13759
$as_echo "$at_srcdir/learn.at:84: tail -1 stdout"
 
13760
at_fn_check_prepare_trace "learn.at:84"
 
13761
( $at_check_trace; tail -1 stdout
 
13762
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13763
at_status=$? at_failed=false
 
13764
$at_check_filter
 
13765
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13766
echo >>"$at_stdout"; $as_echo "Datapath actions: 3
 
13767
" | \
 
13768
  $at_diff - "$at_stdout" || at_failed=:
 
13769
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:84"
 
13770
$at_failed && at_fn_log_failure  \
 
13771
"ovsdb-server.log" \
 
13772
"ovs-vswitchd.log"
 
13773
$at_traceon; }
 
13774
 
 
13775
 
 
13776
# Check for both MAC learning entries.
 
13777
{ set +x
 
13778
$as_echo "$at_srcdir/learn.at:88: ovs-ofctl dump-flows br0 table=1 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\\bduration=[0-9.]*s/duration=?s/' | sort"
 
13779
at_fn_check_prepare_notrace 'a shell pipeline' "learn.at:88"
 
13780
( $at_check_trace; ovs-ofctl dump-flows br0 table=1 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\bduration=[0-9.]*s/duration=?s/' | sort
 
13781
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13782
at_status=$? at_failed=false
 
13783
$at_check_filter
 
13784
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13785
echo >>"$at_stdout"; $as_echo " cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, hard_timeout=60,vlan_tci=0x0000/0x0fff,dl_dst=50:54:00:00:00:05 actions=output:3
 
13786
 cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, hard_timeout=60,vlan_tci=0x0000/0x0fff,dl_dst=50:54:00:00:00:06 actions=output:1
 
13787
 cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, priority=0 actions=FLOOD
 
13788
NXST_FLOW reply:
 
13789
" | \
 
13790
  $at_diff - "$at_stdout" || at_failed=:
 
13791
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:88"
 
13792
$at_failed && at_fn_log_failure  \
 
13793
"ovsdb-server.log" \
 
13794
"ovs-vswitchd.log"
 
13795
$at_traceon; }
 
13796
 
 
13797
 
 
13798
# Trace a packet arrival that updates the first learned MAC entry.
 
13799
{ set +x
 
13800
$as_echo "$at_srcdir/learn.at:96: ovs-appctl ofproto/trace br0 'in_port(2),eth(src=50:54:00:00:00:05,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=192.168.0.1,tip=192.168.0.2,op=1,sha=50:54:00:00:00:05,tha=00:00:00:00:00:00)' -generate"
 
13801
at_fn_check_prepare_trace "learn.at:96"
 
13802
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(2),eth(src=50:54:00:00:00:05,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=192.168.0.1,tip=192.168.0.2,op=1,sha=50:54:00:00:00:05,tha=00:00:00:00:00:00)' -generate
 
13803
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13804
at_status=$? at_failed=false
 
13805
$at_check_filter
 
13806
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13807
echo stdout:; tee stdout <"$at_stdout"
 
13808
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:96"
 
13809
$at_failed && at_fn_log_failure  \
 
13810
"ovsdb-server.log" \
 
13811
"ovs-vswitchd.log"
 
13812
$at_traceon; }
 
13813
 
 
13814
{ set +x
 
13815
$as_echo "$at_srcdir/learn.at:97: tail -1 stdout"
 
13816
at_fn_check_prepare_trace "learn.at:97"
 
13817
( $at_check_trace; tail -1 stdout
 
13818
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13819
at_status=$? at_failed=false
 
13820
$at_check_filter
 
13821
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13822
echo >>"$at_stdout"; $as_echo "Datapath actions: 3,0,1
 
13823
" | \
 
13824
  $at_diff - "$at_stdout" || at_failed=:
 
13825
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:97"
 
13826
$at_failed && at_fn_log_failure  \
 
13827
"ovsdb-server.log" \
 
13828
"ovs-vswitchd.log"
 
13829
$at_traceon; }
 
13830
 
 
13831
 
 
13832
# Check that the MAC learning entry was updated.
 
13833
{ set +x
 
13834
$as_echo "$at_srcdir/learn.at:101: ovs-ofctl dump-flows br0 table=1 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\\bduration=[0-9.]*s/duration=?s/' | sort"
 
13835
at_fn_check_prepare_notrace 'a shell pipeline' "learn.at:101"
 
13836
( $at_check_trace; ovs-ofctl dump-flows br0 table=1 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\bduration=[0-9.]*s/duration=?s/' | sort
 
13837
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13838
at_status=$? at_failed=false
 
13839
$at_check_filter
 
13840
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13841
echo >>"$at_stdout"; $as_echo " cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, hard_timeout=60,vlan_tci=0x0000/0x0fff,dl_dst=50:54:00:00:00:05 actions=output:2
 
13842
 cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, hard_timeout=60,vlan_tci=0x0000/0x0fff,dl_dst=50:54:00:00:00:06 actions=output:1
 
13843
 cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, priority=0 actions=FLOOD
 
13844
NXST_FLOW reply:
 
13845
" | \
 
13846
  $at_diff - "$at_stdout" || at_failed=:
 
13847
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:101"
 
13848
$at_failed && at_fn_log_failure  \
 
13849
"ovsdb-server.log" \
 
13850
"ovs-vswitchd.log"
 
13851
$at_traceon; }
 
13852
 
 
13853
{ set +x
 
13854
$as_echo "$at_srcdir/learn.at:107: ovs-appctl -t ovs-vswitchd exit"
 
13855
at_fn_check_prepare_trace "learn.at:107"
 
13856
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
13857
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13858
at_status=$? at_failed=false
 
13859
$at_check_filter
 
13860
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13861
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13862
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:107"
 
13863
$at_failed && at_fn_log_failure  \
 
13864
"ovsdb-server.log" \
 
13865
"ovs-vswitchd.log"
 
13866
$at_traceon; }
 
13867
 
 
13868
   { set +x
 
13869
$as_echo "$at_srcdir/learn.at:107: ovs-appctl -t ovsdb-server exit"
 
13870
at_fn_check_prepare_trace "learn.at:107"
 
13871
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
13872
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13873
at_status=$? at_failed=false
 
13874
$at_check_filter
 
13875
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
13876
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13877
at_fn_check_status 0 $at_status "$at_srcdir/learn.at:107"
 
13878
$at_failed && at_fn_log_failure  \
 
13879
"ovsdb-server.log" \
 
13880
"ovs-vswitchd.log"
 
13881
$at_traceon; }
 
13882
 
 
13883
   trap '' 0
 
13884
  set +x
 
13885
  $at_times_p && times >"$at_times_file"
 
13886
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13887
read at_status <"$at_status_file"
 
13888
#AT_STOP_134
 
13889
#AT_START_135
 
13890
at_fn_group_banner 135 'vconn.at:20' \
 
13891
  "unix vconn - refuse connection" "                 " 14
 
13892
at_xfail=no
 
13893
(
 
13894
  $as_echo "135. $at_setup_line: testing $at_desc ..."
 
13895
  $at_traceon
 
13896
 
 
13897
 
 
13898
      { set +x
 
13899
$as_echo "$at_srcdir/vconn.at:20: test-vconn refuse-connection unix"
 
13900
at_fn_check_prepare_trace "vconn.at:20"
 
13901
( $at_check_trace; test-vconn refuse-connection unix
 
13902
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13903
at_status=$? at_failed=false
 
13904
$at_check_filter
 
13905
echo stderr:; cat "$at_stderr"
 
13906
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13907
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:20"
 
13908
$at_failed && at_fn_log_failure
 
13909
$at_traceon; }
 
13910
 
 
13911
        set +x
 
13912
  $at_times_p && times >"$at_times_file"
 
13913
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13914
read at_status <"$at_status_file"
 
13915
#AT_STOP_135
 
13916
#AT_START_136
 
13917
at_fn_group_banner 136 'vconn.at:20' \
 
13918
  "unix vconn - accept then close" "                 " 14
 
13919
at_xfail=no
 
13920
(
 
13921
  $as_echo "136. $at_setup_line: testing $at_desc ..."
 
13922
  $at_traceon
 
13923
 
 
13924
 
 
13925
      { set +x
 
13926
$as_echo "$at_srcdir/vconn.at:20: test-vconn accept-then-close unix"
 
13927
at_fn_check_prepare_trace "vconn.at:20"
 
13928
( $at_check_trace; test-vconn accept-then-close unix
 
13929
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13930
at_status=$? at_failed=false
 
13931
$at_check_filter
 
13932
echo stderr:; cat "$at_stderr"
 
13933
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13934
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:20"
 
13935
$at_failed && at_fn_log_failure
 
13936
$at_traceon; }
 
13937
 
 
13938
        set +x
 
13939
  $at_times_p && times >"$at_times_file"
 
13940
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13941
read at_status <"$at_status_file"
 
13942
#AT_STOP_136
 
13943
#AT_START_137
 
13944
at_fn_group_banner 137 'vconn.at:20' \
 
13945
  "unix vconn - read hello" "                        " 14
 
13946
at_xfail=no
 
13947
(
 
13948
  $as_echo "137. $at_setup_line: testing $at_desc ..."
 
13949
  $at_traceon
 
13950
 
 
13951
 
 
13952
      { set +x
 
13953
$as_echo "$at_srcdir/vconn.at:20: test-vconn read-hello unix"
 
13954
at_fn_check_prepare_trace "vconn.at:20"
 
13955
( $at_check_trace; test-vconn read-hello unix
 
13956
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13957
at_status=$? at_failed=false
 
13958
$at_check_filter
 
13959
echo stderr:; cat "$at_stderr"
 
13960
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13961
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:20"
 
13962
$at_failed && at_fn_log_failure
 
13963
$at_traceon; }
 
13964
 
 
13965
        set +x
 
13966
  $at_times_p && times >"$at_times_file"
 
13967
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13968
read at_status <"$at_status_file"
 
13969
#AT_STOP_137
 
13970
#AT_START_138
 
13971
at_fn_group_banner 138 'vconn.at:20' \
 
13972
  "unix vconn - send plain hello" "                  " 14
 
13973
at_xfail=no
 
13974
(
 
13975
  $as_echo "138. $at_setup_line: testing $at_desc ..."
 
13976
  $at_traceon
 
13977
 
 
13978
 
 
13979
      { set +x
 
13980
$as_echo "$at_srcdir/vconn.at:20: test-vconn send-plain-hello unix"
 
13981
at_fn_check_prepare_trace "vconn.at:20"
 
13982
( $at_check_trace; test-vconn send-plain-hello unix
 
13983
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
13984
at_status=$? at_failed=false
 
13985
$at_check_filter
 
13986
echo stderr:; cat "$at_stderr"
 
13987
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
13988
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:20"
 
13989
$at_failed && at_fn_log_failure
 
13990
$at_traceon; }
 
13991
 
 
13992
        set +x
 
13993
  $at_times_p && times >"$at_times_file"
 
13994
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
13995
read at_status <"$at_status_file"
 
13996
#AT_STOP_138
 
13997
#AT_START_139
 
13998
at_fn_group_banner 139 'vconn.at:20' \
 
13999
  "unix vconn - send long hello" "                   " 14
 
14000
at_xfail=no
 
14001
(
 
14002
  $as_echo "139. $at_setup_line: testing $at_desc ..."
 
14003
  $at_traceon
 
14004
 
 
14005
 
 
14006
      { set +x
 
14007
$as_echo "$at_srcdir/vconn.at:20: test-vconn send-long-hello unix"
 
14008
at_fn_check_prepare_trace "vconn.at:20"
 
14009
( $at_check_trace; test-vconn send-long-hello unix
 
14010
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14011
at_status=$? at_failed=false
 
14012
$at_check_filter
 
14013
echo stderr:; cat "$at_stderr"
 
14014
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14015
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:20"
 
14016
$at_failed && at_fn_log_failure
 
14017
$at_traceon; }
 
14018
 
 
14019
        set +x
 
14020
  $at_times_p && times >"$at_times_file"
 
14021
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14022
read at_status <"$at_status_file"
 
14023
#AT_STOP_139
 
14024
#AT_START_140
 
14025
at_fn_group_banner 140 'vconn.at:20' \
 
14026
  "unix vconn - send echo hello" "                   " 14
 
14027
at_xfail=no
 
14028
(
 
14029
  $as_echo "140. $at_setup_line: testing $at_desc ..."
 
14030
  $at_traceon
 
14031
 
 
14032
 
 
14033
      { set +x
 
14034
$as_echo "$at_srcdir/vconn.at:20: test-vconn send-echo-hello unix"
 
14035
at_fn_check_prepare_trace "vconn.at:20"
 
14036
( $at_check_trace; test-vconn send-echo-hello unix
 
14037
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14038
at_status=$? at_failed=false
 
14039
$at_check_filter
 
14040
echo stderr:; cat "$at_stderr"
 
14041
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14042
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:20"
 
14043
$at_failed && at_fn_log_failure
 
14044
$at_traceon; }
 
14045
 
 
14046
        set +x
 
14047
  $at_times_p && times >"$at_times_file"
 
14048
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14049
read at_status <"$at_status_file"
 
14050
#AT_STOP_140
 
14051
#AT_START_141
 
14052
at_fn_group_banner 141 'vconn.at:20' \
 
14053
  "unix vconn - send short hello" "                  " 14
 
14054
at_xfail=no
 
14055
(
 
14056
  $as_echo "141. $at_setup_line: testing $at_desc ..."
 
14057
  $at_traceon
 
14058
 
 
14059
 
 
14060
      { set +x
 
14061
$as_echo "$at_srcdir/vconn.at:20: test-vconn send-short-hello unix"
 
14062
at_fn_check_prepare_trace "vconn.at:20"
 
14063
( $at_check_trace; test-vconn send-short-hello unix
 
14064
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14065
at_status=$? at_failed=false
 
14066
$at_check_filter
 
14067
echo stderr:; cat "$at_stderr"
 
14068
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14069
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:20"
 
14070
$at_failed && at_fn_log_failure
 
14071
$at_traceon; }
 
14072
 
 
14073
        set +x
 
14074
  $at_times_p && times >"$at_times_file"
 
14075
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14076
read at_status <"$at_status_file"
 
14077
#AT_STOP_141
 
14078
#AT_START_142
 
14079
at_fn_group_banner 142 'vconn.at:20' \
 
14080
  "unix vconn - send invalid version hello" "        " 14
 
14081
at_xfail=no
 
14082
(
 
14083
  $as_echo "142. $at_setup_line: testing $at_desc ..."
 
14084
  $at_traceon
 
14085
 
 
14086
 
 
14087
      { set +x
 
14088
$as_echo "$at_srcdir/vconn.at:20: test-vconn send-invalid-version-hello unix"
 
14089
at_fn_check_prepare_trace "vconn.at:20"
 
14090
( $at_check_trace; test-vconn send-invalid-version-hello unix
 
14091
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14092
at_status=$? at_failed=false
 
14093
$at_check_filter
 
14094
echo stderr:; cat "$at_stderr"
 
14095
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14096
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:20"
 
14097
$at_failed && at_fn_log_failure
 
14098
$at_traceon; }
 
14099
 
 
14100
        set +x
 
14101
  $at_times_p && times >"$at_times_file"
 
14102
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14103
read at_status <"$at_status_file"
 
14104
#AT_STOP_142
 
14105
#AT_START_143
 
14106
at_fn_group_banner 143 'vconn.at:21' \
 
14107
  "tcp vconn - refuse connection" "                  " 15
 
14108
at_xfail=no
 
14109
(
 
14110
  $as_echo "143. $at_setup_line: testing $at_desc ..."
 
14111
  $at_traceon
 
14112
 
 
14113
 
 
14114
      { set +x
 
14115
$as_echo "$at_srcdir/vconn.at:21: test-vconn refuse-connection tcp"
 
14116
at_fn_check_prepare_trace "vconn.at:21"
 
14117
( $at_check_trace; test-vconn refuse-connection tcp
 
14118
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14119
at_status=$? at_failed=false
 
14120
$at_check_filter
 
14121
echo stderr:; cat "$at_stderr"
 
14122
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14123
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:21"
 
14124
$at_failed && at_fn_log_failure
 
14125
$at_traceon; }
 
14126
 
 
14127
        set +x
 
14128
  $at_times_p && times >"$at_times_file"
 
14129
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14130
read at_status <"$at_status_file"
 
14131
#AT_STOP_143
 
14132
#AT_START_144
 
14133
at_fn_group_banner 144 'vconn.at:21' \
 
14134
  "tcp vconn - accept then close" "                  " 15
 
14135
at_xfail=no
 
14136
(
 
14137
  $as_echo "144. $at_setup_line: testing $at_desc ..."
 
14138
  $at_traceon
 
14139
 
 
14140
 
 
14141
      { set +x
 
14142
$as_echo "$at_srcdir/vconn.at:21: test-vconn accept-then-close tcp"
 
14143
at_fn_check_prepare_trace "vconn.at:21"
 
14144
( $at_check_trace; test-vconn accept-then-close tcp
 
14145
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14146
at_status=$? at_failed=false
 
14147
$at_check_filter
 
14148
echo stderr:; cat "$at_stderr"
 
14149
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14150
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:21"
 
14151
$at_failed && at_fn_log_failure
 
14152
$at_traceon; }
 
14153
 
 
14154
        set +x
 
14155
  $at_times_p && times >"$at_times_file"
 
14156
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14157
read at_status <"$at_status_file"
 
14158
#AT_STOP_144
 
14159
#AT_START_145
 
14160
at_fn_group_banner 145 'vconn.at:21' \
 
14161
  "tcp vconn - read hello" "                         " 15
 
14162
at_xfail=no
 
14163
(
 
14164
  $as_echo "145. $at_setup_line: testing $at_desc ..."
 
14165
  $at_traceon
 
14166
 
 
14167
 
 
14168
      { set +x
 
14169
$as_echo "$at_srcdir/vconn.at:21: test-vconn read-hello tcp"
 
14170
at_fn_check_prepare_trace "vconn.at:21"
 
14171
( $at_check_trace; test-vconn read-hello tcp
 
14172
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14173
at_status=$? at_failed=false
 
14174
$at_check_filter
 
14175
echo stderr:; cat "$at_stderr"
 
14176
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14177
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:21"
 
14178
$at_failed && at_fn_log_failure
 
14179
$at_traceon; }
 
14180
 
 
14181
        set +x
 
14182
  $at_times_p && times >"$at_times_file"
 
14183
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14184
read at_status <"$at_status_file"
 
14185
#AT_STOP_145
 
14186
#AT_START_146
 
14187
at_fn_group_banner 146 'vconn.at:21' \
 
14188
  "tcp vconn - send plain hello" "                   " 15
 
14189
at_xfail=no
 
14190
(
 
14191
  $as_echo "146. $at_setup_line: testing $at_desc ..."
 
14192
  $at_traceon
 
14193
 
 
14194
 
 
14195
      { set +x
 
14196
$as_echo "$at_srcdir/vconn.at:21: test-vconn send-plain-hello tcp"
 
14197
at_fn_check_prepare_trace "vconn.at:21"
 
14198
( $at_check_trace; test-vconn send-plain-hello tcp
 
14199
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14200
at_status=$? at_failed=false
 
14201
$at_check_filter
 
14202
echo stderr:; cat "$at_stderr"
 
14203
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14204
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:21"
 
14205
$at_failed && at_fn_log_failure
 
14206
$at_traceon; }
 
14207
 
 
14208
        set +x
 
14209
  $at_times_p && times >"$at_times_file"
 
14210
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14211
read at_status <"$at_status_file"
 
14212
#AT_STOP_146
 
14213
#AT_START_147
 
14214
at_fn_group_banner 147 'vconn.at:21' \
 
14215
  "tcp vconn - send long hello" "                    " 15
 
14216
at_xfail=no
 
14217
(
 
14218
  $as_echo "147. $at_setup_line: testing $at_desc ..."
 
14219
  $at_traceon
 
14220
 
 
14221
 
 
14222
      { set +x
 
14223
$as_echo "$at_srcdir/vconn.at:21: test-vconn send-long-hello tcp"
 
14224
at_fn_check_prepare_trace "vconn.at:21"
 
14225
( $at_check_trace; test-vconn send-long-hello tcp
 
14226
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14227
at_status=$? at_failed=false
 
14228
$at_check_filter
 
14229
echo stderr:; cat "$at_stderr"
 
14230
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14231
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:21"
 
14232
$at_failed && at_fn_log_failure
 
14233
$at_traceon; }
 
14234
 
 
14235
        set +x
 
14236
  $at_times_p && times >"$at_times_file"
 
14237
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14238
read at_status <"$at_status_file"
 
14239
#AT_STOP_147
 
14240
#AT_START_148
 
14241
at_fn_group_banner 148 'vconn.at:21' \
 
14242
  "tcp vconn - send echo hello" "                    " 15
 
14243
at_xfail=no
 
14244
(
 
14245
  $as_echo "148. $at_setup_line: testing $at_desc ..."
 
14246
  $at_traceon
 
14247
 
 
14248
 
 
14249
      { set +x
 
14250
$as_echo "$at_srcdir/vconn.at:21: test-vconn send-echo-hello tcp"
 
14251
at_fn_check_prepare_trace "vconn.at:21"
 
14252
( $at_check_trace; test-vconn send-echo-hello tcp
 
14253
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14254
at_status=$? at_failed=false
 
14255
$at_check_filter
 
14256
echo stderr:; cat "$at_stderr"
 
14257
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14258
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:21"
 
14259
$at_failed && at_fn_log_failure
 
14260
$at_traceon; }
 
14261
 
 
14262
        set +x
 
14263
  $at_times_p && times >"$at_times_file"
 
14264
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14265
read at_status <"$at_status_file"
 
14266
#AT_STOP_148
 
14267
#AT_START_149
 
14268
at_fn_group_banner 149 'vconn.at:21' \
 
14269
  "tcp vconn - send short hello" "                   " 15
 
14270
at_xfail=no
 
14271
(
 
14272
  $as_echo "149. $at_setup_line: testing $at_desc ..."
 
14273
  $at_traceon
 
14274
 
 
14275
 
 
14276
      { set +x
 
14277
$as_echo "$at_srcdir/vconn.at:21: test-vconn send-short-hello tcp"
 
14278
at_fn_check_prepare_trace "vconn.at:21"
 
14279
( $at_check_trace; test-vconn send-short-hello tcp
 
14280
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14281
at_status=$? at_failed=false
 
14282
$at_check_filter
 
14283
echo stderr:; cat "$at_stderr"
 
14284
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14285
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:21"
 
14286
$at_failed && at_fn_log_failure
 
14287
$at_traceon; }
 
14288
 
 
14289
        set +x
 
14290
  $at_times_p && times >"$at_times_file"
 
14291
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14292
read at_status <"$at_status_file"
 
14293
#AT_STOP_149
 
14294
#AT_START_150
 
14295
at_fn_group_banner 150 'vconn.at:21' \
 
14296
  "tcp vconn - send invalid version hello" "         " 15
 
14297
at_xfail=no
 
14298
(
 
14299
  $as_echo "150. $at_setup_line: testing $at_desc ..."
 
14300
  $at_traceon
 
14301
 
 
14302
 
 
14303
      { set +x
 
14304
$as_echo "$at_srcdir/vconn.at:21: test-vconn send-invalid-version-hello tcp"
 
14305
at_fn_check_prepare_trace "vconn.at:21"
 
14306
( $at_check_trace; test-vconn send-invalid-version-hello tcp
 
14307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14308
at_status=$? at_failed=false
 
14309
$at_check_filter
 
14310
echo stderr:; cat "$at_stderr"
 
14311
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14312
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:21"
 
14313
$at_failed && at_fn_log_failure
 
14314
$at_traceon; }
 
14315
 
 
14316
        set +x
 
14317
  $at_times_p && times >"$at_times_file"
 
14318
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14319
read at_status <"$at_status_file"
 
14320
#AT_STOP_150
 
14321
#AT_START_151
 
14322
at_fn_group_banner 151 'vconn.at:22' \
 
14323
  "ssl vconn - refuse connection" "                  " 16
 
14324
at_xfail=no
 
14325
(
 
14326
  $as_echo "151. $at_setup_line: testing $at_desc ..."
 
14327
  $at_traceon
 
14328
 
 
14329
 
 
14330
        $as_echo "vconn.at:22" >"$at_check_line_file"
 
14331
(test "$HAVE_OPENSSL" = no) \
 
14332
  && at_fn_check_skip 77 "$at_srcdir/vconn.at:22"
 
14333
        { set +x
 
14334
$as_echo "$at_srcdir/vconn.at:22: cp \$abs_top_builddir/tests/testpki*.pem ."
 
14335
at_fn_check_prepare_dynamic "cp $abs_top_builddir/tests/testpki*.pem ." "vconn.at:22"
 
14336
( $at_check_trace; cp $abs_top_builddir/tests/testpki*.pem .
 
14337
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14338
at_status=$? at_failed=false
 
14339
$at_check_filter
 
14340
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14341
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14342
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14343
$at_failed && at_fn_log_failure
 
14344
$at_traceon; }
 
14345
 
 
14346
      { set +x
 
14347
$as_echo "$at_srcdir/vconn.at:22: test-vconn refuse-connection ssl"
 
14348
at_fn_check_prepare_trace "vconn.at:22"
 
14349
( $at_check_trace; test-vconn refuse-connection ssl
 
14350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14351
at_status=$? at_failed=false
 
14352
$at_check_filter
 
14353
echo stderr:; cat "$at_stderr"
 
14354
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14355
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14356
$at_failed && at_fn_log_failure
 
14357
$at_traceon; }
 
14358
 
 
14359
        set +x
 
14360
  $at_times_p && times >"$at_times_file"
 
14361
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14362
read at_status <"$at_status_file"
 
14363
#AT_STOP_151
 
14364
#AT_START_152
 
14365
at_fn_group_banner 152 'vconn.at:22' \
 
14366
  "ssl vconn - accept then close" "                  " 16
 
14367
at_xfail=no
 
14368
(
 
14369
  $as_echo "152. $at_setup_line: testing $at_desc ..."
 
14370
  $at_traceon
 
14371
 
 
14372
 
 
14373
        $as_echo "vconn.at:22" >"$at_check_line_file"
 
14374
(test "$HAVE_OPENSSL" = no) \
 
14375
  && at_fn_check_skip 77 "$at_srcdir/vconn.at:22"
 
14376
        { set +x
 
14377
$as_echo "$at_srcdir/vconn.at:22: cp \$abs_top_builddir/tests/testpki*.pem ."
 
14378
at_fn_check_prepare_dynamic "cp $abs_top_builddir/tests/testpki*.pem ." "vconn.at:22"
 
14379
( $at_check_trace; cp $abs_top_builddir/tests/testpki*.pem .
 
14380
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14381
at_status=$? at_failed=false
 
14382
$at_check_filter
 
14383
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14384
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14385
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14386
$at_failed && at_fn_log_failure
 
14387
$at_traceon; }
 
14388
 
 
14389
      { set +x
 
14390
$as_echo "$at_srcdir/vconn.at:22: test-vconn accept-then-close ssl"
 
14391
at_fn_check_prepare_trace "vconn.at:22"
 
14392
( $at_check_trace; test-vconn accept-then-close ssl
 
14393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14394
at_status=$? at_failed=false
 
14395
$at_check_filter
 
14396
echo stderr:; cat "$at_stderr"
 
14397
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14398
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14399
$at_failed && at_fn_log_failure
 
14400
$at_traceon; }
 
14401
 
 
14402
        set +x
 
14403
  $at_times_p && times >"$at_times_file"
 
14404
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14405
read at_status <"$at_status_file"
 
14406
#AT_STOP_152
 
14407
#AT_START_153
 
14408
at_fn_group_banner 153 'vconn.at:22' \
 
14409
  "ssl vconn - read hello" "                         " 16
 
14410
at_xfail=no
 
14411
(
 
14412
  $as_echo "153. $at_setup_line: testing $at_desc ..."
 
14413
  $at_traceon
 
14414
 
 
14415
 
 
14416
        $as_echo "vconn.at:22" >"$at_check_line_file"
 
14417
(test "$HAVE_OPENSSL" = no) \
 
14418
  && at_fn_check_skip 77 "$at_srcdir/vconn.at:22"
 
14419
        { set +x
 
14420
$as_echo "$at_srcdir/vconn.at:22: cp \$abs_top_builddir/tests/testpki*.pem ."
 
14421
at_fn_check_prepare_dynamic "cp $abs_top_builddir/tests/testpki*.pem ." "vconn.at:22"
 
14422
( $at_check_trace; cp $abs_top_builddir/tests/testpki*.pem .
 
14423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14424
at_status=$? at_failed=false
 
14425
$at_check_filter
 
14426
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14427
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14428
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14429
$at_failed && at_fn_log_failure
 
14430
$at_traceon; }
 
14431
 
 
14432
      { set +x
 
14433
$as_echo "$at_srcdir/vconn.at:22: test-vconn read-hello ssl"
 
14434
at_fn_check_prepare_trace "vconn.at:22"
 
14435
( $at_check_trace; test-vconn read-hello ssl
 
14436
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14437
at_status=$? at_failed=false
 
14438
$at_check_filter
 
14439
echo stderr:; cat "$at_stderr"
 
14440
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14441
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14442
$at_failed && at_fn_log_failure
 
14443
$at_traceon; }
 
14444
 
 
14445
        set +x
 
14446
  $at_times_p && times >"$at_times_file"
 
14447
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14448
read at_status <"$at_status_file"
 
14449
#AT_STOP_153
 
14450
#AT_START_154
 
14451
at_fn_group_banner 154 'vconn.at:22' \
 
14452
  "ssl vconn - send plain hello" "                   " 16
 
14453
at_xfail=no
 
14454
(
 
14455
  $as_echo "154. $at_setup_line: testing $at_desc ..."
 
14456
  $at_traceon
 
14457
 
 
14458
 
 
14459
        $as_echo "vconn.at:22" >"$at_check_line_file"
 
14460
(test "$HAVE_OPENSSL" = no) \
 
14461
  && at_fn_check_skip 77 "$at_srcdir/vconn.at:22"
 
14462
        { set +x
 
14463
$as_echo "$at_srcdir/vconn.at:22: cp \$abs_top_builddir/tests/testpki*.pem ."
 
14464
at_fn_check_prepare_dynamic "cp $abs_top_builddir/tests/testpki*.pem ." "vconn.at:22"
 
14465
( $at_check_trace; cp $abs_top_builddir/tests/testpki*.pem .
 
14466
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14467
at_status=$? at_failed=false
 
14468
$at_check_filter
 
14469
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14470
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14471
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14472
$at_failed && at_fn_log_failure
 
14473
$at_traceon; }
 
14474
 
 
14475
      { set +x
 
14476
$as_echo "$at_srcdir/vconn.at:22: test-vconn send-plain-hello ssl"
 
14477
at_fn_check_prepare_trace "vconn.at:22"
 
14478
( $at_check_trace; test-vconn send-plain-hello ssl
 
14479
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14480
at_status=$? at_failed=false
 
14481
$at_check_filter
 
14482
echo stderr:; cat "$at_stderr"
 
14483
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14484
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14485
$at_failed && at_fn_log_failure
 
14486
$at_traceon; }
 
14487
 
 
14488
        set +x
 
14489
  $at_times_p && times >"$at_times_file"
 
14490
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14491
read at_status <"$at_status_file"
 
14492
#AT_STOP_154
 
14493
#AT_START_155
 
14494
at_fn_group_banner 155 'vconn.at:22' \
 
14495
  "ssl vconn - send long hello" "                    " 16
 
14496
at_xfail=no
 
14497
(
 
14498
  $as_echo "155. $at_setup_line: testing $at_desc ..."
 
14499
  $at_traceon
 
14500
 
 
14501
 
 
14502
        $as_echo "vconn.at:22" >"$at_check_line_file"
 
14503
(test "$HAVE_OPENSSL" = no) \
 
14504
  && at_fn_check_skip 77 "$at_srcdir/vconn.at:22"
 
14505
        { set +x
 
14506
$as_echo "$at_srcdir/vconn.at:22: cp \$abs_top_builddir/tests/testpki*.pem ."
 
14507
at_fn_check_prepare_dynamic "cp $abs_top_builddir/tests/testpki*.pem ." "vconn.at:22"
 
14508
( $at_check_trace; cp $abs_top_builddir/tests/testpki*.pem .
 
14509
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14510
at_status=$? at_failed=false
 
14511
$at_check_filter
 
14512
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14513
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14514
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14515
$at_failed && at_fn_log_failure
 
14516
$at_traceon; }
 
14517
 
 
14518
      { set +x
 
14519
$as_echo "$at_srcdir/vconn.at:22: test-vconn send-long-hello ssl"
 
14520
at_fn_check_prepare_trace "vconn.at:22"
 
14521
( $at_check_trace; test-vconn send-long-hello ssl
 
14522
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14523
at_status=$? at_failed=false
 
14524
$at_check_filter
 
14525
echo stderr:; cat "$at_stderr"
 
14526
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14527
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14528
$at_failed && at_fn_log_failure
 
14529
$at_traceon; }
 
14530
 
 
14531
        set +x
 
14532
  $at_times_p && times >"$at_times_file"
 
14533
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14534
read at_status <"$at_status_file"
 
14535
#AT_STOP_155
 
14536
#AT_START_156
 
14537
at_fn_group_banner 156 'vconn.at:22' \
 
14538
  "ssl vconn - send echo hello" "                    " 16
 
14539
at_xfail=no
 
14540
(
 
14541
  $as_echo "156. $at_setup_line: testing $at_desc ..."
 
14542
  $at_traceon
 
14543
 
 
14544
 
 
14545
        $as_echo "vconn.at:22" >"$at_check_line_file"
 
14546
(test "$HAVE_OPENSSL" = no) \
 
14547
  && at_fn_check_skip 77 "$at_srcdir/vconn.at:22"
 
14548
        { set +x
 
14549
$as_echo "$at_srcdir/vconn.at:22: cp \$abs_top_builddir/tests/testpki*.pem ."
 
14550
at_fn_check_prepare_dynamic "cp $abs_top_builddir/tests/testpki*.pem ." "vconn.at:22"
 
14551
( $at_check_trace; cp $abs_top_builddir/tests/testpki*.pem .
 
14552
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14553
at_status=$? at_failed=false
 
14554
$at_check_filter
 
14555
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14556
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14557
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14558
$at_failed && at_fn_log_failure
 
14559
$at_traceon; }
 
14560
 
 
14561
      { set +x
 
14562
$as_echo "$at_srcdir/vconn.at:22: test-vconn send-echo-hello ssl"
 
14563
at_fn_check_prepare_trace "vconn.at:22"
 
14564
( $at_check_trace; test-vconn send-echo-hello ssl
 
14565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14566
at_status=$? at_failed=false
 
14567
$at_check_filter
 
14568
echo stderr:; cat "$at_stderr"
 
14569
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14570
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14571
$at_failed && at_fn_log_failure
 
14572
$at_traceon; }
 
14573
 
 
14574
        set +x
 
14575
  $at_times_p && times >"$at_times_file"
 
14576
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14577
read at_status <"$at_status_file"
 
14578
#AT_STOP_156
 
14579
#AT_START_157
 
14580
at_fn_group_banner 157 'vconn.at:22' \
 
14581
  "ssl vconn - send short hello" "                   " 16
 
14582
at_xfail=no
 
14583
(
 
14584
  $as_echo "157. $at_setup_line: testing $at_desc ..."
 
14585
  $at_traceon
 
14586
 
 
14587
 
 
14588
        $as_echo "vconn.at:22" >"$at_check_line_file"
 
14589
(test "$HAVE_OPENSSL" = no) \
 
14590
  && at_fn_check_skip 77 "$at_srcdir/vconn.at:22"
 
14591
        { set +x
 
14592
$as_echo "$at_srcdir/vconn.at:22: cp \$abs_top_builddir/tests/testpki*.pem ."
 
14593
at_fn_check_prepare_dynamic "cp $abs_top_builddir/tests/testpki*.pem ." "vconn.at:22"
 
14594
( $at_check_trace; cp $abs_top_builddir/tests/testpki*.pem .
 
14595
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14596
at_status=$? at_failed=false
 
14597
$at_check_filter
 
14598
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14599
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14600
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14601
$at_failed && at_fn_log_failure
 
14602
$at_traceon; }
 
14603
 
 
14604
      { set +x
 
14605
$as_echo "$at_srcdir/vconn.at:22: test-vconn send-short-hello ssl"
 
14606
at_fn_check_prepare_trace "vconn.at:22"
 
14607
( $at_check_trace; test-vconn send-short-hello ssl
 
14608
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14609
at_status=$? at_failed=false
 
14610
$at_check_filter
 
14611
echo stderr:; cat "$at_stderr"
 
14612
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14613
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14614
$at_failed && at_fn_log_failure
 
14615
$at_traceon; }
 
14616
 
 
14617
        set +x
 
14618
  $at_times_p && times >"$at_times_file"
 
14619
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14620
read at_status <"$at_status_file"
 
14621
#AT_STOP_157
 
14622
#AT_START_158
 
14623
at_fn_group_banner 158 'vconn.at:22' \
 
14624
  "ssl vconn - send invalid version hello" "         " 16
 
14625
at_xfail=no
 
14626
(
 
14627
  $as_echo "158. $at_setup_line: testing $at_desc ..."
 
14628
  $at_traceon
 
14629
 
 
14630
 
 
14631
        $as_echo "vconn.at:22" >"$at_check_line_file"
 
14632
(test "$HAVE_OPENSSL" = no) \
 
14633
  && at_fn_check_skip 77 "$at_srcdir/vconn.at:22"
 
14634
        { set +x
 
14635
$as_echo "$at_srcdir/vconn.at:22: cp \$abs_top_builddir/tests/testpki*.pem ."
 
14636
at_fn_check_prepare_dynamic "cp $abs_top_builddir/tests/testpki*.pem ." "vconn.at:22"
 
14637
( $at_check_trace; cp $abs_top_builddir/tests/testpki*.pem .
 
14638
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14639
at_status=$? at_failed=false
 
14640
$at_check_filter
 
14641
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14642
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14643
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14644
$at_failed && at_fn_log_failure
 
14645
$at_traceon; }
 
14646
 
 
14647
      { set +x
 
14648
$as_echo "$at_srcdir/vconn.at:22: test-vconn send-invalid-version-hello ssl"
 
14649
at_fn_check_prepare_trace "vconn.at:22"
 
14650
( $at_check_trace; test-vconn send-invalid-version-hello ssl
 
14651
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14652
at_status=$? at_failed=false
 
14653
$at_check_filter
 
14654
echo stderr:; cat "$at_stderr"
 
14655
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
14656
at_fn_check_status 0 $at_status "$at_srcdir/vconn.at:22"
 
14657
$at_failed && at_fn_log_failure
 
14658
$at_traceon; }
 
14659
 
 
14660
        set +x
 
14661
  $at_times_p && times >"$at_times_file"
 
14662
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14663
read at_status <"$at_status_file"
 
14664
#AT_STOP_158
 
14665
#AT_START_159
 
14666
at_fn_group_banner 159 'file_name.at:12' \
 
14667
  "components of \"/usr/lib\" are \"/usr\", \"lib\"" "     " 17
 
14668
at_xfail=no
 
14669
(
 
14670
  $as_echo "159. $at_setup_line: testing $at_desc ..."
 
14671
  $at_traceon
 
14672
 
 
14673
 
 
14674
   { set +x
 
14675
$as_echo "$at_srcdir/file_name.at:12: test-file_name \"/usr/lib\""
 
14676
at_fn_check_prepare_trace "file_name.at:12"
 
14677
( $at_check_trace; test-file_name "/usr/lib"
 
14678
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14679
at_status=$? at_failed=false
 
14680
$at_check_filter
 
14681
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14682
echo >>"$at_stdout"; $as_echo "/usr
 
14683
lib
 
14684
" | \
 
14685
  $at_diff - "$at_stdout" || at_failed=:
 
14686
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:12"
 
14687
$at_failed && at_fn_log_failure
 
14688
$at_traceon; }
 
14689
 
 
14690
     set +x
 
14691
  $at_times_p && times >"$at_times_file"
 
14692
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14693
read at_status <"$at_status_file"
 
14694
#AT_STOP_159
 
14695
#AT_START_160
 
14696
at_fn_group_banner 160 'file_name.at:13' \
 
14697
  "components of \"/usr/\" are \"/\", \"usr\"" "           " 17
 
14698
at_xfail=no
 
14699
(
 
14700
  $as_echo "160. $at_setup_line: testing $at_desc ..."
 
14701
  $at_traceon
 
14702
 
 
14703
 
 
14704
   { set +x
 
14705
$as_echo "$at_srcdir/file_name.at:13: test-file_name \"/usr/\""
 
14706
at_fn_check_prepare_trace "file_name.at:13"
 
14707
( $at_check_trace; test-file_name "/usr/"
 
14708
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14709
at_status=$? at_failed=false
 
14710
$at_check_filter
 
14711
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14712
echo >>"$at_stdout"; $as_echo "/
 
14713
usr
 
14714
" | \
 
14715
  $at_diff - "$at_stdout" || at_failed=:
 
14716
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:13"
 
14717
$at_failed && at_fn_log_failure
 
14718
$at_traceon; }
 
14719
 
 
14720
     set +x
 
14721
  $at_times_p && times >"$at_times_file"
 
14722
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14723
read at_status <"$at_status_file"
 
14724
#AT_STOP_160
 
14725
#AT_START_161
 
14726
at_fn_group_banner 161 'file_name.at:14' \
 
14727
  "components of \"usr\" are \".\", \"usr\"" "             " 17
 
14728
at_xfail=no
 
14729
(
 
14730
  $as_echo "161. $at_setup_line: testing $at_desc ..."
 
14731
  $at_traceon
 
14732
 
 
14733
 
 
14734
   { set +x
 
14735
$as_echo "$at_srcdir/file_name.at:14: test-file_name \"usr\""
 
14736
at_fn_check_prepare_trace "file_name.at:14"
 
14737
( $at_check_trace; test-file_name "usr"
 
14738
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14739
at_status=$? at_failed=false
 
14740
$at_check_filter
 
14741
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14742
echo >>"$at_stdout"; $as_echo ".
 
14743
usr
 
14744
" | \
 
14745
  $at_diff - "$at_stdout" || at_failed=:
 
14746
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:14"
 
14747
$at_failed && at_fn_log_failure
 
14748
$at_traceon; }
 
14749
 
 
14750
     set +x
 
14751
  $at_times_p && times >"$at_times_file"
 
14752
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14753
read at_status <"$at_status_file"
 
14754
#AT_STOP_161
 
14755
#AT_START_162
 
14756
at_fn_group_banner 162 'file_name.at:15' \
 
14757
  "components of \"/\" are \"/\", \"/\"" "                 " 17
 
14758
at_xfail=no
 
14759
(
 
14760
  $as_echo "162. $at_setup_line: testing $at_desc ..."
 
14761
  $at_traceon
 
14762
 
 
14763
 
 
14764
   { set +x
 
14765
$as_echo "$at_srcdir/file_name.at:15: test-file_name \"/\""
 
14766
at_fn_check_prepare_trace "file_name.at:15"
 
14767
( $at_check_trace; test-file_name "/"
 
14768
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14769
at_status=$? at_failed=false
 
14770
$at_check_filter
 
14771
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14772
echo >>"$at_stdout"; $as_echo "/
 
14773
/
 
14774
" | \
 
14775
  $at_diff - "$at_stdout" || at_failed=:
 
14776
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:15"
 
14777
$at_failed && at_fn_log_failure
 
14778
$at_traceon; }
 
14779
 
 
14780
     set +x
 
14781
  $at_times_p && times >"$at_times_file"
 
14782
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14783
read at_status <"$at_status_file"
 
14784
#AT_STOP_162
 
14785
#AT_START_163
 
14786
at_fn_group_banner 163 'file_name.at:16' \
 
14787
  "components of \".\" are \".\", \".\"" "                 " 17
 
14788
at_xfail=no
 
14789
(
 
14790
  $as_echo "163. $at_setup_line: testing $at_desc ..."
 
14791
  $at_traceon
 
14792
 
 
14793
 
 
14794
   { set +x
 
14795
$as_echo "$at_srcdir/file_name.at:16: test-file_name \".\""
 
14796
at_fn_check_prepare_trace "file_name.at:16"
 
14797
( $at_check_trace; test-file_name "."
 
14798
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14799
at_status=$? at_failed=false
 
14800
$at_check_filter
 
14801
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14802
echo >>"$at_stdout"; $as_echo ".
 
14803
.
 
14804
" | \
 
14805
  $at_diff - "$at_stdout" || at_failed=:
 
14806
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:16"
 
14807
$at_failed && at_fn_log_failure
 
14808
$at_traceon; }
 
14809
 
 
14810
     set +x
 
14811
  $at_times_p && times >"$at_times_file"
 
14812
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14813
read at_status <"$at_status_file"
 
14814
#AT_STOP_163
 
14815
#AT_START_164
 
14816
at_fn_group_banner 164 'file_name.at:17' \
 
14817
  "components of \"..\" are \".\", \"..\"" "               " 17
 
14818
at_xfail=no
 
14819
(
 
14820
  $as_echo "164. $at_setup_line: testing $at_desc ..."
 
14821
  $at_traceon
 
14822
 
 
14823
 
 
14824
   { set +x
 
14825
$as_echo "$at_srcdir/file_name.at:17: test-file_name \"..\""
 
14826
at_fn_check_prepare_trace "file_name.at:17"
 
14827
( $at_check_trace; test-file_name ".."
 
14828
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14829
at_status=$? at_failed=false
 
14830
$at_check_filter
 
14831
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14832
echo >>"$at_stdout"; $as_echo ".
 
14833
..
 
14834
" | \
 
14835
  $at_diff - "$at_stdout" || at_failed=:
 
14836
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:17"
 
14837
$at_failed && at_fn_log_failure
 
14838
$at_traceon; }
 
14839
 
 
14840
     set +x
 
14841
  $at_times_p && times >"$at_times_file"
 
14842
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14843
read at_status <"$at_status_file"
 
14844
#AT_STOP_164
 
14845
#AT_START_165
 
14846
at_fn_group_banner 165 'file_name.at:18' \
 
14847
  "components of \"//\" are \"//\", \"//\"" "              " 17
 
14848
at_xfail=no
 
14849
(
 
14850
  $as_echo "165. $at_setup_line: testing $at_desc ..."
 
14851
  $at_traceon
 
14852
 
 
14853
 
 
14854
   { set +x
 
14855
$as_echo "$at_srcdir/file_name.at:18: test-file_name \"//\""
 
14856
at_fn_check_prepare_trace "file_name.at:18"
 
14857
( $at_check_trace; test-file_name "//"
 
14858
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14859
at_status=$? at_failed=false
 
14860
$at_check_filter
 
14861
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14862
echo >>"$at_stdout"; $as_echo "//
 
14863
//
 
14864
" | \
 
14865
  $at_diff - "$at_stdout" || at_failed=:
 
14866
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:18"
 
14867
$at_failed && at_fn_log_failure
 
14868
$at_traceon; }
 
14869
 
 
14870
     set +x
 
14871
  $at_times_p && times >"$at_times_file"
 
14872
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14873
read at_status <"$at_status_file"
 
14874
#AT_STOP_165
 
14875
#AT_START_166
 
14876
at_fn_group_banner 166 'file_name.at:19' \
 
14877
  "components of \"//foo\" are \"//\", \"foo\"" "          " 17
 
14878
at_xfail=no
 
14879
(
 
14880
  $as_echo "166. $at_setup_line: testing $at_desc ..."
 
14881
  $at_traceon
 
14882
 
 
14883
 
 
14884
   { set +x
 
14885
$as_echo "$at_srcdir/file_name.at:19: test-file_name \"//foo\""
 
14886
at_fn_check_prepare_trace "file_name.at:19"
 
14887
( $at_check_trace; test-file_name "//foo"
 
14888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14889
at_status=$? at_failed=false
 
14890
$at_check_filter
 
14891
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14892
echo >>"$at_stdout"; $as_echo "//
 
14893
foo
 
14894
" | \
 
14895
  $at_diff - "$at_stdout" || at_failed=:
 
14896
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:19"
 
14897
$at_failed && at_fn_log_failure
 
14898
$at_traceon; }
 
14899
 
 
14900
     set +x
 
14901
  $at_times_p && times >"$at_times_file"
 
14902
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14903
read at_status <"$at_status_file"
 
14904
#AT_STOP_166
 
14905
#AT_START_167
 
14906
at_fn_group_banner 167 'file_name.at:20' \
 
14907
  "components of \"\" are \".\", \".\"" "                  " 17
 
14908
at_xfail=no
 
14909
(
 
14910
  $as_echo "167. $at_setup_line: testing $at_desc ..."
 
14911
  $at_traceon
 
14912
 
 
14913
 
 
14914
   { set +x
 
14915
$as_echo "$at_srcdir/file_name.at:20: test-file_name \"\""
 
14916
at_fn_check_prepare_trace "file_name.at:20"
 
14917
( $at_check_trace; test-file_name ""
 
14918
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14919
at_status=$? at_failed=false
 
14920
$at_check_filter
 
14921
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14922
echo >>"$at_stdout"; $as_echo ".
 
14923
.
 
14924
" | \
 
14925
  $at_diff - "$at_stdout" || at_failed=:
 
14926
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:20"
 
14927
$at_failed && at_fn_log_failure
 
14928
$at_traceon; }
 
14929
 
 
14930
     set +x
 
14931
  $at_times_p && times >"$at_times_file"
 
14932
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14933
read at_status <"$at_status_file"
 
14934
#AT_STOP_167
 
14935
#AT_START_168
 
14936
at_fn_group_banner 168 'file_name.at:23' \
 
14937
  "components of \"dir/file\" are \"dir\", \"file\"" "     " 17
 
14938
at_xfail=no
 
14939
(
 
14940
  $as_echo "168. $at_setup_line: testing $at_desc ..."
 
14941
  $at_traceon
 
14942
 
 
14943
 
 
14944
   { set +x
 
14945
$as_echo "$at_srcdir/file_name.at:23: test-file_name \"dir/file\""
 
14946
at_fn_check_prepare_trace "file_name.at:23"
 
14947
( $at_check_trace; test-file_name "dir/file"
 
14948
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14949
at_status=$? at_failed=false
 
14950
$at_check_filter
 
14951
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14952
echo >>"$at_stdout"; $as_echo "dir
 
14953
file
 
14954
" | \
 
14955
  $at_diff - "$at_stdout" || at_failed=:
 
14956
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:23"
 
14957
$at_failed && at_fn_log_failure
 
14958
$at_traceon; }
 
14959
 
 
14960
     set +x
 
14961
  $at_times_p && times >"$at_times_file"
 
14962
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14963
read at_status <"$at_status_file"
 
14964
#AT_STOP_168
 
14965
#AT_START_169
 
14966
at_fn_group_banner 169 'file_name.at:24' \
 
14967
  "components of \"dir/file/\" are \"dir\", \"file\"" "    " 17
 
14968
at_xfail=no
 
14969
(
 
14970
  $as_echo "169. $at_setup_line: testing $at_desc ..."
 
14971
  $at_traceon
 
14972
 
 
14973
 
 
14974
   { set +x
 
14975
$as_echo "$at_srcdir/file_name.at:24: test-file_name \"dir/file/\""
 
14976
at_fn_check_prepare_trace "file_name.at:24"
 
14977
( $at_check_trace; test-file_name "dir/file/"
 
14978
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
14979
at_status=$? at_failed=false
 
14980
$at_check_filter
 
14981
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
14982
echo >>"$at_stdout"; $as_echo "dir
 
14983
file
 
14984
" | \
 
14985
  $at_diff - "$at_stdout" || at_failed=:
 
14986
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:24"
 
14987
$at_failed && at_fn_log_failure
 
14988
$at_traceon; }
 
14989
 
 
14990
     set +x
 
14991
  $at_times_p && times >"$at_times_file"
 
14992
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
14993
read at_status <"$at_status_file"
 
14994
#AT_STOP_169
 
14995
#AT_START_170
 
14996
at_fn_group_banner 170 'file_name.at:25' \
 
14997
  "components of \"dir/file//\" are \"dir\", \"file\"" "   " 17
 
14998
at_xfail=no
 
14999
(
 
15000
  $as_echo "170. $at_setup_line: testing $at_desc ..."
 
15001
  $at_traceon
 
15002
 
 
15003
 
 
15004
   { set +x
 
15005
$as_echo "$at_srcdir/file_name.at:25: test-file_name \"dir/file//\""
 
15006
at_fn_check_prepare_trace "file_name.at:25"
 
15007
( $at_check_trace; test-file_name "dir/file//"
 
15008
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15009
at_status=$? at_failed=false
 
15010
$at_check_filter
 
15011
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15012
echo >>"$at_stdout"; $as_echo "dir
 
15013
file
 
15014
" | \
 
15015
  $at_diff - "$at_stdout" || at_failed=:
 
15016
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:25"
 
15017
$at_failed && at_fn_log_failure
 
15018
$at_traceon; }
 
15019
 
 
15020
     set +x
 
15021
  $at_times_p && times >"$at_times_file"
 
15022
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15023
read at_status <"$at_status_file"
 
15024
#AT_STOP_170
 
15025
#AT_START_171
 
15026
at_fn_group_banner 171 'file_name.at:26' \
 
15027
  "components of \"///foo\" are \"/\", \"foo\"" "          " 17
 
15028
at_xfail=no
 
15029
(
 
15030
  $as_echo "171. $at_setup_line: testing $at_desc ..."
 
15031
  $at_traceon
 
15032
 
 
15033
 
 
15034
   { set +x
 
15035
$as_echo "$at_srcdir/file_name.at:26: test-file_name \"///foo\""
 
15036
at_fn_check_prepare_trace "file_name.at:26"
 
15037
( $at_check_trace; test-file_name "///foo"
 
15038
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15039
at_status=$? at_failed=false
 
15040
$at_check_filter
 
15041
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15042
echo >>"$at_stdout"; $as_echo "/
 
15043
foo
 
15044
" | \
 
15045
  $at_diff - "$at_stdout" || at_failed=:
 
15046
at_fn_check_status 0 $at_status "$at_srcdir/file_name.at:26"
 
15047
$at_failed && at_fn_log_failure
 
15048
$at_traceon; }
 
15049
 
 
15050
     set +x
 
15051
  $at_times_p && times >"$at_times_file"
 
15052
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15053
read at_status <"$at_status_file"
 
15054
#AT_STOP_171
 
15055
#AT_START_172
 
15056
at_fn_group_banner 172 'aes128.at:10' \
 
15057
  "wikipedia test vector 1" "                        " 18
 
15058
at_xfail=no
 
15059
(
 
15060
  $as_echo "172. $at_setup_line: testing $at_desc ..."
 
15061
  $at_traceon
 
15062
 
 
15063
 
 
15064
   { set +x
 
15065
$as_echo "$at_srcdir/aes128.at:10: test-aes128 00010203050607080a0b0c0d0f101112 506812a45f08c889b97f5980038b8359"
 
15066
at_fn_check_prepare_trace "aes128.at:10"
 
15067
( $at_check_trace; test-aes128 00010203050607080a0b0c0d0f101112 506812a45f08c889b97f5980038b8359
 
15068
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15069
at_status=$? at_failed=false
 
15070
$at_check_filter
 
15071
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15072
echo >>"$at_stdout"; $as_echo "d8f532538289ef7d06b506a4fd5be9c9
 
15073
" | \
 
15074
  $at_diff - "$at_stdout" || at_failed=:
 
15075
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:10"
 
15076
$at_failed && at_fn_log_failure
 
15077
$at_traceon; }
 
15078
 
 
15079
     set +x
 
15080
  $at_times_p && times >"$at_times_file"
 
15081
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15082
read at_status <"$at_status_file"
 
15083
#AT_STOP_172
 
15084
#AT_START_173
 
15085
at_fn_group_banner 173 'aes128.at:16' \
 
15086
  "wikipedia test vector 2" "                        " 18
 
15087
at_xfail=no
 
15088
(
 
15089
  $as_echo "173. $at_setup_line: testing $at_desc ..."
 
15090
  $at_traceon
 
15091
 
 
15092
 
 
15093
   { set +x
 
15094
$as_echo "$at_srcdir/aes128.at:16: test-aes128 95A8EE8E89979B9EFDCBC6EB9797528D 4ec137a426dabf8aa0beb8bc0c2b89d6"
 
15095
at_fn_check_prepare_trace "aes128.at:16"
 
15096
( $at_check_trace; test-aes128 95A8EE8E89979B9EFDCBC6EB9797528D 4ec137a426dabf8aa0beb8bc0c2b89d6
 
15097
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15098
at_status=$? at_failed=false
 
15099
$at_check_filter
 
15100
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15101
echo >>"$at_stdout"; $as_echo "d9b65d1232ba0199cdbd487b2a1fd646
 
15102
" | \
 
15103
  $at_diff - "$at_stdout" || at_failed=:
 
15104
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:16"
 
15105
$at_failed && at_fn_log_failure
 
15106
$at_traceon; }
 
15107
 
 
15108
     set +x
 
15109
  $at_times_p && times >"$at_times_file"
 
15110
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15111
read at_status <"$at_status_file"
 
15112
#AT_STOP_173
 
15113
#AT_START_174
 
15114
at_fn_group_banner 174 'aes128.at:22' \
 
15115
  "NIST KAT ECBKeySbox128e vector 0" "               " 18
 
15116
at_xfail=no
 
15117
(
 
15118
  $as_echo "174. $at_setup_line: testing $at_desc ..."
 
15119
  $at_traceon
 
15120
 
 
15121
 
 
15122
   { set +x
 
15123
$as_echo "$at_srcdir/aes128.at:22: test-aes128 10a58869d74be5a374cf867cfb473859 00000000000000000000000000000000"
 
15124
at_fn_check_prepare_trace "aes128.at:22"
 
15125
( $at_check_trace; test-aes128 10a58869d74be5a374cf867cfb473859 00000000000000000000000000000000
 
15126
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15127
at_status=$? at_failed=false
 
15128
$at_check_filter
 
15129
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15130
echo >>"$at_stdout"; $as_echo "6d251e6944b051e04eaa6fb4dbf78465
 
15131
" | \
 
15132
  $at_diff - "$at_stdout" || at_failed=:
 
15133
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:22"
 
15134
$at_failed && at_fn_log_failure
 
15135
$at_traceon; }
 
15136
 
 
15137
     set +x
 
15138
  $at_times_p && times >"$at_times_file"
 
15139
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15140
read at_status <"$at_status_file"
 
15141
#AT_STOP_174
 
15142
#AT_START_175
 
15143
at_fn_group_banner 175 'aes128.at:28' \
 
15144
  "NIST KAT ECBKeySbox128e vector 1" "               " 18
 
15145
at_xfail=no
 
15146
(
 
15147
  $as_echo "175. $at_setup_line: testing $at_desc ..."
 
15148
  $at_traceon
 
15149
 
 
15150
 
 
15151
   { set +x
 
15152
$as_echo "$at_srcdir/aes128.at:28: test-aes128 caea65cdbb75e9169ecd22ebe6e54675 00000000000000000000000000000000"
 
15153
at_fn_check_prepare_trace "aes128.at:28"
 
15154
( $at_check_trace; test-aes128 caea65cdbb75e9169ecd22ebe6e54675 00000000000000000000000000000000
 
15155
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15156
at_status=$? at_failed=false
 
15157
$at_check_filter
 
15158
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15159
echo >>"$at_stdout"; $as_echo "6e29201190152df4ee058139def610bb
 
15160
" | \
 
15161
  $at_diff - "$at_stdout" || at_failed=:
 
15162
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:28"
 
15163
$at_failed && at_fn_log_failure
 
15164
$at_traceon; }
 
15165
 
 
15166
     set +x
 
15167
  $at_times_p && times >"$at_times_file"
 
15168
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15169
read at_status <"$at_status_file"
 
15170
#AT_STOP_175
 
15171
#AT_START_176
 
15172
at_fn_group_banner 176 'aes128.at:34' \
 
15173
  "NIST KAT ECBKeySbox128e vector 2" "               " 18
 
15174
at_xfail=no
 
15175
(
 
15176
  $as_echo "176. $at_setup_line: testing $at_desc ..."
 
15177
  $at_traceon
 
15178
 
 
15179
 
 
15180
   { set +x
 
15181
$as_echo "$at_srcdir/aes128.at:34: test-aes128 a2e2fa9baf7d20822ca9f0542f764a41 00000000000000000000000000000000"
 
15182
at_fn_check_prepare_trace "aes128.at:34"
 
15183
( $at_check_trace; test-aes128 a2e2fa9baf7d20822ca9f0542f764a41 00000000000000000000000000000000
 
15184
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15185
at_status=$? at_failed=false
 
15186
$at_check_filter
 
15187
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15188
echo >>"$at_stdout"; $as_echo "c3b44b95d9d2f25670eee9a0de099fa3
 
15189
" | \
 
15190
  $at_diff - "$at_stdout" || at_failed=:
 
15191
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:34"
 
15192
$at_failed && at_fn_log_failure
 
15193
$at_traceon; }
 
15194
 
 
15195
     set +x
 
15196
  $at_times_p && times >"$at_times_file"
 
15197
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15198
read at_status <"$at_status_file"
 
15199
#AT_STOP_176
 
15200
#AT_START_177
 
15201
at_fn_group_banner 177 'aes128.at:40' \
 
15202
  "NIST KAT ECBKeySbox128e vector 3" "               " 18
 
15203
at_xfail=no
 
15204
(
 
15205
  $as_echo "177. $at_setup_line: testing $at_desc ..."
 
15206
  $at_traceon
 
15207
 
 
15208
 
 
15209
   { set +x
 
15210
$as_echo "$at_srcdir/aes128.at:40: test-aes128 b6364ac4e1de1e285eaf144a2415f7a0 00000000000000000000000000000000"
 
15211
at_fn_check_prepare_trace "aes128.at:40"
 
15212
( $at_check_trace; test-aes128 b6364ac4e1de1e285eaf144a2415f7a0 00000000000000000000000000000000
 
15213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15214
at_status=$? at_failed=false
 
15215
$at_check_filter
 
15216
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15217
echo >>"$at_stdout"; $as_echo "5d9b05578fc944b3cf1ccf0e746cd581
 
15218
" | \
 
15219
  $at_diff - "$at_stdout" || at_failed=:
 
15220
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:40"
 
15221
$at_failed && at_fn_log_failure
 
15222
$at_traceon; }
 
15223
 
 
15224
     set +x
 
15225
  $at_times_p && times >"$at_times_file"
 
15226
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15227
read at_status <"$at_status_file"
 
15228
#AT_STOP_177
 
15229
#AT_START_178
 
15230
at_fn_group_banner 178 'aes128.at:46' \
 
15231
  "NIST KAT ECBKeySbox128e vector 4" "               " 18
 
15232
at_xfail=no
 
15233
(
 
15234
  $as_echo "178. $at_setup_line: testing $at_desc ..."
 
15235
  $at_traceon
 
15236
 
 
15237
 
 
15238
   { set +x
 
15239
$as_echo "$at_srcdir/aes128.at:46: test-aes128 64cf9c7abc50b888af65f49d521944b2 00000000000000000000000000000000"
 
15240
at_fn_check_prepare_trace "aes128.at:46"
 
15241
( $at_check_trace; test-aes128 64cf9c7abc50b888af65f49d521944b2 00000000000000000000000000000000
 
15242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15243
at_status=$? at_failed=false
 
15244
$at_check_filter
 
15245
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15246
echo >>"$at_stdout"; $as_echo "f7efc89d5dba578104016ce5ad659c05
 
15247
" | \
 
15248
  $at_diff - "$at_stdout" || at_failed=:
 
15249
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:46"
 
15250
$at_failed && at_fn_log_failure
 
15251
$at_traceon; }
 
15252
 
 
15253
     set +x
 
15254
  $at_times_p && times >"$at_times_file"
 
15255
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15256
read at_status <"$at_status_file"
 
15257
#AT_STOP_178
 
15258
#AT_START_179
 
15259
at_fn_group_banner 179 'aes128.at:52' \
 
15260
  "NIST KAT ECBKeySbox128e vector 5" "               " 18
 
15261
at_xfail=no
 
15262
(
 
15263
  $as_echo "179. $at_setup_line: testing $at_desc ..."
 
15264
  $at_traceon
 
15265
 
 
15266
 
 
15267
   { set +x
 
15268
$as_echo "$at_srcdir/aes128.at:52: test-aes128 47d6742eefcc0465dc96355e851b64d9 00000000000000000000000000000000"
 
15269
at_fn_check_prepare_trace "aes128.at:52"
 
15270
( $at_check_trace; test-aes128 47d6742eefcc0465dc96355e851b64d9 00000000000000000000000000000000
 
15271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15272
at_status=$? at_failed=false
 
15273
$at_check_filter
 
15274
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15275
echo >>"$at_stdout"; $as_echo "0306194f666d183624aa230a8b264ae7
 
15276
" | \
 
15277
  $at_diff - "$at_stdout" || at_failed=:
 
15278
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:52"
 
15279
$at_failed && at_fn_log_failure
 
15280
$at_traceon; }
 
15281
 
 
15282
     set +x
 
15283
  $at_times_p && times >"$at_times_file"
 
15284
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15285
read at_status <"$at_status_file"
 
15286
#AT_STOP_179
 
15287
#AT_START_180
 
15288
at_fn_group_banner 180 'aes128.at:58' \
 
15289
  "NIST KAT ECBKeySbox128e vector 6" "               " 18
 
15290
at_xfail=no
 
15291
(
 
15292
  $as_echo "180. $at_setup_line: testing $at_desc ..."
 
15293
  $at_traceon
 
15294
 
 
15295
 
 
15296
   { set +x
 
15297
$as_echo "$at_srcdir/aes128.at:58: test-aes128 3eb39790678c56bee34bbcdeccf6cdb5 00000000000000000000000000000000"
 
15298
at_fn_check_prepare_trace "aes128.at:58"
 
15299
( $at_check_trace; test-aes128 3eb39790678c56bee34bbcdeccf6cdb5 00000000000000000000000000000000
 
15300
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15301
at_status=$? at_failed=false
 
15302
$at_check_filter
 
15303
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15304
echo >>"$at_stdout"; $as_echo "858075d536d79ccee571f7d7204b1f67
 
15305
" | \
 
15306
  $at_diff - "$at_stdout" || at_failed=:
 
15307
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:58"
 
15308
$at_failed && at_fn_log_failure
 
15309
$at_traceon; }
 
15310
 
 
15311
     set +x
 
15312
  $at_times_p && times >"$at_times_file"
 
15313
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15314
read at_status <"$at_status_file"
 
15315
#AT_STOP_180
 
15316
#AT_START_181
 
15317
at_fn_group_banner 181 'aes128.at:64' \
 
15318
  "NIST KAT ECBKeySbox128e vector 7" "               " 18
 
15319
at_xfail=no
 
15320
(
 
15321
  $as_echo "181. $at_setup_line: testing $at_desc ..."
 
15322
  $at_traceon
 
15323
 
 
15324
 
 
15325
   { set +x
 
15326
$as_echo "$at_srcdir/aes128.at:64: test-aes128 64110a924f0743d500ccadae72c13427 00000000000000000000000000000000"
 
15327
at_fn_check_prepare_trace "aes128.at:64"
 
15328
( $at_check_trace; test-aes128 64110a924f0743d500ccadae72c13427 00000000000000000000000000000000
 
15329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15330
at_status=$? at_failed=false
 
15331
$at_check_filter
 
15332
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15333
echo >>"$at_stdout"; $as_echo "35870c6a57e9e92314bcb8087cde72ce
 
15334
" | \
 
15335
  $at_diff - "$at_stdout" || at_failed=:
 
15336
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:64"
 
15337
$at_failed && at_fn_log_failure
 
15338
$at_traceon; }
 
15339
 
 
15340
     set +x
 
15341
  $at_times_p && times >"$at_times_file"
 
15342
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15343
read at_status <"$at_status_file"
 
15344
#AT_STOP_181
 
15345
#AT_START_182
 
15346
at_fn_group_banner 182 'aes128.at:70' \
 
15347
  "NIST KAT ECBKeySbox128e vector 8" "               " 18
 
15348
at_xfail=no
 
15349
(
 
15350
  $as_echo "182. $at_setup_line: testing $at_desc ..."
 
15351
  $at_traceon
 
15352
 
 
15353
 
 
15354
   { set +x
 
15355
$as_echo "$at_srcdir/aes128.at:70: test-aes128 18d8126516f8a12ab1a36d9f04d68e51 00000000000000000000000000000000"
 
15356
at_fn_check_prepare_trace "aes128.at:70"
 
15357
( $at_check_trace; test-aes128 18d8126516f8a12ab1a36d9f04d68e51 00000000000000000000000000000000
 
15358
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15359
at_status=$? at_failed=false
 
15360
$at_check_filter
 
15361
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15362
echo >>"$at_stdout"; $as_echo "6c68e9be5ec41e22c825b7c7affb4363
 
15363
" | \
 
15364
  $at_diff - "$at_stdout" || at_failed=:
 
15365
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:70"
 
15366
$at_failed && at_fn_log_failure
 
15367
$at_traceon; }
 
15368
 
 
15369
     set +x
 
15370
  $at_times_p && times >"$at_times_file"
 
15371
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15372
read at_status <"$at_status_file"
 
15373
#AT_STOP_182
 
15374
#AT_START_183
 
15375
at_fn_group_banner 183 'aes128.at:76' \
 
15376
  "NIST KAT ECBKeySbox128e vector 9" "               " 18
 
15377
at_xfail=no
 
15378
(
 
15379
  $as_echo "183. $at_setup_line: testing $at_desc ..."
 
15380
  $at_traceon
 
15381
 
 
15382
 
 
15383
   { set +x
 
15384
$as_echo "$at_srcdir/aes128.at:76: test-aes128 f530357968578480b398a3c251cd1093 00000000000000000000000000000000"
 
15385
at_fn_check_prepare_trace "aes128.at:76"
 
15386
( $at_check_trace; test-aes128 f530357968578480b398a3c251cd1093 00000000000000000000000000000000
 
15387
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15388
at_status=$? at_failed=false
 
15389
$at_check_filter
 
15390
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15391
echo >>"$at_stdout"; $as_echo "f5df39990fc688f1b07224cc03e86cea
 
15392
" | \
 
15393
  $at_diff - "$at_stdout" || at_failed=:
 
15394
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:76"
 
15395
$at_failed && at_fn_log_failure
 
15396
$at_traceon; }
 
15397
 
 
15398
     set +x
 
15399
  $at_times_p && times >"$at_times_file"
 
15400
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15401
read at_status <"$at_status_file"
 
15402
#AT_STOP_183
 
15403
#AT_START_184
 
15404
at_fn_group_banner 184 'aes128.at:82' \
 
15405
  "NIST KAT ECBKeySbox128e vector 10" "              " 18
 
15406
at_xfail=no
 
15407
(
 
15408
  $as_echo "184. $at_setup_line: testing $at_desc ..."
 
15409
  $at_traceon
 
15410
 
 
15411
 
 
15412
   { set +x
 
15413
$as_echo "$at_srcdir/aes128.at:82: test-aes128 da84367f325d42d601b4326964802e8e 00000000000000000000000000000000"
 
15414
at_fn_check_prepare_trace "aes128.at:82"
 
15415
( $at_check_trace; test-aes128 da84367f325d42d601b4326964802e8e 00000000000000000000000000000000
 
15416
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15417
at_status=$? at_failed=false
 
15418
$at_check_filter
 
15419
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15420
echo >>"$at_stdout"; $as_echo "bba071bcb470f8f6586e5d3add18bc66
 
15421
" | \
 
15422
  $at_diff - "$at_stdout" || at_failed=:
 
15423
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:82"
 
15424
$at_failed && at_fn_log_failure
 
15425
$at_traceon; }
 
15426
 
 
15427
     set +x
 
15428
  $at_times_p && times >"$at_times_file"
 
15429
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15430
read at_status <"$at_status_file"
 
15431
#AT_STOP_184
 
15432
#AT_START_185
 
15433
at_fn_group_banner 185 'aes128.at:88' \
 
15434
  "NIST KAT ECBKeySbox128e vector 11" "              " 18
 
15435
at_xfail=no
 
15436
(
 
15437
  $as_echo "185. $at_setup_line: testing $at_desc ..."
 
15438
  $at_traceon
 
15439
 
 
15440
 
 
15441
   { set +x
 
15442
$as_echo "$at_srcdir/aes128.at:88: test-aes128 e37b1c6aa2846f6fdb413f238b089f23 00000000000000000000000000000000"
 
15443
at_fn_check_prepare_trace "aes128.at:88"
 
15444
( $at_check_trace; test-aes128 e37b1c6aa2846f6fdb413f238b089f23 00000000000000000000000000000000
 
15445
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15446
at_status=$? at_failed=false
 
15447
$at_check_filter
 
15448
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15449
echo >>"$at_stdout"; $as_echo "43c9f7e62f5d288bb27aa40ef8fe1ea8
 
15450
" | \
 
15451
  $at_diff - "$at_stdout" || at_failed=:
 
15452
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:88"
 
15453
$at_failed && at_fn_log_failure
 
15454
$at_traceon; }
 
15455
 
 
15456
     set +x
 
15457
  $at_times_p && times >"$at_times_file"
 
15458
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15459
read at_status <"$at_status_file"
 
15460
#AT_STOP_185
 
15461
#AT_START_186
 
15462
at_fn_group_banner 186 'aes128.at:94' \
 
15463
  "NIST KAT ECBKeySbox128e vector 12" "              " 18
 
15464
at_xfail=no
 
15465
(
 
15466
  $as_echo "186. $at_setup_line: testing $at_desc ..."
 
15467
  $at_traceon
 
15468
 
 
15469
 
 
15470
   { set +x
 
15471
$as_echo "$at_srcdir/aes128.at:94: test-aes128 6c002b682483e0cabcc731c253be5674 00000000000000000000000000000000"
 
15472
at_fn_check_prepare_trace "aes128.at:94"
 
15473
( $at_check_trace; test-aes128 6c002b682483e0cabcc731c253be5674 00000000000000000000000000000000
 
15474
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15475
at_status=$? at_failed=false
 
15476
$at_check_filter
 
15477
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15478
echo >>"$at_stdout"; $as_echo "3580d19cff44f1014a7c966a69059de5
 
15479
" | \
 
15480
  $at_diff - "$at_stdout" || at_failed=:
 
15481
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:94"
 
15482
$at_failed && at_fn_log_failure
 
15483
$at_traceon; }
 
15484
 
 
15485
     set +x
 
15486
  $at_times_p && times >"$at_times_file"
 
15487
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15488
read at_status <"$at_status_file"
 
15489
#AT_STOP_186
 
15490
#AT_START_187
 
15491
at_fn_group_banner 187 'aes128.at:100' \
 
15492
  "NIST KAT ECBKeySbox128e vector 13" "              " 18
 
15493
at_xfail=no
 
15494
(
 
15495
  $as_echo "187. $at_setup_line: testing $at_desc ..."
 
15496
  $at_traceon
 
15497
 
 
15498
 
 
15499
   { set +x
 
15500
$as_echo "$at_srcdir/aes128.at:100: test-aes128 143ae8ed6555aba96110ab58893a8ae1 00000000000000000000000000000000"
 
15501
at_fn_check_prepare_trace "aes128.at:100"
 
15502
( $at_check_trace; test-aes128 143ae8ed6555aba96110ab58893a8ae1 00000000000000000000000000000000
 
15503
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15504
at_status=$? at_failed=false
 
15505
$at_check_filter
 
15506
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15507
echo >>"$at_stdout"; $as_echo "806da864dd29d48deafbe764f8202aef
 
15508
" | \
 
15509
  $at_diff - "$at_stdout" || at_failed=:
 
15510
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:100"
 
15511
$at_failed && at_fn_log_failure
 
15512
$at_traceon; }
 
15513
 
 
15514
     set +x
 
15515
  $at_times_p && times >"$at_times_file"
 
15516
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15517
read at_status <"$at_status_file"
 
15518
#AT_STOP_187
 
15519
#AT_START_188
 
15520
at_fn_group_banner 188 'aes128.at:106' \
 
15521
  "NIST KAT ECBKeySbox128e vector 14" "              " 18
 
15522
at_xfail=no
 
15523
(
 
15524
  $as_echo "188. $at_setup_line: testing $at_desc ..."
 
15525
  $at_traceon
 
15526
 
 
15527
 
 
15528
   { set +x
 
15529
$as_echo "$at_srcdir/aes128.at:106: test-aes128 b69418a85332240dc82492353956ae0c 00000000000000000000000000000000"
 
15530
at_fn_check_prepare_trace "aes128.at:106"
 
15531
( $at_check_trace; test-aes128 b69418a85332240dc82492353956ae0c 00000000000000000000000000000000
 
15532
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15533
at_status=$? at_failed=false
 
15534
$at_check_filter
 
15535
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15536
echo >>"$at_stdout"; $as_echo "a303d940ded8f0baff6f75414cac5243
 
15537
" | \
 
15538
  $at_diff - "$at_stdout" || at_failed=:
 
15539
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:106"
 
15540
$at_failed && at_fn_log_failure
 
15541
$at_traceon; }
 
15542
 
 
15543
     set +x
 
15544
  $at_times_p && times >"$at_times_file"
 
15545
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15546
read at_status <"$at_status_file"
 
15547
#AT_STOP_188
 
15548
#AT_START_189
 
15549
at_fn_group_banner 189 'aes128.at:112' \
 
15550
  "NIST KAT ECBKeySbox128e vector 15" "              " 18
 
15551
at_xfail=no
 
15552
(
 
15553
  $as_echo "189. $at_setup_line: testing $at_desc ..."
 
15554
  $at_traceon
 
15555
 
 
15556
 
 
15557
   { set +x
 
15558
$as_echo "$at_srcdir/aes128.at:112: test-aes128 71b5c08a1993e1362e4d0ce9b22b78d5 00000000000000000000000000000000"
 
15559
at_fn_check_prepare_trace "aes128.at:112"
 
15560
( $at_check_trace; test-aes128 71b5c08a1993e1362e4d0ce9b22b78d5 00000000000000000000000000000000
 
15561
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15562
at_status=$? at_failed=false
 
15563
$at_check_filter
 
15564
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15565
echo >>"$at_stdout"; $as_echo "c2dabd117f8a3ecabfbb11d12194d9d0
 
15566
" | \
 
15567
  $at_diff - "$at_stdout" || at_failed=:
 
15568
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:112"
 
15569
$at_failed && at_fn_log_failure
 
15570
$at_traceon; }
 
15571
 
 
15572
     set +x
 
15573
  $at_times_p && times >"$at_times_file"
 
15574
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15575
read at_status <"$at_status_file"
 
15576
#AT_STOP_189
 
15577
#AT_START_190
 
15578
at_fn_group_banner 190 'aes128.at:118' \
 
15579
  "NIST KAT ECBKeySbox128e vector 16" "              " 18
 
15580
at_xfail=no
 
15581
(
 
15582
  $as_echo "190. $at_setup_line: testing $at_desc ..."
 
15583
  $at_traceon
 
15584
 
 
15585
 
 
15586
   { set +x
 
15587
$as_echo "$at_srcdir/aes128.at:118: test-aes128 e234cdca2606b81f29408d5f6da21206 00000000000000000000000000000000"
 
15588
at_fn_check_prepare_trace "aes128.at:118"
 
15589
( $at_check_trace; test-aes128 e234cdca2606b81f29408d5f6da21206 00000000000000000000000000000000
 
15590
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15591
at_status=$? at_failed=false
 
15592
$at_check_filter
 
15593
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15594
echo >>"$at_stdout"; $as_echo "fff60a4740086b3b9c56195b98d91a7b
 
15595
" | \
 
15596
  $at_diff - "$at_stdout" || at_failed=:
 
15597
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:118"
 
15598
$at_failed && at_fn_log_failure
 
15599
$at_traceon; }
 
15600
 
 
15601
     set +x
 
15602
  $at_times_p && times >"$at_times_file"
 
15603
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15604
read at_status <"$at_status_file"
 
15605
#AT_STOP_190
 
15606
#AT_START_191
 
15607
at_fn_group_banner 191 'aes128.at:124' \
 
15608
  "NIST KAT ECBKeySbox128e vector 17" "              " 18
 
15609
at_xfail=no
 
15610
(
 
15611
  $as_echo "191. $at_setup_line: testing $at_desc ..."
 
15612
  $at_traceon
 
15613
 
 
15614
 
 
15615
   { set +x
 
15616
$as_echo "$at_srcdir/aes128.at:124: test-aes128 13237c49074a3da078dc1d828bb78c6f 00000000000000000000000000000000"
 
15617
at_fn_check_prepare_trace "aes128.at:124"
 
15618
( $at_check_trace; test-aes128 13237c49074a3da078dc1d828bb78c6f 00000000000000000000000000000000
 
15619
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15620
at_status=$? at_failed=false
 
15621
$at_check_filter
 
15622
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15623
echo >>"$at_stdout"; $as_echo "8146a08e2357f0caa30ca8c94d1a0544
 
15624
" | \
 
15625
  $at_diff - "$at_stdout" || at_failed=:
 
15626
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:124"
 
15627
$at_failed && at_fn_log_failure
 
15628
$at_traceon; }
 
15629
 
 
15630
     set +x
 
15631
  $at_times_p && times >"$at_times_file"
 
15632
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15633
read at_status <"$at_status_file"
 
15634
#AT_STOP_191
 
15635
#AT_START_192
 
15636
at_fn_group_banner 192 'aes128.at:130' \
 
15637
  "NIST KAT ECBKeySbox128e vector 18" "              " 18
 
15638
at_xfail=no
 
15639
(
 
15640
  $as_echo "192. $at_setup_line: testing $at_desc ..."
 
15641
  $at_traceon
 
15642
 
 
15643
 
 
15644
   { set +x
 
15645
$as_echo "$at_srcdir/aes128.at:130: test-aes128 3071a2a48fe6cbd04f1a129098e308f8 00000000000000000000000000000000"
 
15646
at_fn_check_prepare_trace "aes128.at:130"
 
15647
( $at_check_trace; test-aes128 3071a2a48fe6cbd04f1a129098e308f8 00000000000000000000000000000000
 
15648
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15649
at_status=$? at_failed=false
 
15650
$at_check_filter
 
15651
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15652
echo >>"$at_stdout"; $as_echo "4b98e06d356deb07ebb824e5713f7be3
 
15653
" | \
 
15654
  $at_diff - "$at_stdout" || at_failed=:
 
15655
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:130"
 
15656
$at_failed && at_fn_log_failure
 
15657
$at_traceon; }
 
15658
 
 
15659
     set +x
 
15660
  $at_times_p && times >"$at_times_file"
 
15661
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15662
read at_status <"$at_status_file"
 
15663
#AT_STOP_192
 
15664
#AT_START_193
 
15665
at_fn_group_banner 193 'aes128.at:136' \
 
15666
  "NIST KAT ECBKeySbox128e vector 19" "              " 18
 
15667
at_xfail=no
 
15668
(
 
15669
  $as_echo "193. $at_setup_line: testing $at_desc ..."
 
15670
  $at_traceon
 
15671
 
 
15672
 
 
15673
   { set +x
 
15674
$as_echo "$at_srcdir/aes128.at:136: test-aes128 90f42ec0f68385f2ffc5dfc03a654dce 00000000000000000000000000000000"
 
15675
at_fn_check_prepare_trace "aes128.at:136"
 
15676
( $at_check_trace; test-aes128 90f42ec0f68385f2ffc5dfc03a654dce 00000000000000000000000000000000
 
15677
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15678
at_status=$? at_failed=false
 
15679
$at_check_filter
 
15680
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15681
echo >>"$at_stdout"; $as_echo "7a20a53d460fc9ce0423a7a0764c6cf2
 
15682
" | \
 
15683
  $at_diff - "$at_stdout" || at_failed=:
 
15684
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:136"
 
15685
$at_failed && at_fn_log_failure
 
15686
$at_traceon; }
 
15687
 
 
15688
     set +x
 
15689
  $at_times_p && times >"$at_times_file"
 
15690
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15691
read at_status <"$at_status_file"
 
15692
#AT_STOP_193
 
15693
#AT_START_194
 
15694
at_fn_group_banner 194 'aes128.at:142' \
 
15695
  "NIST KAT ECBKeySbox128e vector 20" "              " 18
 
15696
at_xfail=no
 
15697
(
 
15698
  $as_echo "194. $at_setup_line: testing $at_desc ..."
 
15699
  $at_traceon
 
15700
 
 
15701
 
 
15702
   { set +x
 
15703
$as_echo "$at_srcdir/aes128.at:142: test-aes128 febd9a24d8b65c1c787d50a4ed3619a9 00000000000000000000000000000000"
 
15704
at_fn_check_prepare_trace "aes128.at:142"
 
15705
( $at_check_trace; test-aes128 febd9a24d8b65c1c787d50a4ed3619a9 00000000000000000000000000000000
 
15706
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15707
at_status=$? at_failed=false
 
15708
$at_check_filter
 
15709
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15710
echo >>"$at_stdout"; $as_echo "f4a70d8af877f9b02b4c40df57d45b17
 
15711
" | \
 
15712
  $at_diff - "$at_stdout" || at_failed=:
 
15713
at_fn_check_status 0 $at_status "$at_srcdir/aes128.at:142"
 
15714
$at_failed && at_fn_log_failure
 
15715
$at_traceon; }
 
15716
 
 
15717
     set +x
 
15718
  $at_times_p && times >"$at_times_file"
 
15719
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15720
read at_status <"$at_status_file"
 
15721
#AT_STOP_194
 
15722
#AT_START_195
 
15723
at_fn_group_banner 195 'uuid.at:17' \
 
15724
  "UUID generation" "                                " 19
 
15725
at_xfail=no
 
15726
(
 
15727
  $as_echo "195. $at_setup_line: testing $at_desc ..."
 
15728
  $at_traceon
 
15729
 
 
15730
 
 
15731
{ set +x
 
15732
$as_echo "$at_srcdir/uuid.at:19: test-uuid > uuid"
 
15733
at_fn_check_prepare_trace "uuid.at:19"
 
15734
( $at_check_trace; test-uuid > uuid
 
15735
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15736
at_status=$? at_failed=false
 
15737
$at_check_filter
 
15738
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15739
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
15740
at_fn_check_status 0 $at_status "$at_srcdir/uuid.at:19"
 
15741
$at_failed && at_fn_log_failure
 
15742
$at_traceon; }
 
15743
 
 
15744
{ set +x
 
15745
$as_echo "$at_srcdir/uuid.at:20:
 
15746
  uuid=\`cat uuid\`
 
15747
  if expr \"\$uuid\" : '[0-9a-f]\\{8\\}-[0-9a-f]\\{4\\}-4[0-9a-f]\\{3\\}-[89ab][0-9a-f]\\{3\\}-[0-9a-f]\\{12\\}\$' > /dev/null
 
15748
   then
 
15749
      :
 
15750
   else
 
15751
     echo \"\$uuid: not a random UUID\"
 
15752
     exit 1
 
15753
   fi"
 
15754
at_fn_check_prepare_notrace 'a `...` command substitution' "uuid.at:20"
 
15755
( $at_check_trace;
 
15756
  uuid=`cat uuid`
 
15757
  if expr "$uuid" : '[0-9a-f]\{8\}-[0-9a-f]\{4\}-4[0-9a-f]\{3\}-[89ab][0-9a-f]\{3\}-[0-9a-f]\{12\}$' > /dev/null
 
15758
   then
 
15759
      :
 
15760
   else
 
15761
     echo "$uuid: not a random UUID"
 
15762
     exit 1
 
15763
   fi
 
15764
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15765
at_status=$? at_failed=false
 
15766
$at_check_filter
 
15767
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15768
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
15769
at_fn_check_status 0 $at_status "$at_srcdir/uuid.at:20"
 
15770
$at_failed && at_fn_log_failure
 
15771
$at_traceon; }
 
15772
 
 
15773
  set +x
 
15774
  $at_times_p && times >"$at_times_file"
 
15775
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15776
read at_status <"$at_status_file"
 
15777
#AT_STOP_195
 
15778
#AT_START_196
 
15779
at_fn_group_banner 196 'uuid.at:27' \
 
15780
  "UUID parsing and serialization" "                 " 19
 
15781
at_xfail=no
 
15782
(
 
15783
  $as_echo "196. $at_setup_line: testing $at_desc ..."
 
15784
  $at_traceon
 
15785
 
 
15786
 
 
15787
{ set +x
 
15788
$as_echo "$at_srcdir/uuid.at:29: test-uuid f47ac10b-58cc-4372-a567-0e02b2c3d479"
 
15789
at_fn_check_prepare_trace "uuid.at:29"
 
15790
( $at_check_trace; test-uuid f47ac10b-58cc-4372-a567-0e02b2c3d479
 
15791
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15792
at_status=$? at_failed=false
 
15793
$at_check_filter
 
15794
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15795
echo >>"$at_stdout"; $as_echo "f47ac10b-58cc-4372-a567-0e02b2c3d479
 
15796
" | \
 
15797
  $at_diff - "$at_stdout" || at_failed=:
 
15798
at_fn_check_status 0 $at_status "$at_srcdir/uuid.at:29"
 
15799
$at_failed && at_fn_log_failure
 
15800
$at_traceon; }
 
15801
 
 
15802
  set +x
 
15803
  $at_times_p && times >"$at_times_file"
 
15804
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15805
read at_status <"$at_status_file"
 
15806
#AT_STOP_196
 
15807
#AT_START_197
 
15808
at_fn_group_banner 197 'uuid.at:34' \
 
15809
  "UUID generation, parsing, serialization" "        " 19
 
15810
at_xfail=no
 
15811
(
 
15812
  $as_echo "197. $at_setup_line: testing $at_desc ..."
 
15813
  $at_traceon
 
15814
 
 
15815
$as_echo "uuid.at:35" >"$at_check_line_file"
 
15816
(test "$CHECK_LCOV" = true) \
 
15817
  && at_fn_check_skip 77 "$at_srcdir/uuid.at:35" # lcov makes this test absurdly slow
 
15818
 
 
15819
{ set +x
 
15820
$as_echo "$at_srcdir/uuid.at:37:
 
15821
  uuids=
 
15822
  for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ; do
 
15823
     # Generate random UUID and check that it is in the expected format.
 
15824
     uuid=\`test-uuid\`
 
15825
     if expr \"\$uuid\" : '[0-9a-f]\\{8\\}-[0-9a-f]\\{4\\}-4[0-9a-f]\\{3\\}-[89ab][0-9a-f]\\{3\\}-[0-9a-f]\\{12\\}\$' > /dev/null
 
15826
   then
 
15827
      :
 
15828
   else
 
15829
     echo \"\$uuid: not a random UUID\"
 
15830
     exit 1
 
15831
   fi
 
15832
 
 
15833
     # Verify that \$uuid does not duplicate any UUID generated so far.
 
15834
     case \$uuids in
 
15835
       *\$uuid*)
 
15836
         echo \"\$uuid: generated duplicate UUID\"
 
15837
         exit 1
 
15838
     esac
 
15839
     uuids=\"\$uuids \$uuid\"
 
15840
 
 
15841
     # Verify that test-uuid parses and re-serializes this UUID correctly.
 
15842
     serialized=\`test-uuid \$uuid\`
 
15843
     if test \"\$uuid\" != \"\$serialized\"; then
 
15844
       echo \"\$uuid: test-uuid serialized this as \$serialized\"
 
15845
       exit 1
 
15846
     fi
 
15847
   done"
 
15848
at_fn_check_prepare_notrace 'a `...` command substitution' "uuid.at:37"
 
15849
( $at_check_trace;
 
15850
  uuids=
 
15851
  for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ; do
 
15852
     # Generate random UUID and check that it is in the expected format.
 
15853
     uuid=`test-uuid`
 
15854
     if expr "$uuid" : '[0-9a-f]\{8\}-[0-9a-f]\{4\}-4[0-9a-f]\{3\}-[89ab][0-9a-f]\{3\}-[0-9a-f]\{12\}$' > /dev/null
 
15855
   then
 
15856
      :
 
15857
   else
 
15858
     echo "$uuid: not a random UUID"
 
15859
     exit 1
 
15860
   fi
 
15861
 
 
15862
     # Verify that $uuid does not duplicate any UUID generated so far.
 
15863
     case $uuids in
 
15864
       *$uuid*)
 
15865
         echo "$uuid: generated duplicate UUID"
 
15866
         exit 1
 
15867
     esac
 
15868
     uuids="$uuids $uuid"
 
15869
 
 
15870
     # Verify that test-uuid parses and re-serializes this UUID correctly.
 
15871
     serialized=`test-uuid $uuid`
 
15872
     if test "$uuid" != "$serialized"; then
 
15873
       echo "$uuid: test-uuid serialized this as $serialized"
 
15874
       exit 1
 
15875
     fi
 
15876
   done
 
15877
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15878
at_status=$? at_failed=false
 
15879
$at_check_filter
 
15880
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15881
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
15882
at_fn_check_status 0 $at_status "$at_srcdir/uuid.at:37"
 
15883
$at_failed && at_fn_log_failure
 
15884
$at_traceon; }
 
15885
 
 
15886
  set +x
 
15887
  $at_times_p && times >"$at_times_file"
 
15888
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15889
read at_status <"$at_status_file"
 
15890
#AT_STOP_197
 
15891
#AT_START_198
 
15892
at_fn_group_banner 198 'json.at:65' \
 
15893
  "empty array - C" "                                " 20
 
15894
at_xfail=no
 
15895
(
 
15896
  $as_echo "198. $at_setup_line: testing $at_desc ..."
 
15897
  $at_traceon
 
15898
 
 
15899
 
 
15900
   { set +x
 
15901
$as_echo "$at_srcdir/json.at:65: printf %s \" [   ] \" > input"
 
15902
at_fn_check_prepare_trace "json.at:65"
 
15903
( $at_check_trace; printf %s " [   ] " > input
 
15904
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15905
at_status=$? at_failed=false
 
15906
$at_check_filter
 
15907
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15908
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
15909
at_fn_check_status 0 $at_status "$at_srcdir/json.at:65"
 
15910
$at_failed && at_fn_log_failure
 
15911
$at_traceon; }
 
15912
 
 
15913
 
 
15914
   { set +x
 
15915
$as_echo "$at_srcdir/json.at:65: test-json  input"
 
15916
at_fn_check_prepare_trace "json.at:65"
 
15917
( $at_check_trace; test-json  input
 
15918
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15919
at_status=$? at_failed=false
 
15920
$at_check_filter
 
15921
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15922
echo stdout:; tee stdout <"$at_stdout"
 
15923
at_fn_check_status 0 $at_status "$at_srcdir/json.at:65"
 
15924
$at_failed && at_fn_log_failure  \
 
15925
"input"
 
15926
$at_traceon; }
 
15927
 
 
15928
   { set +x
 
15929
$as_echo "$at_srcdir/json.at:65: cat stdout"
 
15930
at_fn_check_prepare_trace "json.at:65"
 
15931
( $at_check_trace; cat stdout
 
15932
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15933
at_status=$? at_failed=false
 
15934
$at_check_filter
 
15935
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15936
echo >>"$at_stdout"; $as_echo "[]
 
15937
" | \
 
15938
  $at_diff - "$at_stdout" || at_failed=:
 
15939
at_fn_check_status 0 $at_status "$at_srcdir/json.at:65"
 
15940
$at_failed && at_fn_log_failure  \
 
15941
"input"
 
15942
$at_traceon; }
 
15943
 
 
15944
     set +x
 
15945
  $at_times_p && times >"$at_times_file"
 
15946
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
15947
read at_status <"$at_status_file"
 
15948
#AT_STOP_198
 
15949
#AT_START_199
 
15950
at_fn_group_banner 199 'json.at:65' \
 
15951
  "empty array - Python" "                           " 20
 
15952
at_xfail=no
 
15953
(
 
15954
  $as_echo "199. $at_setup_line: testing $at_desc ..."
 
15955
  $at_traceon
 
15956
 
 
15957
 
 
15958
   $as_echo "json.at:65" >"$at_check_line_file"
 
15959
(test $HAVE_PYTHON = no) \
 
15960
  && at_fn_check_skip 77 "$at_srcdir/json.at:65"
 
15961
   { set +x
 
15962
$as_echo "$at_srcdir/json.at:65: printf %s \" [   ] \" > input"
 
15963
at_fn_check_prepare_trace "json.at:65"
 
15964
( $at_check_trace; printf %s " [   ] " > input
 
15965
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15966
at_status=$? at_failed=false
 
15967
$at_check_filter
 
15968
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15969
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
15970
at_fn_check_status 0 $at_status "$at_srcdir/json.at:65"
 
15971
$at_failed && at_fn_log_failure
 
15972
$at_traceon; }
 
15973
 
 
15974
 
 
15975
   { set +x
 
15976
$as_echo "$at_srcdir/json.at:65: \$PYTHON \$srcdir/test-json.py  input"
 
15977
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:65"
 
15978
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
15979
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15980
at_status=$? at_failed=false
 
15981
$at_check_filter
 
15982
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15983
echo stdout:; tee stdout <"$at_stdout"
 
15984
at_fn_check_status 0 $at_status "$at_srcdir/json.at:65"
 
15985
$at_failed && at_fn_log_failure  \
 
15986
"input"
 
15987
$at_traceon; }
 
15988
 
 
15989
   { set +x
 
15990
$as_echo "$at_srcdir/json.at:65: cat stdout"
 
15991
at_fn_check_prepare_trace "json.at:65"
 
15992
( $at_check_trace; cat stdout
 
15993
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
15994
at_status=$? at_failed=false
 
15995
$at_check_filter
 
15996
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
15997
echo >>"$at_stdout"; $as_echo "[]
 
15998
" | \
 
15999
  $at_diff - "$at_stdout" || at_failed=:
 
16000
at_fn_check_status 0 $at_status "$at_srcdir/json.at:65"
 
16001
$at_failed && at_fn_log_failure  \
 
16002
"input"
 
16003
$at_traceon; }
 
16004
 
 
16005
     set +x
 
16006
  $at_times_p && times >"$at_times_file"
 
16007
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16008
read at_status <"$at_status_file"
 
16009
#AT_STOP_199
 
16010
#AT_START_200
 
16011
at_fn_group_banner 200 'json.at:66' \
 
16012
  "single-element array - C" "                       " 20
 
16013
at_xfail=no
 
16014
(
 
16015
  $as_echo "200. $at_setup_line: testing $at_desc ..."
 
16016
  $at_traceon
 
16017
 
 
16018
 
 
16019
   { set +x
 
16020
$as_echo "$at_srcdir/json.at:66: printf %s \" [ 1 ] \" > input"
 
16021
at_fn_check_prepare_trace "json.at:66"
 
16022
( $at_check_trace; printf %s " [ 1 ] " > input
 
16023
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16024
at_status=$? at_failed=false
 
16025
$at_check_filter
 
16026
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16027
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16028
at_fn_check_status 0 $at_status "$at_srcdir/json.at:66"
 
16029
$at_failed && at_fn_log_failure
 
16030
$at_traceon; }
 
16031
 
 
16032
 
 
16033
   { set +x
 
16034
$as_echo "$at_srcdir/json.at:66: test-json  input"
 
16035
at_fn_check_prepare_trace "json.at:66"
 
16036
( $at_check_trace; test-json  input
 
16037
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16038
at_status=$? at_failed=false
 
16039
$at_check_filter
 
16040
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16041
echo stdout:; tee stdout <"$at_stdout"
 
16042
at_fn_check_status 0 $at_status "$at_srcdir/json.at:66"
 
16043
$at_failed && at_fn_log_failure  \
 
16044
"input"
 
16045
$at_traceon; }
 
16046
 
 
16047
   { set +x
 
16048
$as_echo "$at_srcdir/json.at:66: cat stdout"
 
16049
at_fn_check_prepare_trace "json.at:66"
 
16050
( $at_check_trace; cat stdout
 
16051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16052
at_status=$? at_failed=false
 
16053
$at_check_filter
 
16054
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16055
echo >>"$at_stdout"; $as_echo "[1]
 
16056
" | \
 
16057
  $at_diff - "$at_stdout" || at_failed=:
 
16058
at_fn_check_status 0 $at_status "$at_srcdir/json.at:66"
 
16059
$at_failed && at_fn_log_failure  \
 
16060
"input"
 
16061
$at_traceon; }
 
16062
 
 
16063
     set +x
 
16064
  $at_times_p && times >"$at_times_file"
 
16065
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16066
read at_status <"$at_status_file"
 
16067
#AT_STOP_200
 
16068
#AT_START_201
 
16069
at_fn_group_banner 201 'json.at:66' \
 
16070
  "single-element array - Python" "                  " 20
 
16071
at_xfail=no
 
16072
(
 
16073
  $as_echo "201. $at_setup_line: testing $at_desc ..."
 
16074
  $at_traceon
 
16075
 
 
16076
 
 
16077
   $as_echo "json.at:66" >"$at_check_line_file"
 
16078
(test $HAVE_PYTHON = no) \
 
16079
  && at_fn_check_skip 77 "$at_srcdir/json.at:66"
 
16080
   { set +x
 
16081
$as_echo "$at_srcdir/json.at:66: printf %s \" [ 1 ] \" > input"
 
16082
at_fn_check_prepare_trace "json.at:66"
 
16083
( $at_check_trace; printf %s " [ 1 ] " > input
 
16084
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16085
at_status=$? at_failed=false
 
16086
$at_check_filter
 
16087
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16088
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16089
at_fn_check_status 0 $at_status "$at_srcdir/json.at:66"
 
16090
$at_failed && at_fn_log_failure
 
16091
$at_traceon; }
 
16092
 
 
16093
 
 
16094
   { set +x
 
16095
$as_echo "$at_srcdir/json.at:66: \$PYTHON \$srcdir/test-json.py  input"
 
16096
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:66"
 
16097
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
16098
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16099
at_status=$? at_failed=false
 
16100
$at_check_filter
 
16101
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16102
echo stdout:; tee stdout <"$at_stdout"
 
16103
at_fn_check_status 0 $at_status "$at_srcdir/json.at:66"
 
16104
$at_failed && at_fn_log_failure  \
 
16105
"input"
 
16106
$at_traceon; }
 
16107
 
 
16108
   { set +x
 
16109
$as_echo "$at_srcdir/json.at:66: cat stdout"
 
16110
at_fn_check_prepare_trace "json.at:66"
 
16111
( $at_check_trace; cat stdout
 
16112
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16113
at_status=$? at_failed=false
 
16114
$at_check_filter
 
16115
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16116
echo >>"$at_stdout"; $as_echo "[1]
 
16117
" | \
 
16118
  $at_diff - "$at_stdout" || at_failed=:
 
16119
at_fn_check_status 0 $at_status "$at_srcdir/json.at:66"
 
16120
$at_failed && at_fn_log_failure  \
 
16121
"input"
 
16122
$at_traceon; }
 
16123
 
 
16124
     set +x
 
16125
  $at_times_p && times >"$at_times_file"
 
16126
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16127
read at_status <"$at_status_file"
 
16128
#AT_STOP_201
 
16129
#AT_START_202
 
16130
at_fn_group_banner 202 'json.at:67' \
 
16131
  "2-element array - C" "                            " 20
 
16132
at_xfail=no
 
16133
(
 
16134
  $as_echo "202. $at_setup_line: testing $at_desc ..."
 
16135
  $at_traceon
 
16136
 
 
16137
 
 
16138
   { set +x
 
16139
$as_echo "$at_srcdir/json.at:67: printf %s \" [ 1, 2 ] \" > input"
 
16140
at_fn_check_prepare_trace "json.at:67"
 
16141
( $at_check_trace; printf %s " [ 1, 2 ] " > input
 
16142
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16143
at_status=$? at_failed=false
 
16144
$at_check_filter
 
16145
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16146
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16147
at_fn_check_status 0 $at_status "$at_srcdir/json.at:67"
 
16148
$at_failed && at_fn_log_failure
 
16149
$at_traceon; }
 
16150
 
 
16151
 
 
16152
   { set +x
 
16153
$as_echo "$at_srcdir/json.at:67: test-json  input"
 
16154
at_fn_check_prepare_trace "json.at:67"
 
16155
( $at_check_trace; test-json  input
 
16156
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16157
at_status=$? at_failed=false
 
16158
$at_check_filter
 
16159
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16160
echo stdout:; tee stdout <"$at_stdout"
 
16161
at_fn_check_status 0 $at_status "$at_srcdir/json.at:67"
 
16162
$at_failed && at_fn_log_failure  \
 
16163
"input"
 
16164
$at_traceon; }
 
16165
 
 
16166
   { set +x
 
16167
$as_echo "$at_srcdir/json.at:67: cat stdout"
 
16168
at_fn_check_prepare_trace "json.at:67"
 
16169
( $at_check_trace; cat stdout
 
16170
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16171
at_status=$? at_failed=false
 
16172
$at_check_filter
 
16173
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16174
echo >>"$at_stdout"; $as_echo "[1,2]
 
16175
" | \
 
16176
  $at_diff - "$at_stdout" || at_failed=:
 
16177
at_fn_check_status 0 $at_status "$at_srcdir/json.at:67"
 
16178
$at_failed && at_fn_log_failure  \
 
16179
"input"
 
16180
$at_traceon; }
 
16181
 
 
16182
     set +x
 
16183
  $at_times_p && times >"$at_times_file"
 
16184
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16185
read at_status <"$at_status_file"
 
16186
#AT_STOP_202
 
16187
#AT_START_203
 
16188
at_fn_group_banner 203 'json.at:67' \
 
16189
  "2-element array - Python" "                       " 20
 
16190
at_xfail=no
 
16191
(
 
16192
  $as_echo "203. $at_setup_line: testing $at_desc ..."
 
16193
  $at_traceon
 
16194
 
 
16195
 
 
16196
   $as_echo "json.at:67" >"$at_check_line_file"
 
16197
(test $HAVE_PYTHON = no) \
 
16198
  && at_fn_check_skip 77 "$at_srcdir/json.at:67"
 
16199
   { set +x
 
16200
$as_echo "$at_srcdir/json.at:67: printf %s \" [ 1, 2 ] \" > input"
 
16201
at_fn_check_prepare_trace "json.at:67"
 
16202
( $at_check_trace; printf %s " [ 1, 2 ] " > input
 
16203
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16204
at_status=$? at_failed=false
 
16205
$at_check_filter
 
16206
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16207
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16208
at_fn_check_status 0 $at_status "$at_srcdir/json.at:67"
 
16209
$at_failed && at_fn_log_failure
 
16210
$at_traceon; }
 
16211
 
 
16212
 
 
16213
   { set +x
 
16214
$as_echo "$at_srcdir/json.at:67: \$PYTHON \$srcdir/test-json.py  input"
 
16215
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:67"
 
16216
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
16217
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16218
at_status=$? at_failed=false
 
16219
$at_check_filter
 
16220
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16221
echo stdout:; tee stdout <"$at_stdout"
 
16222
at_fn_check_status 0 $at_status "$at_srcdir/json.at:67"
 
16223
$at_failed && at_fn_log_failure  \
 
16224
"input"
 
16225
$at_traceon; }
 
16226
 
 
16227
   { set +x
 
16228
$as_echo "$at_srcdir/json.at:67: cat stdout"
 
16229
at_fn_check_prepare_trace "json.at:67"
 
16230
( $at_check_trace; cat stdout
 
16231
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16232
at_status=$? at_failed=false
 
16233
$at_check_filter
 
16234
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16235
echo >>"$at_stdout"; $as_echo "[1,2]
 
16236
" | \
 
16237
  $at_diff - "$at_stdout" || at_failed=:
 
16238
at_fn_check_status 0 $at_status "$at_srcdir/json.at:67"
 
16239
$at_failed && at_fn_log_failure  \
 
16240
"input"
 
16241
$at_traceon; }
 
16242
 
 
16243
     set +x
 
16244
  $at_times_p && times >"$at_times_file"
 
16245
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16246
read at_status <"$at_status_file"
 
16247
#AT_STOP_203
 
16248
#AT_START_204
 
16249
at_fn_group_banner 204 'json.at:68' \
 
16250
  "many-element array - C" "                         " 20
 
16251
at_xfail=no
 
16252
(
 
16253
  $as_echo "204. $at_setup_line: testing $at_desc ..."
 
16254
  $at_traceon
 
16255
 
 
16256
 
 
16257
   { set +x
 
16258
$as_echo "$at_srcdir/json.at:68: printf %s \" [ 1, 2, 3, 4, 5 ] \" > input"
 
16259
at_fn_check_prepare_trace "json.at:68"
 
16260
( $at_check_trace; printf %s " [ 1, 2, 3, 4, 5 ] " > input
 
16261
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16262
at_status=$? at_failed=false
 
16263
$at_check_filter
 
16264
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16265
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16266
at_fn_check_status 0 $at_status "$at_srcdir/json.at:68"
 
16267
$at_failed && at_fn_log_failure
 
16268
$at_traceon; }
 
16269
 
 
16270
 
 
16271
   { set +x
 
16272
$as_echo "$at_srcdir/json.at:68: test-json  input"
 
16273
at_fn_check_prepare_trace "json.at:68"
 
16274
( $at_check_trace; test-json  input
 
16275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16276
at_status=$? at_failed=false
 
16277
$at_check_filter
 
16278
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16279
echo stdout:; tee stdout <"$at_stdout"
 
16280
at_fn_check_status 0 $at_status "$at_srcdir/json.at:68"
 
16281
$at_failed && at_fn_log_failure  \
 
16282
"input"
 
16283
$at_traceon; }
 
16284
 
 
16285
   { set +x
 
16286
$as_echo "$at_srcdir/json.at:68: cat stdout"
 
16287
at_fn_check_prepare_trace "json.at:68"
 
16288
( $at_check_trace; cat stdout
 
16289
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16290
at_status=$? at_failed=false
 
16291
$at_check_filter
 
16292
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16293
echo >>"$at_stdout"; $as_echo "[1,2,3,4,5]
 
16294
" | \
 
16295
  $at_diff - "$at_stdout" || at_failed=:
 
16296
at_fn_check_status 0 $at_status "$at_srcdir/json.at:68"
 
16297
$at_failed && at_fn_log_failure  \
 
16298
"input"
 
16299
$at_traceon; }
 
16300
 
 
16301
     set +x
 
16302
  $at_times_p && times >"$at_times_file"
 
16303
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16304
read at_status <"$at_status_file"
 
16305
#AT_STOP_204
 
16306
#AT_START_205
 
16307
at_fn_group_banner 205 'json.at:68' \
 
16308
  "many-element array - Python" "                    " 20
 
16309
at_xfail=no
 
16310
(
 
16311
  $as_echo "205. $at_setup_line: testing $at_desc ..."
 
16312
  $at_traceon
 
16313
 
 
16314
 
 
16315
   $as_echo "json.at:68" >"$at_check_line_file"
 
16316
(test $HAVE_PYTHON = no) \
 
16317
  && at_fn_check_skip 77 "$at_srcdir/json.at:68"
 
16318
   { set +x
 
16319
$as_echo "$at_srcdir/json.at:68: printf %s \" [ 1, 2, 3, 4, 5 ] \" > input"
 
16320
at_fn_check_prepare_trace "json.at:68"
 
16321
( $at_check_trace; printf %s " [ 1, 2, 3, 4, 5 ] " > input
 
16322
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16323
at_status=$? at_failed=false
 
16324
$at_check_filter
 
16325
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16326
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16327
at_fn_check_status 0 $at_status "$at_srcdir/json.at:68"
 
16328
$at_failed && at_fn_log_failure
 
16329
$at_traceon; }
 
16330
 
 
16331
 
 
16332
   { set +x
 
16333
$as_echo "$at_srcdir/json.at:68: \$PYTHON \$srcdir/test-json.py  input"
 
16334
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:68"
 
16335
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
16336
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16337
at_status=$? at_failed=false
 
16338
$at_check_filter
 
16339
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16340
echo stdout:; tee stdout <"$at_stdout"
 
16341
at_fn_check_status 0 $at_status "$at_srcdir/json.at:68"
 
16342
$at_failed && at_fn_log_failure  \
 
16343
"input"
 
16344
$at_traceon; }
 
16345
 
 
16346
   { set +x
 
16347
$as_echo "$at_srcdir/json.at:68: cat stdout"
 
16348
at_fn_check_prepare_trace "json.at:68"
 
16349
( $at_check_trace; cat stdout
 
16350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16351
at_status=$? at_failed=false
 
16352
$at_check_filter
 
16353
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16354
echo >>"$at_stdout"; $as_echo "[1,2,3,4,5]
 
16355
" | \
 
16356
  $at_diff - "$at_stdout" || at_failed=:
 
16357
at_fn_check_status 0 $at_status "$at_srcdir/json.at:68"
 
16358
$at_failed && at_fn_log_failure  \
 
16359
"input"
 
16360
$at_traceon; }
 
16361
 
 
16362
     set +x
 
16363
  $at_times_p && times >"$at_times_file"
 
16364
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16365
read at_status <"$at_status_file"
 
16366
#AT_STOP_205
 
16367
#AT_START_206
 
16368
at_fn_group_banner 206 'json.at:71' \
 
16369
  "missing comma - C" "                              " 20
 
16370
at_xfail=no
 
16371
(
 
16372
  $as_echo "206. $at_setup_line: testing $at_desc ..."
 
16373
  $at_traceon
 
16374
 
 
16375
 
 
16376
   { set +x
 
16377
$as_echo "$at_srcdir/json.at:71: printf %s \" [ 1, 2, 3 4, 5 ] \" > input"
 
16378
at_fn_check_prepare_trace "json.at:71"
 
16379
( $at_check_trace; printf %s " [ 1, 2, 3 4, 5 ] " > input
 
16380
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16381
at_status=$? at_failed=false
 
16382
$at_check_filter
 
16383
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16384
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16385
at_fn_check_status 0 $at_status "$at_srcdir/json.at:71"
 
16386
$at_failed && at_fn_log_failure
 
16387
$at_traceon; }
 
16388
 
 
16389
 
 
16390
   { set +x
 
16391
$as_echo "$at_srcdir/json.at:71: test-json  input"
 
16392
at_fn_check_prepare_trace "json.at:71"
 
16393
( $at_check_trace; test-json  input
 
16394
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16395
at_status=$? at_failed=false
 
16396
$at_check_filter
 
16397
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16398
echo stdout:; tee stdout <"$at_stdout"
 
16399
at_fn_check_status 1 $at_status "$at_srcdir/json.at:71"
 
16400
$at_failed && at_fn_log_failure  \
 
16401
"input"
 
16402
$at_traceon; }
 
16403
 
 
16404
   { set +x
 
16405
$as_echo "$at_srcdir/json.at:71: sed 's/^error: [^:]*:/error:/' < stdout"
 
16406
at_fn_check_prepare_trace "json.at:71"
 
16407
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
16408
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16409
at_status=$? at_failed=false
 
16410
$at_check_filter
 
16411
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16412
echo >>"$at_stdout"; $as_echo "error: syntax error expecting ']' or ','
 
16413
" | \
 
16414
  $at_diff - "$at_stdout" || at_failed=:
 
16415
at_fn_check_status 0 $at_status "$at_srcdir/json.at:71"
 
16416
$at_failed && at_fn_log_failure  \
 
16417
"input"
 
16418
$at_traceon; }
 
16419
 
 
16420
     set +x
 
16421
  $at_times_p && times >"$at_times_file"
 
16422
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16423
read at_status <"$at_status_file"
 
16424
#AT_STOP_206
 
16425
#AT_START_207
 
16426
at_fn_group_banner 207 'json.at:71' \
 
16427
  "missing comma - Python" "                         " 20
 
16428
at_xfail=no
 
16429
(
 
16430
  $as_echo "207. $at_setup_line: testing $at_desc ..."
 
16431
  $at_traceon
 
16432
 
 
16433
 
 
16434
   $as_echo "json.at:71" >"$at_check_line_file"
 
16435
(test $HAVE_PYTHON = no) \
 
16436
  && at_fn_check_skip 77 "$at_srcdir/json.at:71"
 
16437
   { set +x
 
16438
$as_echo "$at_srcdir/json.at:71: printf %s \" [ 1, 2, 3 4, 5 ] \" > input"
 
16439
at_fn_check_prepare_trace "json.at:71"
 
16440
( $at_check_trace; printf %s " [ 1, 2, 3 4, 5 ] " > input
 
16441
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16442
at_status=$? at_failed=false
 
16443
$at_check_filter
 
16444
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16445
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16446
at_fn_check_status 0 $at_status "$at_srcdir/json.at:71"
 
16447
$at_failed && at_fn_log_failure
 
16448
$at_traceon; }
 
16449
 
 
16450
 
 
16451
   { set +x
 
16452
$as_echo "$at_srcdir/json.at:71: \$PYTHON \$srcdir/test-json.py  input"
 
16453
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:71"
 
16454
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
16455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16456
at_status=$? at_failed=false
 
16457
$at_check_filter
 
16458
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16459
echo stdout:; tee stdout <"$at_stdout"
 
16460
at_fn_check_status 1 $at_status "$at_srcdir/json.at:71"
 
16461
$at_failed && at_fn_log_failure  \
 
16462
"input"
 
16463
$at_traceon; }
 
16464
 
 
16465
   { set +x
 
16466
$as_echo "$at_srcdir/json.at:71: sed 's/^error: [^:]*:/error:/' < stdout"
 
16467
at_fn_check_prepare_trace "json.at:71"
 
16468
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
16469
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16470
at_status=$? at_failed=false
 
16471
$at_check_filter
 
16472
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16473
echo >>"$at_stdout"; $as_echo "error: syntax error expecting ']' or ','
 
16474
" | \
 
16475
  $at_diff - "$at_stdout" || at_failed=:
 
16476
at_fn_check_status 0 $at_status "$at_srcdir/json.at:71"
 
16477
$at_failed && at_fn_log_failure  \
 
16478
"input"
 
16479
$at_traceon; }
 
16480
 
 
16481
     set +x
 
16482
  $at_times_p && times >"$at_times_file"
 
16483
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16484
read at_status <"$at_status_file"
 
16485
#AT_STOP_207
 
16486
#AT_START_208
 
16487
at_fn_group_banner 208 'json.at:73' \
 
16488
  "trailing comma not allowed - C" "                 " 20
 
16489
at_xfail=no
 
16490
(
 
16491
  $as_echo "208. $at_setup_line: testing $at_desc ..."
 
16492
  $at_traceon
 
16493
 
 
16494
 
 
16495
   { set +x
 
16496
$as_echo "$at_srcdir/json.at:73: printf %s \"[1,2,]\" > input"
 
16497
at_fn_check_prepare_trace "json.at:73"
 
16498
( $at_check_trace; printf %s "[1,2,]" > input
 
16499
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16500
at_status=$? at_failed=false
 
16501
$at_check_filter
 
16502
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16503
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16504
at_fn_check_status 0 $at_status "$at_srcdir/json.at:73"
 
16505
$at_failed && at_fn_log_failure
 
16506
$at_traceon; }
 
16507
 
 
16508
 
 
16509
   { set +x
 
16510
$as_echo "$at_srcdir/json.at:73: test-json  input"
 
16511
at_fn_check_prepare_trace "json.at:73"
 
16512
( $at_check_trace; test-json  input
 
16513
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16514
at_status=$? at_failed=false
 
16515
$at_check_filter
 
16516
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16517
echo stdout:; tee stdout <"$at_stdout"
 
16518
at_fn_check_status 1 $at_status "$at_srcdir/json.at:73"
 
16519
$at_failed && at_fn_log_failure  \
 
16520
"input"
 
16521
$at_traceon; }
 
16522
 
 
16523
   { set +x
 
16524
$as_echo "$at_srcdir/json.at:73: sed 's/^error: [^:]*:/error:/' < stdout"
 
16525
at_fn_check_prepare_trace "json.at:73"
 
16526
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
16527
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16528
at_status=$? at_failed=false
 
16529
$at_check_filter
 
16530
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16531
echo >>"$at_stdout"; $as_echo "error: syntax error expecting value
 
16532
" | \
 
16533
  $at_diff - "$at_stdout" || at_failed=:
 
16534
at_fn_check_status 0 $at_status "$at_srcdir/json.at:73"
 
16535
$at_failed && at_fn_log_failure  \
 
16536
"input"
 
16537
$at_traceon; }
 
16538
 
 
16539
     set +x
 
16540
  $at_times_p && times >"$at_times_file"
 
16541
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16542
read at_status <"$at_status_file"
 
16543
#AT_STOP_208
 
16544
#AT_START_209
 
16545
at_fn_group_banner 209 'json.at:73' \
 
16546
  "trailing comma not allowed - Python" "            " 20
 
16547
at_xfail=no
 
16548
(
 
16549
  $as_echo "209. $at_setup_line: testing $at_desc ..."
 
16550
  $at_traceon
 
16551
 
 
16552
 
 
16553
   $as_echo "json.at:73" >"$at_check_line_file"
 
16554
(test $HAVE_PYTHON = no) \
 
16555
  && at_fn_check_skip 77 "$at_srcdir/json.at:73"
 
16556
   { set +x
 
16557
$as_echo "$at_srcdir/json.at:73: printf %s \"[1,2,]\" > input"
 
16558
at_fn_check_prepare_trace "json.at:73"
 
16559
( $at_check_trace; printf %s "[1,2,]" > input
 
16560
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16561
at_status=$? at_failed=false
 
16562
$at_check_filter
 
16563
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16564
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16565
at_fn_check_status 0 $at_status "$at_srcdir/json.at:73"
 
16566
$at_failed && at_fn_log_failure
 
16567
$at_traceon; }
 
16568
 
 
16569
 
 
16570
   { set +x
 
16571
$as_echo "$at_srcdir/json.at:73: \$PYTHON \$srcdir/test-json.py  input"
 
16572
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:73"
 
16573
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
16574
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16575
at_status=$? at_failed=false
 
16576
$at_check_filter
 
16577
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16578
echo stdout:; tee stdout <"$at_stdout"
 
16579
at_fn_check_status 1 $at_status "$at_srcdir/json.at:73"
 
16580
$at_failed && at_fn_log_failure  \
 
16581
"input"
 
16582
$at_traceon; }
 
16583
 
 
16584
   { set +x
 
16585
$as_echo "$at_srcdir/json.at:73: sed 's/^error: [^:]*:/error:/' < stdout"
 
16586
at_fn_check_prepare_trace "json.at:73"
 
16587
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
16588
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16589
at_status=$? at_failed=false
 
16590
$at_check_filter
 
16591
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16592
echo >>"$at_stdout"; $as_echo "error: syntax error expecting value
 
16593
" | \
 
16594
  $at_diff - "$at_stdout" || at_failed=:
 
16595
at_fn_check_status 0 $at_status "$at_srcdir/json.at:73"
 
16596
$at_failed && at_fn_log_failure  \
 
16597
"input"
 
16598
$at_traceon; }
 
16599
 
 
16600
     set +x
 
16601
  $at_times_p && times >"$at_times_file"
 
16602
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16603
read at_status <"$at_status_file"
 
16604
#AT_STOP_209
 
16605
#AT_START_210
 
16606
at_fn_group_banner 210 'json.at:75' \
 
16607
  "doubled comma not allowed - C" "                  " 20
 
16608
at_xfail=no
 
16609
(
 
16610
  $as_echo "210. $at_setup_line: testing $at_desc ..."
 
16611
  $at_traceon
 
16612
 
 
16613
 
 
16614
   { set +x
 
16615
$as_echo "$at_srcdir/json.at:75: printf %s \"[1,,2]\" > input"
 
16616
at_fn_check_prepare_trace "json.at:75"
 
16617
( $at_check_trace; printf %s "[1,,2]" > input
 
16618
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16619
at_status=$? at_failed=false
 
16620
$at_check_filter
 
16621
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16622
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16623
at_fn_check_status 0 $at_status "$at_srcdir/json.at:75"
 
16624
$at_failed && at_fn_log_failure
 
16625
$at_traceon; }
 
16626
 
 
16627
 
 
16628
   { set +x
 
16629
$as_echo "$at_srcdir/json.at:75: test-json  input"
 
16630
at_fn_check_prepare_trace "json.at:75"
 
16631
( $at_check_trace; test-json  input
 
16632
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16633
at_status=$? at_failed=false
 
16634
$at_check_filter
 
16635
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16636
echo stdout:; tee stdout <"$at_stdout"
 
16637
at_fn_check_status 1 $at_status "$at_srcdir/json.at:75"
 
16638
$at_failed && at_fn_log_failure  \
 
16639
"input"
 
16640
$at_traceon; }
 
16641
 
 
16642
   { set +x
 
16643
$as_echo "$at_srcdir/json.at:75: sed 's/^error: [^:]*:/error:/' < stdout"
 
16644
at_fn_check_prepare_trace "json.at:75"
 
16645
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
16646
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16647
at_status=$? at_failed=false
 
16648
$at_check_filter
 
16649
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16650
echo >>"$at_stdout"; $as_echo "error: syntax error expecting value
 
16651
" | \
 
16652
  $at_diff - "$at_stdout" || at_failed=:
 
16653
at_fn_check_status 0 $at_status "$at_srcdir/json.at:75"
 
16654
$at_failed && at_fn_log_failure  \
 
16655
"input"
 
16656
$at_traceon; }
 
16657
 
 
16658
     set +x
 
16659
  $at_times_p && times >"$at_times_file"
 
16660
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16661
read at_status <"$at_status_file"
 
16662
#AT_STOP_210
 
16663
#AT_START_211
 
16664
at_fn_group_banner 211 'json.at:75' \
 
16665
  "doubled comma not allowed - Python" "             " 20
 
16666
at_xfail=no
 
16667
(
 
16668
  $as_echo "211. $at_setup_line: testing $at_desc ..."
 
16669
  $at_traceon
 
16670
 
 
16671
 
 
16672
   $as_echo "json.at:75" >"$at_check_line_file"
 
16673
(test $HAVE_PYTHON = no) \
 
16674
  && at_fn_check_skip 77 "$at_srcdir/json.at:75"
 
16675
   { set +x
 
16676
$as_echo "$at_srcdir/json.at:75: printf %s \"[1,,2]\" > input"
 
16677
at_fn_check_prepare_trace "json.at:75"
 
16678
( $at_check_trace; printf %s "[1,,2]" > input
 
16679
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16680
at_status=$? at_failed=false
 
16681
$at_check_filter
 
16682
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16683
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16684
at_fn_check_status 0 $at_status "$at_srcdir/json.at:75"
 
16685
$at_failed && at_fn_log_failure
 
16686
$at_traceon; }
 
16687
 
 
16688
 
 
16689
   { set +x
 
16690
$as_echo "$at_srcdir/json.at:75: \$PYTHON \$srcdir/test-json.py  input"
 
16691
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:75"
 
16692
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
16693
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16694
at_status=$? at_failed=false
 
16695
$at_check_filter
 
16696
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16697
echo stdout:; tee stdout <"$at_stdout"
 
16698
at_fn_check_status 1 $at_status "$at_srcdir/json.at:75"
 
16699
$at_failed && at_fn_log_failure  \
 
16700
"input"
 
16701
$at_traceon; }
 
16702
 
 
16703
   { set +x
 
16704
$as_echo "$at_srcdir/json.at:75: sed 's/^error: [^:]*:/error:/' < stdout"
 
16705
at_fn_check_prepare_trace "json.at:75"
 
16706
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
16707
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16708
at_status=$? at_failed=false
 
16709
$at_check_filter
 
16710
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16711
echo >>"$at_stdout"; $as_echo "error: syntax error expecting value
 
16712
" | \
 
16713
  $at_diff - "$at_stdout" || at_failed=:
 
16714
at_fn_check_status 0 $at_status "$at_srcdir/json.at:75"
 
16715
$at_failed && at_fn_log_failure  \
 
16716
"input"
 
16717
$at_traceon; }
 
16718
 
 
16719
     set +x
 
16720
  $at_times_p && times >"$at_times_file"
 
16721
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16722
read at_status <"$at_status_file"
 
16723
#AT_STOP_211
 
16724
#AT_START_212
 
16725
at_fn_group_banner 212 'json.at:80' \
 
16726
  "empty string - C" "                               " 21
 
16727
at_xfail=no
 
16728
(
 
16729
  $as_echo "212. $at_setup_line: testing $at_desc ..."
 
16730
  $at_traceon
 
16731
 
 
16732
 
 
16733
   { set +x
 
16734
$as_echo "$at_srcdir/json.at:80: printf %s \"[ \\\"\\\" ]\" > input"
 
16735
at_fn_check_prepare_trace "json.at:80"
 
16736
( $at_check_trace; printf %s "[ \"\" ]" > input
 
16737
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16738
at_status=$? at_failed=false
 
16739
$at_check_filter
 
16740
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16741
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16742
at_fn_check_status 0 $at_status "$at_srcdir/json.at:80"
 
16743
$at_failed && at_fn_log_failure
 
16744
$at_traceon; }
 
16745
 
 
16746
 
 
16747
   { set +x
 
16748
$as_echo "$at_srcdir/json.at:80: test-json  input"
 
16749
at_fn_check_prepare_trace "json.at:80"
 
16750
( $at_check_trace; test-json  input
 
16751
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16752
at_status=$? at_failed=false
 
16753
$at_check_filter
 
16754
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16755
echo stdout:; tee stdout <"$at_stdout"
 
16756
at_fn_check_status 0 $at_status "$at_srcdir/json.at:80"
 
16757
$at_failed && at_fn_log_failure  \
 
16758
"input"
 
16759
$at_traceon; }
 
16760
 
 
16761
   { set +x
 
16762
$as_echo "$at_srcdir/json.at:80: cat stdout"
 
16763
at_fn_check_prepare_trace "json.at:80"
 
16764
( $at_check_trace; cat stdout
 
16765
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16766
at_status=$? at_failed=false
 
16767
$at_check_filter
 
16768
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16769
echo >>"$at_stdout"; $as_echo "[\"\"]
 
16770
" | \
 
16771
  $at_diff - "$at_stdout" || at_failed=:
 
16772
at_fn_check_status 0 $at_status "$at_srcdir/json.at:80"
 
16773
$at_failed && at_fn_log_failure  \
 
16774
"input"
 
16775
$at_traceon; }
 
16776
 
 
16777
     set +x
 
16778
  $at_times_p && times >"$at_times_file"
 
16779
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16780
read at_status <"$at_status_file"
 
16781
#AT_STOP_212
 
16782
#AT_START_213
 
16783
at_fn_group_banner 213 'json.at:80' \
 
16784
  "empty string - Python" "                          " 21
 
16785
at_xfail=no
 
16786
(
 
16787
  $as_echo "213. $at_setup_line: testing $at_desc ..."
 
16788
  $at_traceon
 
16789
 
 
16790
 
 
16791
   $as_echo "json.at:80" >"$at_check_line_file"
 
16792
(test $HAVE_PYTHON = no) \
 
16793
  && at_fn_check_skip 77 "$at_srcdir/json.at:80"
 
16794
   { set +x
 
16795
$as_echo "$at_srcdir/json.at:80: printf %s \"[ \\\"\\\" ]\" > input"
 
16796
at_fn_check_prepare_trace "json.at:80"
 
16797
( $at_check_trace; printf %s "[ \"\" ]" > input
 
16798
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16799
at_status=$? at_failed=false
 
16800
$at_check_filter
 
16801
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16802
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16803
at_fn_check_status 0 $at_status "$at_srcdir/json.at:80"
 
16804
$at_failed && at_fn_log_failure
 
16805
$at_traceon; }
 
16806
 
 
16807
 
 
16808
   { set +x
 
16809
$as_echo "$at_srcdir/json.at:80: \$PYTHON \$srcdir/test-json.py  input"
 
16810
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:80"
 
16811
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
16812
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16813
at_status=$? at_failed=false
 
16814
$at_check_filter
 
16815
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16816
echo stdout:; tee stdout <"$at_stdout"
 
16817
at_fn_check_status 0 $at_status "$at_srcdir/json.at:80"
 
16818
$at_failed && at_fn_log_failure  \
 
16819
"input"
 
16820
$at_traceon; }
 
16821
 
 
16822
   { set +x
 
16823
$as_echo "$at_srcdir/json.at:80: cat stdout"
 
16824
at_fn_check_prepare_trace "json.at:80"
 
16825
( $at_check_trace; cat stdout
 
16826
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16827
at_status=$? at_failed=false
 
16828
$at_check_filter
 
16829
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16830
echo >>"$at_stdout"; $as_echo "[\"\"]
 
16831
" | \
 
16832
  $at_diff - "$at_stdout" || at_failed=:
 
16833
at_fn_check_status 0 $at_status "$at_srcdir/json.at:80"
 
16834
$at_failed && at_fn_log_failure  \
 
16835
"input"
 
16836
$at_traceon; }
 
16837
 
 
16838
     set +x
 
16839
  $at_times_p && times >"$at_times_file"
 
16840
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16841
read at_status <"$at_status_file"
 
16842
#AT_STOP_213
 
16843
#AT_START_214
 
16844
at_fn_group_banner 214 'json.at:81' \
 
16845
  "1-character strings - C" "                        " 21
 
16846
at_xfail=no
 
16847
(
 
16848
  $as_echo "214. $at_setup_line: testing $at_desc ..."
 
16849
  $at_traceon
 
16850
 
 
16851
 
 
16852
   { set +x
 
16853
$as_echo "$at_srcdir/json.at:81: printf %s \"[ \\\"a\\\", \\\"b\\\", \\\"c\\\" ]\" > input"
 
16854
at_fn_check_prepare_trace "json.at:81"
 
16855
( $at_check_trace; printf %s "[ \"a\", \"b\", \"c\" ]" > input
 
16856
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16857
at_status=$? at_failed=false
 
16858
$at_check_filter
 
16859
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16860
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16861
at_fn_check_status 0 $at_status "$at_srcdir/json.at:81"
 
16862
$at_failed && at_fn_log_failure
 
16863
$at_traceon; }
 
16864
 
 
16865
 
 
16866
   { set +x
 
16867
$as_echo "$at_srcdir/json.at:81: test-json  input"
 
16868
at_fn_check_prepare_trace "json.at:81"
 
16869
( $at_check_trace; test-json  input
 
16870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16871
at_status=$? at_failed=false
 
16872
$at_check_filter
 
16873
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16874
echo stdout:; tee stdout <"$at_stdout"
 
16875
at_fn_check_status 0 $at_status "$at_srcdir/json.at:81"
 
16876
$at_failed && at_fn_log_failure  \
 
16877
"input"
 
16878
$at_traceon; }
 
16879
 
 
16880
   { set +x
 
16881
$as_echo "$at_srcdir/json.at:81: cat stdout"
 
16882
at_fn_check_prepare_trace "json.at:81"
 
16883
( $at_check_trace; cat stdout
 
16884
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16885
at_status=$? at_failed=false
 
16886
$at_check_filter
 
16887
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16888
echo >>"$at_stdout"; $as_echo "[\"a\",\"b\",\"c\"]
 
16889
" | \
 
16890
  $at_diff - "$at_stdout" || at_failed=:
 
16891
at_fn_check_status 0 $at_status "$at_srcdir/json.at:81"
 
16892
$at_failed && at_fn_log_failure  \
 
16893
"input"
 
16894
$at_traceon; }
 
16895
 
 
16896
     set +x
 
16897
  $at_times_p && times >"$at_times_file"
 
16898
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16899
read at_status <"$at_status_file"
 
16900
#AT_STOP_214
 
16901
#AT_START_215
 
16902
at_fn_group_banner 215 'json.at:81' \
 
16903
  "1-character strings - Python" "                   " 21
 
16904
at_xfail=no
 
16905
(
 
16906
  $as_echo "215. $at_setup_line: testing $at_desc ..."
 
16907
  $at_traceon
 
16908
 
 
16909
 
 
16910
   $as_echo "json.at:81" >"$at_check_line_file"
 
16911
(test $HAVE_PYTHON = no) \
 
16912
  && at_fn_check_skip 77 "$at_srcdir/json.at:81"
 
16913
   { set +x
 
16914
$as_echo "$at_srcdir/json.at:81: printf %s \"[ \\\"a\\\", \\\"b\\\", \\\"c\\\" ]\" > input"
 
16915
at_fn_check_prepare_trace "json.at:81"
 
16916
( $at_check_trace; printf %s "[ \"a\", \"b\", \"c\" ]" > input
 
16917
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16918
at_status=$? at_failed=false
 
16919
$at_check_filter
 
16920
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16921
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16922
at_fn_check_status 0 $at_status "$at_srcdir/json.at:81"
 
16923
$at_failed && at_fn_log_failure
 
16924
$at_traceon; }
 
16925
 
 
16926
 
 
16927
   { set +x
 
16928
$as_echo "$at_srcdir/json.at:81: \$PYTHON \$srcdir/test-json.py  input"
 
16929
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:81"
 
16930
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
16931
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16932
at_status=$? at_failed=false
 
16933
$at_check_filter
 
16934
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16935
echo stdout:; tee stdout <"$at_stdout"
 
16936
at_fn_check_status 0 $at_status "$at_srcdir/json.at:81"
 
16937
$at_failed && at_fn_log_failure  \
 
16938
"input"
 
16939
$at_traceon; }
 
16940
 
 
16941
   { set +x
 
16942
$as_echo "$at_srcdir/json.at:81: cat stdout"
 
16943
at_fn_check_prepare_trace "json.at:81"
 
16944
( $at_check_trace; cat stdout
 
16945
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16946
at_status=$? at_failed=false
 
16947
$at_check_filter
 
16948
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16949
echo >>"$at_stdout"; $as_echo "[\"a\",\"b\",\"c\"]
 
16950
" | \
 
16951
  $at_diff - "$at_stdout" || at_failed=:
 
16952
at_fn_check_status 0 $at_status "$at_srcdir/json.at:81"
 
16953
$at_failed && at_fn_log_failure  \
 
16954
"input"
 
16955
$at_traceon; }
 
16956
 
 
16957
     set +x
 
16958
  $at_times_p && times >"$at_times_file"
 
16959
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
16960
read at_status <"$at_status_file"
 
16961
#AT_STOP_215
 
16962
#AT_START_216
 
16963
at_fn_group_banner 216 'json.at:84' \
 
16964
  "escape sequences - C" "                           " 21
 
16965
at_xfail=no
 
16966
(
 
16967
  $as_echo "216. $at_setup_line: testing $at_desc ..."
 
16968
  $at_traceon
 
16969
 
 
16970
 
 
16971
   { set +x
 
16972
$as_echo "$at_srcdir/json.at:84: printf %s \"[ \\\" \\\\\\\" \\\\\\\\ \\\\/ \\\\b \\\\f \\\\n \\\\r \\\\t\\\" ]\" > input"
 
16973
at_fn_check_prepare_trace "json.at:84"
 
16974
( $at_check_trace; printf %s "[ \" \\\" \\\\ \\/ \\b \\f \\n \\r \\t\" ]" > input
 
16975
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16976
at_status=$? at_failed=false
 
16977
$at_check_filter
 
16978
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16979
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
16980
at_fn_check_status 0 $at_status "$at_srcdir/json.at:84"
 
16981
$at_failed && at_fn_log_failure
 
16982
$at_traceon; }
 
16983
 
 
16984
 
 
16985
   { set +x
 
16986
$as_echo "$at_srcdir/json.at:84: test-json  input"
 
16987
at_fn_check_prepare_trace "json.at:84"
 
16988
( $at_check_trace; test-json  input
 
16989
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
16990
at_status=$? at_failed=false
 
16991
$at_check_filter
 
16992
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
16993
echo stdout:; tee stdout <"$at_stdout"
 
16994
at_fn_check_status 0 $at_status "$at_srcdir/json.at:84"
 
16995
$at_failed && at_fn_log_failure  \
 
16996
"input"
 
16997
$at_traceon; }
 
16998
 
 
16999
   { set +x
 
17000
$as_echo "$at_srcdir/json.at:84: cat stdout"
 
17001
at_fn_check_prepare_trace "json.at:84"
 
17002
( $at_check_trace; cat stdout
 
17003
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17004
at_status=$? at_failed=false
 
17005
$at_check_filter
 
17006
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17007
echo >>"$at_stdout"; $as_echo "[\" \\\" \\\\ / \\b \\f \\n \\r \\t\"]
 
17008
" | \
 
17009
  $at_diff - "$at_stdout" || at_failed=:
 
17010
at_fn_check_status 0 $at_status "$at_srcdir/json.at:84"
 
17011
$at_failed && at_fn_log_failure  \
 
17012
"input"
 
17013
$at_traceon; }
 
17014
 
 
17015
     set +x
 
17016
  $at_times_p && times >"$at_times_file"
 
17017
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17018
read at_status <"$at_status_file"
 
17019
#AT_STOP_216
 
17020
#AT_START_217
 
17021
at_fn_group_banner 217 'json.at:84' \
 
17022
  "escape sequences - Python" "                      " 21
 
17023
at_xfail=no
 
17024
(
 
17025
  $as_echo "217. $at_setup_line: testing $at_desc ..."
 
17026
  $at_traceon
 
17027
 
 
17028
 
 
17029
   $as_echo "json.at:84" >"$at_check_line_file"
 
17030
(test $HAVE_PYTHON = no) \
 
17031
  && at_fn_check_skip 77 "$at_srcdir/json.at:84"
 
17032
   { set +x
 
17033
$as_echo "$at_srcdir/json.at:84: printf %s \"[ \\\" \\\\\\\" \\\\\\\\ \\\\/ \\\\b \\\\f \\\\n \\\\r \\\\t\\\" ]\" > input"
 
17034
at_fn_check_prepare_trace "json.at:84"
 
17035
( $at_check_trace; printf %s "[ \" \\\" \\\\ \\/ \\b \\f \\n \\r \\t\" ]" > input
 
17036
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17037
at_status=$? at_failed=false
 
17038
$at_check_filter
 
17039
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17040
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17041
at_fn_check_status 0 $at_status "$at_srcdir/json.at:84"
 
17042
$at_failed && at_fn_log_failure
 
17043
$at_traceon; }
 
17044
 
 
17045
 
 
17046
   { set +x
 
17047
$as_echo "$at_srcdir/json.at:84: \$PYTHON \$srcdir/test-json.py  input"
 
17048
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:84"
 
17049
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
17050
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17051
at_status=$? at_failed=false
 
17052
$at_check_filter
 
17053
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17054
echo stdout:; tee stdout <"$at_stdout"
 
17055
at_fn_check_status 0 $at_status "$at_srcdir/json.at:84"
 
17056
$at_failed && at_fn_log_failure  \
 
17057
"input"
 
17058
$at_traceon; }
 
17059
 
 
17060
   { set +x
 
17061
$as_echo "$at_srcdir/json.at:84: cat stdout"
 
17062
at_fn_check_prepare_trace "json.at:84"
 
17063
( $at_check_trace; cat stdout
 
17064
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17065
at_status=$? at_failed=false
 
17066
$at_check_filter
 
17067
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17068
echo >>"$at_stdout"; $as_echo "[\" \\\" \\\\ / \\b \\f \\n \\r \\t\"]
 
17069
" | \
 
17070
  $at_diff - "$at_stdout" || at_failed=:
 
17071
at_fn_check_status 0 $at_status "$at_srcdir/json.at:84"
 
17072
$at_failed && at_fn_log_failure  \
 
17073
"input"
 
17074
$at_traceon; }
 
17075
 
 
17076
     set +x
 
17077
  $at_times_p && times >"$at_times_file"
 
17078
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17079
read at_status <"$at_status_file"
 
17080
#AT_STOP_217
 
17081
#AT_START_218
 
17082
at_fn_group_banner 218 'json.at:87' \
 
17083
  "Unicode escape sequences - C" "                   " 21
 
17084
at_xfail=no
 
17085
(
 
17086
  $as_echo "218. $at_setup_line: testing $at_desc ..."
 
17087
  $at_traceon
 
17088
 
 
17089
 
 
17090
   { set +x
 
17091
$as_echo "$at_srcdir/json.at:87: printf %s \"[ \\\" \\\\u0022 \\\\u005c \\\\u002F \\\\u0008 \\\\u000c \\\\u000A \\\\u000d \\\\u0009\\\" ]\" > input"
 
17092
at_fn_check_prepare_trace "json.at:87"
 
17093
( $at_check_trace; printf %s "[ \" \\u0022 \\u005c \\u002F \\u0008 \\u000c \\u000A \\u000d \\u0009\" ]" > input
 
17094
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17095
at_status=$? at_failed=false
 
17096
$at_check_filter
 
17097
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17098
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17099
at_fn_check_status 0 $at_status "$at_srcdir/json.at:87"
 
17100
$at_failed && at_fn_log_failure
 
17101
$at_traceon; }
 
17102
 
 
17103
 
 
17104
   { set +x
 
17105
$as_echo "$at_srcdir/json.at:87: test-json  input"
 
17106
at_fn_check_prepare_trace "json.at:87"
 
17107
( $at_check_trace; test-json  input
 
17108
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17109
at_status=$? at_failed=false
 
17110
$at_check_filter
 
17111
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17112
echo stdout:; tee stdout <"$at_stdout"
 
17113
at_fn_check_status 0 $at_status "$at_srcdir/json.at:87"
 
17114
$at_failed && at_fn_log_failure  \
 
17115
"input"
 
17116
$at_traceon; }
 
17117
 
 
17118
   { set +x
 
17119
$as_echo "$at_srcdir/json.at:87: cat stdout"
 
17120
at_fn_check_prepare_trace "json.at:87"
 
17121
( $at_check_trace; cat stdout
 
17122
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17123
at_status=$? at_failed=false
 
17124
$at_check_filter
 
17125
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17126
echo >>"$at_stdout"; $as_echo "[\" \\\" \\\\ / \\b \\f \\n \\r \\t\"]
 
17127
" | \
 
17128
  $at_diff - "$at_stdout" || at_failed=:
 
17129
at_fn_check_status 0 $at_status "$at_srcdir/json.at:87"
 
17130
$at_failed && at_fn_log_failure  \
 
17131
"input"
 
17132
$at_traceon; }
 
17133
 
 
17134
     set +x
 
17135
  $at_times_p && times >"$at_times_file"
 
17136
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17137
read at_status <"$at_status_file"
 
17138
#AT_STOP_218
 
17139
#AT_START_219
 
17140
at_fn_group_banner 219 'json.at:87' \
 
17141
  "Unicode escape sequences - Python" "              " 21
 
17142
at_xfail=no
 
17143
(
 
17144
  $as_echo "219. $at_setup_line: testing $at_desc ..."
 
17145
  $at_traceon
 
17146
 
 
17147
 
 
17148
   $as_echo "json.at:87" >"$at_check_line_file"
 
17149
(test $HAVE_PYTHON = no) \
 
17150
  && at_fn_check_skip 77 "$at_srcdir/json.at:87"
 
17151
   { set +x
 
17152
$as_echo "$at_srcdir/json.at:87: printf %s \"[ \\\" \\\\u0022 \\\\u005c \\\\u002F \\\\u0008 \\\\u000c \\\\u000A \\\\u000d \\\\u0009\\\" ]\" > input"
 
17153
at_fn_check_prepare_trace "json.at:87"
 
17154
( $at_check_trace; printf %s "[ \" \\u0022 \\u005c \\u002F \\u0008 \\u000c \\u000A \\u000d \\u0009\" ]" > input
 
17155
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17156
at_status=$? at_failed=false
 
17157
$at_check_filter
 
17158
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17159
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17160
at_fn_check_status 0 $at_status "$at_srcdir/json.at:87"
 
17161
$at_failed && at_fn_log_failure
 
17162
$at_traceon; }
 
17163
 
 
17164
 
 
17165
   { set +x
 
17166
$as_echo "$at_srcdir/json.at:87: \$PYTHON \$srcdir/test-json.py  input"
 
17167
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:87"
 
17168
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
17169
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17170
at_status=$? at_failed=false
 
17171
$at_check_filter
 
17172
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17173
echo stdout:; tee stdout <"$at_stdout"
 
17174
at_fn_check_status 0 $at_status "$at_srcdir/json.at:87"
 
17175
$at_failed && at_fn_log_failure  \
 
17176
"input"
 
17177
$at_traceon; }
 
17178
 
 
17179
   { set +x
 
17180
$as_echo "$at_srcdir/json.at:87: cat stdout"
 
17181
at_fn_check_prepare_trace "json.at:87"
 
17182
( $at_check_trace; cat stdout
 
17183
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17184
at_status=$? at_failed=false
 
17185
$at_check_filter
 
17186
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17187
echo >>"$at_stdout"; $as_echo "[\" \\\" \\\\ / \\b \\f \\n \\r \\t\"]
 
17188
" | \
 
17189
  $at_diff - "$at_stdout" || at_failed=:
 
17190
at_fn_check_status 0 $at_status "$at_srcdir/json.at:87"
 
17191
$at_failed && at_fn_log_failure  \
 
17192
"input"
 
17193
$at_traceon; }
 
17194
 
 
17195
     set +x
 
17196
  $at_times_p && times >"$at_times_file"
 
17197
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17198
read at_status <"$at_status_file"
 
17199
#AT_STOP_219
 
17200
#AT_START_220
 
17201
at_fn_group_banner 220 'json.at:90' \
 
17202
  "surrogate pairs - C" "                            " 21
 
17203
at_xfail=no
 
17204
(
 
17205
  $as_echo "220. $at_setup_line: testing $at_desc ..."
 
17206
  $at_traceon
 
17207
 
 
17208
 
 
17209
   { set +x
 
17210
$as_echo "$at_srcdir/json.at:90: printf %s \"[\\\"\\\\ud834\\\\udd1e\\\"]\" > input"
 
17211
at_fn_check_prepare_trace "json.at:90"
 
17212
( $at_check_trace; printf %s "[\"\\ud834\\udd1e\"]" > input
 
17213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17214
at_status=$? at_failed=false
 
17215
$at_check_filter
 
17216
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17217
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17218
at_fn_check_status 0 $at_status "$at_srcdir/json.at:90"
 
17219
$at_failed && at_fn_log_failure
 
17220
$at_traceon; }
 
17221
 
 
17222
 
 
17223
   { set +x
 
17224
$as_echo "$at_srcdir/json.at:90: test-json  input"
 
17225
at_fn_check_prepare_trace "json.at:90"
 
17226
( $at_check_trace; test-json  input
 
17227
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17228
at_status=$? at_failed=false
 
17229
$at_check_filter
 
17230
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17231
echo stdout:; tee stdout <"$at_stdout"
 
17232
at_fn_check_status 0 $at_status "$at_srcdir/json.at:90"
 
17233
$at_failed && at_fn_log_failure  \
 
17234
"input"
 
17235
$at_traceon; }
 
17236
 
 
17237
   { set +x
 
17238
$as_echo "$at_srcdir/json.at:90: cat stdout"
 
17239
at_fn_check_prepare_trace "json.at:90"
 
17240
( $at_check_trace; cat stdout
 
17241
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17242
at_status=$? at_failed=false
 
17243
$at_check_filter
 
17244
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17245
echo >>"$at_stdout"; $as_echo "[\"𝄞\"]
 
17246
" | \
 
17247
  $at_diff - "$at_stdout" || at_failed=:
 
17248
at_fn_check_status 0 $at_status "$at_srcdir/json.at:90"
 
17249
$at_failed && at_fn_log_failure  \
 
17250
"input"
 
17251
$at_traceon; }
 
17252
 
 
17253
     set +x
 
17254
  $at_times_p && times >"$at_times_file"
 
17255
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17256
read at_status <"$at_status_file"
 
17257
#AT_STOP_220
 
17258
#AT_START_221
 
17259
at_fn_group_banner 221 'json.at:93' \
 
17260
  "surrogate pairs - Python" "                       " 21
 
17261
at_xfail=no
 
17262
      $PYTHON -c "exit(len(u'\U00010800'))"; test $? -ne 1 && at_xfail=yes
 
17263
(
 
17264
  $as_echo "221. $at_setup_line: testing $at_desc ..."
 
17265
  $at_traceon
 
17266
 
 
17267
 
 
17268
   $as_echo "json.at:93" >"$at_check_line_file"
 
17269
(test $HAVE_PYTHON = no) \
 
17270
  && at_fn_check_skip 77 "$at_srcdir/json.at:93"
 
17271
 
 
17272
   { set +x
 
17273
$as_echo "$at_srcdir/json.at:93: printf %s \"[\\\"\\\\ud834\\\\udd1e\\\"]\" > input"
 
17274
at_fn_check_prepare_trace "json.at:93"
 
17275
( $at_check_trace; printf %s "[\"\\ud834\\udd1e\"]" > input
 
17276
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17277
at_status=$? at_failed=false
 
17278
$at_check_filter
 
17279
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17280
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17281
at_fn_check_status 0 $at_status "$at_srcdir/json.at:93"
 
17282
$at_failed && at_fn_log_failure
 
17283
$at_traceon; }
 
17284
 
 
17285
 
 
17286
   { set +x
 
17287
$as_echo "$at_srcdir/json.at:93: \$PYTHON \$srcdir/test-json.py  input"
 
17288
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:93"
 
17289
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
17290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17291
at_status=$? at_failed=false
 
17292
$at_check_filter
 
17293
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17294
echo stdout:; tee stdout <"$at_stdout"
 
17295
at_fn_check_status 0 $at_status "$at_srcdir/json.at:93"
 
17296
$at_failed && at_fn_log_failure  \
 
17297
"input"
 
17298
$at_traceon; }
 
17299
 
 
17300
   { set +x
 
17301
$as_echo "$at_srcdir/json.at:93: cat stdout"
 
17302
at_fn_check_prepare_trace "json.at:93"
 
17303
( $at_check_trace; cat stdout
 
17304
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17305
at_status=$? at_failed=false
 
17306
$at_check_filter
 
17307
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17308
echo >>"$at_stdout"; $as_echo "[\"𝄞\"]
 
17309
" | \
 
17310
  $at_diff - "$at_stdout" || at_failed=:
 
17311
at_fn_check_status 0 $at_status "$at_srcdir/json.at:93"
 
17312
$at_failed && at_fn_log_failure  \
 
17313
"input"
 
17314
$at_traceon; }
 
17315
 
 
17316
     set +x
 
17317
  $at_times_p && times >"$at_times_file"
 
17318
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17319
read at_status <"$at_status_file"
 
17320
#AT_STOP_221
 
17321
#AT_START_222
 
17322
at_fn_group_banner 222 'json.at:96' \
 
17323
  "a string by itself is not valid JSON - C" "       " 21
 
17324
at_xfail=no
 
17325
(
 
17326
  $as_echo "222. $at_setup_line: testing $at_desc ..."
 
17327
  $at_traceon
 
17328
 
 
17329
 
 
17330
   { set +x
 
17331
$as_echo "$at_srcdir/json.at:96: printf %s \"\\\"xxx\\\"\" > input"
 
17332
at_fn_check_prepare_trace "json.at:96"
 
17333
( $at_check_trace; printf %s "\"xxx\"" > input
 
17334
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17335
at_status=$? at_failed=false
 
17336
$at_check_filter
 
17337
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17338
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17339
at_fn_check_status 0 $at_status "$at_srcdir/json.at:96"
 
17340
$at_failed && at_fn_log_failure
 
17341
$at_traceon; }
 
17342
 
 
17343
 
 
17344
   { set +x
 
17345
$as_echo "$at_srcdir/json.at:96: test-json  input"
 
17346
at_fn_check_prepare_trace "json.at:96"
 
17347
( $at_check_trace; test-json  input
 
17348
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17349
at_status=$? at_failed=false
 
17350
$at_check_filter
 
17351
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17352
echo stdout:; tee stdout <"$at_stdout"
 
17353
at_fn_check_status 1 $at_status "$at_srcdir/json.at:96"
 
17354
$at_failed && at_fn_log_failure  \
 
17355
"input"
 
17356
$at_traceon; }
 
17357
 
 
17358
   { set +x
 
17359
$as_echo "$at_srcdir/json.at:96: sed 's/^error: [^:]*:/error:/' < stdout"
 
17360
at_fn_check_prepare_trace "json.at:96"
 
17361
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17362
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17363
at_status=$? at_failed=false
 
17364
$at_check_filter
 
17365
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17366
echo >>"$at_stdout"; $as_echo "error: syntax error at beginning of input
 
17367
" | \
 
17368
  $at_diff - "$at_stdout" || at_failed=:
 
17369
at_fn_check_status 0 $at_status "$at_srcdir/json.at:96"
 
17370
$at_failed && at_fn_log_failure  \
 
17371
"input"
 
17372
$at_traceon; }
 
17373
 
 
17374
     set +x
 
17375
  $at_times_p && times >"$at_times_file"
 
17376
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17377
read at_status <"$at_status_file"
 
17378
#AT_STOP_222
 
17379
#AT_START_223
 
17380
at_fn_group_banner 223 'json.at:96' \
 
17381
  "a string by itself is not valid JSON - Python" "  " 21
 
17382
at_xfail=no
 
17383
(
 
17384
  $as_echo "223. $at_setup_line: testing $at_desc ..."
 
17385
  $at_traceon
 
17386
 
 
17387
 
 
17388
   $as_echo "json.at:96" >"$at_check_line_file"
 
17389
(test $HAVE_PYTHON = no) \
 
17390
  && at_fn_check_skip 77 "$at_srcdir/json.at:96"
 
17391
   { set +x
 
17392
$as_echo "$at_srcdir/json.at:96: printf %s \"\\\"xxx\\\"\" > input"
 
17393
at_fn_check_prepare_trace "json.at:96"
 
17394
( $at_check_trace; printf %s "\"xxx\"" > input
 
17395
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17396
at_status=$? at_failed=false
 
17397
$at_check_filter
 
17398
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17399
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17400
at_fn_check_status 0 $at_status "$at_srcdir/json.at:96"
 
17401
$at_failed && at_fn_log_failure
 
17402
$at_traceon; }
 
17403
 
 
17404
 
 
17405
   { set +x
 
17406
$as_echo "$at_srcdir/json.at:96: \$PYTHON \$srcdir/test-json.py  input"
 
17407
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:96"
 
17408
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
17409
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17410
at_status=$? at_failed=false
 
17411
$at_check_filter
 
17412
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17413
echo stdout:; tee stdout <"$at_stdout"
 
17414
at_fn_check_status 1 $at_status "$at_srcdir/json.at:96"
 
17415
$at_failed && at_fn_log_failure  \
 
17416
"input"
 
17417
$at_traceon; }
 
17418
 
 
17419
   { set +x
 
17420
$as_echo "$at_srcdir/json.at:96: sed 's/^error: [^:]*:/error:/' < stdout"
 
17421
at_fn_check_prepare_trace "json.at:96"
 
17422
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17424
at_status=$? at_failed=false
 
17425
$at_check_filter
 
17426
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17427
echo >>"$at_stdout"; $as_echo "error: syntax error at beginning of input
 
17428
" | \
 
17429
  $at_diff - "$at_stdout" || at_failed=:
 
17430
at_fn_check_status 0 $at_status "$at_srcdir/json.at:96"
 
17431
$at_failed && at_fn_log_failure  \
 
17432
"input"
 
17433
$at_traceon; }
 
17434
 
 
17435
     set +x
 
17436
  $at_times_p && times >"$at_times_file"
 
17437
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17438
read at_status <"$at_status_file"
 
17439
#AT_STOP_223
 
17440
#AT_START_224
 
17441
at_fn_group_banner 224 'json.at:98' \
 
17442
  "end of line in quoted string - C" "               " 21
 
17443
at_xfail=no
 
17444
(
 
17445
  $as_echo "224. $at_setup_line: testing $at_desc ..."
 
17446
  $at_traceon
 
17447
 
 
17448
 
 
17449
   { set +x
 
17450
$as_echo "$at_srcdir/json.at:98: printf %s \"[\\\"xxx
 
17451
\\\"]\" > input"
 
17452
at_fn_check_prepare_notrace 'an embedded newline' "json.at:98"
 
17453
( $at_check_trace; printf %s "[\"xxx
 
17454
\"]" > input
 
17455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17456
at_status=$? at_failed=false
 
17457
$at_check_filter
 
17458
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17459
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17460
at_fn_check_status 0 $at_status "$at_srcdir/json.at:98"
 
17461
$at_failed && at_fn_log_failure
 
17462
$at_traceon; }
 
17463
 
 
17464
 
 
17465
   { set +x
 
17466
$as_echo "$at_srcdir/json.at:98: test-json  input"
 
17467
at_fn_check_prepare_trace "json.at:98"
 
17468
( $at_check_trace; test-json  input
 
17469
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17470
at_status=$? at_failed=false
 
17471
$at_check_filter
 
17472
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17473
echo stdout:; tee stdout <"$at_stdout"
 
17474
at_fn_check_status 1 $at_status "$at_srcdir/json.at:98"
 
17475
$at_failed && at_fn_log_failure  \
 
17476
"input"
 
17477
$at_traceon; }
 
17478
 
 
17479
   { set +x
 
17480
$as_echo "$at_srcdir/json.at:98: sed 's/^error: [^:]*:/error:/' < stdout"
 
17481
at_fn_check_prepare_trace "json.at:98"
 
17482
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17483
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17484
at_status=$? at_failed=false
 
17485
$at_check_filter
 
17486
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17487
echo >>"$at_stdout"; $as_echo "error: U+000A must be escaped in quoted string
 
17488
" | \
 
17489
  $at_diff - "$at_stdout" || at_failed=:
 
17490
at_fn_check_status 0 $at_status "$at_srcdir/json.at:98"
 
17491
$at_failed && at_fn_log_failure  \
 
17492
"input"
 
17493
$at_traceon; }
 
17494
 
 
17495
     set +x
 
17496
  $at_times_p && times >"$at_times_file"
 
17497
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17498
read at_status <"$at_status_file"
 
17499
#AT_STOP_224
 
17500
#AT_START_225
 
17501
at_fn_group_banner 225 'json.at:98' \
 
17502
  "end of line in quoted string - Python" "          " 21
 
17503
at_xfail=no
 
17504
(
 
17505
  $as_echo "225. $at_setup_line: testing $at_desc ..."
 
17506
  $at_traceon
 
17507
 
 
17508
 
 
17509
   $as_echo "json.at:98" >"$at_check_line_file"
 
17510
(test $HAVE_PYTHON = no) \
 
17511
  && at_fn_check_skip 77 "$at_srcdir/json.at:98"
 
17512
   { set +x
 
17513
$as_echo "$at_srcdir/json.at:98: printf %s \"[\\\"xxx
 
17514
\\\"]\" > input"
 
17515
at_fn_check_prepare_notrace 'an embedded newline' "json.at:98"
 
17516
( $at_check_trace; printf %s "[\"xxx
 
17517
\"]" > input
 
17518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17519
at_status=$? at_failed=false
 
17520
$at_check_filter
 
17521
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17522
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17523
at_fn_check_status 0 $at_status "$at_srcdir/json.at:98"
 
17524
$at_failed && at_fn_log_failure
 
17525
$at_traceon; }
 
17526
 
 
17527
 
 
17528
   { set +x
 
17529
$as_echo "$at_srcdir/json.at:98: \$PYTHON \$srcdir/test-json.py  input"
 
17530
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:98"
 
17531
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
17532
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17533
at_status=$? at_failed=false
 
17534
$at_check_filter
 
17535
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17536
echo stdout:; tee stdout <"$at_stdout"
 
17537
at_fn_check_status 1 $at_status "$at_srcdir/json.at:98"
 
17538
$at_failed && at_fn_log_failure  \
 
17539
"input"
 
17540
$at_traceon; }
 
17541
 
 
17542
   { set +x
 
17543
$as_echo "$at_srcdir/json.at:98: sed 's/^error: [^:]*:/error:/' < stdout"
 
17544
at_fn_check_prepare_trace "json.at:98"
 
17545
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17546
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17547
at_status=$? at_failed=false
 
17548
$at_check_filter
 
17549
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17550
echo >>"$at_stdout"; $as_echo "error: U+000A must be escaped in quoted string
 
17551
" | \
 
17552
  $at_diff - "$at_stdout" || at_failed=:
 
17553
at_fn_check_status 0 $at_status "$at_srcdir/json.at:98"
 
17554
$at_failed && at_fn_log_failure  \
 
17555
"input"
 
17556
$at_traceon; }
 
17557
 
 
17558
     set +x
 
17559
  $at_times_p && times >"$at_times_file"
 
17560
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17561
read at_status <"$at_status_file"
 
17562
#AT_STOP_225
 
17563
#AT_START_226
 
17564
at_fn_group_banner 226 'json.at:102' \
 
17565
  "formfeed in quoted string - C" "                  " 21
 
17566
at_xfail=no
 
17567
(
 
17568
  $as_echo "226. $at_setup_line: testing $at_desc ..."
 
17569
  $at_traceon
 
17570
 
 
17571
 
 
17572
   { set +x
 
17573
$as_echo "$at_srcdir/json.at:102: printf %s \"[\\\"xxx \\\"]\" > input"
 
17574
at_fn_check_prepare_trace "json.at:102"
 
17575
( $at_check_trace; printf %s "[\"xxx \"]" > input
 
17576
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17577
at_status=$? at_failed=false
 
17578
$at_check_filter
 
17579
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17580
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17581
at_fn_check_status 0 $at_status "$at_srcdir/json.at:102"
 
17582
$at_failed && at_fn_log_failure
 
17583
$at_traceon; }
 
17584
 
 
17585
 
 
17586
   { set +x
 
17587
$as_echo "$at_srcdir/json.at:102: test-json  input"
 
17588
at_fn_check_prepare_trace "json.at:102"
 
17589
( $at_check_trace; test-json  input
 
17590
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17591
at_status=$? at_failed=false
 
17592
$at_check_filter
 
17593
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17594
echo stdout:; tee stdout <"$at_stdout"
 
17595
at_fn_check_status 1 $at_status "$at_srcdir/json.at:102"
 
17596
$at_failed && at_fn_log_failure  \
 
17597
"input"
 
17598
$at_traceon; }
 
17599
 
 
17600
   { set +x
 
17601
$as_echo "$at_srcdir/json.at:102: sed 's/^error: [^:]*:/error:/' < stdout"
 
17602
at_fn_check_prepare_trace "json.at:102"
 
17603
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17604
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17605
at_status=$? at_failed=false
 
17606
$at_check_filter
 
17607
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17608
echo >>"$at_stdout"; $as_echo "error: U+000C must be escaped in quoted string
 
17609
" | \
 
17610
  $at_diff - "$at_stdout" || at_failed=:
 
17611
at_fn_check_status 0 $at_status "$at_srcdir/json.at:102"
 
17612
$at_failed && at_fn_log_failure  \
 
17613
"input"
 
17614
$at_traceon; }
 
17615
 
 
17616
     set +x
 
17617
  $at_times_p && times >"$at_times_file"
 
17618
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17619
read at_status <"$at_status_file"
 
17620
#AT_STOP_226
 
17621
#AT_START_227
 
17622
at_fn_group_banner 227 'json.at:102' \
 
17623
  "formfeed in quoted string - Python" "             " 21
 
17624
at_xfail=no
 
17625
(
 
17626
  $as_echo "227. $at_setup_line: testing $at_desc ..."
 
17627
  $at_traceon
 
17628
 
 
17629
 
 
17630
   $as_echo "json.at:102" >"$at_check_line_file"
 
17631
(test $HAVE_PYTHON = no) \
 
17632
  && at_fn_check_skip 77 "$at_srcdir/json.at:102"
 
17633
   { set +x
 
17634
$as_echo "$at_srcdir/json.at:102: printf %s \"[\\\"xxx \\\"]\" > input"
 
17635
at_fn_check_prepare_trace "json.at:102"
 
17636
( $at_check_trace; printf %s "[\"xxx \"]" > input
 
17637
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17638
at_status=$? at_failed=false
 
17639
$at_check_filter
 
17640
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17641
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17642
at_fn_check_status 0 $at_status "$at_srcdir/json.at:102"
 
17643
$at_failed && at_fn_log_failure
 
17644
$at_traceon; }
 
17645
 
 
17646
 
 
17647
   { set +x
 
17648
$as_echo "$at_srcdir/json.at:102: \$PYTHON \$srcdir/test-json.py  input"
 
17649
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:102"
 
17650
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
17651
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17652
at_status=$? at_failed=false
 
17653
$at_check_filter
 
17654
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17655
echo stdout:; tee stdout <"$at_stdout"
 
17656
at_fn_check_status 1 $at_status "$at_srcdir/json.at:102"
 
17657
$at_failed && at_fn_log_failure  \
 
17658
"input"
 
17659
$at_traceon; }
 
17660
 
 
17661
   { set +x
 
17662
$as_echo "$at_srcdir/json.at:102: sed 's/^error: [^:]*:/error:/' < stdout"
 
17663
at_fn_check_prepare_trace "json.at:102"
 
17664
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17665
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17666
at_status=$? at_failed=false
 
17667
$at_check_filter
 
17668
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17669
echo >>"$at_stdout"; $as_echo "error: U+000C must be escaped in quoted string
 
17670
" | \
 
17671
  $at_diff - "$at_stdout" || at_failed=:
 
17672
at_fn_check_status 0 $at_status "$at_srcdir/json.at:102"
 
17673
$at_failed && at_fn_log_failure  \
 
17674
"input"
 
17675
$at_traceon; }
 
17676
 
 
17677
     set +x
 
17678
  $at_times_p && times >"$at_times_file"
 
17679
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17680
read at_status <"$at_status_file"
 
17681
#AT_STOP_227
 
17682
#AT_START_228
 
17683
at_fn_group_banner 228 'json.at:105' \
 
17684
  "bad escape in quoted string - C" "                " 21
 
17685
at_xfail=no
 
17686
(
 
17687
  $as_echo "228. $at_setup_line: testing $at_desc ..."
 
17688
  $at_traceon
 
17689
 
 
17690
 
 
17691
   { set +x
 
17692
$as_echo "$at_srcdir/json.at:105: printf %s \"[\\\"\\\\x12\\\"]\" > input"
 
17693
at_fn_check_prepare_trace "json.at:105"
 
17694
( $at_check_trace; printf %s "[\"\\x12\"]" > input
 
17695
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17696
at_status=$? at_failed=false
 
17697
$at_check_filter
 
17698
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17699
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17700
at_fn_check_status 0 $at_status "$at_srcdir/json.at:105"
 
17701
$at_failed && at_fn_log_failure
 
17702
$at_traceon; }
 
17703
 
 
17704
 
 
17705
   { set +x
 
17706
$as_echo "$at_srcdir/json.at:105: test-json  input"
 
17707
at_fn_check_prepare_trace "json.at:105"
 
17708
( $at_check_trace; test-json  input
 
17709
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17710
at_status=$? at_failed=false
 
17711
$at_check_filter
 
17712
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17713
echo stdout:; tee stdout <"$at_stdout"
 
17714
at_fn_check_status 1 $at_status "$at_srcdir/json.at:105"
 
17715
$at_failed && at_fn_log_failure  \
 
17716
"input"
 
17717
$at_traceon; }
 
17718
 
 
17719
   { set +x
 
17720
$as_echo "$at_srcdir/json.at:105: sed 's/^error: [^:]*:/error:/' < stdout"
 
17721
at_fn_check_prepare_trace "json.at:105"
 
17722
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17723
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17724
at_status=$? at_failed=false
 
17725
$at_check_filter
 
17726
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17727
echo >>"$at_stdout"; $as_echo "error: bad escape \\x
 
17728
" | \
 
17729
  $at_diff - "$at_stdout" || at_failed=:
 
17730
at_fn_check_status 0 $at_status "$at_srcdir/json.at:105"
 
17731
$at_failed && at_fn_log_failure  \
 
17732
"input"
 
17733
$at_traceon; }
 
17734
 
 
17735
     set +x
 
17736
  $at_times_p && times >"$at_times_file"
 
17737
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17738
read at_status <"$at_status_file"
 
17739
#AT_STOP_228
 
17740
#AT_START_229
 
17741
at_fn_group_banner 229 'json.at:105' \
 
17742
  "bad escape in quoted string - Python" "           " 21
 
17743
at_xfail=no
 
17744
(
 
17745
  $as_echo "229. $at_setup_line: testing $at_desc ..."
 
17746
  $at_traceon
 
17747
 
 
17748
 
 
17749
   $as_echo "json.at:105" >"$at_check_line_file"
 
17750
(test $HAVE_PYTHON = no) \
 
17751
  && at_fn_check_skip 77 "$at_srcdir/json.at:105"
 
17752
   { set +x
 
17753
$as_echo "$at_srcdir/json.at:105: printf %s \"[\\\"\\\\x12\\\"]\" > input"
 
17754
at_fn_check_prepare_trace "json.at:105"
 
17755
( $at_check_trace; printf %s "[\"\\x12\"]" > input
 
17756
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17757
at_status=$? at_failed=false
 
17758
$at_check_filter
 
17759
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17760
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17761
at_fn_check_status 0 $at_status "$at_srcdir/json.at:105"
 
17762
$at_failed && at_fn_log_failure
 
17763
$at_traceon; }
 
17764
 
 
17765
 
 
17766
   { set +x
 
17767
$as_echo "$at_srcdir/json.at:105: \$PYTHON \$srcdir/test-json.py  input"
 
17768
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:105"
 
17769
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
17770
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17771
at_status=$? at_failed=false
 
17772
$at_check_filter
 
17773
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17774
echo stdout:; tee stdout <"$at_stdout"
 
17775
at_fn_check_status 1 $at_status "$at_srcdir/json.at:105"
 
17776
$at_failed && at_fn_log_failure  \
 
17777
"input"
 
17778
$at_traceon; }
 
17779
 
 
17780
   { set +x
 
17781
$as_echo "$at_srcdir/json.at:105: sed 's/^error: [^:]*:/error:/' < stdout"
 
17782
at_fn_check_prepare_trace "json.at:105"
 
17783
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17784
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17785
at_status=$? at_failed=false
 
17786
$at_check_filter
 
17787
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17788
echo >>"$at_stdout"; $as_echo "error: bad escape \\x
 
17789
" | \
 
17790
  $at_diff - "$at_stdout" || at_failed=:
 
17791
at_fn_check_status 0 $at_status "$at_srcdir/json.at:105"
 
17792
$at_failed && at_fn_log_failure  \
 
17793
"input"
 
17794
$at_traceon; }
 
17795
 
 
17796
     set +x
 
17797
  $at_times_p && times >"$at_times_file"
 
17798
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17799
read at_status <"$at_status_file"
 
17800
#AT_STOP_229
 
17801
#AT_START_230
 
17802
at_fn_group_banner 230 'json.at:108' \
 
17803
  "\\u must be followed by 4 hex digits (1) - C" "    " 21
 
17804
at_xfail=no
 
17805
(
 
17806
  $as_echo "230. $at_setup_line: testing $at_desc ..."
 
17807
  $at_traceon
 
17808
 
 
17809
 
 
17810
   { set +x
 
17811
$as_echo "$at_srcdir/json.at:108: printf %s \"[\\\"\\\\u1x\\\"]\" > input"
 
17812
at_fn_check_prepare_trace "json.at:108"
 
17813
( $at_check_trace; printf %s "[\"\\u1x\"]" > input
 
17814
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17815
at_status=$? at_failed=false
 
17816
$at_check_filter
 
17817
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17818
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17819
at_fn_check_status 0 $at_status "$at_srcdir/json.at:108"
 
17820
$at_failed && at_fn_log_failure
 
17821
$at_traceon; }
 
17822
 
 
17823
 
 
17824
   { set +x
 
17825
$as_echo "$at_srcdir/json.at:108: test-json  input"
 
17826
at_fn_check_prepare_trace "json.at:108"
 
17827
( $at_check_trace; test-json  input
 
17828
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17829
at_status=$? at_failed=false
 
17830
$at_check_filter
 
17831
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17832
echo stdout:; tee stdout <"$at_stdout"
 
17833
at_fn_check_status 1 $at_status "$at_srcdir/json.at:108"
 
17834
$at_failed && at_fn_log_failure  \
 
17835
"input"
 
17836
$at_traceon; }
 
17837
 
 
17838
   { set +x
 
17839
$as_echo "$at_srcdir/json.at:108: sed 's/^error: [^:]*:/error:/' < stdout"
 
17840
at_fn_check_prepare_trace "json.at:108"
 
17841
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17842
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17843
at_status=$? at_failed=false
 
17844
$at_check_filter
 
17845
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17846
echo >>"$at_stdout"; $as_echo "error: quoted string ends within \\u escape
 
17847
" | \
 
17848
  $at_diff - "$at_stdout" || at_failed=:
 
17849
at_fn_check_status 0 $at_status "$at_srcdir/json.at:108"
 
17850
$at_failed && at_fn_log_failure  \
 
17851
"input"
 
17852
$at_traceon; }
 
17853
 
 
17854
     set +x
 
17855
  $at_times_p && times >"$at_times_file"
 
17856
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17857
read at_status <"$at_status_file"
 
17858
#AT_STOP_230
 
17859
#AT_START_231
 
17860
at_fn_group_banner 231 'json.at:108' \
 
17861
  "\\u must be followed by 4 hex digits (1) - Python" "" 21
 
17862
at_xfail=no
 
17863
(
 
17864
  $as_echo "231. $at_setup_line: testing $at_desc ..."
 
17865
  $at_traceon
 
17866
 
 
17867
 
 
17868
   $as_echo "json.at:108" >"$at_check_line_file"
 
17869
(test $HAVE_PYTHON = no) \
 
17870
  && at_fn_check_skip 77 "$at_srcdir/json.at:108"
 
17871
   { set +x
 
17872
$as_echo "$at_srcdir/json.at:108: printf %s \"[\\\"\\\\u1x\\\"]\" > input"
 
17873
at_fn_check_prepare_trace "json.at:108"
 
17874
( $at_check_trace; printf %s "[\"\\u1x\"]" > input
 
17875
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17876
at_status=$? at_failed=false
 
17877
$at_check_filter
 
17878
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17879
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17880
at_fn_check_status 0 $at_status "$at_srcdir/json.at:108"
 
17881
$at_failed && at_fn_log_failure
 
17882
$at_traceon; }
 
17883
 
 
17884
 
 
17885
   { set +x
 
17886
$as_echo "$at_srcdir/json.at:108: \$PYTHON \$srcdir/test-json.py  input"
 
17887
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:108"
 
17888
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
17889
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17890
at_status=$? at_failed=false
 
17891
$at_check_filter
 
17892
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17893
echo stdout:; tee stdout <"$at_stdout"
 
17894
at_fn_check_status 1 $at_status "$at_srcdir/json.at:108"
 
17895
$at_failed && at_fn_log_failure  \
 
17896
"input"
 
17897
$at_traceon; }
 
17898
 
 
17899
   { set +x
 
17900
$as_echo "$at_srcdir/json.at:108: sed 's/^error: [^:]*:/error:/' < stdout"
 
17901
at_fn_check_prepare_trace "json.at:108"
 
17902
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17903
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17904
at_status=$? at_failed=false
 
17905
$at_check_filter
 
17906
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17907
echo >>"$at_stdout"; $as_echo "error: quoted string ends within \\u escape
 
17908
" | \
 
17909
  $at_diff - "$at_stdout" || at_failed=:
 
17910
at_fn_check_status 0 $at_status "$at_srcdir/json.at:108"
 
17911
$at_failed && at_fn_log_failure  \
 
17912
"input"
 
17913
$at_traceon; }
 
17914
 
 
17915
     set +x
 
17916
  $at_times_p && times >"$at_times_file"
 
17917
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17918
read at_status <"$at_status_file"
 
17919
#AT_STOP_231
 
17920
#AT_START_232
 
17921
at_fn_group_banner 232 'json.at:111' \
 
17922
  "\\u must be followed by 4 hex digits (2) - C" "    " 21
 
17923
at_xfail=no
 
17924
(
 
17925
  $as_echo "232. $at_setup_line: testing $at_desc ..."
 
17926
  $at_traceon
 
17927
 
 
17928
 
 
17929
   { set +x
 
17930
$as_echo "$at_srcdir/json.at:111: printf %s \"[\\\"\\\\u1xyz\\\"]\" > input"
 
17931
at_fn_check_prepare_trace "json.at:111"
 
17932
( $at_check_trace; printf %s "[\"\\u1xyz\"]" > input
 
17933
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17934
at_status=$? at_failed=false
 
17935
$at_check_filter
 
17936
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17937
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17938
at_fn_check_status 0 $at_status "$at_srcdir/json.at:111"
 
17939
$at_failed && at_fn_log_failure
 
17940
$at_traceon; }
 
17941
 
 
17942
 
 
17943
   { set +x
 
17944
$as_echo "$at_srcdir/json.at:111: test-json  input"
 
17945
at_fn_check_prepare_trace "json.at:111"
 
17946
( $at_check_trace; test-json  input
 
17947
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17948
at_status=$? at_failed=false
 
17949
$at_check_filter
 
17950
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17951
echo stdout:; tee stdout <"$at_stdout"
 
17952
at_fn_check_status 1 $at_status "$at_srcdir/json.at:111"
 
17953
$at_failed && at_fn_log_failure  \
 
17954
"input"
 
17955
$at_traceon; }
 
17956
 
 
17957
   { set +x
 
17958
$as_echo "$at_srcdir/json.at:111: sed 's/^error: [^:]*:/error:/' < stdout"
 
17959
at_fn_check_prepare_trace "json.at:111"
 
17960
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
17961
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17962
at_status=$? at_failed=false
 
17963
$at_check_filter
 
17964
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17965
echo >>"$at_stdout"; $as_echo "error: malformed \\u escape
 
17966
" | \
 
17967
  $at_diff - "$at_stdout" || at_failed=:
 
17968
at_fn_check_status 0 $at_status "$at_srcdir/json.at:111"
 
17969
$at_failed && at_fn_log_failure  \
 
17970
"input"
 
17971
$at_traceon; }
 
17972
 
 
17973
     set +x
 
17974
  $at_times_p && times >"$at_times_file"
 
17975
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
17976
read at_status <"$at_status_file"
 
17977
#AT_STOP_232
 
17978
#AT_START_233
 
17979
at_fn_group_banner 233 'json.at:111' \
 
17980
  "\\u must be followed by 4 hex digits (2) - Python" "" 21
 
17981
at_xfail=no
 
17982
(
 
17983
  $as_echo "233. $at_setup_line: testing $at_desc ..."
 
17984
  $at_traceon
 
17985
 
 
17986
 
 
17987
   $as_echo "json.at:111" >"$at_check_line_file"
 
17988
(test $HAVE_PYTHON = no) \
 
17989
  && at_fn_check_skip 77 "$at_srcdir/json.at:111"
 
17990
   { set +x
 
17991
$as_echo "$at_srcdir/json.at:111: printf %s \"[\\\"\\\\u1xyz\\\"]\" > input"
 
17992
at_fn_check_prepare_trace "json.at:111"
 
17993
( $at_check_trace; printf %s "[\"\\u1xyz\"]" > input
 
17994
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
17995
at_status=$? at_failed=false
 
17996
$at_check_filter
 
17997
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
17998
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
17999
at_fn_check_status 0 $at_status "$at_srcdir/json.at:111"
 
18000
$at_failed && at_fn_log_failure
 
18001
$at_traceon; }
 
18002
 
 
18003
 
 
18004
   { set +x
 
18005
$as_echo "$at_srcdir/json.at:111: \$PYTHON \$srcdir/test-json.py  input"
 
18006
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:111"
 
18007
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
18008
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18009
at_status=$? at_failed=false
 
18010
$at_check_filter
 
18011
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18012
echo stdout:; tee stdout <"$at_stdout"
 
18013
at_fn_check_status 1 $at_status "$at_srcdir/json.at:111"
 
18014
$at_failed && at_fn_log_failure  \
 
18015
"input"
 
18016
$at_traceon; }
 
18017
 
 
18018
   { set +x
 
18019
$as_echo "$at_srcdir/json.at:111: sed 's/^error: [^:]*:/error:/' < stdout"
 
18020
at_fn_check_prepare_trace "json.at:111"
 
18021
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18022
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18023
at_status=$? at_failed=false
 
18024
$at_check_filter
 
18025
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18026
echo >>"$at_stdout"; $as_echo "error: malformed \\u escape
 
18027
" | \
 
18028
  $at_diff - "$at_stdout" || at_failed=:
 
18029
at_fn_check_status 0 $at_status "$at_srcdir/json.at:111"
 
18030
$at_failed && at_fn_log_failure  \
 
18031
"input"
 
18032
$at_traceon; }
 
18033
 
 
18034
     set +x
 
18035
  $at_times_p && times >"$at_times_file"
 
18036
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18037
read at_status <"$at_status_file"
 
18038
#AT_STOP_233
 
18039
#AT_START_234
 
18040
at_fn_group_banner 234 'json.at:114' \
 
18041
  "isolated leading surrogate not allowed - C" "     " 21
 
18042
at_xfail=no
 
18043
(
 
18044
  $as_echo "234. $at_setup_line: testing $at_desc ..."
 
18045
  $at_traceon
 
18046
 
 
18047
 
 
18048
   { set +x
 
18049
$as_echo "$at_srcdir/json.at:114: printf %s \"[\\\"\\\\ud834xxx\\\"]\" > input"
 
18050
at_fn_check_prepare_trace "json.at:114"
 
18051
( $at_check_trace; printf %s "[\"\\ud834xxx\"]" > input
 
18052
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18053
at_status=$? at_failed=false
 
18054
$at_check_filter
 
18055
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18056
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18057
at_fn_check_status 0 $at_status "$at_srcdir/json.at:114"
 
18058
$at_failed && at_fn_log_failure
 
18059
$at_traceon; }
 
18060
 
 
18061
 
 
18062
   { set +x
 
18063
$as_echo "$at_srcdir/json.at:114: test-json  input"
 
18064
at_fn_check_prepare_trace "json.at:114"
 
18065
( $at_check_trace; test-json  input
 
18066
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18067
at_status=$? at_failed=false
 
18068
$at_check_filter
 
18069
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18070
echo stdout:; tee stdout <"$at_stdout"
 
18071
at_fn_check_status 1 $at_status "$at_srcdir/json.at:114"
 
18072
$at_failed && at_fn_log_failure  \
 
18073
"input"
 
18074
$at_traceon; }
 
18075
 
 
18076
   { set +x
 
18077
$as_echo "$at_srcdir/json.at:114: sed 's/^error: [^:]*:/error:/' < stdout"
 
18078
at_fn_check_prepare_trace "json.at:114"
 
18079
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18080
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18081
at_status=$? at_failed=false
 
18082
$at_check_filter
 
18083
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18084
echo >>"$at_stdout"; $as_echo "error: malformed escaped surrogate pair
 
18085
" | \
 
18086
  $at_diff - "$at_stdout" || at_failed=:
 
18087
at_fn_check_status 0 $at_status "$at_srcdir/json.at:114"
 
18088
$at_failed && at_fn_log_failure  \
 
18089
"input"
 
18090
$at_traceon; }
 
18091
 
 
18092
     set +x
 
18093
  $at_times_p && times >"$at_times_file"
 
18094
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18095
read at_status <"$at_status_file"
 
18096
#AT_STOP_234
 
18097
#AT_START_235
 
18098
at_fn_group_banner 235 'json.at:114' \
 
18099
  "isolated leading surrogate not allowed - Python" "" 21
 
18100
at_xfail=no
 
18101
(
 
18102
  $as_echo "235. $at_setup_line: testing $at_desc ..."
 
18103
  $at_traceon
 
18104
 
 
18105
 
 
18106
   $as_echo "json.at:114" >"$at_check_line_file"
 
18107
(test $HAVE_PYTHON = no) \
 
18108
  && at_fn_check_skip 77 "$at_srcdir/json.at:114"
 
18109
   { set +x
 
18110
$as_echo "$at_srcdir/json.at:114: printf %s \"[\\\"\\\\ud834xxx\\\"]\" > input"
 
18111
at_fn_check_prepare_trace "json.at:114"
 
18112
( $at_check_trace; printf %s "[\"\\ud834xxx\"]" > input
 
18113
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18114
at_status=$? at_failed=false
 
18115
$at_check_filter
 
18116
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18117
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18118
at_fn_check_status 0 $at_status "$at_srcdir/json.at:114"
 
18119
$at_failed && at_fn_log_failure
 
18120
$at_traceon; }
 
18121
 
 
18122
 
 
18123
   { set +x
 
18124
$as_echo "$at_srcdir/json.at:114: \$PYTHON \$srcdir/test-json.py  input"
 
18125
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:114"
 
18126
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
18127
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18128
at_status=$? at_failed=false
 
18129
$at_check_filter
 
18130
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18131
echo stdout:; tee stdout <"$at_stdout"
 
18132
at_fn_check_status 1 $at_status "$at_srcdir/json.at:114"
 
18133
$at_failed && at_fn_log_failure  \
 
18134
"input"
 
18135
$at_traceon; }
 
18136
 
 
18137
   { set +x
 
18138
$as_echo "$at_srcdir/json.at:114: sed 's/^error: [^:]*:/error:/' < stdout"
 
18139
at_fn_check_prepare_trace "json.at:114"
 
18140
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18141
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18142
at_status=$? at_failed=false
 
18143
$at_check_filter
 
18144
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18145
echo >>"$at_stdout"; $as_echo "error: malformed escaped surrogate pair
 
18146
" | \
 
18147
  $at_diff - "$at_stdout" || at_failed=:
 
18148
at_fn_check_status 0 $at_status "$at_srcdir/json.at:114"
 
18149
$at_failed && at_fn_log_failure  \
 
18150
"input"
 
18151
$at_traceon; }
 
18152
 
 
18153
     set +x
 
18154
  $at_times_p && times >"$at_times_file"
 
18155
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18156
read at_status <"$at_status_file"
 
18157
#AT_STOP_235
 
18158
#AT_START_236
 
18159
at_fn_group_banner 236 'json.at:117' \
 
18160
  "surrogatess must paired properly - C" "           " 21
 
18161
at_xfail=no
 
18162
(
 
18163
  $as_echo "236. $at_setup_line: testing $at_desc ..."
 
18164
  $at_traceon
 
18165
 
 
18166
 
 
18167
   { set +x
 
18168
$as_echo "$at_srcdir/json.at:117: printf %s \"[\\\"\\\\ud834\\\\u1234\\\"]\" > input"
 
18169
at_fn_check_prepare_trace "json.at:117"
 
18170
( $at_check_trace; printf %s "[\"\\ud834\\u1234\"]" > input
 
18171
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18172
at_status=$? at_failed=false
 
18173
$at_check_filter
 
18174
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18175
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18176
at_fn_check_status 0 $at_status "$at_srcdir/json.at:117"
 
18177
$at_failed && at_fn_log_failure
 
18178
$at_traceon; }
 
18179
 
 
18180
 
 
18181
   { set +x
 
18182
$as_echo "$at_srcdir/json.at:117: test-json  input"
 
18183
at_fn_check_prepare_trace "json.at:117"
 
18184
( $at_check_trace; test-json  input
 
18185
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18186
at_status=$? at_failed=false
 
18187
$at_check_filter
 
18188
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18189
echo stdout:; tee stdout <"$at_stdout"
 
18190
at_fn_check_status 1 $at_status "$at_srcdir/json.at:117"
 
18191
$at_failed && at_fn_log_failure  \
 
18192
"input"
 
18193
$at_traceon; }
 
18194
 
 
18195
   { set +x
 
18196
$as_echo "$at_srcdir/json.at:117: sed 's/^error: [^:]*:/error:/' < stdout"
 
18197
at_fn_check_prepare_trace "json.at:117"
 
18198
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18199
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18200
at_status=$? at_failed=false
 
18201
$at_check_filter
 
18202
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18203
echo >>"$at_stdout"; $as_echo "error: second half of escaped surrogate pair is not trailing surrogate
 
18204
" | \
 
18205
  $at_diff - "$at_stdout" || at_failed=:
 
18206
at_fn_check_status 0 $at_status "$at_srcdir/json.at:117"
 
18207
$at_failed && at_fn_log_failure  \
 
18208
"input"
 
18209
$at_traceon; }
 
18210
 
 
18211
     set +x
 
18212
  $at_times_p && times >"$at_times_file"
 
18213
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18214
read at_status <"$at_status_file"
 
18215
#AT_STOP_236
 
18216
#AT_START_237
 
18217
at_fn_group_banner 237 'json.at:117' \
 
18218
  "surrogatess must paired properly - Python" "      " 21
 
18219
at_xfail=no
 
18220
(
 
18221
  $as_echo "237. $at_setup_line: testing $at_desc ..."
 
18222
  $at_traceon
 
18223
 
 
18224
 
 
18225
   $as_echo "json.at:117" >"$at_check_line_file"
 
18226
(test $HAVE_PYTHON = no) \
 
18227
  && at_fn_check_skip 77 "$at_srcdir/json.at:117"
 
18228
   { set +x
 
18229
$as_echo "$at_srcdir/json.at:117: printf %s \"[\\\"\\\\ud834\\\\u1234\\\"]\" > input"
 
18230
at_fn_check_prepare_trace "json.at:117"
 
18231
( $at_check_trace; printf %s "[\"\\ud834\\u1234\"]" > input
 
18232
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18233
at_status=$? at_failed=false
 
18234
$at_check_filter
 
18235
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18236
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18237
at_fn_check_status 0 $at_status "$at_srcdir/json.at:117"
 
18238
$at_failed && at_fn_log_failure
 
18239
$at_traceon; }
 
18240
 
 
18241
 
 
18242
   { set +x
 
18243
$as_echo "$at_srcdir/json.at:117: \$PYTHON \$srcdir/test-json.py  input"
 
18244
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:117"
 
18245
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
18246
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18247
at_status=$? at_failed=false
 
18248
$at_check_filter
 
18249
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18250
echo stdout:; tee stdout <"$at_stdout"
 
18251
at_fn_check_status 1 $at_status "$at_srcdir/json.at:117"
 
18252
$at_failed && at_fn_log_failure  \
 
18253
"input"
 
18254
$at_traceon; }
 
18255
 
 
18256
   { set +x
 
18257
$as_echo "$at_srcdir/json.at:117: sed 's/^error: [^:]*:/error:/' < stdout"
 
18258
at_fn_check_prepare_trace "json.at:117"
 
18259
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18261
at_status=$? at_failed=false
 
18262
$at_check_filter
 
18263
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18264
echo >>"$at_stdout"; $as_echo "error: second half of escaped surrogate pair is not trailing surrogate
 
18265
" | \
 
18266
  $at_diff - "$at_stdout" || at_failed=:
 
18267
at_fn_check_status 0 $at_status "$at_srcdir/json.at:117"
 
18268
$at_failed && at_fn_log_failure  \
 
18269
"input"
 
18270
$at_traceon; }
 
18271
 
 
18272
     set +x
 
18273
  $at_times_p && times >"$at_times_file"
 
18274
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18275
read at_status <"$at_status_file"
 
18276
#AT_STOP_237
 
18277
#AT_START_238
 
18278
at_fn_group_banner 238 'json.at:120' \
 
18279
  "null bytes not allowed - C" "                     " 21
 
18280
at_xfail=no
 
18281
(
 
18282
  $as_echo "238. $at_setup_line: testing $at_desc ..."
 
18283
  $at_traceon
 
18284
 
 
18285
 
 
18286
   { set +x
 
18287
$as_echo "$at_srcdir/json.at:120: printf %s \"[\\\"\\\\u0000\\\"]\" > input"
 
18288
at_fn_check_prepare_trace "json.at:120"
 
18289
( $at_check_trace; printf %s "[\"\\u0000\"]" > input
 
18290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18291
at_status=$? at_failed=false
 
18292
$at_check_filter
 
18293
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18294
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18295
at_fn_check_status 0 $at_status "$at_srcdir/json.at:120"
 
18296
$at_failed && at_fn_log_failure
 
18297
$at_traceon; }
 
18298
 
 
18299
 
 
18300
   { set +x
 
18301
$as_echo "$at_srcdir/json.at:120: test-json  input"
 
18302
at_fn_check_prepare_trace "json.at:120"
 
18303
( $at_check_trace; test-json  input
 
18304
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18305
at_status=$? at_failed=false
 
18306
$at_check_filter
 
18307
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18308
echo stdout:; tee stdout <"$at_stdout"
 
18309
at_fn_check_status 1 $at_status "$at_srcdir/json.at:120"
 
18310
$at_failed && at_fn_log_failure  \
 
18311
"input"
 
18312
$at_traceon; }
 
18313
 
 
18314
   { set +x
 
18315
$as_echo "$at_srcdir/json.at:120: sed 's/^error: [^:]*:/error:/' < stdout"
 
18316
at_fn_check_prepare_trace "json.at:120"
 
18317
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18318
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18319
at_status=$? at_failed=false
 
18320
$at_check_filter
 
18321
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18322
echo >>"$at_stdout"; $as_echo "error: null bytes not supported in quoted strings
 
18323
" | \
 
18324
  $at_diff - "$at_stdout" || at_failed=:
 
18325
at_fn_check_status 0 $at_status "$at_srcdir/json.at:120"
 
18326
$at_failed && at_fn_log_failure  \
 
18327
"input"
 
18328
$at_traceon; }
 
18329
 
 
18330
     set +x
 
18331
  $at_times_p && times >"$at_times_file"
 
18332
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18333
read at_status <"$at_status_file"
 
18334
#AT_STOP_238
 
18335
#AT_START_239
 
18336
at_fn_group_banner 239 'json.at:120' \
 
18337
  "null bytes not allowed - Python" "                " 21
 
18338
at_xfail=no
 
18339
(
 
18340
  $as_echo "239. $at_setup_line: testing $at_desc ..."
 
18341
  $at_traceon
 
18342
 
 
18343
 
 
18344
   $as_echo "json.at:120" >"$at_check_line_file"
 
18345
(test $HAVE_PYTHON = no) \
 
18346
  && at_fn_check_skip 77 "$at_srcdir/json.at:120"
 
18347
   { set +x
 
18348
$as_echo "$at_srcdir/json.at:120: printf %s \"[\\\"\\\\u0000\\\"]\" > input"
 
18349
at_fn_check_prepare_trace "json.at:120"
 
18350
( $at_check_trace; printf %s "[\"\\u0000\"]" > input
 
18351
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18352
at_status=$? at_failed=false
 
18353
$at_check_filter
 
18354
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18355
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18356
at_fn_check_status 0 $at_status "$at_srcdir/json.at:120"
 
18357
$at_failed && at_fn_log_failure
 
18358
$at_traceon; }
 
18359
 
 
18360
 
 
18361
   { set +x
 
18362
$as_echo "$at_srcdir/json.at:120: \$PYTHON \$srcdir/test-json.py  input"
 
18363
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:120"
 
18364
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
18365
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18366
at_status=$? at_failed=false
 
18367
$at_check_filter
 
18368
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18369
echo stdout:; tee stdout <"$at_stdout"
 
18370
at_fn_check_status 1 $at_status "$at_srcdir/json.at:120"
 
18371
$at_failed && at_fn_log_failure  \
 
18372
"input"
 
18373
$at_traceon; }
 
18374
 
 
18375
   { set +x
 
18376
$as_echo "$at_srcdir/json.at:120: sed 's/^error: [^:]*:/error:/' < stdout"
 
18377
at_fn_check_prepare_trace "json.at:120"
 
18378
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18379
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18380
at_status=$? at_failed=false
 
18381
$at_check_filter
 
18382
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18383
echo >>"$at_stdout"; $as_echo "error: null bytes not supported in quoted strings
 
18384
" | \
 
18385
  $at_diff - "$at_stdout" || at_failed=:
 
18386
at_fn_check_status 0 $at_status "$at_srcdir/json.at:120"
 
18387
$at_failed && at_fn_log_failure  \
 
18388
"input"
 
18389
$at_traceon; }
 
18390
 
 
18391
     set +x
 
18392
  $at_times_p && times >"$at_times_file"
 
18393
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18394
read at_status <"$at_status_file"
 
18395
#AT_STOP_239
 
18396
#AT_START_240
 
18397
at_fn_group_banner 240 'json.at:124' \
 
18398
  "end of input in quoted string - C" "              " 21
 
18399
at_xfail=no
 
18400
(
 
18401
  $as_echo "240. $at_setup_line: testing $at_desc ..."
 
18402
  $at_traceon
 
18403
 
 
18404
 
 
18405
{ set +x
 
18406
$as_echo "$at_srcdir/json.at:126: printf '\"xxx' | test-json -"
 
18407
at_fn_check_prepare_notrace 'a shell pipeline' "json.at:126"
 
18408
( $at_check_trace; printf '"xxx' | test-json -
 
18409
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18410
at_status=$? at_failed=false
 
18411
$at_check_filter
 
18412
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18413
echo >>"$at_stdout"; $as_echo "error: line 0, column 4, byte 4: unexpected end of input in quoted string
 
18414
" | \
 
18415
  $at_diff - "$at_stdout" || at_failed=:
 
18416
at_fn_check_status 1 $at_status "$at_srcdir/json.at:126"
 
18417
$at_failed && at_fn_log_failure
 
18418
$at_traceon; }
 
18419
 
 
18420
  set +x
 
18421
  $at_times_p && times >"$at_times_file"
 
18422
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18423
read at_status <"$at_status_file"
 
18424
#AT_STOP_240
 
18425
#AT_START_241
 
18426
at_fn_group_banner 241 'json.at:131' \
 
18427
  "end of input in quoted string - Python" "         " 21
 
18428
at_xfail=no
 
18429
(
 
18430
  $as_echo "241. $at_setup_line: testing $at_desc ..."
 
18431
  $at_traceon
 
18432
 
 
18433
 
 
18434
$as_echo "json.at:133" >"$at_check_line_file"
 
18435
(test $HAVE_PYTHON = no) \
 
18436
  && at_fn_check_skip 77 "$at_srcdir/json.at:133"
 
18437
{ set +x
 
18438
$as_echo "$at_srcdir/json.at:134: printf '\"xxx' > input
 
18439
\$PYTHON \$srcdir/test-json.py input"
 
18440
at_fn_check_prepare_notrace 'an embedded newline' "json.at:134"
 
18441
( $at_check_trace; printf '"xxx' > input
 
18442
$PYTHON $srcdir/test-json.py input
 
18443
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18444
at_status=$? at_failed=false
 
18445
$at_check_filter
 
18446
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18447
echo >>"$at_stdout"; $as_echo "error: line 0, column 4, byte 4: unexpected end of input in quoted string
 
18448
" | \
 
18449
  $at_diff - "$at_stdout" || at_failed=:
 
18450
at_fn_check_status 1 $at_status "$at_srcdir/json.at:134"
 
18451
$at_failed && at_fn_log_failure
 
18452
$at_traceon; }
 
18453
 
 
18454
  set +x
 
18455
  $at_times_p && times >"$at_times_file"
 
18456
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18457
read at_status <"$at_status_file"
 
18458
#AT_STOP_241
 
18459
#AT_START_242
 
18460
at_fn_group_banner 242 'json.at:142' \
 
18461
  "empty object - C" "                               " 22
 
18462
at_xfail=no
 
18463
(
 
18464
  $as_echo "242. $at_setup_line: testing $at_desc ..."
 
18465
  $at_traceon
 
18466
 
 
18467
 
 
18468
   { set +x
 
18469
$as_echo "$at_srcdir/json.at:142: printf %s \"{ }\" > input"
 
18470
at_fn_check_prepare_trace "json.at:142"
 
18471
( $at_check_trace; printf %s "{ }" > input
 
18472
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18473
at_status=$? at_failed=false
 
18474
$at_check_filter
 
18475
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18476
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18477
at_fn_check_status 0 $at_status "$at_srcdir/json.at:142"
 
18478
$at_failed && at_fn_log_failure
 
18479
$at_traceon; }
 
18480
 
 
18481
 
 
18482
   { set +x
 
18483
$as_echo "$at_srcdir/json.at:142: test-json  input"
 
18484
at_fn_check_prepare_trace "json.at:142"
 
18485
( $at_check_trace; test-json  input
 
18486
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18487
at_status=$? at_failed=false
 
18488
$at_check_filter
 
18489
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18490
echo stdout:; tee stdout <"$at_stdout"
 
18491
at_fn_check_status 0 $at_status "$at_srcdir/json.at:142"
 
18492
$at_failed && at_fn_log_failure  \
 
18493
"input"
 
18494
$at_traceon; }
 
18495
 
 
18496
   { set +x
 
18497
$as_echo "$at_srcdir/json.at:142: cat stdout"
 
18498
at_fn_check_prepare_trace "json.at:142"
 
18499
( $at_check_trace; cat stdout
 
18500
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18501
at_status=$? at_failed=false
 
18502
$at_check_filter
 
18503
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18504
echo >>"$at_stdout"; $as_echo "{}
 
18505
" | \
 
18506
  $at_diff - "$at_stdout" || at_failed=:
 
18507
at_fn_check_status 0 $at_status "$at_srcdir/json.at:142"
 
18508
$at_failed && at_fn_log_failure  \
 
18509
"input"
 
18510
$at_traceon; }
 
18511
 
 
18512
     set +x
 
18513
  $at_times_p && times >"$at_times_file"
 
18514
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18515
read at_status <"$at_status_file"
 
18516
#AT_STOP_242
 
18517
#AT_START_243
 
18518
at_fn_group_banner 243 'json.at:142' \
 
18519
  "empty object - Python" "                          " 22
 
18520
at_xfail=no
 
18521
(
 
18522
  $as_echo "243. $at_setup_line: testing $at_desc ..."
 
18523
  $at_traceon
 
18524
 
 
18525
 
 
18526
   $as_echo "json.at:142" >"$at_check_line_file"
 
18527
(test $HAVE_PYTHON = no) \
 
18528
  && at_fn_check_skip 77 "$at_srcdir/json.at:142"
 
18529
   { set +x
 
18530
$as_echo "$at_srcdir/json.at:142: printf %s \"{ }\" > input"
 
18531
at_fn_check_prepare_trace "json.at:142"
 
18532
( $at_check_trace; printf %s "{ }" > input
 
18533
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18534
at_status=$? at_failed=false
 
18535
$at_check_filter
 
18536
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18537
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18538
at_fn_check_status 0 $at_status "$at_srcdir/json.at:142"
 
18539
$at_failed && at_fn_log_failure
 
18540
$at_traceon; }
 
18541
 
 
18542
 
 
18543
   { set +x
 
18544
$as_echo "$at_srcdir/json.at:142: \$PYTHON \$srcdir/test-json.py  input"
 
18545
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:142"
 
18546
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
18547
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18548
at_status=$? at_failed=false
 
18549
$at_check_filter
 
18550
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18551
echo stdout:; tee stdout <"$at_stdout"
 
18552
at_fn_check_status 0 $at_status "$at_srcdir/json.at:142"
 
18553
$at_failed && at_fn_log_failure  \
 
18554
"input"
 
18555
$at_traceon; }
 
18556
 
 
18557
   { set +x
 
18558
$as_echo "$at_srcdir/json.at:142: cat stdout"
 
18559
at_fn_check_prepare_trace "json.at:142"
 
18560
( $at_check_trace; cat stdout
 
18561
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18562
at_status=$? at_failed=false
 
18563
$at_check_filter
 
18564
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18565
echo >>"$at_stdout"; $as_echo "{}
 
18566
" | \
 
18567
  $at_diff - "$at_stdout" || at_failed=:
 
18568
at_fn_check_status 0 $at_status "$at_srcdir/json.at:142"
 
18569
$at_failed && at_fn_log_failure  \
 
18570
"input"
 
18571
$at_traceon; }
 
18572
 
 
18573
     set +x
 
18574
  $at_times_p && times >"$at_times_file"
 
18575
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18576
read at_status <"$at_status_file"
 
18577
#AT_STOP_243
 
18578
#AT_START_244
 
18579
at_fn_group_banner 244 'json.at:143' \
 
18580
  "simple object - C" "                              " 22
 
18581
at_xfail=no
 
18582
(
 
18583
  $as_echo "244. $at_setup_line: testing $at_desc ..."
 
18584
  $at_traceon
 
18585
 
 
18586
 
 
18587
   { set +x
 
18588
$as_echo "$at_srcdir/json.at:143: printf %s \"{\\\"b\\\": 2, \\\"a\\\": 1, \\\"c\\\": 3}\" > input"
 
18589
at_fn_check_prepare_trace "json.at:143"
 
18590
( $at_check_trace; printf %s "{\"b\": 2, \"a\": 1, \"c\": 3}" > input
 
18591
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18592
at_status=$? at_failed=false
 
18593
$at_check_filter
 
18594
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18595
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18596
at_fn_check_status 0 $at_status "$at_srcdir/json.at:143"
 
18597
$at_failed && at_fn_log_failure
 
18598
$at_traceon; }
 
18599
 
 
18600
 
 
18601
   { set +x
 
18602
$as_echo "$at_srcdir/json.at:143: test-json  input"
 
18603
at_fn_check_prepare_trace "json.at:143"
 
18604
( $at_check_trace; test-json  input
 
18605
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18606
at_status=$? at_failed=false
 
18607
$at_check_filter
 
18608
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18609
echo stdout:; tee stdout <"$at_stdout"
 
18610
at_fn_check_status 0 $at_status "$at_srcdir/json.at:143"
 
18611
$at_failed && at_fn_log_failure  \
 
18612
"input"
 
18613
$at_traceon; }
 
18614
 
 
18615
   { set +x
 
18616
$as_echo "$at_srcdir/json.at:143: cat stdout"
 
18617
at_fn_check_prepare_trace "json.at:143"
 
18618
( $at_check_trace; cat stdout
 
18619
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18620
at_status=$? at_failed=false
 
18621
$at_check_filter
 
18622
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18623
echo >>"$at_stdout"; $as_echo "{\"a\":1,\"b\":2,\"c\":3}
 
18624
" | \
 
18625
  $at_diff - "$at_stdout" || at_failed=:
 
18626
at_fn_check_status 0 $at_status "$at_srcdir/json.at:143"
 
18627
$at_failed && at_fn_log_failure  \
 
18628
"input"
 
18629
$at_traceon; }
 
18630
 
 
18631
     set +x
 
18632
  $at_times_p && times >"$at_times_file"
 
18633
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18634
read at_status <"$at_status_file"
 
18635
#AT_STOP_244
 
18636
#AT_START_245
 
18637
at_fn_group_banner 245 'json.at:143' \
 
18638
  "simple object - Python" "                         " 22
 
18639
at_xfail=no
 
18640
(
 
18641
  $as_echo "245. $at_setup_line: testing $at_desc ..."
 
18642
  $at_traceon
 
18643
 
 
18644
 
 
18645
   $as_echo "json.at:143" >"$at_check_line_file"
 
18646
(test $HAVE_PYTHON = no) \
 
18647
  && at_fn_check_skip 77 "$at_srcdir/json.at:143"
 
18648
   { set +x
 
18649
$as_echo "$at_srcdir/json.at:143: printf %s \"{\\\"b\\\": 2, \\\"a\\\": 1, \\\"c\\\": 3}\" > input"
 
18650
at_fn_check_prepare_trace "json.at:143"
 
18651
( $at_check_trace; printf %s "{\"b\": 2, \"a\": 1, \"c\": 3}" > input
 
18652
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18653
at_status=$? at_failed=false
 
18654
$at_check_filter
 
18655
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18656
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18657
at_fn_check_status 0 $at_status "$at_srcdir/json.at:143"
 
18658
$at_failed && at_fn_log_failure
 
18659
$at_traceon; }
 
18660
 
 
18661
 
 
18662
   { set +x
 
18663
$as_echo "$at_srcdir/json.at:143: \$PYTHON \$srcdir/test-json.py  input"
 
18664
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:143"
 
18665
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
18666
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18667
at_status=$? at_failed=false
 
18668
$at_check_filter
 
18669
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18670
echo stdout:; tee stdout <"$at_stdout"
 
18671
at_fn_check_status 0 $at_status "$at_srcdir/json.at:143"
 
18672
$at_failed && at_fn_log_failure  \
 
18673
"input"
 
18674
$at_traceon; }
 
18675
 
 
18676
   { set +x
 
18677
$as_echo "$at_srcdir/json.at:143: cat stdout"
 
18678
at_fn_check_prepare_trace "json.at:143"
 
18679
( $at_check_trace; cat stdout
 
18680
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18681
at_status=$? at_failed=false
 
18682
$at_check_filter
 
18683
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18684
echo >>"$at_stdout"; $as_echo "{\"a\":1,\"b\":2,\"c\":3}
 
18685
" | \
 
18686
  $at_diff - "$at_stdout" || at_failed=:
 
18687
at_fn_check_status 0 $at_status "$at_srcdir/json.at:143"
 
18688
$at_failed && at_fn_log_failure  \
 
18689
"input"
 
18690
$at_traceon; }
 
18691
 
 
18692
     set +x
 
18693
  $at_times_p && times >"$at_times_file"
 
18694
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18695
read at_status <"$at_status_file"
 
18696
#AT_STOP_245
 
18697
#AT_START_246
 
18698
at_fn_group_banner 246 'json.at:146' \
 
18699
  "bad value - C" "                                  " 22
 
18700
at_xfail=no
 
18701
(
 
18702
  $as_echo "246. $at_setup_line: testing $at_desc ..."
 
18703
  $at_traceon
 
18704
 
 
18705
 
 
18706
   { set +x
 
18707
$as_echo "$at_srcdir/json.at:146: printf %s \"{\\\"a\\\": }, \\\"b\\\": 2\" > input"
 
18708
at_fn_check_prepare_trace "json.at:146"
 
18709
( $at_check_trace; printf %s "{\"a\": }, \"b\": 2" > input
 
18710
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18711
at_status=$? at_failed=false
 
18712
$at_check_filter
 
18713
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18714
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18715
at_fn_check_status 0 $at_status "$at_srcdir/json.at:146"
 
18716
$at_failed && at_fn_log_failure
 
18717
$at_traceon; }
 
18718
 
 
18719
 
 
18720
   { set +x
 
18721
$as_echo "$at_srcdir/json.at:146: test-json  input"
 
18722
at_fn_check_prepare_trace "json.at:146"
 
18723
( $at_check_trace; test-json  input
 
18724
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18725
at_status=$? at_failed=false
 
18726
$at_check_filter
 
18727
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18728
echo stdout:; tee stdout <"$at_stdout"
 
18729
at_fn_check_status 1 $at_status "$at_srcdir/json.at:146"
 
18730
$at_failed && at_fn_log_failure  \
 
18731
"input"
 
18732
$at_traceon; }
 
18733
 
 
18734
   { set +x
 
18735
$as_echo "$at_srcdir/json.at:146: sed 's/^error: [^:]*:/error:/' < stdout"
 
18736
at_fn_check_prepare_trace "json.at:146"
 
18737
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18738
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18739
at_status=$? at_failed=false
 
18740
$at_check_filter
 
18741
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18742
echo >>"$at_stdout"; $as_echo "error: syntax error expecting value
 
18743
" | \
 
18744
  $at_diff - "$at_stdout" || at_failed=:
 
18745
at_fn_check_status 0 $at_status "$at_srcdir/json.at:146"
 
18746
$at_failed && at_fn_log_failure  \
 
18747
"input"
 
18748
$at_traceon; }
 
18749
 
 
18750
     set +x
 
18751
  $at_times_p && times >"$at_times_file"
 
18752
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18753
read at_status <"$at_status_file"
 
18754
#AT_STOP_246
 
18755
#AT_START_247
 
18756
at_fn_group_banner 247 'json.at:146' \
 
18757
  "bad value - Python" "                             " 22
 
18758
at_xfail=no
 
18759
(
 
18760
  $as_echo "247. $at_setup_line: testing $at_desc ..."
 
18761
  $at_traceon
 
18762
 
 
18763
 
 
18764
   $as_echo "json.at:146" >"$at_check_line_file"
 
18765
(test $HAVE_PYTHON = no) \
 
18766
  && at_fn_check_skip 77 "$at_srcdir/json.at:146"
 
18767
   { set +x
 
18768
$as_echo "$at_srcdir/json.at:146: printf %s \"{\\\"a\\\": }, \\\"b\\\": 2\" > input"
 
18769
at_fn_check_prepare_trace "json.at:146"
 
18770
( $at_check_trace; printf %s "{\"a\": }, \"b\": 2" > input
 
18771
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18772
at_status=$? at_failed=false
 
18773
$at_check_filter
 
18774
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18775
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18776
at_fn_check_status 0 $at_status "$at_srcdir/json.at:146"
 
18777
$at_failed && at_fn_log_failure
 
18778
$at_traceon; }
 
18779
 
 
18780
 
 
18781
   { set +x
 
18782
$as_echo "$at_srcdir/json.at:146: \$PYTHON \$srcdir/test-json.py  input"
 
18783
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:146"
 
18784
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
18785
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18786
at_status=$? at_failed=false
 
18787
$at_check_filter
 
18788
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18789
echo stdout:; tee stdout <"$at_stdout"
 
18790
at_fn_check_status 1 $at_status "$at_srcdir/json.at:146"
 
18791
$at_failed && at_fn_log_failure  \
 
18792
"input"
 
18793
$at_traceon; }
 
18794
 
 
18795
   { set +x
 
18796
$as_echo "$at_srcdir/json.at:146: sed 's/^error: [^:]*:/error:/' < stdout"
 
18797
at_fn_check_prepare_trace "json.at:146"
 
18798
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18799
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18800
at_status=$? at_failed=false
 
18801
$at_check_filter
 
18802
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18803
echo >>"$at_stdout"; $as_echo "error: syntax error expecting value
 
18804
" | \
 
18805
  $at_diff - "$at_stdout" || at_failed=:
 
18806
at_fn_check_status 0 $at_status "$at_srcdir/json.at:146"
 
18807
$at_failed && at_fn_log_failure  \
 
18808
"input"
 
18809
$at_traceon; }
 
18810
 
 
18811
     set +x
 
18812
  $at_times_p && times >"$at_times_file"
 
18813
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18814
read at_status <"$at_status_file"
 
18815
#AT_STOP_247
 
18816
#AT_START_248
 
18817
at_fn_group_banner 248 'json.at:148' \
 
18818
  "missing colon - C" "                              " 22
 
18819
at_xfail=no
 
18820
(
 
18821
  $as_echo "248. $at_setup_line: testing $at_desc ..."
 
18822
  $at_traceon
 
18823
 
 
18824
 
 
18825
   { set +x
 
18826
$as_echo "$at_srcdir/json.at:148: printf %s \"{\\\"b\\\": 2, \\\"a\\\" 1, \\\"c\\\": 3}\" > input"
 
18827
at_fn_check_prepare_trace "json.at:148"
 
18828
( $at_check_trace; printf %s "{\"b\": 2, \"a\" 1, \"c\": 3}" > input
 
18829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18830
at_status=$? at_failed=false
 
18831
$at_check_filter
 
18832
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18833
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18834
at_fn_check_status 0 $at_status "$at_srcdir/json.at:148"
 
18835
$at_failed && at_fn_log_failure
 
18836
$at_traceon; }
 
18837
 
 
18838
 
 
18839
   { set +x
 
18840
$as_echo "$at_srcdir/json.at:148: test-json  input"
 
18841
at_fn_check_prepare_trace "json.at:148"
 
18842
( $at_check_trace; test-json  input
 
18843
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18844
at_status=$? at_failed=false
 
18845
$at_check_filter
 
18846
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18847
echo stdout:; tee stdout <"$at_stdout"
 
18848
at_fn_check_status 1 $at_status "$at_srcdir/json.at:148"
 
18849
$at_failed && at_fn_log_failure  \
 
18850
"input"
 
18851
$at_traceon; }
 
18852
 
 
18853
   { set +x
 
18854
$as_echo "$at_srcdir/json.at:148: sed 's/^error: [^:]*:/error:/' < stdout"
 
18855
at_fn_check_prepare_trace "json.at:148"
 
18856
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18857
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18858
at_status=$? at_failed=false
 
18859
$at_check_filter
 
18860
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18861
echo >>"$at_stdout"; $as_echo "error: syntax error parsing object expecting ':'
 
18862
" | \
 
18863
  $at_diff - "$at_stdout" || at_failed=:
 
18864
at_fn_check_status 0 $at_status "$at_srcdir/json.at:148"
 
18865
$at_failed && at_fn_log_failure  \
 
18866
"input"
 
18867
$at_traceon; }
 
18868
 
 
18869
     set +x
 
18870
  $at_times_p && times >"$at_times_file"
 
18871
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18872
read at_status <"$at_status_file"
 
18873
#AT_STOP_248
 
18874
#AT_START_249
 
18875
at_fn_group_banner 249 'json.at:148' \
 
18876
  "missing colon - Python" "                         " 22
 
18877
at_xfail=no
 
18878
(
 
18879
  $as_echo "249. $at_setup_line: testing $at_desc ..."
 
18880
  $at_traceon
 
18881
 
 
18882
 
 
18883
   $as_echo "json.at:148" >"$at_check_line_file"
 
18884
(test $HAVE_PYTHON = no) \
 
18885
  && at_fn_check_skip 77 "$at_srcdir/json.at:148"
 
18886
   { set +x
 
18887
$as_echo "$at_srcdir/json.at:148: printf %s \"{\\\"b\\\": 2, \\\"a\\\" 1, \\\"c\\\": 3}\" > input"
 
18888
at_fn_check_prepare_trace "json.at:148"
 
18889
( $at_check_trace; printf %s "{\"b\": 2, \"a\" 1, \"c\": 3}" > input
 
18890
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18891
at_status=$? at_failed=false
 
18892
$at_check_filter
 
18893
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18894
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18895
at_fn_check_status 0 $at_status "$at_srcdir/json.at:148"
 
18896
$at_failed && at_fn_log_failure
 
18897
$at_traceon; }
 
18898
 
 
18899
 
 
18900
   { set +x
 
18901
$as_echo "$at_srcdir/json.at:148: \$PYTHON \$srcdir/test-json.py  input"
 
18902
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:148"
 
18903
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
18904
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18905
at_status=$? at_failed=false
 
18906
$at_check_filter
 
18907
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18908
echo stdout:; tee stdout <"$at_stdout"
 
18909
at_fn_check_status 1 $at_status "$at_srcdir/json.at:148"
 
18910
$at_failed && at_fn_log_failure  \
 
18911
"input"
 
18912
$at_traceon; }
 
18913
 
 
18914
   { set +x
 
18915
$as_echo "$at_srcdir/json.at:148: sed 's/^error: [^:]*:/error:/' < stdout"
 
18916
at_fn_check_prepare_trace "json.at:148"
 
18917
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18918
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18919
at_status=$? at_failed=false
 
18920
$at_check_filter
 
18921
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18922
echo >>"$at_stdout"; $as_echo "error: syntax error parsing object expecting ':'
 
18923
" | \
 
18924
  $at_diff - "$at_stdout" || at_failed=:
 
18925
at_fn_check_status 0 $at_status "$at_srcdir/json.at:148"
 
18926
$at_failed && at_fn_log_failure  \
 
18927
"input"
 
18928
$at_traceon; }
 
18929
 
 
18930
     set +x
 
18931
  $at_times_p && times >"$at_times_file"
 
18932
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18933
read at_status <"$at_status_file"
 
18934
#AT_STOP_249
 
18935
#AT_START_250
 
18936
at_fn_group_banner 250 'json.at:150' \
 
18937
  "missing comma - C" "                              " 22
 
18938
at_xfail=no
 
18939
(
 
18940
  $as_echo "250. $at_setup_line: testing $at_desc ..."
 
18941
  $at_traceon
 
18942
 
 
18943
 
 
18944
   { set +x
 
18945
$as_echo "$at_srcdir/json.at:150: printf %s \"{\\\"b\\\": 2 \\\"a\\\" 1, \\\"c\\\": 3}\" > input"
 
18946
at_fn_check_prepare_trace "json.at:150"
 
18947
( $at_check_trace; printf %s "{\"b\": 2 \"a\" 1, \"c\": 3}" > input
 
18948
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18949
at_status=$? at_failed=false
 
18950
$at_check_filter
 
18951
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18952
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
18953
at_fn_check_status 0 $at_status "$at_srcdir/json.at:150"
 
18954
$at_failed && at_fn_log_failure
 
18955
$at_traceon; }
 
18956
 
 
18957
 
 
18958
   { set +x
 
18959
$as_echo "$at_srcdir/json.at:150: test-json  input"
 
18960
at_fn_check_prepare_trace "json.at:150"
 
18961
( $at_check_trace; test-json  input
 
18962
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18963
at_status=$? at_failed=false
 
18964
$at_check_filter
 
18965
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18966
echo stdout:; tee stdout <"$at_stdout"
 
18967
at_fn_check_status 1 $at_status "$at_srcdir/json.at:150"
 
18968
$at_failed && at_fn_log_failure  \
 
18969
"input"
 
18970
$at_traceon; }
 
18971
 
 
18972
   { set +x
 
18973
$as_echo "$at_srcdir/json.at:150: sed 's/^error: [^:]*:/error:/' < stdout"
 
18974
at_fn_check_prepare_trace "json.at:150"
 
18975
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
18976
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
18977
at_status=$? at_failed=false
 
18978
$at_check_filter
 
18979
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
18980
echo >>"$at_stdout"; $as_echo "error: syntax error expecting '}' or ','
 
18981
" | \
 
18982
  $at_diff - "$at_stdout" || at_failed=:
 
18983
at_fn_check_status 0 $at_status "$at_srcdir/json.at:150"
 
18984
$at_failed && at_fn_log_failure  \
 
18985
"input"
 
18986
$at_traceon; }
 
18987
 
 
18988
     set +x
 
18989
  $at_times_p && times >"$at_times_file"
 
18990
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
18991
read at_status <"$at_status_file"
 
18992
#AT_STOP_250
 
18993
#AT_START_251
 
18994
at_fn_group_banner 251 'json.at:150' \
 
18995
  "missing comma - Python" "                         " 22
 
18996
at_xfail=no
 
18997
(
 
18998
  $as_echo "251. $at_setup_line: testing $at_desc ..."
 
18999
  $at_traceon
 
19000
 
 
19001
 
 
19002
   $as_echo "json.at:150" >"$at_check_line_file"
 
19003
(test $HAVE_PYTHON = no) \
 
19004
  && at_fn_check_skip 77 "$at_srcdir/json.at:150"
 
19005
   { set +x
 
19006
$as_echo "$at_srcdir/json.at:150: printf %s \"{\\\"b\\\": 2 \\\"a\\\" 1, \\\"c\\\": 3}\" > input"
 
19007
at_fn_check_prepare_trace "json.at:150"
 
19008
( $at_check_trace; printf %s "{\"b\": 2 \"a\" 1, \"c\": 3}" > input
 
19009
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19010
at_status=$? at_failed=false
 
19011
$at_check_filter
 
19012
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19013
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19014
at_fn_check_status 0 $at_status "$at_srcdir/json.at:150"
 
19015
$at_failed && at_fn_log_failure
 
19016
$at_traceon; }
 
19017
 
 
19018
 
 
19019
   { set +x
 
19020
$as_echo "$at_srcdir/json.at:150: \$PYTHON \$srcdir/test-json.py  input"
 
19021
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:150"
 
19022
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19023
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19024
at_status=$? at_failed=false
 
19025
$at_check_filter
 
19026
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19027
echo stdout:; tee stdout <"$at_stdout"
 
19028
at_fn_check_status 1 $at_status "$at_srcdir/json.at:150"
 
19029
$at_failed && at_fn_log_failure  \
 
19030
"input"
 
19031
$at_traceon; }
 
19032
 
 
19033
   { set +x
 
19034
$as_echo "$at_srcdir/json.at:150: sed 's/^error: [^:]*:/error:/' < stdout"
 
19035
at_fn_check_prepare_trace "json.at:150"
 
19036
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19037
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19038
at_status=$? at_failed=false
 
19039
$at_check_filter
 
19040
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19041
echo >>"$at_stdout"; $as_echo "error: syntax error expecting '}' or ','
 
19042
" | \
 
19043
  $at_diff - "$at_stdout" || at_failed=:
 
19044
at_fn_check_status 0 $at_status "$at_srcdir/json.at:150"
 
19045
$at_failed && at_fn_log_failure  \
 
19046
"input"
 
19047
$at_traceon; }
 
19048
 
 
19049
     set +x
 
19050
  $at_times_p && times >"$at_times_file"
 
19051
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19052
read at_status <"$at_status_file"
 
19053
#AT_STOP_251
 
19054
#AT_START_252
 
19055
at_fn_group_banner 252 'json.at:152' \
 
19056
  "trailing comma not allowed - C" "                 " 22
 
19057
at_xfail=no
 
19058
(
 
19059
  $as_echo "252. $at_setup_line: testing $at_desc ..."
 
19060
  $at_traceon
 
19061
 
 
19062
 
 
19063
   { set +x
 
19064
$as_echo "$at_srcdir/json.at:152: printf %s \"{\\\"b\\\": 2, \\\"a\\\": 1, \\\"c\\\": 3, }\" > input"
 
19065
at_fn_check_prepare_trace "json.at:152"
 
19066
( $at_check_trace; printf %s "{\"b\": 2, \"a\": 1, \"c\": 3, }" > input
 
19067
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19068
at_status=$? at_failed=false
 
19069
$at_check_filter
 
19070
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19071
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19072
at_fn_check_status 0 $at_status "$at_srcdir/json.at:152"
 
19073
$at_failed && at_fn_log_failure
 
19074
$at_traceon; }
 
19075
 
 
19076
 
 
19077
   { set +x
 
19078
$as_echo "$at_srcdir/json.at:152: test-json  input"
 
19079
at_fn_check_prepare_trace "json.at:152"
 
19080
( $at_check_trace; test-json  input
 
19081
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19082
at_status=$? at_failed=false
 
19083
$at_check_filter
 
19084
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19085
echo stdout:; tee stdout <"$at_stdout"
 
19086
at_fn_check_status 1 $at_status "$at_srcdir/json.at:152"
 
19087
$at_failed && at_fn_log_failure  \
 
19088
"input"
 
19089
$at_traceon; }
 
19090
 
 
19091
   { set +x
 
19092
$as_echo "$at_srcdir/json.at:152: sed 's/^error: [^:]*:/error:/' < stdout"
 
19093
at_fn_check_prepare_trace "json.at:152"
 
19094
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19095
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19096
at_status=$? at_failed=false
 
19097
$at_check_filter
 
19098
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19099
echo >>"$at_stdout"; $as_echo "error: syntax error parsing object expecting string
 
19100
" | \
 
19101
  $at_diff - "$at_stdout" || at_failed=:
 
19102
at_fn_check_status 0 $at_status "$at_srcdir/json.at:152"
 
19103
$at_failed && at_fn_log_failure  \
 
19104
"input"
 
19105
$at_traceon; }
 
19106
 
 
19107
     set +x
 
19108
  $at_times_p && times >"$at_times_file"
 
19109
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19110
read at_status <"$at_status_file"
 
19111
#AT_STOP_252
 
19112
#AT_START_253
 
19113
at_fn_group_banner 253 'json.at:152' \
 
19114
  "trailing comma not allowed - Python" "            " 22
 
19115
at_xfail=no
 
19116
(
 
19117
  $as_echo "253. $at_setup_line: testing $at_desc ..."
 
19118
  $at_traceon
 
19119
 
 
19120
 
 
19121
   $as_echo "json.at:152" >"$at_check_line_file"
 
19122
(test $HAVE_PYTHON = no) \
 
19123
  && at_fn_check_skip 77 "$at_srcdir/json.at:152"
 
19124
   { set +x
 
19125
$as_echo "$at_srcdir/json.at:152: printf %s \"{\\\"b\\\": 2, \\\"a\\\": 1, \\\"c\\\": 3, }\" > input"
 
19126
at_fn_check_prepare_trace "json.at:152"
 
19127
( $at_check_trace; printf %s "{\"b\": 2, \"a\": 1, \"c\": 3, }" > input
 
19128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19129
at_status=$? at_failed=false
 
19130
$at_check_filter
 
19131
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19132
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19133
at_fn_check_status 0 $at_status "$at_srcdir/json.at:152"
 
19134
$at_failed && at_fn_log_failure
 
19135
$at_traceon; }
 
19136
 
 
19137
 
 
19138
   { set +x
 
19139
$as_echo "$at_srcdir/json.at:152: \$PYTHON \$srcdir/test-json.py  input"
 
19140
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:152"
 
19141
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19142
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19143
at_status=$? at_failed=false
 
19144
$at_check_filter
 
19145
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19146
echo stdout:; tee stdout <"$at_stdout"
 
19147
at_fn_check_status 1 $at_status "$at_srcdir/json.at:152"
 
19148
$at_failed && at_fn_log_failure  \
 
19149
"input"
 
19150
$at_traceon; }
 
19151
 
 
19152
   { set +x
 
19153
$as_echo "$at_srcdir/json.at:152: sed 's/^error: [^:]*:/error:/' < stdout"
 
19154
at_fn_check_prepare_trace "json.at:152"
 
19155
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19156
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19157
at_status=$? at_failed=false
 
19158
$at_check_filter
 
19159
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19160
echo >>"$at_stdout"; $as_echo "error: syntax error parsing object expecting string
 
19161
" | \
 
19162
  $at_diff - "$at_stdout" || at_failed=:
 
19163
at_fn_check_status 0 $at_status "$at_srcdir/json.at:152"
 
19164
$at_failed && at_fn_log_failure  \
 
19165
"input"
 
19166
$at_traceon; }
 
19167
 
 
19168
     set +x
 
19169
  $at_times_p && times >"$at_times_file"
 
19170
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19171
read at_status <"$at_status_file"
 
19172
#AT_STOP_253
 
19173
#AT_START_254
 
19174
at_fn_group_banner 254 'json.at:155' \
 
19175
  "doubled comma not allowed - C" "                  " 22
 
19176
at_xfail=no
 
19177
(
 
19178
  $as_echo "254. $at_setup_line: testing $at_desc ..."
 
19179
  $at_traceon
 
19180
 
 
19181
 
 
19182
   { set +x
 
19183
$as_echo "$at_srcdir/json.at:155: printf %s \"{\\\"b\\\": 2, \\\"a\\\": 1,, \\\"c\\\": 3}\" > input"
 
19184
at_fn_check_prepare_trace "json.at:155"
 
19185
( $at_check_trace; printf %s "{\"b\": 2, \"a\": 1,, \"c\": 3}" > input
 
19186
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19187
at_status=$? at_failed=false
 
19188
$at_check_filter
 
19189
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19190
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19191
at_fn_check_status 0 $at_status "$at_srcdir/json.at:155"
 
19192
$at_failed && at_fn_log_failure
 
19193
$at_traceon; }
 
19194
 
 
19195
 
 
19196
   { set +x
 
19197
$as_echo "$at_srcdir/json.at:155: test-json  input"
 
19198
at_fn_check_prepare_trace "json.at:155"
 
19199
( $at_check_trace; test-json  input
 
19200
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19201
at_status=$? at_failed=false
 
19202
$at_check_filter
 
19203
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19204
echo stdout:; tee stdout <"$at_stdout"
 
19205
at_fn_check_status 1 $at_status "$at_srcdir/json.at:155"
 
19206
$at_failed && at_fn_log_failure  \
 
19207
"input"
 
19208
$at_traceon; }
 
19209
 
 
19210
   { set +x
 
19211
$as_echo "$at_srcdir/json.at:155: sed 's/^error: [^:]*:/error:/' < stdout"
 
19212
at_fn_check_prepare_trace "json.at:155"
 
19213
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19214
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19215
at_status=$? at_failed=false
 
19216
$at_check_filter
 
19217
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19218
echo >>"$at_stdout"; $as_echo "error: syntax error parsing object expecting string
 
19219
" | \
 
19220
  $at_diff - "$at_stdout" || at_failed=:
 
19221
at_fn_check_status 0 $at_status "$at_srcdir/json.at:155"
 
19222
$at_failed && at_fn_log_failure  \
 
19223
"input"
 
19224
$at_traceon; }
 
19225
 
 
19226
     set +x
 
19227
  $at_times_p && times >"$at_times_file"
 
19228
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19229
read at_status <"$at_status_file"
 
19230
#AT_STOP_254
 
19231
#AT_START_255
 
19232
at_fn_group_banner 255 'json.at:155' \
 
19233
  "doubled comma not allowed - Python" "             " 22
 
19234
at_xfail=no
 
19235
(
 
19236
  $as_echo "255. $at_setup_line: testing $at_desc ..."
 
19237
  $at_traceon
 
19238
 
 
19239
 
 
19240
   $as_echo "json.at:155" >"$at_check_line_file"
 
19241
(test $HAVE_PYTHON = no) \
 
19242
  && at_fn_check_skip 77 "$at_srcdir/json.at:155"
 
19243
   { set +x
 
19244
$as_echo "$at_srcdir/json.at:155: printf %s \"{\\\"b\\\": 2, \\\"a\\\": 1,, \\\"c\\\": 3}\" > input"
 
19245
at_fn_check_prepare_trace "json.at:155"
 
19246
( $at_check_trace; printf %s "{\"b\": 2, \"a\": 1,, \"c\": 3}" > input
 
19247
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19248
at_status=$? at_failed=false
 
19249
$at_check_filter
 
19250
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19251
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19252
at_fn_check_status 0 $at_status "$at_srcdir/json.at:155"
 
19253
$at_failed && at_fn_log_failure
 
19254
$at_traceon; }
 
19255
 
 
19256
 
 
19257
   { set +x
 
19258
$as_echo "$at_srcdir/json.at:155: \$PYTHON \$srcdir/test-json.py  input"
 
19259
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:155"
 
19260
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19261
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19262
at_status=$? at_failed=false
 
19263
$at_check_filter
 
19264
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19265
echo stdout:; tee stdout <"$at_stdout"
 
19266
at_fn_check_status 1 $at_status "$at_srcdir/json.at:155"
 
19267
$at_failed && at_fn_log_failure  \
 
19268
"input"
 
19269
$at_traceon; }
 
19270
 
 
19271
   { set +x
 
19272
$as_echo "$at_srcdir/json.at:155: sed 's/^error: [^:]*:/error:/' < stdout"
 
19273
at_fn_check_prepare_trace "json.at:155"
 
19274
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19276
at_status=$? at_failed=false
 
19277
$at_check_filter
 
19278
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19279
echo >>"$at_stdout"; $as_echo "error: syntax error parsing object expecting string
 
19280
" | \
 
19281
  $at_diff - "$at_stdout" || at_failed=:
 
19282
at_fn_check_status 0 $at_status "$at_srcdir/json.at:155"
 
19283
$at_failed && at_fn_log_failure  \
 
19284
"input"
 
19285
$at_traceon; }
 
19286
 
 
19287
     set +x
 
19288
  $at_times_p && times >"$at_times_file"
 
19289
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19290
read at_status <"$at_status_file"
 
19291
#AT_STOP_255
 
19292
#AT_START_256
 
19293
at_fn_group_banner 256 'json.at:158' \
 
19294
  "names must be strings - C" "                      " 22
 
19295
at_xfail=no
 
19296
(
 
19297
  $as_echo "256. $at_setup_line: testing $at_desc ..."
 
19298
  $at_traceon
 
19299
 
 
19300
 
 
19301
   { set +x
 
19302
$as_echo "$at_srcdir/json.at:158: printf %s \"{1: 2}\" > input"
 
19303
at_fn_check_prepare_trace "json.at:158"
 
19304
( $at_check_trace; printf %s "{1: 2}" > input
 
19305
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19306
at_status=$? at_failed=false
 
19307
$at_check_filter
 
19308
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19309
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19310
at_fn_check_status 0 $at_status "$at_srcdir/json.at:158"
 
19311
$at_failed && at_fn_log_failure
 
19312
$at_traceon; }
 
19313
 
 
19314
 
 
19315
   { set +x
 
19316
$as_echo "$at_srcdir/json.at:158: test-json  input"
 
19317
at_fn_check_prepare_trace "json.at:158"
 
19318
( $at_check_trace; test-json  input
 
19319
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19320
at_status=$? at_failed=false
 
19321
$at_check_filter
 
19322
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19323
echo stdout:; tee stdout <"$at_stdout"
 
19324
at_fn_check_status 1 $at_status "$at_srcdir/json.at:158"
 
19325
$at_failed && at_fn_log_failure  \
 
19326
"input"
 
19327
$at_traceon; }
 
19328
 
 
19329
   { set +x
 
19330
$as_echo "$at_srcdir/json.at:158: sed 's/^error: [^:]*:/error:/' < stdout"
 
19331
at_fn_check_prepare_trace "json.at:158"
 
19332
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19333
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19334
at_status=$? at_failed=false
 
19335
$at_check_filter
 
19336
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19337
echo >>"$at_stdout"; $as_echo "error: syntax error parsing object expecting string
 
19338
" | \
 
19339
  $at_diff - "$at_stdout" || at_failed=:
 
19340
at_fn_check_status 0 $at_status "$at_srcdir/json.at:158"
 
19341
$at_failed && at_fn_log_failure  \
 
19342
"input"
 
19343
$at_traceon; }
 
19344
 
 
19345
     set +x
 
19346
  $at_times_p && times >"$at_times_file"
 
19347
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19348
read at_status <"$at_status_file"
 
19349
#AT_STOP_256
 
19350
#AT_START_257
 
19351
at_fn_group_banner 257 'json.at:158' \
 
19352
  "names must be strings - Python" "                 " 22
 
19353
at_xfail=no
 
19354
(
 
19355
  $as_echo "257. $at_setup_line: testing $at_desc ..."
 
19356
  $at_traceon
 
19357
 
 
19358
 
 
19359
   $as_echo "json.at:158" >"$at_check_line_file"
 
19360
(test $HAVE_PYTHON = no) \
 
19361
  && at_fn_check_skip 77 "$at_srcdir/json.at:158"
 
19362
   { set +x
 
19363
$as_echo "$at_srcdir/json.at:158: printf %s \"{1: 2}\" > input"
 
19364
at_fn_check_prepare_trace "json.at:158"
 
19365
( $at_check_trace; printf %s "{1: 2}" > input
 
19366
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19367
at_status=$? at_failed=false
 
19368
$at_check_filter
 
19369
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19370
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19371
at_fn_check_status 0 $at_status "$at_srcdir/json.at:158"
 
19372
$at_failed && at_fn_log_failure
 
19373
$at_traceon; }
 
19374
 
 
19375
 
 
19376
   { set +x
 
19377
$as_echo "$at_srcdir/json.at:158: \$PYTHON \$srcdir/test-json.py  input"
 
19378
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:158"
 
19379
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19380
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19381
at_status=$? at_failed=false
 
19382
$at_check_filter
 
19383
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19384
echo stdout:; tee stdout <"$at_stdout"
 
19385
at_fn_check_status 1 $at_status "$at_srcdir/json.at:158"
 
19386
$at_failed && at_fn_log_failure  \
 
19387
"input"
 
19388
$at_traceon; }
 
19389
 
 
19390
   { set +x
 
19391
$as_echo "$at_srcdir/json.at:158: sed 's/^error: [^:]*:/error:/' < stdout"
 
19392
at_fn_check_prepare_trace "json.at:158"
 
19393
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19394
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19395
at_status=$? at_failed=false
 
19396
$at_check_filter
 
19397
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19398
echo >>"$at_stdout"; $as_echo "error: syntax error parsing object expecting string
 
19399
" | \
 
19400
  $at_diff - "$at_stdout" || at_failed=:
 
19401
at_fn_check_status 0 $at_status "$at_srcdir/json.at:158"
 
19402
$at_failed && at_fn_log_failure  \
 
19403
"input"
 
19404
$at_traceon; }
 
19405
 
 
19406
     set +x
 
19407
  $at_times_p && times >"$at_times_file"
 
19408
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19409
read at_status <"$at_status_file"
 
19410
#AT_STOP_257
 
19411
#AT_START_258
 
19412
at_fn_group_banner 258 'json.at:164' \
 
19413
  "null - C" "                                       " 23
 
19414
at_xfail=no
 
19415
(
 
19416
  $as_echo "258. $at_setup_line: testing $at_desc ..."
 
19417
  $at_traceon
 
19418
 
 
19419
 
 
19420
   { set +x
 
19421
$as_echo "$at_srcdir/json.at:164: printf %s \"[ null ]\" > input"
 
19422
at_fn_check_prepare_trace "json.at:164"
 
19423
( $at_check_trace; printf %s "[ null ]" > input
 
19424
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19425
at_status=$? at_failed=false
 
19426
$at_check_filter
 
19427
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19428
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19429
at_fn_check_status 0 $at_status "$at_srcdir/json.at:164"
 
19430
$at_failed && at_fn_log_failure
 
19431
$at_traceon; }
 
19432
 
 
19433
 
 
19434
   { set +x
 
19435
$as_echo "$at_srcdir/json.at:164: test-json  input"
 
19436
at_fn_check_prepare_trace "json.at:164"
 
19437
( $at_check_trace; test-json  input
 
19438
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19439
at_status=$? at_failed=false
 
19440
$at_check_filter
 
19441
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19442
echo stdout:; tee stdout <"$at_stdout"
 
19443
at_fn_check_status 0 $at_status "$at_srcdir/json.at:164"
 
19444
$at_failed && at_fn_log_failure  \
 
19445
"input"
 
19446
$at_traceon; }
 
19447
 
 
19448
   { set +x
 
19449
$as_echo "$at_srcdir/json.at:164: cat stdout"
 
19450
at_fn_check_prepare_trace "json.at:164"
 
19451
( $at_check_trace; cat stdout
 
19452
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19453
at_status=$? at_failed=false
 
19454
$at_check_filter
 
19455
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19456
echo >>"$at_stdout"; $as_echo "[null]
 
19457
" | \
 
19458
  $at_diff - "$at_stdout" || at_failed=:
 
19459
at_fn_check_status 0 $at_status "$at_srcdir/json.at:164"
 
19460
$at_failed && at_fn_log_failure  \
 
19461
"input"
 
19462
$at_traceon; }
 
19463
 
 
19464
     set +x
 
19465
  $at_times_p && times >"$at_times_file"
 
19466
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19467
read at_status <"$at_status_file"
 
19468
#AT_STOP_258
 
19469
#AT_START_259
 
19470
at_fn_group_banner 259 'json.at:164' \
 
19471
  "null - Python" "                                  " 23
 
19472
at_xfail=no
 
19473
(
 
19474
  $as_echo "259. $at_setup_line: testing $at_desc ..."
 
19475
  $at_traceon
 
19476
 
 
19477
 
 
19478
   $as_echo "json.at:164" >"$at_check_line_file"
 
19479
(test $HAVE_PYTHON = no) \
 
19480
  && at_fn_check_skip 77 "$at_srcdir/json.at:164"
 
19481
   { set +x
 
19482
$as_echo "$at_srcdir/json.at:164: printf %s \"[ null ]\" > input"
 
19483
at_fn_check_prepare_trace "json.at:164"
 
19484
( $at_check_trace; printf %s "[ null ]" > input
 
19485
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19486
at_status=$? at_failed=false
 
19487
$at_check_filter
 
19488
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19489
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19490
at_fn_check_status 0 $at_status "$at_srcdir/json.at:164"
 
19491
$at_failed && at_fn_log_failure
 
19492
$at_traceon; }
 
19493
 
 
19494
 
 
19495
   { set +x
 
19496
$as_echo "$at_srcdir/json.at:164: \$PYTHON \$srcdir/test-json.py  input"
 
19497
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:164"
 
19498
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19499
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19500
at_status=$? at_failed=false
 
19501
$at_check_filter
 
19502
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19503
echo stdout:; tee stdout <"$at_stdout"
 
19504
at_fn_check_status 0 $at_status "$at_srcdir/json.at:164"
 
19505
$at_failed && at_fn_log_failure  \
 
19506
"input"
 
19507
$at_traceon; }
 
19508
 
 
19509
   { set +x
 
19510
$as_echo "$at_srcdir/json.at:164: cat stdout"
 
19511
at_fn_check_prepare_trace "json.at:164"
 
19512
( $at_check_trace; cat stdout
 
19513
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19514
at_status=$? at_failed=false
 
19515
$at_check_filter
 
19516
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19517
echo >>"$at_stdout"; $as_echo "[null]
 
19518
" | \
 
19519
  $at_diff - "$at_stdout" || at_failed=:
 
19520
at_fn_check_status 0 $at_status "$at_srcdir/json.at:164"
 
19521
$at_failed && at_fn_log_failure  \
 
19522
"input"
 
19523
$at_traceon; }
 
19524
 
 
19525
     set +x
 
19526
  $at_times_p && times >"$at_times_file"
 
19527
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19528
read at_status <"$at_status_file"
 
19529
#AT_STOP_259
 
19530
#AT_START_260
 
19531
at_fn_group_banner 260 'json.at:165' \
 
19532
  "false - C" "                                      " 23
 
19533
at_xfail=no
 
19534
(
 
19535
  $as_echo "260. $at_setup_line: testing $at_desc ..."
 
19536
  $at_traceon
 
19537
 
 
19538
 
 
19539
   { set +x
 
19540
$as_echo "$at_srcdir/json.at:165: printf %s \"[ false ]\" > input"
 
19541
at_fn_check_prepare_trace "json.at:165"
 
19542
( $at_check_trace; printf %s "[ false ]" > input
 
19543
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19544
at_status=$? at_failed=false
 
19545
$at_check_filter
 
19546
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19547
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19548
at_fn_check_status 0 $at_status "$at_srcdir/json.at:165"
 
19549
$at_failed && at_fn_log_failure
 
19550
$at_traceon; }
 
19551
 
 
19552
 
 
19553
   { set +x
 
19554
$as_echo "$at_srcdir/json.at:165: test-json  input"
 
19555
at_fn_check_prepare_trace "json.at:165"
 
19556
( $at_check_trace; test-json  input
 
19557
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19558
at_status=$? at_failed=false
 
19559
$at_check_filter
 
19560
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19561
echo stdout:; tee stdout <"$at_stdout"
 
19562
at_fn_check_status 0 $at_status "$at_srcdir/json.at:165"
 
19563
$at_failed && at_fn_log_failure  \
 
19564
"input"
 
19565
$at_traceon; }
 
19566
 
 
19567
   { set +x
 
19568
$as_echo "$at_srcdir/json.at:165: cat stdout"
 
19569
at_fn_check_prepare_trace "json.at:165"
 
19570
( $at_check_trace; cat stdout
 
19571
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19572
at_status=$? at_failed=false
 
19573
$at_check_filter
 
19574
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19575
echo >>"$at_stdout"; $as_echo "[false]
 
19576
" | \
 
19577
  $at_diff - "$at_stdout" || at_failed=:
 
19578
at_fn_check_status 0 $at_status "$at_srcdir/json.at:165"
 
19579
$at_failed && at_fn_log_failure  \
 
19580
"input"
 
19581
$at_traceon; }
 
19582
 
 
19583
     set +x
 
19584
  $at_times_p && times >"$at_times_file"
 
19585
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19586
read at_status <"$at_status_file"
 
19587
#AT_STOP_260
 
19588
#AT_START_261
 
19589
at_fn_group_banner 261 'json.at:165' \
 
19590
  "false - Python" "                                 " 23
 
19591
at_xfail=no
 
19592
(
 
19593
  $as_echo "261. $at_setup_line: testing $at_desc ..."
 
19594
  $at_traceon
 
19595
 
 
19596
 
 
19597
   $as_echo "json.at:165" >"$at_check_line_file"
 
19598
(test $HAVE_PYTHON = no) \
 
19599
  && at_fn_check_skip 77 "$at_srcdir/json.at:165"
 
19600
   { set +x
 
19601
$as_echo "$at_srcdir/json.at:165: printf %s \"[ false ]\" > input"
 
19602
at_fn_check_prepare_trace "json.at:165"
 
19603
( $at_check_trace; printf %s "[ false ]" > input
 
19604
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19605
at_status=$? at_failed=false
 
19606
$at_check_filter
 
19607
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19608
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19609
at_fn_check_status 0 $at_status "$at_srcdir/json.at:165"
 
19610
$at_failed && at_fn_log_failure
 
19611
$at_traceon; }
 
19612
 
 
19613
 
 
19614
   { set +x
 
19615
$as_echo "$at_srcdir/json.at:165: \$PYTHON \$srcdir/test-json.py  input"
 
19616
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:165"
 
19617
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19618
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19619
at_status=$? at_failed=false
 
19620
$at_check_filter
 
19621
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19622
echo stdout:; tee stdout <"$at_stdout"
 
19623
at_fn_check_status 0 $at_status "$at_srcdir/json.at:165"
 
19624
$at_failed && at_fn_log_failure  \
 
19625
"input"
 
19626
$at_traceon; }
 
19627
 
 
19628
   { set +x
 
19629
$as_echo "$at_srcdir/json.at:165: cat stdout"
 
19630
at_fn_check_prepare_trace "json.at:165"
 
19631
( $at_check_trace; cat stdout
 
19632
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19633
at_status=$? at_failed=false
 
19634
$at_check_filter
 
19635
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19636
echo >>"$at_stdout"; $as_echo "[false]
 
19637
" | \
 
19638
  $at_diff - "$at_stdout" || at_failed=:
 
19639
at_fn_check_status 0 $at_status "$at_srcdir/json.at:165"
 
19640
$at_failed && at_fn_log_failure  \
 
19641
"input"
 
19642
$at_traceon; }
 
19643
 
 
19644
     set +x
 
19645
  $at_times_p && times >"$at_times_file"
 
19646
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19647
read at_status <"$at_status_file"
 
19648
#AT_STOP_261
 
19649
#AT_START_262
 
19650
at_fn_group_banner 262 'json.at:166' \
 
19651
  "true - C" "                                       " 23
 
19652
at_xfail=no
 
19653
(
 
19654
  $as_echo "262. $at_setup_line: testing $at_desc ..."
 
19655
  $at_traceon
 
19656
 
 
19657
 
 
19658
   { set +x
 
19659
$as_echo "$at_srcdir/json.at:166: printf %s \"[ true ]\" > input"
 
19660
at_fn_check_prepare_trace "json.at:166"
 
19661
( $at_check_trace; printf %s "[ true ]" > input
 
19662
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19663
at_status=$? at_failed=false
 
19664
$at_check_filter
 
19665
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19666
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19667
at_fn_check_status 0 $at_status "$at_srcdir/json.at:166"
 
19668
$at_failed && at_fn_log_failure
 
19669
$at_traceon; }
 
19670
 
 
19671
 
 
19672
   { set +x
 
19673
$as_echo "$at_srcdir/json.at:166: test-json  input"
 
19674
at_fn_check_prepare_trace "json.at:166"
 
19675
( $at_check_trace; test-json  input
 
19676
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19677
at_status=$? at_failed=false
 
19678
$at_check_filter
 
19679
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19680
echo stdout:; tee stdout <"$at_stdout"
 
19681
at_fn_check_status 0 $at_status "$at_srcdir/json.at:166"
 
19682
$at_failed && at_fn_log_failure  \
 
19683
"input"
 
19684
$at_traceon; }
 
19685
 
 
19686
   { set +x
 
19687
$as_echo "$at_srcdir/json.at:166: cat stdout"
 
19688
at_fn_check_prepare_trace "json.at:166"
 
19689
( $at_check_trace; cat stdout
 
19690
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19691
at_status=$? at_failed=false
 
19692
$at_check_filter
 
19693
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19694
echo >>"$at_stdout"; $as_echo "[true]
 
19695
" | \
 
19696
  $at_diff - "$at_stdout" || at_failed=:
 
19697
at_fn_check_status 0 $at_status "$at_srcdir/json.at:166"
 
19698
$at_failed && at_fn_log_failure  \
 
19699
"input"
 
19700
$at_traceon; }
 
19701
 
 
19702
     set +x
 
19703
  $at_times_p && times >"$at_times_file"
 
19704
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19705
read at_status <"$at_status_file"
 
19706
#AT_STOP_262
 
19707
#AT_START_263
 
19708
at_fn_group_banner 263 'json.at:166' \
 
19709
  "true - Python" "                                  " 23
 
19710
at_xfail=no
 
19711
(
 
19712
  $as_echo "263. $at_setup_line: testing $at_desc ..."
 
19713
  $at_traceon
 
19714
 
 
19715
 
 
19716
   $as_echo "json.at:166" >"$at_check_line_file"
 
19717
(test $HAVE_PYTHON = no) \
 
19718
  && at_fn_check_skip 77 "$at_srcdir/json.at:166"
 
19719
   { set +x
 
19720
$as_echo "$at_srcdir/json.at:166: printf %s \"[ true ]\" > input"
 
19721
at_fn_check_prepare_trace "json.at:166"
 
19722
( $at_check_trace; printf %s "[ true ]" > input
 
19723
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19724
at_status=$? at_failed=false
 
19725
$at_check_filter
 
19726
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19727
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19728
at_fn_check_status 0 $at_status "$at_srcdir/json.at:166"
 
19729
$at_failed && at_fn_log_failure
 
19730
$at_traceon; }
 
19731
 
 
19732
 
 
19733
   { set +x
 
19734
$as_echo "$at_srcdir/json.at:166: \$PYTHON \$srcdir/test-json.py  input"
 
19735
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:166"
 
19736
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19737
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19738
at_status=$? at_failed=false
 
19739
$at_check_filter
 
19740
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19741
echo stdout:; tee stdout <"$at_stdout"
 
19742
at_fn_check_status 0 $at_status "$at_srcdir/json.at:166"
 
19743
$at_failed && at_fn_log_failure  \
 
19744
"input"
 
19745
$at_traceon; }
 
19746
 
 
19747
   { set +x
 
19748
$as_echo "$at_srcdir/json.at:166: cat stdout"
 
19749
at_fn_check_prepare_trace "json.at:166"
 
19750
( $at_check_trace; cat stdout
 
19751
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19752
at_status=$? at_failed=false
 
19753
$at_check_filter
 
19754
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19755
echo >>"$at_stdout"; $as_echo "[true]
 
19756
" | \
 
19757
  $at_diff - "$at_stdout" || at_failed=:
 
19758
at_fn_check_status 0 $at_status "$at_srcdir/json.at:166"
 
19759
$at_failed && at_fn_log_failure  \
 
19760
"input"
 
19761
$at_traceon; }
 
19762
 
 
19763
     set +x
 
19764
  $at_times_p && times >"$at_times_file"
 
19765
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19766
read at_status <"$at_status_file"
 
19767
#AT_STOP_263
 
19768
#AT_START_264
 
19769
at_fn_group_banner 264 'json.at:167' \
 
19770
  "a literal by itself is not valid JSON - C" "      " 23
 
19771
at_xfail=no
 
19772
(
 
19773
  $as_echo "264. $at_setup_line: testing $at_desc ..."
 
19774
  $at_traceon
 
19775
 
 
19776
 
 
19777
   { set +x
 
19778
$as_echo "$at_srcdir/json.at:167: printf %s \"null\" > input"
 
19779
at_fn_check_prepare_trace "json.at:167"
 
19780
( $at_check_trace; printf %s "null" > input
 
19781
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19782
at_status=$? at_failed=false
 
19783
$at_check_filter
 
19784
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19785
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19786
at_fn_check_status 0 $at_status "$at_srcdir/json.at:167"
 
19787
$at_failed && at_fn_log_failure
 
19788
$at_traceon; }
 
19789
 
 
19790
 
 
19791
   { set +x
 
19792
$as_echo "$at_srcdir/json.at:167: test-json  input"
 
19793
at_fn_check_prepare_trace "json.at:167"
 
19794
( $at_check_trace; test-json  input
 
19795
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19796
at_status=$? at_failed=false
 
19797
$at_check_filter
 
19798
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19799
echo stdout:; tee stdout <"$at_stdout"
 
19800
at_fn_check_status 1 $at_status "$at_srcdir/json.at:167"
 
19801
$at_failed && at_fn_log_failure  \
 
19802
"input"
 
19803
$at_traceon; }
 
19804
 
 
19805
   { set +x
 
19806
$as_echo "$at_srcdir/json.at:167: sed 's/^error: [^:]*:/error:/' < stdout"
 
19807
at_fn_check_prepare_trace "json.at:167"
 
19808
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19809
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19810
at_status=$? at_failed=false
 
19811
$at_check_filter
 
19812
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19813
echo >>"$at_stdout"; $as_echo "error: syntax error at beginning of input
 
19814
" | \
 
19815
  $at_diff - "$at_stdout" || at_failed=:
 
19816
at_fn_check_status 0 $at_status "$at_srcdir/json.at:167"
 
19817
$at_failed && at_fn_log_failure  \
 
19818
"input"
 
19819
$at_traceon; }
 
19820
 
 
19821
     set +x
 
19822
  $at_times_p && times >"$at_times_file"
 
19823
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19824
read at_status <"$at_status_file"
 
19825
#AT_STOP_264
 
19826
#AT_START_265
 
19827
at_fn_group_banner 265 'json.at:167' \
 
19828
  "a literal by itself is not valid JSON - Python" " " 23
 
19829
at_xfail=no
 
19830
(
 
19831
  $as_echo "265. $at_setup_line: testing $at_desc ..."
 
19832
  $at_traceon
 
19833
 
 
19834
 
 
19835
   $as_echo "json.at:167" >"$at_check_line_file"
 
19836
(test $HAVE_PYTHON = no) \
 
19837
  && at_fn_check_skip 77 "$at_srcdir/json.at:167"
 
19838
   { set +x
 
19839
$as_echo "$at_srcdir/json.at:167: printf %s \"null\" > input"
 
19840
at_fn_check_prepare_trace "json.at:167"
 
19841
( $at_check_trace; printf %s "null" > input
 
19842
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19843
at_status=$? at_failed=false
 
19844
$at_check_filter
 
19845
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19846
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19847
at_fn_check_status 0 $at_status "$at_srcdir/json.at:167"
 
19848
$at_failed && at_fn_log_failure
 
19849
$at_traceon; }
 
19850
 
 
19851
 
 
19852
   { set +x
 
19853
$as_echo "$at_srcdir/json.at:167: \$PYTHON \$srcdir/test-json.py  input"
 
19854
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:167"
 
19855
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19856
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19857
at_status=$? at_failed=false
 
19858
$at_check_filter
 
19859
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19860
echo stdout:; tee stdout <"$at_stdout"
 
19861
at_fn_check_status 1 $at_status "$at_srcdir/json.at:167"
 
19862
$at_failed && at_fn_log_failure  \
 
19863
"input"
 
19864
$at_traceon; }
 
19865
 
 
19866
   { set +x
 
19867
$as_echo "$at_srcdir/json.at:167: sed 's/^error: [^:]*:/error:/' < stdout"
 
19868
at_fn_check_prepare_trace "json.at:167"
 
19869
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19871
at_status=$? at_failed=false
 
19872
$at_check_filter
 
19873
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19874
echo >>"$at_stdout"; $as_echo "error: syntax error at beginning of input
 
19875
" | \
 
19876
  $at_diff - "$at_stdout" || at_failed=:
 
19877
at_fn_check_status 0 $at_status "$at_srcdir/json.at:167"
 
19878
$at_failed && at_fn_log_failure  \
 
19879
"input"
 
19880
$at_traceon; }
 
19881
 
 
19882
     set +x
 
19883
  $at_times_p && times >"$at_times_file"
 
19884
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19885
read at_status <"$at_status_file"
 
19886
#AT_STOP_265
 
19887
#AT_START_266
 
19888
at_fn_group_banner 266 'json.at:169' \
 
19889
  "nullify is invalid - C" "                         " 23
 
19890
at_xfail=no
 
19891
(
 
19892
  $as_echo "266. $at_setup_line: testing $at_desc ..."
 
19893
  $at_traceon
 
19894
 
 
19895
 
 
19896
   { set +x
 
19897
$as_echo "$at_srcdir/json.at:169: printf %s \"[ nullify ]\" > input"
 
19898
at_fn_check_prepare_trace "json.at:169"
 
19899
( $at_check_trace; printf %s "[ nullify ]" > input
 
19900
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19901
at_status=$? at_failed=false
 
19902
$at_check_filter
 
19903
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19904
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19905
at_fn_check_status 0 $at_status "$at_srcdir/json.at:169"
 
19906
$at_failed && at_fn_log_failure
 
19907
$at_traceon; }
 
19908
 
 
19909
 
 
19910
   { set +x
 
19911
$as_echo "$at_srcdir/json.at:169: test-json  input"
 
19912
at_fn_check_prepare_trace "json.at:169"
 
19913
( $at_check_trace; test-json  input
 
19914
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19915
at_status=$? at_failed=false
 
19916
$at_check_filter
 
19917
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19918
echo stdout:; tee stdout <"$at_stdout"
 
19919
at_fn_check_status 1 $at_status "$at_srcdir/json.at:169"
 
19920
$at_failed && at_fn_log_failure  \
 
19921
"input"
 
19922
$at_traceon; }
 
19923
 
 
19924
   { set +x
 
19925
$as_echo "$at_srcdir/json.at:169: sed 's/^error: [^:]*:/error:/' < stdout"
 
19926
at_fn_check_prepare_trace "json.at:169"
 
19927
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19928
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19929
at_status=$? at_failed=false
 
19930
$at_check_filter
 
19931
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19932
echo >>"$at_stdout"; $as_echo "error: invalid keyword 'nullify'
 
19933
" | \
 
19934
  $at_diff - "$at_stdout" || at_failed=:
 
19935
at_fn_check_status 0 $at_status "$at_srcdir/json.at:169"
 
19936
$at_failed && at_fn_log_failure  \
 
19937
"input"
 
19938
$at_traceon; }
 
19939
 
 
19940
     set +x
 
19941
  $at_times_p && times >"$at_times_file"
 
19942
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
19943
read at_status <"$at_status_file"
 
19944
#AT_STOP_266
 
19945
#AT_START_267
 
19946
at_fn_group_banner 267 'json.at:169' \
 
19947
  "nullify is invalid - Python" "                    " 23
 
19948
at_xfail=no
 
19949
(
 
19950
  $as_echo "267. $at_setup_line: testing $at_desc ..."
 
19951
  $at_traceon
 
19952
 
 
19953
 
 
19954
   $as_echo "json.at:169" >"$at_check_line_file"
 
19955
(test $HAVE_PYTHON = no) \
 
19956
  && at_fn_check_skip 77 "$at_srcdir/json.at:169"
 
19957
   { set +x
 
19958
$as_echo "$at_srcdir/json.at:169: printf %s \"[ nullify ]\" > input"
 
19959
at_fn_check_prepare_trace "json.at:169"
 
19960
( $at_check_trace; printf %s "[ nullify ]" > input
 
19961
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19962
at_status=$? at_failed=false
 
19963
$at_check_filter
 
19964
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19965
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
19966
at_fn_check_status 0 $at_status "$at_srcdir/json.at:169"
 
19967
$at_failed && at_fn_log_failure
 
19968
$at_traceon; }
 
19969
 
 
19970
 
 
19971
   { set +x
 
19972
$as_echo "$at_srcdir/json.at:169: \$PYTHON \$srcdir/test-json.py  input"
 
19973
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:169"
 
19974
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
19975
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19976
at_status=$? at_failed=false
 
19977
$at_check_filter
 
19978
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19979
echo stdout:; tee stdout <"$at_stdout"
 
19980
at_fn_check_status 1 $at_status "$at_srcdir/json.at:169"
 
19981
$at_failed && at_fn_log_failure  \
 
19982
"input"
 
19983
$at_traceon; }
 
19984
 
 
19985
   { set +x
 
19986
$as_echo "$at_srcdir/json.at:169: sed 's/^error: [^:]*:/error:/' < stdout"
 
19987
at_fn_check_prepare_trace "json.at:169"
 
19988
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
19989
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
19990
at_status=$? at_failed=false
 
19991
$at_check_filter
 
19992
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
19993
echo >>"$at_stdout"; $as_echo "error: invalid keyword 'nullify'
 
19994
" | \
 
19995
  $at_diff - "$at_stdout" || at_failed=:
 
19996
at_fn_check_status 0 $at_status "$at_srcdir/json.at:169"
 
19997
$at_failed && at_fn_log_failure  \
 
19998
"input"
 
19999
$at_traceon; }
 
20000
 
 
20001
     set +x
 
20002
  $at_times_p && times >"$at_times_file"
 
20003
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20004
read at_status <"$at_status_file"
 
20005
#AT_STOP_267
 
20006
#AT_START_268
 
20007
at_fn_group_banner 268 'json.at:171' \
 
20008
  "nubs is invalid - C" "                            " 23
 
20009
at_xfail=no
 
20010
(
 
20011
  $as_echo "268. $at_setup_line: testing $at_desc ..."
 
20012
  $at_traceon
 
20013
 
 
20014
 
 
20015
   { set +x
 
20016
$as_echo "$at_srcdir/json.at:171: printf %s \"[ nubs ]\" > input"
 
20017
at_fn_check_prepare_trace "json.at:171"
 
20018
( $at_check_trace; printf %s "[ nubs ]" > input
 
20019
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20020
at_status=$? at_failed=false
 
20021
$at_check_filter
 
20022
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20023
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20024
at_fn_check_status 0 $at_status "$at_srcdir/json.at:171"
 
20025
$at_failed && at_fn_log_failure
 
20026
$at_traceon; }
 
20027
 
 
20028
 
 
20029
   { set +x
 
20030
$as_echo "$at_srcdir/json.at:171: test-json  input"
 
20031
at_fn_check_prepare_trace "json.at:171"
 
20032
( $at_check_trace; test-json  input
 
20033
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20034
at_status=$? at_failed=false
 
20035
$at_check_filter
 
20036
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20037
echo stdout:; tee stdout <"$at_stdout"
 
20038
at_fn_check_status 1 $at_status "$at_srcdir/json.at:171"
 
20039
$at_failed && at_fn_log_failure  \
 
20040
"input"
 
20041
$at_traceon; }
 
20042
 
 
20043
   { set +x
 
20044
$as_echo "$at_srcdir/json.at:171: sed 's/^error: [^:]*:/error:/' < stdout"
 
20045
at_fn_check_prepare_trace "json.at:171"
 
20046
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
20047
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20048
at_status=$? at_failed=false
 
20049
$at_check_filter
 
20050
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20051
echo >>"$at_stdout"; $as_echo "error: invalid keyword 'nubs'
 
20052
" | \
 
20053
  $at_diff - "$at_stdout" || at_failed=:
 
20054
at_fn_check_status 0 $at_status "$at_srcdir/json.at:171"
 
20055
$at_failed && at_fn_log_failure  \
 
20056
"input"
 
20057
$at_traceon; }
 
20058
 
 
20059
     set +x
 
20060
  $at_times_p && times >"$at_times_file"
 
20061
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20062
read at_status <"$at_status_file"
 
20063
#AT_STOP_268
 
20064
#AT_START_269
 
20065
at_fn_group_banner 269 'json.at:171' \
 
20066
  "nubs is invalid - Python" "                       " 23
 
20067
at_xfail=no
 
20068
(
 
20069
  $as_echo "269. $at_setup_line: testing $at_desc ..."
 
20070
  $at_traceon
 
20071
 
 
20072
 
 
20073
   $as_echo "json.at:171" >"$at_check_line_file"
 
20074
(test $HAVE_PYTHON = no) \
 
20075
  && at_fn_check_skip 77 "$at_srcdir/json.at:171"
 
20076
   { set +x
 
20077
$as_echo "$at_srcdir/json.at:171: printf %s \"[ nubs ]\" > input"
 
20078
at_fn_check_prepare_trace "json.at:171"
 
20079
( $at_check_trace; printf %s "[ nubs ]" > input
 
20080
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20081
at_status=$? at_failed=false
 
20082
$at_check_filter
 
20083
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20084
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20085
at_fn_check_status 0 $at_status "$at_srcdir/json.at:171"
 
20086
$at_failed && at_fn_log_failure
 
20087
$at_traceon; }
 
20088
 
 
20089
 
 
20090
   { set +x
 
20091
$as_echo "$at_srcdir/json.at:171: \$PYTHON \$srcdir/test-json.py  input"
 
20092
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:171"
 
20093
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
20094
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20095
at_status=$? at_failed=false
 
20096
$at_check_filter
 
20097
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20098
echo stdout:; tee stdout <"$at_stdout"
 
20099
at_fn_check_status 1 $at_status "$at_srcdir/json.at:171"
 
20100
$at_failed && at_fn_log_failure  \
 
20101
"input"
 
20102
$at_traceon; }
 
20103
 
 
20104
   { set +x
 
20105
$as_echo "$at_srcdir/json.at:171: sed 's/^error: [^:]*:/error:/' < stdout"
 
20106
at_fn_check_prepare_trace "json.at:171"
 
20107
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
20108
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20109
at_status=$? at_failed=false
 
20110
$at_check_filter
 
20111
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20112
echo >>"$at_stdout"; $as_echo "error: invalid keyword 'nubs'
 
20113
" | \
 
20114
  $at_diff - "$at_stdout" || at_failed=:
 
20115
at_fn_check_status 0 $at_status "$at_srcdir/json.at:171"
 
20116
$at_failed && at_fn_log_failure  \
 
20117
"input"
 
20118
$at_traceon; }
 
20119
 
 
20120
     set +x
 
20121
  $at_times_p && times >"$at_times_file"
 
20122
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20123
read at_status <"$at_status_file"
 
20124
#AT_STOP_269
 
20125
#AT_START_270
 
20126
at_fn_group_banner 270 'json.at:173' \
 
20127
  "xxx is invalid - C" "                             " 23
 
20128
at_xfail=no
 
20129
(
 
20130
  $as_echo "270. $at_setup_line: testing $at_desc ..."
 
20131
  $at_traceon
 
20132
 
 
20133
 
 
20134
   { set +x
 
20135
$as_echo "$at_srcdir/json.at:173: printf %s \"[ xxx ]\" > input"
 
20136
at_fn_check_prepare_trace "json.at:173"
 
20137
( $at_check_trace; printf %s "[ xxx ]" > input
 
20138
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20139
at_status=$? at_failed=false
 
20140
$at_check_filter
 
20141
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20142
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20143
at_fn_check_status 0 $at_status "$at_srcdir/json.at:173"
 
20144
$at_failed && at_fn_log_failure
 
20145
$at_traceon; }
 
20146
 
 
20147
 
 
20148
   { set +x
 
20149
$as_echo "$at_srcdir/json.at:173: test-json  input"
 
20150
at_fn_check_prepare_trace "json.at:173"
 
20151
( $at_check_trace; test-json  input
 
20152
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20153
at_status=$? at_failed=false
 
20154
$at_check_filter
 
20155
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20156
echo stdout:; tee stdout <"$at_stdout"
 
20157
at_fn_check_status 1 $at_status "$at_srcdir/json.at:173"
 
20158
$at_failed && at_fn_log_failure  \
 
20159
"input"
 
20160
$at_traceon; }
 
20161
 
 
20162
   { set +x
 
20163
$as_echo "$at_srcdir/json.at:173: sed 's/^error: [^:]*:/error:/' < stdout"
 
20164
at_fn_check_prepare_trace "json.at:173"
 
20165
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
20166
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20167
at_status=$? at_failed=false
 
20168
$at_check_filter
 
20169
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20170
echo >>"$at_stdout"; $as_echo "error: invalid keyword 'xxx'
 
20171
" | \
 
20172
  $at_diff - "$at_stdout" || at_failed=:
 
20173
at_fn_check_status 0 $at_status "$at_srcdir/json.at:173"
 
20174
$at_failed && at_fn_log_failure  \
 
20175
"input"
 
20176
$at_traceon; }
 
20177
 
 
20178
     set +x
 
20179
  $at_times_p && times >"$at_times_file"
 
20180
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20181
read at_status <"$at_status_file"
 
20182
#AT_STOP_270
 
20183
#AT_START_271
 
20184
at_fn_group_banner 271 'json.at:173' \
 
20185
  "xxx is invalid - Python" "                        " 23
 
20186
at_xfail=no
 
20187
(
 
20188
  $as_echo "271. $at_setup_line: testing $at_desc ..."
 
20189
  $at_traceon
 
20190
 
 
20191
 
 
20192
   $as_echo "json.at:173" >"$at_check_line_file"
 
20193
(test $HAVE_PYTHON = no) \
 
20194
  && at_fn_check_skip 77 "$at_srcdir/json.at:173"
 
20195
   { set +x
 
20196
$as_echo "$at_srcdir/json.at:173: printf %s \"[ xxx ]\" > input"
 
20197
at_fn_check_prepare_trace "json.at:173"
 
20198
( $at_check_trace; printf %s "[ xxx ]" > input
 
20199
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20200
at_status=$? at_failed=false
 
20201
$at_check_filter
 
20202
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20203
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20204
at_fn_check_status 0 $at_status "$at_srcdir/json.at:173"
 
20205
$at_failed && at_fn_log_failure
 
20206
$at_traceon; }
 
20207
 
 
20208
 
 
20209
   { set +x
 
20210
$as_echo "$at_srcdir/json.at:173: \$PYTHON \$srcdir/test-json.py  input"
 
20211
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:173"
 
20212
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
20213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20214
at_status=$? at_failed=false
 
20215
$at_check_filter
 
20216
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20217
echo stdout:; tee stdout <"$at_stdout"
 
20218
at_fn_check_status 1 $at_status "$at_srcdir/json.at:173"
 
20219
$at_failed && at_fn_log_failure  \
 
20220
"input"
 
20221
$at_traceon; }
 
20222
 
 
20223
   { set +x
 
20224
$as_echo "$at_srcdir/json.at:173: sed 's/^error: [^:]*:/error:/' < stdout"
 
20225
at_fn_check_prepare_trace "json.at:173"
 
20226
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
20227
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20228
at_status=$? at_failed=false
 
20229
$at_check_filter
 
20230
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20231
echo >>"$at_stdout"; $as_echo "error: invalid keyword 'xxx'
 
20232
" | \
 
20233
  $at_diff - "$at_stdout" || at_failed=:
 
20234
at_fn_check_status 0 $at_status "$at_srcdir/json.at:173"
 
20235
$at_failed && at_fn_log_failure  \
 
20236
"input"
 
20237
$at_traceon; }
 
20238
 
 
20239
     set +x
 
20240
  $at_times_p && times >"$at_times_file"
 
20241
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20242
read at_status <"$at_status_file"
 
20243
#AT_STOP_271
 
20244
#AT_START_272
 
20245
at_fn_group_banner 272 'json.at:178' \
 
20246
  "integers expressed as reals - C" "                " 24
 
20247
at_xfail=no
 
20248
(
 
20249
  $as_echo "272. $at_setup_line: testing $at_desc ..."
 
20250
  $at_traceon
 
20251
 
 
20252
 
 
20253
   { set +x
 
20254
$as_echo "$at_srcdir/json.at:178: printf %s \"[1.0000000000,
 
20255
     2.00000000000000000000000000000000000,
 
20256
     2e5,
 
20257
     2.1234e4,
 
20258
     2.1230e3,
 
20259
     0e-10000,
 
20260
     0e10000]\" > input"
 
20261
at_fn_check_prepare_notrace 'an embedded newline' "json.at:178"
 
20262
( $at_check_trace; printf %s "[1.0000000000,
 
20263
     2.00000000000000000000000000000000000,
 
20264
     2e5,
 
20265
     2.1234e4,
 
20266
     2.1230e3,
 
20267
     0e-10000,
 
20268
     0e10000]" > input
 
20269
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20270
at_status=$? at_failed=false
 
20271
$at_check_filter
 
20272
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20273
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20274
at_fn_check_status 0 $at_status "$at_srcdir/json.at:178"
 
20275
$at_failed && at_fn_log_failure
 
20276
$at_traceon; }
 
20277
 
 
20278
 
 
20279
   { set +x
 
20280
$as_echo "$at_srcdir/json.at:178: test-json  input"
 
20281
at_fn_check_prepare_trace "json.at:178"
 
20282
( $at_check_trace; test-json  input
 
20283
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20284
at_status=$? at_failed=false
 
20285
$at_check_filter
 
20286
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20287
echo stdout:; tee stdout <"$at_stdout"
 
20288
at_fn_check_status 0 $at_status "$at_srcdir/json.at:178"
 
20289
$at_failed && at_fn_log_failure  \
 
20290
"input"
 
20291
$at_traceon; }
 
20292
 
 
20293
   { set +x
 
20294
$as_echo "$at_srcdir/json.at:178: cat stdout"
 
20295
at_fn_check_prepare_trace "json.at:178"
 
20296
( $at_check_trace; cat stdout
 
20297
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20298
at_status=$? at_failed=false
 
20299
$at_check_filter
 
20300
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20301
echo >>"$at_stdout"; $as_echo "[1,2,200000,21234,2123,0,0]
 
20302
" | \
 
20303
  $at_diff - "$at_stdout" || at_failed=:
 
20304
at_fn_check_status 0 $at_status "$at_srcdir/json.at:178"
 
20305
$at_failed && at_fn_log_failure  \
 
20306
"input"
 
20307
$at_traceon; }
 
20308
 
 
20309
     set +x
 
20310
  $at_times_p && times >"$at_times_file"
 
20311
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20312
read at_status <"$at_status_file"
 
20313
#AT_STOP_272
 
20314
#AT_START_273
 
20315
at_fn_group_banner 273 'json.at:178' \
 
20316
  "integers expressed as reals - Python" "           " 24
 
20317
at_xfail=no
 
20318
(
 
20319
  $as_echo "273. $at_setup_line: testing $at_desc ..."
 
20320
  $at_traceon
 
20321
 
 
20322
 
 
20323
   $as_echo "json.at:178" >"$at_check_line_file"
 
20324
(test $HAVE_PYTHON = no) \
 
20325
  && at_fn_check_skip 77 "$at_srcdir/json.at:178"
 
20326
   { set +x
 
20327
$as_echo "$at_srcdir/json.at:178: printf %s \"[1.0000000000,
 
20328
     2.00000000000000000000000000000000000,
 
20329
     2e5,
 
20330
     2.1234e4,
 
20331
     2.1230e3,
 
20332
     0e-10000,
 
20333
     0e10000]\" > input"
 
20334
at_fn_check_prepare_notrace 'an embedded newline' "json.at:178"
 
20335
( $at_check_trace; printf %s "[1.0000000000,
 
20336
     2.00000000000000000000000000000000000,
 
20337
     2e5,
 
20338
     2.1234e4,
 
20339
     2.1230e3,
 
20340
     0e-10000,
 
20341
     0e10000]" > input
 
20342
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20343
at_status=$? at_failed=false
 
20344
$at_check_filter
 
20345
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20346
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20347
at_fn_check_status 0 $at_status "$at_srcdir/json.at:178"
 
20348
$at_failed && at_fn_log_failure
 
20349
$at_traceon; }
 
20350
 
 
20351
 
 
20352
   { set +x
 
20353
$as_echo "$at_srcdir/json.at:178: \$PYTHON \$srcdir/test-json.py  input"
 
20354
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:178"
 
20355
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
20356
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20357
at_status=$? at_failed=false
 
20358
$at_check_filter
 
20359
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20360
echo stdout:; tee stdout <"$at_stdout"
 
20361
at_fn_check_status 0 $at_status "$at_srcdir/json.at:178"
 
20362
$at_failed && at_fn_log_failure  \
 
20363
"input"
 
20364
$at_traceon; }
 
20365
 
 
20366
   { set +x
 
20367
$as_echo "$at_srcdir/json.at:178: cat stdout"
 
20368
at_fn_check_prepare_trace "json.at:178"
 
20369
( $at_check_trace; cat stdout
 
20370
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20371
at_status=$? at_failed=false
 
20372
$at_check_filter
 
20373
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20374
echo >>"$at_stdout"; $as_echo "[1,2,200000,21234,2123,0,0]
 
20375
" | \
 
20376
  $at_diff - "$at_stdout" || at_failed=:
 
20377
at_fn_check_status 0 $at_status "$at_srcdir/json.at:178"
 
20378
$at_failed && at_fn_log_failure  \
 
20379
"input"
 
20380
$at_traceon; }
 
20381
 
 
20382
     set +x
 
20383
  $at_times_p && times >"$at_times_file"
 
20384
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20385
read at_status <"$at_status_file"
 
20386
#AT_STOP_273
 
20387
#AT_START_274
 
20388
at_fn_group_banner 274 'json.at:188' \
 
20389
  "large integers - C" "                             " 24
 
20390
at_xfail=no
 
20391
(
 
20392
  $as_echo "274. $at_setup_line: testing $at_desc ..."
 
20393
  $at_traceon
 
20394
 
 
20395
 
 
20396
   { set +x
 
20397
$as_echo "$at_srcdir/json.at:188: printf %s \"[9223372036854775807, -9223372036854775808]\" > input"
 
20398
at_fn_check_prepare_trace "json.at:188"
 
20399
( $at_check_trace; printf %s "[9223372036854775807, -9223372036854775808]" > input
 
20400
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20401
at_status=$? at_failed=false
 
20402
$at_check_filter
 
20403
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20404
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20405
at_fn_check_status 0 $at_status "$at_srcdir/json.at:188"
 
20406
$at_failed && at_fn_log_failure
 
20407
$at_traceon; }
 
20408
 
 
20409
 
 
20410
   { set +x
 
20411
$as_echo "$at_srcdir/json.at:188: test-json  input"
 
20412
at_fn_check_prepare_trace "json.at:188"
 
20413
( $at_check_trace; test-json  input
 
20414
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20415
at_status=$? at_failed=false
 
20416
$at_check_filter
 
20417
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20418
echo stdout:; tee stdout <"$at_stdout"
 
20419
at_fn_check_status 0 $at_status "$at_srcdir/json.at:188"
 
20420
$at_failed && at_fn_log_failure  \
 
20421
"input"
 
20422
$at_traceon; }
 
20423
 
 
20424
   { set +x
 
20425
$as_echo "$at_srcdir/json.at:188: cat stdout"
 
20426
at_fn_check_prepare_trace "json.at:188"
 
20427
( $at_check_trace; cat stdout
 
20428
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20429
at_status=$? at_failed=false
 
20430
$at_check_filter
 
20431
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20432
echo >>"$at_stdout"; $as_echo "[9223372036854775807,-9223372036854775808]
 
20433
" | \
 
20434
  $at_diff - "$at_stdout" || at_failed=:
 
20435
at_fn_check_status 0 $at_status "$at_srcdir/json.at:188"
 
20436
$at_failed && at_fn_log_failure  \
 
20437
"input"
 
20438
$at_traceon; }
 
20439
 
 
20440
     set +x
 
20441
  $at_times_p && times >"$at_times_file"
 
20442
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20443
read at_status <"$at_status_file"
 
20444
#AT_STOP_274
 
20445
#AT_START_275
 
20446
at_fn_group_banner 275 'json.at:188' \
 
20447
  "large integers - Python" "                        " 24
 
20448
at_xfail=no
 
20449
(
 
20450
  $as_echo "275. $at_setup_line: testing $at_desc ..."
 
20451
  $at_traceon
 
20452
 
 
20453
 
 
20454
   $as_echo "json.at:188" >"$at_check_line_file"
 
20455
(test $HAVE_PYTHON = no) \
 
20456
  && at_fn_check_skip 77 "$at_srcdir/json.at:188"
 
20457
   { set +x
 
20458
$as_echo "$at_srcdir/json.at:188: printf %s \"[9223372036854775807, -9223372036854775808]\" > input"
 
20459
at_fn_check_prepare_trace "json.at:188"
 
20460
( $at_check_trace; printf %s "[9223372036854775807, -9223372036854775808]" > input
 
20461
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20462
at_status=$? at_failed=false
 
20463
$at_check_filter
 
20464
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20465
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20466
at_fn_check_status 0 $at_status "$at_srcdir/json.at:188"
 
20467
$at_failed && at_fn_log_failure
 
20468
$at_traceon; }
 
20469
 
 
20470
 
 
20471
   { set +x
 
20472
$as_echo "$at_srcdir/json.at:188: \$PYTHON \$srcdir/test-json.py  input"
 
20473
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:188"
 
20474
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
20475
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20476
at_status=$? at_failed=false
 
20477
$at_check_filter
 
20478
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20479
echo stdout:; tee stdout <"$at_stdout"
 
20480
at_fn_check_status 0 $at_status "$at_srcdir/json.at:188"
 
20481
$at_failed && at_fn_log_failure  \
 
20482
"input"
 
20483
$at_traceon; }
 
20484
 
 
20485
   { set +x
 
20486
$as_echo "$at_srcdir/json.at:188: cat stdout"
 
20487
at_fn_check_prepare_trace "json.at:188"
 
20488
( $at_check_trace; cat stdout
 
20489
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20490
at_status=$? at_failed=false
 
20491
$at_check_filter
 
20492
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20493
echo >>"$at_stdout"; $as_echo "[9223372036854775807,-9223372036854775808]
 
20494
" | \
 
20495
  $at_diff - "$at_stdout" || at_failed=:
 
20496
at_fn_check_status 0 $at_status "$at_srcdir/json.at:188"
 
20497
$at_failed && at_fn_log_failure  \
 
20498
"input"
 
20499
$at_traceon; }
 
20500
 
 
20501
     set +x
 
20502
  $at_times_p && times >"$at_times_file"
 
20503
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20504
read at_status <"$at_status_file"
 
20505
#AT_STOP_275
 
20506
#AT_START_276
 
20507
at_fn_group_banner 276 'json.at:192' \
 
20508
  "large integers expressed as reals - C" "          " 24
 
20509
at_xfail=no
 
20510
(
 
20511
  $as_echo "276. $at_setup_line: testing $at_desc ..."
 
20512
  $at_traceon
 
20513
 
 
20514
 
 
20515
   { set +x
 
20516
$as_echo "$at_srcdir/json.at:192: printf %s \"[9223372036854775807.0, -9223372036854775808.0,
 
20517
     92233720.36854775807e11, -9.223372036854775808e18]\" > input"
 
20518
at_fn_check_prepare_notrace 'an embedded newline' "json.at:192"
 
20519
( $at_check_trace; printf %s "[9223372036854775807.0, -9223372036854775808.0,
 
20520
     92233720.36854775807e11, -9.223372036854775808e18]" > input
 
20521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20522
at_status=$? at_failed=false
 
20523
$at_check_filter
 
20524
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20525
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20526
at_fn_check_status 0 $at_status "$at_srcdir/json.at:192"
 
20527
$at_failed && at_fn_log_failure
 
20528
$at_traceon; }
 
20529
 
 
20530
 
 
20531
   { set +x
 
20532
$as_echo "$at_srcdir/json.at:192: test-json  input"
 
20533
at_fn_check_prepare_trace "json.at:192"
 
20534
( $at_check_trace; test-json  input
 
20535
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20536
at_status=$? at_failed=false
 
20537
$at_check_filter
 
20538
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20539
echo stdout:; tee stdout <"$at_stdout"
 
20540
at_fn_check_status 0 $at_status "$at_srcdir/json.at:192"
 
20541
$at_failed && at_fn_log_failure  \
 
20542
"input"
 
20543
$at_traceon; }
 
20544
 
 
20545
   { set +x
 
20546
$as_echo "$at_srcdir/json.at:192: cat stdout"
 
20547
at_fn_check_prepare_trace "json.at:192"
 
20548
( $at_check_trace; cat stdout
 
20549
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20550
at_status=$? at_failed=false
 
20551
$at_check_filter
 
20552
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20553
echo >>"$at_stdout"; $as_echo "[9223372036854775807,-9223372036854775808,9223372036854775807,-9223372036854775808]
 
20554
" | \
 
20555
  $at_diff - "$at_stdout" || at_failed=:
 
20556
at_fn_check_status 0 $at_status "$at_srcdir/json.at:192"
 
20557
$at_failed && at_fn_log_failure  \
 
20558
"input"
 
20559
$at_traceon; }
 
20560
 
 
20561
     set +x
 
20562
  $at_times_p && times >"$at_times_file"
 
20563
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20564
read at_status <"$at_status_file"
 
20565
#AT_STOP_276
 
20566
#AT_START_277
 
20567
at_fn_group_banner 277 'json.at:192' \
 
20568
  "large integers expressed as reals - Python" "     " 24
 
20569
at_xfail=no
 
20570
(
 
20571
  $as_echo "277. $at_setup_line: testing $at_desc ..."
 
20572
  $at_traceon
 
20573
 
 
20574
 
 
20575
   $as_echo "json.at:192" >"$at_check_line_file"
 
20576
(test $HAVE_PYTHON = no) \
 
20577
  && at_fn_check_skip 77 "$at_srcdir/json.at:192"
 
20578
   { set +x
 
20579
$as_echo "$at_srcdir/json.at:192: printf %s \"[9223372036854775807.0, -9223372036854775808.0,
 
20580
     92233720.36854775807e11, -9.223372036854775808e18]\" > input"
 
20581
at_fn_check_prepare_notrace 'an embedded newline' "json.at:192"
 
20582
( $at_check_trace; printf %s "[9223372036854775807.0, -9223372036854775808.0,
 
20583
     92233720.36854775807e11, -9.223372036854775808e18]" > input
 
20584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20585
at_status=$? at_failed=false
 
20586
$at_check_filter
 
20587
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20588
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20589
at_fn_check_status 0 $at_status "$at_srcdir/json.at:192"
 
20590
$at_failed && at_fn_log_failure
 
20591
$at_traceon; }
 
20592
 
 
20593
 
 
20594
   { set +x
 
20595
$as_echo "$at_srcdir/json.at:192: \$PYTHON \$srcdir/test-json.py  input"
 
20596
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:192"
 
20597
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
20598
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20599
at_status=$? at_failed=false
 
20600
$at_check_filter
 
20601
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20602
echo stdout:; tee stdout <"$at_stdout"
 
20603
at_fn_check_status 0 $at_status "$at_srcdir/json.at:192"
 
20604
$at_failed && at_fn_log_failure  \
 
20605
"input"
 
20606
$at_traceon; }
 
20607
 
 
20608
   { set +x
 
20609
$as_echo "$at_srcdir/json.at:192: cat stdout"
 
20610
at_fn_check_prepare_trace "json.at:192"
 
20611
( $at_check_trace; cat stdout
 
20612
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20613
at_status=$? at_failed=false
 
20614
$at_check_filter
 
20615
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20616
echo >>"$at_stdout"; $as_echo "[9223372036854775807,-9223372036854775808,9223372036854775807,-9223372036854775808]
 
20617
" | \
 
20618
  $at_diff - "$at_stdout" || at_failed=:
 
20619
at_fn_check_status 0 $at_status "$at_srcdir/json.at:192"
 
20620
$at_failed && at_fn_log_failure  \
 
20621
"input"
 
20622
$at_traceon; }
 
20623
 
 
20624
     set +x
 
20625
  $at_times_p && times >"$at_times_file"
 
20626
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20627
read at_status <"$at_status_file"
 
20628
#AT_STOP_277
 
20629
#AT_START_278
 
20630
at_fn_group_banner 278 'json.at:200' \
 
20631
  "large integers that overflow to reals - C" "      " 24
 
20632
at_xfail=no
 
20633
(
 
20634
  $as_echo "278. $at_setup_line: testing $at_desc ..."
 
20635
  $at_traceon
 
20636
 
 
20637
 
 
20638
   { set +x
 
20639
$as_echo "$at_srcdir/json.at:200: printf %s \"[9223372036854775807000, -92233720368547758080000]\" > input"
 
20640
at_fn_check_prepare_trace "json.at:200"
 
20641
( $at_check_trace; printf %s "[9223372036854775807000, -92233720368547758080000]" > input
 
20642
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20643
at_status=$? at_failed=false
 
20644
$at_check_filter
 
20645
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20646
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20647
at_fn_check_status 0 $at_status "$at_srcdir/json.at:200"
 
20648
$at_failed && at_fn_log_failure
 
20649
$at_traceon; }
 
20650
 
 
20651
 
 
20652
   { set +x
 
20653
$as_echo "$at_srcdir/json.at:200: test-json  input"
 
20654
at_fn_check_prepare_trace "json.at:200"
 
20655
( $at_check_trace; test-json  input
 
20656
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20657
at_status=$? at_failed=false
 
20658
$at_check_filter
 
20659
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20660
echo stdout:; tee stdout <"$at_stdout"
 
20661
at_fn_check_status 0 $at_status "$at_srcdir/json.at:200"
 
20662
$at_failed && at_fn_log_failure  \
 
20663
"input"
 
20664
$at_traceon; }
 
20665
 
 
20666
   { set +x
 
20667
$as_echo "$at_srcdir/json.at:200: cat stdout"
 
20668
at_fn_check_prepare_trace "json.at:200"
 
20669
( $at_check_trace; cat stdout
 
20670
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20671
at_status=$? at_failed=false
 
20672
$at_check_filter
 
20673
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20674
echo >>"$at_stdout"; $as_echo "[9.22337203685478e+21,-9.22337203685478e+22]
 
20675
" | \
 
20676
  $at_diff - "$at_stdout" || at_failed=:
 
20677
at_fn_check_status 0 $at_status "$at_srcdir/json.at:200"
 
20678
$at_failed && at_fn_log_failure  \
 
20679
"input"
 
20680
$at_traceon; }
 
20681
 
 
20682
     set +x
 
20683
  $at_times_p && times >"$at_times_file"
 
20684
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20685
read at_status <"$at_status_file"
 
20686
#AT_STOP_278
 
20687
#AT_START_279
 
20688
at_fn_group_banner 279 'json.at:200' \
 
20689
  "large integers that overflow to reals - Python" " " 24
 
20690
at_xfail=no
 
20691
(
 
20692
  $as_echo "279. $at_setup_line: testing $at_desc ..."
 
20693
  $at_traceon
 
20694
 
 
20695
 
 
20696
   $as_echo "json.at:200" >"$at_check_line_file"
 
20697
(test $HAVE_PYTHON = no) \
 
20698
  && at_fn_check_skip 77 "$at_srcdir/json.at:200"
 
20699
   { set +x
 
20700
$as_echo "$at_srcdir/json.at:200: printf %s \"[9223372036854775807000, -92233720368547758080000]\" > input"
 
20701
at_fn_check_prepare_trace "json.at:200"
 
20702
( $at_check_trace; printf %s "[9223372036854775807000, -92233720368547758080000]" > input
 
20703
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20704
at_status=$? at_failed=false
 
20705
$at_check_filter
 
20706
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20707
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20708
at_fn_check_status 0 $at_status "$at_srcdir/json.at:200"
 
20709
$at_failed && at_fn_log_failure
 
20710
$at_traceon; }
 
20711
 
 
20712
 
 
20713
   { set +x
 
20714
$as_echo "$at_srcdir/json.at:200: \$PYTHON \$srcdir/test-json.py  input"
 
20715
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:200"
 
20716
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
20717
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20718
at_status=$? at_failed=false
 
20719
$at_check_filter
 
20720
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20721
echo stdout:; tee stdout <"$at_stdout"
 
20722
at_fn_check_status 0 $at_status "$at_srcdir/json.at:200"
 
20723
$at_failed && at_fn_log_failure  \
 
20724
"input"
 
20725
$at_traceon; }
 
20726
 
 
20727
   { set +x
 
20728
$as_echo "$at_srcdir/json.at:200: cat stdout"
 
20729
at_fn_check_prepare_trace "json.at:200"
 
20730
( $at_check_trace; cat stdout
 
20731
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20732
at_status=$? at_failed=false
 
20733
$at_check_filter
 
20734
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20735
echo >>"$at_stdout"; $as_echo "[9.22337203685478e+21,-9.22337203685478e+22]
 
20736
" | \
 
20737
  $at_diff - "$at_stdout" || at_failed=:
 
20738
at_fn_check_status 0 $at_status "$at_srcdir/json.at:200"
 
20739
$at_failed && at_fn_log_failure  \
 
20740
"input"
 
20741
$at_traceon; }
 
20742
 
 
20743
     set +x
 
20744
  $at_times_p && times >"$at_times_file"
 
20745
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20746
read at_status <"$at_status_file"
 
20747
#AT_STOP_279
 
20748
#AT_START_280
 
20749
at_fn_group_banner 280 'json.at:205' \
 
20750
  "negative zero - C" "                              " 24
 
20751
at_xfail=no
 
20752
(
 
20753
  $as_echo "280. $at_setup_line: testing $at_desc ..."
 
20754
  $at_traceon
 
20755
 
 
20756
 
 
20757
   { set +x
 
20758
$as_echo "$at_srcdir/json.at:205: printf %s \"[-0, -0.0, 1e-9999, -1e-9999]\" > input"
 
20759
at_fn_check_prepare_trace "json.at:205"
 
20760
( $at_check_trace; printf %s "[-0, -0.0, 1e-9999, -1e-9999]" > input
 
20761
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20762
at_status=$? at_failed=false
 
20763
$at_check_filter
 
20764
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20765
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20766
at_fn_check_status 0 $at_status "$at_srcdir/json.at:205"
 
20767
$at_failed && at_fn_log_failure
 
20768
$at_traceon; }
 
20769
 
 
20770
 
 
20771
   { set +x
 
20772
$as_echo "$at_srcdir/json.at:205: test-json  input"
 
20773
at_fn_check_prepare_trace "json.at:205"
 
20774
( $at_check_trace; test-json  input
 
20775
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20776
at_status=$? at_failed=false
 
20777
$at_check_filter
 
20778
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20779
echo stdout:; tee stdout <"$at_stdout"
 
20780
at_fn_check_status 0 $at_status "$at_srcdir/json.at:205"
 
20781
$at_failed && at_fn_log_failure  \
 
20782
"input"
 
20783
$at_traceon; }
 
20784
 
 
20785
   { set +x
 
20786
$as_echo "$at_srcdir/json.at:205: cat stdout"
 
20787
at_fn_check_prepare_trace "json.at:205"
 
20788
( $at_check_trace; cat stdout
 
20789
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20790
at_status=$? at_failed=false
 
20791
$at_check_filter
 
20792
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20793
echo >>"$at_stdout"; $as_echo "[0,0,0,0]
 
20794
" | \
 
20795
  $at_diff - "$at_stdout" || at_failed=:
 
20796
at_fn_check_status 0 $at_status "$at_srcdir/json.at:205"
 
20797
$at_failed && at_fn_log_failure  \
 
20798
"input"
 
20799
$at_traceon; }
 
20800
 
 
20801
     set +x
 
20802
  $at_times_p && times >"$at_times_file"
 
20803
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20804
read at_status <"$at_status_file"
 
20805
#AT_STOP_280
 
20806
#AT_START_281
 
20807
at_fn_group_banner 281 'json.at:205' \
 
20808
  "negative zero - Python" "                         " 24
 
20809
at_xfail=no
 
20810
(
 
20811
  $as_echo "281. $at_setup_line: testing $at_desc ..."
 
20812
  $at_traceon
 
20813
 
 
20814
 
 
20815
   $as_echo "json.at:205" >"$at_check_line_file"
 
20816
(test $HAVE_PYTHON = no) \
 
20817
  && at_fn_check_skip 77 "$at_srcdir/json.at:205"
 
20818
   { set +x
 
20819
$as_echo "$at_srcdir/json.at:205: printf %s \"[-0, -0.0, 1e-9999, -1e-9999]\" > input"
 
20820
at_fn_check_prepare_trace "json.at:205"
 
20821
( $at_check_trace; printf %s "[-0, -0.0, 1e-9999, -1e-9999]" > input
 
20822
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20823
at_status=$? at_failed=false
 
20824
$at_check_filter
 
20825
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20826
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20827
at_fn_check_status 0 $at_status "$at_srcdir/json.at:205"
 
20828
$at_failed && at_fn_log_failure
 
20829
$at_traceon; }
 
20830
 
 
20831
 
 
20832
   { set +x
 
20833
$as_echo "$at_srcdir/json.at:205: \$PYTHON \$srcdir/test-json.py  input"
 
20834
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:205"
 
20835
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
20836
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20837
at_status=$? at_failed=false
 
20838
$at_check_filter
 
20839
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20840
echo stdout:; tee stdout <"$at_stdout"
 
20841
at_fn_check_status 0 $at_status "$at_srcdir/json.at:205"
 
20842
$at_failed && at_fn_log_failure  \
 
20843
"input"
 
20844
$at_traceon; }
 
20845
 
 
20846
   { set +x
 
20847
$as_echo "$at_srcdir/json.at:205: cat stdout"
 
20848
at_fn_check_prepare_trace "json.at:205"
 
20849
( $at_check_trace; cat stdout
 
20850
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20851
at_status=$? at_failed=false
 
20852
$at_check_filter
 
20853
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20854
echo >>"$at_stdout"; $as_echo "[0,0,0,0]
 
20855
" | \
 
20856
  $at_diff - "$at_stdout" || at_failed=:
 
20857
at_fn_check_status 0 $at_status "$at_srcdir/json.at:205"
 
20858
$at_failed && at_fn_log_failure  \
 
20859
"input"
 
20860
$at_traceon; }
 
20861
 
 
20862
     set +x
 
20863
  $at_times_p && times >"$at_times_file"
 
20864
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20865
read at_status <"$at_status_file"
 
20866
#AT_STOP_281
 
20867
#AT_START_282
 
20868
at_fn_group_banner 282 'json.at:210' \
 
20869
  "reals - C" "                                      " 24
 
20870
at_xfail=no
 
20871
(
 
20872
  $as_echo "282. $at_setup_line: testing $at_desc ..."
 
20873
  $at_traceon
 
20874
 
 
20875
 
 
20876
   { set +x
 
20877
$as_echo "$at_srcdir/json.at:210: printf %s \"[0.0, 1.0, 2.0, 3.0, 3.5, 81.250]\" > input"
 
20878
at_fn_check_prepare_trace "json.at:210"
 
20879
( $at_check_trace; printf %s "[0.0, 1.0, 2.0, 3.0, 3.5, 81.250]" > input
 
20880
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20881
at_status=$? at_failed=false
 
20882
$at_check_filter
 
20883
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20884
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20885
at_fn_check_status 0 $at_status "$at_srcdir/json.at:210"
 
20886
$at_failed && at_fn_log_failure
 
20887
$at_traceon; }
 
20888
 
 
20889
 
 
20890
   { set +x
 
20891
$as_echo "$at_srcdir/json.at:210: test-json  input"
 
20892
at_fn_check_prepare_trace "json.at:210"
 
20893
( $at_check_trace; test-json  input
 
20894
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20895
at_status=$? at_failed=false
 
20896
$at_check_filter
 
20897
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20898
echo stdout:; tee stdout <"$at_stdout"
 
20899
at_fn_check_status 0 $at_status "$at_srcdir/json.at:210"
 
20900
$at_failed && at_fn_log_failure  \
 
20901
"input"
 
20902
$at_traceon; }
 
20903
 
 
20904
   { set +x
 
20905
$as_echo "$at_srcdir/json.at:210: cat stdout"
 
20906
at_fn_check_prepare_trace "json.at:210"
 
20907
( $at_check_trace; cat stdout
 
20908
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20909
at_status=$? at_failed=false
 
20910
$at_check_filter
 
20911
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20912
echo >>"$at_stdout"; $as_echo "[0,1,2,3,3.5,81.25]
 
20913
" | \
 
20914
  $at_diff - "$at_stdout" || at_failed=:
 
20915
at_fn_check_status 0 $at_status "$at_srcdir/json.at:210"
 
20916
$at_failed && at_fn_log_failure  \
 
20917
"input"
 
20918
$at_traceon; }
 
20919
 
 
20920
     set +x
 
20921
  $at_times_p && times >"$at_times_file"
 
20922
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20923
read at_status <"$at_status_file"
 
20924
#AT_STOP_282
 
20925
#AT_START_283
 
20926
at_fn_group_banner 283 'json.at:210' \
 
20927
  "reals - Python" "                                 " 24
 
20928
at_xfail=no
 
20929
(
 
20930
  $as_echo "283. $at_setup_line: testing $at_desc ..."
 
20931
  $at_traceon
 
20932
 
 
20933
 
 
20934
   $as_echo "json.at:210" >"$at_check_line_file"
 
20935
(test $HAVE_PYTHON = no) \
 
20936
  && at_fn_check_skip 77 "$at_srcdir/json.at:210"
 
20937
   { set +x
 
20938
$as_echo "$at_srcdir/json.at:210: printf %s \"[0.0, 1.0, 2.0, 3.0, 3.5, 81.250]\" > input"
 
20939
at_fn_check_prepare_trace "json.at:210"
 
20940
( $at_check_trace; printf %s "[0.0, 1.0, 2.0, 3.0, 3.5, 81.250]" > input
 
20941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20942
at_status=$? at_failed=false
 
20943
$at_check_filter
 
20944
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20945
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
20946
at_fn_check_status 0 $at_status "$at_srcdir/json.at:210"
 
20947
$at_failed && at_fn_log_failure
 
20948
$at_traceon; }
 
20949
 
 
20950
 
 
20951
   { set +x
 
20952
$as_echo "$at_srcdir/json.at:210: \$PYTHON \$srcdir/test-json.py  input"
 
20953
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:210"
 
20954
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
20955
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20956
at_status=$? at_failed=false
 
20957
$at_check_filter
 
20958
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20959
echo stdout:; tee stdout <"$at_stdout"
 
20960
at_fn_check_status 0 $at_status "$at_srcdir/json.at:210"
 
20961
$at_failed && at_fn_log_failure  \
 
20962
"input"
 
20963
$at_traceon; }
 
20964
 
 
20965
   { set +x
 
20966
$as_echo "$at_srcdir/json.at:210: cat stdout"
 
20967
at_fn_check_prepare_trace "json.at:210"
 
20968
( $at_check_trace; cat stdout
 
20969
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
20970
at_status=$? at_failed=false
 
20971
$at_check_filter
 
20972
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
20973
echo >>"$at_stdout"; $as_echo "[0,1,2,3,3.5,81.25]
 
20974
" | \
 
20975
  $at_diff - "$at_stdout" || at_failed=:
 
20976
at_fn_check_status 0 $at_status "$at_srcdir/json.at:210"
 
20977
$at_failed && at_fn_log_failure  \
 
20978
"input"
 
20979
$at_traceon; }
 
20980
 
 
20981
     set +x
 
20982
  $at_times_p && times >"$at_times_file"
 
20983
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
20984
read at_status <"$at_status_file"
 
20985
#AT_STOP_283
 
20986
#AT_START_284
 
20987
at_fn_group_banner 284 'json.at:214' \
 
20988
  "scientific notation - C" "                        " 24
 
20989
at_xfail=no
 
20990
(
 
20991
  $as_echo "284. $at_setup_line: testing $at_desc ..."
 
20992
  $at_traceon
 
20993
 
 
20994
 
 
20995
   { set +x
 
20996
$as_echo "$at_srcdir/json.at:214: printf %s \"[1e3, 1E3, 2.5E2, 1e+3, 125e-3, 3.125e-2, 3125e-05, 1.525878906e-5]\" > input"
 
20997
at_fn_check_prepare_trace "json.at:214"
 
20998
( $at_check_trace; printf %s "[1e3, 1E3, 2.5E2, 1e+3, 125e-3, 3.125e-2, 3125e-05, 1.525878906e-5]" > input
 
20999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21000
at_status=$? at_failed=false
 
21001
$at_check_filter
 
21002
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21003
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21004
at_fn_check_status 0 $at_status "$at_srcdir/json.at:214"
 
21005
$at_failed && at_fn_log_failure
 
21006
$at_traceon; }
 
21007
 
 
21008
 
 
21009
   { set +x
 
21010
$as_echo "$at_srcdir/json.at:214: test-json  input"
 
21011
at_fn_check_prepare_trace "json.at:214"
 
21012
( $at_check_trace; test-json  input
 
21013
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21014
at_status=$? at_failed=false
 
21015
$at_check_filter
 
21016
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21017
echo stdout:; tee stdout <"$at_stdout"
 
21018
at_fn_check_status 0 $at_status "$at_srcdir/json.at:214"
 
21019
$at_failed && at_fn_log_failure  \
 
21020
"input"
 
21021
$at_traceon; }
 
21022
 
 
21023
   { set +x
 
21024
$as_echo "$at_srcdir/json.at:214: cat stdout"
 
21025
at_fn_check_prepare_trace "json.at:214"
 
21026
( $at_check_trace; cat stdout
 
21027
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21028
at_status=$? at_failed=false
 
21029
$at_check_filter
 
21030
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21031
echo >>"$at_stdout"; $as_echo "[1000,1000,250,1000,0.125,0.03125,0.03125,1.525878906e-05]
 
21032
" | \
 
21033
  $at_diff - "$at_stdout" || at_failed=:
 
21034
at_fn_check_status 0 $at_status "$at_srcdir/json.at:214"
 
21035
$at_failed && at_fn_log_failure  \
 
21036
"input"
 
21037
$at_traceon; }
 
21038
 
 
21039
     set +x
 
21040
  $at_times_p && times >"$at_times_file"
 
21041
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21042
read at_status <"$at_status_file"
 
21043
#AT_STOP_284
 
21044
#AT_START_285
 
21045
at_fn_group_banner 285 'json.at:214' \
 
21046
  "scientific notation - Python" "                   " 24
 
21047
at_xfail=no
 
21048
(
 
21049
  $as_echo "285. $at_setup_line: testing $at_desc ..."
 
21050
  $at_traceon
 
21051
 
 
21052
 
 
21053
   $as_echo "json.at:214" >"$at_check_line_file"
 
21054
(test $HAVE_PYTHON = no) \
 
21055
  && at_fn_check_skip 77 "$at_srcdir/json.at:214"
 
21056
   { set +x
 
21057
$as_echo "$at_srcdir/json.at:214: printf %s \"[1e3, 1E3, 2.5E2, 1e+3, 125e-3, 3.125e-2, 3125e-05, 1.525878906e-5]\" > input"
 
21058
at_fn_check_prepare_trace "json.at:214"
 
21059
( $at_check_trace; printf %s "[1e3, 1E3, 2.5E2, 1e+3, 125e-3, 3.125e-2, 3125e-05, 1.525878906e-5]" > input
 
21060
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21061
at_status=$? at_failed=false
 
21062
$at_check_filter
 
21063
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21064
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21065
at_fn_check_status 0 $at_status "$at_srcdir/json.at:214"
 
21066
$at_failed && at_fn_log_failure
 
21067
$at_traceon; }
 
21068
 
 
21069
 
 
21070
   { set +x
 
21071
$as_echo "$at_srcdir/json.at:214: \$PYTHON \$srcdir/test-json.py  input"
 
21072
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:214"
 
21073
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
21074
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21075
at_status=$? at_failed=false
 
21076
$at_check_filter
 
21077
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21078
echo stdout:; tee stdout <"$at_stdout"
 
21079
at_fn_check_status 0 $at_status "$at_srcdir/json.at:214"
 
21080
$at_failed && at_fn_log_failure  \
 
21081
"input"
 
21082
$at_traceon; }
 
21083
 
 
21084
   { set +x
 
21085
$as_echo "$at_srcdir/json.at:214: cat stdout"
 
21086
at_fn_check_prepare_trace "json.at:214"
 
21087
( $at_check_trace; cat stdout
 
21088
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21089
at_status=$? at_failed=false
 
21090
$at_check_filter
 
21091
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21092
echo >>"$at_stdout"; $as_echo "[1000,1000,250,1000,0.125,0.03125,0.03125,1.525878906e-05]
 
21093
" | \
 
21094
  $at_diff - "$at_stdout" || at_failed=:
 
21095
at_fn_check_status 0 $at_status "$at_srcdir/json.at:214"
 
21096
$at_failed && at_fn_log_failure  \
 
21097
"input"
 
21098
$at_traceon; }
 
21099
 
 
21100
     set +x
 
21101
  $at_times_p && times >"$at_times_file"
 
21102
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21103
read at_status <"$at_status_file"
 
21104
#AT_STOP_285
 
21105
#AT_START_286
 
21106
at_fn_group_banner 286 'json.at:221' \
 
21107
  "+/- DBL_MAX - C" "                                " 24
 
21108
at_xfail=no
 
21109
(
 
21110
  $as_echo "286. $at_setup_line: testing $at_desc ..."
 
21111
  $at_traceon
 
21112
 
 
21113
 
 
21114
   { set +x
 
21115
$as_echo "$at_srcdir/json.at:221: printf %s \"[1.7976931348623157e+308, -1.7976931348623157e+308]\" > input"
 
21116
at_fn_check_prepare_trace "json.at:221"
 
21117
( $at_check_trace; printf %s "[1.7976931348623157e+308, -1.7976931348623157e+308]" > input
 
21118
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21119
at_status=$? at_failed=false
 
21120
$at_check_filter
 
21121
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21122
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21123
at_fn_check_status 0 $at_status "$at_srcdir/json.at:221"
 
21124
$at_failed && at_fn_log_failure
 
21125
$at_traceon; }
 
21126
 
 
21127
 
 
21128
   { set +x
 
21129
$as_echo "$at_srcdir/json.at:221: test-json  input"
 
21130
at_fn_check_prepare_trace "json.at:221"
 
21131
( $at_check_trace; test-json  input
 
21132
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21133
at_status=$? at_failed=false
 
21134
$at_check_filter
 
21135
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21136
echo stdout:; tee stdout <"$at_stdout"
 
21137
at_fn_check_status 0 $at_status "$at_srcdir/json.at:221"
 
21138
$at_failed && at_fn_log_failure  \
 
21139
"input"
 
21140
$at_traceon; }
 
21141
 
 
21142
   { set +x
 
21143
$as_echo "$at_srcdir/json.at:221: cat stdout"
 
21144
at_fn_check_prepare_trace "json.at:221"
 
21145
( $at_check_trace; cat stdout
 
21146
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21147
at_status=$? at_failed=false
 
21148
$at_check_filter
 
21149
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21150
echo >>"$at_stdout"; $as_echo "[1.79769313486232e+308,-1.79769313486232e+308]
 
21151
" | \
 
21152
  $at_diff - "$at_stdout" || at_failed=:
 
21153
at_fn_check_status 0 $at_status "$at_srcdir/json.at:221"
 
21154
$at_failed && at_fn_log_failure  \
 
21155
"input"
 
21156
$at_traceon; }
 
21157
 
 
21158
     set +x
 
21159
  $at_times_p && times >"$at_times_file"
 
21160
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21161
read at_status <"$at_status_file"
 
21162
#AT_STOP_286
 
21163
#AT_START_287
 
21164
at_fn_group_banner 287 'json.at:221' \
 
21165
  "+/- DBL_MAX - Python" "                           " 24
 
21166
at_xfail=no
 
21167
(
 
21168
  $as_echo "287. $at_setup_line: testing $at_desc ..."
 
21169
  $at_traceon
 
21170
 
 
21171
 
 
21172
   $as_echo "json.at:221" >"$at_check_line_file"
 
21173
(test $HAVE_PYTHON = no) \
 
21174
  && at_fn_check_skip 77 "$at_srcdir/json.at:221"
 
21175
   { set +x
 
21176
$as_echo "$at_srcdir/json.at:221: printf %s \"[1.7976931348623157e+308, -1.7976931348623157e+308]\" > input"
 
21177
at_fn_check_prepare_trace "json.at:221"
 
21178
( $at_check_trace; printf %s "[1.7976931348623157e+308, -1.7976931348623157e+308]" > input
 
21179
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21180
at_status=$? at_failed=false
 
21181
$at_check_filter
 
21182
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21183
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21184
at_fn_check_status 0 $at_status "$at_srcdir/json.at:221"
 
21185
$at_failed && at_fn_log_failure
 
21186
$at_traceon; }
 
21187
 
 
21188
 
 
21189
   { set +x
 
21190
$as_echo "$at_srcdir/json.at:221: \$PYTHON \$srcdir/test-json.py  input"
 
21191
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:221"
 
21192
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
21193
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21194
at_status=$? at_failed=false
 
21195
$at_check_filter
 
21196
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21197
echo stdout:; tee stdout <"$at_stdout"
 
21198
at_fn_check_status 0 $at_status "$at_srcdir/json.at:221"
 
21199
$at_failed && at_fn_log_failure  \
 
21200
"input"
 
21201
$at_traceon; }
 
21202
 
 
21203
   { set +x
 
21204
$as_echo "$at_srcdir/json.at:221: cat stdout"
 
21205
at_fn_check_prepare_trace "json.at:221"
 
21206
( $at_check_trace; cat stdout
 
21207
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21208
at_status=$? at_failed=false
 
21209
$at_check_filter
 
21210
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21211
echo >>"$at_stdout"; $as_echo "[1.79769313486232e+308,-1.79769313486232e+308]
 
21212
" | \
 
21213
  $at_diff - "$at_stdout" || at_failed=:
 
21214
at_fn_check_status 0 $at_status "$at_srcdir/json.at:221"
 
21215
$at_failed && at_fn_log_failure  \
 
21216
"input"
 
21217
$at_traceon; }
 
21218
 
 
21219
     set +x
 
21220
  $at_times_p && times >"$at_times_file"
 
21221
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21222
read at_status <"$at_status_file"
 
21223
#AT_STOP_287
 
21224
#AT_START_288
 
21225
at_fn_group_banner 288 'json.at:226' \
 
21226
  "negative reals - C" "                             " 24
 
21227
at_xfail=no
 
21228
(
 
21229
  $as_echo "288. $at_setup_line: testing $at_desc ..."
 
21230
  $at_traceon
 
21231
 
 
21232
 
 
21233
   { set +x
 
21234
$as_echo "$at_srcdir/json.at:226: printf %s \"[-0, -1.0, -2.0, -3.0, -3.5, -8.1250]\" > input"
 
21235
at_fn_check_prepare_trace "json.at:226"
 
21236
( $at_check_trace; printf %s "[-0, -1.0, -2.0, -3.0, -3.5, -8.1250]" > input
 
21237
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21238
at_status=$? at_failed=false
 
21239
$at_check_filter
 
21240
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21241
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21242
at_fn_check_status 0 $at_status "$at_srcdir/json.at:226"
 
21243
$at_failed && at_fn_log_failure
 
21244
$at_traceon; }
 
21245
 
 
21246
 
 
21247
   { set +x
 
21248
$as_echo "$at_srcdir/json.at:226: test-json  input"
 
21249
at_fn_check_prepare_trace "json.at:226"
 
21250
( $at_check_trace; test-json  input
 
21251
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21252
at_status=$? at_failed=false
 
21253
$at_check_filter
 
21254
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21255
echo stdout:; tee stdout <"$at_stdout"
 
21256
at_fn_check_status 0 $at_status "$at_srcdir/json.at:226"
 
21257
$at_failed && at_fn_log_failure  \
 
21258
"input"
 
21259
$at_traceon; }
 
21260
 
 
21261
   { set +x
 
21262
$as_echo "$at_srcdir/json.at:226: cat stdout"
 
21263
at_fn_check_prepare_trace "json.at:226"
 
21264
( $at_check_trace; cat stdout
 
21265
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21266
at_status=$? at_failed=false
 
21267
$at_check_filter
 
21268
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21269
echo >>"$at_stdout"; $as_echo "[0,-1,-2,-3,-3.5,-8.125]
 
21270
" | \
 
21271
  $at_diff - "$at_stdout" || at_failed=:
 
21272
at_fn_check_status 0 $at_status "$at_srcdir/json.at:226"
 
21273
$at_failed && at_fn_log_failure  \
 
21274
"input"
 
21275
$at_traceon; }
 
21276
 
 
21277
     set +x
 
21278
  $at_times_p && times >"$at_times_file"
 
21279
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21280
read at_status <"$at_status_file"
 
21281
#AT_STOP_288
 
21282
#AT_START_289
 
21283
at_fn_group_banner 289 'json.at:226' \
 
21284
  "negative reals - Python" "                        " 24
 
21285
at_xfail=no
 
21286
(
 
21287
  $as_echo "289. $at_setup_line: testing $at_desc ..."
 
21288
  $at_traceon
 
21289
 
 
21290
 
 
21291
   $as_echo "json.at:226" >"$at_check_line_file"
 
21292
(test $HAVE_PYTHON = no) \
 
21293
  && at_fn_check_skip 77 "$at_srcdir/json.at:226"
 
21294
   { set +x
 
21295
$as_echo "$at_srcdir/json.at:226: printf %s \"[-0, -1.0, -2.0, -3.0, -3.5, -8.1250]\" > input"
 
21296
at_fn_check_prepare_trace "json.at:226"
 
21297
( $at_check_trace; printf %s "[-0, -1.0, -2.0, -3.0, -3.5, -8.1250]" > input
 
21298
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21299
at_status=$? at_failed=false
 
21300
$at_check_filter
 
21301
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21302
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21303
at_fn_check_status 0 $at_status "$at_srcdir/json.at:226"
 
21304
$at_failed && at_fn_log_failure
 
21305
$at_traceon; }
 
21306
 
 
21307
 
 
21308
   { set +x
 
21309
$as_echo "$at_srcdir/json.at:226: \$PYTHON \$srcdir/test-json.py  input"
 
21310
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:226"
 
21311
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
21312
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21313
at_status=$? at_failed=false
 
21314
$at_check_filter
 
21315
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21316
echo stdout:; tee stdout <"$at_stdout"
 
21317
at_fn_check_status 0 $at_status "$at_srcdir/json.at:226"
 
21318
$at_failed && at_fn_log_failure  \
 
21319
"input"
 
21320
$at_traceon; }
 
21321
 
 
21322
   { set +x
 
21323
$as_echo "$at_srcdir/json.at:226: cat stdout"
 
21324
at_fn_check_prepare_trace "json.at:226"
 
21325
( $at_check_trace; cat stdout
 
21326
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21327
at_status=$? at_failed=false
 
21328
$at_check_filter
 
21329
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21330
echo >>"$at_stdout"; $as_echo "[0,-1,-2,-3,-3.5,-8.125]
 
21331
" | \
 
21332
  $at_diff - "$at_stdout" || at_failed=:
 
21333
at_fn_check_status 0 $at_status "$at_srcdir/json.at:226"
 
21334
$at_failed && at_fn_log_failure  \
 
21335
"input"
 
21336
$at_traceon; }
 
21337
 
 
21338
     set +x
 
21339
  $at_times_p && times >"$at_times_file"
 
21340
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21341
read at_status <"$at_status_file"
 
21342
#AT_STOP_289
 
21343
#AT_START_290
 
21344
at_fn_group_banner 290 'json.at:230' \
 
21345
  "negative scientific notation - C" "               " 24
 
21346
at_xfail=no
 
21347
(
 
21348
  $as_echo "290. $at_setup_line: testing $at_desc ..."
 
21349
  $at_traceon
 
21350
 
 
21351
 
 
21352
   { set +x
 
21353
$as_echo "$at_srcdir/json.at:230: printf %s \"[-1e3, -1E3, -2.5E2, -1e+3, -125e-3, -3.125e-2, -3125e-05, -1.525878906e-5]\" > input"
 
21354
at_fn_check_prepare_trace "json.at:230"
 
21355
( $at_check_trace; printf %s "[-1e3, -1E3, -2.5E2, -1e+3, -125e-3, -3.125e-2, -3125e-05, -1.525878906e-5]" > input
 
21356
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21357
at_status=$? at_failed=false
 
21358
$at_check_filter
 
21359
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21360
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21361
at_fn_check_status 0 $at_status "$at_srcdir/json.at:230"
 
21362
$at_failed && at_fn_log_failure
 
21363
$at_traceon; }
 
21364
 
 
21365
 
 
21366
   { set +x
 
21367
$as_echo "$at_srcdir/json.at:230: test-json  input"
 
21368
at_fn_check_prepare_trace "json.at:230"
 
21369
( $at_check_trace; test-json  input
 
21370
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21371
at_status=$? at_failed=false
 
21372
$at_check_filter
 
21373
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21374
echo stdout:; tee stdout <"$at_stdout"
 
21375
at_fn_check_status 0 $at_status "$at_srcdir/json.at:230"
 
21376
$at_failed && at_fn_log_failure  \
 
21377
"input"
 
21378
$at_traceon; }
 
21379
 
 
21380
   { set +x
 
21381
$as_echo "$at_srcdir/json.at:230: cat stdout"
 
21382
at_fn_check_prepare_trace "json.at:230"
 
21383
( $at_check_trace; cat stdout
 
21384
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21385
at_status=$? at_failed=false
 
21386
$at_check_filter
 
21387
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21388
echo >>"$at_stdout"; $as_echo "[-1000,-1000,-250,-1000,-0.125,-0.03125,-0.03125,-1.525878906e-05]
 
21389
" | \
 
21390
  $at_diff - "$at_stdout" || at_failed=:
 
21391
at_fn_check_status 0 $at_status "$at_srcdir/json.at:230"
 
21392
$at_failed && at_fn_log_failure  \
 
21393
"input"
 
21394
$at_traceon; }
 
21395
 
 
21396
     set +x
 
21397
  $at_times_p && times >"$at_times_file"
 
21398
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21399
read at_status <"$at_status_file"
 
21400
#AT_STOP_290
 
21401
#AT_START_291
 
21402
at_fn_group_banner 291 'json.at:230' \
 
21403
  "negative scientific notation - Python" "          " 24
 
21404
at_xfail=no
 
21405
(
 
21406
  $as_echo "291. $at_setup_line: testing $at_desc ..."
 
21407
  $at_traceon
 
21408
 
 
21409
 
 
21410
   $as_echo "json.at:230" >"$at_check_line_file"
 
21411
(test $HAVE_PYTHON = no) \
 
21412
  && at_fn_check_skip 77 "$at_srcdir/json.at:230"
 
21413
   { set +x
 
21414
$as_echo "$at_srcdir/json.at:230: printf %s \"[-1e3, -1E3, -2.5E2, -1e+3, -125e-3, -3.125e-2, -3125e-05, -1.525878906e-5]\" > input"
 
21415
at_fn_check_prepare_trace "json.at:230"
 
21416
( $at_check_trace; printf %s "[-1e3, -1E3, -2.5E2, -1e+3, -125e-3, -3.125e-2, -3125e-05, -1.525878906e-5]" > input
 
21417
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21418
at_status=$? at_failed=false
 
21419
$at_check_filter
 
21420
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21421
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21422
at_fn_check_status 0 $at_status "$at_srcdir/json.at:230"
 
21423
$at_failed && at_fn_log_failure
 
21424
$at_traceon; }
 
21425
 
 
21426
 
 
21427
   { set +x
 
21428
$as_echo "$at_srcdir/json.at:230: \$PYTHON \$srcdir/test-json.py  input"
 
21429
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:230"
 
21430
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
21431
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21432
at_status=$? at_failed=false
 
21433
$at_check_filter
 
21434
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21435
echo stdout:; tee stdout <"$at_stdout"
 
21436
at_fn_check_status 0 $at_status "$at_srcdir/json.at:230"
 
21437
$at_failed && at_fn_log_failure  \
 
21438
"input"
 
21439
$at_traceon; }
 
21440
 
 
21441
   { set +x
 
21442
$as_echo "$at_srcdir/json.at:230: cat stdout"
 
21443
at_fn_check_prepare_trace "json.at:230"
 
21444
( $at_check_trace; cat stdout
 
21445
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21446
at_status=$? at_failed=false
 
21447
$at_check_filter
 
21448
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21449
echo >>"$at_stdout"; $as_echo "[-1000,-1000,-250,-1000,-0.125,-0.03125,-0.03125,-1.525878906e-05]
 
21450
" | \
 
21451
  $at_diff - "$at_stdout" || at_failed=:
 
21452
at_fn_check_status 0 $at_status "$at_srcdir/json.at:230"
 
21453
$at_failed && at_fn_log_failure  \
 
21454
"input"
 
21455
$at_traceon; }
 
21456
 
 
21457
     set +x
 
21458
  $at_times_p && times >"$at_times_file"
 
21459
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21460
read at_status <"$at_status_file"
 
21461
#AT_STOP_291
 
21462
#AT_START_292
 
21463
at_fn_group_banner 292 'json.at:234' \
 
21464
  "1e-9999 underflows to 0 - C" "                    " 24
 
21465
at_xfail=no
 
21466
(
 
21467
  $as_echo "292. $at_setup_line: testing $at_desc ..."
 
21468
  $at_traceon
 
21469
 
 
21470
 
 
21471
   { set +x
 
21472
$as_echo "$at_srcdir/json.at:234: printf %s \"[1e-9999]\" > input"
 
21473
at_fn_check_prepare_trace "json.at:234"
 
21474
( $at_check_trace; printf %s "[1e-9999]" > input
 
21475
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21476
at_status=$? at_failed=false
 
21477
$at_check_filter
 
21478
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21479
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21480
at_fn_check_status 0 $at_status "$at_srcdir/json.at:234"
 
21481
$at_failed && at_fn_log_failure
 
21482
$at_traceon; }
 
21483
 
 
21484
 
 
21485
   { set +x
 
21486
$as_echo "$at_srcdir/json.at:234: test-json  input"
 
21487
at_fn_check_prepare_trace "json.at:234"
 
21488
( $at_check_trace; test-json  input
 
21489
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21490
at_status=$? at_failed=false
 
21491
$at_check_filter
 
21492
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21493
echo stdout:; tee stdout <"$at_stdout"
 
21494
at_fn_check_status 0 $at_status "$at_srcdir/json.at:234"
 
21495
$at_failed && at_fn_log_failure  \
 
21496
"input"
 
21497
$at_traceon; }
 
21498
 
 
21499
   { set +x
 
21500
$as_echo "$at_srcdir/json.at:234: cat stdout"
 
21501
at_fn_check_prepare_trace "json.at:234"
 
21502
( $at_check_trace; cat stdout
 
21503
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21504
at_status=$? at_failed=false
 
21505
$at_check_filter
 
21506
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21507
echo >>"$at_stdout"; $as_echo "[0]
 
21508
" | \
 
21509
  $at_diff - "$at_stdout" || at_failed=:
 
21510
at_fn_check_status 0 $at_status "$at_srcdir/json.at:234"
 
21511
$at_failed && at_fn_log_failure  \
 
21512
"input"
 
21513
$at_traceon; }
 
21514
 
 
21515
     set +x
 
21516
  $at_times_p && times >"$at_times_file"
 
21517
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21518
read at_status <"$at_status_file"
 
21519
#AT_STOP_292
 
21520
#AT_START_293
 
21521
at_fn_group_banner 293 'json.at:234' \
 
21522
  "1e-9999 underflows to 0 - Python" "               " 24
 
21523
at_xfail=no
 
21524
(
 
21525
  $as_echo "293. $at_setup_line: testing $at_desc ..."
 
21526
  $at_traceon
 
21527
 
 
21528
 
 
21529
   $as_echo "json.at:234" >"$at_check_line_file"
 
21530
(test $HAVE_PYTHON = no) \
 
21531
  && at_fn_check_skip 77 "$at_srcdir/json.at:234"
 
21532
   { set +x
 
21533
$as_echo "$at_srcdir/json.at:234: printf %s \"[1e-9999]\" > input"
 
21534
at_fn_check_prepare_trace "json.at:234"
 
21535
( $at_check_trace; printf %s "[1e-9999]" > input
 
21536
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21537
at_status=$? at_failed=false
 
21538
$at_check_filter
 
21539
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21540
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21541
at_fn_check_status 0 $at_status "$at_srcdir/json.at:234"
 
21542
$at_failed && at_fn_log_failure
 
21543
$at_traceon; }
 
21544
 
 
21545
 
 
21546
   { set +x
 
21547
$as_echo "$at_srcdir/json.at:234: \$PYTHON \$srcdir/test-json.py  input"
 
21548
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:234"
 
21549
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
21550
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21551
at_status=$? at_failed=false
 
21552
$at_check_filter
 
21553
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21554
echo stdout:; tee stdout <"$at_stdout"
 
21555
at_fn_check_status 0 $at_status "$at_srcdir/json.at:234"
 
21556
$at_failed && at_fn_log_failure  \
 
21557
"input"
 
21558
$at_traceon; }
 
21559
 
 
21560
   { set +x
 
21561
$as_echo "$at_srcdir/json.at:234: cat stdout"
 
21562
at_fn_check_prepare_trace "json.at:234"
 
21563
( $at_check_trace; cat stdout
 
21564
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21565
at_status=$? at_failed=false
 
21566
$at_check_filter
 
21567
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21568
echo >>"$at_stdout"; $as_echo "[0]
 
21569
" | \
 
21570
  $at_diff - "$at_stdout" || at_failed=:
 
21571
at_fn_check_status 0 $at_status "$at_srcdir/json.at:234"
 
21572
$at_failed && at_fn_log_failure  \
 
21573
"input"
 
21574
$at_traceon; }
 
21575
 
 
21576
     set +x
 
21577
  $at_times_p && times >"$at_times_file"
 
21578
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21579
read at_status <"$at_status_file"
 
21580
#AT_STOP_293
 
21581
#AT_START_294
 
21582
at_fn_group_banner 294 'json.at:238' \
 
21583
  "a number by itself is not valid JSON - C" "       " 24
 
21584
at_xfail=no
 
21585
(
 
21586
  $as_echo "294. $at_setup_line: testing $at_desc ..."
 
21587
  $at_traceon
 
21588
 
 
21589
 
 
21590
   { set +x
 
21591
$as_echo "$at_srcdir/json.at:238: printf %s \"1\" > input"
 
21592
at_fn_check_prepare_trace "json.at:238"
 
21593
( $at_check_trace; printf %s "1" > input
 
21594
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21595
at_status=$? at_failed=false
 
21596
$at_check_filter
 
21597
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21598
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21599
at_fn_check_status 0 $at_status "$at_srcdir/json.at:238"
 
21600
$at_failed && at_fn_log_failure
 
21601
$at_traceon; }
 
21602
 
 
21603
 
 
21604
   { set +x
 
21605
$as_echo "$at_srcdir/json.at:238: test-json  input"
 
21606
at_fn_check_prepare_trace "json.at:238"
 
21607
( $at_check_trace; test-json  input
 
21608
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21609
at_status=$? at_failed=false
 
21610
$at_check_filter
 
21611
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21612
echo stdout:; tee stdout <"$at_stdout"
 
21613
at_fn_check_status 1 $at_status "$at_srcdir/json.at:238"
 
21614
$at_failed && at_fn_log_failure  \
 
21615
"input"
 
21616
$at_traceon; }
 
21617
 
 
21618
   { set +x
 
21619
$as_echo "$at_srcdir/json.at:238: sed 's/^error: [^:]*:/error:/' < stdout"
 
21620
at_fn_check_prepare_trace "json.at:238"
 
21621
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
21622
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21623
at_status=$? at_failed=false
 
21624
$at_check_filter
 
21625
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21626
echo >>"$at_stdout"; $as_echo "error: syntax error at beginning of input
 
21627
" | \
 
21628
  $at_diff - "$at_stdout" || at_failed=:
 
21629
at_fn_check_status 0 $at_status "$at_srcdir/json.at:238"
 
21630
$at_failed && at_fn_log_failure  \
 
21631
"input"
 
21632
$at_traceon; }
 
21633
 
 
21634
     set +x
 
21635
  $at_times_p && times >"$at_times_file"
 
21636
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21637
read at_status <"$at_status_file"
 
21638
#AT_STOP_294
 
21639
#AT_START_295
 
21640
at_fn_group_banner 295 'json.at:238' \
 
21641
  "a number by itself is not valid JSON - Python" "  " 24
 
21642
at_xfail=no
 
21643
(
 
21644
  $as_echo "295. $at_setup_line: testing $at_desc ..."
 
21645
  $at_traceon
 
21646
 
 
21647
 
 
21648
   $as_echo "json.at:238" >"$at_check_line_file"
 
21649
(test $HAVE_PYTHON = no) \
 
21650
  && at_fn_check_skip 77 "$at_srcdir/json.at:238"
 
21651
   { set +x
 
21652
$as_echo "$at_srcdir/json.at:238: printf %s \"1\" > input"
 
21653
at_fn_check_prepare_trace "json.at:238"
 
21654
( $at_check_trace; printf %s "1" > input
 
21655
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21656
at_status=$? at_failed=false
 
21657
$at_check_filter
 
21658
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21659
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21660
at_fn_check_status 0 $at_status "$at_srcdir/json.at:238"
 
21661
$at_failed && at_fn_log_failure
 
21662
$at_traceon; }
 
21663
 
 
21664
 
 
21665
   { set +x
 
21666
$as_echo "$at_srcdir/json.at:238: \$PYTHON \$srcdir/test-json.py  input"
 
21667
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:238"
 
21668
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
21669
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21670
at_status=$? at_failed=false
 
21671
$at_check_filter
 
21672
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21673
echo stdout:; tee stdout <"$at_stdout"
 
21674
at_fn_check_status 1 $at_status "$at_srcdir/json.at:238"
 
21675
$at_failed && at_fn_log_failure  \
 
21676
"input"
 
21677
$at_traceon; }
 
21678
 
 
21679
   { set +x
 
21680
$as_echo "$at_srcdir/json.at:238: sed 's/^error: [^:]*:/error:/' < stdout"
 
21681
at_fn_check_prepare_trace "json.at:238"
 
21682
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
21683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21684
at_status=$? at_failed=false
 
21685
$at_check_filter
 
21686
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21687
echo >>"$at_stdout"; $as_echo "error: syntax error at beginning of input
 
21688
" | \
 
21689
  $at_diff - "$at_stdout" || at_failed=:
 
21690
at_fn_check_status 0 $at_status "$at_srcdir/json.at:238"
 
21691
$at_failed && at_fn_log_failure  \
 
21692
"input"
 
21693
$at_traceon; }
 
21694
 
 
21695
     set +x
 
21696
  $at_times_p && times >"$at_times_file"
 
21697
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21698
read at_status <"$at_status_file"
 
21699
#AT_STOP_295
 
21700
#AT_START_296
 
21701
at_fn_group_banner 296 'json.at:240' \
 
21702
  "leading zeros not allowed - C" "                  " 24
 
21703
at_xfail=no
 
21704
(
 
21705
  $as_echo "296. $at_setup_line: testing $at_desc ..."
 
21706
  $at_traceon
 
21707
 
 
21708
 
 
21709
   { set +x
 
21710
$as_echo "$at_srcdir/json.at:240: printf %s \"[0123]\" > input"
 
21711
at_fn_check_prepare_trace "json.at:240"
 
21712
( $at_check_trace; printf %s "[0123]" > input
 
21713
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21714
at_status=$? at_failed=false
 
21715
$at_check_filter
 
21716
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21717
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21718
at_fn_check_status 0 $at_status "$at_srcdir/json.at:240"
 
21719
$at_failed && at_fn_log_failure
 
21720
$at_traceon; }
 
21721
 
 
21722
 
 
21723
   { set +x
 
21724
$as_echo "$at_srcdir/json.at:240: test-json  input"
 
21725
at_fn_check_prepare_trace "json.at:240"
 
21726
( $at_check_trace; test-json  input
 
21727
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21728
at_status=$? at_failed=false
 
21729
$at_check_filter
 
21730
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21731
echo stdout:; tee stdout <"$at_stdout"
 
21732
at_fn_check_status 1 $at_status "$at_srcdir/json.at:240"
 
21733
$at_failed && at_fn_log_failure  \
 
21734
"input"
 
21735
$at_traceon; }
 
21736
 
 
21737
   { set +x
 
21738
$as_echo "$at_srcdir/json.at:240: sed 's/^error: [^:]*:/error:/' < stdout"
 
21739
at_fn_check_prepare_trace "json.at:240"
 
21740
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
21741
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21742
at_status=$? at_failed=false
 
21743
$at_check_filter
 
21744
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21745
echo >>"$at_stdout"; $as_echo "error: leading zeros not allowed
 
21746
" | \
 
21747
  $at_diff - "$at_stdout" || at_failed=:
 
21748
at_fn_check_status 0 $at_status "$at_srcdir/json.at:240"
 
21749
$at_failed && at_fn_log_failure  \
 
21750
"input"
 
21751
$at_traceon; }
 
21752
 
 
21753
     set +x
 
21754
  $at_times_p && times >"$at_times_file"
 
21755
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21756
read at_status <"$at_status_file"
 
21757
#AT_STOP_296
 
21758
#AT_START_297
 
21759
at_fn_group_banner 297 'json.at:240' \
 
21760
  "leading zeros not allowed - Python" "             " 24
 
21761
at_xfail=no
 
21762
(
 
21763
  $as_echo "297. $at_setup_line: testing $at_desc ..."
 
21764
  $at_traceon
 
21765
 
 
21766
 
 
21767
   $as_echo "json.at:240" >"$at_check_line_file"
 
21768
(test $HAVE_PYTHON = no) \
 
21769
  && at_fn_check_skip 77 "$at_srcdir/json.at:240"
 
21770
   { set +x
 
21771
$as_echo "$at_srcdir/json.at:240: printf %s \"[0123]\" > input"
 
21772
at_fn_check_prepare_trace "json.at:240"
 
21773
( $at_check_trace; printf %s "[0123]" > input
 
21774
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21775
at_status=$? at_failed=false
 
21776
$at_check_filter
 
21777
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21778
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21779
at_fn_check_status 0 $at_status "$at_srcdir/json.at:240"
 
21780
$at_failed && at_fn_log_failure
 
21781
$at_traceon; }
 
21782
 
 
21783
 
 
21784
   { set +x
 
21785
$as_echo "$at_srcdir/json.at:240: \$PYTHON \$srcdir/test-json.py  input"
 
21786
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:240"
 
21787
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
21788
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21789
at_status=$? at_failed=false
 
21790
$at_check_filter
 
21791
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21792
echo stdout:; tee stdout <"$at_stdout"
 
21793
at_fn_check_status 1 $at_status "$at_srcdir/json.at:240"
 
21794
$at_failed && at_fn_log_failure  \
 
21795
"input"
 
21796
$at_traceon; }
 
21797
 
 
21798
   { set +x
 
21799
$as_echo "$at_srcdir/json.at:240: sed 's/^error: [^:]*:/error:/' < stdout"
 
21800
at_fn_check_prepare_trace "json.at:240"
 
21801
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
21802
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21803
at_status=$? at_failed=false
 
21804
$at_check_filter
 
21805
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21806
echo >>"$at_stdout"; $as_echo "error: leading zeros not allowed
 
21807
" | \
 
21808
  $at_diff - "$at_stdout" || at_failed=:
 
21809
at_fn_check_status 0 $at_status "$at_srcdir/json.at:240"
 
21810
$at_failed && at_fn_log_failure  \
 
21811
"input"
 
21812
$at_traceon; }
 
21813
 
 
21814
     set +x
 
21815
  $at_times_p && times >"$at_times_file"
 
21816
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21817
read at_status <"$at_status_file"
 
21818
#AT_STOP_297
 
21819
#AT_START_298
 
21820
at_fn_group_banner 298 'json.at:244' \
 
21821
  "1e9999 is too big - C" "                          " 24
 
21822
at_xfail=no
 
21823
(
 
21824
  $as_echo "298. $at_setup_line: testing $at_desc ..."
 
21825
  $at_traceon
 
21826
 
 
21827
 
 
21828
   { set +x
 
21829
$as_echo "$at_srcdir/json.at:244: printf %s \"[1e9999]\" > input"
 
21830
at_fn_check_prepare_trace "json.at:244"
 
21831
( $at_check_trace; printf %s "[1e9999]" > input
 
21832
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21833
at_status=$? at_failed=false
 
21834
$at_check_filter
 
21835
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21836
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21837
at_fn_check_status 0 $at_status "$at_srcdir/json.at:244"
 
21838
$at_failed && at_fn_log_failure
 
21839
$at_traceon; }
 
21840
 
 
21841
 
 
21842
   { set +x
 
21843
$as_echo "$at_srcdir/json.at:244: test-json  input"
 
21844
at_fn_check_prepare_trace "json.at:244"
 
21845
( $at_check_trace; test-json  input
 
21846
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21847
at_status=$? at_failed=false
 
21848
$at_check_filter
 
21849
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21850
echo stdout:; tee stdout <"$at_stdout"
 
21851
at_fn_check_status 1 $at_status "$at_srcdir/json.at:244"
 
21852
$at_failed && at_fn_log_failure  \
 
21853
"input"
 
21854
$at_traceon; }
 
21855
 
 
21856
   { set +x
 
21857
$as_echo "$at_srcdir/json.at:244: sed 's/^error: [^:]*:/error:/' < stdout"
 
21858
at_fn_check_prepare_trace "json.at:244"
 
21859
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
21860
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21861
at_status=$? at_failed=false
 
21862
$at_check_filter
 
21863
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21864
echo >>"$at_stdout"; $as_echo "error: number outside valid range
 
21865
" | \
 
21866
  $at_diff - "$at_stdout" || at_failed=:
 
21867
at_fn_check_status 0 $at_status "$at_srcdir/json.at:244"
 
21868
$at_failed && at_fn_log_failure  \
 
21869
"input"
 
21870
$at_traceon; }
 
21871
 
 
21872
     set +x
 
21873
  $at_times_p && times >"$at_times_file"
 
21874
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21875
read at_status <"$at_status_file"
 
21876
#AT_STOP_298
 
21877
#AT_START_299
 
21878
at_fn_group_banner 299 'json.at:244' \
 
21879
  "1e9999 is too big - Python" "                     " 24
 
21880
at_xfail=no
 
21881
(
 
21882
  $as_echo "299. $at_setup_line: testing $at_desc ..."
 
21883
  $at_traceon
 
21884
 
 
21885
 
 
21886
   $as_echo "json.at:244" >"$at_check_line_file"
 
21887
(test $HAVE_PYTHON = no) \
 
21888
  && at_fn_check_skip 77 "$at_srcdir/json.at:244"
 
21889
   { set +x
 
21890
$as_echo "$at_srcdir/json.at:244: printf %s \"[1e9999]\" > input"
 
21891
at_fn_check_prepare_trace "json.at:244"
 
21892
( $at_check_trace; printf %s "[1e9999]" > input
 
21893
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21894
at_status=$? at_failed=false
 
21895
$at_check_filter
 
21896
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21897
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21898
at_fn_check_status 0 $at_status "$at_srcdir/json.at:244"
 
21899
$at_failed && at_fn_log_failure
 
21900
$at_traceon; }
 
21901
 
 
21902
 
 
21903
   { set +x
 
21904
$as_echo "$at_srcdir/json.at:244: \$PYTHON \$srcdir/test-json.py  input"
 
21905
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:244"
 
21906
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
21907
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21908
at_status=$? at_failed=false
 
21909
$at_check_filter
 
21910
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21911
echo stdout:; tee stdout <"$at_stdout"
 
21912
at_fn_check_status 1 $at_status "$at_srcdir/json.at:244"
 
21913
$at_failed && at_fn_log_failure  \
 
21914
"input"
 
21915
$at_traceon; }
 
21916
 
 
21917
   { set +x
 
21918
$as_echo "$at_srcdir/json.at:244: sed 's/^error: [^:]*:/error:/' < stdout"
 
21919
at_fn_check_prepare_trace "json.at:244"
 
21920
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
21921
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21922
at_status=$? at_failed=false
 
21923
$at_check_filter
 
21924
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21925
echo >>"$at_stdout"; $as_echo "error: number outside valid range
 
21926
" | \
 
21927
  $at_diff - "$at_stdout" || at_failed=:
 
21928
at_fn_check_status 0 $at_status "$at_srcdir/json.at:244"
 
21929
$at_failed && at_fn_log_failure  \
 
21930
"input"
 
21931
$at_traceon; }
 
21932
 
 
21933
     set +x
 
21934
  $at_times_p && times >"$at_times_file"
 
21935
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21936
read at_status <"$at_status_file"
 
21937
#AT_STOP_299
 
21938
#AT_START_300
 
21939
at_fn_group_banner 300 'json.at:248' \
 
21940
  "exponent bigger than INT_MAX - C" "               " 24
 
21941
at_xfail=no
 
21942
(
 
21943
  $as_echo "300. $at_setup_line: testing $at_desc ..."
 
21944
  $at_traceon
 
21945
 
 
21946
 
 
21947
   { set +x
 
21948
$as_echo "$at_srcdir/json.at:248: printf %s \"[1e9999999999999999999]\" > input"
 
21949
at_fn_check_prepare_trace "json.at:248"
 
21950
( $at_check_trace; printf %s "[1e9999999999999999999]" > input
 
21951
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21952
at_status=$? at_failed=false
 
21953
$at_check_filter
 
21954
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21955
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
21956
at_fn_check_status 0 $at_status "$at_srcdir/json.at:248"
 
21957
$at_failed && at_fn_log_failure
 
21958
$at_traceon; }
 
21959
 
 
21960
 
 
21961
   { set +x
 
21962
$as_echo "$at_srcdir/json.at:248: test-json  input"
 
21963
at_fn_check_prepare_trace "json.at:248"
 
21964
( $at_check_trace; test-json  input
 
21965
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21966
at_status=$? at_failed=false
 
21967
$at_check_filter
 
21968
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21969
echo stdout:; tee stdout <"$at_stdout"
 
21970
at_fn_check_status 1 $at_status "$at_srcdir/json.at:248"
 
21971
$at_failed && at_fn_log_failure  \
 
21972
"input"
 
21973
$at_traceon; }
 
21974
 
 
21975
   { set +x
 
21976
$as_echo "$at_srcdir/json.at:248: sed 's/^error: [^:]*:/error:/' < stdout"
 
21977
at_fn_check_prepare_trace "json.at:248"
 
21978
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
21979
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
21980
at_status=$? at_failed=false
 
21981
$at_check_filter
 
21982
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
21983
echo >>"$at_stdout"; $as_echo "error: exponent outside valid range
 
21984
" | \
 
21985
  $at_diff - "$at_stdout" || at_failed=:
 
21986
at_fn_check_status 0 $at_status "$at_srcdir/json.at:248"
 
21987
$at_failed && at_fn_log_failure  \
 
21988
"input"
 
21989
$at_traceon; }
 
21990
 
 
21991
     set +x
 
21992
  $at_times_p && times >"$at_times_file"
 
21993
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
21994
read at_status <"$at_status_file"
 
21995
#AT_STOP_300
 
21996
#AT_START_301
 
21997
at_fn_group_banner 301 'json.at:248' \
 
21998
  "exponent bigger than INT_MAX - Python" "          " 24
 
21999
at_xfail=no
 
22000
(
 
22001
  $as_echo "301. $at_setup_line: testing $at_desc ..."
 
22002
  $at_traceon
 
22003
 
 
22004
 
 
22005
   $as_echo "json.at:248" >"$at_check_line_file"
 
22006
(test $HAVE_PYTHON = no) \
 
22007
  && at_fn_check_skip 77 "$at_srcdir/json.at:248"
 
22008
   { set +x
 
22009
$as_echo "$at_srcdir/json.at:248: printf %s \"[1e9999999999999999999]\" > input"
 
22010
at_fn_check_prepare_trace "json.at:248"
 
22011
( $at_check_trace; printf %s "[1e9999999999999999999]" > input
 
22012
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22013
at_status=$? at_failed=false
 
22014
$at_check_filter
 
22015
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22016
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22017
at_fn_check_status 0 $at_status "$at_srcdir/json.at:248"
 
22018
$at_failed && at_fn_log_failure
 
22019
$at_traceon; }
 
22020
 
 
22021
 
 
22022
   { set +x
 
22023
$as_echo "$at_srcdir/json.at:248: \$PYTHON \$srcdir/test-json.py  input"
 
22024
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:248"
 
22025
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
22026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22027
at_status=$? at_failed=false
 
22028
$at_check_filter
 
22029
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22030
echo stdout:; tee stdout <"$at_stdout"
 
22031
at_fn_check_status 1 $at_status "$at_srcdir/json.at:248"
 
22032
$at_failed && at_fn_log_failure  \
 
22033
"input"
 
22034
$at_traceon; }
 
22035
 
 
22036
   { set +x
 
22037
$as_echo "$at_srcdir/json.at:248: sed 's/^error: [^:]*:/error:/' < stdout"
 
22038
at_fn_check_prepare_trace "json.at:248"
 
22039
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22040
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22041
at_status=$? at_failed=false
 
22042
$at_check_filter
 
22043
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22044
echo >>"$at_stdout"; $as_echo "error: exponent outside valid range
 
22045
" | \
 
22046
  $at_diff - "$at_stdout" || at_failed=:
 
22047
at_fn_check_status 0 $at_status "$at_srcdir/json.at:248"
 
22048
$at_failed && at_fn_log_failure  \
 
22049
"input"
 
22050
$at_traceon; }
 
22051
 
 
22052
     set +x
 
22053
  $at_times_p && times >"$at_times_file"
 
22054
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22055
read at_status <"$at_status_file"
 
22056
#AT_STOP_301
 
22057
#AT_START_302
 
22058
at_fn_group_banner 302 'json.at:252' \
 
22059
  "decimal point must be followed by digit - C" "    " 24
 
22060
at_xfail=no
 
22061
(
 
22062
  $as_echo "302. $at_setup_line: testing $at_desc ..."
 
22063
  $at_traceon
 
22064
 
 
22065
 
 
22066
   { set +x
 
22067
$as_echo "$at_srcdir/json.at:252: printf %s \"[1.]\" > input"
 
22068
at_fn_check_prepare_trace "json.at:252"
 
22069
( $at_check_trace; printf %s "[1.]" > input
 
22070
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22071
at_status=$? at_failed=false
 
22072
$at_check_filter
 
22073
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22074
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22075
at_fn_check_status 0 $at_status "$at_srcdir/json.at:252"
 
22076
$at_failed && at_fn_log_failure
 
22077
$at_traceon; }
 
22078
 
 
22079
 
 
22080
   { set +x
 
22081
$as_echo "$at_srcdir/json.at:252: test-json  input"
 
22082
at_fn_check_prepare_trace "json.at:252"
 
22083
( $at_check_trace; test-json  input
 
22084
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22085
at_status=$? at_failed=false
 
22086
$at_check_filter
 
22087
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22088
echo stdout:; tee stdout <"$at_stdout"
 
22089
at_fn_check_status 1 $at_status "$at_srcdir/json.at:252"
 
22090
$at_failed && at_fn_log_failure  \
 
22091
"input"
 
22092
$at_traceon; }
 
22093
 
 
22094
   { set +x
 
22095
$as_echo "$at_srcdir/json.at:252: sed 's/^error: [^:]*:/error:/' < stdout"
 
22096
at_fn_check_prepare_trace "json.at:252"
 
22097
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22098
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22099
at_status=$? at_failed=false
 
22100
$at_check_filter
 
22101
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22102
echo >>"$at_stdout"; $as_echo "error: decimal point must be followed by digit
 
22103
" | \
 
22104
  $at_diff - "$at_stdout" || at_failed=:
 
22105
at_fn_check_status 0 $at_status "$at_srcdir/json.at:252"
 
22106
$at_failed && at_fn_log_failure  \
 
22107
"input"
 
22108
$at_traceon; }
 
22109
 
 
22110
     set +x
 
22111
  $at_times_p && times >"$at_times_file"
 
22112
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22113
read at_status <"$at_status_file"
 
22114
#AT_STOP_302
 
22115
#AT_START_303
 
22116
at_fn_group_banner 303 'json.at:252' \
 
22117
  "decimal point must be followed by digit - Python" "" 24
 
22118
at_xfail=no
 
22119
(
 
22120
  $as_echo "303. $at_setup_line: testing $at_desc ..."
 
22121
  $at_traceon
 
22122
 
 
22123
 
 
22124
   $as_echo "json.at:252" >"$at_check_line_file"
 
22125
(test $HAVE_PYTHON = no) \
 
22126
  && at_fn_check_skip 77 "$at_srcdir/json.at:252"
 
22127
   { set +x
 
22128
$as_echo "$at_srcdir/json.at:252: printf %s \"[1.]\" > input"
 
22129
at_fn_check_prepare_trace "json.at:252"
 
22130
( $at_check_trace; printf %s "[1.]" > input
 
22131
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22132
at_status=$? at_failed=false
 
22133
$at_check_filter
 
22134
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22135
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22136
at_fn_check_status 0 $at_status "$at_srcdir/json.at:252"
 
22137
$at_failed && at_fn_log_failure
 
22138
$at_traceon; }
 
22139
 
 
22140
 
 
22141
   { set +x
 
22142
$as_echo "$at_srcdir/json.at:252: \$PYTHON \$srcdir/test-json.py  input"
 
22143
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:252"
 
22144
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
22145
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22146
at_status=$? at_failed=false
 
22147
$at_check_filter
 
22148
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22149
echo stdout:; tee stdout <"$at_stdout"
 
22150
at_fn_check_status 1 $at_status "$at_srcdir/json.at:252"
 
22151
$at_failed && at_fn_log_failure  \
 
22152
"input"
 
22153
$at_traceon; }
 
22154
 
 
22155
   { set +x
 
22156
$as_echo "$at_srcdir/json.at:252: sed 's/^error: [^:]*:/error:/' < stdout"
 
22157
at_fn_check_prepare_trace "json.at:252"
 
22158
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22159
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22160
at_status=$? at_failed=false
 
22161
$at_check_filter
 
22162
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22163
echo >>"$at_stdout"; $as_echo "error: decimal point must be followed by digit
 
22164
" | \
 
22165
  $at_diff - "$at_stdout" || at_failed=:
 
22166
at_fn_check_status 0 $at_status "$at_srcdir/json.at:252"
 
22167
$at_failed && at_fn_log_failure  \
 
22168
"input"
 
22169
$at_traceon; }
 
22170
 
 
22171
     set +x
 
22172
  $at_times_p && times >"$at_times_file"
 
22173
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22174
read at_status <"$at_status_file"
 
22175
#AT_STOP_303
 
22176
#AT_START_304
 
22177
at_fn_group_banner 304 'json.at:256' \
 
22178
  "exponent must contain at least one digit (1) - C" "" 24
 
22179
at_xfail=no
 
22180
(
 
22181
  $as_echo "304. $at_setup_line: testing $at_desc ..."
 
22182
  $at_traceon
 
22183
 
 
22184
 
 
22185
   { set +x
 
22186
$as_echo "$at_srcdir/json.at:256: printf %s \"[1e]\" > input"
 
22187
at_fn_check_prepare_trace "json.at:256"
 
22188
( $at_check_trace; printf %s "[1e]" > input
 
22189
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22190
at_status=$? at_failed=false
 
22191
$at_check_filter
 
22192
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22193
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22194
at_fn_check_status 0 $at_status "$at_srcdir/json.at:256"
 
22195
$at_failed && at_fn_log_failure
 
22196
$at_traceon; }
 
22197
 
 
22198
 
 
22199
   { set +x
 
22200
$as_echo "$at_srcdir/json.at:256: test-json  input"
 
22201
at_fn_check_prepare_trace "json.at:256"
 
22202
( $at_check_trace; test-json  input
 
22203
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22204
at_status=$? at_failed=false
 
22205
$at_check_filter
 
22206
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22207
echo stdout:; tee stdout <"$at_stdout"
 
22208
at_fn_check_status 1 $at_status "$at_srcdir/json.at:256"
 
22209
$at_failed && at_fn_log_failure  \
 
22210
"input"
 
22211
$at_traceon; }
 
22212
 
 
22213
   { set +x
 
22214
$as_echo "$at_srcdir/json.at:256: sed 's/^error: [^:]*:/error:/' < stdout"
 
22215
at_fn_check_prepare_trace "json.at:256"
 
22216
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22217
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22218
at_status=$? at_failed=false
 
22219
$at_check_filter
 
22220
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22221
echo >>"$at_stdout"; $as_echo "error: exponent must contain at least one digit
 
22222
" | \
 
22223
  $at_diff - "$at_stdout" || at_failed=:
 
22224
at_fn_check_status 0 $at_status "$at_srcdir/json.at:256"
 
22225
$at_failed && at_fn_log_failure  \
 
22226
"input"
 
22227
$at_traceon; }
 
22228
 
 
22229
     set +x
 
22230
  $at_times_p && times >"$at_times_file"
 
22231
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22232
read at_status <"$at_status_file"
 
22233
#AT_STOP_304
 
22234
#AT_START_305
 
22235
at_fn_group_banner 305 'json.at:256' \
 
22236
  "exponent must contain at least one digit (1) - Python" "" 24
 
22237
at_xfail=no
 
22238
(
 
22239
  $as_echo "305. $at_setup_line: testing $at_desc ..."
 
22240
  $at_traceon
 
22241
 
 
22242
 
 
22243
   $as_echo "json.at:256" >"$at_check_line_file"
 
22244
(test $HAVE_PYTHON = no) \
 
22245
  && at_fn_check_skip 77 "$at_srcdir/json.at:256"
 
22246
   { set +x
 
22247
$as_echo "$at_srcdir/json.at:256: printf %s \"[1e]\" > input"
 
22248
at_fn_check_prepare_trace "json.at:256"
 
22249
( $at_check_trace; printf %s "[1e]" > input
 
22250
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22251
at_status=$? at_failed=false
 
22252
$at_check_filter
 
22253
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22254
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22255
at_fn_check_status 0 $at_status "$at_srcdir/json.at:256"
 
22256
$at_failed && at_fn_log_failure
 
22257
$at_traceon; }
 
22258
 
 
22259
 
 
22260
   { set +x
 
22261
$as_echo "$at_srcdir/json.at:256: \$PYTHON \$srcdir/test-json.py  input"
 
22262
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:256"
 
22263
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
22264
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22265
at_status=$? at_failed=false
 
22266
$at_check_filter
 
22267
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22268
echo stdout:; tee stdout <"$at_stdout"
 
22269
at_fn_check_status 1 $at_status "$at_srcdir/json.at:256"
 
22270
$at_failed && at_fn_log_failure  \
 
22271
"input"
 
22272
$at_traceon; }
 
22273
 
 
22274
   { set +x
 
22275
$as_echo "$at_srcdir/json.at:256: sed 's/^error: [^:]*:/error:/' < stdout"
 
22276
at_fn_check_prepare_trace "json.at:256"
 
22277
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22278
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22279
at_status=$? at_failed=false
 
22280
$at_check_filter
 
22281
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22282
echo >>"$at_stdout"; $as_echo "error: exponent must contain at least one digit
 
22283
" | \
 
22284
  $at_diff - "$at_stdout" || at_failed=:
 
22285
at_fn_check_status 0 $at_status "$at_srcdir/json.at:256"
 
22286
$at_failed && at_fn_log_failure  \
 
22287
"input"
 
22288
$at_traceon; }
 
22289
 
 
22290
     set +x
 
22291
  $at_times_p && times >"$at_times_file"
 
22292
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22293
read at_status <"$at_status_file"
 
22294
#AT_STOP_305
 
22295
#AT_START_306
 
22296
at_fn_group_banner 306 'json.at:260' \
 
22297
  "exponent must contain at least one digit (2) - C" "" 24
 
22298
at_xfail=no
 
22299
(
 
22300
  $as_echo "306. $at_setup_line: testing $at_desc ..."
 
22301
  $at_traceon
 
22302
 
 
22303
 
 
22304
   { set +x
 
22305
$as_echo "$at_srcdir/json.at:260: printf %s \"[1e+]\" > input"
 
22306
at_fn_check_prepare_trace "json.at:260"
 
22307
( $at_check_trace; printf %s "[1e+]" > input
 
22308
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22309
at_status=$? at_failed=false
 
22310
$at_check_filter
 
22311
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22312
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22313
at_fn_check_status 0 $at_status "$at_srcdir/json.at:260"
 
22314
$at_failed && at_fn_log_failure
 
22315
$at_traceon; }
 
22316
 
 
22317
 
 
22318
   { set +x
 
22319
$as_echo "$at_srcdir/json.at:260: test-json  input"
 
22320
at_fn_check_prepare_trace "json.at:260"
 
22321
( $at_check_trace; test-json  input
 
22322
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22323
at_status=$? at_failed=false
 
22324
$at_check_filter
 
22325
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22326
echo stdout:; tee stdout <"$at_stdout"
 
22327
at_fn_check_status 1 $at_status "$at_srcdir/json.at:260"
 
22328
$at_failed && at_fn_log_failure  \
 
22329
"input"
 
22330
$at_traceon; }
 
22331
 
 
22332
   { set +x
 
22333
$as_echo "$at_srcdir/json.at:260: sed 's/^error: [^:]*:/error:/' < stdout"
 
22334
at_fn_check_prepare_trace "json.at:260"
 
22335
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22336
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22337
at_status=$? at_failed=false
 
22338
$at_check_filter
 
22339
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22340
echo >>"$at_stdout"; $as_echo "error: exponent must contain at least one digit
 
22341
" | \
 
22342
  $at_diff - "$at_stdout" || at_failed=:
 
22343
at_fn_check_status 0 $at_status "$at_srcdir/json.at:260"
 
22344
$at_failed && at_fn_log_failure  \
 
22345
"input"
 
22346
$at_traceon; }
 
22347
 
 
22348
     set +x
 
22349
  $at_times_p && times >"$at_times_file"
 
22350
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22351
read at_status <"$at_status_file"
 
22352
#AT_STOP_306
 
22353
#AT_START_307
 
22354
at_fn_group_banner 307 'json.at:260' \
 
22355
  "exponent must contain at least one digit (2) - Python" "" 24
 
22356
at_xfail=no
 
22357
(
 
22358
  $as_echo "307. $at_setup_line: testing $at_desc ..."
 
22359
  $at_traceon
 
22360
 
 
22361
 
 
22362
   $as_echo "json.at:260" >"$at_check_line_file"
 
22363
(test $HAVE_PYTHON = no) \
 
22364
  && at_fn_check_skip 77 "$at_srcdir/json.at:260"
 
22365
   { set +x
 
22366
$as_echo "$at_srcdir/json.at:260: printf %s \"[1e+]\" > input"
 
22367
at_fn_check_prepare_trace "json.at:260"
 
22368
( $at_check_trace; printf %s "[1e+]" > input
 
22369
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22370
at_status=$? at_failed=false
 
22371
$at_check_filter
 
22372
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22373
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22374
at_fn_check_status 0 $at_status "$at_srcdir/json.at:260"
 
22375
$at_failed && at_fn_log_failure
 
22376
$at_traceon; }
 
22377
 
 
22378
 
 
22379
   { set +x
 
22380
$as_echo "$at_srcdir/json.at:260: \$PYTHON \$srcdir/test-json.py  input"
 
22381
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:260"
 
22382
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
22383
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22384
at_status=$? at_failed=false
 
22385
$at_check_filter
 
22386
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22387
echo stdout:; tee stdout <"$at_stdout"
 
22388
at_fn_check_status 1 $at_status "$at_srcdir/json.at:260"
 
22389
$at_failed && at_fn_log_failure  \
 
22390
"input"
 
22391
$at_traceon; }
 
22392
 
 
22393
   { set +x
 
22394
$as_echo "$at_srcdir/json.at:260: sed 's/^error: [^:]*:/error:/' < stdout"
 
22395
at_fn_check_prepare_trace "json.at:260"
 
22396
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22397
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22398
at_status=$? at_failed=false
 
22399
$at_check_filter
 
22400
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22401
echo >>"$at_stdout"; $as_echo "error: exponent must contain at least one digit
 
22402
" | \
 
22403
  $at_diff - "$at_stdout" || at_failed=:
 
22404
at_fn_check_status 0 $at_status "$at_srcdir/json.at:260"
 
22405
$at_failed && at_fn_log_failure  \
 
22406
"input"
 
22407
$at_traceon; }
 
22408
 
 
22409
     set +x
 
22410
  $at_times_p && times >"$at_times_file"
 
22411
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22412
read at_status <"$at_status_file"
 
22413
#AT_STOP_307
 
22414
#AT_START_308
 
22415
at_fn_group_banner 308 'json.at:264' \
 
22416
  "exponent must contain at least one digit (3) - C" "" 24
 
22417
at_xfail=no
 
22418
(
 
22419
  $as_echo "308. $at_setup_line: testing $at_desc ..."
 
22420
  $at_traceon
 
22421
 
 
22422
 
 
22423
   { set +x
 
22424
$as_echo "$at_srcdir/json.at:264: printf %s \"[1e-]\" > input"
 
22425
at_fn_check_prepare_trace "json.at:264"
 
22426
( $at_check_trace; printf %s "[1e-]" > input
 
22427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22428
at_status=$? at_failed=false
 
22429
$at_check_filter
 
22430
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22431
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22432
at_fn_check_status 0 $at_status "$at_srcdir/json.at:264"
 
22433
$at_failed && at_fn_log_failure
 
22434
$at_traceon; }
 
22435
 
 
22436
 
 
22437
   { set +x
 
22438
$as_echo "$at_srcdir/json.at:264: test-json  input"
 
22439
at_fn_check_prepare_trace "json.at:264"
 
22440
( $at_check_trace; test-json  input
 
22441
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22442
at_status=$? at_failed=false
 
22443
$at_check_filter
 
22444
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22445
echo stdout:; tee stdout <"$at_stdout"
 
22446
at_fn_check_status 1 $at_status "$at_srcdir/json.at:264"
 
22447
$at_failed && at_fn_log_failure  \
 
22448
"input"
 
22449
$at_traceon; }
 
22450
 
 
22451
   { set +x
 
22452
$as_echo "$at_srcdir/json.at:264: sed 's/^error: [^:]*:/error:/' < stdout"
 
22453
at_fn_check_prepare_trace "json.at:264"
 
22454
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22456
at_status=$? at_failed=false
 
22457
$at_check_filter
 
22458
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22459
echo >>"$at_stdout"; $as_echo "error: exponent must contain at least one digit
 
22460
" | \
 
22461
  $at_diff - "$at_stdout" || at_failed=:
 
22462
at_fn_check_status 0 $at_status "$at_srcdir/json.at:264"
 
22463
$at_failed && at_fn_log_failure  \
 
22464
"input"
 
22465
$at_traceon; }
 
22466
 
 
22467
     set +x
 
22468
  $at_times_p && times >"$at_times_file"
 
22469
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22470
read at_status <"$at_status_file"
 
22471
#AT_STOP_308
 
22472
#AT_START_309
 
22473
at_fn_group_banner 309 'json.at:264' \
 
22474
  "exponent must contain at least one digit (3) - Python" "" 24
 
22475
at_xfail=no
 
22476
(
 
22477
  $as_echo "309. $at_setup_line: testing $at_desc ..."
 
22478
  $at_traceon
 
22479
 
 
22480
 
 
22481
   $as_echo "json.at:264" >"$at_check_line_file"
 
22482
(test $HAVE_PYTHON = no) \
 
22483
  && at_fn_check_skip 77 "$at_srcdir/json.at:264"
 
22484
   { set +x
 
22485
$as_echo "$at_srcdir/json.at:264: printf %s \"[1e-]\" > input"
 
22486
at_fn_check_prepare_trace "json.at:264"
 
22487
( $at_check_trace; printf %s "[1e-]" > input
 
22488
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22489
at_status=$? at_failed=false
 
22490
$at_check_filter
 
22491
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22492
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22493
at_fn_check_status 0 $at_status "$at_srcdir/json.at:264"
 
22494
$at_failed && at_fn_log_failure
 
22495
$at_traceon; }
 
22496
 
 
22497
 
 
22498
   { set +x
 
22499
$as_echo "$at_srcdir/json.at:264: \$PYTHON \$srcdir/test-json.py  input"
 
22500
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:264"
 
22501
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
22502
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22503
at_status=$? at_failed=false
 
22504
$at_check_filter
 
22505
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22506
echo stdout:; tee stdout <"$at_stdout"
 
22507
at_fn_check_status 1 $at_status "$at_srcdir/json.at:264"
 
22508
$at_failed && at_fn_log_failure  \
 
22509
"input"
 
22510
$at_traceon; }
 
22511
 
 
22512
   { set +x
 
22513
$as_echo "$at_srcdir/json.at:264: sed 's/^error: [^:]*:/error:/' < stdout"
 
22514
at_fn_check_prepare_trace "json.at:264"
 
22515
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22516
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22517
at_status=$? at_failed=false
 
22518
$at_check_filter
 
22519
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22520
echo >>"$at_stdout"; $as_echo "error: exponent must contain at least one digit
 
22521
" | \
 
22522
  $at_diff - "$at_stdout" || at_failed=:
 
22523
at_fn_check_status 0 $at_status "$at_srcdir/json.at:264"
 
22524
$at_failed && at_fn_log_failure  \
 
22525
"input"
 
22526
$at_traceon; }
 
22527
 
 
22528
     set +x
 
22529
  $at_times_p && times >"$at_times_file"
 
22530
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22531
read at_status <"$at_status_file"
 
22532
#AT_STOP_309
 
22533
#AT_START_310
 
22534
at_fn_group_banner 310 'json.at:271' \
 
22535
  "RFC 4267 object example - C" "                    " 25
 
22536
at_xfail=no
 
22537
(
 
22538
  $as_echo "310. $at_setup_line: testing $at_desc ..."
 
22539
  $at_traceon
 
22540
 
 
22541
 
 
22542
   { set +x
 
22543
$as_echo "$at_srcdir/json.at:271: printf %s \"{
 
22544
   \\\"Image\\\": {
 
22545
       \\\"Width\\\":  800,
 
22546
       \\\"Height\\\": 600,
 
22547
       \\\"Title\\\":  \\\"View from 15th Floor\\\",
 
22548
       \\\"Thumbnail\\\": {
 
22549
           \\\"Url\\\":    \\\"http://www.example.com/image/481989943\\\",
 
22550
           \\\"Height\\\": 125,
 
22551
           \\\"Width\\\":  \\\"100\\\"
 
22552
       },
 
22553
       \\\"IDs\\\": [116, 943, 234, 38793]
 
22554
     }
 
22555
}\" > input"
 
22556
at_fn_check_prepare_notrace 'an embedded newline' "json.at:271"
 
22557
( $at_check_trace; printf %s "{
 
22558
   \"Image\": {
 
22559
       \"Width\":  800,
 
22560
       \"Height\": 600,
 
22561
       \"Title\":  \"View from 15th Floor\",
 
22562
       \"Thumbnail\": {
 
22563
           \"Url\":    \"http://www.example.com/image/481989943\",
 
22564
           \"Height\": 125,
 
22565
           \"Width\":  \"100\"
 
22566
       },
 
22567
       \"IDs\": [116, 943, 234, 38793]
 
22568
     }
 
22569
}" > input
 
22570
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22571
at_status=$? at_failed=false
 
22572
$at_check_filter
 
22573
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22574
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22575
at_fn_check_status 0 $at_status "$at_srcdir/json.at:271"
 
22576
$at_failed && at_fn_log_failure
 
22577
$at_traceon; }
 
22578
 
 
22579
 
 
22580
   { set +x
 
22581
$as_echo "$at_srcdir/json.at:271: test-json  input"
 
22582
at_fn_check_prepare_trace "json.at:271"
 
22583
( $at_check_trace; test-json  input
 
22584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22585
at_status=$? at_failed=false
 
22586
$at_check_filter
 
22587
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22588
echo stdout:; tee stdout <"$at_stdout"
 
22589
at_fn_check_status 0 $at_status "$at_srcdir/json.at:271"
 
22590
$at_failed && at_fn_log_failure  \
 
22591
"input"
 
22592
$at_traceon; }
 
22593
 
 
22594
   { set +x
 
22595
$as_echo "$at_srcdir/json.at:271: cat stdout"
 
22596
at_fn_check_prepare_trace "json.at:271"
 
22597
( $at_check_trace; cat stdout
 
22598
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22599
at_status=$? at_failed=false
 
22600
$at_check_filter
 
22601
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22602
echo >>"$at_stdout"; $as_echo "{\"Image\":{\"Height\":600,\"IDs\":[116,943,234,38793],\"Thumbnail\":{\"Height\":125,\"Url\":\"http://www.example.com/image/481989943\",\"Width\":\"100\"},\"Title\":\"View from 15th Floor\",\"Width\":800}}
 
22603
" | \
 
22604
  $at_diff - "$at_stdout" || at_failed=:
 
22605
at_fn_check_status 0 $at_status "$at_srcdir/json.at:271"
 
22606
$at_failed && at_fn_log_failure  \
 
22607
"input"
 
22608
$at_traceon; }
 
22609
 
 
22610
     set +x
 
22611
  $at_times_p && times >"$at_times_file"
 
22612
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22613
read at_status <"$at_status_file"
 
22614
#AT_STOP_310
 
22615
#AT_START_311
 
22616
at_fn_group_banner 311 'json.at:271' \
 
22617
  "RFC 4267 object example - Python" "               " 25
 
22618
at_xfail=no
 
22619
(
 
22620
  $as_echo "311. $at_setup_line: testing $at_desc ..."
 
22621
  $at_traceon
 
22622
 
 
22623
 
 
22624
   $as_echo "json.at:271" >"$at_check_line_file"
 
22625
(test $HAVE_PYTHON = no) \
 
22626
  && at_fn_check_skip 77 "$at_srcdir/json.at:271"
 
22627
   { set +x
 
22628
$as_echo "$at_srcdir/json.at:271: printf %s \"{
 
22629
   \\\"Image\\\": {
 
22630
       \\\"Width\\\":  800,
 
22631
       \\\"Height\\\": 600,
 
22632
       \\\"Title\\\":  \\\"View from 15th Floor\\\",
 
22633
       \\\"Thumbnail\\\": {
 
22634
           \\\"Url\\\":    \\\"http://www.example.com/image/481989943\\\",
 
22635
           \\\"Height\\\": 125,
 
22636
           \\\"Width\\\":  \\\"100\\\"
 
22637
       },
 
22638
       \\\"IDs\\\": [116, 943, 234, 38793]
 
22639
     }
 
22640
}\" > input"
 
22641
at_fn_check_prepare_notrace 'an embedded newline' "json.at:271"
 
22642
( $at_check_trace; printf %s "{
 
22643
   \"Image\": {
 
22644
       \"Width\":  800,
 
22645
       \"Height\": 600,
 
22646
       \"Title\":  \"View from 15th Floor\",
 
22647
       \"Thumbnail\": {
 
22648
           \"Url\":    \"http://www.example.com/image/481989943\",
 
22649
           \"Height\": 125,
 
22650
           \"Width\":  \"100\"
 
22651
       },
 
22652
       \"IDs\": [116, 943, 234, 38793]
 
22653
     }
 
22654
}" > input
 
22655
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22656
at_status=$? at_failed=false
 
22657
$at_check_filter
 
22658
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22659
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22660
at_fn_check_status 0 $at_status "$at_srcdir/json.at:271"
 
22661
$at_failed && at_fn_log_failure
 
22662
$at_traceon; }
 
22663
 
 
22664
 
 
22665
   { set +x
 
22666
$as_echo "$at_srcdir/json.at:271: \$PYTHON \$srcdir/test-json.py  input"
 
22667
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:271"
 
22668
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
22669
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22670
at_status=$? at_failed=false
 
22671
$at_check_filter
 
22672
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22673
echo stdout:; tee stdout <"$at_stdout"
 
22674
at_fn_check_status 0 $at_status "$at_srcdir/json.at:271"
 
22675
$at_failed && at_fn_log_failure  \
 
22676
"input"
 
22677
$at_traceon; }
 
22678
 
 
22679
   { set +x
 
22680
$as_echo "$at_srcdir/json.at:271: cat stdout"
 
22681
at_fn_check_prepare_trace "json.at:271"
 
22682
( $at_check_trace; cat stdout
 
22683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22684
at_status=$? at_failed=false
 
22685
$at_check_filter
 
22686
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22687
echo >>"$at_stdout"; $as_echo "{\"Image\":{\"Height\":600,\"IDs\":[116,943,234,38793],\"Thumbnail\":{\"Height\":125,\"Url\":\"http://www.example.com/image/481989943\",\"Width\":\"100\"},\"Title\":\"View from 15th Floor\",\"Width\":800}}
 
22688
" | \
 
22689
  $at_diff - "$at_stdout" || at_failed=:
 
22690
at_fn_check_status 0 $at_status "$at_srcdir/json.at:271"
 
22691
$at_failed && at_fn_log_failure  \
 
22692
"input"
 
22693
$at_traceon; }
 
22694
 
 
22695
     set +x
 
22696
  $at_times_p && times >"$at_times_file"
 
22697
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22698
read at_status <"$at_status_file"
 
22699
#AT_STOP_311
 
22700
#AT_START_312
 
22701
at_fn_group_banner 312 'json.at:287' \
 
22702
  "RFC 4267 array example - C" "                     " 25
 
22703
at_xfail=no
 
22704
(
 
22705
  $as_echo "312. $at_setup_line: testing $at_desc ..."
 
22706
  $at_traceon
 
22707
 
 
22708
 
 
22709
   { set +x
 
22710
$as_echo "$at_srcdir/json.at:287: printf %s \"[
 
22711
   {
 
22712
      \\\"precision\\\": \\\"zip\\\",
 
22713
      \\\"Latitude\\\":  37.7668,
 
22714
      \\\"Longitude\\\": -122.3959,
 
22715
      \\\"Address\\\":   \\\"\\\",
 
22716
      \\\"City\\\":      \\\"SAN FRANCISCO\\\",
 
22717
      \\\"State\\\":     \\\"CA\\\",
 
22718
      \\\"Zip\\\":       \\\"94107\\\",
 
22719
      \\\"Country\\\":   \\\"US\\\"
 
22720
   },
 
22721
   {
 
22722
      \\\"precision\\\": \\\"zip\\\",
 
22723
      \\\"Latitude\\\":  37.371991,
 
22724
      \\\"Longitude\\\": -122.026020,
 
22725
      \\\"Address\\\":   \\\"\\\",
 
22726
      \\\"City\\\":      \\\"SUNNYVALE\\\",
 
22727
      \\\"State\\\":     \\\"CA\\\",
 
22728
      \\\"Zip\\\":       \\\"94085\\\",
 
22729
      \\\"Country\\\":   \\\"US\\\"
 
22730
   }
 
22731
]\" > input"
 
22732
at_fn_check_prepare_notrace 'an embedded newline' "json.at:287"
 
22733
( $at_check_trace; printf %s "[
 
22734
   {
 
22735
      \"precision\": \"zip\",
 
22736
      \"Latitude\":  37.7668,
 
22737
      \"Longitude\": -122.3959,
 
22738
      \"Address\":   \"\",
 
22739
      \"City\":      \"SAN FRANCISCO\",
 
22740
      \"State\":     \"CA\",
 
22741
      \"Zip\":       \"94107\",
 
22742
      \"Country\":   \"US\"
 
22743
   },
 
22744
   {
 
22745
      \"precision\": \"zip\",
 
22746
      \"Latitude\":  37.371991,
 
22747
      \"Longitude\": -122.026020,
 
22748
      \"Address\":   \"\",
 
22749
      \"City\":      \"SUNNYVALE\",
 
22750
      \"State\":     \"CA\",
 
22751
      \"Zip\":       \"94085\",
 
22752
      \"Country\":   \"US\"
 
22753
   }
 
22754
]" > input
 
22755
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22756
at_status=$? at_failed=false
 
22757
$at_check_filter
 
22758
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22759
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22760
at_fn_check_status 0 $at_status "$at_srcdir/json.at:287"
 
22761
$at_failed && at_fn_log_failure
 
22762
$at_traceon; }
 
22763
 
 
22764
 
 
22765
   { set +x
 
22766
$as_echo "$at_srcdir/json.at:287: test-json  input"
 
22767
at_fn_check_prepare_trace "json.at:287"
 
22768
( $at_check_trace; test-json  input
 
22769
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22770
at_status=$? at_failed=false
 
22771
$at_check_filter
 
22772
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22773
echo stdout:; tee stdout <"$at_stdout"
 
22774
at_fn_check_status 0 $at_status "$at_srcdir/json.at:287"
 
22775
$at_failed && at_fn_log_failure  \
 
22776
"input"
 
22777
$at_traceon; }
 
22778
 
 
22779
   { set +x
 
22780
$as_echo "$at_srcdir/json.at:287: cat stdout"
 
22781
at_fn_check_prepare_trace "json.at:287"
 
22782
( $at_check_trace; cat stdout
 
22783
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22784
at_status=$? at_failed=false
 
22785
$at_check_filter
 
22786
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22787
echo >>"$at_stdout"; $as_echo "[{\"Address\":\"\",\"City\":\"SAN FRANCISCO\",\"Country\":\"US\",\"Latitude\":37.7668,\"Longitude\":-122.3959,\"State\":\"CA\",\"Zip\":\"94107\",\"precision\":\"zip\"},{\"Address\":\"\",\"City\":\"SUNNYVALE\",\"Country\":\"US\",\"Latitude\":37.371991,\"Longitude\":-122.02602,\"State\":\"CA\",\"Zip\":\"94085\",\"precision\":\"zip\"}]
 
22788
" | \
 
22789
  $at_diff - "$at_stdout" || at_failed=:
 
22790
at_fn_check_status 0 $at_status "$at_srcdir/json.at:287"
 
22791
$at_failed && at_fn_log_failure  \
 
22792
"input"
 
22793
$at_traceon; }
 
22794
 
 
22795
     set +x
 
22796
  $at_times_p && times >"$at_times_file"
 
22797
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22798
read at_status <"$at_status_file"
 
22799
#AT_STOP_312
 
22800
#AT_START_313
 
22801
at_fn_group_banner 313 'json.at:287' \
 
22802
  "RFC 4267 array example - Python" "                " 25
 
22803
at_xfail=no
 
22804
(
 
22805
  $as_echo "313. $at_setup_line: testing $at_desc ..."
 
22806
  $at_traceon
 
22807
 
 
22808
 
 
22809
   $as_echo "json.at:287" >"$at_check_line_file"
 
22810
(test $HAVE_PYTHON = no) \
 
22811
  && at_fn_check_skip 77 "$at_srcdir/json.at:287"
 
22812
   { set +x
 
22813
$as_echo "$at_srcdir/json.at:287: printf %s \"[
 
22814
   {
 
22815
      \\\"precision\\\": \\\"zip\\\",
 
22816
      \\\"Latitude\\\":  37.7668,
 
22817
      \\\"Longitude\\\": -122.3959,
 
22818
      \\\"Address\\\":   \\\"\\\",
 
22819
      \\\"City\\\":      \\\"SAN FRANCISCO\\\",
 
22820
      \\\"State\\\":     \\\"CA\\\",
 
22821
      \\\"Zip\\\":       \\\"94107\\\",
 
22822
      \\\"Country\\\":   \\\"US\\\"
 
22823
   },
 
22824
   {
 
22825
      \\\"precision\\\": \\\"zip\\\",
 
22826
      \\\"Latitude\\\":  37.371991,
 
22827
      \\\"Longitude\\\": -122.026020,
 
22828
      \\\"Address\\\":   \\\"\\\",
 
22829
      \\\"City\\\":      \\\"SUNNYVALE\\\",
 
22830
      \\\"State\\\":     \\\"CA\\\",
 
22831
      \\\"Zip\\\":       \\\"94085\\\",
 
22832
      \\\"Country\\\":   \\\"US\\\"
 
22833
   }
 
22834
]\" > input"
 
22835
at_fn_check_prepare_notrace 'an embedded newline' "json.at:287"
 
22836
( $at_check_trace; printf %s "[
 
22837
   {
 
22838
      \"precision\": \"zip\",
 
22839
      \"Latitude\":  37.7668,
 
22840
      \"Longitude\": -122.3959,
 
22841
      \"Address\":   \"\",
 
22842
      \"City\":      \"SAN FRANCISCO\",
 
22843
      \"State\":     \"CA\",
 
22844
      \"Zip\":       \"94107\",
 
22845
      \"Country\":   \"US\"
 
22846
   },
 
22847
   {
 
22848
      \"precision\": \"zip\",
 
22849
      \"Latitude\":  37.371991,
 
22850
      \"Longitude\": -122.026020,
 
22851
      \"Address\":   \"\",
 
22852
      \"City\":      \"SUNNYVALE\",
 
22853
      \"State\":     \"CA\",
 
22854
      \"Zip\":       \"94085\",
 
22855
      \"Country\":   \"US\"
 
22856
   }
 
22857
]" > input
 
22858
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22859
at_status=$? at_failed=false
 
22860
$at_check_filter
 
22861
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22862
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22863
at_fn_check_status 0 $at_status "$at_srcdir/json.at:287"
 
22864
$at_failed && at_fn_log_failure
 
22865
$at_traceon; }
 
22866
 
 
22867
 
 
22868
   { set +x
 
22869
$as_echo "$at_srcdir/json.at:287: \$PYTHON \$srcdir/test-json.py  input"
 
22870
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:287"
 
22871
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
22872
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22873
at_status=$? at_failed=false
 
22874
$at_check_filter
 
22875
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22876
echo stdout:; tee stdout <"$at_stdout"
 
22877
at_fn_check_status 0 $at_status "$at_srcdir/json.at:287"
 
22878
$at_failed && at_fn_log_failure  \
 
22879
"input"
 
22880
$at_traceon; }
 
22881
 
 
22882
   { set +x
 
22883
$as_echo "$at_srcdir/json.at:287: cat stdout"
 
22884
at_fn_check_prepare_trace "json.at:287"
 
22885
( $at_check_trace; cat stdout
 
22886
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22887
at_status=$? at_failed=false
 
22888
$at_check_filter
 
22889
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22890
echo >>"$at_stdout"; $as_echo "[{\"Address\":\"\",\"City\":\"SAN FRANCISCO\",\"Country\":\"US\",\"Latitude\":37.7668,\"Longitude\":-122.3959,\"State\":\"CA\",\"Zip\":\"94107\",\"precision\":\"zip\"},{\"Address\":\"\",\"City\":\"SUNNYVALE\",\"Country\":\"US\",\"Latitude\":37.371991,\"Longitude\":-122.02602,\"State\":\"CA\",\"Zip\":\"94085\",\"precision\":\"zip\"}]
 
22891
" | \
 
22892
  $at_diff - "$at_stdout" || at_failed=:
 
22893
at_fn_check_status 0 $at_status "$at_srcdir/json.at:287"
 
22894
$at_failed && at_fn_log_failure  \
 
22895
"input"
 
22896
$at_traceon; }
 
22897
 
 
22898
     set +x
 
22899
  $at_times_p && times >"$at_times_file"
 
22900
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22901
read at_status <"$at_status_file"
 
22902
#AT_STOP_313
 
22903
#AT_START_314
 
22904
at_fn_group_banner 314 'json.at:314' \
 
22905
  "trailing garbage - C" "                           " 26
 
22906
at_xfail=no
 
22907
(
 
22908
  $as_echo "314. $at_setup_line: testing $at_desc ..."
 
22909
  $at_traceon
 
22910
 
 
22911
 
 
22912
   { set +x
 
22913
$as_echo "$at_srcdir/json.at:314: printf %s \"[1]null\" > input"
 
22914
at_fn_check_prepare_trace "json.at:314"
 
22915
( $at_check_trace; printf %s "[1]null" > input
 
22916
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22917
at_status=$? at_failed=false
 
22918
$at_check_filter
 
22919
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22920
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22921
at_fn_check_status 0 $at_status "$at_srcdir/json.at:314"
 
22922
$at_failed && at_fn_log_failure
 
22923
$at_traceon; }
 
22924
 
 
22925
 
 
22926
   { set +x
 
22927
$as_echo "$at_srcdir/json.at:314: test-json  input"
 
22928
at_fn_check_prepare_trace "json.at:314"
 
22929
( $at_check_trace; test-json  input
 
22930
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22931
at_status=$? at_failed=false
 
22932
$at_check_filter
 
22933
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22934
echo stdout:; tee stdout <"$at_stdout"
 
22935
at_fn_check_status 1 $at_status "$at_srcdir/json.at:314"
 
22936
$at_failed && at_fn_log_failure  \
 
22937
"input"
 
22938
$at_traceon; }
 
22939
 
 
22940
   { set +x
 
22941
$as_echo "$at_srcdir/json.at:314: sed 's/^error: [^:]*:/error:/' < stdout"
 
22942
at_fn_check_prepare_trace "json.at:314"
 
22943
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
22944
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22945
at_status=$? at_failed=false
 
22946
$at_check_filter
 
22947
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22948
echo >>"$at_stdout"; $as_echo "error: trailing garbage at end of input
 
22949
" | \
 
22950
  $at_diff - "$at_stdout" || at_failed=:
 
22951
at_fn_check_status 0 $at_status "$at_srcdir/json.at:314"
 
22952
$at_failed && at_fn_log_failure  \
 
22953
"input"
 
22954
$at_traceon; }
 
22955
 
 
22956
     set +x
 
22957
  $at_times_p && times >"$at_times_file"
 
22958
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
22959
read at_status <"$at_status_file"
 
22960
#AT_STOP_314
 
22961
#AT_START_315
 
22962
at_fn_group_banner 315 'json.at:314' \
 
22963
  "trailing garbage - Python" "                      " 26
 
22964
at_xfail=no
 
22965
(
 
22966
  $as_echo "315. $at_setup_line: testing $at_desc ..."
 
22967
  $at_traceon
 
22968
 
 
22969
 
 
22970
   $as_echo "json.at:314" >"$at_check_line_file"
 
22971
(test $HAVE_PYTHON = no) \
 
22972
  && at_fn_check_skip 77 "$at_srcdir/json.at:314"
 
22973
   { set +x
 
22974
$as_echo "$at_srcdir/json.at:314: printf %s \"[1]null\" > input"
 
22975
at_fn_check_prepare_trace "json.at:314"
 
22976
( $at_check_trace; printf %s "[1]null" > input
 
22977
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22978
at_status=$? at_failed=false
 
22979
$at_check_filter
 
22980
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22981
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
22982
at_fn_check_status 0 $at_status "$at_srcdir/json.at:314"
 
22983
$at_failed && at_fn_log_failure
 
22984
$at_traceon; }
 
22985
 
 
22986
 
 
22987
   { set +x
 
22988
$as_echo "$at_srcdir/json.at:314: \$PYTHON \$srcdir/test-json.py  input"
 
22989
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:314"
 
22990
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
22991
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
22992
at_status=$? at_failed=false
 
22993
$at_check_filter
 
22994
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
22995
echo stdout:; tee stdout <"$at_stdout"
 
22996
at_fn_check_status 1 $at_status "$at_srcdir/json.at:314"
 
22997
$at_failed && at_fn_log_failure  \
 
22998
"input"
 
22999
$at_traceon; }
 
23000
 
 
23001
   { set +x
 
23002
$as_echo "$at_srcdir/json.at:314: sed 's/^error: [^:]*:/error:/' < stdout"
 
23003
at_fn_check_prepare_trace "json.at:314"
 
23004
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23005
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23006
at_status=$? at_failed=false
 
23007
$at_check_filter
 
23008
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23009
echo >>"$at_stdout"; $as_echo "error: trailing garbage at end of input
 
23010
" | \
 
23011
  $at_diff - "$at_stdout" || at_failed=:
 
23012
at_fn_check_status 0 $at_status "$at_srcdir/json.at:314"
 
23013
$at_failed && at_fn_log_failure  \
 
23014
"input"
 
23015
$at_traceon; }
 
23016
 
 
23017
     set +x
 
23018
  $at_times_p && times >"$at_times_file"
 
23019
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23020
read at_status <"$at_status_file"
 
23021
#AT_STOP_315
 
23022
#AT_START_316
 
23023
at_fn_group_banner 316 'json.at:316' \
 
23024
  "formfeeds are not valid white space - C" "        " 26
 
23025
at_xfail=no
 
23026
(
 
23027
  $as_echo "316. $at_setup_line: testing $at_desc ..."
 
23028
  $at_traceon
 
23029
 
 
23030
 
 
23031
   { set +x
 
23032
$as_echo "$at_srcdir/json.at:316: printf %s \"[ ]\" > input"
 
23033
at_fn_check_prepare_trace "json.at:316"
 
23034
( $at_check_trace; printf %s "[ ]" > input
 
23035
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23036
at_status=$? at_failed=false
 
23037
$at_check_filter
 
23038
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23039
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23040
at_fn_check_status 0 $at_status "$at_srcdir/json.at:316"
 
23041
$at_failed && at_fn_log_failure
 
23042
$at_traceon; }
 
23043
 
 
23044
 
 
23045
   { set +x
 
23046
$as_echo "$at_srcdir/json.at:316: test-json  input"
 
23047
at_fn_check_prepare_trace "json.at:316"
 
23048
( $at_check_trace; test-json  input
 
23049
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23050
at_status=$? at_failed=false
 
23051
$at_check_filter
 
23052
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23053
echo stdout:; tee stdout <"$at_stdout"
 
23054
at_fn_check_status 1 $at_status "$at_srcdir/json.at:316"
 
23055
$at_failed && at_fn_log_failure  \
 
23056
"input"
 
23057
$at_traceon; }
 
23058
 
 
23059
   { set +x
 
23060
$as_echo "$at_srcdir/json.at:316: sed 's/^error: [^:]*:/error:/' < stdout"
 
23061
at_fn_check_prepare_trace "json.at:316"
 
23062
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23063
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23064
at_status=$? at_failed=false
 
23065
$at_check_filter
 
23066
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23067
echo >>"$at_stdout"; $as_echo "error: invalid character U+000c
 
23068
" | \
 
23069
  $at_diff - "$at_stdout" || at_failed=:
 
23070
at_fn_check_status 0 $at_status "$at_srcdir/json.at:316"
 
23071
$at_failed && at_fn_log_failure  \
 
23072
"input"
 
23073
$at_traceon; }
 
23074
 
 
23075
     set +x
 
23076
  $at_times_p && times >"$at_times_file"
 
23077
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23078
read at_status <"$at_status_file"
 
23079
#AT_STOP_316
 
23080
#AT_START_317
 
23081
at_fn_group_banner 317 'json.at:316' \
 
23082
  "formfeeds are not valid white space - Python" "   " 26
 
23083
at_xfail=no
 
23084
(
 
23085
  $as_echo "317. $at_setup_line: testing $at_desc ..."
 
23086
  $at_traceon
 
23087
 
 
23088
 
 
23089
   $as_echo "json.at:316" >"$at_check_line_file"
 
23090
(test $HAVE_PYTHON = no) \
 
23091
  && at_fn_check_skip 77 "$at_srcdir/json.at:316"
 
23092
   { set +x
 
23093
$as_echo "$at_srcdir/json.at:316: printf %s \"[ ]\" > input"
 
23094
at_fn_check_prepare_trace "json.at:316"
 
23095
( $at_check_trace; printf %s "[ ]" > input
 
23096
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23097
at_status=$? at_failed=false
 
23098
$at_check_filter
 
23099
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23100
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23101
at_fn_check_status 0 $at_status "$at_srcdir/json.at:316"
 
23102
$at_failed && at_fn_log_failure
 
23103
$at_traceon; }
 
23104
 
 
23105
 
 
23106
   { set +x
 
23107
$as_echo "$at_srcdir/json.at:316: \$PYTHON \$srcdir/test-json.py  input"
 
23108
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:316"
 
23109
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
23110
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23111
at_status=$? at_failed=false
 
23112
$at_check_filter
 
23113
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23114
echo stdout:; tee stdout <"$at_stdout"
 
23115
at_fn_check_status 1 $at_status "$at_srcdir/json.at:316"
 
23116
$at_failed && at_fn_log_failure  \
 
23117
"input"
 
23118
$at_traceon; }
 
23119
 
 
23120
   { set +x
 
23121
$as_echo "$at_srcdir/json.at:316: sed 's/^error: [^:]*:/error:/' < stdout"
 
23122
at_fn_check_prepare_trace "json.at:316"
 
23123
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23124
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23125
at_status=$? at_failed=false
 
23126
$at_check_filter
 
23127
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23128
echo >>"$at_stdout"; $as_echo "error: invalid character U+000c
 
23129
" | \
 
23130
  $at_diff - "$at_stdout" || at_failed=:
 
23131
at_fn_check_status 0 $at_status "$at_srcdir/json.at:316"
 
23132
$at_failed && at_fn_log_failure  \
 
23133
"input"
 
23134
$at_traceon; }
 
23135
 
 
23136
     set +x
 
23137
  $at_times_p && times >"$at_times_file"
 
23138
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23139
read at_status <"$at_status_file"
 
23140
#AT_STOP_317
 
23141
#AT_START_318
 
23142
at_fn_group_banner 318 'json.at:318' \
 
23143
  "';' is not a valid token - C" "                   " 26
 
23144
at_xfail=no
 
23145
(
 
23146
  $as_echo "318. $at_setup_line: testing $at_desc ..."
 
23147
  $at_traceon
 
23148
 
 
23149
 
 
23150
   { set +x
 
23151
$as_echo "$at_srcdir/json.at:318: printf %s \";\" > input"
 
23152
at_fn_check_prepare_trace "json.at:318"
 
23153
( $at_check_trace; printf %s ";" > input
 
23154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23155
at_status=$? at_failed=false
 
23156
$at_check_filter
 
23157
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23158
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23159
at_fn_check_status 0 $at_status "$at_srcdir/json.at:318"
 
23160
$at_failed && at_fn_log_failure
 
23161
$at_traceon; }
 
23162
 
 
23163
 
 
23164
   { set +x
 
23165
$as_echo "$at_srcdir/json.at:318: test-json  input"
 
23166
at_fn_check_prepare_trace "json.at:318"
 
23167
( $at_check_trace; test-json  input
 
23168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23169
at_status=$? at_failed=false
 
23170
$at_check_filter
 
23171
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23172
echo stdout:; tee stdout <"$at_stdout"
 
23173
at_fn_check_status 1 $at_status "$at_srcdir/json.at:318"
 
23174
$at_failed && at_fn_log_failure  \
 
23175
"input"
 
23176
$at_traceon; }
 
23177
 
 
23178
   { set +x
 
23179
$as_echo "$at_srcdir/json.at:318: sed 's/^error: [^:]*:/error:/' < stdout"
 
23180
at_fn_check_prepare_trace "json.at:318"
 
23181
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23182
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23183
at_status=$? at_failed=false
 
23184
$at_check_filter
 
23185
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23186
echo >>"$at_stdout"; $as_echo "error: invalid character ';'
 
23187
" | \
 
23188
  $at_diff - "$at_stdout" || at_failed=:
 
23189
at_fn_check_status 0 $at_status "$at_srcdir/json.at:318"
 
23190
$at_failed && at_fn_log_failure  \
 
23191
"input"
 
23192
$at_traceon; }
 
23193
 
 
23194
     set +x
 
23195
  $at_times_p && times >"$at_times_file"
 
23196
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23197
read at_status <"$at_status_file"
 
23198
#AT_STOP_318
 
23199
#AT_START_319
 
23200
at_fn_group_banner 319 'json.at:318' \
 
23201
  "';' is not a valid token - Python" "              " 26
 
23202
at_xfail=no
 
23203
(
 
23204
  $as_echo "319. $at_setup_line: testing $at_desc ..."
 
23205
  $at_traceon
 
23206
 
 
23207
 
 
23208
   $as_echo "json.at:318" >"$at_check_line_file"
 
23209
(test $HAVE_PYTHON = no) \
 
23210
  && at_fn_check_skip 77 "$at_srcdir/json.at:318"
 
23211
   { set +x
 
23212
$as_echo "$at_srcdir/json.at:318: printf %s \";\" > input"
 
23213
at_fn_check_prepare_trace "json.at:318"
 
23214
( $at_check_trace; printf %s ";" > input
 
23215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23216
at_status=$? at_failed=false
 
23217
$at_check_filter
 
23218
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23219
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23220
at_fn_check_status 0 $at_status "$at_srcdir/json.at:318"
 
23221
$at_failed && at_fn_log_failure
 
23222
$at_traceon; }
 
23223
 
 
23224
 
 
23225
   { set +x
 
23226
$as_echo "$at_srcdir/json.at:318: \$PYTHON \$srcdir/test-json.py  input"
 
23227
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:318"
 
23228
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
23229
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23230
at_status=$? at_failed=false
 
23231
$at_check_filter
 
23232
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23233
echo stdout:; tee stdout <"$at_stdout"
 
23234
at_fn_check_status 1 $at_status "$at_srcdir/json.at:318"
 
23235
$at_failed && at_fn_log_failure  \
 
23236
"input"
 
23237
$at_traceon; }
 
23238
 
 
23239
   { set +x
 
23240
$as_echo "$at_srcdir/json.at:318: sed 's/^error: [^:]*:/error:/' < stdout"
 
23241
at_fn_check_prepare_trace "json.at:318"
 
23242
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23243
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23244
at_status=$? at_failed=false
 
23245
$at_check_filter
 
23246
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23247
echo >>"$at_stdout"; $as_echo "error: invalid character ';'
 
23248
" | \
 
23249
  $at_diff - "$at_stdout" || at_failed=:
 
23250
at_fn_check_status 0 $at_status "$at_srcdir/json.at:318"
 
23251
$at_failed && at_fn_log_failure  \
 
23252
"input"
 
23253
$at_traceon; }
 
23254
 
 
23255
     set +x
 
23256
  $at_times_p && times >"$at_times_file"
 
23257
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23258
read at_status <"$at_status_file"
 
23259
#AT_STOP_319
 
23260
#AT_START_320
 
23261
at_fn_group_banner 320 'json.at:320' \
 
23262
  "arrays nesting too deep - C" "                    " 26
 
23263
at_xfail=no
 
23264
(
 
23265
  $as_echo "320. $at_setup_line: testing $at_desc ..."
 
23266
  $at_traceon
 
23267
 
 
23268
 
 
23269
   { set +x
 
23270
$as_echo "$at_srcdir/json.at:320: printf %s \"[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[                     ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]\" > input"
 
23271
at_fn_check_prepare_trace "json.at:320"
 
23272
( $at_check_trace; printf %s "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[                     ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]" > input
 
23273
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23274
at_status=$? at_failed=false
 
23275
$at_check_filter
 
23276
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23277
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23278
at_fn_check_status 0 $at_status "$at_srcdir/json.at:320"
 
23279
$at_failed && at_fn_log_failure
 
23280
$at_traceon; }
 
23281
 
 
23282
 
 
23283
   { set +x
 
23284
$as_echo "$at_srcdir/json.at:320: test-json  input"
 
23285
at_fn_check_prepare_trace "json.at:320"
 
23286
( $at_check_trace; test-json  input
 
23287
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23288
at_status=$? at_failed=false
 
23289
$at_check_filter
 
23290
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23291
echo stdout:; tee stdout <"$at_stdout"
 
23292
at_fn_check_status 1 $at_status "$at_srcdir/json.at:320"
 
23293
$at_failed && at_fn_log_failure  \
 
23294
"input"
 
23295
$at_traceon; }
 
23296
 
 
23297
   { set +x
 
23298
$as_echo "$at_srcdir/json.at:320: sed 's/^error: [^:]*:/error:/' < stdout"
 
23299
at_fn_check_prepare_trace "json.at:320"
 
23300
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23301
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23302
at_status=$? at_failed=false
 
23303
$at_check_filter
 
23304
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23305
echo >>"$at_stdout"; $as_echo "error: input exceeds maximum nesting depth 1000
 
23306
" | \
 
23307
  $at_diff - "$at_stdout" || at_failed=:
 
23308
at_fn_check_status 0 $at_status "$at_srcdir/json.at:320"
 
23309
$at_failed && at_fn_log_failure  \
 
23310
"input"
 
23311
$at_traceon; }
 
23312
 
 
23313
     set +x
 
23314
  $at_times_p && times >"$at_times_file"
 
23315
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23316
read at_status <"$at_status_file"
 
23317
#AT_STOP_320
 
23318
#AT_START_321
 
23319
at_fn_group_banner 321 'json.at:320' \
 
23320
  "arrays nesting too deep - Python" "               " 26
 
23321
at_xfail=no
 
23322
(
 
23323
  $as_echo "321. $at_setup_line: testing $at_desc ..."
 
23324
  $at_traceon
 
23325
 
 
23326
 
 
23327
   $as_echo "json.at:320" >"$at_check_line_file"
 
23328
(test $HAVE_PYTHON = no) \
 
23329
  && at_fn_check_skip 77 "$at_srcdir/json.at:320"
 
23330
   { set +x
 
23331
$as_echo "$at_srcdir/json.at:320: printf %s \"[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[                     ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]\" > input"
 
23332
at_fn_check_prepare_trace "json.at:320"
 
23333
( $at_check_trace; printf %s "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[                     ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]" > input
 
23334
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23335
at_status=$? at_failed=false
 
23336
$at_check_filter
 
23337
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23338
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23339
at_fn_check_status 0 $at_status "$at_srcdir/json.at:320"
 
23340
$at_failed && at_fn_log_failure
 
23341
$at_traceon; }
 
23342
 
 
23343
 
 
23344
   { set +x
 
23345
$as_echo "$at_srcdir/json.at:320: \$PYTHON \$srcdir/test-json.py  input"
 
23346
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:320"
 
23347
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
23348
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23349
at_status=$? at_failed=false
 
23350
$at_check_filter
 
23351
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23352
echo stdout:; tee stdout <"$at_stdout"
 
23353
at_fn_check_status 1 $at_status "$at_srcdir/json.at:320"
 
23354
$at_failed && at_fn_log_failure  \
 
23355
"input"
 
23356
$at_traceon; }
 
23357
 
 
23358
   { set +x
 
23359
$as_echo "$at_srcdir/json.at:320: sed 's/^error: [^:]*:/error:/' < stdout"
 
23360
at_fn_check_prepare_trace "json.at:320"
 
23361
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23362
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23363
at_status=$? at_failed=false
 
23364
$at_check_filter
 
23365
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23366
echo >>"$at_stdout"; $as_echo "error: input exceeds maximum nesting depth 1000
 
23367
" | \
 
23368
  $at_diff - "$at_stdout" || at_failed=:
 
23369
at_fn_check_status 0 $at_status "$at_srcdir/json.at:320"
 
23370
$at_failed && at_fn_log_failure  \
 
23371
"input"
 
23372
$at_traceon; }
 
23373
 
 
23374
     set +x
 
23375
  $at_times_p && times >"$at_times_file"
 
23376
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23377
read at_status <"$at_status_file"
 
23378
#AT_STOP_321
 
23379
#AT_START_322
 
23380
at_fn_group_banner 322 'json.at:324' \
 
23381
  "objects nesting too deep - C" "                   " 26
 
23382
at_xfail=no
 
23383
(
 
23384
  $as_echo "322. $at_setup_line: testing $at_desc ..."
 
23385
  $at_traceon
 
23386
 
 
23387
 
 
23388
   { set +x
 
23389
$as_echo "$at_srcdir/json.at:324: printf %s \"{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":                     }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\" > input"
 
23390
at_fn_check_prepare_trace "json.at:324"
 
23391
( $at_check_trace; printf %s "{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":                     }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" > input
 
23392
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23393
at_status=$? at_failed=false
 
23394
$at_check_filter
 
23395
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23396
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23397
at_fn_check_status 0 $at_status "$at_srcdir/json.at:324"
 
23398
$at_failed && at_fn_log_failure
 
23399
$at_traceon; }
 
23400
 
 
23401
 
 
23402
   { set +x
 
23403
$as_echo "$at_srcdir/json.at:324: test-json  input"
 
23404
at_fn_check_prepare_trace "json.at:324"
 
23405
( $at_check_trace; test-json  input
 
23406
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23407
at_status=$? at_failed=false
 
23408
$at_check_filter
 
23409
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23410
echo stdout:; tee stdout <"$at_stdout"
 
23411
at_fn_check_status 1 $at_status "$at_srcdir/json.at:324"
 
23412
$at_failed && at_fn_log_failure  \
 
23413
"input"
 
23414
$at_traceon; }
 
23415
 
 
23416
   { set +x
 
23417
$as_echo "$at_srcdir/json.at:324: sed 's/^error: [^:]*:/error:/' < stdout"
 
23418
at_fn_check_prepare_trace "json.at:324"
 
23419
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23421
at_status=$? at_failed=false
 
23422
$at_check_filter
 
23423
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23424
echo >>"$at_stdout"; $as_echo "error: input exceeds maximum nesting depth 1000
 
23425
" | \
 
23426
  $at_diff - "$at_stdout" || at_failed=:
 
23427
at_fn_check_status 0 $at_status "$at_srcdir/json.at:324"
 
23428
$at_failed && at_fn_log_failure  \
 
23429
"input"
 
23430
$at_traceon; }
 
23431
 
 
23432
     set +x
 
23433
  $at_times_p && times >"$at_times_file"
 
23434
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23435
read at_status <"$at_status_file"
 
23436
#AT_STOP_322
 
23437
#AT_START_323
 
23438
at_fn_group_banner 323 'json.at:324' \
 
23439
  "objects nesting too deep - Python" "              " 26
 
23440
at_xfail=no
 
23441
(
 
23442
  $as_echo "323. $at_setup_line: testing $at_desc ..."
 
23443
  $at_traceon
 
23444
 
 
23445
 
 
23446
   $as_echo "json.at:324" >"$at_check_line_file"
 
23447
(test $HAVE_PYTHON = no) \
 
23448
  && at_fn_check_skip 77 "$at_srcdir/json.at:324"
 
23449
   { set +x
 
23450
$as_echo "$at_srcdir/json.at:324: printf %s \"{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":{\\\"x\\\":                     }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\" > input"
 
23451
at_fn_check_prepare_trace "json.at:324"
 
23452
( $at_check_trace; printf %s "{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":{\"x\":                     }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}" > input
 
23453
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23454
at_status=$? at_failed=false
 
23455
$at_check_filter
 
23456
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23457
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23458
at_fn_check_status 0 $at_status "$at_srcdir/json.at:324"
 
23459
$at_failed && at_fn_log_failure
 
23460
$at_traceon; }
 
23461
 
 
23462
 
 
23463
   { set +x
 
23464
$as_echo "$at_srcdir/json.at:324: \$PYTHON \$srcdir/test-json.py  input"
 
23465
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py  input" "json.at:324"
 
23466
( $at_check_trace; $PYTHON $srcdir/test-json.py  input
 
23467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23468
at_status=$? at_failed=false
 
23469
$at_check_filter
 
23470
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23471
echo stdout:; tee stdout <"$at_stdout"
 
23472
at_fn_check_status 1 $at_status "$at_srcdir/json.at:324"
 
23473
$at_failed && at_fn_log_failure  \
 
23474
"input"
 
23475
$at_traceon; }
 
23476
 
 
23477
   { set +x
 
23478
$as_echo "$at_srcdir/json.at:324: sed 's/^error: [^:]*:/error:/' < stdout"
 
23479
at_fn_check_prepare_trace "json.at:324"
 
23480
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
23481
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23482
at_status=$? at_failed=false
 
23483
$at_check_filter
 
23484
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23485
echo >>"$at_stdout"; $as_echo "error: input exceeds maximum nesting depth 1000
 
23486
" | \
 
23487
  $at_diff - "$at_stdout" || at_failed=:
 
23488
at_fn_check_status 0 $at_status "$at_srcdir/json.at:324"
 
23489
$at_failed && at_fn_log_failure  \
 
23490
"input"
 
23491
$at_traceon; }
 
23492
 
 
23493
     set +x
 
23494
  $at_times_p && times >"$at_times_file"
 
23495
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23496
read at_status <"$at_status_file"
 
23497
#AT_STOP_323
 
23498
#AT_START_324
 
23499
at_fn_group_banner 324 'json.at:329' \
 
23500
  "input may not be empty" "                         " 26
 
23501
at_xfail=no
 
23502
(
 
23503
  $as_echo "324. $at_setup_line: testing $at_desc ..."
 
23504
  $at_traceon
 
23505
 
 
23506
 
 
23507
{ set +x
 
23508
$as_echo "$at_srcdir/json.at:331: test-json /dev/null"
 
23509
at_fn_check_prepare_trace "json.at:331"
 
23510
( $at_check_trace; test-json /dev/null
 
23511
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23512
at_status=$? at_failed=false
 
23513
$at_check_filter
 
23514
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23515
echo >>"$at_stdout"; $as_echo "error: line 0, column 0, byte 0: empty input stream
 
23516
" | \
 
23517
  $at_diff - "$at_stdout" || at_failed=:
 
23518
at_fn_check_status 1 $at_status "$at_srcdir/json.at:331"
 
23519
$at_failed && at_fn_log_failure
 
23520
$at_traceon; }
 
23521
 
 
23522
  set +x
 
23523
  $at_times_p && times >"$at_times_file"
 
23524
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23525
read at_status <"$at_status_file"
 
23526
#AT_STOP_324
 
23527
#AT_START_325
 
23528
at_fn_group_banner 325 'json.at:337' \
 
23529
  "multiple adjacent objects - C" "                  " 27
 
23530
at_xfail=no
 
23531
(
 
23532
  $as_echo "325. $at_setup_line: testing $at_desc ..."
 
23533
  $at_traceon
 
23534
 
 
23535
 
 
23536
   { set +x
 
23537
$as_echo "$at_srcdir/json.at:337: printf %s \"{}{}{}\" > input"
 
23538
at_fn_check_prepare_trace "json.at:337"
 
23539
( $at_check_trace; printf %s "{}{}{}" > input
 
23540
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23541
at_status=$? at_failed=false
 
23542
$at_check_filter
 
23543
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23544
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23545
at_fn_check_status 0 $at_status "$at_srcdir/json.at:337"
 
23546
$at_failed && at_fn_log_failure
 
23547
$at_traceon; }
 
23548
 
 
23549
 
 
23550
   { set +x
 
23551
$as_echo "$at_srcdir/json.at:337: test-json --multiple input"
 
23552
at_fn_check_prepare_trace "json.at:337"
 
23553
( $at_check_trace; test-json --multiple input
 
23554
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23555
at_status=$? at_failed=false
 
23556
$at_check_filter
 
23557
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23558
echo stdout:; tee stdout <"$at_stdout"
 
23559
at_fn_check_status 0 $at_status "$at_srcdir/json.at:337"
 
23560
$at_failed && at_fn_log_failure  \
 
23561
"input"
 
23562
$at_traceon; }
 
23563
 
 
23564
   { set +x
 
23565
$as_echo "$at_srcdir/json.at:337: cat stdout"
 
23566
at_fn_check_prepare_trace "json.at:337"
 
23567
( $at_check_trace; cat stdout
 
23568
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23569
at_status=$? at_failed=false
 
23570
$at_check_filter
 
23571
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23572
echo >>"$at_stdout"; $as_echo "{}
 
23573
{}
 
23574
{}
 
23575
" | \
 
23576
  $at_diff - "$at_stdout" || at_failed=:
 
23577
at_fn_check_status 0 $at_status "$at_srcdir/json.at:337"
 
23578
$at_failed && at_fn_log_failure  \
 
23579
"input"
 
23580
$at_traceon; }
 
23581
 
 
23582
     set +x
 
23583
  $at_times_p && times >"$at_times_file"
 
23584
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23585
read at_status <"$at_status_file"
 
23586
#AT_STOP_325
 
23587
#AT_START_326
 
23588
at_fn_group_banner 326 'json.at:337' \
 
23589
  "multiple adjacent objects - Python" "             " 27
 
23590
at_xfail=no
 
23591
(
 
23592
  $as_echo "326. $at_setup_line: testing $at_desc ..."
 
23593
  $at_traceon
 
23594
 
 
23595
 
 
23596
   $as_echo "json.at:337" >"$at_check_line_file"
 
23597
(test $HAVE_PYTHON = no) \
 
23598
  && at_fn_check_skip 77 "$at_srcdir/json.at:337"
 
23599
   { set +x
 
23600
$as_echo "$at_srcdir/json.at:337: printf %s \"{}{}{}\" > input"
 
23601
at_fn_check_prepare_trace "json.at:337"
 
23602
( $at_check_trace; printf %s "{}{}{}" > input
 
23603
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23604
at_status=$? at_failed=false
 
23605
$at_check_filter
 
23606
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23607
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23608
at_fn_check_status 0 $at_status "$at_srcdir/json.at:337"
 
23609
$at_failed && at_fn_log_failure
 
23610
$at_traceon; }
 
23611
 
 
23612
 
 
23613
   { set +x
 
23614
$as_echo "$at_srcdir/json.at:337: \$PYTHON \$srcdir/test-json.py --multiple input"
 
23615
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py --multiple input" "json.at:337"
 
23616
( $at_check_trace; $PYTHON $srcdir/test-json.py --multiple input
 
23617
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23618
at_status=$? at_failed=false
 
23619
$at_check_filter
 
23620
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23621
echo stdout:; tee stdout <"$at_stdout"
 
23622
at_fn_check_status 0 $at_status "$at_srcdir/json.at:337"
 
23623
$at_failed && at_fn_log_failure  \
 
23624
"input"
 
23625
$at_traceon; }
 
23626
 
 
23627
   { set +x
 
23628
$as_echo "$at_srcdir/json.at:337: cat stdout"
 
23629
at_fn_check_prepare_trace "json.at:337"
 
23630
( $at_check_trace; cat stdout
 
23631
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23632
at_status=$? at_failed=false
 
23633
$at_check_filter
 
23634
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23635
echo >>"$at_stdout"; $as_echo "{}
 
23636
{}
 
23637
{}
 
23638
" | \
 
23639
  $at_diff - "$at_stdout" || at_failed=:
 
23640
at_fn_check_status 0 $at_status "$at_srcdir/json.at:337"
 
23641
$at_failed && at_fn_log_failure  \
 
23642
"input"
 
23643
$at_traceon; }
 
23644
 
 
23645
     set +x
 
23646
  $at_times_p && times >"$at_times_file"
 
23647
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23648
read at_status <"$at_status_file"
 
23649
#AT_STOP_326
 
23650
#AT_START_327
 
23651
at_fn_group_banner 327 'json.at:342' \
 
23652
  "multiple space-separated objects - C" "           " 27
 
23653
at_xfail=no
 
23654
(
 
23655
  $as_echo "327. $at_setup_line: testing $at_desc ..."
 
23656
  $at_traceon
 
23657
 
 
23658
 
 
23659
   { set +x
 
23660
$as_echo "$at_srcdir/json.at:342: printf %s \"{}  {}  {}\" > input"
 
23661
at_fn_check_prepare_trace "json.at:342"
 
23662
( $at_check_trace; printf %s "{}  {}  {}" > input
 
23663
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23664
at_status=$? at_failed=false
 
23665
$at_check_filter
 
23666
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23667
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23668
at_fn_check_status 0 $at_status "$at_srcdir/json.at:342"
 
23669
$at_failed && at_fn_log_failure
 
23670
$at_traceon; }
 
23671
 
 
23672
 
 
23673
   { set +x
 
23674
$as_echo "$at_srcdir/json.at:342: test-json --multiple input"
 
23675
at_fn_check_prepare_trace "json.at:342"
 
23676
( $at_check_trace; test-json --multiple input
 
23677
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23678
at_status=$? at_failed=false
 
23679
$at_check_filter
 
23680
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23681
echo stdout:; tee stdout <"$at_stdout"
 
23682
at_fn_check_status 0 $at_status "$at_srcdir/json.at:342"
 
23683
$at_failed && at_fn_log_failure  \
 
23684
"input"
 
23685
$at_traceon; }
 
23686
 
 
23687
   { set +x
 
23688
$as_echo "$at_srcdir/json.at:342: cat stdout"
 
23689
at_fn_check_prepare_trace "json.at:342"
 
23690
( $at_check_trace; cat stdout
 
23691
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23692
at_status=$? at_failed=false
 
23693
$at_check_filter
 
23694
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23695
echo >>"$at_stdout"; $as_echo "{}
 
23696
{}
 
23697
{}
 
23698
" | \
 
23699
  $at_diff - "$at_stdout" || at_failed=:
 
23700
at_fn_check_status 0 $at_status "$at_srcdir/json.at:342"
 
23701
$at_failed && at_fn_log_failure  \
 
23702
"input"
 
23703
$at_traceon; }
 
23704
 
 
23705
     set +x
 
23706
  $at_times_p && times >"$at_times_file"
 
23707
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23708
read at_status <"$at_status_file"
 
23709
#AT_STOP_327
 
23710
#AT_START_328
 
23711
at_fn_group_banner 328 'json.at:342' \
 
23712
  "multiple space-separated objects - Python" "      " 27
 
23713
at_xfail=no
 
23714
(
 
23715
  $as_echo "328. $at_setup_line: testing $at_desc ..."
 
23716
  $at_traceon
 
23717
 
 
23718
 
 
23719
   $as_echo "json.at:342" >"$at_check_line_file"
 
23720
(test $HAVE_PYTHON = no) \
 
23721
  && at_fn_check_skip 77 "$at_srcdir/json.at:342"
 
23722
   { set +x
 
23723
$as_echo "$at_srcdir/json.at:342: printf %s \"{}  {}  {}\" > input"
 
23724
at_fn_check_prepare_trace "json.at:342"
 
23725
( $at_check_trace; printf %s "{}  {}  {}" > input
 
23726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23727
at_status=$? at_failed=false
 
23728
$at_check_filter
 
23729
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23730
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23731
at_fn_check_status 0 $at_status "$at_srcdir/json.at:342"
 
23732
$at_failed && at_fn_log_failure
 
23733
$at_traceon; }
 
23734
 
 
23735
 
 
23736
   { set +x
 
23737
$as_echo "$at_srcdir/json.at:342: \$PYTHON \$srcdir/test-json.py --multiple input"
 
23738
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py --multiple input" "json.at:342"
 
23739
( $at_check_trace; $PYTHON $srcdir/test-json.py --multiple input
 
23740
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23741
at_status=$? at_failed=false
 
23742
$at_check_filter
 
23743
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23744
echo stdout:; tee stdout <"$at_stdout"
 
23745
at_fn_check_status 0 $at_status "$at_srcdir/json.at:342"
 
23746
$at_failed && at_fn_log_failure  \
 
23747
"input"
 
23748
$at_traceon; }
 
23749
 
 
23750
   { set +x
 
23751
$as_echo "$at_srcdir/json.at:342: cat stdout"
 
23752
at_fn_check_prepare_trace "json.at:342"
 
23753
( $at_check_trace; cat stdout
 
23754
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23755
at_status=$? at_failed=false
 
23756
$at_check_filter
 
23757
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23758
echo >>"$at_stdout"; $as_echo "{}
 
23759
{}
 
23760
{}
 
23761
" | \
 
23762
  $at_diff - "$at_stdout" || at_failed=:
 
23763
at_fn_check_status 0 $at_status "$at_srcdir/json.at:342"
 
23764
$at_failed && at_fn_log_failure  \
 
23765
"input"
 
23766
$at_traceon; }
 
23767
 
 
23768
     set +x
 
23769
  $at_times_p && times >"$at_times_file"
 
23770
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23771
read at_status <"$at_status_file"
 
23772
#AT_STOP_328
 
23773
#AT_START_329
 
23774
at_fn_group_banner 329 'json.at:347' \
 
23775
  "multiple objects on separate lines - C" "         " 27
 
23776
at_xfail=no
 
23777
(
 
23778
  $as_echo "329. $at_setup_line: testing $at_desc ..."
 
23779
  $at_traceon
 
23780
 
 
23781
 
 
23782
   { set +x
 
23783
$as_echo "$at_srcdir/json.at:347: printf %s \"{}
 
23784
{}
 
23785
{}\" > input"
 
23786
at_fn_check_prepare_notrace 'an embedded newline' "json.at:347"
 
23787
( $at_check_trace; printf %s "{}
 
23788
{}
 
23789
{}" > input
 
23790
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23791
at_status=$? at_failed=false
 
23792
$at_check_filter
 
23793
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23794
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23795
at_fn_check_status 0 $at_status "$at_srcdir/json.at:347"
 
23796
$at_failed && at_fn_log_failure
 
23797
$at_traceon; }
 
23798
 
 
23799
 
 
23800
   { set +x
 
23801
$as_echo "$at_srcdir/json.at:347: test-json --multiple input"
 
23802
at_fn_check_prepare_trace "json.at:347"
 
23803
( $at_check_trace; test-json --multiple input
 
23804
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23805
at_status=$? at_failed=false
 
23806
$at_check_filter
 
23807
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23808
echo stdout:; tee stdout <"$at_stdout"
 
23809
at_fn_check_status 0 $at_status "$at_srcdir/json.at:347"
 
23810
$at_failed && at_fn_log_failure  \
 
23811
"input"
 
23812
$at_traceon; }
 
23813
 
 
23814
   { set +x
 
23815
$as_echo "$at_srcdir/json.at:347: cat stdout"
 
23816
at_fn_check_prepare_trace "json.at:347"
 
23817
( $at_check_trace; cat stdout
 
23818
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23819
at_status=$? at_failed=false
 
23820
$at_check_filter
 
23821
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23822
echo >>"$at_stdout"; $as_echo "{}
 
23823
{}
 
23824
{}
 
23825
" | \
 
23826
  $at_diff - "$at_stdout" || at_failed=:
 
23827
at_fn_check_status 0 $at_status "$at_srcdir/json.at:347"
 
23828
$at_failed && at_fn_log_failure  \
 
23829
"input"
 
23830
$at_traceon; }
 
23831
 
 
23832
     set +x
 
23833
  $at_times_p && times >"$at_times_file"
 
23834
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23835
read at_status <"$at_status_file"
 
23836
#AT_STOP_329
 
23837
#AT_START_330
 
23838
at_fn_group_banner 330 'json.at:347' \
 
23839
  "multiple objects on separate lines - Python" "    " 27
 
23840
at_xfail=no
 
23841
(
 
23842
  $as_echo "330. $at_setup_line: testing $at_desc ..."
 
23843
  $at_traceon
 
23844
 
 
23845
 
 
23846
   $as_echo "json.at:347" >"$at_check_line_file"
 
23847
(test $HAVE_PYTHON = no) \
 
23848
  && at_fn_check_skip 77 "$at_srcdir/json.at:347"
 
23849
   { set +x
 
23850
$as_echo "$at_srcdir/json.at:347: printf %s \"{}
 
23851
{}
 
23852
{}\" > input"
 
23853
at_fn_check_prepare_notrace 'an embedded newline' "json.at:347"
 
23854
( $at_check_trace; printf %s "{}
 
23855
{}
 
23856
{}" > input
 
23857
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23858
at_status=$? at_failed=false
 
23859
$at_check_filter
 
23860
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23861
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23862
at_fn_check_status 0 $at_status "$at_srcdir/json.at:347"
 
23863
$at_failed && at_fn_log_failure
 
23864
$at_traceon; }
 
23865
 
 
23866
 
 
23867
   { set +x
 
23868
$as_echo "$at_srcdir/json.at:347: \$PYTHON \$srcdir/test-json.py --multiple input"
 
23869
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py --multiple input" "json.at:347"
 
23870
( $at_check_trace; $PYTHON $srcdir/test-json.py --multiple input
 
23871
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23872
at_status=$? at_failed=false
 
23873
$at_check_filter
 
23874
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23875
echo stdout:; tee stdout <"$at_stdout"
 
23876
at_fn_check_status 0 $at_status "$at_srcdir/json.at:347"
 
23877
$at_failed && at_fn_log_failure  \
 
23878
"input"
 
23879
$at_traceon; }
 
23880
 
 
23881
   { set +x
 
23882
$as_echo "$at_srcdir/json.at:347: cat stdout"
 
23883
at_fn_check_prepare_trace "json.at:347"
 
23884
( $at_check_trace; cat stdout
 
23885
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23886
at_status=$? at_failed=false
 
23887
$at_check_filter
 
23888
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23889
echo >>"$at_stdout"; $as_echo "{}
 
23890
{}
 
23891
{}
 
23892
" | \
 
23893
  $at_diff - "$at_stdout" || at_failed=:
 
23894
at_fn_check_status 0 $at_status "$at_srcdir/json.at:347"
 
23895
$at_failed && at_fn_log_failure  \
 
23896
"input"
 
23897
$at_traceon; }
 
23898
 
 
23899
     set +x
 
23900
  $at_times_p && times >"$at_times_file"
 
23901
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23902
read at_status <"$at_status_file"
 
23903
#AT_STOP_330
 
23904
#AT_START_331
 
23905
at_fn_group_banner 331 'json.at:354' \
 
23906
  "multiple objects and arrays - C" "                " 27
 
23907
at_xfail=no
 
23908
(
 
23909
  $as_echo "331. $at_setup_line: testing $at_desc ..."
 
23910
  $at_traceon
 
23911
 
 
23912
 
 
23913
   { set +x
 
23914
$as_echo "$at_srcdir/json.at:354: printf %s \"{}[]{}[]\" > input"
 
23915
at_fn_check_prepare_trace "json.at:354"
 
23916
( $at_check_trace; printf %s "{}[]{}[]" > input
 
23917
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23918
at_status=$? at_failed=false
 
23919
$at_check_filter
 
23920
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23921
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23922
at_fn_check_status 0 $at_status "$at_srcdir/json.at:354"
 
23923
$at_failed && at_fn_log_failure
 
23924
$at_traceon; }
 
23925
 
 
23926
 
 
23927
   { set +x
 
23928
$as_echo "$at_srcdir/json.at:354: test-json --multiple input"
 
23929
at_fn_check_prepare_trace "json.at:354"
 
23930
( $at_check_trace; test-json --multiple input
 
23931
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23932
at_status=$? at_failed=false
 
23933
$at_check_filter
 
23934
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23935
echo stdout:; tee stdout <"$at_stdout"
 
23936
at_fn_check_status 0 $at_status "$at_srcdir/json.at:354"
 
23937
$at_failed && at_fn_log_failure  \
 
23938
"input"
 
23939
$at_traceon; }
 
23940
 
 
23941
   { set +x
 
23942
$as_echo "$at_srcdir/json.at:354: cat stdout"
 
23943
at_fn_check_prepare_trace "json.at:354"
 
23944
( $at_check_trace; cat stdout
 
23945
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23946
at_status=$? at_failed=false
 
23947
$at_check_filter
 
23948
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23949
echo >>"$at_stdout"; $as_echo "{}
 
23950
[]
 
23951
{}
 
23952
[]
 
23953
" | \
 
23954
  $at_diff - "$at_stdout" || at_failed=:
 
23955
at_fn_check_status 0 $at_status "$at_srcdir/json.at:354"
 
23956
$at_failed && at_fn_log_failure  \
 
23957
"input"
 
23958
$at_traceon; }
 
23959
 
 
23960
     set +x
 
23961
  $at_times_p && times >"$at_times_file"
 
23962
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
23963
read at_status <"$at_status_file"
 
23964
#AT_STOP_331
 
23965
#AT_START_332
 
23966
at_fn_group_banner 332 'json.at:354' \
 
23967
  "multiple objects and arrays - Python" "           " 27
 
23968
at_xfail=no
 
23969
(
 
23970
  $as_echo "332. $at_setup_line: testing $at_desc ..."
 
23971
  $at_traceon
 
23972
 
 
23973
 
 
23974
   $as_echo "json.at:354" >"$at_check_line_file"
 
23975
(test $HAVE_PYTHON = no) \
 
23976
  && at_fn_check_skip 77 "$at_srcdir/json.at:354"
 
23977
   { set +x
 
23978
$as_echo "$at_srcdir/json.at:354: printf %s \"{}[]{}[]\" > input"
 
23979
at_fn_check_prepare_trace "json.at:354"
 
23980
( $at_check_trace; printf %s "{}[]{}[]" > input
 
23981
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23982
at_status=$? at_failed=false
 
23983
$at_check_filter
 
23984
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23985
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
23986
at_fn_check_status 0 $at_status "$at_srcdir/json.at:354"
 
23987
$at_failed && at_fn_log_failure
 
23988
$at_traceon; }
 
23989
 
 
23990
 
 
23991
   { set +x
 
23992
$as_echo "$at_srcdir/json.at:354: \$PYTHON \$srcdir/test-json.py --multiple input"
 
23993
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py --multiple input" "json.at:354"
 
23994
( $at_check_trace; $PYTHON $srcdir/test-json.py --multiple input
 
23995
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
23996
at_status=$? at_failed=false
 
23997
$at_check_filter
 
23998
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
23999
echo stdout:; tee stdout <"$at_stdout"
 
24000
at_fn_check_status 0 $at_status "$at_srcdir/json.at:354"
 
24001
$at_failed && at_fn_log_failure  \
 
24002
"input"
 
24003
$at_traceon; }
 
24004
 
 
24005
   { set +x
 
24006
$as_echo "$at_srcdir/json.at:354: cat stdout"
 
24007
at_fn_check_prepare_trace "json.at:354"
 
24008
( $at_check_trace; cat stdout
 
24009
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24010
at_status=$? at_failed=false
 
24011
$at_check_filter
 
24012
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24013
echo >>"$at_stdout"; $as_echo "{}
 
24014
[]
 
24015
{}
 
24016
[]
 
24017
" | \
 
24018
  $at_diff - "$at_stdout" || at_failed=:
 
24019
at_fn_check_status 0 $at_status "$at_srcdir/json.at:354"
 
24020
$at_failed && at_fn_log_failure  \
 
24021
"input"
 
24022
$at_traceon; }
 
24023
 
 
24024
     set +x
 
24025
  $at_times_p && times >"$at_times_file"
 
24026
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24027
read at_status <"$at_status_file"
 
24028
#AT_STOP_332
 
24029
#AT_START_333
 
24030
at_fn_group_banner 333 'json.at:360' \
 
24031
  "garbage between multiple objects - C" "           " 27
 
24032
at_xfail=no
 
24033
(
 
24034
  $as_echo "333. $at_setup_line: testing $at_desc ..."
 
24035
  $at_traceon
 
24036
 
 
24037
 
 
24038
   { set +x
 
24039
$as_echo "$at_srcdir/json.at:360: printf %s \"{}x{}\" > input"
 
24040
at_fn_check_prepare_trace "json.at:360"
 
24041
( $at_check_trace; printf %s "{}x{}" > input
 
24042
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24043
at_status=$? at_failed=false
 
24044
$at_check_filter
 
24045
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24046
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24047
at_fn_check_status 0 $at_status "$at_srcdir/json.at:360"
 
24048
$at_failed && at_fn_log_failure
 
24049
$at_traceon; }
 
24050
 
 
24051
 
 
24052
   { set +x
 
24053
$as_echo "$at_srcdir/json.at:360: test-json --multiple input"
 
24054
at_fn_check_prepare_trace "json.at:360"
 
24055
( $at_check_trace; test-json --multiple input
 
24056
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24057
at_status=$? at_failed=false
 
24058
$at_check_filter
 
24059
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24060
echo stdout:; tee stdout <"$at_stdout"
 
24061
at_fn_check_status 1 $at_status "$at_srcdir/json.at:360"
 
24062
$at_failed && at_fn_log_failure  \
 
24063
"input"
 
24064
$at_traceon; }
 
24065
 
 
24066
   { set +x
 
24067
$as_echo "$at_srcdir/json.at:360: sed 's/^error: [^:]*:/error:/' < stdout"
 
24068
at_fn_check_prepare_trace "json.at:360"
 
24069
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
24070
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24071
at_status=$? at_failed=false
 
24072
$at_check_filter
 
24073
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24074
echo >>"$at_stdout"; $as_echo "{}
 
24075
error: invalid keyword 'x'
 
24076
{}
 
24077
" | \
 
24078
  $at_diff - "$at_stdout" || at_failed=:
 
24079
at_fn_check_status 0 $at_status "$at_srcdir/json.at:360"
 
24080
$at_failed && at_fn_log_failure  \
 
24081
"input"
 
24082
$at_traceon; }
 
24083
 
 
24084
     set +x
 
24085
  $at_times_p && times >"$at_times_file"
 
24086
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24087
read at_status <"$at_status_file"
 
24088
#AT_STOP_333
 
24089
#AT_START_334
 
24090
at_fn_group_banner 334 'json.at:360' \
 
24091
  "garbage between multiple objects - Python" "      " 27
 
24092
at_xfail=no
 
24093
(
 
24094
  $as_echo "334. $at_setup_line: testing $at_desc ..."
 
24095
  $at_traceon
 
24096
 
 
24097
 
 
24098
   $as_echo "json.at:360" >"$at_check_line_file"
 
24099
(test $HAVE_PYTHON = no) \
 
24100
  && at_fn_check_skip 77 "$at_srcdir/json.at:360"
 
24101
   { set +x
 
24102
$as_echo "$at_srcdir/json.at:360: printf %s \"{}x{}\" > input"
 
24103
at_fn_check_prepare_trace "json.at:360"
 
24104
( $at_check_trace; printf %s "{}x{}" > input
 
24105
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24106
at_status=$? at_failed=false
 
24107
$at_check_filter
 
24108
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24109
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24110
at_fn_check_status 0 $at_status "$at_srcdir/json.at:360"
 
24111
$at_failed && at_fn_log_failure
 
24112
$at_traceon; }
 
24113
 
 
24114
 
 
24115
   { set +x
 
24116
$as_echo "$at_srcdir/json.at:360: \$PYTHON \$srcdir/test-json.py --multiple input"
 
24117
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py --multiple input" "json.at:360"
 
24118
( $at_check_trace; $PYTHON $srcdir/test-json.py --multiple input
 
24119
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24120
at_status=$? at_failed=false
 
24121
$at_check_filter
 
24122
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24123
echo stdout:; tee stdout <"$at_stdout"
 
24124
at_fn_check_status 1 $at_status "$at_srcdir/json.at:360"
 
24125
$at_failed && at_fn_log_failure  \
 
24126
"input"
 
24127
$at_traceon; }
 
24128
 
 
24129
   { set +x
 
24130
$as_echo "$at_srcdir/json.at:360: sed 's/^error: [^:]*:/error:/' < stdout"
 
24131
at_fn_check_prepare_trace "json.at:360"
 
24132
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
24133
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24134
at_status=$? at_failed=false
 
24135
$at_check_filter
 
24136
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24137
echo >>"$at_stdout"; $as_echo "{}
 
24138
error: invalid keyword 'x'
 
24139
{}
 
24140
" | \
 
24141
  $at_diff - "$at_stdout" || at_failed=:
 
24142
at_fn_check_status 0 $at_status "$at_srcdir/json.at:360"
 
24143
$at_failed && at_fn_log_failure  \
 
24144
"input"
 
24145
$at_traceon; }
 
24146
 
 
24147
     set +x
 
24148
  $at_times_p && times >"$at_times_file"
 
24149
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24150
read at_status <"$at_status_file"
 
24151
#AT_STOP_334
 
24152
#AT_START_335
 
24153
at_fn_group_banner 335 'json.at:364' \
 
24154
  "garbage after multiple objects - C" "             " 27
 
24155
at_xfail=no
 
24156
(
 
24157
  $as_echo "335. $at_setup_line: testing $at_desc ..."
 
24158
  $at_traceon
 
24159
 
 
24160
 
 
24161
   { set +x
 
24162
$as_echo "$at_srcdir/json.at:364: printf %s \"{}{}x\" > input"
 
24163
at_fn_check_prepare_trace "json.at:364"
 
24164
( $at_check_trace; printf %s "{}{}x" > input
 
24165
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24166
at_status=$? at_failed=false
 
24167
$at_check_filter
 
24168
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24169
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24170
at_fn_check_status 0 $at_status "$at_srcdir/json.at:364"
 
24171
$at_failed && at_fn_log_failure
 
24172
$at_traceon; }
 
24173
 
 
24174
 
 
24175
   { set +x
 
24176
$as_echo "$at_srcdir/json.at:364: test-json --multiple input"
 
24177
at_fn_check_prepare_trace "json.at:364"
 
24178
( $at_check_trace; test-json --multiple input
 
24179
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24180
at_status=$? at_failed=false
 
24181
$at_check_filter
 
24182
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24183
echo stdout:; tee stdout <"$at_stdout"
 
24184
at_fn_check_status 1 $at_status "$at_srcdir/json.at:364"
 
24185
$at_failed && at_fn_log_failure  \
 
24186
"input"
 
24187
$at_traceon; }
 
24188
 
 
24189
   { set +x
 
24190
$as_echo "$at_srcdir/json.at:364: sed 's/^error: [^:]*:/error:/' < stdout"
 
24191
at_fn_check_prepare_trace "json.at:364"
 
24192
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
24193
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24194
at_status=$? at_failed=false
 
24195
$at_check_filter
 
24196
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24197
echo >>"$at_stdout"; $as_echo "{}
 
24198
{}
 
24199
error: invalid keyword 'x'
 
24200
" | \
 
24201
  $at_diff - "$at_stdout" || at_failed=:
 
24202
at_fn_check_status 0 $at_status "$at_srcdir/json.at:364"
 
24203
$at_failed && at_fn_log_failure  \
 
24204
"input"
 
24205
$at_traceon; }
 
24206
 
 
24207
     set +x
 
24208
  $at_times_p && times >"$at_times_file"
 
24209
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24210
read at_status <"$at_status_file"
 
24211
#AT_STOP_335
 
24212
#AT_START_336
 
24213
at_fn_group_banner 336 'json.at:364' \
 
24214
  "garbage after multiple objects - Python" "        " 27
 
24215
at_xfail=no
 
24216
(
 
24217
  $as_echo "336. $at_setup_line: testing $at_desc ..."
 
24218
  $at_traceon
 
24219
 
 
24220
 
 
24221
   $as_echo "json.at:364" >"$at_check_line_file"
 
24222
(test $HAVE_PYTHON = no) \
 
24223
  && at_fn_check_skip 77 "$at_srcdir/json.at:364"
 
24224
   { set +x
 
24225
$as_echo "$at_srcdir/json.at:364: printf %s \"{}{}x\" > input"
 
24226
at_fn_check_prepare_trace "json.at:364"
 
24227
( $at_check_trace; printf %s "{}{}x" > input
 
24228
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24229
at_status=$? at_failed=false
 
24230
$at_check_filter
 
24231
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24232
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24233
at_fn_check_status 0 $at_status "$at_srcdir/json.at:364"
 
24234
$at_failed && at_fn_log_failure
 
24235
$at_traceon; }
 
24236
 
 
24237
 
 
24238
   { set +x
 
24239
$as_echo "$at_srcdir/json.at:364: \$PYTHON \$srcdir/test-json.py --multiple input"
 
24240
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-json.py --multiple input" "json.at:364"
 
24241
( $at_check_trace; $PYTHON $srcdir/test-json.py --multiple input
 
24242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24243
at_status=$? at_failed=false
 
24244
$at_check_filter
 
24245
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24246
echo stdout:; tee stdout <"$at_stdout"
 
24247
at_fn_check_status 1 $at_status "$at_srcdir/json.at:364"
 
24248
$at_failed && at_fn_log_failure  \
 
24249
"input"
 
24250
$at_traceon; }
 
24251
 
 
24252
   { set +x
 
24253
$as_echo "$at_srcdir/json.at:364: sed 's/^error: [^:]*:/error:/' < stdout"
 
24254
at_fn_check_prepare_trace "json.at:364"
 
24255
( $at_check_trace; sed 's/^error: [^:]*:/error:/' < stdout
 
24256
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24257
at_status=$? at_failed=false
 
24258
$at_check_filter
 
24259
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24260
echo >>"$at_stdout"; $as_echo "{}
 
24261
{}
 
24262
error: invalid keyword 'x'
 
24263
" | \
 
24264
  $at_diff - "$at_stdout" || at_failed=:
 
24265
at_fn_check_status 0 $at_status "$at_srcdir/json.at:364"
 
24266
$at_failed && at_fn_log_failure  \
 
24267
"input"
 
24268
$at_traceon; }
 
24269
 
 
24270
     set +x
 
24271
  $at_times_p && times >"$at_times_file"
 
24272
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24273
read at_status <"$at_status_file"
 
24274
#AT_STOP_336
 
24275
#AT_START_337
 
24276
at_fn_group_banner 337 'jsonrpc.at:3' \
 
24277
  "JSON-RPC request and successful reply" "          " 28
 
24278
at_xfail=no
 
24279
(
 
24280
  $as_echo "337. $at_setup_line: testing $at_desc ..."
 
24281
  $at_traceon
 
24282
 
 
24283
{ set +x
 
24284
$as_echo "$at_srcdir/jsonrpc.at:4: test-jsonrpc --detach --pidfile=\$PWD/pid listen punix:socket"
 
24285
at_fn_check_prepare_dynamic "test-jsonrpc --detach --pidfile=$PWD/pid listen punix:socket" "jsonrpc.at:4"
 
24286
( $at_check_trace; test-jsonrpc --detach --pidfile=$PWD/pid listen punix:socket
 
24287
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24288
at_status=$? at_failed=false
 
24289
$at_check_filter
 
24290
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24291
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24292
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:4"
 
24293
$at_failed && at_fn_log_failure
 
24294
$at_traceon; }
 
24295
 
 
24296
{ set +x
 
24297
$as_echo "$at_srcdir/jsonrpc.at:5: test -s pid"
 
24298
at_fn_check_prepare_trace "jsonrpc.at:5"
 
24299
( $at_check_trace; test -s pid
 
24300
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24301
at_status=$? at_failed=false
 
24302
$at_check_filter
 
24303
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24304
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24305
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:5"
 
24306
$at_failed && at_fn_log_failure
 
24307
$at_traceon; }
 
24308
 
 
24309
{ set +x
 
24310
$as_echo "$at_srcdir/jsonrpc.at:6: kill -0 \`cat pid\`"
 
24311
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc.at:6"
 
24312
( $at_check_trace; kill -0 `cat pid`
 
24313
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24314
at_status=$? at_failed=false
 
24315
$at_check_filter
 
24316
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24317
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24318
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:6"
 
24319
$at_failed && at_fn_log_failure
 
24320
$at_traceon; }
 
24321
 
 
24322
{ set +x
 
24323
$as_echo "$at_srcdir/jsonrpc.at:7: test-jsonrpc request unix:socket echo '[{\"a\": \"b\", \"x\": null}]'"
 
24324
at_fn_check_prepare_trace "jsonrpc.at:7"
 
24325
( $at_check_trace; test-jsonrpc request unix:socket echo '[{"a": "b", "x": null}]'
 
24326
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24327
at_status=$? at_failed=false
 
24328
$at_check_filter
 
24329
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24330
echo >>"$at_stdout"; $as_echo "{\"error\":null,\"id\":0,\"result\":[{\"a\":\"b\",\"x\":null}]}
 
24331
" | \
 
24332
  $at_diff - "$at_stdout" || at_failed=:
 
24333
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:7"
 
24334
if $at_failed; then :
 
24335
  test ! -e pid || kill `cat pid`
 
24336
fi
 
24337
$at_failed && at_fn_log_failure
 
24338
$at_traceon; }
 
24339
 
 
24340
{ set +x
 
24341
$as_echo "$at_srcdir/jsonrpc.at:11: kill \`cat pid\`"
 
24342
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc.at:11"
 
24343
( $at_check_trace; kill `cat pid`
 
24344
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24345
at_status=$? at_failed=false
 
24346
$at_check_filter
 
24347
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24348
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24349
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:11"
 
24350
$at_failed && at_fn_log_failure
 
24351
$at_traceon; }
 
24352
 
 
24353
  set +x
 
24354
  $at_times_p && times >"$at_times_file"
 
24355
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24356
read at_status <"$at_status_file"
 
24357
#AT_STOP_337
 
24358
#AT_START_338
 
24359
at_fn_group_banner 338 'jsonrpc.at:14' \
 
24360
  "JSON-RPC request and error reply" "               " 28
 
24361
at_xfail=no
 
24362
(
 
24363
  $as_echo "338. $at_setup_line: testing $at_desc ..."
 
24364
  $at_traceon
 
24365
 
 
24366
{ set +x
 
24367
$as_echo "$at_srcdir/jsonrpc.at:15: test-jsonrpc --detach --pidfile=\$PWD/pid listen punix:socket"
 
24368
at_fn_check_prepare_dynamic "test-jsonrpc --detach --pidfile=$PWD/pid listen punix:socket" "jsonrpc.at:15"
 
24369
( $at_check_trace; test-jsonrpc --detach --pidfile=$PWD/pid listen punix:socket
 
24370
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24371
at_status=$? at_failed=false
 
24372
$at_check_filter
 
24373
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24374
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24375
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:15"
 
24376
$at_failed && at_fn_log_failure
 
24377
$at_traceon; }
 
24378
 
 
24379
{ set +x
 
24380
$as_echo "$at_srcdir/jsonrpc.at:16: test -s pid"
 
24381
at_fn_check_prepare_trace "jsonrpc.at:16"
 
24382
( $at_check_trace; test -s pid
 
24383
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24384
at_status=$? at_failed=false
 
24385
$at_check_filter
 
24386
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24387
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24388
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:16"
 
24389
$at_failed && at_fn_log_failure
 
24390
$at_traceon; }
 
24391
 
 
24392
{ set +x
 
24393
$as_echo "$at_srcdir/jsonrpc.at:17: kill -0 \`cat pid\`"
 
24394
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc.at:17"
 
24395
( $at_check_trace; kill -0 `cat pid`
 
24396
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24397
at_status=$? at_failed=false
 
24398
$at_check_filter
 
24399
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24400
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24401
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:17"
 
24402
$at_failed && at_fn_log_failure
 
24403
$at_traceon; }
 
24404
 
 
24405
{ set +x
 
24406
$as_echo "$at_srcdir/jsonrpc.at:18: test-jsonrpc request unix:socket bad-request '[]'"
 
24407
at_fn_check_prepare_trace "jsonrpc.at:18"
 
24408
( $at_check_trace; test-jsonrpc request unix:socket bad-request '[]'
 
24409
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24410
at_status=$? at_failed=false
 
24411
$at_check_filter
 
24412
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24413
echo >>"$at_stdout"; $as_echo "{\"error\":{\"error\":\"unknown method\"},\"id\":0,\"result\":null}
 
24414
" | \
 
24415
  $at_diff - "$at_stdout" || at_failed=:
 
24416
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:18"
 
24417
if $at_failed; then :
 
24418
  test ! -e pid || kill `cat pid`
 
24419
fi
 
24420
$at_failed && at_fn_log_failure
 
24421
$at_traceon; }
 
24422
 
 
24423
{ set +x
 
24424
$as_echo "$at_srcdir/jsonrpc.at:22: kill \`cat pid\`"
 
24425
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc.at:22"
 
24426
( $at_check_trace; kill `cat pid`
 
24427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24428
at_status=$? at_failed=false
 
24429
$at_check_filter
 
24430
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24431
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24432
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:22"
 
24433
$at_failed && at_fn_log_failure
 
24434
$at_traceon; }
 
24435
 
 
24436
  set +x
 
24437
  $at_times_p && times >"$at_times_file"
 
24438
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24439
read at_status <"$at_status_file"
 
24440
#AT_STOP_338
 
24441
#AT_START_339
 
24442
at_fn_group_banner 339 'jsonrpc.at:25' \
 
24443
  "JSON-RPC notification" "                          " 28
 
24444
at_xfail=no
 
24445
(
 
24446
  $as_echo "339. $at_setup_line: testing $at_desc ..."
 
24447
  $at_traceon
 
24448
 
 
24449
{ set +x
 
24450
$as_echo "$at_srcdir/jsonrpc.at:26: test-jsonrpc --detach --pidfile=\$PWD/pid listen punix:socket"
 
24451
at_fn_check_prepare_dynamic "test-jsonrpc --detach --pidfile=$PWD/pid listen punix:socket" "jsonrpc.at:26"
 
24452
( $at_check_trace; test-jsonrpc --detach --pidfile=$PWD/pid listen punix:socket
 
24453
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24454
at_status=$? at_failed=false
 
24455
$at_check_filter
 
24456
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24457
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24458
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:26"
 
24459
$at_failed && at_fn_log_failure
 
24460
$at_traceon; }
 
24461
 
 
24462
{ set +x
 
24463
$as_echo "$at_srcdir/jsonrpc.at:27: test -s pid"
 
24464
at_fn_check_prepare_trace "jsonrpc.at:27"
 
24465
( $at_check_trace; test -s pid
 
24466
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24467
at_status=$? at_failed=false
 
24468
$at_check_filter
 
24469
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24470
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24471
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:27"
 
24472
$at_failed && at_fn_log_failure
 
24473
$at_traceon; }
 
24474
 
 
24475
# When a daemon dies it deletes its pidfile, so make a copy.
 
24476
{ set +x
 
24477
$as_echo "$at_srcdir/jsonrpc.at:29: cp pid pid2"
 
24478
at_fn_check_prepare_trace "jsonrpc.at:29"
 
24479
( $at_check_trace; cp pid pid2
 
24480
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24481
at_status=$? at_failed=false
 
24482
$at_check_filter
 
24483
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24484
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24485
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:29"
 
24486
$at_failed && at_fn_log_failure
 
24487
$at_traceon; }
 
24488
 
 
24489
{ set +x
 
24490
$as_echo "$at_srcdir/jsonrpc.at:30: kill -0 \`cat pid2\`"
 
24491
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc.at:30"
 
24492
( $at_check_trace; kill -0 `cat pid2`
 
24493
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24494
at_status=$? at_failed=false
 
24495
$at_check_filter
 
24496
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24497
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24498
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:30"
 
24499
$at_failed && at_fn_log_failure
 
24500
$at_traceon; }
 
24501
 
 
24502
{ set +x
 
24503
$as_echo "$at_srcdir/jsonrpc.at:31: test-jsonrpc notify unix:socket shutdown '[]'"
 
24504
at_fn_check_prepare_trace "jsonrpc.at:31"
 
24505
( $at_check_trace; test-jsonrpc notify unix:socket shutdown '[]'
 
24506
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24507
at_status=$? at_failed=false
 
24508
$at_check_filter
 
24509
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24510
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24511
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:31"
 
24512
if $at_failed; then :
 
24513
  kill `cat pid2`
 
24514
fi
 
24515
$at_failed && at_fn_log_failure
 
24516
$at_traceon; }
 
24517
 
 
24518
{ set +x
 
24519
$as_echo "$at_srcdir/jsonrpc.at:33: pid=\`cat pid2\`
 
24520
   # First try a quick sleep, so that the test completes very quickly
 
24521
   # in the normal case.  POSIX doesn't require fractional times to
 
24522
   # work, so this might not work.
 
24523
   sleep 0.1; if kill -0 \$pid; then :; else echo success; exit 0; fi
 
24524
   # Then wait up to 2 seconds.
 
24525
   sleep 1; if kill -0 \$pid; then :; else echo success; exit 0; fi
 
24526
   sleep 1; if kill -0 \$pid; then :; else echo success; exit 0; fi
 
24527
   echo failure; exit 1"
 
24528
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc.at:33"
 
24529
( $at_check_trace; pid=`cat pid2`
 
24530
   # First try a quick sleep, so that the test completes very quickly
 
24531
   # in the normal case.  POSIX doesn't require fractional times to
 
24532
   # work, so this might not work.
 
24533
   sleep 0.1; if kill -0 $pid; then :; else echo success; exit 0; fi
 
24534
   # Then wait up to 2 seconds.
 
24535
   sleep 1; if kill -0 $pid; then :; else echo success; exit 0; fi
 
24536
   sleep 1; if kill -0 $pid; then :; else echo success; exit 0; fi
 
24537
   echo failure; exit 1
 
24538
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24539
at_status=$? at_failed=false
 
24540
$at_check_filter
 
24541
echo stderr:; cat "$at_stderr"
 
24542
echo >>"$at_stdout"; $as_echo "success
 
24543
" | \
 
24544
  $at_diff - "$at_stdout" || at_failed=:
 
24545
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:33"
 
24546
$at_failed && at_fn_log_failure
 
24547
$at_traceon; }
 
24548
 
 
24549
{ set +x
 
24550
$as_echo "$at_srcdir/jsonrpc.at:44: test ! -e pid"
 
24551
at_fn_check_prepare_trace "jsonrpc.at:44"
 
24552
( $at_check_trace; test ! -e pid
 
24553
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24554
at_status=$? at_failed=false
 
24555
$at_check_filter
 
24556
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24557
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24558
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc.at:44"
 
24559
$at_failed && at_fn_log_failure
 
24560
$at_traceon; }
 
24561
 
 
24562
  set +x
 
24563
  $at_times_p && times >"$at_times_file"
 
24564
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24565
read at_status <"$at_status_file"
 
24566
#AT_STOP_339
 
24567
#AT_START_340
 
24568
at_fn_group_banner 340 'jsonrpc-py.at:3' \
 
24569
  "JSON-RPC request and successful reply - Python" " " 29
 
24570
at_xfail=no
 
24571
(
 
24572
  $as_echo "340. $at_setup_line: testing $at_desc ..."
 
24573
  $at_traceon
 
24574
 
 
24575
$as_echo "jsonrpc-py.at:4" >"$at_check_line_file"
 
24576
(test $HAVE_PYTHON = no) \
 
24577
  && at_fn_check_skip 77 "$at_srcdir/jsonrpc-py.at:4"
 
24578
{ set +x
 
24579
$as_echo "$at_srcdir/jsonrpc-py.at:5: \$PYTHON \$srcdir/test-jsonrpc.py --detach --pidfile=\`pwd\`/pid listen punix:socket"
 
24580
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:5"
 
24581
( $at_check_trace; $PYTHON $srcdir/test-jsonrpc.py --detach --pidfile=`pwd`/pid listen punix:socket
 
24582
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24583
at_status=$? at_failed=false
 
24584
$at_check_filter
 
24585
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24586
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24587
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:5"
 
24588
$at_failed && at_fn_log_failure
 
24589
$at_traceon; }
 
24590
 
 
24591
{ set +x
 
24592
$as_echo "$at_srcdir/jsonrpc-py.at:6: test -s pid"
 
24593
at_fn_check_prepare_trace "jsonrpc-py.at:6"
 
24594
( $at_check_trace; test -s pid
 
24595
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24596
at_status=$? at_failed=false
 
24597
$at_check_filter
 
24598
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24599
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24600
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:6"
 
24601
$at_failed && at_fn_log_failure
 
24602
$at_traceon; }
 
24603
 
 
24604
{ set +x
 
24605
$as_echo "$at_srcdir/jsonrpc-py.at:7: kill -0 \`cat pid\`"
 
24606
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:7"
 
24607
( $at_check_trace; kill -0 `cat pid`
 
24608
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24609
at_status=$? at_failed=false
 
24610
$at_check_filter
 
24611
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24612
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24613
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:7"
 
24614
$at_failed && at_fn_log_failure
 
24615
$at_traceon; }
 
24616
 
 
24617
{ set +x
 
24618
$as_echo "$at_srcdir/jsonrpc-py.at:8: \$PYTHON \$srcdir/test-jsonrpc.py request unix:socket echo '[{\"a\": \"b\", \"x\": null}]'"
 
24619
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-jsonrpc.py request unix:socket echo '[{\"a\": \"b\", \"x\": null}]'" "jsonrpc-py.at:8"
 
24620
( $at_check_trace; $PYTHON $srcdir/test-jsonrpc.py request unix:socket echo '[{"a": "b", "x": null}]'
 
24621
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24622
at_status=$? at_failed=false
 
24623
$at_check_filter
 
24624
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24625
echo >>"$at_stdout"; $as_echo "{\"error\":null,\"id\":0,\"result\":[{\"a\":\"b\",\"x\":null}]}
 
24626
" | \
 
24627
  $at_diff - "$at_stdout" || at_failed=:
 
24628
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:8"
 
24629
if $at_failed; then :
 
24630
  test ! -e pid || kill `cat pid`
 
24631
fi
 
24632
$at_failed && at_fn_log_failure
 
24633
$at_traceon; }
 
24634
 
 
24635
{ set +x
 
24636
$as_echo "$at_srcdir/jsonrpc-py.at:12: kill \`cat pid\`"
 
24637
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:12"
 
24638
( $at_check_trace; kill `cat pid`
 
24639
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24640
at_status=$? at_failed=false
 
24641
$at_check_filter
 
24642
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24643
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24644
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:12"
 
24645
$at_failed && at_fn_log_failure
 
24646
$at_traceon; }
 
24647
 
 
24648
  set +x
 
24649
  $at_times_p && times >"$at_times_file"
 
24650
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24651
read at_status <"$at_status_file"
 
24652
#AT_STOP_340
 
24653
#AT_START_341
 
24654
at_fn_group_banner 341 'jsonrpc-py.at:15' \
 
24655
  "JSON-RPC request and error reply - Python" "      " 29
 
24656
at_xfail=no
 
24657
(
 
24658
  $as_echo "341. $at_setup_line: testing $at_desc ..."
 
24659
  $at_traceon
 
24660
 
 
24661
$as_echo "jsonrpc-py.at:16" >"$at_check_line_file"
 
24662
(test $HAVE_PYTHON = no) \
 
24663
  && at_fn_check_skip 77 "$at_srcdir/jsonrpc-py.at:16"
 
24664
{ set +x
 
24665
$as_echo "$at_srcdir/jsonrpc-py.at:17: \$PYTHON \$srcdir/test-jsonrpc.py --detach --pidfile=\`pwd\`/pid listen punix:socket"
 
24666
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:17"
 
24667
( $at_check_trace; $PYTHON $srcdir/test-jsonrpc.py --detach --pidfile=`pwd`/pid listen punix:socket
 
24668
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24669
at_status=$? at_failed=false
 
24670
$at_check_filter
 
24671
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24672
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24673
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:17"
 
24674
$at_failed && at_fn_log_failure
 
24675
$at_traceon; }
 
24676
 
 
24677
{ set +x
 
24678
$as_echo "$at_srcdir/jsonrpc-py.at:18: test -s pid"
 
24679
at_fn_check_prepare_trace "jsonrpc-py.at:18"
 
24680
( $at_check_trace; test -s pid
 
24681
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24682
at_status=$? at_failed=false
 
24683
$at_check_filter
 
24684
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24685
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24686
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:18"
 
24687
$at_failed && at_fn_log_failure
 
24688
$at_traceon; }
 
24689
 
 
24690
{ set +x
 
24691
$as_echo "$at_srcdir/jsonrpc-py.at:19: kill -0 \`cat pid\`"
 
24692
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:19"
 
24693
( $at_check_trace; kill -0 `cat pid`
 
24694
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24695
at_status=$? at_failed=false
 
24696
$at_check_filter
 
24697
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24698
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24699
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:19"
 
24700
$at_failed && at_fn_log_failure
 
24701
$at_traceon; }
 
24702
 
 
24703
{ set +x
 
24704
$as_echo "$at_srcdir/jsonrpc-py.at:20: \$PYTHON \$srcdir/test-jsonrpc.py request unix:socket bad-request '[]'"
 
24705
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-jsonrpc.py request unix:socket bad-request '[]'" "jsonrpc-py.at:20"
 
24706
( $at_check_trace; $PYTHON $srcdir/test-jsonrpc.py request unix:socket bad-request '[]'
 
24707
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24708
at_status=$? at_failed=false
 
24709
$at_check_filter
 
24710
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24711
echo >>"$at_stdout"; $as_echo "{\"error\":{\"error\":\"unknown method\"},\"id\":0,\"result\":null}
 
24712
" | \
 
24713
  $at_diff - "$at_stdout" || at_failed=:
 
24714
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:20"
 
24715
if $at_failed; then :
 
24716
  test ! -e pid || kill `cat pid`
 
24717
fi
 
24718
$at_failed && at_fn_log_failure
 
24719
$at_traceon; }
 
24720
 
 
24721
{ set +x
 
24722
$as_echo "$at_srcdir/jsonrpc-py.at:24: kill \`cat pid\`"
 
24723
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:24"
 
24724
( $at_check_trace; kill `cat pid`
 
24725
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24726
at_status=$? at_failed=false
 
24727
$at_check_filter
 
24728
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24729
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24730
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:24"
 
24731
$at_failed && at_fn_log_failure
 
24732
$at_traceon; }
 
24733
 
 
24734
  set +x
 
24735
  $at_times_p && times >"$at_times_file"
 
24736
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24737
read at_status <"$at_status_file"
 
24738
#AT_STOP_341
 
24739
#AT_START_342
 
24740
at_fn_group_banner 342 'jsonrpc-py.at:27' \
 
24741
  "JSON-RPC notification - Python" "                 " 29
 
24742
at_xfail=no
 
24743
(
 
24744
  $as_echo "342. $at_setup_line: testing $at_desc ..."
 
24745
  $at_traceon
 
24746
 
 
24747
$as_echo "jsonrpc-py.at:28" >"$at_check_line_file"
 
24748
(test $HAVE_PYTHON = no) \
 
24749
  && at_fn_check_skip 77 "$at_srcdir/jsonrpc-py.at:28"
 
24750
{ set +x
 
24751
$as_echo "$at_srcdir/jsonrpc-py.at:29: \$PYTHON \$srcdir/test-jsonrpc.py --detach --pidfile=\`pwd\`/pid listen punix:socket"
 
24752
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:29"
 
24753
( $at_check_trace; $PYTHON $srcdir/test-jsonrpc.py --detach --pidfile=`pwd`/pid listen punix:socket
 
24754
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24755
at_status=$? at_failed=false
 
24756
$at_check_filter
 
24757
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24758
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24759
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:29"
 
24760
$at_failed && at_fn_log_failure
 
24761
$at_traceon; }
 
24762
 
 
24763
{ set +x
 
24764
$as_echo "$at_srcdir/jsonrpc-py.at:30: test -s pid"
 
24765
at_fn_check_prepare_trace "jsonrpc-py.at:30"
 
24766
( $at_check_trace; test -s pid
 
24767
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24768
at_status=$? at_failed=false
 
24769
$at_check_filter
 
24770
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24771
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24772
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:30"
 
24773
$at_failed && at_fn_log_failure
 
24774
$at_traceon; }
 
24775
 
 
24776
# When a daemon dies it deletes its pidfile, so make a copy.
 
24777
{ set +x
 
24778
$as_echo "$at_srcdir/jsonrpc-py.at:32: cp pid pid2"
 
24779
at_fn_check_prepare_trace "jsonrpc-py.at:32"
 
24780
( $at_check_trace; cp pid pid2
 
24781
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24782
at_status=$? at_failed=false
 
24783
$at_check_filter
 
24784
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24785
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24786
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:32"
 
24787
$at_failed && at_fn_log_failure
 
24788
$at_traceon; }
 
24789
 
 
24790
{ set +x
 
24791
$as_echo "$at_srcdir/jsonrpc-py.at:33: kill -0 \`cat pid2\`"
 
24792
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:33"
 
24793
( $at_check_trace; kill -0 `cat pid2`
 
24794
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24795
at_status=$? at_failed=false
 
24796
$at_check_filter
 
24797
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24798
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24799
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:33"
 
24800
$at_failed && at_fn_log_failure
 
24801
$at_traceon; }
 
24802
 
 
24803
{ set +x
 
24804
$as_echo "$at_srcdir/jsonrpc-py.at:34: \$PYTHON \$srcdir/test-jsonrpc.py notify unix:socket shutdown '[]'"
 
24805
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-jsonrpc.py notify unix:socket shutdown '[]'" "jsonrpc-py.at:34"
 
24806
( $at_check_trace; $PYTHON $srcdir/test-jsonrpc.py notify unix:socket shutdown '[]'
 
24807
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24808
at_status=$? at_failed=false
 
24809
$at_check_filter
 
24810
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24811
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24812
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:34"
 
24813
if $at_failed; then :
 
24814
  kill `cat pid2`
 
24815
fi
 
24816
$at_failed && at_fn_log_failure
 
24817
$at_traceon; }
 
24818
 
 
24819
{ set +x
 
24820
$as_echo "$at_srcdir/jsonrpc-py.at:36: pid=\`cat pid2\`
 
24821
   # First try a quick sleep, so that the test completes very quickly
 
24822
   # in the normal case.  POSIX doesn't require fractional times to
 
24823
   # work, so this might not work.
 
24824
   sleep 0.1; if kill -0 \$pid; then :; else echo success; exit 0; fi
 
24825
   # Then wait up to 2 seconds.
 
24826
   sleep 1; if kill -0 \$pid; then :; else echo success; exit 0; fi
 
24827
   sleep 1; if kill -0 \$pid; then :; else echo success; exit 0; fi
 
24828
   echo failure; exit 1"
 
24829
at_fn_check_prepare_notrace 'a `...` command substitution' "jsonrpc-py.at:36"
 
24830
( $at_check_trace; pid=`cat pid2`
 
24831
   # First try a quick sleep, so that the test completes very quickly
 
24832
   # in the normal case.  POSIX doesn't require fractional times to
 
24833
   # work, so this might not work.
 
24834
   sleep 0.1; if kill -0 $pid; then :; else echo success; exit 0; fi
 
24835
   # Then wait up to 2 seconds.
 
24836
   sleep 1; if kill -0 $pid; then :; else echo success; exit 0; fi
 
24837
   sleep 1; if kill -0 $pid; then :; else echo success; exit 0; fi
 
24838
   echo failure; exit 1
 
24839
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24840
at_status=$? at_failed=false
 
24841
$at_check_filter
 
24842
echo stderr:; cat "$at_stderr"
 
24843
echo >>"$at_stdout"; $as_echo "success
 
24844
" | \
 
24845
  $at_diff - "$at_stdout" || at_failed=:
 
24846
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:36"
 
24847
$at_failed && at_fn_log_failure
 
24848
$at_traceon; }
 
24849
 
 
24850
{ set +x
 
24851
$as_echo "$at_srcdir/jsonrpc-py.at:47: test ! -e pid"
 
24852
at_fn_check_prepare_trace "jsonrpc-py.at:47"
 
24853
( $at_check_trace; test ! -e pid
 
24854
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24855
at_status=$? at_failed=false
 
24856
$at_check_filter
 
24857
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24858
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24859
at_fn_check_status 0 $at_status "$at_srcdir/jsonrpc-py.at:47"
 
24860
$at_failed && at_fn_log_failure
 
24861
$at_traceon; }
 
24862
 
 
24863
  set +x
 
24864
  $at_times_p && times >"$at_times_file"
 
24865
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24866
read at_status <"$at_status_file"
 
24867
#AT_STOP_342
 
24868
#AT_START_343
 
24869
at_fn_group_banner 343 'timeval.at:3' \
 
24870
  "check that time advances" "                       " 30
 
24871
at_xfail=no
 
24872
(
 
24873
  $as_echo "343. $at_setup_line: testing $at_desc ..."
 
24874
  $at_traceon
 
24875
 
 
24876
 
 
24877
{ set +x
 
24878
$as_echo "$at_srcdir/timeval.at:5: test-timeval plain"
 
24879
at_fn_check_prepare_trace "timeval.at:5"
 
24880
( $at_check_trace; test-timeval plain
 
24881
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24882
at_status=$? at_failed=false
 
24883
$at_check_filter
 
24884
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24885
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24886
at_fn_check_status 0 $at_status "$at_srcdir/timeval.at:5"
 
24887
$at_failed && at_fn_log_failure
 
24888
$at_traceon; }
 
24889
 
 
24890
  set +x
 
24891
  $at_times_p && times >"$at_times_file"
 
24892
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24893
read at_status <"$at_status_file"
 
24894
#AT_STOP_343
 
24895
#AT_START_344
 
24896
at_fn_group_banner 344 'timeval.at:8' \
 
24897
  "check that time advances after daemonize()" "     " 30
 
24898
at_xfail=no
 
24899
(
 
24900
  $as_echo "344. $at_setup_line: testing $at_desc ..."
 
24901
  $at_traceon
 
24902
 
 
24903
 
 
24904
{ set +x
 
24905
$as_echo "$at_srcdir/timeval.at:10: test-timeval daemon"
 
24906
at_fn_check_prepare_trace "timeval.at:10"
 
24907
( $at_check_trace; test-timeval daemon
 
24908
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24909
at_status=$? at_failed=false
 
24910
$at_check_filter
 
24911
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24912
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
24913
at_fn_check_status 0 $at_status "$at_srcdir/timeval.at:10"
 
24914
$at_failed && at_fn_log_failure
 
24915
$at_traceon; }
 
24916
 
 
24917
{ set +x
 
24918
$as_echo "$at_srcdir/timeval.at:11: # First try a quick sleep, so that the test completes very quickly
 
24919
   # in the normal case.  POSIX doesn't require fractional times to
 
24920
   # work, so this might not work.
 
24921
   sleep 0.1; if test -e test-timeval.success; then echo success; exit 0; fi
 
24922
   # Then wait up to 2 seconds.
 
24923
   sleep 1; if test -e test-timeval.success; then echo success; exit 0; fi
 
24924
   sleep 1; if test -e test-timeval.success; then echo success; exit 0; fi
 
24925
   echo failure; exit 1"
 
24926
at_fn_check_prepare_notrace 'an embedded newline' "timeval.at:11"
 
24927
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
24928
   # in the normal case.  POSIX doesn't require fractional times to
 
24929
   # work, so this might not work.
 
24930
   sleep 0.1; if test -e test-timeval.success; then echo success; exit 0; fi
 
24931
   # Then wait up to 2 seconds.
 
24932
   sleep 1; if test -e test-timeval.success; then echo success; exit 0; fi
 
24933
   sleep 1; if test -e test-timeval.success; then echo success; exit 0; fi
 
24934
   echo failure; exit 1
 
24935
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24936
at_status=$? at_failed=false
 
24937
$at_check_filter
 
24938
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24939
echo >>"$at_stdout"; $as_echo "success
 
24940
" | \
 
24941
  $at_diff - "$at_stdout" || at_failed=:
 
24942
at_fn_check_status 0 $at_status "$at_srcdir/timeval.at:11"
 
24943
$at_failed && at_fn_log_failure
 
24944
$at_traceon; }
 
24945
 
 
24946
  set +x
 
24947
  $at_times_p && times >"$at_times_file"
 
24948
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24949
read at_status <"$at_status_file"
 
24950
#AT_STOP_344
 
24951
#AT_START_345
 
24952
at_fn_group_banner 345 'lockfile.at:11' \
 
24953
  "lock and unlock" "                                " 31
 
24954
at_xfail=no
 
24955
(
 
24956
  $as_echo "345. $at_setup_line: testing $at_desc ..."
 
24957
  $at_traceon
 
24958
 
 
24959
 
 
24960
   { set +x
 
24961
$as_echo "$at_srcdir/lockfile.at:11: test-lockfile lock_and_unlock"
 
24962
at_fn_check_prepare_trace "lockfile.at:11"
 
24963
( $at_check_trace; test-lockfile lock_and_unlock
 
24964
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24965
at_status=$? at_failed=false
 
24966
$at_check_filter
 
24967
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24968
echo >>"$at_stdout"; $as_echo "lock_and_unlock: success (0 children)
 
24969
" | \
 
24970
  $at_diff - "$at_stdout" || at_failed=:
 
24971
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:11"
 
24972
$at_failed && at_fn_log_failure
 
24973
$at_traceon; }
 
24974
 
 
24975
     set +x
 
24976
  $at_times_p && times >"$at_times_file"
 
24977
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
24978
read at_status <"$at_status_file"
 
24979
#AT_STOP_345
 
24980
#AT_START_346
 
24981
at_fn_group_banner 346 'lockfile.at:12' \
 
24982
  "lock and unlock twice" "                          " 31
 
24983
at_xfail=no
 
24984
(
 
24985
  $as_echo "346. $at_setup_line: testing $at_desc ..."
 
24986
  $at_traceon
 
24987
 
 
24988
 
 
24989
   { set +x
 
24990
$as_echo "$at_srcdir/lockfile.at:12: test-lockfile lock_and_unlock_twice"
 
24991
at_fn_check_prepare_trace "lockfile.at:12"
 
24992
( $at_check_trace; test-lockfile lock_and_unlock_twice
 
24993
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
24994
at_status=$? at_failed=false
 
24995
$at_check_filter
 
24996
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
24997
echo >>"$at_stdout"; $as_echo "lock_and_unlock_twice: success (0 children)
 
24998
" | \
 
24999
  $at_diff - "$at_stdout" || at_failed=:
 
25000
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:12"
 
25001
$at_failed && at_fn_log_failure
 
25002
$at_traceon; }
 
25003
 
 
25004
     set +x
 
25005
  $at_times_p && times >"$at_times_file"
 
25006
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25007
read at_status <"$at_status_file"
 
25008
#AT_STOP_346
 
25009
#AT_START_347
 
25010
at_fn_group_banner 347 'lockfile.at:13' \
 
25011
  "lock blocks same process" "                       " 31
 
25012
at_xfail=no
 
25013
(
 
25014
  $as_echo "347. $at_setup_line: testing $at_desc ..."
 
25015
  $at_traceon
 
25016
 
 
25017
 
 
25018
   { set +x
 
25019
$as_echo "$at_srcdir/lockfile.at:13: test-lockfile lock_blocks_same_process"
 
25020
at_fn_check_prepare_trace "lockfile.at:13"
 
25021
( $at_check_trace; test-lockfile lock_blocks_same_process
 
25022
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25023
at_status=$? at_failed=false
 
25024
$at_check_filter
 
25025
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25026
echo >>"$at_stdout"; $as_echo "lock_blocks_same_process: success (0 children)
 
25027
" | \
 
25028
  $at_diff - "$at_stdout" || at_failed=:
 
25029
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:13"
 
25030
$at_failed && at_fn_log_failure
 
25031
$at_traceon; }
 
25032
 
 
25033
     set +x
 
25034
  $at_times_p && times >"$at_times_file"
 
25035
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25036
read at_status <"$at_status_file"
 
25037
#AT_STOP_347
 
25038
#AT_START_348
 
25039
at_fn_group_banner 348 'lockfile.at:14' \
 
25040
  "lock blocks same process twice" "                 " 31
 
25041
at_xfail=no
 
25042
(
 
25043
  $as_echo "348. $at_setup_line: testing $at_desc ..."
 
25044
  $at_traceon
 
25045
 
 
25046
 
 
25047
   { set +x
 
25048
$as_echo "$at_srcdir/lockfile.at:14: test-lockfile lock_blocks_same_process_twice"
 
25049
at_fn_check_prepare_trace "lockfile.at:14"
 
25050
( $at_check_trace; test-lockfile lock_blocks_same_process_twice
 
25051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25052
at_status=$? at_failed=false
 
25053
$at_check_filter
 
25054
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25055
echo >>"$at_stdout"; $as_echo "lock_blocks_same_process_twice: success (0 children)
 
25056
" | \
 
25057
  $at_diff - "$at_stdout" || at_failed=:
 
25058
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:14"
 
25059
$at_failed && at_fn_log_failure
 
25060
$at_traceon; }
 
25061
 
 
25062
     set +x
 
25063
  $at_times_p && times >"$at_times_file"
 
25064
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25065
read at_status <"$at_status_file"
 
25066
#AT_STOP_348
 
25067
#AT_START_349
 
25068
at_fn_group_banner 349 'lockfile.at:15' \
 
25069
  "lock blocks other process" "                      " 31
 
25070
at_xfail=no
 
25071
(
 
25072
  $as_echo "349. $at_setup_line: testing $at_desc ..."
 
25073
  $at_traceon
 
25074
 
 
25075
 
 
25076
   { set +x
 
25077
$as_echo "$at_srcdir/lockfile.at:15: test-lockfile lock_blocks_other_process"
 
25078
at_fn_check_prepare_trace "lockfile.at:15"
 
25079
( $at_check_trace; test-lockfile lock_blocks_other_process
 
25080
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25081
at_status=$? at_failed=false
 
25082
$at_check_filter
 
25083
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25084
echo >>"$at_stdout"; $as_echo "lock_blocks_other_process: success (1 child)
 
25085
" | \
 
25086
  $at_diff - "$at_stdout" || at_failed=:
 
25087
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:15"
 
25088
$at_failed && at_fn_log_failure
 
25089
$at_traceon; }
 
25090
 
 
25091
     set +x
 
25092
  $at_times_p && times >"$at_times_file"
 
25093
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25094
read at_status <"$at_status_file"
 
25095
#AT_STOP_349
 
25096
#AT_START_350
 
25097
at_fn_group_banner 350 'lockfile.at:16' \
 
25098
  "lock twice blocks other process" "                " 31
 
25099
at_xfail=no
 
25100
(
 
25101
  $as_echo "350. $at_setup_line: testing $at_desc ..."
 
25102
  $at_traceon
 
25103
 
 
25104
 
 
25105
   { set +x
 
25106
$as_echo "$at_srcdir/lockfile.at:16: test-lockfile lock_twice_blocks_other_process"
 
25107
at_fn_check_prepare_trace "lockfile.at:16"
 
25108
( $at_check_trace; test-lockfile lock_twice_blocks_other_process
 
25109
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25110
at_status=$? at_failed=false
 
25111
$at_check_filter
 
25112
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25113
echo >>"$at_stdout"; $as_echo "lock_twice_blocks_other_process: success (1 child)
 
25114
" | \
 
25115
  $at_diff - "$at_stdout" || at_failed=:
 
25116
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:16"
 
25117
$at_failed && at_fn_log_failure
 
25118
$at_traceon; }
 
25119
 
 
25120
     set +x
 
25121
  $at_times_p && times >"$at_times_file"
 
25122
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25123
read at_status <"$at_status_file"
 
25124
#AT_STOP_350
 
25125
#AT_START_351
 
25126
at_fn_group_banner 351 'lockfile.at:17' \
 
25127
  "lock and unlock allows other process" "           " 31
 
25128
at_xfail=no
 
25129
(
 
25130
  $as_echo "351. $at_setup_line: testing $at_desc ..."
 
25131
  $at_traceon
 
25132
 
 
25133
 
 
25134
   { set +x
 
25135
$as_echo "$at_srcdir/lockfile.at:17: test-lockfile lock_and_unlock_allows_other_process"
 
25136
at_fn_check_prepare_trace "lockfile.at:17"
 
25137
( $at_check_trace; test-lockfile lock_and_unlock_allows_other_process
 
25138
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25139
at_status=$? at_failed=false
 
25140
$at_check_filter
 
25141
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25142
echo >>"$at_stdout"; $as_echo "lock_and_unlock_allows_other_process: success (1 child)
 
25143
" | \
 
25144
  $at_diff - "$at_stdout" || at_failed=:
 
25145
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:17"
 
25146
$at_failed && at_fn_log_failure
 
25147
$at_traceon; }
 
25148
 
 
25149
     set +x
 
25150
  $at_times_p && times >"$at_times_file"
 
25151
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25152
read at_status <"$at_status_file"
 
25153
#AT_STOP_351
 
25154
#AT_START_352
 
25155
at_fn_group_banner 352 'lockfile.at:18' \
 
25156
  "lock timeout gets the lock" "                     " 31
 
25157
at_xfail=no
 
25158
(
 
25159
  $as_echo "352. $at_setup_line: testing $at_desc ..."
 
25160
  $at_traceon
 
25161
 
 
25162
 
 
25163
   { set +x
 
25164
$as_echo "$at_srcdir/lockfile.at:18: test-lockfile lock_timeout_gets_the_lock"
 
25165
at_fn_check_prepare_trace "lockfile.at:18"
 
25166
( $at_check_trace; test-lockfile lock_timeout_gets_the_lock
 
25167
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25168
at_status=$? at_failed=false
 
25169
$at_check_filter
 
25170
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25171
echo >>"$at_stdout"; $as_echo "lock_timeout_gets_the_lock: success (1 child)
 
25172
" | \
 
25173
  $at_diff - "$at_stdout" || at_failed=:
 
25174
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:18"
 
25175
$at_failed && at_fn_log_failure
 
25176
$at_traceon; }
 
25177
 
 
25178
     set +x
 
25179
  $at_times_p && times >"$at_times_file"
 
25180
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25181
read at_status <"$at_status_file"
 
25182
#AT_STOP_352
 
25183
#AT_START_353
 
25184
at_fn_group_banner 353 'lockfile.at:19' \
 
25185
  "lock timeout runs out" "                          " 31
 
25186
at_xfail=no
 
25187
(
 
25188
  $as_echo "353. $at_setup_line: testing $at_desc ..."
 
25189
  $at_traceon
 
25190
 
 
25191
 
 
25192
   { set +x
 
25193
$as_echo "$at_srcdir/lockfile.at:19: test-lockfile lock_timeout_runs_out"
 
25194
at_fn_check_prepare_trace "lockfile.at:19"
 
25195
( $at_check_trace; test-lockfile lock_timeout_runs_out
 
25196
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25197
at_status=$? at_failed=false
 
25198
$at_check_filter
 
25199
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25200
echo >>"$at_stdout"; $as_echo "lock_timeout_runs_out: success (1 child)
 
25201
" | \
 
25202
  $at_diff - "$at_stdout" || at_failed=:
 
25203
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:19"
 
25204
$at_failed && at_fn_log_failure
 
25205
$at_traceon; }
 
25206
 
 
25207
     set +x
 
25208
  $at_times_p && times >"$at_times_file"
 
25209
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25210
read at_status <"$at_status_file"
 
25211
#AT_STOP_353
 
25212
#AT_START_354
 
25213
at_fn_group_banner 354 'lockfile.at:20' \
 
25214
  "lock multiple" "                                  " 31
 
25215
at_xfail=no
 
25216
(
 
25217
  $as_echo "354. $at_setup_line: testing $at_desc ..."
 
25218
  $at_traceon
 
25219
 
 
25220
 
 
25221
   { set +x
 
25222
$as_echo "$at_srcdir/lockfile.at:20: test-lockfile lock_multiple"
 
25223
at_fn_check_prepare_trace "lockfile.at:20"
 
25224
( $at_check_trace; test-lockfile lock_multiple
 
25225
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25226
at_status=$? at_failed=false
 
25227
$at_check_filter
 
25228
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25229
echo >>"$at_stdout"; $as_echo "lock_multiple: success (0 children)
 
25230
" | \
 
25231
  $at_diff - "$at_stdout" || at_failed=:
 
25232
at_fn_check_status 0 $at_status "$at_srcdir/lockfile.at:20"
 
25233
$at_failed && at_fn_log_failure
 
25234
$at_traceon; }
 
25235
 
 
25236
     set +x
 
25237
  $at_times_p && times >"$at_times_file"
 
25238
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25239
read at_status <"$at_status_file"
 
25240
#AT_STOP_354
 
25241
#AT_START_355
 
25242
at_fn_group_banner 355 'reconnect.at:26' \
 
25243
  "nothing happens if not enabled - C" "             " 32
 
25244
at_xfail=no
 
25245
(
 
25246
  $as_echo "355. $at_setup_line: testing $at_desc ..."
 
25247
  $at_traceon
 
25248
 
 
25249
 
 
25250
 
 
25251
   cat >input <<'_ATEOF'
 
25252
run
 
25253
timeout
 
25254
_ATEOF
 
25255
 
 
25256
   { set +x
 
25257
$as_echo "$at_srcdir/reconnect.at:26: test-reconnect < input"
 
25258
at_fn_check_prepare_trace "reconnect.at:26"
 
25259
( $at_check_trace; test-reconnect < input
 
25260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25261
at_status=$? at_failed=false
 
25262
$at_check_filter
 
25263
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25264
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
25265
run
 
25266
timeout
 
25267
  no timeout
 
25268
" | \
 
25269
  $at_diff - "$at_stdout" || at_failed=:
 
25270
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:26"
 
25271
$at_failed && at_fn_log_failure
 
25272
$at_traceon; }
 
25273
 
 
25274
     set +x
 
25275
  $at_times_p && times >"$at_times_file"
 
25276
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25277
read at_status <"$at_status_file"
 
25278
#AT_STOP_355
 
25279
#AT_START_356
 
25280
at_fn_group_banner 356 'reconnect.at:26' \
 
25281
  "nothing happens if not enabled - Python" "        " 32
 
25282
at_xfail=no
 
25283
(
 
25284
  $as_echo "356. $at_setup_line: testing $at_desc ..."
 
25285
  $at_traceon
 
25286
 
 
25287
   $as_echo "reconnect.at:26" >"$at_check_line_file"
 
25288
(test $HAVE_PYTHON = no) \
 
25289
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:26"
 
25290
 
 
25291
   cat >input <<'_ATEOF'
 
25292
run
 
25293
timeout
 
25294
_ATEOF
 
25295
 
 
25296
   { set +x
 
25297
$as_echo "$at_srcdir/reconnect.at:26: \$PYTHON \$srcdir/test-reconnect.py < input"
 
25298
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:26"
 
25299
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
25300
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25301
at_status=$? at_failed=false
 
25302
$at_check_filter
 
25303
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25304
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
25305
run
 
25306
timeout
 
25307
  no timeout
 
25308
" | \
 
25309
  $at_diff - "$at_stdout" || at_failed=:
 
25310
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:26"
 
25311
$at_failed && at_fn_log_failure
 
25312
$at_traceon; }
 
25313
 
 
25314
     set +x
 
25315
  $at_times_p && times >"$at_times_file"
 
25316
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25317
read at_status <"$at_status_file"
 
25318
#AT_STOP_356
 
25319
#AT_START_357
 
25320
at_fn_group_banner 357 'reconnect.at:37' \
 
25321
  "quick connect, idle disconnect - C" "             " 32
 
25322
at_xfail=no
 
25323
(
 
25324
  $as_echo "357. $at_setup_line: testing $at_desc ..."
 
25325
  $at_traceon
 
25326
 
 
25327
 
 
25328
 
 
25329
   cat >input <<'_ATEOF'
 
25330
enable
 
25331
 
 
25332
# Connection succeeds.
 
25333
run
 
25334
connected
 
25335
 
 
25336
# Send inactivity probe.
 
25337
timeout
 
25338
run
 
25339
 
 
25340
# Idle timeout kills connection.
 
25341
timeout
 
25342
run
 
25343
disconnected
 
25344
_ATEOF
 
25345
 
 
25346
   { set +x
 
25347
$as_echo "$at_srcdir/reconnect.at:37: test-reconnect < input"
 
25348
at_fn_check_prepare_trace "reconnect.at:37"
 
25349
( $at_check_trace; test-reconnect < input
 
25350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25351
at_status=$? at_failed=false
 
25352
$at_check_filter
 
25353
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25354
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
25355
enable
 
25356
  in BACKOFF for 0 ms (0 ms backoff)
 
25357
 
 
25358
# Connection succeeds.
 
25359
run
 
25360
  should connect
 
25361
connected
 
25362
  in ACTIVE for 0 ms (0 ms backoff)
 
25363
  created 1000, last received 1000, last connected 1000
 
25364
  1 successful connections out of 1 attempts, seqno 1
 
25365
  connected
 
25366
  last connected 0 ms ago, connected 0 ms total
 
25367
 
 
25368
# Send inactivity probe.
 
25369
timeout
 
25370
  advance 5000 ms
 
25371
 
 
25372
### t=6000 ###
 
25373
  in ACTIVE for 5000 ms (0 ms backoff)
 
25374
run
 
25375
  should send probe
 
25376
  in IDLE for 0 ms (0 ms backoff)
 
25377
 
 
25378
# Idle timeout kills connection.
 
25379
timeout
 
25380
  advance 5000 ms
 
25381
 
 
25382
### t=11000 ###
 
25383
  in IDLE for 5000 ms (0 ms backoff)
 
25384
run
 
25385
  should disconnect
 
25386
disconnected
 
25387
  in BACKOFF for 0 ms (1000 ms backoff)
 
25388
  1 successful connections out of 1 attempts, seqno 2
 
25389
  disconnected
 
25390
  disconnected at 11000 ms (0 ms ago)
 
25391
" | \
 
25392
  $at_diff - "$at_stdout" || at_failed=:
 
25393
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:37"
 
25394
$at_failed && at_fn_log_failure
 
25395
$at_traceon; }
 
25396
 
 
25397
     set +x
 
25398
  $at_times_p && times >"$at_times_file"
 
25399
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25400
read at_status <"$at_status_file"
 
25401
#AT_STOP_357
 
25402
#AT_START_358
 
25403
at_fn_group_banner 358 'reconnect.at:37' \
 
25404
  "quick connect, idle disconnect - Python" "        " 32
 
25405
at_xfail=no
 
25406
(
 
25407
  $as_echo "358. $at_setup_line: testing $at_desc ..."
 
25408
  $at_traceon
 
25409
 
 
25410
   $as_echo "reconnect.at:37" >"$at_check_line_file"
 
25411
(test $HAVE_PYTHON = no) \
 
25412
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:37"
 
25413
 
 
25414
   cat >input <<'_ATEOF'
 
25415
enable
 
25416
 
 
25417
# Connection succeeds.
 
25418
run
 
25419
connected
 
25420
 
 
25421
# Send inactivity probe.
 
25422
timeout
 
25423
run
 
25424
 
 
25425
# Idle timeout kills connection.
 
25426
timeout
 
25427
run
 
25428
disconnected
 
25429
_ATEOF
 
25430
 
 
25431
   { set +x
 
25432
$as_echo "$at_srcdir/reconnect.at:37: \$PYTHON \$srcdir/test-reconnect.py < input"
 
25433
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:37"
 
25434
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
25435
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25436
at_status=$? at_failed=false
 
25437
$at_check_filter
 
25438
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25439
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
25440
enable
 
25441
  in BACKOFF for 0 ms (0 ms backoff)
 
25442
 
 
25443
# Connection succeeds.
 
25444
run
 
25445
  should connect
 
25446
connected
 
25447
  in ACTIVE for 0 ms (0 ms backoff)
 
25448
  created 1000, last received 1000, last connected 1000
 
25449
  1 successful connections out of 1 attempts, seqno 1
 
25450
  connected
 
25451
  last connected 0 ms ago, connected 0 ms total
 
25452
 
 
25453
# Send inactivity probe.
 
25454
timeout
 
25455
  advance 5000 ms
 
25456
 
 
25457
### t=6000 ###
 
25458
  in ACTIVE for 5000 ms (0 ms backoff)
 
25459
run
 
25460
  should send probe
 
25461
  in IDLE for 0 ms (0 ms backoff)
 
25462
 
 
25463
# Idle timeout kills connection.
 
25464
timeout
 
25465
  advance 5000 ms
 
25466
 
 
25467
### t=11000 ###
 
25468
  in IDLE for 5000 ms (0 ms backoff)
 
25469
run
 
25470
  should disconnect
 
25471
disconnected
 
25472
  in BACKOFF for 0 ms (1000 ms backoff)
 
25473
  1 successful connections out of 1 attempts, seqno 2
 
25474
  disconnected
 
25475
  disconnected at 11000 ms (0 ms ago)
 
25476
" | \
 
25477
  $at_diff - "$at_stdout" || at_failed=:
 
25478
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:37"
 
25479
$at_failed && at_fn_log_failure
 
25480
$at_traceon; }
 
25481
 
 
25482
     set +x
 
25483
  $at_times_p && times >"$at_times_file"
 
25484
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25485
read at_status <"$at_status_file"
 
25486
#AT_STOP_358
 
25487
#AT_START_359
 
25488
at_fn_group_banner 359 'reconnect.at:93' \
 
25489
  "slow connect, idle disconnect - C" "              " 32
 
25490
at_xfail=no
 
25491
(
 
25492
  $as_echo "359. $at_setup_line: testing $at_desc ..."
 
25493
  $at_traceon
 
25494
 
 
25495
 
 
25496
 
 
25497
   cat >input <<'_ATEOF'
 
25498
enable
 
25499
 
 
25500
# Start connecting.
 
25501
run
 
25502
connecting
 
25503
 
 
25504
# Connect after 500 ms.
 
25505
advance 500
 
25506
run
 
25507
connected
 
25508
 
 
25509
# Send inactivity probe.
 
25510
timeout
 
25511
run
 
25512
 
 
25513
# Idle timeout kills connection.
 
25514
timeout
 
25515
run
 
25516
disconnected
 
25517
_ATEOF
 
25518
 
 
25519
   { set +x
 
25520
$as_echo "$at_srcdir/reconnect.at:93: test-reconnect < input"
 
25521
at_fn_check_prepare_trace "reconnect.at:93"
 
25522
( $at_check_trace; test-reconnect < input
 
25523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25524
at_status=$? at_failed=false
 
25525
$at_check_filter
 
25526
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25527
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
25528
enable
 
25529
  in BACKOFF for 0 ms (0 ms backoff)
 
25530
 
 
25531
# Start connecting.
 
25532
run
 
25533
  should connect
 
25534
connecting
 
25535
  in CONNECTING for 0 ms (0 ms backoff)
 
25536
 
 
25537
# Connect after 500 ms.
 
25538
advance 500
 
25539
 
 
25540
### t=1500 ###
 
25541
  in CONNECTING for 500 ms (0 ms backoff)
 
25542
run
 
25543
connected
 
25544
  in ACTIVE for 0 ms (0 ms backoff)
 
25545
  created 1000, last received 1000, last connected 1500
 
25546
  1 successful connections out of 1 attempts, seqno 1
 
25547
  connected
 
25548
  last connected 0 ms ago, connected 0 ms total
 
25549
 
 
25550
# Send inactivity probe.
 
25551
timeout
 
25552
  advance 5000 ms
 
25553
 
 
25554
### t=6500 ###
 
25555
  in ACTIVE for 5000 ms (0 ms backoff)
 
25556
run
 
25557
  should send probe
 
25558
  in IDLE for 0 ms (0 ms backoff)
 
25559
 
 
25560
# Idle timeout kills connection.
 
25561
timeout
 
25562
  advance 5000 ms
 
25563
 
 
25564
### t=11500 ###
 
25565
  in IDLE for 5000 ms (0 ms backoff)
 
25566
run
 
25567
  should disconnect
 
25568
disconnected
 
25569
  in BACKOFF for 0 ms (1000 ms backoff)
 
25570
  1 successful connections out of 1 attempts, seqno 2
 
25571
  disconnected
 
25572
  disconnected at 11500 ms (0 ms ago)
 
25573
" | \
 
25574
  $at_diff - "$at_stdout" || at_failed=:
 
25575
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:93"
 
25576
$at_failed && at_fn_log_failure
 
25577
$at_traceon; }
 
25578
 
 
25579
     set +x
 
25580
  $at_times_p && times >"$at_times_file"
 
25581
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25582
read at_status <"$at_status_file"
 
25583
#AT_STOP_359
 
25584
#AT_START_360
 
25585
at_fn_group_banner 360 'reconnect.at:93' \
 
25586
  "slow connect, idle disconnect - Python" "         " 32
 
25587
at_xfail=no
 
25588
(
 
25589
  $as_echo "360. $at_setup_line: testing $at_desc ..."
 
25590
  $at_traceon
 
25591
 
 
25592
   $as_echo "reconnect.at:93" >"$at_check_line_file"
 
25593
(test $HAVE_PYTHON = no) \
 
25594
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:93"
 
25595
 
 
25596
   cat >input <<'_ATEOF'
 
25597
enable
 
25598
 
 
25599
# Start connecting.
 
25600
run
 
25601
connecting
 
25602
 
 
25603
# Connect after 500 ms.
 
25604
advance 500
 
25605
run
 
25606
connected
 
25607
 
 
25608
# Send inactivity probe.
 
25609
timeout
 
25610
run
 
25611
 
 
25612
# Idle timeout kills connection.
 
25613
timeout
 
25614
run
 
25615
disconnected
 
25616
_ATEOF
 
25617
 
 
25618
   { set +x
 
25619
$as_echo "$at_srcdir/reconnect.at:93: \$PYTHON \$srcdir/test-reconnect.py < input"
 
25620
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:93"
 
25621
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
25622
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25623
at_status=$? at_failed=false
 
25624
$at_check_filter
 
25625
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25626
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
25627
enable
 
25628
  in BACKOFF for 0 ms (0 ms backoff)
 
25629
 
 
25630
# Start connecting.
 
25631
run
 
25632
  should connect
 
25633
connecting
 
25634
  in CONNECTING for 0 ms (0 ms backoff)
 
25635
 
 
25636
# Connect after 500 ms.
 
25637
advance 500
 
25638
 
 
25639
### t=1500 ###
 
25640
  in CONNECTING for 500 ms (0 ms backoff)
 
25641
run
 
25642
connected
 
25643
  in ACTIVE for 0 ms (0 ms backoff)
 
25644
  created 1000, last received 1000, last connected 1500
 
25645
  1 successful connections out of 1 attempts, seqno 1
 
25646
  connected
 
25647
  last connected 0 ms ago, connected 0 ms total
 
25648
 
 
25649
# Send inactivity probe.
 
25650
timeout
 
25651
  advance 5000 ms
 
25652
 
 
25653
### t=6500 ###
 
25654
  in ACTIVE for 5000 ms (0 ms backoff)
 
25655
run
 
25656
  should send probe
 
25657
  in IDLE for 0 ms (0 ms backoff)
 
25658
 
 
25659
# Idle timeout kills connection.
 
25660
timeout
 
25661
  advance 5000 ms
 
25662
 
 
25663
### t=11500 ###
 
25664
  in IDLE for 5000 ms (0 ms backoff)
 
25665
run
 
25666
  should disconnect
 
25667
disconnected
 
25668
  in BACKOFF for 0 ms (1000 ms backoff)
 
25669
  1 successful connections out of 1 attempts, seqno 2
 
25670
  disconnected
 
25671
  disconnected at 11500 ms (0 ms ago)
 
25672
" | \
 
25673
  $at_diff - "$at_stdout" || at_failed=:
 
25674
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:93"
 
25675
$at_failed && at_fn_log_failure
 
25676
$at_traceon; }
 
25677
 
 
25678
     set +x
 
25679
  $at_times_p && times >"$at_times_file"
 
25680
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25681
read at_status <"$at_status_file"
 
25682
#AT_STOP_360
 
25683
#AT_START_361
 
25684
at_fn_group_banner 361 'reconnect.at:163' \
 
25685
  "connect backs off - C" "                          " 32
 
25686
at_xfail=no
 
25687
(
 
25688
  $as_echo "361. $at_setup_line: testing $at_desc ..."
 
25689
  $at_traceon
 
25690
 
 
25691
 
 
25692
 
 
25693
   cat >input <<'_ATEOF'
 
25694
enable
 
25695
 
 
25696
# First connection attempt fails after 1000 ms.
 
25697
run
 
25698
connecting
 
25699
run
 
25700
timeout
 
25701
run
 
25702
connect-failed
 
25703
 
 
25704
# Back off for 1000 ms.
 
25705
timeout
 
25706
run
 
25707
 
 
25708
# Second connection attempt fails after 1000 ms.
 
25709
connecting
 
25710
timeout
 
25711
run
 
25712
connect-failed
 
25713
 
 
25714
# Back off for 2000 ms.
 
25715
timeout
 
25716
run
 
25717
 
 
25718
# Third connection attempt fails after 2000 ms.
 
25719
connecting
 
25720
timeout
 
25721
run
 
25722
connect-failed
 
25723
 
 
25724
# Back off for 4000 ms.
 
25725
timeout
 
25726
run
 
25727
 
 
25728
# Third connection attempt fails after 4000 ms.
 
25729
connecting
 
25730
timeout
 
25731
run
 
25732
connect-failed
 
25733
 
 
25734
# Back off for 8000 ms.
 
25735
timeout
 
25736
run
 
25737
 
 
25738
# Third connection attempt fails after 8000 ms.
 
25739
connecting
 
25740
timeout
 
25741
run
 
25742
connect-failed
 
25743
 
 
25744
# Back off for 8000 ms.
 
25745
timeout
 
25746
run
 
25747
 
 
25748
# Fourth connection attempt fails after 8000 ms.
 
25749
connecting
 
25750
timeout
 
25751
run
 
25752
connect-failed
 
25753
_ATEOF
 
25754
 
 
25755
   { set +x
 
25756
$as_echo "$at_srcdir/reconnect.at:163: test-reconnect < input"
 
25757
at_fn_check_prepare_trace "reconnect.at:163"
 
25758
( $at_check_trace; test-reconnect < input
 
25759
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25760
at_status=$? at_failed=false
 
25761
$at_check_filter
 
25762
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25763
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
25764
enable
 
25765
  in BACKOFF for 0 ms (0 ms backoff)
 
25766
 
 
25767
# First connection attempt fails after 1000 ms.
 
25768
run
 
25769
  should connect
 
25770
connecting
 
25771
  in CONNECTING for 0 ms (0 ms backoff)
 
25772
run
 
25773
timeout
 
25774
  advance 1000 ms
 
25775
 
 
25776
### t=2000 ###
 
25777
  in CONNECTING for 1000 ms (0 ms backoff)
 
25778
run
 
25779
  should disconnect
 
25780
connect-failed
 
25781
  in BACKOFF for 0 ms (1000 ms backoff)
 
25782
  0 successful connections out of 1 attempts, seqno 0
 
25783
 
 
25784
# Back off for 1000 ms.
 
25785
timeout
 
25786
  advance 1000 ms
 
25787
 
 
25788
### t=3000 ###
 
25789
  in BACKOFF for 1000 ms (1000 ms backoff)
 
25790
run
 
25791
  should connect
 
25792
 
 
25793
# Second connection attempt fails after 1000 ms.
 
25794
connecting
 
25795
  in CONNECTING for 0 ms (1000 ms backoff)
 
25796
timeout
 
25797
  advance 1000 ms
 
25798
 
 
25799
### t=4000 ###
 
25800
  in CONNECTING for 1000 ms (1000 ms backoff)
 
25801
run
 
25802
  should disconnect
 
25803
connect-failed
 
25804
  in BACKOFF for 0 ms (2000 ms backoff)
 
25805
  0 successful connections out of 2 attempts, seqno 0
 
25806
 
 
25807
# Back off for 2000 ms.
 
25808
timeout
 
25809
  advance 2000 ms
 
25810
 
 
25811
### t=6000 ###
 
25812
  in BACKOFF for 2000 ms (2000 ms backoff)
 
25813
run
 
25814
  should connect
 
25815
 
 
25816
# Third connection attempt fails after 2000 ms.
 
25817
connecting
 
25818
  in CONNECTING for 0 ms (2000 ms backoff)
 
25819
timeout
 
25820
  advance 2000 ms
 
25821
 
 
25822
### t=8000 ###
 
25823
  in CONNECTING for 2000 ms (2000 ms backoff)
 
25824
run
 
25825
  should disconnect
 
25826
connect-failed
 
25827
  in BACKOFF for 0 ms (4000 ms backoff)
 
25828
  0 successful connections out of 3 attempts, seqno 0
 
25829
 
 
25830
# Back off for 4000 ms.
 
25831
timeout
 
25832
  advance 4000 ms
 
25833
 
 
25834
### t=12000 ###
 
25835
  in BACKOFF for 4000 ms (4000 ms backoff)
 
25836
run
 
25837
  should connect
 
25838
 
 
25839
# Third connection attempt fails after 4000 ms.
 
25840
connecting
 
25841
  in CONNECTING for 0 ms (4000 ms backoff)
 
25842
timeout
 
25843
  advance 4000 ms
 
25844
 
 
25845
### t=16000 ###
 
25846
  in CONNECTING for 4000 ms (4000 ms backoff)
 
25847
run
 
25848
  should disconnect
 
25849
connect-failed
 
25850
  in BACKOFF for 0 ms (8000 ms backoff)
 
25851
  0 successful connections out of 4 attempts, seqno 0
 
25852
 
 
25853
# Back off for 8000 ms.
 
25854
timeout
 
25855
  advance 8000 ms
 
25856
 
 
25857
### t=24000 ###
 
25858
  in BACKOFF for 8000 ms (8000 ms backoff)
 
25859
run
 
25860
  should connect
 
25861
 
 
25862
# Third connection attempt fails after 8000 ms.
 
25863
connecting
 
25864
  in CONNECTING for 0 ms (8000 ms backoff)
 
25865
timeout
 
25866
  advance 8000 ms
 
25867
 
 
25868
### t=32000 ###
 
25869
  in CONNECTING for 8000 ms (8000 ms backoff)
 
25870
run
 
25871
  should disconnect
 
25872
connect-failed
 
25873
  in BACKOFF for 0 ms (8000 ms backoff)
 
25874
  0 successful connections out of 5 attempts, seqno 0
 
25875
 
 
25876
# Back off for 8000 ms.
 
25877
timeout
 
25878
  advance 8000 ms
 
25879
 
 
25880
### t=40000 ###
 
25881
  in BACKOFF for 8000 ms (8000 ms backoff)
 
25882
run
 
25883
  should connect
 
25884
 
 
25885
# Fourth connection attempt fails after 8000 ms.
 
25886
connecting
 
25887
  in CONNECTING for 0 ms (8000 ms backoff)
 
25888
timeout
 
25889
  advance 8000 ms
 
25890
 
 
25891
### t=48000 ###
 
25892
  in CONNECTING for 8000 ms (8000 ms backoff)
 
25893
run
 
25894
  should disconnect
 
25895
connect-failed
 
25896
  in BACKOFF for 0 ms (8000 ms backoff)
 
25897
  0 successful connections out of 6 attempts, seqno 0
 
25898
" | \
 
25899
  $at_diff - "$at_stdout" || at_failed=:
 
25900
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:163"
 
25901
$at_failed && at_fn_log_failure
 
25902
$at_traceon; }
 
25903
 
 
25904
     set +x
 
25905
  $at_times_p && times >"$at_times_file"
 
25906
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
25907
read at_status <"$at_status_file"
 
25908
#AT_STOP_361
 
25909
#AT_START_362
 
25910
at_fn_group_banner 362 'reconnect.at:163' \
 
25911
  "connect backs off - Python" "                     " 32
 
25912
at_xfail=no
 
25913
(
 
25914
  $as_echo "362. $at_setup_line: testing $at_desc ..."
 
25915
  $at_traceon
 
25916
 
 
25917
   $as_echo "reconnect.at:163" >"$at_check_line_file"
 
25918
(test $HAVE_PYTHON = no) \
 
25919
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:163"
 
25920
 
 
25921
   cat >input <<'_ATEOF'
 
25922
enable
 
25923
 
 
25924
# First connection attempt fails after 1000 ms.
 
25925
run
 
25926
connecting
 
25927
run
 
25928
timeout
 
25929
run
 
25930
connect-failed
 
25931
 
 
25932
# Back off for 1000 ms.
 
25933
timeout
 
25934
run
 
25935
 
 
25936
# Second connection attempt fails after 1000 ms.
 
25937
connecting
 
25938
timeout
 
25939
run
 
25940
connect-failed
 
25941
 
 
25942
# Back off for 2000 ms.
 
25943
timeout
 
25944
run
 
25945
 
 
25946
# Third connection attempt fails after 2000 ms.
 
25947
connecting
 
25948
timeout
 
25949
run
 
25950
connect-failed
 
25951
 
 
25952
# Back off for 4000 ms.
 
25953
timeout
 
25954
run
 
25955
 
 
25956
# Third connection attempt fails after 4000 ms.
 
25957
connecting
 
25958
timeout
 
25959
run
 
25960
connect-failed
 
25961
 
 
25962
# Back off for 8000 ms.
 
25963
timeout
 
25964
run
 
25965
 
 
25966
# Third connection attempt fails after 8000 ms.
 
25967
connecting
 
25968
timeout
 
25969
run
 
25970
connect-failed
 
25971
 
 
25972
# Back off for 8000 ms.
 
25973
timeout
 
25974
run
 
25975
 
 
25976
# Fourth connection attempt fails after 8000 ms.
 
25977
connecting
 
25978
timeout
 
25979
run
 
25980
connect-failed
 
25981
_ATEOF
 
25982
 
 
25983
   { set +x
 
25984
$as_echo "$at_srcdir/reconnect.at:163: \$PYTHON \$srcdir/test-reconnect.py < input"
 
25985
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:163"
 
25986
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
25987
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
25988
at_status=$? at_failed=false
 
25989
$at_check_filter
 
25990
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
25991
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
25992
enable
 
25993
  in BACKOFF for 0 ms (0 ms backoff)
 
25994
 
 
25995
# First connection attempt fails after 1000 ms.
 
25996
run
 
25997
  should connect
 
25998
connecting
 
25999
  in CONNECTING for 0 ms (0 ms backoff)
 
26000
run
 
26001
timeout
 
26002
  advance 1000 ms
 
26003
 
 
26004
### t=2000 ###
 
26005
  in CONNECTING for 1000 ms (0 ms backoff)
 
26006
run
 
26007
  should disconnect
 
26008
connect-failed
 
26009
  in BACKOFF for 0 ms (1000 ms backoff)
 
26010
  0 successful connections out of 1 attempts, seqno 0
 
26011
 
 
26012
# Back off for 1000 ms.
 
26013
timeout
 
26014
  advance 1000 ms
 
26015
 
 
26016
### t=3000 ###
 
26017
  in BACKOFF for 1000 ms (1000 ms backoff)
 
26018
run
 
26019
  should connect
 
26020
 
 
26021
# Second connection attempt fails after 1000 ms.
 
26022
connecting
 
26023
  in CONNECTING for 0 ms (1000 ms backoff)
 
26024
timeout
 
26025
  advance 1000 ms
 
26026
 
 
26027
### t=4000 ###
 
26028
  in CONNECTING for 1000 ms (1000 ms backoff)
 
26029
run
 
26030
  should disconnect
 
26031
connect-failed
 
26032
  in BACKOFF for 0 ms (2000 ms backoff)
 
26033
  0 successful connections out of 2 attempts, seqno 0
 
26034
 
 
26035
# Back off for 2000 ms.
 
26036
timeout
 
26037
  advance 2000 ms
 
26038
 
 
26039
### t=6000 ###
 
26040
  in BACKOFF for 2000 ms (2000 ms backoff)
 
26041
run
 
26042
  should connect
 
26043
 
 
26044
# Third connection attempt fails after 2000 ms.
 
26045
connecting
 
26046
  in CONNECTING for 0 ms (2000 ms backoff)
 
26047
timeout
 
26048
  advance 2000 ms
 
26049
 
 
26050
### t=8000 ###
 
26051
  in CONNECTING for 2000 ms (2000 ms backoff)
 
26052
run
 
26053
  should disconnect
 
26054
connect-failed
 
26055
  in BACKOFF for 0 ms (4000 ms backoff)
 
26056
  0 successful connections out of 3 attempts, seqno 0
 
26057
 
 
26058
# Back off for 4000 ms.
 
26059
timeout
 
26060
  advance 4000 ms
 
26061
 
 
26062
### t=12000 ###
 
26063
  in BACKOFF for 4000 ms (4000 ms backoff)
 
26064
run
 
26065
  should connect
 
26066
 
 
26067
# Third connection attempt fails after 4000 ms.
 
26068
connecting
 
26069
  in CONNECTING for 0 ms (4000 ms backoff)
 
26070
timeout
 
26071
  advance 4000 ms
 
26072
 
 
26073
### t=16000 ###
 
26074
  in CONNECTING for 4000 ms (4000 ms backoff)
 
26075
run
 
26076
  should disconnect
 
26077
connect-failed
 
26078
  in BACKOFF for 0 ms (8000 ms backoff)
 
26079
  0 successful connections out of 4 attempts, seqno 0
 
26080
 
 
26081
# Back off for 8000 ms.
 
26082
timeout
 
26083
  advance 8000 ms
 
26084
 
 
26085
### t=24000 ###
 
26086
  in BACKOFF for 8000 ms (8000 ms backoff)
 
26087
run
 
26088
  should connect
 
26089
 
 
26090
# Third connection attempt fails after 8000 ms.
 
26091
connecting
 
26092
  in CONNECTING for 0 ms (8000 ms backoff)
 
26093
timeout
 
26094
  advance 8000 ms
 
26095
 
 
26096
### t=32000 ###
 
26097
  in CONNECTING for 8000 ms (8000 ms backoff)
 
26098
run
 
26099
  should disconnect
 
26100
connect-failed
 
26101
  in BACKOFF for 0 ms (8000 ms backoff)
 
26102
  0 successful connections out of 5 attempts, seqno 0
 
26103
 
 
26104
# Back off for 8000 ms.
 
26105
timeout
 
26106
  advance 8000 ms
 
26107
 
 
26108
### t=40000 ###
 
26109
  in BACKOFF for 8000 ms (8000 ms backoff)
 
26110
run
 
26111
  should connect
 
26112
 
 
26113
# Fourth connection attempt fails after 8000 ms.
 
26114
connecting
 
26115
  in CONNECTING for 0 ms (8000 ms backoff)
 
26116
timeout
 
26117
  advance 8000 ms
 
26118
 
 
26119
### t=48000 ###
 
26120
  in CONNECTING for 8000 ms (8000 ms backoff)
 
26121
run
 
26122
  should disconnect
 
26123
connect-failed
 
26124
  in BACKOFF for 0 ms (8000 ms backoff)
 
26125
  0 successful connections out of 6 attempts, seqno 0
 
26126
" | \
 
26127
  $at_diff - "$at_stdout" || at_failed=:
 
26128
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:163"
 
26129
$at_failed && at_fn_log_failure
 
26130
$at_traceon; }
 
26131
 
 
26132
     set +x
 
26133
  $at_times_p && times >"$at_times_file"
 
26134
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
26135
read at_status <"$at_status_file"
 
26136
#AT_STOP_362
 
26137
#AT_START_363
 
26138
at_fn_group_banner 363 'reconnect.at:362' \
 
26139
  "connections with no data preserve backoff - C" "  " 32
 
26140
at_xfail=no
 
26141
(
 
26142
  $as_echo "363. $at_setup_line: testing $at_desc ..."
 
26143
  $at_traceon
 
26144
 
 
26145
 
 
26146
 
 
26147
   cat >input <<'_ATEOF'
 
26148
enable
 
26149
 
 
26150
# First connect, then idle timeout kills connection.
 
26151
run
 
26152
connected
 
26153
timeout
 
26154
run
 
26155
timeout
 
26156
run
 
26157
disconnected
 
26158
 
 
26159
# Back off for 1000 ms.
 
26160
timeout
 
26161
run
 
26162
 
 
26163
# Second connect, then idle timeout kills connection.
 
26164
run
 
26165
connected
 
26166
timeout
 
26167
run
 
26168
timeout
 
26169
run
 
26170
disconnected
 
26171
 
 
26172
# Back off for 2000 ms.
 
26173
timeout
 
26174
run
 
26175
 
 
26176
# Third connect, then idle timeout kills connection.
 
26177
run
 
26178
connected
 
26179
timeout
 
26180
run
 
26181
timeout
 
26182
run
 
26183
disconnected
 
26184
 
 
26185
# Back off for 4000 ms.
 
26186
timeout
 
26187
_ATEOF
 
26188
 
 
26189
   { set +x
 
26190
$as_echo "$at_srcdir/reconnect.at:362: test-reconnect < input"
 
26191
at_fn_check_prepare_trace "reconnect.at:362"
 
26192
( $at_check_trace; test-reconnect < input
 
26193
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
26194
at_status=$? at_failed=false
 
26195
$at_check_filter
 
26196
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
26197
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
26198
enable
 
26199
  in BACKOFF for 0 ms (0 ms backoff)
 
26200
 
 
26201
# First connect, then idle timeout kills connection.
 
26202
run
 
26203
  should connect
 
26204
connected
 
26205
  in ACTIVE for 0 ms (0 ms backoff)
 
26206
  created 1000, last received 1000, last connected 1000
 
26207
  1 successful connections out of 1 attempts, seqno 1
 
26208
  connected
 
26209
  last connected 0 ms ago, connected 0 ms total
 
26210
timeout
 
26211
  advance 5000 ms
 
26212
 
 
26213
### t=6000 ###
 
26214
  in ACTIVE for 5000 ms (0 ms backoff)
 
26215
run
 
26216
  should send probe
 
26217
  in IDLE for 0 ms (0 ms backoff)
 
26218
timeout
 
26219
  advance 5000 ms
 
26220
 
 
26221
### t=11000 ###
 
26222
  in IDLE for 5000 ms (0 ms backoff)
 
26223
run
 
26224
  should disconnect
 
26225
disconnected
 
26226
  in BACKOFF for 0 ms (1000 ms backoff)
 
26227
  1 successful connections out of 1 attempts, seqno 2
 
26228
  disconnected
 
26229
  disconnected at 11000 ms (0 ms ago)
 
26230
 
 
26231
# Back off for 1000 ms.
 
26232
timeout
 
26233
  advance 1000 ms
 
26234
 
 
26235
### t=12000 ###
 
26236
  in BACKOFF for 1000 ms (1000 ms backoff)
 
26237
  last connected 11000 ms ago, connected 10000 ms total
 
26238
run
 
26239
  should connect
 
26240
 
 
26241
# Second connect, then idle timeout kills connection.
 
26242
run
 
26243
  should connect
 
26244
connected
 
26245
  in ACTIVE for 0 ms (1000 ms backoff)
 
26246
  created 1000, last received 1000, last connected 12000
 
26247
  2 successful connections out of 2 attempts, seqno 3
 
26248
  connected
 
26249
  last connected 0 ms ago, connected 10000 ms total
 
26250
timeout
 
26251
  advance 5000 ms
 
26252
 
 
26253
### t=17000 ###
 
26254
  in ACTIVE for 5000 ms (1000 ms backoff)
 
26255
run
 
26256
  should send probe
 
26257
  in IDLE for 0 ms (1000 ms backoff)
 
26258
timeout
 
26259
  advance 5000 ms
 
26260
 
 
26261
### t=22000 ###
 
26262
  in IDLE for 5000 ms (1000 ms backoff)
 
26263
run
 
26264
  should disconnect
 
26265
disconnected
 
26266
  in BACKOFF for 0 ms (2000 ms backoff)
 
26267
  2 successful connections out of 2 attempts, seqno 4
 
26268
  disconnected
 
26269
  disconnected at 22000 ms (0 ms ago)
 
26270
 
 
26271
# Back off for 2000 ms.
 
26272
timeout
 
26273
  advance 2000 ms
 
26274
 
 
26275
### t=24000 ###
 
26276
  in BACKOFF for 2000 ms (2000 ms backoff)
 
26277
  last connected 12000 ms ago, connected 20000 ms total
 
26278
run
 
26279
  should connect
 
26280
 
 
26281
# Third connect, then idle timeout kills connection.
 
26282
run
 
26283
  should connect
 
26284
connected
 
26285
  in ACTIVE for 0 ms (2000 ms backoff)
 
26286
  created 1000, last received 1000, last connected 24000
 
26287
  3 successful connections out of 3 attempts, seqno 5
 
26288
  connected
 
26289
  last connected 0 ms ago, connected 20000 ms total
 
26290
timeout
 
26291
  advance 5000 ms
 
26292
 
 
26293
### t=29000 ###
 
26294
  in ACTIVE for 5000 ms (2000 ms backoff)
 
26295
run
 
26296
  should send probe
 
26297
  in IDLE for 0 ms (2000 ms backoff)
 
26298
timeout
 
26299
  advance 5000 ms
 
26300
 
 
26301
### t=34000 ###
 
26302
  in IDLE for 5000 ms (2000 ms backoff)
 
26303
run
 
26304
  should disconnect
 
26305
disconnected
 
26306
  in BACKOFF for 0 ms (4000 ms backoff)
 
26307
  3 successful connections out of 3 attempts, seqno 6
 
26308
  disconnected
 
26309
  disconnected at 34000 ms (0 ms ago)
 
26310
 
 
26311
# Back off for 4000 ms.
 
26312
timeout
 
26313
  advance 4000 ms
 
26314
 
 
26315
### t=38000 ###
 
26316
  in BACKOFF for 4000 ms (4000 ms backoff)
 
26317
  last connected 14000 ms ago, connected 30000 ms total
 
26318
" | \
 
26319
  $at_diff - "$at_stdout" || at_failed=:
 
26320
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:362"
 
26321
$at_failed && at_fn_log_failure
 
26322
$at_traceon; }
 
26323
 
 
26324
     set +x
 
26325
  $at_times_p && times >"$at_times_file"
 
26326
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
26327
read at_status <"$at_status_file"
 
26328
#AT_STOP_363
 
26329
#AT_START_364
 
26330
at_fn_group_banner 364 'reconnect.at:362' \
 
26331
  "connections with no data preserve backoff - Python" "" 32
 
26332
at_xfail=no
 
26333
(
 
26334
  $as_echo "364. $at_setup_line: testing $at_desc ..."
 
26335
  $at_traceon
 
26336
 
 
26337
   $as_echo "reconnect.at:362" >"$at_check_line_file"
 
26338
(test $HAVE_PYTHON = no) \
 
26339
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:362"
 
26340
 
 
26341
   cat >input <<'_ATEOF'
 
26342
enable
 
26343
 
 
26344
# First connect, then idle timeout kills connection.
 
26345
run
 
26346
connected
 
26347
timeout
 
26348
run
 
26349
timeout
 
26350
run
 
26351
disconnected
 
26352
 
 
26353
# Back off for 1000 ms.
 
26354
timeout
 
26355
run
 
26356
 
 
26357
# Second connect, then idle timeout kills connection.
 
26358
run
 
26359
connected
 
26360
timeout
 
26361
run
 
26362
timeout
 
26363
run
 
26364
disconnected
 
26365
 
 
26366
# Back off for 2000 ms.
 
26367
timeout
 
26368
run
 
26369
 
 
26370
# Third connect, then idle timeout kills connection.
 
26371
run
 
26372
connected
 
26373
timeout
 
26374
run
 
26375
timeout
 
26376
run
 
26377
disconnected
 
26378
 
 
26379
# Back off for 4000 ms.
 
26380
timeout
 
26381
_ATEOF
 
26382
 
 
26383
   { set +x
 
26384
$as_echo "$at_srcdir/reconnect.at:362: \$PYTHON \$srcdir/test-reconnect.py < input"
 
26385
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:362"
 
26386
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
26387
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
26388
at_status=$? at_failed=false
 
26389
$at_check_filter
 
26390
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
26391
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
26392
enable
 
26393
  in BACKOFF for 0 ms (0 ms backoff)
 
26394
 
 
26395
# First connect, then idle timeout kills connection.
 
26396
run
 
26397
  should connect
 
26398
connected
 
26399
  in ACTIVE for 0 ms (0 ms backoff)
 
26400
  created 1000, last received 1000, last connected 1000
 
26401
  1 successful connections out of 1 attempts, seqno 1
 
26402
  connected
 
26403
  last connected 0 ms ago, connected 0 ms total
 
26404
timeout
 
26405
  advance 5000 ms
 
26406
 
 
26407
### t=6000 ###
 
26408
  in ACTIVE for 5000 ms (0 ms backoff)
 
26409
run
 
26410
  should send probe
 
26411
  in IDLE for 0 ms (0 ms backoff)
 
26412
timeout
 
26413
  advance 5000 ms
 
26414
 
 
26415
### t=11000 ###
 
26416
  in IDLE for 5000 ms (0 ms backoff)
 
26417
run
 
26418
  should disconnect
 
26419
disconnected
 
26420
  in BACKOFF for 0 ms (1000 ms backoff)
 
26421
  1 successful connections out of 1 attempts, seqno 2
 
26422
  disconnected
 
26423
  disconnected at 11000 ms (0 ms ago)
 
26424
 
 
26425
# Back off for 1000 ms.
 
26426
timeout
 
26427
  advance 1000 ms
 
26428
 
 
26429
### t=12000 ###
 
26430
  in BACKOFF for 1000 ms (1000 ms backoff)
 
26431
  last connected 11000 ms ago, connected 10000 ms total
 
26432
run
 
26433
  should connect
 
26434
 
 
26435
# Second connect, then idle timeout kills connection.
 
26436
run
 
26437
  should connect
 
26438
connected
 
26439
  in ACTIVE for 0 ms (1000 ms backoff)
 
26440
  created 1000, last received 1000, last connected 12000
 
26441
  2 successful connections out of 2 attempts, seqno 3
 
26442
  connected
 
26443
  last connected 0 ms ago, connected 10000 ms total
 
26444
timeout
 
26445
  advance 5000 ms
 
26446
 
 
26447
### t=17000 ###
 
26448
  in ACTIVE for 5000 ms (1000 ms backoff)
 
26449
run
 
26450
  should send probe
 
26451
  in IDLE for 0 ms (1000 ms backoff)
 
26452
timeout
 
26453
  advance 5000 ms
 
26454
 
 
26455
### t=22000 ###
 
26456
  in IDLE for 5000 ms (1000 ms backoff)
 
26457
run
 
26458
  should disconnect
 
26459
disconnected
 
26460
  in BACKOFF for 0 ms (2000 ms backoff)
 
26461
  2 successful connections out of 2 attempts, seqno 4
 
26462
  disconnected
 
26463
  disconnected at 22000 ms (0 ms ago)
 
26464
 
 
26465
# Back off for 2000 ms.
 
26466
timeout
 
26467
  advance 2000 ms
 
26468
 
 
26469
### t=24000 ###
 
26470
  in BACKOFF for 2000 ms (2000 ms backoff)
 
26471
  last connected 12000 ms ago, connected 20000 ms total
 
26472
run
 
26473
  should connect
 
26474
 
 
26475
# Third connect, then idle timeout kills connection.
 
26476
run
 
26477
  should connect
 
26478
connected
 
26479
  in ACTIVE for 0 ms (2000 ms backoff)
 
26480
  created 1000, last received 1000, last connected 24000
 
26481
  3 successful connections out of 3 attempts, seqno 5
 
26482
  connected
 
26483
  last connected 0 ms ago, connected 20000 ms total
 
26484
timeout
 
26485
  advance 5000 ms
 
26486
 
 
26487
### t=29000 ###
 
26488
  in ACTIVE for 5000 ms (2000 ms backoff)
 
26489
run
 
26490
  should send probe
 
26491
  in IDLE for 0 ms (2000 ms backoff)
 
26492
timeout
 
26493
  advance 5000 ms
 
26494
 
 
26495
### t=34000 ###
 
26496
  in IDLE for 5000 ms (2000 ms backoff)
 
26497
run
 
26498
  should disconnect
 
26499
disconnected
 
26500
  in BACKOFF for 0 ms (4000 ms backoff)
 
26501
  3 successful connections out of 3 attempts, seqno 6
 
26502
  disconnected
 
26503
  disconnected at 34000 ms (0 ms ago)
 
26504
 
 
26505
# Back off for 4000 ms.
 
26506
timeout
 
26507
  advance 4000 ms
 
26508
 
 
26509
### t=38000 ###
 
26510
  in BACKOFF for 4000 ms (4000 ms backoff)
 
26511
  last connected 14000 ms ago, connected 30000 ms total
 
26512
" | \
 
26513
  $at_diff - "$at_stdout" || at_failed=:
 
26514
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:362"
 
26515
$at_failed && at_fn_log_failure
 
26516
$at_traceon; }
 
26517
 
 
26518
     set +x
 
26519
  $at_times_p && times >"$at_times_file"
 
26520
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
26521
read at_status <"$at_status_file"
 
26522
#AT_STOP_364
 
26523
#AT_START_365
 
26524
at_fn_group_banner 365 'reconnect.at:526' \
 
26525
  "brief connection preserves backoff - C" "         " 32
 
26526
at_xfail=no
 
26527
(
 
26528
  $as_echo "365. $at_setup_line: testing $at_desc ..."
 
26529
  $at_traceon
 
26530
 
 
26531
 
 
26532
 
 
26533
   cat >input <<'_ATEOF'
 
26534
enable
 
26535
 
 
26536
# First connection attempt fails after 1000 ms.
 
26537
run
 
26538
connecting
 
26539
run
 
26540
timeout
 
26541
run
 
26542
connect-failed
 
26543
 
 
26544
# Back off for 1000 ms.
 
26545
timeout
 
26546
run
 
26547
 
 
26548
# Second connection attempt fails after 1000 ms.
 
26549
connecting
 
26550
timeout
 
26551
run
 
26552
connect-failed
 
26553
 
 
26554
# Back off for 2000 ms.
 
26555
timeout
 
26556
run
 
26557
 
 
26558
# Third connection attempt succeeds after 500 ms.
 
26559
connecting
 
26560
advance 500
 
26561
run
 
26562
connected
 
26563
 
 
26564
# Connection drops after another 250 ms.
 
26565
advance 250
 
26566
disconnected
 
26567
run
 
26568
 
 
26569
# Back off for 4000 ms.
 
26570
timeout
 
26571
run
 
26572
_ATEOF
 
26573
 
 
26574
   { set +x
 
26575
$as_echo "$at_srcdir/reconnect.at:526: test-reconnect < input"
 
26576
at_fn_check_prepare_trace "reconnect.at:526"
 
26577
( $at_check_trace; test-reconnect < input
 
26578
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
26579
at_status=$? at_failed=false
 
26580
$at_check_filter
 
26581
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
26582
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
26583
enable
 
26584
  in BACKOFF for 0 ms (0 ms backoff)
 
26585
 
 
26586
# First connection attempt fails after 1000 ms.
 
26587
run
 
26588
  should connect
 
26589
connecting
 
26590
  in CONNECTING for 0 ms (0 ms backoff)
 
26591
run
 
26592
timeout
 
26593
  advance 1000 ms
 
26594
 
 
26595
### t=2000 ###
 
26596
  in CONNECTING for 1000 ms (0 ms backoff)
 
26597
run
 
26598
  should disconnect
 
26599
connect-failed
 
26600
  in BACKOFF for 0 ms (1000 ms backoff)
 
26601
  0 successful connections out of 1 attempts, seqno 0
 
26602
 
 
26603
# Back off for 1000 ms.
 
26604
timeout
 
26605
  advance 1000 ms
 
26606
 
 
26607
### t=3000 ###
 
26608
  in BACKOFF for 1000 ms (1000 ms backoff)
 
26609
run
 
26610
  should connect
 
26611
 
 
26612
# Second connection attempt fails after 1000 ms.
 
26613
connecting
 
26614
  in CONNECTING for 0 ms (1000 ms backoff)
 
26615
timeout
 
26616
  advance 1000 ms
 
26617
 
 
26618
### t=4000 ###
 
26619
  in CONNECTING for 1000 ms (1000 ms backoff)
 
26620
run
 
26621
  should disconnect
 
26622
connect-failed
 
26623
  in BACKOFF for 0 ms (2000 ms backoff)
 
26624
  0 successful connections out of 2 attempts, seqno 0
 
26625
 
 
26626
# Back off for 2000 ms.
 
26627
timeout
 
26628
  advance 2000 ms
 
26629
 
 
26630
### t=6000 ###
 
26631
  in BACKOFF for 2000 ms (2000 ms backoff)
 
26632
run
 
26633
  should connect
 
26634
 
 
26635
# Third connection attempt succeeds after 500 ms.
 
26636
connecting
 
26637
  in CONNECTING for 0 ms (2000 ms backoff)
 
26638
advance 500
 
26639
 
 
26640
### t=6500 ###
 
26641
  in CONNECTING for 500 ms (2000 ms backoff)
 
26642
run
 
26643
connected
 
26644
  in ACTIVE for 0 ms (2000 ms backoff)
 
26645
  created 1000, last received 1000, last connected 6500
 
26646
  1 successful connections out of 3 attempts, seqno 1
 
26647
  connected
 
26648
  last connected 0 ms ago, connected 0 ms total
 
26649
 
 
26650
# Connection drops after another 250 ms.
 
26651
advance 250
 
26652
 
 
26653
### t=6750 ###
 
26654
  in ACTIVE for 250 ms (2000 ms backoff)
 
26655
disconnected
 
26656
  in BACKOFF for 0 ms (4000 ms backoff)
 
26657
  1 successful connections out of 3 attempts, seqno 2
 
26658
  disconnected
 
26659
  disconnected at 6750 ms (0 ms ago)
 
26660
run
 
26661
 
 
26662
# Back off for 4000 ms.
 
26663
timeout
 
26664
  advance 4000 ms
 
26665
 
 
26666
### t=10750 ###
 
26667
  in BACKOFF for 4000 ms (4000 ms backoff)
 
26668
  last connected 4250 ms ago, connected 250 ms total
 
26669
run
 
26670
  should connect
 
26671
" | \
 
26672
  $at_diff - "$at_stdout" || at_failed=:
 
26673
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:526"
 
26674
$at_failed && at_fn_log_failure
 
26675
$at_traceon; }
 
26676
 
 
26677
     set +x
 
26678
  $at_times_p && times >"$at_times_file"
 
26679
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
26680
read at_status <"$at_status_file"
 
26681
#AT_STOP_365
 
26682
#AT_START_366
 
26683
at_fn_group_banner 366 'reconnect.at:526' \
 
26684
  "brief connection preserves backoff - Python" "    " 32
 
26685
at_xfail=no
 
26686
(
 
26687
  $as_echo "366. $at_setup_line: testing $at_desc ..."
 
26688
  $at_traceon
 
26689
 
 
26690
   $as_echo "reconnect.at:526" >"$at_check_line_file"
 
26691
(test $HAVE_PYTHON = no) \
 
26692
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:526"
 
26693
 
 
26694
   cat >input <<'_ATEOF'
 
26695
enable
 
26696
 
 
26697
# First connection attempt fails after 1000 ms.
 
26698
run
 
26699
connecting
 
26700
run
 
26701
timeout
 
26702
run
 
26703
connect-failed
 
26704
 
 
26705
# Back off for 1000 ms.
 
26706
timeout
 
26707
run
 
26708
 
 
26709
# Second connection attempt fails after 1000 ms.
 
26710
connecting
 
26711
timeout
 
26712
run
 
26713
connect-failed
 
26714
 
 
26715
# Back off for 2000 ms.
 
26716
timeout
 
26717
run
 
26718
 
 
26719
# Third connection attempt succeeds after 500 ms.
 
26720
connecting
 
26721
advance 500
 
26722
run
 
26723
connected
 
26724
 
 
26725
# Connection drops after another 250 ms.
 
26726
advance 250
 
26727
disconnected
 
26728
run
 
26729
 
 
26730
# Back off for 4000 ms.
 
26731
timeout
 
26732
run
 
26733
_ATEOF
 
26734
 
 
26735
   { set +x
 
26736
$as_echo "$at_srcdir/reconnect.at:526: \$PYTHON \$srcdir/test-reconnect.py < input"
 
26737
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:526"
 
26738
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
26739
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
26740
at_status=$? at_failed=false
 
26741
$at_check_filter
 
26742
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
26743
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
26744
enable
 
26745
  in BACKOFF for 0 ms (0 ms backoff)
 
26746
 
 
26747
# First connection attempt fails after 1000 ms.
 
26748
run
 
26749
  should connect
 
26750
connecting
 
26751
  in CONNECTING for 0 ms (0 ms backoff)
 
26752
run
 
26753
timeout
 
26754
  advance 1000 ms
 
26755
 
 
26756
### t=2000 ###
 
26757
  in CONNECTING for 1000 ms (0 ms backoff)
 
26758
run
 
26759
  should disconnect
 
26760
connect-failed
 
26761
  in BACKOFF for 0 ms (1000 ms backoff)
 
26762
  0 successful connections out of 1 attempts, seqno 0
 
26763
 
 
26764
# Back off for 1000 ms.
 
26765
timeout
 
26766
  advance 1000 ms
 
26767
 
 
26768
### t=3000 ###
 
26769
  in BACKOFF for 1000 ms (1000 ms backoff)
 
26770
run
 
26771
  should connect
 
26772
 
 
26773
# Second connection attempt fails after 1000 ms.
 
26774
connecting
 
26775
  in CONNECTING for 0 ms (1000 ms backoff)
 
26776
timeout
 
26777
  advance 1000 ms
 
26778
 
 
26779
### t=4000 ###
 
26780
  in CONNECTING for 1000 ms (1000 ms backoff)
 
26781
run
 
26782
  should disconnect
 
26783
connect-failed
 
26784
  in BACKOFF for 0 ms (2000 ms backoff)
 
26785
  0 successful connections out of 2 attempts, seqno 0
 
26786
 
 
26787
# Back off for 2000 ms.
 
26788
timeout
 
26789
  advance 2000 ms
 
26790
 
 
26791
### t=6000 ###
 
26792
  in BACKOFF for 2000 ms (2000 ms backoff)
 
26793
run
 
26794
  should connect
 
26795
 
 
26796
# Third connection attempt succeeds after 500 ms.
 
26797
connecting
 
26798
  in CONNECTING for 0 ms (2000 ms backoff)
 
26799
advance 500
 
26800
 
 
26801
### t=6500 ###
 
26802
  in CONNECTING for 500 ms (2000 ms backoff)
 
26803
run
 
26804
connected
 
26805
  in ACTIVE for 0 ms (2000 ms backoff)
 
26806
  created 1000, last received 1000, last connected 6500
 
26807
  1 successful connections out of 3 attempts, seqno 1
 
26808
  connected
 
26809
  last connected 0 ms ago, connected 0 ms total
 
26810
 
 
26811
# Connection drops after another 250 ms.
 
26812
advance 250
 
26813
 
 
26814
### t=6750 ###
 
26815
  in ACTIVE for 250 ms (2000 ms backoff)
 
26816
disconnected
 
26817
  in BACKOFF for 0 ms (4000 ms backoff)
 
26818
  1 successful connections out of 3 attempts, seqno 2
 
26819
  disconnected
 
26820
  disconnected at 6750 ms (0 ms ago)
 
26821
run
 
26822
 
 
26823
# Back off for 4000 ms.
 
26824
timeout
 
26825
  advance 4000 ms
 
26826
 
 
26827
### t=10750 ###
 
26828
  in BACKOFF for 4000 ms (4000 ms backoff)
 
26829
  last connected 4250 ms ago, connected 250 ms total
 
26830
run
 
26831
  should connect
 
26832
" | \
 
26833
  $at_diff - "$at_stdout" || at_failed=:
 
26834
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:526"
 
26835
$at_failed && at_fn_log_failure
 
26836
$at_traceon; }
 
26837
 
 
26838
     set +x
 
26839
  $at_times_p && times >"$at_times_file"
 
26840
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
26841
read at_status <"$at_status_file"
 
26842
#AT_STOP_366
 
26843
#AT_START_367
 
26844
at_fn_group_banner 367 'reconnect.at:657' \
 
26845
  "brief connection with data preserves backoff - C" "" 32
 
26846
at_xfail=no
 
26847
(
 
26848
  $as_echo "367. $at_setup_line: testing $at_desc ..."
 
26849
  $at_traceon
 
26850
 
 
26851
 
 
26852
 
 
26853
   cat >input <<'_ATEOF'
 
26854
enable
 
26855
 
 
26856
# First connection attempt fails after 1000 ms.
 
26857
run
 
26858
connecting
 
26859
run
 
26860
timeout
 
26861
run
 
26862
connect-failed
 
26863
 
 
26864
# Back off for 1000 ms.
 
26865
timeout
 
26866
run
 
26867
 
 
26868
# Second connection attempt fails after 1000 ms.
 
26869
connecting
 
26870
timeout
 
26871
run
 
26872
connect-failed
 
26873
 
 
26874
# Back off for 2000 ms.
 
26875
timeout
 
26876
run
 
26877
 
 
26878
# Third connection attempt succeeds after 500 ms.
 
26879
connecting
 
26880
advance 500
 
26881
run
 
26882
connected
 
26883
 
 
26884
# Connection receives 3 chunks of data spaced 250 ms apart.
 
26885
advance 250
 
26886
run
 
26887
received
 
26888
advance 250
 
26889
run
 
26890
received
 
26891
advance 250
 
26892
run
 
26893
received
 
26894
 
 
26895
# Connection drops.
 
26896
disconnected
 
26897
run
 
26898
 
 
26899
# Back off for 4000 ms.
 
26900
timeout
 
26901
run
 
26902
_ATEOF
 
26903
 
 
26904
   { set +x
 
26905
$as_echo "$at_srcdir/reconnect.at:657: test-reconnect < input"
 
26906
at_fn_check_prepare_trace "reconnect.at:657"
 
26907
( $at_check_trace; test-reconnect < input
 
26908
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
26909
at_status=$? at_failed=false
 
26910
$at_check_filter
 
26911
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
26912
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
26913
enable
 
26914
  in BACKOFF for 0 ms (0 ms backoff)
 
26915
 
 
26916
# First connection attempt fails after 1000 ms.
 
26917
run
 
26918
  should connect
 
26919
connecting
 
26920
  in CONNECTING for 0 ms (0 ms backoff)
 
26921
run
 
26922
timeout
 
26923
  advance 1000 ms
 
26924
 
 
26925
### t=2000 ###
 
26926
  in CONNECTING for 1000 ms (0 ms backoff)
 
26927
run
 
26928
  should disconnect
 
26929
connect-failed
 
26930
  in BACKOFF for 0 ms (1000 ms backoff)
 
26931
  0 successful connections out of 1 attempts, seqno 0
 
26932
 
 
26933
# Back off for 1000 ms.
 
26934
timeout
 
26935
  advance 1000 ms
 
26936
 
 
26937
### t=3000 ###
 
26938
  in BACKOFF for 1000 ms (1000 ms backoff)
 
26939
run
 
26940
  should connect
 
26941
 
 
26942
# Second connection attempt fails after 1000 ms.
 
26943
connecting
 
26944
  in CONNECTING for 0 ms (1000 ms backoff)
 
26945
timeout
 
26946
  advance 1000 ms
 
26947
 
 
26948
### t=4000 ###
 
26949
  in CONNECTING for 1000 ms (1000 ms backoff)
 
26950
run
 
26951
  should disconnect
 
26952
connect-failed
 
26953
  in BACKOFF for 0 ms (2000 ms backoff)
 
26954
  0 successful connections out of 2 attempts, seqno 0
 
26955
 
 
26956
# Back off for 2000 ms.
 
26957
timeout
 
26958
  advance 2000 ms
 
26959
 
 
26960
### t=6000 ###
 
26961
  in BACKOFF for 2000 ms (2000 ms backoff)
 
26962
run
 
26963
  should connect
 
26964
 
 
26965
# Third connection attempt succeeds after 500 ms.
 
26966
connecting
 
26967
  in CONNECTING for 0 ms (2000 ms backoff)
 
26968
advance 500
 
26969
 
 
26970
### t=6500 ###
 
26971
  in CONNECTING for 500 ms (2000 ms backoff)
 
26972
run
 
26973
connected
 
26974
  in ACTIVE for 0 ms (2000 ms backoff)
 
26975
  created 1000, last received 1000, last connected 6500
 
26976
  1 successful connections out of 3 attempts, seqno 1
 
26977
  connected
 
26978
  last connected 0 ms ago, connected 0 ms total
 
26979
 
 
26980
# Connection receives 3 chunks of data spaced 250 ms apart.
 
26981
advance 250
 
26982
 
 
26983
### t=6750 ###
 
26984
  in ACTIVE for 250 ms (2000 ms backoff)
 
26985
run
 
26986
received
 
26987
  created 1000, last received 6750, last connected 6500
 
26988
advance 250
 
26989
 
 
26990
### t=7000 ###
 
26991
  in ACTIVE for 500 ms (2000 ms backoff)
 
26992
run
 
26993
received
 
26994
  created 1000, last received 7000, last connected 6500
 
26995
advance 250
 
26996
 
 
26997
### t=7250 ###
 
26998
  in ACTIVE for 750 ms (2000 ms backoff)
 
26999
run
 
27000
received
 
27001
  created 1000, last received 7250, last connected 6500
 
27002
 
 
27003
# Connection drops.
 
27004
disconnected
 
27005
  in BACKOFF for 0 ms (4000 ms backoff)
 
27006
  1 successful connections out of 3 attempts, seqno 2
 
27007
  disconnected
 
27008
  disconnected at 7250 ms (0 ms ago)
 
27009
run
 
27010
 
 
27011
# Back off for 4000 ms.
 
27012
timeout
 
27013
  advance 4000 ms
 
27014
 
 
27015
### t=11250 ###
 
27016
  in BACKOFF for 4000 ms (4000 ms backoff)
 
27017
  last connected 4750 ms ago, connected 750 ms total
 
27018
run
 
27019
  should connect
 
27020
" | \
 
27021
  $at_diff - "$at_stdout" || at_failed=:
 
27022
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:657"
 
27023
$at_failed && at_fn_log_failure
 
27024
$at_traceon; }
 
27025
 
 
27026
     set +x
 
27027
  $at_times_p && times >"$at_times_file"
 
27028
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27029
read at_status <"$at_status_file"
 
27030
#AT_STOP_367
 
27031
#AT_START_368
 
27032
at_fn_group_banner 368 'reconnect.at:657' \
 
27033
  "brief connection with data preserves backoff - Python" "" 32
 
27034
at_xfail=no
 
27035
(
 
27036
  $as_echo "368. $at_setup_line: testing $at_desc ..."
 
27037
  $at_traceon
 
27038
 
 
27039
   $as_echo "reconnect.at:657" >"$at_check_line_file"
 
27040
(test $HAVE_PYTHON = no) \
 
27041
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:657"
 
27042
 
 
27043
   cat >input <<'_ATEOF'
 
27044
enable
 
27045
 
 
27046
# First connection attempt fails after 1000 ms.
 
27047
run
 
27048
connecting
 
27049
run
 
27050
timeout
 
27051
run
 
27052
connect-failed
 
27053
 
 
27054
# Back off for 1000 ms.
 
27055
timeout
 
27056
run
 
27057
 
 
27058
# Second connection attempt fails after 1000 ms.
 
27059
connecting
 
27060
timeout
 
27061
run
 
27062
connect-failed
 
27063
 
 
27064
# Back off for 2000 ms.
 
27065
timeout
 
27066
run
 
27067
 
 
27068
# Third connection attempt succeeds after 500 ms.
 
27069
connecting
 
27070
advance 500
 
27071
run
 
27072
connected
 
27073
 
 
27074
# Connection receives 3 chunks of data spaced 250 ms apart.
 
27075
advance 250
 
27076
run
 
27077
received
 
27078
advance 250
 
27079
run
 
27080
received
 
27081
advance 250
 
27082
run
 
27083
received
 
27084
 
 
27085
# Connection drops.
 
27086
disconnected
 
27087
run
 
27088
 
 
27089
# Back off for 4000 ms.
 
27090
timeout
 
27091
run
 
27092
_ATEOF
 
27093
 
 
27094
   { set +x
 
27095
$as_echo "$at_srcdir/reconnect.at:657: \$PYTHON \$srcdir/test-reconnect.py < input"
 
27096
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:657"
 
27097
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
27098
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
27099
at_status=$? at_failed=false
 
27100
$at_check_filter
 
27101
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
27102
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
27103
enable
 
27104
  in BACKOFF for 0 ms (0 ms backoff)
 
27105
 
 
27106
# First connection attempt fails after 1000 ms.
 
27107
run
 
27108
  should connect
 
27109
connecting
 
27110
  in CONNECTING for 0 ms (0 ms backoff)
 
27111
run
 
27112
timeout
 
27113
  advance 1000 ms
 
27114
 
 
27115
### t=2000 ###
 
27116
  in CONNECTING for 1000 ms (0 ms backoff)
 
27117
run
 
27118
  should disconnect
 
27119
connect-failed
 
27120
  in BACKOFF for 0 ms (1000 ms backoff)
 
27121
  0 successful connections out of 1 attempts, seqno 0
 
27122
 
 
27123
# Back off for 1000 ms.
 
27124
timeout
 
27125
  advance 1000 ms
 
27126
 
 
27127
### t=3000 ###
 
27128
  in BACKOFF for 1000 ms (1000 ms backoff)
 
27129
run
 
27130
  should connect
 
27131
 
 
27132
# Second connection attempt fails after 1000 ms.
 
27133
connecting
 
27134
  in CONNECTING for 0 ms (1000 ms backoff)
 
27135
timeout
 
27136
  advance 1000 ms
 
27137
 
 
27138
### t=4000 ###
 
27139
  in CONNECTING for 1000 ms (1000 ms backoff)
 
27140
run
 
27141
  should disconnect
 
27142
connect-failed
 
27143
  in BACKOFF for 0 ms (2000 ms backoff)
 
27144
  0 successful connections out of 2 attempts, seqno 0
 
27145
 
 
27146
# Back off for 2000 ms.
 
27147
timeout
 
27148
  advance 2000 ms
 
27149
 
 
27150
### t=6000 ###
 
27151
  in BACKOFF for 2000 ms (2000 ms backoff)
 
27152
run
 
27153
  should connect
 
27154
 
 
27155
# Third connection attempt succeeds after 500 ms.
 
27156
connecting
 
27157
  in CONNECTING for 0 ms (2000 ms backoff)
 
27158
advance 500
 
27159
 
 
27160
### t=6500 ###
 
27161
  in CONNECTING for 500 ms (2000 ms backoff)
 
27162
run
 
27163
connected
 
27164
  in ACTIVE for 0 ms (2000 ms backoff)
 
27165
  created 1000, last received 1000, last connected 6500
 
27166
  1 successful connections out of 3 attempts, seqno 1
 
27167
  connected
 
27168
  last connected 0 ms ago, connected 0 ms total
 
27169
 
 
27170
# Connection receives 3 chunks of data spaced 250 ms apart.
 
27171
advance 250
 
27172
 
 
27173
### t=6750 ###
 
27174
  in ACTIVE for 250 ms (2000 ms backoff)
 
27175
run
 
27176
received
 
27177
  created 1000, last received 6750, last connected 6500
 
27178
advance 250
 
27179
 
 
27180
### t=7000 ###
 
27181
  in ACTIVE for 500 ms (2000 ms backoff)
 
27182
run
 
27183
received
 
27184
  created 1000, last received 7000, last connected 6500
 
27185
advance 250
 
27186
 
 
27187
### t=7250 ###
 
27188
  in ACTIVE for 750 ms (2000 ms backoff)
 
27189
run
 
27190
received
 
27191
  created 1000, last received 7250, last connected 6500
 
27192
 
 
27193
# Connection drops.
 
27194
disconnected
 
27195
  in BACKOFF for 0 ms (4000 ms backoff)
 
27196
  1 successful connections out of 3 attempts, seqno 2
 
27197
  disconnected
 
27198
  disconnected at 7250 ms (0 ms ago)
 
27199
run
 
27200
 
 
27201
# Back off for 4000 ms.
 
27202
timeout
 
27203
  advance 4000 ms
 
27204
 
 
27205
### t=11250 ###
 
27206
  in BACKOFF for 4000 ms (4000 ms backoff)
 
27207
  last connected 4750 ms ago, connected 750 ms total
 
27208
run
 
27209
  should connect
 
27210
" | \
 
27211
  $at_diff - "$at_stdout" || at_failed=:
 
27212
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:657"
 
27213
$at_failed && at_fn_log_failure
 
27214
$at_traceon; }
 
27215
 
 
27216
     set +x
 
27217
  $at_times_p && times >"$at_times_file"
 
27218
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27219
read at_status <"$at_status_file"
 
27220
#AT_STOP_368
 
27221
#AT_START_369
 
27222
at_fn_group_banner 369 'reconnect.at:818' \
 
27223
  "long connection resets backoff - C" "             " 32
 
27224
at_xfail=no
 
27225
(
 
27226
  $as_echo "369. $at_setup_line: testing $at_desc ..."
 
27227
  $at_traceon
 
27228
 
 
27229
 
 
27230
 
 
27231
   cat >input <<'_ATEOF'
 
27232
enable
 
27233
 
 
27234
# First connection attempt fails after 1000 ms.
 
27235
run
 
27236
connecting
 
27237
run
 
27238
timeout
 
27239
run
 
27240
connect-failed
 
27241
 
 
27242
# Back off for 1000 ms.
 
27243
timeout
 
27244
run
 
27245
 
 
27246
# Second connection attempt fails after 1000 ms.
 
27247
connecting
 
27248
timeout
 
27249
run
 
27250
connect-failed
 
27251
 
 
27252
# Back off for 2000 ms.
 
27253
timeout
 
27254
run
 
27255
 
 
27256
# Third connection attempt succeeds after 500 ms.
 
27257
connecting
 
27258
advance 500
 
27259
run
 
27260
connected
 
27261
 
 
27262
# Connection receives 3 chunks of data spaced 2000 ms apart.
 
27263
advance 2000
 
27264
run
 
27265
received
 
27266
advance 2000
 
27267
run
 
27268
received
 
27269
advance 2000
 
27270
run
 
27271
received
 
27272
 
 
27273
# Connection drops.
 
27274
disconnected
 
27275
run
 
27276
 
 
27277
# Back off for 1000 ms.
 
27278
timeout
 
27279
run
 
27280
_ATEOF
 
27281
 
 
27282
   { set +x
 
27283
$as_echo "$at_srcdir/reconnect.at:818: test-reconnect < input"
 
27284
at_fn_check_prepare_trace "reconnect.at:818"
 
27285
( $at_check_trace; test-reconnect < input
 
27286
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
27287
at_status=$? at_failed=false
 
27288
$at_check_filter
 
27289
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
27290
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
27291
enable
 
27292
  in BACKOFF for 0 ms (0 ms backoff)
 
27293
 
 
27294
# First connection attempt fails after 1000 ms.
 
27295
run
 
27296
  should connect
 
27297
connecting
 
27298
  in CONNECTING for 0 ms (0 ms backoff)
 
27299
run
 
27300
timeout
 
27301
  advance 1000 ms
 
27302
 
 
27303
### t=2000 ###
 
27304
  in CONNECTING for 1000 ms (0 ms backoff)
 
27305
run
 
27306
  should disconnect
 
27307
connect-failed
 
27308
  in BACKOFF for 0 ms (1000 ms backoff)
 
27309
  0 successful connections out of 1 attempts, seqno 0
 
27310
 
 
27311
# Back off for 1000 ms.
 
27312
timeout
 
27313
  advance 1000 ms
 
27314
 
 
27315
### t=3000 ###
 
27316
  in BACKOFF for 1000 ms (1000 ms backoff)
 
27317
run
 
27318
  should connect
 
27319
 
 
27320
# Second connection attempt fails after 1000 ms.
 
27321
connecting
 
27322
  in CONNECTING for 0 ms (1000 ms backoff)
 
27323
timeout
 
27324
  advance 1000 ms
 
27325
 
 
27326
### t=4000 ###
 
27327
  in CONNECTING for 1000 ms (1000 ms backoff)
 
27328
run
 
27329
  should disconnect
 
27330
connect-failed
 
27331
  in BACKOFF for 0 ms (2000 ms backoff)
 
27332
  0 successful connections out of 2 attempts, seqno 0
 
27333
 
 
27334
# Back off for 2000 ms.
 
27335
timeout
 
27336
  advance 2000 ms
 
27337
 
 
27338
### t=6000 ###
 
27339
  in BACKOFF for 2000 ms (2000 ms backoff)
 
27340
run
 
27341
  should connect
 
27342
 
 
27343
# Third connection attempt succeeds after 500 ms.
 
27344
connecting
 
27345
  in CONNECTING for 0 ms (2000 ms backoff)
 
27346
advance 500
 
27347
 
 
27348
### t=6500 ###
 
27349
  in CONNECTING for 500 ms (2000 ms backoff)
 
27350
run
 
27351
connected
 
27352
  in ACTIVE for 0 ms (2000 ms backoff)
 
27353
  created 1000, last received 1000, last connected 6500
 
27354
  1 successful connections out of 3 attempts, seqno 1
 
27355
  connected
 
27356
  last connected 0 ms ago, connected 0 ms total
 
27357
 
 
27358
# Connection receives 3 chunks of data spaced 2000 ms apart.
 
27359
advance 2000
 
27360
 
 
27361
### t=8500 ###
 
27362
  in ACTIVE for 2000 ms (2000 ms backoff)
 
27363
run
 
27364
received
 
27365
  created 1000, last received 8500, last connected 6500
 
27366
advance 2000
 
27367
 
 
27368
### t=10500 ###
 
27369
  in ACTIVE for 4000 ms (2000 ms backoff)
 
27370
run
 
27371
received
 
27372
  created 1000, last received 10500, last connected 6500
 
27373
advance 2000
 
27374
 
 
27375
### t=12500 ###
 
27376
  in ACTIVE for 6000 ms (2000 ms backoff)
 
27377
run
 
27378
received
 
27379
  created 1000, last received 12500, last connected 6500
 
27380
 
 
27381
# Connection drops.
 
27382
disconnected
 
27383
  in BACKOFF for 0 ms (1000 ms backoff)
 
27384
  1 successful connections out of 3 attempts, seqno 2
 
27385
  disconnected
 
27386
  disconnected at 12500 ms (0 ms ago)
 
27387
run
 
27388
 
 
27389
# Back off for 1000 ms.
 
27390
timeout
 
27391
  advance 1000 ms
 
27392
 
 
27393
### t=13500 ###
 
27394
  in BACKOFF for 1000 ms (1000 ms backoff)
 
27395
  last connected 7000 ms ago, connected 6000 ms total
 
27396
run
 
27397
  should connect
 
27398
" | \
 
27399
  $at_diff - "$at_stdout" || at_failed=:
 
27400
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:818"
 
27401
$at_failed && at_fn_log_failure
 
27402
$at_traceon; }
 
27403
 
 
27404
     set +x
 
27405
  $at_times_p && times >"$at_times_file"
 
27406
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27407
read at_status <"$at_status_file"
 
27408
#AT_STOP_369
 
27409
#AT_START_370
 
27410
at_fn_group_banner 370 'reconnect.at:818' \
 
27411
  "long connection resets backoff - Python" "        " 32
 
27412
at_xfail=no
 
27413
(
 
27414
  $as_echo "370. $at_setup_line: testing $at_desc ..."
 
27415
  $at_traceon
 
27416
 
 
27417
   $as_echo "reconnect.at:818" >"$at_check_line_file"
 
27418
(test $HAVE_PYTHON = no) \
 
27419
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:818"
 
27420
 
 
27421
   cat >input <<'_ATEOF'
 
27422
enable
 
27423
 
 
27424
# First connection attempt fails after 1000 ms.
 
27425
run
 
27426
connecting
 
27427
run
 
27428
timeout
 
27429
run
 
27430
connect-failed
 
27431
 
 
27432
# Back off for 1000 ms.
 
27433
timeout
 
27434
run
 
27435
 
 
27436
# Second connection attempt fails after 1000 ms.
 
27437
connecting
 
27438
timeout
 
27439
run
 
27440
connect-failed
 
27441
 
 
27442
# Back off for 2000 ms.
 
27443
timeout
 
27444
run
 
27445
 
 
27446
# Third connection attempt succeeds after 500 ms.
 
27447
connecting
 
27448
advance 500
 
27449
run
 
27450
connected
 
27451
 
 
27452
# Connection receives 3 chunks of data spaced 2000 ms apart.
 
27453
advance 2000
 
27454
run
 
27455
received
 
27456
advance 2000
 
27457
run
 
27458
received
 
27459
advance 2000
 
27460
run
 
27461
received
 
27462
 
 
27463
# Connection drops.
 
27464
disconnected
 
27465
run
 
27466
 
 
27467
# Back off for 1000 ms.
 
27468
timeout
 
27469
run
 
27470
_ATEOF
 
27471
 
 
27472
   { set +x
 
27473
$as_echo "$at_srcdir/reconnect.at:818: \$PYTHON \$srcdir/test-reconnect.py < input"
 
27474
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:818"
 
27475
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
27476
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
27477
at_status=$? at_failed=false
 
27478
$at_check_filter
 
27479
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
27480
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
27481
enable
 
27482
  in BACKOFF for 0 ms (0 ms backoff)
 
27483
 
 
27484
# First connection attempt fails after 1000 ms.
 
27485
run
 
27486
  should connect
 
27487
connecting
 
27488
  in CONNECTING for 0 ms (0 ms backoff)
 
27489
run
 
27490
timeout
 
27491
  advance 1000 ms
 
27492
 
 
27493
### t=2000 ###
 
27494
  in CONNECTING for 1000 ms (0 ms backoff)
 
27495
run
 
27496
  should disconnect
 
27497
connect-failed
 
27498
  in BACKOFF for 0 ms (1000 ms backoff)
 
27499
  0 successful connections out of 1 attempts, seqno 0
 
27500
 
 
27501
# Back off for 1000 ms.
 
27502
timeout
 
27503
  advance 1000 ms
 
27504
 
 
27505
### t=3000 ###
 
27506
  in BACKOFF for 1000 ms (1000 ms backoff)
 
27507
run
 
27508
  should connect
 
27509
 
 
27510
# Second connection attempt fails after 1000 ms.
 
27511
connecting
 
27512
  in CONNECTING for 0 ms (1000 ms backoff)
 
27513
timeout
 
27514
  advance 1000 ms
 
27515
 
 
27516
### t=4000 ###
 
27517
  in CONNECTING for 1000 ms (1000 ms backoff)
 
27518
run
 
27519
  should disconnect
 
27520
connect-failed
 
27521
  in BACKOFF for 0 ms (2000 ms backoff)
 
27522
  0 successful connections out of 2 attempts, seqno 0
 
27523
 
 
27524
# Back off for 2000 ms.
 
27525
timeout
 
27526
  advance 2000 ms
 
27527
 
 
27528
### t=6000 ###
 
27529
  in BACKOFF for 2000 ms (2000 ms backoff)
 
27530
run
 
27531
  should connect
 
27532
 
 
27533
# Third connection attempt succeeds after 500 ms.
 
27534
connecting
 
27535
  in CONNECTING for 0 ms (2000 ms backoff)
 
27536
advance 500
 
27537
 
 
27538
### t=6500 ###
 
27539
  in CONNECTING for 500 ms (2000 ms backoff)
 
27540
run
 
27541
connected
 
27542
  in ACTIVE for 0 ms (2000 ms backoff)
 
27543
  created 1000, last received 1000, last connected 6500
 
27544
  1 successful connections out of 3 attempts, seqno 1
 
27545
  connected
 
27546
  last connected 0 ms ago, connected 0 ms total
 
27547
 
 
27548
# Connection receives 3 chunks of data spaced 2000 ms apart.
 
27549
advance 2000
 
27550
 
 
27551
### t=8500 ###
 
27552
  in ACTIVE for 2000 ms (2000 ms backoff)
 
27553
run
 
27554
received
 
27555
  created 1000, last received 8500, last connected 6500
 
27556
advance 2000
 
27557
 
 
27558
### t=10500 ###
 
27559
  in ACTIVE for 4000 ms (2000 ms backoff)
 
27560
run
 
27561
received
 
27562
  created 1000, last received 10500, last connected 6500
 
27563
advance 2000
 
27564
 
 
27565
### t=12500 ###
 
27566
  in ACTIVE for 6000 ms (2000 ms backoff)
 
27567
run
 
27568
received
 
27569
  created 1000, last received 12500, last connected 6500
 
27570
 
 
27571
# Connection drops.
 
27572
disconnected
 
27573
  in BACKOFF for 0 ms (1000 ms backoff)
 
27574
  1 successful connections out of 3 attempts, seqno 2
 
27575
  disconnected
 
27576
  disconnected at 12500 ms (0 ms ago)
 
27577
run
 
27578
 
 
27579
# Back off for 1000 ms.
 
27580
timeout
 
27581
  advance 1000 ms
 
27582
 
 
27583
### t=13500 ###
 
27584
  in BACKOFF for 1000 ms (1000 ms backoff)
 
27585
  last connected 7000 ms ago, connected 6000 ms total
 
27586
run
 
27587
  should connect
 
27588
" | \
 
27589
  $at_diff - "$at_stdout" || at_failed=:
 
27590
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:818"
 
27591
$at_failed && at_fn_log_failure
 
27592
$at_traceon; }
 
27593
 
 
27594
     set +x
 
27595
  $at_times_p && times >"$at_times_file"
 
27596
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27597
read at_status <"$at_status_file"
 
27598
#AT_STOP_370
 
27599
#AT_START_371
 
27600
at_fn_group_banner 371 'reconnect.at:979' \
 
27601
  "connection attempt fails quickly - C" "           " 32
 
27602
at_xfail=no
 
27603
(
 
27604
  $as_echo "371. $at_setup_line: testing $at_desc ..."
 
27605
  $at_traceon
 
27606
 
 
27607
 
 
27608
 
 
27609
   cat >input <<'_ATEOF'
 
27610
enable
 
27611
 
 
27612
# Connection fails quickly.
 
27613
run
 
27614
connect-failed ECONNREFUSED
 
27615
 
 
27616
# Back off for 1000 ms.
 
27617
run
 
27618
timeout
 
27619
 
 
27620
# Connection fails quickly again.
 
27621
run
 
27622
connect-failed ECONNREFUSED
 
27623
 
 
27624
# Back off for 2000 ms.
 
27625
run
 
27626
timeout
 
27627
_ATEOF
 
27628
 
 
27629
   { set +x
 
27630
$as_echo "$at_srcdir/reconnect.at:979: test-reconnect < input"
 
27631
at_fn_check_prepare_trace "reconnect.at:979"
 
27632
( $at_check_trace; test-reconnect < input
 
27633
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
27634
at_status=$? at_failed=false
 
27635
$at_check_filter
 
27636
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
27637
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
27638
enable
 
27639
  in BACKOFF for 0 ms (0 ms backoff)
 
27640
 
 
27641
# Connection fails quickly.
 
27642
run
 
27643
  should connect
 
27644
connect-failed ECONNREFUSED
 
27645
  in BACKOFF for 0 ms (1000 ms backoff)
 
27646
  0 successful connections out of 1 attempts, seqno 0
 
27647
 
 
27648
# Back off for 1000 ms.
 
27649
run
 
27650
timeout
 
27651
  advance 1000 ms
 
27652
 
 
27653
### t=2000 ###
 
27654
  in BACKOFF for 1000 ms (1000 ms backoff)
 
27655
 
 
27656
# Connection fails quickly again.
 
27657
run
 
27658
  should connect
 
27659
connect-failed ECONNREFUSED
 
27660
  in BACKOFF for 0 ms (2000 ms backoff)
 
27661
  0 successful connections out of 2 attempts, seqno 0
 
27662
 
 
27663
# Back off for 2000 ms.
 
27664
run
 
27665
timeout
 
27666
  advance 2000 ms
 
27667
 
 
27668
### t=4000 ###
 
27669
  in BACKOFF for 2000 ms (2000 ms backoff)
 
27670
" | \
 
27671
  $at_diff - "$at_stdout" || at_failed=:
 
27672
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:979"
 
27673
$at_failed && at_fn_log_failure
 
27674
$at_traceon; }
 
27675
 
 
27676
     set +x
 
27677
  $at_times_p && times >"$at_times_file"
 
27678
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27679
read at_status <"$at_status_file"
 
27680
#AT_STOP_371
 
27681
#AT_START_372
 
27682
at_fn_group_banner 372 'reconnect.at:979' \
 
27683
  "connection attempt fails quickly - Python" "      " 32
 
27684
at_xfail=no
 
27685
(
 
27686
  $as_echo "372. $at_setup_line: testing $at_desc ..."
 
27687
  $at_traceon
 
27688
 
 
27689
   $as_echo "reconnect.at:979" >"$at_check_line_file"
 
27690
(test $HAVE_PYTHON = no) \
 
27691
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:979"
 
27692
 
 
27693
   cat >input <<'_ATEOF'
 
27694
enable
 
27695
 
 
27696
# Connection fails quickly.
 
27697
run
 
27698
connect-failed ECONNREFUSED
 
27699
 
 
27700
# Back off for 1000 ms.
 
27701
run
 
27702
timeout
 
27703
 
 
27704
# Connection fails quickly again.
 
27705
run
 
27706
connect-failed ECONNREFUSED
 
27707
 
 
27708
# Back off for 2000 ms.
 
27709
run
 
27710
timeout
 
27711
_ATEOF
 
27712
 
 
27713
   { set +x
 
27714
$as_echo "$at_srcdir/reconnect.at:979: \$PYTHON \$srcdir/test-reconnect.py < input"
 
27715
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:979"
 
27716
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
27717
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
27718
at_status=$? at_failed=false
 
27719
$at_check_filter
 
27720
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
27721
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
27722
enable
 
27723
  in BACKOFF for 0 ms (0 ms backoff)
 
27724
 
 
27725
# Connection fails quickly.
 
27726
run
 
27727
  should connect
 
27728
connect-failed ECONNREFUSED
 
27729
  in BACKOFF for 0 ms (1000 ms backoff)
 
27730
  0 successful connections out of 1 attempts, seqno 0
 
27731
 
 
27732
# Back off for 1000 ms.
 
27733
run
 
27734
timeout
 
27735
  advance 1000 ms
 
27736
 
 
27737
### t=2000 ###
 
27738
  in BACKOFF for 1000 ms (1000 ms backoff)
 
27739
 
 
27740
# Connection fails quickly again.
 
27741
run
 
27742
  should connect
 
27743
connect-failed ECONNREFUSED
 
27744
  in BACKOFF for 0 ms (2000 ms backoff)
 
27745
  0 successful connections out of 2 attempts, seqno 0
 
27746
 
 
27747
# Back off for 2000 ms.
 
27748
run
 
27749
timeout
 
27750
  advance 2000 ms
 
27751
 
 
27752
### t=4000 ###
 
27753
  in BACKOFF for 2000 ms (2000 ms backoff)
 
27754
" | \
 
27755
  $at_diff - "$at_stdout" || at_failed=:
 
27756
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:979"
 
27757
$at_failed && at_fn_log_failure
 
27758
$at_traceon; }
 
27759
 
 
27760
     set +x
 
27761
  $at_times_p && times >"$at_times_file"
 
27762
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27763
read at_status <"$at_status_file"
 
27764
#AT_STOP_372
 
27765
#AT_START_373
 
27766
at_fn_group_banner 373 'reconnect.at:1034' \
 
27767
  "max-tries of 1 honored - C" "                     " 32
 
27768
at_xfail=no
 
27769
(
 
27770
  $as_echo "373. $at_setup_line: testing $at_desc ..."
 
27771
  $at_traceon
 
27772
 
 
27773
 
 
27774
 
 
27775
   cat >input <<'_ATEOF'
 
27776
set-max-tries 1
 
27777
enable
 
27778
 
 
27779
# Connection succeeds.
 
27780
run
 
27781
connected
 
27782
 
 
27783
# Send inactivity probe.
 
27784
timeout
 
27785
run
 
27786
 
 
27787
# Idle timeout kills connection.
 
27788
timeout
 
27789
run
 
27790
disconnected
 
27791
_ATEOF
 
27792
 
 
27793
   { set +x
 
27794
$as_echo "$at_srcdir/reconnect.at:1034: test-reconnect < input"
 
27795
at_fn_check_prepare_trace "reconnect.at:1034"
 
27796
( $at_check_trace; test-reconnect < input
 
27797
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
27798
at_status=$? at_failed=false
 
27799
$at_check_filter
 
27800
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
27801
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
27802
set-max-tries 1
 
27803
  1 tries left
 
27804
enable
 
27805
  in BACKOFF for 0 ms (0 ms backoff)
 
27806
  0 tries left
 
27807
 
 
27808
# Connection succeeds.
 
27809
run
 
27810
  should connect
 
27811
connected
 
27812
  in ACTIVE for 0 ms (0 ms backoff)
 
27813
  created 1000, last received 1000, last connected 1000
 
27814
  1 successful connections out of 1 attempts, seqno 1
 
27815
  connected
 
27816
  last connected 0 ms ago, connected 0 ms total
 
27817
 
 
27818
# Send inactivity probe.
 
27819
timeout
 
27820
  advance 5000 ms
 
27821
 
 
27822
### t=6000 ###
 
27823
  in ACTIVE for 5000 ms (0 ms backoff)
 
27824
run
 
27825
  should send probe
 
27826
  in IDLE for 0 ms (0 ms backoff)
 
27827
 
 
27828
# Idle timeout kills connection.
 
27829
timeout
 
27830
  advance 5000 ms
 
27831
 
 
27832
### t=11000 ###
 
27833
  in IDLE for 5000 ms (0 ms backoff)
 
27834
run
 
27835
  should disconnect
 
27836
disconnected
 
27837
  in VOID for 0 ms (1000 ms backoff)
 
27838
  1 successful connections out of 1 attempts, seqno 2
 
27839
  disconnected
 
27840
  disconnected at 11000 ms (0 ms ago)
 
27841
" | \
 
27842
  $at_diff - "$at_stdout" || at_failed=:
 
27843
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:1034"
 
27844
$at_failed && at_fn_log_failure
 
27845
$at_traceon; }
 
27846
 
 
27847
     set +x
 
27848
  $at_times_p && times >"$at_times_file"
 
27849
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27850
read at_status <"$at_status_file"
 
27851
#AT_STOP_373
 
27852
#AT_START_374
 
27853
at_fn_group_banner 374 'reconnect.at:1034' \
 
27854
  "max-tries of 1 honored - Python" "                " 32
 
27855
at_xfail=no
 
27856
(
 
27857
  $as_echo "374. $at_setup_line: testing $at_desc ..."
 
27858
  $at_traceon
 
27859
 
 
27860
   $as_echo "reconnect.at:1034" >"$at_check_line_file"
 
27861
(test $HAVE_PYTHON = no) \
 
27862
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:1034"
 
27863
 
 
27864
   cat >input <<'_ATEOF'
 
27865
set-max-tries 1
 
27866
enable
 
27867
 
 
27868
# Connection succeeds.
 
27869
run
 
27870
connected
 
27871
 
 
27872
# Send inactivity probe.
 
27873
timeout
 
27874
run
 
27875
 
 
27876
# Idle timeout kills connection.
 
27877
timeout
 
27878
run
 
27879
disconnected
 
27880
_ATEOF
 
27881
 
 
27882
   { set +x
 
27883
$as_echo "$at_srcdir/reconnect.at:1034: \$PYTHON \$srcdir/test-reconnect.py < input"
 
27884
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:1034"
 
27885
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
27886
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
27887
at_status=$? at_failed=false
 
27888
$at_check_filter
 
27889
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
27890
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
27891
set-max-tries 1
 
27892
  1 tries left
 
27893
enable
 
27894
  in BACKOFF for 0 ms (0 ms backoff)
 
27895
  0 tries left
 
27896
 
 
27897
# Connection succeeds.
 
27898
run
 
27899
  should connect
 
27900
connected
 
27901
  in ACTIVE for 0 ms (0 ms backoff)
 
27902
  created 1000, last received 1000, last connected 1000
 
27903
  1 successful connections out of 1 attempts, seqno 1
 
27904
  connected
 
27905
  last connected 0 ms ago, connected 0 ms total
 
27906
 
 
27907
# Send inactivity probe.
 
27908
timeout
 
27909
  advance 5000 ms
 
27910
 
 
27911
### t=6000 ###
 
27912
  in ACTIVE for 5000 ms (0 ms backoff)
 
27913
run
 
27914
  should send probe
 
27915
  in IDLE for 0 ms (0 ms backoff)
 
27916
 
 
27917
# Idle timeout kills connection.
 
27918
timeout
 
27919
  advance 5000 ms
 
27920
 
 
27921
### t=11000 ###
 
27922
  in IDLE for 5000 ms (0 ms backoff)
 
27923
run
 
27924
  should disconnect
 
27925
disconnected
 
27926
  in VOID for 0 ms (1000 ms backoff)
 
27927
  1 successful connections out of 1 attempts, seqno 2
 
27928
  disconnected
 
27929
  disconnected at 11000 ms (0 ms ago)
 
27930
" | \
 
27931
  $at_diff - "$at_stdout" || at_failed=:
 
27932
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:1034"
 
27933
$at_failed && at_fn_log_failure
 
27934
$at_traceon; }
 
27935
 
 
27936
     set +x
 
27937
  $at_times_p && times >"$at_times_file"
 
27938
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27939
read at_status <"$at_status_file"
 
27940
#AT_STOP_374
 
27941
#AT_START_375
 
27942
at_fn_group_banner 375 'reconnect.at:1094' \
 
27943
  "max-tries of 0 honored - C" "                     " 32
 
27944
at_xfail=no
 
27945
(
 
27946
  $as_echo "375. $at_setup_line: testing $at_desc ..."
 
27947
  $at_traceon
 
27948
 
 
27949
 
 
27950
 
 
27951
   cat >input <<'_ATEOF'
 
27952
set-max-tries 0
 
27953
enable
 
27954
run
 
27955
timeout
 
27956
_ATEOF
 
27957
 
 
27958
   { set +x
 
27959
$as_echo "$at_srcdir/reconnect.at:1094: test-reconnect < input"
 
27960
at_fn_check_prepare_trace "reconnect.at:1094"
 
27961
( $at_check_trace; test-reconnect < input
 
27962
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
27963
at_status=$? at_failed=false
 
27964
$at_check_filter
 
27965
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
27966
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
27967
set-max-tries 0
 
27968
  0 tries left
 
27969
enable
 
27970
run
 
27971
timeout
 
27972
  no timeout
 
27973
" | \
 
27974
  $at_diff - "$at_stdout" || at_failed=:
 
27975
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:1094"
 
27976
$at_failed && at_fn_log_failure
 
27977
$at_traceon; }
 
27978
 
 
27979
     set +x
 
27980
  $at_times_p && times >"$at_times_file"
 
27981
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
27982
read at_status <"$at_status_file"
 
27983
#AT_STOP_375
 
27984
#AT_START_376
 
27985
at_fn_group_banner 376 'reconnect.at:1094' \
 
27986
  "max-tries of 0 honored - Python" "                " 32
 
27987
at_xfail=no
 
27988
(
 
27989
  $as_echo "376. $at_setup_line: testing $at_desc ..."
 
27990
  $at_traceon
 
27991
 
 
27992
   $as_echo "reconnect.at:1094" >"$at_check_line_file"
 
27993
(test $HAVE_PYTHON = no) \
 
27994
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:1094"
 
27995
 
 
27996
   cat >input <<'_ATEOF'
 
27997
set-max-tries 0
 
27998
enable
 
27999
run
 
28000
timeout
 
28001
_ATEOF
 
28002
 
 
28003
   { set +x
 
28004
$as_echo "$at_srcdir/reconnect.at:1094: \$PYTHON \$srcdir/test-reconnect.py < input"
 
28005
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:1094"
 
28006
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
28007
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28008
at_status=$? at_failed=false
 
28009
$at_check_filter
 
28010
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28011
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
28012
set-max-tries 0
 
28013
  0 tries left
 
28014
enable
 
28015
run
 
28016
timeout
 
28017
  no timeout
 
28018
" | \
 
28019
  $at_diff - "$at_stdout" || at_failed=:
 
28020
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:1094"
 
28021
$at_failed && at_fn_log_failure
 
28022
$at_traceon; }
 
28023
 
 
28024
     set +x
 
28025
  $at_times_p && times >"$at_times_file"
 
28026
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
28027
read at_status <"$at_status_file"
 
28028
#AT_STOP_376
 
28029
#AT_START_377
 
28030
at_fn_group_banner 377 'reconnect.at:1110' \
 
28031
  "passive mode - C" "                               " 32
 
28032
at_xfail=no
 
28033
(
 
28034
  $as_echo "377. $at_setup_line: testing $at_desc ..."
 
28035
  $at_traceon
 
28036
 
 
28037
 
 
28038
 
 
28039
   cat >input <<'_ATEOF'
 
28040
passive
 
28041
enable
 
28042
 
 
28043
# Start listening.
 
28044
timeout
 
28045
run
 
28046
listening
 
28047
 
 
28048
# Listening never times out.
 
28049
timeout
 
28050
run
 
28051
 
 
28052
# Listening failed (accept() returned funny error?).  Back off and try again.
 
28053
listen-error 0
 
28054
timeout
 
28055
run
 
28056
listening
 
28057
 
 
28058
# Connection accepted.
 
28059
connected
 
28060
received
 
28061
advance 1000
 
28062
received
 
28063
 
 
28064
# Connection times out.
 
28065
timeout
 
28066
run
 
28067
timeout
 
28068
run
 
28069
disconnected
 
28070
 
 
28071
# Start listening again.
 
28072
timeout
 
28073
run
 
28074
listening
 
28075
_ATEOF
 
28076
 
 
28077
   { set +x
 
28078
$as_echo "$at_srcdir/reconnect.at:1110: test-reconnect < input"
 
28079
at_fn_check_prepare_trace "reconnect.at:1110"
 
28080
( $at_check_trace; test-reconnect < input
 
28081
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28082
at_status=$? at_failed=false
 
28083
$at_check_filter
 
28084
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28085
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
28086
passive
 
28087
enable
 
28088
  in BACKOFF for 0 ms (0 ms backoff)
 
28089
 
 
28090
# Start listening.
 
28091
timeout
 
28092
  advance 0 ms
 
28093
run
 
28094
  should connect
 
28095
listening
 
28096
  in LISTENING for 0 ms (0 ms backoff)
 
28097
 
 
28098
# Listening never times out.
 
28099
timeout
 
28100
  no timeout
 
28101
run
 
28102
 
 
28103
# Listening failed (accept() returned funny error?).  Back off and try again.
 
28104
listen-error 0
 
28105
  in BACKOFF for 0 ms (1000 ms backoff)
 
28106
timeout
 
28107
  advance 1000 ms
 
28108
 
 
28109
### t=2000 ###
 
28110
  in BACKOFF for 1000 ms (1000 ms backoff)
 
28111
run
 
28112
  should connect
 
28113
listening
 
28114
  in LISTENING for 0 ms (1000 ms backoff)
 
28115
 
 
28116
# Connection accepted.
 
28117
connected
 
28118
  in ACTIVE for 0 ms (1000 ms backoff)
 
28119
  created 1000, last received 1000, last connected 2000
 
28120
  1 successful connections out of 1 attempts, seqno 1
 
28121
  connected
 
28122
  last connected 0 ms ago, connected 0 ms total
 
28123
received
 
28124
  created 1000, last received 2000, last connected 2000
 
28125
advance 1000
 
28126
 
 
28127
### t=3000 ###
 
28128
  in ACTIVE for 1000 ms (1000 ms backoff)
 
28129
received
 
28130
  created 1000, last received 3000, last connected 2000
 
28131
 
 
28132
# Connection times out.
 
28133
timeout
 
28134
  advance 5000 ms
 
28135
 
 
28136
### t=8000 ###
 
28137
  in ACTIVE for 6000 ms (1000 ms backoff)
 
28138
run
 
28139
  should send probe
 
28140
  in IDLE for 0 ms (1000 ms backoff)
 
28141
timeout
 
28142
  advance 5000 ms
 
28143
 
 
28144
### t=13000 ###
 
28145
  in IDLE for 5000 ms (1000 ms backoff)
 
28146
run
 
28147
  should disconnect
 
28148
disconnected
 
28149
  in BACKOFF for 0 ms (0 ms backoff)
 
28150
  1 successful connections out of 1 attempts, seqno 2
 
28151
  disconnected
 
28152
  disconnected at 13000 ms (0 ms ago)
 
28153
 
 
28154
# Start listening again.
 
28155
timeout
 
28156
  advance 0 ms
 
28157
run
 
28158
  should connect
 
28159
listening
 
28160
  in LISTENING for 0 ms (0 ms backoff)
 
28161
" | \
 
28162
  $at_diff - "$at_stdout" || at_failed=:
 
28163
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:1110"
 
28164
$at_failed && at_fn_log_failure
 
28165
$at_traceon; }
 
28166
 
 
28167
     set +x
 
28168
  $at_times_p && times >"$at_times_file"
 
28169
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
28170
read at_status <"$at_status_file"
 
28171
#AT_STOP_377
 
28172
#AT_START_378
 
28173
at_fn_group_banner 378 'reconnect.at:1110' \
 
28174
  "passive mode - Python" "                          " 32
 
28175
at_xfail=no
 
28176
(
 
28177
  $as_echo "378. $at_setup_line: testing $at_desc ..."
 
28178
  $at_traceon
 
28179
 
 
28180
   $as_echo "reconnect.at:1110" >"$at_check_line_file"
 
28181
(test $HAVE_PYTHON = no) \
 
28182
  && at_fn_check_skip 77 "$at_srcdir/reconnect.at:1110"
 
28183
 
 
28184
   cat >input <<'_ATEOF'
 
28185
passive
 
28186
enable
 
28187
 
 
28188
# Start listening.
 
28189
timeout
 
28190
run
 
28191
listening
 
28192
 
 
28193
# Listening never times out.
 
28194
timeout
 
28195
run
 
28196
 
 
28197
# Listening failed (accept() returned funny error?).  Back off and try again.
 
28198
listen-error 0
 
28199
timeout
 
28200
run
 
28201
listening
 
28202
 
 
28203
# Connection accepted.
 
28204
connected
 
28205
received
 
28206
advance 1000
 
28207
received
 
28208
 
 
28209
# Connection times out.
 
28210
timeout
 
28211
run
 
28212
timeout
 
28213
run
 
28214
disconnected
 
28215
 
 
28216
# Start listening again.
 
28217
timeout
 
28218
run
 
28219
listening
 
28220
_ATEOF
 
28221
 
 
28222
   { set +x
 
28223
$as_echo "$at_srcdir/reconnect.at:1110: \$PYTHON \$srcdir/test-reconnect.py < input"
 
28224
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-reconnect.py < input" "reconnect.at:1110"
 
28225
( $at_check_trace; $PYTHON $srcdir/test-reconnect.py < input
 
28226
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28227
at_status=$? at_failed=false
 
28228
$at_check_filter
 
28229
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28230
echo >>"$at_stdout"; $as_echo "### t=1000 ###
 
28231
passive
 
28232
enable
 
28233
  in BACKOFF for 0 ms (0 ms backoff)
 
28234
 
 
28235
# Start listening.
 
28236
timeout
 
28237
  advance 0 ms
 
28238
run
 
28239
  should connect
 
28240
listening
 
28241
  in LISTENING for 0 ms (0 ms backoff)
 
28242
 
 
28243
# Listening never times out.
 
28244
timeout
 
28245
  no timeout
 
28246
run
 
28247
 
 
28248
# Listening failed (accept() returned funny error?).  Back off and try again.
 
28249
listen-error 0
 
28250
  in BACKOFF for 0 ms (1000 ms backoff)
 
28251
timeout
 
28252
  advance 1000 ms
 
28253
 
 
28254
### t=2000 ###
 
28255
  in BACKOFF for 1000 ms (1000 ms backoff)
 
28256
run
 
28257
  should connect
 
28258
listening
 
28259
  in LISTENING for 0 ms (1000 ms backoff)
 
28260
 
 
28261
# Connection accepted.
 
28262
connected
 
28263
  in ACTIVE for 0 ms (1000 ms backoff)
 
28264
  created 1000, last received 1000, last connected 2000
 
28265
  1 successful connections out of 1 attempts, seqno 1
 
28266
  connected
 
28267
  last connected 0 ms ago, connected 0 ms total
 
28268
received
 
28269
  created 1000, last received 2000, last connected 2000
 
28270
advance 1000
 
28271
 
 
28272
### t=3000 ###
 
28273
  in ACTIVE for 1000 ms (1000 ms backoff)
 
28274
received
 
28275
  created 1000, last received 3000, last connected 2000
 
28276
 
 
28277
# Connection times out.
 
28278
timeout
 
28279
  advance 5000 ms
 
28280
 
 
28281
### t=8000 ###
 
28282
  in ACTIVE for 6000 ms (1000 ms backoff)
 
28283
run
 
28284
  should send probe
 
28285
  in IDLE for 0 ms (1000 ms backoff)
 
28286
timeout
 
28287
  advance 5000 ms
 
28288
 
 
28289
### t=13000 ###
 
28290
  in IDLE for 5000 ms (1000 ms backoff)
 
28291
run
 
28292
  should disconnect
 
28293
disconnected
 
28294
  in BACKOFF for 0 ms (0 ms backoff)
 
28295
  1 successful connections out of 1 attempts, seqno 2
 
28296
  disconnected
 
28297
  disconnected at 13000 ms (0 ms ago)
 
28298
 
 
28299
# Start listening again.
 
28300
timeout
 
28301
  advance 0 ms
 
28302
run
 
28303
  should connect
 
28304
listening
 
28305
  in LISTENING for 0 ms (0 ms backoff)
 
28306
" | \
 
28307
  $at_diff - "$at_stdout" || at_failed=:
 
28308
at_fn_check_status 0 $at_status "$at_srcdir/reconnect.at:1110"
 
28309
$at_failed && at_fn_log_failure
 
28310
$at_traceon; }
 
28311
 
 
28312
     set +x
 
28313
  $at_times_p && times >"$at_times_file"
 
28314
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
28315
read at_status <"$at_status_file"
 
28316
#AT_STOP_378
 
28317
#AT_START_379
 
28318
at_fn_group_banner 379 'ofproto.at:3' \
 
28319
  "ofproto - echo request" "                         " 33
 
28320
at_xfail=no
 
28321
(
 
28322
  $as_echo "379. $at_setup_line: testing $at_desc ..."
 
28323
  $at_traceon
 
28324
 
 
28325
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
28326
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
28327
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
28328
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
28329
 
 
28330
      mkdir openvswitch
 
28331
   touch openvswitch/.conf.db.~lock~
 
28332
   { set +x
 
28333
$as_echo "$at_srcdir/ofproto.at:4: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
28334
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto.at:4"
 
28335
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
28336
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28337
at_status=$? at_failed=false
 
28338
$at_check_filter
 
28339
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28340
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28341
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:4"
 
28342
$at_failed && at_fn_log_failure
 
28343
$at_traceon; }
 
28344
 
 
28345
 
 
28346
      { set +x
 
28347
$as_echo "$at_srcdir/ofproto.at:4: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
28348
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto.at:4"
 
28349
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
28350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28351
at_status=$? at_failed=false
 
28352
$at_check_filter
 
28353
echo stderr:; tee stderr <"$at_stderr"
 
28354
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28355
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:4"
 
28356
$at_failed && at_fn_log_failure
 
28357
$at_traceon; }
 
28358
 
 
28359
   { set +x
 
28360
$as_echo "$at_srcdir/ofproto.at:4: sed < stderr '/vlog|INFO|opened log file/d'"
 
28361
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:4"
 
28362
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
28363
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28364
at_status=$? at_failed=false
 
28365
$at_check_filter
 
28366
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28367
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28368
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:4"
 
28369
$at_failed && at_fn_log_failure
 
28370
$at_traceon; }
 
28371
 
 
28372
 
 
28373
 
 
28374
      { set +x
 
28375
$as_echo "$at_srcdir/ofproto.at:4: ovs-vsctl --no-wait init"
 
28376
at_fn_check_prepare_trace "ofproto.at:4"
 
28377
( $at_check_trace; ovs-vsctl --no-wait init
 
28378
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28379
at_status=$? at_failed=false
 
28380
$at_check_filter
 
28381
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28382
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28383
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:4"
 
28384
$at_failed && at_fn_log_failure  \
 
28385
"ovsdb-server.log"
 
28386
$at_traceon; }
 
28387
 
 
28388
 
 
28389
      { set +x
 
28390
$as_echo "$at_srcdir/ofproto.at:4: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
28391
at_fn_check_prepare_trace "ofproto.at:4"
 
28392
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
28393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28394
at_status=$? at_failed=false
 
28395
$at_check_filter
 
28396
echo stderr:; tee stderr <"$at_stderr"
 
28397
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28398
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:4"
 
28399
$at_failed && at_fn_log_failure  \
 
28400
"ovsdb-server.log"
 
28401
$at_traceon; }
 
28402
 
 
28403
 
 
28404
   { set +x
 
28405
$as_echo "$at_srcdir/ofproto.at:4: sed < stderr '
 
28406
/vlog|INFO|opened log file/d
 
28407
/reconnect|INFO|/d
 
28408
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
28409
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
28410
/ofproto|INFO|using datapath ID/d
 
28411
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
28412
at_fn_check_prepare_notrace 'an embedded newline' "ofproto.at:4"
 
28413
( $at_check_trace; sed < stderr '
 
28414
/vlog|INFO|opened log file/d
 
28415
/reconnect|INFO|/d
 
28416
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
28417
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
28418
/ofproto|INFO|using datapath ID/d
 
28419
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
28420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28421
at_status=$? at_failed=false
 
28422
$at_check_filter
 
28423
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28424
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28425
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:4"
 
28426
$at_failed && at_fn_log_failure  \
 
28427
"ovsdb-server.log" \
 
28428
"ovs-vswitchd.log"
 
28429
$at_traceon; }
 
28430
 
 
28431
 
 
28432
      { set +x
 
28433
$as_echo "$at_srcdir/ofproto.at:4: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
28434
at_fn_check_prepare_trace "ofproto.at:4"
 
28435
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
28436
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28437
at_status=$? at_failed=false
 
28438
$at_check_filter
 
28439
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28440
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28441
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:4"
 
28442
$at_failed && at_fn_log_failure  \
 
28443
"ovsdb-server.log" \
 
28444
"ovs-vswitchd.log"
 
28445
$at_traceon; }
 
28446
 
 
28447
 
 
28448
{ set +x
 
28449
$as_echo "$at_srcdir/ofproto.at:5: ovs-ofctl -vANY:ANY:WARN probe br0"
 
28450
at_fn_check_prepare_trace "ofproto.at:5"
 
28451
( $at_check_trace; ovs-ofctl -vANY:ANY:WARN probe br0
 
28452
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28453
at_status=$? at_failed=false
 
28454
$at_check_filter
 
28455
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28456
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28457
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:5"
 
28458
$at_failed && at_fn_log_failure  \
 
28459
"ovsdb-server.log" \
 
28460
"ovs-vswitchd.log"
 
28461
$at_traceon; }
 
28462
 
 
28463
{ set +x
 
28464
$as_echo "$at_srcdir/ofproto.at:6: ovs-appctl -t ovs-vswitchd exit"
 
28465
at_fn_check_prepare_trace "ofproto.at:6"
 
28466
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
28467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28468
at_status=$? at_failed=false
 
28469
$at_check_filter
 
28470
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28471
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28472
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:6"
 
28473
$at_failed && at_fn_log_failure  \
 
28474
"ovsdb-server.log" \
 
28475
"ovs-vswitchd.log"
 
28476
$at_traceon; }
 
28477
 
 
28478
   { set +x
 
28479
$as_echo "$at_srcdir/ofproto.at:6: ovs-appctl -t ovsdb-server exit"
 
28480
at_fn_check_prepare_trace "ofproto.at:6"
 
28481
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
28482
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28483
at_status=$? at_failed=false
 
28484
$at_check_filter
 
28485
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28486
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28487
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:6"
 
28488
$at_failed && at_fn_log_failure  \
 
28489
"ovsdb-server.log" \
 
28490
"ovs-vswitchd.log"
 
28491
$at_traceon; }
 
28492
 
 
28493
   trap '' 0
 
28494
  set +x
 
28495
  $at_times_p && times >"$at_times_file"
 
28496
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
28497
read at_status <"$at_status_file"
 
28498
#AT_STOP_379
 
28499
#AT_START_380
 
28500
at_fn_group_banner 380 'ofproto.at:9' \
 
28501
  "ofproto - feature request, config request" "      " 33
 
28502
at_xfail=no
 
28503
(
 
28504
  $as_echo "380. $at_setup_line: testing $at_desc ..."
 
28505
  $at_traceon
 
28506
 
 
28507
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
28508
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
28509
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
28510
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
28511
 
 
28512
      mkdir openvswitch
 
28513
   touch openvswitch/.conf.db.~lock~
 
28514
   { set +x
 
28515
$as_echo "$at_srcdir/ofproto.at:10: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
28516
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto.at:10"
 
28517
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
28518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28519
at_status=$? at_failed=false
 
28520
$at_check_filter
 
28521
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28522
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28523
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:10"
 
28524
$at_failed && at_fn_log_failure
 
28525
$at_traceon; }
 
28526
 
 
28527
 
 
28528
      { set +x
 
28529
$as_echo "$at_srcdir/ofproto.at:10: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
28530
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto.at:10"
 
28531
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
28532
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28533
at_status=$? at_failed=false
 
28534
$at_check_filter
 
28535
echo stderr:; tee stderr <"$at_stderr"
 
28536
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28537
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:10"
 
28538
$at_failed && at_fn_log_failure
 
28539
$at_traceon; }
 
28540
 
 
28541
   { set +x
 
28542
$as_echo "$at_srcdir/ofproto.at:10: sed < stderr '/vlog|INFO|opened log file/d'"
 
28543
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:10"
 
28544
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
28545
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28546
at_status=$? at_failed=false
 
28547
$at_check_filter
 
28548
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28549
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28550
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:10"
 
28551
$at_failed && at_fn_log_failure
 
28552
$at_traceon; }
 
28553
 
 
28554
 
 
28555
 
 
28556
      { set +x
 
28557
$as_echo "$at_srcdir/ofproto.at:10: ovs-vsctl --no-wait init"
 
28558
at_fn_check_prepare_trace "ofproto.at:10"
 
28559
( $at_check_trace; ovs-vsctl --no-wait init
 
28560
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28561
at_status=$? at_failed=false
 
28562
$at_check_filter
 
28563
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28564
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28565
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:10"
 
28566
$at_failed && at_fn_log_failure  \
 
28567
"ovsdb-server.log"
 
28568
$at_traceon; }
 
28569
 
 
28570
 
 
28571
      { set +x
 
28572
$as_echo "$at_srcdir/ofproto.at:10: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
28573
at_fn_check_prepare_trace "ofproto.at:10"
 
28574
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
28575
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28576
at_status=$? at_failed=false
 
28577
$at_check_filter
 
28578
echo stderr:; tee stderr <"$at_stderr"
 
28579
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28580
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:10"
 
28581
$at_failed && at_fn_log_failure  \
 
28582
"ovsdb-server.log"
 
28583
$at_traceon; }
 
28584
 
 
28585
 
 
28586
   { set +x
 
28587
$as_echo "$at_srcdir/ofproto.at:10: sed < stderr '
 
28588
/vlog|INFO|opened log file/d
 
28589
/reconnect|INFO|/d
 
28590
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
28591
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
28592
/ofproto|INFO|using datapath ID/d
 
28593
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
28594
at_fn_check_prepare_notrace 'an embedded newline' "ofproto.at:10"
 
28595
( $at_check_trace; sed < stderr '
 
28596
/vlog|INFO|opened log file/d
 
28597
/reconnect|INFO|/d
 
28598
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
28599
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
28600
/ofproto|INFO|using datapath ID/d
 
28601
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
28602
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28603
at_status=$? at_failed=false
 
28604
$at_check_filter
 
28605
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28606
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28607
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:10"
 
28608
$at_failed && at_fn_log_failure  \
 
28609
"ovsdb-server.log" \
 
28610
"ovs-vswitchd.log"
 
28611
$at_traceon; }
 
28612
 
 
28613
 
 
28614
      { set +x
 
28615
$as_echo "$at_srcdir/ofproto.at:10: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
28616
at_fn_check_prepare_trace "ofproto.at:10"
 
28617
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
28618
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28619
at_status=$? at_failed=false
 
28620
$at_check_filter
 
28621
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28622
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28623
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:10"
 
28624
$at_failed && at_fn_log_failure  \
 
28625
"ovsdb-server.log" \
 
28626
"ovs-vswitchd.log"
 
28627
$at_traceon; }
 
28628
 
 
28629
 
 
28630
{ set +x
 
28631
$as_echo "$at_srcdir/ofproto.at:11: ovs-ofctl -vANY:ANY:WARN show br0"
 
28632
at_fn_check_prepare_trace "ofproto.at:11"
 
28633
( $at_check_trace; ovs-ofctl -vANY:ANY:WARN show br0
 
28634
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28635
at_status=$? at_failed=false
 
28636
$at_check_filter
 
28637
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28638
echo stdout:; tee stdout <"$at_stdout"
 
28639
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:11"
 
28640
$at_failed && at_fn_log_failure  \
 
28641
"ovsdb-server.log" \
 
28642
"ovs-vswitchd.log"
 
28643
$at_traceon; }
 
28644
 
 
28645
{ set +x
 
28646
$as_echo "$at_srcdir/ofproto.at:12: sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout"
 
28647
at_fn_check_prepare_trace "ofproto.at:12"
 
28648
( $at_check_trace; sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout
 
28649
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28650
at_status=$? at_failed=false
 
28651
$at_check_filter
 
28652
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28653
echo >>"$at_stdout"; $as_echo "OFPT_FEATURES_REPLY: ver:0x1, dpid:fedcba9876543210
 
28654
n_tables:255, n_buffers:256
 
28655
features: capabilities:0xc7, actions:0xfff
 
28656
 LOCAL(br0): addr:aa:55:aa:55:00:00
 
28657
     config:     PORT_DOWN
 
28658
     state:      LINK_DOWN
 
28659
OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
 
28660
" | \
 
28661
  $at_diff - "$at_stdout" || at_failed=:
 
28662
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:12"
 
28663
$at_failed && at_fn_log_failure  \
 
28664
"ovsdb-server.log" \
 
28665
"ovs-vswitchd.log"
 
28666
$at_traceon; }
 
28667
 
 
28668
{ set +x
 
28669
$as_echo "$at_srcdir/ofproto.at:21: ovs-appctl -t ovs-vswitchd exit"
 
28670
at_fn_check_prepare_trace "ofproto.at:21"
 
28671
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
28672
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28673
at_status=$? at_failed=false
 
28674
$at_check_filter
 
28675
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28676
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28677
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:21"
 
28678
$at_failed && at_fn_log_failure  \
 
28679
"ovsdb-server.log" \
 
28680
"ovs-vswitchd.log"
 
28681
$at_traceon; }
 
28682
 
 
28683
   { set +x
 
28684
$as_echo "$at_srcdir/ofproto.at:21: ovs-appctl -t ovsdb-server exit"
 
28685
at_fn_check_prepare_trace "ofproto.at:21"
 
28686
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
28687
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28688
at_status=$? at_failed=false
 
28689
$at_check_filter
 
28690
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28691
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28692
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:21"
 
28693
$at_failed && at_fn_log_failure  \
 
28694
"ovsdb-server.log" \
 
28695
"ovs-vswitchd.log"
 
28696
$at_traceon; }
 
28697
 
 
28698
   trap '' 0
 
28699
  set +x
 
28700
  $at_times_p && times >"$at_times_file"
 
28701
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
28702
read at_status <"$at_status_file"
 
28703
#AT_STOP_380
 
28704
#AT_START_381
 
28705
at_fn_group_banner 381 'ofproto.at:26' \
 
28706
  "ofproto - port stats" "                           " 33
 
28707
at_xfail=no
 
28708
(
 
28709
  $as_echo "381. $at_setup_line: testing $at_desc ..."
 
28710
  $at_traceon
 
28711
 
 
28712
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
28713
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
28714
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
28715
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
28716
 
 
28717
      mkdir openvswitch
 
28718
   touch openvswitch/.conf.db.~lock~
 
28719
   { set +x
 
28720
$as_echo "$at_srcdir/ofproto.at:27: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
28721
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto.at:27"
 
28722
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
28723
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28724
at_status=$? at_failed=false
 
28725
$at_check_filter
 
28726
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28727
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28728
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:27"
 
28729
$at_failed && at_fn_log_failure
 
28730
$at_traceon; }
 
28731
 
 
28732
 
 
28733
      { set +x
 
28734
$as_echo "$at_srcdir/ofproto.at:27: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
28735
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto.at:27"
 
28736
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
28737
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28738
at_status=$? at_failed=false
 
28739
$at_check_filter
 
28740
echo stderr:; tee stderr <"$at_stderr"
 
28741
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28742
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:27"
 
28743
$at_failed && at_fn_log_failure
 
28744
$at_traceon; }
 
28745
 
 
28746
   { set +x
 
28747
$as_echo "$at_srcdir/ofproto.at:27: sed < stderr '/vlog|INFO|opened log file/d'"
 
28748
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:27"
 
28749
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
28750
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28751
at_status=$? at_failed=false
 
28752
$at_check_filter
 
28753
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28754
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28755
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:27"
 
28756
$at_failed && at_fn_log_failure
 
28757
$at_traceon; }
 
28758
 
 
28759
 
 
28760
 
 
28761
      { set +x
 
28762
$as_echo "$at_srcdir/ofproto.at:27: ovs-vsctl --no-wait init"
 
28763
at_fn_check_prepare_trace "ofproto.at:27"
 
28764
( $at_check_trace; ovs-vsctl --no-wait init
 
28765
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28766
at_status=$? at_failed=false
 
28767
$at_check_filter
 
28768
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28769
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28770
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:27"
 
28771
$at_failed && at_fn_log_failure  \
 
28772
"ovsdb-server.log"
 
28773
$at_traceon; }
 
28774
 
 
28775
 
 
28776
      { set +x
 
28777
$as_echo "$at_srcdir/ofproto.at:27: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
28778
at_fn_check_prepare_trace "ofproto.at:27"
 
28779
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
28780
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28781
at_status=$? at_failed=false
 
28782
$at_check_filter
 
28783
echo stderr:; tee stderr <"$at_stderr"
 
28784
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28785
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:27"
 
28786
$at_failed && at_fn_log_failure  \
 
28787
"ovsdb-server.log"
 
28788
$at_traceon; }
 
28789
 
 
28790
 
 
28791
   { set +x
 
28792
$as_echo "$at_srcdir/ofproto.at:27: sed < stderr '
 
28793
/vlog|INFO|opened log file/d
 
28794
/reconnect|INFO|/d
 
28795
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
28796
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
28797
/ofproto|INFO|using datapath ID/d
 
28798
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
28799
at_fn_check_prepare_notrace 'an embedded newline' "ofproto.at:27"
 
28800
( $at_check_trace; sed < stderr '
 
28801
/vlog|INFO|opened log file/d
 
28802
/reconnect|INFO|/d
 
28803
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
28804
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
28805
/ofproto|INFO|using datapath ID/d
 
28806
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
28807
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28808
at_status=$? at_failed=false
 
28809
$at_check_filter
 
28810
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28811
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28812
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:27"
 
28813
$at_failed && at_fn_log_failure  \
 
28814
"ovsdb-server.log" \
 
28815
"ovs-vswitchd.log"
 
28816
$at_traceon; }
 
28817
 
 
28818
 
 
28819
      { set +x
 
28820
$as_echo "$at_srcdir/ofproto.at:27: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
28821
at_fn_check_prepare_trace "ofproto.at:27"
 
28822
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
28823
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28824
at_status=$? at_failed=false
 
28825
$at_check_filter
 
28826
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28827
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28828
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:27"
 
28829
$at_failed && at_fn_log_failure  \
 
28830
"ovsdb-server.log" \
 
28831
"ovs-vswitchd.log"
 
28832
$at_traceon; }
 
28833
 
 
28834
 
 
28835
{ set +x
 
28836
$as_echo "$at_srcdir/ofproto.at:28: ovs-ofctl -vANY:ANY:WARN dump-ports br0"
 
28837
at_fn_check_prepare_trace "ofproto.at:28"
 
28838
( $at_check_trace; ovs-ofctl -vANY:ANY:WARN dump-ports br0
 
28839
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28840
at_status=$? at_failed=false
 
28841
$at_check_filter
 
28842
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28843
echo stdout:; tee stdout <"$at_stdout"
 
28844
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:28"
 
28845
$at_failed && at_fn_log_failure  \
 
28846
"ovsdb-server.log" \
 
28847
"ovs-vswitchd.log"
 
28848
$at_traceon; }
 
28849
 
 
28850
{ set +x
 
28851
$as_echo "$at_srcdir/ofproto.at:29: sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout"
 
28852
at_fn_check_prepare_trace "ofproto.at:29"
 
28853
( $at_check_trace; sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout
 
28854
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28855
at_status=$? at_failed=false
 
28856
$at_check_filter
 
28857
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28858
echo >>"$at_stdout"; $as_echo "OFPST_PORT reply: 1 ports
 
28859
  port 65534: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
 
28860
           tx pkts=0, bytes=0, drop=0, errs=0, coll=0
 
28861
" | \
 
28862
  $at_diff - "$at_stdout" || at_failed=:
 
28863
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:29"
 
28864
$at_failed && at_fn_log_failure  \
 
28865
"ovsdb-server.log" \
 
28866
"ovs-vswitchd.log"
 
28867
$at_traceon; }
 
28868
 
 
28869
{ set +x
 
28870
$as_echo "$at_srcdir/ofproto.at:34: ovs-appctl -t ovs-vswitchd exit"
 
28871
at_fn_check_prepare_trace "ofproto.at:34"
 
28872
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
28873
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28874
at_status=$? at_failed=false
 
28875
$at_check_filter
 
28876
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28877
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28878
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:34"
 
28879
$at_failed && at_fn_log_failure  \
 
28880
"ovsdb-server.log" \
 
28881
"ovs-vswitchd.log"
 
28882
$at_traceon; }
 
28883
 
 
28884
   { set +x
 
28885
$as_echo "$at_srcdir/ofproto.at:34: ovs-appctl -t ovsdb-server exit"
 
28886
at_fn_check_prepare_trace "ofproto.at:34"
 
28887
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
28888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28889
at_status=$? at_failed=false
 
28890
$at_check_filter
 
28891
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28892
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28893
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:34"
 
28894
$at_failed && at_fn_log_failure  \
 
28895
"ovsdb-server.log" \
 
28896
"ovs-vswitchd.log"
 
28897
$at_traceon; }
 
28898
 
 
28899
   trap '' 0
 
28900
  set +x
 
28901
  $at_times_p && times >"$at_times_file"
 
28902
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
28903
read at_status <"$at_status_file"
 
28904
#AT_STOP_381
 
28905
#AT_START_382
 
28906
at_fn_group_banner 382 'ofproto.at:39' \
 
28907
  "ofproto - queue stats" "                          " 33
 
28908
at_xfail=no
 
28909
(
 
28910
  $as_echo "382. $at_setup_line: testing $at_desc ..."
 
28911
  $at_traceon
 
28912
 
 
28913
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
28914
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
28915
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
28916
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
28917
 
 
28918
      mkdir openvswitch
 
28919
   touch openvswitch/.conf.db.~lock~
 
28920
   { set +x
 
28921
$as_echo "$at_srcdir/ofproto.at:40: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
28922
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto.at:40"
 
28923
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
28924
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28925
at_status=$? at_failed=false
 
28926
$at_check_filter
 
28927
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28928
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28929
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:40"
 
28930
$at_failed && at_fn_log_failure
 
28931
$at_traceon; }
 
28932
 
 
28933
 
 
28934
      { set +x
 
28935
$as_echo "$at_srcdir/ofproto.at:40: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
28936
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto.at:40"
 
28937
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
28938
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28939
at_status=$? at_failed=false
 
28940
$at_check_filter
 
28941
echo stderr:; tee stderr <"$at_stderr"
 
28942
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28943
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:40"
 
28944
$at_failed && at_fn_log_failure
 
28945
$at_traceon; }
 
28946
 
 
28947
   { set +x
 
28948
$as_echo "$at_srcdir/ofproto.at:40: sed < stderr '/vlog|INFO|opened log file/d'"
 
28949
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:40"
 
28950
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
28951
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28952
at_status=$? at_failed=false
 
28953
$at_check_filter
 
28954
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28955
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28956
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:40"
 
28957
$at_failed && at_fn_log_failure
 
28958
$at_traceon; }
 
28959
 
 
28960
 
 
28961
 
 
28962
      { set +x
 
28963
$as_echo "$at_srcdir/ofproto.at:40: ovs-vsctl --no-wait init"
 
28964
at_fn_check_prepare_trace "ofproto.at:40"
 
28965
( $at_check_trace; ovs-vsctl --no-wait init
 
28966
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28967
at_status=$? at_failed=false
 
28968
$at_check_filter
 
28969
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
28970
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28971
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:40"
 
28972
$at_failed && at_fn_log_failure  \
 
28973
"ovsdb-server.log"
 
28974
$at_traceon; }
 
28975
 
 
28976
 
 
28977
      { set +x
 
28978
$as_echo "$at_srcdir/ofproto.at:40: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
28979
at_fn_check_prepare_trace "ofproto.at:40"
 
28980
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
28981
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
28982
at_status=$? at_failed=false
 
28983
$at_check_filter
 
28984
echo stderr:; tee stderr <"$at_stderr"
 
28985
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
28986
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:40"
 
28987
$at_failed && at_fn_log_failure  \
 
28988
"ovsdb-server.log"
 
28989
$at_traceon; }
 
28990
 
 
28991
 
 
28992
   { set +x
 
28993
$as_echo "$at_srcdir/ofproto.at:40: sed < stderr '
 
28994
/vlog|INFO|opened log file/d
 
28995
/reconnect|INFO|/d
 
28996
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
28997
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
28998
/ofproto|INFO|using datapath ID/d
 
28999
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
29000
at_fn_check_prepare_notrace 'an embedded newline' "ofproto.at:40"
 
29001
( $at_check_trace; sed < stderr '
 
29002
/vlog|INFO|opened log file/d
 
29003
/reconnect|INFO|/d
 
29004
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
29005
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
29006
/ofproto|INFO|using datapath ID/d
 
29007
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
29008
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29009
at_status=$? at_failed=false
 
29010
$at_check_filter
 
29011
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29012
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29013
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:40"
 
29014
$at_failed && at_fn_log_failure  \
 
29015
"ovsdb-server.log" \
 
29016
"ovs-vswitchd.log"
 
29017
$at_traceon; }
 
29018
 
 
29019
 
 
29020
      { set +x
 
29021
$as_echo "$at_srcdir/ofproto.at:40: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
29022
at_fn_check_prepare_trace "ofproto.at:40"
 
29023
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
29024
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29025
at_status=$? at_failed=false
 
29026
$at_check_filter
 
29027
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29028
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29029
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:40"
 
29030
$at_failed && at_fn_log_failure  \
 
29031
"ovsdb-server.log" \
 
29032
"ovs-vswitchd.log"
 
29033
$at_traceon; }
 
29034
 
 
29035
 
 
29036
{ set +x
 
29037
$as_echo "$at_srcdir/ofproto.at:41: ovs-ofctl -vANY:ANY:WARN queue-stats br0"
 
29038
at_fn_check_prepare_trace "ofproto.at:41"
 
29039
( $at_check_trace; ovs-ofctl -vANY:ANY:WARN queue-stats br0
 
29040
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29041
at_status=$? at_failed=false
 
29042
$at_check_filter
 
29043
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29044
echo stdout:; tee stdout <"$at_stdout"
 
29045
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:41"
 
29046
$at_failed && at_fn_log_failure  \
 
29047
"ovsdb-server.log" \
 
29048
"ovs-vswitchd.log"
 
29049
$at_traceon; }
 
29050
 
 
29051
{ set +x
 
29052
$as_echo "$at_srcdir/ofproto.at:42: sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout"
 
29053
at_fn_check_prepare_trace "ofproto.at:42"
 
29054
( $at_check_trace; sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout
 
29055
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29056
at_status=$? at_failed=false
 
29057
$at_check_filter
 
29058
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29059
echo >>"$at_stdout"; $as_echo "OFPST_QUEUE reply: 0 queues
 
29060
" | \
 
29061
  $at_diff - "$at_stdout" || at_failed=:
 
29062
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:42"
 
29063
$at_failed && at_fn_log_failure  \
 
29064
"ovsdb-server.log" \
 
29065
"ovs-vswitchd.log"
 
29066
$at_traceon; }
 
29067
 
 
29068
{ set +x
 
29069
$as_echo "$at_srcdir/ofproto.at:45: ovs-appctl -t ovs-vswitchd exit"
 
29070
at_fn_check_prepare_trace "ofproto.at:45"
 
29071
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
29072
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29073
at_status=$? at_failed=false
 
29074
$at_check_filter
 
29075
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29076
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29077
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:45"
 
29078
$at_failed && at_fn_log_failure  \
 
29079
"ovsdb-server.log" \
 
29080
"ovs-vswitchd.log"
 
29081
$at_traceon; }
 
29082
 
 
29083
   { set +x
 
29084
$as_echo "$at_srcdir/ofproto.at:45: ovs-appctl -t ovsdb-server exit"
 
29085
at_fn_check_prepare_trace "ofproto.at:45"
 
29086
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
29087
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29088
at_status=$? at_failed=false
 
29089
$at_check_filter
 
29090
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29091
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29092
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:45"
 
29093
$at_failed && at_fn_log_failure  \
 
29094
"ovsdb-server.log" \
 
29095
"ovs-vswitchd.log"
 
29096
$at_traceon; }
 
29097
 
 
29098
   trap '' 0
 
29099
  set +x
 
29100
  $at_times_p && times >"$at_times_file"
 
29101
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
29102
read at_status <"$at_status_file"
 
29103
#AT_STOP_382
 
29104
#AT_START_383
 
29105
at_fn_group_banner 383 'ofproto.at:48' \
 
29106
  "ofproto - mod-port" "                             " 33
 
29107
at_xfail=no
 
29108
(
 
29109
  $as_echo "383. $at_setup_line: testing $at_desc ..."
 
29110
  $at_traceon
 
29111
 
 
29112
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
29113
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
29114
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
29115
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
29116
 
 
29117
      mkdir openvswitch
 
29118
   touch openvswitch/.conf.db.~lock~
 
29119
   { set +x
 
29120
$as_echo "$at_srcdir/ofproto.at:49: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
29121
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto.at:49"
 
29122
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
29123
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29124
at_status=$? at_failed=false
 
29125
$at_check_filter
 
29126
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29127
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29128
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:49"
 
29129
$at_failed && at_fn_log_failure
 
29130
$at_traceon; }
 
29131
 
 
29132
 
 
29133
      { set +x
 
29134
$as_echo "$at_srcdir/ofproto.at:49: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
29135
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto.at:49"
 
29136
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
29137
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29138
at_status=$? at_failed=false
 
29139
$at_check_filter
 
29140
echo stderr:; tee stderr <"$at_stderr"
 
29141
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29142
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:49"
 
29143
$at_failed && at_fn_log_failure
 
29144
$at_traceon; }
 
29145
 
 
29146
   { set +x
 
29147
$as_echo "$at_srcdir/ofproto.at:49: sed < stderr '/vlog|INFO|opened log file/d'"
 
29148
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:49"
 
29149
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
29150
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29151
at_status=$? at_failed=false
 
29152
$at_check_filter
 
29153
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29154
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29155
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:49"
 
29156
$at_failed && at_fn_log_failure
 
29157
$at_traceon; }
 
29158
 
 
29159
 
 
29160
 
 
29161
      { set +x
 
29162
$as_echo "$at_srcdir/ofproto.at:49: ovs-vsctl --no-wait init"
 
29163
at_fn_check_prepare_trace "ofproto.at:49"
 
29164
( $at_check_trace; ovs-vsctl --no-wait init
 
29165
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29166
at_status=$? at_failed=false
 
29167
$at_check_filter
 
29168
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29169
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29170
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:49"
 
29171
$at_failed && at_fn_log_failure  \
 
29172
"ovsdb-server.log"
 
29173
$at_traceon; }
 
29174
 
 
29175
 
 
29176
      { set +x
 
29177
$as_echo "$at_srcdir/ofproto.at:49: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
29178
at_fn_check_prepare_trace "ofproto.at:49"
 
29179
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
29180
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29181
at_status=$? at_failed=false
 
29182
$at_check_filter
 
29183
echo stderr:; tee stderr <"$at_stderr"
 
29184
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29185
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:49"
 
29186
$at_failed && at_fn_log_failure  \
 
29187
"ovsdb-server.log"
 
29188
$at_traceon; }
 
29189
 
 
29190
 
 
29191
   { set +x
 
29192
$as_echo "$at_srcdir/ofproto.at:49: sed < stderr '
 
29193
/vlog|INFO|opened log file/d
 
29194
/reconnect|INFO|/d
 
29195
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
29196
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
29197
/ofproto|INFO|using datapath ID/d
 
29198
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
29199
at_fn_check_prepare_notrace 'an embedded newline' "ofproto.at:49"
 
29200
( $at_check_trace; sed < stderr '
 
29201
/vlog|INFO|opened log file/d
 
29202
/reconnect|INFO|/d
 
29203
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
29204
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
29205
/ofproto|INFO|using datapath ID/d
 
29206
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
29207
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29208
at_status=$? at_failed=false
 
29209
$at_check_filter
 
29210
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29211
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29212
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:49"
 
29213
$at_failed && at_fn_log_failure  \
 
29214
"ovsdb-server.log" \
 
29215
"ovs-vswitchd.log"
 
29216
$at_traceon; }
 
29217
 
 
29218
 
 
29219
      { set +x
 
29220
$as_echo "$at_srcdir/ofproto.at:49: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
29221
at_fn_check_prepare_trace "ofproto.at:49"
 
29222
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
29223
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29224
at_status=$? at_failed=false
 
29225
$at_check_filter
 
29226
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29227
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29228
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:49"
 
29229
$at_failed && at_fn_log_failure  \
 
29230
"ovsdb-server.log" \
 
29231
"ovs-vswitchd.log"
 
29232
$at_traceon; }
 
29233
 
 
29234
 
 
29235
for command_config_state in \
 
29236
    'up 0 0' \
 
29237
    'noflood NO_FLOOD 0' \
 
29238
    'down PORT_DOWN,NO_FLOOD LINK_DOWN' \
 
29239
    'flood PORT_DOWN LINK_DOWN'
 
29240
do
 
29241
    set $command_config_state
 
29242
    command=$1 config=`echo $2 | sed 's/,/ /g'` state=$3
 
29243
    { set +x
 
29244
$as_echo "$at_srcdir/ofproto.at:58: ovs-ofctl -vANY:ANY:WARN mod-port br0 br0 \$command"
 
29245
at_fn_check_prepare_dynamic "ovs-ofctl -vANY:ANY:WARN mod-port br0 br0 $command" "ofproto.at:58"
 
29246
( $at_check_trace; ovs-ofctl -vANY:ANY:WARN mod-port br0 br0 $command
 
29247
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29248
at_status=$? at_failed=false
 
29249
$at_check_filter
 
29250
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29251
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29252
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:58"
 
29253
$at_failed && at_fn_log_failure  \
 
29254
"ovsdb-server.log" \
 
29255
"ovs-vswitchd.log"
 
29256
$at_traceon; }
 
29257
 
 
29258
    { set +x
 
29259
$as_echo "$at_srcdir/ofproto.at:59: ovs-ofctl -vANY:ANY:WARN show br0"
 
29260
at_fn_check_prepare_trace "ofproto.at:59"
 
29261
( $at_check_trace; ovs-ofctl -vANY:ANY:WARN show br0
 
29262
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29263
at_status=$? at_failed=false
 
29264
$at_check_filter
 
29265
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29266
echo stdout:; tee stdout <"$at_stdout"
 
29267
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:59"
 
29268
$at_failed && at_fn_log_failure  \
 
29269
"ovsdb-server.log" \
 
29270
"ovs-vswitchd.log"
 
29271
$at_traceon; }
 
29272
 
 
29273
    { set +x
 
29274
$as_echo "$at_srcdir/ofproto.at:60: sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout"
 
29275
at_fn_check_prepare_trace "ofproto.at:60"
 
29276
( $at_check_trace; sed 's/ (xid=0x[0-9a-fA-F]*)//' stdout
 
29277
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29278
at_status=$? at_failed=false
 
29279
$at_check_filter
 
29280
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29281
echo >>"$at_stdout"; $as_echo "OFPT_FEATURES_REPLY: ver:0x1, dpid:fedcba9876543210
 
29282
n_tables:255, n_buffers:256
 
29283
features: capabilities:0xc7, actions:0xfff
 
29284
 LOCAL(br0): addr:aa:55:aa:55:00:00
 
29285
     config:     $config
 
29286
     state:      $state
 
29287
OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
 
29288
" | \
 
29289
  $at_diff - "$at_stdout" || at_failed=:
 
29290
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:60"
 
29291
$at_failed && at_fn_log_failure  \
 
29292
"ovsdb-server.log" \
 
29293
"ovs-vswitchd.log"
 
29294
$at_traceon; }
 
29295
 
 
29296
done
 
29297
{ set +x
 
29298
$as_echo "$at_srcdir/ofproto.at:70: ovs-appctl -t ovs-vswitchd exit"
 
29299
at_fn_check_prepare_trace "ofproto.at:70"
 
29300
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
29301
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29302
at_status=$? at_failed=false
 
29303
$at_check_filter
 
29304
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29305
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29306
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:70"
 
29307
$at_failed && at_fn_log_failure  \
 
29308
"ovsdb-server.log" \
 
29309
"ovs-vswitchd.log"
 
29310
$at_traceon; }
 
29311
 
 
29312
   { set +x
 
29313
$as_echo "$at_srcdir/ofproto.at:70: ovs-appctl -t ovsdb-server exit"
 
29314
at_fn_check_prepare_trace "ofproto.at:70"
 
29315
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
29316
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29317
at_status=$? at_failed=false
 
29318
$at_check_filter
 
29319
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29320
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29321
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:70"
 
29322
$at_failed && at_fn_log_failure  \
 
29323
"ovsdb-server.log" \
 
29324
"ovs-vswitchd.log"
 
29325
$at_traceon; }
 
29326
 
 
29327
   trap '' 0
 
29328
  set +x
 
29329
  $at_times_p && times >"$at_times_file"
 
29330
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
29331
read at_status <"$at_status_file"
 
29332
#AT_STOP_383
 
29333
#AT_START_384
 
29334
at_fn_group_banner 384 'ofproto.at:73' \
 
29335
  "ofproto - basic flow_mod commands (NXM)" "        " 33
 
29336
at_xfail=no
 
29337
(
 
29338
  $as_echo "384. $at_setup_line: testing $at_desc ..."
 
29339
  $at_traceon
 
29340
 
 
29341
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
29342
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
29343
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
29344
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
29345
 
 
29346
      mkdir openvswitch
 
29347
   touch openvswitch/.conf.db.~lock~
 
29348
   { set +x
 
29349
$as_echo "$at_srcdir/ofproto.at:74: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
29350
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto.at:74"
 
29351
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
29352
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29353
at_status=$? at_failed=false
 
29354
$at_check_filter
 
29355
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29356
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29357
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:74"
 
29358
$at_failed && at_fn_log_failure
 
29359
$at_traceon; }
 
29360
 
 
29361
 
 
29362
      { set +x
 
29363
$as_echo "$at_srcdir/ofproto.at:74: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
29364
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto.at:74"
 
29365
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
29366
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29367
at_status=$? at_failed=false
 
29368
$at_check_filter
 
29369
echo stderr:; tee stderr <"$at_stderr"
 
29370
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29371
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:74"
 
29372
$at_failed && at_fn_log_failure
 
29373
$at_traceon; }
 
29374
 
 
29375
   { set +x
 
29376
$as_echo "$at_srcdir/ofproto.at:74: sed < stderr '/vlog|INFO|opened log file/d'"
 
29377
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:74"
 
29378
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
29379
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29380
at_status=$? at_failed=false
 
29381
$at_check_filter
 
29382
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29383
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29384
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:74"
 
29385
$at_failed && at_fn_log_failure
 
29386
$at_traceon; }
 
29387
 
 
29388
 
 
29389
 
 
29390
      { set +x
 
29391
$as_echo "$at_srcdir/ofproto.at:74: ovs-vsctl --no-wait init"
 
29392
at_fn_check_prepare_trace "ofproto.at:74"
 
29393
( $at_check_trace; ovs-vsctl --no-wait init
 
29394
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29395
at_status=$? at_failed=false
 
29396
$at_check_filter
 
29397
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29398
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29399
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:74"
 
29400
$at_failed && at_fn_log_failure  \
 
29401
"ovsdb-server.log"
 
29402
$at_traceon; }
 
29403
 
 
29404
 
 
29405
      { set +x
 
29406
$as_echo "$at_srcdir/ofproto.at:74: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
29407
at_fn_check_prepare_trace "ofproto.at:74"
 
29408
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
29409
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29410
at_status=$? at_failed=false
 
29411
$at_check_filter
 
29412
echo stderr:; tee stderr <"$at_stderr"
 
29413
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29414
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:74"
 
29415
$at_failed && at_fn_log_failure  \
 
29416
"ovsdb-server.log"
 
29417
$at_traceon; }
 
29418
 
 
29419
 
 
29420
   { set +x
 
29421
$as_echo "$at_srcdir/ofproto.at:74: sed < stderr '
 
29422
/vlog|INFO|opened log file/d
 
29423
/reconnect|INFO|/d
 
29424
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
29425
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
29426
/ofproto|INFO|using datapath ID/d
 
29427
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
29428
at_fn_check_prepare_notrace 'an embedded newline' "ofproto.at:74"
 
29429
( $at_check_trace; sed < stderr '
 
29430
/vlog|INFO|opened log file/d
 
29431
/reconnect|INFO|/d
 
29432
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
29433
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
29434
/ofproto|INFO|using datapath ID/d
 
29435
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
29436
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29437
at_status=$? at_failed=false
 
29438
$at_check_filter
 
29439
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29440
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29441
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:74"
 
29442
$at_failed && at_fn_log_failure  \
 
29443
"ovsdb-server.log" \
 
29444
"ovs-vswitchd.log"
 
29445
$at_traceon; }
 
29446
 
 
29447
 
 
29448
      { set +x
 
29449
$as_echo "$at_srcdir/ofproto.at:74: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
29450
at_fn_check_prepare_trace "ofproto.at:74"
 
29451
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
29452
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29453
at_status=$? at_failed=false
 
29454
$at_check_filter
 
29455
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29456
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29457
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:74"
 
29458
$at_failed && at_fn_log_failure  \
 
29459
"ovsdb-server.log" \
 
29460
"ovs-vswitchd.log"
 
29461
$at_traceon; }
 
29462
 
 
29463
 
 
29464
{ set +x
 
29465
$as_echo "$at_srcdir/ofproto.at:75: ovs-ofctl dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'"
 
29466
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:75"
 
29467
( $at_check_trace; ovs-ofctl dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'
 
29468
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29469
at_status=$? at_failed=false
 
29470
$at_check_filter
 
29471
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29472
echo >>"$at_stdout"; $as_echo "NXST_FLOW reply:
 
29473
" | \
 
29474
  $at_diff - "$at_stdout" || at_failed=:
 
29475
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:75"
 
29476
$at_failed && at_fn_log_failure  \
 
29477
"ovsdb-server.log" \
 
29478
"ovs-vswitchd.log"
 
29479
$at_traceon; }
 
29480
 
 
29481
{ set +x
 
29482
$as_echo "$at_srcdir/ofproto.at:77: echo 'in_port=1,actions=0' | ovs-ofctl add-flows br0 -"
 
29483
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:77"
 
29484
( $at_check_trace; echo 'in_port=1,actions=0' | ovs-ofctl add-flows br0 -
 
29485
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29486
at_status=$? at_failed=false
 
29487
$at_check_filter
 
29488
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29489
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29490
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:77"
 
29491
$at_failed && at_fn_log_failure  \
 
29492
"ovsdb-server.log" \
 
29493
"ovs-vswitchd.log"
 
29494
$at_traceon; }
 
29495
 
 
29496
{ set +x
 
29497
$as_echo "$at_srcdir/ofproto.at:78: ovs-ofctl add-flow br0 in_port=0,actions=1"
 
29498
at_fn_check_prepare_trace "ofproto.at:78"
 
29499
( $at_check_trace; ovs-ofctl add-flow br0 in_port=0,actions=1
 
29500
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29501
at_status=$? at_failed=false
 
29502
$at_check_filter
 
29503
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29504
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29505
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:78"
 
29506
$at_failed && at_fn_log_failure  \
 
29507
"ovsdb-server.log" \
 
29508
"ovs-vswitchd.log"
 
29509
$at_traceon; }
 
29510
 
 
29511
{ set +x
 
29512
$as_echo "$at_srcdir/ofproto.at:79: ovs-ofctl -F nxm add-flow br0 table=1,in_port=3,actions=2"
 
29513
at_fn_check_prepare_trace "ofproto.at:79"
 
29514
( $at_check_trace; ovs-ofctl -F nxm add-flow br0 table=1,in_port=3,actions=2
 
29515
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29516
at_status=$? at_failed=false
 
29517
$at_check_filter
 
29518
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29519
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29520
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:79"
 
29521
$at_failed && at_fn_log_failure  \
 
29522
"ovsdb-server.log" \
 
29523
"ovs-vswitchd.log"
 
29524
$at_traceon; }
 
29525
 
 
29526
{ set +x
 
29527
$as_echo "$at_srcdir/ofproto.at:80: ovs-ofctl dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\\bduration=[0-9.]*s/duration=?s/' | sort"
 
29528
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:80"
 
29529
( $at_check_trace; ovs-ofctl dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\bduration=[0-9.]*s/duration=?s/' | sort
 
29530
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29531
at_status=$? at_failed=false
 
29532
$at_check_filter
 
29533
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29534
echo >>"$at_stdout"; $as_echo " cookie=0x0, duration=?s, table=0, n_packets=0, n_bytes=0, in_port=0 actions=output:1
 
29535
 cookie=0x0, duration=?s, table=0, n_packets=0, n_bytes=0, in_port=1 actions=output:0
 
29536
 cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, in_port=3 actions=output:2
 
29537
NXST_FLOW reply:
 
29538
" | \
 
29539
  $at_diff - "$at_stdout" || at_failed=:
 
29540
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:80"
 
29541
$at_failed && at_fn_log_failure  \
 
29542
"ovsdb-server.log" \
 
29543
"ovs-vswitchd.log"
 
29544
$at_traceon; }
 
29545
 
 
29546
{ set +x
 
29547
$as_echo "$at_srcdir/ofproto.at:86: ovs-ofctl dump-aggregate br0 table=0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'"
 
29548
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:86"
 
29549
( $at_check_trace; ovs-ofctl dump-aggregate br0 table=0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'
 
29550
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29551
at_status=$? at_failed=false
 
29552
$at_check_filter
 
29553
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29554
echo >>"$at_stdout"; $as_echo "NXST_AGGREGATE reply: packet_count=0 byte_count=0 flow_count=2
 
29555
" | \
 
29556
  $at_diff - "$at_stdout" || at_failed=:
 
29557
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:86"
 
29558
$at_failed && at_fn_log_failure  \
 
29559
"ovsdb-server.log" \
 
29560
"ovs-vswitchd.log"
 
29561
$at_traceon; }
 
29562
 
 
29563
{ set +x
 
29564
$as_echo "$at_srcdir/ofproto.at:89: ovs-ofctl del-flows br0"
 
29565
at_fn_check_prepare_trace "ofproto.at:89"
 
29566
( $at_check_trace; ovs-ofctl del-flows br0
 
29567
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29568
at_status=$? at_failed=false
 
29569
$at_check_filter
 
29570
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29571
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29572
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:89"
 
29573
$at_failed && at_fn_log_failure  \
 
29574
"ovsdb-server.log" \
 
29575
"ovs-vswitchd.log"
 
29576
$at_traceon; }
 
29577
 
 
29578
{ set +x
 
29579
$as_echo "$at_srcdir/ofproto.at:90: ovs-ofctl dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'"
 
29580
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:90"
 
29581
( $at_check_trace; ovs-ofctl dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'
 
29582
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29583
at_status=$? at_failed=false
 
29584
$at_check_filter
 
29585
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29586
echo >>"$at_stdout"; $as_echo "NXST_FLOW reply:
 
29587
" | \
 
29588
  $at_diff - "$at_stdout" || at_failed=:
 
29589
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:90"
 
29590
$at_failed && at_fn_log_failure  \
 
29591
"ovsdb-server.log" \
 
29592
"ovs-vswitchd.log"
 
29593
$at_traceon; }
 
29594
 
 
29595
{ set +x
 
29596
$as_echo "$at_srcdir/ofproto.at:92: ovs-appctl -t ovs-vswitchd exit"
 
29597
at_fn_check_prepare_trace "ofproto.at:92"
 
29598
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
29599
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29600
at_status=$? at_failed=false
 
29601
$at_check_filter
 
29602
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29603
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29604
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:92"
 
29605
$at_failed && at_fn_log_failure  \
 
29606
"ovsdb-server.log" \
 
29607
"ovs-vswitchd.log"
 
29608
$at_traceon; }
 
29609
 
 
29610
   { set +x
 
29611
$as_echo "$at_srcdir/ofproto.at:92: ovs-appctl -t ovsdb-server exit"
 
29612
at_fn_check_prepare_trace "ofproto.at:92"
 
29613
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
29614
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29615
at_status=$? at_failed=false
 
29616
$at_check_filter
 
29617
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29618
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29619
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:92"
 
29620
$at_failed && at_fn_log_failure  \
 
29621
"ovsdb-server.log" \
 
29622
"ovs-vswitchd.log"
 
29623
$at_traceon; }
 
29624
 
 
29625
   trap '' 0
 
29626
  set +x
 
29627
  $at_times_p && times >"$at_times_file"
 
29628
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
29629
read at_status <"$at_status_file"
 
29630
#AT_STOP_384
 
29631
#AT_START_385
 
29632
at_fn_group_banner 385 'ofproto.at:95' \
 
29633
  "ofproto - basic flow_mod commands (OpenFlow 1.0)" "" 33
 
29634
at_xfail=no
 
29635
(
 
29636
  $as_echo "385. $at_setup_line: testing $at_desc ..."
 
29637
  $at_traceon
 
29638
 
 
29639
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
29640
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
29641
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
29642
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
29643
 
 
29644
      mkdir openvswitch
 
29645
   touch openvswitch/.conf.db.~lock~
 
29646
   { set +x
 
29647
$as_echo "$at_srcdir/ofproto.at:96: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
29648
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto.at:96"
 
29649
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
29650
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29651
at_status=$? at_failed=false
 
29652
$at_check_filter
 
29653
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29654
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29655
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:96"
 
29656
$at_failed && at_fn_log_failure
 
29657
$at_traceon; }
 
29658
 
 
29659
 
 
29660
      { set +x
 
29661
$as_echo "$at_srcdir/ofproto.at:96: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
29662
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto.at:96"
 
29663
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
29664
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29665
at_status=$? at_failed=false
 
29666
$at_check_filter
 
29667
echo stderr:; tee stderr <"$at_stderr"
 
29668
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29669
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:96"
 
29670
$at_failed && at_fn_log_failure
 
29671
$at_traceon; }
 
29672
 
 
29673
   { set +x
 
29674
$as_echo "$at_srcdir/ofproto.at:96: sed < stderr '/vlog|INFO|opened log file/d'"
 
29675
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:96"
 
29676
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
29677
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29678
at_status=$? at_failed=false
 
29679
$at_check_filter
 
29680
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29681
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29682
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:96"
 
29683
$at_failed && at_fn_log_failure
 
29684
$at_traceon; }
 
29685
 
 
29686
 
 
29687
 
 
29688
      { set +x
 
29689
$as_echo "$at_srcdir/ofproto.at:96: ovs-vsctl --no-wait init"
 
29690
at_fn_check_prepare_trace "ofproto.at:96"
 
29691
( $at_check_trace; ovs-vsctl --no-wait init
 
29692
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29693
at_status=$? at_failed=false
 
29694
$at_check_filter
 
29695
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29696
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29697
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:96"
 
29698
$at_failed && at_fn_log_failure  \
 
29699
"ovsdb-server.log"
 
29700
$at_traceon; }
 
29701
 
 
29702
 
 
29703
      { set +x
 
29704
$as_echo "$at_srcdir/ofproto.at:96: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
29705
at_fn_check_prepare_trace "ofproto.at:96"
 
29706
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
29707
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29708
at_status=$? at_failed=false
 
29709
$at_check_filter
 
29710
echo stderr:; tee stderr <"$at_stderr"
 
29711
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29712
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:96"
 
29713
$at_failed && at_fn_log_failure  \
 
29714
"ovsdb-server.log"
 
29715
$at_traceon; }
 
29716
 
 
29717
 
 
29718
   { set +x
 
29719
$as_echo "$at_srcdir/ofproto.at:96: sed < stderr '
 
29720
/vlog|INFO|opened log file/d
 
29721
/reconnect|INFO|/d
 
29722
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
29723
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
29724
/ofproto|INFO|using datapath ID/d
 
29725
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
29726
at_fn_check_prepare_notrace 'an embedded newline' "ofproto.at:96"
 
29727
( $at_check_trace; sed < stderr '
 
29728
/vlog|INFO|opened log file/d
 
29729
/reconnect|INFO|/d
 
29730
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
29731
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
29732
/ofproto|INFO|using datapath ID/d
 
29733
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
29734
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29735
at_status=$? at_failed=false
 
29736
$at_check_filter
 
29737
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29738
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29739
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:96"
 
29740
$at_failed && at_fn_log_failure  \
 
29741
"ovsdb-server.log" \
 
29742
"ovs-vswitchd.log"
 
29743
$at_traceon; }
 
29744
 
 
29745
 
 
29746
      { set +x
 
29747
$as_echo "$at_srcdir/ofproto.at:96: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
29748
at_fn_check_prepare_trace "ofproto.at:96"
 
29749
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
29750
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29751
at_status=$? at_failed=false
 
29752
$at_check_filter
 
29753
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29754
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29755
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:96"
 
29756
$at_failed && at_fn_log_failure  \
 
29757
"ovsdb-server.log" \
 
29758
"ovs-vswitchd.log"
 
29759
$at_traceon; }
 
29760
 
 
29761
 
 
29762
{ set +x
 
29763
$as_echo "$at_srcdir/ofproto.at:97: ovs-ofctl -F openflow10 dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'"
 
29764
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:97"
 
29765
( $at_check_trace; ovs-ofctl -F openflow10 dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'
 
29766
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29767
at_status=$? at_failed=false
 
29768
$at_check_filter
 
29769
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29770
echo >>"$at_stdout"; $as_echo "OFPST_FLOW reply:
 
29771
" | \
 
29772
  $at_diff - "$at_stdout" || at_failed=:
 
29773
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:97"
 
29774
$at_failed && at_fn_log_failure  \
 
29775
"ovsdb-server.log" \
 
29776
"ovs-vswitchd.log"
 
29777
$at_traceon; }
 
29778
 
 
29779
{ set +x
 
29780
$as_echo "$at_srcdir/ofproto.at:99: echo 'in_port=1,actions=0' | ovs-ofctl -F openflow10 add-flows br0 -"
 
29781
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:99"
 
29782
( $at_check_trace; echo 'in_port=1,actions=0' | ovs-ofctl -F openflow10 add-flows br0 -
 
29783
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29784
at_status=$? at_failed=false
 
29785
$at_check_filter
 
29786
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29787
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29788
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:99"
 
29789
$at_failed && at_fn_log_failure  \
 
29790
"ovsdb-server.log" \
 
29791
"ovs-vswitchd.log"
 
29792
$at_traceon; }
 
29793
 
 
29794
{ set +x
 
29795
$as_echo "$at_srcdir/ofproto.at:100: ovs-ofctl -F openflow10 add-flow br0 in_port=0,actions=1"
 
29796
at_fn_check_prepare_trace "ofproto.at:100"
 
29797
( $at_check_trace; ovs-ofctl -F openflow10 add-flow br0 in_port=0,actions=1
 
29798
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29799
at_status=$? at_failed=false
 
29800
$at_check_filter
 
29801
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29802
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29803
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:100"
 
29804
$at_failed && at_fn_log_failure  \
 
29805
"ovsdb-server.log" \
 
29806
"ovs-vswitchd.log"
 
29807
$at_traceon; }
 
29808
 
 
29809
{ set +x
 
29810
$as_echo "$at_srcdir/ofproto.at:101: ovs-ofctl -F openflow10 add-flow br0 table=1,in_port=3,actions=2"
 
29811
at_fn_check_prepare_trace "ofproto.at:101"
 
29812
( $at_check_trace; ovs-ofctl -F openflow10 add-flow br0 table=1,in_port=3,actions=2
 
29813
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29814
at_status=$? at_failed=false
 
29815
$at_check_filter
 
29816
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29817
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29818
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:101"
 
29819
$at_failed && at_fn_log_failure  \
 
29820
"ovsdb-server.log" \
 
29821
"ovs-vswitchd.log"
 
29822
$at_traceon; }
 
29823
 
 
29824
{ set +x
 
29825
$as_echo "$at_srcdir/ofproto.at:102: ovs-ofctl -F openflow10 dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\\bduration=[0-9.]*s/duration=?s/' | sort"
 
29826
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:102"
 
29827
( $at_check_trace; ovs-ofctl -F openflow10 dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//' | sed 's/\bduration=[0-9.]*s/duration=?s/' | sort
 
29828
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29829
at_status=$? at_failed=false
 
29830
$at_check_filter
 
29831
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29832
echo >>"$at_stdout"; $as_echo " cookie=0x0, duration=?s, table=0, n_packets=0, n_bytes=0, in_port=0 actions=output:1
 
29833
 cookie=0x0, duration=?s, table=0, n_packets=0, n_bytes=0, in_port=1 actions=output:0
 
29834
 cookie=0x0, duration=?s, table=1, n_packets=0, n_bytes=0, in_port=3 actions=output:2
 
29835
OFPST_FLOW reply:
 
29836
" | \
 
29837
  $at_diff - "$at_stdout" || at_failed=:
 
29838
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:102"
 
29839
$at_failed && at_fn_log_failure  \
 
29840
"ovsdb-server.log" \
 
29841
"ovs-vswitchd.log"
 
29842
$at_traceon; }
 
29843
 
 
29844
{ set +x
 
29845
$as_echo "$at_srcdir/ofproto.at:108: ovs-ofctl -F openflow10 dump-aggregate br0 table=0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'"
 
29846
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:108"
 
29847
( $at_check_trace; ovs-ofctl -F openflow10 dump-aggregate br0 table=0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'
 
29848
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29849
at_status=$? at_failed=false
 
29850
$at_check_filter
 
29851
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29852
echo >>"$at_stdout"; $as_echo "OFPST_AGGREGATE reply: packet_count=0 byte_count=0 flow_count=2
 
29853
" | \
 
29854
  $at_diff - "$at_stdout" || at_failed=:
 
29855
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:108"
 
29856
$at_failed && at_fn_log_failure  \
 
29857
"ovsdb-server.log" \
 
29858
"ovs-vswitchd.log"
 
29859
$at_traceon; }
 
29860
 
 
29861
{ set +x
 
29862
$as_echo "$at_srcdir/ofproto.at:111: ovs-ofctl -F openflow10 del-flows br0"
 
29863
at_fn_check_prepare_trace "ofproto.at:111"
 
29864
( $at_check_trace; ovs-ofctl -F openflow10 del-flows br0
 
29865
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29866
at_status=$? at_failed=false
 
29867
$at_check_filter
 
29868
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29869
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29870
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:111"
 
29871
$at_failed && at_fn_log_failure  \
 
29872
"ovsdb-server.log" \
 
29873
"ovs-vswitchd.log"
 
29874
$at_traceon; }
 
29875
 
 
29876
{ set +x
 
29877
$as_echo "$at_srcdir/ofproto.at:112: ovs-ofctl -F openflow10 dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'"
 
29878
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto.at:112"
 
29879
( $at_check_trace; ovs-ofctl -F openflow10 dump-flows br0 | sed 's/ (xid=0x[0-9a-fA-F]*)//'
 
29880
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29881
at_status=$? at_failed=false
 
29882
$at_check_filter
 
29883
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29884
echo >>"$at_stdout"; $as_echo "OFPST_FLOW reply:
 
29885
" | \
 
29886
  $at_diff - "$at_stdout" || at_failed=:
 
29887
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:112"
 
29888
$at_failed && at_fn_log_failure  \
 
29889
"ovsdb-server.log" \
 
29890
"ovs-vswitchd.log"
 
29891
$at_traceon; }
 
29892
 
 
29893
{ set +x
 
29894
$as_echo "$at_srcdir/ofproto.at:114: ovs-appctl -t ovs-vswitchd exit"
 
29895
at_fn_check_prepare_trace "ofproto.at:114"
 
29896
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
29897
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29898
at_status=$? at_failed=false
 
29899
$at_check_filter
 
29900
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29901
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29902
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:114"
 
29903
$at_failed && at_fn_log_failure  \
 
29904
"ovsdb-server.log" \
 
29905
"ovs-vswitchd.log"
 
29906
$at_traceon; }
 
29907
 
 
29908
   { set +x
 
29909
$as_echo "$at_srcdir/ofproto.at:114: ovs-appctl -t ovsdb-server exit"
 
29910
at_fn_check_prepare_trace "ofproto.at:114"
 
29911
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
29912
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29913
at_status=$? at_failed=false
 
29914
$at_check_filter
 
29915
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29916
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29917
at_fn_check_status 0 $at_status "$at_srcdir/ofproto.at:114"
 
29918
$at_failed && at_fn_log_failure  \
 
29919
"ovsdb-server.log" \
 
29920
"ovs-vswitchd.log"
 
29921
$at_traceon; }
 
29922
 
 
29923
   trap '' 0
 
29924
  set +x
 
29925
  $at_times_p && times >"$at_times_file"
 
29926
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
29927
read at_status <"$at_status_file"
 
29928
#AT_STOP_385
 
29929
#AT_START_386
 
29930
at_fn_group_banner 386 'ofproto-dpif.at:3' \
 
29931
  "ofproto-dpif - resubmit" "                        " 34
 
29932
at_xfail=no
 
29933
(
 
29934
  $as_echo "386. $at_setup_line: testing $at_desc ..."
 
29935
  $at_traceon
 
29936
 
 
29937
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
29938
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
29939
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
29940
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
29941
 
 
29942
      mkdir openvswitch
 
29943
   touch openvswitch/.conf.db.~lock~
 
29944
   { set +x
 
29945
$as_echo "$at_srcdir/ofproto-dpif.at:4: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
29946
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:4"
 
29947
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
29948
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29949
at_status=$? at_failed=false
 
29950
$at_check_filter
 
29951
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29952
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29953
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:4"
 
29954
$at_failed && at_fn_log_failure
 
29955
$at_traceon; }
 
29956
 
 
29957
 
 
29958
      { set +x
 
29959
$as_echo "$at_srcdir/ofproto-dpif.at:4: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
29960
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:4"
 
29961
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
29962
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29963
at_status=$? at_failed=false
 
29964
$at_check_filter
 
29965
echo stderr:; tee stderr <"$at_stderr"
 
29966
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29967
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:4"
 
29968
$at_failed && at_fn_log_failure
 
29969
$at_traceon; }
 
29970
 
 
29971
   { set +x
 
29972
$as_echo "$at_srcdir/ofproto-dpif.at:4: sed < stderr '/vlog|INFO|opened log file/d'"
 
29973
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:4"
 
29974
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
29975
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29976
at_status=$? at_failed=false
 
29977
$at_check_filter
 
29978
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29979
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29980
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:4"
 
29981
$at_failed && at_fn_log_failure
 
29982
$at_traceon; }
 
29983
 
 
29984
 
 
29985
 
 
29986
      { set +x
 
29987
$as_echo "$at_srcdir/ofproto-dpif.at:4: ovs-vsctl --no-wait init"
 
29988
at_fn_check_prepare_trace "ofproto-dpif.at:4"
 
29989
( $at_check_trace; ovs-vsctl --no-wait init
 
29990
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
29991
at_status=$? at_failed=false
 
29992
$at_check_filter
 
29993
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
29994
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
29995
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:4"
 
29996
$at_failed && at_fn_log_failure  \
 
29997
"ovsdb-server.log"
 
29998
$at_traceon; }
 
29999
 
 
30000
 
 
30001
      { set +x
 
30002
$as_echo "$at_srcdir/ofproto-dpif.at:4: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
30003
at_fn_check_prepare_trace "ofproto-dpif.at:4"
 
30004
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
30005
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30006
at_status=$? at_failed=false
 
30007
$at_check_filter
 
30008
echo stderr:; tee stderr <"$at_stderr"
 
30009
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30010
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:4"
 
30011
$at_failed && at_fn_log_failure  \
 
30012
"ovsdb-server.log"
 
30013
$at_traceon; }
 
30014
 
 
30015
 
 
30016
   { set +x
 
30017
$as_echo "$at_srcdir/ofproto-dpif.at:4: sed < stderr '
 
30018
/vlog|INFO|opened log file/d
 
30019
/reconnect|INFO|/d
 
30020
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30021
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30022
/ofproto|INFO|using datapath ID/d
 
30023
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
30024
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:4"
 
30025
( $at_check_trace; sed < stderr '
 
30026
/vlog|INFO|opened log file/d
 
30027
/reconnect|INFO|/d
 
30028
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30029
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30030
/ofproto|INFO|using datapath ID/d
 
30031
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
30032
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30033
at_status=$? at_failed=false
 
30034
$at_check_filter
 
30035
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30036
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30037
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:4"
 
30038
$at_failed && at_fn_log_failure  \
 
30039
"ovsdb-server.log" \
 
30040
"ovs-vswitchd.log"
 
30041
$at_traceon; }
 
30042
 
 
30043
 
 
30044
      { set +x
 
30045
$as_echo "$at_srcdir/ofproto-dpif.at:4: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
30046
at_fn_check_prepare_trace "ofproto-dpif.at:4"
 
30047
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
30048
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30049
at_status=$? at_failed=false
 
30050
$at_check_filter
 
30051
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30052
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30053
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:4"
 
30054
$at_failed && at_fn_log_failure  \
 
30055
"ovsdb-server.log" \
 
30056
"ovs-vswitchd.log"
 
30057
$at_traceon; }
 
30058
 
 
30059
 
 
30060
cat >flows.txt <<'_ATEOF'
 
30061
table=0 in_port=1 priority=1000 icmp actions=output(10),resubmit(2),output(19),resubmit(3),output(21)
 
30062
table=0 in_port=2 priority=1500 icmp actions=output(11),resubmit(,1),output(16),resubmit(2,1),output(18)
 
30063
table=0 in_port=3 priority=2000 icmp actions=output(20)
 
30064
table=1 in_port=1 priority=1000 icmp actions=output(12),resubmit(4,1),output(13),resubmit(3),output(15)
 
30065
table=1 in_port=2 priority=1500 icmp actions=output(17),resubmit(,2)
 
30066
table=1 in_port=3 priority=1500 icmp actions=output(14),resubmit(,2)
 
30067
_ATEOF
 
30068
 
 
30069
{ set +x
 
30070
$as_echo "$at_srcdir/ofproto-dpif.at:13: ovs-ofctl add-flows br0 flows.txt"
 
30071
at_fn_check_prepare_trace "ofproto-dpif.at:13"
 
30072
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
30073
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30074
at_status=$? at_failed=false
 
30075
$at_check_filter
 
30076
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30077
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30078
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:13"
 
30079
$at_failed && at_fn_log_failure  \
 
30080
"ovsdb-server.log" \
 
30081
"ovs-vswitchd.log"
 
30082
$at_traceon; }
 
30083
 
 
30084
{ set +x
 
30085
$as_echo "$at_srcdir/ofproto-dpif.at:14: ovs-appctl ofproto/trace br0 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'"
 
30086
at_fn_check_prepare_trace "ofproto-dpif.at:14"
 
30087
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'
 
30088
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30089
at_status=$? at_failed=false
 
30090
$at_check_filter
 
30091
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30092
echo stdout:; tee stdout <"$at_stdout"
 
30093
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:14"
 
30094
$at_failed && at_fn_log_failure  \
 
30095
"ovsdb-server.log" \
 
30096
"ovs-vswitchd.log"
 
30097
$at_traceon; }
 
30098
 
 
30099
{ set +x
 
30100
$as_echo "$at_srcdir/ofproto-dpif.at:15: tail -1 stdout"
 
30101
at_fn_check_prepare_trace "ofproto-dpif.at:15"
 
30102
( $at_check_trace; tail -1 stdout
 
30103
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30104
at_status=$? at_failed=false
 
30105
$at_check_filter
 
30106
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30107
echo >>"$at_stdout"; $as_echo "Datapath actions: 10,11,12,13,14,15,16,17,18,19,20,21
 
30108
" | \
 
30109
  $at_diff - "$at_stdout" || at_failed=:
 
30110
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:15"
 
30111
$at_failed && at_fn_log_failure  \
 
30112
"ovsdb-server.log" \
 
30113
"ovs-vswitchd.log"
 
30114
$at_traceon; }
 
30115
 
 
30116
{ set +x
 
30117
$as_echo "$at_srcdir/ofproto-dpif.at:18: ovs-appctl -t ovs-vswitchd exit"
 
30118
at_fn_check_prepare_trace "ofproto-dpif.at:18"
 
30119
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
30120
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30121
at_status=$? at_failed=false
 
30122
$at_check_filter
 
30123
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30124
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30125
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:18"
 
30126
$at_failed && at_fn_log_failure  \
 
30127
"ovsdb-server.log" \
 
30128
"ovs-vswitchd.log"
 
30129
$at_traceon; }
 
30130
 
 
30131
   { set +x
 
30132
$as_echo "$at_srcdir/ofproto-dpif.at:18: ovs-appctl -t ovsdb-server exit"
 
30133
at_fn_check_prepare_trace "ofproto-dpif.at:18"
 
30134
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
30135
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30136
at_status=$? at_failed=false
 
30137
$at_check_filter
 
30138
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30139
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30140
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:18"
 
30141
$at_failed && at_fn_log_failure  \
 
30142
"ovsdb-server.log" \
 
30143
"ovs-vswitchd.log"
 
30144
$at_traceon; }
 
30145
 
 
30146
   trap '' 0
 
30147
  set +x
 
30148
  $at_times_p && times >"$at_times_file"
 
30149
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
30150
read at_status <"$at_status_file"
 
30151
#AT_STOP_386
 
30152
#AT_START_387
 
30153
at_fn_group_banner 387 'ofproto-dpif.at:21' \
 
30154
  "ofproto-dpif - registers" "                       " 34
 
30155
at_xfail=no
 
30156
(
 
30157
  $as_echo "387. $at_setup_line: testing $at_desc ..."
 
30158
  $at_traceon
 
30159
 
 
30160
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
30161
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
30162
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
30163
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
30164
 
 
30165
      mkdir openvswitch
 
30166
   touch openvswitch/.conf.db.~lock~
 
30167
   { set +x
 
30168
$as_echo "$at_srcdir/ofproto-dpif.at:22: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
30169
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:22"
 
30170
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
30171
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30172
at_status=$? at_failed=false
 
30173
$at_check_filter
 
30174
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30175
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30176
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:22"
 
30177
$at_failed && at_fn_log_failure
 
30178
$at_traceon; }
 
30179
 
 
30180
 
 
30181
      { set +x
 
30182
$as_echo "$at_srcdir/ofproto-dpif.at:22: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
30183
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:22"
 
30184
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
30185
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30186
at_status=$? at_failed=false
 
30187
$at_check_filter
 
30188
echo stderr:; tee stderr <"$at_stderr"
 
30189
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30190
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:22"
 
30191
$at_failed && at_fn_log_failure
 
30192
$at_traceon; }
 
30193
 
 
30194
   { set +x
 
30195
$as_echo "$at_srcdir/ofproto-dpif.at:22: sed < stderr '/vlog|INFO|opened log file/d'"
 
30196
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:22"
 
30197
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
30198
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30199
at_status=$? at_failed=false
 
30200
$at_check_filter
 
30201
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30202
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30203
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:22"
 
30204
$at_failed && at_fn_log_failure
 
30205
$at_traceon; }
 
30206
 
 
30207
 
 
30208
 
 
30209
      { set +x
 
30210
$as_echo "$at_srcdir/ofproto-dpif.at:22: ovs-vsctl --no-wait init"
 
30211
at_fn_check_prepare_trace "ofproto-dpif.at:22"
 
30212
( $at_check_trace; ovs-vsctl --no-wait init
 
30213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30214
at_status=$? at_failed=false
 
30215
$at_check_filter
 
30216
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30217
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30218
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:22"
 
30219
$at_failed && at_fn_log_failure  \
 
30220
"ovsdb-server.log"
 
30221
$at_traceon; }
 
30222
 
 
30223
 
 
30224
      { set +x
 
30225
$as_echo "$at_srcdir/ofproto-dpif.at:22: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
30226
at_fn_check_prepare_trace "ofproto-dpif.at:22"
 
30227
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
30228
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30229
at_status=$? at_failed=false
 
30230
$at_check_filter
 
30231
echo stderr:; tee stderr <"$at_stderr"
 
30232
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30233
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:22"
 
30234
$at_failed && at_fn_log_failure  \
 
30235
"ovsdb-server.log"
 
30236
$at_traceon; }
 
30237
 
 
30238
 
 
30239
   { set +x
 
30240
$as_echo "$at_srcdir/ofproto-dpif.at:22: sed < stderr '
 
30241
/vlog|INFO|opened log file/d
 
30242
/reconnect|INFO|/d
 
30243
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30244
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30245
/ofproto|INFO|using datapath ID/d
 
30246
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
30247
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:22"
 
30248
( $at_check_trace; sed < stderr '
 
30249
/vlog|INFO|opened log file/d
 
30250
/reconnect|INFO|/d
 
30251
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30252
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30253
/ofproto|INFO|using datapath ID/d
 
30254
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
30255
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30256
at_status=$? at_failed=false
 
30257
$at_check_filter
 
30258
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30259
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30260
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:22"
 
30261
$at_failed && at_fn_log_failure  \
 
30262
"ovsdb-server.log" \
 
30263
"ovs-vswitchd.log"
 
30264
$at_traceon; }
 
30265
 
 
30266
 
 
30267
      { set +x
 
30268
$as_echo "$at_srcdir/ofproto-dpif.at:22: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
30269
at_fn_check_prepare_trace "ofproto-dpif.at:22"
 
30270
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
30271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30272
at_status=$? at_failed=false
 
30273
$at_check_filter
 
30274
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30275
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30276
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:22"
 
30277
$at_failed && at_fn_log_failure  \
 
30278
"ovsdb-server.log" \
 
30279
"ovs-vswitchd.log"
 
30280
$at_traceon; }
 
30281
 
 
30282
 
 
30283
cat >flows.txt <<'_ATEOF'
 
30284
in_port=90                 actions=resubmit:2,resubmit:3,resubmit:4,resubmit:91
 
30285
in_port=91                 actions=resubmit:5,resubmit:6,resubmit:7,resubmit:92
 
30286
in_port=92                 actions=resubmit:8,resubmit:9,resubmit:10,resubmit:11
 
30287
in_port=2                  actions=load:0x000db000->NXM_NX_REG0[]
 
30288
in_port=3                  actions=load:0xdea->NXM_NX_REG0[20..31]
 
30289
in_port=4                  actions=load:0xeef->NXM_NX_REG0[0..11]
 
30290
in_port=5                  actions=move:NXM_NX_REG0[]->NXM_NX_REG1[]
 
30291
in_port=6                  actions=load:0x22222222->NXM_NX_REG2[]
 
30292
in_port=7                  actions=move:NXM_NX_REG1[20..31]->NXM_NX_REG2[0..11]
 
30293
in_port=8                  actions=move:NXM_NX_REG1[0..11]->NXM_NX_REG2[20..31]
 
30294
in_port=9,reg0=0xdeadbeef  actions=output:20
 
30295
in_port=10,reg1=0xdeadbeef actions=output:21
 
30296
in_port=11,reg2=0xeef22dea actions=output:22
 
30297
_ATEOF
 
30298
 
 
30299
{ set +x
 
30300
$as_echo "$at_srcdir/ofproto-dpif.at:38: ovs-ofctl add-flows br0 flows.txt"
 
30301
at_fn_check_prepare_trace "ofproto-dpif.at:38"
 
30302
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
30303
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30304
at_status=$? at_failed=false
 
30305
$at_check_filter
 
30306
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30307
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30308
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:38"
 
30309
$at_failed && at_fn_log_failure  \
 
30310
"ovsdb-server.log" \
 
30311
"ovs-vswitchd.log"
 
30312
$at_traceon; }
 
30313
 
 
30314
{ set +x
 
30315
$as_echo "$at_srcdir/ofproto-dpif.at:39: ovs-appctl ofproto/trace br0 'in_port(90),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'"
 
30316
at_fn_check_prepare_trace "ofproto-dpif.at:39"
 
30317
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(90),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'
 
30318
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30319
at_status=$? at_failed=false
 
30320
$at_check_filter
 
30321
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30322
echo stdout:; tee stdout <"$at_stdout"
 
30323
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:39"
 
30324
$at_failed && at_fn_log_failure  \
 
30325
"ovsdb-server.log" \
 
30326
"ovs-vswitchd.log"
 
30327
$at_traceon; }
 
30328
 
 
30329
{ set +x
 
30330
$as_echo "$at_srcdir/ofproto-dpif.at:40: tail -1 stdout"
 
30331
at_fn_check_prepare_trace "ofproto-dpif.at:40"
 
30332
( $at_check_trace; tail -1 stdout
 
30333
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30334
at_status=$? at_failed=false
 
30335
$at_check_filter
 
30336
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30337
echo >>"$at_stdout"; $as_echo "Datapath actions: 20,21,22
 
30338
" | \
 
30339
  $at_diff - "$at_stdout" || at_failed=:
 
30340
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:40"
 
30341
$at_failed && at_fn_log_failure  \
 
30342
"ovsdb-server.log" \
 
30343
"ovs-vswitchd.log"
 
30344
$at_traceon; }
 
30345
 
 
30346
{ set +x
 
30347
$as_echo "$at_srcdir/ofproto-dpif.at:43: ovs-appctl -t ovs-vswitchd exit"
 
30348
at_fn_check_prepare_trace "ofproto-dpif.at:43"
 
30349
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
30350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30351
at_status=$? at_failed=false
 
30352
$at_check_filter
 
30353
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30354
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30355
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:43"
 
30356
$at_failed && at_fn_log_failure  \
 
30357
"ovsdb-server.log" \
 
30358
"ovs-vswitchd.log"
 
30359
$at_traceon; }
 
30360
 
 
30361
   { set +x
 
30362
$as_echo "$at_srcdir/ofproto-dpif.at:43: ovs-appctl -t ovsdb-server exit"
 
30363
at_fn_check_prepare_trace "ofproto-dpif.at:43"
 
30364
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
30365
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30366
at_status=$? at_failed=false
 
30367
$at_check_filter
 
30368
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30369
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30370
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:43"
 
30371
$at_failed && at_fn_log_failure  \
 
30372
"ovsdb-server.log" \
 
30373
"ovs-vswitchd.log"
 
30374
$at_traceon; }
 
30375
 
 
30376
   trap '' 0
 
30377
  set +x
 
30378
  $at_times_p && times >"$at_times_file"
 
30379
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
30380
read at_status <"$at_status_file"
 
30381
#AT_STOP_387
 
30382
#AT_START_388
 
30383
at_fn_group_banner 388 'ofproto-dpif.at:46' \
 
30384
  "ofproto-dpif - output" "                          " 34
 
30385
at_xfail=no
 
30386
(
 
30387
  $as_echo "388. $at_setup_line: testing $at_desc ..."
 
30388
  $at_traceon
 
30389
 
 
30390
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
30391
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
30392
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
30393
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
30394
 
 
30395
      mkdir openvswitch
 
30396
   touch openvswitch/.conf.db.~lock~
 
30397
   { set +x
 
30398
$as_echo "$at_srcdir/ofproto-dpif.at:47: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
30399
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:47"
 
30400
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
30401
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30402
at_status=$? at_failed=false
 
30403
$at_check_filter
 
30404
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30405
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30406
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:47"
 
30407
$at_failed && at_fn_log_failure
 
30408
$at_traceon; }
 
30409
 
 
30410
 
 
30411
      { set +x
 
30412
$as_echo "$at_srcdir/ofproto-dpif.at:47: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
30413
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:47"
 
30414
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
30415
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30416
at_status=$? at_failed=false
 
30417
$at_check_filter
 
30418
echo stderr:; tee stderr <"$at_stderr"
 
30419
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30420
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:47"
 
30421
$at_failed && at_fn_log_failure
 
30422
$at_traceon; }
 
30423
 
 
30424
   { set +x
 
30425
$as_echo "$at_srcdir/ofproto-dpif.at:47: sed < stderr '/vlog|INFO|opened log file/d'"
 
30426
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:47"
 
30427
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
30428
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30429
at_status=$? at_failed=false
 
30430
$at_check_filter
 
30431
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30432
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30433
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:47"
 
30434
$at_failed && at_fn_log_failure
 
30435
$at_traceon; }
 
30436
 
 
30437
 
 
30438
 
 
30439
      { set +x
 
30440
$as_echo "$at_srcdir/ofproto-dpif.at:47: ovs-vsctl --no-wait init"
 
30441
at_fn_check_prepare_trace "ofproto-dpif.at:47"
 
30442
( $at_check_trace; ovs-vsctl --no-wait init
 
30443
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30444
at_status=$? at_failed=false
 
30445
$at_check_filter
 
30446
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30447
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30448
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:47"
 
30449
$at_failed && at_fn_log_failure  \
 
30450
"ovsdb-server.log"
 
30451
$at_traceon; }
 
30452
 
 
30453
 
 
30454
      { set +x
 
30455
$as_echo "$at_srcdir/ofproto-dpif.at:47: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
30456
at_fn_check_prepare_trace "ofproto-dpif.at:47"
 
30457
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
30458
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30459
at_status=$? at_failed=false
 
30460
$at_check_filter
 
30461
echo stderr:; tee stderr <"$at_stderr"
 
30462
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30463
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:47"
 
30464
$at_failed && at_fn_log_failure  \
 
30465
"ovsdb-server.log"
 
30466
$at_traceon; }
 
30467
 
 
30468
 
 
30469
   { set +x
 
30470
$as_echo "$at_srcdir/ofproto-dpif.at:47: sed < stderr '
 
30471
/vlog|INFO|opened log file/d
 
30472
/reconnect|INFO|/d
 
30473
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30474
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30475
/ofproto|INFO|using datapath ID/d
 
30476
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
30477
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:47"
 
30478
( $at_check_trace; sed < stderr '
 
30479
/vlog|INFO|opened log file/d
 
30480
/reconnect|INFO|/d
 
30481
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30482
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30483
/ofproto|INFO|using datapath ID/d
 
30484
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
30485
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30486
at_status=$? at_failed=false
 
30487
$at_check_filter
 
30488
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30489
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30490
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:47"
 
30491
$at_failed && at_fn_log_failure  \
 
30492
"ovsdb-server.log" \
 
30493
"ovs-vswitchd.log"
 
30494
$at_traceon; }
 
30495
 
 
30496
 
 
30497
      { set +x
 
30498
$as_echo "$at_srcdir/ofproto-dpif.at:47: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
30499
at_fn_check_prepare_trace "ofproto-dpif.at:47"
 
30500
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
30501
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30502
at_status=$? at_failed=false
 
30503
$at_check_filter
 
30504
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30505
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30506
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:47"
 
30507
$at_failed && at_fn_log_failure  \
 
30508
"ovsdb-server.log" \
 
30509
"ovs-vswitchd.log"
 
30510
$at_traceon; }
 
30511
 
 
30512
 
 
30513
cat >flows.txt <<'_ATEOF'
 
30514
in_port=1 actions=resubmit:2,resubmit:3,resubmit:4,resubmit:5,resubmit:6,resubmit:7
 
30515
in_port=2 actions=output:9
 
30516
in_port=3 actions=load:55->NXM_NX_REG0[],output:NXM_NX_REG0[],load:66->NXM_NX_REG1[]
 
30517
in_port=4 actions=output:10,output:NXM_NX_REG0[],output:NXM_NX_REG1[],output:11
 
30518
in_port=5 actions=load:77->NXM_NX_REG0[0..15],load:88->NXM_NX_REG0[16..31]
 
30519
in_port=6 actions=output:NXM_NX_REG0[0..15],output:NXM_NX_REG0[16..31]
 
30520
in_port=7 actions=load:0x110000ff->NXM_NX_REG0[],output:NXM_NX_REG0[]
 
30521
_ATEOF
 
30522
 
 
30523
{ set +x
 
30524
$as_echo "$at_srcdir/ofproto-dpif.at:57: ovs-ofctl add-flows br0 flows.txt"
 
30525
at_fn_check_prepare_trace "ofproto-dpif.at:57"
 
30526
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
30527
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30528
at_status=$? at_failed=false
 
30529
$at_check_filter
 
30530
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30531
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30532
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:57"
 
30533
$at_failed && at_fn_log_failure  \
 
30534
"ovsdb-server.log" \
 
30535
"ovs-vswitchd.log"
 
30536
$at_traceon; }
 
30537
 
 
30538
{ set +x
 
30539
$as_echo "$at_srcdir/ofproto-dpif.at:58: ovs-appctl ofproto/trace br0 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'"
 
30540
at_fn_check_prepare_trace "ofproto-dpif.at:58"
 
30541
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'
 
30542
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30543
at_status=$? at_failed=false
 
30544
$at_check_filter
 
30545
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30546
echo stdout:; tee stdout <"$at_stdout"
 
30547
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:58"
 
30548
$at_failed && at_fn_log_failure  \
 
30549
"ovsdb-server.log" \
 
30550
"ovs-vswitchd.log"
 
30551
$at_traceon; }
 
30552
 
 
30553
{ set +x
 
30554
$as_echo "$at_srcdir/ofproto-dpif.at:59: tail -1 stdout"
 
30555
at_fn_check_prepare_trace "ofproto-dpif.at:59"
 
30556
( $at_check_trace; tail -1 stdout
 
30557
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30558
at_status=$? at_failed=false
 
30559
$at_check_filter
 
30560
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30561
echo >>"$at_stdout"; $as_echo "Datapath actions: 9,55,10,55,66,11,77,88
 
30562
" | \
 
30563
  $at_diff - "$at_stdout" || at_failed=:
 
30564
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:59"
 
30565
$at_failed && at_fn_log_failure  \
 
30566
"ovsdb-server.log" \
 
30567
"ovs-vswitchd.log"
 
30568
$at_traceon; }
 
30569
 
 
30570
{ set +x
 
30571
$as_echo "$at_srcdir/ofproto-dpif.at:62: ovs-appctl -t ovs-vswitchd exit"
 
30572
at_fn_check_prepare_trace "ofproto-dpif.at:62"
 
30573
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
30574
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30575
at_status=$? at_failed=false
 
30576
$at_check_filter
 
30577
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30578
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30579
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:62"
 
30580
$at_failed && at_fn_log_failure  \
 
30581
"ovsdb-server.log" \
 
30582
"ovs-vswitchd.log"
 
30583
$at_traceon; }
 
30584
 
 
30585
   { set +x
 
30586
$as_echo "$at_srcdir/ofproto-dpif.at:62: ovs-appctl -t ovsdb-server exit"
 
30587
at_fn_check_prepare_trace "ofproto-dpif.at:62"
 
30588
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
30589
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30590
at_status=$? at_failed=false
 
30591
$at_check_filter
 
30592
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30593
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30594
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:62"
 
30595
$at_failed && at_fn_log_failure  \
 
30596
"ovsdb-server.log" \
 
30597
"ovs-vswitchd.log"
 
30598
$at_traceon; }
 
30599
 
 
30600
   trap '' 0
 
30601
  set +x
 
30602
  $at_times_p && times >"$at_times_file"
 
30603
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
30604
read at_status <"$at_status_file"
 
30605
#AT_STOP_388
 
30606
#AT_START_389
 
30607
at_fn_group_banner 389 'ofproto-dpif.at:65' \
 
30608
  "ofproto-dpif - DSCP" "                            " 34
 
30609
at_xfail=no
 
30610
(
 
30611
  $as_echo "389. $at_setup_line: testing $at_desc ..."
 
30612
  $at_traceon
 
30613
 
 
30614
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
30615
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
30616
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
30617
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
30618
 
 
30619
      mkdir openvswitch
 
30620
   touch openvswitch/.conf.db.~lock~
 
30621
   { set +x
 
30622
$as_echo "$at_srcdir/ofproto-dpif.at:67: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
30623
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:67"
 
30624
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
30625
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30626
at_status=$? at_failed=false
 
30627
$at_check_filter
 
30628
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30629
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30630
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:67"
 
30631
$at_failed && at_fn_log_failure
 
30632
$at_traceon; }
 
30633
 
 
30634
 
 
30635
      { set +x
 
30636
$as_echo "$at_srcdir/ofproto-dpif.at:67: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
30637
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:67"
 
30638
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
30639
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30640
at_status=$? at_failed=false
 
30641
$at_check_filter
 
30642
echo stderr:; tee stderr <"$at_stderr"
 
30643
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30644
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:67"
 
30645
$at_failed && at_fn_log_failure
 
30646
$at_traceon; }
 
30647
 
 
30648
   { set +x
 
30649
$as_echo "$at_srcdir/ofproto-dpif.at:67: sed < stderr '/vlog|INFO|opened log file/d'"
 
30650
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:67"
 
30651
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
30652
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30653
at_status=$? at_failed=false
 
30654
$at_check_filter
 
30655
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30656
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30657
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:67"
 
30658
$at_failed && at_fn_log_failure
 
30659
$at_traceon; }
 
30660
 
 
30661
 
 
30662
 
 
30663
      { set +x
 
30664
$as_echo "$at_srcdir/ofproto-dpif.at:67: ovs-vsctl --no-wait init"
 
30665
at_fn_check_prepare_trace "ofproto-dpif.at:67"
 
30666
( $at_check_trace; ovs-vsctl --no-wait init
 
30667
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30668
at_status=$? at_failed=false
 
30669
$at_check_filter
 
30670
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30671
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30672
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:67"
 
30673
$at_failed && at_fn_log_failure  \
 
30674
"ovsdb-server.log"
 
30675
$at_traceon; }
 
30676
 
 
30677
 
 
30678
      { set +x
 
30679
$as_echo "$at_srcdir/ofproto-dpif.at:67: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
30680
at_fn_check_prepare_trace "ofproto-dpif.at:67"
 
30681
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
30682
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30683
at_status=$? at_failed=false
 
30684
$at_check_filter
 
30685
echo stderr:; tee stderr <"$at_stderr"
 
30686
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30687
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:67"
 
30688
$at_failed && at_fn_log_failure  \
 
30689
"ovsdb-server.log"
 
30690
$at_traceon; }
 
30691
 
 
30692
 
 
30693
   { set +x
 
30694
$as_echo "$at_srcdir/ofproto-dpif.at:67: sed < stderr '
 
30695
/vlog|INFO|opened log file/d
 
30696
/reconnect|INFO|/d
 
30697
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30698
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30699
/ofproto|INFO|using datapath ID/d
 
30700
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
30701
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:67"
 
30702
( $at_check_trace; sed < stderr '
 
30703
/vlog|INFO|opened log file/d
 
30704
/reconnect|INFO|/d
 
30705
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30706
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30707
/ofproto|INFO|using datapath ID/d
 
30708
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
30709
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30710
at_status=$? at_failed=false
 
30711
$at_check_filter
 
30712
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30713
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30714
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:67"
 
30715
$at_failed && at_fn_log_failure  \
 
30716
"ovsdb-server.log" \
 
30717
"ovs-vswitchd.log"
 
30718
$at_traceon; }
 
30719
 
 
30720
 
 
30721
      { set +x
 
30722
$as_echo "$at_srcdir/ofproto-dpif.at:67: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- add-port br0 p1 -- set Interface p1 type=dummy"
 
30723
at_fn_check_prepare_trace "ofproto-dpif.at:67"
 
30724
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- add-port br0 p1 -- set Interface p1 type=dummy
 
30725
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30726
at_status=$? at_failed=false
 
30727
$at_check_filter
 
30728
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30729
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30730
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:67"
 
30731
$at_failed && at_fn_log_failure  \
 
30732
"ovsdb-server.log" \
 
30733
"ovs-vswitchd.log"
 
30734
$at_traceon; }
 
30735
 
 
30736
 
 
30737
cat >flows.txt <<'_ATEOF'
 
30738
actions=output:65534,enqueue:1:1,enqueue:1:2,enqueue:1:2,enqueue:1:1,output:1,mod_nw_tos:0,output:1,output:65534
 
30739
_ATEOF
 
30740
 
 
30741
{ set +x
 
30742
$as_echo "$at_srcdir/ofproto-dpif.at:71: ovs-ofctl add-flows br0 flows.txt"
 
30743
at_fn_check_prepare_trace "ofproto-dpif.at:71"
 
30744
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
30745
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30746
at_status=$? at_failed=false
 
30747
$at_check_filter
 
30748
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30749
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30750
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:71"
 
30751
$at_failed && at_fn_log_failure  \
 
30752
"ovsdb-server.log" \
 
30753
"ovs-vswitchd.log"
 
30754
$at_traceon; }
 
30755
 
 
30756
{ set +x
 
30757
$as_echo "$at_srcdir/ofproto-dpif.at:72: ovs-vsctl -- \\
 
30758
        set Port p1 qos=@newqos --\\
 
30759
        --id=@newqos create QoS type=linux-htb queues=1=@q1,2=@q2 --\\
 
30760
        --id=@q1 create Queue dscp=1 --\\
 
30761
        --id=@q2 create Queue dscp=2"
 
30762
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:72"
 
30763
( $at_check_trace; ovs-vsctl -- \
 
30764
        set Port p1 qos=@newqos --\
 
30765
        --id=@newqos create QoS type=linux-htb queues=1=@q1,2=@q2 --\
 
30766
        --id=@q1 create Queue dscp=1 --\
 
30767
        --id=@q2 create Queue dscp=2
 
30768
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30769
at_status=$? at_failed=false
 
30770
$at_check_filter
 
30771
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30772
echo stdout:; cat "$at_stdout"
 
30773
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:72"
 
30774
$at_failed && at_fn_log_failure  \
 
30775
"ovsdb-server.log" \
 
30776
"ovs-vswitchd.log"
 
30777
$at_traceon; }
 
30778
 
 
30779
{ set +x
 
30780
$as_echo "$at_srcdir/ofproto-dpif.at:77: ovs-appctl ofproto/trace br0 'in_port(9),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=1.1.1.1,dst=2.2.2.2,proto=1,tos=0xff,ttl=128,frag=no),icmp(type=8,code=0)'"
 
30781
at_fn_check_prepare_trace "ofproto-dpif.at:77"
 
30782
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(9),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=1.1.1.1,dst=2.2.2.2,proto=1,tos=0xff,ttl=128,frag=no),icmp(type=8,code=0)'
 
30783
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30784
at_status=$? at_failed=false
 
30785
$at_check_filter
 
30786
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30787
echo stdout:; tee stdout <"$at_stdout"
 
30788
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:77"
 
30789
$at_failed && at_fn_log_failure  \
 
30790
"ovsdb-server.log" \
 
30791
"ovs-vswitchd.log"
 
30792
$at_traceon; }
 
30793
 
 
30794
{ set +x
 
30795
$as_echo "$at_srcdir/ofproto-dpif.at:78: tail -1 stdout"
 
30796
at_fn_check_prepare_trace "ofproto-dpif.at:78"
 
30797
( $at_check_trace; tail -1 stdout
 
30798
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30799
at_status=$? at_failed=false
 
30800
$at_check_filter
 
30801
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30802
echo >>"$at_stdout"; $as_echo "Datapath actions: 0,set(ipv4(src=1.1.1.1,dst=2.2.2.2,proto=1,tos=0x7,ttl=128,frag=no)),set(priority(1)),1,set(ipv4(src=1.1.1.1,dst=2.2.2.2,proto=1,tos=0xb,ttl=128,frag=no)),set(priority(2)),1,1,set(ipv4(src=1.1.1.1,dst=2.2.2.2,proto=1,tos=0x7,ttl=128,frag=no)),set(priority(1)),1,set(ipv4(src=1.1.1.1,dst=2.2.2.2,proto=1,tos=0xff,ttl=128,frag=no)),set(priority(0)),1,set(ipv4(src=1.1.1.1,dst=2.2.2.2,proto=1,tos=0x3,ttl=128,frag=no)),1,0
 
30803
" | \
 
30804
  $at_diff - "$at_stdout" || at_failed=:
 
30805
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:78"
 
30806
$at_failed && at_fn_log_failure  \
 
30807
"ovsdb-server.log" \
 
30808
"ovs-vswitchd.log"
 
30809
$at_traceon; }
 
30810
 
 
30811
{ set +x
 
30812
$as_echo "$at_srcdir/ofproto-dpif.at:89: ovs-appctl -t ovs-vswitchd exit"
 
30813
at_fn_check_prepare_trace "ofproto-dpif.at:89"
 
30814
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
30815
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30816
at_status=$? at_failed=false
 
30817
$at_check_filter
 
30818
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30819
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30820
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:89"
 
30821
$at_failed && at_fn_log_failure  \
 
30822
"ovsdb-server.log" \
 
30823
"ovs-vswitchd.log"
 
30824
$at_traceon; }
 
30825
 
 
30826
   { set +x
 
30827
$as_echo "$at_srcdir/ofproto-dpif.at:89: ovs-appctl -t ovsdb-server exit"
 
30828
at_fn_check_prepare_trace "ofproto-dpif.at:89"
 
30829
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
30830
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30831
at_status=$? at_failed=false
 
30832
$at_check_filter
 
30833
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30834
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30835
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:89"
 
30836
$at_failed && at_fn_log_failure  \
 
30837
"ovsdb-server.log" \
 
30838
"ovs-vswitchd.log"
 
30839
$at_traceon; }
 
30840
 
 
30841
   trap '' 0
 
30842
  set +x
 
30843
  $at_times_p && times >"$at_times_file"
 
30844
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
30845
read at_status <"$at_status_file"
 
30846
#AT_STOP_389
 
30847
#AT_START_390
 
30848
at_fn_group_banner 390 'ofproto-dpif.at:92' \
 
30849
  "ofproto-dpif - output/flood flags" "              " 34
 
30850
at_xfail=no
 
30851
(
 
30852
  $as_echo "390. $at_setup_line: testing $at_desc ..."
 
30853
  $at_traceon
 
30854
 
 
30855
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
30856
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
30857
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
30858
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
30859
 
 
30860
      mkdir openvswitch
 
30861
   touch openvswitch/.conf.db.~lock~
 
30862
   { set +x
 
30863
$as_echo "$at_srcdir/ofproto-dpif.at:98: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
30864
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:98"
 
30865
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
30866
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30867
at_status=$? at_failed=false
 
30868
$at_check_filter
 
30869
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30870
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30871
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:98"
 
30872
$at_failed && at_fn_log_failure
 
30873
$at_traceon; }
 
30874
 
 
30875
 
 
30876
      { set +x
 
30877
$as_echo "$at_srcdir/ofproto-dpif.at:98: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
30878
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:98"
 
30879
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
30880
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30881
at_status=$? at_failed=false
 
30882
$at_check_filter
 
30883
echo stderr:; tee stderr <"$at_stderr"
 
30884
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30885
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:98"
 
30886
$at_failed && at_fn_log_failure
 
30887
$at_traceon; }
 
30888
 
 
30889
   { set +x
 
30890
$as_echo "$at_srcdir/ofproto-dpif.at:98: sed < stderr '/vlog|INFO|opened log file/d'"
 
30891
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:98"
 
30892
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
30893
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30894
at_status=$? at_failed=false
 
30895
$at_check_filter
 
30896
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30897
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30898
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:98"
 
30899
$at_failed && at_fn_log_failure
 
30900
$at_traceon; }
 
30901
 
 
30902
 
 
30903
 
 
30904
      { set +x
 
30905
$as_echo "$at_srcdir/ofproto-dpif.at:98: ovs-vsctl --no-wait init"
 
30906
at_fn_check_prepare_trace "ofproto-dpif.at:98"
 
30907
( $at_check_trace; ovs-vsctl --no-wait init
 
30908
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30909
at_status=$? at_failed=false
 
30910
$at_check_filter
 
30911
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30912
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30913
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:98"
 
30914
$at_failed && at_fn_log_failure  \
 
30915
"ovsdb-server.log"
 
30916
$at_traceon; }
 
30917
 
 
30918
 
 
30919
      { set +x
 
30920
$as_echo "$at_srcdir/ofproto-dpif.at:98: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
30921
at_fn_check_prepare_trace "ofproto-dpif.at:98"
 
30922
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
30923
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30924
at_status=$? at_failed=false
 
30925
$at_check_filter
 
30926
echo stderr:; tee stderr <"$at_stderr"
 
30927
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30928
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:98"
 
30929
$at_failed && at_fn_log_failure  \
 
30930
"ovsdb-server.log"
 
30931
$at_traceon; }
 
30932
 
 
30933
 
 
30934
   { set +x
 
30935
$as_echo "$at_srcdir/ofproto-dpif.at:98: sed < stderr '
 
30936
/vlog|INFO|opened log file/d
 
30937
/reconnect|INFO|/d
 
30938
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30939
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30940
/ofproto|INFO|using datapath ID/d
 
30941
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
30942
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:98"
 
30943
( $at_check_trace; sed < stderr '
 
30944
/vlog|INFO|opened log file/d
 
30945
/reconnect|INFO|/d
 
30946
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
30947
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
30948
/ofproto|INFO|using datapath ID/d
 
30949
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
30950
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30951
at_status=$? at_failed=false
 
30952
$at_check_filter
 
30953
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30954
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30955
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:98"
 
30956
$at_failed && at_fn_log_failure  \
 
30957
"ovsdb-server.log" \
 
30958
"ovs-vswitchd.log"
 
30959
$at_traceon; }
 
30960
 
 
30961
 
 
30962
      { set +x
 
30963
$as_echo "$at_srcdir/ofproto-dpif.at:98: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --         add-port br0 p1 -- set Interface p1 type=dummy --\\
 
30964
        add-port br0 p2 -- set Interface p2 type=dummy --\\
 
30965
        add-port br0 p3 -- set Interface p3 type=dummy --\\
 
30966
        add-port br0 p4 -- set Interface p4 type=dummy --\\
 
30967
        add-port br0 p5 -- set Interface p5 type=dummy --\\
 
30968
        add-port br0 p6 -- set Interface p6 type=dummy --\\
 
30969
        add-port br0 p7 -- set Interface p7 type=dummy "
 
30970
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:98"
 
30971
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --         add-port br0 p1 -- set Interface p1 type=dummy --\
 
30972
        add-port br0 p2 -- set Interface p2 type=dummy --\
 
30973
        add-port br0 p3 -- set Interface p3 type=dummy --\
 
30974
        add-port br0 p4 -- set Interface p4 type=dummy --\
 
30975
        add-port br0 p5 -- set Interface p5 type=dummy --\
 
30976
        add-port br0 p6 -- set Interface p6 type=dummy --\
 
30977
        add-port br0 p7 -- set Interface p7 type=dummy
 
30978
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
30979
at_status=$? at_failed=false
 
30980
$at_check_filter
 
30981
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
30982
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
30983
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:98"
 
30984
$at_failed && at_fn_log_failure  \
 
30985
"ovsdb-server.log" \
 
30986
"ovs-vswitchd.log"
 
30987
$at_traceon; }
 
30988
 
 
30989
 
 
30990
 
 
30991
cat >flows.txt <<'_ATEOF'
 
30992
in_port=local actions=local,flood
 
30993
in_port=1 actions=flood
 
30994
in_port=2 actions=all
 
30995
in_port=3 actions=output:65534,output:1,output:2,output:3,output:4,output:5,output:6,output:7
 
30996
in_port=4 actions=enqueue:65534:1,enqueue:1:1,enqueue:2:1,enqueue:3:2,enqueue:4:1,enqueue:5:1,enqueue:6:1,enqueue:7:1
 
30997
_ATEOF
 
30998
 
 
30999
{ set +x
 
31000
$as_echo "$at_srcdir/ofproto-dpif.at:114: ovs-ofctl add-flows br0 flows.txt"
 
31001
at_fn_check_prepare_trace "ofproto-dpif.at:114"
 
31002
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
31003
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31004
at_status=$? at_failed=false
 
31005
$at_check_filter
 
31006
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31007
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31008
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:114"
 
31009
$at_failed && at_fn_log_failure  \
 
31010
"ovsdb-server.log" \
 
31011
"ovs-vswitchd.log"
 
31012
$at_traceon; }
 
31013
 
 
31014
{ set +x
 
31015
$as_echo "$at_srcdir/ofproto-dpif.at:115: ovs-ofctl mod-port br0 5 noforward"
 
31016
at_fn_check_prepare_trace "ofproto-dpif.at:115"
 
31017
( $at_check_trace; ovs-ofctl mod-port br0 5 noforward
 
31018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31019
at_status=$? at_failed=false
 
31020
$at_check_filter
 
31021
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31022
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31023
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:115"
 
31024
$at_failed && at_fn_log_failure  \
 
31025
"ovsdb-server.log" \
 
31026
"ovs-vswitchd.log"
 
31027
$at_traceon; }
 
31028
 
 
31029
{ set +x
 
31030
$as_echo "$at_srcdir/ofproto-dpif.at:116: ovs-ofctl mod-port br0 6 noflood"
 
31031
at_fn_check_prepare_trace "ofproto-dpif.at:116"
 
31032
( $at_check_trace; ovs-ofctl mod-port br0 6 noflood
 
31033
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31034
at_status=$? at_failed=false
 
31035
$at_check_filter
 
31036
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31037
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31038
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:116"
 
31039
$at_failed && at_fn_log_failure  \
 
31040
"ovsdb-server.log" \
 
31041
"ovs-vswitchd.log"
 
31042
$at_traceon; }
 
31043
 
 
31044
 
 
31045
{ set +x
 
31046
$as_echo "$at_srcdir/ofproto-dpif.at:118: ovs-appctl ofproto/trace br0 'in_port(0),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'"
 
31047
at_fn_check_prepare_trace "ofproto-dpif.at:118"
 
31048
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(0),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'
 
31049
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31050
at_status=$? at_failed=false
 
31051
$at_check_filter
 
31052
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31053
echo stdout:; tee stdout <"$at_stdout"
 
31054
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:118"
 
31055
$at_failed && at_fn_log_failure  \
 
31056
"ovsdb-server.log" \
 
31057
"ovs-vswitchd.log"
 
31058
$at_traceon; }
 
31059
 
 
31060
{ set +x
 
31061
$as_echo "$at_srcdir/ofproto-dpif.at:119: tail -1 stdout \\
 
31062
| sed -e 's/Datapath actions: //' | tr ',' '\\n' | sort"
 
31063
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:119"
 
31064
( $at_check_trace; tail -1 stdout \
 
31065
| sed -e 's/Datapath actions: //' | tr ',' '\n' | sort
 
31066
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31067
at_status=$? at_failed=false
 
31068
$at_check_filter
 
31069
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31070
echo >>"$at_stdout"; $as_echo "1
 
31071
2
 
31072
3
 
31073
4
 
31074
7
 
31075
" | \
 
31076
  $at_diff - "$at_stdout" || at_failed=:
 
31077
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:119"
 
31078
$at_failed && at_fn_log_failure  \
 
31079
"ovsdb-server.log" \
 
31080
"ovs-vswitchd.log"
 
31081
$at_traceon; }
 
31082
 
 
31083
 
 
31084
{ set +x
 
31085
$as_echo "$at_srcdir/ofproto-dpif.at:128: ovs-appctl ofproto/trace br0 'in_port(1),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'"
 
31086
at_fn_check_prepare_trace "ofproto-dpif.at:128"
 
31087
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(1),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'
 
31088
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31089
at_status=$? at_failed=false
 
31090
$at_check_filter
 
31091
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31092
echo stdout:; tee stdout <"$at_stdout"
 
31093
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:128"
 
31094
$at_failed && at_fn_log_failure  \
 
31095
"ovsdb-server.log" \
 
31096
"ovs-vswitchd.log"
 
31097
$at_traceon; }
 
31098
 
 
31099
{ set +x
 
31100
$as_echo "$at_srcdir/ofproto-dpif.at:129: tail -1 stdout \\
 
31101
| sed -e 's/Datapath actions: //' | tr ',' '\\n' | sort"
 
31102
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:129"
 
31103
( $at_check_trace; tail -1 stdout \
 
31104
| sed -e 's/Datapath actions: //' | tr ',' '\n' | sort
 
31105
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31106
at_status=$? at_failed=false
 
31107
$at_check_filter
 
31108
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31109
echo >>"$at_stdout"; $as_echo "0
 
31110
2
 
31111
3
 
31112
4
 
31113
7
 
31114
" | \
 
31115
  $at_diff - "$at_stdout" || at_failed=:
 
31116
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:129"
 
31117
$at_failed && at_fn_log_failure  \
 
31118
"ovsdb-server.log" \
 
31119
"ovs-vswitchd.log"
 
31120
$at_traceon; }
 
31121
 
 
31122
 
 
31123
{ set +x
 
31124
$as_echo "$at_srcdir/ofproto-dpif.at:138: ovs-appctl ofproto/trace br0 'in_port(2),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'"
 
31125
at_fn_check_prepare_trace "ofproto-dpif.at:138"
 
31126
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(2),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'
 
31127
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31128
at_status=$? at_failed=false
 
31129
$at_check_filter
 
31130
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31131
echo stdout:; tee stdout <"$at_stdout"
 
31132
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:138"
 
31133
$at_failed && at_fn_log_failure  \
 
31134
"ovsdb-server.log" \
 
31135
"ovs-vswitchd.log"
 
31136
$at_traceon; }
 
31137
 
 
31138
{ set +x
 
31139
$as_echo "$at_srcdir/ofproto-dpif.at:139: tail -1 stdout \\
 
31140
| sed -e 's/Datapath actions: //' | tr ',' '\\n' | sort"
 
31141
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:139"
 
31142
( $at_check_trace; tail -1 stdout \
 
31143
| sed -e 's/Datapath actions: //' | tr ',' '\n' | sort
 
31144
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31145
at_status=$? at_failed=false
 
31146
$at_check_filter
 
31147
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31148
echo >>"$at_stdout"; $as_echo "0
 
31149
1
 
31150
3
 
31151
4
 
31152
6
 
31153
7
 
31154
" | \
 
31155
  $at_diff - "$at_stdout" || at_failed=:
 
31156
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:139"
 
31157
$at_failed && at_fn_log_failure  \
 
31158
"ovsdb-server.log" \
 
31159
"ovs-vswitchd.log"
 
31160
$at_traceon; }
 
31161
 
 
31162
 
 
31163
{ set +x
 
31164
$as_echo "$at_srcdir/ofproto-dpif.at:149: ovs-appctl ofproto/trace br0 'in_port(3),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'"
 
31165
at_fn_check_prepare_trace "ofproto-dpif.at:149"
 
31166
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(3),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'
 
31167
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31168
at_status=$? at_failed=false
 
31169
$at_check_filter
 
31170
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31171
echo stdout:; tee stdout <"$at_stdout"
 
31172
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:149"
 
31173
$at_failed && at_fn_log_failure  \
 
31174
"ovsdb-server.log" \
 
31175
"ovs-vswitchd.log"
 
31176
$at_traceon; }
 
31177
 
 
31178
{ set +x
 
31179
$as_echo "$at_srcdir/ofproto-dpif.at:150: tail -1 stdout"
 
31180
at_fn_check_prepare_trace "ofproto-dpif.at:150"
 
31181
( $at_check_trace; tail -1 stdout
 
31182
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31183
at_status=$? at_failed=false
 
31184
$at_check_filter
 
31185
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31186
echo >>"$at_stdout"; $as_echo "Datapath actions: 0,1,2,4,6,7
 
31187
" | \
 
31188
  $at_diff - "$at_stdout" || at_failed=:
 
31189
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:150"
 
31190
$at_failed && at_fn_log_failure  \
 
31191
"ovsdb-server.log" \
 
31192
"ovs-vswitchd.log"
 
31193
$at_traceon; }
 
31194
 
 
31195
 
 
31196
{ set +x
 
31197
$as_echo "$at_srcdir/ofproto-dpif.at:154: ovs-appctl ofproto/trace br0 'in_port(4),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'"
 
31198
at_fn_check_prepare_trace "ofproto-dpif.at:154"
 
31199
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(4),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0900)'
 
31200
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31201
at_status=$? at_failed=false
 
31202
$at_check_filter
 
31203
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31204
echo stdout:; tee stdout <"$at_stdout"
 
31205
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:154"
 
31206
$at_failed && at_fn_log_failure  \
 
31207
"ovsdb-server.log" \
 
31208
"ovs-vswitchd.log"
 
31209
$at_traceon; }
 
31210
 
 
31211
{ set +x
 
31212
$as_echo "$at_srcdir/ofproto-dpif.at:155: tail -1 stdout"
 
31213
at_fn_check_prepare_trace "ofproto-dpif.at:155"
 
31214
( $at_check_trace; tail -1 stdout
 
31215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31216
at_status=$? at_failed=false
 
31217
$at_check_filter
 
31218
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31219
echo >>"$at_stdout"; $as_echo "Datapath actions: set(priority(1)),0,1,2,set(priority(2)),3,set(priority(1)),6,7
 
31220
" | \
 
31221
  $at_diff - "$at_stdout" || at_failed=:
 
31222
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:155"
 
31223
$at_failed && at_fn_log_failure  \
 
31224
"ovsdb-server.log" \
 
31225
"ovs-vswitchd.log"
 
31226
$at_traceon; }
 
31227
 
 
31228
{ set +x
 
31229
$as_echo "$at_srcdir/ofproto-dpif.at:158: ovs-appctl -t ovs-vswitchd exit"
 
31230
at_fn_check_prepare_trace "ofproto-dpif.at:158"
 
31231
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
31232
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31233
at_status=$? at_failed=false
 
31234
$at_check_filter
 
31235
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31236
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31237
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:158"
 
31238
$at_failed && at_fn_log_failure  \
 
31239
"ovsdb-server.log" \
 
31240
"ovs-vswitchd.log"
 
31241
$at_traceon; }
 
31242
 
 
31243
   { set +x
 
31244
$as_echo "$at_srcdir/ofproto-dpif.at:158: ovs-appctl -t ovsdb-server exit"
 
31245
at_fn_check_prepare_trace "ofproto-dpif.at:158"
 
31246
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
31247
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31248
at_status=$? at_failed=false
 
31249
$at_check_filter
 
31250
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31251
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31252
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:158"
 
31253
$at_failed && at_fn_log_failure  \
 
31254
"ovsdb-server.log" \
 
31255
"ovs-vswitchd.log"
 
31256
$at_traceon; }
 
31257
 
 
31258
   trap '' 0
 
31259
  set +x
 
31260
  $at_times_p && times >"$at_times_file"
 
31261
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
31262
read at_status <"$at_status_file"
 
31263
#AT_STOP_390
 
31264
#AT_START_391
 
31265
at_fn_group_banner 391 'ofproto-dpif.at:161' \
 
31266
  "ofproto-dpif - set_tunnel" "                      " 34
 
31267
at_xfail=no
 
31268
(
 
31269
  $as_echo "391. $at_setup_line: testing $at_desc ..."
 
31270
  $at_traceon
 
31271
 
 
31272
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
31273
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
31274
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
31275
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
31276
 
 
31277
      mkdir openvswitch
 
31278
   touch openvswitch/.conf.db.~lock~
 
31279
   { set +x
 
31280
$as_echo "$at_srcdir/ofproto-dpif.at:162: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
31281
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:162"
 
31282
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
31283
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31284
at_status=$? at_failed=false
 
31285
$at_check_filter
 
31286
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31287
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31288
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:162"
 
31289
$at_failed && at_fn_log_failure
 
31290
$at_traceon; }
 
31291
 
 
31292
 
 
31293
      { set +x
 
31294
$as_echo "$at_srcdir/ofproto-dpif.at:162: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
31295
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:162"
 
31296
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
31297
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31298
at_status=$? at_failed=false
 
31299
$at_check_filter
 
31300
echo stderr:; tee stderr <"$at_stderr"
 
31301
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31302
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:162"
 
31303
$at_failed && at_fn_log_failure
 
31304
$at_traceon; }
 
31305
 
 
31306
   { set +x
 
31307
$as_echo "$at_srcdir/ofproto-dpif.at:162: sed < stderr '/vlog|INFO|opened log file/d'"
 
31308
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:162"
 
31309
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
31310
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31311
at_status=$? at_failed=false
 
31312
$at_check_filter
 
31313
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31314
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31315
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:162"
 
31316
$at_failed && at_fn_log_failure
 
31317
$at_traceon; }
 
31318
 
 
31319
 
 
31320
 
 
31321
      { set +x
 
31322
$as_echo "$at_srcdir/ofproto-dpif.at:162: ovs-vsctl --no-wait init"
 
31323
at_fn_check_prepare_trace "ofproto-dpif.at:162"
 
31324
( $at_check_trace; ovs-vsctl --no-wait init
 
31325
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31326
at_status=$? at_failed=false
 
31327
$at_check_filter
 
31328
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31329
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31330
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:162"
 
31331
$at_failed && at_fn_log_failure  \
 
31332
"ovsdb-server.log"
 
31333
$at_traceon; }
 
31334
 
 
31335
 
 
31336
      { set +x
 
31337
$as_echo "$at_srcdir/ofproto-dpif.at:162: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
31338
at_fn_check_prepare_trace "ofproto-dpif.at:162"
 
31339
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
31340
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31341
at_status=$? at_failed=false
 
31342
$at_check_filter
 
31343
echo stderr:; tee stderr <"$at_stderr"
 
31344
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31345
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:162"
 
31346
$at_failed && at_fn_log_failure  \
 
31347
"ovsdb-server.log"
 
31348
$at_traceon; }
 
31349
 
 
31350
 
 
31351
   { set +x
 
31352
$as_echo "$at_srcdir/ofproto-dpif.at:162: sed < stderr '
 
31353
/vlog|INFO|opened log file/d
 
31354
/reconnect|INFO|/d
 
31355
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
31356
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
31357
/ofproto|INFO|using datapath ID/d
 
31358
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
31359
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:162"
 
31360
( $at_check_trace; sed < stderr '
 
31361
/vlog|INFO|opened log file/d
 
31362
/reconnect|INFO|/d
 
31363
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
31364
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
31365
/ofproto|INFO|using datapath ID/d
 
31366
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
31367
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31368
at_status=$? at_failed=false
 
31369
$at_check_filter
 
31370
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31371
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31372
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:162"
 
31373
$at_failed && at_fn_log_failure  \
 
31374
"ovsdb-server.log" \
 
31375
"ovs-vswitchd.log"
 
31376
$at_traceon; }
 
31377
 
 
31378
 
 
31379
      { set +x
 
31380
$as_echo "$at_srcdir/ofproto-dpif.at:162: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
31381
at_fn_check_prepare_trace "ofproto-dpif.at:162"
 
31382
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
31383
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31384
at_status=$? at_failed=false
 
31385
$at_check_filter
 
31386
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31387
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31388
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:162"
 
31389
$at_failed && at_fn_log_failure  \
 
31390
"ovsdb-server.log" \
 
31391
"ovs-vswitchd.log"
 
31392
$at_traceon; }
 
31393
 
 
31394
 
 
31395
cat >flows.txt <<'_ATEOF'
 
31396
in_port=90 actions=resubmit:1,resubmit:2,resubmit:3,resubmit:4,resubmit:5
 
31397
in_port=1 actions=set_tunnel:1,output:1
 
31398
in_port=2 actions=set_tunnel:1,output:2
 
31399
in_port=3 actions=set_tunnel:2,set_tunnel:3,output:3
 
31400
in_port=4 actions=set_tunnel:4,set_tunnel:3,output:4
 
31401
in_port=5 actions=set_tunnel:5
 
31402
_ATEOF
 
31403
 
 
31404
{ set +x
 
31405
$as_echo "$at_srcdir/ofproto-dpif.at:171: ovs-ofctl add-flows br0 flows.txt"
 
31406
at_fn_check_prepare_trace "ofproto-dpif.at:171"
 
31407
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
31408
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31409
at_status=$? at_failed=false
 
31410
$at_check_filter
 
31411
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31412
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31413
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:171"
 
31414
$at_failed && at_fn_log_failure  \
 
31415
"ovsdb-server.log" \
 
31416
"ovs-vswitchd.log"
 
31417
$at_traceon; }
 
31418
 
 
31419
{ set +x
 
31420
$as_echo "$at_srcdir/ofproto-dpif.at:172: ovs-appctl ofproto/trace br0 'tun_id(0x1),in_port(90),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'"
 
31421
at_fn_check_prepare_trace "ofproto-dpif.at:172"
 
31422
( $at_check_trace; ovs-appctl ofproto/trace br0 'tun_id(0x1),in_port(90),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'
 
31423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31424
at_status=$? at_failed=false
 
31425
$at_check_filter
 
31426
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31427
echo stdout:; tee stdout <"$at_stdout"
 
31428
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:172"
 
31429
$at_failed && at_fn_log_failure  \
 
31430
"ovsdb-server.log" \
 
31431
"ovs-vswitchd.log"
 
31432
$at_traceon; }
 
31433
 
 
31434
{ set +x
 
31435
$as_echo "$at_srcdir/ofproto-dpif.at:173: tail -1 stdout"
 
31436
at_fn_check_prepare_trace "ofproto-dpif.at:173"
 
31437
( $at_check_trace; tail -1 stdout
 
31438
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31439
at_status=$? at_failed=false
 
31440
$at_check_filter
 
31441
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31442
echo >>"$at_stdout"; $as_echo "Datapath actions: set(tun_id(0x1)),1,2,set(tun_id(0x3)),3,4
 
31443
" | \
 
31444
  $at_diff - "$at_stdout" || at_failed=:
 
31445
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:173"
 
31446
$at_failed && at_fn_log_failure  \
 
31447
"ovsdb-server.log" \
 
31448
"ovs-vswitchd.log"
 
31449
$at_traceon; }
 
31450
 
 
31451
{ set +x
 
31452
$as_echo "$at_srcdir/ofproto-dpif.at:176: ovs-appctl -t ovs-vswitchd exit"
 
31453
at_fn_check_prepare_trace "ofproto-dpif.at:176"
 
31454
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
31455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31456
at_status=$? at_failed=false
 
31457
$at_check_filter
 
31458
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31459
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31460
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:176"
 
31461
$at_failed && at_fn_log_failure  \
 
31462
"ovsdb-server.log" \
 
31463
"ovs-vswitchd.log"
 
31464
$at_traceon; }
 
31465
 
 
31466
   { set +x
 
31467
$as_echo "$at_srcdir/ofproto-dpif.at:176: ovs-appctl -t ovsdb-server exit"
 
31468
at_fn_check_prepare_trace "ofproto-dpif.at:176"
 
31469
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
31470
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31471
at_status=$? at_failed=false
 
31472
$at_check_filter
 
31473
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31474
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31475
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:176"
 
31476
$at_failed && at_fn_log_failure  \
 
31477
"ovsdb-server.log" \
 
31478
"ovs-vswitchd.log"
 
31479
$at_traceon; }
 
31480
 
 
31481
   trap '' 0
 
31482
  set +x
 
31483
  $at_times_p && times >"$at_times_file"
 
31484
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
31485
read at_status <"$at_status_file"
 
31486
#AT_STOP_391
 
31487
#AT_START_392
 
31488
at_fn_group_banner 392 'ofproto-dpif.at:179' \
 
31489
  "ofproto-dpif - VLAN handling" "                   " 34
 
31490
at_xfail=no
 
31491
(
 
31492
  $as_echo "392. $at_setup_line: testing $at_desc ..."
 
31493
  $at_traceon
 
31494
 
 
31495
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
31496
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
31497
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
31498
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
31499
 
 
31500
      mkdir openvswitch
 
31501
   touch openvswitch/.conf.db.~lock~
 
31502
   { set +x
 
31503
$as_echo "$at_srcdir/ofproto-dpif.at:180: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
31504
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:180"
 
31505
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
31506
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31507
at_status=$? at_failed=false
 
31508
$at_check_filter
 
31509
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31510
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31511
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:180"
 
31512
$at_failed && at_fn_log_failure
 
31513
$at_traceon; }
 
31514
 
 
31515
 
 
31516
      { set +x
 
31517
$as_echo "$at_srcdir/ofproto-dpif.at:180: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
31518
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:180"
 
31519
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
31520
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31521
at_status=$? at_failed=false
 
31522
$at_check_filter
 
31523
echo stderr:; tee stderr <"$at_stderr"
 
31524
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31525
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:180"
 
31526
$at_failed && at_fn_log_failure
 
31527
$at_traceon; }
 
31528
 
 
31529
   { set +x
 
31530
$as_echo "$at_srcdir/ofproto-dpif.at:180: sed < stderr '/vlog|INFO|opened log file/d'"
 
31531
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:180"
 
31532
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
31533
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31534
at_status=$? at_failed=false
 
31535
$at_check_filter
 
31536
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31537
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31538
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:180"
 
31539
$at_failed && at_fn_log_failure
 
31540
$at_traceon; }
 
31541
 
 
31542
 
 
31543
 
 
31544
      { set +x
 
31545
$as_echo "$at_srcdir/ofproto-dpif.at:180: ovs-vsctl --no-wait init"
 
31546
at_fn_check_prepare_trace "ofproto-dpif.at:180"
 
31547
( $at_check_trace; ovs-vsctl --no-wait init
 
31548
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31549
at_status=$? at_failed=false
 
31550
$at_check_filter
 
31551
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31552
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31553
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:180"
 
31554
$at_failed && at_fn_log_failure  \
 
31555
"ovsdb-server.log"
 
31556
$at_traceon; }
 
31557
 
 
31558
 
 
31559
      { set +x
 
31560
$as_echo "$at_srcdir/ofproto-dpif.at:180: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
31561
at_fn_check_prepare_trace "ofproto-dpif.at:180"
 
31562
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
31563
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31564
at_status=$? at_failed=false
 
31565
$at_check_filter
 
31566
echo stderr:; tee stderr <"$at_stderr"
 
31567
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31568
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:180"
 
31569
$at_failed && at_fn_log_failure  \
 
31570
"ovsdb-server.log"
 
31571
$at_traceon; }
 
31572
 
 
31573
 
 
31574
   { set +x
 
31575
$as_echo "$at_srcdir/ofproto-dpif.at:180: sed < stderr '
 
31576
/vlog|INFO|opened log file/d
 
31577
/reconnect|INFO|/d
 
31578
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
31579
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
31580
/ofproto|INFO|using datapath ID/d
 
31581
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
31582
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:180"
 
31583
( $at_check_trace; sed < stderr '
 
31584
/vlog|INFO|opened log file/d
 
31585
/reconnect|INFO|/d
 
31586
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
31587
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
31588
/ofproto|INFO|using datapath ID/d
 
31589
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
31590
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31591
at_status=$? at_failed=false
 
31592
$at_check_filter
 
31593
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31594
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31595
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:180"
 
31596
$at_failed && at_fn_log_failure  \
 
31597
"ovsdb-server.log" \
 
31598
"ovs-vswitchd.log"
 
31599
$at_traceon; }
 
31600
 
 
31601
 
 
31602
      { set +x
 
31603
$as_echo "$at_srcdir/ofproto-dpif.at:180: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- set Bridge br0 fail-mode=standalone -- \\
 
31604
   add-port br0 p1                                  trunks=10,12 -- \\
 
31605
   add-port br0 p2                           tag=10              -- \\
 
31606
   add-port br0 p3                           tag=12              \\
 
31607
                   other-config:priority-tags=true               -- \\
 
31608
   add-port br0 p4                           tag=12              -- \\
 
31609
   add-port br0 p5 vlan_mode=native-tagged   tag=10              -- \\
 
31610
   add-port br0 p6 vlan_mode=native-tagged   tag=10 trunks=10,12 -- \\
 
31611
   add-port br0 p7 vlan_mode=native-untagged tag=12              -- \\
 
31612
   add-port br0 p8 vlan_mode=native-untagged tag=12 trunks=10,12 \\
 
31613
                   other-config:priority-tags=true               -- \\
 
31614
   set Interface p1 type=dummy -- \\
 
31615
   set Interface p2 type=dummy -- \\
 
31616
   set Interface p3 type=dummy -- \\
 
31617
   set Interface p4 type=dummy -- \\
 
31618
   set Interface p5 type=dummy -- \\
 
31619
   set Interface p6 type=dummy -- \\
 
31620
   set Interface p7 type=dummy -- \\
 
31621
   set Interface p8 type=dummy --"
 
31622
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:180"
 
31623
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- set Bridge br0 fail-mode=standalone -- \
 
31624
   add-port br0 p1                                  trunks=10,12 -- \
 
31625
   add-port br0 p2                           tag=10              -- \
 
31626
   add-port br0 p3                           tag=12              \
 
31627
                   other-config:priority-tags=true               -- \
 
31628
   add-port br0 p4                           tag=12              -- \
 
31629
   add-port br0 p5 vlan_mode=native-tagged   tag=10              -- \
 
31630
   add-port br0 p6 vlan_mode=native-tagged   tag=10 trunks=10,12 -- \
 
31631
   add-port br0 p7 vlan_mode=native-untagged tag=12              -- \
 
31632
   add-port br0 p8 vlan_mode=native-untagged tag=12 trunks=10,12 \
 
31633
                   other-config:priority-tags=true               -- \
 
31634
   set Interface p1 type=dummy -- \
 
31635
   set Interface p2 type=dummy -- \
 
31636
   set Interface p3 type=dummy -- \
 
31637
   set Interface p4 type=dummy -- \
 
31638
   set Interface p5 type=dummy -- \
 
31639
   set Interface p6 type=dummy -- \
 
31640
   set Interface p7 type=dummy -- \
 
31641
   set Interface p8 type=dummy --
 
31642
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31643
at_status=$? at_failed=false
 
31644
$at_check_filter
 
31645
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31646
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31647
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:180"
 
31648
$at_failed && at_fn_log_failure  \
 
31649
"ovsdb-server.log" \
 
31650
"ovs-vswitchd.log"
 
31651
$at_traceon; }
 
31652
 
 
31653
 
 
31654
 
 
31655
{ set +x
 
31656
$as_echo "$at_srcdir/ofproto-dpif.at:201: ovs-vsctl \\
 
31657
        -- get Interface p1 ofport \\
 
31658
        -- get Interface p2 ofport \\
 
31659
        -- get Interface p3 ofport \\
 
31660
        -- get Interface p4 ofport \\
 
31661
        -- get Interface p5 ofport \\
 
31662
        -- get Interface p6 ofport \\
 
31663
        -- get Interface p7 ofport \\
 
31664
        -- get Interface p8 ofport"
 
31665
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:201"
 
31666
( $at_check_trace; ovs-vsctl \
 
31667
        -- get Interface p1 ofport \
 
31668
        -- get Interface p2 ofport \
 
31669
        -- get Interface p3 ofport \
 
31670
        -- get Interface p4 ofport \
 
31671
        -- get Interface p5 ofport \
 
31672
        -- get Interface p6 ofport \
 
31673
        -- get Interface p7 ofport \
 
31674
        -- get Interface p8 ofport
 
31675
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31676
at_status=$? at_failed=false
 
31677
$at_check_filter
 
31678
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31679
echo stdout:; tee stdout <"$at_stdout"
 
31680
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:201"
 
31681
$at_failed && at_fn_log_failure  \
 
31682
"ovsdb-server.log" \
 
31683
"ovs-vswitchd.log"
 
31684
$at_traceon; }
 
31685
 
 
31686
set `cat stdout`
 
31687
br0=0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=$7 p8=$8
 
31688
 
 
31689
for tuple in \
 
31690
        "br0 none 0 drop" \
 
31691
        "br0 0    0 drop" \
 
31692
        "br0 0    1 drop" \
 
31693
        "br0 10   0 p1,p5,p6,p7,p8,pop_vlan,p2" \
 
31694
        "br0 10   1 p1,p5,p6,p7,p8,pop_vlan,p2" \
 
31695
        "br0 11   0 p5,p7" \
 
31696
        "br0 11   1 p5,p7" \
 
31697
        "br0 12   0 p1,p5,p6,pop_vlan,p3,p4,p7,p8" \
 
31698
        "br0 12   1 p1,p5,p6,pop_vlan,p4,p7,push_vlan(vid=0,pcp=1),p3,p8" \
 
31699
        "p1  none 0 drop" \
 
31700
        "p1  0    0 drop" \
 
31701
        "p1  0    1 drop" \
 
31702
        "p1  10   0 br0,p5,p6,p7,p8,pop_vlan,p2" \
 
31703
        "p1  10   1 br0,p5,p6,p7,p8,pop_vlan,p2" \
 
31704
        "p1  11   0 drop" \
 
31705
        "p1  11   1 drop" \
 
31706
        "p1  12   0 br0,p5,p6,pop_vlan,p3,p4,p7,p8" \
 
31707
        "p1  12   1 br0,p5,p6,pop_vlan,p4,p7,push_vlan(vid=0,pcp=1),p3,p8" \
 
31708
        "p2  none 0 push_vlan(vid=10,pcp=0),br0,p1,p5,p6,p7,p8" \
 
31709
        "p2  0    0 pop_vlan,push_vlan(vid=10,pcp=0),br0,p1,p5,p6,p7,p8" \
 
31710
        "p2  0    1 pop_vlan,push_vlan(vid=10,pcp=1),br0,p1,p5,p6,p7,p8" \
 
31711
        "p2  10   0 drop" \
 
31712
        "p2  10   1 drop" \
 
31713
        "p2  11   0 drop" \
 
31714
        "p2  11   1 drop" \
 
31715
        "p2  12   0 drop" \
 
31716
        "p2  12   1 drop" \
 
31717
        "p3  none 0 p4,p7,p8,push_vlan(vid=12,pcp=0),br0,p1,p5,p6" \
 
31718
        "p3  0    0 pop_vlan,p4,p7,p8,push_vlan(vid=12,pcp=0),br0,p1,p5,p6" \
 
31719
        "p3  0    1 p8,pop_vlan,p4,p7,push_vlan(vid=12,pcp=1),br0,p1,p5,p6" \
 
31720
        "p3  10   0 drop" \
 
31721
        "p3  10   1 drop" \
 
31722
        "p3  11   0 drop" \
 
31723
        "p3  11   1 drop" \
 
31724
        "p3  12   0 drop" \
 
31725
        "p3  12   1 drop" \
 
31726
        "p4  none 0 p3,p7,p8,push_vlan(vid=12,pcp=0),br0,p1,p5,p6" \
 
31727
        "p4  0    0 pop_vlan,p3,p7,p8,push_vlan(vid=12,pcp=0),br0,p1,p5,p6" \
 
31728
        "p4  0    1 p3,p8,pop_vlan,p7,push_vlan(vid=12,pcp=1),br0,p1,p5,p6" \
 
31729
        "p4  10   0 drop" \
 
31730
        "p4  10   1 drop" \
 
31731
        "p4  11   0 drop" \
 
31732
        "p4  11   1 drop" \
 
31733
        "p4  12   0 drop" \
 
31734
        "p4  12   1 drop" \
 
31735
        "p5  none 0 p2,push_vlan(vid=10,pcp=0),br0,p1,p6,p7,p8" \
 
31736
        "p5  0    0 pop_vlan,p2,push_vlan(vid=10,pcp=0),br0,p1,p6,p7,p8" \
 
31737
        "p5  0    1 pop_vlan,p2,push_vlan(vid=10,pcp=1),br0,p1,p6,p7,p8" \
 
31738
        "p5  10   0 br0,p1,p6,p7,p8,pop_vlan,p2" \
 
31739
        "p5  10   1 br0,p1,p6,p7,p8,pop_vlan,p2" \
 
31740
        "p5  11   0 br0,p7" \
 
31741
        "p5  11   1 br0,p7" \
 
31742
        "p5  12   0 br0,p1,p6,pop_vlan,p3,p4,p7,p8" \
 
31743
        "p5  12   1 br0,p1,p6,pop_vlan,p4,p7,push_vlan(vid=0,pcp=1),p3,p8" \
 
31744
        "p6  none 0 p2,push_vlan(vid=10,pcp=0),br0,p1,p5,p7,p8" \
 
31745
        "p6  0    0 pop_vlan,p2,push_vlan(vid=10,pcp=0),br0,p1,p5,p7,p8" \
 
31746
        "p6  0    1 pop_vlan,p2,push_vlan(vid=10,pcp=1),br0,p1,p5,p7,p8" \
 
31747
        "p6  10   0 br0,p1,p5,p7,p8,pop_vlan,p2" \
 
31748
        "p6  10   1 br0,p1,p5,p7,p8,pop_vlan,p2" \
 
31749
        "p6  11   0 drop" \
 
31750
        "p6  11   1 drop" \
 
31751
        "p6  12   0 br0,p1,p5,pop_vlan,p3,p4,p7,p8" \
 
31752
        "p6  12   1 br0,p1,p5,pop_vlan,p4,p7,push_vlan(vid=0,pcp=1),p3,p8" \
 
31753
        "p7  none 0 p3,p4,p8,push_vlan(vid=12,pcp=0),br0,p1,p5,p6" \
 
31754
        "p7  0    0 pop_vlan,p3,p4,p8,push_vlan(vid=12,pcp=0),br0,p1,p5,p6" \
 
31755
        "p7  0    1 p3,p8,pop_vlan,p4,push_vlan(vid=12,pcp=1),br0,p1,p5,p6" \
 
31756
        "p7  10   0 br0,p1,p5,p6,p8,pop_vlan,p2" \
 
31757
        "p7  10   1 br0,p1,p5,p6,p8,pop_vlan,p2" \
 
31758
        "p7  11   0 br0,p5" \
 
31759
        "p7  11   1 br0,p5" \
 
31760
        "p7  12   0 br0,p1,p5,p6,pop_vlan,p3,p4,p8" \
 
31761
        "p7  12   1 br0,p1,p5,p6,pop_vlan,p4,push_vlan(vid=0,pcp=1),p3,p8" \
 
31762
        "p8  none 0 p3,p4,p7,push_vlan(vid=12,pcp=0),br0,p1,p5,p6" \
 
31763
        "p8  0    0 pop_vlan,p3,p4,p7,push_vlan(vid=12,pcp=0),br0,p1,p5,p6" \
 
31764
        "p8  0    1 p3,pop_vlan,p4,p7,push_vlan(vid=12,pcp=1),br0,p1,p5,p6" \
 
31765
        "p8  10   0 br0,p1,p5,p6,p7,pop_vlan,p2" \
 
31766
        "p8  10   1 br0,p1,p5,p6,p7,pop_vlan,p2" \
 
31767
        "p8  11   0 drop" \
 
31768
        "p8  11   1 drop" \
 
31769
        "p8  12   0 br0,p1,p5,p6,pop_vlan,p3,p4,p7" \
 
31770
        "p8  12   1 br0,p1,p5,p6,pop_vlan,p4,p7,push_vlan(vid=0,pcp=1),p3"
 
31771
do
 
31772
  set $tuple
 
31773
  in_port=$1
 
31774
  vlan=$2
 
31775
  pcp=$3
 
31776
  expected=$4
 
31777
 
 
31778
  eval n_in_port=\$$in_port
 
31779
  if test $vlan = none; then
 
31780
    flow="in_port($n_in_port),eth(src=50:54:00:00:00:01,dst=ff:ff:ff:ff:ff:ff),eth_type(0xabcd)"
 
31781
  else
 
31782
    flow="in_port($n_in_port),eth(src=50:54:00:00:00:01,dst=ff:ff:ff:ff:ff:ff),eth_type(0x8100),vlan(vid=$vlan,pcp=$pcp),encap(eth_type(0xabcd))"
 
31783
  fi
 
31784
 
 
31785
  echo "----------------------------------------------------------------------"
 
31786
  echo "in_port=$in_port vlan=$vlan pcp=$pcp"
 
31787
 
 
31788
  { set +x
 
31789
$as_echo "$at_srcdir/ofproto-dpif.at:317: ovs-appctl ofproto/trace br0 \"\$flow\""
 
31790
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:317"
 
31791
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
31792
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31793
at_status=$? at_failed=false
 
31794
$at_check_filter
 
31795
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31796
echo stdout:; tee stdout <"$at_stdout"
 
31797
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:317"
 
31798
$at_failed && at_fn_log_failure  \
 
31799
"ovsdb-server.log" \
 
31800
"ovs-vswitchd.log"
 
31801
$at_traceon; }
 
31802
 
 
31803
  actual=`tail -1 stdout | sed 's/Datapath actions: //'`
 
31804
 
 
31805
  { set +x
 
31806
$as_echo "$at_srcdir/ofproto-dpif.at:320: ovs-dpctl normalize-actions \"\$flow\" \"\$expected\" br0=\$br0 p1=\$p1 p2=\$p2 p3=\$p3 p4=\$p4 p5=\$p5 p6=\$p6 p7=\$p7 p8=\$p8"
 
31807
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$expected\" br0=$br0 p1=$p1 p2=$p2 p3=$p3 p4=$p4 p5=$p5 p6=$p6 p7=$p7 p8=$p8" "ofproto-dpif.at:320"
 
31808
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$expected" br0=$br0 p1=$p1 p2=$p2 p3=$p3 p4=$p4 p5=$p5 p6=$p6 p7=$p7 p8=$p8
 
31809
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31810
at_status=$? at_failed=false
 
31811
$at_check_filter
 
31812
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31813
echo stdout:; tee stdout <"$at_stdout"
 
31814
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:320"
 
31815
$at_failed && at_fn_log_failure  \
 
31816
"ovsdb-server.log" \
 
31817
"ovs-vswitchd.log"
 
31818
$at_traceon; }
 
31819
 
 
31820
  mv stdout expout
 
31821
  { set +x
 
31822
$as_echo "$at_srcdir/ofproto-dpif.at:322: ovs-dpctl normalize-actions \"\$flow\" \"\$actual\" br0=\$br0 p1=\$p1 p2=\$p2 p3=\$p3 p4=\$p4 p5=\$p5 p6=\$p6 p7=\$p7 p8=\$p8"
 
31823
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$actual\" br0=$br0 p1=$p1 p2=$p2 p3=$p3 p4=$p4 p5=$p5 p6=$p6 p7=$p7 p8=$p8" "ofproto-dpif.at:322"
 
31824
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$actual" br0=$br0 p1=$p1 p2=$p2 p3=$p3 p4=$p4 p5=$p5 p6=$p6 p7=$p7 p8=$p8
 
31825
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31826
at_status=$? at_failed=false
 
31827
$at_check_filter
 
31828
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31829
$at_diff expout "$at_stdout" || at_failed=:
 
31830
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:322"
 
31831
$at_failed && at_fn_log_failure  \
 
31832
"ovsdb-server.log" \
 
31833
"ovs-vswitchd.log"
 
31834
$at_traceon; }
 
31835
 
 
31836
done
 
31837
 
 
31838
{ set +x
 
31839
$as_echo "$at_srcdir/ofproto-dpif.at:325: ovs-appctl -t ovs-vswitchd exit"
 
31840
at_fn_check_prepare_trace "ofproto-dpif.at:325"
 
31841
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
31842
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31843
at_status=$? at_failed=false
 
31844
$at_check_filter
 
31845
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31846
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31847
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:325"
 
31848
$at_failed && at_fn_log_failure  \
 
31849
"ovsdb-server.log" \
 
31850
"ovs-vswitchd.log"
 
31851
$at_traceon; }
 
31852
 
 
31853
   { set +x
 
31854
$as_echo "$at_srcdir/ofproto-dpif.at:325: ovs-appctl -t ovsdb-server exit"
 
31855
at_fn_check_prepare_trace "ofproto-dpif.at:325"
 
31856
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
31857
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31858
at_status=$? at_failed=false
 
31859
$at_check_filter
 
31860
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31861
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31862
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:325"
 
31863
$at_failed && at_fn_log_failure  \
 
31864
"ovsdb-server.log" \
 
31865
"ovs-vswitchd.log"
 
31866
$at_traceon; }
 
31867
 
 
31868
   trap '' 0
 
31869
  set +x
 
31870
  $at_times_p && times >"$at_times_file"
 
31871
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
31872
read at_status <"$at_status_file"
 
31873
#AT_STOP_392
 
31874
#AT_START_393
 
31875
at_fn_group_banner 393 'ofproto-dpif.at:328' \
 
31876
  "ofproto-dpif - fragment handling" "               " 34
 
31877
at_xfail=no
 
31878
(
 
31879
  $as_echo "393. $at_setup_line: testing $at_desc ..."
 
31880
  $at_traceon
 
31881
 
 
31882
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
31883
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
31884
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
31885
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
31886
 
 
31887
      mkdir openvswitch
 
31888
   touch openvswitch/.conf.db.~lock~
 
31889
   { set +x
 
31890
$as_echo "$at_srcdir/ofproto-dpif.at:329: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
31891
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:329"
 
31892
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
31893
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31894
at_status=$? at_failed=false
 
31895
$at_check_filter
 
31896
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31897
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31898
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:329"
 
31899
$at_failed && at_fn_log_failure
 
31900
$at_traceon; }
 
31901
 
 
31902
 
 
31903
      { set +x
 
31904
$as_echo "$at_srcdir/ofproto-dpif.at:329: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
31905
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:329"
 
31906
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
31907
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31908
at_status=$? at_failed=false
 
31909
$at_check_filter
 
31910
echo stderr:; tee stderr <"$at_stderr"
 
31911
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31912
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:329"
 
31913
$at_failed && at_fn_log_failure
 
31914
$at_traceon; }
 
31915
 
 
31916
   { set +x
 
31917
$as_echo "$at_srcdir/ofproto-dpif.at:329: sed < stderr '/vlog|INFO|opened log file/d'"
 
31918
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:329"
 
31919
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
31920
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31921
at_status=$? at_failed=false
 
31922
$at_check_filter
 
31923
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31924
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31925
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:329"
 
31926
$at_failed && at_fn_log_failure
 
31927
$at_traceon; }
 
31928
 
 
31929
 
 
31930
 
 
31931
      { set +x
 
31932
$as_echo "$at_srcdir/ofproto-dpif.at:329: ovs-vsctl --no-wait init"
 
31933
at_fn_check_prepare_trace "ofproto-dpif.at:329"
 
31934
( $at_check_trace; ovs-vsctl --no-wait init
 
31935
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31936
at_status=$? at_failed=false
 
31937
$at_check_filter
 
31938
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31939
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31940
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:329"
 
31941
$at_failed && at_fn_log_failure  \
 
31942
"ovsdb-server.log"
 
31943
$at_traceon; }
 
31944
 
 
31945
 
 
31946
      { set +x
 
31947
$as_echo "$at_srcdir/ofproto-dpif.at:329: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
31948
at_fn_check_prepare_trace "ofproto-dpif.at:329"
 
31949
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
31950
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31951
at_status=$? at_failed=false
 
31952
$at_check_filter
 
31953
echo stderr:; tee stderr <"$at_stderr"
 
31954
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31955
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:329"
 
31956
$at_failed && at_fn_log_failure  \
 
31957
"ovsdb-server.log"
 
31958
$at_traceon; }
 
31959
 
 
31960
 
 
31961
   { set +x
 
31962
$as_echo "$at_srcdir/ofproto-dpif.at:329: sed < stderr '
 
31963
/vlog|INFO|opened log file/d
 
31964
/reconnect|INFO|/d
 
31965
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
31966
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
31967
/ofproto|INFO|using datapath ID/d
 
31968
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
31969
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:329"
 
31970
( $at_check_trace; sed < stderr '
 
31971
/vlog|INFO|opened log file/d
 
31972
/reconnect|INFO|/d
 
31973
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
31974
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
31975
/ofproto|INFO|using datapath ID/d
 
31976
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
31977
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31978
at_status=$? at_failed=false
 
31979
$at_check_filter
 
31980
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31981
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31982
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:329"
 
31983
$at_failed && at_fn_log_failure  \
 
31984
"ovsdb-server.log" \
 
31985
"ovs-vswitchd.log"
 
31986
$at_traceon; }
 
31987
 
 
31988
 
 
31989
      { set +x
 
31990
$as_echo "$at_srcdir/ofproto-dpif.at:329: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
31991
at_fn_check_prepare_trace "ofproto-dpif.at:329"
 
31992
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
31993
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
31994
at_status=$? at_failed=false
 
31995
$at_check_filter
 
31996
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
31997
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
31998
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:329"
 
31999
$at_failed && at_fn_log_failure  \
 
32000
"ovsdb-server.log" \
 
32001
"ovs-vswitchd.log"
 
32002
$at_traceon; }
 
32003
 
 
32004
 
 
32005
cat >flows.txt <<'_ATEOF'
 
32006
priority=75 tcp ip_frag=no    tp_dst=80 actions=output:1
 
32007
priority=75 tcp ip_frag=first tp_dst=80 actions=output:2
 
32008
priority=75 tcp ip_frag=later tp_dst=80 actions=output:3
 
32009
priority=50 tcp ip_frag=no              actions=output:4
 
32010
priority=50 tcp ip_frag=first           actions=output:5
 
32011
priority=50 tcp ip_frag=later           actions=output:6
 
32012
_ATEOF
 
32013
 
 
32014
{ set +x
 
32015
$as_echo "$at_srcdir/ofproto-dpif.at:338: ovs-ofctl replace-flows br0 flows.txt"
 
32016
at_fn_check_prepare_trace "ofproto-dpif.at:338"
 
32017
( $at_check_trace; ovs-ofctl replace-flows br0 flows.txt
 
32018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32019
at_status=$? at_failed=false
 
32020
$at_check_filter
 
32021
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32022
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32023
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:338"
 
32024
$at_failed && at_fn_log_failure  \
 
32025
"ovsdb-server.log" \
 
32026
"ovs-vswitchd.log"
 
32027
$at_traceon; }
 
32028
 
 
32029
 
 
32030
base_flow="in_port(90),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=6,tos=0,ttl=128"
 
32031
no_flow="$base_flow,frag=no),tcp(src=12345,dst=80)"
 
32032
first_flow="$base_flow,frag=first),tcp(src=12345,dst=80)"
 
32033
later_flow="$base_flow,frag=later)"
 
32034
 
 
32035
    # mode    no  first  later
 
32036
for tuple in \
 
32037
    'normal    1     5      6' \
 
32038
    'drop      1  drop   drop' \
 
32039
    'nx-match  1     2      6'
 
32040
do
 
32041
  set $tuple
 
32042
  mode=$1
 
32043
  no=$2
 
32044
  first=$3
 
32045
  later=$4
 
32046
 
 
32047
  { set +x
 
32048
$as_echo "$at_srcdir/ofproto-dpif.at:357: ovs-ofctl set-frags br0 \$mode"
 
32049
at_fn_check_prepare_dynamic "ovs-ofctl set-frags br0 $mode" "ofproto-dpif.at:357"
 
32050
( $at_check_trace; ovs-ofctl set-frags br0 $mode
 
32051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32052
at_status=$? at_failed=false
 
32053
$at_check_filter
 
32054
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32055
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32056
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:357"
 
32057
$at_failed && at_fn_log_failure  \
 
32058
"ovsdb-server.log" \
 
32059
"ovs-vswitchd.log"
 
32060
$at_traceon; }
 
32061
 
 
32062
  for type in no first later; do
 
32063
    eval flow=\$${type}_flow exp_output=\$$type
 
32064
    { set +x
 
32065
$as_echo "$at_srcdir/ofproto-dpif.at:360: ovs-appctl ofproto/trace br0 \"\$flow\""
 
32066
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:360"
 
32067
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
32068
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32069
at_status=$? at_failed=false
 
32070
$at_check_filter
 
32071
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32072
echo stdout:; tee stdout <"$at_stdout"
 
32073
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:360"
 
32074
$at_failed && at_fn_log_failure  \
 
32075
"ovsdb-server.log" \
 
32076
"ovs-vswitchd.log"
 
32077
$at_traceon; }
 
32078
 
 
32079
    { set +x
 
32080
$as_echo "$at_srcdir/ofproto-dpif.at:361: tail -1 stdout"
 
32081
at_fn_check_prepare_trace "ofproto-dpif.at:361"
 
32082
( $at_check_trace; tail -1 stdout
 
32083
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32084
at_status=$? at_failed=false
 
32085
$at_check_filter
 
32086
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32087
echo >>"$at_stdout"; $as_echo "Datapath actions: $exp_output
 
32088
" | \
 
32089
  $at_diff - "$at_stdout" || at_failed=:
 
32090
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:361"
 
32091
$at_failed && at_fn_log_failure  \
 
32092
"ovsdb-server.log" \
 
32093
"ovs-vswitchd.log"
 
32094
$at_traceon; }
 
32095
 
 
32096
  done
 
32097
done
 
32098
{ set +x
 
32099
$as_echo "$at_srcdir/ofproto-dpif.at:365: ovs-appctl -t ovs-vswitchd exit"
 
32100
at_fn_check_prepare_trace "ofproto-dpif.at:365"
 
32101
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
32102
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32103
at_status=$? at_failed=false
 
32104
$at_check_filter
 
32105
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32106
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32107
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:365"
 
32108
$at_failed && at_fn_log_failure  \
 
32109
"ovsdb-server.log" \
 
32110
"ovs-vswitchd.log"
 
32111
$at_traceon; }
 
32112
 
 
32113
   { set +x
 
32114
$as_echo "$at_srcdir/ofproto-dpif.at:365: ovs-appctl -t ovsdb-server exit"
 
32115
at_fn_check_prepare_trace "ofproto-dpif.at:365"
 
32116
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
32117
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32118
at_status=$? at_failed=false
 
32119
$at_check_filter
 
32120
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32121
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32122
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:365"
 
32123
$at_failed && at_fn_log_failure  \
 
32124
"ovsdb-server.log" \
 
32125
"ovs-vswitchd.log"
 
32126
$at_traceon; }
 
32127
 
 
32128
   trap '' 0
 
32129
  set +x
 
32130
  $at_times_p && times >"$at_times_file"
 
32131
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
32132
read at_status <"$at_status_file"
 
32133
#AT_STOP_393
 
32134
#AT_START_394
 
32135
at_fn_group_banner 394 'ofproto-dpif.at:368' \
 
32136
  "ofproto-dpif - exit" "                            " 34
 
32137
at_xfail=no
 
32138
(
 
32139
  $as_echo "394. $at_setup_line: testing $at_desc ..."
 
32140
  $at_traceon
 
32141
 
 
32142
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
32143
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
32144
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
32145
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
32146
 
 
32147
      mkdir openvswitch
 
32148
   touch openvswitch/.conf.db.~lock~
 
32149
   { set +x
 
32150
$as_echo "$at_srcdir/ofproto-dpif.at:369: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
32151
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:369"
 
32152
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
32153
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32154
at_status=$? at_failed=false
 
32155
$at_check_filter
 
32156
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32157
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32158
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:369"
 
32159
$at_failed && at_fn_log_failure
 
32160
$at_traceon; }
 
32161
 
 
32162
 
 
32163
      { set +x
 
32164
$as_echo "$at_srcdir/ofproto-dpif.at:369: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
32165
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:369"
 
32166
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
32167
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32168
at_status=$? at_failed=false
 
32169
$at_check_filter
 
32170
echo stderr:; tee stderr <"$at_stderr"
 
32171
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32172
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:369"
 
32173
$at_failed && at_fn_log_failure
 
32174
$at_traceon; }
 
32175
 
 
32176
   { set +x
 
32177
$as_echo "$at_srcdir/ofproto-dpif.at:369: sed < stderr '/vlog|INFO|opened log file/d'"
 
32178
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:369"
 
32179
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
32180
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32181
at_status=$? at_failed=false
 
32182
$at_check_filter
 
32183
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32184
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32185
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:369"
 
32186
$at_failed && at_fn_log_failure
 
32187
$at_traceon; }
 
32188
 
 
32189
 
 
32190
 
 
32191
      { set +x
 
32192
$as_echo "$at_srcdir/ofproto-dpif.at:369: ovs-vsctl --no-wait init"
 
32193
at_fn_check_prepare_trace "ofproto-dpif.at:369"
 
32194
( $at_check_trace; ovs-vsctl --no-wait init
 
32195
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32196
at_status=$? at_failed=false
 
32197
$at_check_filter
 
32198
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32199
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32200
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:369"
 
32201
$at_failed && at_fn_log_failure  \
 
32202
"ovsdb-server.log"
 
32203
$at_traceon; }
 
32204
 
 
32205
 
 
32206
      { set +x
 
32207
$as_echo "$at_srcdir/ofproto-dpif.at:369: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
32208
at_fn_check_prepare_trace "ofproto-dpif.at:369"
 
32209
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
32210
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32211
at_status=$? at_failed=false
 
32212
$at_check_filter
 
32213
echo stderr:; tee stderr <"$at_stderr"
 
32214
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32215
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:369"
 
32216
$at_failed && at_fn_log_failure  \
 
32217
"ovsdb-server.log"
 
32218
$at_traceon; }
 
32219
 
 
32220
 
 
32221
   { set +x
 
32222
$as_echo "$at_srcdir/ofproto-dpif.at:369: sed < stderr '
 
32223
/vlog|INFO|opened log file/d
 
32224
/reconnect|INFO|/d
 
32225
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
32226
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
32227
/ofproto|INFO|using datapath ID/d
 
32228
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
32229
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:369"
 
32230
( $at_check_trace; sed < stderr '
 
32231
/vlog|INFO|opened log file/d
 
32232
/reconnect|INFO|/d
 
32233
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
32234
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
32235
/ofproto|INFO|using datapath ID/d
 
32236
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
32237
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32238
at_status=$? at_failed=false
 
32239
$at_check_filter
 
32240
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32241
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32242
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:369"
 
32243
$at_failed && at_fn_log_failure  \
 
32244
"ovsdb-server.log" \
 
32245
"ovs-vswitchd.log"
 
32246
$at_traceon; }
 
32247
 
 
32248
 
 
32249
      { set +x
 
32250
$as_echo "$at_srcdir/ofproto-dpif.at:369: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
32251
at_fn_check_prepare_trace "ofproto-dpif.at:369"
 
32252
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
32253
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32254
at_status=$? at_failed=false
 
32255
$at_check_filter
 
32256
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32257
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32258
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:369"
 
32259
$at_failed && at_fn_log_failure  \
 
32260
"ovsdb-server.log" \
 
32261
"ovs-vswitchd.log"
 
32262
$at_traceon; }
 
32263
 
 
32264
 
 
32265
cat >flows.txt <<'_ATEOF'
 
32266
in_port=1 actions=output:10,exit,output:11
 
32267
in_port=2 actions=output:12,resubmit:1,output:12
 
32268
in_port=3 actions=output:13,resubmit:2,output:14
 
32269
_ATEOF
 
32270
 
 
32271
{ set +x
 
32272
$as_echo "$at_srcdir/ofproto-dpif.at:375: ovs-ofctl add-flows br0 flows.txt"
 
32273
at_fn_check_prepare_trace "ofproto-dpif.at:375"
 
32274
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
32275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32276
at_status=$? at_failed=false
 
32277
$at_check_filter
 
32278
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32279
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32280
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:375"
 
32281
$at_failed && at_fn_log_failure  \
 
32282
"ovsdb-server.log" \
 
32283
"ovs-vswitchd.log"
 
32284
$at_traceon; }
 
32285
 
 
32286
{ set +x
 
32287
$as_echo "$at_srcdir/ofproto-dpif.at:376: ovs-appctl ofproto/trace br0 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'"
 
32288
at_fn_check_prepare_trace "ofproto-dpif.at:376"
 
32289
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'
 
32290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32291
at_status=$? at_failed=false
 
32292
$at_check_filter
 
32293
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32294
echo stdout:; tee stdout <"$at_stdout"
 
32295
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:376"
 
32296
$at_failed && at_fn_log_failure  \
 
32297
"ovsdb-server.log" \
 
32298
"ovs-vswitchd.log"
 
32299
$at_traceon; }
 
32300
 
 
32301
{ set +x
 
32302
$as_echo "$at_srcdir/ofproto-dpif.at:377: tail -1 stdout"
 
32303
at_fn_check_prepare_trace "ofproto-dpif.at:377"
 
32304
( $at_check_trace; tail -1 stdout
 
32305
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32306
at_status=$? at_failed=false
 
32307
$at_check_filter
 
32308
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32309
echo >>"$at_stdout"; $as_echo "Datapath actions: 10
 
32310
" | \
 
32311
  $at_diff - "$at_stdout" || at_failed=:
 
32312
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:377"
 
32313
$at_failed && at_fn_log_failure  \
 
32314
"ovsdb-server.log" \
 
32315
"ovs-vswitchd.log"
 
32316
$at_traceon; }
 
32317
 
 
32318
{ set +x
 
32319
$as_echo "$at_srcdir/ofproto-dpif.at:380: ovs-appctl ofproto/trace br0 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'"
 
32320
at_fn_check_prepare_trace "ofproto-dpif.at:380"
 
32321
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'
 
32322
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32323
at_status=$? at_failed=false
 
32324
$at_check_filter
 
32325
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32326
echo stdout:; tee stdout <"$at_stdout"
 
32327
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:380"
 
32328
$at_failed && at_fn_log_failure  \
 
32329
"ovsdb-server.log" \
 
32330
"ovs-vswitchd.log"
 
32331
$at_traceon; }
 
32332
 
 
32333
{ set +x
 
32334
$as_echo "$at_srcdir/ofproto-dpif.at:381: tail -1 stdout"
 
32335
at_fn_check_prepare_trace "ofproto-dpif.at:381"
 
32336
( $at_check_trace; tail -1 stdout
 
32337
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32338
at_status=$? at_failed=false
 
32339
$at_check_filter
 
32340
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32341
echo >>"$at_stdout"; $as_echo "Datapath actions: 12,10
 
32342
" | \
 
32343
  $at_diff - "$at_stdout" || at_failed=:
 
32344
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:381"
 
32345
$at_failed && at_fn_log_failure  \
 
32346
"ovsdb-server.log" \
 
32347
"ovs-vswitchd.log"
 
32348
$at_traceon; }
 
32349
 
 
32350
{ set +x
 
32351
$as_echo "$at_srcdir/ofproto-dpif.at:384: ovs-appctl ofproto/trace br0 'in_port(3),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'"
 
32352
at_fn_check_prepare_trace "ofproto-dpif.at:384"
 
32353
( $at_check_trace; ovs-appctl ofproto/trace br0 'in_port(3),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)'
 
32354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32355
at_status=$? at_failed=false
 
32356
$at_check_filter
 
32357
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32358
echo stdout:; tee stdout <"$at_stdout"
 
32359
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:384"
 
32360
$at_failed && at_fn_log_failure  \
 
32361
"ovsdb-server.log" \
 
32362
"ovs-vswitchd.log"
 
32363
$at_traceon; }
 
32364
 
 
32365
{ set +x
 
32366
$as_echo "$at_srcdir/ofproto-dpif.at:385: tail -1 stdout"
 
32367
at_fn_check_prepare_trace "ofproto-dpif.at:385"
 
32368
( $at_check_trace; tail -1 stdout
 
32369
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32370
at_status=$? at_failed=false
 
32371
$at_check_filter
 
32372
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32373
echo >>"$at_stdout"; $as_echo "Datapath actions: 13,12,10
 
32374
" | \
 
32375
  $at_diff - "$at_stdout" || at_failed=:
 
32376
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:385"
 
32377
$at_failed && at_fn_log_failure  \
 
32378
"ovsdb-server.log" \
 
32379
"ovs-vswitchd.log"
 
32380
$at_traceon; }
 
32381
 
 
32382
{ set +x
 
32383
$as_echo "$at_srcdir/ofproto-dpif.at:388: ovs-appctl -t ovs-vswitchd exit"
 
32384
at_fn_check_prepare_trace "ofproto-dpif.at:388"
 
32385
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
32386
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32387
at_status=$? at_failed=false
 
32388
$at_check_filter
 
32389
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32390
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32391
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:388"
 
32392
$at_failed && at_fn_log_failure  \
 
32393
"ovsdb-server.log" \
 
32394
"ovs-vswitchd.log"
 
32395
$at_traceon; }
 
32396
 
 
32397
   { set +x
 
32398
$as_echo "$at_srcdir/ofproto-dpif.at:388: ovs-appctl -t ovsdb-server exit"
 
32399
at_fn_check_prepare_trace "ofproto-dpif.at:388"
 
32400
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
32401
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32402
at_status=$? at_failed=false
 
32403
$at_check_filter
 
32404
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32405
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32406
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:388"
 
32407
$at_failed && at_fn_log_failure  \
 
32408
"ovsdb-server.log" \
 
32409
"ovs-vswitchd.log"
 
32410
$at_traceon; }
 
32411
 
 
32412
   trap '' 0
 
32413
  set +x
 
32414
  $at_times_p && times >"$at_times_file"
 
32415
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
32416
read at_status <"$at_status_file"
 
32417
#AT_STOP_394
 
32418
#AT_START_395
 
32419
at_fn_group_banner 395 'ofproto-dpif.at:392' \
 
32420
  "ofproto-dpif - mirroring, select_all" "           " 34
 
32421
at_xfail=no
 
32422
(
 
32423
  $as_echo "395. $at_setup_line: testing $at_desc ..."
 
32424
  $at_traceon
 
32425
 
 
32426
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
32427
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
32428
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
32429
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
32430
 
 
32431
      mkdir openvswitch
 
32432
   touch openvswitch/.conf.db.~lock~
 
32433
   { set +x
 
32434
$as_echo "$at_srcdir/ofproto-dpif.at:393: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
32435
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:393"
 
32436
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
32437
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32438
at_status=$? at_failed=false
 
32439
$at_check_filter
 
32440
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32441
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32442
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:393"
 
32443
$at_failed && at_fn_log_failure
 
32444
$at_traceon; }
 
32445
 
 
32446
 
 
32447
      { set +x
 
32448
$as_echo "$at_srcdir/ofproto-dpif.at:393: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
32449
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:393"
 
32450
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
32451
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32452
at_status=$? at_failed=false
 
32453
$at_check_filter
 
32454
echo stderr:; tee stderr <"$at_stderr"
 
32455
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32456
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:393"
 
32457
$at_failed && at_fn_log_failure
 
32458
$at_traceon; }
 
32459
 
 
32460
   { set +x
 
32461
$as_echo "$at_srcdir/ofproto-dpif.at:393: sed < stderr '/vlog|INFO|opened log file/d'"
 
32462
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:393"
 
32463
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
32464
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32465
at_status=$? at_failed=false
 
32466
$at_check_filter
 
32467
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32468
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32469
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:393"
 
32470
$at_failed && at_fn_log_failure
 
32471
$at_traceon; }
 
32472
 
 
32473
 
 
32474
 
 
32475
      { set +x
 
32476
$as_echo "$at_srcdir/ofproto-dpif.at:393: ovs-vsctl --no-wait init"
 
32477
at_fn_check_prepare_trace "ofproto-dpif.at:393"
 
32478
( $at_check_trace; ovs-vsctl --no-wait init
 
32479
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32480
at_status=$? at_failed=false
 
32481
$at_check_filter
 
32482
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32483
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32484
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:393"
 
32485
$at_failed && at_fn_log_failure  \
 
32486
"ovsdb-server.log"
 
32487
$at_traceon; }
 
32488
 
 
32489
 
 
32490
      { set +x
 
32491
$as_echo "$at_srcdir/ofproto-dpif.at:393: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
32492
at_fn_check_prepare_trace "ofproto-dpif.at:393"
 
32493
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
32494
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32495
at_status=$? at_failed=false
 
32496
$at_check_filter
 
32497
echo stderr:; tee stderr <"$at_stderr"
 
32498
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32499
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:393"
 
32500
$at_failed && at_fn_log_failure  \
 
32501
"ovsdb-server.log"
 
32502
$at_traceon; }
 
32503
 
 
32504
 
 
32505
   { set +x
 
32506
$as_echo "$at_srcdir/ofproto-dpif.at:393: sed < stderr '
 
32507
/vlog|INFO|opened log file/d
 
32508
/reconnect|INFO|/d
 
32509
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
32510
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
32511
/ofproto|INFO|using datapath ID/d
 
32512
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
32513
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:393"
 
32514
( $at_check_trace; sed < stderr '
 
32515
/vlog|INFO|opened log file/d
 
32516
/reconnect|INFO|/d
 
32517
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
32518
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
32519
/ofproto|INFO|using datapath ID/d
 
32520
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
32521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32522
at_status=$? at_failed=false
 
32523
$at_check_filter
 
32524
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32525
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32526
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:393"
 
32527
$at_failed && at_fn_log_failure  \
 
32528
"ovsdb-server.log" \
 
32529
"ovs-vswitchd.log"
 
32530
$at_traceon; }
 
32531
 
 
32532
 
 
32533
      { set +x
 
32534
$as_echo "$at_srcdir/ofproto-dpif.at:393: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
32535
at_fn_check_prepare_trace "ofproto-dpif.at:393"
 
32536
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
32537
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32538
at_status=$? at_failed=false
 
32539
$at_check_filter
 
32540
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32541
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32542
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:393"
 
32543
$at_failed && at_fn_log_failure  \
 
32544
"ovsdb-server.log" \
 
32545
"ovs-vswitchd.log"
 
32546
$at_traceon; }
 
32547
 
 
32548
 
 
32549
{ set +x
 
32550
$as_echo "$at_srcdir/ofproto-dpif.at:394: ovs-vsctl \\
 
32551
        add-port br0 p1 -- set Interface p1 type=dummy --\\
 
32552
        add-port br0 p2 -- set Interface p2 type=dummy --\\
 
32553
        add-port br0 p3 -- set Interface p3 type=dummy --\\
 
32554
        set Bridge br0 mirrors=@m --\\
 
32555
        --id=@p3 get Port p3 --\\
 
32556
        --id=@m create Mirror name=mymirror \\
 
32557
        select_all=true output_port=@p3 "
 
32558
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:394"
 
32559
( $at_check_trace; ovs-vsctl \
 
32560
        add-port br0 p1 -- set Interface p1 type=dummy --\
 
32561
        add-port br0 p2 -- set Interface p2 type=dummy --\
 
32562
        add-port br0 p3 -- set Interface p3 type=dummy --\
 
32563
        set Bridge br0 mirrors=@m --\
 
32564
        --id=@p3 get Port p3 --\
 
32565
        --id=@m create Mirror name=mymirror \
 
32566
        select_all=true output_port=@p3
 
32567
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32568
at_status=$? at_failed=false
 
32569
$at_check_filter
 
32570
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32571
echo stdout:; tee stdout <"$at_stdout"
 
32572
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:394"
 
32573
$at_failed && at_fn_log_failure  \
 
32574
"ovsdb-server.log" \
 
32575
"ovs-vswitchd.log"
 
32576
$at_traceon; }
 
32577
 
 
32578
{ set +x
 
32579
$as_echo "$at_srcdir/ofproto-dpif.at:402: perl \$srcdir/uuidfilt.pl stdout"
 
32580
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ofproto-dpif.at:402"
 
32581
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
32582
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32583
at_status=$? at_failed=false
 
32584
$at_check_filter
 
32585
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32586
echo >>"$at_stdout"; $as_echo "<0>
 
32587
" | \
 
32588
  $at_diff - "$at_stdout" || at_failed=:
 
32589
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:402"
 
32590
$at_failed && at_fn_log_failure  \
 
32591
"ovsdb-server.log" \
 
32592
"ovs-vswitchd.log"
 
32593
$at_traceon; }
 
32594
 
 
32595
 
 
32596
{ set +x
 
32597
$as_echo "$at_srcdir/ofproto-dpif.at:406: ovs-vsctl \\
 
32598
        -- get Interface p1 ofport \\
 
32599
        -- get Interface p2 ofport \\
 
32600
        -- get Interface p3 ofport"
 
32601
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:406"
 
32602
( $at_check_trace; ovs-vsctl \
 
32603
        -- get Interface p1 ofport \
 
32604
        -- get Interface p2 ofport \
 
32605
        -- get Interface p3 ofport
 
32606
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32607
at_status=$? at_failed=false
 
32608
$at_check_filter
 
32609
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32610
echo stdout:; tee stdout <"$at_stdout"
 
32611
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:406"
 
32612
$at_failed && at_fn_log_failure  \
 
32613
"ovsdb-server.log" \
 
32614
"ovs-vswitchd.log"
 
32615
$at_traceon; }
 
32616
 
 
32617
set `cat stdout`
 
32618
p1=$1 p2=$2 p3=$3
 
32619
 
 
32620
cat > flows.txt <<EOF
 
32621
in_port=$p1 actions=output:$p2
 
32622
in_port=$p2 actions=output:$p1
 
32623
EOF
 
32624
AT
 
32625
 
 
32626
{ set +x
 
32627
$as_echo "$at_srcdir/ofproto-dpif.at:421: ovs-ofctl add-flows br0 flows.txt"
 
32628
at_fn_check_prepare_trace "ofproto-dpif.at:421"
 
32629
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
32630
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32631
at_status=$? at_failed=false
 
32632
$at_check_filter
 
32633
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32634
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32635
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:421"
 
32636
$at_failed && at_fn_log_failure  \
 
32637
"ovsdb-server.log" \
 
32638
"ovs-vswitchd.log" \
 
32639
"flows.txt"
 
32640
$at_traceon; }
 
32641
 
 
32642
 
 
32643
flow="in_port($p1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
32644
{ set +x
 
32645
$as_echo "$at_srcdir/ofproto-dpif.at:424: ovs-appctl ofproto/trace br0 \"\$flow\""
 
32646
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:424"
 
32647
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
32648
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32649
at_status=$? at_failed=false
 
32650
$at_check_filter
 
32651
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32652
echo stdout:; tee stdout <"$at_stdout"
 
32653
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:424"
 
32654
$at_failed && at_fn_log_failure  \
 
32655
"ovsdb-server.log" \
 
32656
"ovs-vswitchd.log" \
 
32657
"flows.txt"
 
32658
$at_traceon; }
 
32659
 
 
32660
{ set +x
 
32661
$as_echo "$at_srcdir/ofproto-dpif.at:425: tail -1 stdout"
 
32662
at_fn_check_prepare_trace "ofproto-dpif.at:425"
 
32663
( $at_check_trace; tail -1 stdout
 
32664
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32665
at_status=$? at_failed=false
 
32666
$at_check_filter
 
32667
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32668
echo >>"$at_stdout"; $as_echo "Datapath actions: $p2,$p3
 
32669
" | \
 
32670
  $at_diff - "$at_stdout" || at_failed=:
 
32671
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:425"
 
32672
$at_failed && at_fn_log_failure  \
 
32673
"ovsdb-server.log" \
 
32674
"ovs-vswitchd.log" \
 
32675
"flows.txt"
 
32676
$at_traceon; }
 
32677
 
 
32678
 
 
32679
flow="in_port($p2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
32680
{ set +x
 
32681
$as_echo "$at_srcdir/ofproto-dpif.at:430: ovs-appctl ofproto/trace br0 \"\$flow\""
 
32682
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:430"
 
32683
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
32684
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32685
at_status=$? at_failed=false
 
32686
$at_check_filter
 
32687
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32688
echo stdout:; tee stdout <"$at_stdout"
 
32689
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:430"
 
32690
$at_failed && at_fn_log_failure  \
 
32691
"ovsdb-server.log" \
 
32692
"ovs-vswitchd.log" \
 
32693
"flows.txt"
 
32694
$at_traceon; }
 
32695
 
 
32696
{ set +x
 
32697
$as_echo "$at_srcdir/ofproto-dpif.at:431: tail -1 stdout"
 
32698
at_fn_check_prepare_trace "ofproto-dpif.at:431"
 
32699
( $at_check_trace; tail -1 stdout
 
32700
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32701
at_status=$? at_failed=false
 
32702
$at_check_filter
 
32703
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32704
echo >>"$at_stdout"; $as_echo "Datapath actions: $p1,$p3
 
32705
" | \
 
32706
  $at_diff - "$at_stdout" || at_failed=:
 
32707
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:431"
 
32708
$at_failed && at_fn_log_failure  \
 
32709
"ovsdb-server.log" \
 
32710
"ovs-vswitchd.log" \
 
32711
"flows.txt"
 
32712
$at_traceon; }
 
32713
 
 
32714
 
 
32715
{ set +x
 
32716
$as_echo "$at_srcdir/ofproto-dpif.at:435: ovs-appctl -t ovs-vswitchd exit"
 
32717
at_fn_check_prepare_trace "ofproto-dpif.at:435"
 
32718
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
32719
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32720
at_status=$? at_failed=false
 
32721
$at_check_filter
 
32722
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32723
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32724
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:435"
 
32725
$at_failed && at_fn_log_failure  \
 
32726
"ovsdb-server.log" \
 
32727
"ovs-vswitchd.log" \
 
32728
"flows.txt"
 
32729
$at_traceon; }
 
32730
 
 
32731
   { set +x
 
32732
$as_echo "$at_srcdir/ofproto-dpif.at:435: ovs-appctl -t ovsdb-server exit"
 
32733
at_fn_check_prepare_trace "ofproto-dpif.at:435"
 
32734
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
32735
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32736
at_status=$? at_failed=false
 
32737
$at_check_filter
 
32738
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32739
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32740
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:435"
 
32741
$at_failed && at_fn_log_failure  \
 
32742
"ovsdb-server.log" \
 
32743
"ovs-vswitchd.log" \
 
32744
"flows.txt"
 
32745
$at_traceon; }
 
32746
 
 
32747
   trap '' 0
 
32748
  set +x
 
32749
  $at_times_p && times >"$at_times_file"
 
32750
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
32751
read at_status <"$at_status_file"
 
32752
#AT_STOP_395
 
32753
#AT_START_396
 
32754
at_fn_group_banner 396 'ofproto-dpif.at:439' \
 
32755
  "ofproto-dpif - mirroring, select_src" "           " 34
 
32756
at_xfail=no
 
32757
(
 
32758
  $as_echo "396. $at_setup_line: testing $at_desc ..."
 
32759
  $at_traceon
 
32760
 
 
32761
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
32762
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
32763
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
32764
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
32765
 
 
32766
      mkdir openvswitch
 
32767
   touch openvswitch/.conf.db.~lock~
 
32768
   { set +x
 
32769
$as_echo "$at_srcdir/ofproto-dpif.at:440: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
32770
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:440"
 
32771
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
32772
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32773
at_status=$? at_failed=false
 
32774
$at_check_filter
 
32775
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32776
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32777
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:440"
 
32778
$at_failed && at_fn_log_failure
 
32779
$at_traceon; }
 
32780
 
 
32781
 
 
32782
      { set +x
 
32783
$as_echo "$at_srcdir/ofproto-dpif.at:440: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
32784
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:440"
 
32785
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
32786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32787
at_status=$? at_failed=false
 
32788
$at_check_filter
 
32789
echo stderr:; tee stderr <"$at_stderr"
 
32790
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32791
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:440"
 
32792
$at_failed && at_fn_log_failure
 
32793
$at_traceon; }
 
32794
 
 
32795
   { set +x
 
32796
$as_echo "$at_srcdir/ofproto-dpif.at:440: sed < stderr '/vlog|INFO|opened log file/d'"
 
32797
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:440"
 
32798
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
32799
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32800
at_status=$? at_failed=false
 
32801
$at_check_filter
 
32802
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32803
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32804
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:440"
 
32805
$at_failed && at_fn_log_failure
 
32806
$at_traceon; }
 
32807
 
 
32808
 
 
32809
 
 
32810
      { set +x
 
32811
$as_echo "$at_srcdir/ofproto-dpif.at:440: ovs-vsctl --no-wait init"
 
32812
at_fn_check_prepare_trace "ofproto-dpif.at:440"
 
32813
( $at_check_trace; ovs-vsctl --no-wait init
 
32814
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32815
at_status=$? at_failed=false
 
32816
$at_check_filter
 
32817
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32818
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32819
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:440"
 
32820
$at_failed && at_fn_log_failure  \
 
32821
"ovsdb-server.log"
 
32822
$at_traceon; }
 
32823
 
 
32824
 
 
32825
      { set +x
 
32826
$as_echo "$at_srcdir/ofproto-dpif.at:440: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
32827
at_fn_check_prepare_trace "ofproto-dpif.at:440"
 
32828
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
32829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32830
at_status=$? at_failed=false
 
32831
$at_check_filter
 
32832
echo stderr:; tee stderr <"$at_stderr"
 
32833
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32834
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:440"
 
32835
$at_failed && at_fn_log_failure  \
 
32836
"ovsdb-server.log"
 
32837
$at_traceon; }
 
32838
 
 
32839
 
 
32840
   { set +x
 
32841
$as_echo "$at_srcdir/ofproto-dpif.at:440: sed < stderr '
 
32842
/vlog|INFO|opened log file/d
 
32843
/reconnect|INFO|/d
 
32844
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
32845
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
32846
/ofproto|INFO|using datapath ID/d
 
32847
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
32848
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:440"
 
32849
( $at_check_trace; sed < stderr '
 
32850
/vlog|INFO|opened log file/d
 
32851
/reconnect|INFO|/d
 
32852
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
32853
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
32854
/ofproto|INFO|using datapath ID/d
 
32855
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
32856
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32857
at_status=$? at_failed=false
 
32858
$at_check_filter
 
32859
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32860
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32861
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:440"
 
32862
$at_failed && at_fn_log_failure  \
 
32863
"ovsdb-server.log" \
 
32864
"ovs-vswitchd.log"
 
32865
$at_traceon; }
 
32866
 
 
32867
 
 
32868
      { set +x
 
32869
$as_echo "$at_srcdir/ofproto-dpif.at:440: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
32870
at_fn_check_prepare_trace "ofproto-dpif.at:440"
 
32871
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
32872
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32873
at_status=$? at_failed=false
 
32874
$at_check_filter
 
32875
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32876
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32877
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:440"
 
32878
$at_failed && at_fn_log_failure  \
 
32879
"ovsdb-server.log" \
 
32880
"ovs-vswitchd.log"
 
32881
$at_traceon; }
 
32882
 
 
32883
 
 
32884
{ set +x
 
32885
$as_echo "$at_srcdir/ofproto-dpif.at:441: ovs-vsctl \\
 
32886
        add-port br0 p1 -- set Interface p1 type=dummy --\\
 
32887
        add-port br0 p2 -- set Interface p2 type=dummy --\\
 
32888
        add-port br0 p3 -- set Interface p3 type=dummy --\\
 
32889
        set Bridge br0 mirrors=@m --\\
 
32890
        --id=@p1 get Port p1 -- --id=@p3 get Port p3 --\\
 
32891
        --id=@m create Mirror name=mymirror \\
 
32892
        select_src_port=@p1 output_port=@p3 "
 
32893
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:441"
 
32894
( $at_check_trace; ovs-vsctl \
 
32895
        add-port br0 p1 -- set Interface p1 type=dummy --\
 
32896
        add-port br0 p2 -- set Interface p2 type=dummy --\
 
32897
        add-port br0 p3 -- set Interface p3 type=dummy --\
 
32898
        set Bridge br0 mirrors=@m --\
 
32899
        --id=@p1 get Port p1 -- --id=@p3 get Port p3 --\
 
32900
        --id=@m create Mirror name=mymirror \
 
32901
        select_src_port=@p1 output_port=@p3
 
32902
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32903
at_status=$? at_failed=false
 
32904
$at_check_filter
 
32905
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32906
echo stdout:; tee stdout <"$at_stdout"
 
32907
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:441"
 
32908
$at_failed && at_fn_log_failure  \
 
32909
"ovsdb-server.log" \
 
32910
"ovs-vswitchd.log"
 
32911
$at_traceon; }
 
32912
 
 
32913
{ set +x
 
32914
$as_echo "$at_srcdir/ofproto-dpif.at:449: perl \$srcdir/uuidfilt.pl stdout"
 
32915
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ofproto-dpif.at:449"
 
32916
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
32917
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32918
at_status=$? at_failed=false
 
32919
$at_check_filter
 
32920
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32921
echo >>"$at_stdout"; $as_echo "<0>
 
32922
" | \
 
32923
  $at_diff - "$at_stdout" || at_failed=:
 
32924
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:449"
 
32925
$at_failed && at_fn_log_failure  \
 
32926
"ovsdb-server.log" \
 
32927
"ovs-vswitchd.log"
 
32928
$at_traceon; }
 
32929
 
 
32930
 
 
32931
{ set +x
 
32932
$as_echo "$at_srcdir/ofproto-dpif.at:453: ovs-vsctl \\
 
32933
        -- get Interface p1 ofport \\
 
32934
        -- get Interface p2 ofport \\
 
32935
        -- get Interface p3 ofport"
 
32936
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:453"
 
32937
( $at_check_trace; ovs-vsctl \
 
32938
        -- get Interface p1 ofport \
 
32939
        -- get Interface p2 ofport \
 
32940
        -- get Interface p3 ofport
 
32941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32942
at_status=$? at_failed=false
 
32943
$at_check_filter
 
32944
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32945
echo stdout:; tee stdout <"$at_stdout"
 
32946
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:453"
 
32947
$at_failed && at_fn_log_failure  \
 
32948
"ovsdb-server.log" \
 
32949
"ovs-vswitchd.log"
 
32950
$at_traceon; }
 
32951
 
 
32952
set `cat stdout`
 
32953
p1=$1 p2=$2 p3=$3
 
32954
 
 
32955
cat > flows.txt <<EOF
 
32956
in_port=$p1 actions=output:$p2
 
32957
in_port=$p2 actions=output:$p1
 
32958
EOF
 
32959
AT
 
32960
 
 
32961
{ set +x
 
32962
$as_echo "$at_srcdir/ofproto-dpif.at:468: ovs-ofctl add-flows br0 flows.txt"
 
32963
at_fn_check_prepare_trace "ofproto-dpif.at:468"
 
32964
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
32965
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32966
at_status=$? at_failed=false
 
32967
$at_check_filter
 
32968
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32969
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
32970
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:468"
 
32971
$at_failed && at_fn_log_failure  \
 
32972
"ovsdb-server.log" \
 
32973
"ovs-vswitchd.log" \
 
32974
"flows.txt"
 
32975
$at_traceon; }
 
32976
 
 
32977
 
 
32978
flow="in_port($p1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
32979
{ set +x
 
32980
$as_echo "$at_srcdir/ofproto-dpif.at:471: ovs-appctl ofproto/trace br0 \"\$flow\""
 
32981
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:471"
 
32982
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
32983
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
32984
at_status=$? at_failed=false
 
32985
$at_check_filter
 
32986
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
32987
echo stdout:; tee stdout <"$at_stdout"
 
32988
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:471"
 
32989
$at_failed && at_fn_log_failure  \
 
32990
"ovsdb-server.log" \
 
32991
"ovs-vswitchd.log" \
 
32992
"flows.txt"
 
32993
$at_traceon; }
 
32994
 
 
32995
{ set +x
 
32996
$as_echo "$at_srcdir/ofproto-dpif.at:472: tail -1 stdout"
 
32997
at_fn_check_prepare_trace "ofproto-dpif.at:472"
 
32998
( $at_check_trace; tail -1 stdout
 
32999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33000
at_status=$? at_failed=false
 
33001
$at_check_filter
 
33002
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33003
echo >>"$at_stdout"; $as_echo "Datapath actions: $p2,$p3
 
33004
" | \
 
33005
  $at_diff - "$at_stdout" || at_failed=:
 
33006
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:472"
 
33007
$at_failed && at_fn_log_failure  \
 
33008
"ovsdb-server.log" \
 
33009
"ovs-vswitchd.log" \
 
33010
"flows.txt"
 
33011
$at_traceon; }
 
33012
 
 
33013
 
 
33014
flow="in_port($p2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
33015
{ set +x
 
33016
$as_echo "$at_srcdir/ofproto-dpif.at:477: ovs-appctl ofproto/trace br0 \"\$flow\""
 
33017
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:477"
 
33018
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
33019
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33020
at_status=$? at_failed=false
 
33021
$at_check_filter
 
33022
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33023
echo stdout:; tee stdout <"$at_stdout"
 
33024
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:477"
 
33025
$at_failed && at_fn_log_failure  \
 
33026
"ovsdb-server.log" \
 
33027
"ovs-vswitchd.log" \
 
33028
"flows.txt"
 
33029
$at_traceon; }
 
33030
 
 
33031
{ set +x
 
33032
$as_echo "$at_srcdir/ofproto-dpif.at:478: tail -1 stdout"
 
33033
at_fn_check_prepare_trace "ofproto-dpif.at:478"
 
33034
( $at_check_trace; tail -1 stdout
 
33035
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33036
at_status=$? at_failed=false
 
33037
$at_check_filter
 
33038
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33039
echo >>"$at_stdout"; $as_echo "Datapath actions: $p1
 
33040
" | \
 
33041
  $at_diff - "$at_stdout" || at_failed=:
 
33042
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:478"
 
33043
$at_failed && at_fn_log_failure  \
 
33044
"ovsdb-server.log" \
 
33045
"ovs-vswitchd.log" \
 
33046
"flows.txt"
 
33047
$at_traceon; }
 
33048
 
 
33049
{ set +x
 
33050
$as_echo "$at_srcdir/ofproto-dpif.at:481: ovs-appctl -t ovs-vswitchd exit"
 
33051
at_fn_check_prepare_trace "ofproto-dpif.at:481"
 
33052
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
33053
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33054
at_status=$? at_failed=false
 
33055
$at_check_filter
 
33056
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33057
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33058
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:481"
 
33059
$at_failed && at_fn_log_failure  \
 
33060
"ovsdb-server.log" \
 
33061
"ovs-vswitchd.log" \
 
33062
"flows.txt"
 
33063
$at_traceon; }
 
33064
 
 
33065
   { set +x
 
33066
$as_echo "$at_srcdir/ofproto-dpif.at:481: ovs-appctl -t ovsdb-server exit"
 
33067
at_fn_check_prepare_trace "ofproto-dpif.at:481"
 
33068
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
33069
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33070
at_status=$? at_failed=false
 
33071
$at_check_filter
 
33072
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33073
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33074
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:481"
 
33075
$at_failed && at_fn_log_failure  \
 
33076
"ovsdb-server.log" \
 
33077
"ovs-vswitchd.log" \
 
33078
"flows.txt"
 
33079
$at_traceon; }
 
33080
 
 
33081
   trap '' 0
 
33082
  set +x
 
33083
  $at_times_p && times >"$at_times_file"
 
33084
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
33085
read at_status <"$at_status_file"
 
33086
#AT_STOP_396
 
33087
#AT_START_397
 
33088
at_fn_group_banner 397 'ofproto-dpif.at:484' \
 
33089
  "ofproto-dpif - mirroring, OFPP_NONE ingress port" "" 34
 
33090
at_xfail=no
 
33091
(
 
33092
  $as_echo "397. $at_setup_line: testing $at_desc ..."
 
33093
  $at_traceon
 
33094
 
 
33095
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
33096
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
33097
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
33098
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
33099
 
 
33100
      mkdir openvswitch
 
33101
   touch openvswitch/.conf.db.~lock~
 
33102
   { set +x
 
33103
$as_echo "$at_srcdir/ofproto-dpif.at:485: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
33104
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:485"
 
33105
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
33106
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33107
at_status=$? at_failed=false
 
33108
$at_check_filter
 
33109
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33110
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33111
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:485"
 
33112
$at_failed && at_fn_log_failure
 
33113
$at_traceon; }
 
33114
 
 
33115
 
 
33116
      { set +x
 
33117
$as_echo "$at_srcdir/ofproto-dpif.at:485: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
33118
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:485"
 
33119
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
33120
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33121
at_status=$? at_failed=false
 
33122
$at_check_filter
 
33123
echo stderr:; tee stderr <"$at_stderr"
 
33124
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33125
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:485"
 
33126
$at_failed && at_fn_log_failure
 
33127
$at_traceon; }
 
33128
 
 
33129
   { set +x
 
33130
$as_echo "$at_srcdir/ofproto-dpif.at:485: sed < stderr '/vlog|INFO|opened log file/d'"
 
33131
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:485"
 
33132
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
33133
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33134
at_status=$? at_failed=false
 
33135
$at_check_filter
 
33136
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33137
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33138
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:485"
 
33139
$at_failed && at_fn_log_failure
 
33140
$at_traceon; }
 
33141
 
 
33142
 
 
33143
 
 
33144
      { set +x
 
33145
$as_echo "$at_srcdir/ofproto-dpif.at:485: ovs-vsctl --no-wait init"
 
33146
at_fn_check_prepare_trace "ofproto-dpif.at:485"
 
33147
( $at_check_trace; ovs-vsctl --no-wait init
 
33148
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33149
at_status=$? at_failed=false
 
33150
$at_check_filter
 
33151
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33152
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33153
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:485"
 
33154
$at_failed && at_fn_log_failure  \
 
33155
"ovsdb-server.log"
 
33156
$at_traceon; }
 
33157
 
 
33158
 
 
33159
      { set +x
 
33160
$as_echo "$at_srcdir/ofproto-dpif.at:485: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
33161
at_fn_check_prepare_trace "ofproto-dpif.at:485"
 
33162
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
33163
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33164
at_status=$? at_failed=false
 
33165
$at_check_filter
 
33166
echo stderr:; tee stderr <"$at_stderr"
 
33167
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33168
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:485"
 
33169
$at_failed && at_fn_log_failure  \
 
33170
"ovsdb-server.log"
 
33171
$at_traceon; }
 
33172
 
 
33173
 
 
33174
   { set +x
 
33175
$as_echo "$at_srcdir/ofproto-dpif.at:485: sed < stderr '
 
33176
/vlog|INFO|opened log file/d
 
33177
/reconnect|INFO|/d
 
33178
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
33179
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
33180
/ofproto|INFO|using datapath ID/d
 
33181
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
33182
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:485"
 
33183
( $at_check_trace; sed < stderr '
 
33184
/vlog|INFO|opened log file/d
 
33185
/reconnect|INFO|/d
 
33186
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
33187
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
33188
/ofproto|INFO|using datapath ID/d
 
33189
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
33190
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33191
at_status=$? at_failed=false
 
33192
$at_check_filter
 
33193
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33194
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33195
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:485"
 
33196
$at_failed && at_fn_log_failure  \
 
33197
"ovsdb-server.log" \
 
33198
"ovs-vswitchd.log"
 
33199
$at_traceon; }
 
33200
 
 
33201
 
 
33202
      { set +x
 
33203
$as_echo "$at_srcdir/ofproto-dpif.at:485: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
33204
at_fn_check_prepare_trace "ofproto-dpif.at:485"
 
33205
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
33206
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33207
at_status=$? at_failed=false
 
33208
$at_check_filter
 
33209
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33210
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33211
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:485"
 
33212
$at_failed && at_fn_log_failure  \
 
33213
"ovsdb-server.log" \
 
33214
"ovs-vswitchd.log"
 
33215
$at_traceon; }
 
33216
 
 
33217
 
 
33218
{ set +x
 
33219
$as_echo "$at_srcdir/ofproto-dpif.at:486: ovs-vsctl \\
 
33220
        add-port br0 p1 -- set Interface p1 type=dummy --\\
 
33221
        add-port br0 p2 -- set Interface p2 type=dummy --\\
 
33222
        set Bridge br0 mirrors=@m --\\
 
33223
        --id=@p2 get Port p2 --\\
 
33224
        --id=@m create Mirror name=mymirror \\
 
33225
        select_all=true output_port=@p2 "
 
33226
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:486"
 
33227
( $at_check_trace; ovs-vsctl \
 
33228
        add-port br0 p1 -- set Interface p1 type=dummy --\
 
33229
        add-port br0 p2 -- set Interface p2 type=dummy --\
 
33230
        set Bridge br0 mirrors=@m --\
 
33231
        --id=@p2 get Port p2 --\
 
33232
        --id=@m create Mirror name=mymirror \
 
33233
        select_all=true output_port=@p2
 
33234
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33235
at_status=$? at_failed=false
 
33236
$at_check_filter
 
33237
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33238
echo stdout:; tee stdout <"$at_stdout"
 
33239
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:486"
 
33240
$at_failed && at_fn_log_failure  \
 
33241
"ovsdb-server.log" \
 
33242
"ovs-vswitchd.log"
 
33243
$at_traceon; }
 
33244
 
 
33245
{ set +x
 
33246
$as_echo "$at_srcdir/ofproto-dpif.at:493: perl \$srcdir/uuidfilt.pl stdout"
 
33247
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ofproto-dpif.at:493"
 
33248
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
33249
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33250
at_status=$? at_failed=false
 
33251
$at_check_filter
 
33252
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33253
echo >>"$at_stdout"; $as_echo "<0>
 
33254
" | \
 
33255
  $at_diff - "$at_stdout" || at_failed=:
 
33256
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:493"
 
33257
$at_failed && at_fn_log_failure  \
 
33258
"ovsdb-server.log" \
 
33259
"ovs-vswitchd.log"
 
33260
$at_traceon; }
 
33261
 
 
33262
 
 
33263
{ set +x
 
33264
$as_echo "$at_srcdir/ofproto-dpif.at:497: ovs-vsctl \\
 
33265
        -- get Interface p1 ofport \\
 
33266
        -- get Interface p2 ofport"
 
33267
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:497"
 
33268
( $at_check_trace; ovs-vsctl \
 
33269
        -- get Interface p1 ofport \
 
33270
        -- get Interface p2 ofport
 
33271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33272
at_status=$? at_failed=false
 
33273
$at_check_filter
 
33274
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33275
echo stdout:; tee stdout <"$at_stdout"
 
33276
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:497"
 
33277
$at_failed && at_fn_log_failure  \
 
33278
"ovsdb-server.log" \
 
33279
"ovs-vswitchd.log"
 
33280
$at_traceon; }
 
33281
 
 
33282
set `cat stdout`
 
33283
p1=$1 p2=$2
 
33284
 
 
33285
{ set +x
 
33286
$as_echo "$at_srcdir/ofproto-dpif.at:505: ovs-ofctl add-flow br0 action=output:\$p1"
 
33287
at_fn_check_prepare_dynamic "ovs-ofctl add-flow br0 action=output:$p1" "ofproto-dpif.at:505"
 
33288
( $at_check_trace; ovs-ofctl add-flow br0 action=output:$p1
 
33289
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33290
at_status=$? at_failed=false
 
33291
$at_check_filter
 
33292
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33293
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33294
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:505"
 
33295
$at_failed && at_fn_log_failure  \
 
33296
"ovsdb-server.log" \
 
33297
"ovs-vswitchd.log"
 
33298
$at_traceon; }
 
33299
 
 
33300
 
 
33301
# "in_port" defaults to OFPP_NONE if it's not specified.
 
33302
flow="eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
33303
{ set +x
 
33304
$as_echo "$at_srcdir/ofproto-dpif.at:509: ovs-appctl ofproto/trace br0 \"\$flow\""
 
33305
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:509"
 
33306
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
33307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33308
at_status=$? at_failed=false
 
33309
$at_check_filter
 
33310
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33311
echo stdout:; tee stdout <"$at_stdout"
 
33312
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:509"
 
33313
$at_failed && at_fn_log_failure  \
 
33314
"ovsdb-server.log" \
 
33315
"ovs-vswitchd.log"
 
33316
$at_traceon; }
 
33317
 
 
33318
{ set +x
 
33319
$as_echo "$at_srcdir/ofproto-dpif.at:510: tail -1 stdout"
 
33320
at_fn_check_prepare_trace "ofproto-dpif.at:510"
 
33321
( $at_check_trace; tail -1 stdout
 
33322
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33323
at_status=$? at_failed=false
 
33324
$at_check_filter
 
33325
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33326
echo >>"$at_stdout"; $as_echo "Datapath actions: $p1,$p2
 
33327
" | \
 
33328
  $at_diff - "$at_stdout" || at_failed=:
 
33329
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:510"
 
33330
$at_failed && at_fn_log_failure  \
 
33331
"ovsdb-server.log" \
 
33332
"ovs-vswitchd.log"
 
33333
$at_traceon; }
 
33334
 
 
33335
 
 
33336
{ set +x
 
33337
$as_echo "$at_srcdir/ofproto-dpif.at:514: ovs-appctl -t ovs-vswitchd exit"
 
33338
at_fn_check_prepare_trace "ofproto-dpif.at:514"
 
33339
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
33340
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33341
at_status=$? at_failed=false
 
33342
$at_check_filter
 
33343
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33344
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33345
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:514"
 
33346
$at_failed && at_fn_log_failure  \
 
33347
"ovsdb-server.log" \
 
33348
"ovs-vswitchd.log"
 
33349
$at_traceon; }
 
33350
 
 
33351
   { set +x
 
33352
$as_echo "$at_srcdir/ofproto-dpif.at:514: ovs-appctl -t ovsdb-server exit"
 
33353
at_fn_check_prepare_trace "ofproto-dpif.at:514"
 
33354
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
33355
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33356
at_status=$? at_failed=false
 
33357
$at_check_filter
 
33358
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33359
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33360
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:514"
 
33361
$at_failed && at_fn_log_failure  \
 
33362
"ovsdb-server.log" \
 
33363
"ovs-vswitchd.log"
 
33364
$at_traceon; }
 
33365
 
 
33366
   trap '' 0
 
33367
  set +x
 
33368
  $at_times_p && times >"$at_times_file"
 
33369
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
33370
read at_status <"$at_status_file"
 
33371
#AT_STOP_397
 
33372
#AT_START_398
 
33373
at_fn_group_banner 398 'ofproto-dpif.at:518' \
 
33374
  "ofproto-dpif - mirroring, select_dst" "           " 34
 
33375
at_xfail=no
 
33376
(
 
33377
  $as_echo "398. $at_setup_line: testing $at_desc ..."
 
33378
  $at_traceon
 
33379
 
 
33380
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
33381
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
33382
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
33383
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
33384
 
 
33385
      mkdir openvswitch
 
33386
   touch openvswitch/.conf.db.~lock~
 
33387
   { set +x
 
33388
$as_echo "$at_srcdir/ofproto-dpif.at:519: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
33389
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:519"
 
33390
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
33391
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33392
at_status=$? at_failed=false
 
33393
$at_check_filter
 
33394
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33395
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33396
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:519"
 
33397
$at_failed && at_fn_log_failure
 
33398
$at_traceon; }
 
33399
 
 
33400
 
 
33401
      { set +x
 
33402
$as_echo "$at_srcdir/ofproto-dpif.at:519: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
33403
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:519"
 
33404
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
33405
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33406
at_status=$? at_failed=false
 
33407
$at_check_filter
 
33408
echo stderr:; tee stderr <"$at_stderr"
 
33409
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33410
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:519"
 
33411
$at_failed && at_fn_log_failure
 
33412
$at_traceon; }
 
33413
 
 
33414
   { set +x
 
33415
$as_echo "$at_srcdir/ofproto-dpif.at:519: sed < stderr '/vlog|INFO|opened log file/d'"
 
33416
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:519"
 
33417
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
33418
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33419
at_status=$? at_failed=false
 
33420
$at_check_filter
 
33421
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33422
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33423
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:519"
 
33424
$at_failed && at_fn_log_failure
 
33425
$at_traceon; }
 
33426
 
 
33427
 
 
33428
 
 
33429
      { set +x
 
33430
$as_echo "$at_srcdir/ofproto-dpif.at:519: ovs-vsctl --no-wait init"
 
33431
at_fn_check_prepare_trace "ofproto-dpif.at:519"
 
33432
( $at_check_trace; ovs-vsctl --no-wait init
 
33433
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33434
at_status=$? at_failed=false
 
33435
$at_check_filter
 
33436
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33437
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33438
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:519"
 
33439
$at_failed && at_fn_log_failure  \
 
33440
"ovsdb-server.log"
 
33441
$at_traceon; }
 
33442
 
 
33443
 
 
33444
      { set +x
 
33445
$as_echo "$at_srcdir/ofproto-dpif.at:519: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
33446
at_fn_check_prepare_trace "ofproto-dpif.at:519"
 
33447
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
33448
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33449
at_status=$? at_failed=false
 
33450
$at_check_filter
 
33451
echo stderr:; tee stderr <"$at_stderr"
 
33452
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33453
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:519"
 
33454
$at_failed && at_fn_log_failure  \
 
33455
"ovsdb-server.log"
 
33456
$at_traceon; }
 
33457
 
 
33458
 
 
33459
   { set +x
 
33460
$as_echo "$at_srcdir/ofproto-dpif.at:519: sed < stderr '
 
33461
/vlog|INFO|opened log file/d
 
33462
/reconnect|INFO|/d
 
33463
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
33464
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
33465
/ofproto|INFO|using datapath ID/d
 
33466
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
33467
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:519"
 
33468
( $at_check_trace; sed < stderr '
 
33469
/vlog|INFO|opened log file/d
 
33470
/reconnect|INFO|/d
 
33471
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
33472
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
33473
/ofproto|INFO|using datapath ID/d
 
33474
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
33475
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33476
at_status=$? at_failed=false
 
33477
$at_check_filter
 
33478
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33479
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33480
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:519"
 
33481
$at_failed && at_fn_log_failure  \
 
33482
"ovsdb-server.log" \
 
33483
"ovs-vswitchd.log"
 
33484
$at_traceon; }
 
33485
 
 
33486
 
 
33487
      { set +x
 
33488
$as_echo "$at_srcdir/ofproto-dpif.at:519: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
33489
at_fn_check_prepare_trace "ofproto-dpif.at:519"
 
33490
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
33491
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33492
at_status=$? at_failed=false
 
33493
$at_check_filter
 
33494
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33495
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33496
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:519"
 
33497
$at_failed && at_fn_log_failure  \
 
33498
"ovsdb-server.log" \
 
33499
"ovs-vswitchd.log"
 
33500
$at_traceon; }
 
33501
 
 
33502
 
 
33503
{ set +x
 
33504
$as_echo "$at_srcdir/ofproto-dpif.at:520: ovs-vsctl \\
 
33505
        add-port br0 p1 -- set Interface p1 type=dummy --\\
 
33506
        add-port br0 p2 -- set Interface p2 type=dummy --\\
 
33507
        add-port br0 p3 -- set Interface p3 type=dummy --\\
 
33508
        set Bridge br0 mirrors=@m --\\
 
33509
        --id=@p2 get Port p2 -- --id=@p3 get Port p3 --\\
 
33510
        --id=@m create Mirror name=mymirror \\
 
33511
        select_dst_port=@p2 output_port=@p3 "
 
33512
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:520"
 
33513
( $at_check_trace; ovs-vsctl \
 
33514
        add-port br0 p1 -- set Interface p1 type=dummy --\
 
33515
        add-port br0 p2 -- set Interface p2 type=dummy --\
 
33516
        add-port br0 p3 -- set Interface p3 type=dummy --\
 
33517
        set Bridge br0 mirrors=@m --\
 
33518
        --id=@p2 get Port p2 -- --id=@p3 get Port p3 --\
 
33519
        --id=@m create Mirror name=mymirror \
 
33520
        select_dst_port=@p2 output_port=@p3
 
33521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33522
at_status=$? at_failed=false
 
33523
$at_check_filter
 
33524
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33525
echo stdout:; tee stdout <"$at_stdout"
 
33526
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:520"
 
33527
$at_failed && at_fn_log_failure  \
 
33528
"ovsdb-server.log" \
 
33529
"ovs-vswitchd.log"
 
33530
$at_traceon; }
 
33531
 
 
33532
{ set +x
 
33533
$as_echo "$at_srcdir/ofproto-dpif.at:528: perl \$srcdir/uuidfilt.pl stdout"
 
33534
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ofproto-dpif.at:528"
 
33535
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
33536
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33537
at_status=$? at_failed=false
 
33538
$at_check_filter
 
33539
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33540
echo >>"$at_stdout"; $as_echo "<0>
 
33541
" | \
 
33542
  $at_diff - "$at_stdout" || at_failed=:
 
33543
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:528"
 
33544
$at_failed && at_fn_log_failure  \
 
33545
"ovsdb-server.log" \
 
33546
"ovs-vswitchd.log"
 
33547
$at_traceon; }
 
33548
 
 
33549
 
 
33550
{ set +x
 
33551
$as_echo "$at_srcdir/ofproto-dpif.at:532: ovs-vsctl \\
 
33552
        -- get Interface p1 ofport \\
 
33553
        -- get Interface p2 ofport \\
 
33554
        -- get Interface p3 ofport"
 
33555
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:532"
 
33556
( $at_check_trace; ovs-vsctl \
 
33557
        -- get Interface p1 ofport \
 
33558
        -- get Interface p2 ofport \
 
33559
        -- get Interface p3 ofport
 
33560
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33561
at_status=$? at_failed=false
 
33562
$at_check_filter
 
33563
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33564
echo stdout:; tee stdout <"$at_stdout"
 
33565
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:532"
 
33566
$at_failed && at_fn_log_failure  \
 
33567
"ovsdb-server.log" \
 
33568
"ovs-vswitchd.log"
 
33569
$at_traceon; }
 
33570
 
 
33571
set `cat stdout`
 
33572
p1=$1 p2=$2 p3=$3
 
33573
 
 
33574
cat > flows.txt <<EOF
 
33575
in_port=$p1 actions=output:$p2
 
33576
in_port=$p2 actions=output:$p1
 
33577
EOF
 
33578
AT
 
33579
 
 
33580
{ set +x
 
33581
$as_echo "$at_srcdir/ofproto-dpif.at:547: ovs-ofctl add-flows br0 flows.txt"
 
33582
at_fn_check_prepare_trace "ofproto-dpif.at:547"
 
33583
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
33584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33585
at_status=$? at_failed=false
 
33586
$at_check_filter
 
33587
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33588
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33589
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:547"
 
33590
$at_failed && at_fn_log_failure  \
 
33591
"ovsdb-server.log" \
 
33592
"ovs-vswitchd.log" \
 
33593
"flows.txt"
 
33594
$at_traceon; }
 
33595
 
 
33596
 
 
33597
flow="in_port($p1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
33598
{ set +x
 
33599
$as_echo "$at_srcdir/ofproto-dpif.at:550: ovs-appctl ofproto/trace br0 \"\$flow\""
 
33600
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:550"
 
33601
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
33602
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33603
at_status=$? at_failed=false
 
33604
$at_check_filter
 
33605
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33606
echo stdout:; tee stdout <"$at_stdout"
 
33607
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:550"
 
33608
$at_failed && at_fn_log_failure  \
 
33609
"ovsdb-server.log" \
 
33610
"ovs-vswitchd.log" \
 
33611
"flows.txt"
 
33612
$at_traceon; }
 
33613
 
 
33614
{ set +x
 
33615
$as_echo "$at_srcdir/ofproto-dpif.at:551: tail -1 stdout"
 
33616
at_fn_check_prepare_trace "ofproto-dpif.at:551"
 
33617
( $at_check_trace; tail -1 stdout
 
33618
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33619
at_status=$? at_failed=false
 
33620
$at_check_filter
 
33621
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33622
echo >>"$at_stdout"; $as_echo "Datapath actions: $p2,$p3
 
33623
" | \
 
33624
  $at_diff - "$at_stdout" || at_failed=:
 
33625
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:551"
 
33626
$at_failed && at_fn_log_failure  \
 
33627
"ovsdb-server.log" \
 
33628
"ovs-vswitchd.log" \
 
33629
"flows.txt"
 
33630
$at_traceon; }
 
33631
 
 
33632
 
 
33633
flow="in_port($p2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
33634
{ set +x
 
33635
$as_echo "$at_srcdir/ofproto-dpif.at:556: ovs-appctl ofproto/trace br0 \"\$flow\""
 
33636
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:556"
 
33637
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
33638
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33639
at_status=$? at_failed=false
 
33640
$at_check_filter
 
33641
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33642
echo stdout:; tee stdout <"$at_stdout"
 
33643
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:556"
 
33644
$at_failed && at_fn_log_failure  \
 
33645
"ovsdb-server.log" \
 
33646
"ovs-vswitchd.log" \
 
33647
"flows.txt"
 
33648
$at_traceon; }
 
33649
 
 
33650
{ set +x
 
33651
$as_echo "$at_srcdir/ofproto-dpif.at:557: tail -1 stdout"
 
33652
at_fn_check_prepare_trace "ofproto-dpif.at:557"
 
33653
( $at_check_trace; tail -1 stdout
 
33654
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33655
at_status=$? at_failed=false
 
33656
$at_check_filter
 
33657
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33658
echo >>"$at_stdout"; $as_echo "Datapath actions: $p1
 
33659
" | \
 
33660
  $at_diff - "$at_stdout" || at_failed=:
 
33661
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:557"
 
33662
$at_failed && at_fn_log_failure  \
 
33663
"ovsdb-server.log" \
 
33664
"ovs-vswitchd.log" \
 
33665
"flows.txt"
 
33666
$at_traceon; }
 
33667
 
 
33668
 
 
33669
{ set +x
 
33670
$as_echo "$at_srcdir/ofproto-dpif.at:561: ovs-appctl -t ovs-vswitchd exit"
 
33671
at_fn_check_prepare_trace "ofproto-dpif.at:561"
 
33672
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
33673
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33674
at_status=$? at_failed=false
 
33675
$at_check_filter
 
33676
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33677
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33678
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:561"
 
33679
$at_failed && at_fn_log_failure  \
 
33680
"ovsdb-server.log" \
 
33681
"ovs-vswitchd.log" \
 
33682
"flows.txt"
 
33683
$at_traceon; }
 
33684
 
 
33685
   { set +x
 
33686
$as_echo "$at_srcdir/ofproto-dpif.at:561: ovs-appctl -t ovsdb-server exit"
 
33687
at_fn_check_prepare_trace "ofproto-dpif.at:561"
 
33688
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
33689
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33690
at_status=$? at_failed=false
 
33691
$at_check_filter
 
33692
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33693
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33694
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:561"
 
33695
$at_failed && at_fn_log_failure  \
 
33696
"ovsdb-server.log" \
 
33697
"ovs-vswitchd.log" \
 
33698
"flows.txt"
 
33699
$at_traceon; }
 
33700
 
 
33701
   trap '' 0
 
33702
  set +x
 
33703
  $at_times_p && times >"$at_times_file"
 
33704
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
33705
read at_status <"$at_status_file"
 
33706
#AT_STOP_398
 
33707
#AT_START_399
 
33708
at_fn_group_banner 399 'ofproto-dpif.at:565' \
 
33709
  "ofproto-dpif - mirroring, select_vlan" "          " 34
 
33710
at_xfail=no
 
33711
(
 
33712
  $as_echo "399. $at_setup_line: testing $at_desc ..."
 
33713
  $at_traceon
 
33714
 
 
33715
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
33716
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
33717
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
33718
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
33719
 
 
33720
      mkdir openvswitch
 
33721
   touch openvswitch/.conf.db.~lock~
 
33722
   { set +x
 
33723
$as_echo "$at_srcdir/ofproto-dpif.at:566: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
33724
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:566"
 
33725
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
33726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33727
at_status=$? at_failed=false
 
33728
$at_check_filter
 
33729
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33730
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33731
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:566"
 
33732
$at_failed && at_fn_log_failure
 
33733
$at_traceon; }
 
33734
 
 
33735
 
 
33736
      { set +x
 
33737
$as_echo "$at_srcdir/ofproto-dpif.at:566: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
33738
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:566"
 
33739
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
33740
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33741
at_status=$? at_failed=false
 
33742
$at_check_filter
 
33743
echo stderr:; tee stderr <"$at_stderr"
 
33744
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33745
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:566"
 
33746
$at_failed && at_fn_log_failure
 
33747
$at_traceon; }
 
33748
 
 
33749
   { set +x
 
33750
$as_echo "$at_srcdir/ofproto-dpif.at:566: sed < stderr '/vlog|INFO|opened log file/d'"
 
33751
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:566"
 
33752
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
33753
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33754
at_status=$? at_failed=false
 
33755
$at_check_filter
 
33756
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33757
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33758
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:566"
 
33759
$at_failed && at_fn_log_failure
 
33760
$at_traceon; }
 
33761
 
 
33762
 
 
33763
 
 
33764
      { set +x
 
33765
$as_echo "$at_srcdir/ofproto-dpif.at:566: ovs-vsctl --no-wait init"
 
33766
at_fn_check_prepare_trace "ofproto-dpif.at:566"
 
33767
( $at_check_trace; ovs-vsctl --no-wait init
 
33768
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33769
at_status=$? at_failed=false
 
33770
$at_check_filter
 
33771
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33772
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33773
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:566"
 
33774
$at_failed && at_fn_log_failure  \
 
33775
"ovsdb-server.log"
 
33776
$at_traceon; }
 
33777
 
 
33778
 
 
33779
      { set +x
 
33780
$as_echo "$at_srcdir/ofproto-dpif.at:566: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
33781
at_fn_check_prepare_trace "ofproto-dpif.at:566"
 
33782
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
33783
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33784
at_status=$? at_failed=false
 
33785
$at_check_filter
 
33786
echo stderr:; tee stderr <"$at_stderr"
 
33787
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33788
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:566"
 
33789
$at_failed && at_fn_log_failure  \
 
33790
"ovsdb-server.log"
 
33791
$at_traceon; }
 
33792
 
 
33793
 
 
33794
   { set +x
 
33795
$as_echo "$at_srcdir/ofproto-dpif.at:566: sed < stderr '
 
33796
/vlog|INFO|opened log file/d
 
33797
/reconnect|INFO|/d
 
33798
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
33799
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
33800
/ofproto|INFO|using datapath ID/d
 
33801
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
33802
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:566"
 
33803
( $at_check_trace; sed < stderr '
 
33804
/vlog|INFO|opened log file/d
 
33805
/reconnect|INFO|/d
 
33806
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
33807
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
33808
/ofproto|INFO|using datapath ID/d
 
33809
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
33810
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33811
at_status=$? at_failed=false
 
33812
$at_check_filter
 
33813
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33814
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33815
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:566"
 
33816
$at_failed && at_fn_log_failure  \
 
33817
"ovsdb-server.log" \
 
33818
"ovs-vswitchd.log"
 
33819
$at_traceon; }
 
33820
 
 
33821
 
 
33822
      { set +x
 
33823
$as_echo "$at_srcdir/ofproto-dpif.at:566: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
33824
at_fn_check_prepare_trace "ofproto-dpif.at:566"
 
33825
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
33826
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33827
at_status=$? at_failed=false
 
33828
$at_check_filter
 
33829
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33830
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33831
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:566"
 
33832
$at_failed && at_fn_log_failure  \
 
33833
"ovsdb-server.log" \
 
33834
"ovs-vswitchd.log"
 
33835
$at_traceon; }
 
33836
 
 
33837
 
 
33838
{ set +x
 
33839
$as_echo "$at_srcdir/ofproto-dpif.at:567: ovs-vsctl \\
 
33840
        add-port br0 p1 -- set Interface p1 type=dummy --\\
 
33841
        add-port br0 p2 -- set Interface p2 type=dummy --\\
 
33842
        add-port br0 p3 -- set Interface p3 type=dummy --\\
 
33843
        set Bridge br0 mirrors=@m --\\
 
33844
        --id=@p2 get Port p2 -- --id=@p3 get Port p3 --\\
 
33845
        --id=@m create Mirror name=mymirror \\
 
33846
        select_all=true select_vlan=11 output_port=@p3 "
 
33847
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:567"
 
33848
( $at_check_trace; ovs-vsctl \
 
33849
        add-port br0 p1 -- set Interface p1 type=dummy --\
 
33850
        add-port br0 p2 -- set Interface p2 type=dummy --\
 
33851
        add-port br0 p3 -- set Interface p3 type=dummy --\
 
33852
        set Bridge br0 mirrors=@m --\
 
33853
        --id=@p2 get Port p2 -- --id=@p3 get Port p3 --\
 
33854
        --id=@m create Mirror name=mymirror \
 
33855
        select_all=true select_vlan=11 output_port=@p3
 
33856
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33857
at_status=$? at_failed=false
 
33858
$at_check_filter
 
33859
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33860
echo stdout:; tee stdout <"$at_stdout"
 
33861
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:567"
 
33862
$at_failed && at_fn_log_failure  \
 
33863
"ovsdb-server.log" \
 
33864
"ovs-vswitchd.log"
 
33865
$at_traceon; }
 
33866
 
 
33867
{ set +x
 
33868
$as_echo "$at_srcdir/ofproto-dpif.at:575: perl \$srcdir/uuidfilt.pl stdout"
 
33869
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ofproto-dpif.at:575"
 
33870
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
33871
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33872
at_status=$? at_failed=false
 
33873
$at_check_filter
 
33874
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33875
echo >>"$at_stdout"; $as_echo "<0>
 
33876
" | \
 
33877
  $at_diff - "$at_stdout" || at_failed=:
 
33878
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:575"
 
33879
$at_failed && at_fn_log_failure  \
 
33880
"ovsdb-server.log" \
 
33881
"ovs-vswitchd.log"
 
33882
$at_traceon; }
 
33883
 
 
33884
 
 
33885
{ set +x
 
33886
$as_echo "$at_srcdir/ofproto-dpif.at:579: ovs-vsctl \\
 
33887
        -- get Interface p1 ofport \\
 
33888
        -- get Interface p2 ofport \\
 
33889
        -- get Interface p3 ofport"
 
33890
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:579"
 
33891
( $at_check_trace; ovs-vsctl \
 
33892
        -- get Interface p1 ofport \
 
33893
        -- get Interface p2 ofport \
 
33894
        -- get Interface p3 ofport
 
33895
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33896
at_status=$? at_failed=false
 
33897
$at_check_filter
 
33898
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33899
echo stdout:; tee stdout <"$at_stdout"
 
33900
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:579"
 
33901
$at_failed && at_fn_log_failure  \
 
33902
"ovsdb-server.log" \
 
33903
"ovs-vswitchd.log"
 
33904
$at_traceon; }
 
33905
 
 
33906
set `cat stdout`
 
33907
p1=$1 p2=$2 p3=$3
 
33908
 
 
33909
cat > flows.txt <<EOF
 
33910
in_port=$p1 actions=output:$p2
 
33911
EOF
 
33912
AT
 
33913
 
 
33914
{ set +x
 
33915
$as_echo "$at_srcdir/ofproto-dpif.at:593: ovs-ofctl add-flows br0 flows.txt"
 
33916
at_fn_check_prepare_trace "ofproto-dpif.at:593"
 
33917
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
33918
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33919
at_status=$? at_failed=false
 
33920
$at_check_filter
 
33921
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33922
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
33923
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:593"
 
33924
$at_failed && at_fn_log_failure  \
 
33925
"ovsdb-server.log" \
 
33926
"ovs-vswitchd.log" \
 
33927
"flows.txt"
 
33928
$at_traceon; }
 
33929
 
 
33930
 
 
33931
flow="in_port($p1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
33932
{ set +x
 
33933
$as_echo "$at_srcdir/ofproto-dpif.at:596: ovs-appctl ofproto/trace br0 \"\$flow\""
 
33934
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:596"
 
33935
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
33936
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33937
at_status=$? at_failed=false
 
33938
$at_check_filter
 
33939
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33940
echo stdout:; tee stdout <"$at_stdout"
 
33941
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:596"
 
33942
$at_failed && at_fn_log_failure  \
 
33943
"ovsdb-server.log" \
 
33944
"ovs-vswitchd.log" \
 
33945
"flows.txt"
 
33946
$at_traceon; }
 
33947
 
 
33948
{ set +x
 
33949
$as_echo "$at_srcdir/ofproto-dpif.at:597: tail -1 stdout"
 
33950
at_fn_check_prepare_trace "ofproto-dpif.at:597"
 
33951
( $at_check_trace; tail -1 stdout
 
33952
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33953
at_status=$? at_failed=false
 
33954
$at_check_filter
 
33955
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33956
echo >>"$at_stdout"; $as_echo "Datapath actions: $p2
 
33957
" | \
 
33958
  $at_diff - "$at_stdout" || at_failed=:
 
33959
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:597"
 
33960
$at_failed && at_fn_log_failure  \
 
33961
"ovsdb-server.log" \
 
33962
"ovs-vswitchd.log" \
 
33963
"flows.txt"
 
33964
$at_traceon; }
 
33965
 
 
33966
 
 
33967
flow="in_port($p1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x8100),vlan(vid=10,pcp=0),encap(eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0))"
 
33968
{ set +x
 
33969
$as_echo "$at_srcdir/ofproto-dpif.at:602: ovs-appctl ofproto/trace br0 \"\$flow\""
 
33970
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:602"
 
33971
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
33972
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33973
at_status=$? at_failed=false
 
33974
$at_check_filter
 
33975
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33976
echo stdout:; tee stdout <"$at_stdout"
 
33977
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:602"
 
33978
$at_failed && at_fn_log_failure  \
 
33979
"ovsdb-server.log" \
 
33980
"ovs-vswitchd.log" \
 
33981
"flows.txt"
 
33982
$at_traceon; }
 
33983
 
 
33984
{ set +x
 
33985
$as_echo "$at_srcdir/ofproto-dpif.at:603: tail -1 stdout"
 
33986
at_fn_check_prepare_trace "ofproto-dpif.at:603"
 
33987
( $at_check_trace; tail -1 stdout
 
33988
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
33989
at_status=$? at_failed=false
 
33990
$at_check_filter
 
33991
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
33992
echo >>"$at_stdout"; $as_echo "Datapath actions: $p2
 
33993
" | \
 
33994
  $at_diff - "$at_stdout" || at_failed=:
 
33995
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:603"
 
33996
$at_failed && at_fn_log_failure  \
 
33997
"ovsdb-server.log" \
 
33998
"ovs-vswitchd.log" \
 
33999
"flows.txt"
 
34000
$at_traceon; }
 
34001
 
 
34002
 
 
34003
flow="in_port($p1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x8100),vlan(vid=11,pcp=0),encap(eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0))"
 
34004
{ set +x
 
34005
$as_echo "$at_srcdir/ofproto-dpif.at:608: ovs-appctl ofproto/trace br0 \"\$flow\""
 
34006
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:608"
 
34007
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
34008
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34009
at_status=$? at_failed=false
 
34010
$at_check_filter
 
34011
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34012
echo stdout:; tee stdout <"$at_stdout"
 
34013
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:608"
 
34014
$at_failed && at_fn_log_failure  \
 
34015
"ovsdb-server.log" \
 
34016
"ovs-vswitchd.log" \
 
34017
"flows.txt"
 
34018
$at_traceon; }
 
34019
 
 
34020
{ set +x
 
34021
$as_echo "$at_srcdir/ofproto-dpif.at:609: tail -1 stdout"
 
34022
at_fn_check_prepare_trace "ofproto-dpif.at:609"
 
34023
( $at_check_trace; tail -1 stdout
 
34024
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34025
at_status=$? at_failed=false
 
34026
$at_check_filter
 
34027
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34028
echo >>"$at_stdout"; $as_echo "Datapath actions: $p2,$p3
 
34029
" | \
 
34030
  $at_diff - "$at_stdout" || at_failed=:
 
34031
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:609"
 
34032
$at_failed && at_fn_log_failure  \
 
34033
"ovsdb-server.log" \
 
34034
"ovs-vswitchd.log" \
 
34035
"flows.txt"
 
34036
$at_traceon; }
 
34037
 
 
34038
 
 
34039
{ set +x
 
34040
$as_echo "$at_srcdir/ofproto-dpif.at:613: ovs-appctl -t ovs-vswitchd exit"
 
34041
at_fn_check_prepare_trace "ofproto-dpif.at:613"
 
34042
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
34043
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34044
at_status=$? at_failed=false
 
34045
$at_check_filter
 
34046
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34047
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34048
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:613"
 
34049
$at_failed && at_fn_log_failure  \
 
34050
"ovsdb-server.log" \
 
34051
"ovs-vswitchd.log" \
 
34052
"flows.txt"
 
34053
$at_traceon; }
 
34054
 
 
34055
   { set +x
 
34056
$as_echo "$at_srcdir/ofproto-dpif.at:613: ovs-appctl -t ovsdb-server exit"
 
34057
at_fn_check_prepare_trace "ofproto-dpif.at:613"
 
34058
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
34059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34060
at_status=$? at_failed=false
 
34061
$at_check_filter
 
34062
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34063
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34064
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:613"
 
34065
$at_failed && at_fn_log_failure  \
 
34066
"ovsdb-server.log" \
 
34067
"ovs-vswitchd.log" \
 
34068
"flows.txt"
 
34069
$at_traceon; }
 
34070
 
 
34071
   trap '' 0
 
34072
  set +x
 
34073
  $at_times_p && times >"$at_times_file"
 
34074
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
34075
read at_status <"$at_status_file"
 
34076
#AT_STOP_399
 
34077
#AT_START_400
 
34078
at_fn_group_banner 400 'ofproto-dpif.at:617' \
 
34079
  "ofproto-dpif - mirroring, output_port" "          " 34
 
34080
at_xfail=no
 
34081
(
 
34082
  $as_echo "400. $at_setup_line: testing $at_desc ..."
 
34083
  $at_traceon
 
34084
 
 
34085
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
34086
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
34087
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
34088
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
34089
 
 
34090
      mkdir openvswitch
 
34091
   touch openvswitch/.conf.db.~lock~
 
34092
   { set +x
 
34093
$as_echo "$at_srcdir/ofproto-dpif.at:618: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
34094
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:618"
 
34095
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
34096
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34097
at_status=$? at_failed=false
 
34098
$at_check_filter
 
34099
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34100
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34101
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:618"
 
34102
$at_failed && at_fn_log_failure
 
34103
$at_traceon; }
 
34104
 
 
34105
 
 
34106
      { set +x
 
34107
$as_echo "$at_srcdir/ofproto-dpif.at:618: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
34108
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:618"
 
34109
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
34110
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34111
at_status=$? at_failed=false
 
34112
$at_check_filter
 
34113
echo stderr:; tee stderr <"$at_stderr"
 
34114
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34115
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:618"
 
34116
$at_failed && at_fn_log_failure
 
34117
$at_traceon; }
 
34118
 
 
34119
   { set +x
 
34120
$as_echo "$at_srcdir/ofproto-dpif.at:618: sed < stderr '/vlog|INFO|opened log file/d'"
 
34121
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:618"
 
34122
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
34123
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34124
at_status=$? at_failed=false
 
34125
$at_check_filter
 
34126
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34127
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34128
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:618"
 
34129
$at_failed && at_fn_log_failure
 
34130
$at_traceon; }
 
34131
 
 
34132
 
 
34133
 
 
34134
      { set +x
 
34135
$as_echo "$at_srcdir/ofproto-dpif.at:618: ovs-vsctl --no-wait init"
 
34136
at_fn_check_prepare_trace "ofproto-dpif.at:618"
 
34137
( $at_check_trace; ovs-vsctl --no-wait init
 
34138
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34139
at_status=$? at_failed=false
 
34140
$at_check_filter
 
34141
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34142
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34143
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:618"
 
34144
$at_failed && at_fn_log_failure  \
 
34145
"ovsdb-server.log"
 
34146
$at_traceon; }
 
34147
 
 
34148
 
 
34149
      { set +x
 
34150
$as_echo "$at_srcdir/ofproto-dpif.at:618: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
34151
at_fn_check_prepare_trace "ofproto-dpif.at:618"
 
34152
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
34153
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34154
at_status=$? at_failed=false
 
34155
$at_check_filter
 
34156
echo stderr:; tee stderr <"$at_stderr"
 
34157
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34158
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:618"
 
34159
$at_failed && at_fn_log_failure  \
 
34160
"ovsdb-server.log"
 
34161
$at_traceon; }
 
34162
 
 
34163
 
 
34164
   { set +x
 
34165
$as_echo "$at_srcdir/ofproto-dpif.at:618: sed < stderr '
 
34166
/vlog|INFO|opened log file/d
 
34167
/reconnect|INFO|/d
 
34168
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
34169
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
34170
/ofproto|INFO|using datapath ID/d
 
34171
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
34172
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:618"
 
34173
( $at_check_trace; sed < stderr '
 
34174
/vlog|INFO|opened log file/d
 
34175
/reconnect|INFO|/d
 
34176
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
34177
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
34178
/ofproto|INFO|using datapath ID/d
 
34179
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
34180
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34181
at_status=$? at_failed=false
 
34182
$at_check_filter
 
34183
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34184
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34185
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:618"
 
34186
$at_failed && at_fn_log_failure  \
 
34187
"ovsdb-server.log" \
 
34188
"ovs-vswitchd.log"
 
34189
$at_traceon; }
 
34190
 
 
34191
 
 
34192
      { set +x
 
34193
$as_echo "$at_srcdir/ofproto-dpif.at:618: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
34194
at_fn_check_prepare_trace "ofproto-dpif.at:618"
 
34195
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
34196
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34197
at_status=$? at_failed=false
 
34198
$at_check_filter
 
34199
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34200
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34201
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:618"
 
34202
$at_failed && at_fn_log_failure  \
 
34203
"ovsdb-server.log" \
 
34204
"ovs-vswitchd.log"
 
34205
$at_traceon; }
 
34206
 
 
34207
 
 
34208
{ set +x
 
34209
$as_echo "$at_srcdir/ofproto-dpif.at:619: ovs-vsctl \\
 
34210
        add-port br0 p1 -- set Interface p1 type=dummy --\\
 
34211
        add-port br0 p2 -- set Interface p2 type=dummy --\\
 
34212
        add-port br0 p3 -- set Interface p3 type=dummy --\\
 
34213
        set Bridge br0 mirrors=@m --\\
 
34214
        --id=@p3 get Port p3 --\\
 
34215
        --id=@m create Mirror name=mymirror \\
 
34216
        select_all=true output_port=@p3 "
 
34217
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:619"
 
34218
( $at_check_trace; ovs-vsctl \
 
34219
        add-port br0 p1 -- set Interface p1 type=dummy --\
 
34220
        add-port br0 p2 -- set Interface p2 type=dummy --\
 
34221
        add-port br0 p3 -- set Interface p3 type=dummy --\
 
34222
        set Bridge br0 mirrors=@m --\
 
34223
        --id=@p3 get Port p3 --\
 
34224
        --id=@m create Mirror name=mymirror \
 
34225
        select_all=true output_port=@p3
 
34226
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34227
at_status=$? at_failed=false
 
34228
$at_check_filter
 
34229
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34230
echo stdout:; tee stdout <"$at_stdout"
 
34231
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:619"
 
34232
$at_failed && at_fn_log_failure  \
 
34233
"ovsdb-server.log" \
 
34234
"ovs-vswitchd.log"
 
34235
$at_traceon; }
 
34236
 
 
34237
{ set +x
 
34238
$as_echo "$at_srcdir/ofproto-dpif.at:627: perl \$srcdir/uuidfilt.pl stdout"
 
34239
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ofproto-dpif.at:627"
 
34240
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
34241
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34242
at_status=$? at_failed=false
 
34243
$at_check_filter
 
34244
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34245
echo >>"$at_stdout"; $as_echo "<0>
 
34246
" | \
 
34247
  $at_diff - "$at_stdout" || at_failed=:
 
34248
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:627"
 
34249
$at_failed && at_fn_log_failure  \
 
34250
"ovsdb-server.log" \
 
34251
"ovs-vswitchd.log"
 
34252
$at_traceon; }
 
34253
 
 
34254
 
 
34255
{ set +x
 
34256
$as_echo "$at_srcdir/ofproto-dpif.at:631: ovs-vsctl \\
 
34257
        -- get Interface p1 ofport \\
 
34258
        -- get Interface p2 ofport \\
 
34259
        -- get Interface p3 ofport"
 
34260
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:631"
 
34261
( $at_check_trace; ovs-vsctl \
 
34262
        -- get Interface p1 ofport \
 
34263
        -- get Interface p2 ofport \
 
34264
        -- get Interface p3 ofport
 
34265
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34266
at_status=$? at_failed=false
 
34267
$at_check_filter
 
34268
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34269
echo stdout:; tee stdout <"$at_stdout"
 
34270
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:631"
 
34271
$at_failed && at_fn_log_failure  \
 
34272
"ovsdb-server.log" \
 
34273
"ovs-vswitchd.log"
 
34274
$at_traceon; }
 
34275
 
 
34276
set `cat stdout`
 
34277
p1=$1 p2=$2 p3=$3
 
34278
 
 
34279
cat > flows.txt <<EOF
 
34280
in_port=$p1 actions=mod_vlan_vid:17,output:$p2
 
34281
in_port=$p2 actions=output:$p1
 
34282
EOF
 
34283
AT
 
34284
 
 
34285
{ set +x
 
34286
$as_echo "$at_srcdir/ofproto-dpif.at:646: ovs-ofctl add-flows br0 flows.txt"
 
34287
at_fn_check_prepare_trace "ofproto-dpif.at:646"
 
34288
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
34289
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34290
at_status=$? at_failed=false
 
34291
$at_check_filter
 
34292
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34293
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34294
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:646"
 
34295
$at_failed && at_fn_log_failure  \
 
34296
"ovsdb-server.log" \
 
34297
"ovs-vswitchd.log" \
 
34298
"flows.txt"
 
34299
$at_traceon; }
 
34300
 
 
34301
 
 
34302
flow="in_port($p1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
34303
{ set +x
 
34304
$as_echo "$at_srcdir/ofproto-dpif.at:649: ovs-appctl ofproto/trace br0 \"\$flow\""
 
34305
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:649"
 
34306
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
34307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34308
at_status=$? at_failed=false
 
34309
$at_check_filter
 
34310
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34311
echo stdout:; tee stdout <"$at_stdout"
 
34312
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:649"
 
34313
$at_failed && at_fn_log_failure  \
 
34314
"ovsdb-server.log" \
 
34315
"ovs-vswitchd.log" \
 
34316
"flows.txt"
 
34317
$at_traceon; }
 
34318
 
 
34319
{ set +x
 
34320
$as_echo "$at_srcdir/ofproto-dpif.at:650: tail -1 stdout"
 
34321
at_fn_check_prepare_trace "ofproto-dpif.at:650"
 
34322
( $at_check_trace; tail -1 stdout
 
34323
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34324
at_status=$? at_failed=false
 
34325
$at_check_filter
 
34326
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34327
echo >>"$at_stdout"; $as_echo "Datapath actions: push_vlan(vid=17,pcp=0),$p2,pop_vlan,$p3
 
34328
" | \
 
34329
  $at_diff - "$at_stdout" || at_failed=:
 
34330
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:650"
 
34331
$at_failed && at_fn_log_failure  \
 
34332
"ovsdb-server.log" \
 
34333
"ovs-vswitchd.log" \
 
34334
"flows.txt"
 
34335
$at_traceon; }
 
34336
 
 
34337
 
 
34338
flow="in_port($p2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
34339
{ set +x
 
34340
$as_echo "$at_srcdir/ofproto-dpif.at:655: ovs-appctl ofproto/trace br0 \"\$flow\""
 
34341
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:655"
 
34342
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
34343
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34344
at_status=$? at_failed=false
 
34345
$at_check_filter
 
34346
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34347
echo stdout:; tee stdout <"$at_stdout"
 
34348
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:655"
 
34349
$at_failed && at_fn_log_failure  \
 
34350
"ovsdb-server.log" \
 
34351
"ovs-vswitchd.log" \
 
34352
"flows.txt"
 
34353
$at_traceon; }
 
34354
 
 
34355
{ set +x
 
34356
$as_echo "$at_srcdir/ofproto-dpif.at:656: tail -1 stdout"
 
34357
at_fn_check_prepare_trace "ofproto-dpif.at:656"
 
34358
( $at_check_trace; tail -1 stdout
 
34359
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34360
at_status=$? at_failed=false
 
34361
$at_check_filter
 
34362
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34363
echo >>"$at_stdout"; $as_echo "Datapath actions: $p1,$p3
 
34364
" | \
 
34365
  $at_diff - "$at_stdout" || at_failed=:
 
34366
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:656"
 
34367
$at_failed && at_fn_log_failure  \
 
34368
"ovsdb-server.log" \
 
34369
"ovs-vswitchd.log" \
 
34370
"flows.txt"
 
34371
$at_traceon; }
 
34372
 
 
34373
 
 
34374
{ set +x
 
34375
$as_echo "$at_srcdir/ofproto-dpif.at:660: ovs-appctl -t ovs-vswitchd exit"
 
34376
at_fn_check_prepare_trace "ofproto-dpif.at:660"
 
34377
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
34378
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34379
at_status=$? at_failed=false
 
34380
$at_check_filter
 
34381
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34382
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34383
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:660"
 
34384
$at_failed && at_fn_log_failure  \
 
34385
"ovsdb-server.log" \
 
34386
"ovs-vswitchd.log" \
 
34387
"flows.txt"
 
34388
$at_traceon; }
 
34389
 
 
34390
   { set +x
 
34391
$as_echo "$at_srcdir/ofproto-dpif.at:660: ovs-appctl -t ovsdb-server exit"
 
34392
at_fn_check_prepare_trace "ofproto-dpif.at:660"
 
34393
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
34394
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34395
at_status=$? at_failed=false
 
34396
$at_check_filter
 
34397
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34398
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34399
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:660"
 
34400
$at_failed && at_fn_log_failure  \
 
34401
"ovsdb-server.log" \
 
34402
"ovs-vswitchd.log" \
 
34403
"flows.txt"
 
34404
$at_traceon; }
 
34405
 
 
34406
   trap '' 0
 
34407
  set +x
 
34408
  $at_times_p && times >"$at_times_file"
 
34409
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
34410
read at_status <"$at_status_file"
 
34411
#AT_STOP_400
 
34412
#AT_START_401
 
34413
at_fn_group_banner 401 'ofproto-dpif.at:664' \
 
34414
  "ofproto-dpif - mirroring, output_vlan" "          " 34
 
34415
at_xfail=no
 
34416
(
 
34417
  $as_echo "401. $at_setup_line: testing $at_desc ..."
 
34418
  $at_traceon
 
34419
 
 
34420
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
34421
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
34422
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
34423
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
34424
 
 
34425
      mkdir openvswitch
 
34426
   touch openvswitch/.conf.db.~lock~
 
34427
   { set +x
 
34428
$as_echo "$at_srcdir/ofproto-dpif.at:665: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
34429
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:665"
 
34430
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
34431
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34432
at_status=$? at_failed=false
 
34433
$at_check_filter
 
34434
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34435
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34436
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:665"
 
34437
$at_failed && at_fn_log_failure
 
34438
$at_traceon; }
 
34439
 
 
34440
 
 
34441
      { set +x
 
34442
$as_echo "$at_srcdir/ofproto-dpif.at:665: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
34443
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:665"
 
34444
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
34445
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34446
at_status=$? at_failed=false
 
34447
$at_check_filter
 
34448
echo stderr:; tee stderr <"$at_stderr"
 
34449
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34450
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:665"
 
34451
$at_failed && at_fn_log_failure
 
34452
$at_traceon; }
 
34453
 
 
34454
   { set +x
 
34455
$as_echo "$at_srcdir/ofproto-dpif.at:665: sed < stderr '/vlog|INFO|opened log file/d'"
 
34456
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:665"
 
34457
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
34458
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34459
at_status=$? at_failed=false
 
34460
$at_check_filter
 
34461
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34462
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34463
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:665"
 
34464
$at_failed && at_fn_log_failure
 
34465
$at_traceon; }
 
34466
 
 
34467
 
 
34468
 
 
34469
      { set +x
 
34470
$as_echo "$at_srcdir/ofproto-dpif.at:665: ovs-vsctl --no-wait init"
 
34471
at_fn_check_prepare_trace "ofproto-dpif.at:665"
 
34472
( $at_check_trace; ovs-vsctl --no-wait init
 
34473
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34474
at_status=$? at_failed=false
 
34475
$at_check_filter
 
34476
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34477
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34478
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:665"
 
34479
$at_failed && at_fn_log_failure  \
 
34480
"ovsdb-server.log"
 
34481
$at_traceon; }
 
34482
 
 
34483
 
 
34484
      { set +x
 
34485
$as_echo "$at_srcdir/ofproto-dpif.at:665: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
34486
at_fn_check_prepare_trace "ofproto-dpif.at:665"
 
34487
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
34488
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34489
at_status=$? at_failed=false
 
34490
$at_check_filter
 
34491
echo stderr:; tee stderr <"$at_stderr"
 
34492
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34493
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:665"
 
34494
$at_failed && at_fn_log_failure  \
 
34495
"ovsdb-server.log"
 
34496
$at_traceon; }
 
34497
 
 
34498
 
 
34499
   { set +x
 
34500
$as_echo "$at_srcdir/ofproto-dpif.at:665: sed < stderr '
 
34501
/vlog|INFO|opened log file/d
 
34502
/reconnect|INFO|/d
 
34503
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
34504
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
34505
/ofproto|INFO|using datapath ID/d
 
34506
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
34507
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:665"
 
34508
( $at_check_trace; sed < stderr '
 
34509
/vlog|INFO|opened log file/d
 
34510
/reconnect|INFO|/d
 
34511
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
34512
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
34513
/ofproto|INFO|using datapath ID/d
 
34514
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
34515
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34516
at_status=$? at_failed=false
 
34517
$at_check_filter
 
34518
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34519
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34520
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:665"
 
34521
$at_failed && at_fn_log_failure  \
 
34522
"ovsdb-server.log" \
 
34523
"ovs-vswitchd.log"
 
34524
$at_traceon; }
 
34525
 
 
34526
 
 
34527
      { set +x
 
34528
$as_echo "$at_srcdir/ofproto-dpif.at:665: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- "
 
34529
at_fn_check_prepare_trace "ofproto-dpif.at:665"
 
34530
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure --
 
34531
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34532
at_status=$? at_failed=false
 
34533
$at_check_filter
 
34534
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34535
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34536
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:665"
 
34537
$at_failed && at_fn_log_failure  \
 
34538
"ovsdb-server.log" \
 
34539
"ovs-vswitchd.log"
 
34540
$at_traceon; }
 
34541
 
 
34542
 
 
34543
{ set +x
 
34544
$as_echo "$at_srcdir/ofproto-dpif.at:666: ovs-vsctl \\
 
34545
        add-port br0 p1 -- set Interface p1 type=dummy --\\
 
34546
        add-port br0 p2 -- set Interface p2 type=dummy --\\
 
34547
        set Bridge br0 mirrors=@m --\\
 
34548
        --id=@m create Mirror name=mymirror \\
 
34549
        select_all=true output_vlan=12 "
 
34550
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:666"
 
34551
( $at_check_trace; ovs-vsctl \
 
34552
        add-port br0 p1 -- set Interface p1 type=dummy --\
 
34553
        add-port br0 p2 -- set Interface p2 type=dummy --\
 
34554
        set Bridge br0 mirrors=@m --\
 
34555
        --id=@m create Mirror name=mymirror \
 
34556
        select_all=true output_vlan=12
 
34557
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34558
at_status=$? at_failed=false
 
34559
$at_check_filter
 
34560
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34561
echo stdout:; tee stdout <"$at_stdout"
 
34562
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:666"
 
34563
$at_failed && at_fn_log_failure  \
 
34564
"ovsdb-server.log" \
 
34565
"ovs-vswitchd.log"
 
34566
$at_traceon; }
 
34567
 
 
34568
{ set +x
 
34569
$as_echo "$at_srcdir/ofproto-dpif.at:672: perl \$srcdir/uuidfilt.pl stdout"
 
34570
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ofproto-dpif.at:672"
 
34571
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
34572
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34573
at_status=$? at_failed=false
 
34574
$at_check_filter
 
34575
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34576
echo >>"$at_stdout"; $as_echo "<0>
 
34577
" | \
 
34578
  $at_diff - "$at_stdout" || at_failed=:
 
34579
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:672"
 
34580
$at_failed && at_fn_log_failure  \
 
34581
"ovsdb-server.log" \
 
34582
"ovs-vswitchd.log"
 
34583
$at_traceon; }
 
34584
 
 
34585
 
 
34586
{ set +x
 
34587
$as_echo "$at_srcdir/ofproto-dpif.at:676: ovs-vsctl \\
 
34588
        -- get Interface p1 ofport \\
 
34589
        -- get Interface p2 ofport"
 
34590
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:676"
 
34591
( $at_check_trace; ovs-vsctl \
 
34592
        -- get Interface p1 ofport \
 
34593
        -- get Interface p2 ofport
 
34594
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34595
at_status=$? at_failed=false
 
34596
$at_check_filter
 
34597
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34598
echo stdout:; tee stdout <"$at_stdout"
 
34599
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:676"
 
34600
$at_failed && at_fn_log_failure  \
 
34601
"ovsdb-server.log" \
 
34602
"ovs-vswitchd.log"
 
34603
$at_traceon; }
 
34604
 
 
34605
set `cat stdout`
 
34606
br0=0 p1=$1 p2=$2
 
34607
 
 
34608
cat > flows.txt <<EOF
 
34609
in_port=$p1 actions=output:$p2
 
34610
in_port=$p2 actions=mod_vlan_vid:17,output:$p1
 
34611
EOF
 
34612
AT
 
34613
 
 
34614
{ set +x
 
34615
$as_echo "$at_srcdir/ofproto-dpif.at:690: ovs-ofctl add-flows br0 flows.txt"
 
34616
at_fn_check_prepare_trace "ofproto-dpif.at:690"
 
34617
( $at_check_trace; ovs-ofctl add-flows br0 flows.txt
 
34618
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34619
at_status=$? at_failed=false
 
34620
$at_check_filter
 
34621
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34622
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34623
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:690"
 
34624
$at_failed && at_fn_log_failure  \
 
34625
"ovsdb-server.log" \
 
34626
"ovs-vswitchd.log" \
 
34627
"flows.txt"
 
34628
$at_traceon; }
 
34629
 
 
34630
 
 
34631
flow="in_port($p1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
34632
{ set +x
 
34633
$as_echo "$at_srcdir/ofproto-dpif.at:693: ovs-appctl ofproto/trace br0 \"\$flow\""
 
34634
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:693"
 
34635
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
34636
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34637
at_status=$? at_failed=false
 
34638
$at_check_filter
 
34639
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34640
echo stdout:; tee stdout <"$at_stdout"
 
34641
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:693"
 
34642
$at_failed && at_fn_log_failure  \
 
34643
"ovsdb-server.log" \
 
34644
"ovs-vswitchd.log" \
 
34645
"flows.txt"
 
34646
$at_traceon; }
 
34647
 
 
34648
actual=`tail -1 stdout | sed 's/Datapath actions: //'`
 
34649
 
 
34650
expected="$p2,push_vlan(vid=12,pcp=0),$br0,$p1,$p2"
 
34651
{ set +x
 
34652
$as_echo "$at_srcdir/ofproto-dpif.at:697: ovs-dpctl normalize-actions \"\$flow\" \"\$expected\" br0=\$br0 p1=\$p1 p2=\$p2"
 
34653
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$expected\" br0=$br0 p1=$p1 p2=$p2" "ofproto-dpif.at:697"
 
34654
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$expected" br0=$br0 p1=$p1 p2=$p2
 
34655
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34656
at_status=$? at_failed=false
 
34657
$at_check_filter
 
34658
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34659
echo stdout:; tee stdout <"$at_stdout"
 
34660
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:697"
 
34661
$at_failed && at_fn_log_failure  \
 
34662
"ovsdb-server.log" \
 
34663
"ovs-vswitchd.log" \
 
34664
"flows.txt"
 
34665
$at_traceon; }
 
34666
 
 
34667
mv stdout expout
 
34668
{ set +x
 
34669
$as_echo "$at_srcdir/ofproto-dpif.at:699: ovs-dpctl normalize-actions \"\$flow\" \"\$actual\" br0=\$br0 p1=\$p1 p2=\$p2"
 
34670
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$actual\" br0=$br0 p1=$p1 p2=$p2" "ofproto-dpif.at:699"
 
34671
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$actual" br0=$br0 p1=$p1 p2=$p2
 
34672
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34673
at_status=$? at_failed=false
 
34674
$at_check_filter
 
34675
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34676
$at_diff expout "$at_stdout" || at_failed=:
 
34677
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:699"
 
34678
$at_failed && at_fn_log_failure  \
 
34679
"ovsdb-server.log" \
 
34680
"ovs-vswitchd.log" \
 
34681
"flows.txt"
 
34682
$at_traceon; }
 
34683
 
 
34684
 
 
34685
flow="in_port($p2),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=1,tos=0,ttl=128,frag=no),icmp(type=8,code=0)"
 
34686
{ set +x
 
34687
$as_echo "$at_srcdir/ofproto-dpif.at:702: ovs-appctl ofproto/trace br0 \"\$flow\""
 
34688
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\"" "ofproto-dpif.at:702"
 
34689
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow"
 
34690
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34691
at_status=$? at_failed=false
 
34692
$at_check_filter
 
34693
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34694
echo stdout:; tee stdout <"$at_stdout"
 
34695
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:702"
 
34696
$at_failed && at_fn_log_failure  \
 
34697
"ovsdb-server.log" \
 
34698
"ovs-vswitchd.log" \
 
34699
"flows.txt"
 
34700
$at_traceon; }
 
34701
 
 
34702
actual=`tail -1 stdout | sed 's/Datapath actions: //'`
 
34703
 
 
34704
expected="push_vlan(vid=17,pcp=0),$p1,pop_vlan,push_vlan(vid=12,pcp=0),$br0,$p1,$p2"
 
34705
{ set +x
 
34706
$as_echo "$at_srcdir/ofproto-dpif.at:706: ovs-dpctl normalize-actions \"\$flow\" \"\$expected\" br0=\$br0 p1=\$p1 p2=\$p2"
 
34707
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$expected\" br0=$br0 p1=$p1 p2=$p2" "ofproto-dpif.at:706"
 
34708
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$expected" br0=$br0 p1=$p1 p2=$p2
 
34709
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34710
at_status=$? at_failed=false
 
34711
$at_check_filter
 
34712
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34713
echo stdout:; tee stdout <"$at_stdout"
 
34714
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:706"
 
34715
$at_failed && at_fn_log_failure  \
 
34716
"ovsdb-server.log" \
 
34717
"ovs-vswitchd.log" \
 
34718
"flows.txt"
 
34719
$at_traceon; }
 
34720
 
 
34721
mv stdout expout
 
34722
{ set +x
 
34723
$as_echo "$at_srcdir/ofproto-dpif.at:708: ovs-dpctl normalize-actions \"\$flow\" \"\$actual\" br0=\$br0 p1=\$p1 p2=\$p2"
 
34724
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$actual\" br0=$br0 p1=$p1 p2=$p2" "ofproto-dpif.at:708"
 
34725
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$actual" br0=$br0 p1=$p1 p2=$p2
 
34726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34727
at_status=$? at_failed=false
 
34728
$at_check_filter
 
34729
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34730
$at_diff expout "$at_stdout" || at_failed=:
 
34731
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:708"
 
34732
$at_failed && at_fn_log_failure  \
 
34733
"ovsdb-server.log" \
 
34734
"ovs-vswitchd.log" \
 
34735
"flows.txt"
 
34736
$at_traceon; }
 
34737
 
 
34738
 
 
34739
{ set +x
 
34740
$as_echo "$at_srcdir/ofproto-dpif.at:710: ovs-appctl -t ovs-vswitchd exit"
 
34741
at_fn_check_prepare_trace "ofproto-dpif.at:710"
 
34742
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
34743
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34744
at_status=$? at_failed=false
 
34745
$at_check_filter
 
34746
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34747
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34748
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:710"
 
34749
$at_failed && at_fn_log_failure  \
 
34750
"ovsdb-server.log" \
 
34751
"ovs-vswitchd.log" \
 
34752
"flows.txt"
 
34753
$at_traceon; }
 
34754
 
 
34755
   { set +x
 
34756
$as_echo "$at_srcdir/ofproto-dpif.at:710: ovs-appctl -t ovsdb-server exit"
 
34757
at_fn_check_prepare_trace "ofproto-dpif.at:710"
 
34758
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
34759
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34760
at_status=$? at_failed=false
 
34761
$at_check_filter
 
34762
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34763
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34764
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:710"
 
34765
$at_failed && at_fn_log_failure  \
 
34766
"ovsdb-server.log" \
 
34767
"ovs-vswitchd.log" \
 
34768
"flows.txt"
 
34769
$at_traceon; }
 
34770
 
 
34771
   trap '' 0
 
34772
  set +x
 
34773
  $at_times_p && times >"$at_times_file"
 
34774
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
34775
read at_status <"$at_status_file"
 
34776
#AT_STOP_401
 
34777
#AT_START_402
 
34778
at_fn_group_banner 402 'ofproto-dpif.at:724' \
 
34779
  "ofproto-dpif - MAC learning" "                    " 34
 
34780
at_xfail=no
 
34781
(
 
34782
  $as_echo "402. $at_setup_line: testing $at_desc ..."
 
34783
  $at_traceon
 
34784
 
 
34785
OVS_RUNDIR=$PWD; export OVS_RUNDIR
 
34786
   OVS_LOGDIR=$PWD; export OVS_LOGDIR
 
34787
   OVS_SYSCONFDIR=$PWD; export OVS_SYSCONFDIR
 
34788
   trap 'kill `cat ovsdb-server.pid ovs-vswitchd.pid`' 0
 
34789
 
 
34790
      mkdir openvswitch
 
34791
   touch openvswitch/.conf.db.~lock~
 
34792
   { set +x
 
34793
$as_echo "$at_srcdir/ofproto-dpif.at:725: ovsdb-tool create openvswitch/conf.db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
34794
at_fn_check_prepare_dynamic "ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ofproto-dpif.at:725"
 
34795
( $at_check_trace; ovsdb-tool create openvswitch/conf.db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
34796
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34797
at_status=$? at_failed=false
 
34798
$at_check_filter
 
34799
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34800
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34801
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:725"
 
34802
$at_failed && at_fn_log_failure
 
34803
$at_traceon; }
 
34804
 
 
34805
 
 
34806
      { set +x
 
34807
$as_echo "$at_srcdir/ofproto-dpif.at:725: ovsdb-server --detach --pidfile --log-file --remote=punix:\$OVS_RUNDIR/db.sock"
 
34808
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock" "ofproto-dpif.at:725"
 
34809
( $at_check_trace; ovsdb-server --detach --pidfile --log-file --remote=punix:$OVS_RUNDIR/db.sock
 
34810
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34811
at_status=$? at_failed=false
 
34812
$at_check_filter
 
34813
echo stderr:; tee stderr <"$at_stderr"
 
34814
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34815
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:725"
 
34816
$at_failed && at_fn_log_failure
 
34817
$at_traceon; }
 
34818
 
 
34819
   { set +x
 
34820
$as_echo "$at_srcdir/ofproto-dpif.at:725: sed < stderr '/vlog|INFO|opened log file/d'"
 
34821
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:725"
 
34822
( $at_check_trace; sed < stderr '/vlog|INFO|opened log file/d'
 
34823
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34824
at_status=$? at_failed=false
 
34825
$at_check_filter
 
34826
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34827
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34828
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:725"
 
34829
$at_failed && at_fn_log_failure
 
34830
$at_traceon; }
 
34831
 
 
34832
 
 
34833
 
 
34834
      { set +x
 
34835
$as_echo "$at_srcdir/ofproto-dpif.at:725: ovs-vsctl --no-wait init"
 
34836
at_fn_check_prepare_trace "ofproto-dpif.at:725"
 
34837
( $at_check_trace; ovs-vsctl --no-wait init
 
34838
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34839
at_status=$? at_failed=false
 
34840
$at_check_filter
 
34841
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34842
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34843
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:725"
 
34844
$at_failed && at_fn_log_failure  \
 
34845
"ovsdb-server.log"
 
34846
$at_traceon; }
 
34847
 
 
34848
 
 
34849
      { set +x
 
34850
$as_echo "$at_srcdir/ofproto-dpif.at:725: ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file"
 
34851
at_fn_check_prepare_trace "ofproto-dpif.at:725"
 
34852
( $at_check_trace; ovs-vswitchd --detach --pidfile --enable-dummy --disable-system --log-file
 
34853
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34854
at_status=$? at_failed=false
 
34855
$at_check_filter
 
34856
echo stderr:; tee stderr <"$at_stderr"
 
34857
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34858
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:725"
 
34859
$at_failed && at_fn_log_failure  \
 
34860
"ovsdb-server.log"
 
34861
$at_traceon; }
 
34862
 
 
34863
 
 
34864
   { set +x
 
34865
$as_echo "$at_srcdir/ofproto-dpif.at:725: sed < stderr '
 
34866
/vlog|INFO|opened log file/d
 
34867
/reconnect|INFO|/d
 
34868
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
34869
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
34870
/ofproto|INFO|using datapath ID/d
 
34871
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'"
 
34872
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:725"
 
34873
( $at_check_trace; sed < stderr '
 
34874
/vlog|INFO|opened log file/d
 
34875
/reconnect|INFO|/d
 
34876
/dpif_linux|ERR|Generic Netlink family.*does not exist/d
 
34877
/dpif|WARN|failed to enumerate system datapaths: No such file or directory/d
 
34878
/ofproto|INFO|using datapath ID/d
 
34879
/ofproto|INFO|datapath ID changed to fedcba9876543210/d'
 
34880
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34881
at_status=$? at_failed=false
 
34882
$at_check_filter
 
34883
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34884
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34885
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:725"
 
34886
$at_failed && at_fn_log_failure  \
 
34887
"ovsdb-server.log" \
 
34888
"ovs-vswitchd.log"
 
34889
$at_traceon; }
 
34890
 
 
34891
 
 
34892
      { set +x
 
34893
$as_echo "$at_srcdir/ofproto-dpif.at:725: ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- set bridge br0 fail-mode=standalone -- \\
 
34894
   add-port br0 p1 -- set Interface p1 type=dummy -- \\
 
34895
   add-port br0 p2 -- set Interface p2 type=dummy -- \\
 
34896
   add-port br0 p3 -- set Interface p3 type=dummy"
 
34897
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:725"
 
34898
( $at_check_trace; ovs-vsctl -- add-br br0 -- set bridge br0 datapath-type=dummy other-config:datapath-id=fedcba9876543210 other-config:hwaddr=aa:55:aa:55:00:00 fail-mode=secure -- set bridge br0 fail-mode=standalone -- \
 
34899
   add-port br0 p1 -- set Interface p1 type=dummy -- \
 
34900
   add-port br0 p2 -- set Interface p2 type=dummy -- \
 
34901
   add-port br0 p3 -- set Interface p3 type=dummy
 
34902
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34903
at_status=$? at_failed=false
 
34904
$at_check_filter
 
34905
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34906
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
34907
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:725"
 
34908
$at_failed && at_fn_log_failure  \
 
34909
"ovsdb-server.log" \
 
34910
"ovs-vswitchd.log"
 
34911
$at_traceon; }
 
34912
 
 
34913
 
 
34914
 
 
34915
{ set +x
 
34916
$as_echo "$at_srcdir/ofproto-dpif.at:731: ovs-vsctl \\
 
34917
        -- get Interface p1 ofport \\
 
34918
        -- get Interface p2 ofport \\
 
34919
        -- get Interface p3 ofport"
 
34920
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:731"
 
34921
( $at_check_trace; ovs-vsctl \
 
34922
        -- get Interface p1 ofport \
 
34923
        -- get Interface p2 ofport \
 
34924
        -- get Interface p3 ofport
 
34925
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34926
at_status=$? at_failed=false
 
34927
$at_check_filter
 
34928
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34929
echo stdout:; tee stdout <"$at_stdout"
 
34930
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:731"
 
34931
$at_failed && at_fn_log_failure  \
 
34932
"ovsdb-server.log" \
 
34933
"ovs-vswitchd.log"
 
34934
$at_traceon; }
 
34935
 
 
34936
set `cat stdout`
 
34937
br0=0 p1=$1 p2=$2 p3=$3
 
34938
arp='eth_type(0x0806),arp(sip=192.168.0.1,tip=192.168.0.2,op=1,sha=50:54:00:00:00:05,tha=00:00:00:00:00:00)'
 
34939
 
 
34940
# Trace an ARP packet arriving on p3, to create a MAC learning entry.
 
34941
flow="in_port($p3),eth(src=50:54:00:00:00:05,dst=ff:ff:ff:ff:ff:ff),$arp"
 
34942
   { set +x
 
34943
$as_echo "$at_srcdir/ofproto-dpif.at:742: ovs-appctl ofproto/trace br0 \"\$flow\" -generate"
 
34944
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\" -generate" "ofproto-dpif.at:742"
 
34945
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow" -generate
 
34946
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34947
at_status=$? at_failed=false
 
34948
$at_check_filter
 
34949
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34950
echo stdout:; tee stdout <"$at_stdout"
 
34951
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:742"
 
34952
$at_failed && at_fn_log_failure  \
 
34953
"ovsdb-server.log" \
 
34954
"ovs-vswitchd.log"
 
34955
$at_traceon; }
 
34956
 
 
34957
   actual=`tail -1 stdout | sed 's/Datapath actions: //'`
 
34958
   expected="$br0,$p1,$p2"
 
34959
   { set +x
 
34960
$as_echo "$at_srcdir/ofproto-dpif.at:742: ovs-dpctl normalize-actions \"\$flow\" \"\$expected\" br0=\$br0 p1=\$p1 p2=\$p2 p3=\$p3"
 
34961
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$expected\" br0=$br0 p1=$p1 p2=$p2 p3=$p3" "ofproto-dpif.at:742"
 
34962
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$expected" br0=$br0 p1=$p1 p2=$p2 p3=$p3
 
34963
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34964
at_status=$? at_failed=false
 
34965
$at_check_filter
 
34966
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34967
echo stdout:; tee stdout <"$at_stdout"
 
34968
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:742"
 
34969
$at_failed && at_fn_log_failure  \
 
34970
"ovsdb-server.log" \
 
34971
"ovs-vswitchd.log"
 
34972
$at_traceon; }
 
34973
 
 
34974
   mv stdout expout
 
34975
   { set +x
 
34976
$as_echo "$at_srcdir/ofproto-dpif.at:742: ovs-dpctl normalize-actions \"\$flow\" \"\$actual\" br0=\$br0 p1=\$p1 p2=\$p2 p3=\$p3"
 
34977
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$actual\" br0=$br0 p1=$p1 p2=$p2 p3=$p3" "ofproto-dpif.at:742"
 
34978
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$actual" br0=$br0 p1=$p1 p2=$p2 p3=$p3
 
34979
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34980
at_status=$? at_failed=false
 
34981
$at_check_filter
 
34982
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
34983
$at_diff expout "$at_stdout" || at_failed=:
 
34984
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:742"
 
34985
$at_failed && at_fn_log_failure  \
 
34986
"ovsdb-server.log" \
 
34987
"ovs-vswitchd.log"
 
34988
$at_traceon; }
 
34989
 
 
34990
 
 
34991
# Check for the MAC learning entry.
 
34992
{ set +x
 
34993
$as_echo "$at_srcdir/ofproto-dpif.at:750: ovs-appctl fdb/show br0 | sed 's/[0-9]\$/?/'"
 
34994
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:750"
 
34995
( $at_check_trace; ovs-appctl fdb/show br0 | sed 's/[0-9]$/?/'
 
34996
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
34997
at_status=$? at_failed=false
 
34998
$at_check_filter
 
34999
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35000
echo >>"$at_stdout"; $as_echo " port  VLAN  MAC                Age
 
35001
    $p3     0  50:54:00:00:00:05    ?
 
35002
" | \
 
35003
  $at_diff - "$at_stdout" || at_failed=:
 
35004
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:750"
 
35005
$at_failed && at_fn_log_failure  \
 
35006
"ovsdb-server.log" \
 
35007
"ovs-vswitchd.log"
 
35008
$at_traceon; }
 
35009
 
 
35010
 
 
35011
# Trace a packet arrival destined for the learned MAC.
 
35012
# (This will also learn a MAC.)
 
35013
flow="in_port($p1),eth(src=50:54:00:00:00:06,dst=50:54:00:00:00:05),$arp"
 
35014
   { set +x
 
35015
$as_echo "$at_srcdir/ofproto-dpif.at:757: ovs-appctl ofproto/trace br0 \"\$flow\" -generate"
 
35016
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\" -generate" "ofproto-dpif.at:757"
 
35017
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow" -generate
 
35018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35019
at_status=$? at_failed=false
 
35020
$at_check_filter
 
35021
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35022
echo stdout:; tee stdout <"$at_stdout"
 
35023
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:757"
 
35024
$at_failed && at_fn_log_failure  \
 
35025
"ovsdb-server.log" \
 
35026
"ovs-vswitchd.log"
 
35027
$at_traceon; }
 
35028
 
 
35029
   actual=`tail -1 stdout | sed 's/Datapath actions: //'`
 
35030
   expected="$p3"
 
35031
   { set +x
 
35032
$as_echo "$at_srcdir/ofproto-dpif.at:757: ovs-dpctl normalize-actions \"\$flow\" \"\$expected\" br0=\$br0 p1=\$p1 p2=\$p2 p3=\$p3"
 
35033
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$expected\" br0=$br0 p1=$p1 p2=$p2 p3=$p3" "ofproto-dpif.at:757"
 
35034
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$expected" br0=$br0 p1=$p1 p2=$p2 p3=$p3
 
35035
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35036
at_status=$? at_failed=false
 
35037
$at_check_filter
 
35038
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35039
echo stdout:; tee stdout <"$at_stdout"
 
35040
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:757"
 
35041
$at_failed && at_fn_log_failure  \
 
35042
"ovsdb-server.log" \
 
35043
"ovs-vswitchd.log"
 
35044
$at_traceon; }
 
35045
 
 
35046
   mv stdout expout
 
35047
   { set +x
 
35048
$as_echo "$at_srcdir/ofproto-dpif.at:757: ovs-dpctl normalize-actions \"\$flow\" \"\$actual\" br0=\$br0 p1=\$p1 p2=\$p2 p3=\$p3"
 
35049
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$actual\" br0=$br0 p1=$p1 p2=$p2 p3=$p3" "ofproto-dpif.at:757"
 
35050
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$actual" br0=$br0 p1=$p1 p2=$p2 p3=$p3
 
35051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35052
at_status=$? at_failed=false
 
35053
$at_check_filter
 
35054
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35055
$at_diff expout "$at_stdout" || at_failed=:
 
35056
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:757"
 
35057
$at_failed && at_fn_log_failure  \
 
35058
"ovsdb-server.log" \
 
35059
"ovs-vswitchd.log"
 
35060
$at_traceon; }
 
35061
 
 
35062
 
 
35063
# Check for both MAC learning entries.
 
35064
{ set +x
 
35065
$as_echo "$at_srcdir/ofproto-dpif.at:765: ovs-appctl fdb/show br0 | sed 's/[0-9]\$/?/'"
 
35066
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:765"
 
35067
( $at_check_trace; ovs-appctl fdb/show br0 | sed 's/[0-9]$/?/'
 
35068
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35069
at_status=$? at_failed=false
 
35070
$at_check_filter
 
35071
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35072
echo >>"$at_stdout"; $as_echo " port  VLAN  MAC                Age
 
35073
    $p3     0  50:54:00:00:00:05    ?
 
35074
    $p1     0  50:54:00:00:00:06    ?
 
35075
" | \
 
35076
  $at_diff - "$at_stdout" || at_failed=:
 
35077
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:765"
 
35078
$at_failed && at_fn_log_failure  \
 
35079
"ovsdb-server.log" \
 
35080
"ovs-vswitchd.log"
 
35081
$at_traceon; }
 
35082
 
 
35083
 
 
35084
# Trace a packet arrival that updates the first learned MAC entry.
 
35085
flow="in_port($p2),eth(src=50:54:00:00:00:05,dst=ff:ff:ff:ff:ff:ff),$arp"
 
35086
   { set +x
 
35087
$as_echo "$at_srcdir/ofproto-dpif.at:772: ovs-appctl ofproto/trace br0 \"\$flow\" -generate"
 
35088
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br0 \"$flow\" -generate" "ofproto-dpif.at:772"
 
35089
( $at_check_trace; ovs-appctl ofproto/trace br0 "$flow" -generate
 
35090
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35091
at_status=$? at_failed=false
 
35092
$at_check_filter
 
35093
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35094
echo stdout:; tee stdout <"$at_stdout"
 
35095
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:772"
 
35096
$at_failed && at_fn_log_failure  \
 
35097
"ovsdb-server.log" \
 
35098
"ovs-vswitchd.log"
 
35099
$at_traceon; }
 
35100
 
 
35101
   actual=`tail -1 stdout | sed 's/Datapath actions: //'`
 
35102
   expected="$br0,$p1,$p3"
 
35103
   { set +x
 
35104
$as_echo "$at_srcdir/ofproto-dpif.at:772: ovs-dpctl normalize-actions \"\$flow\" \"\$expected\" br0=\$br0 p1=\$p1 p2=\$p2 p3=\$p3"
 
35105
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$expected\" br0=$br0 p1=$p1 p2=$p2 p3=$p3" "ofproto-dpif.at:772"
 
35106
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$expected" br0=$br0 p1=$p1 p2=$p2 p3=$p3
 
35107
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35108
at_status=$? at_failed=false
 
35109
$at_check_filter
 
35110
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35111
echo stdout:; tee stdout <"$at_stdout"
 
35112
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:772"
 
35113
$at_failed && at_fn_log_failure  \
 
35114
"ovsdb-server.log" \
 
35115
"ovs-vswitchd.log"
 
35116
$at_traceon; }
 
35117
 
 
35118
   mv stdout expout
 
35119
   { set +x
 
35120
$as_echo "$at_srcdir/ofproto-dpif.at:772: ovs-dpctl normalize-actions \"\$flow\" \"\$actual\" br0=\$br0 p1=\$p1 p2=\$p2 p3=\$p3"
 
35121
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$actual\" br0=$br0 p1=$p1 p2=$p2 p3=$p3" "ofproto-dpif.at:772"
 
35122
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$actual" br0=$br0 p1=$p1 p2=$p2 p3=$p3
 
35123
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35124
at_status=$? at_failed=false
 
35125
$at_check_filter
 
35126
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35127
$at_diff expout "$at_stdout" || at_failed=:
 
35128
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:772"
 
35129
$at_failed && at_fn_log_failure  \
 
35130
"ovsdb-server.log" \
 
35131
"ovs-vswitchd.log"
 
35132
$at_traceon; }
 
35133
 
 
35134
 
 
35135
# Check that the MAC learning entry was updated.
 
35136
{ set +x
 
35137
$as_echo "$at_srcdir/ofproto-dpif.at:780: ovs-appctl fdb/show br0 | sed 's/[0-9]\$/?/'"
 
35138
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:780"
 
35139
( $at_check_trace; ovs-appctl fdb/show br0 | sed 's/[0-9]$/?/'
 
35140
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35141
at_status=$? at_failed=false
 
35142
$at_check_filter
 
35143
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35144
echo >>"$at_stdout"; $as_echo " port  VLAN  MAC                Age
 
35145
    $p1     0  50:54:00:00:00:06    ?
 
35146
    $p2     0  50:54:00:00:00:05    ?
 
35147
" | \
 
35148
  $at_diff - "$at_stdout" || at_failed=:
 
35149
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:780"
 
35150
$at_failed && at_fn_log_failure  \
 
35151
"ovsdb-server.log" \
 
35152
"ovs-vswitchd.log"
 
35153
$at_traceon; }
 
35154
 
 
35155
 
 
35156
# Add another bridge.
 
35157
{ set +x
 
35158
$as_echo "$at_srcdir/ofproto-dpif.at:787: ovs-vsctl \\
 
35159
     -- add-br br1 \\
 
35160
     -- set bridge br1 datapath-type=dummy \\
 
35161
     -- add-port br1 p4 -- set interface p4 type=dummy \\
 
35162
     -- add-port br1 p5 -- set interface p5 type=dummy"
 
35163
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:787"
 
35164
( $at_check_trace; ovs-vsctl \
 
35165
     -- add-br br1 \
 
35166
     -- set bridge br1 datapath-type=dummy \
 
35167
     -- add-port br1 p4 -- set interface p4 type=dummy \
 
35168
     -- add-port br1 p5 -- set interface p5 type=dummy
 
35169
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35170
at_status=$? at_failed=false
 
35171
$at_check_filter
 
35172
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35173
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35174
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:787"
 
35175
$at_failed && at_fn_log_failure  \
 
35176
"ovsdb-server.log" \
 
35177
"ovs-vswitchd.log"
 
35178
$at_traceon; }
 
35179
 
 
35180
{ set +x
 
35181
$as_echo "$at_srcdir/ofproto-dpif.at:793: ovs-vsctl \\
 
35182
        -- get Interface p4 ofport \\
 
35183
        -- get Interface p5 ofport"
 
35184
at_fn_check_prepare_notrace 'an embedded newline' "ofproto-dpif.at:793"
 
35185
( $at_check_trace; ovs-vsctl \
 
35186
        -- get Interface p4 ofport \
 
35187
        -- get Interface p5 ofport
 
35188
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35189
at_status=$? at_failed=false
 
35190
$at_check_filter
 
35191
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35192
echo stdout:; tee stdout <"$at_stdout"
 
35193
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:793"
 
35194
$at_failed && at_fn_log_failure  \
 
35195
"ovsdb-server.log" \
 
35196
"ovs-vswitchd.log"
 
35197
$at_traceon; }
 
35198
 
 
35199
set `cat stdout`
 
35200
br1=0 p4=$1 p5=$2
 
35201
 
 
35202
# Trace some packet arrivals in br1 to create MAC learning entries there too.
 
35203
flow="in_port($p4),eth(src=50:54:00:00:00:06,dst=ff:ff:ff:ff:ff:ff),$arp"
 
35204
   { set +x
 
35205
$as_echo "$at_srcdir/ofproto-dpif.at:802: ovs-appctl ofproto/trace br1 \"\$flow\" -generate"
 
35206
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br1 \"$flow\" -generate" "ofproto-dpif.at:802"
 
35207
( $at_check_trace; ovs-appctl ofproto/trace br1 "$flow" -generate
 
35208
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35209
at_status=$? at_failed=false
 
35210
$at_check_filter
 
35211
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35212
echo stdout:; tee stdout <"$at_stdout"
 
35213
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:802"
 
35214
$at_failed && at_fn_log_failure  \
 
35215
"ovsdb-server.log" \
 
35216
"ovs-vswitchd.log"
 
35217
$at_traceon; }
 
35218
 
 
35219
   actual=`tail -1 stdout | sed 's/Datapath actions: //'`
 
35220
   expected="$br1,$p5"
 
35221
   { set +x
 
35222
$as_echo "$at_srcdir/ofproto-dpif.at:802: ovs-dpctl normalize-actions \"\$flow\" \"\$expected\" br1=\$br1 p4=\$p4 p5=\$p5"
 
35223
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$expected\" br1=$br1 p4=$p4 p5=$p5" "ofproto-dpif.at:802"
 
35224
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$expected" br1=$br1 p4=$p4 p5=$p5
 
35225
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35226
at_status=$? at_failed=false
 
35227
$at_check_filter
 
35228
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35229
echo stdout:; tee stdout <"$at_stdout"
 
35230
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:802"
 
35231
$at_failed && at_fn_log_failure  \
 
35232
"ovsdb-server.log" \
 
35233
"ovs-vswitchd.log"
 
35234
$at_traceon; }
 
35235
 
 
35236
   mv stdout expout
 
35237
   { set +x
 
35238
$as_echo "$at_srcdir/ofproto-dpif.at:802: ovs-dpctl normalize-actions \"\$flow\" \"\$actual\" br1=\$br1 p4=\$p4 p5=\$p5"
 
35239
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$actual\" br1=$br1 p4=$p4 p5=$p5" "ofproto-dpif.at:802"
 
35240
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$actual" br1=$br1 p4=$p4 p5=$p5
 
35241
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35242
at_status=$? at_failed=false
 
35243
$at_check_filter
 
35244
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35245
$at_diff expout "$at_stdout" || at_failed=:
 
35246
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:802"
 
35247
$at_failed && at_fn_log_failure  \
 
35248
"ovsdb-server.log" \
 
35249
"ovs-vswitchd.log"
 
35250
$at_traceon; }
 
35251
 
 
35252
flow="in_port($p5),eth(src=50:54:00:00:00:07,dst=ff:ff:ff:ff:ff:ff),$arp"
 
35253
   { set +x
 
35254
$as_echo "$at_srcdir/ofproto-dpif.at:808: ovs-appctl ofproto/trace br1 \"\$flow\" -generate"
 
35255
at_fn_check_prepare_dynamic "ovs-appctl ofproto/trace br1 \"$flow\" -generate" "ofproto-dpif.at:808"
 
35256
( $at_check_trace; ovs-appctl ofproto/trace br1 "$flow" -generate
 
35257
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35258
at_status=$? at_failed=false
 
35259
$at_check_filter
 
35260
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35261
echo stdout:; tee stdout <"$at_stdout"
 
35262
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:808"
 
35263
$at_failed && at_fn_log_failure  \
 
35264
"ovsdb-server.log" \
 
35265
"ovs-vswitchd.log"
 
35266
$at_traceon; }
 
35267
 
 
35268
   actual=`tail -1 stdout | sed 's/Datapath actions: //'`
 
35269
   expected="$br1,$p4"
 
35270
   { set +x
 
35271
$as_echo "$at_srcdir/ofproto-dpif.at:808: ovs-dpctl normalize-actions \"\$flow\" \"\$expected\" br1=\$br1 p4=\$p4 p5=\$p5"
 
35272
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$expected\" br1=$br1 p4=$p4 p5=$p5" "ofproto-dpif.at:808"
 
35273
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$expected" br1=$br1 p4=$p4 p5=$p5
 
35274
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35275
at_status=$? at_failed=false
 
35276
$at_check_filter
 
35277
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35278
echo stdout:; tee stdout <"$at_stdout"
 
35279
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:808"
 
35280
$at_failed && at_fn_log_failure  \
 
35281
"ovsdb-server.log" \
 
35282
"ovs-vswitchd.log"
 
35283
$at_traceon; }
 
35284
 
 
35285
   mv stdout expout
 
35286
   { set +x
 
35287
$as_echo "$at_srcdir/ofproto-dpif.at:808: ovs-dpctl normalize-actions \"\$flow\" \"\$actual\" br1=\$br1 p4=\$p4 p5=\$p5"
 
35288
at_fn_check_prepare_dynamic "ovs-dpctl normalize-actions \"$flow\" \"$actual\" br1=$br1 p4=$p4 p5=$p5" "ofproto-dpif.at:808"
 
35289
( $at_check_trace; ovs-dpctl normalize-actions "$flow" "$actual" br1=$br1 p4=$p4 p5=$p5
 
35290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35291
at_status=$? at_failed=false
 
35292
$at_check_filter
 
35293
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35294
$at_diff expout "$at_stdout" || at_failed=:
 
35295
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:808"
 
35296
$at_failed && at_fn_log_failure  \
 
35297
"ovsdb-server.log" \
 
35298
"ovs-vswitchd.log"
 
35299
$at_traceon; }
 
35300
 
 
35301
 
 
35302
# Check that the MAC learning entries were added.
 
35303
{ set +x
 
35304
$as_echo "$at_srcdir/ofproto-dpif.at:816: ovs-appctl fdb/show br1 | sed 's/[0-9]\$/?/'"
 
35305
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:816"
 
35306
( $at_check_trace; ovs-appctl fdb/show br1 | sed 's/[0-9]$/?/'
 
35307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35308
at_status=$? at_failed=false
 
35309
$at_check_filter
 
35310
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35311
echo >>"$at_stdout"; $as_echo " port  VLAN  MAC                Age
 
35312
    $p4     0  50:54:00:00:00:06    ?
 
35313
    $p5     0  50:54:00:00:00:07    ?
 
35314
" | \
 
35315
  $at_diff - "$at_stdout" || at_failed=:
 
35316
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:816"
 
35317
$at_failed && at_fn_log_failure  \
 
35318
"ovsdb-server.log" \
 
35319
"ovs-vswitchd.log"
 
35320
$at_traceon; }
 
35321
 
 
35322
 
 
35323
# Delete port p1 and see that its MAC learning entry disappeared, and
 
35324
# that the MAC learning entry for the same MAC was also deleted from br1.
 
35325
{ set +x
 
35326
$as_echo "$at_srcdir/ofproto-dpif.at:824: ovs-vsctl del-port p1"
 
35327
at_fn_check_prepare_trace "ofproto-dpif.at:824"
 
35328
( $at_check_trace; ovs-vsctl del-port p1
 
35329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35330
at_status=$? at_failed=false
 
35331
$at_check_filter
 
35332
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35333
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35334
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:824"
 
35335
$at_failed && at_fn_log_failure  \
 
35336
"ovsdb-server.log" \
 
35337
"ovs-vswitchd.log"
 
35338
$at_traceon; }
 
35339
 
 
35340
{ set +x
 
35341
$as_echo "$at_srcdir/ofproto-dpif.at:825: ovs-appctl fdb/show br0 | sed 's/[0-9]\$/?/'"
 
35342
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:825"
 
35343
( $at_check_trace; ovs-appctl fdb/show br0 | sed 's/[0-9]$/?/'
 
35344
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35345
at_status=$? at_failed=false
 
35346
$at_check_filter
 
35347
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35348
echo >>"$at_stdout"; $as_echo " port  VLAN  MAC                Age
 
35349
    $p2     0  50:54:00:00:00:05    ?
 
35350
" | \
 
35351
  $at_diff - "$at_stdout" || at_failed=:
 
35352
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:825"
 
35353
$at_failed && at_fn_log_failure  \
 
35354
"ovsdb-server.log" \
 
35355
"ovs-vswitchd.log"
 
35356
$at_traceon; }
 
35357
 
 
35358
{ set +x
 
35359
$as_echo "$at_srcdir/ofproto-dpif.at:829: ovs-appctl fdb/show br1 | sed 's/[0-9]\$/?/'"
 
35360
at_fn_check_prepare_notrace 'a shell pipeline' "ofproto-dpif.at:829"
 
35361
( $at_check_trace; ovs-appctl fdb/show br1 | sed 's/[0-9]$/?/'
 
35362
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35363
at_status=$? at_failed=false
 
35364
$at_check_filter
 
35365
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35366
echo >>"$at_stdout"; $as_echo " port  VLAN  MAC                Age
 
35367
    $p5     0  50:54:00:00:00:07    ?
 
35368
" | \
 
35369
  $at_diff - "$at_stdout" || at_failed=:
 
35370
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:829"
 
35371
$at_failed && at_fn_log_failure  \
 
35372
"ovsdb-server.log" \
 
35373
"ovs-vswitchd.log"
 
35374
$at_traceon; }
 
35375
 
 
35376
 
 
35377
{ set +x
 
35378
$as_echo "$at_srcdir/ofproto-dpif.at:834: ovs-appctl -t ovs-vswitchd exit"
 
35379
at_fn_check_prepare_trace "ofproto-dpif.at:834"
 
35380
( $at_check_trace; ovs-appctl -t ovs-vswitchd exit
 
35381
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35382
at_status=$? at_failed=false
 
35383
$at_check_filter
 
35384
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35385
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35386
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:834"
 
35387
$at_failed && at_fn_log_failure  \
 
35388
"ovsdb-server.log" \
 
35389
"ovs-vswitchd.log"
 
35390
$at_traceon; }
 
35391
 
 
35392
   { set +x
 
35393
$as_echo "$at_srcdir/ofproto-dpif.at:834: ovs-appctl -t ovsdb-server exit"
 
35394
at_fn_check_prepare_trace "ofproto-dpif.at:834"
 
35395
( $at_check_trace; ovs-appctl -t ovsdb-server exit
 
35396
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35397
at_status=$? at_failed=false
 
35398
$at_check_filter
 
35399
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35400
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35401
at_fn_check_status 0 $at_status "$at_srcdir/ofproto-dpif.at:834"
 
35402
$at_failed && at_fn_log_failure  \
 
35403
"ovsdb-server.log" \
 
35404
"ovs-vswitchd.log"
 
35405
$at_traceon; }
 
35406
 
 
35407
   trap '' 0
 
35408
  set +x
 
35409
  $at_times_p && times >"$at_times_file"
 
35410
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
35411
read at_status <"$at_status_file"
 
35412
#AT_STOP_402
 
35413
#AT_START_403
 
35414
at_fn_group_banner 403 'ovsdb-log.at:3' \
 
35415
  "create empty, reread" "                           " 35
 
35416
at_xfail=no
 
35417
(
 
35418
  $as_echo "403. $at_setup_line: testing $at_desc ..."
 
35419
  $at_traceon
 
35420
 
 
35421
 
 
35422
 
 
35423
{ set +x
 
35424
$as_echo "$at_srcdir/ovsdb-log.at:6: test-ovsdb log-io file create"
 
35425
at_fn_check_prepare_trace "ovsdb-log.at:6"
 
35426
( $at_check_trace; test-ovsdb log-io file create
 
35427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35428
at_status=$? at_failed=false
 
35429
$at_check_filter
 
35430
echo stderr:; cat "$at_stderr"
 
35431
echo >>"$at_stdout"; $as_echo "file: open successful
 
35432
" | \
 
35433
  $at_diff - "$at_stdout" || at_failed=:
 
35434
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:6"
 
35435
$at_failed && at_fn_log_failure  \
 
35436
"log"
 
35437
$at_traceon; }
 
35438
 
 
35439
{ set +x
 
35440
$as_echo "$at_srcdir/ovsdb-log.at:10: test-ovsdb log-io file read-only read"
 
35441
at_fn_check_prepare_trace "ovsdb-log.at:10"
 
35442
( $at_check_trace; test-ovsdb log-io file read-only read
 
35443
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35444
at_status=$? at_failed=false
 
35445
$at_check_filter
 
35446
echo stderr:; cat "$at_stderr"
 
35447
echo >>"$at_stdout"; $as_echo "file: open successful
 
35448
file: read: end of log
 
35449
" | \
 
35450
  $at_diff - "$at_stdout" || at_failed=:
 
35451
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:10"
 
35452
$at_failed && at_fn_log_failure  \
 
35453
"log"
 
35454
$at_traceon; }
 
35455
 
 
35456
{ set +x
 
35457
$as_echo "$at_srcdir/ovsdb-log.at:15: test -f .file.~lock~"
 
35458
at_fn_check_prepare_trace "ovsdb-log.at:15"
 
35459
( $at_check_trace; test -f .file.~lock~
 
35460
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35461
at_status=$? at_failed=false
 
35462
$at_check_filter
 
35463
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35464
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35465
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:15"
 
35466
$at_failed && at_fn_log_failure  \
 
35467
"log"
 
35468
$at_traceon; }
 
35469
 
 
35470
  set +x
 
35471
  $at_times_p && times >"$at_times_file"
 
35472
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
35473
read at_status <"$at_status_file"
 
35474
#AT_STOP_403
 
35475
#AT_START_404
 
35476
at_fn_group_banner 404 'ovsdb-log.at:18' \
 
35477
  "write one, reread" "                              " 35
 
35478
at_xfail=no
 
35479
(
 
35480
  $as_echo "404. $at_setup_line: testing $at_desc ..."
 
35481
  $at_traceon
 
35482
 
 
35483
 
 
35484
 
 
35485
{ set +x
 
35486
$as_echo "$at_srcdir/ovsdb-log.at:21: test-ovsdb log-io file create 'write:[0]'"
 
35487
at_fn_check_prepare_trace "ovsdb-log.at:21"
 
35488
( $at_check_trace; test-ovsdb log-io file create 'write:[0]'
 
35489
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35490
at_status=$? at_failed=false
 
35491
$at_check_filter
 
35492
echo stderr:; cat "$at_stderr"
 
35493
echo >>"$at_stdout"; $as_echo "file: open successful
 
35494
file: write:[0] successful
 
35495
" | \
 
35496
  $at_diff - "$at_stdout" || at_failed=:
 
35497
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:21"
 
35498
$at_failed && at_fn_log_failure  \
 
35499
"file"
 
35500
$at_traceon; }
 
35501
 
 
35502
{ set +x
 
35503
$as_echo "$at_srcdir/ovsdb-log.at:26: test-ovsdb log-io file read-only read read"
 
35504
at_fn_check_prepare_trace "ovsdb-log.at:26"
 
35505
( $at_check_trace; test-ovsdb log-io file read-only read read
 
35506
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35507
at_status=$? at_failed=false
 
35508
$at_check_filter
 
35509
echo stderr:; cat "$at_stderr"
 
35510
echo >>"$at_stdout"; $as_echo "file: open successful
 
35511
file: read: [0]
 
35512
file: read: end of log
 
35513
" | \
 
35514
  $at_diff - "$at_stdout" || at_failed=:
 
35515
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:26"
 
35516
$at_failed && at_fn_log_failure  \
 
35517
"file"
 
35518
$at_traceon; }
 
35519
 
 
35520
{ set +x
 
35521
$as_echo "$at_srcdir/ovsdb-log.at:32: test -f .file.~lock~"
 
35522
at_fn_check_prepare_trace "ovsdb-log.at:32"
 
35523
( $at_check_trace; test -f .file.~lock~
 
35524
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35525
at_status=$? at_failed=false
 
35526
$at_check_filter
 
35527
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35528
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35529
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:32"
 
35530
$at_failed && at_fn_log_failure  \
 
35531
"file"
 
35532
$at_traceon; }
 
35533
 
 
35534
  set +x
 
35535
  $at_times_p && times >"$at_times_file"
 
35536
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
35537
read at_status <"$at_status_file"
 
35538
#AT_STOP_404
 
35539
#AT_START_405
 
35540
at_fn_group_banner 405 'ovsdb-log.at:35' \
 
35541
  "check that create fails if file exists" "         " 35
 
35542
at_xfail=no
 
35543
(
 
35544
  $as_echo "405. $at_setup_line: testing $at_desc ..."
 
35545
  $at_traceon
 
35546
 
 
35547
 
 
35548
 
 
35549
{ set +x
 
35550
$as_echo "$at_srcdir/ovsdb-log.at:38: test-ovsdb log-io file create 'write:[1]'"
 
35551
at_fn_check_prepare_trace "ovsdb-log.at:38"
 
35552
( $at_check_trace; test-ovsdb log-io file create 'write:[1]'
 
35553
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35554
at_status=$? at_failed=false
 
35555
$at_check_filter
 
35556
echo stderr:; cat "$at_stderr"
 
35557
echo >>"$at_stdout"; $as_echo "file: open successful
 
35558
file: write:[1] successful
 
35559
" | \
 
35560
  $at_diff - "$at_stdout" || at_failed=:
 
35561
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:38"
 
35562
$at_failed && at_fn_log_failure  \
 
35563
"file"
 
35564
$at_traceon; }
 
35565
 
 
35566
{ set +x
 
35567
$as_echo "$at_srcdir/ovsdb-log.at:43: test-ovsdb log-io file read-only read"
 
35568
at_fn_check_prepare_trace "ovsdb-log.at:43"
 
35569
( $at_check_trace; test-ovsdb log-io file read-only read
 
35570
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35571
at_status=$? at_failed=false
 
35572
$at_check_filter
 
35573
echo stderr:; cat "$at_stderr"
 
35574
echo >>"$at_stdout"; $as_echo "file: open successful
 
35575
file: read: [1]
 
35576
" | \
 
35577
  $at_diff - "$at_stdout" || at_failed=:
 
35578
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:43"
 
35579
$at_failed && at_fn_log_failure  \
 
35580
"file"
 
35581
$at_traceon; }
 
35582
 
 
35583
{ set +x
 
35584
$as_echo "$at_srcdir/ovsdb-log.at:48: test-ovsdb log-io file create read"
 
35585
at_fn_check_prepare_trace "ovsdb-log.at:48"
 
35586
( $at_check_trace; test-ovsdb log-io file create read
 
35587
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35588
at_status=$? at_failed=false
 
35589
$at_check_filter
 
35590
echo >>"$at_stderr"; $as_echo "test-ovsdb: I/O error: create: file failed (File exists)
 
35591
" | \
 
35592
  $at_diff - "$at_stderr" || at_failed=:
 
35593
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35594
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-log.at:48"
 
35595
$at_failed && at_fn_log_failure  \
 
35596
"file"
 
35597
$at_traceon; }
 
35598
 
 
35599
{ set +x
 
35600
$as_echo "$at_srcdir/ovsdb-log.at:52: test -f .file.~lock~"
 
35601
at_fn_check_prepare_trace "ovsdb-log.at:52"
 
35602
( $at_check_trace; test -f .file.~lock~
 
35603
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35604
at_status=$? at_failed=false
 
35605
$at_check_filter
 
35606
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35607
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35608
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:52"
 
35609
$at_failed && at_fn_log_failure  \
 
35610
"file"
 
35611
$at_traceon; }
 
35612
 
 
35613
  set +x
 
35614
  $at_times_p && times >"$at_times_file"
 
35615
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
35616
read at_status <"$at_status_file"
 
35617
#AT_STOP_405
 
35618
#AT_START_406
 
35619
at_fn_group_banner 406 'ovsdb-log.at:55' \
 
35620
  "write one, reread" "                              " 35
 
35621
at_xfail=no
 
35622
(
 
35623
  $as_echo "406. $at_setup_line: testing $at_desc ..."
 
35624
  $at_traceon
 
35625
 
 
35626
 
 
35627
 
 
35628
{ set +x
 
35629
$as_echo "$at_srcdir/ovsdb-log.at:58: test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'"
 
35630
at_fn_check_prepare_trace "ovsdb-log.at:58"
 
35631
( $at_check_trace; test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'
 
35632
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35633
at_status=$? at_failed=false
 
35634
$at_check_filter
 
35635
echo stderr:; cat "$at_stderr"
 
35636
echo >>"$at_stdout"; $as_echo "file: open successful
 
35637
file: write:[0] successful
 
35638
file: write:[1] successful
 
35639
file: write:[2] successful
 
35640
" | \
 
35641
  $at_diff - "$at_stdout" || at_failed=:
 
35642
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:58"
 
35643
$at_failed && at_fn_log_failure  \
 
35644
"file"
 
35645
$at_traceon; }
 
35646
 
 
35647
{ set +x
 
35648
$as_echo "$at_srcdir/ovsdb-log.at:65: test-ovsdb log-io file read-only read read read read"
 
35649
at_fn_check_prepare_trace "ovsdb-log.at:65"
 
35650
( $at_check_trace; test-ovsdb log-io file read-only read read read read
 
35651
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35652
at_status=$? at_failed=false
 
35653
$at_check_filter
 
35654
echo stderr:; cat "$at_stderr"
 
35655
echo >>"$at_stdout"; $as_echo "file: open successful
 
35656
file: read: [0]
 
35657
file: read: [1]
 
35658
file: read: [2]
 
35659
file: read: end of log
 
35660
" | \
 
35661
  $at_diff - "$at_stdout" || at_failed=:
 
35662
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:65"
 
35663
$at_failed && at_fn_log_failure  \
 
35664
"file"
 
35665
$at_traceon; }
 
35666
 
 
35667
{ set +x
 
35668
$as_echo "$at_srcdir/ovsdb-log.at:73: test -f .file.~lock~"
 
35669
at_fn_check_prepare_trace "ovsdb-log.at:73"
 
35670
( $at_check_trace; test -f .file.~lock~
 
35671
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35672
at_status=$? at_failed=false
 
35673
$at_check_filter
 
35674
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35675
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35676
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:73"
 
35677
$at_failed && at_fn_log_failure  \
 
35678
"file"
 
35679
$at_traceon; }
 
35680
 
 
35681
  set +x
 
35682
  $at_times_p && times >"$at_times_file"
 
35683
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
35684
read at_status <"$at_status_file"
 
35685
#AT_STOP_406
 
35686
#AT_START_407
 
35687
at_fn_group_banner 407 'ovsdb-log.at:76' \
 
35688
  "write one, reread, append" "                      " 35
 
35689
at_xfail=no
 
35690
(
 
35691
  $as_echo "407. $at_setup_line: testing $at_desc ..."
 
35692
  $at_traceon
 
35693
 
 
35694
 
 
35695
 
 
35696
{ set +x
 
35697
$as_echo "$at_srcdir/ovsdb-log.at:79: test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'"
 
35698
at_fn_check_prepare_trace "ovsdb-log.at:79"
 
35699
( $at_check_trace; test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'
 
35700
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35701
at_status=$? at_failed=false
 
35702
$at_check_filter
 
35703
echo stderr:; cat "$at_stderr"
 
35704
echo >>"$at_stdout"; $as_echo "file: open successful
 
35705
file: write:[0] successful
 
35706
file: write:[1] successful
 
35707
file: write:[2] successful
 
35708
" | \
 
35709
  $at_diff - "$at_stdout" || at_failed=:
 
35710
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:79"
 
35711
$at_failed && at_fn_log_failure  \
 
35712
"file"
 
35713
$at_traceon; }
 
35714
 
 
35715
{ set +x
 
35716
$as_echo "$at_srcdir/ovsdb-log.at:86: test-ovsdb log-io file read/write read read read 'write:[\"append\"]'"
 
35717
at_fn_check_prepare_trace "ovsdb-log.at:86"
 
35718
( $at_check_trace; test-ovsdb log-io file read/write read read read 'write:["append"]'
 
35719
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35720
at_status=$? at_failed=false
 
35721
$at_check_filter
 
35722
echo stderr:; cat "$at_stderr"
 
35723
echo >>"$at_stdout"; $as_echo "file: open successful
 
35724
file: read: [0]
 
35725
file: read: [1]
 
35726
file: read: [2]
 
35727
file: write:[\"append\"] successful
 
35728
" | \
 
35729
  $at_diff - "$at_stdout" || at_failed=:
 
35730
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:86"
 
35731
$at_failed && at_fn_log_failure  \
 
35732
"file"
 
35733
$at_traceon; }
 
35734
 
 
35735
{ set +x
 
35736
$as_echo "$at_srcdir/ovsdb-log.at:94: test-ovsdb log-io file read-only read read read read read"
 
35737
at_fn_check_prepare_trace "ovsdb-log.at:94"
 
35738
( $at_check_trace; test-ovsdb log-io file read-only read read read read read
 
35739
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35740
at_status=$? at_failed=false
 
35741
$at_check_filter
 
35742
echo stderr:; cat "$at_stderr"
 
35743
echo >>"$at_stdout"; $as_echo "file: open successful
 
35744
file: read: [0]
 
35745
file: read: [1]
 
35746
file: read: [2]
 
35747
file: read: [\"append\"]
 
35748
file: read: end of log
 
35749
" | \
 
35750
  $at_diff - "$at_stdout" || at_failed=:
 
35751
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:94"
 
35752
$at_failed && at_fn_log_failure  \
 
35753
"file"
 
35754
$at_traceon; }
 
35755
 
 
35756
{ set +x
 
35757
$as_echo "$at_srcdir/ovsdb-log.at:103: test -f .file.~lock~"
 
35758
at_fn_check_prepare_trace "ovsdb-log.at:103"
 
35759
( $at_check_trace; test -f .file.~lock~
 
35760
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35761
at_status=$? at_failed=false
 
35762
$at_check_filter
 
35763
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35764
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35765
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:103"
 
35766
$at_failed && at_fn_log_failure  \
 
35767
"file"
 
35768
$at_traceon; }
 
35769
 
 
35770
  set +x
 
35771
  $at_times_p && times >"$at_times_file"
 
35772
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
35773
read at_status <"$at_status_file"
 
35774
#AT_STOP_407
 
35775
#AT_START_408
 
35776
at_fn_group_banner 408 'ovsdb-log.at:106' \
 
35777
  "write, reread one, overwrite" "                   " 35
 
35778
at_xfail=no
 
35779
(
 
35780
  $as_echo "408. $at_setup_line: testing $at_desc ..."
 
35781
  $at_traceon
 
35782
 
 
35783
 
 
35784
 
 
35785
{ set +x
 
35786
$as_echo "$at_srcdir/ovsdb-log.at:109: test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'"
 
35787
at_fn_check_prepare_trace "ovsdb-log.at:109"
 
35788
( $at_check_trace; test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'
 
35789
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35790
at_status=$? at_failed=false
 
35791
$at_check_filter
 
35792
echo stderr:; cat "$at_stderr"
 
35793
echo >>"$at_stdout"; $as_echo "file: open successful
 
35794
file: write:[0] successful
 
35795
file: write:[1] successful
 
35796
file: write:[2] successful
 
35797
" | \
 
35798
  $at_diff - "$at_stdout" || at_failed=:
 
35799
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:109"
 
35800
$at_failed && at_fn_log_failure  \
 
35801
"file"
 
35802
$at_traceon; }
 
35803
 
 
35804
{ set +x
 
35805
$as_echo "$at_srcdir/ovsdb-log.at:116: test-ovsdb log-io file read/write read 'write:[\"more data\"]'"
 
35806
at_fn_check_prepare_trace "ovsdb-log.at:116"
 
35807
( $at_check_trace; test-ovsdb log-io file read/write read 'write:["more data"]'
 
35808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35809
at_status=$? at_failed=false
 
35810
$at_check_filter
 
35811
echo stderr:; cat "$at_stderr"
 
35812
echo >>"$at_stdout"; $as_echo "file: open successful
 
35813
file: read: [0]
 
35814
file: write:[\"more data\"] successful
 
35815
" | \
 
35816
  $at_diff - "$at_stdout" || at_failed=:
 
35817
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:116"
 
35818
$at_failed && at_fn_log_failure  \
 
35819
"file"
 
35820
$at_traceon; }
 
35821
 
 
35822
{ set +x
 
35823
$as_echo "$at_srcdir/ovsdb-log.at:122: test-ovsdb log-io file read-only read read read"
 
35824
at_fn_check_prepare_trace "ovsdb-log.at:122"
 
35825
( $at_check_trace; test-ovsdb log-io file read-only read read read
 
35826
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35827
at_status=$? at_failed=false
 
35828
$at_check_filter
 
35829
echo stderr:; cat "$at_stderr"
 
35830
echo >>"$at_stdout"; $as_echo "file: open successful
 
35831
file: read: [0]
 
35832
file: read: [\"more data\"]
 
35833
file: read: end of log
 
35834
" | \
 
35835
  $at_diff - "$at_stdout" || at_failed=:
 
35836
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:122"
 
35837
$at_failed && at_fn_log_failure  \
 
35838
"file"
 
35839
$at_traceon; }
 
35840
 
 
35841
{ set +x
 
35842
$as_echo "$at_srcdir/ovsdb-log.at:129: test -f .file.~lock~"
 
35843
at_fn_check_prepare_trace "ovsdb-log.at:129"
 
35844
( $at_check_trace; test -f .file.~lock~
 
35845
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35846
at_status=$? at_failed=false
 
35847
$at_check_filter
 
35848
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35849
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35850
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:129"
 
35851
$at_failed && at_fn_log_failure  \
 
35852
"file"
 
35853
$at_traceon; }
 
35854
 
 
35855
  set +x
 
35856
  $at_times_p && times >"$at_times_file"
 
35857
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
35858
read at_status <"$at_status_file"
 
35859
#AT_STOP_408
 
35860
#AT_START_409
 
35861
at_fn_group_banner 409 'ovsdb-log.at:132' \
 
35862
  "write, add corrupted data, read" "                " 35
 
35863
at_xfail=no
 
35864
(
 
35865
  $as_echo "409. $at_setup_line: testing $at_desc ..."
 
35866
  $at_traceon
 
35867
 
 
35868
 
 
35869
 
 
35870
{ set +x
 
35871
$as_echo "$at_srcdir/ovsdb-log.at:135: test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'"
 
35872
at_fn_check_prepare_trace "ovsdb-log.at:135"
 
35873
( $at_check_trace; test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'
 
35874
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35875
at_status=$? at_failed=false
 
35876
$at_check_filter
 
35877
echo stderr:; cat "$at_stderr"
 
35878
echo >>"$at_stdout"; $as_echo "file: open successful
 
35879
file: write:[0] successful
 
35880
file: write:[1] successful
 
35881
file: write:[2] successful
 
35882
" | \
 
35883
  $at_diff - "$at_stdout" || at_failed=:
 
35884
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:135"
 
35885
$at_failed && at_fn_log_failure  \
 
35886
"file"
 
35887
$at_traceon; }
 
35888
 
 
35889
{ set +x
 
35890
$as_echo "$at_srcdir/ovsdb-log.at:142: echo 'xxx' >> file"
 
35891
at_fn_check_prepare_trace "ovsdb-log.at:142"
 
35892
( $at_check_trace; echo 'xxx' >> file
 
35893
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35894
at_status=$? at_failed=false
 
35895
$at_check_filter
 
35896
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35897
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35898
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:142"
 
35899
$at_failed && at_fn_log_failure  \
 
35900
"file"
 
35901
$at_traceon; }
 
35902
 
 
35903
{ set +x
 
35904
$as_echo "$at_srcdir/ovsdb-log.at:143: test-ovsdb log-io file read-only read read read read"
 
35905
at_fn_check_prepare_trace "ovsdb-log.at:143"
 
35906
( $at_check_trace; test-ovsdb log-io file read-only read read read read
 
35907
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35908
at_status=$? at_failed=false
 
35909
$at_check_filter
 
35910
echo stderr:; cat "$at_stderr"
 
35911
echo >>"$at_stdout"; $as_echo "file: open successful
 
35912
file: read: [0]
 
35913
file: read: [1]
 
35914
file: read: [2]
 
35915
file: read failed: syntax error: file: parse error at offset 174 in header line \"xxx\"
 
35916
" | \
 
35917
  $at_diff - "$at_stdout" || at_failed=:
 
35918
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:143"
 
35919
$at_failed && at_fn_log_failure  \
 
35920
"file"
 
35921
$at_traceon; }
 
35922
 
 
35923
{ set +x
 
35924
$as_echo "$at_srcdir/ovsdb-log.at:151: test -f .file.~lock~"
 
35925
at_fn_check_prepare_trace "ovsdb-log.at:151"
 
35926
( $at_check_trace; test -f .file.~lock~
 
35927
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35928
at_status=$? at_failed=false
 
35929
$at_check_filter
 
35930
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35931
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35932
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:151"
 
35933
$at_failed && at_fn_log_failure  \
 
35934
"file"
 
35935
$at_traceon; }
 
35936
 
 
35937
  set +x
 
35938
  $at_times_p && times >"$at_times_file"
 
35939
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
35940
read at_status <"$at_status_file"
 
35941
#AT_STOP_409
 
35942
#AT_START_410
 
35943
at_fn_group_banner 410 'ovsdb-log.at:154' \
 
35944
  "write, add corrupted data, read, overwrite" "     " 35
 
35945
at_xfail=no
 
35946
(
 
35947
  $as_echo "410. $at_setup_line: testing $at_desc ..."
 
35948
  $at_traceon
 
35949
 
 
35950
 
 
35951
 
 
35952
{ set +x
 
35953
$as_echo "$at_srcdir/ovsdb-log.at:157: test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'"
 
35954
at_fn_check_prepare_trace "ovsdb-log.at:157"
 
35955
( $at_check_trace; test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'
 
35956
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35957
at_status=$? at_failed=false
 
35958
$at_check_filter
 
35959
echo stderr:; cat "$at_stderr"
 
35960
echo >>"$at_stdout"; $as_echo "file: open successful
 
35961
file: write:[0] successful
 
35962
file: write:[1] successful
 
35963
file: write:[2] successful
 
35964
" | \
 
35965
  $at_diff - "$at_stdout" || at_failed=:
 
35966
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:157"
 
35967
$at_failed && at_fn_log_failure  \
 
35968
"file"
 
35969
$at_traceon; }
 
35970
 
 
35971
{ set +x
 
35972
$as_echo "$at_srcdir/ovsdb-log.at:164: echo 'xxx' >> file"
 
35973
at_fn_check_prepare_trace "ovsdb-log.at:164"
 
35974
( $at_check_trace; echo 'xxx' >> file
 
35975
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35976
at_status=$? at_failed=false
 
35977
$at_check_filter
 
35978
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
35979
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
35980
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:164"
 
35981
$at_failed && at_fn_log_failure  \
 
35982
"file"
 
35983
$at_traceon; }
 
35984
 
 
35985
{ set +x
 
35986
$as_echo "$at_srcdir/ovsdb-log.at:165: test-ovsdb log-io file read/write read read read read 'write:[3]'"
 
35987
at_fn_check_prepare_trace "ovsdb-log.at:165"
 
35988
( $at_check_trace; test-ovsdb log-io file read/write read read read read 'write:[3]'
 
35989
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
35990
at_status=$? at_failed=false
 
35991
$at_check_filter
 
35992
echo stderr:; cat "$at_stderr"
 
35993
echo >>"$at_stdout"; $as_echo "file: open successful
 
35994
file: read: [0]
 
35995
file: read: [1]
 
35996
file: read: [2]
 
35997
file: read failed: syntax error: file: parse error at offset 174 in header line \"xxx\"
 
35998
file: write:[3] successful
 
35999
" | \
 
36000
  $at_diff - "$at_stdout" || at_failed=:
 
36001
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:165"
 
36002
$at_failed && at_fn_log_failure  \
 
36003
"file"
 
36004
$at_traceon; }
 
36005
 
 
36006
{ set +x
 
36007
$as_echo "$at_srcdir/ovsdb-log.at:174: test-ovsdb log-io file read-only read read read read read"
 
36008
at_fn_check_prepare_trace "ovsdb-log.at:174"
 
36009
( $at_check_trace; test-ovsdb log-io file read-only read read read read read
 
36010
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36011
at_status=$? at_failed=false
 
36012
$at_check_filter
 
36013
echo stderr:; cat "$at_stderr"
 
36014
echo >>"$at_stdout"; $as_echo "file: open successful
 
36015
file: read: [0]
 
36016
file: read: [1]
 
36017
file: read: [2]
 
36018
file: read: [3]
 
36019
file: read: end of log
 
36020
" | \
 
36021
  $at_diff - "$at_stdout" || at_failed=:
 
36022
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:174"
 
36023
$at_failed && at_fn_log_failure  \
 
36024
"file"
 
36025
$at_traceon; }
 
36026
 
 
36027
{ set +x
 
36028
$as_echo "$at_srcdir/ovsdb-log.at:183: test -f .file.~lock~"
 
36029
at_fn_check_prepare_trace "ovsdb-log.at:183"
 
36030
( $at_check_trace; test -f .file.~lock~
 
36031
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36032
at_status=$? at_failed=false
 
36033
$at_check_filter
 
36034
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36035
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36036
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:183"
 
36037
$at_failed && at_fn_log_failure  \
 
36038
"file"
 
36039
$at_traceon; }
 
36040
 
 
36041
  set +x
 
36042
  $at_times_p && times >"$at_times_file"
 
36043
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36044
read at_status <"$at_status_file"
 
36045
#AT_STOP_410
 
36046
#AT_START_411
 
36047
at_fn_group_banner 411 'ovsdb-log.at:186' \
 
36048
  "write, corrupt some data, read, overwrite" "      " 35
 
36049
at_xfail=no
 
36050
(
 
36051
  $as_echo "411. $at_setup_line: testing $at_desc ..."
 
36052
  $at_traceon
 
36053
 
 
36054
 
 
36055
 
 
36056
{ set +x
 
36057
$as_echo "$at_srcdir/ovsdb-log.at:189: test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'"
 
36058
at_fn_check_prepare_trace "ovsdb-log.at:189"
 
36059
( $at_check_trace; test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'
 
36060
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36061
at_status=$? at_failed=false
 
36062
$at_check_filter
 
36063
echo stderr:; cat "$at_stderr"
 
36064
echo >>"$at_stdout"; $as_echo "file: open successful
 
36065
file: write:[0] successful
 
36066
file: write:[1] successful
 
36067
file: write:[2] successful
 
36068
" | \
 
36069
  $at_diff - "$at_stdout" || at_failed=:
 
36070
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:189"
 
36071
$at_failed && at_fn_log_failure  \
 
36072
"file"
 
36073
$at_traceon; }
 
36074
 
 
36075
{ set +x
 
36076
$as_echo "$at_srcdir/ovsdb-log.at:196: sed 's/\\[2]/[3]/' < file > file.tmp"
 
36077
at_fn_check_prepare_trace "ovsdb-log.at:196"
 
36078
( $at_check_trace; sed 's/\[2]/[3]/' < file > file.tmp
 
36079
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36080
at_status=$? at_failed=false
 
36081
$at_check_filter
 
36082
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36083
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36084
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:196"
 
36085
$at_failed && at_fn_log_failure  \
 
36086
"file"
 
36087
$at_traceon; }
 
36088
 
 
36089
{ set +x
 
36090
$as_echo "$at_srcdir/ovsdb-log.at:197: mv file.tmp file"
 
36091
at_fn_check_prepare_trace "ovsdb-log.at:197"
 
36092
( $at_check_trace; mv file.tmp file
 
36093
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36094
at_status=$? at_failed=false
 
36095
$at_check_filter
 
36096
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36097
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36098
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:197"
 
36099
$at_failed && at_fn_log_failure  \
 
36100
"file"
 
36101
$at_traceon; }
 
36102
 
 
36103
{ set +x
 
36104
$as_echo "$at_srcdir/ovsdb-log.at:198: grep -c '\\[3]' file"
 
36105
at_fn_check_prepare_trace "ovsdb-log.at:198"
 
36106
( $at_check_trace; grep -c '\[3]' file
 
36107
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36108
at_status=$? at_failed=false
 
36109
$at_check_filter
 
36110
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36111
echo >>"$at_stdout"; $as_echo "1
 
36112
" | \
 
36113
  $at_diff - "$at_stdout" || at_failed=:
 
36114
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:198"
 
36115
$at_failed && at_fn_log_failure  \
 
36116
"file"
 
36117
$at_traceon; }
 
36118
 
 
36119
{ set +x
 
36120
$as_echo "$at_srcdir/ovsdb-log.at:200: test-ovsdb log-io file read/write read read read 'write:[\"longer data\"]'"
 
36121
at_fn_check_prepare_trace "ovsdb-log.at:200"
 
36122
( $at_check_trace; test-ovsdb log-io file read/write read read read 'write:["longer data"]'
 
36123
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36124
at_status=$? at_failed=false
 
36125
$at_check_filter
 
36126
echo stderr:; cat "$at_stderr"
 
36127
echo >>"$at_stdout"; $as_echo "file: open successful
 
36128
file: read: [0]
 
36129
file: read: [1]
 
36130
file: read failed: syntax error: file: 4 bytes starting at offset 170 have SHA-1 hash 5c031e5c0d3a9338cc127ebe40bb2748b6a67e78 but should have hash 98f55556e7ffd432381b56a19bd485b3e6446442
 
36131
file: write:[\"longer data\"] successful
 
36132
" | \
 
36133
  $at_diff - "$at_stdout" || at_failed=:
 
36134
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:200"
 
36135
$at_failed && at_fn_log_failure  \
 
36136
"file"
 
36137
$at_traceon; }
 
36138
 
 
36139
{ set +x
 
36140
$as_echo "$at_srcdir/ovsdb-log.at:208: test-ovsdb log-io file read-only read read read read"
 
36141
at_fn_check_prepare_trace "ovsdb-log.at:208"
 
36142
( $at_check_trace; test-ovsdb log-io file read-only read read read read
 
36143
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36144
at_status=$? at_failed=false
 
36145
$at_check_filter
 
36146
echo stderr:; cat "$at_stderr"
 
36147
echo >>"$at_stdout"; $as_echo "file: open successful
 
36148
file: read: [0]
 
36149
file: read: [1]
 
36150
file: read: [\"longer data\"]
 
36151
file: read: end of log
 
36152
" | \
 
36153
  $at_diff - "$at_stdout" || at_failed=:
 
36154
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:208"
 
36155
$at_failed && at_fn_log_failure  \
 
36156
"file"
 
36157
$at_traceon; }
 
36158
 
 
36159
{ set +x
 
36160
$as_echo "$at_srcdir/ovsdb-log.at:216: test -f .file.~lock~"
 
36161
at_fn_check_prepare_trace "ovsdb-log.at:216"
 
36162
( $at_check_trace; test -f .file.~lock~
 
36163
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36164
at_status=$? at_failed=false
 
36165
$at_check_filter
 
36166
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36167
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36168
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:216"
 
36169
$at_failed && at_fn_log_failure  \
 
36170
"file"
 
36171
$at_traceon; }
 
36172
 
 
36173
  set +x
 
36174
  $at_times_p && times >"$at_times_file"
 
36175
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36176
read at_status <"$at_status_file"
 
36177
#AT_STOP_411
 
36178
#AT_START_412
 
36179
at_fn_group_banner 412 'ovsdb-log.at:219' \
 
36180
  "write, truncate file, read, overwrite" "          " 35
 
36181
at_xfail=no
 
36182
(
 
36183
  $as_echo "412. $at_setup_line: testing $at_desc ..."
 
36184
  $at_traceon
 
36185
 
 
36186
 
 
36187
 
 
36188
{ set +x
 
36189
$as_echo "$at_srcdir/ovsdb-log.at:222: test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'"
 
36190
at_fn_check_prepare_trace "ovsdb-log.at:222"
 
36191
( $at_check_trace; test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'
 
36192
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36193
at_status=$? at_failed=false
 
36194
$at_check_filter
 
36195
echo stderr:; cat "$at_stderr"
 
36196
echo >>"$at_stdout"; $as_echo "file: open successful
 
36197
file: write:[0] successful
 
36198
file: write:[1] successful
 
36199
file: write:[2] successful
 
36200
" | \
 
36201
  $at_diff - "$at_stdout" || at_failed=:
 
36202
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:222"
 
36203
$at_failed && at_fn_log_failure  \
 
36204
"file"
 
36205
$at_traceon; }
 
36206
 
 
36207
{ set +x
 
36208
$as_echo "$at_srcdir/ovsdb-log.at:229: sed 's/\\[2]/2/' < file > file.tmp"
 
36209
at_fn_check_prepare_trace "ovsdb-log.at:229"
 
36210
( $at_check_trace; sed 's/\[2]/2/' < file > file.tmp
 
36211
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36212
at_status=$? at_failed=false
 
36213
$at_check_filter
 
36214
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36215
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36216
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:229"
 
36217
$at_failed && at_fn_log_failure  \
 
36218
"file"
 
36219
$at_traceon; }
 
36220
 
 
36221
{ set +x
 
36222
$as_echo "$at_srcdir/ovsdb-log.at:230: mv file.tmp file"
 
36223
at_fn_check_prepare_trace "ovsdb-log.at:230"
 
36224
( $at_check_trace; mv file.tmp file
 
36225
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36226
at_status=$? at_failed=false
 
36227
$at_check_filter
 
36228
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36229
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36230
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:230"
 
36231
$at_failed && at_fn_log_failure  \
 
36232
"file"
 
36233
$at_traceon; }
 
36234
 
 
36235
{ set +x
 
36236
$as_echo "$at_srcdir/ovsdb-log.at:231: grep -c '^2\$' file"
 
36237
at_fn_check_prepare_dynamic "grep -c '^2$' file" "ovsdb-log.at:231"
 
36238
( $at_check_trace; grep -c '^2$' file
 
36239
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36240
at_status=$? at_failed=false
 
36241
$at_check_filter
 
36242
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36243
echo >>"$at_stdout"; $as_echo "1
 
36244
" | \
 
36245
  $at_diff - "$at_stdout" || at_failed=:
 
36246
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:231"
 
36247
$at_failed && at_fn_log_failure  \
 
36248
"file"
 
36249
$at_traceon; }
 
36250
 
 
36251
{ set +x
 
36252
$as_echo "$at_srcdir/ovsdb-log.at:233: test-ovsdb log-io file read/write read read read 'write:[\"longer data\"]'"
 
36253
at_fn_check_prepare_trace "ovsdb-log.at:233"
 
36254
( $at_check_trace; test-ovsdb log-io file read/write read read read 'write:["longer data"]'
 
36255
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36256
at_status=$? at_failed=false
 
36257
$at_check_filter
 
36258
echo stderr:; cat "$at_stderr"
 
36259
echo >>"$at_stdout"; $as_echo "file: open successful
 
36260
file: read: [0]
 
36261
file: read: [1]
 
36262
file: read failed: I/O error: file: error reading 4 bytes starting at offset 170 (End of file)
 
36263
file: write:[\"longer data\"] successful
 
36264
" | \
 
36265
  $at_diff - "$at_stdout" || at_failed=:
 
36266
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:233"
 
36267
$at_failed && at_fn_log_failure  \
 
36268
"file"
 
36269
$at_traceon; }
 
36270
 
 
36271
{ set +x
 
36272
$as_echo "$at_srcdir/ovsdb-log.at:241: test-ovsdb log-io file read-only read read read read"
 
36273
at_fn_check_prepare_trace "ovsdb-log.at:241"
 
36274
( $at_check_trace; test-ovsdb log-io file read-only read read read read
 
36275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36276
at_status=$? at_failed=false
 
36277
$at_check_filter
 
36278
echo stderr:; cat "$at_stderr"
 
36279
echo >>"$at_stdout"; $as_echo "file: open successful
 
36280
file: read: [0]
 
36281
file: read: [1]
 
36282
file: read: [\"longer data\"]
 
36283
file: read: end of log
 
36284
" | \
 
36285
  $at_diff - "$at_stdout" || at_failed=:
 
36286
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:241"
 
36287
$at_failed && at_fn_log_failure  \
 
36288
"file"
 
36289
$at_traceon; }
 
36290
 
 
36291
{ set +x
 
36292
$as_echo "$at_srcdir/ovsdb-log.at:249: test -f .file.~lock~"
 
36293
at_fn_check_prepare_trace "ovsdb-log.at:249"
 
36294
( $at_check_trace; test -f .file.~lock~
 
36295
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36296
at_status=$? at_failed=false
 
36297
$at_check_filter
 
36298
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36299
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36300
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:249"
 
36301
$at_failed && at_fn_log_failure  \
 
36302
"file"
 
36303
$at_traceon; }
 
36304
 
 
36305
  set +x
 
36306
  $at_times_p && times >"$at_times_file"
 
36307
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36308
read at_status <"$at_status_file"
 
36309
#AT_STOP_412
 
36310
#AT_START_413
 
36311
at_fn_group_banner 413 'ovsdb-log.at:252' \
 
36312
  "write bad JSON, read, overwrite" "                " 35
 
36313
at_xfail=no
 
36314
(
 
36315
  $as_echo "413. $at_setup_line: testing $at_desc ..."
 
36316
  $at_traceon
 
36317
 
 
36318
 
 
36319
 
 
36320
{ set +x
 
36321
$as_echo "$at_srcdir/ovsdb-log.at:255: test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'"
 
36322
at_fn_check_prepare_trace "ovsdb-log.at:255"
 
36323
( $at_check_trace; test-ovsdb log-io file create 'write:[0]' 'write:[1]' 'write:[2]'
 
36324
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36325
at_status=$? at_failed=false
 
36326
$at_check_filter
 
36327
echo stderr:; cat "$at_stderr"
 
36328
echo >>"$at_stdout"; $as_echo "file: open successful
 
36329
file: write:[0] successful
 
36330
file: write:[1] successful
 
36331
file: write:[2] successful
 
36332
" | \
 
36333
  $at_diff - "$at_stdout" || at_failed=:
 
36334
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:255"
 
36335
$at_failed && at_fn_log_failure  \
 
36336
"file"
 
36337
$at_traceon; }
 
36338
 
 
36339
{ set +x
 
36340
$as_echo "$at_srcdir/ovsdb-log.at:262: printf '%s\\n%s\\n' 'OVSDB JSON 5 d910b02871075d3156ec8675dfc95b7d5d640aa6' 'null' >> file"
 
36341
at_fn_check_prepare_trace "ovsdb-log.at:262"
 
36342
( $at_check_trace; printf '%s\n%s\n' 'OVSDB JSON 5 d910b02871075d3156ec8675dfc95b7d5d640aa6' 'null' >> file
 
36343
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36344
at_status=$? at_failed=false
 
36345
$at_check_filter
 
36346
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36347
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36348
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:262"
 
36349
$at_failed && at_fn_log_failure  \
 
36350
"file"
 
36351
$at_traceon; }
 
36352
 
 
36353
{ set +x
 
36354
$as_echo "$at_srcdir/ovsdb-log.at:263: test-ovsdb log-io file read/write read read read read 'write:[\"replacement data\"]'"
 
36355
at_fn_check_prepare_trace "ovsdb-log.at:263"
 
36356
( $at_check_trace; test-ovsdb log-io file read/write read read read read 'write:["replacement data"]'
 
36357
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36358
at_status=$? at_failed=false
 
36359
$at_check_filter
 
36360
echo stderr:; cat "$at_stderr"
 
36361
echo >>"$at_stdout"; $as_echo "file: open successful
 
36362
file: read: [0]
 
36363
file: read: [1]
 
36364
file: read: [2]
 
36365
file: read failed: syntax error: file: 5 bytes starting at offset 228 are not valid JSON (line 1, column 0, byte 5: syntax error at beginning of input)
 
36366
file: write:[\"replacement data\"] successful
 
36367
" | \
 
36368
  $at_diff - "$at_stdout" || at_failed=:
 
36369
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:263"
 
36370
$at_failed && at_fn_log_failure  \
 
36371
"file"
 
36372
$at_traceon; }
 
36373
 
 
36374
{ set +x
 
36375
$as_echo "$at_srcdir/ovsdb-log.at:272: test-ovsdb log-io file read-only read read read read read"
 
36376
at_fn_check_prepare_trace "ovsdb-log.at:272"
 
36377
( $at_check_trace; test-ovsdb log-io file read-only read read read read read
 
36378
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36379
at_status=$? at_failed=false
 
36380
$at_check_filter
 
36381
echo stderr:; cat "$at_stderr"
 
36382
echo >>"$at_stdout"; $as_echo "file: open successful
 
36383
file: read: [0]
 
36384
file: read: [1]
 
36385
file: read: [2]
 
36386
file: read: [\"replacement data\"]
 
36387
file: read: end of log
 
36388
" | \
 
36389
  $at_diff - "$at_stdout" || at_failed=:
 
36390
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:272"
 
36391
$at_failed && at_fn_log_failure  \
 
36392
"file"
 
36393
$at_traceon; }
 
36394
 
 
36395
{ set +x
 
36396
$as_echo "$at_srcdir/ovsdb-log.at:281: test -f .file.~lock~"
 
36397
at_fn_check_prepare_trace "ovsdb-log.at:281"
 
36398
( $at_check_trace; test -f .file.~lock~
 
36399
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36400
at_status=$? at_failed=false
 
36401
$at_check_filter
 
36402
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36403
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36404
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-log.at:281"
 
36405
$at_failed && at_fn_log_failure  \
 
36406
"file"
 
36407
$at_traceon; }
 
36408
 
 
36409
  set +x
 
36410
  $at_times_p && times >"$at_times_file"
 
36411
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36412
read at_status <"$at_status_file"
 
36413
#AT_STOP_413
 
36414
#AT_START_414
 
36415
at_fn_group_banner 414 'ovsdb-types.at:3' \
 
36416
  "integer - C" "                                    " 36
 
36417
at_xfail=no
 
36418
(
 
36419
  $as_echo "414. $at_setup_line: testing $at_desc ..."
 
36420
  $at_traceon
 
36421
 
 
36422
 
 
36423
   { set +x
 
36424
$as_echo "$at_srcdir/ovsdb-types.at:3: test-ovsdb parse-atomic-type '[\"integer\"]' "
 
36425
at_fn_check_prepare_trace "ovsdb-types.at:3"
 
36426
( $at_check_trace; test-ovsdb parse-atomic-type '["integer"]'
 
36427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36428
at_status=$? at_failed=false
 
36429
$at_check_filter
 
36430
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36431
echo >>"$at_stdout"; $as_echo "\"integer\"
 
36432
" | \
 
36433
  $at_diff - "$at_stdout" || at_failed=:
 
36434
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:3"
 
36435
$at_failed && at_fn_log_failure
 
36436
$at_traceon; }
 
36437
 
 
36438
     set +x
 
36439
  $at_times_p && times >"$at_times_file"
 
36440
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36441
read at_status <"$at_status_file"
 
36442
#AT_STOP_414
 
36443
#AT_START_415
 
36444
at_fn_group_banner 415 'ovsdb-types.at:3' \
 
36445
  "integer - Python" "                               " 36
 
36446
at_xfail=no
 
36447
(
 
36448
  $as_echo "415. $at_setup_line: testing $at_desc ..."
 
36449
  $at_traceon
 
36450
 
 
36451
   $as_echo "ovsdb-types.at:3" >"$at_check_line_file"
 
36452
(test $HAVE_PYTHON = no) \
 
36453
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:3"
 
36454
 
 
36455
 
 
36456
   { set +x
 
36457
$as_echo "$at_srcdir/ovsdb-types.at:3: \$PYTHON \$srcdir/test-ovsdb.py parse-atomic-type '[\"integer\"]' "
 
36458
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atomic-type '[\"integer\"]' " "ovsdb-types.at:3"
 
36459
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atomic-type '["integer"]'
 
36460
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36461
at_status=$? at_failed=false
 
36462
$at_check_filter
 
36463
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36464
echo >>"$at_stdout"; $as_echo "\"integer\"
 
36465
" | \
 
36466
  $at_diff - "$at_stdout" || at_failed=:
 
36467
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:3"
 
36468
$at_failed && at_fn_log_failure
 
36469
$at_traceon; }
 
36470
 
 
36471
     set +x
 
36472
  $at_times_p && times >"$at_times_file"
 
36473
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36474
read at_status <"$at_status_file"
 
36475
#AT_STOP_415
 
36476
#AT_START_416
 
36477
at_fn_group_banner 416 'ovsdb-types.at:5' \
 
36478
  "real - C" "                                       " 36
 
36479
at_xfail=no
 
36480
(
 
36481
  $as_echo "416. $at_setup_line: testing $at_desc ..."
 
36482
  $at_traceon
 
36483
 
 
36484
 
 
36485
   { set +x
 
36486
$as_echo "$at_srcdir/ovsdb-types.at:5: test-ovsdb parse-atomic-type '[\"real\"]' "
 
36487
at_fn_check_prepare_trace "ovsdb-types.at:5"
 
36488
( $at_check_trace; test-ovsdb parse-atomic-type '["real"]'
 
36489
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36490
at_status=$? at_failed=false
 
36491
$at_check_filter
 
36492
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36493
echo >>"$at_stdout"; $as_echo "\"real\"
 
36494
" | \
 
36495
  $at_diff - "$at_stdout" || at_failed=:
 
36496
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:5"
 
36497
$at_failed && at_fn_log_failure
 
36498
$at_traceon; }
 
36499
 
 
36500
     set +x
 
36501
  $at_times_p && times >"$at_times_file"
 
36502
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36503
read at_status <"$at_status_file"
 
36504
#AT_STOP_416
 
36505
#AT_START_417
 
36506
at_fn_group_banner 417 'ovsdb-types.at:5' \
 
36507
  "real - Python" "                                  " 36
 
36508
at_xfail=no
 
36509
(
 
36510
  $as_echo "417. $at_setup_line: testing $at_desc ..."
 
36511
  $at_traceon
 
36512
 
 
36513
   $as_echo "ovsdb-types.at:5" >"$at_check_line_file"
 
36514
(test $HAVE_PYTHON = no) \
 
36515
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:5"
 
36516
 
 
36517
 
 
36518
   { set +x
 
36519
$as_echo "$at_srcdir/ovsdb-types.at:5: \$PYTHON \$srcdir/test-ovsdb.py parse-atomic-type '[\"real\"]' "
 
36520
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atomic-type '[\"real\"]' " "ovsdb-types.at:5"
 
36521
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atomic-type '["real"]'
 
36522
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36523
at_status=$? at_failed=false
 
36524
$at_check_filter
 
36525
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36526
echo >>"$at_stdout"; $as_echo "\"real\"
 
36527
" | \
 
36528
  $at_diff - "$at_stdout" || at_failed=:
 
36529
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:5"
 
36530
$at_failed && at_fn_log_failure
 
36531
$at_traceon; }
 
36532
 
 
36533
     set +x
 
36534
  $at_times_p && times >"$at_times_file"
 
36535
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36536
read at_status <"$at_status_file"
 
36537
#AT_STOP_417
 
36538
#AT_START_418
 
36539
at_fn_group_banner 418 'ovsdb-types.at:7' \
 
36540
  "boolean - C" "                                    " 36
 
36541
at_xfail=no
 
36542
(
 
36543
  $as_echo "418. $at_setup_line: testing $at_desc ..."
 
36544
  $at_traceon
 
36545
 
 
36546
 
 
36547
   { set +x
 
36548
$as_echo "$at_srcdir/ovsdb-types.at:7: test-ovsdb parse-atomic-type '[\"boolean\"]' "
 
36549
at_fn_check_prepare_trace "ovsdb-types.at:7"
 
36550
( $at_check_trace; test-ovsdb parse-atomic-type '["boolean"]'
 
36551
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36552
at_status=$? at_failed=false
 
36553
$at_check_filter
 
36554
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36555
echo >>"$at_stdout"; $as_echo "\"boolean\"
 
36556
" | \
 
36557
  $at_diff - "$at_stdout" || at_failed=:
 
36558
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:7"
 
36559
$at_failed && at_fn_log_failure
 
36560
$at_traceon; }
 
36561
 
 
36562
     set +x
 
36563
  $at_times_p && times >"$at_times_file"
 
36564
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36565
read at_status <"$at_status_file"
 
36566
#AT_STOP_418
 
36567
#AT_START_419
 
36568
at_fn_group_banner 419 'ovsdb-types.at:7' \
 
36569
  "boolean - Python" "                               " 36
 
36570
at_xfail=no
 
36571
(
 
36572
  $as_echo "419. $at_setup_line: testing $at_desc ..."
 
36573
  $at_traceon
 
36574
 
 
36575
   $as_echo "ovsdb-types.at:7" >"$at_check_line_file"
 
36576
(test $HAVE_PYTHON = no) \
 
36577
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:7"
 
36578
 
 
36579
 
 
36580
   { set +x
 
36581
$as_echo "$at_srcdir/ovsdb-types.at:7: \$PYTHON \$srcdir/test-ovsdb.py parse-atomic-type '[\"boolean\"]' "
 
36582
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atomic-type '[\"boolean\"]' " "ovsdb-types.at:7"
 
36583
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atomic-type '["boolean"]'
 
36584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36585
at_status=$? at_failed=false
 
36586
$at_check_filter
 
36587
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36588
echo >>"$at_stdout"; $as_echo "\"boolean\"
 
36589
" | \
 
36590
  $at_diff - "$at_stdout" || at_failed=:
 
36591
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:7"
 
36592
$at_failed && at_fn_log_failure
 
36593
$at_traceon; }
 
36594
 
 
36595
     set +x
 
36596
  $at_times_p && times >"$at_times_file"
 
36597
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36598
read at_status <"$at_status_file"
 
36599
#AT_STOP_419
 
36600
#AT_START_420
 
36601
at_fn_group_banner 420 'ovsdb-types.at:9' \
 
36602
  "string - C" "                                     " 36
 
36603
at_xfail=no
 
36604
(
 
36605
  $as_echo "420. $at_setup_line: testing $at_desc ..."
 
36606
  $at_traceon
 
36607
 
 
36608
 
 
36609
   { set +x
 
36610
$as_echo "$at_srcdir/ovsdb-types.at:9: test-ovsdb parse-atomic-type '[\"string\"]' "
 
36611
at_fn_check_prepare_trace "ovsdb-types.at:9"
 
36612
( $at_check_trace; test-ovsdb parse-atomic-type '["string"]'
 
36613
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36614
at_status=$? at_failed=false
 
36615
$at_check_filter
 
36616
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36617
echo >>"$at_stdout"; $as_echo "\"string\"
 
36618
" | \
 
36619
  $at_diff - "$at_stdout" || at_failed=:
 
36620
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:9"
 
36621
$at_failed && at_fn_log_failure
 
36622
$at_traceon; }
 
36623
 
 
36624
     set +x
 
36625
  $at_times_p && times >"$at_times_file"
 
36626
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36627
read at_status <"$at_status_file"
 
36628
#AT_STOP_420
 
36629
#AT_START_421
 
36630
at_fn_group_banner 421 'ovsdb-types.at:9' \
 
36631
  "string - Python" "                                " 36
 
36632
at_xfail=no
 
36633
(
 
36634
  $as_echo "421. $at_setup_line: testing $at_desc ..."
 
36635
  $at_traceon
 
36636
 
 
36637
   $as_echo "ovsdb-types.at:9" >"$at_check_line_file"
 
36638
(test $HAVE_PYTHON = no) \
 
36639
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:9"
 
36640
 
 
36641
 
 
36642
   { set +x
 
36643
$as_echo "$at_srcdir/ovsdb-types.at:9: \$PYTHON \$srcdir/test-ovsdb.py parse-atomic-type '[\"string\"]' "
 
36644
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atomic-type '[\"string\"]' " "ovsdb-types.at:9"
 
36645
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atomic-type '["string"]'
 
36646
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36647
at_status=$? at_failed=false
 
36648
$at_check_filter
 
36649
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36650
echo >>"$at_stdout"; $as_echo "\"string\"
 
36651
" | \
 
36652
  $at_diff - "$at_stdout" || at_failed=:
 
36653
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:9"
 
36654
$at_failed && at_fn_log_failure
 
36655
$at_traceon; }
 
36656
 
 
36657
     set +x
 
36658
  $at_times_p && times >"$at_times_file"
 
36659
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36660
read at_status <"$at_status_file"
 
36661
#AT_STOP_421
 
36662
#AT_START_422
 
36663
at_fn_group_banner 422 'ovsdb-types.at:11' \
 
36664
  "uuid - C" "                                       " 36
 
36665
at_xfail=no
 
36666
(
 
36667
  $as_echo "422. $at_setup_line: testing $at_desc ..."
 
36668
  $at_traceon
 
36669
 
 
36670
 
 
36671
   { set +x
 
36672
$as_echo "$at_srcdir/ovsdb-types.at:11: test-ovsdb parse-atomic-type '[\"uuid\"]' "
 
36673
at_fn_check_prepare_trace "ovsdb-types.at:11"
 
36674
( $at_check_trace; test-ovsdb parse-atomic-type '["uuid"]'
 
36675
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36676
at_status=$? at_failed=false
 
36677
$at_check_filter
 
36678
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36679
echo >>"$at_stdout"; $as_echo "\"uuid\"
 
36680
" | \
 
36681
  $at_diff - "$at_stdout" || at_failed=:
 
36682
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:11"
 
36683
$at_failed && at_fn_log_failure
 
36684
$at_traceon; }
 
36685
 
 
36686
     set +x
 
36687
  $at_times_p && times >"$at_times_file"
 
36688
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36689
read at_status <"$at_status_file"
 
36690
#AT_STOP_422
 
36691
#AT_START_423
 
36692
at_fn_group_banner 423 'ovsdb-types.at:11' \
 
36693
  "uuid - Python" "                                  " 36
 
36694
at_xfail=no
 
36695
(
 
36696
  $as_echo "423. $at_setup_line: testing $at_desc ..."
 
36697
  $at_traceon
 
36698
 
 
36699
   $as_echo "ovsdb-types.at:11" >"$at_check_line_file"
 
36700
(test $HAVE_PYTHON = no) \
 
36701
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:11"
 
36702
 
 
36703
 
 
36704
   { set +x
 
36705
$as_echo "$at_srcdir/ovsdb-types.at:11: \$PYTHON \$srcdir/test-ovsdb.py parse-atomic-type '[\"uuid\"]' "
 
36706
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atomic-type '[\"uuid\"]' " "ovsdb-types.at:11"
 
36707
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atomic-type '["uuid"]'
 
36708
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36709
at_status=$? at_failed=false
 
36710
$at_check_filter
 
36711
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36712
echo >>"$at_stdout"; $as_echo "\"uuid\"
 
36713
" | \
 
36714
  $at_diff - "$at_stdout" || at_failed=:
 
36715
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:11"
 
36716
$at_failed && at_fn_log_failure
 
36717
$at_traceon; }
 
36718
 
 
36719
     set +x
 
36720
  $at_times_p && times >"$at_times_file"
 
36721
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36722
read at_status <"$at_status_file"
 
36723
#AT_STOP_423
 
36724
#AT_START_424
 
36725
at_fn_group_banner 424 'ovsdb-types.at:13' \
 
36726
  "void is not a valid atomic-type - C" "            " 36
 
36727
at_xfail=no
 
36728
(
 
36729
  $as_echo "424. $at_setup_line: testing $at_desc ..."
 
36730
  $at_traceon
 
36731
 
 
36732
 
 
36733
   { set +x
 
36734
$as_echo "$at_srcdir/ovsdb-types.at:13: test-ovsdb parse-atomic-type '[\"void\"]' "
 
36735
at_fn_check_prepare_trace "ovsdb-types.at:13"
 
36736
( $at_check_trace; test-ovsdb parse-atomic-type '["void"]'
 
36737
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36738
at_status=$? at_failed=false
 
36739
$at_check_filter
 
36740
echo stderr:; tee stderr <"$at_stderr"
 
36741
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36742
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:13"
 
36743
$at_failed && at_fn_log_failure
 
36744
$at_traceon; }
 
36745
 
 
36746
 
 
36747
   { set +x
 
36748
$as_echo "$at_srcdir/ovsdb-types.at:13: if grep -F -e \"\\\"void\\\" is not an atomic-type\" stderr
 
36749
      then
 
36750
        :
 
36751
      else
 
36752
        exit 99
 
36753
      fi"
 
36754
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:13"
 
36755
( $at_check_trace; if grep -F -e "\"void\" is not an atomic-type" stderr
 
36756
      then
 
36757
        :
 
36758
      else
 
36759
        exit 99
 
36760
      fi
 
36761
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36762
at_status=$? at_failed=false
 
36763
$at_check_filter
 
36764
echo stderr:; cat "$at_stderr"
 
36765
echo stdout:; cat "$at_stdout"
 
36766
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:13"
 
36767
$at_failed && at_fn_log_failure
 
36768
$at_traceon; }
 
36769
 
 
36770
     set +x
 
36771
  $at_times_p && times >"$at_times_file"
 
36772
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36773
read at_status <"$at_status_file"
 
36774
#AT_STOP_424
 
36775
#AT_START_425
 
36776
at_fn_group_banner 425 'ovsdb-types.at:13' \
 
36777
  "void is not a valid atomic-type - Python" "       " 36
 
36778
at_xfail=no
 
36779
(
 
36780
  $as_echo "425. $at_setup_line: testing $at_desc ..."
 
36781
  $at_traceon
 
36782
 
 
36783
   $as_echo "ovsdb-types.at:13" >"$at_check_line_file"
 
36784
(test $HAVE_PYTHON = no) \
 
36785
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:13"
 
36786
 
 
36787
   { set +x
 
36788
$as_echo "$at_srcdir/ovsdb-types.at:13: \$PYTHON \$srcdir/test-ovsdb.py parse-atomic-type '[\"void\"]' "
 
36789
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atomic-type '[\"void\"]' " "ovsdb-types.at:13"
 
36790
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atomic-type '["void"]'
 
36791
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36792
at_status=$? at_failed=false
 
36793
$at_check_filter
 
36794
echo stderr:; tee stderr <"$at_stderr"
 
36795
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
36796
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:13"
 
36797
$at_failed && at_fn_log_failure
 
36798
$at_traceon; }
 
36799
 
 
36800
 
 
36801
   { set +x
 
36802
$as_echo "$at_srcdir/ovsdb-types.at:13: if grep -F -e \"\\\"void\\\" is not an atomic-type\" stderr
 
36803
      then
 
36804
        :
 
36805
      else
 
36806
        exit 99
 
36807
      fi"
 
36808
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:13"
 
36809
( $at_check_trace; if grep -F -e "\"void\" is not an atomic-type" stderr
 
36810
      then
 
36811
        :
 
36812
      else
 
36813
        exit 99
 
36814
      fi
 
36815
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36816
at_status=$? at_failed=false
 
36817
$at_check_filter
 
36818
echo stderr:; cat "$at_stderr"
 
36819
echo stdout:; cat "$at_stdout"
 
36820
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:13"
 
36821
$at_failed && at_fn_log_failure
 
36822
$at_traceon; }
 
36823
 
 
36824
     set +x
 
36825
  $at_times_p && times >"$at_times_file"
 
36826
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36827
read at_status <"$at_status_file"
 
36828
#AT_STOP_425
 
36829
#AT_START_426
 
36830
at_fn_group_banner 426 'ovsdb-types.at:18' \
 
36831
  "integer enum - C" "                               " 37
 
36832
at_xfail=no
 
36833
(
 
36834
  $as_echo "426. $at_setup_line: testing $at_desc ..."
 
36835
  $at_traceon
 
36836
 
 
36837
 
 
36838
   { set +x
 
36839
$as_echo "$at_srcdir/ovsdb-types.at:18: test-ovsdb parse-base-type '{\"type\": \"integer\", \"enum\": [\"set\", [-1, 4, 5]]}' "
 
36840
at_fn_check_prepare_trace "ovsdb-types.at:18"
 
36841
( $at_check_trace; test-ovsdb parse-base-type '{"type": "integer", "enum": ["set", [-1, 4, 5]]}'
 
36842
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36843
at_status=$? at_failed=false
 
36844
$at_check_filter
 
36845
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36846
echo >>"$at_stdout"; $as_echo "{\"enum\":[\"set\",[-1,4,5]],\"type\":\"integer\"}
 
36847
" | \
 
36848
  $at_diff - "$at_stdout" || at_failed=:
 
36849
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:18"
 
36850
$at_failed && at_fn_log_failure
 
36851
$at_traceon; }
 
36852
 
 
36853
     set +x
 
36854
  $at_times_p && times >"$at_times_file"
 
36855
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36856
read at_status <"$at_status_file"
 
36857
#AT_STOP_426
 
36858
#AT_START_427
 
36859
at_fn_group_banner 427 'ovsdb-types.at:18' \
 
36860
  "integer enum - Python" "                          " 37
 
36861
at_xfail=no
 
36862
(
 
36863
  $as_echo "427. $at_setup_line: testing $at_desc ..."
 
36864
  $at_traceon
 
36865
 
 
36866
   $as_echo "ovsdb-types.at:18" >"$at_check_line_file"
 
36867
(test $HAVE_PYTHON = no) \
 
36868
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:18"
 
36869
 
 
36870
 
 
36871
   { set +x
 
36872
$as_echo "$at_srcdir/ovsdb-types.at:18: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"enum\": [\"set\", [-1, 4, 5]]}' "
 
36873
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"enum\": [\"set\", [-1, 4, 5]]}' " "ovsdb-types.at:18"
 
36874
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "integer", "enum": ["set", [-1, 4, 5]]}'
 
36875
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36876
at_status=$? at_failed=false
 
36877
$at_check_filter
 
36878
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36879
echo >>"$at_stdout"; $as_echo "{\"enum\":[\"set\",[-1,4,5]],\"type\":\"integer\"}
 
36880
" | \
 
36881
  $at_diff - "$at_stdout" || at_failed=:
 
36882
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:18"
 
36883
$at_failed && at_fn_log_failure
 
36884
$at_traceon; }
 
36885
 
 
36886
     set +x
 
36887
  $at_times_p && times >"$at_times_file"
 
36888
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36889
read at_status <"$at_status_file"
 
36890
#AT_STOP_427
 
36891
#AT_START_428
 
36892
at_fn_group_banner 428 'ovsdb-types.at:21' \
 
36893
  "integer >= 5 - C" "                               " 37
 
36894
at_xfail=no
 
36895
(
 
36896
  $as_echo "428. $at_setup_line: testing $at_desc ..."
 
36897
  $at_traceon
 
36898
 
 
36899
 
 
36900
   { set +x
 
36901
$as_echo "$at_srcdir/ovsdb-types.at:21: test-ovsdb parse-base-type '{\"type\": \"integer\", \"minInteger\": 5}' "
 
36902
at_fn_check_prepare_trace "ovsdb-types.at:21"
 
36903
( $at_check_trace; test-ovsdb parse-base-type '{"type": "integer", "minInteger": 5}'
 
36904
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36905
at_status=$? at_failed=false
 
36906
$at_check_filter
 
36907
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36908
echo >>"$at_stdout"; $as_echo "{\"minInteger\":5,\"type\":\"integer\"}
 
36909
" | \
 
36910
  $at_diff - "$at_stdout" || at_failed=:
 
36911
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:21"
 
36912
$at_failed && at_fn_log_failure
 
36913
$at_traceon; }
 
36914
 
 
36915
     set +x
 
36916
  $at_times_p && times >"$at_times_file"
 
36917
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36918
read at_status <"$at_status_file"
 
36919
#AT_STOP_428
 
36920
#AT_START_429
 
36921
at_fn_group_banner 429 'ovsdb-types.at:21' \
 
36922
  "integer >= 5 - Python" "                          " 37
 
36923
at_xfail=no
 
36924
(
 
36925
  $as_echo "429. $at_setup_line: testing $at_desc ..."
 
36926
  $at_traceon
 
36927
 
 
36928
   $as_echo "ovsdb-types.at:21" >"$at_check_line_file"
 
36929
(test $HAVE_PYTHON = no) \
 
36930
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:21"
 
36931
 
 
36932
 
 
36933
   { set +x
 
36934
$as_echo "$at_srcdir/ovsdb-types.at:21: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"minInteger\": 5}' "
 
36935
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"minInteger\": 5}' " "ovsdb-types.at:21"
 
36936
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "integer", "minInteger": 5}'
 
36937
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36938
at_status=$? at_failed=false
 
36939
$at_check_filter
 
36940
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36941
echo >>"$at_stdout"; $as_echo "{\"minInteger\":5,\"type\":\"integer\"}
 
36942
" | \
 
36943
  $at_diff - "$at_stdout" || at_failed=:
 
36944
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:21"
 
36945
$at_failed && at_fn_log_failure
 
36946
$at_traceon; }
 
36947
 
 
36948
     set +x
 
36949
  $at_times_p && times >"$at_times_file"
 
36950
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36951
read at_status <"$at_status_file"
 
36952
#AT_STOP_429
 
36953
#AT_START_430
 
36954
at_fn_group_banner 430 'ovsdb-types.at:24' \
 
36955
  "integer <= 7 - C" "                               " 37
 
36956
at_xfail=no
 
36957
(
 
36958
  $as_echo "430. $at_setup_line: testing $at_desc ..."
 
36959
  $at_traceon
 
36960
 
 
36961
 
 
36962
   { set +x
 
36963
$as_echo "$at_srcdir/ovsdb-types.at:24: test-ovsdb parse-base-type '{\"type\": \"integer\", \"maxInteger\": 7}' "
 
36964
at_fn_check_prepare_trace "ovsdb-types.at:24"
 
36965
( $at_check_trace; test-ovsdb parse-base-type '{"type": "integer", "maxInteger": 7}'
 
36966
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
36967
at_status=$? at_failed=false
 
36968
$at_check_filter
 
36969
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
36970
echo >>"$at_stdout"; $as_echo "{\"maxInteger\":7,\"type\":\"integer\"}
 
36971
" | \
 
36972
  $at_diff - "$at_stdout" || at_failed=:
 
36973
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:24"
 
36974
$at_failed && at_fn_log_failure
 
36975
$at_traceon; }
 
36976
 
 
36977
     set +x
 
36978
  $at_times_p && times >"$at_times_file"
 
36979
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
36980
read at_status <"$at_status_file"
 
36981
#AT_STOP_430
 
36982
#AT_START_431
 
36983
at_fn_group_banner 431 'ovsdb-types.at:24' \
 
36984
  "integer <= 7 - Python" "                          " 37
 
36985
at_xfail=no
 
36986
(
 
36987
  $as_echo "431. $at_setup_line: testing $at_desc ..."
 
36988
  $at_traceon
 
36989
 
 
36990
   $as_echo "ovsdb-types.at:24" >"$at_check_line_file"
 
36991
(test $HAVE_PYTHON = no) \
 
36992
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:24"
 
36993
 
 
36994
 
 
36995
   { set +x
 
36996
$as_echo "$at_srcdir/ovsdb-types.at:24: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"maxInteger\": 7}' "
 
36997
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"maxInteger\": 7}' " "ovsdb-types.at:24"
 
36998
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "integer", "maxInteger": 7}'
 
36999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37000
at_status=$? at_failed=false
 
37001
$at_check_filter
 
37002
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37003
echo >>"$at_stdout"; $as_echo "{\"maxInteger\":7,\"type\":\"integer\"}
 
37004
" | \
 
37005
  $at_diff - "$at_stdout" || at_failed=:
 
37006
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:24"
 
37007
$at_failed && at_fn_log_failure
 
37008
$at_traceon; }
 
37009
 
 
37010
     set +x
 
37011
  $at_times_p && times >"$at_times_file"
 
37012
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37013
read at_status <"$at_status_file"
 
37014
#AT_STOP_431
 
37015
#AT_START_432
 
37016
at_fn_group_banner 432 'ovsdb-types.at:27' \
 
37017
  "integer between -5 and 10 - C" "                  " 37
 
37018
at_xfail=no
 
37019
(
 
37020
  $as_echo "432. $at_setup_line: testing $at_desc ..."
 
37021
  $at_traceon
 
37022
 
 
37023
 
 
37024
   { set +x
 
37025
$as_echo "$at_srcdir/ovsdb-types.at:27: test-ovsdb parse-base-type '{\"type\": \"integer\", \"minInteger\": -5, \"maxInteger\": 10}'"
 
37026
at_fn_check_prepare_trace "ovsdb-types.at:27"
 
37027
( $at_check_trace; test-ovsdb parse-base-type '{"type": "integer", "minInteger": -5, "maxInteger": 10}'
 
37028
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37029
at_status=$? at_failed=false
 
37030
$at_check_filter
 
37031
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37032
echo >>"$at_stdout"; $as_echo "{\"maxInteger\":10,\"minInteger\":-5,\"type\":\"integer\"}
 
37033
" | \
 
37034
  $at_diff - "$at_stdout" || at_failed=:
 
37035
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:27"
 
37036
$at_failed && at_fn_log_failure
 
37037
$at_traceon; }
 
37038
 
 
37039
     set +x
 
37040
  $at_times_p && times >"$at_times_file"
 
37041
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37042
read at_status <"$at_status_file"
 
37043
#AT_STOP_432
 
37044
#AT_START_433
 
37045
at_fn_group_banner 433 'ovsdb-types.at:27' \
 
37046
  "integer between -5 and 10 - Python" "             " 37
 
37047
at_xfail=no
 
37048
(
 
37049
  $as_echo "433. $at_setup_line: testing $at_desc ..."
 
37050
  $at_traceon
 
37051
 
 
37052
   $as_echo "ovsdb-types.at:27" >"$at_check_line_file"
 
37053
(test $HAVE_PYTHON = no) \
 
37054
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:27"
 
37055
 
 
37056
 
 
37057
   { set +x
 
37058
$as_echo "$at_srcdir/ovsdb-types.at:27: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"minInteger\": -5, \"maxInteger\": 10}'"
 
37059
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"minInteger\": -5, \"maxInteger\": 10}'" "ovsdb-types.at:27"
 
37060
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "integer", "minInteger": -5, "maxInteger": 10}'
 
37061
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37062
at_status=$? at_failed=false
 
37063
$at_check_filter
 
37064
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37065
echo >>"$at_stdout"; $as_echo "{\"maxInteger\":10,\"minInteger\":-5,\"type\":\"integer\"}
 
37066
" | \
 
37067
  $at_diff - "$at_stdout" || at_failed=:
 
37068
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:27"
 
37069
$at_failed && at_fn_log_failure
 
37070
$at_traceon; }
 
37071
 
 
37072
     set +x
 
37073
  $at_times_p && times >"$at_times_file"
 
37074
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37075
read at_status <"$at_status_file"
 
37076
#AT_STOP_433
 
37077
#AT_START_434
 
37078
at_fn_group_banner 434 'ovsdb-types.at:30' \
 
37079
  "integer max may not be less than min - C" "       " 37
 
37080
at_xfail=no
 
37081
(
 
37082
  $as_echo "434. $at_setup_line: testing $at_desc ..."
 
37083
  $at_traceon
 
37084
 
 
37085
 
 
37086
   { set +x
 
37087
$as_echo "$at_srcdir/ovsdb-types.at:30: test-ovsdb parse-base-type '{\"type\": \"integer\", \"minInteger\": 5, \"maxInteger\": 3}'"
 
37088
at_fn_check_prepare_trace "ovsdb-types.at:30"
 
37089
( $at_check_trace; test-ovsdb parse-base-type '{"type": "integer", "minInteger": 5, "maxInteger": 3}'
 
37090
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37091
at_status=$? at_failed=false
 
37092
$at_check_filter
 
37093
echo stderr:; tee stderr <"$at_stderr"
 
37094
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
37095
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:30"
 
37096
$at_failed && at_fn_log_failure
 
37097
$at_traceon; }
 
37098
 
 
37099
 
 
37100
   { set +x
 
37101
$as_echo "$at_srcdir/ovsdb-types.at:30: if grep -F -e \"minInteger exceeds maxInteger\" stderr
 
37102
      then
 
37103
        :
 
37104
      else
 
37105
        exit 99
 
37106
      fi"
 
37107
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:30"
 
37108
( $at_check_trace; if grep -F -e "minInteger exceeds maxInteger" stderr
 
37109
      then
 
37110
        :
 
37111
      else
 
37112
        exit 99
 
37113
      fi
 
37114
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37115
at_status=$? at_failed=false
 
37116
$at_check_filter
 
37117
echo stderr:; cat "$at_stderr"
 
37118
echo stdout:; cat "$at_stdout"
 
37119
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:30"
 
37120
$at_failed && at_fn_log_failure
 
37121
$at_traceon; }
 
37122
 
 
37123
     set +x
 
37124
  $at_times_p && times >"$at_times_file"
 
37125
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37126
read at_status <"$at_status_file"
 
37127
#AT_STOP_434
 
37128
#AT_START_435
 
37129
at_fn_group_banner 435 'ovsdb-types.at:30' \
 
37130
  "integer max may not be less than min - Python" "  " 37
 
37131
at_xfail=no
 
37132
(
 
37133
  $as_echo "435. $at_setup_line: testing $at_desc ..."
 
37134
  $at_traceon
 
37135
 
 
37136
   $as_echo "ovsdb-types.at:30" >"$at_check_line_file"
 
37137
(test $HAVE_PYTHON = no) \
 
37138
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:30"
 
37139
 
 
37140
   { set +x
 
37141
$as_echo "$at_srcdir/ovsdb-types.at:30: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"minInteger\": 5, \"maxInteger\": 3}'"
 
37142
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"integer\", \"minInteger\": 5, \"maxInteger\": 3}'" "ovsdb-types.at:30"
 
37143
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "integer", "minInteger": 5, "maxInteger": 3}'
 
37144
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37145
at_status=$? at_failed=false
 
37146
$at_check_filter
 
37147
echo stderr:; tee stderr <"$at_stderr"
 
37148
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
37149
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:30"
 
37150
$at_failed && at_fn_log_failure
 
37151
$at_traceon; }
 
37152
 
 
37153
 
 
37154
   { set +x
 
37155
$as_echo "$at_srcdir/ovsdb-types.at:30: if grep -F -e \"minInteger exceeds maxInteger\" stderr
 
37156
      then
 
37157
        :
 
37158
      else
 
37159
        exit 99
 
37160
      fi"
 
37161
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:30"
 
37162
( $at_check_trace; if grep -F -e "minInteger exceeds maxInteger" stderr
 
37163
      then
 
37164
        :
 
37165
      else
 
37166
        exit 99
 
37167
      fi
 
37168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37169
at_status=$? at_failed=false
 
37170
$at_check_filter
 
37171
echo stderr:; cat "$at_stderr"
 
37172
echo stdout:; cat "$at_stdout"
 
37173
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:30"
 
37174
$at_failed && at_fn_log_failure
 
37175
$at_traceon; }
 
37176
 
 
37177
     set +x
 
37178
  $at_times_p && times >"$at_times_file"
 
37179
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37180
read at_status <"$at_status_file"
 
37181
#AT_STOP_435
 
37182
#AT_START_436
 
37183
at_fn_group_banner 436 'ovsdb-types.at:34' \
 
37184
  "real enum - C" "                                  " 37
 
37185
at_xfail=no
 
37186
(
 
37187
  $as_echo "436. $at_setup_line: testing $at_desc ..."
 
37188
  $at_traceon
 
37189
 
 
37190
 
 
37191
   { set +x
 
37192
$as_echo "$at_srcdir/ovsdb-types.at:34: test-ovsdb parse-base-type '{\"type\": \"real\", \"enum\": [\"set\", [1.5, 0, 2.75]]}' "
 
37193
at_fn_check_prepare_trace "ovsdb-types.at:34"
 
37194
( $at_check_trace; test-ovsdb parse-base-type '{"type": "real", "enum": ["set", [1.5, 0, 2.75]]}'
 
37195
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37196
at_status=$? at_failed=false
 
37197
$at_check_filter
 
37198
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37199
echo >>"$at_stdout"; $as_echo "{\"enum\":[\"set\",[0,1.5,2.75]],\"type\":\"real\"}
 
37200
" | \
 
37201
  $at_diff - "$at_stdout" || at_failed=:
 
37202
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:34"
 
37203
$at_failed && at_fn_log_failure
 
37204
$at_traceon; }
 
37205
 
 
37206
     set +x
 
37207
  $at_times_p && times >"$at_times_file"
 
37208
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37209
read at_status <"$at_status_file"
 
37210
#AT_STOP_436
 
37211
#AT_START_437
 
37212
at_fn_group_banner 437 'ovsdb-types.at:34' \
 
37213
  "real enum - Python" "                             " 37
 
37214
at_xfail=no
 
37215
(
 
37216
  $as_echo "437. $at_setup_line: testing $at_desc ..."
 
37217
  $at_traceon
 
37218
 
 
37219
   $as_echo "ovsdb-types.at:34" >"$at_check_line_file"
 
37220
(test $HAVE_PYTHON = no) \
 
37221
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:34"
 
37222
 
 
37223
 
 
37224
   { set +x
 
37225
$as_echo "$at_srcdir/ovsdb-types.at:34: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"enum\": [\"set\", [1.5, 0, 2.75]]}' "
 
37226
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"enum\": [\"set\", [1.5, 0, 2.75]]}' " "ovsdb-types.at:34"
 
37227
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "real", "enum": ["set", [1.5, 0, 2.75]]}'
 
37228
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37229
at_status=$? at_failed=false
 
37230
$at_check_filter
 
37231
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37232
echo >>"$at_stdout"; $as_echo "{\"enum\":[\"set\",[0,1.5,2.75]],\"type\":\"real\"}
 
37233
" | \
 
37234
  $at_diff - "$at_stdout" || at_failed=:
 
37235
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:34"
 
37236
$at_failed && at_fn_log_failure
 
37237
$at_traceon; }
 
37238
 
 
37239
     set +x
 
37240
  $at_times_p && times >"$at_times_file"
 
37241
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37242
read at_status <"$at_status_file"
 
37243
#AT_STOP_437
 
37244
#AT_START_438
 
37245
at_fn_group_banner 438 'ovsdb-types.at:37' \
 
37246
  "real >= -1.5 - C" "                               " 37
 
37247
at_xfail=no
 
37248
(
 
37249
  $as_echo "438. $at_setup_line: testing $at_desc ..."
 
37250
  $at_traceon
 
37251
 
 
37252
 
 
37253
   { set +x
 
37254
$as_echo "$at_srcdir/ovsdb-types.at:37: test-ovsdb parse-base-type '{\"type\": \"real\", \"minReal\": -1.5}'"
 
37255
at_fn_check_prepare_trace "ovsdb-types.at:37"
 
37256
( $at_check_trace; test-ovsdb parse-base-type '{"type": "real", "minReal": -1.5}'
 
37257
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37258
at_status=$? at_failed=false
 
37259
$at_check_filter
 
37260
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37261
echo >>"$at_stdout"; $as_echo "{\"minReal\":-1.5,\"type\":\"real\"}
 
37262
" | \
 
37263
  $at_diff - "$at_stdout" || at_failed=:
 
37264
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:37"
 
37265
$at_failed && at_fn_log_failure
 
37266
$at_traceon; }
 
37267
 
 
37268
     set +x
 
37269
  $at_times_p && times >"$at_times_file"
 
37270
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37271
read at_status <"$at_status_file"
 
37272
#AT_STOP_438
 
37273
#AT_START_439
 
37274
at_fn_group_banner 439 'ovsdb-types.at:37' \
 
37275
  "real >= -1.5 - Python" "                          " 37
 
37276
at_xfail=no
 
37277
(
 
37278
  $as_echo "439. $at_setup_line: testing $at_desc ..."
 
37279
  $at_traceon
 
37280
 
 
37281
   $as_echo "ovsdb-types.at:37" >"$at_check_line_file"
 
37282
(test $HAVE_PYTHON = no) \
 
37283
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:37"
 
37284
 
 
37285
 
 
37286
   { set +x
 
37287
$as_echo "$at_srcdir/ovsdb-types.at:37: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"minReal\": -1.5}'"
 
37288
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"minReal\": -1.5}'" "ovsdb-types.at:37"
 
37289
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "real", "minReal": -1.5}'
 
37290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37291
at_status=$? at_failed=false
 
37292
$at_check_filter
 
37293
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37294
echo >>"$at_stdout"; $as_echo "{\"minReal\":-1.5,\"type\":\"real\"}
 
37295
" | \
 
37296
  $at_diff - "$at_stdout" || at_failed=:
 
37297
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:37"
 
37298
$at_failed && at_fn_log_failure
 
37299
$at_traceon; }
 
37300
 
 
37301
     set +x
 
37302
  $at_times_p && times >"$at_times_file"
 
37303
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37304
read at_status <"$at_status_file"
 
37305
#AT_STOP_439
 
37306
#AT_START_440
 
37307
at_fn_group_banner 440 'ovsdb-types.at:40' \
 
37308
  "real <= 1e5 - C" "                                " 37
 
37309
at_xfail=no
 
37310
(
 
37311
  $as_echo "440. $at_setup_line: testing $at_desc ..."
 
37312
  $at_traceon
 
37313
 
 
37314
 
 
37315
   { set +x
 
37316
$as_echo "$at_srcdir/ovsdb-types.at:40: test-ovsdb parse-base-type '{\"type\": \"real\", \"maxReal\": 1e5}'"
 
37317
at_fn_check_prepare_trace "ovsdb-types.at:40"
 
37318
( $at_check_trace; test-ovsdb parse-base-type '{"type": "real", "maxReal": 1e5}'
 
37319
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37320
at_status=$? at_failed=false
 
37321
$at_check_filter
 
37322
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37323
echo >>"$at_stdout"; $as_echo "{\"maxReal\":100000,\"type\":\"real\"}
 
37324
" | \
 
37325
  $at_diff - "$at_stdout" || at_failed=:
 
37326
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:40"
 
37327
$at_failed && at_fn_log_failure
 
37328
$at_traceon; }
 
37329
 
 
37330
     set +x
 
37331
  $at_times_p && times >"$at_times_file"
 
37332
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37333
read at_status <"$at_status_file"
 
37334
#AT_STOP_440
 
37335
#AT_START_441
 
37336
at_fn_group_banner 441 'ovsdb-types.at:40' \
 
37337
  "real <= 1e5 - Python" "                           " 37
 
37338
at_xfail=no
 
37339
(
 
37340
  $as_echo "441. $at_setup_line: testing $at_desc ..."
 
37341
  $at_traceon
 
37342
 
 
37343
   $as_echo "ovsdb-types.at:40" >"$at_check_line_file"
 
37344
(test $HAVE_PYTHON = no) \
 
37345
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:40"
 
37346
 
 
37347
 
 
37348
   { set +x
 
37349
$as_echo "$at_srcdir/ovsdb-types.at:40: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"maxReal\": 1e5}'"
 
37350
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"maxReal\": 1e5}'" "ovsdb-types.at:40"
 
37351
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "real", "maxReal": 1e5}'
 
37352
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37353
at_status=$? at_failed=false
 
37354
$at_check_filter
 
37355
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37356
echo >>"$at_stdout"; $as_echo "{\"maxReal\":100000,\"type\":\"real\"}
 
37357
" | \
 
37358
  $at_diff - "$at_stdout" || at_failed=:
 
37359
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:40"
 
37360
$at_failed && at_fn_log_failure
 
37361
$at_traceon; }
 
37362
 
 
37363
     set +x
 
37364
  $at_times_p && times >"$at_times_file"
 
37365
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37366
read at_status <"$at_status_file"
 
37367
#AT_STOP_441
 
37368
#AT_START_442
 
37369
at_fn_group_banner 442 'ovsdb-types.at:43' \
 
37370
  "real between -2.5 and 3.75 - C" "                 " 37
 
37371
at_xfail=no
 
37372
(
 
37373
  $as_echo "442. $at_setup_line: testing $at_desc ..."
 
37374
  $at_traceon
 
37375
 
 
37376
 
 
37377
   { set +x
 
37378
$as_echo "$at_srcdir/ovsdb-types.at:43: test-ovsdb parse-base-type '{\"type\": \"real\", \"minReal\": -2.5, \"maxReal\": 3.75}'"
 
37379
at_fn_check_prepare_trace "ovsdb-types.at:43"
 
37380
( $at_check_trace; test-ovsdb parse-base-type '{"type": "real", "minReal": -2.5, "maxReal": 3.75}'
 
37381
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37382
at_status=$? at_failed=false
 
37383
$at_check_filter
 
37384
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37385
echo >>"$at_stdout"; $as_echo "{\"maxReal\":3.75,\"minReal\":-2.5,\"type\":\"real\"}
 
37386
" | \
 
37387
  $at_diff - "$at_stdout" || at_failed=:
 
37388
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:43"
 
37389
$at_failed && at_fn_log_failure
 
37390
$at_traceon; }
 
37391
 
 
37392
     set +x
 
37393
  $at_times_p && times >"$at_times_file"
 
37394
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37395
read at_status <"$at_status_file"
 
37396
#AT_STOP_442
 
37397
#AT_START_443
 
37398
at_fn_group_banner 443 'ovsdb-types.at:43' \
 
37399
  "real between -2.5 and 3.75 - Python" "            " 37
 
37400
at_xfail=no
 
37401
(
 
37402
  $as_echo "443. $at_setup_line: testing $at_desc ..."
 
37403
  $at_traceon
 
37404
 
 
37405
   $as_echo "ovsdb-types.at:43" >"$at_check_line_file"
 
37406
(test $HAVE_PYTHON = no) \
 
37407
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:43"
 
37408
 
 
37409
 
 
37410
   { set +x
 
37411
$as_echo "$at_srcdir/ovsdb-types.at:43: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"minReal\": -2.5, \"maxReal\": 3.75}'"
 
37412
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"minReal\": -2.5, \"maxReal\": 3.75}'" "ovsdb-types.at:43"
 
37413
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "real", "minReal": -2.5, "maxReal": 3.75}'
 
37414
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37415
at_status=$? at_failed=false
 
37416
$at_check_filter
 
37417
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37418
echo >>"$at_stdout"; $as_echo "{\"maxReal\":3.75,\"minReal\":-2.5,\"type\":\"real\"}
 
37419
" | \
 
37420
  $at_diff - "$at_stdout" || at_failed=:
 
37421
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:43"
 
37422
$at_failed && at_fn_log_failure
 
37423
$at_traceon; }
 
37424
 
 
37425
     set +x
 
37426
  $at_times_p && times >"$at_times_file"
 
37427
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37428
read at_status <"$at_status_file"
 
37429
#AT_STOP_443
 
37430
#AT_START_444
 
37431
at_fn_group_banner 444 'ovsdb-types.at:46' \
 
37432
  "real max may not be less than min - C" "          " 37
 
37433
at_xfail=no
 
37434
(
 
37435
  $as_echo "444. $at_setup_line: testing $at_desc ..."
 
37436
  $at_traceon
 
37437
 
 
37438
 
 
37439
   { set +x
 
37440
$as_echo "$at_srcdir/ovsdb-types.at:46: test-ovsdb parse-base-type '{\"type\": \"real\", \"minReal\": 555, \"maxReal\": 444}'"
 
37441
at_fn_check_prepare_trace "ovsdb-types.at:46"
 
37442
( $at_check_trace; test-ovsdb parse-base-type '{"type": "real", "minReal": 555, "maxReal": 444}'
 
37443
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37444
at_status=$? at_failed=false
 
37445
$at_check_filter
 
37446
echo stderr:; tee stderr <"$at_stderr"
 
37447
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
37448
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:46"
 
37449
$at_failed && at_fn_log_failure
 
37450
$at_traceon; }
 
37451
 
 
37452
 
 
37453
   { set +x
 
37454
$as_echo "$at_srcdir/ovsdb-types.at:46: if grep -F -e \"minReal exceeds maxReal\" stderr
 
37455
      then
 
37456
        :
 
37457
      else
 
37458
        exit 99
 
37459
      fi"
 
37460
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:46"
 
37461
( $at_check_trace; if grep -F -e "minReal exceeds maxReal" stderr
 
37462
      then
 
37463
        :
 
37464
      else
 
37465
        exit 99
 
37466
      fi
 
37467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37468
at_status=$? at_failed=false
 
37469
$at_check_filter
 
37470
echo stderr:; cat "$at_stderr"
 
37471
echo stdout:; cat "$at_stdout"
 
37472
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:46"
 
37473
$at_failed && at_fn_log_failure
 
37474
$at_traceon; }
 
37475
 
 
37476
     set +x
 
37477
  $at_times_p && times >"$at_times_file"
 
37478
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37479
read at_status <"$at_status_file"
 
37480
#AT_STOP_444
 
37481
#AT_START_445
 
37482
at_fn_group_banner 445 'ovsdb-types.at:46' \
 
37483
  "real max may not be less than min - Python" "     " 37
 
37484
at_xfail=no
 
37485
(
 
37486
  $as_echo "445. $at_setup_line: testing $at_desc ..."
 
37487
  $at_traceon
 
37488
 
 
37489
   $as_echo "ovsdb-types.at:46" >"$at_check_line_file"
 
37490
(test $HAVE_PYTHON = no) \
 
37491
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:46"
 
37492
 
 
37493
   { set +x
 
37494
$as_echo "$at_srcdir/ovsdb-types.at:46: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"minReal\": 555, \"maxReal\": 444}'"
 
37495
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"real\", \"minReal\": 555, \"maxReal\": 444}'" "ovsdb-types.at:46"
 
37496
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "real", "minReal": 555, "maxReal": 444}'
 
37497
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37498
at_status=$? at_failed=false
 
37499
$at_check_filter
 
37500
echo stderr:; tee stderr <"$at_stderr"
 
37501
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
37502
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:46"
 
37503
$at_failed && at_fn_log_failure
 
37504
$at_traceon; }
 
37505
 
 
37506
 
 
37507
   { set +x
 
37508
$as_echo "$at_srcdir/ovsdb-types.at:46: if grep -F -e \"minReal exceeds maxReal\" stderr
 
37509
      then
 
37510
        :
 
37511
      else
 
37512
        exit 99
 
37513
      fi"
 
37514
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:46"
 
37515
( $at_check_trace; if grep -F -e "minReal exceeds maxReal" stderr
 
37516
      then
 
37517
        :
 
37518
      else
 
37519
        exit 99
 
37520
      fi
 
37521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37522
at_status=$? at_failed=false
 
37523
$at_check_filter
 
37524
echo stderr:; cat "$at_stderr"
 
37525
echo stdout:; cat "$at_stdout"
 
37526
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:46"
 
37527
$at_failed && at_fn_log_failure
 
37528
$at_traceon; }
 
37529
 
 
37530
     set +x
 
37531
  $at_times_p && times >"$at_times_file"
 
37532
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37533
read at_status <"$at_status_file"
 
37534
#AT_STOP_445
 
37535
#AT_START_446
 
37536
at_fn_group_banner 446 'ovsdb-types.at:50' \
 
37537
  "boolean - C" "                                    " 37
 
37538
at_xfail=no
 
37539
(
 
37540
  $as_echo "446. $at_setup_line: testing $at_desc ..."
 
37541
  $at_traceon
 
37542
 
 
37543
 
 
37544
   { set +x
 
37545
$as_echo "$at_srcdir/ovsdb-types.at:50: test-ovsdb parse-base-type '[{\"type\": \"boolean\"}]' "
 
37546
at_fn_check_prepare_trace "ovsdb-types.at:50"
 
37547
( $at_check_trace; test-ovsdb parse-base-type '[{"type": "boolean"}]'
 
37548
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37549
at_status=$? at_failed=false
 
37550
$at_check_filter
 
37551
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37552
echo >>"$at_stdout"; $as_echo "\"boolean\"
 
37553
" | \
 
37554
  $at_diff - "$at_stdout" || at_failed=:
 
37555
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:50"
 
37556
$at_failed && at_fn_log_failure
 
37557
$at_traceon; }
 
37558
 
 
37559
     set +x
 
37560
  $at_times_p && times >"$at_times_file"
 
37561
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37562
read at_status <"$at_status_file"
 
37563
#AT_STOP_446
 
37564
#AT_START_447
 
37565
at_fn_group_banner 447 'ovsdb-types.at:50' \
 
37566
  "boolean - Python" "                               " 37
 
37567
at_xfail=no
 
37568
(
 
37569
  $as_echo "447. $at_setup_line: testing $at_desc ..."
 
37570
  $at_traceon
 
37571
 
 
37572
   $as_echo "ovsdb-types.at:50" >"$at_check_line_file"
 
37573
(test $HAVE_PYTHON = no) \
 
37574
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:50"
 
37575
 
 
37576
 
 
37577
   { set +x
 
37578
$as_echo "$at_srcdir/ovsdb-types.at:50: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '[{\"type\": \"boolean\"}]' "
 
37579
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '[{\"type\": \"boolean\"}]' " "ovsdb-types.at:50"
 
37580
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '[{"type": "boolean"}]'
 
37581
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37582
at_status=$? at_failed=false
 
37583
$at_check_filter
 
37584
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37585
echo >>"$at_stdout"; $as_echo "\"boolean\"
 
37586
" | \
 
37587
  $at_diff - "$at_stdout" || at_failed=:
 
37588
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:50"
 
37589
$at_failed && at_fn_log_failure
 
37590
$at_traceon; }
 
37591
 
 
37592
     set +x
 
37593
  $at_times_p && times >"$at_times_file"
 
37594
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37595
read at_status <"$at_status_file"
 
37596
#AT_STOP_447
 
37597
#AT_START_448
 
37598
at_fn_group_banner 448 'ovsdb-types.at:52' \
 
37599
  "boolean enum - C" "                               " 37
 
37600
at_xfail=no
 
37601
(
 
37602
  $as_echo "448. $at_setup_line: testing $at_desc ..."
 
37603
  $at_traceon
 
37604
 
 
37605
 
 
37606
   { set +x
 
37607
$as_echo "$at_srcdir/ovsdb-types.at:52: test-ovsdb parse-base-type '{\"type\": \"boolean\", \"enum\": true}' "
 
37608
at_fn_check_prepare_trace "ovsdb-types.at:52"
 
37609
( $at_check_trace; test-ovsdb parse-base-type '{"type": "boolean", "enum": true}'
 
37610
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37611
at_status=$? at_failed=false
 
37612
$at_check_filter
 
37613
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37614
echo >>"$at_stdout"; $as_echo "{\"enum\":true,\"type\":\"boolean\"}
 
37615
" | \
 
37616
  $at_diff - "$at_stdout" || at_failed=:
 
37617
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:52"
 
37618
$at_failed && at_fn_log_failure
 
37619
$at_traceon; }
 
37620
 
 
37621
     set +x
 
37622
  $at_times_p && times >"$at_times_file"
 
37623
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37624
read at_status <"$at_status_file"
 
37625
#AT_STOP_448
 
37626
#AT_START_449
 
37627
at_fn_group_banner 449 'ovsdb-types.at:52' \
 
37628
  "boolean enum - Python" "                          " 37
 
37629
at_xfail=no
 
37630
(
 
37631
  $as_echo "449. $at_setup_line: testing $at_desc ..."
 
37632
  $at_traceon
 
37633
 
 
37634
   $as_echo "ovsdb-types.at:52" >"$at_check_line_file"
 
37635
(test $HAVE_PYTHON = no) \
 
37636
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:52"
 
37637
 
 
37638
 
 
37639
   { set +x
 
37640
$as_echo "$at_srcdir/ovsdb-types.at:52: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"boolean\", \"enum\": true}' "
 
37641
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"boolean\", \"enum\": true}' " "ovsdb-types.at:52"
 
37642
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "boolean", "enum": true}'
 
37643
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37644
at_status=$? at_failed=false
 
37645
$at_check_filter
 
37646
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37647
echo >>"$at_stdout"; $as_echo "{\"enum\":true,\"type\":\"boolean\"}
 
37648
" | \
 
37649
  $at_diff - "$at_stdout" || at_failed=:
 
37650
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:52"
 
37651
$at_failed && at_fn_log_failure
 
37652
$at_traceon; }
 
37653
 
 
37654
     set +x
 
37655
  $at_times_p && times >"$at_times_file"
 
37656
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37657
read at_status <"$at_status_file"
 
37658
#AT_STOP_449
 
37659
#AT_START_450
 
37660
at_fn_group_banner 450 'ovsdb-types.at:56' \
 
37661
  "string enum - C" "                                " 37
 
37662
at_xfail=no
 
37663
(
 
37664
  $as_echo "450. $at_setup_line: testing $at_desc ..."
 
37665
  $at_traceon
 
37666
 
 
37667
 
 
37668
   { set +x
 
37669
$as_echo "$at_srcdir/ovsdb-types.at:56: test-ovsdb parse-base-type '{\"type\": \"string\", \"enum\": [\"set\", [\"def\", \"abc\"]]}'"
 
37670
at_fn_check_prepare_trace "ovsdb-types.at:56"
 
37671
( $at_check_trace; test-ovsdb parse-base-type '{"type": "string", "enum": ["set", ["def", "abc"]]}'
 
37672
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37673
at_status=$? at_failed=false
 
37674
$at_check_filter
 
37675
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37676
echo >>"$at_stdout"; $as_echo "{\"enum\":[\"set\",[\"abc\",\"def\"]],\"type\":\"string\"}
 
37677
" | \
 
37678
  $at_diff - "$at_stdout" || at_failed=:
 
37679
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:56"
 
37680
$at_failed && at_fn_log_failure
 
37681
$at_traceon; }
 
37682
 
 
37683
     set +x
 
37684
  $at_times_p && times >"$at_times_file"
 
37685
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37686
read at_status <"$at_status_file"
 
37687
#AT_STOP_450
 
37688
#AT_START_451
 
37689
at_fn_group_banner 451 'ovsdb-types.at:56' \
 
37690
  "string enum - Python" "                           " 37
 
37691
at_xfail=no
 
37692
(
 
37693
  $as_echo "451. $at_setup_line: testing $at_desc ..."
 
37694
  $at_traceon
 
37695
 
 
37696
   $as_echo "ovsdb-types.at:56" >"$at_check_line_file"
 
37697
(test $HAVE_PYTHON = no) \
 
37698
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:56"
 
37699
 
 
37700
 
 
37701
   { set +x
 
37702
$as_echo "$at_srcdir/ovsdb-types.at:56: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"enum\": [\"set\", [\"def\", \"abc\"]]}'"
 
37703
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"enum\": [\"set\", [\"def\", \"abc\"]]}'" "ovsdb-types.at:56"
 
37704
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "string", "enum": ["set", ["def", "abc"]]}'
 
37705
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37706
at_status=$? at_failed=false
 
37707
$at_check_filter
 
37708
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37709
echo >>"$at_stdout"; $as_echo "{\"enum\":[\"set\",[\"abc\",\"def\"]],\"type\":\"string\"}
 
37710
" | \
 
37711
  $at_diff - "$at_stdout" || at_failed=:
 
37712
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:56"
 
37713
$at_failed && at_fn_log_failure
 
37714
$at_traceon; }
 
37715
 
 
37716
     set +x
 
37717
  $at_times_p && times >"$at_times_file"
 
37718
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37719
read at_status <"$at_status_file"
 
37720
#AT_STOP_451
 
37721
#AT_START_452
 
37722
at_fn_group_banner 452 'ovsdb-types.at:59' \
 
37723
  "string minLength - C" "                           " 37
 
37724
at_xfail=no
 
37725
(
 
37726
  $as_echo "452. $at_setup_line: testing $at_desc ..."
 
37727
  $at_traceon
 
37728
 
 
37729
 
 
37730
   { set +x
 
37731
$as_echo "$at_srcdir/ovsdb-types.at:59: test-ovsdb parse-base-type '{\"type\": \"string\", \"minLength\": 1}'"
 
37732
at_fn_check_prepare_trace "ovsdb-types.at:59"
 
37733
( $at_check_trace; test-ovsdb parse-base-type '{"type": "string", "minLength": 1}'
 
37734
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37735
at_status=$? at_failed=false
 
37736
$at_check_filter
 
37737
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37738
echo >>"$at_stdout"; $as_echo "{\"minLength\":1,\"type\":\"string\"}
 
37739
" | \
 
37740
  $at_diff - "$at_stdout" || at_failed=:
 
37741
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:59"
 
37742
$at_failed && at_fn_log_failure
 
37743
$at_traceon; }
 
37744
 
 
37745
     set +x
 
37746
  $at_times_p && times >"$at_times_file"
 
37747
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37748
read at_status <"$at_status_file"
 
37749
#AT_STOP_452
 
37750
#AT_START_453
 
37751
at_fn_group_banner 453 'ovsdb-types.at:59' \
 
37752
  "string minLength - Python" "                      " 37
 
37753
at_xfail=no
 
37754
(
 
37755
  $as_echo "453. $at_setup_line: testing $at_desc ..."
 
37756
  $at_traceon
 
37757
 
 
37758
   $as_echo "ovsdb-types.at:59" >"$at_check_line_file"
 
37759
(test $HAVE_PYTHON = no) \
 
37760
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:59"
 
37761
 
 
37762
 
 
37763
   { set +x
 
37764
$as_echo "$at_srcdir/ovsdb-types.at:59: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"minLength\": 1}'"
 
37765
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"minLength\": 1}'" "ovsdb-types.at:59"
 
37766
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "string", "minLength": 1}'
 
37767
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37768
at_status=$? at_failed=false
 
37769
$at_check_filter
 
37770
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37771
echo >>"$at_stdout"; $as_echo "{\"minLength\":1,\"type\":\"string\"}
 
37772
" | \
 
37773
  $at_diff - "$at_stdout" || at_failed=:
 
37774
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:59"
 
37775
$at_failed && at_fn_log_failure
 
37776
$at_traceon; }
 
37777
 
 
37778
     set +x
 
37779
  $at_times_p && times >"$at_times_file"
 
37780
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37781
read at_status <"$at_status_file"
 
37782
#AT_STOP_453
 
37783
#AT_START_454
 
37784
at_fn_group_banner 454 'ovsdb-types.at:62' \
 
37785
  "string maxLength - C" "                           " 37
 
37786
at_xfail=no
 
37787
(
 
37788
  $as_echo "454. $at_setup_line: testing $at_desc ..."
 
37789
  $at_traceon
 
37790
 
 
37791
 
 
37792
   { set +x
 
37793
$as_echo "$at_srcdir/ovsdb-types.at:62: test-ovsdb parse-base-type '{\"type\": \"string\", \"maxLength\": 5}'"
 
37794
at_fn_check_prepare_trace "ovsdb-types.at:62"
 
37795
( $at_check_trace; test-ovsdb parse-base-type '{"type": "string", "maxLength": 5}'
 
37796
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37797
at_status=$? at_failed=false
 
37798
$at_check_filter
 
37799
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37800
echo >>"$at_stdout"; $as_echo "{\"maxLength\":5,\"type\":\"string\"}
 
37801
" | \
 
37802
  $at_diff - "$at_stdout" || at_failed=:
 
37803
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:62"
 
37804
$at_failed && at_fn_log_failure
 
37805
$at_traceon; }
 
37806
 
 
37807
     set +x
 
37808
  $at_times_p && times >"$at_times_file"
 
37809
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37810
read at_status <"$at_status_file"
 
37811
#AT_STOP_454
 
37812
#AT_START_455
 
37813
at_fn_group_banner 455 'ovsdb-types.at:62' \
 
37814
  "string maxLength - Python" "                      " 37
 
37815
at_xfail=no
 
37816
(
 
37817
  $as_echo "455. $at_setup_line: testing $at_desc ..."
 
37818
  $at_traceon
 
37819
 
 
37820
   $as_echo "ovsdb-types.at:62" >"$at_check_line_file"
 
37821
(test $HAVE_PYTHON = no) \
 
37822
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:62"
 
37823
 
 
37824
 
 
37825
   { set +x
 
37826
$as_echo "$at_srcdir/ovsdb-types.at:62: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"maxLength\": 5}'"
 
37827
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"maxLength\": 5}'" "ovsdb-types.at:62"
 
37828
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "string", "maxLength": 5}'
 
37829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37830
at_status=$? at_failed=false
 
37831
$at_check_filter
 
37832
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37833
echo >>"$at_stdout"; $as_echo "{\"maxLength\":5,\"type\":\"string\"}
 
37834
" | \
 
37835
  $at_diff - "$at_stdout" || at_failed=:
 
37836
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:62"
 
37837
$at_failed && at_fn_log_failure
 
37838
$at_traceon; }
 
37839
 
 
37840
     set +x
 
37841
  $at_times_p && times >"$at_times_file"
 
37842
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37843
read at_status <"$at_status_file"
 
37844
#AT_STOP_455
 
37845
#AT_START_456
 
37846
at_fn_group_banner 456 'ovsdb-types.at:65' \
 
37847
  "string minLength and maxLength - C" "             " 37
 
37848
at_xfail=no
 
37849
(
 
37850
  $as_echo "456. $at_setup_line: testing $at_desc ..."
 
37851
  $at_traceon
 
37852
 
 
37853
 
 
37854
   { set +x
 
37855
$as_echo "$at_srcdir/ovsdb-types.at:65: test-ovsdb parse-base-type '{\"type\": \"string\", \"minLength\": 1, \"maxLength\": 5}'"
 
37856
at_fn_check_prepare_trace "ovsdb-types.at:65"
 
37857
( $at_check_trace; test-ovsdb parse-base-type '{"type": "string", "minLength": 1, "maxLength": 5}'
 
37858
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37859
at_status=$? at_failed=false
 
37860
$at_check_filter
 
37861
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37862
echo >>"$at_stdout"; $as_echo "{\"maxLength\":5,\"minLength\":1,\"type\":\"string\"}
 
37863
" | \
 
37864
  $at_diff - "$at_stdout" || at_failed=:
 
37865
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:65"
 
37866
$at_failed && at_fn_log_failure
 
37867
$at_traceon; }
 
37868
 
 
37869
     set +x
 
37870
  $at_times_p && times >"$at_times_file"
 
37871
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37872
read at_status <"$at_status_file"
 
37873
#AT_STOP_456
 
37874
#AT_START_457
 
37875
at_fn_group_banner 457 'ovsdb-types.at:65' \
 
37876
  "string minLength and maxLength - Python" "        " 37
 
37877
at_xfail=no
 
37878
(
 
37879
  $as_echo "457. $at_setup_line: testing $at_desc ..."
 
37880
  $at_traceon
 
37881
 
 
37882
   $as_echo "ovsdb-types.at:65" >"$at_check_line_file"
 
37883
(test $HAVE_PYTHON = no) \
 
37884
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:65"
 
37885
 
 
37886
 
 
37887
   { set +x
 
37888
$as_echo "$at_srcdir/ovsdb-types.at:65: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"minLength\": 1, \"maxLength\": 5}'"
 
37889
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"minLength\": 1, \"maxLength\": 5}'" "ovsdb-types.at:65"
 
37890
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "string", "minLength": 1, "maxLength": 5}'
 
37891
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37892
at_status=$? at_failed=false
 
37893
$at_check_filter
 
37894
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
37895
echo >>"$at_stdout"; $as_echo "{\"maxLength\":5,\"minLength\":1,\"type\":\"string\"}
 
37896
" | \
 
37897
  $at_diff - "$at_stdout" || at_failed=:
 
37898
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:65"
 
37899
$at_failed && at_fn_log_failure
 
37900
$at_traceon; }
 
37901
 
 
37902
     set +x
 
37903
  $at_times_p && times >"$at_times_file"
 
37904
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37905
read at_status <"$at_status_file"
 
37906
#AT_STOP_457
 
37907
#AT_START_458
 
37908
at_fn_group_banner 458 'ovsdb-types.at:68' \
 
37909
  "maxLength must not be less than minLength - C" "  " 37
 
37910
at_xfail=no
 
37911
(
 
37912
  $as_echo "458. $at_setup_line: testing $at_desc ..."
 
37913
  $at_traceon
 
37914
 
 
37915
 
 
37916
   { set +x
 
37917
$as_echo "$at_srcdir/ovsdb-types.at:68: test-ovsdb parse-base-type '{\"type\": \"string\", \"minLength\": 5, \"maxLength\": 3}'"
 
37918
at_fn_check_prepare_trace "ovsdb-types.at:68"
 
37919
( $at_check_trace; test-ovsdb parse-base-type '{"type": "string", "minLength": 5, "maxLength": 3}'
 
37920
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37921
at_status=$? at_failed=false
 
37922
$at_check_filter
 
37923
echo stderr:; tee stderr <"$at_stderr"
 
37924
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
37925
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:68"
 
37926
$at_failed && at_fn_log_failure
 
37927
$at_traceon; }
 
37928
 
 
37929
 
 
37930
   { set +x
 
37931
$as_echo "$at_srcdir/ovsdb-types.at:68: if grep -F -e \"minLength exceeds maxLength\" stderr
 
37932
      then
 
37933
        :
 
37934
      else
 
37935
        exit 99
 
37936
      fi"
 
37937
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:68"
 
37938
( $at_check_trace; if grep -F -e "minLength exceeds maxLength" stderr
 
37939
      then
 
37940
        :
 
37941
      else
 
37942
        exit 99
 
37943
      fi
 
37944
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37945
at_status=$? at_failed=false
 
37946
$at_check_filter
 
37947
echo stderr:; cat "$at_stderr"
 
37948
echo stdout:; cat "$at_stdout"
 
37949
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:68"
 
37950
$at_failed && at_fn_log_failure
 
37951
$at_traceon; }
 
37952
 
 
37953
     set +x
 
37954
  $at_times_p && times >"$at_times_file"
 
37955
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
37956
read at_status <"$at_status_file"
 
37957
#AT_STOP_458
 
37958
#AT_START_459
 
37959
at_fn_group_banner 459 'ovsdb-types.at:68' \
 
37960
  "maxLength must not be less than minLength - Python" "" 37
 
37961
at_xfail=no
 
37962
(
 
37963
  $as_echo "459. $at_setup_line: testing $at_desc ..."
 
37964
  $at_traceon
 
37965
 
 
37966
   $as_echo "ovsdb-types.at:68" >"$at_check_line_file"
 
37967
(test $HAVE_PYTHON = no) \
 
37968
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:68"
 
37969
 
 
37970
   { set +x
 
37971
$as_echo "$at_srcdir/ovsdb-types.at:68: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"minLength\": 5, \"maxLength\": 3}'"
 
37972
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"minLength\": 5, \"maxLength\": 3}'" "ovsdb-types.at:68"
 
37973
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "string", "minLength": 5, "maxLength": 3}'
 
37974
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37975
at_status=$? at_failed=false
 
37976
$at_check_filter
 
37977
echo stderr:; tee stderr <"$at_stderr"
 
37978
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
37979
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:68"
 
37980
$at_failed && at_fn_log_failure
 
37981
$at_traceon; }
 
37982
 
 
37983
 
 
37984
   { set +x
 
37985
$as_echo "$at_srcdir/ovsdb-types.at:68: if grep -F -e \"minLength exceeds maxLength\" stderr
 
37986
      then
 
37987
        :
 
37988
      else
 
37989
        exit 99
 
37990
      fi"
 
37991
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:68"
 
37992
( $at_check_trace; if grep -F -e "minLength exceeds maxLength" stderr
 
37993
      then
 
37994
        :
 
37995
      else
 
37996
        exit 99
 
37997
      fi
 
37998
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
37999
at_status=$? at_failed=false
 
38000
$at_check_filter
 
38001
echo stderr:; cat "$at_stderr"
 
38002
echo stdout:; cat "$at_stdout"
 
38003
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:68"
 
38004
$at_failed && at_fn_log_failure
 
38005
$at_traceon; }
 
38006
 
 
38007
     set +x
 
38008
  $at_times_p && times >"$at_times_file"
 
38009
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38010
read at_status <"$at_status_file"
 
38011
#AT_STOP_459
 
38012
#AT_START_460
 
38013
at_fn_group_banner 460 'ovsdb-types.at:71' \
 
38014
  "maxLength must not be negative - C" "             " 37
 
38015
at_xfail=no
 
38016
(
 
38017
  $as_echo "460. $at_setup_line: testing $at_desc ..."
 
38018
  $at_traceon
 
38019
 
 
38020
 
 
38021
   { set +x
 
38022
$as_echo "$at_srcdir/ovsdb-types.at:71: test-ovsdb parse-base-type '{\"type\": \"string\", \"maxLength\": -1}'"
 
38023
at_fn_check_prepare_trace "ovsdb-types.at:71"
 
38024
( $at_check_trace; test-ovsdb parse-base-type '{"type": "string", "maxLength": -1}'
 
38025
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38026
at_status=$? at_failed=false
 
38027
$at_check_filter
 
38028
echo stderr:; tee stderr <"$at_stderr"
 
38029
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
38030
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:71"
 
38031
$at_failed && at_fn_log_failure
 
38032
$at_traceon; }
 
38033
 
 
38034
 
 
38035
   { set +x
 
38036
$as_echo "$at_srcdir/ovsdb-types.at:71: if grep -F -e \"maxLength out of valid range 0 to 4294967295\" stderr
 
38037
      then
 
38038
        :
 
38039
      else
 
38040
        exit 99
 
38041
      fi"
 
38042
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:71"
 
38043
( $at_check_trace; if grep -F -e "maxLength out of valid range 0 to 4294967295" stderr
 
38044
      then
 
38045
        :
 
38046
      else
 
38047
        exit 99
 
38048
      fi
 
38049
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38050
at_status=$? at_failed=false
 
38051
$at_check_filter
 
38052
echo stderr:; cat "$at_stderr"
 
38053
echo stdout:; cat "$at_stdout"
 
38054
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:71"
 
38055
$at_failed && at_fn_log_failure
 
38056
$at_traceon; }
 
38057
 
 
38058
     set +x
 
38059
  $at_times_p && times >"$at_times_file"
 
38060
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38061
read at_status <"$at_status_file"
 
38062
#AT_STOP_460
 
38063
#AT_START_461
 
38064
at_fn_group_banner 461 'ovsdb-types.at:71' \
 
38065
  "maxLength must not be negative - Python" "        " 37
 
38066
at_xfail=no
 
38067
(
 
38068
  $as_echo "461. $at_setup_line: testing $at_desc ..."
 
38069
  $at_traceon
 
38070
 
 
38071
   $as_echo "ovsdb-types.at:71" >"$at_check_line_file"
 
38072
(test $HAVE_PYTHON = no) \
 
38073
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:71"
 
38074
 
 
38075
   { set +x
 
38076
$as_echo "$at_srcdir/ovsdb-types.at:71: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"maxLength\": -1}'"
 
38077
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"string\", \"maxLength\": -1}'" "ovsdb-types.at:71"
 
38078
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "string", "maxLength": -1}'
 
38079
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38080
at_status=$? at_failed=false
 
38081
$at_check_filter
 
38082
echo stderr:; tee stderr <"$at_stderr"
 
38083
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
38084
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:71"
 
38085
$at_failed && at_fn_log_failure
 
38086
$at_traceon; }
 
38087
 
 
38088
 
 
38089
   { set +x
 
38090
$as_echo "$at_srcdir/ovsdb-types.at:71: if grep -F -e \"maxLength out of valid range 0 to 4294967295\" stderr
 
38091
      then
 
38092
        :
 
38093
      else
 
38094
        exit 99
 
38095
      fi"
 
38096
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:71"
 
38097
( $at_check_trace; if grep -F -e "maxLength out of valid range 0 to 4294967295" stderr
 
38098
      then
 
38099
        :
 
38100
      else
 
38101
        exit 99
 
38102
      fi
 
38103
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38104
at_status=$? at_failed=false
 
38105
$at_check_filter
 
38106
echo stderr:; cat "$at_stderr"
 
38107
echo stdout:; cat "$at_stdout"
 
38108
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:71"
 
38109
$at_failed && at_fn_log_failure
 
38110
$at_traceon; }
 
38111
 
 
38112
     set +x
 
38113
  $at_times_p && times >"$at_times_file"
 
38114
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38115
read at_status <"$at_status_file"
 
38116
#AT_STOP_461
 
38117
#AT_START_462
 
38118
at_fn_group_banner 462 'ovsdb-types.at:75' \
 
38119
  "uuid enum - C" "                                  " 37
 
38120
at_xfail=no
 
38121
(
 
38122
  $as_echo "462. $at_setup_line: testing $at_desc ..."
 
38123
  $at_traceon
 
38124
 
 
38125
 
 
38126
   { set +x
 
38127
$as_echo "$at_srcdir/ovsdb-types.at:75: test-ovsdb parse-base-type '{\"type\": \"uuid\", \"enum\": [\"uuid\", \"36bf19c0-ad9d-4232-bb85-b3d73dfe2123\"]}' "
 
38128
at_fn_check_prepare_trace "ovsdb-types.at:75"
 
38129
( $at_check_trace; test-ovsdb parse-base-type '{"type": "uuid", "enum": ["uuid", "36bf19c0-ad9d-4232-bb85-b3d73dfe2123"]}'
 
38130
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38131
at_status=$? at_failed=false
 
38132
$at_check_filter
 
38133
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38134
echo >>"$at_stdout"; $as_echo "{\"enum\":[\"uuid\",\"36bf19c0-ad9d-4232-bb85-b3d73dfe2123\"],\"type\":\"uuid\"}
 
38135
" | \
 
38136
  $at_diff - "$at_stdout" || at_failed=:
 
38137
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:75"
 
38138
$at_failed && at_fn_log_failure
 
38139
$at_traceon; }
 
38140
 
 
38141
     set +x
 
38142
  $at_times_p && times >"$at_times_file"
 
38143
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38144
read at_status <"$at_status_file"
 
38145
#AT_STOP_462
 
38146
#AT_START_463
 
38147
at_fn_group_banner 463 'ovsdb-types.at:75' \
 
38148
  "uuid enum - Python" "                             " 37
 
38149
at_xfail=no
 
38150
(
 
38151
  $as_echo "463. $at_setup_line: testing $at_desc ..."
 
38152
  $at_traceon
 
38153
 
 
38154
   $as_echo "ovsdb-types.at:75" >"$at_check_line_file"
 
38155
(test $HAVE_PYTHON = no) \
 
38156
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:75"
 
38157
 
 
38158
 
 
38159
   { set +x
 
38160
$as_echo "$at_srcdir/ovsdb-types.at:75: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"uuid\", \"enum\": [\"uuid\", \"36bf19c0-ad9d-4232-bb85-b3d73dfe2123\"]}' "
 
38161
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"uuid\", \"enum\": [\"uuid\", \"36bf19c0-ad9d-4232-bb85-b3d73dfe2123\"]}' " "ovsdb-types.at:75"
 
38162
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "uuid", "enum": ["uuid", "36bf19c0-ad9d-4232-bb85-b3d73dfe2123"]}'
 
38163
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38164
at_status=$? at_failed=false
 
38165
$at_check_filter
 
38166
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38167
echo >>"$at_stdout"; $as_echo "{\"enum\":[\"uuid\",\"36bf19c0-ad9d-4232-bb85-b3d73dfe2123\"],\"type\":\"uuid\"}
 
38168
" | \
 
38169
  $at_diff - "$at_stdout" || at_failed=:
 
38170
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:75"
 
38171
$at_failed && at_fn_log_failure
 
38172
$at_traceon; }
 
38173
 
 
38174
     set +x
 
38175
  $at_times_p && times >"$at_times_file"
 
38176
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38177
read at_status <"$at_status_file"
 
38178
#AT_STOP_463
 
38179
#AT_START_464
 
38180
at_fn_group_banner 464 'ovsdb-types.at:78' \
 
38181
  "uuid refTable - C" "                              " 37
 
38182
at_xfail=no
 
38183
(
 
38184
  $as_echo "464. $at_setup_line: testing $at_desc ..."
 
38185
  $at_traceon
 
38186
 
 
38187
 
 
38188
   { set +x
 
38189
$as_echo "$at_srcdir/ovsdb-types.at:78: test-ovsdb parse-base-type '{\"type\": \"uuid\", \"refTable\": \"myTable\"}' "
 
38190
at_fn_check_prepare_trace "ovsdb-types.at:78"
 
38191
( $at_check_trace; test-ovsdb parse-base-type '{"type": "uuid", "refTable": "myTable"}'
 
38192
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38193
at_status=$? at_failed=false
 
38194
$at_check_filter
 
38195
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38196
echo >>"$at_stdout"; $as_echo "{\"refTable\":\"myTable\",\"type\":\"uuid\"}
 
38197
" | \
 
38198
  $at_diff - "$at_stdout" || at_failed=:
 
38199
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:78"
 
38200
$at_failed && at_fn_log_failure
 
38201
$at_traceon; }
 
38202
 
 
38203
     set +x
 
38204
  $at_times_p && times >"$at_times_file"
 
38205
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38206
read at_status <"$at_status_file"
 
38207
#AT_STOP_464
 
38208
#AT_START_465
 
38209
at_fn_group_banner 465 'ovsdb-types.at:78' \
 
38210
  "uuid refTable - Python" "                         " 37
 
38211
at_xfail=no
 
38212
(
 
38213
  $as_echo "465. $at_setup_line: testing $at_desc ..."
 
38214
  $at_traceon
 
38215
 
 
38216
   $as_echo "ovsdb-types.at:78" >"$at_check_line_file"
 
38217
(test $HAVE_PYTHON = no) \
 
38218
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:78"
 
38219
 
 
38220
 
 
38221
   { set +x
 
38222
$as_echo "$at_srcdir/ovsdb-types.at:78: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"uuid\", \"refTable\": \"myTable\"}' "
 
38223
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"uuid\", \"refTable\": \"myTable\"}' " "ovsdb-types.at:78"
 
38224
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "uuid", "refTable": "myTable"}'
 
38225
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38226
at_status=$? at_failed=false
 
38227
$at_check_filter
 
38228
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38229
echo >>"$at_stdout"; $as_echo "{\"refTable\":\"myTable\",\"type\":\"uuid\"}
 
38230
" | \
 
38231
  $at_diff - "$at_stdout" || at_failed=:
 
38232
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:78"
 
38233
$at_failed && at_fn_log_failure
 
38234
$at_traceon; }
 
38235
 
 
38236
     set +x
 
38237
  $at_times_p && times >"$at_times_file"
 
38238
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38239
read at_status <"$at_status_file"
 
38240
#AT_STOP_465
 
38241
#AT_START_466
 
38242
at_fn_group_banner 466 'ovsdb-types.at:81' \
 
38243
  "uuid refTable must be valid id - C" "             " 37
 
38244
at_xfail=no
 
38245
(
 
38246
  $as_echo "466. $at_setup_line: testing $at_desc ..."
 
38247
  $at_traceon
 
38248
 
 
38249
 
 
38250
   { set +x
 
38251
$as_echo "$at_srcdir/ovsdb-types.at:81: test-ovsdb parse-base-type '{\"type\": \"uuid\", \"refTable\": \"a-b-c\"}' "
 
38252
at_fn_check_prepare_trace "ovsdb-types.at:81"
 
38253
( $at_check_trace; test-ovsdb parse-base-type '{"type": "uuid", "refTable": "a-b-c"}'
 
38254
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38255
at_status=$? at_failed=false
 
38256
$at_check_filter
 
38257
echo stderr:; tee stderr <"$at_stderr"
 
38258
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
38259
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:81"
 
38260
$at_failed && at_fn_log_failure
 
38261
$at_traceon; }
 
38262
 
 
38263
 
 
38264
   { set +x
 
38265
$as_echo "$at_srcdir/ovsdb-types.at:81: if grep -F -e \"Type mismatch for member 'refTable'\" stderr
 
38266
      then
 
38267
        :
 
38268
      else
 
38269
        exit 99
 
38270
      fi"
 
38271
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:81"
 
38272
( $at_check_trace; if grep -F -e "Type mismatch for member 'refTable'" stderr
 
38273
      then
 
38274
        :
 
38275
      else
 
38276
        exit 99
 
38277
      fi
 
38278
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38279
at_status=$? at_failed=false
 
38280
$at_check_filter
 
38281
echo stderr:; cat "$at_stderr"
 
38282
echo stdout:; cat "$at_stdout"
 
38283
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:81"
 
38284
$at_failed && at_fn_log_failure
 
38285
$at_traceon; }
 
38286
 
 
38287
     set +x
 
38288
  $at_times_p && times >"$at_times_file"
 
38289
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38290
read at_status <"$at_status_file"
 
38291
#AT_STOP_466
 
38292
#AT_START_467
 
38293
at_fn_group_banner 467 'ovsdb-types.at:81' \
 
38294
  "uuid refTable must be valid id - Python" "        " 37
 
38295
at_xfail=no
 
38296
(
 
38297
  $as_echo "467. $at_setup_line: testing $at_desc ..."
 
38298
  $at_traceon
 
38299
 
 
38300
   $as_echo "ovsdb-types.at:81" >"$at_check_line_file"
 
38301
(test $HAVE_PYTHON = no) \
 
38302
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:81"
 
38303
 
 
38304
   { set +x
 
38305
$as_echo "$at_srcdir/ovsdb-types.at:81: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{\"type\": \"uuid\", \"refTable\": \"a-b-c\"}' "
 
38306
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{\"type\": \"uuid\", \"refTable\": \"a-b-c\"}' " "ovsdb-types.at:81"
 
38307
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{"type": "uuid", "refTable": "a-b-c"}'
 
38308
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38309
at_status=$? at_failed=false
 
38310
$at_check_filter
 
38311
echo stderr:; tee stderr <"$at_stderr"
 
38312
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
38313
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:81"
 
38314
$at_failed && at_fn_log_failure
 
38315
$at_traceon; }
 
38316
 
 
38317
 
 
38318
   { set +x
 
38319
$as_echo "$at_srcdir/ovsdb-types.at:81: if grep -F -e \"Type mismatch for member 'refTable'\" stderr
 
38320
      then
 
38321
        :
 
38322
      else
 
38323
        exit 99
 
38324
      fi"
 
38325
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:81"
 
38326
( $at_check_trace; if grep -F -e "Type mismatch for member 'refTable'" stderr
 
38327
      then
 
38328
        :
 
38329
      else
 
38330
        exit 99
 
38331
      fi
 
38332
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38333
at_status=$? at_failed=false
 
38334
$at_check_filter
 
38335
echo stderr:; cat "$at_stderr"
 
38336
echo stdout:; cat "$at_stdout"
 
38337
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:81"
 
38338
$at_failed && at_fn_log_failure
 
38339
$at_traceon; }
 
38340
 
 
38341
     set +x
 
38342
  $at_times_p && times >"$at_times_file"
 
38343
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38344
read at_status <"$at_status_file"
 
38345
#AT_STOP_467
 
38346
#AT_START_468
 
38347
at_fn_group_banner 468 'ovsdb-types.at:85' \
 
38348
  "void is not a valid base-type - C" "              " 37
 
38349
at_xfail=no
 
38350
(
 
38351
  $as_echo "468. $at_setup_line: testing $at_desc ..."
 
38352
  $at_traceon
 
38353
 
 
38354
 
 
38355
   { set +x
 
38356
$as_echo "$at_srcdir/ovsdb-types.at:85: test-ovsdb parse-base-type '[\"void\"]' "
 
38357
at_fn_check_prepare_trace "ovsdb-types.at:85"
 
38358
( $at_check_trace; test-ovsdb parse-base-type '["void"]'
 
38359
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38360
at_status=$? at_failed=false
 
38361
$at_check_filter
 
38362
echo stderr:; tee stderr <"$at_stderr"
 
38363
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
38364
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:85"
 
38365
$at_failed && at_fn_log_failure
 
38366
$at_traceon; }
 
38367
 
 
38368
 
 
38369
   { set +x
 
38370
$as_echo "$at_srcdir/ovsdb-types.at:85: if grep -F -e \"\\\"void\\\" is not an atomic-type\" stderr
 
38371
      then
 
38372
        :
 
38373
      else
 
38374
        exit 99
 
38375
      fi"
 
38376
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:85"
 
38377
( $at_check_trace; if grep -F -e "\"void\" is not an atomic-type" stderr
 
38378
      then
 
38379
        :
 
38380
      else
 
38381
        exit 99
 
38382
      fi
 
38383
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38384
at_status=$? at_failed=false
 
38385
$at_check_filter
 
38386
echo stderr:; cat "$at_stderr"
 
38387
echo stdout:; cat "$at_stdout"
 
38388
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:85"
 
38389
$at_failed && at_fn_log_failure
 
38390
$at_traceon; }
 
38391
 
 
38392
     set +x
 
38393
  $at_times_p && times >"$at_times_file"
 
38394
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38395
read at_status <"$at_status_file"
 
38396
#AT_STOP_468
 
38397
#AT_START_469
 
38398
at_fn_group_banner 469 'ovsdb-types.at:85' \
 
38399
  "void is not a valid base-type - Python" "         " 37
 
38400
at_xfail=no
 
38401
(
 
38402
  $as_echo "469. $at_setup_line: testing $at_desc ..."
 
38403
  $at_traceon
 
38404
 
 
38405
   $as_echo "ovsdb-types.at:85" >"$at_check_line_file"
 
38406
(test $HAVE_PYTHON = no) \
 
38407
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:85"
 
38408
 
 
38409
   { set +x
 
38410
$as_echo "$at_srcdir/ovsdb-types.at:85: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '[\"void\"]' "
 
38411
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '[\"void\"]' " "ovsdb-types.at:85"
 
38412
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '["void"]'
 
38413
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38414
at_status=$? at_failed=false
 
38415
$at_check_filter
 
38416
echo stderr:; tee stderr <"$at_stderr"
 
38417
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
38418
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:85"
 
38419
$at_failed && at_fn_log_failure
 
38420
$at_traceon; }
 
38421
 
 
38422
 
 
38423
   { set +x
 
38424
$as_echo "$at_srcdir/ovsdb-types.at:85: if grep -F -e \"\\\"void\\\" is not an atomic-type\" stderr
 
38425
      then
 
38426
        :
 
38427
      else
 
38428
        exit 99
 
38429
      fi"
 
38430
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:85"
 
38431
( $at_check_trace; if grep -F -e "\"void\" is not an atomic-type" stderr
 
38432
      then
 
38433
        :
 
38434
      else
 
38435
        exit 99
 
38436
      fi
 
38437
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38438
at_status=$? at_failed=false
 
38439
$at_check_filter
 
38440
echo stderr:; cat "$at_stderr"
 
38441
echo stdout:; cat "$at_stdout"
 
38442
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:85"
 
38443
$at_failed && at_fn_log_failure
 
38444
$at_traceon; }
 
38445
 
 
38446
     set +x
 
38447
  $at_times_p && times >"$at_times_file"
 
38448
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38449
read at_status <"$at_status_file"
 
38450
#AT_STOP_469
 
38451
#AT_START_470
 
38452
at_fn_group_banner 470 'ovsdb-types.at:87' \
 
38453
  "\"type\" member must be present - C" "              " 37
 
38454
at_xfail=no
 
38455
(
 
38456
  $as_echo "470. $at_setup_line: testing $at_desc ..."
 
38457
  $at_traceon
 
38458
 
 
38459
 
 
38460
   { set +x
 
38461
$as_echo "$at_srcdir/ovsdb-types.at:87: test-ovsdb parse-base-type '{}'"
 
38462
at_fn_check_prepare_trace "ovsdb-types.at:87"
 
38463
( $at_check_trace; test-ovsdb parse-base-type '{}'
 
38464
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38465
at_status=$? at_failed=false
 
38466
$at_check_filter
 
38467
echo stderr:; tee stderr <"$at_stderr"
 
38468
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
38469
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:87"
 
38470
$at_failed && at_fn_log_failure
 
38471
$at_traceon; }
 
38472
 
 
38473
 
 
38474
   { set +x
 
38475
$as_echo "$at_srcdir/ovsdb-types.at:87: if grep -F -e \"Parsing ovsdb type failed: Required 'type' member is missing.\" stderr
 
38476
      then
 
38477
        :
 
38478
      else
 
38479
        exit 99
 
38480
      fi"
 
38481
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:87"
 
38482
( $at_check_trace; if grep -F -e "Parsing ovsdb type failed: Required 'type' member is missing." stderr
 
38483
      then
 
38484
        :
 
38485
      else
 
38486
        exit 99
 
38487
      fi
 
38488
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38489
at_status=$? at_failed=false
 
38490
$at_check_filter
 
38491
echo stderr:; cat "$at_stderr"
 
38492
echo stdout:; cat "$at_stdout"
 
38493
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:87"
 
38494
$at_failed && at_fn_log_failure
 
38495
$at_traceon; }
 
38496
 
 
38497
     set +x
 
38498
  $at_times_p && times >"$at_times_file"
 
38499
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38500
read at_status <"$at_status_file"
 
38501
#AT_STOP_470
 
38502
#AT_START_471
 
38503
at_fn_group_banner 471 'ovsdb-types.at:87' \
 
38504
  "\"type\" member must be present - Python" "         " 37
 
38505
at_xfail=no
 
38506
(
 
38507
  $as_echo "471. $at_setup_line: testing $at_desc ..."
 
38508
  $at_traceon
 
38509
 
 
38510
   $as_echo "ovsdb-types.at:87" >"$at_check_line_file"
 
38511
(test $HAVE_PYTHON = no) \
 
38512
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:87"
 
38513
 
 
38514
   { set +x
 
38515
$as_echo "$at_srcdir/ovsdb-types.at:87: \$PYTHON \$srcdir/test-ovsdb.py parse-base-type '{}'"
 
38516
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-base-type '{}'" "ovsdb-types.at:87"
 
38517
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-base-type '{}'
 
38518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38519
at_status=$? at_failed=false
 
38520
$at_check_filter
 
38521
echo stderr:; tee stderr <"$at_stderr"
 
38522
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
38523
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:87"
 
38524
$at_failed && at_fn_log_failure
 
38525
$at_traceon; }
 
38526
 
 
38527
 
 
38528
   { set +x
 
38529
$as_echo "$at_srcdir/ovsdb-types.at:87: if grep -F -e \"Parsing ovsdb type failed: Required 'type' member is missing.\" stderr
 
38530
      then
 
38531
        :
 
38532
      else
 
38533
        exit 99
 
38534
      fi"
 
38535
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:87"
 
38536
( $at_check_trace; if grep -F -e "Parsing ovsdb type failed: Required 'type' member is missing." stderr
 
38537
      then
 
38538
        :
 
38539
      else
 
38540
        exit 99
 
38541
      fi
 
38542
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38543
at_status=$? at_failed=false
 
38544
$at_check_filter
 
38545
echo stderr:; cat "$at_stderr"
 
38546
echo stdout:; cat "$at_stdout"
 
38547
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:87"
 
38548
$at_failed && at_fn_log_failure
 
38549
$at_traceon; }
 
38550
 
 
38551
     set +x
 
38552
  $at_times_p && times >"$at_times_file"
 
38553
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38554
read at_status <"$at_status_file"
 
38555
#AT_STOP_471
 
38556
#AT_START_472
 
38557
at_fn_group_banner 472 'ovsdb-types.at:92' \
 
38558
  "simple integer - C" "                             " 38
 
38559
at_xfail=no
 
38560
(
 
38561
  $as_echo "472. $at_setup_line: testing $at_desc ..."
 
38562
  $at_traceon
 
38563
 
 
38564
 
 
38565
   { set +x
 
38566
$as_echo "$at_srcdir/ovsdb-types.at:92: test-ovsdb parse-type '[\"integer\"]' "
 
38567
at_fn_check_prepare_trace "ovsdb-types.at:92"
 
38568
( $at_check_trace; test-ovsdb parse-type '["integer"]'
 
38569
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38570
at_status=$? at_failed=false
 
38571
$at_check_filter
 
38572
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38573
echo >>"$at_stdout"; $as_echo "\"integer\"
 
38574
" | \
 
38575
  $at_diff - "$at_stdout" || at_failed=:
 
38576
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:92"
 
38577
$at_failed && at_fn_log_failure
 
38578
$at_traceon; }
 
38579
 
 
38580
     set +x
 
38581
  $at_times_p && times >"$at_times_file"
 
38582
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38583
read at_status <"$at_status_file"
 
38584
#AT_STOP_472
 
38585
#AT_START_473
 
38586
at_fn_group_banner 473 'ovsdb-types.at:92' \
 
38587
  "simple integer - Python" "                        " 38
 
38588
at_xfail=no
 
38589
(
 
38590
  $as_echo "473. $at_setup_line: testing $at_desc ..."
 
38591
  $at_traceon
 
38592
 
 
38593
   $as_echo "ovsdb-types.at:92" >"$at_check_line_file"
 
38594
(test $HAVE_PYTHON = no) \
 
38595
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:92"
 
38596
 
 
38597
 
 
38598
   { set +x
 
38599
$as_echo "$at_srcdir/ovsdb-types.at:92: \$PYTHON \$srcdir/test-ovsdb.py parse-type '[\"integer\"]' "
 
38600
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '[\"integer\"]' " "ovsdb-types.at:92"
 
38601
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '["integer"]'
 
38602
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38603
at_status=$? at_failed=false
 
38604
$at_check_filter
 
38605
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38606
echo >>"$at_stdout"; $as_echo "\"integer\"
 
38607
" | \
 
38608
  $at_diff - "$at_stdout" || at_failed=:
 
38609
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:92"
 
38610
$at_failed && at_fn_log_failure
 
38611
$at_traceon; }
 
38612
 
 
38613
     set +x
 
38614
  $at_times_p && times >"$at_times_file"
 
38615
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38616
read at_status <"$at_status_file"
 
38617
#AT_STOP_473
 
38618
#AT_START_474
 
38619
at_fn_group_banner 474 'ovsdb-types.at:94' \
 
38620
  "simple real - C" "                                " 38
 
38621
at_xfail=no
 
38622
(
 
38623
  $as_echo "474. $at_setup_line: testing $at_desc ..."
 
38624
  $at_traceon
 
38625
 
 
38626
 
 
38627
   { set +x
 
38628
$as_echo "$at_srcdir/ovsdb-types.at:94: test-ovsdb parse-type '[\"real\"]' "
 
38629
at_fn_check_prepare_trace "ovsdb-types.at:94"
 
38630
( $at_check_trace; test-ovsdb parse-type '["real"]'
 
38631
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38632
at_status=$? at_failed=false
 
38633
$at_check_filter
 
38634
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38635
echo >>"$at_stdout"; $as_echo "\"real\"
 
38636
" | \
 
38637
  $at_diff - "$at_stdout" || at_failed=:
 
38638
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:94"
 
38639
$at_failed && at_fn_log_failure
 
38640
$at_traceon; }
 
38641
 
 
38642
     set +x
 
38643
  $at_times_p && times >"$at_times_file"
 
38644
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38645
read at_status <"$at_status_file"
 
38646
#AT_STOP_474
 
38647
#AT_START_475
 
38648
at_fn_group_banner 475 'ovsdb-types.at:94' \
 
38649
  "simple real - Python" "                           " 38
 
38650
at_xfail=no
 
38651
(
 
38652
  $as_echo "475. $at_setup_line: testing $at_desc ..."
 
38653
  $at_traceon
 
38654
 
 
38655
   $as_echo "ovsdb-types.at:94" >"$at_check_line_file"
 
38656
(test $HAVE_PYTHON = no) \
 
38657
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:94"
 
38658
 
 
38659
 
 
38660
   { set +x
 
38661
$as_echo "$at_srcdir/ovsdb-types.at:94: \$PYTHON \$srcdir/test-ovsdb.py parse-type '[\"real\"]' "
 
38662
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '[\"real\"]' " "ovsdb-types.at:94"
 
38663
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '["real"]'
 
38664
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38665
at_status=$? at_failed=false
 
38666
$at_check_filter
 
38667
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38668
echo >>"$at_stdout"; $as_echo "\"real\"
 
38669
" | \
 
38670
  $at_diff - "$at_stdout" || at_failed=:
 
38671
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:94"
 
38672
$at_failed && at_fn_log_failure
 
38673
$at_traceon; }
 
38674
 
 
38675
     set +x
 
38676
  $at_times_p && times >"$at_times_file"
 
38677
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38678
read at_status <"$at_status_file"
 
38679
#AT_STOP_475
 
38680
#AT_START_476
 
38681
at_fn_group_banner 476 'ovsdb-types.at:96' \
 
38682
  "simple boolean - C" "                             " 38
 
38683
at_xfail=no
 
38684
(
 
38685
  $as_echo "476. $at_setup_line: testing $at_desc ..."
 
38686
  $at_traceon
 
38687
 
 
38688
 
 
38689
   { set +x
 
38690
$as_echo "$at_srcdir/ovsdb-types.at:96: test-ovsdb parse-type '[\"boolean\"]' "
 
38691
at_fn_check_prepare_trace "ovsdb-types.at:96"
 
38692
( $at_check_trace; test-ovsdb parse-type '["boolean"]'
 
38693
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38694
at_status=$? at_failed=false
 
38695
$at_check_filter
 
38696
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38697
echo >>"$at_stdout"; $as_echo "\"boolean\"
 
38698
" | \
 
38699
  $at_diff - "$at_stdout" || at_failed=:
 
38700
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:96"
 
38701
$at_failed && at_fn_log_failure
 
38702
$at_traceon; }
 
38703
 
 
38704
     set +x
 
38705
  $at_times_p && times >"$at_times_file"
 
38706
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38707
read at_status <"$at_status_file"
 
38708
#AT_STOP_476
 
38709
#AT_START_477
 
38710
at_fn_group_banner 477 'ovsdb-types.at:96' \
 
38711
  "simple boolean - Python" "                        " 38
 
38712
at_xfail=no
 
38713
(
 
38714
  $as_echo "477. $at_setup_line: testing $at_desc ..."
 
38715
  $at_traceon
 
38716
 
 
38717
   $as_echo "ovsdb-types.at:96" >"$at_check_line_file"
 
38718
(test $HAVE_PYTHON = no) \
 
38719
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:96"
 
38720
 
 
38721
 
 
38722
   { set +x
 
38723
$as_echo "$at_srcdir/ovsdb-types.at:96: \$PYTHON \$srcdir/test-ovsdb.py parse-type '[\"boolean\"]' "
 
38724
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '[\"boolean\"]' " "ovsdb-types.at:96"
 
38725
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '["boolean"]'
 
38726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38727
at_status=$? at_failed=false
 
38728
$at_check_filter
 
38729
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38730
echo >>"$at_stdout"; $as_echo "\"boolean\"
 
38731
" | \
 
38732
  $at_diff - "$at_stdout" || at_failed=:
 
38733
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:96"
 
38734
$at_failed && at_fn_log_failure
 
38735
$at_traceon; }
 
38736
 
 
38737
     set +x
 
38738
  $at_times_p && times >"$at_times_file"
 
38739
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38740
read at_status <"$at_status_file"
 
38741
#AT_STOP_477
 
38742
#AT_START_478
 
38743
at_fn_group_banner 478 'ovsdb-types.at:98' \
 
38744
  "simple string - C" "                              " 38
 
38745
at_xfail=no
 
38746
(
 
38747
  $as_echo "478. $at_setup_line: testing $at_desc ..."
 
38748
  $at_traceon
 
38749
 
 
38750
 
 
38751
   { set +x
 
38752
$as_echo "$at_srcdir/ovsdb-types.at:98: test-ovsdb parse-type '[\"string\"]' "
 
38753
at_fn_check_prepare_trace "ovsdb-types.at:98"
 
38754
( $at_check_trace; test-ovsdb parse-type '["string"]'
 
38755
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38756
at_status=$? at_failed=false
 
38757
$at_check_filter
 
38758
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38759
echo >>"$at_stdout"; $as_echo "\"string\"
 
38760
" | \
 
38761
  $at_diff - "$at_stdout" || at_failed=:
 
38762
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:98"
 
38763
$at_failed && at_fn_log_failure
 
38764
$at_traceon; }
 
38765
 
 
38766
     set +x
 
38767
  $at_times_p && times >"$at_times_file"
 
38768
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38769
read at_status <"$at_status_file"
 
38770
#AT_STOP_478
 
38771
#AT_START_479
 
38772
at_fn_group_banner 479 'ovsdb-types.at:98' \
 
38773
  "simple string - Python" "                         " 38
 
38774
at_xfail=no
 
38775
(
 
38776
  $as_echo "479. $at_setup_line: testing $at_desc ..."
 
38777
  $at_traceon
 
38778
 
 
38779
   $as_echo "ovsdb-types.at:98" >"$at_check_line_file"
 
38780
(test $HAVE_PYTHON = no) \
 
38781
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:98"
 
38782
 
 
38783
 
 
38784
   { set +x
 
38785
$as_echo "$at_srcdir/ovsdb-types.at:98: \$PYTHON \$srcdir/test-ovsdb.py parse-type '[\"string\"]' "
 
38786
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '[\"string\"]' " "ovsdb-types.at:98"
 
38787
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '["string"]'
 
38788
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38789
at_status=$? at_failed=false
 
38790
$at_check_filter
 
38791
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38792
echo >>"$at_stdout"; $as_echo "\"string\"
 
38793
" | \
 
38794
  $at_diff - "$at_stdout" || at_failed=:
 
38795
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:98"
 
38796
$at_failed && at_fn_log_failure
 
38797
$at_traceon; }
 
38798
 
 
38799
     set +x
 
38800
  $at_times_p && times >"$at_times_file"
 
38801
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38802
read at_status <"$at_status_file"
 
38803
#AT_STOP_479
 
38804
#AT_START_480
 
38805
at_fn_group_banner 480 'ovsdb-types.at:100' \
 
38806
  "simple uuid - C" "                                " 38
 
38807
at_xfail=no
 
38808
(
 
38809
  $as_echo "480. $at_setup_line: testing $at_desc ..."
 
38810
  $at_traceon
 
38811
 
 
38812
 
 
38813
   { set +x
 
38814
$as_echo "$at_srcdir/ovsdb-types.at:100: test-ovsdb parse-type '[\"uuid\"]' "
 
38815
at_fn_check_prepare_trace "ovsdb-types.at:100"
 
38816
( $at_check_trace; test-ovsdb parse-type '["uuid"]'
 
38817
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38818
at_status=$? at_failed=false
 
38819
$at_check_filter
 
38820
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38821
echo >>"$at_stdout"; $as_echo "\"uuid\"
 
38822
" | \
 
38823
  $at_diff - "$at_stdout" || at_failed=:
 
38824
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:100"
 
38825
$at_failed && at_fn_log_failure
 
38826
$at_traceon; }
 
38827
 
 
38828
     set +x
 
38829
  $at_times_p && times >"$at_times_file"
 
38830
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38831
read at_status <"$at_status_file"
 
38832
#AT_STOP_480
 
38833
#AT_START_481
 
38834
at_fn_group_banner 481 'ovsdb-types.at:100' \
 
38835
  "simple uuid - Python" "                           " 38
 
38836
at_xfail=no
 
38837
(
 
38838
  $as_echo "481. $at_setup_line: testing $at_desc ..."
 
38839
  $at_traceon
 
38840
 
 
38841
   $as_echo "ovsdb-types.at:100" >"$at_check_line_file"
 
38842
(test $HAVE_PYTHON = no) \
 
38843
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:100"
 
38844
 
 
38845
 
 
38846
   { set +x
 
38847
$as_echo "$at_srcdir/ovsdb-types.at:100: \$PYTHON \$srcdir/test-ovsdb.py parse-type '[\"uuid\"]' "
 
38848
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '[\"uuid\"]' " "ovsdb-types.at:100"
 
38849
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '["uuid"]'
 
38850
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38851
at_status=$? at_failed=false
 
38852
$at_check_filter
 
38853
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38854
echo >>"$at_stdout"; $as_echo "\"uuid\"
 
38855
" | \
 
38856
  $at_diff - "$at_stdout" || at_failed=:
 
38857
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:100"
 
38858
$at_failed && at_fn_log_failure
 
38859
$at_traceon; }
 
38860
 
 
38861
     set +x
 
38862
  $at_times_p && times >"$at_times_file"
 
38863
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38864
read at_status <"$at_status_file"
 
38865
#AT_STOP_481
 
38866
#AT_START_482
 
38867
at_fn_group_banner 482 'ovsdb-types.at:102' \
 
38868
  "integer in object - C" "                          " 38
 
38869
at_xfail=no
 
38870
(
 
38871
  $as_echo "482. $at_setup_line: testing $at_desc ..."
 
38872
  $at_traceon
 
38873
 
 
38874
 
 
38875
   { set +x
 
38876
$as_echo "$at_srcdir/ovsdb-types.at:102: test-ovsdb parse-type '{\"key\": \"integer\"}' "
 
38877
at_fn_check_prepare_trace "ovsdb-types.at:102"
 
38878
( $at_check_trace; test-ovsdb parse-type '{"key": "integer"}'
 
38879
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38880
at_status=$? at_failed=false
 
38881
$at_check_filter
 
38882
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38883
echo >>"$at_stdout"; $as_echo "\"integer\"
 
38884
" | \
 
38885
  $at_diff - "$at_stdout" || at_failed=:
 
38886
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:102"
 
38887
$at_failed && at_fn_log_failure
 
38888
$at_traceon; }
 
38889
 
 
38890
     set +x
 
38891
  $at_times_p && times >"$at_times_file"
 
38892
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38893
read at_status <"$at_status_file"
 
38894
#AT_STOP_482
 
38895
#AT_START_483
 
38896
at_fn_group_banner 483 'ovsdb-types.at:102' \
 
38897
  "integer in object - Python" "                     " 38
 
38898
at_xfail=no
 
38899
(
 
38900
  $as_echo "483. $at_setup_line: testing $at_desc ..."
 
38901
  $at_traceon
 
38902
 
 
38903
   $as_echo "ovsdb-types.at:102" >"$at_check_line_file"
 
38904
(test $HAVE_PYTHON = no) \
 
38905
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:102"
 
38906
 
 
38907
 
 
38908
   { set +x
 
38909
$as_echo "$at_srcdir/ovsdb-types.at:102: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"integer\"}' "
 
38910
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"integer\"}' " "ovsdb-types.at:102"
 
38911
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "integer"}'
 
38912
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38913
at_status=$? at_failed=false
 
38914
$at_check_filter
 
38915
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38916
echo >>"$at_stdout"; $as_echo "\"integer\"
 
38917
" | \
 
38918
  $at_diff - "$at_stdout" || at_failed=:
 
38919
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:102"
 
38920
$at_failed && at_fn_log_failure
 
38921
$at_traceon; }
 
38922
 
 
38923
     set +x
 
38924
  $at_times_p && times >"$at_times_file"
 
38925
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38926
read at_status <"$at_status_file"
 
38927
#AT_STOP_483
 
38928
#AT_START_484
 
38929
at_fn_group_banner 484 'ovsdb-types.at:104' \
 
38930
  "real in object with explicit min and max - C" "   " 38
 
38931
at_xfail=no
 
38932
(
 
38933
  $as_echo "484. $at_setup_line: testing $at_desc ..."
 
38934
  $at_traceon
 
38935
 
 
38936
 
 
38937
   { set +x
 
38938
$as_echo "$at_srcdir/ovsdb-types.at:104: test-ovsdb parse-type '{\"key\": \"real\", \"min\": 1, \"max\": 1}' "
 
38939
at_fn_check_prepare_trace "ovsdb-types.at:104"
 
38940
( $at_check_trace; test-ovsdb parse-type '{"key": "real", "min": 1, "max": 1}'
 
38941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38942
at_status=$? at_failed=false
 
38943
$at_check_filter
 
38944
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38945
echo >>"$at_stdout"; $as_echo "\"real\"
 
38946
" | \
 
38947
  $at_diff - "$at_stdout" || at_failed=:
 
38948
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:104"
 
38949
$at_failed && at_fn_log_failure
 
38950
$at_traceon; }
 
38951
 
 
38952
     set +x
 
38953
  $at_times_p && times >"$at_times_file"
 
38954
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38955
read at_status <"$at_status_file"
 
38956
#AT_STOP_484
 
38957
#AT_START_485
 
38958
at_fn_group_banner 485 'ovsdb-types.at:104' \
 
38959
  "real in object with explicit min and max - Python" "" 38
 
38960
at_xfail=no
 
38961
(
 
38962
  $as_echo "485. $at_setup_line: testing $at_desc ..."
 
38963
  $at_traceon
 
38964
 
 
38965
   $as_echo "ovsdb-types.at:104" >"$at_check_line_file"
 
38966
(test $HAVE_PYTHON = no) \
 
38967
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:104"
 
38968
 
 
38969
 
 
38970
   { set +x
 
38971
$as_echo "$at_srcdir/ovsdb-types.at:104: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": 1, \"max\": 1}' "
 
38972
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": 1, \"max\": 1}' " "ovsdb-types.at:104"
 
38973
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "real", "min": 1, "max": 1}'
 
38974
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
38975
at_status=$? at_failed=false
 
38976
$at_check_filter
 
38977
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
38978
echo >>"$at_stdout"; $as_echo "\"real\"
 
38979
" | \
 
38980
  $at_diff - "$at_stdout" || at_failed=:
 
38981
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:104"
 
38982
$at_failed && at_fn_log_failure
 
38983
$at_traceon; }
 
38984
 
 
38985
     set +x
 
38986
  $at_times_p && times >"$at_times_file"
 
38987
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
38988
read at_status <"$at_status_file"
 
38989
#AT_STOP_485
 
38990
#AT_START_486
 
38991
at_fn_group_banner 486 'ovsdb-types.at:107' \
 
38992
  "key type is required - C" "                       " 38
 
38993
at_xfail=no
 
38994
(
 
38995
  $as_echo "486. $at_setup_line: testing $at_desc ..."
 
38996
  $at_traceon
 
38997
 
 
38998
 
 
38999
   { set +x
 
39000
$as_echo "$at_srcdir/ovsdb-types.at:107: test-ovsdb parse-type '{}' "
 
39001
at_fn_check_prepare_trace "ovsdb-types.at:107"
 
39002
( $at_check_trace; test-ovsdb parse-type '{}'
 
39003
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39004
at_status=$? at_failed=false
 
39005
$at_check_filter
 
39006
echo stderr:; tee stderr <"$at_stderr"
 
39007
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39008
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:107"
 
39009
$at_failed && at_fn_log_failure
 
39010
$at_traceon; }
 
39011
 
 
39012
 
 
39013
   { set +x
 
39014
$as_echo "$at_srcdir/ovsdb-types.at:107: if grep -F -e \"Required 'key' member is missing.\" stderr
 
39015
      then
 
39016
        :
 
39017
      else
 
39018
        exit 99
 
39019
      fi"
 
39020
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:107"
 
39021
( $at_check_trace; if grep -F -e "Required 'key' member is missing." stderr
 
39022
      then
 
39023
        :
 
39024
      else
 
39025
        exit 99
 
39026
      fi
 
39027
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39028
at_status=$? at_failed=false
 
39029
$at_check_filter
 
39030
echo stderr:; cat "$at_stderr"
 
39031
echo stdout:; cat "$at_stdout"
 
39032
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:107"
 
39033
$at_failed && at_fn_log_failure
 
39034
$at_traceon; }
 
39035
 
 
39036
     set +x
 
39037
  $at_times_p && times >"$at_times_file"
 
39038
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39039
read at_status <"$at_status_file"
 
39040
#AT_STOP_486
 
39041
#AT_START_487
 
39042
at_fn_group_banner 487 'ovsdb-types.at:107' \
 
39043
  "key type is required - Python" "                  " 38
 
39044
at_xfail=no
 
39045
(
 
39046
  $as_echo "487. $at_setup_line: testing $at_desc ..."
 
39047
  $at_traceon
 
39048
 
 
39049
   $as_echo "ovsdb-types.at:107" >"$at_check_line_file"
 
39050
(test $HAVE_PYTHON = no) \
 
39051
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:107"
 
39052
 
 
39053
   { set +x
 
39054
$as_echo "$at_srcdir/ovsdb-types.at:107: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{}' "
 
39055
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{}' " "ovsdb-types.at:107"
 
39056
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{}'
 
39057
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39058
at_status=$? at_failed=false
 
39059
$at_check_filter
 
39060
echo stderr:; tee stderr <"$at_stderr"
 
39061
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39062
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:107"
 
39063
$at_failed && at_fn_log_failure
 
39064
$at_traceon; }
 
39065
 
 
39066
 
 
39067
   { set +x
 
39068
$as_echo "$at_srcdir/ovsdb-types.at:107: if grep -F -e \"Required 'key' member is missing.\" stderr
 
39069
      then
 
39070
        :
 
39071
      else
 
39072
        exit 99
 
39073
      fi"
 
39074
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:107"
 
39075
( $at_check_trace; if grep -F -e "Required 'key' member is missing." stderr
 
39076
      then
 
39077
        :
 
39078
      else
 
39079
        exit 99
 
39080
      fi
 
39081
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39082
at_status=$? at_failed=false
 
39083
$at_check_filter
 
39084
echo stderr:; cat "$at_stderr"
 
39085
echo stdout:; cat "$at_stdout"
 
39086
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:107"
 
39087
$at_failed && at_fn_log_failure
 
39088
$at_traceon; }
 
39089
 
 
39090
     set +x
 
39091
  $at_times_p && times >"$at_times_file"
 
39092
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39093
read at_status <"$at_status_file"
 
39094
#AT_STOP_487
 
39095
#AT_START_488
 
39096
at_fn_group_banner 488 'ovsdb-types.at:109' \
 
39097
  "void is not a valid type - C" "                   " 38
 
39098
at_xfail=no
 
39099
(
 
39100
  $as_echo "488. $at_setup_line: testing $at_desc ..."
 
39101
  $at_traceon
 
39102
 
 
39103
 
 
39104
   { set +x
 
39105
$as_echo "$at_srcdir/ovsdb-types.at:109: test-ovsdb parse-type '[\"void\"]' "
 
39106
at_fn_check_prepare_trace "ovsdb-types.at:109"
 
39107
( $at_check_trace; test-ovsdb parse-type '["void"]'
 
39108
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39109
at_status=$? at_failed=false
 
39110
$at_check_filter
 
39111
echo stderr:; tee stderr <"$at_stderr"
 
39112
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39113
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:109"
 
39114
$at_failed && at_fn_log_failure
 
39115
$at_traceon; }
 
39116
 
 
39117
 
 
39118
   { set +x
 
39119
$as_echo "$at_srcdir/ovsdb-types.at:109: if grep -F -e \"\\\"void\\\" is not an atomic-type\" stderr
 
39120
      then
 
39121
        :
 
39122
      else
 
39123
        exit 99
 
39124
      fi"
 
39125
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:109"
 
39126
( $at_check_trace; if grep -F -e "\"void\" is not an atomic-type" stderr
 
39127
      then
 
39128
        :
 
39129
      else
 
39130
        exit 99
 
39131
      fi
 
39132
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39133
at_status=$? at_failed=false
 
39134
$at_check_filter
 
39135
echo stderr:; cat "$at_stderr"
 
39136
echo stdout:; cat "$at_stdout"
 
39137
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:109"
 
39138
$at_failed && at_fn_log_failure
 
39139
$at_traceon; }
 
39140
 
 
39141
     set +x
 
39142
  $at_times_p && times >"$at_times_file"
 
39143
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39144
read at_status <"$at_status_file"
 
39145
#AT_STOP_488
 
39146
#AT_START_489
 
39147
at_fn_group_banner 489 'ovsdb-types.at:109' \
 
39148
  "void is not a valid type - Python" "              " 38
 
39149
at_xfail=no
 
39150
(
 
39151
  $as_echo "489. $at_setup_line: testing $at_desc ..."
 
39152
  $at_traceon
 
39153
 
 
39154
   $as_echo "ovsdb-types.at:109" >"$at_check_line_file"
 
39155
(test $HAVE_PYTHON = no) \
 
39156
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:109"
 
39157
 
 
39158
   { set +x
 
39159
$as_echo "$at_srcdir/ovsdb-types.at:109: \$PYTHON \$srcdir/test-ovsdb.py parse-type '[\"void\"]' "
 
39160
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '[\"void\"]' " "ovsdb-types.at:109"
 
39161
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '["void"]'
 
39162
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39163
at_status=$? at_failed=false
 
39164
$at_check_filter
 
39165
echo stderr:; tee stderr <"$at_stderr"
 
39166
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39167
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:109"
 
39168
$at_failed && at_fn_log_failure
 
39169
$at_traceon; }
 
39170
 
 
39171
 
 
39172
   { set +x
 
39173
$as_echo "$at_srcdir/ovsdb-types.at:109: if grep -F -e \"\\\"void\\\" is not an atomic-type\" stderr
 
39174
      then
 
39175
        :
 
39176
      else
 
39177
        exit 99
 
39178
      fi"
 
39179
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:109"
 
39180
( $at_check_trace; if grep -F -e "\"void\" is not an atomic-type" stderr
 
39181
      then
 
39182
        :
 
39183
      else
 
39184
        exit 99
 
39185
      fi
 
39186
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39187
at_status=$? at_failed=false
 
39188
$at_check_filter
 
39189
echo stderr:; cat "$at_stderr"
 
39190
echo stdout:; cat "$at_stdout"
 
39191
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:109"
 
39192
$at_failed && at_fn_log_failure
 
39193
$at_traceon; }
 
39194
 
 
39195
     set +x
 
39196
  $at_times_p && times >"$at_times_file"
 
39197
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39198
read at_status <"$at_status_file"
 
39199
#AT_STOP_489
 
39200
#AT_START_490
 
39201
at_fn_group_banner 490 'ovsdb-types.at:114' \
 
39202
  "optional boolean - C" "                           " 39
 
39203
at_xfail=no
 
39204
(
 
39205
  $as_echo "490. $at_setup_line: testing $at_desc ..."
 
39206
  $at_traceon
 
39207
 
 
39208
 
 
39209
   { set +x
 
39210
$as_echo "$at_srcdir/ovsdb-types.at:114: test-ovsdb parse-type '{\"key\": \"boolean\", \"min\": 0}' "
 
39211
at_fn_check_prepare_trace "ovsdb-types.at:114"
 
39212
( $at_check_trace; test-ovsdb parse-type '{"key": "boolean", "min": 0}'
 
39213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39214
at_status=$? at_failed=false
 
39215
$at_check_filter
 
39216
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39217
echo >>"$at_stdout"; $as_echo "{\"key\":\"boolean\",\"min\":0}
 
39218
" | \
 
39219
  $at_diff - "$at_stdout" || at_failed=:
 
39220
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:114"
 
39221
$at_failed && at_fn_log_failure
 
39222
$at_traceon; }
 
39223
 
 
39224
     set +x
 
39225
  $at_times_p && times >"$at_times_file"
 
39226
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39227
read at_status <"$at_status_file"
 
39228
#AT_STOP_490
 
39229
#AT_START_491
 
39230
at_fn_group_banner 491 'ovsdb-types.at:114' \
 
39231
  "optional boolean - Python" "                      " 39
 
39232
at_xfail=no
 
39233
(
 
39234
  $as_echo "491. $at_setup_line: testing $at_desc ..."
 
39235
  $at_traceon
 
39236
 
 
39237
   $as_echo "ovsdb-types.at:114" >"$at_check_line_file"
 
39238
(test $HAVE_PYTHON = no) \
 
39239
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:114"
 
39240
 
 
39241
 
 
39242
   { set +x
 
39243
$as_echo "$at_srcdir/ovsdb-types.at:114: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"boolean\", \"min\": 0}' "
 
39244
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"boolean\", \"min\": 0}' " "ovsdb-types.at:114"
 
39245
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "boolean", "min": 0}'
 
39246
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39247
at_status=$? at_failed=false
 
39248
$at_check_filter
 
39249
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39250
echo >>"$at_stdout"; $as_echo "{\"key\":\"boolean\",\"min\":0}
 
39251
" | \
 
39252
  $at_diff - "$at_stdout" || at_failed=:
 
39253
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:114"
 
39254
$at_failed && at_fn_log_failure
 
39255
$at_traceon; }
 
39256
 
 
39257
     set +x
 
39258
  $at_times_p && times >"$at_times_file"
 
39259
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39260
read at_status <"$at_status_file"
 
39261
#AT_STOP_491
 
39262
#AT_START_492
 
39263
at_fn_group_banner 492 'ovsdb-types.at:118' \
 
39264
  "set of 1 to 3 uuids - C" "                        " 39
 
39265
at_xfail=no
 
39266
(
 
39267
  $as_echo "492. $at_setup_line: testing $at_desc ..."
 
39268
  $at_traceon
 
39269
 
 
39270
 
 
39271
   { set +x
 
39272
$as_echo "$at_srcdir/ovsdb-types.at:118: test-ovsdb parse-type '{\"key\": \"uuid\", \"min\": 1, \"max\": 3}' "
 
39273
at_fn_check_prepare_trace "ovsdb-types.at:118"
 
39274
( $at_check_trace; test-ovsdb parse-type '{"key": "uuid", "min": 1, "max": 3}'
 
39275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39276
at_status=$? at_failed=false
 
39277
$at_check_filter
 
39278
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39279
echo >>"$at_stdout"; $as_echo "{\"key\":\"uuid\",\"max\":3}
 
39280
" | \
 
39281
  $at_diff - "$at_stdout" || at_failed=:
 
39282
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:118"
 
39283
$at_failed && at_fn_log_failure
 
39284
$at_traceon; }
 
39285
 
 
39286
     set +x
 
39287
  $at_times_p && times >"$at_times_file"
 
39288
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39289
read at_status <"$at_status_file"
 
39290
#AT_STOP_492
 
39291
#AT_START_493
 
39292
at_fn_group_banner 493 'ovsdb-types.at:118' \
 
39293
  "set of 1 to 3 uuids - Python" "                   " 39
 
39294
at_xfail=no
 
39295
(
 
39296
  $as_echo "493. $at_setup_line: testing $at_desc ..."
 
39297
  $at_traceon
 
39298
 
 
39299
   $as_echo "ovsdb-types.at:118" >"$at_check_line_file"
 
39300
(test $HAVE_PYTHON = no) \
 
39301
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:118"
 
39302
 
 
39303
 
 
39304
   { set +x
 
39305
$as_echo "$at_srcdir/ovsdb-types.at:118: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"uuid\", \"min\": 1, \"max\": 3}' "
 
39306
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"uuid\", \"min\": 1, \"max\": 3}' " "ovsdb-types.at:118"
 
39307
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "uuid", "min": 1, "max": 3}'
 
39308
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39309
at_status=$? at_failed=false
 
39310
$at_check_filter
 
39311
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39312
echo >>"$at_stdout"; $as_echo "{\"key\":\"uuid\",\"max\":3}
 
39313
" | \
 
39314
  $at_diff - "$at_stdout" || at_failed=:
 
39315
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:118"
 
39316
$at_failed && at_fn_log_failure
 
39317
$at_traceon; }
 
39318
 
 
39319
     set +x
 
39320
  $at_times_p && times >"$at_times_file"
 
39321
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39322
read at_status <"$at_status_file"
 
39323
#AT_STOP_493
 
39324
#AT_START_494
 
39325
at_fn_group_banner 494 'ovsdb-types.at:121' \
 
39326
  "set of 0 to 3 strings - C" "                      " 39
 
39327
at_xfail=no
 
39328
(
 
39329
  $as_echo "494. $at_setup_line: testing $at_desc ..."
 
39330
  $at_traceon
 
39331
 
 
39332
 
 
39333
   { set +x
 
39334
$as_echo "$at_srcdir/ovsdb-types.at:121: test-ovsdb parse-type '{\"key\": \"string\", \"min\": 0, \"max\": 3}' "
 
39335
at_fn_check_prepare_trace "ovsdb-types.at:121"
 
39336
( $at_check_trace; test-ovsdb parse-type '{"key": "string", "min": 0, "max": 3}'
 
39337
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39338
at_status=$? at_failed=false
 
39339
$at_check_filter
 
39340
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39341
echo >>"$at_stdout"; $as_echo "{\"key\":\"string\",\"max\":3,\"min\":0}
 
39342
" | \
 
39343
  $at_diff - "$at_stdout" || at_failed=:
 
39344
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:121"
 
39345
$at_failed && at_fn_log_failure
 
39346
$at_traceon; }
 
39347
 
 
39348
     set +x
 
39349
  $at_times_p && times >"$at_times_file"
 
39350
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39351
read at_status <"$at_status_file"
 
39352
#AT_STOP_494
 
39353
#AT_START_495
 
39354
at_fn_group_banner 495 'ovsdb-types.at:121' \
 
39355
  "set of 0 to 3 strings - Python" "                 " 39
 
39356
at_xfail=no
 
39357
(
 
39358
  $as_echo "495. $at_setup_line: testing $at_desc ..."
 
39359
  $at_traceon
 
39360
 
 
39361
   $as_echo "ovsdb-types.at:121" >"$at_check_line_file"
 
39362
(test $HAVE_PYTHON = no) \
 
39363
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:121"
 
39364
 
 
39365
 
 
39366
   { set +x
 
39367
$as_echo "$at_srcdir/ovsdb-types.at:121: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"string\", \"min\": 0, \"max\": 3}' "
 
39368
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"string\", \"min\": 0, \"max\": 3}' " "ovsdb-types.at:121"
 
39369
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "string", "min": 0, "max": 3}'
 
39370
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39371
at_status=$? at_failed=false
 
39372
$at_check_filter
 
39373
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39374
echo >>"$at_stdout"; $as_echo "{\"key\":\"string\",\"max\":3,\"min\":0}
 
39375
" | \
 
39376
  $at_diff - "$at_stdout" || at_failed=:
 
39377
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:121"
 
39378
$at_failed && at_fn_log_failure
 
39379
$at_traceon; }
 
39380
 
 
39381
     set +x
 
39382
  $at_times_p && times >"$at_times_file"
 
39383
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39384
read at_status <"$at_status_file"
 
39385
#AT_STOP_495
 
39386
#AT_START_496
 
39387
at_fn_group_banner 496 'ovsdb-types.at:124' \
 
39388
  "set of 0 or more integers - C" "                  " 39
 
39389
at_xfail=no
 
39390
(
 
39391
  $as_echo "496. $at_setup_line: testing $at_desc ..."
 
39392
  $at_traceon
 
39393
 
 
39394
 
 
39395
   { set +x
 
39396
$as_echo "$at_srcdir/ovsdb-types.at:124: test-ovsdb parse-type '{\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}'"
 
39397
at_fn_check_prepare_trace "ovsdb-types.at:124"
 
39398
( $at_check_trace; test-ovsdb parse-type '{"key": "integer", "min": 0, "max": "unlimited"}'
 
39399
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39400
at_status=$? at_failed=false
 
39401
$at_check_filter
 
39402
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39403
echo >>"$at_stdout"; $as_echo "{\"key\":\"integer\",\"max\":\"unlimited\",\"min\":0}
 
39404
" | \
 
39405
  $at_diff - "$at_stdout" || at_failed=:
 
39406
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:124"
 
39407
$at_failed && at_fn_log_failure
 
39408
$at_traceon; }
 
39409
 
 
39410
     set +x
 
39411
  $at_times_p && times >"$at_times_file"
 
39412
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39413
read at_status <"$at_status_file"
 
39414
#AT_STOP_496
 
39415
#AT_START_497
 
39416
at_fn_group_banner 497 'ovsdb-types.at:124' \
 
39417
  "set of 0 or more integers - Python" "             " 39
 
39418
at_xfail=no
 
39419
(
 
39420
  $as_echo "497. $at_setup_line: testing $at_desc ..."
 
39421
  $at_traceon
 
39422
 
 
39423
   $as_echo "ovsdb-types.at:124" >"$at_check_line_file"
 
39424
(test $HAVE_PYTHON = no) \
 
39425
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:124"
 
39426
 
 
39427
 
 
39428
   { set +x
 
39429
$as_echo "$at_srcdir/ovsdb-types.at:124: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}'"
 
39430
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}'" "ovsdb-types.at:124"
 
39431
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "integer", "min": 0, "max": "unlimited"}'
 
39432
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39433
at_status=$? at_failed=false
 
39434
$at_check_filter
 
39435
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39436
echo >>"$at_stdout"; $as_echo "{\"key\":\"integer\",\"max\":\"unlimited\",\"min\":0}
 
39437
" | \
 
39438
  $at_diff - "$at_stdout" || at_failed=:
 
39439
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:124"
 
39440
$at_failed && at_fn_log_failure
 
39441
$at_traceon; }
 
39442
 
 
39443
     set +x
 
39444
  $at_times_p && times >"$at_times_file"
 
39445
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39446
read at_status <"$at_status_file"
 
39447
#AT_STOP_497
 
39448
#AT_START_498
 
39449
at_fn_group_banner 498 'ovsdb-types.at:127' \
 
39450
  "set of 1 or more reals - C" "                     " 39
 
39451
at_xfail=no
 
39452
(
 
39453
  $as_echo "498. $at_setup_line: testing $at_desc ..."
 
39454
  $at_traceon
 
39455
 
 
39456
 
 
39457
   { set +x
 
39458
$as_echo "$at_srcdir/ovsdb-types.at:127: test-ovsdb parse-type '{\"key\": \"real\", \"min\": 1, \"max\": \"unlimited\"}'"
 
39459
at_fn_check_prepare_trace "ovsdb-types.at:127"
 
39460
( $at_check_trace; test-ovsdb parse-type '{"key": "real", "min": 1, "max": "unlimited"}'
 
39461
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39462
at_status=$? at_failed=false
 
39463
$at_check_filter
 
39464
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39465
echo >>"$at_stdout"; $as_echo "{\"key\":\"real\",\"max\":\"unlimited\"}
 
39466
" | \
 
39467
  $at_diff - "$at_stdout" || at_failed=:
 
39468
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:127"
 
39469
$at_failed && at_fn_log_failure
 
39470
$at_traceon; }
 
39471
 
 
39472
     set +x
 
39473
  $at_times_p && times >"$at_times_file"
 
39474
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39475
read at_status <"$at_status_file"
 
39476
#AT_STOP_498
 
39477
#AT_START_499
 
39478
at_fn_group_banner 499 'ovsdb-types.at:127' \
 
39479
  "set of 1 or more reals - Python" "                " 39
 
39480
at_xfail=no
 
39481
(
 
39482
  $as_echo "499. $at_setup_line: testing $at_desc ..."
 
39483
  $at_traceon
 
39484
 
 
39485
   $as_echo "ovsdb-types.at:127" >"$at_check_line_file"
 
39486
(test $HAVE_PYTHON = no) \
 
39487
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:127"
 
39488
 
 
39489
 
 
39490
   { set +x
 
39491
$as_echo "$at_srcdir/ovsdb-types.at:127: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": 1, \"max\": \"unlimited\"}'"
 
39492
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": 1, \"max\": \"unlimited\"}'" "ovsdb-types.at:127"
 
39493
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "real", "min": 1, "max": "unlimited"}'
 
39494
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39495
at_status=$? at_failed=false
 
39496
$at_check_filter
 
39497
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39498
echo >>"$at_stdout"; $as_echo "{\"key\":\"real\",\"max\":\"unlimited\"}
 
39499
" | \
 
39500
  $at_diff - "$at_stdout" || at_failed=:
 
39501
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:127"
 
39502
$at_failed && at_fn_log_failure
 
39503
$at_traceon; }
 
39504
 
 
39505
     set +x
 
39506
  $at_times_p && times >"$at_times_file"
 
39507
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39508
read at_status <"$at_status_file"
 
39509
#AT_STOP_499
 
39510
#AT_START_500
 
39511
at_fn_group_banner 500 'ovsdb-types.at:131' \
 
39512
  "set max cannot be less than min - C" "            " 39
 
39513
at_xfail=no
 
39514
(
 
39515
  $as_echo "500. $at_setup_line: testing $at_desc ..."
 
39516
  $at_traceon
 
39517
 
 
39518
 
 
39519
   { set +x
 
39520
$as_echo "$at_srcdir/ovsdb-types.at:131: test-ovsdb parse-type '{\"key\": \"real\", \"min\": 5, \"max\": 3}' "
 
39521
at_fn_check_prepare_trace "ovsdb-types.at:131"
 
39522
( $at_check_trace; test-ovsdb parse-type '{"key": "real", "min": 5, "max": 3}'
 
39523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39524
at_status=$? at_failed=false
 
39525
$at_check_filter
 
39526
echo stderr:; tee stderr <"$at_stderr"
 
39527
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39528
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:131"
 
39529
$at_failed && at_fn_log_failure
 
39530
$at_traceon; }
 
39531
 
 
39532
 
 
39533
   { set +x
 
39534
$as_echo "$at_srcdir/ovsdb-types.at:131: if grep -F -e \"ovsdb type fails constraint checks\" stderr
 
39535
      then
 
39536
        :
 
39537
      else
 
39538
        exit 99
 
39539
      fi"
 
39540
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:131"
 
39541
( $at_check_trace; if grep -F -e "ovsdb type fails constraint checks" stderr
 
39542
      then
 
39543
        :
 
39544
      else
 
39545
        exit 99
 
39546
      fi
 
39547
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39548
at_status=$? at_failed=false
 
39549
$at_check_filter
 
39550
echo stderr:; cat "$at_stderr"
 
39551
echo stdout:; cat "$at_stdout"
 
39552
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:131"
 
39553
$at_failed && at_fn_log_failure
 
39554
$at_traceon; }
 
39555
 
 
39556
     set +x
 
39557
  $at_times_p && times >"$at_times_file"
 
39558
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39559
read at_status <"$at_status_file"
 
39560
#AT_STOP_500
 
39561
#AT_START_501
 
39562
at_fn_group_banner 501 'ovsdb-types.at:131' \
 
39563
  "set max cannot be less than min - Python" "       " 39
 
39564
at_xfail=no
 
39565
(
 
39566
  $as_echo "501. $at_setup_line: testing $at_desc ..."
 
39567
  $at_traceon
 
39568
 
 
39569
   $as_echo "ovsdb-types.at:131" >"$at_check_line_file"
 
39570
(test $HAVE_PYTHON = no) \
 
39571
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:131"
 
39572
 
 
39573
   { set +x
 
39574
$as_echo "$at_srcdir/ovsdb-types.at:131: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": 5, \"max\": 3}' "
 
39575
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": 5, \"max\": 3}' " "ovsdb-types.at:131"
 
39576
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "real", "min": 5, "max": 3}'
 
39577
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39578
at_status=$? at_failed=false
 
39579
$at_check_filter
 
39580
echo stderr:; tee stderr <"$at_stderr"
 
39581
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39582
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:131"
 
39583
$at_failed && at_fn_log_failure
 
39584
$at_traceon; }
 
39585
 
 
39586
 
 
39587
   { set +x
 
39588
$as_echo "$at_srcdir/ovsdb-types.at:131: if grep -F -e \"ovsdb type fails constraint checks\" stderr
 
39589
      then
 
39590
        :
 
39591
      else
 
39592
        exit 99
 
39593
      fi"
 
39594
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:131"
 
39595
( $at_check_trace; if grep -F -e "ovsdb type fails constraint checks" stderr
 
39596
      then
 
39597
        :
 
39598
      else
 
39599
        exit 99
 
39600
      fi
 
39601
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39602
at_status=$? at_failed=false
 
39603
$at_check_filter
 
39604
echo stderr:; cat "$at_stderr"
 
39605
echo stdout:; cat "$at_stdout"
 
39606
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:131"
 
39607
$at_failed && at_fn_log_failure
 
39608
$at_traceon; }
 
39609
 
 
39610
     set +x
 
39611
  $at_times_p && times >"$at_times_file"
 
39612
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39613
read at_status <"$at_status_file"
 
39614
#AT_STOP_501
 
39615
#AT_START_502
 
39616
at_fn_group_banner 502 'ovsdb-types.at:134' \
 
39617
  "set max cannot be negative - C" "                 " 39
 
39618
at_xfail=no
 
39619
(
 
39620
  $as_echo "502. $at_setup_line: testing $at_desc ..."
 
39621
  $at_traceon
 
39622
 
 
39623
 
 
39624
   { set +x
 
39625
$as_echo "$at_srcdir/ovsdb-types.at:134: test-ovsdb parse-type '{\"key\": \"real\", \"max\": -1}' "
 
39626
at_fn_check_prepare_trace "ovsdb-types.at:134"
 
39627
( $at_check_trace; test-ovsdb parse-type '{"key": "real", "max": -1}'
 
39628
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39629
at_status=$? at_failed=false
 
39630
$at_check_filter
 
39631
echo stderr:; tee stderr <"$at_stderr"
 
39632
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39633
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:134"
 
39634
$at_failed && at_fn_log_failure
 
39635
$at_traceon; }
 
39636
 
 
39637
 
 
39638
   { set +x
 
39639
$as_echo "$at_srcdir/ovsdb-types.at:134: if grep -F -e \"bad min or max value\" stderr
 
39640
      then
 
39641
        :
 
39642
      else
 
39643
        exit 99
 
39644
      fi"
 
39645
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:134"
 
39646
( $at_check_trace; if grep -F -e "bad min or max value" stderr
 
39647
      then
 
39648
        :
 
39649
      else
 
39650
        exit 99
 
39651
      fi
 
39652
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39653
at_status=$? at_failed=false
 
39654
$at_check_filter
 
39655
echo stderr:; cat "$at_stderr"
 
39656
echo stdout:; cat "$at_stdout"
 
39657
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:134"
 
39658
$at_failed && at_fn_log_failure
 
39659
$at_traceon; }
 
39660
 
 
39661
     set +x
 
39662
  $at_times_p && times >"$at_times_file"
 
39663
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39664
read at_status <"$at_status_file"
 
39665
#AT_STOP_502
 
39666
#AT_START_503
 
39667
at_fn_group_banner 503 'ovsdb-types.at:134' \
 
39668
  "set max cannot be negative - Python" "            " 39
 
39669
at_xfail=no
 
39670
(
 
39671
  $as_echo "503. $at_setup_line: testing $at_desc ..."
 
39672
  $at_traceon
 
39673
 
 
39674
   $as_echo "ovsdb-types.at:134" >"$at_check_line_file"
 
39675
(test $HAVE_PYTHON = no) \
 
39676
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:134"
 
39677
 
 
39678
   { set +x
 
39679
$as_echo "$at_srcdir/ovsdb-types.at:134: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"max\": -1}' "
 
39680
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"max\": -1}' " "ovsdb-types.at:134"
 
39681
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "real", "max": -1}'
 
39682
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39683
at_status=$? at_failed=false
 
39684
$at_check_filter
 
39685
echo stderr:; tee stderr <"$at_stderr"
 
39686
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39687
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:134"
 
39688
$at_failed && at_fn_log_failure
 
39689
$at_traceon; }
 
39690
 
 
39691
 
 
39692
   { set +x
 
39693
$as_echo "$at_srcdir/ovsdb-types.at:134: if grep -F -e \"bad min or max value\" stderr
 
39694
      then
 
39695
        :
 
39696
      else
 
39697
        exit 99
 
39698
      fi"
 
39699
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:134"
 
39700
( $at_check_trace; if grep -F -e "bad min or max value" stderr
 
39701
      then
 
39702
        :
 
39703
      else
 
39704
        exit 99
 
39705
      fi
 
39706
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39707
at_status=$? at_failed=false
 
39708
$at_check_filter
 
39709
echo stderr:; cat "$at_stderr"
 
39710
echo stdout:; cat "$at_stdout"
 
39711
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:134"
 
39712
$at_failed && at_fn_log_failure
 
39713
$at_traceon; }
 
39714
 
 
39715
     set +x
 
39716
  $at_times_p && times >"$at_times_file"
 
39717
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39718
read at_status <"$at_status_file"
 
39719
#AT_STOP_503
 
39720
#AT_START_504
 
39721
at_fn_group_banner 504 'ovsdb-types.at:137' \
 
39722
  "set min cannot be negative - C" "                 " 39
 
39723
at_xfail=no
 
39724
(
 
39725
  $as_echo "504. $at_setup_line: testing $at_desc ..."
 
39726
  $at_traceon
 
39727
 
 
39728
 
 
39729
   { set +x
 
39730
$as_echo "$at_srcdir/ovsdb-types.at:137: test-ovsdb parse-type '{\"key\": \"real\", \"min\": -1}' "
 
39731
at_fn_check_prepare_trace "ovsdb-types.at:137"
 
39732
( $at_check_trace; test-ovsdb parse-type '{"key": "real", "min": -1}'
 
39733
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39734
at_status=$? at_failed=false
 
39735
$at_check_filter
 
39736
echo stderr:; tee stderr <"$at_stderr"
 
39737
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39738
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:137"
 
39739
$at_failed && at_fn_log_failure
 
39740
$at_traceon; }
 
39741
 
 
39742
 
 
39743
   { set +x
 
39744
$as_echo "$at_srcdir/ovsdb-types.at:137: if grep -F -e \"bad min or max value\" stderr
 
39745
      then
 
39746
        :
 
39747
      else
 
39748
        exit 99
 
39749
      fi"
 
39750
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:137"
 
39751
( $at_check_trace; if grep -F -e "bad min or max value" stderr
 
39752
      then
 
39753
        :
 
39754
      else
 
39755
        exit 99
 
39756
      fi
 
39757
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39758
at_status=$? at_failed=false
 
39759
$at_check_filter
 
39760
echo stderr:; cat "$at_stderr"
 
39761
echo stdout:; cat "$at_stdout"
 
39762
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:137"
 
39763
$at_failed && at_fn_log_failure
 
39764
$at_traceon; }
 
39765
 
 
39766
     set +x
 
39767
  $at_times_p && times >"$at_times_file"
 
39768
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39769
read at_status <"$at_status_file"
 
39770
#AT_STOP_504
 
39771
#AT_START_505
 
39772
at_fn_group_banner 505 'ovsdb-types.at:137' \
 
39773
  "set min cannot be negative - Python" "            " 39
 
39774
at_xfail=no
 
39775
(
 
39776
  $as_echo "505. $at_setup_line: testing $at_desc ..."
 
39777
  $at_traceon
 
39778
 
 
39779
   $as_echo "ovsdb-types.at:137" >"$at_check_line_file"
 
39780
(test $HAVE_PYTHON = no) \
 
39781
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:137"
 
39782
 
 
39783
   { set +x
 
39784
$as_echo "$at_srcdir/ovsdb-types.at:137: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": -1}' "
 
39785
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": -1}' " "ovsdb-types.at:137"
 
39786
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "real", "min": -1}'
 
39787
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39788
at_status=$? at_failed=false
 
39789
$at_check_filter
 
39790
echo stderr:; tee stderr <"$at_stderr"
 
39791
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39792
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:137"
 
39793
$at_failed && at_fn_log_failure
 
39794
$at_traceon; }
 
39795
 
 
39796
 
 
39797
   { set +x
 
39798
$as_echo "$at_srcdir/ovsdb-types.at:137: if grep -F -e \"bad min or max value\" stderr
 
39799
      then
 
39800
        :
 
39801
      else
 
39802
        exit 99
 
39803
      fi"
 
39804
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:137"
 
39805
( $at_check_trace; if grep -F -e "bad min or max value" stderr
 
39806
      then
 
39807
        :
 
39808
      else
 
39809
        exit 99
 
39810
      fi
 
39811
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39812
at_status=$? at_failed=false
 
39813
$at_check_filter
 
39814
echo stderr:; cat "$at_stderr"
 
39815
echo stdout:; cat "$at_stdout"
 
39816
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:137"
 
39817
$at_failed && at_fn_log_failure
 
39818
$at_traceon; }
 
39819
 
 
39820
     set +x
 
39821
  $at_times_p && times >"$at_times_file"
 
39822
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39823
read at_status <"$at_status_file"
 
39824
#AT_STOP_505
 
39825
#AT_START_506
 
39826
at_fn_group_banner 506 'ovsdb-types.at:140' \
 
39827
  "set min cannot be greater than one - C" "         " 39
 
39828
at_xfail=no
 
39829
(
 
39830
  $as_echo "506. $at_setup_line: testing $at_desc ..."
 
39831
  $at_traceon
 
39832
 
 
39833
 
 
39834
   { set +x
 
39835
$as_echo "$at_srcdir/ovsdb-types.at:140: test-ovsdb parse-type '{\"key\": \"real\", \"min\": 10, \"max\": \"unlimited\"}'"
 
39836
at_fn_check_prepare_trace "ovsdb-types.at:140"
 
39837
( $at_check_trace; test-ovsdb parse-type '{"key": "real", "min": 10, "max": "unlimited"}'
 
39838
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39839
at_status=$? at_failed=false
 
39840
$at_check_filter
 
39841
echo stderr:; tee stderr <"$at_stderr"
 
39842
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39843
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:140"
 
39844
$at_failed && at_fn_log_failure
 
39845
$at_traceon; }
 
39846
 
 
39847
 
 
39848
   { set +x
 
39849
$as_echo "$at_srcdir/ovsdb-types.at:140: if grep -F -e \"ovsdb type fails constraint checks\" stderr
 
39850
      then
 
39851
        :
 
39852
      else
 
39853
        exit 99
 
39854
      fi"
 
39855
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:140"
 
39856
( $at_check_trace; if grep -F -e "ovsdb type fails constraint checks" stderr
 
39857
      then
 
39858
        :
 
39859
      else
 
39860
        exit 99
 
39861
      fi
 
39862
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39863
at_status=$? at_failed=false
 
39864
$at_check_filter
 
39865
echo stderr:; cat "$at_stderr"
 
39866
echo stdout:; cat "$at_stdout"
 
39867
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:140"
 
39868
$at_failed && at_fn_log_failure
 
39869
$at_traceon; }
 
39870
 
 
39871
     set +x
 
39872
  $at_times_p && times >"$at_times_file"
 
39873
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39874
read at_status <"$at_status_file"
 
39875
#AT_STOP_506
 
39876
#AT_START_507
 
39877
at_fn_group_banner 507 'ovsdb-types.at:140' \
 
39878
  "set min cannot be greater than one - Python" "    " 39
 
39879
at_xfail=no
 
39880
(
 
39881
  $as_echo "507. $at_setup_line: testing $at_desc ..."
 
39882
  $at_traceon
 
39883
 
 
39884
   $as_echo "ovsdb-types.at:140" >"$at_check_line_file"
 
39885
(test $HAVE_PYTHON = no) \
 
39886
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:140"
 
39887
 
 
39888
   { set +x
 
39889
$as_echo "$at_srcdir/ovsdb-types.at:140: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": 10, \"max\": \"unlimited\"}'"
 
39890
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"min\": 10, \"max\": \"unlimited\"}'" "ovsdb-types.at:140"
 
39891
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "real", "min": 10, "max": "unlimited"}'
 
39892
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39893
at_status=$? at_failed=false
 
39894
$at_check_filter
 
39895
echo stderr:; tee stderr <"$at_stderr"
 
39896
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
39897
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:140"
 
39898
$at_failed && at_fn_log_failure
 
39899
$at_traceon; }
 
39900
 
 
39901
 
 
39902
   { set +x
 
39903
$as_echo "$at_srcdir/ovsdb-types.at:140: if grep -F -e \"ovsdb type fails constraint checks\" stderr
 
39904
      then
 
39905
        :
 
39906
      else
 
39907
        exit 99
 
39908
      fi"
 
39909
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:140"
 
39910
( $at_check_trace; if grep -F -e "ovsdb type fails constraint checks" stderr
 
39911
      then
 
39912
        :
 
39913
      else
 
39914
        exit 99
 
39915
      fi
 
39916
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39917
at_status=$? at_failed=false
 
39918
$at_check_filter
 
39919
echo stderr:; cat "$at_stderr"
 
39920
echo stdout:; cat "$at_stdout"
 
39921
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:140"
 
39922
$at_failed && at_fn_log_failure
 
39923
$at_traceon; }
 
39924
 
 
39925
     set +x
 
39926
  $at_times_p && times >"$at_times_file"
 
39927
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39928
read at_status <"$at_status_file"
 
39929
#AT_STOP_507
 
39930
#AT_START_508
 
39931
at_fn_group_banner 508 'ovsdb-types.at:146' \
 
39932
  "map of 1 integer to boolean - C" "                " 40
 
39933
at_xfail=no
 
39934
(
 
39935
  $as_echo "508. $at_setup_line: testing $at_desc ..."
 
39936
  $at_traceon
 
39937
 
 
39938
 
 
39939
   { set +x
 
39940
$as_echo "$at_srcdir/ovsdb-types.at:146: test-ovsdb parse-type '{\"key\": \"integer\", \"value\": \"boolean\"}' "
 
39941
at_fn_check_prepare_trace "ovsdb-types.at:146"
 
39942
( $at_check_trace; test-ovsdb parse-type '{"key": "integer", "value": "boolean"}'
 
39943
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39944
at_status=$? at_failed=false
 
39945
$at_check_filter
 
39946
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39947
echo >>"$at_stdout"; $as_echo "{\"key\":\"integer\",\"value\":\"boolean\"}
 
39948
" | \
 
39949
  $at_diff - "$at_stdout" || at_failed=:
 
39950
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:146"
 
39951
$at_failed && at_fn_log_failure
 
39952
$at_traceon; }
 
39953
 
 
39954
     set +x
 
39955
  $at_times_p && times >"$at_times_file"
 
39956
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39957
read at_status <"$at_status_file"
 
39958
#AT_STOP_508
 
39959
#AT_START_509
 
39960
at_fn_group_banner 509 'ovsdb-types.at:146' \
 
39961
  "map of 1 integer to boolean - Python" "           " 40
 
39962
at_xfail=no
 
39963
(
 
39964
  $as_echo "509. $at_setup_line: testing $at_desc ..."
 
39965
  $at_traceon
 
39966
 
 
39967
   $as_echo "ovsdb-types.at:146" >"$at_check_line_file"
 
39968
(test $HAVE_PYTHON = no) \
 
39969
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:146"
 
39970
 
 
39971
 
 
39972
   { set +x
 
39973
$as_echo "$at_srcdir/ovsdb-types.at:146: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"integer\", \"value\": \"boolean\"}' "
 
39974
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"integer\", \"value\": \"boolean\"}' " "ovsdb-types.at:146"
 
39975
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "integer", "value": "boolean"}'
 
39976
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
39977
at_status=$? at_failed=false
 
39978
$at_check_filter
 
39979
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
39980
echo >>"$at_stdout"; $as_echo "{\"key\":\"integer\",\"value\":\"boolean\"}
 
39981
" | \
 
39982
  $at_diff - "$at_stdout" || at_failed=:
 
39983
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:146"
 
39984
$at_failed && at_fn_log_failure
 
39985
$at_traceon; }
 
39986
 
 
39987
     set +x
 
39988
  $at_times_p && times >"$at_times_file"
 
39989
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
39990
read at_status <"$at_status_file"
 
39991
#AT_STOP_509
 
39992
#AT_START_510
 
39993
at_fn_group_banner 510 'ovsdb-types.at:149' \
 
39994
  "map of 1 boolean to integer, explicit min and max - C" "" 40
 
39995
at_xfail=no
 
39996
(
 
39997
  $as_echo "510. $at_setup_line: testing $at_desc ..."
 
39998
  $at_traceon
 
39999
 
 
40000
 
 
40001
   { set +x
 
40002
$as_echo "$at_srcdir/ovsdb-types.at:149: test-ovsdb parse-type '{\"key\": \"boolean\", \"value\": \"integer\", \"min\": 1, \"max\": 1}' "
 
40003
at_fn_check_prepare_trace "ovsdb-types.at:149"
 
40004
( $at_check_trace; test-ovsdb parse-type '{"key": "boolean", "value": "integer", "min": 1, "max": 1}'
 
40005
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40006
at_status=$? at_failed=false
 
40007
$at_check_filter
 
40008
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40009
echo >>"$at_stdout"; $as_echo "{\"key\":\"boolean\",\"value\":\"integer\"}
 
40010
" | \
 
40011
  $at_diff - "$at_stdout" || at_failed=:
 
40012
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:149"
 
40013
$at_failed && at_fn_log_failure
 
40014
$at_traceon; }
 
40015
 
 
40016
     set +x
 
40017
  $at_times_p && times >"$at_times_file"
 
40018
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40019
read at_status <"$at_status_file"
 
40020
#AT_STOP_510
 
40021
#AT_START_511
 
40022
at_fn_group_banner 511 'ovsdb-types.at:149' \
 
40023
  "map of 1 boolean to integer, explicit min and max - Python" "" 40
 
40024
at_xfail=no
 
40025
(
 
40026
  $as_echo "511. $at_setup_line: testing $at_desc ..."
 
40027
  $at_traceon
 
40028
 
 
40029
   $as_echo "ovsdb-types.at:149" >"$at_check_line_file"
 
40030
(test $HAVE_PYTHON = no) \
 
40031
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:149"
 
40032
 
 
40033
 
 
40034
   { set +x
 
40035
$as_echo "$at_srcdir/ovsdb-types.at:149: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"boolean\", \"value\": \"integer\", \"min\": 1, \"max\": 1}' "
 
40036
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"boolean\", \"value\": \"integer\", \"min\": 1, \"max\": 1}' " "ovsdb-types.at:149"
 
40037
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "boolean", "value": "integer", "min": 1, "max": 1}'
 
40038
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40039
at_status=$? at_failed=false
 
40040
$at_check_filter
 
40041
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40042
echo >>"$at_stdout"; $as_echo "{\"key\":\"boolean\",\"value\":\"integer\"}
 
40043
" | \
 
40044
  $at_diff - "$at_stdout" || at_failed=:
 
40045
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:149"
 
40046
$at_failed && at_fn_log_failure
 
40047
$at_traceon; }
 
40048
 
 
40049
     set +x
 
40050
  $at_times_p && times >"$at_times_file"
 
40051
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40052
read at_status <"$at_status_file"
 
40053
#AT_STOP_511
 
40054
#AT_START_512
 
40055
at_fn_group_banner 512 'ovsdb-types.at:152' \
 
40056
  "map of 1 to 5 uuid to real - C" "                 " 40
 
40057
at_xfail=no
 
40058
(
 
40059
  $as_echo "512. $at_setup_line: testing $at_desc ..."
 
40060
  $at_traceon
 
40061
 
 
40062
 
 
40063
   { set +x
 
40064
$as_echo "$at_srcdir/ovsdb-types.at:152: test-ovsdb parse-type '{\"key\": \"uuid\", \"value\": \"real\", \"min\": 1, \"max\": 5}' "
 
40065
at_fn_check_prepare_trace "ovsdb-types.at:152"
 
40066
( $at_check_trace; test-ovsdb parse-type '{"key": "uuid", "value": "real", "min": 1, "max": 5}'
 
40067
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40068
at_status=$? at_failed=false
 
40069
$at_check_filter
 
40070
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40071
echo >>"$at_stdout"; $as_echo "{\"key\":\"uuid\",\"max\":5,\"value\":\"real\"}
 
40072
" | \
 
40073
  $at_diff - "$at_stdout" || at_failed=:
 
40074
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:152"
 
40075
$at_failed && at_fn_log_failure
 
40076
$at_traceon; }
 
40077
 
 
40078
     set +x
 
40079
  $at_times_p && times >"$at_times_file"
 
40080
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40081
read at_status <"$at_status_file"
 
40082
#AT_STOP_512
 
40083
#AT_START_513
 
40084
at_fn_group_banner 513 'ovsdb-types.at:152' \
 
40085
  "map of 1 to 5 uuid to real - Python" "            " 40
 
40086
at_xfail=no
 
40087
(
 
40088
  $as_echo "513. $at_setup_line: testing $at_desc ..."
 
40089
  $at_traceon
 
40090
 
 
40091
   $as_echo "ovsdb-types.at:152" >"$at_check_line_file"
 
40092
(test $HAVE_PYTHON = no) \
 
40093
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:152"
 
40094
 
 
40095
 
 
40096
   { set +x
 
40097
$as_echo "$at_srcdir/ovsdb-types.at:152: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"uuid\", \"value\": \"real\", \"min\": 1, \"max\": 5}' "
 
40098
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"uuid\", \"value\": \"real\", \"min\": 1, \"max\": 5}' " "ovsdb-types.at:152"
 
40099
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "uuid", "value": "real", "min": 1, "max": 5}'
 
40100
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40101
at_status=$? at_failed=false
 
40102
$at_check_filter
 
40103
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40104
echo >>"$at_stdout"; $as_echo "{\"key\":\"uuid\",\"max\":5,\"value\":\"real\"}
 
40105
" | \
 
40106
  $at_diff - "$at_stdout" || at_failed=:
 
40107
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:152"
 
40108
$at_failed && at_fn_log_failure
 
40109
$at_traceon; }
 
40110
 
 
40111
     set +x
 
40112
  $at_times_p && times >"$at_times_file"
 
40113
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40114
read at_status <"$at_status_file"
 
40115
#AT_STOP_513
 
40116
#AT_START_514
 
40117
at_fn_group_banner 514 'ovsdb-types.at:155' \
 
40118
  "map of 0 to 10 string to uuid - C" "              " 40
 
40119
at_xfail=no
 
40120
(
 
40121
  $as_echo "514. $at_setup_line: testing $at_desc ..."
 
40122
  $at_traceon
 
40123
 
 
40124
 
 
40125
   { set +x
 
40126
$as_echo "$at_srcdir/ovsdb-types.at:155: test-ovsdb parse-type '{\"key\": \"string\", \"value\": \"uuid\", \"min\": 0, \"max\": 10}' "
 
40127
at_fn_check_prepare_trace "ovsdb-types.at:155"
 
40128
( $at_check_trace; test-ovsdb parse-type '{"key": "string", "value": "uuid", "min": 0, "max": 10}'
 
40129
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40130
at_status=$? at_failed=false
 
40131
$at_check_filter
 
40132
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40133
echo >>"$at_stdout"; $as_echo "{\"key\":\"string\",\"max\":10,\"min\":0,\"value\":\"uuid\"}
 
40134
" | \
 
40135
  $at_diff - "$at_stdout" || at_failed=:
 
40136
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:155"
 
40137
$at_failed && at_fn_log_failure
 
40138
$at_traceon; }
 
40139
 
 
40140
     set +x
 
40141
  $at_times_p && times >"$at_times_file"
 
40142
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40143
read at_status <"$at_status_file"
 
40144
#AT_STOP_514
 
40145
#AT_START_515
 
40146
at_fn_group_banner 515 'ovsdb-types.at:155' \
 
40147
  "map of 0 to 10 string to uuid - Python" "         " 40
 
40148
at_xfail=no
 
40149
(
 
40150
  $as_echo "515. $at_setup_line: testing $at_desc ..."
 
40151
  $at_traceon
 
40152
 
 
40153
   $as_echo "ovsdb-types.at:155" >"$at_check_line_file"
 
40154
(test $HAVE_PYTHON = no) \
 
40155
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:155"
 
40156
 
 
40157
 
 
40158
   { set +x
 
40159
$as_echo "$at_srcdir/ovsdb-types.at:155: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"string\", \"value\": \"uuid\", \"min\": 0, \"max\": 10}' "
 
40160
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"string\", \"value\": \"uuid\", \"min\": 0, \"max\": 10}' " "ovsdb-types.at:155"
 
40161
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "string", "value": "uuid", "min": 0, "max": 10}'
 
40162
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40163
at_status=$? at_failed=false
 
40164
$at_check_filter
 
40165
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40166
echo >>"$at_stdout"; $as_echo "{\"key\":\"string\",\"max\":10,\"min\":0,\"value\":\"uuid\"}
 
40167
" | \
 
40168
  $at_diff - "$at_stdout" || at_failed=:
 
40169
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:155"
 
40170
$at_failed && at_fn_log_failure
 
40171
$at_traceon; }
 
40172
 
 
40173
     set +x
 
40174
  $at_times_p && times >"$at_times_file"
 
40175
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40176
read at_status <"$at_status_file"
 
40177
#AT_STOP_515
 
40178
#AT_START_516
 
40179
at_fn_group_banner 516 'ovsdb-types.at:158' \
 
40180
  "map of 1 to 20 real to string - C" "              " 40
 
40181
at_xfail=no
 
40182
(
 
40183
  $as_echo "516. $at_setup_line: testing $at_desc ..."
 
40184
  $at_traceon
 
40185
 
 
40186
 
 
40187
   { set +x
 
40188
$as_echo "$at_srcdir/ovsdb-types.at:158: test-ovsdb parse-type '{\"key\": \"real\", \"value\": \"string\", \"min\": 1, \"max\": 20}' "
 
40189
at_fn_check_prepare_trace "ovsdb-types.at:158"
 
40190
( $at_check_trace; test-ovsdb parse-type '{"key": "real", "value": "string", "min": 1, "max": 20}'
 
40191
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40192
at_status=$? at_failed=false
 
40193
$at_check_filter
 
40194
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40195
echo >>"$at_stdout"; $as_echo "{\"key\":\"real\",\"max\":20,\"value\":\"string\"}
 
40196
" | \
 
40197
  $at_diff - "$at_stdout" || at_failed=:
 
40198
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:158"
 
40199
$at_failed && at_fn_log_failure
 
40200
$at_traceon; }
 
40201
 
 
40202
     set +x
 
40203
  $at_times_p && times >"$at_times_file"
 
40204
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40205
read at_status <"$at_status_file"
 
40206
#AT_STOP_516
 
40207
#AT_START_517
 
40208
at_fn_group_banner 517 'ovsdb-types.at:158' \
 
40209
  "map of 1 to 20 real to string - Python" "         " 40
 
40210
at_xfail=no
 
40211
(
 
40212
  $as_echo "517. $at_setup_line: testing $at_desc ..."
 
40213
  $at_traceon
 
40214
 
 
40215
   $as_echo "ovsdb-types.at:158" >"$at_check_line_file"
 
40216
(test $HAVE_PYTHON = no) \
 
40217
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:158"
 
40218
 
 
40219
 
 
40220
   { set +x
 
40221
$as_echo "$at_srcdir/ovsdb-types.at:158: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"value\": \"string\", \"min\": 1, \"max\": 20}' "
 
40222
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"real\", \"value\": \"string\", \"min\": 1, \"max\": 20}' " "ovsdb-types.at:158"
 
40223
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "real", "value": "string", "min": 1, "max": 20}'
 
40224
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40225
at_status=$? at_failed=false
 
40226
$at_check_filter
 
40227
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40228
echo >>"$at_stdout"; $as_echo "{\"key\":\"real\",\"max\":20,\"value\":\"string\"}
 
40229
" | \
 
40230
  $at_diff - "$at_stdout" || at_failed=:
 
40231
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:158"
 
40232
$at_failed && at_fn_log_failure
 
40233
$at_traceon; }
 
40234
 
 
40235
     set +x
 
40236
  $at_times_p && times >"$at_times_file"
 
40237
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40238
read at_status <"$at_status_file"
 
40239
#AT_STOP_517
 
40240
#AT_START_518
 
40241
at_fn_group_banner 518 'ovsdb-types.at:161' \
 
40242
  "map of 0 or more string to real - C" "            " 40
 
40243
at_xfail=no
 
40244
(
 
40245
  $as_echo "518. $at_setup_line: testing $at_desc ..."
 
40246
  $at_traceon
 
40247
 
 
40248
 
 
40249
   { set +x
 
40250
$as_echo "$at_srcdir/ovsdb-types.at:161: test-ovsdb parse-type '{\"key\": \"string\", \"value\": \"real\", \"min\": 0, \"max\": \"unlimited\"}' "
 
40251
at_fn_check_prepare_trace "ovsdb-types.at:161"
 
40252
( $at_check_trace; test-ovsdb parse-type '{"key": "string", "value": "real", "min": 0, "max": "unlimited"}'
 
40253
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40254
at_status=$? at_failed=false
 
40255
$at_check_filter
 
40256
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40257
echo >>"$at_stdout"; $as_echo "{\"key\":\"string\",\"max\":\"unlimited\",\"min\":0,\"value\":\"real\"}
 
40258
" | \
 
40259
  $at_diff - "$at_stdout" || at_failed=:
 
40260
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:161"
 
40261
$at_failed && at_fn_log_failure
 
40262
$at_traceon; }
 
40263
 
 
40264
     set +x
 
40265
  $at_times_p && times >"$at_times_file"
 
40266
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40267
read at_status <"$at_status_file"
 
40268
#AT_STOP_518
 
40269
#AT_START_519
 
40270
at_fn_group_banner 519 'ovsdb-types.at:161' \
 
40271
  "map of 0 or more string to real - Python" "       " 40
 
40272
at_xfail=no
 
40273
(
 
40274
  $as_echo "519. $at_setup_line: testing $at_desc ..."
 
40275
  $at_traceon
 
40276
 
 
40277
   $as_echo "ovsdb-types.at:161" >"$at_check_line_file"
 
40278
(test $HAVE_PYTHON = no) \
 
40279
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:161"
 
40280
 
 
40281
 
 
40282
   { set +x
 
40283
$as_echo "$at_srcdir/ovsdb-types.at:161: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"key\": \"string\", \"value\": \"real\", \"min\": 0, \"max\": \"unlimited\"}' "
 
40284
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"key\": \"string\", \"value\": \"real\", \"min\": 0, \"max\": \"unlimited\"}' " "ovsdb-types.at:161"
 
40285
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"key": "string", "value": "real", "min": 0, "max": "unlimited"}'
 
40286
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40287
at_status=$? at_failed=false
 
40288
$at_check_filter
 
40289
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40290
echo >>"$at_stdout"; $as_echo "{\"key\":\"string\",\"max\":\"unlimited\",\"min\":0,\"value\":\"real\"}
 
40291
" | \
 
40292
  $at_diff - "$at_stdout" || at_failed=:
 
40293
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:161"
 
40294
$at_failed && at_fn_log_failure
 
40295
$at_traceon; }
 
40296
 
 
40297
     set +x
 
40298
  $at_times_p && times >"$at_times_file"
 
40299
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40300
read at_status <"$at_status_file"
 
40301
#AT_STOP_519
 
40302
#AT_START_520
 
40303
at_fn_group_banner 520 'ovsdb-types.at:165' \
 
40304
  "map key type is required - C" "                   " 40
 
40305
at_xfail=no
 
40306
(
 
40307
  $as_echo "520. $at_setup_line: testing $at_desc ..."
 
40308
  $at_traceon
 
40309
 
 
40310
 
 
40311
   { set +x
 
40312
$as_echo "$at_srcdir/ovsdb-types.at:165: test-ovsdb parse-type '{\"value\": \"integer\"}' "
 
40313
at_fn_check_prepare_trace "ovsdb-types.at:165"
 
40314
( $at_check_trace; test-ovsdb parse-type '{"value": "integer"}'
 
40315
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40316
at_status=$? at_failed=false
 
40317
$at_check_filter
 
40318
echo stderr:; tee stderr <"$at_stderr"
 
40319
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
40320
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:165"
 
40321
$at_failed && at_fn_log_failure
 
40322
$at_traceon; }
 
40323
 
 
40324
 
 
40325
   { set +x
 
40326
$as_echo "$at_srcdir/ovsdb-types.at:165: if grep -F -e \"Required 'key' member is missing.\" stderr
 
40327
      then
 
40328
        :
 
40329
      else
 
40330
        exit 99
 
40331
      fi"
 
40332
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:165"
 
40333
( $at_check_trace; if grep -F -e "Required 'key' member is missing." stderr
 
40334
      then
 
40335
        :
 
40336
      else
 
40337
        exit 99
 
40338
      fi
 
40339
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40340
at_status=$? at_failed=false
 
40341
$at_check_filter
 
40342
echo stderr:; cat "$at_stderr"
 
40343
echo stdout:; cat "$at_stdout"
 
40344
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:165"
 
40345
$at_failed && at_fn_log_failure
 
40346
$at_traceon; }
 
40347
 
 
40348
     set +x
 
40349
  $at_times_p && times >"$at_times_file"
 
40350
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40351
read at_status <"$at_status_file"
 
40352
#AT_STOP_520
 
40353
#AT_START_521
 
40354
at_fn_group_banner 521 'ovsdb-types.at:165' \
 
40355
  "map key type is required - Python" "              " 40
 
40356
at_xfail=no
 
40357
(
 
40358
  $as_echo "521. $at_setup_line: testing $at_desc ..."
 
40359
  $at_traceon
 
40360
 
 
40361
   $as_echo "ovsdb-types.at:165" >"$at_check_line_file"
 
40362
(test $HAVE_PYTHON = no) \
 
40363
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-types.at:165"
 
40364
 
 
40365
   { set +x
 
40366
$as_echo "$at_srcdir/ovsdb-types.at:165: \$PYTHON \$srcdir/test-ovsdb.py parse-type '{\"value\": \"integer\"}' "
 
40367
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-type '{\"value\": \"integer\"}' " "ovsdb-types.at:165"
 
40368
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-type '{"value": "integer"}'
 
40369
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40370
at_status=$? at_failed=false
 
40371
$at_check_filter
 
40372
echo stderr:; tee stderr <"$at_stderr"
 
40373
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
40374
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-types.at:165"
 
40375
$at_failed && at_fn_log_failure
 
40376
$at_traceon; }
 
40377
 
 
40378
 
 
40379
   { set +x
 
40380
$as_echo "$at_srcdir/ovsdb-types.at:165: if grep -F -e \"Required 'key' member is missing.\" stderr
 
40381
      then
 
40382
        :
 
40383
      else
 
40384
        exit 99
 
40385
      fi"
 
40386
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-types.at:165"
 
40387
( $at_check_trace; if grep -F -e "Required 'key' member is missing." stderr
 
40388
      then
 
40389
        :
 
40390
      else
 
40391
        exit 99
 
40392
      fi
 
40393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40394
at_status=$? at_failed=false
 
40395
$at_check_filter
 
40396
echo stderr:; cat "$at_stderr"
 
40397
echo stdout:; cat "$at_stdout"
 
40398
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-types.at:165"
 
40399
$at_failed && at_fn_log_failure
 
40400
$at_traceon; }
 
40401
 
 
40402
     set +x
 
40403
  $at_times_p && times >"$at_times_file"
 
40404
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40405
read at_status <"$at_status_file"
 
40406
#AT_STOP_521
 
40407
#AT_START_522
 
40408
at_fn_group_banner 522 'ovsdb-data.at:3' \
 
40409
  "default atoms - C" "                              " 41
 
40410
at_xfail=no
 
40411
(
 
40412
  $as_echo "522. $at_setup_line: testing $at_desc ..."
 
40413
  $at_traceon
 
40414
 
 
40415
 
 
40416
   { set +x
 
40417
$as_echo "$at_srcdir/ovsdb-data.at:3: test-ovsdb default-atoms"
 
40418
at_fn_check_prepare_trace "ovsdb-data.at:3"
 
40419
( $at_check_trace; test-ovsdb default-atoms
 
40420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40421
at_status=$? at_failed=false
 
40422
$at_check_filter
 
40423
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40424
echo >>"$at_stdout"; $as_echo "integer: OK
 
40425
real: OK
 
40426
boolean: OK
 
40427
string: OK
 
40428
uuid: OK
 
40429
" | \
 
40430
  $at_diff - "$at_stdout" || at_failed=:
 
40431
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:3"
 
40432
$at_failed && at_fn_log_failure
 
40433
$at_traceon; }
 
40434
 
 
40435
     set +x
 
40436
  $at_times_p && times >"$at_times_file"
 
40437
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40438
read at_status <"$at_status_file"
 
40439
#AT_STOP_522
 
40440
#AT_START_523
 
40441
at_fn_group_banner 523 'ovsdb-data.at:3' \
 
40442
  "default atoms - Python" "                         " 41
 
40443
at_xfail=no
 
40444
(
 
40445
  $as_echo "523. $at_setup_line: testing $at_desc ..."
 
40446
  $at_traceon
 
40447
 
 
40448
   $as_echo "ovsdb-data.at:3" >"$at_check_line_file"
 
40449
(test $HAVE_PYTHON = no) \
 
40450
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:3"
 
40451
 
 
40452
 
 
40453
   { set +x
 
40454
$as_echo "$at_srcdir/ovsdb-data.at:3: \$PYTHON \$srcdir/test-ovsdb.py default-atoms"
 
40455
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py default-atoms" "ovsdb-data.at:3"
 
40456
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py default-atoms
 
40457
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40458
at_status=$? at_failed=false
 
40459
$at_check_filter
 
40460
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40461
echo >>"$at_stdout"; $as_echo "integer: OK
 
40462
real: OK
 
40463
boolean: OK
 
40464
string: OK
 
40465
uuid: OK
 
40466
" | \
 
40467
  $at_diff - "$at_stdout" || at_failed=:
 
40468
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:3"
 
40469
$at_failed && at_fn_log_failure
 
40470
$at_traceon; }
 
40471
 
 
40472
     set +x
 
40473
  $at_times_p && times >"$at_times_file"
 
40474
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40475
read at_status <"$at_status_file"
 
40476
#AT_STOP_523
 
40477
#AT_START_524
 
40478
at_fn_group_banner 524 'ovsdb-data.at:11' \
 
40479
  "default data - C" "                               " 41
 
40480
at_xfail=no
 
40481
(
 
40482
  $as_echo "524. $at_setup_line: testing $at_desc ..."
 
40483
  $at_traceon
 
40484
 
 
40485
 
 
40486
   { set +x
 
40487
$as_echo "$at_srcdir/ovsdb-data.at:11: test-ovsdb default-data"
 
40488
at_fn_check_prepare_trace "ovsdb-data.at:11"
 
40489
( $at_check_trace; test-ovsdb default-data
 
40490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40491
at_status=$? at_failed=false
 
40492
$at_check_filter
 
40493
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40494
echo >>"$at_stdout"; $as_echo "key integer, value void, n_min 0: OK
 
40495
key integer, value integer, n_min 0: OK
 
40496
key integer, value real, n_min 0: OK
 
40497
key integer, value boolean, n_min 0: OK
 
40498
key integer, value string, n_min 0: OK
 
40499
key integer, value uuid, n_min 0: OK
 
40500
key real, value void, n_min 0: OK
 
40501
key real, value integer, n_min 0: OK
 
40502
key real, value real, n_min 0: OK
 
40503
key real, value boolean, n_min 0: OK
 
40504
key real, value string, n_min 0: OK
 
40505
key real, value uuid, n_min 0: OK
 
40506
key boolean, value void, n_min 0: OK
 
40507
key boolean, value integer, n_min 0: OK
 
40508
key boolean, value real, n_min 0: OK
 
40509
key boolean, value boolean, n_min 0: OK
 
40510
key boolean, value string, n_min 0: OK
 
40511
key boolean, value uuid, n_min 0: OK
 
40512
key string, value void, n_min 0: OK
 
40513
key string, value integer, n_min 0: OK
 
40514
key string, value real, n_min 0: OK
 
40515
key string, value boolean, n_min 0: OK
 
40516
key string, value string, n_min 0: OK
 
40517
key string, value uuid, n_min 0: OK
 
40518
key uuid, value void, n_min 0: OK
 
40519
key uuid, value integer, n_min 0: OK
 
40520
key uuid, value real, n_min 0: OK
 
40521
key uuid, value boolean, n_min 0: OK
 
40522
key uuid, value string, n_min 0: OK
 
40523
key uuid, value uuid, n_min 0: OK
 
40524
key integer, value void, n_min 1: OK
 
40525
key integer, value integer, n_min 1: OK
 
40526
key integer, value real, n_min 1: OK
 
40527
key integer, value boolean, n_min 1: OK
 
40528
key integer, value string, n_min 1: OK
 
40529
key integer, value uuid, n_min 1: OK
 
40530
key real, value void, n_min 1: OK
 
40531
key real, value integer, n_min 1: OK
 
40532
key real, value real, n_min 1: OK
 
40533
key real, value boolean, n_min 1: OK
 
40534
key real, value string, n_min 1: OK
 
40535
key real, value uuid, n_min 1: OK
 
40536
key boolean, value void, n_min 1: OK
 
40537
key boolean, value integer, n_min 1: OK
 
40538
key boolean, value real, n_min 1: OK
 
40539
key boolean, value boolean, n_min 1: OK
 
40540
key boolean, value string, n_min 1: OK
 
40541
key boolean, value uuid, n_min 1: OK
 
40542
key string, value void, n_min 1: OK
 
40543
key string, value integer, n_min 1: OK
 
40544
key string, value real, n_min 1: OK
 
40545
key string, value boolean, n_min 1: OK
 
40546
key string, value string, n_min 1: OK
 
40547
key string, value uuid, n_min 1: OK
 
40548
key uuid, value void, n_min 1: OK
 
40549
key uuid, value integer, n_min 1: OK
 
40550
key uuid, value real, n_min 1: OK
 
40551
key uuid, value boolean, n_min 1: OK
 
40552
key uuid, value string, n_min 1: OK
 
40553
key uuid, value uuid, n_min 1: OK
 
40554
" | \
 
40555
  $at_diff - "$at_stdout" || at_failed=:
 
40556
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:11"
 
40557
$at_failed && at_fn_log_failure
 
40558
$at_traceon; }
 
40559
 
 
40560
     set +x
 
40561
  $at_times_p && times >"$at_times_file"
 
40562
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40563
read at_status <"$at_status_file"
 
40564
#AT_STOP_524
 
40565
#AT_START_525
 
40566
at_fn_group_banner 525 'ovsdb-data.at:11' \
 
40567
  "default data - Python" "                          " 41
 
40568
at_xfail=no
 
40569
(
 
40570
  $as_echo "525. $at_setup_line: testing $at_desc ..."
 
40571
  $at_traceon
 
40572
 
 
40573
   $as_echo "ovsdb-data.at:11" >"$at_check_line_file"
 
40574
(test $HAVE_PYTHON = no) \
 
40575
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:11"
 
40576
 
 
40577
 
 
40578
   { set +x
 
40579
$as_echo "$at_srcdir/ovsdb-data.at:11: \$PYTHON \$srcdir/test-ovsdb.py default-data"
 
40580
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py default-data" "ovsdb-data.at:11"
 
40581
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py default-data
 
40582
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40583
at_status=$? at_failed=false
 
40584
$at_check_filter
 
40585
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40586
echo >>"$at_stdout"; $as_echo "key integer, value void, n_min 0: OK
 
40587
key integer, value integer, n_min 0: OK
 
40588
key integer, value real, n_min 0: OK
 
40589
key integer, value boolean, n_min 0: OK
 
40590
key integer, value string, n_min 0: OK
 
40591
key integer, value uuid, n_min 0: OK
 
40592
key real, value void, n_min 0: OK
 
40593
key real, value integer, n_min 0: OK
 
40594
key real, value real, n_min 0: OK
 
40595
key real, value boolean, n_min 0: OK
 
40596
key real, value string, n_min 0: OK
 
40597
key real, value uuid, n_min 0: OK
 
40598
key boolean, value void, n_min 0: OK
 
40599
key boolean, value integer, n_min 0: OK
 
40600
key boolean, value real, n_min 0: OK
 
40601
key boolean, value boolean, n_min 0: OK
 
40602
key boolean, value string, n_min 0: OK
 
40603
key boolean, value uuid, n_min 0: OK
 
40604
key string, value void, n_min 0: OK
 
40605
key string, value integer, n_min 0: OK
 
40606
key string, value real, n_min 0: OK
 
40607
key string, value boolean, n_min 0: OK
 
40608
key string, value string, n_min 0: OK
 
40609
key string, value uuid, n_min 0: OK
 
40610
key uuid, value void, n_min 0: OK
 
40611
key uuid, value integer, n_min 0: OK
 
40612
key uuid, value real, n_min 0: OK
 
40613
key uuid, value boolean, n_min 0: OK
 
40614
key uuid, value string, n_min 0: OK
 
40615
key uuid, value uuid, n_min 0: OK
 
40616
key integer, value void, n_min 1: OK
 
40617
key integer, value integer, n_min 1: OK
 
40618
key integer, value real, n_min 1: OK
 
40619
key integer, value boolean, n_min 1: OK
 
40620
key integer, value string, n_min 1: OK
 
40621
key integer, value uuid, n_min 1: OK
 
40622
key real, value void, n_min 1: OK
 
40623
key real, value integer, n_min 1: OK
 
40624
key real, value real, n_min 1: OK
 
40625
key real, value boolean, n_min 1: OK
 
40626
key real, value string, n_min 1: OK
 
40627
key real, value uuid, n_min 1: OK
 
40628
key boolean, value void, n_min 1: OK
 
40629
key boolean, value integer, n_min 1: OK
 
40630
key boolean, value real, n_min 1: OK
 
40631
key boolean, value boolean, n_min 1: OK
 
40632
key boolean, value string, n_min 1: OK
 
40633
key boolean, value uuid, n_min 1: OK
 
40634
key string, value void, n_min 1: OK
 
40635
key string, value integer, n_min 1: OK
 
40636
key string, value real, n_min 1: OK
 
40637
key string, value boolean, n_min 1: OK
 
40638
key string, value string, n_min 1: OK
 
40639
key string, value uuid, n_min 1: OK
 
40640
key uuid, value void, n_min 1: OK
 
40641
key uuid, value integer, n_min 1: OK
 
40642
key uuid, value real, n_min 1: OK
 
40643
key uuid, value boolean, n_min 1: OK
 
40644
key uuid, value string, n_min 1: OK
 
40645
key uuid, value uuid, n_min 1: OK
 
40646
" | \
 
40647
  $at_diff - "$at_stdout" || at_failed=:
 
40648
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:11"
 
40649
$at_failed && at_fn_log_failure
 
40650
$at_traceon; }
 
40651
 
 
40652
     set +x
 
40653
  $at_times_p && times >"$at_times_file"
 
40654
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40655
read at_status <"$at_status_file"
 
40656
#AT_STOP_525
 
40657
#AT_START_526
 
40658
at_fn_group_banner 526 'ovsdb-data.at:76' \
 
40659
  "integer atom from JSON - C" "                     " 42
 
40660
at_xfail=no
 
40661
(
 
40662
  $as_echo "526. $at_setup_line: testing $at_desc ..."
 
40663
  $at_traceon
 
40664
 
 
40665
 
 
40666
   { set +x
 
40667
$as_echo "$at_srcdir/ovsdb-data.at:76: test-ovsdb parse-atoms '[\"integer\"]' \\
 
40668
    '[0]' \\
 
40669
    '[-1]' \\
 
40670
    '[1e3]' \\
 
40671
    '[9223372036854775807]' \\
 
40672
    '[-9223372036854775808]' "
 
40673
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:76"
 
40674
( $at_check_trace; test-ovsdb parse-atoms '["integer"]' \
 
40675
    '[0]' \
 
40676
    '[-1]' \
 
40677
    '[1e3]' \
 
40678
    '[9223372036854775807]' \
 
40679
    '[-9223372036854775808]'
 
40680
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40681
at_status=$? at_failed=false
 
40682
$at_check_filter
 
40683
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40684
echo >>"$at_stdout"; $as_echo "0
 
40685
-1
 
40686
1000
 
40687
9223372036854775807
 
40688
-9223372036854775808
 
40689
" | \
 
40690
  $at_diff - "$at_stdout" || at_failed=:
 
40691
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:76"
 
40692
$at_failed && at_fn_log_failure
 
40693
$at_traceon; }
 
40694
 
 
40695
     set +x
 
40696
  $at_times_p && times >"$at_times_file"
 
40697
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40698
read at_status <"$at_status_file"
 
40699
#AT_STOP_526
 
40700
#AT_START_527
 
40701
at_fn_group_banner 527 'ovsdb-data.at:76' \
 
40702
  "integer atom from JSON - Python" "                " 42
 
40703
at_xfail=no
 
40704
(
 
40705
  $as_echo "527. $at_setup_line: testing $at_desc ..."
 
40706
  $at_traceon
 
40707
 
 
40708
   $as_echo "ovsdb-data.at:76" >"$at_check_line_file"
 
40709
(test $HAVE_PYTHON = no) \
 
40710
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:76"
 
40711
 
 
40712
 
 
40713
   { set +x
 
40714
$as_echo "$at_srcdir/ovsdb-data.at:76: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"integer\"]' \\
 
40715
    '[0]' \\
 
40716
    '[-1]' \\
 
40717
    '[1e3]' \\
 
40718
    '[9223372036854775807]' \\
 
40719
    '[-9223372036854775808]' "
 
40720
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:76"
 
40721
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["integer"]' \
 
40722
    '[0]' \
 
40723
    '[-1]' \
 
40724
    '[1e3]' \
 
40725
    '[9223372036854775807]' \
 
40726
    '[-9223372036854775808]'
 
40727
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40728
at_status=$? at_failed=false
 
40729
$at_check_filter
 
40730
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40731
echo >>"$at_stdout"; $as_echo "0
 
40732
-1
 
40733
1000
 
40734
9223372036854775807
 
40735
-9223372036854775808
 
40736
" | \
 
40737
  $at_diff - "$at_stdout" || at_failed=:
 
40738
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:76"
 
40739
$at_failed && at_fn_log_failure
 
40740
$at_traceon; }
 
40741
 
 
40742
     set +x
 
40743
  $at_times_p && times >"$at_times_file"
 
40744
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40745
read at_status <"$at_status_file"
 
40746
#AT_STOP_527
 
40747
#AT_START_528
 
40748
at_fn_group_banner 528 'ovsdb-data.at:89' \
 
40749
  "integer atom from string" "                       " 42
 
40750
at_xfail=no
 
40751
(
 
40752
  $as_echo "528. $at_setup_line: testing $at_desc ..."
 
40753
  $at_traceon
 
40754
 
 
40755
 
 
40756
   { set +x
 
40757
$as_echo "$at_srcdir/ovsdb-data.at:89: test-ovsdb parse-atom-strings -- '[\"integer\"]' \\
 
40758
    '0' \\
 
40759
    '-1' \\
 
40760
    '+1000' \\
 
40761
    '9223372036854775807' \\
 
40762
    '-9223372036854775808' "
 
40763
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:89"
 
40764
( $at_check_trace; test-ovsdb parse-atom-strings -- '["integer"]' \
 
40765
    '0' \
 
40766
    '-1' \
 
40767
    '+1000' \
 
40768
    '9223372036854775807' \
 
40769
    '-9223372036854775808'
 
40770
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40771
at_status=$? at_failed=false
 
40772
$at_check_filter
 
40773
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40774
echo >>"$at_stdout"; $as_echo "0
 
40775
-1
 
40776
1000
 
40777
9223372036854775807
 
40778
-9223372036854775808
 
40779
" | \
 
40780
  $at_diff - "$at_stdout" || at_failed=:
 
40781
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:89"
 
40782
$at_failed && at_fn_log_failure
 
40783
$at_traceon; }
 
40784
 
 
40785
     set +x
 
40786
  $at_times_p && times >"$at_times_file"
 
40787
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40788
read at_status <"$at_status_file"
 
40789
#AT_STOP_528
 
40790
#AT_START_529
 
40791
at_fn_group_banner 529 'ovsdb-data.at:102' \
 
40792
  "real atom from JSON - C" "                        " 42
 
40793
at_xfail=no
 
40794
(
 
40795
  $as_echo "529. $at_setup_line: testing $at_desc ..."
 
40796
  $at_traceon
 
40797
 
 
40798
 
 
40799
   { set +x
 
40800
$as_echo "$at_srcdir/ovsdb-data.at:102: test-ovsdb parse-atoms '[\"real\"]' \\
 
40801
    '[0]' \\
 
40802
    '[0.0]' \\
 
40803
    '[-0.0]' \\
 
40804
    '[-1.25]' \\
 
40805
    '[1e3]' \\
 
40806
    '[1e37]' \\
 
40807
    '[0.00390625]' "
 
40808
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:102"
 
40809
( $at_check_trace; test-ovsdb parse-atoms '["real"]' \
 
40810
    '[0]' \
 
40811
    '[0.0]' \
 
40812
    '[-0.0]' \
 
40813
    '[-1.25]' \
 
40814
    '[1e3]' \
 
40815
    '[1e37]' \
 
40816
    '[0.00390625]'
 
40817
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40818
at_status=$? at_failed=false
 
40819
$at_check_filter
 
40820
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40821
echo >>"$at_stdout"; $as_echo "0
 
40822
0
 
40823
0
 
40824
-1.25
 
40825
1000
 
40826
1e+37
 
40827
0.00390625
 
40828
" | \
 
40829
  $at_diff - "$at_stdout" || at_failed=:
 
40830
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:102"
 
40831
$at_failed && at_fn_log_failure
 
40832
$at_traceon; }
 
40833
 
 
40834
     set +x
 
40835
  $at_times_p && times >"$at_times_file"
 
40836
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40837
read at_status <"$at_status_file"
 
40838
#AT_STOP_529
 
40839
#AT_START_530
 
40840
at_fn_group_banner 530 'ovsdb-data.at:102' \
 
40841
  "real atom from JSON - Python" "                   " 42
 
40842
at_xfail=no
 
40843
(
 
40844
  $as_echo "530. $at_setup_line: testing $at_desc ..."
 
40845
  $at_traceon
 
40846
 
 
40847
   $as_echo "ovsdb-data.at:102" >"$at_check_line_file"
 
40848
(test $HAVE_PYTHON = no) \
 
40849
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:102"
 
40850
 
 
40851
 
 
40852
   { set +x
 
40853
$as_echo "$at_srcdir/ovsdb-data.at:102: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"real\"]' \\
 
40854
    '[0]' \\
 
40855
    '[0.0]' \\
 
40856
    '[-0.0]' \\
 
40857
    '[-1.25]' \\
 
40858
    '[1e3]' \\
 
40859
    '[1e37]' \\
 
40860
    '[0.00390625]' "
 
40861
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:102"
 
40862
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["real"]' \
 
40863
    '[0]' \
 
40864
    '[0.0]' \
 
40865
    '[-0.0]' \
 
40866
    '[-1.25]' \
 
40867
    '[1e3]' \
 
40868
    '[1e37]' \
 
40869
    '[0.00390625]'
 
40870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40871
at_status=$? at_failed=false
 
40872
$at_check_filter
 
40873
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40874
echo >>"$at_stdout"; $as_echo "0
 
40875
0
 
40876
0
 
40877
-1.25
 
40878
1000
 
40879
1e+37
 
40880
0.00390625
 
40881
" | \
 
40882
  $at_diff - "$at_stdout" || at_failed=:
 
40883
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:102"
 
40884
$at_failed && at_fn_log_failure
 
40885
$at_traceon; }
 
40886
 
 
40887
     set +x
 
40888
  $at_times_p && times >"$at_times_file"
 
40889
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40890
read at_status <"$at_status_file"
 
40891
#AT_STOP_530
 
40892
#AT_START_531
 
40893
at_fn_group_banner 531 'ovsdb-data.at:119' \
 
40894
  "real atom from string" "                          " 42
 
40895
at_xfail=no
 
40896
(
 
40897
  $as_echo "531. $at_setup_line: testing $at_desc ..."
 
40898
  $at_traceon
 
40899
 
 
40900
 
 
40901
   { set +x
 
40902
$as_echo "$at_srcdir/ovsdb-data.at:119: test-ovsdb parse-atom-strings -- '[\"real\"]' \\
 
40903
    '0' \\
 
40904
    '0.0' \\
 
40905
    '-0.0' \\
 
40906
    '-1.25' \\
 
40907
    '1e3' \\
 
40908
    '1e37' \\
 
40909
    '0.00390625' "
 
40910
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:119"
 
40911
( $at_check_trace; test-ovsdb parse-atom-strings -- '["real"]' \
 
40912
    '0' \
 
40913
    '0.0' \
 
40914
    '-0.0' \
 
40915
    '-1.25' \
 
40916
    '1e3' \
 
40917
    '1e37' \
 
40918
    '0.00390625'
 
40919
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40920
at_status=$? at_failed=false
 
40921
$at_check_filter
 
40922
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40923
echo >>"$at_stdout"; $as_echo "0
 
40924
0
 
40925
0
 
40926
-1.25
 
40927
1000
 
40928
1e+37
 
40929
0.00390625
 
40930
" | \
 
40931
  $at_diff - "$at_stdout" || at_failed=:
 
40932
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:119"
 
40933
$at_failed && at_fn_log_failure
 
40934
$at_traceon; }
 
40935
 
 
40936
     set +x
 
40937
  $at_times_p && times >"$at_times_file"
 
40938
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40939
read at_status <"$at_status_file"
 
40940
#AT_STOP_531
 
40941
#AT_START_532
 
40942
at_fn_group_banner 532 'ovsdb-data.at:136' \
 
40943
  "boolean atom from JSON - C" "                     " 42
 
40944
at_xfail=no
 
40945
(
 
40946
  $as_echo "532. $at_setup_line: testing $at_desc ..."
 
40947
  $at_traceon
 
40948
 
 
40949
 
 
40950
   { set +x
 
40951
$as_echo "$at_srcdir/ovsdb-data.at:136: test-ovsdb parse-atoms '[\"boolean\"]' '[true]' '[false]' "
 
40952
at_fn_check_prepare_trace "ovsdb-data.at:136"
 
40953
( $at_check_trace; test-ovsdb parse-atoms '["boolean"]' '[true]' '[false]'
 
40954
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40955
at_status=$? at_failed=false
 
40956
$at_check_filter
 
40957
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40958
echo >>"$at_stdout"; $as_echo "true
 
40959
false
 
40960
" | \
 
40961
  $at_diff - "$at_stdout" || at_failed=:
 
40962
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:136"
 
40963
$at_failed && at_fn_log_failure
 
40964
$at_traceon; }
 
40965
 
 
40966
     set +x
 
40967
  $at_times_p && times >"$at_times_file"
 
40968
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
40969
read at_status <"$at_status_file"
 
40970
#AT_STOP_532
 
40971
#AT_START_533
 
40972
at_fn_group_banner 533 'ovsdb-data.at:136' \
 
40973
  "boolean atom from JSON - Python" "                " 42
 
40974
at_xfail=no
 
40975
(
 
40976
  $as_echo "533. $at_setup_line: testing $at_desc ..."
 
40977
  $at_traceon
 
40978
 
 
40979
   $as_echo "ovsdb-data.at:136" >"$at_check_line_file"
 
40980
(test $HAVE_PYTHON = no) \
 
40981
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:136"
 
40982
 
 
40983
 
 
40984
   { set +x
 
40985
$as_echo "$at_srcdir/ovsdb-data.at:136: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"boolean\"]' '[true]' '[false]' "
 
40986
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atoms '[\"boolean\"]' '[true]' '[false]' " "ovsdb-data.at:136"
 
40987
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["boolean"]' '[true]' '[false]'
 
40988
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
40989
at_status=$? at_failed=false
 
40990
$at_check_filter
 
40991
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
40992
echo >>"$at_stdout"; $as_echo "true
 
40993
false
 
40994
" | \
 
40995
  $at_diff - "$at_stdout" || at_failed=:
 
40996
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:136"
 
40997
$at_failed && at_fn_log_failure
 
40998
$at_traceon; }
 
40999
 
 
41000
     set +x
 
41001
  $at_times_p && times >"$at_times_file"
 
41002
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41003
read at_status <"$at_status_file"
 
41004
#AT_STOP_533
 
41005
#AT_START_534
 
41006
at_fn_group_banner 534 'ovsdb-data.at:141' \
 
41007
  "boolean atom from string" "                       " 42
 
41008
at_xfail=no
 
41009
(
 
41010
  $as_echo "534. $at_setup_line: testing $at_desc ..."
 
41011
  $at_traceon
 
41012
 
 
41013
 
 
41014
   { set +x
 
41015
$as_echo "$at_srcdir/ovsdb-data.at:141: test-ovsdb parse-atom-strings '[\"boolean\"]' 'true' 'false' "
 
41016
at_fn_check_prepare_trace "ovsdb-data.at:141"
 
41017
( $at_check_trace; test-ovsdb parse-atom-strings '["boolean"]' 'true' 'false'
 
41018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41019
at_status=$? at_failed=false
 
41020
$at_check_filter
 
41021
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41022
echo >>"$at_stdout"; $as_echo "true
 
41023
false
 
41024
" | \
 
41025
  $at_diff - "$at_stdout" || at_failed=:
 
41026
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:141"
 
41027
$at_failed && at_fn_log_failure
 
41028
$at_traceon; }
 
41029
 
 
41030
     set +x
 
41031
  $at_times_p && times >"$at_times_file"
 
41032
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41033
read at_status <"$at_status_file"
 
41034
#AT_STOP_534
 
41035
#AT_START_535
 
41036
at_fn_group_banner 535 'ovsdb-data.at:146' \
 
41037
  "string atom from JSON - C" "                      " 42
 
41038
at_xfail=no
 
41039
(
 
41040
  $as_echo "535. $at_setup_line: testing $at_desc ..."
 
41041
  $at_traceon
 
41042
 
 
41043
 
 
41044
   { set +x
 
41045
$as_echo "$at_srcdir/ovsdb-data.at:146: test-ovsdb parse-atoms '[\"string\"]' '[\"\"]' '[\"true\"]' '[\"\\\"\\\\\\/\\b\\f\\n\\r\\t\"]'"
 
41046
at_fn_check_prepare_trace "ovsdb-data.at:146"
 
41047
( $at_check_trace; test-ovsdb parse-atoms '["string"]' '[""]' '["true"]' '["\"\\\/\b\f\n\r\t"]'
 
41048
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41049
at_status=$? at_failed=false
 
41050
$at_check_filter
 
41051
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41052
echo >>"$at_stdout"; $as_echo "\"\"
 
41053
\"true\"
 
41054
\"\\\"\\\\/\\b\\f\\n\\r\\t\"
 
41055
" | \
 
41056
  $at_diff - "$at_stdout" || at_failed=:
 
41057
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:146"
 
41058
$at_failed && at_fn_log_failure
 
41059
$at_traceon; }
 
41060
 
 
41061
     set +x
 
41062
  $at_times_p && times >"$at_times_file"
 
41063
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41064
read at_status <"$at_status_file"
 
41065
#AT_STOP_535
 
41066
#AT_START_536
 
41067
at_fn_group_banner 536 'ovsdb-data.at:146' \
 
41068
  "string atom from JSON - Python" "                 " 42
 
41069
at_xfail=no
 
41070
(
 
41071
  $as_echo "536. $at_setup_line: testing $at_desc ..."
 
41072
  $at_traceon
 
41073
 
 
41074
   $as_echo "ovsdb-data.at:146" >"$at_check_line_file"
 
41075
(test $HAVE_PYTHON = no) \
 
41076
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:146"
 
41077
 
 
41078
 
 
41079
   { set +x
 
41080
$as_echo "$at_srcdir/ovsdb-data.at:146: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"string\"]' '[\"\"]' '[\"true\"]' '[\"\\\"\\\\\\/\\b\\f\\n\\r\\t\"]'"
 
41081
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atoms '[\"string\"]' '[\"\"]' '[\"true\"]' '[\"\\\"\\\\\\/\\b\\f\\n\\r\\t\"]'" "ovsdb-data.at:146"
 
41082
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["string"]' '[""]' '["true"]' '["\"\\\/\b\f\n\r\t"]'
 
41083
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41084
at_status=$? at_failed=false
 
41085
$at_check_filter
 
41086
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41087
echo >>"$at_stdout"; $as_echo "\"\"
 
41088
\"true\"
 
41089
\"\\\"\\\\/\\b\\f\\n\\r\\t\"
 
41090
" | \
 
41091
  $at_diff - "$at_stdout" || at_failed=:
 
41092
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:146"
 
41093
$at_failed && at_fn_log_failure
 
41094
$at_traceon; }
 
41095
 
 
41096
     set +x
 
41097
  $at_times_p && times >"$at_times_file"
 
41098
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41099
read at_status <"$at_status_file"
 
41100
#AT_STOP_536
 
41101
#AT_START_537
 
41102
at_fn_group_banner 537 'ovsdb-data.at:152' \
 
41103
  "string atom from string" "                        " 42
 
41104
at_xfail=no
 
41105
(
 
41106
  $as_echo "537. $at_setup_line: testing $at_desc ..."
 
41107
  $at_traceon
 
41108
 
 
41109
 
 
41110
   { set +x
 
41111
$as_echo "$at_srcdir/ovsdb-data.at:152: test-ovsdb parse-atom-strings '[\"string\"]' \\
 
41112
    'unquoted' \\
 
41113
    '\"quoted-string\"' \\
 
41114
    '\"needs quotes\"' \\
 
41115
    '\"\"' \\
 
41116
    '\"true\"' \\
 
41117
    '\"\\\"\\\\\\/\\b\\f\\n\\r\\t\"'"
 
41118
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:152"
 
41119
( $at_check_trace; test-ovsdb parse-atom-strings '["string"]' \
 
41120
    'unquoted' \
 
41121
    '"quoted-string"' \
 
41122
    '"needs quotes"' \
 
41123
    '""' \
 
41124
    '"true"' \
 
41125
    '"\"\\\/\b\f\n\r\t"'
 
41126
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41127
at_status=$? at_failed=false
 
41128
$at_check_filter
 
41129
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41130
echo >>"$at_stdout"; $as_echo "unquoted
 
41131
quoted-string
 
41132
\"needs quotes\"
 
41133
\"\"
 
41134
\"true\"
 
41135
\"\\\"\\\\/\\b\\f\\n\\r\\t\"
 
41136
" | \
 
41137
  $at_diff - "$at_stdout" || at_failed=:
 
41138
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:152"
 
41139
$at_failed && at_fn_log_failure
 
41140
$at_traceon; }
 
41141
 
 
41142
     set +x
 
41143
  $at_times_p && times >"$at_times_file"
 
41144
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41145
read at_status <"$at_status_file"
 
41146
#AT_STOP_537
 
41147
#AT_START_538
 
41148
at_fn_group_banner 538 'ovsdb-data.at:167' \
 
41149
  "uuid atom from JSON - C" "                        " 42
 
41150
at_xfail=no
 
41151
(
 
41152
  $as_echo "538. $at_setup_line: testing $at_desc ..."
 
41153
  $at_traceon
 
41154
 
 
41155
 
 
41156
   { set +x
 
41157
$as_echo "$at_srcdir/ovsdb-data.at:167: test-ovsdb parse-atoms '[\"uuid\"]' '[\"uuid\", \"550e8400-e29b-41d4-a716-446655440000\"]'"
 
41158
at_fn_check_prepare_trace "ovsdb-data.at:167"
 
41159
( $at_check_trace; test-ovsdb parse-atoms '["uuid"]' '["uuid", "550e8400-e29b-41d4-a716-446655440000"]'
 
41160
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41161
at_status=$? at_failed=false
 
41162
$at_check_filter
 
41163
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41164
echo >>"$at_stdout"; $as_echo "[\"uuid\",\"550e8400-e29b-41d4-a716-446655440000\"]
 
41165
" | \
 
41166
  $at_diff - "$at_stdout" || at_failed=:
 
41167
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:167"
 
41168
$at_failed && at_fn_log_failure
 
41169
$at_traceon; }
 
41170
 
 
41171
     set +x
 
41172
  $at_times_p && times >"$at_times_file"
 
41173
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41174
read at_status <"$at_status_file"
 
41175
#AT_STOP_538
 
41176
#AT_START_539
 
41177
at_fn_group_banner 539 'ovsdb-data.at:167' \
 
41178
  "uuid atom from JSON - Python" "                   " 42
 
41179
at_xfail=no
 
41180
(
 
41181
  $as_echo "539. $at_setup_line: testing $at_desc ..."
 
41182
  $at_traceon
 
41183
 
 
41184
   $as_echo "ovsdb-data.at:167" >"$at_check_line_file"
 
41185
(test $HAVE_PYTHON = no) \
 
41186
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:167"
 
41187
 
 
41188
 
 
41189
   { set +x
 
41190
$as_echo "$at_srcdir/ovsdb-data.at:167: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"uuid\"]' '[\"uuid\", \"550e8400-e29b-41d4-a716-446655440000\"]'"
 
41191
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atoms '[\"uuid\"]' '[\"uuid\", \"550e8400-e29b-41d4-a716-446655440000\"]'" "ovsdb-data.at:167"
 
41192
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["uuid"]' '["uuid", "550e8400-e29b-41d4-a716-446655440000"]'
 
41193
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41194
at_status=$? at_failed=false
 
41195
$at_check_filter
 
41196
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41197
echo >>"$at_stdout"; $as_echo "[\"uuid\",\"550e8400-e29b-41d4-a716-446655440000\"]
 
41198
" | \
 
41199
  $at_diff - "$at_stdout" || at_failed=:
 
41200
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:167"
 
41201
$at_failed && at_fn_log_failure
 
41202
$at_traceon; }
 
41203
 
 
41204
     set +x
 
41205
  $at_times_p && times >"$at_times_file"
 
41206
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41207
read at_status <"$at_status_file"
 
41208
#AT_STOP_539
 
41209
#AT_START_540
 
41210
at_fn_group_banner 540 'ovsdb-data.at:171' \
 
41211
  "uuid atom from string" "                          " 42
 
41212
at_xfail=no
 
41213
(
 
41214
  $as_echo "540. $at_setup_line: testing $at_desc ..."
 
41215
  $at_traceon
 
41216
 
 
41217
 
 
41218
   { set +x
 
41219
$as_echo "$at_srcdir/ovsdb-data.at:171: test-ovsdb parse-atom-strings '[\"uuid\"]' '550e8400-e29b-41d4-a716-446655440000'"
 
41220
at_fn_check_prepare_trace "ovsdb-data.at:171"
 
41221
( $at_check_trace; test-ovsdb parse-atom-strings '["uuid"]' '550e8400-e29b-41d4-a716-446655440000'
 
41222
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41223
at_status=$? at_failed=false
 
41224
$at_check_filter
 
41225
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41226
echo >>"$at_stdout"; $as_echo "550e8400-e29b-41d4-a716-446655440000
 
41227
" | \
 
41228
  $at_diff - "$at_stdout" || at_failed=:
 
41229
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:171"
 
41230
$at_failed && at_fn_log_failure
 
41231
$at_traceon; }
 
41232
 
 
41233
     set +x
 
41234
  $at_times_p && times >"$at_times_file"
 
41235
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41236
read at_status <"$at_status_file"
 
41237
#AT_STOP_540
 
41238
#AT_START_541
 
41239
at_fn_group_banner 541 'ovsdb-data.at:175' \
 
41240
  "integer atom sorting - C" "                       " 42
 
41241
at_xfail=no
 
41242
(
 
41243
  $as_echo "541. $at_setup_line: testing $at_desc ..."
 
41244
  $at_traceon
 
41245
 
 
41246
 
 
41247
   { set +x
 
41248
$as_echo "$at_srcdir/ovsdb-data.at:175: test-ovsdb sort-atoms '[\"integer\"]' '[55,0,-1,2,1]'"
 
41249
at_fn_check_prepare_trace "ovsdb-data.at:175"
 
41250
( $at_check_trace; test-ovsdb sort-atoms '["integer"]' '[55,0,-1,2,1]'
 
41251
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41252
at_status=$? at_failed=false
 
41253
$at_check_filter
 
41254
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41255
echo >>"$at_stdout"; $as_echo "[-1,0,1,2,55]
 
41256
" | \
 
41257
  $at_diff - "$at_stdout" || at_failed=:
 
41258
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:175"
 
41259
$at_failed && at_fn_log_failure
 
41260
$at_traceon; }
 
41261
 
 
41262
     set +x
 
41263
  $at_times_p && times >"$at_times_file"
 
41264
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41265
read at_status <"$at_status_file"
 
41266
#AT_STOP_541
 
41267
#AT_START_542
 
41268
at_fn_group_banner 542 'ovsdb-data.at:175' \
 
41269
  "integer atom sorting - Python" "                  " 42
 
41270
at_xfail=no
 
41271
(
 
41272
  $as_echo "542. $at_setup_line: testing $at_desc ..."
 
41273
  $at_traceon
 
41274
 
 
41275
   $as_echo "ovsdb-data.at:175" >"$at_check_line_file"
 
41276
(test $HAVE_PYTHON = no) \
 
41277
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:175"
 
41278
 
 
41279
 
 
41280
   { set +x
 
41281
$as_echo "$at_srcdir/ovsdb-data.at:175: \$PYTHON \$srcdir/test-ovsdb.py sort-atoms '[\"integer\"]' '[55,0,-1,2,1]'"
 
41282
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py sort-atoms '[\"integer\"]' '[55,0,-1,2,1]'" "ovsdb-data.at:175"
 
41283
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py sort-atoms '["integer"]' '[55,0,-1,2,1]'
 
41284
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41285
at_status=$? at_failed=false
 
41286
$at_check_filter
 
41287
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41288
echo >>"$at_stdout"; $as_echo "[-1,0,1,2,55]
 
41289
" | \
 
41290
  $at_diff - "$at_stdout" || at_failed=:
 
41291
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:175"
 
41292
$at_failed && at_fn_log_failure
 
41293
$at_traceon; }
 
41294
 
 
41295
     set +x
 
41296
  $at_times_p && times >"$at_times_file"
 
41297
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41298
read at_status <"$at_status_file"
 
41299
#AT_STOP_542
 
41300
#AT_START_543
 
41301
at_fn_group_banner 543 'ovsdb-data.at:179' \
 
41302
  "real atom sorting - C" "                          " 42
 
41303
at_xfail=no
 
41304
(
 
41305
  $as_echo "543. $at_setup_line: testing $at_desc ..."
 
41306
  $at_traceon
 
41307
 
 
41308
 
 
41309
   { set +x
 
41310
$as_echo "$at_srcdir/ovsdb-data.at:179: test-ovsdb sort-atoms '[\"real\"]' '[1.25,1.23,0.0,-0.0,-1e99]'"
 
41311
at_fn_check_prepare_trace "ovsdb-data.at:179"
 
41312
( $at_check_trace; test-ovsdb sort-atoms '["real"]' '[1.25,1.23,0.0,-0.0,-1e99]'
 
41313
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41314
at_status=$? at_failed=false
 
41315
$at_check_filter
 
41316
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41317
echo >>"$at_stdout"; $as_echo "[-1e+99,0,0,1.23,1.25]
 
41318
" | \
 
41319
  $at_diff - "$at_stdout" || at_failed=:
 
41320
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:179"
 
41321
$at_failed && at_fn_log_failure
 
41322
$at_traceon; }
 
41323
 
 
41324
     set +x
 
41325
  $at_times_p && times >"$at_times_file"
 
41326
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41327
read at_status <"$at_status_file"
 
41328
#AT_STOP_543
 
41329
#AT_START_544
 
41330
at_fn_group_banner 544 'ovsdb-data.at:179' \
 
41331
  "real atom sorting - Python" "                     " 42
 
41332
at_xfail=no
 
41333
(
 
41334
  $as_echo "544. $at_setup_line: testing $at_desc ..."
 
41335
  $at_traceon
 
41336
 
 
41337
   $as_echo "ovsdb-data.at:179" >"$at_check_line_file"
 
41338
(test $HAVE_PYTHON = no) \
 
41339
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:179"
 
41340
 
 
41341
 
 
41342
   { set +x
 
41343
$as_echo "$at_srcdir/ovsdb-data.at:179: \$PYTHON \$srcdir/test-ovsdb.py sort-atoms '[\"real\"]' '[1.25,1.23,0.0,-0.0,-1e99]'"
 
41344
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py sort-atoms '[\"real\"]' '[1.25,1.23,0.0,-0.0,-1e99]'" "ovsdb-data.at:179"
 
41345
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py sort-atoms '["real"]' '[1.25,1.23,0.0,-0.0,-1e99]'
 
41346
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41347
at_status=$? at_failed=false
 
41348
$at_check_filter
 
41349
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41350
echo >>"$at_stdout"; $as_echo "[-1e+99,0,0,1.23,1.25]
 
41351
" | \
 
41352
  $at_diff - "$at_stdout" || at_failed=:
 
41353
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:179"
 
41354
$at_failed && at_fn_log_failure
 
41355
$at_traceon; }
 
41356
 
 
41357
     set +x
 
41358
  $at_times_p && times >"$at_times_file"
 
41359
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41360
read at_status <"$at_status_file"
 
41361
#AT_STOP_544
 
41362
#AT_START_545
 
41363
at_fn_group_banner 545 'ovsdb-data.at:183' \
 
41364
  "boolean atom sorting - C" "                       " 42
 
41365
at_xfail=no
 
41366
(
 
41367
  $as_echo "545. $at_setup_line: testing $at_desc ..."
 
41368
  $at_traceon
 
41369
 
 
41370
 
 
41371
   { set +x
 
41372
$as_echo "$at_srcdir/ovsdb-data.at:183: test-ovsdb sort-atoms '[\"boolean\"]' '[true,false,true,false,false]'"
 
41373
at_fn_check_prepare_trace "ovsdb-data.at:183"
 
41374
( $at_check_trace; test-ovsdb sort-atoms '["boolean"]' '[true,false,true,false,false]'
 
41375
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41376
at_status=$? at_failed=false
 
41377
$at_check_filter
 
41378
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41379
echo >>"$at_stdout"; $as_echo "[false,false,false,true,true]
 
41380
" | \
 
41381
  $at_diff - "$at_stdout" || at_failed=:
 
41382
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:183"
 
41383
$at_failed && at_fn_log_failure
 
41384
$at_traceon; }
 
41385
 
 
41386
     set +x
 
41387
  $at_times_p && times >"$at_times_file"
 
41388
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41389
read at_status <"$at_status_file"
 
41390
#AT_STOP_545
 
41391
#AT_START_546
 
41392
at_fn_group_banner 546 'ovsdb-data.at:183' \
 
41393
  "boolean atom sorting - Python" "                  " 42
 
41394
at_xfail=no
 
41395
(
 
41396
  $as_echo "546. $at_setup_line: testing $at_desc ..."
 
41397
  $at_traceon
 
41398
 
 
41399
   $as_echo "ovsdb-data.at:183" >"$at_check_line_file"
 
41400
(test $HAVE_PYTHON = no) \
 
41401
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:183"
 
41402
 
 
41403
 
 
41404
   { set +x
 
41405
$as_echo "$at_srcdir/ovsdb-data.at:183: \$PYTHON \$srcdir/test-ovsdb.py sort-atoms '[\"boolean\"]' '[true,false,true,false,false]'"
 
41406
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py sort-atoms '[\"boolean\"]' '[true,false,true,false,false]'" "ovsdb-data.at:183"
 
41407
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py sort-atoms '["boolean"]' '[true,false,true,false,false]'
 
41408
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41409
at_status=$? at_failed=false
 
41410
$at_check_filter
 
41411
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41412
echo >>"$at_stdout"; $as_echo "[false,false,false,true,true]
 
41413
" | \
 
41414
  $at_diff - "$at_stdout" || at_failed=:
 
41415
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:183"
 
41416
$at_failed && at_fn_log_failure
 
41417
$at_traceon; }
 
41418
 
 
41419
     set +x
 
41420
  $at_times_p && times >"$at_times_file"
 
41421
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41422
read at_status <"$at_status_file"
 
41423
#AT_STOP_546
 
41424
#AT_START_547
 
41425
at_fn_group_banner 547 'ovsdb-data.at:187' \
 
41426
  "string atom sorting - C" "                        " 42
 
41427
at_xfail=no
 
41428
(
 
41429
  $as_echo "547. $at_setup_line: testing $at_desc ..."
 
41430
  $at_traceon
 
41431
 
 
41432
 
 
41433
   { set +x
 
41434
$as_echo "$at_srcdir/ovsdb-data.at:187: test-ovsdb sort-atoms '[\"string\"]' '[\"abd\",\"abc\",\"\\b\",\"xxx\"]'"
 
41435
at_fn_check_prepare_trace "ovsdb-data.at:187"
 
41436
( $at_check_trace; test-ovsdb sort-atoms '["string"]' '["abd","abc","\b","xxx"]'
 
41437
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41438
at_status=$? at_failed=false
 
41439
$at_check_filter
 
41440
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41441
echo >>"$at_stdout"; $as_echo "[\"\\b\",\"abc\",\"abd\",\"xxx\"]
 
41442
" | \
 
41443
  $at_diff - "$at_stdout" || at_failed=:
 
41444
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:187"
 
41445
$at_failed && at_fn_log_failure
 
41446
$at_traceon; }
 
41447
 
 
41448
     set +x
 
41449
  $at_times_p && times >"$at_times_file"
 
41450
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41451
read at_status <"$at_status_file"
 
41452
#AT_STOP_547
 
41453
#AT_START_548
 
41454
at_fn_group_banner 548 'ovsdb-data.at:187' \
 
41455
  "string atom sorting - Python" "                   " 42
 
41456
at_xfail=no
 
41457
(
 
41458
  $as_echo "548. $at_setup_line: testing $at_desc ..."
 
41459
  $at_traceon
 
41460
 
 
41461
   $as_echo "ovsdb-data.at:187" >"$at_check_line_file"
 
41462
(test $HAVE_PYTHON = no) \
 
41463
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:187"
 
41464
 
 
41465
 
 
41466
   { set +x
 
41467
$as_echo "$at_srcdir/ovsdb-data.at:187: \$PYTHON \$srcdir/test-ovsdb.py sort-atoms '[\"string\"]' '[\"abd\",\"abc\",\"\\b\",\"xxx\"]'"
 
41468
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py sort-atoms '[\"string\"]' '[\"abd\",\"abc\",\"\\b\",\"xxx\"]'" "ovsdb-data.at:187"
 
41469
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py sort-atoms '["string"]' '["abd","abc","\b","xxx"]'
 
41470
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41471
at_status=$? at_failed=false
 
41472
$at_check_filter
 
41473
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41474
echo >>"$at_stdout"; $as_echo "[\"\\b\",\"abc\",\"abd\",\"xxx\"]
 
41475
" | \
 
41476
  $at_diff - "$at_stdout" || at_failed=:
 
41477
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:187"
 
41478
$at_failed && at_fn_log_failure
 
41479
$at_traceon; }
 
41480
 
 
41481
     set +x
 
41482
  $at_times_p && times >"$at_times_file"
 
41483
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41484
read at_status <"$at_status_file"
 
41485
#AT_STOP_548
 
41486
#AT_START_549
 
41487
at_fn_group_banner 549 'ovsdb-data.at:191' \
 
41488
  "uuid atom sorting - C" "                          " 42
 
41489
at_xfail=no
 
41490
(
 
41491
  $as_echo "549. $at_setup_line: testing $at_desc ..."
 
41492
  $at_traceon
 
41493
 
 
41494
 
 
41495
   { set +x
 
41496
$as_echo "$at_srcdir/ovsdb-data.at:191: test-ovsdb sort-atoms '[\"uuid\"]' '[
 
41497
    [\"uuid\", \"00000000-0000-0000-0000-000000000001\"],
 
41498
    [\"uuid\", \"00000000-1000-0000-0000-000000000000\"],
 
41499
    [\"uuid\", \"00000000-0000-1000-0000-000000000000\"],
 
41500
    [\"uuid\", \"00010000-0000-0000-0000-000000000000\"],
 
41501
    [\"uuid\", \"00000000-0000-0000-0000-000000000100\"],
 
41502
    [\"uuid\", \"00000000-0000-0000-0000-000100000000\"],
 
41503
    [\"uuid\", \"00000000-0000-0010-0000-000000000000\"],
 
41504
    [\"uuid\", \"00000100-0000-0000-0000-000000000000\"],
 
41505
    [\"uuid\", \"00000000-0000-0001-0000-000000000000\"],
 
41506
    [\"uuid\", \"00000000-0000-0000-0000-000001000000\"],
 
41507
    [\"uuid\", \"01000000-0000-0000-0000-000000000000\"],
 
41508
    [\"uuid\", \"00000000-0000-0000-0000-000000001000\"],
 
41509
    [\"uuid\", \"00000000-0000-0000-0000-000010000000\"],
 
41510
    [\"uuid\", \"00000000-0000-0000-0000-010000000000\"],
 
41511
    [\"uuid\", \"00000000-0000-0100-0000-000000000000\"],
 
41512
    [\"uuid\", \"10000000-0000-0000-0000-000000000000\"],
 
41513
    [\"uuid\", \"00000000-0000-0000-0000-000000000010\"],
 
41514
    [\"uuid\", \"00000000-0100-0000-0000-000000000000\"],
 
41515
    [\"uuid\", \"00000000-0000-0000-0100-000000000000\"],
 
41516
    [\"uuid\", \"00000000-0000-0000-0001-000000000000\"],
 
41517
    [\"uuid\", \"00000010-0000-0000-0000-000000000000\"],
 
41518
    [\"uuid\", \"00000000-0000-0000-0010-000000000000\"],
 
41519
    [\"uuid\", \"00000000-0000-0000-0000-000000010000\"],
 
41520
    [\"uuid\", \"00000000-0000-0000-1000-000000000000\"],
 
41521
    [\"uuid\", \"00000000-0000-0000-0000-100000000000\"],
 
41522
    [\"uuid\", \"00000000-0000-0000-0000-001000000000\"],
 
41523
    [\"uuid\", \"00000000-0000-0000-0000-000000100000\"],
 
41524
    [\"uuid\", \"00000000-0000-0000-0000-000000000000\"],
 
41525
    [\"uuid\", \"00000000-0010-0000-0000-000000000000\"],
 
41526
    [\"uuid\", \"00100000-0000-0000-0000-000000000000\"],
 
41527
    [\"uuid\", \"00000000-0001-0000-0000-000000000000\"],
 
41528
    [\"uuid\", \"00000001-0000-0000-0000-000000000000\"],
 
41529
    [\"uuid\", \"00001000-0000-0000-0000-000000000000\"]]'"
 
41530
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:191"
 
41531
( $at_check_trace; test-ovsdb sort-atoms '["uuid"]' '[
 
41532
    ["uuid", "00000000-0000-0000-0000-000000000001"],
 
41533
    ["uuid", "00000000-1000-0000-0000-000000000000"],
 
41534
    ["uuid", "00000000-0000-1000-0000-000000000000"],
 
41535
    ["uuid", "00010000-0000-0000-0000-000000000000"],
 
41536
    ["uuid", "00000000-0000-0000-0000-000000000100"],
 
41537
    ["uuid", "00000000-0000-0000-0000-000100000000"],
 
41538
    ["uuid", "00000000-0000-0010-0000-000000000000"],
 
41539
    ["uuid", "00000100-0000-0000-0000-000000000000"],
 
41540
    ["uuid", "00000000-0000-0001-0000-000000000000"],
 
41541
    ["uuid", "00000000-0000-0000-0000-000001000000"],
 
41542
    ["uuid", "01000000-0000-0000-0000-000000000000"],
 
41543
    ["uuid", "00000000-0000-0000-0000-000000001000"],
 
41544
    ["uuid", "00000000-0000-0000-0000-000010000000"],
 
41545
    ["uuid", "00000000-0000-0000-0000-010000000000"],
 
41546
    ["uuid", "00000000-0000-0100-0000-000000000000"],
 
41547
    ["uuid", "10000000-0000-0000-0000-000000000000"],
 
41548
    ["uuid", "00000000-0000-0000-0000-000000000010"],
 
41549
    ["uuid", "00000000-0100-0000-0000-000000000000"],
 
41550
    ["uuid", "00000000-0000-0000-0100-000000000000"],
 
41551
    ["uuid", "00000000-0000-0000-0001-000000000000"],
 
41552
    ["uuid", "00000010-0000-0000-0000-000000000000"],
 
41553
    ["uuid", "00000000-0000-0000-0010-000000000000"],
 
41554
    ["uuid", "00000000-0000-0000-0000-000000010000"],
 
41555
    ["uuid", "00000000-0000-0000-1000-000000000000"],
 
41556
    ["uuid", "00000000-0000-0000-0000-100000000000"],
 
41557
    ["uuid", "00000000-0000-0000-0000-001000000000"],
 
41558
    ["uuid", "00000000-0000-0000-0000-000000100000"],
 
41559
    ["uuid", "00000000-0000-0000-0000-000000000000"],
 
41560
    ["uuid", "00000000-0010-0000-0000-000000000000"],
 
41561
    ["uuid", "00100000-0000-0000-0000-000000000000"],
 
41562
    ["uuid", "00000000-0001-0000-0000-000000000000"],
 
41563
    ["uuid", "00000001-0000-0000-0000-000000000000"],
 
41564
    ["uuid", "00001000-0000-0000-0000-000000000000"]]'
 
41565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41566
at_status=$? at_failed=false
 
41567
$at_check_filter
 
41568
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41569
echo >>"$at_stdout"; $as_echo "[[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],[\"uuid\",\"00000000-0000-0000-0000-000000000001\"],[\"uuid\",\"00000000-0000-0000-0000-000000000010\"],[\"uuid\",\"00000000-0000-0000-0000-000000000100\"],[\"uuid\",\"00000000-0000-0000-0000-000000001000\"],[\"uuid\",\"00000000-0000-0000-0000-000000010000\"],[\"uuid\",\"00000000-0000-0000-0000-000000100000\"],[\"uuid\",\"00000000-0000-0000-0000-000001000000\"],[\"uuid\",\"00000000-0000-0000-0000-000010000000\"],[\"uuid\",\"00000000-0000-0000-0000-000100000000\"],[\"uuid\",\"00000000-0000-0000-0000-001000000000\"],[\"uuid\",\"00000000-0000-0000-0000-010000000000\"],[\"uuid\",\"00000000-0000-0000-0000-100000000000\"],[\"uuid\",\"00000000-0000-0000-0001-000000000000\"],[\"uuid\",\"00000000-0000-0000-0010-000000000000\"],[\"uuid\",\"00000000-0000-0000-0100-000000000000\"],[\"uuid\",\"00000000-0000-0000-1000-000000000000\"],[\"uuid\",\"00000000-0000-0001-0000-000000000000\"],[\"uuid\",\"00000000-0000-0010-0000-000000000000\"],[\"uuid\",\"00000000-0000-0100-0000-000000000000\"],[\"uuid\",\"00000000-0000-1000-0000-000000000000\"],[\"uuid\",\"00000000-0001-0000-0000-000000000000\"],[\"uuid\",\"00000000-0010-0000-0000-000000000000\"],[\"uuid\",\"00000000-0100-0000-0000-000000000000\"],[\"uuid\",\"00000000-1000-0000-0000-000000000000\"],[\"uuid\",\"00000001-0000-0000-0000-000000000000\"],[\"uuid\",\"00000010-0000-0000-0000-000000000000\"],[\"uuid\",\"00000100-0000-0000-0000-000000000000\"],[\"uuid\",\"00001000-0000-0000-0000-000000000000\"],[\"uuid\",\"00010000-0000-0000-0000-000000000000\"],[\"uuid\",\"00100000-0000-0000-0000-000000000000\"],[\"uuid\",\"01000000-0000-0000-0000-000000000000\"],[\"uuid\",\"10000000-0000-0000-0000-000000000000\"]]
 
41570
" | \
 
41571
  $at_diff - "$at_stdout" || at_failed=:
 
41572
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:191"
 
41573
$at_failed && at_fn_log_failure
 
41574
$at_traceon; }
 
41575
 
 
41576
     set +x
 
41577
  $at_times_p && times >"$at_times_file"
 
41578
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41579
read at_status <"$at_status_file"
 
41580
#AT_STOP_549
 
41581
#AT_START_550
 
41582
at_fn_group_banner 550 'ovsdb-data.at:191' \
 
41583
  "uuid atom sorting - Python" "                     " 42
 
41584
at_xfail=no
 
41585
(
 
41586
  $as_echo "550. $at_setup_line: testing $at_desc ..."
 
41587
  $at_traceon
 
41588
 
 
41589
   $as_echo "ovsdb-data.at:191" >"$at_check_line_file"
 
41590
(test $HAVE_PYTHON = no) \
 
41591
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:191"
 
41592
 
 
41593
 
 
41594
   { set +x
 
41595
$as_echo "$at_srcdir/ovsdb-data.at:191: \$PYTHON \$srcdir/test-ovsdb.py sort-atoms '[\"uuid\"]' '[
 
41596
    [\"uuid\", \"00000000-0000-0000-0000-000000000001\"],
 
41597
    [\"uuid\", \"00000000-1000-0000-0000-000000000000\"],
 
41598
    [\"uuid\", \"00000000-0000-1000-0000-000000000000\"],
 
41599
    [\"uuid\", \"00010000-0000-0000-0000-000000000000\"],
 
41600
    [\"uuid\", \"00000000-0000-0000-0000-000000000100\"],
 
41601
    [\"uuid\", \"00000000-0000-0000-0000-000100000000\"],
 
41602
    [\"uuid\", \"00000000-0000-0010-0000-000000000000\"],
 
41603
    [\"uuid\", \"00000100-0000-0000-0000-000000000000\"],
 
41604
    [\"uuid\", \"00000000-0000-0001-0000-000000000000\"],
 
41605
    [\"uuid\", \"00000000-0000-0000-0000-000001000000\"],
 
41606
    [\"uuid\", \"01000000-0000-0000-0000-000000000000\"],
 
41607
    [\"uuid\", \"00000000-0000-0000-0000-000000001000\"],
 
41608
    [\"uuid\", \"00000000-0000-0000-0000-000010000000\"],
 
41609
    [\"uuid\", \"00000000-0000-0000-0000-010000000000\"],
 
41610
    [\"uuid\", \"00000000-0000-0100-0000-000000000000\"],
 
41611
    [\"uuid\", \"10000000-0000-0000-0000-000000000000\"],
 
41612
    [\"uuid\", \"00000000-0000-0000-0000-000000000010\"],
 
41613
    [\"uuid\", \"00000000-0100-0000-0000-000000000000\"],
 
41614
    [\"uuid\", \"00000000-0000-0000-0100-000000000000\"],
 
41615
    [\"uuid\", \"00000000-0000-0000-0001-000000000000\"],
 
41616
    [\"uuid\", \"00000010-0000-0000-0000-000000000000\"],
 
41617
    [\"uuid\", \"00000000-0000-0000-0010-000000000000\"],
 
41618
    [\"uuid\", \"00000000-0000-0000-0000-000000010000\"],
 
41619
    [\"uuid\", \"00000000-0000-0000-1000-000000000000\"],
 
41620
    [\"uuid\", \"00000000-0000-0000-0000-100000000000\"],
 
41621
    [\"uuid\", \"00000000-0000-0000-0000-001000000000\"],
 
41622
    [\"uuid\", \"00000000-0000-0000-0000-000000100000\"],
 
41623
    [\"uuid\", \"00000000-0000-0000-0000-000000000000\"],
 
41624
    [\"uuid\", \"00000000-0010-0000-0000-000000000000\"],
 
41625
    [\"uuid\", \"00100000-0000-0000-0000-000000000000\"],
 
41626
    [\"uuid\", \"00000000-0001-0000-0000-000000000000\"],
 
41627
    [\"uuid\", \"00000001-0000-0000-0000-000000000000\"],
 
41628
    [\"uuid\", \"00001000-0000-0000-0000-000000000000\"]]'"
 
41629
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:191"
 
41630
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py sort-atoms '["uuid"]' '[
 
41631
    ["uuid", "00000000-0000-0000-0000-000000000001"],
 
41632
    ["uuid", "00000000-1000-0000-0000-000000000000"],
 
41633
    ["uuid", "00000000-0000-1000-0000-000000000000"],
 
41634
    ["uuid", "00010000-0000-0000-0000-000000000000"],
 
41635
    ["uuid", "00000000-0000-0000-0000-000000000100"],
 
41636
    ["uuid", "00000000-0000-0000-0000-000100000000"],
 
41637
    ["uuid", "00000000-0000-0010-0000-000000000000"],
 
41638
    ["uuid", "00000100-0000-0000-0000-000000000000"],
 
41639
    ["uuid", "00000000-0000-0001-0000-000000000000"],
 
41640
    ["uuid", "00000000-0000-0000-0000-000001000000"],
 
41641
    ["uuid", "01000000-0000-0000-0000-000000000000"],
 
41642
    ["uuid", "00000000-0000-0000-0000-000000001000"],
 
41643
    ["uuid", "00000000-0000-0000-0000-000010000000"],
 
41644
    ["uuid", "00000000-0000-0000-0000-010000000000"],
 
41645
    ["uuid", "00000000-0000-0100-0000-000000000000"],
 
41646
    ["uuid", "10000000-0000-0000-0000-000000000000"],
 
41647
    ["uuid", "00000000-0000-0000-0000-000000000010"],
 
41648
    ["uuid", "00000000-0100-0000-0000-000000000000"],
 
41649
    ["uuid", "00000000-0000-0000-0100-000000000000"],
 
41650
    ["uuid", "00000000-0000-0000-0001-000000000000"],
 
41651
    ["uuid", "00000010-0000-0000-0000-000000000000"],
 
41652
    ["uuid", "00000000-0000-0000-0010-000000000000"],
 
41653
    ["uuid", "00000000-0000-0000-0000-000000010000"],
 
41654
    ["uuid", "00000000-0000-0000-1000-000000000000"],
 
41655
    ["uuid", "00000000-0000-0000-0000-100000000000"],
 
41656
    ["uuid", "00000000-0000-0000-0000-001000000000"],
 
41657
    ["uuid", "00000000-0000-0000-0000-000000100000"],
 
41658
    ["uuid", "00000000-0000-0000-0000-000000000000"],
 
41659
    ["uuid", "00000000-0010-0000-0000-000000000000"],
 
41660
    ["uuid", "00100000-0000-0000-0000-000000000000"],
 
41661
    ["uuid", "00000000-0001-0000-0000-000000000000"],
 
41662
    ["uuid", "00000001-0000-0000-0000-000000000000"],
 
41663
    ["uuid", "00001000-0000-0000-0000-000000000000"]]'
 
41664
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41665
at_status=$? at_failed=false
 
41666
$at_check_filter
 
41667
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41668
echo >>"$at_stdout"; $as_echo "[[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],[\"uuid\",\"00000000-0000-0000-0000-000000000001\"],[\"uuid\",\"00000000-0000-0000-0000-000000000010\"],[\"uuid\",\"00000000-0000-0000-0000-000000000100\"],[\"uuid\",\"00000000-0000-0000-0000-000000001000\"],[\"uuid\",\"00000000-0000-0000-0000-000000010000\"],[\"uuid\",\"00000000-0000-0000-0000-000000100000\"],[\"uuid\",\"00000000-0000-0000-0000-000001000000\"],[\"uuid\",\"00000000-0000-0000-0000-000010000000\"],[\"uuid\",\"00000000-0000-0000-0000-000100000000\"],[\"uuid\",\"00000000-0000-0000-0000-001000000000\"],[\"uuid\",\"00000000-0000-0000-0000-010000000000\"],[\"uuid\",\"00000000-0000-0000-0000-100000000000\"],[\"uuid\",\"00000000-0000-0000-0001-000000000000\"],[\"uuid\",\"00000000-0000-0000-0010-000000000000\"],[\"uuid\",\"00000000-0000-0000-0100-000000000000\"],[\"uuid\",\"00000000-0000-0000-1000-000000000000\"],[\"uuid\",\"00000000-0000-0001-0000-000000000000\"],[\"uuid\",\"00000000-0000-0010-0000-000000000000\"],[\"uuid\",\"00000000-0000-0100-0000-000000000000\"],[\"uuid\",\"00000000-0000-1000-0000-000000000000\"],[\"uuid\",\"00000000-0001-0000-0000-000000000000\"],[\"uuid\",\"00000000-0010-0000-0000-000000000000\"],[\"uuid\",\"00000000-0100-0000-0000-000000000000\"],[\"uuid\",\"00000000-1000-0000-0000-000000000000\"],[\"uuid\",\"00000001-0000-0000-0000-000000000000\"],[\"uuid\",\"00000010-0000-0000-0000-000000000000\"],[\"uuid\",\"00000100-0000-0000-0000-000000000000\"],[\"uuid\",\"00001000-0000-0000-0000-000000000000\"],[\"uuid\",\"00010000-0000-0000-0000-000000000000\"],[\"uuid\",\"00100000-0000-0000-0000-000000000000\"],[\"uuid\",\"01000000-0000-0000-0000-000000000000\"],[\"uuid\",\"10000000-0000-0000-0000-000000000000\"]]
 
41669
" | \
 
41670
  $at_diff - "$at_stdout" || at_failed=:
 
41671
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:191"
 
41672
$at_failed && at_fn_log_failure
 
41673
$at_traceon; }
 
41674
 
 
41675
     set +x
 
41676
  $at_times_p && times >"$at_times_file"
 
41677
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41678
read at_status <"$at_status_file"
 
41679
#AT_STOP_550
 
41680
#AT_START_551
 
41681
at_fn_group_banner 551 'ovsdb-data.at:228' \
 
41682
  "real not acceptable integer JSON atom - C" "      " 42
 
41683
at_xfail=no
 
41684
(
 
41685
  $as_echo "551. $at_setup_line: testing $at_desc ..."
 
41686
  $at_traceon
 
41687
 
 
41688
 
 
41689
   { set +x
 
41690
$as_echo "$at_srcdir/ovsdb-data.at:228: test-ovsdb parse-atoms '[\"integer\"]' '[0.5]' "
 
41691
at_fn_check_prepare_trace "ovsdb-data.at:228"
 
41692
( $at_check_trace; test-ovsdb parse-atoms '["integer"]' '[0.5]'
 
41693
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41694
at_status=$? at_failed=false
 
41695
$at_check_filter
 
41696
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41697
echo >>"$at_stdout"; $as_echo "syntax \"0.5\": syntax error: expected integer
 
41698
" | \
 
41699
  $at_diff - "$at_stdout" || at_failed=:
 
41700
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:228"
 
41701
$at_failed && at_fn_log_failure
 
41702
$at_traceon; }
 
41703
 
 
41704
     set +x
 
41705
  $at_times_p && times >"$at_times_file"
 
41706
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41707
read at_status <"$at_status_file"
 
41708
#AT_STOP_551
 
41709
#AT_START_552
 
41710
at_fn_group_banner 552 'ovsdb-data.at:228' \
 
41711
  "real not acceptable integer JSON atom - Python" " " 42
 
41712
at_xfail=no
 
41713
(
 
41714
  $as_echo "552. $at_setup_line: testing $at_desc ..."
 
41715
  $at_traceon
 
41716
 
 
41717
   $as_echo "ovsdb-data.at:228" >"$at_check_line_file"
 
41718
(test $HAVE_PYTHON = no) \
 
41719
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:228"
 
41720
 
 
41721
 
 
41722
   { set +x
 
41723
$as_echo "$at_srcdir/ovsdb-data.at:228: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"integer\"]' '[0.5]' "
 
41724
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atoms '[\"integer\"]' '[0.5]' " "ovsdb-data.at:228"
 
41725
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["integer"]' '[0.5]'
 
41726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41727
at_status=$? at_failed=false
 
41728
$at_check_filter
 
41729
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41730
echo >>"$at_stdout"; $as_echo "syntax \"0.5\": syntax error: expected integer
 
41731
" | \
 
41732
  $at_diff - "$at_stdout" || at_failed=:
 
41733
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:228"
 
41734
$at_failed && at_fn_log_failure
 
41735
$at_traceon; }
 
41736
 
 
41737
     set +x
 
41738
  $at_times_p && times >"$at_times_file"
 
41739
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41740
read at_status <"$at_status_file"
 
41741
#AT_STOP_552
 
41742
#AT_START_553
 
41743
at_fn_group_banner 553 'ovsdb-data.at:234' \
 
41744
  "no invalid UTF-8 sequences in strings" "          " 42
 
41745
at_xfail=no
 
41746
(
 
41747
  $as_echo "553. $at_setup_line: testing $at_desc ..."
 
41748
  $at_traceon
 
41749
 
 
41750
 
 
41751
   { set +x
 
41752
$as_echo "$at_srcdir/ovsdb-data.at:234: test-ovsdb parse-atoms '[\"string\"]' \\
 
41753
     '[\"�\"]' \\
 
41754
     '[\"���\"]' \\
 
41755
"
 
41756
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:234"
 
41757
( $at_check_trace; test-ovsdb parse-atoms '["string"]' \
 
41758
     '["�"]' \
 
41759
     '["���"]' \
 
41760
 
 
41761
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41762
at_status=$? at_failed=false
 
41763
$at_check_filter
 
41764
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41765
echo >>"$at_stdout"; $as_echo "constraint violation: not a valid UTF-8 string: invalid UTF-8 sequence 0xc0
 
41766
constraint violation: not a valid UTF-8 string: invalid UTF-8 sequence 0xed 0xa0
 
41767
" | \
 
41768
  $at_diff - "$at_stdout" || at_failed=:
 
41769
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:234"
 
41770
$at_failed && at_fn_log_failure
 
41771
$at_traceon; }
 
41772
 
 
41773
     set +x
 
41774
  $at_times_p && times >"$at_times_file"
 
41775
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41776
read at_status <"$at_status_file"
 
41777
#AT_STOP_553
 
41778
#AT_START_554
 
41779
at_fn_group_banner 554 'ovsdb-data.at:249' \
 
41780
  "no invalid UTF-8 sequences in strings - Python" " " 42
 
41781
at_xfail=no
 
41782
(
 
41783
  $as_echo "554. $at_setup_line: testing $at_desc ..."
 
41784
  $at_traceon
 
41785
 
 
41786
   $as_echo "ovsdb-data.at:249" >"$at_check_line_file"
 
41787
(test $HAVE_PYTHON = no) \
 
41788
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:249"
 
41789
 
 
41790
 
 
41791
   { set +x
 
41792
$as_echo "$at_srcdir/ovsdb-data.at:249: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"string\"]' \\
 
41793
     '[\"�\"]' \\
 
41794
     '[\"�\"]' \\
 
41795
"
 
41796
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:249"
 
41797
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["string"]' \
 
41798
     '["�"]' \
 
41799
     '["�"]' \
 
41800
 
 
41801
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41802
at_status=$? at_failed=false
 
41803
$at_check_filter
 
41804
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41805
echo >>"$at_stdout"; $as_echo "\"not a valid UTF-8 string: invalid UTF-8 sequence 0xc0\"
 
41806
\"not a valid UTF-8 string: invalid UTF-8 sequence 0xed 0x80\"
 
41807
" | \
 
41808
  $at_diff - "$at_stdout" || at_failed=:
 
41809
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:249"
 
41810
$at_failed && at_fn_log_failure
 
41811
$at_traceon; }
 
41812
 
 
41813
     set +x
 
41814
  $at_times_p && times >"$at_times_file"
 
41815
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41816
read at_status <"$at_status_file"
 
41817
#AT_STOP_554
 
41818
#AT_START_555
 
41819
at_fn_group_banner 555 'ovsdb-data.at:257' \
 
41820
  "real not acceptable integer string atom" "        " 42
 
41821
at_xfail=no
 
41822
(
 
41823
  $as_echo "555. $at_setup_line: testing $at_desc ..."
 
41824
  $at_traceon
 
41825
 
 
41826
 
 
41827
   { set +x
 
41828
$as_echo "$at_srcdir/ovsdb-data.at:257: test-ovsdb parse-atom-strings '[\"integer\"]' '0.5' "
 
41829
at_fn_check_prepare_trace "ovsdb-data.at:257"
 
41830
( $at_check_trace; test-ovsdb parse-atom-strings '["integer"]' '0.5'
 
41831
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41832
at_status=$? at_failed=false
 
41833
$at_check_filter
 
41834
echo stderr:; tee stderr <"$at_stderr"
 
41835
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
41836
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:257"
 
41837
$at_failed && at_fn_log_failure
 
41838
$at_traceon; }
 
41839
 
 
41840
 
 
41841
   { set +x
 
41842
$as_echo "$at_srcdir/ovsdb-data.at:257: if grep -F -e \"\\\"0.5\\\" is not a valid integer\" stderr
 
41843
      then
 
41844
        :
 
41845
      else
 
41846
        exit 99
 
41847
      fi"
 
41848
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:257"
 
41849
( $at_check_trace; if grep -F -e "\"0.5\" is not a valid integer" stderr
 
41850
      then
 
41851
        :
 
41852
      else
 
41853
        exit 99
 
41854
      fi
 
41855
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41856
at_status=$? at_failed=false
 
41857
$at_check_filter
 
41858
echo stderr:; cat "$at_stderr"
 
41859
echo stdout:; cat "$at_stdout"
 
41860
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:257"
 
41861
$at_failed && at_fn_log_failure
 
41862
$at_traceon; }
 
41863
 
 
41864
     set +x
 
41865
  $at_times_p && times >"$at_times_file"
 
41866
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41867
read at_status <"$at_status_file"
 
41868
#AT_STOP_555
 
41869
#AT_START_556
 
41870
at_fn_group_banner 556 'ovsdb-data.at:261' \
 
41871
  "string \"true\" not acceptable boolean JSON atom - C" "" 42
 
41872
at_xfail=no
 
41873
(
 
41874
  $as_echo "556. $at_setup_line: testing $at_desc ..."
 
41875
  $at_traceon
 
41876
 
 
41877
 
 
41878
   { set +x
 
41879
$as_echo "$at_srcdir/ovsdb-data.at:261: test-ovsdb parse-atoms '[\"boolean\"]' '[\"true\"]' "
 
41880
at_fn_check_prepare_trace "ovsdb-data.at:261"
 
41881
( $at_check_trace; test-ovsdb parse-atoms '["boolean"]' '["true"]'
 
41882
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41883
at_status=$? at_failed=false
 
41884
$at_check_filter
 
41885
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41886
echo >>"$at_stdout"; $as_echo "syntax \"\"true\"\": syntax error: expected boolean
 
41887
" | \
 
41888
  $at_diff - "$at_stdout" || at_failed=:
 
41889
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:261"
 
41890
$at_failed && at_fn_log_failure
 
41891
$at_traceon; }
 
41892
 
 
41893
     set +x
 
41894
  $at_times_p && times >"$at_times_file"
 
41895
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41896
read at_status <"$at_status_file"
 
41897
#AT_STOP_556
 
41898
#AT_START_557
 
41899
at_fn_group_banner 557 'ovsdb-data.at:261' \
 
41900
  "string \"true\" not acceptable boolean JSON atom - Python" "" 42
 
41901
at_xfail=no
 
41902
(
 
41903
  $as_echo "557. $at_setup_line: testing $at_desc ..."
 
41904
  $at_traceon
 
41905
 
 
41906
   $as_echo "ovsdb-data.at:261" >"$at_check_line_file"
 
41907
(test $HAVE_PYTHON = no) \
 
41908
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:261"
 
41909
 
 
41910
 
 
41911
   { set +x
 
41912
$as_echo "$at_srcdir/ovsdb-data.at:261: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"boolean\"]' '[\"true\"]' "
 
41913
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atoms '[\"boolean\"]' '[\"true\"]' " "ovsdb-data.at:261"
 
41914
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["boolean"]' '["true"]'
 
41915
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41916
at_status=$? at_failed=false
 
41917
$at_check_filter
 
41918
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41919
echo >>"$at_stdout"; $as_echo "syntax \"\"true\"\": syntax error: expected boolean
 
41920
" | \
 
41921
  $at_diff - "$at_stdout" || at_failed=:
 
41922
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:261"
 
41923
$at_failed && at_fn_log_failure
 
41924
$at_traceon; }
 
41925
 
 
41926
     set +x
 
41927
  $at_times_p && times >"$at_times_file"
 
41928
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41929
read at_status <"$at_status_file"
 
41930
#AT_STOP_557
 
41931
#AT_START_558
 
41932
at_fn_group_banner 558 'ovsdb-data.at:265' \
 
41933
  "string \"true\" not acceptable boolean string atom" "" 42
 
41934
at_xfail=no
 
41935
(
 
41936
  $as_echo "558. $at_setup_line: testing $at_desc ..."
 
41937
  $at_traceon
 
41938
 
 
41939
 
 
41940
   { set +x
 
41941
$as_echo "$at_srcdir/ovsdb-data.at:265: test-ovsdb parse-atom-strings '[\"boolean\"]' '\"true\"' "
 
41942
at_fn_check_prepare_trace "ovsdb-data.at:265"
 
41943
( $at_check_trace; test-ovsdb parse-atom-strings '["boolean"]' '"true"'
 
41944
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41945
at_status=$? at_failed=false
 
41946
$at_check_filter
 
41947
echo stderr:; tee stderr <"$at_stderr"
 
41948
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
41949
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:265"
 
41950
$at_failed && at_fn_log_failure
 
41951
$at_traceon; }
 
41952
 
 
41953
 
 
41954
   { set +x
 
41955
$as_echo "$at_srcdir/ovsdb-data.at:265: if grep -F -e \"\\\"\\\"true\\\"\\\" is not a valid boolean (use \\\"true\\\" or \\\"false\\\")\" stderr
 
41956
      then
 
41957
        :
 
41958
      else
 
41959
        exit 99
 
41960
      fi"
 
41961
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:265"
 
41962
( $at_check_trace; if grep -F -e "\"\"true\"\" is not a valid boolean (use \"true\" or \"false\")" stderr
 
41963
      then
 
41964
        :
 
41965
      else
 
41966
        exit 99
 
41967
      fi
 
41968
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41969
at_status=$? at_failed=false
 
41970
$at_check_filter
 
41971
echo stderr:; cat "$at_stderr"
 
41972
echo stdout:; cat "$at_stdout"
 
41973
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:265"
 
41974
$at_failed && at_fn_log_failure
 
41975
$at_traceon; }
 
41976
 
 
41977
     set +x
 
41978
  $at_times_p && times >"$at_times_file"
 
41979
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
41980
read at_status <"$at_status_file"
 
41981
#AT_STOP_558
 
41982
#AT_START_559
 
41983
at_fn_group_banner 559 'ovsdb-data.at:269' \
 
41984
  "integer not acceptable string JSON atom - C" "    " 42
 
41985
at_xfail=no
 
41986
(
 
41987
  $as_echo "559. $at_setup_line: testing $at_desc ..."
 
41988
  $at_traceon
 
41989
 
 
41990
 
 
41991
   { set +x
 
41992
$as_echo "$at_srcdir/ovsdb-data.at:269: test-ovsdb parse-atoms '[\"string\"]' '[1]'"
 
41993
at_fn_check_prepare_trace "ovsdb-data.at:269"
 
41994
( $at_check_trace; test-ovsdb parse-atoms '["string"]' '[1]'
 
41995
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
41996
at_status=$? at_failed=false
 
41997
$at_check_filter
 
41998
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
41999
echo >>"$at_stdout"; $as_echo "syntax \"1\": syntax error: expected string
 
42000
" | \
 
42001
  $at_diff - "$at_stdout" || at_failed=:
 
42002
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:269"
 
42003
$at_failed && at_fn_log_failure
 
42004
$at_traceon; }
 
42005
 
 
42006
     set +x
 
42007
  $at_times_p && times >"$at_times_file"
 
42008
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42009
read at_status <"$at_status_file"
 
42010
#AT_STOP_559
 
42011
#AT_START_560
 
42012
at_fn_group_banner 560 'ovsdb-data.at:269' \
 
42013
  "integer not acceptable string JSON atom - Python" "" 42
 
42014
at_xfail=no
 
42015
(
 
42016
  $as_echo "560. $at_setup_line: testing $at_desc ..."
 
42017
  $at_traceon
 
42018
 
 
42019
   $as_echo "ovsdb-data.at:269" >"$at_check_line_file"
 
42020
(test $HAVE_PYTHON = no) \
 
42021
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:269"
 
42022
 
 
42023
 
 
42024
   { set +x
 
42025
$as_echo "$at_srcdir/ovsdb-data.at:269: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"string\"]' '[1]'"
 
42026
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atoms '[\"string\"]' '[1]'" "ovsdb-data.at:269"
 
42027
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["string"]' '[1]'
 
42028
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42029
at_status=$? at_failed=false
 
42030
$at_check_filter
 
42031
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42032
echo >>"$at_stdout"; $as_echo "syntax \"1\": syntax error: expected string
 
42033
" | \
 
42034
  $at_diff - "$at_stdout" || at_failed=:
 
42035
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:269"
 
42036
$at_failed && at_fn_log_failure
 
42037
$at_traceon; }
 
42038
 
 
42039
     set +x
 
42040
  $at_times_p && times >"$at_times_file"
 
42041
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42042
read at_status <"$at_status_file"
 
42043
#AT_STOP_560
 
42044
#AT_START_561
 
42045
at_fn_group_banner 561 'ovsdb-data.at:273' \
 
42046
  "uuid atom must be expressed as JSON array - C" "  " 42
 
42047
at_xfail=no
 
42048
(
 
42049
  $as_echo "561. $at_setup_line: testing $at_desc ..."
 
42050
  $at_traceon
 
42051
 
 
42052
 
 
42053
   { set +x
 
42054
$as_echo "$at_srcdir/ovsdb-data.at:273: test-ovsdb parse-atoms '[\"uuid\"]' '[\"550e8400-e29b-41d4-a716-446655440000\"]'"
 
42055
at_fn_check_prepare_trace "ovsdb-data.at:273"
 
42056
( $at_check_trace; test-ovsdb parse-atoms '["uuid"]' '["550e8400-e29b-41d4-a716-446655440000"]'
 
42057
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42058
at_status=$? at_failed=false
 
42059
$at_check_filter
 
42060
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42061
echo >>"$at_stdout"; $as_echo "syntax \"\"550e8400-e29b-41d4-a716-446655440000\"\": syntax error: expected [\"uuid\", <string>]
 
42062
" | \
 
42063
  $at_diff - "$at_stdout" || at_failed=:
 
42064
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:273"
 
42065
$at_failed && at_fn_log_failure
 
42066
$at_traceon; }
 
42067
 
 
42068
     set +x
 
42069
  $at_times_p && times >"$at_times_file"
 
42070
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42071
read at_status <"$at_status_file"
 
42072
#AT_STOP_561
 
42073
#AT_START_562
 
42074
at_fn_group_banner 562 'ovsdb-data.at:273' \
 
42075
  "uuid atom must be expressed as JSON array - Python" "" 42
 
42076
at_xfail=no
 
42077
(
 
42078
  $as_echo "562. $at_setup_line: testing $at_desc ..."
 
42079
  $at_traceon
 
42080
 
 
42081
   $as_echo "ovsdb-data.at:273" >"$at_check_line_file"
 
42082
(test $HAVE_PYTHON = no) \
 
42083
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:273"
 
42084
 
 
42085
 
 
42086
   { set +x
 
42087
$as_echo "$at_srcdir/ovsdb-data.at:273: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"uuid\"]' '[\"550e8400-e29b-41d4-a716-446655440000\"]'"
 
42088
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atoms '[\"uuid\"]' '[\"550e8400-e29b-41d4-a716-446655440000\"]'" "ovsdb-data.at:273"
 
42089
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["uuid"]' '["550e8400-e29b-41d4-a716-446655440000"]'
 
42090
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42091
at_status=$? at_failed=false
 
42092
$at_check_filter
 
42093
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42094
echo >>"$at_stdout"; $as_echo "syntax \"\"550e8400-e29b-41d4-a716-446655440000\"\": syntax error: expected [\"uuid\", <string>]
 
42095
" | \
 
42096
  $at_diff - "$at_stdout" || at_failed=:
 
42097
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:273"
 
42098
$at_failed && at_fn_log_failure
 
42099
$at_traceon; }
 
42100
 
 
42101
     set +x
 
42102
  $at_times_p && times >"$at_times_file"
 
42103
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42104
read at_status <"$at_status_file"
 
42105
#AT_STOP_562
 
42106
#AT_START_563
 
42107
at_fn_group_banner 563 'ovsdb-data.at:277' \
 
42108
  "named-uuid requires symbol table - C" "           " 42
 
42109
at_xfail=no
 
42110
(
 
42111
  $as_echo "563. $at_setup_line: testing $at_desc ..."
 
42112
  $at_traceon
 
42113
 
 
42114
 
 
42115
   { set +x
 
42116
$as_echo "$at_srcdir/ovsdb-data.at:277: test-ovsdb parse-atoms '[\"uuid\"]' '[\"named-uuid\", \"x\"]'"
 
42117
at_fn_check_prepare_trace "ovsdb-data.at:277"
 
42118
( $at_check_trace; test-ovsdb parse-atoms '["uuid"]' '["named-uuid", "x"]'
 
42119
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42120
at_status=$? at_failed=false
 
42121
$at_check_filter
 
42122
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42123
echo >>"$at_stdout"; $as_echo "syntax \"[\"named-uuid\",\"x\"]\": syntax error: expected [\"uuid\", <string>]
 
42124
" | \
 
42125
  $at_diff - "$at_stdout" || at_failed=:
 
42126
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:277"
 
42127
$at_failed && at_fn_log_failure
 
42128
$at_traceon; }
 
42129
 
 
42130
     set +x
 
42131
  $at_times_p && times >"$at_times_file"
 
42132
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42133
read at_status <"$at_status_file"
 
42134
#AT_STOP_563
 
42135
#AT_START_564
 
42136
at_fn_group_banner 564 'ovsdb-data.at:277' \
 
42137
  "named-uuid requires symbol table - Python" "      " 42
 
42138
at_xfail=no
 
42139
(
 
42140
  $as_echo "564. $at_setup_line: testing $at_desc ..."
 
42141
  $at_traceon
 
42142
 
 
42143
   $as_echo "ovsdb-data.at:277" >"$at_check_line_file"
 
42144
(test $HAVE_PYTHON = no) \
 
42145
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:277"
 
42146
 
 
42147
 
 
42148
   { set +x
 
42149
$as_echo "$at_srcdir/ovsdb-data.at:277: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[\"uuid\"]' '[\"named-uuid\", \"x\"]'"
 
42150
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-atoms '[\"uuid\"]' '[\"named-uuid\", \"x\"]'" "ovsdb-data.at:277"
 
42151
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '["uuid"]' '["named-uuid", "x"]'
 
42152
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42153
at_status=$? at_failed=false
 
42154
$at_check_filter
 
42155
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42156
echo >>"$at_stdout"; $as_echo "syntax \"[\"named-uuid\",\"x\"]\": syntax error: expected [\"uuid\", <string>]
 
42157
" | \
 
42158
  $at_diff - "$at_stdout" || at_failed=:
 
42159
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:277"
 
42160
$at_failed && at_fn_log_failure
 
42161
$at_traceon; }
 
42162
 
 
42163
     set +x
 
42164
  $at_times_p && times >"$at_times_file"
 
42165
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42166
read at_status <"$at_status_file"
 
42167
#AT_STOP_564
 
42168
#AT_START_565
 
42169
at_fn_group_banner 565 'ovsdb-data.at:281' \
 
42170
  "empty string atom must be quoted" "               " 42
 
42171
at_xfail=no
 
42172
(
 
42173
  $as_echo "565. $at_setup_line: testing $at_desc ..."
 
42174
  $at_traceon
 
42175
 
 
42176
 
 
42177
   { set +x
 
42178
$as_echo "$at_srcdir/ovsdb-data.at:281: test-ovsdb parse-atom-strings '[\"string\"]' ''"
 
42179
at_fn_check_prepare_trace "ovsdb-data.at:281"
 
42180
( $at_check_trace; test-ovsdb parse-atom-strings '["string"]' ''
 
42181
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42182
at_status=$? at_failed=false
 
42183
$at_check_filter
 
42184
echo stderr:; tee stderr <"$at_stderr"
 
42185
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
42186
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:281"
 
42187
$at_failed && at_fn_log_failure
 
42188
$at_traceon; }
 
42189
 
 
42190
 
 
42191
   { set +x
 
42192
$as_echo "$at_srcdir/ovsdb-data.at:281: if grep -F -e \"An empty string is not valid as input; use \\\"\\\" to represent the empty string\" stderr
 
42193
      then
 
42194
        :
 
42195
      else
 
42196
        exit 99
 
42197
      fi"
 
42198
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:281"
 
42199
( $at_check_trace; if grep -F -e "An empty string is not valid as input; use \"\" to represent the empty string" stderr
 
42200
      then
 
42201
        :
 
42202
      else
 
42203
        exit 99
 
42204
      fi
 
42205
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42206
at_status=$? at_failed=false
 
42207
$at_check_filter
 
42208
echo stderr:; cat "$at_stderr"
 
42209
echo stdout:; cat "$at_stdout"
 
42210
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:281"
 
42211
$at_failed && at_fn_log_failure
 
42212
$at_traceon; }
 
42213
 
 
42214
     set +x
 
42215
  $at_times_p && times >"$at_times_file"
 
42216
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42217
read at_status <"$at_status_file"
 
42218
#AT_STOP_565
 
42219
#AT_START_566
 
42220
at_fn_group_banner 566 'ovsdb-data.at:285' \
 
42221
  "quotes must be balanced" "                        " 42
 
42222
at_xfail=no
 
42223
(
 
42224
  $as_echo "566. $at_setup_line: testing $at_desc ..."
 
42225
  $at_traceon
 
42226
 
 
42227
 
 
42228
   { set +x
 
42229
$as_echo "$at_srcdir/ovsdb-data.at:285: test-ovsdb parse-atom-strings '[\"string\"]' '\"asdf'"
 
42230
at_fn_check_prepare_trace "ovsdb-data.at:285"
 
42231
( $at_check_trace; test-ovsdb parse-atom-strings '["string"]' '"asdf'
 
42232
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42233
at_status=$? at_failed=false
 
42234
$at_check_filter
 
42235
echo stderr:; tee stderr <"$at_stderr"
 
42236
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
42237
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:285"
 
42238
$at_failed && at_fn_log_failure
 
42239
$at_traceon; }
 
42240
 
 
42241
 
 
42242
   { set +x
 
42243
$as_echo "$at_srcdir/ovsdb-data.at:285: if grep -F -e \"\\\"asdf: missing quote at end of quoted string\" stderr
 
42244
      then
 
42245
        :
 
42246
      else
 
42247
        exit 99
 
42248
      fi"
 
42249
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:285"
 
42250
( $at_check_trace; if grep -F -e "\"asdf: missing quote at end of quoted string" stderr
 
42251
      then
 
42252
        :
 
42253
      else
 
42254
        exit 99
 
42255
      fi
 
42256
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42257
at_status=$? at_failed=false
 
42258
$at_check_filter
 
42259
echo stderr:; cat "$at_stderr"
 
42260
echo stdout:; cat "$at_stdout"
 
42261
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:285"
 
42262
$at_failed && at_fn_log_failure
 
42263
$at_traceon; }
 
42264
 
 
42265
     set +x
 
42266
  $at_times_p && times >"$at_times_file"
 
42267
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42268
read at_status <"$at_status_file"
 
42269
#AT_STOP_566
 
42270
#AT_START_567
 
42271
at_fn_group_banner 567 'ovsdb-data.at:289' \
 
42272
  "uuids must be valid" "                            " 42
 
42273
at_xfail=no
 
42274
(
 
42275
  $as_echo "567. $at_setup_line: testing $at_desc ..."
 
42276
  $at_traceon
 
42277
 
 
42278
 
 
42279
   { set +x
 
42280
$as_echo "$at_srcdir/ovsdb-data.at:289: test-ovsdb parse-atom-strings '[\"uuid\"]' '1234-5678'"
 
42281
at_fn_check_prepare_trace "ovsdb-data.at:289"
 
42282
( $at_check_trace; test-ovsdb parse-atom-strings '["uuid"]' '1234-5678'
 
42283
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42284
at_status=$? at_failed=false
 
42285
$at_check_filter
 
42286
echo stderr:; tee stderr <"$at_stderr"
 
42287
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
42288
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:289"
 
42289
$at_failed && at_fn_log_failure
 
42290
$at_traceon; }
 
42291
 
 
42292
 
 
42293
   { set +x
 
42294
$as_echo "$at_srcdir/ovsdb-data.at:289: if grep -F -e \"\\\"1234-5678\\\" is not a valid UUID\" stderr
 
42295
      then
 
42296
        :
 
42297
      else
 
42298
        exit 99
 
42299
      fi"
 
42300
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:289"
 
42301
( $at_check_trace; if grep -F -e "\"1234-5678\" is not a valid UUID" stderr
 
42302
      then
 
42303
        :
 
42304
      else
 
42305
        exit 99
 
42306
      fi
 
42307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42308
at_status=$? at_failed=false
 
42309
$at_check_filter
 
42310
echo stderr:; cat "$at_stderr"
 
42311
echo stdout:; cat "$at_stdout"
 
42312
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:289"
 
42313
$at_failed && at_fn_log_failure
 
42314
$at_traceon; }
 
42315
 
 
42316
     set +x
 
42317
  $at_times_p && times >"$at_times_file"
 
42318
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42319
read at_status <"$at_status_file"
 
42320
#AT_STOP_567
 
42321
#AT_START_568
 
42322
at_fn_group_banner 568 'ovsdb-data.at:295' \
 
42323
  "integer atom enum - C" "                          " 43
 
42324
at_xfail=no
 
42325
(
 
42326
  $as_echo "568. $at_setup_line: testing $at_desc ..."
 
42327
  $at_traceon
 
42328
 
 
42329
 
 
42330
   { set +x
 
42331
$as_echo "$at_srcdir/ovsdb-data.at:295: test-ovsdb parse-atoms '[{\"type\": \"integer\", \"enum\": [\"set\", [1, 6, 8, 10]]}]' \\
 
42332
    '[0]' \\
 
42333
    '[1]' \\
 
42334
    '[2]' \\
 
42335
    '[3]' \\
 
42336
    '[6]' \\
 
42337
    '[7]' \\
 
42338
    '[8]' \\
 
42339
    '[9]' \\
 
42340
    '[10]' \\
 
42341
    '[11]'"
 
42342
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:295"
 
42343
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "integer", "enum": ["set", [1, 6, 8, 10]]}]' \
 
42344
    '[0]' \
 
42345
    '[1]' \
 
42346
    '[2]' \
 
42347
    '[3]' \
 
42348
    '[6]' \
 
42349
    '[7]' \
 
42350
    '[8]' \
 
42351
    '[9]' \
 
42352
    '[10]' \
 
42353
    '[11]'
 
42354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42355
at_status=$? at_failed=false
 
42356
$at_check_filter
 
42357
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42358
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is not one of the allowed values ([1, 6, 8, 10])
 
42359
1
 
42360
constraint violation: 2 is not one of the allowed values ([1, 6, 8, 10])
 
42361
constraint violation: 3 is not one of the allowed values ([1, 6, 8, 10])
 
42362
6
 
42363
constraint violation: 7 is not one of the allowed values ([1, 6, 8, 10])
 
42364
8
 
42365
constraint violation: 9 is not one of the allowed values ([1, 6, 8, 10])
 
42366
10
 
42367
constraint violation: 11 is not one of the allowed values ([1, 6, 8, 10])
 
42368
" | \
 
42369
  $at_diff - "$at_stdout" || at_failed=:
 
42370
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:295"
 
42371
$at_failed && at_fn_log_failure
 
42372
$at_traceon; }
 
42373
 
 
42374
     set +x
 
42375
  $at_times_p && times >"$at_times_file"
 
42376
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42377
read at_status <"$at_status_file"
 
42378
#AT_STOP_568
 
42379
#AT_START_569
 
42380
at_fn_group_banner 569 'ovsdb-data.at:295' \
 
42381
  "integer atom enum - Python" "                     " 43
 
42382
at_xfail=no
 
42383
(
 
42384
  $as_echo "569. $at_setup_line: testing $at_desc ..."
 
42385
  $at_traceon
 
42386
 
 
42387
   $as_echo "ovsdb-data.at:295" >"$at_check_line_file"
 
42388
(test $HAVE_PYTHON = no) \
 
42389
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:295"
 
42390
 
 
42391
 
 
42392
   { set +x
 
42393
$as_echo "$at_srcdir/ovsdb-data.at:295: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"integer\", \"enum\": [\"set\", [1, 6, 8, 10]]}]' \\
 
42394
    '[0]' \\
 
42395
    '[1]' \\
 
42396
    '[2]' \\
 
42397
    '[3]' \\
 
42398
    '[6]' \\
 
42399
    '[7]' \\
 
42400
    '[8]' \\
 
42401
    '[9]' \\
 
42402
    '[10]' \\
 
42403
    '[11]'"
 
42404
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:295"
 
42405
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "integer", "enum": ["set", [1, 6, 8, 10]]}]' \
 
42406
    '[0]' \
 
42407
    '[1]' \
 
42408
    '[2]' \
 
42409
    '[3]' \
 
42410
    '[6]' \
 
42411
    '[7]' \
 
42412
    '[8]' \
 
42413
    '[9]' \
 
42414
    '[10]' \
 
42415
    '[11]'
 
42416
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42417
at_status=$? at_failed=false
 
42418
$at_check_filter
 
42419
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42420
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is not one of the allowed values ([1, 6, 8, 10])
 
42421
1
 
42422
constraint violation: 2 is not one of the allowed values ([1, 6, 8, 10])
 
42423
constraint violation: 3 is not one of the allowed values ([1, 6, 8, 10])
 
42424
6
 
42425
constraint violation: 7 is not one of the allowed values ([1, 6, 8, 10])
 
42426
8
 
42427
constraint violation: 9 is not one of the allowed values ([1, 6, 8, 10])
 
42428
10
 
42429
constraint violation: 11 is not one of the allowed values ([1, 6, 8, 10])
 
42430
" | \
 
42431
  $at_diff - "$at_stdout" || at_failed=:
 
42432
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:295"
 
42433
$at_failed && at_fn_log_failure
 
42434
$at_traceon; }
 
42435
 
 
42436
     set +x
 
42437
  $at_times_p && times >"$at_times_file"
 
42438
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42439
read at_status <"$at_status_file"
 
42440
#AT_STOP_569
 
42441
#AT_START_570
 
42442
at_fn_group_banner 570 'ovsdb-data.at:318' \
 
42443
  "real atom enum - C" "                             " 43
 
42444
at_xfail=no
 
42445
(
 
42446
  $as_echo "570. $at_setup_line: testing $at_desc ..."
 
42447
  $at_traceon
 
42448
 
 
42449
 
 
42450
   { set +x
 
42451
$as_echo "$at_srcdir/ovsdb-data.at:318: test-ovsdb parse-atoms '[{\"type\": \"real\", \"enum\": [\"set\", [-1.5, 1.5]]}]' \\
 
42452
    '[-2]' \\
 
42453
    '[-1]' \\
 
42454
    '[-1.5]' \\
 
42455
    '[0]' \\
 
42456
    '[1]' \\
 
42457
    '[1.5]' \\
 
42458
    '[2]'"
 
42459
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:318"
 
42460
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "real", "enum": ["set", [-1.5, 1.5]]}]' \
 
42461
    '[-2]' \
 
42462
    '[-1]' \
 
42463
    '[-1.5]' \
 
42464
    '[0]' \
 
42465
    '[1]' \
 
42466
    '[1.5]' \
 
42467
    '[2]'
 
42468
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42469
at_status=$? at_failed=false
 
42470
$at_check_filter
 
42471
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42472
echo >>"$at_stdout"; $as_echo "constraint violation: -2 is not one of the allowed values ([-1.5, 1.5])
 
42473
constraint violation: -1 is not one of the allowed values ([-1.5, 1.5])
 
42474
-1.5
 
42475
constraint violation: 0 is not one of the allowed values ([-1.5, 1.5])
 
42476
constraint violation: 1 is not one of the allowed values ([-1.5, 1.5])
 
42477
1.5
 
42478
constraint violation: 2 is not one of the allowed values ([-1.5, 1.5])
 
42479
" | \
 
42480
  $at_diff - "$at_stdout" || at_failed=:
 
42481
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:318"
 
42482
$at_failed && at_fn_log_failure
 
42483
$at_traceon; }
 
42484
 
 
42485
     set +x
 
42486
  $at_times_p && times >"$at_times_file"
 
42487
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42488
read at_status <"$at_status_file"
 
42489
#AT_STOP_570
 
42490
#AT_START_571
 
42491
at_fn_group_banner 571 'ovsdb-data.at:318' \
 
42492
  "real atom enum - Python" "                        " 43
 
42493
at_xfail=no
 
42494
(
 
42495
  $as_echo "571. $at_setup_line: testing $at_desc ..."
 
42496
  $at_traceon
 
42497
 
 
42498
   $as_echo "ovsdb-data.at:318" >"$at_check_line_file"
 
42499
(test $HAVE_PYTHON = no) \
 
42500
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:318"
 
42501
 
 
42502
 
 
42503
   { set +x
 
42504
$as_echo "$at_srcdir/ovsdb-data.at:318: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"real\", \"enum\": [\"set\", [-1.5, 1.5]]}]' \\
 
42505
    '[-2]' \\
 
42506
    '[-1]' \\
 
42507
    '[-1.5]' \\
 
42508
    '[0]' \\
 
42509
    '[1]' \\
 
42510
    '[1.5]' \\
 
42511
    '[2]'"
 
42512
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:318"
 
42513
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "real", "enum": ["set", [-1.5, 1.5]]}]' \
 
42514
    '[-2]' \
 
42515
    '[-1]' \
 
42516
    '[-1.5]' \
 
42517
    '[0]' \
 
42518
    '[1]' \
 
42519
    '[1.5]' \
 
42520
    '[2]'
 
42521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42522
at_status=$? at_failed=false
 
42523
$at_check_filter
 
42524
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42525
echo >>"$at_stdout"; $as_echo "constraint violation: -2 is not one of the allowed values ([-1.5, 1.5])
 
42526
constraint violation: -1 is not one of the allowed values ([-1.5, 1.5])
 
42527
-1.5
 
42528
constraint violation: 0 is not one of the allowed values ([-1.5, 1.5])
 
42529
constraint violation: 1 is not one of the allowed values ([-1.5, 1.5])
 
42530
1.5
 
42531
constraint violation: 2 is not one of the allowed values ([-1.5, 1.5])
 
42532
" | \
 
42533
  $at_diff - "$at_stdout" || at_failed=:
 
42534
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:318"
 
42535
$at_failed && at_fn_log_failure
 
42536
$at_traceon; }
 
42537
 
 
42538
     set +x
 
42539
  $at_times_p && times >"$at_times_file"
 
42540
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42541
read at_status <"$at_status_file"
 
42542
#AT_STOP_571
 
42543
#AT_START_572
 
42544
at_fn_group_banner 572 'ovsdb-data.at:335' \
 
42545
  "boolean atom enum - C" "                          " 43
 
42546
at_xfail=no
 
42547
(
 
42548
  $as_echo "572. $at_setup_line: testing $at_desc ..."
 
42549
  $at_traceon
 
42550
 
 
42551
 
 
42552
   { set +x
 
42553
$as_echo "$at_srcdir/ovsdb-data.at:335: test-ovsdb parse-atoms '[{\"type\": \"boolean\", \"enum\": false}]' \\
 
42554
    '[false]' \\
 
42555
    '[true]'"
 
42556
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:335"
 
42557
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "boolean", "enum": false}]' \
 
42558
    '[false]' \
 
42559
    '[true]'
 
42560
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42561
at_status=$? at_failed=false
 
42562
$at_check_filter
 
42563
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42564
echo >>"$at_stdout"; $as_echo "false
 
42565
constraint violation: true is not one of the allowed values ([false])
 
42566
" | \
 
42567
  $at_diff - "$at_stdout" || at_failed=:
 
42568
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:335"
 
42569
$at_failed && at_fn_log_failure
 
42570
$at_traceon; }
 
42571
 
 
42572
     set +x
 
42573
  $at_times_p && times >"$at_times_file"
 
42574
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42575
read at_status <"$at_status_file"
 
42576
#AT_STOP_572
 
42577
#AT_START_573
 
42578
at_fn_group_banner 573 'ovsdb-data.at:335' \
 
42579
  "boolean atom enum - Python" "                     " 43
 
42580
at_xfail=no
 
42581
(
 
42582
  $as_echo "573. $at_setup_line: testing $at_desc ..."
 
42583
  $at_traceon
 
42584
 
 
42585
   $as_echo "ovsdb-data.at:335" >"$at_check_line_file"
 
42586
(test $HAVE_PYTHON = no) \
 
42587
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:335"
 
42588
 
 
42589
 
 
42590
   { set +x
 
42591
$as_echo "$at_srcdir/ovsdb-data.at:335: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"boolean\", \"enum\": false}]' \\
 
42592
    '[false]' \\
 
42593
    '[true]'"
 
42594
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:335"
 
42595
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "boolean", "enum": false}]' \
 
42596
    '[false]' \
 
42597
    '[true]'
 
42598
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42599
at_status=$? at_failed=false
 
42600
$at_check_filter
 
42601
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42602
echo >>"$at_stdout"; $as_echo "false
 
42603
constraint violation: true is not one of the allowed values ([false])
 
42604
" | \
 
42605
  $at_diff - "$at_stdout" || at_failed=:
 
42606
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:335"
 
42607
$at_failed && at_fn_log_failure
 
42608
$at_traceon; }
 
42609
 
 
42610
     set +x
 
42611
  $at_times_p && times >"$at_times_file"
 
42612
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42613
read at_status <"$at_status_file"
 
42614
#AT_STOP_573
 
42615
#AT_START_574
 
42616
at_fn_group_banner 574 'ovsdb-data.at:342' \
 
42617
  "string atom enum - C" "                           " 43
 
42618
at_xfail=no
 
42619
(
 
42620
  $as_echo "574. $at_setup_line: testing $at_desc ..."
 
42621
  $at_traceon
 
42622
 
 
42623
 
 
42624
   { set +x
 
42625
$as_echo "$at_srcdir/ovsdb-data.at:342: test-ovsdb parse-atoms '[{\"type\": \"string\", \"enum\": [\"set\", [\"abc\", \"def\"]]}]' \\
 
42626
    '[\"\"]' \\
 
42627
    '[\"ab\"]' \\
 
42628
    '[\"abc\"]' \\
 
42629
    '[\"def\"]' \\
 
42630
    '[\"defg\"]' \\
 
42631
    '[\"DEF\"]'"
 
42632
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:342"
 
42633
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "string", "enum": ["set", ["abc", "def"]]}]' \
 
42634
    '[""]' \
 
42635
    '["ab"]' \
 
42636
    '["abc"]' \
 
42637
    '["def"]' \
 
42638
    '["defg"]' \
 
42639
    '["DEF"]'
 
42640
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42641
at_status=$? at_failed=false
 
42642
$at_check_filter
 
42643
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42644
echo >>"$at_stdout"; $as_echo "constraint violation: \"\" is not one of the allowed values ([abc, def])
 
42645
constraint violation: ab is not one of the allowed values ([abc, def])
 
42646
\"abc\"
 
42647
\"def\"
 
42648
constraint violation: defg is not one of the allowed values ([abc, def])
 
42649
constraint violation: DEF is not one of the allowed values ([abc, def])
 
42650
" | \
 
42651
  $at_diff - "$at_stdout" || at_failed=:
 
42652
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:342"
 
42653
$at_failed && at_fn_log_failure
 
42654
$at_traceon; }
 
42655
 
 
42656
     set +x
 
42657
  $at_times_p && times >"$at_times_file"
 
42658
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42659
read at_status <"$at_status_file"
 
42660
#AT_STOP_574
 
42661
#AT_START_575
 
42662
at_fn_group_banner 575 'ovsdb-data.at:342' \
 
42663
  "string atom enum - Python" "                      " 43
 
42664
at_xfail=no
 
42665
(
 
42666
  $as_echo "575. $at_setup_line: testing $at_desc ..."
 
42667
  $at_traceon
 
42668
 
 
42669
   $as_echo "ovsdb-data.at:342" >"$at_check_line_file"
 
42670
(test $HAVE_PYTHON = no) \
 
42671
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:342"
 
42672
 
 
42673
 
 
42674
   { set +x
 
42675
$as_echo "$at_srcdir/ovsdb-data.at:342: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"string\", \"enum\": [\"set\", [\"abc\", \"def\"]]}]' \\
 
42676
    '[\"\"]' \\
 
42677
    '[\"ab\"]' \\
 
42678
    '[\"abc\"]' \\
 
42679
    '[\"def\"]' \\
 
42680
    '[\"defg\"]' \\
 
42681
    '[\"DEF\"]'"
 
42682
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:342"
 
42683
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "string", "enum": ["set", ["abc", "def"]]}]' \
 
42684
    '[""]' \
 
42685
    '["ab"]' \
 
42686
    '["abc"]' \
 
42687
    '["def"]' \
 
42688
    '["defg"]' \
 
42689
    '["DEF"]'
 
42690
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42691
at_status=$? at_failed=false
 
42692
$at_check_filter
 
42693
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42694
echo >>"$at_stdout"; $as_echo "constraint violation: \"\" is not one of the allowed values ([abc, def])
 
42695
constraint violation: ab is not one of the allowed values ([abc, def])
 
42696
\"abc\"
 
42697
\"def\"
 
42698
constraint violation: defg is not one of the allowed values ([abc, def])
 
42699
constraint violation: DEF is not one of the allowed values ([abc, def])
 
42700
" | \
 
42701
  $at_diff - "$at_stdout" || at_failed=:
 
42702
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:342"
 
42703
$at_failed && at_fn_log_failure
 
42704
$at_traceon; }
 
42705
 
 
42706
     set +x
 
42707
  $at_times_p && times >"$at_times_file"
 
42708
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42709
read at_status <"$at_status_file"
 
42710
#AT_STOP_575
 
42711
#AT_START_576
 
42712
at_fn_group_banner 576 'ovsdb-data.at:357' \
 
42713
  "uuid atom enum - C" "                             " 43
 
42714
at_xfail=no
 
42715
(
 
42716
  $as_echo "576. $at_setup_line: testing $at_desc ..."
 
42717
  $at_traceon
 
42718
 
 
42719
 
 
42720
   { set +x
 
42721
$as_echo "$at_srcdir/ovsdb-data.at:357: test-ovsdb parse-atoms '[{\"type\": \"uuid\", \"enum\": [\"set\", [[\"uuid\", \"6d53a6dd-2da7-4924-9927-97f613812382\"], [\"uuid\", \"52cbc842-137a-4db5-804f-9f34106a0ba3\"]]]}]' \\
 
42722
    '[\"uuid\", \"6d53a6dd-2da7-4924-9927-97f613812382\"]' \\
 
42723
    '[\"uuid\", \"52cbc842-137a-4db5-804f-9f34106a0ba3\"]' \\
 
42724
    '[\"uuid\", \"dab2a6b2-6094-4f43-a7ef-4c0f0608f176\"]'"
 
42725
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:357"
 
42726
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "uuid", "enum": ["set", [["uuid", "6d53a6dd-2da7-4924-9927-97f613812382"], ["uuid", "52cbc842-137a-4db5-804f-9f34106a0ba3"]]]}]' \
 
42727
    '["uuid", "6d53a6dd-2da7-4924-9927-97f613812382"]' \
 
42728
    '["uuid", "52cbc842-137a-4db5-804f-9f34106a0ba3"]' \
 
42729
    '["uuid", "dab2a6b2-6094-4f43-a7ef-4c0f0608f176"]'
 
42730
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42731
at_status=$? at_failed=false
 
42732
$at_check_filter
 
42733
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42734
echo >>"$at_stdout"; $as_echo "[\"uuid\",\"6d53a6dd-2da7-4924-9927-97f613812382\"]
 
42735
[\"uuid\",\"52cbc842-137a-4db5-804f-9f34106a0ba3\"]
 
42736
constraint violation: dab2a6b2-6094-4f43-a7ef-4c0f0608f176 is not one of the allowed values ([52cbc842-137a-4db5-804f-9f34106a0ba3, 6d53a6dd-2da7-4924-9927-97f613812382])
 
42737
" | \
 
42738
  $at_diff - "$at_stdout" || at_failed=:
 
42739
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:357"
 
42740
$at_failed && at_fn_log_failure
 
42741
$at_traceon; }
 
42742
 
 
42743
     set +x
 
42744
  $at_times_p && times >"$at_times_file"
 
42745
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42746
read at_status <"$at_status_file"
 
42747
#AT_STOP_576
 
42748
#AT_START_577
 
42749
at_fn_group_banner 577 'ovsdb-data.at:357' \
 
42750
  "uuid atom enum - Python" "                        " 43
 
42751
at_xfail=no
 
42752
(
 
42753
  $as_echo "577. $at_setup_line: testing $at_desc ..."
 
42754
  $at_traceon
 
42755
 
 
42756
   $as_echo "ovsdb-data.at:357" >"$at_check_line_file"
 
42757
(test $HAVE_PYTHON = no) \
 
42758
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:357"
 
42759
 
 
42760
 
 
42761
   { set +x
 
42762
$as_echo "$at_srcdir/ovsdb-data.at:357: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"uuid\", \"enum\": [\"set\", [[\"uuid\", \"6d53a6dd-2da7-4924-9927-97f613812382\"], [\"uuid\", \"52cbc842-137a-4db5-804f-9f34106a0ba3\"]]]}]' \\
 
42763
    '[\"uuid\", \"6d53a6dd-2da7-4924-9927-97f613812382\"]' \\
 
42764
    '[\"uuid\", \"52cbc842-137a-4db5-804f-9f34106a0ba3\"]' \\
 
42765
    '[\"uuid\", \"dab2a6b2-6094-4f43-a7ef-4c0f0608f176\"]'"
 
42766
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:357"
 
42767
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "uuid", "enum": ["set", [["uuid", "6d53a6dd-2da7-4924-9927-97f613812382"], ["uuid", "52cbc842-137a-4db5-804f-9f34106a0ba3"]]]}]' \
 
42768
    '["uuid", "6d53a6dd-2da7-4924-9927-97f613812382"]' \
 
42769
    '["uuid", "52cbc842-137a-4db5-804f-9f34106a0ba3"]' \
 
42770
    '["uuid", "dab2a6b2-6094-4f43-a7ef-4c0f0608f176"]'
 
42771
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42772
at_status=$? at_failed=false
 
42773
$at_check_filter
 
42774
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42775
echo >>"$at_stdout"; $as_echo "[\"uuid\",\"6d53a6dd-2da7-4924-9927-97f613812382\"]
 
42776
[\"uuid\",\"52cbc842-137a-4db5-804f-9f34106a0ba3\"]
 
42777
constraint violation: dab2a6b2-6094-4f43-a7ef-4c0f0608f176 is not one of the allowed values ([52cbc842-137a-4db5-804f-9f34106a0ba3, 6d53a6dd-2da7-4924-9927-97f613812382])
 
42778
" | \
 
42779
  $at_diff - "$at_stdout" || at_failed=:
 
42780
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:357"
 
42781
$at_failed && at_fn_log_failure
 
42782
$at_traceon; }
 
42783
 
 
42784
     set +x
 
42785
  $at_times_p && times >"$at_times_file"
 
42786
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42787
read at_status <"$at_status_file"
 
42788
#AT_STOP_577
 
42789
#AT_START_578
 
42790
at_fn_group_banner 578 'ovsdb-data.at:368' \
 
42791
  "integers >= 5 - C" "                              " 44
 
42792
at_xfail=no
 
42793
(
 
42794
  $as_echo "578. $at_setup_line: testing $at_desc ..."
 
42795
  $at_traceon
 
42796
 
 
42797
 
 
42798
   { set +x
 
42799
$as_echo "$at_srcdir/ovsdb-data.at:368: test-ovsdb parse-atoms '[{\"type\": \"integer\", \"minInteger\": 5}]' \\
 
42800
    '[0]' \\
 
42801
    '[4]' \\
 
42802
    '[5]' \\
 
42803
    '[6]' \\
 
42804
    '[12345]'"
 
42805
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:368"
 
42806
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "integer", "minInteger": 5}]' \
 
42807
    '[0]' \
 
42808
    '[4]' \
 
42809
    '[5]' \
 
42810
    '[6]' \
 
42811
    '[12345]'
 
42812
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42813
at_status=$? at_failed=false
 
42814
$at_check_filter
 
42815
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42816
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is less than minimum allowed value 5
 
42817
constraint violation: 4 is less than minimum allowed value 5
 
42818
5
 
42819
6
 
42820
12345
 
42821
" | \
 
42822
  $at_diff - "$at_stdout" || at_failed=:
 
42823
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:368"
 
42824
$at_failed && at_fn_log_failure
 
42825
$at_traceon; }
 
42826
 
 
42827
     set +x
 
42828
  $at_times_p && times >"$at_times_file"
 
42829
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42830
read at_status <"$at_status_file"
 
42831
#AT_STOP_578
 
42832
#AT_START_579
 
42833
at_fn_group_banner 579 'ovsdb-data.at:368' \
 
42834
  "integers >= 5 - Python" "                         " 44
 
42835
at_xfail=no
 
42836
(
 
42837
  $as_echo "579. $at_setup_line: testing $at_desc ..."
 
42838
  $at_traceon
 
42839
 
 
42840
   $as_echo "ovsdb-data.at:368" >"$at_check_line_file"
 
42841
(test $HAVE_PYTHON = no) \
 
42842
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:368"
 
42843
 
 
42844
 
 
42845
   { set +x
 
42846
$as_echo "$at_srcdir/ovsdb-data.at:368: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"integer\", \"minInteger\": 5}]' \\
 
42847
    '[0]' \\
 
42848
    '[4]' \\
 
42849
    '[5]' \\
 
42850
    '[6]' \\
 
42851
    '[12345]'"
 
42852
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:368"
 
42853
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "integer", "minInteger": 5}]' \
 
42854
    '[0]' \
 
42855
    '[4]' \
 
42856
    '[5]' \
 
42857
    '[6]' \
 
42858
    '[12345]'
 
42859
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42860
at_status=$? at_failed=false
 
42861
$at_check_filter
 
42862
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42863
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is less than minimum allowed value 5
 
42864
constraint violation: 4 is less than minimum allowed value 5
 
42865
5
 
42866
6
 
42867
12345
 
42868
" | \
 
42869
  $at_diff - "$at_stdout" || at_failed=:
 
42870
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:368"
 
42871
$at_failed && at_fn_log_failure
 
42872
$at_traceon; }
 
42873
 
 
42874
     set +x
 
42875
  $at_times_p && times >"$at_times_file"
 
42876
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42877
read at_status <"$at_status_file"
 
42878
#AT_STOP_579
 
42879
#AT_START_580
 
42880
at_fn_group_banner 580 'ovsdb-data.at:381' \
 
42881
  "integers <= -1 - C" "                             " 44
 
42882
at_xfail=no
 
42883
(
 
42884
  $as_echo "580. $at_setup_line: testing $at_desc ..."
 
42885
  $at_traceon
 
42886
 
 
42887
 
 
42888
   { set +x
 
42889
$as_echo "$at_srcdir/ovsdb-data.at:381: test-ovsdb parse-atoms '[{\"type\": \"integer\", \"maxInteger\": -1}]' \\
 
42890
    '[0]' \\
 
42891
    '[-1]' \\
 
42892
    '[-2]' \\
 
42893
    '[-123]'"
 
42894
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:381"
 
42895
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "integer", "maxInteger": -1}]' \
 
42896
    '[0]' \
 
42897
    '[-1]' \
 
42898
    '[-2]' \
 
42899
    '[-123]'
 
42900
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42901
at_status=$? at_failed=false
 
42902
$at_check_filter
 
42903
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42904
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is greater than maximum allowed value -1
 
42905
-1
 
42906
-2
 
42907
-123
 
42908
" | \
 
42909
  $at_diff - "$at_stdout" || at_failed=:
 
42910
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:381"
 
42911
$at_failed && at_fn_log_failure
 
42912
$at_traceon; }
 
42913
 
 
42914
     set +x
 
42915
  $at_times_p && times >"$at_times_file"
 
42916
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42917
read at_status <"$at_status_file"
 
42918
#AT_STOP_580
 
42919
#AT_START_581
 
42920
at_fn_group_banner 581 'ovsdb-data.at:381' \
 
42921
  "integers <= -1 - Python" "                        " 44
 
42922
at_xfail=no
 
42923
(
 
42924
  $as_echo "581. $at_setup_line: testing $at_desc ..."
 
42925
  $at_traceon
 
42926
 
 
42927
   $as_echo "ovsdb-data.at:381" >"$at_check_line_file"
 
42928
(test $HAVE_PYTHON = no) \
 
42929
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:381"
 
42930
 
 
42931
 
 
42932
   { set +x
 
42933
$as_echo "$at_srcdir/ovsdb-data.at:381: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"integer\", \"maxInteger\": -1}]' \\
 
42934
    '[0]' \\
 
42935
    '[-1]' \\
 
42936
    '[-2]' \\
 
42937
    '[-123]'"
 
42938
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:381"
 
42939
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "integer", "maxInteger": -1}]' \
 
42940
    '[0]' \
 
42941
    '[-1]' \
 
42942
    '[-2]' \
 
42943
    '[-123]'
 
42944
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42945
at_status=$? at_failed=false
 
42946
$at_check_filter
 
42947
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42948
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is greater than maximum allowed value -1
 
42949
-1
 
42950
-2
 
42951
-123
 
42952
" | \
 
42953
  $at_diff - "$at_stdout" || at_failed=:
 
42954
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:381"
 
42955
$at_failed && at_fn_log_failure
 
42956
$at_traceon; }
 
42957
 
 
42958
     set +x
 
42959
  $at_times_p && times >"$at_times_file"
 
42960
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
42961
read at_status <"$at_status_file"
 
42962
#AT_STOP_581
 
42963
#AT_START_582
 
42964
at_fn_group_banner 582 'ovsdb-data.at:392' \
 
42965
  "integers in range -10 to 10 - C" "                " 44
 
42966
at_xfail=no
 
42967
(
 
42968
  $as_echo "582. $at_setup_line: testing $at_desc ..."
 
42969
  $at_traceon
 
42970
 
 
42971
 
 
42972
   { set +x
 
42973
$as_echo "$at_srcdir/ovsdb-data.at:392: test-ovsdb parse-atoms '[{\"type\": \"integer\", \"minInteger\": -10, \"maxInteger\": 10}]' \\
 
42974
    '[-20]' \\
 
42975
    '[-11]' \\
 
42976
    '[-10]' \\
 
42977
    '[-9]' \\
 
42978
    '[1]' \\
 
42979
    '[9]' \\
 
42980
    '[10]' \\
 
42981
    '[11]' \\
 
42982
    '[123576]'"
 
42983
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:392"
 
42984
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "integer", "minInteger": -10, "maxInteger": 10}]' \
 
42985
    '[-20]' \
 
42986
    '[-11]' \
 
42987
    '[-10]' \
 
42988
    '[-9]' \
 
42989
    '[1]' \
 
42990
    '[9]' \
 
42991
    '[10]' \
 
42992
    '[11]' \
 
42993
    '[123576]'
 
42994
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
42995
at_status=$? at_failed=false
 
42996
$at_check_filter
 
42997
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
42998
echo >>"$at_stdout"; $as_echo "constraint violation: -20 is not in the valid range -10 to 10 (inclusive)
 
42999
constraint violation: -11 is not in the valid range -10 to 10 (inclusive)
 
43000
-10
 
43001
-9
 
43002
1
 
43003
9
 
43004
10
 
43005
constraint violation: 11 is not in the valid range -10 to 10 (inclusive)
 
43006
constraint violation: 123576 is not in the valid range -10 to 10 (inclusive)
 
43007
" | \
 
43008
  $at_diff - "$at_stdout" || at_failed=:
 
43009
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:392"
 
43010
$at_failed && at_fn_log_failure
 
43011
$at_traceon; }
 
43012
 
 
43013
     set +x
 
43014
  $at_times_p && times >"$at_times_file"
 
43015
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43016
read at_status <"$at_status_file"
 
43017
#AT_STOP_582
 
43018
#AT_START_583
 
43019
at_fn_group_banner 583 'ovsdb-data.at:392' \
 
43020
  "integers in range -10 to 10 - Python" "           " 44
 
43021
at_xfail=no
 
43022
(
 
43023
  $as_echo "583. $at_setup_line: testing $at_desc ..."
 
43024
  $at_traceon
 
43025
 
 
43026
   $as_echo "ovsdb-data.at:392" >"$at_check_line_file"
 
43027
(test $HAVE_PYTHON = no) \
 
43028
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:392"
 
43029
 
 
43030
 
 
43031
   { set +x
 
43032
$as_echo "$at_srcdir/ovsdb-data.at:392: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"integer\", \"minInteger\": -10, \"maxInteger\": 10}]' \\
 
43033
    '[-20]' \\
 
43034
    '[-11]' \\
 
43035
    '[-10]' \\
 
43036
    '[-9]' \\
 
43037
    '[1]' \\
 
43038
    '[9]' \\
 
43039
    '[10]' \\
 
43040
    '[11]' \\
 
43041
    '[123576]'"
 
43042
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:392"
 
43043
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "integer", "minInteger": -10, "maxInteger": 10}]' \
 
43044
    '[-20]' \
 
43045
    '[-11]' \
 
43046
    '[-10]' \
 
43047
    '[-9]' \
 
43048
    '[1]' \
 
43049
    '[9]' \
 
43050
    '[10]' \
 
43051
    '[11]' \
 
43052
    '[123576]'
 
43053
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43054
at_status=$? at_failed=false
 
43055
$at_check_filter
 
43056
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43057
echo >>"$at_stdout"; $as_echo "constraint violation: -20 is not in the valid range -10 to 10 (inclusive)
 
43058
constraint violation: -11 is not in the valid range -10 to 10 (inclusive)
 
43059
-10
 
43060
-9
 
43061
1
 
43062
9
 
43063
10
 
43064
constraint violation: 11 is not in the valid range -10 to 10 (inclusive)
 
43065
constraint violation: 123576 is not in the valid range -10 to 10 (inclusive)
 
43066
" | \
 
43067
  $at_diff - "$at_stdout" || at_failed=:
 
43068
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:392"
 
43069
$at_failed && at_fn_log_failure
 
43070
$at_traceon; }
 
43071
 
 
43072
     set +x
 
43073
  $at_times_p && times >"$at_times_file"
 
43074
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43075
read at_status <"$at_status_file"
 
43076
#AT_STOP_583
 
43077
#AT_START_584
 
43078
at_fn_group_banner 584 'ovsdb-data.at:413' \
 
43079
  "reals >= 5 - C" "                                 " 44
 
43080
at_xfail=no
 
43081
(
 
43082
  $as_echo "584. $at_setup_line: testing $at_desc ..."
 
43083
  $at_traceon
 
43084
 
 
43085
 
 
43086
   { set +x
 
43087
$as_echo "$at_srcdir/ovsdb-data.at:413: test-ovsdb parse-atoms '[{\"type\": \"real\", \"minReal\": 5}]' \\
 
43088
    '[0]' \\
 
43089
    '[4]' \\
 
43090
    '[5]' \\
 
43091
    '[6]' \\
 
43092
    '[12345]'"
 
43093
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:413"
 
43094
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "real", "minReal": 5}]' \
 
43095
    '[0]' \
 
43096
    '[4]' \
 
43097
    '[5]' \
 
43098
    '[6]' \
 
43099
    '[12345]'
 
43100
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43101
at_status=$? at_failed=false
 
43102
$at_check_filter
 
43103
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43104
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is less than minimum allowed value 5
 
43105
constraint violation: 4 is less than minimum allowed value 5
 
43106
5
 
43107
6
 
43108
12345
 
43109
" | \
 
43110
  $at_diff - "$at_stdout" || at_failed=:
 
43111
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:413"
 
43112
$at_failed && at_fn_log_failure
 
43113
$at_traceon; }
 
43114
 
 
43115
     set +x
 
43116
  $at_times_p && times >"$at_times_file"
 
43117
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43118
read at_status <"$at_status_file"
 
43119
#AT_STOP_584
 
43120
#AT_START_585
 
43121
at_fn_group_banner 585 'ovsdb-data.at:413' \
 
43122
  "reals >= 5 - Python" "                            " 44
 
43123
at_xfail=no
 
43124
(
 
43125
  $as_echo "585. $at_setup_line: testing $at_desc ..."
 
43126
  $at_traceon
 
43127
 
 
43128
   $as_echo "ovsdb-data.at:413" >"$at_check_line_file"
 
43129
(test $HAVE_PYTHON = no) \
 
43130
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:413"
 
43131
 
 
43132
 
 
43133
   { set +x
 
43134
$as_echo "$at_srcdir/ovsdb-data.at:413: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"real\", \"minReal\": 5}]' \\
 
43135
    '[0]' \\
 
43136
    '[4]' \\
 
43137
    '[5]' \\
 
43138
    '[6]' \\
 
43139
    '[12345]'"
 
43140
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:413"
 
43141
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "real", "minReal": 5}]' \
 
43142
    '[0]' \
 
43143
    '[4]' \
 
43144
    '[5]' \
 
43145
    '[6]' \
 
43146
    '[12345]'
 
43147
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43148
at_status=$? at_failed=false
 
43149
$at_check_filter
 
43150
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43151
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is less than minimum allowed value 5
 
43152
constraint violation: 4 is less than minimum allowed value 5
 
43153
5
 
43154
6
 
43155
12345
 
43156
" | \
 
43157
  $at_diff - "$at_stdout" || at_failed=:
 
43158
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:413"
 
43159
$at_failed && at_fn_log_failure
 
43160
$at_traceon; }
 
43161
 
 
43162
     set +x
 
43163
  $at_times_p && times >"$at_times_file"
 
43164
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43165
read at_status <"$at_status_file"
 
43166
#AT_STOP_585
 
43167
#AT_START_586
 
43168
at_fn_group_banner 586 'ovsdb-data.at:426' \
 
43169
  "reals <= -1 - C" "                                " 44
 
43170
at_xfail=no
 
43171
(
 
43172
  $as_echo "586. $at_setup_line: testing $at_desc ..."
 
43173
  $at_traceon
 
43174
 
 
43175
 
 
43176
   { set +x
 
43177
$as_echo "$at_srcdir/ovsdb-data.at:426: test-ovsdb parse-atoms '[{\"type\": \"real\", \"maxReal\": -1}]' \\
 
43178
    '[0]' \\
 
43179
    '[-1]' \\
 
43180
    '[-2]' \\
 
43181
    '[-123]'"
 
43182
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:426"
 
43183
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "real", "maxReal": -1}]' \
 
43184
    '[0]' \
 
43185
    '[-1]' \
 
43186
    '[-2]' \
 
43187
    '[-123]'
 
43188
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43189
at_status=$? at_failed=false
 
43190
$at_check_filter
 
43191
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43192
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is greater than maximum allowed value -1
 
43193
-1
 
43194
-2
 
43195
-123
 
43196
" | \
 
43197
  $at_diff - "$at_stdout" || at_failed=:
 
43198
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:426"
 
43199
$at_failed && at_fn_log_failure
 
43200
$at_traceon; }
 
43201
 
 
43202
     set +x
 
43203
  $at_times_p && times >"$at_times_file"
 
43204
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43205
read at_status <"$at_status_file"
 
43206
#AT_STOP_586
 
43207
#AT_START_587
 
43208
at_fn_group_banner 587 'ovsdb-data.at:426' \
 
43209
  "reals <= -1 - Python" "                           " 44
 
43210
at_xfail=no
 
43211
(
 
43212
  $as_echo "587. $at_setup_line: testing $at_desc ..."
 
43213
  $at_traceon
 
43214
 
 
43215
   $as_echo "ovsdb-data.at:426" >"$at_check_line_file"
 
43216
(test $HAVE_PYTHON = no) \
 
43217
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:426"
 
43218
 
 
43219
 
 
43220
   { set +x
 
43221
$as_echo "$at_srcdir/ovsdb-data.at:426: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"real\", \"maxReal\": -1}]' \\
 
43222
    '[0]' \\
 
43223
    '[-1]' \\
 
43224
    '[-2]' \\
 
43225
    '[-123]'"
 
43226
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:426"
 
43227
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "real", "maxReal": -1}]' \
 
43228
    '[0]' \
 
43229
    '[-1]' \
 
43230
    '[-2]' \
 
43231
    '[-123]'
 
43232
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43233
at_status=$? at_failed=false
 
43234
$at_check_filter
 
43235
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43236
echo >>"$at_stdout"; $as_echo "constraint violation: 0 is greater than maximum allowed value -1
 
43237
-1
 
43238
-2
 
43239
-123
 
43240
" | \
 
43241
  $at_diff - "$at_stdout" || at_failed=:
 
43242
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:426"
 
43243
$at_failed && at_fn_log_failure
 
43244
$at_traceon; }
 
43245
 
 
43246
     set +x
 
43247
  $at_times_p && times >"$at_times_file"
 
43248
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43249
read at_status <"$at_status_file"
 
43250
#AT_STOP_587
 
43251
#AT_START_588
 
43252
at_fn_group_banner 588 'ovsdb-data.at:437' \
 
43253
  "reals in range -10 to 10 - C" "                   " 44
 
43254
at_xfail=no
 
43255
(
 
43256
  $as_echo "588. $at_setup_line: testing $at_desc ..."
 
43257
  $at_traceon
 
43258
 
 
43259
 
 
43260
   { set +x
 
43261
$as_echo "$at_srcdir/ovsdb-data.at:437: test-ovsdb parse-atoms '[{\"type\": \"real\", \"minReal\": -10, \"maxReal\": 10}]' \\
 
43262
    '[-20]' \\
 
43263
    '[-11]' \\
 
43264
    '[-10]' \\
 
43265
    '[-9]' \\
 
43266
    '[1]' \\
 
43267
    '[9]' \\
 
43268
    '[10]' \\
 
43269
    '[11]' \\
 
43270
    '[123576]'"
 
43271
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:437"
 
43272
( $at_check_trace; test-ovsdb parse-atoms '[{"type": "real", "minReal": -10, "maxReal": 10}]' \
 
43273
    '[-20]' \
 
43274
    '[-11]' \
 
43275
    '[-10]' \
 
43276
    '[-9]' \
 
43277
    '[1]' \
 
43278
    '[9]' \
 
43279
    '[10]' \
 
43280
    '[11]' \
 
43281
    '[123576]'
 
43282
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43283
at_status=$? at_failed=false
 
43284
$at_check_filter
 
43285
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43286
echo >>"$at_stdout"; $as_echo "constraint violation: -20 is not in the valid range -10 to 10 (inclusive)
 
43287
constraint violation: -11 is not in the valid range -10 to 10 (inclusive)
 
43288
-10
 
43289
-9
 
43290
1
 
43291
9
 
43292
10
 
43293
constraint violation: 11 is not in the valid range -10 to 10 (inclusive)
 
43294
constraint violation: 123576 is not in the valid range -10 to 10 (inclusive)
 
43295
" | \
 
43296
  $at_diff - "$at_stdout" || at_failed=:
 
43297
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:437"
 
43298
$at_failed && at_fn_log_failure
 
43299
$at_traceon; }
 
43300
 
 
43301
     set +x
 
43302
  $at_times_p && times >"$at_times_file"
 
43303
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43304
read at_status <"$at_status_file"
 
43305
#AT_STOP_588
 
43306
#AT_START_589
 
43307
at_fn_group_banner 589 'ovsdb-data.at:437' \
 
43308
  "reals in range -10 to 10 - Python" "              " 44
 
43309
at_xfail=no
 
43310
(
 
43311
  $as_echo "589. $at_setup_line: testing $at_desc ..."
 
43312
  $at_traceon
 
43313
 
 
43314
   $as_echo "ovsdb-data.at:437" >"$at_check_line_file"
 
43315
(test $HAVE_PYTHON = no) \
 
43316
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:437"
 
43317
 
 
43318
 
 
43319
   { set +x
 
43320
$as_echo "$at_srcdir/ovsdb-data.at:437: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '[{\"type\": \"real\", \"minReal\": -10, \"maxReal\": 10}]' \\
 
43321
    '[-20]' \\
 
43322
    '[-11]' \\
 
43323
    '[-10]' \\
 
43324
    '[-9]' \\
 
43325
    '[1]' \\
 
43326
    '[9]' \\
 
43327
    '[10]' \\
 
43328
    '[11]' \\
 
43329
    '[123576]'"
 
43330
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:437"
 
43331
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '[{"type": "real", "minReal": -10, "maxReal": 10}]' \
 
43332
    '[-20]' \
 
43333
    '[-11]' \
 
43334
    '[-10]' \
 
43335
    '[-9]' \
 
43336
    '[1]' \
 
43337
    '[9]' \
 
43338
    '[10]' \
 
43339
    '[11]' \
 
43340
    '[123576]'
 
43341
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43342
at_status=$? at_failed=false
 
43343
$at_check_filter
 
43344
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43345
echo >>"$at_stdout"; $as_echo "constraint violation: -20 is not in the valid range -10 to 10 (inclusive)
 
43346
constraint violation: -11 is not in the valid range -10 to 10 (inclusive)
 
43347
-10
 
43348
-9
 
43349
1
 
43350
9
 
43351
10
 
43352
constraint violation: 11 is not in the valid range -10 to 10 (inclusive)
 
43353
constraint violation: 123576 is not in the valid range -10 to 10 (inclusive)
 
43354
" | \
 
43355
  $at_diff - "$at_stdout" || at_failed=:
 
43356
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:437"
 
43357
$at_failed && at_fn_log_failure
 
43358
$at_traceon; }
 
43359
 
 
43360
     set +x
 
43361
  $at_times_p && times >"$at_times_file"
 
43362
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43363
read at_status <"$at_status_file"
 
43364
#AT_STOP_589
 
43365
#AT_START_590
 
43366
at_fn_group_banner 590 'ovsdb-data.at:458' \
 
43367
  "strings at least 2 characters long - C" "         " 44
 
43368
at_xfail=no
 
43369
(
 
43370
  $as_echo "590. $at_setup_line: testing $at_desc ..."
 
43371
  $at_traceon
 
43372
 
 
43373
 
 
43374
   { set +x
 
43375
$as_echo "$at_srcdir/ovsdb-data.at:458: test-ovsdb parse-atoms '{\"type\": \"string\", \"minLength\": 2}' \\
 
43376
    '[\"\"]' \\
 
43377
    '[\"a\"]' \\
 
43378
    '[\"ab\"]' \\
 
43379
    '[\"abc\"]' \\
 
43380
    '[\"\\ud834\\udd1e\"]'"
 
43381
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:458"
 
43382
( $at_check_trace; test-ovsdb parse-atoms '{"type": "string", "minLength": 2}' \
 
43383
    '[""]' \
 
43384
    '["a"]' \
 
43385
    '["ab"]' \
 
43386
    '["abc"]' \
 
43387
    '["\ud834\udd1e"]'
 
43388
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43389
at_status=$? at_failed=false
 
43390
$at_check_filter
 
43391
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43392
echo >>"$at_stdout"; $as_echo "constraint violation: \"\" length 0 is less than minimum allowed length 2
 
43393
constraint violation: \"a\" length 1 is less than minimum allowed length 2
 
43394
\"ab\"
 
43395
\"abc\"
 
43396
constraint violation: \"𝄞\" length 1 is less than minimum allowed length 2
 
43397
" | \
 
43398
  $at_diff - "$at_stdout" || at_failed=:
 
43399
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:458"
 
43400
$at_failed && at_fn_log_failure
 
43401
$at_traceon; }
 
43402
 
 
43403
     set +x
 
43404
  $at_times_p && times >"$at_times_file"
 
43405
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43406
read at_status <"$at_status_file"
 
43407
#AT_STOP_590
 
43408
#AT_START_591
 
43409
at_fn_group_banner 591 'ovsdb-data.at:458' \
 
43410
  "strings at least 2 characters long - Python" "    " 44
 
43411
at_xfail=no
 
43412
(
 
43413
  $as_echo "591. $at_setup_line: testing $at_desc ..."
 
43414
  $at_traceon
 
43415
 
 
43416
   $as_echo "ovsdb-data.at:458" >"$at_check_line_file"
 
43417
(test $HAVE_PYTHON = no) \
 
43418
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:458"
 
43419
      { set +x
 
43420
$as_echo "$at_srcdir/ovsdb-data.at:458: \$PYTHON -c 'unichr(0x10000)' || exit 77"
 
43421
at_fn_check_prepare_dynamic "$PYTHON -c 'unichr(0x10000)' || exit 77" "ovsdb-data.at:458"
 
43422
( $at_check_trace; $PYTHON -c 'unichr(0x10000)' || exit 77
 
43423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43424
at_status=$? at_failed=false
 
43425
$at_check_filter
 
43426
echo stderr:; cat "$at_stderr"
 
43427
echo stdout:; cat "$at_stdout"
 
43428
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:458"
 
43429
$at_failed && at_fn_log_failure
 
43430
$at_traceon; }
 
43431
 
 
43432
 
 
43433
   { set +x
 
43434
$as_echo "$at_srcdir/ovsdb-data.at:458: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '{\"type\": \"string\", \"minLength\": 2}' \\
 
43435
    '[\"\"]' \\
 
43436
    '[\"a\"]' \\
 
43437
    '[\"ab\"]' \\
 
43438
    '[\"abc\"]' \\
 
43439
    '[\"\\ud834\\udd1e\"]'"
 
43440
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:458"
 
43441
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '{"type": "string", "minLength": 2}' \
 
43442
    '[""]' \
 
43443
    '["a"]' \
 
43444
    '["ab"]' \
 
43445
    '["abc"]' \
 
43446
    '["\ud834\udd1e"]'
 
43447
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43448
at_status=$? at_failed=false
 
43449
$at_check_filter
 
43450
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43451
echo >>"$at_stdout"; $as_echo "constraint violation: \"\" length 0 is less than minimum allowed length 2
 
43452
constraint violation: \"a\" length 1 is less than minimum allowed length 2
 
43453
\"ab\"
 
43454
\"abc\"
 
43455
constraint violation: \"𝄞\" length 1 is less than minimum allowed length 2
 
43456
" | \
 
43457
  $at_diff - "$at_stdout" || at_failed=:
 
43458
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:458"
 
43459
$at_failed && at_fn_log_failure
 
43460
$at_traceon; }
 
43461
 
 
43462
     set +x
 
43463
  $at_times_p && times >"$at_times_file"
 
43464
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43465
read at_status <"$at_status_file"
 
43466
#AT_STOP_591
 
43467
#AT_START_592
 
43468
at_fn_group_banner 592 'ovsdb-data.at:476' \
 
43469
  "strings no more than 2 characters long - C" "     " 44
 
43470
at_xfail=no
 
43471
(
 
43472
  $as_echo "592. $at_setup_line: testing $at_desc ..."
 
43473
  $at_traceon
 
43474
 
 
43475
 
 
43476
   { set +x
 
43477
$as_echo "$at_srcdir/ovsdb-data.at:476: test-ovsdb parse-atoms '{\"type\": \"string\", \"maxLength\": 2}' \\
 
43478
    '[\"\"]' \\
 
43479
    '[\"a\"]' \\
 
43480
    '[\"ab\"]' \\
 
43481
    '[\"abc\"]' \\
 
43482
    '[\"de\"]'"
 
43483
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:476"
 
43484
( $at_check_trace; test-ovsdb parse-atoms '{"type": "string", "maxLength": 2}' \
 
43485
    '[""]' \
 
43486
    '["a"]' \
 
43487
    '["ab"]' \
 
43488
    '["abc"]' \
 
43489
    '["de"]'
 
43490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43491
at_status=$? at_failed=false
 
43492
$at_check_filter
 
43493
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43494
echo >>"$at_stdout"; $as_echo "\"\"
 
43495
\"a\"
 
43496
\"ab\"
 
43497
constraint violation: \"abc\" length 3 is greater than maximum allowed length 2
 
43498
\"de\"
 
43499
" | \
 
43500
  $at_diff - "$at_stdout" || at_failed=:
 
43501
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:476"
 
43502
$at_failed && at_fn_log_failure
 
43503
$at_traceon; }
 
43504
 
 
43505
     set +x
 
43506
  $at_times_p && times >"$at_times_file"
 
43507
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43508
read at_status <"$at_status_file"
 
43509
#AT_STOP_592
 
43510
#AT_START_593
 
43511
at_fn_group_banner 593 'ovsdb-data.at:476' \
 
43512
  "strings no more than 2 characters long - Python" "" 44
 
43513
at_xfail=no
 
43514
(
 
43515
  $as_echo "593. $at_setup_line: testing $at_desc ..."
 
43516
  $at_traceon
 
43517
 
 
43518
   $as_echo "ovsdb-data.at:476" >"$at_check_line_file"
 
43519
(test $HAVE_PYTHON = no) \
 
43520
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:476"
 
43521
 
 
43522
 
 
43523
   { set +x
 
43524
$as_echo "$at_srcdir/ovsdb-data.at:476: \$PYTHON \$srcdir/test-ovsdb.py parse-atoms '{\"type\": \"string\", \"maxLength\": 2}' \\
 
43525
    '[\"\"]' \\
 
43526
    '[\"a\"]' \\
 
43527
    '[\"ab\"]' \\
 
43528
    '[\"abc\"]' \\
 
43529
    '[\"de\"]'"
 
43530
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:476"
 
43531
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-atoms '{"type": "string", "maxLength": 2}' \
 
43532
    '[""]' \
 
43533
    '["a"]' \
 
43534
    '["ab"]' \
 
43535
    '["abc"]' \
 
43536
    '["de"]'
 
43537
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43538
at_status=$? at_failed=false
 
43539
$at_check_filter
 
43540
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43541
echo >>"$at_stdout"; $as_echo "\"\"
 
43542
\"a\"
 
43543
\"ab\"
 
43544
constraint violation: \"abc\" length 3 is greater than maximum allowed length 2
 
43545
\"de\"
 
43546
" | \
 
43547
  $at_diff - "$at_stdout" || at_failed=:
 
43548
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:476"
 
43549
$at_failed && at_fn_log_failure
 
43550
$at_traceon; }
 
43551
 
 
43552
     set +x
 
43553
  $at_times_p && times >"$at_times_file"
 
43554
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43555
read at_status <"$at_status_file"
 
43556
#AT_STOP_593
 
43557
#AT_START_594
 
43558
at_fn_group_banner 594 'ovsdb-data.at:491' \
 
43559
  "integer JSON datum - C" "                         " 45
 
43560
at_xfail=no
 
43561
(
 
43562
  $as_echo "594. $at_setup_line: testing $at_desc ..."
 
43563
  $at_traceon
 
43564
 
 
43565
 
 
43566
   { set +x
 
43567
$as_echo "$at_srcdir/ovsdb-data.at:491: test-ovsdb parse-data '[\"integer\"]' '[0]' '[\"set\",[1]]' '[-1]'"
 
43568
at_fn_check_prepare_trace "ovsdb-data.at:491"
 
43569
( $at_check_trace; test-ovsdb parse-data '["integer"]' '[0]' '["set",[1]]' '[-1]'
 
43570
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43571
at_status=$? at_failed=false
 
43572
$at_check_filter
 
43573
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43574
echo >>"$at_stdout"; $as_echo "0
 
43575
1
 
43576
-1
 
43577
" | \
 
43578
  $at_diff - "$at_stdout" || at_failed=:
 
43579
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:491"
 
43580
$at_failed && at_fn_log_failure
 
43581
$at_traceon; }
 
43582
 
 
43583
     set +x
 
43584
  $at_times_p && times >"$at_times_file"
 
43585
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43586
read at_status <"$at_status_file"
 
43587
#AT_STOP_594
 
43588
#AT_START_595
 
43589
at_fn_group_banner 595 'ovsdb-data.at:491' \
 
43590
  "integer JSON datum - Python" "                    " 45
 
43591
at_xfail=no
 
43592
(
 
43593
  $as_echo "595. $at_setup_line: testing $at_desc ..."
 
43594
  $at_traceon
 
43595
 
 
43596
   $as_echo "ovsdb-data.at:491" >"$at_check_line_file"
 
43597
(test $HAVE_PYTHON = no) \
 
43598
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:491"
 
43599
 
 
43600
 
 
43601
   { set +x
 
43602
$as_echo "$at_srcdir/ovsdb-data.at:491: \$PYTHON \$srcdir/test-ovsdb.py parse-data '[\"integer\"]' '[0]' '[\"set\",[1]]' '[-1]'"
 
43603
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-data '[\"integer\"]' '[0]' '[\"set\",[1]]' '[-1]'" "ovsdb-data.at:491"
 
43604
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '["integer"]' '[0]' '["set",[1]]' '[-1]'
 
43605
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43606
at_status=$? at_failed=false
 
43607
$at_check_filter
 
43608
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43609
echo >>"$at_stdout"; $as_echo "0
 
43610
1
 
43611
-1
 
43612
" | \
 
43613
  $at_diff - "$at_stdout" || at_failed=:
 
43614
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:491"
 
43615
$at_failed && at_fn_log_failure
 
43616
$at_traceon; }
 
43617
 
 
43618
     set +x
 
43619
  $at_times_p && times >"$at_times_file"
 
43620
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43621
read at_status <"$at_status_file"
 
43622
#AT_STOP_595
 
43623
#AT_START_596
 
43624
at_fn_group_banner 596 'ovsdb-data.at:497' \
 
43625
  "integer string datum" "                           " 45
 
43626
at_xfail=no
 
43627
(
 
43628
  $as_echo "596. $at_setup_line: testing $at_desc ..."
 
43629
  $at_traceon
 
43630
 
 
43631
 
 
43632
   { set +x
 
43633
$as_echo "$at_srcdir/ovsdb-data.at:497: test-ovsdb parse-data-strings -- '[\"integer\"]' '0' '1' '-1' '+1'"
 
43634
at_fn_check_prepare_trace "ovsdb-data.at:497"
 
43635
( $at_check_trace; test-ovsdb parse-data-strings -- '["integer"]' '0' '1' '-1' '+1'
 
43636
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43637
at_status=$? at_failed=false
 
43638
$at_check_filter
 
43639
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43640
echo >>"$at_stdout"; $as_echo "0
 
43641
1
 
43642
-1
 
43643
1
 
43644
" | \
 
43645
  $at_diff - "$at_stdout" || at_failed=:
 
43646
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:497"
 
43647
$at_failed && at_fn_log_failure
 
43648
$at_traceon; }
 
43649
 
 
43650
     set +x
 
43651
  $at_times_p && times >"$at_times_file"
 
43652
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43653
read at_status <"$at_status_file"
 
43654
#AT_STOP_596
 
43655
#AT_START_597
 
43656
at_fn_group_banner 597 'ovsdb-data.at:504' \
 
43657
  "real JSON datum - C" "                            " 45
 
43658
at_xfail=no
 
43659
(
 
43660
  $as_echo "597. $at_setup_line: testing $at_desc ..."
 
43661
  $at_traceon
 
43662
 
 
43663
 
 
43664
   { set +x
 
43665
$as_echo "$at_srcdir/ovsdb-data.at:504: test-ovsdb parse-data '[\"real\"]' '[0]' '[\"set\",[1.0]]' '[-1.25]'"
 
43666
at_fn_check_prepare_trace "ovsdb-data.at:504"
 
43667
( $at_check_trace; test-ovsdb parse-data '["real"]' '[0]' '["set",[1.0]]' '[-1.25]'
 
43668
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43669
at_status=$? at_failed=false
 
43670
$at_check_filter
 
43671
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43672
echo >>"$at_stdout"; $as_echo "0
 
43673
1
 
43674
-1.25
 
43675
" | \
 
43676
  $at_diff - "$at_stdout" || at_failed=:
 
43677
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:504"
 
43678
$at_failed && at_fn_log_failure
 
43679
$at_traceon; }
 
43680
 
 
43681
     set +x
 
43682
  $at_times_p && times >"$at_times_file"
 
43683
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43684
read at_status <"$at_status_file"
 
43685
#AT_STOP_597
 
43686
#AT_START_598
 
43687
at_fn_group_banner 598 'ovsdb-data.at:504' \
 
43688
  "real JSON datum - Python" "                       " 45
 
43689
at_xfail=no
 
43690
(
 
43691
  $as_echo "598. $at_setup_line: testing $at_desc ..."
 
43692
  $at_traceon
 
43693
 
 
43694
   $as_echo "ovsdb-data.at:504" >"$at_check_line_file"
 
43695
(test $HAVE_PYTHON = no) \
 
43696
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:504"
 
43697
 
 
43698
 
 
43699
   { set +x
 
43700
$as_echo "$at_srcdir/ovsdb-data.at:504: \$PYTHON \$srcdir/test-ovsdb.py parse-data '[\"real\"]' '[0]' '[\"set\",[1.0]]' '[-1.25]'"
 
43701
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-data '[\"real\"]' '[0]' '[\"set\",[1.0]]' '[-1.25]'" "ovsdb-data.at:504"
 
43702
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '["real"]' '[0]' '["set",[1.0]]' '[-1.25]'
 
43703
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43704
at_status=$? at_failed=false
 
43705
$at_check_filter
 
43706
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43707
echo >>"$at_stdout"; $as_echo "0
 
43708
1
 
43709
-1.25
 
43710
" | \
 
43711
  $at_diff - "$at_stdout" || at_failed=:
 
43712
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:504"
 
43713
$at_failed && at_fn_log_failure
 
43714
$at_traceon; }
 
43715
 
 
43716
     set +x
 
43717
  $at_times_p && times >"$at_times_file"
 
43718
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43719
read at_status <"$at_status_file"
 
43720
#AT_STOP_598
 
43721
#AT_START_599
 
43722
at_fn_group_banner 599 'ovsdb-data.at:510' \
 
43723
  "real string datum" "                              " 45
 
43724
at_xfail=no
 
43725
(
 
43726
  $as_echo "599. $at_setup_line: testing $at_desc ..."
 
43727
  $at_traceon
 
43728
 
 
43729
 
 
43730
   { set +x
 
43731
$as_echo "$at_srcdir/ovsdb-data.at:510: test-ovsdb parse-data-strings -- '[\"real\"]' '0' '1.0' '-1.25'"
 
43732
at_fn_check_prepare_trace "ovsdb-data.at:510"
 
43733
( $at_check_trace; test-ovsdb parse-data-strings -- '["real"]' '0' '1.0' '-1.25'
 
43734
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43735
at_status=$? at_failed=false
 
43736
$at_check_filter
 
43737
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43738
echo >>"$at_stdout"; $as_echo "0
 
43739
1
 
43740
-1.25
 
43741
" | \
 
43742
  $at_diff - "$at_stdout" || at_failed=:
 
43743
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:510"
 
43744
$at_failed && at_fn_log_failure
 
43745
$at_traceon; }
 
43746
 
 
43747
     set +x
 
43748
  $at_times_p && times >"$at_times_file"
 
43749
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43750
read at_status <"$at_status_file"
 
43751
#AT_STOP_599
 
43752
#AT_START_600
 
43753
at_fn_group_banner 600 'ovsdb-data.at:516' \
 
43754
  "boolean JSON datum - C" "                         " 45
 
43755
at_xfail=no
 
43756
(
 
43757
  $as_echo "600. $at_setup_line: testing $at_desc ..."
 
43758
  $at_traceon
 
43759
 
 
43760
 
 
43761
   { set +x
 
43762
$as_echo "$at_srcdir/ovsdb-data.at:516: test-ovsdb parse-data '[\"boolean\"]' '[\"set\", [true]]' '[false]' "
 
43763
at_fn_check_prepare_trace "ovsdb-data.at:516"
 
43764
( $at_check_trace; test-ovsdb parse-data '["boolean"]' '["set", [true]]' '[false]'
 
43765
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43766
at_status=$? at_failed=false
 
43767
$at_check_filter
 
43768
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43769
echo >>"$at_stdout"; $as_echo "true
 
43770
false
 
43771
" | \
 
43772
  $at_diff - "$at_stdout" || at_failed=:
 
43773
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:516"
 
43774
$at_failed && at_fn_log_failure
 
43775
$at_traceon; }
 
43776
 
 
43777
     set +x
 
43778
  $at_times_p && times >"$at_times_file"
 
43779
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43780
read at_status <"$at_status_file"
 
43781
#AT_STOP_600
 
43782
#AT_START_601
 
43783
at_fn_group_banner 601 'ovsdb-data.at:516' \
 
43784
  "boolean JSON datum - Python" "                    " 45
 
43785
at_xfail=no
 
43786
(
 
43787
  $as_echo "601. $at_setup_line: testing $at_desc ..."
 
43788
  $at_traceon
 
43789
 
 
43790
   $as_echo "ovsdb-data.at:516" >"$at_check_line_file"
 
43791
(test $HAVE_PYTHON = no) \
 
43792
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:516"
 
43793
 
 
43794
 
 
43795
   { set +x
 
43796
$as_echo "$at_srcdir/ovsdb-data.at:516: \$PYTHON \$srcdir/test-ovsdb.py parse-data '[\"boolean\"]' '[\"set\", [true]]' '[false]' "
 
43797
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-data '[\"boolean\"]' '[\"set\", [true]]' '[false]' " "ovsdb-data.at:516"
 
43798
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '["boolean"]' '["set", [true]]' '[false]'
 
43799
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43800
at_status=$? at_failed=false
 
43801
$at_check_filter
 
43802
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43803
echo >>"$at_stdout"; $as_echo "true
 
43804
false
 
43805
" | \
 
43806
  $at_diff - "$at_stdout" || at_failed=:
 
43807
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:516"
 
43808
$at_failed && at_fn_log_failure
 
43809
$at_traceon; }
 
43810
 
 
43811
     set +x
 
43812
  $at_times_p && times >"$at_times_file"
 
43813
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43814
read at_status <"$at_status_file"
 
43815
#AT_STOP_601
 
43816
#AT_START_602
 
43817
at_fn_group_banner 602 'ovsdb-data.at:521' \
 
43818
  "boolean string datum" "                           " 45
 
43819
at_xfail=no
 
43820
(
 
43821
  $as_echo "602. $at_setup_line: testing $at_desc ..."
 
43822
  $at_traceon
 
43823
 
 
43824
 
 
43825
   { set +x
 
43826
$as_echo "$at_srcdir/ovsdb-data.at:521: test-ovsdb parse-data-strings '[\"boolean\"]' 'true' 'false' "
 
43827
at_fn_check_prepare_trace "ovsdb-data.at:521"
 
43828
( $at_check_trace; test-ovsdb parse-data-strings '["boolean"]' 'true' 'false'
 
43829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43830
at_status=$? at_failed=false
 
43831
$at_check_filter
 
43832
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43833
echo >>"$at_stdout"; $as_echo "true
 
43834
false
 
43835
" | \
 
43836
  $at_diff - "$at_stdout" || at_failed=:
 
43837
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:521"
 
43838
$at_failed && at_fn_log_failure
 
43839
$at_traceon; }
 
43840
 
 
43841
     set +x
 
43842
  $at_times_p && times >"$at_times_file"
 
43843
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43844
read at_status <"$at_status_file"
 
43845
#AT_STOP_602
 
43846
#AT_START_603
 
43847
at_fn_group_banner 603 'ovsdb-data.at:526' \
 
43848
  "string JSON datum - C" "                          " 45
 
43849
at_xfail=no
 
43850
(
 
43851
  $as_echo "603. $at_setup_line: testing $at_desc ..."
 
43852
  $at_traceon
 
43853
 
 
43854
 
 
43855
   { set +x
 
43856
$as_echo "$at_srcdir/ovsdb-data.at:526: test-ovsdb parse-data '[\"string\"]' '[\"set\",[\"\"]]' '[\"true\"]' '[\"\\\"\\\\\\/\\b\\f\\n\\r\\t\"]'"
 
43857
at_fn_check_prepare_trace "ovsdb-data.at:526"
 
43858
( $at_check_trace; test-ovsdb parse-data '["string"]' '["set",[""]]' '["true"]' '["\"\\\/\b\f\n\r\t"]'
 
43859
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43860
at_status=$? at_failed=false
 
43861
$at_check_filter
 
43862
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43863
echo >>"$at_stdout"; $as_echo "\"\"
 
43864
\"true\"
 
43865
\"\\\"\\\\/\\b\\f\\n\\r\\t\"
 
43866
" | \
 
43867
  $at_diff - "$at_stdout" || at_failed=:
 
43868
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:526"
 
43869
$at_failed && at_fn_log_failure
 
43870
$at_traceon; }
 
43871
 
 
43872
     set +x
 
43873
  $at_times_p && times >"$at_times_file"
 
43874
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43875
read at_status <"$at_status_file"
 
43876
#AT_STOP_603
 
43877
#AT_START_604
 
43878
at_fn_group_banner 604 'ovsdb-data.at:526' \
 
43879
  "string JSON datum - Python" "                     " 45
 
43880
at_xfail=no
 
43881
(
 
43882
  $as_echo "604. $at_setup_line: testing $at_desc ..."
 
43883
  $at_traceon
 
43884
 
 
43885
   $as_echo "ovsdb-data.at:526" >"$at_check_line_file"
 
43886
(test $HAVE_PYTHON = no) \
 
43887
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:526"
 
43888
 
 
43889
 
 
43890
   { set +x
 
43891
$as_echo "$at_srcdir/ovsdb-data.at:526: \$PYTHON \$srcdir/test-ovsdb.py parse-data '[\"string\"]' '[\"set\",[\"\"]]' '[\"true\"]' '[\"\\\"\\\\\\/\\b\\f\\n\\r\\t\"]'"
 
43892
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-data '[\"string\"]' '[\"set\",[\"\"]]' '[\"true\"]' '[\"\\\"\\\\\\/\\b\\f\\n\\r\\t\"]'" "ovsdb-data.at:526"
 
43893
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '["string"]' '["set",[""]]' '["true"]' '["\"\\\/\b\f\n\r\t"]'
 
43894
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43895
at_status=$? at_failed=false
 
43896
$at_check_filter
 
43897
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43898
echo >>"$at_stdout"; $as_echo "\"\"
 
43899
\"true\"
 
43900
\"\\\"\\\\/\\b\\f\\n\\r\\t\"
 
43901
" | \
 
43902
  $at_diff - "$at_stdout" || at_failed=:
 
43903
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:526"
 
43904
$at_failed && at_fn_log_failure
 
43905
$at_traceon; }
 
43906
 
 
43907
     set +x
 
43908
  $at_times_p && times >"$at_times_file"
 
43909
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43910
read at_status <"$at_status_file"
 
43911
#AT_STOP_604
 
43912
#AT_START_605
 
43913
at_fn_group_banner 605 'ovsdb-data.at:532' \
 
43914
  "string string datum" "                            " 45
 
43915
at_xfail=no
 
43916
(
 
43917
  $as_echo "605. $at_setup_line: testing $at_desc ..."
 
43918
  $at_traceon
 
43919
 
 
43920
 
 
43921
   { set +x
 
43922
$as_echo "$at_srcdir/ovsdb-data.at:532: test-ovsdb parse-data-strings '[\"string\"]' '\"x\"' '\"\"' '\"true\"' '\"\\\"\\\\\\/\\b\\f\\n\\r\\t\"'"
 
43923
at_fn_check_prepare_trace "ovsdb-data.at:532"
 
43924
( $at_check_trace; test-ovsdb parse-data-strings '["string"]' '"x"' '""' '"true"' '"\"\\\/\b\f\n\r\t"'
 
43925
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43926
at_status=$? at_failed=false
 
43927
$at_check_filter
 
43928
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43929
echo >>"$at_stdout"; $as_echo "x
 
43930
\"\"
 
43931
\"true\"
 
43932
\"\\\"\\\\/\\b\\f\\n\\r\\t\"
 
43933
" | \
 
43934
  $at_diff - "$at_stdout" || at_failed=:
 
43935
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:532"
 
43936
$at_failed && at_fn_log_failure
 
43937
$at_traceon; }
 
43938
 
 
43939
     set +x
 
43940
  $at_times_p && times >"$at_times_file"
 
43941
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43942
read at_status <"$at_status_file"
 
43943
#AT_STOP_605
 
43944
#AT_START_606
 
43945
at_fn_group_banner 606 'ovsdb-data.at:541' \
 
43946
  "JSON optional boolean - C" "                      " 46
 
43947
at_xfail=no
 
43948
(
 
43949
  $as_echo "606. $at_setup_line: testing $at_desc ..."
 
43950
  $at_traceon
 
43951
 
 
43952
 
 
43953
   { set +x
 
43954
$as_echo "$at_srcdir/ovsdb-data.at:541: test-ovsdb parse-data '{\"key\": \"boolean\", \"min\": 0}' \\
 
43955
    '[true]' \\
 
43956
    '[\"set\", [false]]' \\
 
43957
    '[\"set\", []]'"
 
43958
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:541"
 
43959
( $at_check_trace; test-ovsdb parse-data '{"key": "boolean", "min": 0}' \
 
43960
    '[true]' \
 
43961
    '["set", [false]]' \
 
43962
    '["set", []]'
 
43963
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
43964
at_status=$? at_failed=false
 
43965
$at_check_filter
 
43966
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
43967
echo >>"$at_stdout"; $as_echo "true
 
43968
false
 
43969
[\"set\",[]]
 
43970
" | \
 
43971
  $at_diff - "$at_stdout" || at_failed=:
 
43972
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:541"
 
43973
$at_failed && at_fn_log_failure
 
43974
$at_traceon; }
 
43975
 
 
43976
     set +x
 
43977
  $at_times_p && times >"$at_times_file"
 
43978
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
43979
read at_status <"$at_status_file"
 
43980
#AT_STOP_606
 
43981
#AT_START_607
 
43982
at_fn_group_banner 607 'ovsdb-data.at:541' \
 
43983
  "JSON optional boolean - Python" "                 " 46
 
43984
at_xfail=no
 
43985
(
 
43986
  $as_echo "607. $at_setup_line: testing $at_desc ..."
 
43987
  $at_traceon
 
43988
 
 
43989
   $as_echo "ovsdb-data.at:541" >"$at_check_line_file"
 
43990
(test $HAVE_PYTHON = no) \
 
43991
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:541"
 
43992
 
 
43993
 
 
43994
   { set +x
 
43995
$as_echo "$at_srcdir/ovsdb-data.at:541: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"boolean\", \"min\": 0}' \\
 
43996
    '[true]' \\
 
43997
    '[\"set\", [false]]' \\
 
43998
    '[\"set\", []]'"
 
43999
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:541"
 
44000
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "boolean", "min": 0}' \
 
44001
    '[true]' \
 
44002
    '["set", [false]]' \
 
44003
    '["set", []]'
 
44004
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44005
at_status=$? at_failed=false
 
44006
$at_check_filter
 
44007
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44008
echo >>"$at_stdout"; $as_echo "true
 
44009
false
 
44010
[\"set\",[]]
 
44011
" | \
 
44012
  $at_diff - "$at_stdout" || at_failed=:
 
44013
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:541"
 
44014
$at_failed && at_fn_log_failure
 
44015
$at_traceon; }
 
44016
 
 
44017
     set +x
 
44018
  $at_times_p && times >"$at_times_file"
 
44019
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44020
read at_status <"$at_status_file"
 
44021
#AT_STOP_607
 
44022
#AT_START_608
 
44023
at_fn_group_banner 608 'ovsdb-data.at:551' \
 
44024
  "string optional boolean" "                        " 46
 
44025
at_xfail=no
 
44026
(
 
44027
  $as_echo "608. $at_setup_line: testing $at_desc ..."
 
44028
  $at_traceon
 
44029
 
 
44030
 
 
44031
   { set +x
 
44032
$as_echo "$at_srcdir/ovsdb-data.at:551: test-ovsdb parse-data-strings '{\"key\": \"boolean\", \"min\": 0}' \\
 
44033
    'true' \\
 
44034
    'false' \\
 
44035
    '[]'"
 
44036
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:551"
 
44037
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "boolean", "min": 0}' \
 
44038
    'true' \
 
44039
    'false' \
 
44040
    '[]'
 
44041
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44042
at_status=$? at_failed=false
 
44043
$at_check_filter
 
44044
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44045
echo >>"$at_stdout"; $as_echo "true
 
44046
false
 
44047
[]
 
44048
" | \
 
44049
  $at_diff - "$at_stdout" || at_failed=:
 
44050
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:551"
 
44051
$at_failed && at_fn_log_failure
 
44052
$at_traceon; }
 
44053
 
 
44054
     set +x
 
44055
  $at_times_p && times >"$at_times_file"
 
44056
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44057
read at_status <"$at_status_file"
 
44058
#AT_STOP_608
 
44059
#AT_START_609
 
44060
at_fn_group_banner 609 'ovsdb-data.at:561' \
 
44061
  "JSON set of 0 or more integers - C" "             " 46
 
44062
at_xfail=no
 
44063
(
 
44064
  $as_echo "609. $at_setup_line: testing $at_desc ..."
 
44065
  $at_traceon
 
44066
 
 
44067
 
 
44068
   { set +x
 
44069
$as_echo "$at_srcdir/ovsdb-data.at:561: test-ovsdb parse-data '{\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}' \\
 
44070
    '[\"set\", [0]]' \\
 
44071
    '[1]' \\
 
44072
    '[\"set\", [0, 1]]' \\
 
44073
    '[\"set\", [0, 1, 2]]' \\
 
44074
    '[\"set\", [0, 1, 2, 3, 4, 5]]' \\
 
44075
    '[\"set\", [0, 1, 2, 3, 4, 5, 6, 7, 8]]' \\
 
44076
    '[\"set\", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]]'"
 
44077
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:561"
 
44078
( $at_check_trace; test-ovsdb parse-data '{"key": "integer", "min": 0, "max": "unlimited"}' \
 
44079
    '["set", [0]]' \
 
44080
    '[1]' \
 
44081
    '["set", [0, 1]]' \
 
44082
    '["set", [0, 1, 2]]' \
 
44083
    '["set", [0, 1, 2, 3, 4, 5]]' \
 
44084
    '["set", [0, 1, 2, 3, 4, 5, 6, 7, 8]]' \
 
44085
    '["set", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]]'
 
44086
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44087
at_status=$? at_failed=false
 
44088
$at_check_filter
 
44089
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44090
echo >>"$at_stdout"; $as_echo "0
 
44091
1
 
44092
[\"set\",[0,1]]
 
44093
[\"set\",[0,1,2]]
 
44094
[\"set\",[0,1,2,3,4,5]]
 
44095
[\"set\",[0,1,2,3,4,5,6,7,8]]
 
44096
[\"set\",[0,1,2,3,4,5,6,7,8,9,10]]
 
44097
" | \
 
44098
  $at_diff - "$at_stdout" || at_failed=:
 
44099
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:561"
 
44100
$at_failed && at_fn_log_failure
 
44101
$at_traceon; }
 
44102
 
 
44103
     set +x
 
44104
  $at_times_p && times >"$at_times_file"
 
44105
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44106
read at_status <"$at_status_file"
 
44107
#AT_STOP_609
 
44108
#AT_START_610
 
44109
at_fn_group_banner 610 'ovsdb-data.at:561' \
 
44110
  "JSON set of 0 or more integers - Python" "        " 46
 
44111
at_xfail=no
 
44112
(
 
44113
  $as_echo "610. $at_setup_line: testing $at_desc ..."
 
44114
  $at_traceon
 
44115
 
 
44116
   $as_echo "ovsdb-data.at:561" >"$at_check_line_file"
 
44117
(test $HAVE_PYTHON = no) \
 
44118
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:561"
 
44119
 
 
44120
 
 
44121
   { set +x
 
44122
$as_echo "$at_srcdir/ovsdb-data.at:561: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}' \\
 
44123
    '[\"set\", [0]]' \\
 
44124
    '[1]' \\
 
44125
    '[\"set\", [0, 1]]' \\
 
44126
    '[\"set\", [0, 1, 2]]' \\
 
44127
    '[\"set\", [0, 1, 2, 3, 4, 5]]' \\
 
44128
    '[\"set\", [0, 1, 2, 3, 4, 5, 6, 7, 8]]' \\
 
44129
    '[\"set\", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]]'"
 
44130
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:561"
 
44131
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "integer", "min": 0, "max": "unlimited"}' \
 
44132
    '["set", [0]]' \
 
44133
    '[1]' \
 
44134
    '["set", [0, 1]]' \
 
44135
    '["set", [0, 1, 2]]' \
 
44136
    '["set", [0, 1, 2, 3, 4, 5]]' \
 
44137
    '["set", [0, 1, 2, 3, 4, 5, 6, 7, 8]]' \
 
44138
    '["set", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]]'
 
44139
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44140
at_status=$? at_failed=false
 
44141
$at_check_filter
 
44142
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44143
echo >>"$at_stdout"; $as_echo "0
 
44144
1
 
44145
[\"set\",[0,1]]
 
44146
[\"set\",[0,1,2]]
 
44147
[\"set\",[0,1,2,3,4,5]]
 
44148
[\"set\",[0,1,2,3,4,5,6,7,8]]
 
44149
[\"set\",[0,1,2,3,4,5,6,7,8,9,10]]
 
44150
" | \
 
44151
  $at_diff - "$at_stdout" || at_failed=:
 
44152
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:561"
 
44153
$at_failed && at_fn_log_failure
 
44154
$at_traceon; }
 
44155
 
 
44156
     set +x
 
44157
  $at_times_p && times >"$at_times_file"
 
44158
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44159
read at_status <"$at_status_file"
 
44160
#AT_STOP_610
 
44161
#AT_START_611
 
44162
at_fn_group_banner 611 'ovsdb-data.at:578' \
 
44163
  "string set of 0 or more integers" "               " 46
 
44164
at_xfail=no
 
44165
(
 
44166
  $as_echo "611. $at_setup_line: testing $at_desc ..."
 
44167
  $at_traceon
 
44168
 
 
44169
 
 
44170
   { set +x
 
44171
$as_echo "$at_srcdir/ovsdb-data.at:578: test-ovsdb parse-data-strings '{\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}' \\
 
44172
    '0' \\
 
44173
    '0,1' \\
 
44174
    '0, 1, 2' \\
 
44175
    '[0, 1,2, 3, 4, 5]' \\
 
44176
    '0, 1,2, 3,4, 5, 6, 7, 8' \\
 
44177
    '[0, 1, 2, 3, 4,5, 6,7, 8, 9, 10]'"
 
44178
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:578"
 
44179
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "integer", "min": 0, "max": "unlimited"}' \
 
44180
    '0' \
 
44181
    '0,1' \
 
44182
    '0, 1, 2' \
 
44183
    '[0, 1,2, 3, 4, 5]' \
 
44184
    '0, 1,2, 3,4, 5, 6, 7, 8' \
 
44185
    '[0, 1, 2, 3, 4,5, 6,7, 8, 9, 10]'
 
44186
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44187
at_status=$? at_failed=false
 
44188
$at_check_filter
 
44189
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44190
echo >>"$at_stdout"; $as_echo "[0]
 
44191
[0, 1]
 
44192
[0, 1, 2]
 
44193
[0, 1, 2, 3, 4, 5]
 
44194
[0, 1, 2, 3, 4, 5, 6, 7, 8]
 
44195
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
 
44196
" | \
 
44197
  $at_diff - "$at_stdout" || at_failed=:
 
44198
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:578"
 
44199
$at_failed && at_fn_log_failure
 
44200
$at_traceon; }
 
44201
 
 
44202
     set +x
 
44203
  $at_times_p && times >"$at_times_file"
 
44204
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44205
read at_status <"$at_status_file"
 
44206
#AT_STOP_611
 
44207
#AT_START_612
 
44208
at_fn_group_banner 612 'ovsdb-data.at:593' \
 
44209
  "JSON set of 1 to 3 uuids - C" "                   " 46
 
44210
at_xfail=no
 
44211
(
 
44212
  $as_echo "612. $at_setup_line: testing $at_desc ..."
 
44213
  $at_traceon
 
44214
 
 
44215
 
 
44216
   { set +x
 
44217
$as_echo "$at_srcdir/ovsdb-data.at:593: test-ovsdb parse-data '{\"key\": \"uuid\", \"min\": 1, \"max\": 3}' \\
 
44218
    '[\"set\", [[\"uuid\", \"550e8400-e29b-41d4-a716-446655440000\"]]]' \\
 
44219
    '[\"uuid\", \"b5078be0-7664-4299-b836-8bcc03ef941f\"]' \\
 
44220
    '[\"set\", [[\"uuid\", \"c5051240-30ff-43ed-b4b9-93cf3f050813\"],
 
44221
              [\"uuid\", \"90558331-09af-4d2f-a572-509cad2e9088\"],
 
44222
              [\"uuid\", \"550e8400-e29b-41d4-a716-446655440000\"]]]'"
 
44223
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:593"
 
44224
( $at_check_trace; test-ovsdb parse-data '{"key": "uuid", "min": 1, "max": 3}' \
 
44225
    '["set", [["uuid", "550e8400-e29b-41d4-a716-446655440000"]]]' \
 
44226
    '["uuid", "b5078be0-7664-4299-b836-8bcc03ef941f"]' \
 
44227
    '["set", [["uuid", "c5051240-30ff-43ed-b4b9-93cf3f050813"],
 
44228
              ["uuid", "90558331-09af-4d2f-a572-509cad2e9088"],
 
44229
              ["uuid", "550e8400-e29b-41d4-a716-446655440000"]]]'
 
44230
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44231
at_status=$? at_failed=false
 
44232
$at_check_filter
 
44233
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44234
echo >>"$at_stdout"; $as_echo "[\"uuid\",\"550e8400-e29b-41d4-a716-446655440000\"]
 
44235
[\"uuid\",\"b5078be0-7664-4299-b836-8bcc03ef941f\"]
 
44236
[\"set\",[[\"uuid\",\"550e8400-e29b-41d4-a716-446655440000\"],[\"uuid\",\"90558331-09af-4d2f-a572-509cad2e9088\"],[\"uuid\",\"c5051240-30ff-43ed-b4b9-93cf3f050813\"]]]
 
44237
" | \
 
44238
  $at_diff - "$at_stdout" || at_failed=:
 
44239
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:593"
 
44240
$at_failed && at_fn_log_failure
 
44241
$at_traceon; }
 
44242
 
 
44243
     set +x
 
44244
  $at_times_p && times >"$at_times_file"
 
44245
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44246
read at_status <"$at_status_file"
 
44247
#AT_STOP_612
 
44248
#AT_START_613
 
44249
at_fn_group_banner 613 'ovsdb-data.at:593' \
 
44250
  "JSON set of 1 to 3 uuids - Python" "              " 46
 
44251
at_xfail=no
 
44252
(
 
44253
  $as_echo "613. $at_setup_line: testing $at_desc ..."
 
44254
  $at_traceon
 
44255
 
 
44256
   $as_echo "ovsdb-data.at:593" >"$at_check_line_file"
 
44257
(test $HAVE_PYTHON = no) \
 
44258
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:593"
 
44259
 
 
44260
 
 
44261
   { set +x
 
44262
$as_echo "$at_srcdir/ovsdb-data.at:593: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"uuid\", \"min\": 1, \"max\": 3}' \\
 
44263
    '[\"set\", [[\"uuid\", \"550e8400-e29b-41d4-a716-446655440000\"]]]' \\
 
44264
    '[\"uuid\", \"b5078be0-7664-4299-b836-8bcc03ef941f\"]' \\
 
44265
    '[\"set\", [[\"uuid\", \"c5051240-30ff-43ed-b4b9-93cf3f050813\"],
 
44266
              [\"uuid\", \"90558331-09af-4d2f-a572-509cad2e9088\"],
 
44267
              [\"uuid\", \"550e8400-e29b-41d4-a716-446655440000\"]]]'"
 
44268
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:593"
 
44269
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "uuid", "min": 1, "max": 3}' \
 
44270
    '["set", [["uuid", "550e8400-e29b-41d4-a716-446655440000"]]]' \
 
44271
    '["uuid", "b5078be0-7664-4299-b836-8bcc03ef941f"]' \
 
44272
    '["set", [["uuid", "c5051240-30ff-43ed-b4b9-93cf3f050813"],
 
44273
              ["uuid", "90558331-09af-4d2f-a572-509cad2e9088"],
 
44274
              ["uuid", "550e8400-e29b-41d4-a716-446655440000"]]]'
 
44275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44276
at_status=$? at_failed=false
 
44277
$at_check_filter
 
44278
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44279
echo >>"$at_stdout"; $as_echo "[\"uuid\",\"550e8400-e29b-41d4-a716-446655440000\"]
 
44280
[\"uuid\",\"b5078be0-7664-4299-b836-8bcc03ef941f\"]
 
44281
[\"set\",[[\"uuid\",\"550e8400-e29b-41d4-a716-446655440000\"],[\"uuid\",\"90558331-09af-4d2f-a572-509cad2e9088\"],[\"uuid\",\"c5051240-30ff-43ed-b4b9-93cf3f050813\"]]]
 
44282
" | \
 
44283
  $at_diff - "$at_stdout" || at_failed=:
 
44284
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:593"
 
44285
$at_failed && at_fn_log_failure
 
44286
$at_traceon; }
 
44287
 
 
44288
     set +x
 
44289
  $at_times_p && times >"$at_times_file"
 
44290
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44291
read at_status <"$at_status_file"
 
44292
#AT_STOP_613
 
44293
#AT_START_614
 
44294
at_fn_group_banner 614 'ovsdb-data.at:604' \
 
44295
  "string set of 1 to 3 uuids" "                     " 46
 
44296
at_xfail=no
 
44297
(
 
44298
  $as_echo "614. $at_setup_line: testing $at_desc ..."
 
44299
  $at_traceon
 
44300
 
 
44301
 
 
44302
   { set +x
 
44303
$as_echo "$at_srcdir/ovsdb-data.at:604: test-ovsdb parse-data-strings '{\"key\": \"uuid\", \"min\": 1, \"max\": 3}' \\
 
44304
    '[550e8400-e29b-41d4-a716-446655440000]' \\
 
44305
    '[c5051240-30ff-43ed-b4b9-93cf3f050813,
 
44306
      90558331-09af-4d2f-a572-509cad2e9088,
 
44307
      550e8400-e29b-41d4-a716-446655440000]'"
 
44308
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:604"
 
44309
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "uuid", "min": 1, "max": 3}' \
 
44310
    '[550e8400-e29b-41d4-a716-446655440000]' \
 
44311
    '[c5051240-30ff-43ed-b4b9-93cf3f050813,
 
44312
      90558331-09af-4d2f-a572-509cad2e9088,
 
44313
      550e8400-e29b-41d4-a716-446655440000]'
 
44314
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44315
at_status=$? at_failed=false
 
44316
$at_check_filter
 
44317
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44318
echo >>"$at_stdout"; $as_echo "[550e8400-e29b-41d4-a716-446655440000]
 
44319
[550e8400-e29b-41d4-a716-446655440000, 90558331-09af-4d2f-a572-509cad2e9088, c5051240-30ff-43ed-b4b9-93cf3f050813]
 
44320
" | \
 
44321
  $at_diff - "$at_stdout" || at_failed=:
 
44322
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:604"
 
44323
$at_failed && at_fn_log_failure
 
44324
$at_traceon; }
 
44325
 
 
44326
     set +x
 
44327
  $at_times_p && times >"$at_times_file"
 
44328
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44329
read at_status <"$at_status_file"
 
44330
#AT_STOP_614
 
44331
#AT_START_615
 
44332
at_fn_group_banner 615 'ovsdb-data.at:613' \
 
44333
  "JSON set of 0 to 3 strings - C" "                 " 46
 
44334
at_xfail=no
 
44335
(
 
44336
  $as_echo "615. $at_setup_line: testing $at_desc ..."
 
44337
  $at_traceon
 
44338
 
 
44339
 
 
44340
   { set +x
 
44341
$as_echo "$at_srcdir/ovsdb-data.at:613: test-ovsdb parse-data '{\"key\": \"string\", \"min\": 0, \"max\": 3}' \\
 
44342
    '[\"set\", []]' \\
 
44343
    '[\"a longer string\"]' \\
 
44344
    '[\"set\", [\"a relatively long string\"]]' \\
 
44345
    '[\"set\", [\"short string\", \"a relatively long string\"]]' \\
 
44346
    '[\"set\", [\"zzz\", \"short string\", \"a relatively long string\"]]'"
 
44347
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:613"
 
44348
( $at_check_trace; test-ovsdb parse-data '{"key": "string", "min": 0, "max": 3}' \
 
44349
    '["set", []]' \
 
44350
    '["a longer string"]' \
 
44351
    '["set", ["a relatively long string"]]' \
 
44352
    '["set", ["short string", "a relatively long string"]]' \
 
44353
    '["set", ["zzz", "short string", "a relatively long string"]]'
 
44354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44355
at_status=$? at_failed=false
 
44356
$at_check_filter
 
44357
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44358
echo >>"$at_stdout"; $as_echo "[\"set\",[]]
 
44359
\"a longer string\"
 
44360
\"a relatively long string\"
 
44361
[\"set\",[\"a relatively long string\",\"short string\"]]
 
44362
[\"set\",[\"a relatively long string\",\"short string\",\"zzz\"]]
 
44363
" | \
 
44364
  $at_diff - "$at_stdout" || at_failed=:
 
44365
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:613"
 
44366
$at_failed && at_fn_log_failure
 
44367
$at_traceon; }
 
44368
 
 
44369
     set +x
 
44370
  $at_times_p && times >"$at_times_file"
 
44371
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44372
read at_status <"$at_status_file"
 
44373
#AT_STOP_615
 
44374
#AT_START_616
 
44375
at_fn_group_banner 616 'ovsdb-data.at:613' \
 
44376
  "JSON set of 0 to 3 strings - Python" "            " 46
 
44377
at_xfail=no
 
44378
(
 
44379
  $as_echo "616. $at_setup_line: testing $at_desc ..."
 
44380
  $at_traceon
 
44381
 
 
44382
   $as_echo "ovsdb-data.at:613" >"$at_check_line_file"
 
44383
(test $HAVE_PYTHON = no) \
 
44384
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:613"
 
44385
 
 
44386
 
 
44387
   { set +x
 
44388
$as_echo "$at_srcdir/ovsdb-data.at:613: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"string\", \"min\": 0, \"max\": 3}' \\
 
44389
    '[\"set\", []]' \\
 
44390
    '[\"a longer string\"]' \\
 
44391
    '[\"set\", [\"a relatively long string\"]]' \\
 
44392
    '[\"set\", [\"short string\", \"a relatively long string\"]]' \\
 
44393
    '[\"set\", [\"zzz\", \"short string\", \"a relatively long string\"]]'"
 
44394
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:613"
 
44395
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "string", "min": 0, "max": 3}' \
 
44396
    '["set", []]' \
 
44397
    '["a longer string"]' \
 
44398
    '["set", ["a relatively long string"]]' \
 
44399
    '["set", ["short string", "a relatively long string"]]' \
 
44400
    '["set", ["zzz", "short string", "a relatively long string"]]'
 
44401
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44402
at_status=$? at_failed=false
 
44403
$at_check_filter
 
44404
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44405
echo >>"$at_stdout"; $as_echo "[\"set\",[]]
 
44406
\"a longer string\"
 
44407
\"a relatively long string\"
 
44408
[\"set\",[\"a relatively long string\",\"short string\"]]
 
44409
[\"set\",[\"a relatively long string\",\"short string\",\"zzz\"]]
 
44410
" | \
 
44411
  $at_diff - "$at_stdout" || at_failed=:
 
44412
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:613"
 
44413
$at_failed && at_fn_log_failure
 
44414
$at_traceon; }
 
44415
 
 
44416
     set +x
 
44417
  $at_times_p && times >"$at_times_file"
 
44418
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44419
read at_status <"$at_status_file"
 
44420
#AT_STOP_616
 
44421
#AT_START_617
 
44422
at_fn_group_banner 617 'ovsdb-data.at:626' \
 
44423
  "string set of 0 to 3 strings" "                   " 46
 
44424
at_xfail=no
 
44425
(
 
44426
  $as_echo "617. $at_setup_line: testing $at_desc ..."
 
44427
  $at_traceon
 
44428
 
 
44429
 
 
44430
   { set +x
 
44431
$as_echo "$at_srcdir/ovsdb-data.at:626: test-ovsdb parse-data-strings '{\"key\": \"string\", \"min\": 0, \"max\": 3}' \\
 
44432
    '[]' \\
 
44433
    '\"a relatively long string\"' \\
 
44434
    '[\"short string\", \"a relatively long string\"]' \\
 
44435
    '\"zzz\",\"short string\",\"a relatively long string\"'"
 
44436
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:626"
 
44437
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "string", "min": 0, "max": 3}' \
 
44438
    '[]' \
 
44439
    '"a relatively long string"' \
 
44440
    '["short string", "a relatively long string"]' \
 
44441
    '"zzz","short string","a relatively long string"'
 
44442
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44443
at_status=$? at_failed=false
 
44444
$at_check_filter
 
44445
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
44446
echo >>"$at_stdout"; $as_echo "[]
 
44447
[\"a relatively long string\"]
 
44448
[\"a relatively long string\", \"short string\"]
 
44449
[\"a relatively long string\", \"short string\", zzz]
 
44450
" | \
 
44451
  $at_diff - "$at_stdout" || at_failed=:
 
44452
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:626"
 
44453
$at_failed && at_fn_log_failure
 
44454
$at_traceon; }
 
44455
 
 
44456
     set +x
 
44457
  $at_times_p && times >"$at_times_file"
 
44458
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44459
read at_status <"$at_status_file"
 
44460
#AT_STOP_617
 
44461
#AT_START_618
 
44462
at_fn_group_banner 618 'ovsdb-data.at:637' \
 
44463
  "duplicate boolean not allowed in JSON set - C" "  " 46
 
44464
at_xfail=no
 
44465
(
 
44466
  $as_echo "618. $at_setup_line: testing $at_desc ..."
 
44467
  $at_traceon
 
44468
 
 
44469
 
 
44470
   { set +x
 
44471
$as_echo "$at_srcdir/ovsdb-data.at:637: test-ovsdb parse-data '{\"key\": \"boolean\", \"max\": 5}' '[\"set\", [true, true]]'"
 
44472
at_fn_check_prepare_trace "ovsdb-data.at:637"
 
44473
( $at_check_trace; test-ovsdb parse-data '{"key": "boolean", "max": 5}' '["set", [true, true]]'
 
44474
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44475
at_status=$? at_failed=false
 
44476
$at_check_filter
 
44477
echo stderr:; tee stderr <"$at_stderr"
 
44478
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44479
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:637"
 
44480
$at_failed && at_fn_log_failure
 
44481
$at_traceon; }
 
44482
 
 
44483
 
 
44484
   { set +x
 
44485
$as_echo "$at_srcdir/ovsdb-data.at:637: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
44486
      then
 
44487
        :
 
44488
      else
 
44489
        exit 99
 
44490
      fi"
 
44491
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:637"
 
44492
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
44493
      then
 
44494
        :
 
44495
      else
 
44496
        exit 99
 
44497
      fi
 
44498
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44499
at_status=$? at_failed=false
 
44500
$at_check_filter
 
44501
echo stderr:; cat "$at_stderr"
 
44502
echo stdout:; cat "$at_stdout"
 
44503
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:637"
 
44504
$at_failed && at_fn_log_failure
 
44505
$at_traceon; }
 
44506
 
 
44507
     set +x
 
44508
  $at_times_p && times >"$at_times_file"
 
44509
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44510
read at_status <"$at_status_file"
 
44511
#AT_STOP_618
 
44512
#AT_START_619
 
44513
at_fn_group_banner 619 'ovsdb-data.at:637' \
 
44514
  "duplicate boolean not allowed in JSON set - Python" "" 46
 
44515
at_xfail=no
 
44516
(
 
44517
  $as_echo "619. $at_setup_line: testing $at_desc ..."
 
44518
  $at_traceon
 
44519
 
 
44520
   $as_echo "ovsdb-data.at:637" >"$at_check_line_file"
 
44521
(test $HAVE_PYTHON = no) \
 
44522
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:637"
 
44523
 
 
44524
   { set +x
 
44525
$as_echo "$at_srcdir/ovsdb-data.at:637: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"boolean\", \"max\": 5}' '[\"set\", [true, true]]'"
 
44526
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-data '{\"key\": \"boolean\", \"max\": 5}' '[\"set\", [true, true]]'" "ovsdb-data.at:637"
 
44527
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "boolean", "max": 5}' '["set", [true, true]]'
 
44528
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44529
at_status=$? at_failed=false
 
44530
$at_check_filter
 
44531
echo stderr:; tee stderr <"$at_stderr"
 
44532
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44533
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:637"
 
44534
$at_failed && at_fn_log_failure
 
44535
$at_traceon; }
 
44536
 
 
44537
 
 
44538
   { set +x
 
44539
$as_echo "$at_srcdir/ovsdb-data.at:637: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
44540
      then
 
44541
        :
 
44542
      else
 
44543
        exit 99
 
44544
      fi"
 
44545
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:637"
 
44546
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
44547
      then
 
44548
        :
 
44549
      else
 
44550
        exit 99
 
44551
      fi
 
44552
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44553
at_status=$? at_failed=false
 
44554
$at_check_filter
 
44555
echo stderr:; cat "$at_stderr"
 
44556
echo stdout:; cat "$at_stdout"
 
44557
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:637"
 
44558
$at_failed && at_fn_log_failure
 
44559
$at_traceon; }
 
44560
 
 
44561
     set +x
 
44562
  $at_times_p && times >"$at_times_file"
 
44563
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44564
read at_status <"$at_status_file"
 
44565
#AT_STOP_619
 
44566
#AT_START_620
 
44567
at_fn_group_banner 620 'ovsdb-data.at:641' \
 
44568
  "duplicate boolean not allowed in string set" "    " 46
 
44569
at_xfail=no
 
44570
(
 
44571
  $as_echo "620. $at_setup_line: testing $at_desc ..."
 
44572
  $at_traceon
 
44573
 
 
44574
 
 
44575
   { set +x
 
44576
$as_echo "$at_srcdir/ovsdb-data.at:641: test-ovsdb parse-data-strings '{\"key\": \"boolean\", \"max\": 5}' 'true, true'"
 
44577
at_fn_check_prepare_trace "ovsdb-data.at:641"
 
44578
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "boolean", "max": 5}' 'true, true'
 
44579
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44580
at_status=$? at_failed=false
 
44581
$at_check_filter
 
44582
echo stderr:; tee stderr <"$at_stderr"
 
44583
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44584
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:641"
 
44585
$at_failed && at_fn_log_failure
 
44586
$at_traceon; }
 
44587
 
 
44588
 
 
44589
   { set +x
 
44590
$as_echo "$at_srcdir/ovsdb-data.at:641: if grep -F -e \"set contains duplicate value\" stderr
 
44591
      then
 
44592
        :
 
44593
      else
 
44594
        exit 99
 
44595
      fi"
 
44596
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:641"
 
44597
( $at_check_trace; if grep -F -e "set contains duplicate value" stderr
 
44598
      then
 
44599
        :
 
44600
      else
 
44601
        exit 99
 
44602
      fi
 
44603
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44604
at_status=$? at_failed=false
 
44605
$at_check_filter
 
44606
echo stderr:; cat "$at_stderr"
 
44607
echo stdout:; cat "$at_stdout"
 
44608
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:641"
 
44609
$at_failed && at_fn_log_failure
 
44610
$at_traceon; }
 
44611
 
 
44612
     set +x
 
44613
  $at_times_p && times >"$at_times_file"
 
44614
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44615
read at_status <"$at_status_file"
 
44616
#AT_STOP_620
 
44617
#AT_START_621
 
44618
at_fn_group_banner 621 'ovsdb-data.at:645' \
 
44619
  "duplicate integer not allowed in JSON set - C" "  " 46
 
44620
at_xfail=no
 
44621
(
 
44622
  $as_echo "621. $at_setup_line: testing $at_desc ..."
 
44623
  $at_traceon
 
44624
 
 
44625
 
 
44626
   { set +x
 
44627
$as_echo "$at_srcdir/ovsdb-data.at:645: test-ovsdb parse-data '{\"key\": \"integer\", \"max\": 5}' '[\"set\", [1, 2, 3, 1]]'"
 
44628
at_fn_check_prepare_trace "ovsdb-data.at:645"
 
44629
( $at_check_trace; test-ovsdb parse-data '{"key": "integer", "max": 5}' '["set", [1, 2, 3, 1]]'
 
44630
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44631
at_status=$? at_failed=false
 
44632
$at_check_filter
 
44633
echo stderr:; tee stderr <"$at_stderr"
 
44634
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44635
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:645"
 
44636
$at_failed && at_fn_log_failure
 
44637
$at_traceon; }
 
44638
 
 
44639
 
 
44640
   { set +x
 
44641
$as_echo "$at_srcdir/ovsdb-data.at:645: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
44642
      then
 
44643
        :
 
44644
      else
 
44645
        exit 99
 
44646
      fi"
 
44647
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:645"
 
44648
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
44649
      then
 
44650
        :
 
44651
      else
 
44652
        exit 99
 
44653
      fi
 
44654
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44655
at_status=$? at_failed=false
 
44656
$at_check_filter
 
44657
echo stderr:; cat "$at_stderr"
 
44658
echo stdout:; cat "$at_stdout"
 
44659
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:645"
 
44660
$at_failed && at_fn_log_failure
 
44661
$at_traceon; }
 
44662
 
 
44663
     set +x
 
44664
  $at_times_p && times >"$at_times_file"
 
44665
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44666
read at_status <"$at_status_file"
 
44667
#AT_STOP_621
 
44668
#AT_START_622
 
44669
at_fn_group_banner 622 'ovsdb-data.at:645' \
 
44670
  "duplicate integer not allowed in JSON set - Python" "" 46
 
44671
at_xfail=no
 
44672
(
 
44673
  $as_echo "622. $at_setup_line: testing $at_desc ..."
 
44674
  $at_traceon
 
44675
 
 
44676
   $as_echo "ovsdb-data.at:645" >"$at_check_line_file"
 
44677
(test $HAVE_PYTHON = no) \
 
44678
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:645"
 
44679
 
 
44680
   { set +x
 
44681
$as_echo "$at_srcdir/ovsdb-data.at:645: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"integer\", \"max\": 5}' '[\"set\", [1, 2, 3, 1]]'"
 
44682
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-data '{\"key\": \"integer\", \"max\": 5}' '[\"set\", [1, 2, 3, 1]]'" "ovsdb-data.at:645"
 
44683
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "integer", "max": 5}' '["set", [1, 2, 3, 1]]'
 
44684
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44685
at_status=$? at_failed=false
 
44686
$at_check_filter
 
44687
echo stderr:; tee stderr <"$at_stderr"
 
44688
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44689
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:645"
 
44690
$at_failed && at_fn_log_failure
 
44691
$at_traceon; }
 
44692
 
 
44693
 
 
44694
   { set +x
 
44695
$as_echo "$at_srcdir/ovsdb-data.at:645: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
44696
      then
 
44697
        :
 
44698
      else
 
44699
        exit 99
 
44700
      fi"
 
44701
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:645"
 
44702
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
44703
      then
 
44704
        :
 
44705
      else
 
44706
        exit 99
 
44707
      fi
 
44708
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44709
at_status=$? at_failed=false
 
44710
$at_check_filter
 
44711
echo stderr:; cat "$at_stderr"
 
44712
echo stdout:; cat "$at_stdout"
 
44713
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:645"
 
44714
$at_failed && at_fn_log_failure
 
44715
$at_traceon; }
 
44716
 
 
44717
     set +x
 
44718
  $at_times_p && times >"$at_times_file"
 
44719
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44720
read at_status <"$at_status_file"
 
44721
#AT_STOP_622
 
44722
#AT_START_623
 
44723
at_fn_group_banner 623 'ovsdb-data.at:649' \
 
44724
  "duplicate integer not allowed in string set" "    " 46
 
44725
at_xfail=no
 
44726
(
 
44727
  $as_echo "623. $at_setup_line: testing $at_desc ..."
 
44728
  $at_traceon
 
44729
 
 
44730
 
 
44731
   { set +x
 
44732
$as_echo "$at_srcdir/ovsdb-data.at:649: test-ovsdb parse-data-strings '{\"key\": \"integer\", \"max\": 5}' '[1, 2, 3, 1]'"
 
44733
at_fn_check_prepare_trace "ovsdb-data.at:649"
 
44734
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "integer", "max": 5}' '[1, 2, 3, 1]'
 
44735
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44736
at_status=$? at_failed=false
 
44737
$at_check_filter
 
44738
echo stderr:; tee stderr <"$at_stderr"
 
44739
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44740
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:649"
 
44741
$at_failed && at_fn_log_failure
 
44742
$at_traceon; }
 
44743
 
 
44744
 
 
44745
   { set +x
 
44746
$as_echo "$at_srcdir/ovsdb-data.at:649: if grep -F -e \"set contains duplicate value\" stderr
 
44747
      then
 
44748
        :
 
44749
      else
 
44750
        exit 99
 
44751
      fi"
 
44752
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:649"
 
44753
( $at_check_trace; if grep -F -e "set contains duplicate value" stderr
 
44754
      then
 
44755
        :
 
44756
      else
 
44757
        exit 99
 
44758
      fi
 
44759
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44760
at_status=$? at_failed=false
 
44761
$at_check_filter
 
44762
echo stderr:; cat "$at_stderr"
 
44763
echo stdout:; cat "$at_stdout"
 
44764
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:649"
 
44765
$at_failed && at_fn_log_failure
 
44766
$at_traceon; }
 
44767
 
 
44768
     set +x
 
44769
  $at_times_p && times >"$at_times_file"
 
44770
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44771
read at_status <"$at_status_file"
 
44772
#AT_STOP_623
 
44773
#AT_START_624
 
44774
at_fn_group_banner 624 'ovsdb-data.at:653' \
 
44775
  "duplicate real not allowed in JSON set - C" "     " 46
 
44776
at_xfail=no
 
44777
(
 
44778
  $as_echo "624. $at_setup_line: testing $at_desc ..."
 
44779
  $at_traceon
 
44780
 
 
44781
 
 
44782
   { set +x
 
44783
$as_echo "$at_srcdir/ovsdb-data.at:653: test-ovsdb parse-data '{\"key\": \"real\", \"max\": 5}' '[\"set\", [0.0, -0.0]]'"
 
44784
at_fn_check_prepare_trace "ovsdb-data.at:653"
 
44785
( $at_check_trace; test-ovsdb parse-data '{"key": "real", "max": 5}' '["set", [0.0, -0.0]]'
 
44786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44787
at_status=$? at_failed=false
 
44788
$at_check_filter
 
44789
echo stderr:; tee stderr <"$at_stderr"
 
44790
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44791
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:653"
 
44792
$at_failed && at_fn_log_failure
 
44793
$at_traceon; }
 
44794
 
 
44795
 
 
44796
   { set +x
 
44797
$as_echo "$at_srcdir/ovsdb-data.at:653: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
44798
      then
 
44799
        :
 
44800
      else
 
44801
        exit 99
 
44802
      fi"
 
44803
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:653"
 
44804
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
44805
      then
 
44806
        :
 
44807
      else
 
44808
        exit 99
 
44809
      fi
 
44810
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44811
at_status=$? at_failed=false
 
44812
$at_check_filter
 
44813
echo stderr:; cat "$at_stderr"
 
44814
echo stdout:; cat "$at_stdout"
 
44815
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:653"
 
44816
$at_failed && at_fn_log_failure
 
44817
$at_traceon; }
 
44818
 
 
44819
     set +x
 
44820
  $at_times_p && times >"$at_times_file"
 
44821
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44822
read at_status <"$at_status_file"
 
44823
#AT_STOP_624
 
44824
#AT_START_625
 
44825
at_fn_group_banner 625 'ovsdb-data.at:653' \
 
44826
  "duplicate real not allowed in JSON set - Python" "" 46
 
44827
at_xfail=no
 
44828
(
 
44829
  $as_echo "625. $at_setup_line: testing $at_desc ..."
 
44830
  $at_traceon
 
44831
 
 
44832
   $as_echo "ovsdb-data.at:653" >"$at_check_line_file"
 
44833
(test $HAVE_PYTHON = no) \
 
44834
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:653"
 
44835
 
 
44836
   { set +x
 
44837
$as_echo "$at_srcdir/ovsdb-data.at:653: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"real\", \"max\": 5}' '[\"set\", [0.0, -0.0]]'"
 
44838
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-data '{\"key\": \"real\", \"max\": 5}' '[\"set\", [0.0, -0.0]]'" "ovsdb-data.at:653"
 
44839
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "real", "max": 5}' '["set", [0.0, -0.0]]'
 
44840
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44841
at_status=$? at_failed=false
 
44842
$at_check_filter
 
44843
echo stderr:; tee stderr <"$at_stderr"
 
44844
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44845
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:653"
 
44846
$at_failed && at_fn_log_failure
 
44847
$at_traceon; }
 
44848
 
 
44849
 
 
44850
   { set +x
 
44851
$as_echo "$at_srcdir/ovsdb-data.at:653: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
44852
      then
 
44853
        :
 
44854
      else
 
44855
        exit 99
 
44856
      fi"
 
44857
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:653"
 
44858
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
44859
      then
 
44860
        :
 
44861
      else
 
44862
        exit 99
 
44863
      fi
 
44864
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44865
at_status=$? at_failed=false
 
44866
$at_check_filter
 
44867
echo stderr:; cat "$at_stderr"
 
44868
echo stdout:; cat "$at_stdout"
 
44869
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:653"
 
44870
$at_failed && at_fn_log_failure
 
44871
$at_traceon; }
 
44872
 
 
44873
     set +x
 
44874
  $at_times_p && times >"$at_times_file"
 
44875
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44876
read at_status <"$at_status_file"
 
44877
#AT_STOP_625
 
44878
#AT_START_626
 
44879
at_fn_group_banner 626 'ovsdb-data.at:657' \
 
44880
  "duplicate real not allowed in string set" "       " 46
 
44881
at_xfail=no
 
44882
(
 
44883
  $as_echo "626. $at_setup_line: testing $at_desc ..."
 
44884
  $at_traceon
 
44885
 
 
44886
 
 
44887
   { set +x
 
44888
$as_echo "$at_srcdir/ovsdb-data.at:657: test-ovsdb parse-data-strings '{\"key\": \"real\", \"max\": 5}' '0.0, -0.0'"
 
44889
at_fn_check_prepare_trace "ovsdb-data.at:657"
 
44890
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "real", "max": 5}' '0.0, -0.0'
 
44891
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44892
at_status=$? at_failed=false
 
44893
$at_check_filter
 
44894
echo stderr:; tee stderr <"$at_stderr"
 
44895
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44896
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:657"
 
44897
$at_failed && at_fn_log_failure
 
44898
$at_traceon; }
 
44899
 
 
44900
 
 
44901
   { set +x
 
44902
$as_echo "$at_srcdir/ovsdb-data.at:657: if grep -F -e \"set contains duplicate value\" stderr
 
44903
      then
 
44904
        :
 
44905
      else
 
44906
        exit 99
 
44907
      fi"
 
44908
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:657"
 
44909
( $at_check_trace; if grep -F -e "set contains duplicate value" stderr
 
44910
      then
 
44911
        :
 
44912
      else
 
44913
        exit 99
 
44914
      fi
 
44915
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44916
at_status=$? at_failed=false
 
44917
$at_check_filter
 
44918
echo stderr:; cat "$at_stderr"
 
44919
echo stdout:; cat "$at_stdout"
 
44920
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:657"
 
44921
$at_failed && at_fn_log_failure
 
44922
$at_traceon; }
 
44923
 
 
44924
     set +x
 
44925
  $at_times_p && times >"$at_times_file"
 
44926
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44927
read at_status <"$at_status_file"
 
44928
#AT_STOP_626
 
44929
#AT_START_627
 
44930
at_fn_group_banner 627 'ovsdb-data.at:661' \
 
44931
  "duplicate string not allowed in JSON set - C" "   " 46
 
44932
at_xfail=no
 
44933
(
 
44934
  $as_echo "627. $at_setup_line: testing $at_desc ..."
 
44935
  $at_traceon
 
44936
 
 
44937
 
 
44938
   { set +x
 
44939
$as_echo "$at_srcdir/ovsdb-data.at:661: test-ovsdb parse-data '{\"key\": \"string\", \"max\": 5}' '[\"set\", [\"asdf\", \"ASDF\", \"asdf\"]]'"
 
44940
at_fn_check_prepare_trace "ovsdb-data.at:661"
 
44941
( $at_check_trace; test-ovsdb parse-data '{"key": "string", "max": 5}' '["set", ["asdf", "ASDF", "asdf"]]'
 
44942
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44943
at_status=$? at_failed=false
 
44944
$at_check_filter
 
44945
echo stderr:; tee stderr <"$at_stderr"
 
44946
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
44947
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:661"
 
44948
$at_failed && at_fn_log_failure
 
44949
$at_traceon; }
 
44950
 
 
44951
 
 
44952
   { set +x
 
44953
$as_echo "$at_srcdir/ovsdb-data.at:661: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
44954
      then
 
44955
        :
 
44956
      else
 
44957
        exit 99
 
44958
      fi"
 
44959
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:661"
 
44960
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
44961
      then
 
44962
        :
 
44963
      else
 
44964
        exit 99
 
44965
      fi
 
44966
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44967
at_status=$? at_failed=false
 
44968
$at_check_filter
 
44969
echo stderr:; cat "$at_stderr"
 
44970
echo stdout:; cat "$at_stdout"
 
44971
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:661"
 
44972
$at_failed && at_fn_log_failure
 
44973
$at_traceon; }
 
44974
 
 
44975
     set +x
 
44976
  $at_times_p && times >"$at_times_file"
 
44977
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
44978
read at_status <"$at_status_file"
 
44979
#AT_STOP_627
 
44980
#AT_START_628
 
44981
at_fn_group_banner 628 'ovsdb-data.at:661' \
 
44982
  "duplicate string not allowed in JSON set - Python" "" 46
 
44983
at_xfail=no
 
44984
(
 
44985
  $as_echo "628. $at_setup_line: testing $at_desc ..."
 
44986
  $at_traceon
 
44987
 
 
44988
   $as_echo "ovsdb-data.at:661" >"$at_check_line_file"
 
44989
(test $HAVE_PYTHON = no) \
 
44990
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:661"
 
44991
 
 
44992
   { set +x
 
44993
$as_echo "$at_srcdir/ovsdb-data.at:661: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"string\", \"max\": 5}' '[\"set\", [\"asdf\", \"ASDF\", \"asdf\"]]'"
 
44994
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-data '{\"key\": \"string\", \"max\": 5}' '[\"set\", [\"asdf\", \"ASDF\", \"asdf\"]]'" "ovsdb-data.at:661"
 
44995
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "string", "max": 5}' '["set", ["asdf", "ASDF", "asdf"]]'
 
44996
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
44997
at_status=$? at_failed=false
 
44998
$at_check_filter
 
44999
echo stderr:; tee stderr <"$at_stderr"
 
45000
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
45001
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:661"
 
45002
$at_failed && at_fn_log_failure
 
45003
$at_traceon; }
 
45004
 
 
45005
 
 
45006
   { set +x
 
45007
$as_echo "$at_srcdir/ovsdb-data.at:661: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
45008
      then
 
45009
        :
 
45010
      else
 
45011
        exit 99
 
45012
      fi"
 
45013
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:661"
 
45014
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
45015
      then
 
45016
        :
 
45017
      else
 
45018
        exit 99
 
45019
      fi
 
45020
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45021
at_status=$? at_failed=false
 
45022
$at_check_filter
 
45023
echo stderr:; cat "$at_stderr"
 
45024
echo stdout:; cat "$at_stdout"
 
45025
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:661"
 
45026
$at_failed && at_fn_log_failure
 
45027
$at_traceon; }
 
45028
 
 
45029
     set +x
 
45030
  $at_times_p && times >"$at_times_file"
 
45031
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45032
read at_status <"$at_status_file"
 
45033
#AT_STOP_628
 
45034
#AT_START_629
 
45035
at_fn_group_banner 629 'ovsdb-data.at:665' \
 
45036
  "duplicate string not allowed in string set" "     " 46
 
45037
at_xfail=no
 
45038
(
 
45039
  $as_echo "629. $at_setup_line: testing $at_desc ..."
 
45040
  $at_traceon
 
45041
 
 
45042
 
 
45043
   { set +x
 
45044
$as_echo "$at_srcdir/ovsdb-data.at:665: test-ovsdb parse-data-strings '{\"key\": \"string\", \"max\": 5}' 'asdf, ASDF, \"asdf\"'"
 
45045
at_fn_check_prepare_trace "ovsdb-data.at:665"
 
45046
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "string", "max": 5}' 'asdf, ASDF, "asdf"'
 
45047
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45048
at_status=$? at_failed=false
 
45049
$at_check_filter
 
45050
echo stderr:; tee stderr <"$at_stderr"
 
45051
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
45052
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:665"
 
45053
$at_failed && at_fn_log_failure
 
45054
$at_traceon; }
 
45055
 
 
45056
 
 
45057
   { set +x
 
45058
$as_echo "$at_srcdir/ovsdb-data.at:665: if grep -F -e \"set contains duplicate value\" stderr
 
45059
      then
 
45060
        :
 
45061
      else
 
45062
        exit 99
 
45063
      fi"
 
45064
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:665"
 
45065
( $at_check_trace; if grep -F -e "set contains duplicate value" stderr
 
45066
      then
 
45067
        :
 
45068
      else
 
45069
        exit 99
 
45070
      fi
 
45071
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45072
at_status=$? at_failed=false
 
45073
$at_check_filter
 
45074
echo stderr:; cat "$at_stderr"
 
45075
echo stdout:; cat "$at_stdout"
 
45076
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:665"
 
45077
$at_failed && at_fn_log_failure
 
45078
$at_traceon; }
 
45079
 
 
45080
     set +x
 
45081
  $at_times_p && times >"$at_times_file"
 
45082
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45083
read at_status <"$at_status_file"
 
45084
#AT_STOP_629
 
45085
#AT_START_630
 
45086
at_fn_group_banner 630 'ovsdb-data.at:669' \
 
45087
  "duplicate uuid not allowed in JSON set - C" "     " 46
 
45088
at_xfail=no
 
45089
(
 
45090
  $as_echo "630. $at_setup_line: testing $at_desc ..."
 
45091
  $at_traceon
 
45092
 
 
45093
 
 
45094
   { set +x
 
45095
$as_echo "$at_srcdir/ovsdb-data.at:669: test-ovsdb parse-data '{\"key\": \"uuid\", \"max\": 5}' \\
 
45096
    '[\"set\", [[\"uuid\", \"7ef21525-0088-4a28-a418-5518413e43ea\"],
 
45097
              [\"uuid\", \"355ad037-f1da-40aa-b47c-ff9c7e8c6a38\"],
 
45098
              [\"uuid\", \"7ef21525-0088-4a28-a418-5518413e43ea\"]]]'"
 
45099
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:669"
 
45100
( $at_check_trace; test-ovsdb parse-data '{"key": "uuid", "max": 5}' \
 
45101
    '["set", [["uuid", "7ef21525-0088-4a28-a418-5518413e43ea"],
 
45102
              ["uuid", "355ad037-f1da-40aa-b47c-ff9c7e8c6a38"],
 
45103
              ["uuid", "7ef21525-0088-4a28-a418-5518413e43ea"]]]'
 
45104
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45105
at_status=$? at_failed=false
 
45106
$at_check_filter
 
45107
echo stderr:; tee stderr <"$at_stderr"
 
45108
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
45109
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:669"
 
45110
$at_failed && at_fn_log_failure
 
45111
$at_traceon; }
 
45112
 
 
45113
 
 
45114
   { set +x
 
45115
$as_echo "$at_srcdir/ovsdb-data.at:669: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
45116
      then
 
45117
        :
 
45118
      else
 
45119
        exit 99
 
45120
      fi"
 
45121
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:669"
 
45122
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
45123
      then
 
45124
        :
 
45125
      else
 
45126
        exit 99
 
45127
      fi
 
45128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45129
at_status=$? at_failed=false
 
45130
$at_check_filter
 
45131
echo stderr:; cat "$at_stderr"
 
45132
echo stdout:; cat "$at_stdout"
 
45133
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:669"
 
45134
$at_failed && at_fn_log_failure
 
45135
$at_traceon; }
 
45136
 
 
45137
     set +x
 
45138
  $at_times_p && times >"$at_times_file"
 
45139
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45140
read at_status <"$at_status_file"
 
45141
#AT_STOP_630
 
45142
#AT_START_631
 
45143
at_fn_group_banner 631 'ovsdb-data.at:669' \
 
45144
  "duplicate uuid not allowed in JSON set - Python" "" 46
 
45145
at_xfail=no
 
45146
(
 
45147
  $as_echo "631. $at_setup_line: testing $at_desc ..."
 
45148
  $at_traceon
 
45149
 
 
45150
   $as_echo "ovsdb-data.at:669" >"$at_check_line_file"
 
45151
(test $HAVE_PYTHON = no) \
 
45152
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:669"
 
45153
 
 
45154
   { set +x
 
45155
$as_echo "$at_srcdir/ovsdb-data.at:669: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"uuid\", \"max\": 5}' \\
 
45156
    '[\"set\", [[\"uuid\", \"7ef21525-0088-4a28-a418-5518413e43ea\"],
 
45157
              [\"uuid\", \"355ad037-f1da-40aa-b47c-ff9c7e8c6a38\"],
 
45158
              [\"uuid\", \"7ef21525-0088-4a28-a418-5518413e43ea\"]]]'"
 
45159
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:669"
 
45160
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "uuid", "max": 5}' \
 
45161
    '["set", [["uuid", "7ef21525-0088-4a28-a418-5518413e43ea"],
 
45162
              ["uuid", "355ad037-f1da-40aa-b47c-ff9c7e8c6a38"],
 
45163
              ["uuid", "7ef21525-0088-4a28-a418-5518413e43ea"]]]'
 
45164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45165
at_status=$? at_failed=false
 
45166
$at_check_filter
 
45167
echo stderr:; tee stderr <"$at_stderr"
 
45168
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
45169
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:669"
 
45170
$at_failed && at_fn_log_failure
 
45171
$at_traceon; }
 
45172
 
 
45173
 
 
45174
   { set +x
 
45175
$as_echo "$at_srcdir/ovsdb-data.at:669: if grep -F -e \"ovsdb error: set contains duplicate\" stderr
 
45176
      then
 
45177
        :
 
45178
      else
 
45179
        exit 99
 
45180
      fi"
 
45181
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:669"
 
45182
( $at_check_trace; if grep -F -e "ovsdb error: set contains duplicate" stderr
 
45183
      then
 
45184
        :
 
45185
      else
 
45186
        exit 99
 
45187
      fi
 
45188
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45189
at_status=$? at_failed=false
 
45190
$at_check_filter
 
45191
echo stderr:; cat "$at_stderr"
 
45192
echo stdout:; cat "$at_stdout"
 
45193
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:669"
 
45194
$at_failed && at_fn_log_failure
 
45195
$at_traceon; }
 
45196
 
 
45197
     set +x
 
45198
  $at_times_p && times >"$at_times_file"
 
45199
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45200
read at_status <"$at_status_file"
 
45201
#AT_STOP_631
 
45202
#AT_START_632
 
45203
at_fn_group_banner 632 'ovsdb-data.at:676' \
 
45204
  "duplicate uuid not allowed in string set" "       " 46
 
45205
at_xfail=no
 
45206
(
 
45207
  $as_echo "632. $at_setup_line: testing $at_desc ..."
 
45208
  $at_traceon
 
45209
 
 
45210
 
 
45211
   { set +x
 
45212
$as_echo "$at_srcdir/ovsdb-data.at:676: test-ovsdb parse-data-strings '{\"key\": \"uuid\", \"max\": 5}' \\
 
45213
    '7ef21525-0088-4a28-a418-5518413e43ea,
 
45214
     355ad037-f1da-40aa-b47c-ff9c7e8c6a38,
 
45215
     7ef21525-0088-4a28-a418-5518413e43ea'"
 
45216
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:676"
 
45217
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "uuid", "max": 5}' \
 
45218
    '7ef21525-0088-4a28-a418-5518413e43ea,
 
45219
     355ad037-f1da-40aa-b47c-ff9c7e8c6a38,
 
45220
     7ef21525-0088-4a28-a418-5518413e43ea'
 
45221
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45222
at_status=$? at_failed=false
 
45223
$at_check_filter
 
45224
echo stderr:; tee stderr <"$at_stderr"
 
45225
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
45226
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:676"
 
45227
$at_failed && at_fn_log_failure
 
45228
$at_traceon; }
 
45229
 
 
45230
 
 
45231
   { set +x
 
45232
$as_echo "$at_srcdir/ovsdb-data.at:676: if grep -F -e \"set contains duplicate value\" stderr
 
45233
      then
 
45234
        :
 
45235
      else
 
45236
        exit 99
 
45237
      fi"
 
45238
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:676"
 
45239
( $at_check_trace; if grep -F -e "set contains duplicate value" stderr
 
45240
      then
 
45241
        :
 
45242
      else
 
45243
        exit 99
 
45244
      fi
 
45245
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45246
at_status=$? at_failed=false
 
45247
$at_check_filter
 
45248
echo stderr:; cat "$at_stderr"
 
45249
echo stdout:; cat "$at_stdout"
 
45250
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:676"
 
45251
$at_failed && at_fn_log_failure
 
45252
$at_traceon; }
 
45253
 
 
45254
     set +x
 
45255
  $at_times_p && times >"$at_times_file"
 
45256
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45257
read at_status <"$at_status_file"
 
45258
#AT_STOP_632
 
45259
#AT_START_633
 
45260
at_fn_group_banner 633 'ovsdb-data.at:685' \
 
45261
  "JSON map of 1 integer to boolean - C" "           " 47
 
45262
at_xfail=no
 
45263
(
 
45264
  $as_echo "633. $at_setup_line: testing $at_desc ..."
 
45265
  $at_traceon
 
45266
 
 
45267
 
 
45268
   { set +x
 
45269
$as_echo "$at_srcdir/ovsdb-data.at:685: test-ovsdb parse-data '{\"key\": \"integer\", \"value\": \"boolean\"}' \\
 
45270
    '[\"map\", [[1, true]]]'"
 
45271
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:685"
 
45272
( $at_check_trace; test-ovsdb parse-data '{"key": "integer", "value": "boolean"}' \
 
45273
    '["map", [[1, true]]]'
 
45274
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45275
at_status=$? at_failed=false
 
45276
$at_check_filter
 
45277
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45278
echo >>"$at_stdout"; $as_echo "[\"map\",[[1,true]]]
 
45279
" | \
 
45280
  $at_diff - "$at_stdout" || at_failed=:
 
45281
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:685"
 
45282
$at_failed && at_fn_log_failure
 
45283
$at_traceon; }
 
45284
 
 
45285
     set +x
 
45286
  $at_times_p && times >"$at_times_file"
 
45287
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45288
read at_status <"$at_status_file"
 
45289
#AT_STOP_633
 
45290
#AT_START_634
 
45291
at_fn_group_banner 634 'ovsdb-data.at:685' \
 
45292
  "JSON map of 1 integer to boolean - Python" "      " 47
 
45293
at_xfail=no
 
45294
(
 
45295
  $as_echo "634. $at_setup_line: testing $at_desc ..."
 
45296
  $at_traceon
 
45297
 
 
45298
   $as_echo "ovsdb-data.at:685" >"$at_check_line_file"
 
45299
(test $HAVE_PYTHON = no) \
 
45300
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:685"
 
45301
 
 
45302
 
 
45303
   { set +x
 
45304
$as_echo "$at_srcdir/ovsdb-data.at:685: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"integer\", \"value\": \"boolean\"}' \\
 
45305
    '[\"map\", [[1, true]]]'"
 
45306
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:685"
 
45307
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "integer", "value": "boolean"}' \
 
45308
    '["map", [[1, true]]]'
 
45309
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45310
at_status=$? at_failed=false
 
45311
$at_check_filter
 
45312
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45313
echo >>"$at_stdout"; $as_echo "[\"map\",[[1,true]]]
 
45314
" | \
 
45315
  $at_diff - "$at_stdout" || at_failed=:
 
45316
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:685"
 
45317
$at_failed && at_fn_log_failure
 
45318
$at_traceon; }
 
45319
 
 
45320
     set +x
 
45321
  $at_times_p && times >"$at_times_file"
 
45322
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45323
read at_status <"$at_status_file"
 
45324
#AT_STOP_634
 
45325
#AT_START_635
 
45326
at_fn_group_banner 635 'ovsdb-data.at:690' \
 
45327
  "string map of 1 integer to boolean" "             " 47
 
45328
at_xfail=no
 
45329
(
 
45330
  $as_echo "635. $at_setup_line: testing $at_desc ..."
 
45331
  $at_traceon
 
45332
 
 
45333
 
 
45334
   { set +x
 
45335
$as_echo "$at_srcdir/ovsdb-data.at:690: test-ovsdb parse-data-strings '{\"key\": \"integer\", \"value\": \"boolean\"}' \\
 
45336
    '1=true'"
 
45337
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:690"
 
45338
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "integer", "value": "boolean"}' \
 
45339
    '1=true'
 
45340
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45341
at_status=$? at_failed=false
 
45342
$at_check_filter
 
45343
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45344
echo >>"$at_stdout"; $as_echo "1=true
 
45345
" | \
 
45346
  $at_diff - "$at_stdout" || at_failed=:
 
45347
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:690"
 
45348
$at_failed && at_fn_log_failure
 
45349
$at_traceon; }
 
45350
 
 
45351
     set +x
 
45352
  $at_times_p && times >"$at_times_file"
 
45353
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45354
read at_status <"$at_status_file"
 
45355
#AT_STOP_635
 
45356
#AT_START_636
 
45357
at_fn_group_banner 636 'ovsdb-data.at:695' \
 
45358
  "JSON map of at least 1 integer to boolean - C" "  " 47
 
45359
at_xfail=no
 
45360
(
 
45361
  $as_echo "636. $at_setup_line: testing $at_desc ..."
 
45362
  $at_traceon
 
45363
 
 
45364
 
 
45365
   { set +x
 
45366
$as_echo "$at_srcdir/ovsdb-data.at:695: test-ovsdb parse-data '{\"key\": \"integer\", \"value\": \"boolean\", \"max\": \"unlimited\"}' \\
 
45367
    '[\"map\", [[1, true]]]' \\
 
45368
    '[\"map\", [[0, true], [1, false], [2, true], [3, true], [4, true]]]' \\
 
45369
    '[\"map\", [[3, false], [0, true], [4, false]]]'"
 
45370
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:695"
 
45371
( $at_check_trace; test-ovsdb parse-data '{"key": "integer", "value": "boolean", "max": "unlimited"}' \
 
45372
    '["map", [[1, true]]]' \
 
45373
    '["map", [[0, true], [1, false], [2, true], [3, true], [4, true]]]' \
 
45374
    '["map", [[3, false], [0, true], [4, false]]]'
 
45375
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45376
at_status=$? at_failed=false
 
45377
$at_check_filter
 
45378
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45379
echo >>"$at_stdout"; $as_echo "[\"map\",[[1,true]]]
 
45380
[\"map\",[[0,true],[1,false],[2,true],[3,true],[4,true]]]
 
45381
[\"map\",[[0,true],[3,false],[4,false]]]
 
45382
" | \
 
45383
  $at_diff - "$at_stdout" || at_failed=:
 
45384
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:695"
 
45385
$at_failed && at_fn_log_failure
 
45386
$at_traceon; }
 
45387
 
 
45388
     set +x
 
45389
  $at_times_p && times >"$at_times_file"
 
45390
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45391
read at_status <"$at_status_file"
 
45392
#AT_STOP_636
 
45393
#AT_START_637
 
45394
at_fn_group_banner 637 'ovsdb-data.at:695' \
 
45395
  "JSON map of at least 1 integer to boolean - Python" "" 47
 
45396
at_xfail=no
 
45397
(
 
45398
  $as_echo "637. $at_setup_line: testing $at_desc ..."
 
45399
  $at_traceon
 
45400
 
 
45401
   $as_echo "ovsdb-data.at:695" >"$at_check_line_file"
 
45402
(test $HAVE_PYTHON = no) \
 
45403
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:695"
 
45404
 
 
45405
 
 
45406
   { set +x
 
45407
$as_echo "$at_srcdir/ovsdb-data.at:695: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"integer\", \"value\": \"boolean\", \"max\": \"unlimited\"}' \\
 
45408
    '[\"map\", [[1, true]]]' \\
 
45409
    '[\"map\", [[0, true], [1, false], [2, true], [3, true], [4, true]]]' \\
 
45410
    '[\"map\", [[3, false], [0, true], [4, false]]]'"
 
45411
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:695"
 
45412
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "integer", "value": "boolean", "max": "unlimited"}' \
 
45413
    '["map", [[1, true]]]' \
 
45414
    '["map", [[0, true], [1, false], [2, true], [3, true], [4, true]]]' \
 
45415
    '["map", [[3, false], [0, true], [4, false]]]'
 
45416
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45417
at_status=$? at_failed=false
 
45418
$at_check_filter
 
45419
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45420
echo >>"$at_stdout"; $as_echo "[\"map\",[[1,true]]]
 
45421
[\"map\",[[0,true],[1,false],[2,true],[3,true],[4,true]]]
 
45422
[\"map\",[[0,true],[3,false],[4,false]]]
 
45423
" | \
 
45424
  $at_diff - "$at_stdout" || at_failed=:
 
45425
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:695"
 
45426
$at_failed && at_fn_log_failure
 
45427
$at_traceon; }
 
45428
 
 
45429
     set +x
 
45430
  $at_times_p && times >"$at_times_file"
 
45431
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45432
read at_status <"$at_status_file"
 
45433
#AT_STOP_637
 
45434
#AT_START_638
 
45435
at_fn_group_banner 638 'ovsdb-data.at:704' \
 
45436
  "string map of at least 1 integer to boolean" "    " 47
 
45437
at_xfail=no
 
45438
(
 
45439
  $as_echo "638. $at_setup_line: testing $at_desc ..."
 
45440
  $at_traceon
 
45441
 
 
45442
 
 
45443
   { set +x
 
45444
$as_echo "$at_srcdir/ovsdb-data.at:704: test-ovsdb parse-data-strings '{\"key\": \"integer\", \"value\": \"boolean\", \"max\": \"unlimited\"}' \\
 
45445
    '1=true' \\
 
45446
    '0=true 1=false 2=true, 3=true 4=true,' \\
 
45447
    '3=false,0=true ,4=false'"
 
45448
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:704"
 
45449
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "integer", "value": "boolean", "max": "unlimited"}' \
 
45450
    '1=true' \
 
45451
    '0=true 1=false 2=true, 3=true 4=true,' \
 
45452
    '3=false,0=true ,4=false'
 
45453
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45454
at_status=$? at_failed=false
 
45455
$at_check_filter
 
45456
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45457
echo >>"$at_stdout"; $as_echo "{1=true}
 
45458
{0=true, 1=false, 2=true, 3=true, 4=true}
 
45459
{0=true, 3=false, 4=false}
 
45460
" | \
 
45461
  $at_diff - "$at_stdout" || at_failed=:
 
45462
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:704"
 
45463
$at_failed && at_fn_log_failure
 
45464
$at_traceon; }
 
45465
 
 
45466
     set +x
 
45467
  $at_times_p && times >"$at_times_file"
 
45468
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45469
read at_status <"$at_status_file"
 
45470
#AT_STOP_638
 
45471
#AT_START_639
 
45472
at_fn_group_banner 639 'ovsdb-data.at:713' \
 
45473
  "JSON map of 1 boolean to integer - C" "           " 47
 
45474
at_xfail=no
 
45475
(
 
45476
  $as_echo "639. $at_setup_line: testing $at_desc ..."
 
45477
  $at_traceon
 
45478
 
 
45479
 
 
45480
   { set +x
 
45481
$as_echo "$at_srcdir/ovsdb-data.at:713: test-ovsdb parse-data '{\"key\": \"boolean\", \"value\": \"integer\"}' \\
 
45482
   '[\"map\", [[true, 1]]]'"
 
45483
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:713"
 
45484
( $at_check_trace; test-ovsdb parse-data '{"key": "boolean", "value": "integer"}' \
 
45485
   '["map", [[true, 1]]]'
 
45486
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45487
at_status=$? at_failed=false
 
45488
$at_check_filter
 
45489
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45490
echo >>"$at_stdout"; $as_echo "[\"map\",[[true,1]]]
 
45491
" | \
 
45492
  $at_diff - "$at_stdout" || at_failed=:
 
45493
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:713"
 
45494
$at_failed && at_fn_log_failure
 
45495
$at_traceon; }
 
45496
 
 
45497
     set +x
 
45498
  $at_times_p && times >"$at_times_file"
 
45499
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45500
read at_status <"$at_status_file"
 
45501
#AT_STOP_639
 
45502
#AT_START_640
 
45503
at_fn_group_banner 640 'ovsdb-data.at:713' \
 
45504
  "JSON map of 1 boolean to integer - Python" "      " 47
 
45505
at_xfail=no
 
45506
(
 
45507
  $as_echo "640. $at_setup_line: testing $at_desc ..."
 
45508
  $at_traceon
 
45509
 
 
45510
   $as_echo "ovsdb-data.at:713" >"$at_check_line_file"
 
45511
(test $HAVE_PYTHON = no) \
 
45512
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:713"
 
45513
 
 
45514
 
 
45515
   { set +x
 
45516
$as_echo "$at_srcdir/ovsdb-data.at:713: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"boolean\", \"value\": \"integer\"}' \\
 
45517
   '[\"map\", [[true, 1]]]'"
 
45518
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:713"
 
45519
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "boolean", "value": "integer"}' \
 
45520
   '["map", [[true, 1]]]'
 
45521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45522
at_status=$? at_failed=false
 
45523
$at_check_filter
 
45524
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45525
echo >>"$at_stdout"; $as_echo "[\"map\",[[true,1]]]
 
45526
" | \
 
45527
  $at_diff - "$at_stdout" || at_failed=:
 
45528
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:713"
 
45529
$at_failed && at_fn_log_failure
 
45530
$at_traceon; }
 
45531
 
 
45532
     set +x
 
45533
  $at_times_p && times >"$at_times_file"
 
45534
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45535
read at_status <"$at_status_file"
 
45536
#AT_STOP_640
 
45537
#AT_START_641
 
45538
at_fn_group_banner 641 'ovsdb-data.at:718' \
 
45539
  "string map of 1 boolean to integer" "             " 47
 
45540
at_xfail=no
 
45541
(
 
45542
  $as_echo "641. $at_setup_line: testing $at_desc ..."
 
45543
  $at_traceon
 
45544
 
 
45545
 
 
45546
   { set +x
 
45547
$as_echo "$at_srcdir/ovsdb-data.at:718: test-ovsdb parse-data-strings '{\"key\": \"boolean\", \"value\": \"integer\"}' \\
 
45548
   'true=1'"
 
45549
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:718"
 
45550
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "boolean", "value": "integer"}' \
 
45551
   'true=1'
 
45552
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45553
at_status=$? at_failed=false
 
45554
$at_check_filter
 
45555
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45556
echo >>"$at_stdout"; $as_echo "true=1
 
45557
" | \
 
45558
  $at_diff - "$at_stdout" || at_failed=:
 
45559
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:718"
 
45560
$at_failed && at_fn_log_failure
 
45561
$at_traceon; }
 
45562
 
 
45563
     set +x
 
45564
  $at_times_p && times >"$at_times_file"
 
45565
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45566
read at_status <"$at_status_file"
 
45567
#AT_STOP_641
 
45568
#AT_START_642
 
45569
at_fn_group_banner 642 'ovsdb-data.at:723' \
 
45570
  "JSON map of 1 uuid to real - C" "                 " 47
 
45571
at_xfail=no
 
45572
(
 
45573
  $as_echo "642. $at_setup_line: testing $at_desc ..."
 
45574
  $at_traceon
 
45575
 
 
45576
 
 
45577
   { set +x
 
45578
$as_echo "$at_srcdir/ovsdb-data.at:723: test-ovsdb parse-data '{\"key\": \"uuid\", \"value\": \"real\", \"min\": 1, \"max\": 5}' \\
 
45579
    '[\"map\", [[[\"uuid\", \"cad8542b-6ee1-486b-971b-7dcbf6e14979\"], 1.0],
 
45580
              [[\"uuid\", \"6b94b968-2702-4f64-9457-314a34d69b8c\"], 2.0],
 
45581
              [[\"uuid\", \"d2c4a168-24de-47eb-a8a3-c1abfc814979\"], 3.0],
 
45582
              [[\"uuid\", \"25bfa475-d072-4f60-8be1-00f48643e9cb\"], 4.0],
 
45583
              [[\"uuid\", \"1c92b8ca-d5e4-4628-a85d-1dc2d099a99a\"], 5.0]]]'"
 
45584
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:723"
 
45585
( $at_check_trace; test-ovsdb parse-data '{"key": "uuid", "value": "real", "min": 1, "max": 5}' \
 
45586
    '["map", [[["uuid", "cad8542b-6ee1-486b-971b-7dcbf6e14979"], 1.0],
 
45587
              [["uuid", "6b94b968-2702-4f64-9457-314a34d69b8c"], 2.0],
 
45588
              [["uuid", "d2c4a168-24de-47eb-a8a3-c1abfc814979"], 3.0],
 
45589
              [["uuid", "25bfa475-d072-4f60-8be1-00f48643e9cb"], 4.0],
 
45590
              [["uuid", "1c92b8ca-d5e4-4628-a85d-1dc2d099a99a"], 5.0]]]'
 
45591
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45592
at_status=$? at_failed=false
 
45593
$at_check_filter
 
45594
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45595
echo >>"$at_stdout"; $as_echo "[\"map\",[[[\"uuid\",\"1c92b8ca-d5e4-4628-a85d-1dc2d099a99a\"],5],[[\"uuid\",\"25bfa475-d072-4f60-8be1-00f48643e9cb\"],4],[[\"uuid\",\"6b94b968-2702-4f64-9457-314a34d69b8c\"],2],[[\"uuid\",\"cad8542b-6ee1-486b-971b-7dcbf6e14979\"],1],[[\"uuid\",\"d2c4a168-24de-47eb-a8a3-c1abfc814979\"],3]]]
 
45596
" | \
 
45597
  $at_diff - "$at_stdout" || at_failed=:
 
45598
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:723"
 
45599
$at_failed && at_fn_log_failure
 
45600
$at_traceon; }
 
45601
 
 
45602
     set +x
 
45603
  $at_times_p && times >"$at_times_file"
 
45604
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45605
read at_status <"$at_status_file"
 
45606
#AT_STOP_642
 
45607
#AT_START_643
 
45608
at_fn_group_banner 643 'ovsdb-data.at:723' \
 
45609
  "JSON map of 1 uuid to real - Python" "            " 47
 
45610
at_xfail=no
 
45611
(
 
45612
  $as_echo "643. $at_setup_line: testing $at_desc ..."
 
45613
  $at_traceon
 
45614
 
 
45615
   $as_echo "ovsdb-data.at:723" >"$at_check_line_file"
 
45616
(test $HAVE_PYTHON = no) \
 
45617
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:723"
 
45618
 
 
45619
 
 
45620
   { set +x
 
45621
$as_echo "$at_srcdir/ovsdb-data.at:723: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"uuid\", \"value\": \"real\", \"min\": 1, \"max\": 5}' \\
 
45622
    '[\"map\", [[[\"uuid\", \"cad8542b-6ee1-486b-971b-7dcbf6e14979\"], 1.0],
 
45623
              [[\"uuid\", \"6b94b968-2702-4f64-9457-314a34d69b8c\"], 2.0],
 
45624
              [[\"uuid\", \"d2c4a168-24de-47eb-a8a3-c1abfc814979\"], 3.0],
 
45625
              [[\"uuid\", \"25bfa475-d072-4f60-8be1-00f48643e9cb\"], 4.0],
 
45626
              [[\"uuid\", \"1c92b8ca-d5e4-4628-a85d-1dc2d099a99a\"], 5.0]]]'"
 
45627
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:723"
 
45628
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "uuid", "value": "real", "min": 1, "max": 5}' \
 
45629
    '["map", [[["uuid", "cad8542b-6ee1-486b-971b-7dcbf6e14979"], 1.0],
 
45630
              [["uuid", "6b94b968-2702-4f64-9457-314a34d69b8c"], 2.0],
 
45631
              [["uuid", "d2c4a168-24de-47eb-a8a3-c1abfc814979"], 3.0],
 
45632
              [["uuid", "25bfa475-d072-4f60-8be1-00f48643e9cb"], 4.0],
 
45633
              [["uuid", "1c92b8ca-d5e4-4628-a85d-1dc2d099a99a"], 5.0]]]'
 
45634
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45635
at_status=$? at_failed=false
 
45636
$at_check_filter
 
45637
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45638
echo >>"$at_stdout"; $as_echo "[\"map\",[[[\"uuid\",\"1c92b8ca-d5e4-4628-a85d-1dc2d099a99a\"],5],[[\"uuid\",\"25bfa475-d072-4f60-8be1-00f48643e9cb\"],4],[[\"uuid\",\"6b94b968-2702-4f64-9457-314a34d69b8c\"],2],[[\"uuid\",\"cad8542b-6ee1-486b-971b-7dcbf6e14979\"],1],[[\"uuid\",\"d2c4a168-24de-47eb-a8a3-c1abfc814979\"],3]]]
 
45639
" | \
 
45640
  $at_diff - "$at_stdout" || at_failed=:
 
45641
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:723"
 
45642
$at_failed && at_fn_log_failure
 
45643
$at_traceon; }
 
45644
 
 
45645
     set +x
 
45646
  $at_times_p && times >"$at_times_file"
 
45647
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45648
read at_status <"$at_status_file"
 
45649
#AT_STOP_643
 
45650
#AT_START_644
 
45651
at_fn_group_banner 644 'ovsdb-data.at:732' \
 
45652
  "string map of 1 uuid to real" "                   " 47
 
45653
at_xfail=no
 
45654
(
 
45655
  $as_echo "644. $at_setup_line: testing $at_desc ..."
 
45656
  $at_traceon
 
45657
 
 
45658
 
 
45659
   { set +x
 
45660
$as_echo "$at_srcdir/ovsdb-data.at:732: test-ovsdb parse-data-strings '{\"key\": \"uuid\", \"value\": \"real\", \"min\": 1, \"max\": 5}' \\
 
45661
    'cad8542b-6ee1-486b-971b-7dcbf6e14979=1.0,
 
45662
     6b94b968-2702-4f64-9457-314a34d69b8c=2.0,
 
45663
     d2c4a168-24de-47eb-a8a3-c1abfc814979=3.0,
 
45664
     25bfa475-d072-4f60-8be1-00f48643e9cb=4.0,
 
45665
     1c92b8ca-d5e4-4628-a85d-1dc2d099a99a=5.0'"
 
45666
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:732"
 
45667
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "uuid", "value": "real", "min": 1, "max": 5}' \
 
45668
    'cad8542b-6ee1-486b-971b-7dcbf6e14979=1.0,
 
45669
     6b94b968-2702-4f64-9457-314a34d69b8c=2.0,
 
45670
     d2c4a168-24de-47eb-a8a3-c1abfc814979=3.0,
 
45671
     25bfa475-d072-4f60-8be1-00f48643e9cb=4.0,
 
45672
     1c92b8ca-d5e4-4628-a85d-1dc2d099a99a=5.0'
 
45673
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45674
at_status=$? at_failed=false
 
45675
$at_check_filter
 
45676
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45677
echo >>"$at_stdout"; $as_echo "{1c92b8ca-d5e4-4628-a85d-1dc2d099a99a=5, 25bfa475-d072-4f60-8be1-00f48643e9cb=4, 6b94b968-2702-4f64-9457-314a34d69b8c=2, cad8542b-6ee1-486b-971b-7dcbf6e14979=1, d2c4a168-24de-47eb-a8a3-c1abfc814979=3}
 
45678
" | \
 
45679
  $at_diff - "$at_stdout" || at_failed=:
 
45680
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:732"
 
45681
$at_failed && at_fn_log_failure
 
45682
$at_traceon; }
 
45683
 
 
45684
     set +x
 
45685
  $at_times_p && times >"$at_times_file"
 
45686
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45687
read at_status <"$at_status_file"
 
45688
#AT_STOP_644
 
45689
#AT_START_645
 
45690
at_fn_group_banner 645 'ovsdb-data.at:741' \
 
45691
  "JSON map of 10 string to string - C" "            " 47
 
45692
at_xfail=no
 
45693
(
 
45694
  $as_echo "645. $at_setup_line: testing $at_desc ..."
 
45695
  $at_traceon
 
45696
 
 
45697
 
 
45698
   { set +x
 
45699
$as_echo "$at_srcdir/ovsdb-data.at:741: test-ovsdb parse-data '{\"key\": \"string\", \"value\": \"string\", \"min\": 1, \"max\": 10}' \\
 
45700
    '[\"map\", [[\"2 gills\", \"1 chopin\"],
 
45701
              [\"2 chopins\", \"1 pint\"],
 
45702
              [\"2 pints\", \"1 quart\"],
 
45703
              [\"2 quarts\", \"1 pottle\"],
 
45704
              [\"2 pottles\", \"1 gallon\"],
 
45705
              [\"2 gallons\", \"1 peck\"],
 
45706
              [\"2 pecks\", \"1 demibushel\"],
 
45707
              [\"2 demibushel\", \"1 firkin\"],
 
45708
              [\"2 firkins\", \"1 kilderkin\"],
 
45709
              [\"2 kilderkins\", \"1 barrel\"]]]'"
 
45710
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:741"
 
45711
( $at_check_trace; test-ovsdb parse-data '{"key": "string", "value": "string", "min": 1, "max": 10}' \
 
45712
    '["map", [["2 gills", "1 chopin"],
 
45713
              ["2 chopins", "1 pint"],
 
45714
              ["2 pints", "1 quart"],
 
45715
              ["2 quarts", "1 pottle"],
 
45716
              ["2 pottles", "1 gallon"],
 
45717
              ["2 gallons", "1 peck"],
 
45718
              ["2 pecks", "1 demibushel"],
 
45719
              ["2 demibushel", "1 firkin"],
 
45720
              ["2 firkins", "1 kilderkin"],
 
45721
              ["2 kilderkins", "1 barrel"]]]'
 
45722
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45723
at_status=$? at_failed=false
 
45724
$at_check_filter
 
45725
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45726
echo >>"$at_stdout"; $as_echo "[\"map\",[[\"2 chopins\",\"1 pint\"],[\"2 demibushel\",\"1 firkin\"],[\"2 firkins\",\"1 kilderkin\"],[\"2 gallons\",\"1 peck\"],[\"2 gills\",\"1 chopin\"],[\"2 kilderkins\",\"1 barrel\"],[\"2 pecks\",\"1 demibushel\"],[\"2 pints\",\"1 quart\"],[\"2 pottles\",\"1 gallon\"],[\"2 quarts\",\"1 pottle\"]]]
 
45727
" | \
 
45728
  $at_diff - "$at_stdout" || at_failed=:
 
45729
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:741"
 
45730
$at_failed && at_fn_log_failure
 
45731
$at_traceon; }
 
45732
 
 
45733
     set +x
 
45734
  $at_times_p && times >"$at_times_file"
 
45735
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45736
read at_status <"$at_status_file"
 
45737
#AT_STOP_645
 
45738
#AT_START_646
 
45739
at_fn_group_banner 646 'ovsdb-data.at:741' \
 
45740
  "JSON map of 10 string to string - Python" "       " 47
 
45741
at_xfail=no
 
45742
(
 
45743
  $as_echo "646. $at_setup_line: testing $at_desc ..."
 
45744
  $at_traceon
 
45745
 
 
45746
   $as_echo "ovsdb-data.at:741" >"$at_check_line_file"
 
45747
(test $HAVE_PYTHON = no) \
 
45748
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:741"
 
45749
 
 
45750
 
 
45751
   { set +x
 
45752
$as_echo "$at_srcdir/ovsdb-data.at:741: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"string\", \"value\": \"string\", \"min\": 1, \"max\": 10}' \\
 
45753
    '[\"map\", [[\"2 gills\", \"1 chopin\"],
 
45754
              [\"2 chopins\", \"1 pint\"],
 
45755
              [\"2 pints\", \"1 quart\"],
 
45756
              [\"2 quarts\", \"1 pottle\"],
 
45757
              [\"2 pottles\", \"1 gallon\"],
 
45758
              [\"2 gallons\", \"1 peck\"],
 
45759
              [\"2 pecks\", \"1 demibushel\"],
 
45760
              [\"2 demibushel\", \"1 firkin\"],
 
45761
              [\"2 firkins\", \"1 kilderkin\"],
 
45762
              [\"2 kilderkins\", \"1 barrel\"]]]'"
 
45763
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:741"
 
45764
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "string", "value": "string", "min": 1, "max": 10}' \
 
45765
    '["map", [["2 gills", "1 chopin"],
 
45766
              ["2 chopins", "1 pint"],
 
45767
              ["2 pints", "1 quart"],
 
45768
              ["2 quarts", "1 pottle"],
 
45769
              ["2 pottles", "1 gallon"],
 
45770
              ["2 gallons", "1 peck"],
 
45771
              ["2 pecks", "1 demibushel"],
 
45772
              ["2 demibushel", "1 firkin"],
 
45773
              ["2 firkins", "1 kilderkin"],
 
45774
              ["2 kilderkins", "1 barrel"]]]'
 
45775
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45776
at_status=$? at_failed=false
 
45777
$at_check_filter
 
45778
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45779
echo >>"$at_stdout"; $as_echo "[\"map\",[[\"2 chopins\",\"1 pint\"],[\"2 demibushel\",\"1 firkin\"],[\"2 firkins\",\"1 kilderkin\"],[\"2 gallons\",\"1 peck\"],[\"2 gills\",\"1 chopin\"],[\"2 kilderkins\",\"1 barrel\"],[\"2 pecks\",\"1 demibushel\"],[\"2 pints\",\"1 quart\"],[\"2 pottles\",\"1 gallon\"],[\"2 quarts\",\"1 pottle\"]]]
 
45780
" | \
 
45781
  $at_diff - "$at_stdout" || at_failed=:
 
45782
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:741"
 
45783
$at_failed && at_fn_log_failure
 
45784
$at_traceon; }
 
45785
 
 
45786
     set +x
 
45787
  $at_times_p && times >"$at_times_file"
 
45788
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45789
read at_status <"$at_status_file"
 
45790
#AT_STOP_646
 
45791
#AT_START_647
 
45792
at_fn_group_banner 647 'ovsdb-data.at:755' \
 
45793
  "string map of 10 string to string" "              " 47
 
45794
at_xfail=no
 
45795
(
 
45796
  $as_echo "647. $at_setup_line: testing $at_desc ..."
 
45797
  $at_traceon
 
45798
 
 
45799
 
 
45800
   { set +x
 
45801
$as_echo "$at_srcdir/ovsdb-data.at:755: test-ovsdb parse-data-strings '{\"key\": \"string\", \"value\": \"string\", \"min\": 1, \"max\": 10}' \\
 
45802
    '{\"2 gills\"=\"1 chopin\",
 
45803
      \"2 chopins\"= \"1 pint\",
 
45804
      \"2 pints\"= \"1 quart\",
 
45805
      \"2 quarts\"= \"1 pottle\",
 
45806
      \"2 pottles\"= \"1 gallon\",
 
45807
      \"2 gallons\"= \"1 peck\",
 
45808
      \"2 pecks\"= \"1 demibushel\",
 
45809
      \"2 demibushel\"= \"1 firkin\",
 
45810
      \"2 firkins\"= \"1 kilderkin\",
 
45811
      \"2 kilderkins\"= \"1 barrel\"}'"
 
45812
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:755"
 
45813
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "string", "value": "string", "min": 1, "max": 10}' \
 
45814
    '{"2 gills"="1 chopin",
 
45815
      "2 chopins"= "1 pint",
 
45816
      "2 pints"= "1 quart",
 
45817
      "2 quarts"= "1 pottle",
 
45818
      "2 pottles"= "1 gallon",
 
45819
      "2 gallons"= "1 peck",
 
45820
      "2 pecks"= "1 demibushel",
 
45821
      "2 demibushel"= "1 firkin",
 
45822
      "2 firkins"= "1 kilderkin",
 
45823
      "2 kilderkins"= "1 barrel"}'
 
45824
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45825
at_status=$? at_failed=false
 
45826
$at_check_filter
 
45827
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
45828
echo >>"$at_stdout"; $as_echo "{\"2 chopins\"=\"1 pint\", \"2 demibushel\"=\"1 firkin\", \"2 firkins\"=\"1 kilderkin\", \"2 gallons\"=\"1 peck\", \"2 gills\"=\"1 chopin\", \"2 kilderkins\"=\"1 barrel\", \"2 pecks\"=\"1 demibushel\", \"2 pints\"=\"1 quart\", \"2 pottles\"=\"1 gallon\", \"2 quarts\"=\"1 pottle\"}
 
45829
" | \
 
45830
  $at_diff - "$at_stdout" || at_failed=:
 
45831
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:755"
 
45832
$at_failed && at_fn_log_failure
 
45833
$at_traceon; }
 
45834
 
 
45835
     set +x
 
45836
  $at_times_p && times >"$at_times_file"
 
45837
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45838
read at_status <"$at_status_file"
 
45839
#AT_STOP_647
 
45840
#AT_START_648
 
45841
at_fn_group_banner 648 'ovsdb-data.at:769' \
 
45842
  "duplicate integer key not allowed in JSON map - C" "" 47
 
45843
at_xfail=no
 
45844
(
 
45845
  $as_echo "648. $at_setup_line: testing $at_desc ..."
 
45846
  $at_traceon
 
45847
 
 
45848
 
 
45849
   { set +x
 
45850
$as_echo "$at_srcdir/ovsdb-data.at:769: test-ovsdb parse-data '{\"key\": \"integer\", \"value\": \"boolean\", \"max\": 5}' \\
 
45851
    '[\"map\", [[1, true], [2, false], [1, false]]]'"
 
45852
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:769"
 
45853
( $at_check_trace; test-ovsdb parse-data '{"key": "integer", "value": "boolean", "max": 5}' \
 
45854
    '["map", [[1, true], [2, false], [1, false]]]'
 
45855
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45856
at_status=$? at_failed=false
 
45857
$at_check_filter
 
45858
echo stderr:; tee stderr <"$at_stderr"
 
45859
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
45860
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:769"
 
45861
$at_failed && at_fn_log_failure
 
45862
$at_traceon; }
 
45863
 
 
45864
 
 
45865
   { set +x
 
45866
$as_echo "$at_srcdir/ovsdb-data.at:769: if grep -F -e \"ovsdb error: map contains duplicate key\" stderr
 
45867
      then
 
45868
        :
 
45869
      else
 
45870
        exit 99
 
45871
      fi"
 
45872
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:769"
 
45873
( $at_check_trace; if grep -F -e "ovsdb error: map contains duplicate key" stderr
 
45874
      then
 
45875
        :
 
45876
      else
 
45877
        exit 99
 
45878
      fi
 
45879
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45880
at_status=$? at_failed=false
 
45881
$at_check_filter
 
45882
echo stderr:; cat "$at_stderr"
 
45883
echo stdout:; cat "$at_stdout"
 
45884
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:769"
 
45885
$at_failed && at_fn_log_failure
 
45886
$at_traceon; }
 
45887
 
 
45888
     set +x
 
45889
  $at_times_p && times >"$at_times_file"
 
45890
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45891
read at_status <"$at_status_file"
 
45892
#AT_STOP_648
 
45893
#AT_START_649
 
45894
at_fn_group_banner 649 'ovsdb-data.at:769' \
 
45895
  "duplicate integer key not allowed in JSON map - Python" "" 47
 
45896
at_xfail=no
 
45897
(
 
45898
  $as_echo "649. $at_setup_line: testing $at_desc ..."
 
45899
  $at_traceon
 
45900
 
 
45901
   $as_echo "ovsdb-data.at:769" >"$at_check_line_file"
 
45902
(test $HAVE_PYTHON = no) \
 
45903
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-data.at:769"
 
45904
 
 
45905
   { set +x
 
45906
$as_echo "$at_srcdir/ovsdb-data.at:769: \$PYTHON \$srcdir/test-ovsdb.py parse-data '{\"key\": \"integer\", \"value\": \"boolean\", \"max\": 5}' \\
 
45907
    '[\"map\", [[1, true], [2, false], [1, false]]]'"
 
45908
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:769"
 
45909
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-data '{"key": "integer", "value": "boolean", "max": 5}' \
 
45910
    '["map", [[1, true], [2, false], [1, false]]]'
 
45911
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45912
at_status=$? at_failed=false
 
45913
$at_check_filter
 
45914
echo stderr:; tee stderr <"$at_stderr"
 
45915
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
45916
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:769"
 
45917
$at_failed && at_fn_log_failure
 
45918
$at_traceon; }
 
45919
 
 
45920
 
 
45921
   { set +x
 
45922
$as_echo "$at_srcdir/ovsdb-data.at:769: if grep -F -e \"ovsdb error: map contains duplicate key\" stderr
 
45923
      then
 
45924
        :
 
45925
      else
 
45926
        exit 99
 
45927
      fi"
 
45928
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:769"
 
45929
( $at_check_trace; if grep -F -e "ovsdb error: map contains duplicate key" stderr
 
45930
      then
 
45931
        :
 
45932
      else
 
45933
        exit 99
 
45934
      fi
 
45935
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45936
at_status=$? at_failed=false
 
45937
$at_check_filter
 
45938
echo stderr:; cat "$at_stderr"
 
45939
echo stdout:; cat "$at_stdout"
 
45940
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:769"
 
45941
$at_failed && at_fn_log_failure
 
45942
$at_traceon; }
 
45943
 
 
45944
     set +x
 
45945
  $at_times_p && times >"$at_times_file"
 
45946
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
45947
read at_status <"$at_status_file"
 
45948
#AT_STOP_649
 
45949
#AT_START_650
 
45950
at_fn_group_banner 650 'ovsdb-data.at:774' \
 
45951
  "duplicate integer key not allowed in string map" "" 47
 
45952
at_xfail=no
 
45953
(
 
45954
  $as_echo "650. $at_setup_line: testing $at_desc ..."
 
45955
  $at_traceon
 
45956
 
 
45957
 
 
45958
   { set +x
 
45959
$as_echo "$at_srcdir/ovsdb-data.at:774: test-ovsdb parse-data-strings '{\"key\": \"integer\", \"value\": \"boolean\", \"max\": 5}' \\
 
45960
    '1=true 2=false 1=false'"
 
45961
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:774"
 
45962
( $at_check_trace; test-ovsdb parse-data-strings '{"key": "integer", "value": "boolean", "max": 5}' \
 
45963
    '1=true 2=false 1=false'
 
45964
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45965
at_status=$? at_failed=false
 
45966
$at_check_filter
 
45967
echo stderr:; tee stderr <"$at_stderr"
 
45968
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
45969
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-data.at:774"
 
45970
$at_failed && at_fn_log_failure
 
45971
$at_traceon; }
 
45972
 
 
45973
 
 
45974
   { set +x
 
45975
$as_echo "$at_srcdir/ovsdb-data.at:774: if grep -F -e \"map contains duplicate key\" stderr
 
45976
      then
 
45977
        :
 
45978
      else
 
45979
        exit 99
 
45980
      fi"
 
45981
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-data.at:774"
 
45982
( $at_check_trace; if grep -F -e "map contains duplicate key" stderr
 
45983
      then
 
45984
        :
 
45985
      else
 
45986
        exit 99
 
45987
      fi
 
45988
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
45989
at_status=$? at_failed=false
 
45990
$at_check_filter
 
45991
echo stderr:; cat "$at_stderr"
 
45992
echo stdout:; cat "$at_stdout"
 
45993
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-data.at:774"
 
45994
$at_failed && at_fn_log_failure
 
45995
$at_traceon; }
 
45996
 
 
45997
     set +x
 
45998
  $at_times_p && times >"$at_times_file"
 
45999
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46000
read at_status <"$at_status_file"
 
46001
#AT_STOP_650
 
46002
#AT_START_651
 
46003
at_fn_group_banner 651 'ovsdb-column.at:3' \
 
46004
  "ordinary column - C" "                            " 48
 
46005
at_xfail=no
 
46006
(
 
46007
  $as_echo "651. $at_setup_line: testing $at_desc ..."
 
46008
  $at_traceon
 
46009
 
 
46010
 
 
46011
   { set +x
 
46012
$as_echo "$at_srcdir/ovsdb-column.at:3: test-ovsdb parse-column mycol '{\"type\": \"integer\"}'"
 
46013
at_fn_check_prepare_trace "ovsdb-column.at:3"
 
46014
( $at_check_trace; test-ovsdb parse-column mycol '{"type": "integer"}'
 
46015
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46016
at_status=$? at_failed=false
 
46017
$at_check_filter
 
46018
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46019
echo >>"$at_stdout"; $as_echo "{\"type\":\"integer\"}
 
46020
" | \
 
46021
  $at_diff - "$at_stdout" || at_failed=:
 
46022
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-column.at:3"
 
46023
$at_failed && at_fn_log_failure
 
46024
$at_traceon; }
 
46025
 
 
46026
     set +x
 
46027
  $at_times_p && times >"$at_times_file"
 
46028
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46029
read at_status <"$at_status_file"
 
46030
#AT_STOP_651
 
46031
#AT_START_652
 
46032
at_fn_group_banner 652 'ovsdb-column.at:3' \
 
46033
  "ordinary column - Python" "                       " 48
 
46034
at_xfail=no
 
46035
(
 
46036
  $as_echo "652. $at_setup_line: testing $at_desc ..."
 
46037
  $at_traceon
 
46038
 
 
46039
   $as_echo "ovsdb-column.at:3" >"$at_check_line_file"
 
46040
(test $HAVE_PYTHON = no) \
 
46041
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-column.at:3"
 
46042
 
 
46043
 
 
46044
   { set +x
 
46045
$as_echo "$at_srcdir/ovsdb-column.at:3: \$PYTHON \$srcdir/test-ovsdb.py parse-column mycol '{\"type\": \"integer\"}'"
 
46046
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-column mycol '{\"type\": \"integer\"}'" "ovsdb-column.at:3"
 
46047
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-column mycol '{"type": "integer"}'
 
46048
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46049
at_status=$? at_failed=false
 
46050
$at_check_filter
 
46051
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46052
echo >>"$at_stdout"; $as_echo "{\"type\":\"integer\"}
 
46053
" | \
 
46054
  $at_diff - "$at_stdout" || at_failed=:
 
46055
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-column.at:3"
 
46056
$at_failed && at_fn_log_failure
 
46057
$at_traceon; }
 
46058
 
 
46059
     set +x
 
46060
  $at_times_p && times >"$at_times_file"
 
46061
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46062
read at_status <"$at_status_file"
 
46063
#AT_STOP_652
 
46064
#AT_START_653
 
46065
at_fn_group_banner 653 'ovsdb-column.at:7' \
 
46066
  "immutable column - C" "                           " 48
 
46067
at_xfail=no
 
46068
(
 
46069
  $as_echo "653. $at_setup_line: testing $at_desc ..."
 
46070
  $at_traceon
 
46071
 
 
46072
 
 
46073
   { set +x
 
46074
$as_echo "$at_srcdir/ovsdb-column.at:7: test-ovsdb parse-column mycol '{\"type\": \"real\", \"mutable\": false}'"
 
46075
at_fn_check_prepare_trace "ovsdb-column.at:7"
 
46076
( $at_check_trace; test-ovsdb parse-column mycol '{"type": "real", "mutable": false}'
 
46077
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46078
at_status=$? at_failed=false
 
46079
$at_check_filter
 
46080
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46081
echo >>"$at_stdout"; $as_echo "{\"mutable\":false,\"type\":\"real\"}
 
46082
" | \
 
46083
  $at_diff - "$at_stdout" || at_failed=:
 
46084
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-column.at:7"
 
46085
$at_failed && at_fn_log_failure
 
46086
$at_traceon; }
 
46087
 
 
46088
     set +x
 
46089
  $at_times_p && times >"$at_times_file"
 
46090
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46091
read at_status <"$at_status_file"
 
46092
#AT_STOP_653
 
46093
#AT_START_654
 
46094
at_fn_group_banner 654 'ovsdb-column.at:7' \
 
46095
  "immutable column - Python" "                      " 48
 
46096
at_xfail=no
 
46097
(
 
46098
  $as_echo "654. $at_setup_line: testing $at_desc ..."
 
46099
  $at_traceon
 
46100
 
 
46101
   $as_echo "ovsdb-column.at:7" >"$at_check_line_file"
 
46102
(test $HAVE_PYTHON = no) \
 
46103
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-column.at:7"
 
46104
 
 
46105
 
 
46106
   { set +x
 
46107
$as_echo "$at_srcdir/ovsdb-column.at:7: \$PYTHON \$srcdir/test-ovsdb.py parse-column mycol '{\"type\": \"real\", \"mutable\": false}'"
 
46108
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-column mycol '{\"type\": \"real\", \"mutable\": false}'" "ovsdb-column.at:7"
 
46109
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-column mycol '{"type": "real", "mutable": false}'
 
46110
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46111
at_status=$? at_failed=false
 
46112
$at_check_filter
 
46113
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46114
echo >>"$at_stdout"; $as_echo "{\"mutable\":false,\"type\":\"real\"}
 
46115
" | \
 
46116
  $at_diff - "$at_stdout" || at_failed=:
 
46117
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-column.at:7"
 
46118
$at_failed && at_fn_log_failure
 
46119
$at_traceon; }
 
46120
 
 
46121
     set +x
 
46122
  $at_times_p && times >"$at_times_file"
 
46123
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46124
read at_status <"$at_status_file"
 
46125
#AT_STOP_654
 
46126
#AT_START_655
 
46127
at_fn_group_banner 655 'ovsdb-column.at:11' \
 
46128
  "ephemeral column - C" "                           " 48
 
46129
at_xfail=no
 
46130
(
 
46131
  $as_echo "655. $at_setup_line: testing $at_desc ..."
 
46132
  $at_traceon
 
46133
 
 
46134
 
 
46135
   { set +x
 
46136
$as_echo "$at_srcdir/ovsdb-column.at:11: test-ovsdb parse-column mycol '{\"type\": \"uuid\", \"ephemeral\": true}'"
 
46137
at_fn_check_prepare_trace "ovsdb-column.at:11"
 
46138
( $at_check_trace; test-ovsdb parse-column mycol '{"type": "uuid", "ephemeral": true}'
 
46139
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46140
at_status=$? at_failed=false
 
46141
$at_check_filter
 
46142
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46143
echo >>"$at_stdout"; $as_echo "{\"ephemeral\":true,\"type\":\"uuid\"}
 
46144
" | \
 
46145
  $at_diff - "$at_stdout" || at_failed=:
 
46146
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-column.at:11"
 
46147
$at_failed && at_fn_log_failure
 
46148
$at_traceon; }
 
46149
 
 
46150
     set +x
 
46151
  $at_times_p && times >"$at_times_file"
 
46152
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46153
read at_status <"$at_status_file"
 
46154
#AT_STOP_655
 
46155
#AT_START_656
 
46156
at_fn_group_banner 656 'ovsdb-column.at:11' \
 
46157
  "ephemeral column - Python" "                      " 48
 
46158
at_xfail=no
 
46159
(
 
46160
  $as_echo "656. $at_setup_line: testing $at_desc ..."
 
46161
  $at_traceon
 
46162
 
 
46163
   $as_echo "ovsdb-column.at:11" >"$at_check_line_file"
 
46164
(test $HAVE_PYTHON = no) \
 
46165
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-column.at:11"
 
46166
 
 
46167
 
 
46168
   { set +x
 
46169
$as_echo "$at_srcdir/ovsdb-column.at:11: \$PYTHON \$srcdir/test-ovsdb.py parse-column mycol '{\"type\": \"uuid\", \"ephemeral\": true}'"
 
46170
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-column mycol '{\"type\": \"uuid\", \"ephemeral\": true}'" "ovsdb-column.at:11"
 
46171
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-column mycol '{"type": "uuid", "ephemeral": true}'
 
46172
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46173
at_status=$? at_failed=false
 
46174
$at_check_filter
 
46175
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46176
echo >>"$at_stdout"; $as_echo "{\"ephemeral\":true,\"type\":\"uuid\"}
 
46177
" | \
 
46178
  $at_diff - "$at_stdout" || at_failed=:
 
46179
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-column.at:11"
 
46180
$at_failed && at_fn_log_failure
 
46181
$at_traceon; }
 
46182
 
 
46183
     set +x
 
46184
  $at_times_p && times >"$at_times_file"
 
46185
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46186
read at_status <"$at_status_file"
 
46187
#AT_STOP_656
 
46188
#AT_START_657
 
46189
at_fn_group_banner 657 'ovsdb-table.at:3' \
 
46190
  "non-root table with one column - C" "             " 49
 
46191
at_xfail=no
 
46192
(
 
46193
  $as_echo "657. $at_setup_line: testing $at_desc ..."
 
46194
  $at_traceon
 
46195
 
 
46196
 
 
46197
   { set +x
 
46198
$as_echo "$at_srcdir/ovsdb-table.at:3: test-ovsdb parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}}}'"
 
46199
at_fn_check_prepare_trace "ovsdb-table.at:3"
 
46200
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {"name": {"type": "string"}}}'
 
46201
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46202
at_status=$? at_failed=false
 
46203
$at_check_filter
 
46204
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46205
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}}}
 
46206
" | \
 
46207
  $at_diff - "$at_stdout" || at_failed=:
 
46208
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:3"
 
46209
$at_failed && at_fn_log_failure
 
46210
$at_traceon; }
 
46211
 
 
46212
     set +x
 
46213
  $at_times_p && times >"$at_times_file"
 
46214
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46215
read at_status <"$at_status_file"
 
46216
#AT_STOP_657
 
46217
#AT_START_658
 
46218
at_fn_group_banner 658 'ovsdb-table.at:3' \
 
46219
  "non-root table with one column - Python" "        " 49
 
46220
at_xfail=no
 
46221
(
 
46222
  $as_echo "658. $at_setup_line: testing $at_desc ..."
 
46223
  $at_traceon
 
46224
 
 
46225
   $as_echo "ovsdb-table.at:3" >"$at_check_line_file"
 
46226
(test $HAVE_PYTHON = no) \
 
46227
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:3"
 
46228
 
 
46229
 
 
46230
   { set +x
 
46231
$as_echo "$at_srcdir/ovsdb-table.at:3: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}}}'"
 
46232
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}}}'" "ovsdb-table.at:3"
 
46233
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {"name": {"type": "string"}}}'
 
46234
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46235
at_status=$? at_failed=false
 
46236
$at_check_filter
 
46237
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46238
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}}}
 
46239
" | \
 
46240
  $at_diff - "$at_stdout" || at_failed=:
 
46241
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:3"
 
46242
$at_failed && at_fn_log_failure
 
46243
$at_traceon; }
 
46244
 
 
46245
     set +x
 
46246
  $at_times_p && times >"$at_times_file"
 
46247
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46248
read at_status <"$at_status_file"
 
46249
#AT_STOP_658
 
46250
#AT_START_659
 
46251
at_fn_group_banner 659 'ovsdb-table.at:7' \
 
46252
  "immutable table with one column - C" "            " 49
 
46253
at_xfail=no
 
46254
(
 
46255
  $as_echo "659. $at_setup_line: testing $at_desc ..."
 
46256
  $at_traceon
 
46257
 
 
46258
 
 
46259
   { set +x
 
46260
$as_echo "$at_srcdir/ovsdb-table.at:7: test-ovsdb parse-table mytable \\
 
46261
    '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
46262
      \"mutable\": false}'"
 
46263
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:7"
 
46264
( $at_check_trace; test-ovsdb parse-table mytable \
 
46265
    '{"columns": {"name": {"type": "string"}},
 
46266
      "mutable": false}'
 
46267
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46268
at_status=$? at_failed=false
 
46269
$at_check_filter
 
46270
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46271
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}},\"mutable\":false}
 
46272
" | \
 
46273
  $at_diff - "$at_stdout" || at_failed=:
 
46274
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:7"
 
46275
$at_failed && at_fn_log_failure
 
46276
$at_traceon; }
 
46277
 
 
46278
     set +x
 
46279
  $at_times_p && times >"$at_times_file"
 
46280
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46281
read at_status <"$at_status_file"
 
46282
#AT_STOP_659
 
46283
#AT_START_660
 
46284
at_fn_group_banner 660 'ovsdb-table.at:7' \
 
46285
  "immutable table with one column - Python" "       " 49
 
46286
at_xfail=no
 
46287
(
 
46288
  $as_echo "660. $at_setup_line: testing $at_desc ..."
 
46289
  $at_traceon
 
46290
 
 
46291
   $as_echo "ovsdb-table.at:7" >"$at_check_line_file"
 
46292
(test $HAVE_PYTHON = no) \
 
46293
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:7"
 
46294
 
 
46295
 
 
46296
   { set +x
 
46297
$as_echo "$at_srcdir/ovsdb-table.at:7: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable \\
 
46298
    '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
46299
      \"mutable\": false}'"
 
46300
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:7"
 
46301
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable \
 
46302
    '{"columns": {"name": {"type": "string"}},
 
46303
      "mutable": false}'
 
46304
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46305
at_status=$? at_failed=false
 
46306
$at_check_filter
 
46307
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46308
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}},\"mutable\":false}
 
46309
" | \
 
46310
  $at_diff - "$at_stdout" || at_failed=:
 
46311
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:7"
 
46312
$at_failed && at_fn_log_failure
 
46313
$at_traceon; }
 
46314
 
 
46315
     set +x
 
46316
  $at_times_p && times >"$at_times_file"
 
46317
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46318
read at_status <"$at_status_file"
 
46319
#AT_STOP_660
 
46320
#AT_START_661
 
46321
at_fn_group_banner 661 'ovsdb-table.at:13' \
 
46322
  "root table with one column - C" "                 " 49
 
46323
at_xfail=no
 
46324
(
 
46325
  $as_echo "661. $at_setup_line: testing $at_desc ..."
 
46326
  $at_traceon
 
46327
 
 
46328
 
 
46329
   { set +x
 
46330
$as_echo "$at_srcdir/ovsdb-table.at:13: test-ovsdb parse-table mytable \\
 
46331
    '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
46332
      \"isRoot\": true}'"
 
46333
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:13"
 
46334
( $at_check_trace; test-ovsdb parse-table mytable \
 
46335
    '{"columns": {"name": {"type": "string"}},
 
46336
      "isRoot": true}'
 
46337
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46338
at_status=$? at_failed=false
 
46339
$at_check_filter
 
46340
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46341
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}},\"isRoot\":true}
 
46342
" | \
 
46343
  $at_diff - "$at_stdout" || at_failed=:
 
46344
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:13"
 
46345
$at_failed && at_fn_log_failure
 
46346
$at_traceon; }
 
46347
 
 
46348
     set +x
 
46349
  $at_times_p && times >"$at_times_file"
 
46350
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46351
read at_status <"$at_status_file"
 
46352
#AT_STOP_661
 
46353
#AT_START_662
 
46354
at_fn_group_banner 662 'ovsdb-table.at:13' \
 
46355
  "root table with one column - Python" "            " 49
 
46356
at_xfail=no
 
46357
(
 
46358
  $as_echo "662. $at_setup_line: testing $at_desc ..."
 
46359
  $at_traceon
 
46360
 
 
46361
   $as_echo "ovsdb-table.at:13" >"$at_check_line_file"
 
46362
(test $HAVE_PYTHON = no) \
 
46363
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:13"
 
46364
 
 
46365
 
 
46366
   { set +x
 
46367
$as_echo "$at_srcdir/ovsdb-table.at:13: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable \\
 
46368
    '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
46369
      \"isRoot\": true}'"
 
46370
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:13"
 
46371
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable \
 
46372
    '{"columns": {"name": {"type": "string"}},
 
46373
      "isRoot": true}'
 
46374
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46375
at_status=$? at_failed=false
 
46376
$at_check_filter
 
46377
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46378
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}},\"isRoot\":true}
 
46379
" | \
 
46380
  $at_diff - "$at_stdout" || at_failed=:
 
46381
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:13"
 
46382
$at_failed && at_fn_log_failure
 
46383
$at_traceon; }
 
46384
 
 
46385
     set +x
 
46386
  $at_times_p && times >"$at_times_file"
 
46387
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46388
read at_status <"$at_status_file"
 
46389
#AT_STOP_662
 
46390
#AT_START_663
 
46391
at_fn_group_banner 663 'ovsdb-table.at:19' \
 
46392
  "non-root table with default_is_root=true - C" "   " 49
 
46393
at_xfail=no
 
46394
(
 
46395
  $as_echo "663. $at_setup_line: testing $at_desc ..."
 
46396
  $at_traceon
 
46397
 
 
46398
 
 
46399
   { set +x
 
46400
$as_echo "$at_srcdir/ovsdb-table.at:19: test-ovsdb parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}}}' true"
 
46401
at_fn_check_prepare_trace "ovsdb-table.at:19"
 
46402
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {"name": {"type": "string"}}}' true
 
46403
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46404
at_status=$? at_failed=false
 
46405
$at_check_filter
 
46406
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46407
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}},\"isRoot\":false}
 
46408
" | \
 
46409
  $at_diff - "$at_stdout" || at_failed=:
 
46410
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:19"
 
46411
$at_failed && at_fn_log_failure
 
46412
$at_traceon; }
 
46413
 
 
46414
     set +x
 
46415
  $at_times_p && times >"$at_times_file"
 
46416
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46417
read at_status <"$at_status_file"
 
46418
#AT_STOP_663
 
46419
#AT_START_664
 
46420
at_fn_group_banner 664 'ovsdb-table.at:19' \
 
46421
  "non-root table with default_is_root=true - Python" "" 49
 
46422
at_xfail=no
 
46423
(
 
46424
  $as_echo "664. $at_setup_line: testing $at_desc ..."
 
46425
  $at_traceon
 
46426
 
 
46427
   $as_echo "ovsdb-table.at:19" >"$at_check_line_file"
 
46428
(test $HAVE_PYTHON = no) \
 
46429
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:19"
 
46430
 
 
46431
 
 
46432
   { set +x
 
46433
$as_echo "$at_srcdir/ovsdb-table.at:19: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}}}' true"
 
46434
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}}}' true" "ovsdb-table.at:19"
 
46435
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {"name": {"type": "string"}}}' true
 
46436
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46437
at_status=$? at_failed=false
 
46438
$at_check_filter
 
46439
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46440
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}},\"isRoot\":false}
 
46441
" | \
 
46442
  $at_diff - "$at_stdout" || at_failed=:
 
46443
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:19"
 
46444
$at_failed && at_fn_log_failure
 
46445
$at_traceon; }
 
46446
 
 
46447
     set +x
 
46448
  $at_times_p && times >"$at_times_file"
 
46449
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46450
read at_status <"$at_status_file"
 
46451
#AT_STOP_664
 
46452
#AT_START_665
 
46453
at_fn_group_banner 665 'ovsdb-table.at:23' \
 
46454
  "root table with default_is_root=true - C" "       " 49
 
46455
at_xfail=no
 
46456
(
 
46457
  $as_echo "665. $at_setup_line: testing $at_desc ..."
 
46458
  $at_traceon
 
46459
 
 
46460
 
 
46461
   { set +x
 
46462
$as_echo "$at_srcdir/ovsdb-table.at:23: test-ovsdb parse-table mytable \\
 
46463
    '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
46464
      \"isRoot\": true}' true"
 
46465
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:23"
 
46466
( $at_check_trace; test-ovsdb parse-table mytable \
 
46467
    '{"columns": {"name": {"type": "string"}},
 
46468
      "isRoot": true}' true
 
46469
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46470
at_status=$? at_failed=false
 
46471
$at_check_filter
 
46472
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46473
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}}}
 
46474
" | \
 
46475
  $at_diff - "$at_stdout" || at_failed=:
 
46476
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:23"
 
46477
$at_failed && at_fn_log_failure
 
46478
$at_traceon; }
 
46479
 
 
46480
     set +x
 
46481
  $at_times_p && times >"$at_times_file"
 
46482
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46483
read at_status <"$at_status_file"
 
46484
#AT_STOP_665
 
46485
#AT_START_666
 
46486
at_fn_group_banner 666 'ovsdb-table.at:23' \
 
46487
  "root table with default_is_root=true - Python" "  " 49
 
46488
at_xfail=no
 
46489
(
 
46490
  $as_echo "666. $at_setup_line: testing $at_desc ..."
 
46491
  $at_traceon
 
46492
 
 
46493
   $as_echo "ovsdb-table.at:23" >"$at_check_line_file"
 
46494
(test $HAVE_PYTHON = no) \
 
46495
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:23"
 
46496
 
 
46497
 
 
46498
   { set +x
 
46499
$as_echo "$at_srcdir/ovsdb-table.at:23: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable \\
 
46500
    '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
46501
      \"isRoot\": true}' true"
 
46502
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:23"
 
46503
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable \
 
46504
    '{"columns": {"name": {"type": "string"}},
 
46505
      "isRoot": true}' true
 
46506
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46507
at_status=$? at_failed=false
 
46508
$at_check_filter
 
46509
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46510
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}}}
 
46511
" | \
 
46512
  $at_diff - "$at_stdout" || at_failed=:
 
46513
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:23"
 
46514
$at_failed && at_fn_log_failure
 
46515
$at_traceon; }
 
46516
 
 
46517
     set +x
 
46518
  $at_times_p && times >"$at_times_file"
 
46519
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46520
read at_status <"$at_status_file"
 
46521
#AT_STOP_666
 
46522
#AT_START_667
 
46523
at_fn_group_banner 667 'ovsdb-table.at:29' \
 
46524
  "table with maxRows of 2 - C" "                    " 49
 
46525
at_xfail=no
 
46526
(
 
46527
  $as_echo "667. $at_setup_line: testing $at_desc ..."
 
46528
  $at_traceon
 
46529
 
 
46530
 
 
46531
   { set +x
 
46532
$as_echo "$at_srcdir/ovsdb-table.at:29: test-ovsdb parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
46533
                          \"maxRows\": 2}'"
 
46534
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:29"
 
46535
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {"name": {"type": "string"}},
 
46536
                          "maxRows": 2}'
 
46537
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46538
at_status=$? at_failed=false
 
46539
$at_check_filter
 
46540
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46541
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}},\"maxRows\":2}
 
46542
" | \
 
46543
  $at_diff - "$at_stdout" || at_failed=:
 
46544
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:29"
 
46545
$at_failed && at_fn_log_failure
 
46546
$at_traceon; }
 
46547
 
 
46548
     set +x
 
46549
  $at_times_p && times >"$at_times_file"
 
46550
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46551
read at_status <"$at_status_file"
 
46552
#AT_STOP_667
 
46553
#AT_START_668
 
46554
at_fn_group_banner 668 'ovsdb-table.at:29' \
 
46555
  "table with maxRows of 2 - Python" "               " 49
 
46556
at_xfail=no
 
46557
(
 
46558
  $as_echo "668. $at_setup_line: testing $at_desc ..."
 
46559
  $at_traceon
 
46560
 
 
46561
   $as_echo "ovsdb-table.at:29" >"$at_check_line_file"
 
46562
(test $HAVE_PYTHON = no) \
 
46563
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:29"
 
46564
 
 
46565
 
 
46566
   { set +x
 
46567
$as_echo "$at_srcdir/ovsdb-table.at:29: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
46568
                          \"maxRows\": 2}'"
 
46569
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:29"
 
46570
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {"name": {"type": "string"}},
 
46571
                          "maxRows": 2}'
 
46572
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46573
at_status=$? at_failed=false
 
46574
$at_check_filter
 
46575
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46576
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"name\":{\"type\":\"string\"}},\"maxRows\":2}
 
46577
" | \
 
46578
  $at_diff - "$at_stdout" || at_failed=:
 
46579
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:29"
 
46580
$at_failed && at_fn_log_failure
 
46581
$at_traceon; }
 
46582
 
 
46583
     set +x
 
46584
  $at_times_p && times >"$at_times_file"
 
46585
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46586
read at_status <"$at_status_file"
 
46587
#AT_STOP_668
 
46588
#AT_START_669
 
46589
at_fn_group_banner 669 'ovsdb-table.at:34' \
 
46590
  "table with index - C" "                           " 49
 
46591
at_xfail=no
 
46592
(
 
46593
  $as_echo "669. $at_setup_line: testing $at_desc ..."
 
46594
  $at_traceon
 
46595
 
 
46596
 
 
46597
   { set +x
 
46598
$as_echo "$at_srcdir/ovsdb-table.at:34: test-ovsdb parse-table mytable '{\"columns\": {\"a\": {\"type\": \"integer\"},
 
46599
                                      \"b\": {\"type\": \"string\"}},
 
46600
                          \"indexes\": [[\"b\", \"a\"]]}'"
 
46601
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:34"
 
46602
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {"a": {"type": "integer"},
 
46603
                                      "b": {"type": "string"}},
 
46604
                          "indexes": [["b", "a"]]}'
 
46605
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46606
at_status=$? at_failed=false
 
46607
$at_check_filter
 
46608
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46609
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"a\":{\"type\":\"integer\"},\"b\":{\"type\":\"string\"}},\"indexes\":[[\"b\",\"a\"]]}
 
46610
" | \
 
46611
  $at_diff - "$at_stdout" || at_failed=:
 
46612
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:34"
 
46613
$at_failed && at_fn_log_failure
 
46614
$at_traceon; }
 
46615
 
 
46616
     set +x
 
46617
  $at_times_p && times >"$at_times_file"
 
46618
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46619
read at_status <"$at_status_file"
 
46620
#AT_STOP_669
 
46621
#AT_START_670
 
46622
at_fn_group_banner 670 'ovsdb-table.at:34' \
 
46623
  "table with index - Python" "                      " 49
 
46624
at_xfail=no
 
46625
(
 
46626
  $as_echo "670. $at_setup_line: testing $at_desc ..."
 
46627
  $at_traceon
 
46628
 
 
46629
   $as_echo "ovsdb-table.at:34" >"$at_check_line_file"
 
46630
(test $HAVE_PYTHON = no) \
 
46631
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:34"
 
46632
 
 
46633
 
 
46634
   { set +x
 
46635
$as_echo "$at_srcdir/ovsdb-table.at:34: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"a\": {\"type\": \"integer\"},
 
46636
                                      \"b\": {\"type\": \"string\"}},
 
46637
                          \"indexes\": [[\"b\", \"a\"]]}'"
 
46638
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:34"
 
46639
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {"a": {"type": "integer"},
 
46640
                                      "b": {"type": "string"}},
 
46641
                          "indexes": [["b", "a"]]}'
 
46642
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46643
at_status=$? at_failed=false
 
46644
$at_check_filter
 
46645
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
46646
echo >>"$at_stdout"; $as_echo "{\"columns\":{\"a\":{\"type\":\"integer\"},\"b\":{\"type\":\"string\"}},\"indexes\":[[\"b\",\"a\"]]}
 
46647
" | \
 
46648
  $at_diff - "$at_stdout" || at_failed=:
 
46649
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:34"
 
46650
$at_failed && at_fn_log_failure
 
46651
$at_traceon; }
 
46652
 
 
46653
     set +x
 
46654
  $at_times_p && times >"$at_times_file"
 
46655
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46656
read at_status <"$at_status_file"
 
46657
#AT_STOP_670
 
46658
#AT_START_671
 
46659
at_fn_group_banner 671 'ovsdb-table.at:40' \
 
46660
  "table with syntax error in index - C" "           " 49
 
46661
at_xfail=no
 
46662
(
 
46663
  $as_echo "671. $at_setup_line: testing $at_desc ..."
 
46664
  $at_traceon
 
46665
 
 
46666
 
 
46667
   { set +x
 
46668
$as_echo "$at_srcdir/ovsdb-table.at:40: test-ovsdb parse-table mytable '{\"columns\": {\"a\": {\"type\": \"integer\"},
 
46669
                                      \"b\": {\"type\": \"string\"}},
 
46670
                          \"indexes\": [[\"b\", \"a\"], [0]]}'"
 
46671
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:40"
 
46672
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {"a": {"type": "integer"},
 
46673
                                      "b": {"type": "string"}},
 
46674
                          "indexes": [["b", "a"], [0]]}'
 
46675
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46676
at_status=$? at_failed=false
 
46677
$at_check_filter
 
46678
echo stderr:; tee stderr <"$at_stderr"
 
46679
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
46680
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:40"
 
46681
$at_failed && at_fn_log_failure
 
46682
$at_traceon; }
 
46683
 
 
46684
 
 
46685
   { set +x
 
46686
$as_echo "$at_srcdir/ovsdb-table.at:40: if grep -F -e \"array of distinct column names expected\" stderr
 
46687
      then
 
46688
        :
 
46689
      else
 
46690
        exit 99
 
46691
      fi"
 
46692
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:40"
 
46693
( $at_check_trace; if grep -F -e "array of distinct column names expected" stderr
 
46694
      then
 
46695
        :
 
46696
      else
 
46697
        exit 99
 
46698
      fi
 
46699
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46700
at_status=$? at_failed=false
 
46701
$at_check_filter
 
46702
echo stderr:; cat "$at_stderr"
 
46703
echo stdout:; cat "$at_stdout"
 
46704
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:40"
 
46705
$at_failed && at_fn_log_failure
 
46706
$at_traceon; }
 
46707
 
 
46708
     set +x
 
46709
  $at_times_p && times >"$at_times_file"
 
46710
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46711
read at_status <"$at_status_file"
 
46712
#AT_STOP_671
 
46713
#AT_START_672
 
46714
at_fn_group_banner 672 'ovsdb-table.at:40' \
 
46715
  "table with syntax error in index - Python" "      " 49
 
46716
at_xfail=no
 
46717
(
 
46718
  $as_echo "672. $at_setup_line: testing $at_desc ..."
 
46719
  $at_traceon
 
46720
 
 
46721
   $as_echo "ovsdb-table.at:40" >"$at_check_line_file"
 
46722
(test $HAVE_PYTHON = no) \
 
46723
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:40"
 
46724
 
 
46725
   { set +x
 
46726
$as_echo "$at_srcdir/ovsdb-table.at:40: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"a\": {\"type\": \"integer\"},
 
46727
                                      \"b\": {\"type\": \"string\"}},
 
46728
                          \"indexes\": [[\"b\", \"a\"], [0]]}'"
 
46729
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:40"
 
46730
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {"a": {"type": "integer"},
 
46731
                                      "b": {"type": "string"}},
 
46732
                          "indexes": [["b", "a"], [0]]}'
 
46733
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46734
at_status=$? at_failed=false
 
46735
$at_check_filter
 
46736
echo stderr:; tee stderr <"$at_stderr"
 
46737
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
46738
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:40"
 
46739
$at_failed && at_fn_log_failure
 
46740
$at_traceon; }
 
46741
 
 
46742
 
 
46743
   { set +x
 
46744
$as_echo "$at_srcdir/ovsdb-table.at:40: if grep -F -e \"array of distinct column names expected\" stderr
 
46745
      then
 
46746
        :
 
46747
      else
 
46748
        exit 99
 
46749
      fi"
 
46750
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:40"
 
46751
( $at_check_trace; if grep -F -e "array of distinct column names expected" stderr
 
46752
      then
 
46753
        :
 
46754
      else
 
46755
        exit 99
 
46756
      fi
 
46757
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46758
at_status=$? at_failed=false
 
46759
$at_check_filter
 
46760
echo stderr:; cat "$at_stderr"
 
46761
echo stdout:; cat "$at_stdout"
 
46762
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:40"
 
46763
$at_failed && at_fn_log_failure
 
46764
$at_traceon; }
 
46765
 
 
46766
     set +x
 
46767
  $at_times_p && times >"$at_times_file"
 
46768
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46769
read at_status <"$at_status_file"
 
46770
#AT_STOP_672
 
46771
#AT_START_673
 
46772
at_fn_group_banner 673 'ovsdb-table.at:46' \
 
46773
  "table with empty index - C" "                     " 49
 
46774
at_xfail=no
 
46775
(
 
46776
  $as_echo "673. $at_setup_line: testing $at_desc ..."
 
46777
  $at_traceon
 
46778
 
 
46779
 
 
46780
   { set +x
 
46781
$as_echo "$at_srcdir/ovsdb-table.at:46: test-ovsdb parse-table mytable '{\"columns\": {\"a\": {\"type\": \"integer\"},
 
46782
                                      \"b\": {\"type\": \"string\"}},
 
46783
                          \"indexes\": [[]]}'"
 
46784
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:46"
 
46785
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {"a": {"type": "integer"},
 
46786
                                      "b": {"type": "string"}},
 
46787
                          "indexes": [[]]}'
 
46788
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46789
at_status=$? at_failed=false
 
46790
$at_check_filter
 
46791
echo stderr:; tee stderr <"$at_stderr"
 
46792
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
46793
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:46"
 
46794
$at_failed && at_fn_log_failure
 
46795
$at_traceon; }
 
46796
 
 
46797
 
 
46798
   { set +x
 
46799
$as_echo "$at_srcdir/ovsdb-table.at:46: if grep -F -e \"index must have at least one column\" stderr
 
46800
      then
 
46801
        :
 
46802
      else
 
46803
        exit 99
 
46804
      fi"
 
46805
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:46"
 
46806
( $at_check_trace; if grep -F -e "index must have at least one column" stderr
 
46807
      then
 
46808
        :
 
46809
      else
 
46810
        exit 99
 
46811
      fi
 
46812
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46813
at_status=$? at_failed=false
 
46814
$at_check_filter
 
46815
echo stderr:; cat "$at_stderr"
 
46816
echo stdout:; cat "$at_stdout"
 
46817
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:46"
 
46818
$at_failed && at_fn_log_failure
 
46819
$at_traceon; }
 
46820
 
 
46821
     set +x
 
46822
  $at_times_p && times >"$at_times_file"
 
46823
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46824
read at_status <"$at_status_file"
 
46825
#AT_STOP_673
 
46826
#AT_START_674
 
46827
at_fn_group_banner 674 'ovsdb-table.at:46' \
 
46828
  "table with empty index - Python" "                " 49
 
46829
at_xfail=no
 
46830
(
 
46831
  $as_echo "674. $at_setup_line: testing $at_desc ..."
 
46832
  $at_traceon
 
46833
 
 
46834
   $as_echo "ovsdb-table.at:46" >"$at_check_line_file"
 
46835
(test $HAVE_PYTHON = no) \
 
46836
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:46"
 
46837
 
 
46838
   { set +x
 
46839
$as_echo "$at_srcdir/ovsdb-table.at:46: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"a\": {\"type\": \"integer\"},
 
46840
                                      \"b\": {\"type\": \"string\"}},
 
46841
                          \"indexes\": [[]]}'"
 
46842
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:46"
 
46843
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {"a": {"type": "integer"},
 
46844
                                      "b": {"type": "string"}},
 
46845
                          "indexes": [[]]}'
 
46846
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46847
at_status=$? at_failed=false
 
46848
$at_check_filter
 
46849
echo stderr:; tee stderr <"$at_stderr"
 
46850
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
46851
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:46"
 
46852
$at_failed && at_fn_log_failure
 
46853
$at_traceon; }
 
46854
 
 
46855
 
 
46856
   { set +x
 
46857
$as_echo "$at_srcdir/ovsdb-table.at:46: if grep -F -e \"index must have at least one column\" stderr
 
46858
      then
 
46859
        :
 
46860
      else
 
46861
        exit 99
 
46862
      fi"
 
46863
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:46"
 
46864
( $at_check_trace; if grep -F -e "index must have at least one column" stderr
 
46865
      then
 
46866
        :
 
46867
      else
 
46868
        exit 99
 
46869
      fi
 
46870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46871
at_status=$? at_failed=false
 
46872
$at_check_filter
 
46873
echo stderr:; cat "$at_stderr"
 
46874
echo stdout:; cat "$at_stdout"
 
46875
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:46"
 
46876
$at_failed && at_fn_log_failure
 
46877
$at_traceon; }
 
46878
 
 
46879
     set +x
 
46880
  $at_times_p && times >"$at_times_file"
 
46881
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46882
read at_status <"$at_status_file"
 
46883
#AT_STOP_674
 
46884
#AT_START_675
 
46885
at_fn_group_banner 675 'ovsdb-table.at:52' \
 
46886
  "table with index of ephemeral column - C" "       " 49
 
46887
at_xfail=no
 
46888
(
 
46889
  $as_echo "675. $at_setup_line: testing $at_desc ..."
 
46890
  $at_traceon
 
46891
 
 
46892
 
 
46893
   { set +x
 
46894
$as_echo "$at_srcdir/ovsdb-table.at:52: test-ovsdb parse-table mytable '{\"columns\": {\"a\": {\"type\": \"integer\",
 
46895
                                            \"ephemeral\": true},
 
46896
                                      \"b\": {\"type\": \"string\"}},
 
46897
                          \"indexes\": [[\"b\", \"a\"]]}'"
 
46898
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:52"
 
46899
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {"a": {"type": "integer",
 
46900
                                            "ephemeral": true},
 
46901
                                      "b": {"type": "string"}},
 
46902
                          "indexes": [["b", "a"]]}'
 
46903
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46904
at_status=$? at_failed=false
 
46905
$at_check_filter
 
46906
echo stderr:; tee stderr <"$at_stderr"
 
46907
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
46908
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:52"
 
46909
$at_failed && at_fn_log_failure
 
46910
$at_traceon; }
 
46911
 
 
46912
 
 
46913
   { set +x
 
46914
$as_echo "$at_srcdir/ovsdb-table.at:52: if grep -F -e \"ephemeral columns (such as a) may not be indexed\" stderr
 
46915
      then
 
46916
        :
 
46917
      else
 
46918
        exit 99
 
46919
      fi"
 
46920
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:52"
 
46921
( $at_check_trace; if grep -F -e "ephemeral columns (such as a) may not be indexed" stderr
 
46922
      then
 
46923
        :
 
46924
      else
 
46925
        exit 99
 
46926
      fi
 
46927
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46928
at_status=$? at_failed=false
 
46929
$at_check_filter
 
46930
echo stderr:; cat "$at_stderr"
 
46931
echo stdout:; cat "$at_stdout"
 
46932
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:52"
 
46933
$at_failed && at_fn_log_failure
 
46934
$at_traceon; }
 
46935
 
 
46936
     set +x
 
46937
  $at_times_p && times >"$at_times_file"
 
46938
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46939
read at_status <"$at_status_file"
 
46940
#AT_STOP_675
 
46941
#AT_START_676
 
46942
at_fn_group_banner 676 'ovsdb-table.at:52' \
 
46943
  "table with index of ephemeral column - Python" "  " 49
 
46944
at_xfail=no
 
46945
(
 
46946
  $as_echo "676. $at_setup_line: testing $at_desc ..."
 
46947
  $at_traceon
 
46948
 
 
46949
   $as_echo "ovsdb-table.at:52" >"$at_check_line_file"
 
46950
(test $HAVE_PYTHON = no) \
 
46951
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:52"
 
46952
 
 
46953
   { set +x
 
46954
$as_echo "$at_srcdir/ovsdb-table.at:52: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"a\": {\"type\": \"integer\",
 
46955
                                            \"ephemeral\": true},
 
46956
                                      \"b\": {\"type\": \"string\"}},
 
46957
                          \"indexes\": [[\"b\", \"a\"]]}'"
 
46958
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:52"
 
46959
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {"a": {"type": "integer",
 
46960
                                            "ephemeral": true},
 
46961
                                      "b": {"type": "string"}},
 
46962
                          "indexes": [["b", "a"]]}'
 
46963
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46964
at_status=$? at_failed=false
 
46965
$at_check_filter
 
46966
echo stderr:; tee stderr <"$at_stderr"
 
46967
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
46968
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:52"
 
46969
$at_failed && at_fn_log_failure
 
46970
$at_traceon; }
 
46971
 
 
46972
 
 
46973
   { set +x
 
46974
$as_echo "$at_srcdir/ovsdb-table.at:52: if grep -F -e \"ephemeral columns (such as a) may not be indexed\" stderr
 
46975
      then
 
46976
        :
 
46977
      else
 
46978
        exit 99
 
46979
      fi"
 
46980
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:52"
 
46981
( $at_check_trace; if grep -F -e "ephemeral columns (such as a) may not be indexed" stderr
 
46982
      then
 
46983
        :
 
46984
      else
 
46985
        exit 99
 
46986
      fi
 
46987
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
46988
at_status=$? at_failed=false
 
46989
$at_check_filter
 
46990
echo stderr:; cat "$at_stderr"
 
46991
echo stdout:; cat "$at_stdout"
 
46992
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:52"
 
46993
$at_failed && at_fn_log_failure
 
46994
$at_traceon; }
 
46995
 
 
46996
     set +x
 
46997
  $at_times_p && times >"$at_times_file"
 
46998
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
46999
read at_status <"$at_status_file"
 
47000
#AT_STOP_676
 
47001
#AT_START_677
 
47002
at_fn_group_banner 677 'ovsdb-table.at:59' \
 
47003
  "column names may not begin with _ - C" "          " 49
 
47004
at_xfail=no
 
47005
(
 
47006
  $as_echo "677. $at_setup_line: testing $at_desc ..."
 
47007
  $at_traceon
 
47008
 
 
47009
 
 
47010
   { set +x
 
47011
$as_echo "$at_srcdir/ovsdb-table.at:59: test-ovsdb parse-table mytable \\
 
47012
    '{\"columns\": {\"_column\": {\"type\": \"integer\"}}}'"
 
47013
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:59"
 
47014
( $at_check_trace; test-ovsdb parse-table mytable \
 
47015
    '{"columns": {"_column": {"type": "integer"}}}'
 
47016
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47017
at_status=$? at_failed=false
 
47018
$at_check_filter
 
47019
echo stderr:; tee stderr <"$at_stderr"
 
47020
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
47021
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:59"
 
47022
$at_failed && at_fn_log_failure
 
47023
$at_traceon; }
 
47024
 
 
47025
 
 
47026
   { set +x
 
47027
$as_echo "$at_srcdir/ovsdb-table.at:59: if grep -F -e \"names beginning with \\\"_\\\" are reserved\" stderr
 
47028
      then
 
47029
        :
 
47030
      else
 
47031
        exit 99
 
47032
      fi"
 
47033
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:59"
 
47034
( $at_check_trace; if grep -F -e "names beginning with \"_\" are reserved" stderr
 
47035
      then
 
47036
        :
 
47037
      else
 
47038
        exit 99
 
47039
      fi
 
47040
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47041
at_status=$? at_failed=false
 
47042
$at_check_filter
 
47043
echo stderr:; cat "$at_stderr"
 
47044
echo stdout:; cat "$at_stdout"
 
47045
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:59"
 
47046
$at_failed && at_fn_log_failure
 
47047
$at_traceon; }
 
47048
 
 
47049
     set +x
 
47050
  $at_times_p && times >"$at_times_file"
 
47051
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47052
read at_status <"$at_status_file"
 
47053
#AT_STOP_677
 
47054
#AT_START_678
 
47055
at_fn_group_banner 678 'ovsdb-table.at:59' \
 
47056
  "column names may not begin with _ - Python" "     " 49
 
47057
at_xfail=no
 
47058
(
 
47059
  $as_echo "678. $at_setup_line: testing $at_desc ..."
 
47060
  $at_traceon
 
47061
 
 
47062
   $as_echo "ovsdb-table.at:59" >"$at_check_line_file"
 
47063
(test $HAVE_PYTHON = no) \
 
47064
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:59"
 
47065
 
 
47066
   { set +x
 
47067
$as_echo "$at_srcdir/ovsdb-table.at:59: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable \\
 
47068
    '{\"columns\": {\"_column\": {\"type\": \"integer\"}}}'"
 
47069
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:59"
 
47070
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable \
 
47071
    '{"columns": {"_column": {"type": "integer"}}}'
 
47072
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47073
at_status=$? at_failed=false
 
47074
$at_check_filter
 
47075
echo stderr:; tee stderr <"$at_stderr"
 
47076
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
47077
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:59"
 
47078
$at_failed && at_fn_log_failure
 
47079
$at_traceon; }
 
47080
 
 
47081
 
 
47082
   { set +x
 
47083
$as_echo "$at_srcdir/ovsdb-table.at:59: if grep -F -e \"names beginning with \\\"_\\\" are reserved\" stderr
 
47084
      then
 
47085
        :
 
47086
      else
 
47087
        exit 99
 
47088
      fi"
 
47089
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:59"
 
47090
( $at_check_trace; if grep -F -e "names beginning with \"_\" are reserved" stderr
 
47091
      then
 
47092
        :
 
47093
      else
 
47094
        exit 99
 
47095
      fi
 
47096
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47097
at_status=$? at_failed=false
 
47098
$at_check_filter
 
47099
echo stderr:; cat "$at_stderr"
 
47100
echo stdout:; cat "$at_stdout"
 
47101
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:59"
 
47102
$at_failed && at_fn_log_failure
 
47103
$at_traceon; }
 
47104
 
 
47105
     set +x
 
47106
  $at_times_p && times >"$at_times_file"
 
47107
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47108
read at_status <"$at_status_file"
 
47109
#AT_STOP_678
 
47110
#AT_START_679
 
47111
at_fn_group_banner 679 'ovsdb-table.at:65' \
 
47112
  "table must have at least one column (1) - C" "    " 49
 
47113
at_xfail=no
 
47114
(
 
47115
  $as_echo "679. $at_setup_line: testing $at_desc ..."
 
47116
  $at_traceon
 
47117
 
 
47118
 
 
47119
   { set +x
 
47120
$as_echo "$at_srcdir/ovsdb-table.at:65: test-ovsdb parse-table mytable '{}'"
 
47121
at_fn_check_prepare_trace "ovsdb-table.at:65"
 
47122
( $at_check_trace; test-ovsdb parse-table mytable '{}'
 
47123
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47124
at_status=$? at_failed=false
 
47125
$at_check_filter
 
47126
echo stderr:; tee stderr <"$at_stderr"
 
47127
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
47128
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:65"
 
47129
$at_failed && at_fn_log_failure
 
47130
$at_traceon; }
 
47131
 
 
47132
 
 
47133
   { set +x
 
47134
$as_echo "$at_srcdir/ovsdb-table.at:65: if grep -F -e \"Parsing table schema for table mytable failed: Required 'columns' member is missing.\" stderr
 
47135
      then
 
47136
        :
 
47137
      else
 
47138
        exit 99
 
47139
      fi"
 
47140
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:65"
 
47141
( $at_check_trace; if grep -F -e "Parsing table schema for table mytable failed: Required 'columns' member is missing." stderr
 
47142
      then
 
47143
        :
 
47144
      else
 
47145
        exit 99
 
47146
      fi
 
47147
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47148
at_status=$? at_failed=false
 
47149
$at_check_filter
 
47150
echo stderr:; cat "$at_stderr"
 
47151
echo stdout:; cat "$at_stdout"
 
47152
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:65"
 
47153
$at_failed && at_fn_log_failure
 
47154
$at_traceon; }
 
47155
 
 
47156
     set +x
 
47157
  $at_times_p && times >"$at_times_file"
 
47158
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47159
read at_status <"$at_status_file"
 
47160
#AT_STOP_679
 
47161
#AT_START_680
 
47162
at_fn_group_banner 680 'ovsdb-table.at:65' \
 
47163
  "table must have at least one column (1) - Python" "" 49
 
47164
at_xfail=no
 
47165
(
 
47166
  $as_echo "680. $at_setup_line: testing $at_desc ..."
 
47167
  $at_traceon
 
47168
 
 
47169
   $as_echo "ovsdb-table.at:65" >"$at_check_line_file"
 
47170
(test $HAVE_PYTHON = no) \
 
47171
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:65"
 
47172
 
 
47173
   { set +x
 
47174
$as_echo "$at_srcdir/ovsdb-table.at:65: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{}'"
 
47175
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-table mytable '{}'" "ovsdb-table.at:65"
 
47176
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{}'
 
47177
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47178
at_status=$? at_failed=false
 
47179
$at_check_filter
 
47180
echo stderr:; tee stderr <"$at_stderr"
 
47181
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
47182
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:65"
 
47183
$at_failed && at_fn_log_failure
 
47184
$at_traceon; }
 
47185
 
 
47186
 
 
47187
   { set +x
 
47188
$as_echo "$at_srcdir/ovsdb-table.at:65: if grep -F -e \"Parsing table schema for table mytable failed: Required 'columns' member is missing.\" stderr
 
47189
      then
 
47190
        :
 
47191
      else
 
47192
        exit 99
 
47193
      fi"
 
47194
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:65"
 
47195
( $at_check_trace; if grep -F -e "Parsing table schema for table mytable failed: Required 'columns' member is missing." stderr
 
47196
      then
 
47197
        :
 
47198
      else
 
47199
        exit 99
 
47200
      fi
 
47201
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47202
at_status=$? at_failed=false
 
47203
$at_check_filter
 
47204
echo stderr:; cat "$at_stderr"
 
47205
echo stdout:; cat "$at_stdout"
 
47206
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:65"
 
47207
$at_failed && at_fn_log_failure
 
47208
$at_traceon; }
 
47209
 
 
47210
     set +x
 
47211
  $at_times_p && times >"$at_times_file"
 
47212
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47213
read at_status <"$at_status_file"
 
47214
#AT_STOP_680
 
47215
#AT_START_681
 
47216
at_fn_group_banner 681 'ovsdb-table.at:69' \
 
47217
  "table must have at least one column (2) - C" "    " 49
 
47218
at_xfail=no
 
47219
(
 
47220
  $as_echo "681. $at_setup_line: testing $at_desc ..."
 
47221
  $at_traceon
 
47222
 
 
47223
 
 
47224
   { set +x
 
47225
$as_echo "$at_srcdir/ovsdb-table.at:69: test-ovsdb parse-table mytable '{\"columns\": {}}'"
 
47226
at_fn_check_prepare_trace "ovsdb-table.at:69"
 
47227
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {}}'
 
47228
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47229
at_status=$? at_failed=false
 
47230
$at_check_filter
 
47231
echo stderr:; tee stderr <"$at_stderr"
 
47232
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
47233
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:69"
 
47234
$at_failed && at_fn_log_failure
 
47235
$at_traceon; }
 
47236
 
 
47237
 
 
47238
   { set +x
 
47239
$as_echo "$at_srcdir/ovsdb-table.at:69: if grep -F -e \"table must have at least one column\" stderr
 
47240
      then
 
47241
        :
 
47242
      else
 
47243
        exit 99
 
47244
      fi"
 
47245
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:69"
 
47246
( $at_check_trace; if grep -F -e "table must have at least one column" stderr
 
47247
      then
 
47248
        :
 
47249
      else
 
47250
        exit 99
 
47251
      fi
 
47252
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47253
at_status=$? at_failed=false
 
47254
$at_check_filter
 
47255
echo stderr:; cat "$at_stderr"
 
47256
echo stdout:; cat "$at_stdout"
 
47257
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:69"
 
47258
$at_failed && at_fn_log_failure
 
47259
$at_traceon; }
 
47260
 
 
47261
     set +x
 
47262
  $at_times_p && times >"$at_times_file"
 
47263
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47264
read at_status <"$at_status_file"
 
47265
#AT_STOP_681
 
47266
#AT_START_682
 
47267
at_fn_group_banner 682 'ovsdb-table.at:69' \
 
47268
  "table must have at least one column (2) - Python" "" 49
 
47269
at_xfail=no
 
47270
(
 
47271
  $as_echo "682. $at_setup_line: testing $at_desc ..."
 
47272
  $at_traceon
 
47273
 
 
47274
   $as_echo "ovsdb-table.at:69" >"$at_check_line_file"
 
47275
(test $HAVE_PYTHON = no) \
 
47276
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:69"
 
47277
 
 
47278
   { set +x
 
47279
$as_echo "$at_srcdir/ovsdb-table.at:69: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {}}'"
 
47280
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {}}'" "ovsdb-table.at:69"
 
47281
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {}}'
 
47282
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47283
at_status=$? at_failed=false
 
47284
$at_check_filter
 
47285
echo stderr:; tee stderr <"$at_stderr"
 
47286
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
47287
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:69"
 
47288
$at_failed && at_fn_log_failure
 
47289
$at_traceon; }
 
47290
 
 
47291
 
 
47292
   { set +x
 
47293
$as_echo "$at_srcdir/ovsdb-table.at:69: if grep -F -e \"table must have at least one column\" stderr
 
47294
      then
 
47295
        :
 
47296
      else
 
47297
        exit 99
 
47298
      fi"
 
47299
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:69"
 
47300
( $at_check_trace; if grep -F -e "table must have at least one column" stderr
 
47301
      then
 
47302
        :
 
47303
      else
 
47304
        exit 99
 
47305
      fi
 
47306
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47307
at_status=$? at_failed=false
 
47308
$at_check_filter
 
47309
echo stderr:; cat "$at_stderr"
 
47310
echo stdout:; cat "$at_stdout"
 
47311
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:69"
 
47312
$at_failed && at_fn_log_failure
 
47313
$at_traceon; }
 
47314
 
 
47315
     set +x
 
47316
  $at_times_p && times >"$at_times_file"
 
47317
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47318
read at_status <"$at_status_file"
 
47319
#AT_STOP_682
 
47320
#AT_START_683
 
47321
at_fn_group_banner 683 'ovsdb-table.at:73' \
 
47322
  "table maxRows must be positive - C" "             " 49
 
47323
at_xfail=no
 
47324
(
 
47325
  $as_echo "683. $at_setup_line: testing $at_desc ..."
 
47326
  $at_traceon
 
47327
 
 
47328
 
 
47329
   { set +x
 
47330
$as_echo "$at_srcdir/ovsdb-table.at:73: test-ovsdb parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
47331
                          \"maxRows\": 0}'"
 
47332
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:73"
 
47333
( $at_check_trace; test-ovsdb parse-table mytable '{"columns": {"name": {"type": "string"}},
 
47334
                          "maxRows": 0}'
 
47335
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47336
at_status=$? at_failed=false
 
47337
$at_check_filter
 
47338
echo stderr:; tee stderr <"$at_stderr"
 
47339
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
47340
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:73"
 
47341
$at_failed && at_fn_log_failure
 
47342
$at_traceon; }
 
47343
 
 
47344
 
 
47345
   { set +x
 
47346
$as_echo "$at_srcdir/ovsdb-table.at:73: if grep -F -e \"syntax \\\"{\\\"columns\\\":{\\\"name\\\":{\\\"type\\\":\\\"string\\\"}},\\\"maxRows\\\":0}\\\": syntax error: maxRows must be at least 1\" stderr
 
47347
      then
 
47348
        :
 
47349
      else
 
47350
        exit 99
 
47351
      fi"
 
47352
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:73"
 
47353
( $at_check_trace; if grep -F -e "syntax \"{\"columns\":{\"name\":{\"type\":\"string\"}},\"maxRows\":0}\": syntax error: maxRows must be at least 1" stderr
 
47354
      then
 
47355
        :
 
47356
      else
 
47357
        exit 99
 
47358
      fi
 
47359
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47360
at_status=$? at_failed=false
 
47361
$at_check_filter
 
47362
echo stderr:; cat "$at_stderr"
 
47363
echo stdout:; cat "$at_stdout"
 
47364
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:73"
 
47365
$at_failed && at_fn_log_failure
 
47366
$at_traceon; }
 
47367
 
 
47368
     set +x
 
47369
  $at_times_p && times >"$at_times_file"
 
47370
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47371
read at_status <"$at_status_file"
 
47372
#AT_STOP_683
 
47373
#AT_START_684
 
47374
at_fn_group_banner 684 'ovsdb-table.at:73' \
 
47375
  "table maxRows must be positive - Python" "        " 49
 
47376
at_xfail=no
 
47377
(
 
47378
  $as_echo "684. $at_setup_line: testing $at_desc ..."
 
47379
  $at_traceon
 
47380
 
 
47381
   $as_echo "ovsdb-table.at:73" >"$at_check_line_file"
 
47382
(test $HAVE_PYTHON = no) \
 
47383
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-table.at:73"
 
47384
 
 
47385
   { set +x
 
47386
$as_echo "$at_srcdir/ovsdb-table.at:73: \$PYTHON \$srcdir/test-ovsdb.py parse-table mytable '{\"columns\": {\"name\": {\"type\": \"string\"}},
 
47387
                          \"maxRows\": 0}'"
 
47388
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:73"
 
47389
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-table mytable '{"columns": {"name": {"type": "string"}},
 
47390
                          "maxRows": 0}'
 
47391
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47392
at_status=$? at_failed=false
 
47393
$at_check_filter
 
47394
echo stderr:; tee stderr <"$at_stderr"
 
47395
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
47396
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-table.at:73"
 
47397
$at_failed && at_fn_log_failure
 
47398
$at_traceon; }
 
47399
 
 
47400
 
 
47401
   { set +x
 
47402
$as_echo "$at_srcdir/ovsdb-table.at:73: if grep -F -e \"syntax \\\"{\\\"columns\\\":{\\\"name\\\":{\\\"type\\\":\\\"string\\\"}},\\\"maxRows\\\":0}\\\": syntax error: maxRows must be at least 1\" stderr
 
47403
      then
 
47404
        :
 
47405
      else
 
47406
        exit 99
 
47407
      fi"
 
47408
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-table.at:73"
 
47409
( $at_check_trace; if grep -F -e "syntax \"{\"columns\":{\"name\":{\"type\":\"string\"}},\"maxRows\":0}\": syntax error: maxRows must be at least 1" stderr
 
47410
      then
 
47411
        :
 
47412
      else
 
47413
        exit 99
 
47414
      fi
 
47415
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47416
at_status=$? at_failed=false
 
47417
$at_check_filter
 
47418
echo stderr:; cat "$at_stderr"
 
47419
echo stdout:; cat "$at_stdout"
 
47420
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-table.at:73"
 
47421
$at_failed && at_fn_log_failure
 
47422
$at_traceon; }
 
47423
 
 
47424
     set +x
 
47425
  $at_times_p && times >"$at_times_file"
 
47426
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47427
read at_status <"$at_status_file"
 
47428
#AT_STOP_684
 
47429
#AT_START_685
 
47430
at_fn_group_banner 685 'ovsdb-row.at:5' \
 
47431
  "row with one string column" "                     " 50
 
47432
at_xfail=no
 
47433
(
 
47434
  $as_echo "685. $at_setup_line: testing $at_desc ..."
 
47435
  $at_traceon
 
47436
 
 
47437
 
 
47438
   { set +x
 
47439
$as_echo "$at_srcdir/ovsdb-row.at:5: test-ovsdb parse-rows \\
 
47440
    '{\"columns\": {\"name\": {\"type\": \"string\"}}}' \\
 
47441
    '{\"name\": \"value\"}' \\
 
47442
    '{\"name\": \"\"}' \\
 
47443
    '{\"name\": \"longer string with spaces\"}' \\
 
47444
    '{}'"
 
47445
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:5"
 
47446
( $at_check_trace; test-ovsdb parse-rows \
 
47447
    '{"columns": {"name": {"type": "string"}}}' \
 
47448
    '{"name": "value"}' \
 
47449
    '{"name": ""}' \
 
47450
    '{"name": "longer string with spaces"}' \
 
47451
    '{}'
 
47452
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47453
at_status=$? at_failed=false
 
47454
$at_check_filter
 
47455
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47456
echo >>"$at_stdout"; $as_echo "{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"name\":\"value\"}
 
47457
name
 
47458
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"name\":\"\"}
 
47459
name
 
47460
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"name\":\"longer string with spaces\"}
 
47461
name
 
47462
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"name\":\"\"}
 
47463
<none>
 
47464
" | \
 
47465
  $at_diff - "$at_stdout" || at_failed=:
 
47466
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:5"
 
47467
$at_failed && at_fn_log_failure
 
47468
$at_traceon; }
 
47469
 
 
47470
     set +x
 
47471
  $at_times_p && times >"$at_times_file"
 
47472
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47473
read at_status <"$at_status_file"
 
47474
#AT_STOP_685
 
47475
#AT_START_686
 
47476
at_fn_group_banner 686 'ovsdb-row.at:21' \
 
47477
  "row with one integer column" "                    " 50
 
47478
at_xfail=no
 
47479
(
 
47480
  $as_echo "686. $at_setup_line: testing $at_desc ..."
 
47481
  $at_traceon
 
47482
 
 
47483
 
 
47484
   { set +x
 
47485
$as_echo "$at_srcdir/ovsdb-row.at:21: test-ovsdb parse-rows \\
 
47486
    '{\"columns\": {\"count\": {\"type\": \"integer\"}}}' \\
 
47487
    '{\"count\": 1}' \\
 
47488
    '{\"count\": -1}' \\
 
47489
    '{\"count\": 2e10}' \\
 
47490
    '{}'"
 
47491
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:21"
 
47492
( $at_check_trace; test-ovsdb parse-rows \
 
47493
    '{"columns": {"count": {"type": "integer"}}}' \
 
47494
    '{"count": 1}' \
 
47495
    '{"count": -1}' \
 
47496
    '{"count": 2e10}' \
 
47497
    '{}'
 
47498
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47499
at_status=$? at_failed=false
 
47500
$at_check_filter
 
47501
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47502
echo >>"$at_stdout"; $as_echo "{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"count\":1}
 
47503
count
 
47504
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"count\":-1}
 
47505
count
 
47506
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"count\":20000000000}
 
47507
count
 
47508
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"count\":0}
 
47509
<none>
 
47510
" | \
 
47511
  $at_diff - "$at_stdout" || at_failed=:
 
47512
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:21"
 
47513
$at_failed && at_fn_log_failure
 
47514
$at_traceon; }
 
47515
 
 
47516
     set +x
 
47517
  $at_times_p && times >"$at_times_file"
 
47518
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47519
read at_status <"$at_status_file"
 
47520
#AT_STOP_686
 
47521
#AT_START_687
 
47522
at_fn_group_banner 687 'ovsdb-row.at:37' \
 
47523
  "row with one real column" "                       " 50
 
47524
at_xfail=no
 
47525
(
 
47526
  $as_echo "687. $at_setup_line: testing $at_desc ..."
 
47527
  $at_traceon
 
47528
 
 
47529
 
 
47530
   { set +x
 
47531
$as_echo "$at_srcdir/ovsdb-row.at:37: test-ovsdb parse-rows \\
 
47532
    '{\"columns\": {\"cost\": {\"type\": \"real\"}}}' \\
 
47533
    '{\"cost\": 1.0}' \\
 
47534
    '{\"cost\": -2.0}' \\
 
47535
    '{\"cost\": 123000}' \\
 
47536
    '{}'"
 
47537
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:37"
 
47538
( $at_check_trace; test-ovsdb parse-rows \
 
47539
    '{"columns": {"cost": {"type": "real"}}}' \
 
47540
    '{"cost": 1.0}' \
 
47541
    '{"cost": -2.0}' \
 
47542
    '{"cost": 123000}' \
 
47543
    '{}'
 
47544
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47545
at_status=$? at_failed=false
 
47546
$at_check_filter
 
47547
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47548
echo >>"$at_stdout"; $as_echo "{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"cost\":1}
 
47549
cost
 
47550
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"cost\":-2}
 
47551
cost
 
47552
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"cost\":123000}
 
47553
cost
 
47554
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"cost\":0}
 
47555
<none>
 
47556
" | \
 
47557
  $at_diff - "$at_stdout" || at_failed=:
 
47558
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:37"
 
47559
$at_failed && at_fn_log_failure
 
47560
$at_traceon; }
 
47561
 
 
47562
     set +x
 
47563
  $at_times_p && times >"$at_times_file"
 
47564
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47565
read at_status <"$at_status_file"
 
47566
#AT_STOP_687
 
47567
#AT_START_688
 
47568
at_fn_group_banner 688 'ovsdb-row.at:53' \
 
47569
  "row with one boolean column" "                    " 50
 
47570
at_xfail=no
 
47571
(
 
47572
  $as_echo "688. $at_setup_line: testing $at_desc ..."
 
47573
  $at_traceon
 
47574
 
 
47575
 
 
47576
   { set +x
 
47577
$as_echo "$at_srcdir/ovsdb-row.at:53: test-ovsdb parse-rows \\
 
47578
    '{\"columns\": {\"feasible\": {\"type\": \"boolean\"}}}' \\
 
47579
    '{\"feasible\": true}' \\
 
47580
    '{\"feasible\": false}' \\
 
47581
    '{}'"
 
47582
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:53"
 
47583
( $at_check_trace; test-ovsdb parse-rows \
 
47584
    '{"columns": {"feasible": {"type": "boolean"}}}' \
 
47585
    '{"feasible": true}' \
 
47586
    '{"feasible": false}' \
 
47587
    '{}'
 
47588
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47589
at_status=$? at_failed=false
 
47590
$at_check_filter
 
47591
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47592
echo >>"$at_stdout"; $as_echo "{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"feasible\":true}
 
47593
feasible
 
47594
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"feasible\":false}
 
47595
feasible
 
47596
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"feasible\":false}
 
47597
<none>
 
47598
" | \
 
47599
  $at_diff - "$at_stdout" || at_failed=:
 
47600
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:53"
 
47601
$at_failed && at_fn_log_failure
 
47602
$at_traceon; }
 
47603
 
 
47604
     set +x
 
47605
  $at_times_p && times >"$at_times_file"
 
47606
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47607
read at_status <"$at_status_file"
 
47608
#AT_STOP_688
 
47609
#AT_START_689
 
47610
at_fn_group_banner 689 'ovsdb-row.at:66' \
 
47611
  "row with one uuid column" "                       " 50
 
47612
at_xfail=no
 
47613
(
 
47614
  $as_echo "689. $at_setup_line: testing $at_desc ..."
 
47615
  $at_traceon
 
47616
 
 
47617
 
 
47618
   { set +x
 
47619
$as_echo "$at_srcdir/ovsdb-row.at:66: test-ovsdb parse-rows \\
 
47620
    '{\"columns\": {\"ref\": {\"type\": \"uuid\"}}}' \\
 
47621
    '{\"ref\": [\"uuid\", \"f707423d-bf5b-48b5-b6c0-797c900ba4b6\"]}' \\
 
47622
    '{\"ref\": [\"uuid\", \"33583cc5-d2f4-43de-b1ca-8aac14071b51\"]}' \\
 
47623
    '{}'"
 
47624
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:66"
 
47625
( $at_check_trace; test-ovsdb parse-rows \
 
47626
    '{"columns": {"ref": {"type": "uuid"}}}' \
 
47627
    '{"ref": ["uuid", "f707423d-bf5b-48b5-b6c0-797c900ba4b6"]}' \
 
47628
    '{"ref": ["uuid", "33583cc5-d2f4-43de-b1ca-8aac14071b51"]}' \
 
47629
    '{}'
 
47630
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47631
at_status=$? at_failed=false
 
47632
$at_check_filter
 
47633
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47634
echo >>"$at_stdout"; $as_echo "{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"ref\":[\"uuid\",\"f707423d-bf5b-48b5-b6c0-797c900ba4b6\"]}
 
47635
ref
 
47636
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"ref\":[\"uuid\",\"33583cc5-d2f4-43de-b1ca-8aac14071b51\"]}
 
47637
ref
 
47638
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"ref\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"]}
 
47639
<none>
 
47640
" | \
 
47641
  $at_diff - "$at_stdout" || at_failed=:
 
47642
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:66"
 
47643
$at_failed && at_fn_log_failure
 
47644
$at_traceon; }
 
47645
 
 
47646
     set +x
 
47647
  $at_times_p && times >"$at_times_file"
 
47648
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47649
read at_status <"$at_status_file"
 
47650
#AT_STOP_689
 
47651
#AT_START_690
 
47652
at_fn_group_banner 690 'ovsdb-row.at:79' \
 
47653
  "row with set of 1 to 2 elements" "                " 50
 
47654
at_xfail=no
 
47655
(
 
47656
  $as_echo "690. $at_setup_line: testing $at_desc ..."
 
47657
  $at_traceon
 
47658
 
 
47659
 
 
47660
   { set +x
 
47661
$as_echo "$at_srcdir/ovsdb-row.at:79: test-ovsdb parse-rows \\
 
47662
    '{\"columns\": {\"myset\": {\"type\": {\"key\": \"integer\", \"min\": 1, \"max\": 2}}}}' \\
 
47663
    '{}'"
 
47664
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:79"
 
47665
( $at_check_trace; test-ovsdb parse-rows \
 
47666
    '{"columns": {"myset": {"type": {"key": "integer", "min": 1, "max": 2}}}}' \
 
47667
    '{}'
 
47668
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47669
at_status=$? at_failed=false
 
47670
$at_check_filter
 
47671
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47672
echo >>"$at_stdout"; $as_echo "{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"myset\":0}
 
47673
<none>
 
47674
" | \
 
47675
  $at_diff - "$at_stdout" || at_failed=:
 
47676
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:79"
 
47677
$at_failed && at_fn_log_failure
 
47678
$at_traceon; }
 
47679
 
 
47680
     set +x
 
47681
  $at_times_p && times >"$at_times_file"
 
47682
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47683
read at_status <"$at_status_file"
 
47684
#AT_STOP_690
 
47685
#AT_START_691
 
47686
at_fn_group_banner 691 'ovsdb-row.at:86' \
 
47687
  "row with map of 1 to 2 elements" "                " 50
 
47688
at_xfail=no
 
47689
(
 
47690
  $as_echo "691. $at_setup_line: testing $at_desc ..."
 
47691
  $at_traceon
 
47692
 
 
47693
 
 
47694
   { set +x
 
47695
$as_echo "$at_srcdir/ovsdb-row.at:86: test-ovsdb parse-rows \\
 
47696
    '{\"columns\": {\"mymap\": {\"type\": {\"key\": \"integer\", \"value\": \"uuid\", \"min\": 1, \"max\": 2}}}}' \\
 
47697
    '{}'"
 
47698
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:86"
 
47699
( $at_check_trace; test-ovsdb parse-rows \
 
47700
    '{"columns": {"mymap": {"type": {"key": "integer", "value": "uuid", "min": 1, "max": 2}}}}' \
 
47701
    '{}'
 
47702
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47703
at_status=$? at_failed=false
 
47704
$at_check_filter
 
47705
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47706
echo >>"$at_stdout"; $as_echo "{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"mymap\":[\"map\",[[0,[\"uuid\",\"00000000-0000-0000-0000-000000000000\"]]]]}
 
47707
<none>
 
47708
" | \
 
47709
  $at_diff - "$at_stdout" || at_failed=:
 
47710
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:86"
 
47711
$at_failed && at_fn_log_failure
 
47712
$at_traceon; }
 
47713
 
 
47714
     set +x
 
47715
  $at_times_p && times >"$at_times_file"
 
47716
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47717
read at_status <"$at_status_file"
 
47718
#AT_STOP_691
 
47719
#AT_START_692
 
47720
at_fn_group_banner 692 'ovsdb-row.at:93' \
 
47721
  "row with several columns" "                       " 50
 
47722
at_xfail=no
 
47723
(
 
47724
  $as_echo "692. $at_setup_line: testing $at_desc ..."
 
47725
  $at_traceon
 
47726
 
 
47727
 
 
47728
   { set +x
 
47729
$as_echo "$at_srcdir/ovsdb-row.at:93: test-ovsdb parse-rows \\
 
47730
    '{\"columns\":
 
47731
        {\"vswitch\": {\"type\": \"uuid\"},
 
47732
         \"name\": {\"type\": \"string\"},
 
47733
         \"datapath_id\": {\"type\": {\"key\": \"string\", \"min\": 0}},
 
47734
         \"hwaddr\": {\"type\": \"string\"},
 
47735
         \"mirrors\": {\"type\": {\"key\": \"uuid\", \"min\": 0, \"max\": \"unlimited\"}},
 
47736
         \"netflows\": {\"type\": {\"key\": \"uuid\", \"min\": 0, \"max\": \"unlimited\"}},
 
47737
         \"controller\": {\"type\": {\"key\": \"uuid\", \"min\": 0}},
 
47738
         \"listeners\": {\"type\": {\"key\": \"uuid\", \"min\": 0, \"max\": \"unlimited\"}},
 
47739
         \"snoops\": {\"type\": {\"key\": \"uuid\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
47740
    '{\"vswitch\": [\"uuid\", \"1a5c7280-0d4c-4e34-9ec7-c772339f7774\"],
 
47741
      \"name\": \"br0\",
 
47742
      \"datapath_id\": \"000ae4256bb0\",
 
47743
      \"hwaddr\": \"00:0a:e4:25:6b:b0\"}' \\
 
47744
    '{}'"
 
47745
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:93"
 
47746
( $at_check_trace; test-ovsdb parse-rows \
 
47747
    '{"columns":
 
47748
        {"vswitch": {"type": "uuid"},
 
47749
         "name": {"type": "string"},
 
47750
         "datapath_id": {"type": {"key": "string", "min": 0}},
 
47751
         "hwaddr": {"type": "string"},
 
47752
         "mirrors": {"type": {"key": "uuid", "min": 0, "max": "unlimited"}},
 
47753
         "netflows": {"type": {"key": "uuid", "min": 0, "max": "unlimited"}},
 
47754
         "controller": {"type": {"key": "uuid", "min": 0}},
 
47755
         "listeners": {"type": {"key": "uuid", "min": 0, "max": "unlimited"}},
 
47756
         "snoops": {"type": {"key": "uuid", "min": 0, "max": "unlimited"}}}}' \
 
47757
    '{"vswitch": ["uuid", "1a5c7280-0d4c-4e34-9ec7-c772339f7774"],
 
47758
      "name": "br0",
 
47759
      "datapath_id": "000ae4256bb0",
 
47760
      "hwaddr": "00:0a:e4:25:6b:b0"}' \
 
47761
    '{}'
 
47762
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47763
at_status=$? at_failed=false
 
47764
$at_check_filter
 
47765
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47766
echo >>"$at_stdout"; $as_echo "{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"controller\":[\"set\",[]],\"datapath_id\":\"000ae4256bb0\",\"hwaddr\":\"00:0a:e4:25:6b:b0\",\"listeners\":[\"set\",[]],\"mirrors\":[\"set\",[]],\"name\":\"br0\",\"netflows\":[\"set\",[]],\"snoops\":[\"set\",[]],\"vswitch\":[\"uuid\",\"1a5c7280-0d4c-4e34-9ec7-c772339f7774\"]}
 
47767
datapath_id, hwaddr, name, vswitch
 
47768
{\"_uuid\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"_version\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"],\"controller\":[\"set\",[]],\"datapath_id\":[\"set\",[]],\"hwaddr\":\"\",\"listeners\":[\"set\",[]],\"mirrors\":[\"set\",[]],\"name\":\"\",\"netflows\":[\"set\",[]],\"snoops\":[\"set\",[]],\"vswitch\":[\"uuid\",\"00000000-0000-0000-0000-000000000000\"]}
 
47769
<none>
 
47770
" | \
 
47771
  $at_diff - "$at_stdout" || at_failed=:
 
47772
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:93"
 
47773
$at_failed && at_fn_log_failure
 
47774
$at_traceon; }
 
47775
 
 
47776
     set +x
 
47777
  $at_times_p && times >"$at_times_file"
 
47778
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47779
read at_status <"$at_status_file"
 
47780
#AT_STOP_692
 
47781
#AT_START_693
 
47782
at_fn_group_banner 693 'ovsdb-row.at:115' \
 
47783
  "row hashing (scalars)" "                          " 50
 
47784
at_xfail=no
 
47785
(
 
47786
  $as_echo "693. $at_setup_line: testing $at_desc ..."
 
47787
  $at_traceon
 
47788
 
 
47789
 
 
47790
   { set +x
 
47791
$as_echo "$at_srcdir/ovsdb-row.at:115: test-ovsdb compare-rows \\
 
47792
    '{\"columns\":
 
47793
        {\"i\": {\"type\": \"integer\"},
 
47794
         \"r\": {\"type\": \"real\"},
 
47795
         \"b\": {\"type\": \"boolean\"},
 
47796
         \"s\": {\"type\": \"string\"},
 
47797
         \"u\": {\"type\": \"uuid\"}}}' \\
 
47798
     '[\"null\", {}]' \\
 
47799
     '[\"i1\", {\"i\": 1}]' \\
 
47800
     '[\"i2\", {\"i\": 2}]' \\
 
47801
     '[\"i4\", {\"i\": 4}]' \\
 
47802
     '[\"i8\", {\"i\": 8}]' \\
 
47803
     '[\"i16\", {\"i\": 16}]' \\
 
47804
     '[\"i32\", {\"i\": 32}]' \\
 
47805
     '[\"i64\", {\"i\": 64}]' \\
 
47806
     '[\"i128\", {\"i\": 128}]' \\
 
47807
     '[\"i256\", {\"i\": 256}]' \\
 
47808
     '[\"null2\", {\"r\": -0}]' \\
 
47809
     '[\"r123\", {\"r\": 123}]' \\
 
47810
     '[\"r0.0625\", {\"r\": 0.0625}]' \\
 
47811
     '[\"r0.125\", {\"r\": 0.125}]' \\
 
47812
     '[\"r0.25\", {\"r\": 0.25}]' \\
 
47813
     '[\"r0.5\", {\"r\": 0.5}]' \\
 
47814
     '[\"r1\", {\"r\": 1}]' \\
 
47815
     '[\"r2\", {\"r\": 2}]' \\
 
47816
     '[\"r4\", {\"r\": 4}]' \\
 
47817
     '[\"r8\", {\"r\": 8}]' \\
 
47818
     '[\"r16\", {\"r\": 16}]' \\
 
47819
     '[\"r32\", {\"r\": 32}]' \\
 
47820
     '[\"null3\", {\"b\": false}]' \\
 
47821
     '[\"b1\", {\"b\": true}]' \\
 
47822
     '[\"null4\", {\"s\": \"\"}]' \\
 
47823
     '[\"s0\", {\"s\": \"a\"}]' \\
 
47824
     '[\"s1\", {\"s\": \"b\"}]' \\
 
47825
     '[\"s2\", {\"s\": \"c\"}]' \\
 
47826
     '[\"s3\", {\"s\": \"d\"}]' \\
 
47827
     '[\"s4\", {\"s\": \"e\"}]' \\
 
47828
     '[\"s5\", {\"s\": \"f\"}]' \\
 
47829
     '[\"s6\", {\"s\": \"g\"}]' \\
 
47830
     '[\"s7\", {\"s\": \"h\"}]' \\
 
47831
     '[\"s8\", {\"s\": \"i\"}]' \\
 
47832
     '[\"s9\", {\"s\": \"j\"}]' \\
 
47833
     '[\"null5\", {\"u\": [\"uuid\",\"00000000-0000-0000-0000-000000000000\"]}]' \\
 
47834
     '[\"u1\", {\"u\": [\"uuid\",\"10000000-0000-0000-0000-000000000000\"]}]' \\
 
47835
     '[\"u2\", {\"u\": [\"uuid\",\"01000000-0000-0000-0000-000000000000\"]}]' \\
 
47836
     '[\"u3\", {\"u\": [\"uuid\",\"00100000-0000-0000-0000-000000000000\"]}]' \\
 
47837
     '[\"u4\", {\"u\": [\"uuid\",\"00010000-0000-0000-0000-000000000000\"]}]' \\
 
47838
     '[\"u5\", {\"u\": [\"uuid\",\"00001000-0000-0000-0000-000000000000\"]}]' \\
 
47839
     '[\"u6\", {\"u\": [\"uuid\",\"00000100-0000-0000-0000-000000000000\"]}]' \\
 
47840
     '[\"u7\", {\"u\": [\"uuid\",\"00000010-0000-0000-0000-000000000000\"]}]' \\
 
47841
     '[\"u8\", {\"u\": [\"uuid\",\"00000001-0000-0000-0000-000000000000\"]}]' \\
 
47842
     '[\"null6\", {\"u\": [\"uuid\",\"00000000-c6db-4d22-970f-b41fabd20c4b\"]}]'"
 
47843
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:115"
 
47844
( $at_check_trace; test-ovsdb compare-rows \
 
47845
    '{"columns":
 
47846
        {"i": {"type": "integer"},
 
47847
         "r": {"type": "real"},
 
47848
         "b": {"type": "boolean"},
 
47849
         "s": {"type": "string"},
 
47850
         "u": {"type": "uuid"}}}' \
 
47851
     '["null", {}]' \
 
47852
     '["i1", {"i": 1}]' \
 
47853
     '["i2", {"i": 2}]' \
 
47854
     '["i4", {"i": 4}]' \
 
47855
     '["i8", {"i": 8}]' \
 
47856
     '["i16", {"i": 16}]' \
 
47857
     '["i32", {"i": 32}]' \
 
47858
     '["i64", {"i": 64}]' \
 
47859
     '["i128", {"i": 128}]' \
 
47860
     '["i256", {"i": 256}]' \
 
47861
     '["null2", {"r": -0}]' \
 
47862
     '["r123", {"r": 123}]' \
 
47863
     '["r0.0625", {"r": 0.0625}]' \
 
47864
     '["r0.125", {"r": 0.125}]' \
 
47865
     '["r0.25", {"r": 0.25}]' \
 
47866
     '["r0.5", {"r": 0.5}]' \
 
47867
     '["r1", {"r": 1}]' \
 
47868
     '["r2", {"r": 2}]' \
 
47869
     '["r4", {"r": 4}]' \
 
47870
     '["r8", {"r": 8}]' \
 
47871
     '["r16", {"r": 16}]' \
 
47872
     '["r32", {"r": 32}]' \
 
47873
     '["null3", {"b": false}]' \
 
47874
     '["b1", {"b": true}]' \
 
47875
     '["null4", {"s": ""}]' \
 
47876
     '["s0", {"s": "a"}]' \
 
47877
     '["s1", {"s": "b"}]' \
 
47878
     '["s2", {"s": "c"}]' \
 
47879
     '["s3", {"s": "d"}]' \
 
47880
     '["s4", {"s": "e"}]' \
 
47881
     '["s5", {"s": "f"}]' \
 
47882
     '["s6", {"s": "g"}]' \
 
47883
     '["s7", {"s": "h"}]' \
 
47884
     '["s8", {"s": "i"}]' \
 
47885
     '["s9", {"s": "j"}]' \
 
47886
     '["null5", {"u": ["uuid","00000000-0000-0000-0000-000000000000"]}]' \
 
47887
     '["u1", {"u": ["uuid","10000000-0000-0000-0000-000000000000"]}]' \
 
47888
     '["u2", {"u": ["uuid","01000000-0000-0000-0000-000000000000"]}]' \
 
47889
     '["u3", {"u": ["uuid","00100000-0000-0000-0000-000000000000"]}]' \
 
47890
     '["u4", {"u": ["uuid","00010000-0000-0000-0000-000000000000"]}]' \
 
47891
     '["u5", {"u": ["uuid","00001000-0000-0000-0000-000000000000"]}]' \
 
47892
     '["u6", {"u": ["uuid","00000100-0000-0000-0000-000000000000"]}]' \
 
47893
     '["u7", {"u": ["uuid","00000010-0000-0000-0000-000000000000"]}]' \
 
47894
     '["u8", {"u": ["uuid","00000001-0000-0000-0000-000000000000"]}]' \
 
47895
     '["null6", {"u": ["uuid","00000000-c6db-4d22-970f-b41fabd20c4b"]}]'
 
47896
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47897
at_status=$? at_failed=false
 
47898
$at_check_filter
 
47899
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
47900
echo >>"$at_stdout"; $as_echo "null == null2
 
47901
null == null3
 
47902
null == null4
 
47903
null == null5
 
47904
hash(null) == hash(null6)
 
47905
null2 == null3
 
47906
null2 == null4
 
47907
null2 == null5
 
47908
hash(null2) == hash(null6)
 
47909
null3 == null4
 
47910
null3 == null5
 
47911
hash(null3) == hash(null6)
 
47912
null4 == null5
 
47913
hash(null4) == hash(null6)
 
47914
hash(null5) == hash(null6)
 
47915
" | \
 
47916
  $at_diff - "$at_stdout" || at_failed=:
 
47917
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:115"
 
47918
$at_failed && at_fn_log_failure
 
47919
$at_traceon; }
 
47920
 
 
47921
     set +x
 
47922
  $at_times_p && times >"$at_times_file"
 
47923
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
47924
read at_status <"$at_status_file"
 
47925
#AT_STOP_693
 
47926
#AT_START_694
 
47927
at_fn_group_banner 694 'ovsdb-row.at:184' \
 
47928
  "row hashing (sets)" "                             " 50
 
47929
at_xfail=no
 
47930
(
 
47931
  $as_echo "694. $at_setup_line: testing $at_desc ..."
 
47932
  $at_traceon
 
47933
 
 
47934
 
 
47935
   { set +x
 
47936
$as_echo "$at_srcdir/ovsdb-row.at:184: test-ovsdb compare-rows \\
 
47937
    '{\"columns\":
 
47938
        {\"i\": {\"type\": {\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}},
 
47939
         \"r\": {\"type\": {\"key\": \"real\", \"min\": 0, \"max\": \"unlimited\"}},
 
47940
         \"b\": {\"type\": {\"key\": \"boolean\", \"min\": 0, \"max\": \"unlimited\"}},
 
47941
         \"s\": {\"type\": {\"key\": \"string\", \"min\": 0, \"max\": \"unlimited\"}},
 
47942
         \"u\": {\"type\": {\"key\": \"uuid\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
47943
    '[\"null0\", {\"i\": [\"set\", []]}]' \\
 
47944
    '[\"i0\", {\"i\": [\"set\", [0]]}]' \\
 
47945
    '[\"i01\", {\"i\": [\"set\", [0, 1]]}]' \\
 
47946
    '[\"i012\", {\"i\": [\"set\", [0, 1, 2]]}]' \\
 
47947
    '[\"i021\", {\"i\": [\"set\", [0, 2, 1]]}]' \\
 
47948
    '[\"i201\", {\"i\": [\"set\", [2, 0, 1]]}]' \\
 
47949
    '[\"i102\", {\"i\": [\"set\", [1, 0, 2]]}]' \\
 
47950
    '[\"i120\", {\"i\": [\"set\", [1, 2, 0]]}]' \\
 
47951
    '[\"i210\", {\"i\": [\"set\", [2, 1, 0]]}]' \\
 
47952
    '[\"r0\", {\"r\": [\"set\", [0]]}]' \\
 
47953
    '[\"r01\", {\"r\": [\"set\", [0, 1]]}]' \\
 
47954
    '[\"r012\", {\"r\": [\"set\", [0, 1, 2]]}]' \\
 
47955
    '[\"r201\", {\"r\": [\"set\", [2, 0, 1]]}]' \\
 
47956
    '[\"null1\", {\"b\": [\"set\", []]}]' \\
 
47957
    '[\"b0\", {\"b\": [\"set\", [false]]}]' \\
 
47958
    '[\"b1\", {\"b\": [\"set\", [true]]}]' \\
 
47959
    '[\"b01\", {\"b\": [\"set\", [false, true]]}]' \\
 
47960
    '[\"b10\", {\"b\": [\"set\", [true, false]]}]' \\
 
47961
    '[\"null2\", {\"s\": [\"set\", []]}]' \\
 
47962
    '[\"sa\", {\"s\": [\"set\", [\"a\"]]}]' \\
 
47963
    '[\"sb\", {\"s\": [\"set\", [\"b\"]]}]' \\
 
47964
    '[\"sab\", {\"s\": [\"set\", [\"a\", \"b\"]]}]' \\
 
47965
    '[\"sba\", {\"s\": [\"set\", [\"b\", \"a\"]]}]'"
 
47966
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:184"
 
47967
( $at_check_trace; test-ovsdb compare-rows \
 
47968
    '{"columns":
 
47969
        {"i": {"type": {"key": "integer", "min": 0, "max": "unlimited"}},
 
47970
         "r": {"type": {"key": "real", "min": 0, "max": "unlimited"}},
 
47971
         "b": {"type": {"key": "boolean", "min": 0, "max": "unlimited"}},
 
47972
         "s": {"type": {"key": "string", "min": 0, "max": "unlimited"}},
 
47973
         "u": {"type": {"key": "uuid", "min": 0, "max": "unlimited"}}}}' \
 
47974
    '["null0", {"i": ["set", []]}]' \
 
47975
    '["i0", {"i": ["set", [0]]}]' \
 
47976
    '["i01", {"i": ["set", [0, 1]]}]' \
 
47977
    '["i012", {"i": ["set", [0, 1, 2]]}]' \
 
47978
    '["i021", {"i": ["set", [0, 2, 1]]}]' \
 
47979
    '["i201", {"i": ["set", [2, 0, 1]]}]' \
 
47980
    '["i102", {"i": ["set", [1, 0, 2]]}]' \
 
47981
    '["i120", {"i": ["set", [1, 2, 0]]}]' \
 
47982
    '["i210", {"i": ["set", [2, 1, 0]]}]' \
 
47983
    '["r0", {"r": ["set", [0]]}]' \
 
47984
    '["r01", {"r": ["set", [0, 1]]}]' \
 
47985
    '["r012", {"r": ["set", [0, 1, 2]]}]' \
 
47986
    '["r201", {"r": ["set", [2, 0, 1]]}]' \
 
47987
    '["null1", {"b": ["set", []]}]' \
 
47988
    '["b0", {"b": ["set", [false]]}]' \
 
47989
    '["b1", {"b": ["set", [true]]}]' \
 
47990
    '["b01", {"b": ["set", [false, true]]}]' \
 
47991
    '["b10", {"b": ["set", [true, false]]}]' \
 
47992
    '["null2", {"s": ["set", []]}]' \
 
47993
    '["sa", {"s": ["set", ["a"]]}]' \
 
47994
    '["sb", {"s": ["set", ["b"]]}]' \
 
47995
    '["sab", {"s": ["set", ["a", "b"]]}]' \
 
47996
    '["sba", {"s": ["set", ["b", "a"]]}]'
 
47997
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
47998
at_status=$? at_failed=false
 
47999
$at_check_filter
 
48000
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48001
echo >>"$at_stdout"; $as_echo "null0 == null1
 
48002
null0 == null2
 
48003
i012 == i021
 
48004
i012 == i201
 
48005
i012 == i102
 
48006
i012 == i120
 
48007
i012 == i210
 
48008
i021 == i201
 
48009
i021 == i102
 
48010
i021 == i120
 
48011
i021 == i210
 
48012
i201 == i102
 
48013
i201 == i120
 
48014
i201 == i210
 
48015
i102 == i120
 
48016
i102 == i210
 
48017
i120 == i210
 
48018
r012 == r201
 
48019
null1 == null2
 
48020
b01 == b10
 
48021
sab == sba
 
48022
" | \
 
48023
  $at_diff - "$at_stdout" || at_failed=:
 
48024
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:184"
 
48025
$at_failed && at_fn_log_failure
 
48026
$at_traceon; }
 
48027
 
 
48028
     set +x
 
48029
  $at_times_p && times >"$at_times_file"
 
48030
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48031
read at_status <"$at_status_file"
 
48032
#AT_STOP_694
 
48033
#AT_START_695
 
48034
at_fn_group_banner 695 'ovsdb-row.at:237' \
 
48035
  "row hashing (maps)" "                             " 50
 
48036
at_xfail=no
 
48037
(
 
48038
  $as_echo "695. $at_setup_line: testing $at_desc ..."
 
48039
  $at_traceon
 
48040
 
 
48041
 
 
48042
   { set +x
 
48043
$as_echo "$at_srcdir/ovsdb-row.at:237: test-ovsdb compare-rows \\
 
48044
    '{\"columns\":
 
48045
        {\"ii\": {\"type\": {\"key\": \"integer\", \"value\": \"integer\",
 
48046
                         \"min\": 0, \"max\": \"unlimited\"}},
 
48047
         \"rr\": {\"type\": {\"key\": \"real\", \"value\": \"real\",
 
48048
                         \"min\": 0, \"max\": \"unlimited\"}},
 
48049
         \"bb\": {\"type\": {\"key\": \"boolean\", \"value\": \"boolean\",
 
48050
                         \"min\": 0, \"max\": \"unlimited\"}},
 
48051
         \"ss\": {\"type\": {\"key\": \"string\", \"value\": \"string\",
 
48052
                         \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
48053
    '[\"null\", {}]' \\
 
48054
    '[\"ii0\", {\"ii\": [\"map\", [[0, 0]]]}]' \\
 
48055
    '[\"ii1\", {\"ii\": [\"map\", [[0, 1]]]}]' \\
 
48056
    '[\"ii00\", {\"ii\": [\"map\", [[0, 0], [1, 0]]]}]' \\
 
48057
    '[\"ii01\", {\"ii\": [\"map\", [[0, 0], [1, 1]]]}]' \\
 
48058
    '[\"ii10\", {\"ii\": [\"map\", [[0, 1], [1, 0]]]}]' \\
 
48059
    '[\"ii11\", {\"ii\": [\"map\", [[0, 1], [1, 1]]]}]' \\
 
48060
    '[\"rr0\", {\"rr\": [\"map\", [[0, 0]]]}]' \\
 
48061
    '[\"rr0\", {\"rr\": [\"map\", [[0, 1]]]}]' \\
 
48062
    '[\"rr00\", {\"rr\": [\"map\", [[0, 0], [1, 0]]]}]' \\
 
48063
    '[\"rr01\", {\"rr\": [\"map\", [[0, 0], [1, 1]]]}]' \\
 
48064
    '[\"rr10\", {\"rr\": [\"map\", [[0, 1], [1, 0]]]}]' \\
 
48065
    '[\"rr11\", {\"rr\": [\"map\", [[0, 1], [1, 1]]]}]' \\
 
48066
    '[\"bb0\", {\"bb\": [\"map\", [[false, false]]]}]' \\
 
48067
    '[\"bb1\", {\"bb\": [\"map\", [[false, true]]]}]' \\
 
48068
    '[\"bb00\", {\"bb\": [\"map\", [[false, false], [true, false]]]}]' \\
 
48069
    '[\"bb01\", {\"bb\": [\"map\", [[false, false], [true, true]]]}]' \\
 
48070
    '[\"bb10\", {\"bb\": [\"map\", [[false, true], [true, false]]]}]' \\
 
48071
    '[\"bb11\", {\"bb\": [\"map\", [[false, true], [true, true]]]}]' \\
 
48072
    '[\"ss0\", {\"ss\": [\"map\", [[\"a\", \"a\"]]]}]' \\
 
48073
    '[\"ss1\", {\"ss\": [\"map\", [[\"a\", \"b\"]]]}]' \\
 
48074
    '[\"ss00\", {\"ss\": [\"map\", [[\"a\", \"a\"], [\"b\", \"a\"]]]}]' \\
 
48075
    '[\"ss01\", {\"ss\": [\"map\", [[\"a\", \"a\"], [\"b\", \"b\"]]]}]' \\
 
48076
    '[\"ss10\", {\"ss\": [\"map\", [[\"a\", \"b\"], [\"b\", \"a\"]]]}]' \\
 
48077
    '[\"ss11\", {\"ss\": [\"map\", [[\"a\", \"b\"], [\"b\", \"b\"]]]}]'; echo
 
48078
"
 
48079
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-row.at:237"
 
48080
( $at_check_trace; test-ovsdb compare-rows \
 
48081
    '{"columns":
 
48082
        {"ii": {"type": {"key": "integer", "value": "integer",
 
48083
                         "min": 0, "max": "unlimited"}},
 
48084
         "rr": {"type": {"key": "real", "value": "real",
 
48085
                         "min": 0, "max": "unlimited"}},
 
48086
         "bb": {"type": {"key": "boolean", "value": "boolean",
 
48087
                         "min": 0, "max": "unlimited"}},
 
48088
         "ss": {"type": {"key": "string", "value": "string",
 
48089
                         "min": 0, "max": "unlimited"}}}}' \
 
48090
    '["null", {}]' \
 
48091
    '["ii0", {"ii": ["map", [[0, 0]]]}]' \
 
48092
    '["ii1", {"ii": ["map", [[0, 1]]]}]' \
 
48093
    '["ii00", {"ii": ["map", [[0, 0], [1, 0]]]}]' \
 
48094
    '["ii01", {"ii": ["map", [[0, 0], [1, 1]]]}]' \
 
48095
    '["ii10", {"ii": ["map", [[0, 1], [1, 0]]]}]' \
 
48096
    '["ii11", {"ii": ["map", [[0, 1], [1, 1]]]}]' \
 
48097
    '["rr0", {"rr": ["map", [[0, 0]]]}]' \
 
48098
    '["rr0", {"rr": ["map", [[0, 1]]]}]' \
 
48099
    '["rr00", {"rr": ["map", [[0, 0], [1, 0]]]}]' \
 
48100
    '["rr01", {"rr": ["map", [[0, 0], [1, 1]]]}]' \
 
48101
    '["rr10", {"rr": ["map", [[0, 1], [1, 0]]]}]' \
 
48102
    '["rr11", {"rr": ["map", [[0, 1], [1, 1]]]}]' \
 
48103
    '["bb0", {"bb": ["map", [[false, false]]]}]' \
 
48104
    '["bb1", {"bb": ["map", [[false, true]]]}]' \
 
48105
    '["bb00", {"bb": ["map", [[false, false], [true, false]]]}]' \
 
48106
    '["bb01", {"bb": ["map", [[false, false], [true, true]]]}]' \
 
48107
    '["bb10", {"bb": ["map", [[false, true], [true, false]]]}]' \
 
48108
    '["bb11", {"bb": ["map", [[false, true], [true, true]]]}]' \
 
48109
    '["ss0", {"ss": ["map", [["a", "a"]]]}]' \
 
48110
    '["ss1", {"ss": ["map", [["a", "b"]]]}]' \
 
48111
    '["ss00", {"ss": ["map", [["a", "a"], ["b", "a"]]]}]' \
 
48112
    '["ss01", {"ss": ["map", [["a", "a"], ["b", "b"]]]}]' \
 
48113
    '["ss10", {"ss": ["map", [["a", "b"], ["b", "a"]]]}]' \
 
48114
    '["ss11", {"ss": ["map", [["a", "b"], ["b", "b"]]]}]'; echo
 
48115
 
 
48116
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48117
at_status=$? at_failed=false
 
48118
$at_check_filter
 
48119
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48120
echo >>"$at_stdout"; $as_echo "
 
48121
" | \
 
48122
  $at_diff - "$at_stdout" || at_failed=:
 
48123
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-row.at:237"
 
48124
$at_failed && at_fn_log_failure
 
48125
$at_traceon; }
 
48126
 
 
48127
     set +x
 
48128
  $at_times_p && times >"$at_times_file"
 
48129
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48130
read at_status <"$at_status_file"
 
48131
#AT_STOP_695
 
48132
#AT_START_696
 
48133
at_fn_group_banner 696 'ovsdb-schema.at:3' \
 
48134
  "schema with valid refTables - C" "                " 51
 
48135
at_xfail=no
 
48136
(
 
48137
  $as_echo "696. $at_setup_line: testing $at_desc ..."
 
48138
  $at_traceon
 
48139
 
 
48140
 
 
48141
   { set +x
 
48142
$as_echo "$at_srcdir/ovsdb-schema.at:3: test-ovsdb parse-schema \\
 
48143
      '{\"name\": \"mydb\",
 
48144
        \"version\": \"4.2.1\",
 
48145
        \"tables\": {
 
48146
          \"a\": {
 
48147
            \"columns\": {
 
48148
              \"map\": {
 
48149
                \"type\": {
 
48150
                  \"key\": {
 
48151
                    \"type\": \"uuid\",
 
48152
                    \"refTable\": \"b\"},
 
48153
                  \"value\": {
 
48154
                    \"type\": \"uuid\",
 
48155
                    \"refTable\": \"a\"}}}}},
 
48156
          \"b\": {
 
48157
            \"columns\": {
 
48158
              \"aRef\": {
 
48159
                \"type\": {
 
48160
                  \"key\": {
 
48161
                    \"type\": \"uuid\",
 
48162
                    \"refTable\": \"a\"}}}}}}}'"
 
48163
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:3"
 
48164
( $at_check_trace; test-ovsdb parse-schema \
 
48165
      '{"name": "mydb",
 
48166
        "version": "4.2.1",
 
48167
        "tables": {
 
48168
          "a": {
 
48169
            "columns": {
 
48170
              "map": {
 
48171
                "type": {
 
48172
                  "key": {
 
48173
                    "type": "uuid",
 
48174
                    "refTable": "b"},
 
48175
                  "value": {
 
48176
                    "type": "uuid",
 
48177
                    "refTable": "a"}}}}},
 
48178
          "b": {
 
48179
            "columns": {
 
48180
              "aRef": {
 
48181
                "type": {
 
48182
                  "key": {
 
48183
                    "type": "uuid",
 
48184
                    "refTable": "a"}}}}}}}'
 
48185
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48186
at_status=$? at_failed=false
 
48187
$at_check_filter
 
48188
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48189
echo >>"$at_stdout"; $as_echo "{\"name\":\"mydb\",\"tables\":{\"a\":{\"columns\":{\"map\":{\"type\":{\"key\":{\"refTable\":\"b\",\"type\":\"uuid\"},\"value\":{\"refTable\":\"a\",\"type\":\"uuid\"}}}}},\"b\":{\"columns\":{\"aRef\":{\"type\":{\"key\":{\"refTable\":\"a\",\"type\":\"uuid\"}}}}}},\"version\":\"4.2.1\"}
 
48190
" | \
 
48191
  $at_diff - "$at_stdout" || at_failed=:
 
48192
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:3"
 
48193
$at_failed && at_fn_log_failure
 
48194
$at_traceon; }
 
48195
 
 
48196
     set +x
 
48197
  $at_times_p && times >"$at_times_file"
 
48198
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48199
read at_status <"$at_status_file"
 
48200
#AT_STOP_696
 
48201
#AT_START_697
 
48202
at_fn_group_banner 697 'ovsdb-schema.at:3' \
 
48203
  "schema with valid refTables - Python" "           " 51
 
48204
at_xfail=no
 
48205
(
 
48206
  $as_echo "697. $at_setup_line: testing $at_desc ..."
 
48207
  $at_traceon
 
48208
 
 
48209
   $as_echo "ovsdb-schema.at:3" >"$at_check_line_file"
 
48210
(test $HAVE_PYTHON = no) \
 
48211
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-schema.at:3"
 
48212
 
 
48213
 
 
48214
   { set +x
 
48215
$as_echo "$at_srcdir/ovsdb-schema.at:3: \$PYTHON \$srcdir/test-ovsdb.py parse-schema \\
 
48216
      '{\"name\": \"mydb\",
 
48217
        \"version\": \"4.2.1\",
 
48218
        \"tables\": {
 
48219
          \"a\": {
 
48220
            \"columns\": {
 
48221
              \"map\": {
 
48222
                \"type\": {
 
48223
                  \"key\": {
 
48224
                    \"type\": \"uuid\",
 
48225
                    \"refTable\": \"b\"},
 
48226
                  \"value\": {
 
48227
                    \"type\": \"uuid\",
 
48228
                    \"refTable\": \"a\"}}}}},
 
48229
          \"b\": {
 
48230
            \"columns\": {
 
48231
              \"aRef\": {
 
48232
                \"type\": {
 
48233
                  \"key\": {
 
48234
                    \"type\": \"uuid\",
 
48235
                    \"refTable\": \"a\"}}}}}}}'"
 
48236
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:3"
 
48237
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-schema \
 
48238
      '{"name": "mydb",
 
48239
        "version": "4.2.1",
 
48240
        "tables": {
 
48241
          "a": {
 
48242
            "columns": {
 
48243
              "map": {
 
48244
                "type": {
 
48245
                  "key": {
 
48246
                    "type": "uuid",
 
48247
                    "refTable": "b"},
 
48248
                  "value": {
 
48249
                    "type": "uuid",
 
48250
                    "refTable": "a"}}}}},
 
48251
          "b": {
 
48252
            "columns": {
 
48253
              "aRef": {
 
48254
                "type": {
 
48255
                  "key": {
 
48256
                    "type": "uuid",
 
48257
                    "refTable": "a"}}}}}}}'
 
48258
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48259
at_status=$? at_failed=false
 
48260
$at_check_filter
 
48261
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48262
echo >>"$at_stdout"; $as_echo "{\"name\":\"mydb\",\"tables\":{\"a\":{\"columns\":{\"map\":{\"type\":{\"key\":{\"refTable\":\"b\",\"type\":\"uuid\"},\"value\":{\"refTable\":\"a\",\"type\":\"uuid\"}}}}},\"b\":{\"columns\":{\"aRef\":{\"type\":{\"key\":{\"refTable\":\"a\",\"type\":\"uuid\"}}}}}},\"version\":\"4.2.1\"}
 
48263
" | \
 
48264
  $at_diff - "$at_stdout" || at_failed=:
 
48265
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:3"
 
48266
$at_failed && at_fn_log_failure
 
48267
$at_traceon; }
 
48268
 
 
48269
     set +x
 
48270
  $at_times_p && times >"$at_times_file"
 
48271
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48272
read at_status <"$at_status_file"
 
48273
#AT_STOP_697
 
48274
#AT_START_698
 
48275
at_fn_group_banner 698 'ovsdb-schema.at:30' \
 
48276
  "schema with ephemeral strong references - C" "    " 51
 
48277
at_xfail=no
 
48278
(
 
48279
  $as_echo "698. $at_setup_line: testing $at_desc ..."
 
48280
  $at_traceon
 
48281
 
 
48282
 
 
48283
   { set +x
 
48284
$as_echo "$at_srcdir/ovsdb-schema.at:30: test-ovsdb parse-schema \\
 
48285
      '{\"name\": \"mydb\",
 
48286
        \"version\": \"4.2.1\",
 
48287
        \"tables\": {
 
48288
          \"a\": {
 
48289
            \"columns\": {
 
48290
              \"x\": {
 
48291
                \"type\": {
 
48292
                  \"key\": {
 
48293
                    \"type\": \"uuid\",
 
48294
                    \"refTable\": \"b\"}},
 
48295
                \"ephemeral\": true},
 
48296
              \"y\": {
 
48297
                \"type\": {
 
48298
                  \"key\": {
 
48299
                    \"type\": \"uuid\",
 
48300
                    \"refTable\": \"a\"}},
 
48301
                \"ephemeral\": true}}},
 
48302
          \"b\": {
 
48303
            \"columns\": {
 
48304
              \"aRef\": {
 
48305
                \"type\": {
 
48306
                  \"key\": {
 
48307
                    \"type\": \"uuid\",
 
48308
                    \"refTable\": \"a\"}}}},
 
48309
              \"isRoot\": true}}}'"
 
48310
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:30"
 
48311
( $at_check_trace; test-ovsdb parse-schema \
 
48312
      '{"name": "mydb",
 
48313
        "version": "4.2.1",
 
48314
        "tables": {
 
48315
          "a": {
 
48316
            "columns": {
 
48317
              "x": {
 
48318
                "type": {
 
48319
                  "key": {
 
48320
                    "type": "uuid",
 
48321
                    "refTable": "b"}},
 
48322
                "ephemeral": true},
 
48323
              "y": {
 
48324
                "type": {
 
48325
                  "key": {
 
48326
                    "type": "uuid",
 
48327
                    "refTable": "a"}},
 
48328
                "ephemeral": true}}},
 
48329
          "b": {
 
48330
            "columns": {
 
48331
              "aRef": {
 
48332
                "type": {
 
48333
                  "key": {
 
48334
                    "type": "uuid",
 
48335
                    "refTable": "a"}}}},
 
48336
              "isRoot": true}}}'
 
48337
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48338
at_status=$? at_failed=false
 
48339
$at_check_filter
 
48340
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48341
echo >>"$at_stdout"; $as_echo "{\"name\":\"mydb\",\"tables\":{\"a\":{\"columns\":{\"x\":{\"ephemeral\":true,\"type\":{\"key\":{\"refTable\":\"b\",\"type\":\"uuid\"}}},\"y\":{\"type\":{\"key\":{\"refTable\":\"a\",\"type\":\"uuid\"}}}}},\"b\":{\"columns\":{\"aRef\":{\"type\":{\"key\":{\"refTable\":\"a\",\"type\":\"uuid\"}}}},\"isRoot\":true}},\"version\":\"4.2.1\"}
 
48342
" | \
 
48343
  $at_diff - "$at_stdout" || at_failed=:
 
48344
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:30"
 
48345
$at_failed && at_fn_log_failure
 
48346
$at_traceon; }
 
48347
 
 
48348
     set +x
 
48349
  $at_times_p && times >"$at_times_file"
 
48350
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48351
read at_status <"$at_status_file"
 
48352
#AT_STOP_698
 
48353
#AT_START_699
 
48354
at_fn_group_banner 699 'ovsdb-schema.at:30' \
 
48355
  "schema with ephemeral strong references - Python" "" 51
 
48356
at_xfail=no
 
48357
(
 
48358
  $as_echo "699. $at_setup_line: testing $at_desc ..."
 
48359
  $at_traceon
 
48360
 
 
48361
   $as_echo "ovsdb-schema.at:30" >"$at_check_line_file"
 
48362
(test $HAVE_PYTHON = no) \
 
48363
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-schema.at:30"
 
48364
 
 
48365
 
 
48366
   { set +x
 
48367
$as_echo "$at_srcdir/ovsdb-schema.at:30: \$PYTHON \$srcdir/test-ovsdb.py parse-schema \\
 
48368
      '{\"name\": \"mydb\",
 
48369
        \"version\": \"4.2.1\",
 
48370
        \"tables\": {
 
48371
          \"a\": {
 
48372
            \"columns\": {
 
48373
              \"x\": {
 
48374
                \"type\": {
 
48375
                  \"key\": {
 
48376
                    \"type\": \"uuid\",
 
48377
                    \"refTable\": \"b\"}},
 
48378
                \"ephemeral\": true},
 
48379
              \"y\": {
 
48380
                \"type\": {
 
48381
                  \"key\": {
 
48382
                    \"type\": \"uuid\",
 
48383
                    \"refTable\": \"a\"}},
 
48384
                \"ephemeral\": true}}},
 
48385
          \"b\": {
 
48386
            \"columns\": {
 
48387
              \"aRef\": {
 
48388
                \"type\": {
 
48389
                  \"key\": {
 
48390
                    \"type\": \"uuid\",
 
48391
                    \"refTable\": \"a\"}}}},
 
48392
              \"isRoot\": true}}}'"
 
48393
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:30"
 
48394
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-schema \
 
48395
      '{"name": "mydb",
 
48396
        "version": "4.2.1",
 
48397
        "tables": {
 
48398
          "a": {
 
48399
            "columns": {
 
48400
              "x": {
 
48401
                "type": {
 
48402
                  "key": {
 
48403
                    "type": "uuid",
 
48404
                    "refTable": "b"}},
 
48405
                "ephemeral": true},
 
48406
              "y": {
 
48407
                "type": {
 
48408
                  "key": {
 
48409
                    "type": "uuid",
 
48410
                    "refTable": "a"}},
 
48411
                "ephemeral": true}}},
 
48412
          "b": {
 
48413
            "columns": {
 
48414
              "aRef": {
 
48415
                "type": {
 
48416
                  "key": {
 
48417
                    "type": "uuid",
 
48418
                    "refTable": "a"}}}},
 
48419
              "isRoot": true}}}'
 
48420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48421
at_status=$? at_failed=false
 
48422
$at_check_filter
 
48423
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48424
echo >>"$at_stdout"; $as_echo "{\"name\":\"mydb\",\"tables\":{\"a\":{\"columns\":{\"x\":{\"ephemeral\":true,\"type\":{\"key\":{\"refTable\":\"b\",\"type\":\"uuid\"}}},\"y\":{\"type\":{\"key\":{\"refTable\":\"a\",\"type\":\"uuid\"}}}}},\"b\":{\"columns\":{\"aRef\":{\"type\":{\"key\":{\"refTable\":\"a\",\"type\":\"uuid\"}}}},\"isRoot\":true}},\"version\":\"4.2.1\"}
 
48425
" | \
 
48426
  $at_diff - "$at_stdout" || at_failed=:
 
48427
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:30"
 
48428
$at_failed && at_fn_log_failure
 
48429
$at_traceon; }
 
48430
 
 
48431
     set +x
 
48432
  $at_times_p && times >"$at_times_file"
 
48433
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48434
read at_status <"$at_status_file"
 
48435
#AT_STOP_699
 
48436
#AT_START_700
 
48437
at_fn_group_banner 700 'ovsdb-schema.at:61' \
 
48438
  "schema without version number - C" "              " 51
 
48439
at_xfail=no
 
48440
(
 
48441
  $as_echo "700. $at_setup_line: testing $at_desc ..."
 
48442
  $at_traceon
 
48443
 
 
48444
 
 
48445
   { set +x
 
48446
$as_echo "$at_srcdir/ovsdb-schema.at:61: test-ovsdb parse-schema \\
 
48447
      '{\"name\": \"mydb\",
 
48448
        \"tables\": {
 
48449
          \"x\": {
 
48450
            \"columns\": {
 
48451
              \"y\": {
 
48452
                \"type\": \"integer\"}}}}}'"
 
48453
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:61"
 
48454
( $at_check_trace; test-ovsdb parse-schema \
 
48455
      '{"name": "mydb",
 
48456
        "tables": {
 
48457
          "x": {
 
48458
            "columns": {
 
48459
              "y": {
 
48460
                "type": "integer"}}}}}'
 
48461
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48462
at_status=$? at_failed=false
 
48463
$at_check_filter
 
48464
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48465
echo >>"$at_stdout"; $as_echo "{\"name\":\"mydb\",\"tables\":{\"x\":{\"columns\":{\"y\":{\"type\":\"integer\"}}}}}
 
48466
" | \
 
48467
  $at_diff - "$at_stdout" || at_failed=:
 
48468
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:61"
 
48469
$at_failed && at_fn_log_failure
 
48470
$at_traceon; }
 
48471
 
 
48472
     set +x
 
48473
  $at_times_p && times >"$at_times_file"
 
48474
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48475
read at_status <"$at_status_file"
 
48476
#AT_STOP_700
 
48477
#AT_START_701
 
48478
at_fn_group_banner 701 'ovsdb-schema.at:61' \
 
48479
  "schema without version number - Python" "         " 51
 
48480
at_xfail=no
 
48481
(
 
48482
  $as_echo "701. $at_setup_line: testing $at_desc ..."
 
48483
  $at_traceon
 
48484
 
 
48485
   $as_echo "ovsdb-schema.at:61" >"$at_check_line_file"
 
48486
(test $HAVE_PYTHON = no) \
 
48487
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-schema.at:61"
 
48488
 
 
48489
 
 
48490
   { set +x
 
48491
$as_echo "$at_srcdir/ovsdb-schema.at:61: \$PYTHON \$srcdir/test-ovsdb.py parse-schema \\
 
48492
      '{\"name\": \"mydb\",
 
48493
        \"tables\": {
 
48494
          \"x\": {
 
48495
            \"columns\": {
 
48496
              \"y\": {
 
48497
                \"type\": \"integer\"}}}}}'"
 
48498
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:61"
 
48499
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-schema \
 
48500
      '{"name": "mydb",
 
48501
        "tables": {
 
48502
          "x": {
 
48503
            "columns": {
 
48504
              "y": {
 
48505
                "type": "integer"}}}}}'
 
48506
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48507
at_status=$? at_failed=false
 
48508
$at_check_filter
 
48509
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48510
echo >>"$at_stdout"; $as_echo "{\"name\":\"mydb\",\"tables\":{\"x\":{\"columns\":{\"y\":{\"type\":\"integer\"}}}}}
 
48511
" | \
 
48512
  $at_diff - "$at_stdout" || at_failed=:
 
48513
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:61"
 
48514
$at_failed && at_fn_log_failure
 
48515
$at_traceon; }
 
48516
 
 
48517
     set +x
 
48518
  $at_times_p && times >"$at_times_file"
 
48519
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48520
read at_status <"$at_status_file"
 
48521
#AT_STOP_701
 
48522
#AT_START_702
 
48523
at_fn_group_banner 702 'ovsdb-schema.at:71' \
 
48524
  "schema with invalid refTables - C" "              " 51
 
48525
at_xfail=no
 
48526
(
 
48527
  $as_echo "702. $at_setup_line: testing $at_desc ..."
 
48528
  $at_traceon
 
48529
 
 
48530
 
 
48531
   { set +x
 
48532
$as_echo "$at_srcdir/ovsdb-schema.at:71: test-ovsdb parse-schema \\
 
48533
      '{\"name\": \"mydb\",
 
48534
        \"tables\": {
 
48535
          \"a\": {
 
48536
            \"columns\": {
 
48537
              \"map\": {
 
48538
                \"type\": {
 
48539
                  \"key\": {
 
48540
                    \"type\": \"uuid\",
 
48541
                    \"refTable\": \"c\"},
 
48542
                  \"value\": {
 
48543
                    \"type\": \"uuid\",
 
48544
                    \"refTable\": \"a\"}}}}},
 
48545
          \"b\": {
 
48546
            \"columns\": {
 
48547
              \"aRef\": {
 
48548
                \"type\": {
 
48549
                  \"key\": {
 
48550
                    \"type\": \"uuid\",
 
48551
                    \"refTable\": \"a\"}}}}}}}'"
 
48552
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:71"
 
48553
( $at_check_trace; test-ovsdb parse-schema \
 
48554
      '{"name": "mydb",
 
48555
        "tables": {
 
48556
          "a": {
 
48557
            "columns": {
 
48558
              "map": {
 
48559
                "type": {
 
48560
                  "key": {
 
48561
                    "type": "uuid",
 
48562
                    "refTable": "c"},
 
48563
                  "value": {
 
48564
                    "type": "uuid",
 
48565
                    "refTable": "a"}}}}},
 
48566
          "b": {
 
48567
            "columns": {
 
48568
              "aRef": {
 
48569
                "type": {
 
48570
                  "key": {
 
48571
                    "type": "uuid",
 
48572
                    "refTable": "a"}}}}}}}'
 
48573
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48574
at_status=$? at_failed=false
 
48575
$at_check_filter
 
48576
echo stderr:; tee stderr <"$at_stderr"
 
48577
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
48578
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-schema.at:71"
 
48579
$at_failed && at_fn_log_failure
 
48580
$at_traceon; }
 
48581
 
 
48582
 
 
48583
   { set +x
 
48584
$as_echo "$at_srcdir/ovsdb-schema.at:71: if grep -F -e \"syntax error: column map key refers to undefined table c\" stderr
 
48585
      then
 
48586
        :
 
48587
      else
 
48588
        exit 99
 
48589
      fi"
 
48590
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:71"
 
48591
( $at_check_trace; if grep -F -e "syntax error: column map key refers to undefined table c" stderr
 
48592
      then
 
48593
        :
 
48594
      else
 
48595
        exit 99
 
48596
      fi
 
48597
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48598
at_status=$? at_failed=false
 
48599
$at_check_filter
 
48600
echo stderr:; cat "$at_stderr"
 
48601
echo stdout:; cat "$at_stdout"
 
48602
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:71"
 
48603
$at_failed && at_fn_log_failure
 
48604
$at_traceon; }
 
48605
 
 
48606
     set +x
 
48607
  $at_times_p && times >"$at_times_file"
 
48608
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48609
read at_status <"$at_status_file"
 
48610
#AT_STOP_702
 
48611
#AT_START_703
 
48612
at_fn_group_banner 703 'ovsdb-schema.at:71' \
 
48613
  "schema with invalid refTables - Python" "         " 51
 
48614
at_xfail=no
 
48615
(
 
48616
  $as_echo "703. $at_setup_line: testing $at_desc ..."
 
48617
  $at_traceon
 
48618
 
 
48619
   $as_echo "ovsdb-schema.at:71" >"$at_check_line_file"
 
48620
(test $HAVE_PYTHON = no) \
 
48621
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-schema.at:71"
 
48622
 
 
48623
   { set +x
 
48624
$as_echo "$at_srcdir/ovsdb-schema.at:71: \$PYTHON \$srcdir/test-ovsdb.py parse-schema \\
 
48625
      '{\"name\": \"mydb\",
 
48626
        \"tables\": {
 
48627
          \"a\": {
 
48628
            \"columns\": {
 
48629
              \"map\": {
 
48630
                \"type\": {
 
48631
                  \"key\": {
 
48632
                    \"type\": \"uuid\",
 
48633
                    \"refTable\": \"c\"},
 
48634
                  \"value\": {
 
48635
                    \"type\": \"uuid\",
 
48636
                    \"refTable\": \"a\"}}}}},
 
48637
          \"b\": {
 
48638
            \"columns\": {
 
48639
              \"aRef\": {
 
48640
                \"type\": {
 
48641
                  \"key\": {
 
48642
                    \"type\": \"uuid\",
 
48643
                    \"refTable\": \"a\"}}}}}}}'"
 
48644
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:71"
 
48645
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-schema \
 
48646
      '{"name": "mydb",
 
48647
        "tables": {
 
48648
          "a": {
 
48649
            "columns": {
 
48650
              "map": {
 
48651
                "type": {
 
48652
                  "key": {
 
48653
                    "type": "uuid",
 
48654
                    "refTable": "c"},
 
48655
                  "value": {
 
48656
                    "type": "uuid",
 
48657
                    "refTable": "a"}}}}},
 
48658
          "b": {
 
48659
            "columns": {
 
48660
              "aRef": {
 
48661
                "type": {
 
48662
                  "key": {
 
48663
                    "type": "uuid",
 
48664
                    "refTable": "a"}}}}}}}'
 
48665
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48666
at_status=$? at_failed=false
 
48667
$at_check_filter
 
48668
echo stderr:; tee stderr <"$at_stderr"
 
48669
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
48670
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-schema.at:71"
 
48671
$at_failed && at_fn_log_failure
 
48672
$at_traceon; }
 
48673
 
 
48674
 
 
48675
   { set +x
 
48676
$as_echo "$at_srcdir/ovsdb-schema.at:71: if grep -F -e \"syntax error: column map key refers to undefined table c\" stderr
 
48677
      then
 
48678
        :
 
48679
      else
 
48680
        exit 99
 
48681
      fi"
 
48682
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:71"
 
48683
( $at_check_trace; if grep -F -e "syntax error: column map key refers to undefined table c" stderr
 
48684
      then
 
48685
        :
 
48686
      else
 
48687
        exit 99
 
48688
      fi
 
48689
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48690
at_status=$? at_failed=false
 
48691
$at_check_filter
 
48692
echo stderr:; cat "$at_stderr"
 
48693
echo stdout:; cat "$at_stdout"
 
48694
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:71"
 
48695
$at_failed && at_fn_log_failure
 
48696
$at_traceon; }
 
48697
 
 
48698
     set +x
 
48699
  $at_times_p && times >"$at_times_file"
 
48700
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48701
read at_status <"$at_status_file"
 
48702
#AT_STOP_703
 
48703
#AT_START_704
 
48704
at_fn_group_banner 704 'ovsdb-schema.at:94' \
 
48705
  "schema with invalid version number - C" "         " 51
 
48706
at_xfail=no
 
48707
(
 
48708
  $as_echo "704. $at_setup_line: testing $at_desc ..."
 
48709
  $at_traceon
 
48710
 
 
48711
 
 
48712
   { set +x
 
48713
$as_echo "$at_srcdir/ovsdb-schema.at:94: test-ovsdb parse-schema \\
 
48714
      '{\"name\": \"mydb\",
 
48715
        \"tables\": {
 
48716
          \"x\": {
 
48717
            \"columns\": {
 
48718
              \"y\": {
 
48719
                \"type\": \"integer\"}}}},
 
48720
        \"version\": \"xxx\"}'"
 
48721
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:94"
 
48722
( $at_check_trace; test-ovsdb parse-schema \
 
48723
      '{"name": "mydb",
 
48724
        "tables": {
 
48725
          "x": {
 
48726
            "columns": {
 
48727
              "y": {
 
48728
                "type": "integer"}}}},
 
48729
        "version": "xxx"}'
 
48730
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48731
at_status=$? at_failed=false
 
48732
$at_check_filter
 
48733
echo stderr:; tee stderr <"$at_stderr"
 
48734
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
48735
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-schema.at:94"
 
48736
$at_failed && at_fn_log_failure
 
48737
$at_traceon; }
 
48738
 
 
48739
 
 
48740
   { set +x
 
48741
$as_echo "$at_srcdir/ovsdb-schema.at:94: if grep -F -e \"schema version \\\"xxx\\\" not in format x.y.z\" stderr
 
48742
      then
 
48743
        :
 
48744
      else
 
48745
        exit 99
 
48746
      fi"
 
48747
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:94"
 
48748
( $at_check_trace; if grep -F -e "schema version \"xxx\" not in format x.y.z" stderr
 
48749
      then
 
48750
        :
 
48751
      else
 
48752
        exit 99
 
48753
      fi
 
48754
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48755
at_status=$? at_failed=false
 
48756
$at_check_filter
 
48757
echo stderr:; cat "$at_stderr"
 
48758
echo stdout:; cat "$at_stdout"
 
48759
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:94"
 
48760
$at_failed && at_fn_log_failure
 
48761
$at_traceon; }
 
48762
 
 
48763
     set +x
 
48764
  $at_times_p && times >"$at_times_file"
 
48765
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48766
read at_status <"$at_status_file"
 
48767
#AT_STOP_704
 
48768
#AT_START_705
 
48769
at_fn_group_banner 705 'ovsdb-schema.at:94' \
 
48770
  "schema with invalid version number - Python" "    " 51
 
48771
at_xfail=no
 
48772
(
 
48773
  $as_echo "705. $at_setup_line: testing $at_desc ..."
 
48774
  $at_traceon
 
48775
 
 
48776
   $as_echo "ovsdb-schema.at:94" >"$at_check_line_file"
 
48777
(test $HAVE_PYTHON = no) \
 
48778
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-schema.at:94"
 
48779
 
 
48780
   { set +x
 
48781
$as_echo "$at_srcdir/ovsdb-schema.at:94: \$PYTHON \$srcdir/test-ovsdb.py parse-schema \\
 
48782
      '{\"name\": \"mydb\",
 
48783
        \"tables\": {
 
48784
          \"x\": {
 
48785
            \"columns\": {
 
48786
              \"y\": {
 
48787
                \"type\": \"integer\"}}}},
 
48788
        \"version\": \"xxx\"}'"
 
48789
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:94"
 
48790
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py parse-schema \
 
48791
      '{"name": "mydb",
 
48792
        "tables": {
 
48793
          "x": {
 
48794
            "columns": {
 
48795
              "y": {
 
48796
                "type": "integer"}}}},
 
48797
        "version": "xxx"}'
 
48798
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48799
at_status=$? at_failed=false
 
48800
$at_check_filter
 
48801
echo stderr:; tee stderr <"$at_stderr"
 
48802
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
48803
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-schema.at:94"
 
48804
$at_failed && at_fn_log_failure
 
48805
$at_traceon; }
 
48806
 
 
48807
 
 
48808
   { set +x
 
48809
$as_echo "$at_srcdir/ovsdb-schema.at:94: if grep -F -e \"schema version \\\"xxx\\\" not in format x.y.z\" stderr
 
48810
      then
 
48811
        :
 
48812
      else
 
48813
        exit 99
 
48814
      fi"
 
48815
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-schema.at:94"
 
48816
( $at_check_trace; if grep -F -e "schema version \"xxx\" not in format x.y.z" stderr
 
48817
      then
 
48818
        :
 
48819
      else
 
48820
        exit 99
 
48821
      fi
 
48822
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48823
at_status=$? at_failed=false
 
48824
$at_check_filter
 
48825
echo stderr:; cat "$at_stderr"
 
48826
echo stdout:; cat "$at_stdout"
 
48827
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-schema.at:94"
 
48828
$at_failed && at_fn_log_failure
 
48829
$at_traceon; }
 
48830
 
 
48831
     set +x
 
48832
  $at_times_p && times >"$at_times_file"
 
48833
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48834
read at_status <"$at_status_file"
 
48835
#AT_STOP_705
 
48836
#AT_START_706
 
48837
at_fn_group_banner 706 'ovsdb-condition.at:3' \
 
48838
  "null condition" "                                 " 52
 
48839
at_xfail=no
 
48840
(
 
48841
  $as_echo "706. $at_setup_line: testing $at_desc ..."
 
48842
  $at_traceon
 
48843
 
 
48844
 
 
48845
   { set +x
 
48846
$as_echo "$at_srcdir/ovsdb-condition.at:3: test-ovsdb parse-conditions \\
 
48847
    '{\"columns\": {\"name\": {\"type\": \"string\"}}}' \\
 
48848
    '[]'"
 
48849
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:3"
 
48850
( $at_check_trace; test-ovsdb parse-conditions \
 
48851
    '{"columns": {"name": {"type": "string"}}}' \
 
48852
    '[]'
 
48853
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48854
at_status=$? at_failed=false
 
48855
$at_check_filter
 
48856
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48857
echo >>"$at_stdout"; $as_echo "[]
 
48858
" | \
 
48859
  $at_diff - "$at_stdout" || at_failed=:
 
48860
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:3"
 
48861
$at_failed && at_fn_log_failure
 
48862
$at_traceon; }
 
48863
 
 
48864
     set +x
 
48865
  $at_times_p && times >"$at_times_file"
 
48866
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48867
read at_status <"$at_status_file"
 
48868
#AT_STOP_706
 
48869
#AT_START_707
 
48870
at_fn_group_banner 707 'ovsdb-condition.at:9' \
 
48871
  "conditions on scalars" "                          " 52
 
48872
at_xfail=no
 
48873
(
 
48874
  $as_echo "707. $at_setup_line: testing $at_desc ..."
 
48875
  $at_traceon
 
48876
 
 
48877
 
 
48878
   { set +x
 
48879
$as_echo "$at_srcdir/ovsdb-condition.at:9: test-ovsdb parse-conditions \\
 
48880
    '{\"columns\":
 
48881
        {\"i\": {\"type\": \"integer\"},
 
48882
         \"r\": {\"type\": \"real\"},
 
48883
         \"b\": {\"type\": \"boolean\"},
 
48884
         \"s\": {\"type\": \"string\"},
 
48885
         \"u\": {\"type\": \"uuid\"}}}' \\
 
48886
    '[[\"i\", \"==\", 0]]' \\
 
48887
    '[[\"i\", \"!=\", 1]]' \\
 
48888
    '[[\"i\", \"<\", 2]]' \\
 
48889
    '[[\"i\", \"<=\", 3]]' \\
 
48890
    '[[\"i\", \">\", 4]]' \\
 
48891
    '[[\"i\", \">=\", 5]]' \\
 
48892
    '[[\"i\", \"includes\", 6]]' \\
 
48893
    '[[\"i\", \"excludes\", 7]]' \\
 
48894
    '[[\"r\", \"==\", 0.5]]' \\
 
48895
    '[[\"r\", \"!=\", 1.5]]' \\
 
48896
    '[[\"r\", \"<\", 2.5]]' \\
 
48897
    '[[\"r\", \"<=\", 3.5]]' \\
 
48898
    '[[\"r\", \">\", 4.5]]' \\
 
48899
    '[[\"r\", \">=\", 5.5]]' \\
 
48900
    '[[\"r\", \"includes\", 6.5]]' \\
 
48901
    '[[\"r\", \"excludes\", 7.5]]' \\
 
48902
    '[[\"b\", \"==\", true]]' \\
 
48903
    '[[\"b\", \"!=\", false]]' \\
 
48904
    '[[\"b\", \"includes\", false]]' \\
 
48905
    '[[\"b\", \"excludes\", true]]' \\
 
48906
    '[[\"s\", \"==\", \"a\"]]' \\
 
48907
    '[[\"s\", \"!=\", \"b\"]]' \\
 
48908
    '[[\"s\", \"includes\", \"c\"]]' \\
 
48909
    '[[\"s\", \"excludes\", \"d\"]]' \\
 
48910
    '[[\"u\", \"==\", [\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]' \\
 
48911
    '[[\"u\", \"!=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]' \\
 
48912
    '[[\"u\", \"includes\", [\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]]]' \\
 
48913
    '[[\"u\", \"excludes\", [\"uuid\", \"62315898-64e0-40b9-b26f-ff74225303e6\"]]]'"
 
48914
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:9"
 
48915
( $at_check_trace; test-ovsdb parse-conditions \
 
48916
    '{"columns":
 
48917
        {"i": {"type": "integer"},
 
48918
         "r": {"type": "real"},
 
48919
         "b": {"type": "boolean"},
 
48920
         "s": {"type": "string"},
 
48921
         "u": {"type": "uuid"}}}' \
 
48922
    '[["i", "==", 0]]' \
 
48923
    '[["i", "!=", 1]]' \
 
48924
    '[["i", "<", 2]]' \
 
48925
    '[["i", "<=", 3]]' \
 
48926
    '[["i", ">", 4]]' \
 
48927
    '[["i", ">=", 5]]' \
 
48928
    '[["i", "includes", 6]]' \
 
48929
    '[["i", "excludes", 7]]' \
 
48930
    '[["r", "==", 0.5]]' \
 
48931
    '[["r", "!=", 1.5]]' \
 
48932
    '[["r", "<", 2.5]]' \
 
48933
    '[["r", "<=", 3.5]]' \
 
48934
    '[["r", ">", 4.5]]' \
 
48935
    '[["r", ">=", 5.5]]' \
 
48936
    '[["r", "includes", 6.5]]' \
 
48937
    '[["r", "excludes", 7.5]]' \
 
48938
    '[["b", "==", true]]' \
 
48939
    '[["b", "!=", false]]' \
 
48940
    '[["b", "includes", false]]' \
 
48941
    '[["b", "excludes", true]]' \
 
48942
    '[["s", "==", "a"]]' \
 
48943
    '[["s", "!=", "b"]]' \
 
48944
    '[["s", "includes", "c"]]' \
 
48945
    '[["s", "excludes", "d"]]' \
 
48946
    '[["u", "==", ["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]]]' \
 
48947
    '[["u", "!=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]' \
 
48948
    '[["u", "includes", ["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]]]' \
 
48949
    '[["u", "excludes", ["uuid", "62315898-64e0-40b9-b26f-ff74225303e6"]]]'
 
48950
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
48951
at_status=$? at_failed=false
 
48952
$at_check_filter
 
48953
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
48954
echo >>"$at_stdout"; $as_echo "[[\"i\",\"==\",0]]
 
48955
[[\"i\",\"!=\",1]]
 
48956
[[\"i\",\"<\",2]]
 
48957
[[\"i\",\"<=\",3]]
 
48958
[[\"i\",\">\",4]]
 
48959
[[\"i\",\">=\",5]]
 
48960
[[\"i\",\"includes\",6]]
 
48961
[[\"i\",\"excludes\",7]]
 
48962
[[\"r\",\"==\",0.5]]
 
48963
[[\"r\",\"!=\",1.5]]
 
48964
[[\"r\",\"<\",2.5]]
 
48965
[[\"r\",\"<=\",3.5]]
 
48966
[[\"r\",\">\",4.5]]
 
48967
[[\"r\",\">=\",5.5]]
 
48968
[[\"r\",\"includes\",6.5]]
 
48969
[[\"r\",\"excludes\",7.5]]
 
48970
[[\"b\",\"==\",true]]
 
48971
[[\"b\",\"!=\",false]]
 
48972
[[\"b\",\"includes\",false]]
 
48973
[[\"b\",\"excludes\",true]]
 
48974
[[\"s\",\"==\",\"a\"]]
 
48975
[[\"s\",\"!=\",\"b\"]]
 
48976
[[\"s\",\"includes\",\"c\"]]
 
48977
[[\"s\",\"excludes\",\"d\"]]
 
48978
[[\"u\",\"==\",[\"uuid\",\"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]
 
48979
[[\"u\",\"!=\",[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]
 
48980
[[\"u\",\"includes\",[\"uuid\",\"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]]]
 
48981
[[\"u\",\"excludes\",[\"uuid\",\"62315898-64e0-40b9-b26f-ff74225303e6\"]]]
 
48982
" | \
 
48983
  $at_diff - "$at_stdout" || at_failed=:
 
48984
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:9"
 
48985
$at_failed && at_fn_log_failure
 
48986
$at_traceon; }
 
48987
 
 
48988
     set +x
 
48989
  $at_times_p && times >"$at_times_file"
 
48990
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
48991
read at_status <"$at_status_file"
 
48992
#AT_STOP_707
 
48993
#AT_START_708
 
48994
at_fn_group_banner 708 'ovsdb-condition.at:75' \
 
48995
  "disallowed conditions on scalars" "               " 52
 
48996
at_xfail=no
 
48997
(
 
48998
  $as_echo "708. $at_setup_line: testing $at_desc ..."
 
48999
  $at_traceon
 
49000
 
 
49001
 
 
49002
{ set +x
 
49003
$as_echo "$at_srcdir/ovsdb-condition.at:77: test-ovsdb parse-conditions \\
 
49004
    '{\"columns\":
 
49005
        {\"i\": {\"type\": \"integer\"},
 
49006
         \"r\": {\"type\": \"real\"},
 
49007
         \"b\": {\"type\": \"boolean\"},
 
49008
         \"s\": {\"type\": \"string\"},
 
49009
         \"u\": {\"type\": \"uuid\"}}}' \\
 
49010
    '[[\"b\", \">\", true]]' \\
 
49011
    '[[\"b\", \">=\", false]]' \\
 
49012
    '[[\"b\", \"<\", false]]' \\
 
49013
    '[[\"b\", \"<=\", false]]' \\
 
49014
    '[[\"s\", \">\", \"a\"]]' \\
 
49015
    '[[\"s\", \">=\", \"b\"]]' \\
 
49016
    '[[\"s\", \"<\", \"c\"]]' \\
 
49017
    '[[\"s\", \"<=\", \"d\"]]' \\
 
49018
    '[[\"u\", \">\", [\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]' \\
 
49019
    '[[\"u\", \">=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]' \\
 
49020
    '[[\"u\", \"<\", [\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]]]' \\
 
49021
    '[[\"u\", \"<=\", [\"uuid\", \"62315898-64e0-40b9-b26f-ff74225303e6\"]]]'"
 
49022
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:77"
 
49023
( $at_check_trace; test-ovsdb parse-conditions \
 
49024
    '{"columns":
 
49025
        {"i": {"type": "integer"},
 
49026
         "r": {"type": "real"},
 
49027
         "b": {"type": "boolean"},
 
49028
         "s": {"type": "string"},
 
49029
         "u": {"type": "uuid"}}}' \
 
49030
    '[["b", ">", true]]' \
 
49031
    '[["b", ">=", false]]' \
 
49032
    '[["b", "<", false]]' \
 
49033
    '[["b", "<=", false]]' \
 
49034
    '[["s", ">", "a"]]' \
 
49035
    '[["s", ">=", "b"]]' \
 
49036
    '[["s", "<", "c"]]' \
 
49037
    '[["s", "<=", "d"]]' \
 
49038
    '[["u", ">", ["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]]]' \
 
49039
    '[["u", ">=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]' \
 
49040
    '[["u", "<", ["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]]]' \
 
49041
    '[["u", "<=", ["uuid", "62315898-64e0-40b9-b26f-ff74225303e6"]]]'
 
49042
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49043
at_status=$? at_failed=false
 
49044
$at_check_filter
 
49045
echo >>"$at_stderr"; $as_echo "test-ovsdb: syntax \"[\"b\",\">\",true]\": syntax error: Type mismatch: \">\" operator may not be applied to column b of type boolean.
 
49046
test-ovsdb: syntax \"[\"b\",\">=\",false]\": syntax error: Type mismatch: \">=\" operator may not be applied to column b of type boolean.
 
49047
test-ovsdb: syntax \"[\"b\",\"<\",false]\": syntax error: Type mismatch: \"<\" operator may not be applied to column b of type boolean.
 
49048
test-ovsdb: syntax \"[\"b\",\"<=\",false]\": syntax error: Type mismatch: \"<=\" operator may not be applied to column b of type boolean.
 
49049
test-ovsdb: syntax \"[\"s\",\">\",\"a\"]\": syntax error: Type mismatch: \">\" operator may not be applied to column s of type string.
 
49050
test-ovsdb: syntax \"[\"s\",\">=\",\"b\"]\": syntax error: Type mismatch: \">=\" operator may not be applied to column s of type string.
 
49051
test-ovsdb: syntax \"[\"s\",\"<\",\"c\"]\": syntax error: Type mismatch: \"<\" operator may not be applied to column s of type string.
 
49052
test-ovsdb: syntax \"[\"s\",\"<=\",\"d\"]\": syntax error: Type mismatch: \"<=\" operator may not be applied to column s of type string.
 
49053
test-ovsdb: syntax \"[\"u\",\">\",[\"uuid\",\"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]\": syntax error: Type mismatch: \">\" operator may not be applied to column u of type uuid.
 
49054
test-ovsdb: syntax \"[\"u\",\">=\",[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"]]\": syntax error: Type mismatch: \">=\" operator may not be applied to column u of type uuid.
 
49055
test-ovsdb: syntax \"[\"u\",\"<\",[\"uuid\",\"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]]\": syntax error: Type mismatch: \"<\" operator may not be applied to column u of type uuid.
 
49056
test-ovsdb: syntax \"[\"u\",\"<=\",[\"uuid\",\"62315898-64e0-40b9-b26f-ff74225303e6\"]]\": syntax error: Type mismatch: \"<=\" operator may not be applied to column u of type uuid.
 
49057
" | \
 
49058
  $at_diff - "$at_stderr" || at_failed=:
 
49059
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
49060
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-condition.at:77"
 
49061
$at_failed && at_fn_log_failure
 
49062
$at_traceon; }
 
49063
 
 
49064
  set +x
 
49065
  $at_times_p && times >"$at_times_file"
 
49066
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49067
read at_status <"$at_status_file"
 
49068
#AT_STOP_708
 
49069
#AT_START_709
 
49070
at_fn_group_banner 709 'ovsdb-condition.at:112' \
 
49071
  "conditions on sets" "                             " 52
 
49072
at_xfail=no
 
49073
(
 
49074
  $as_echo "709. $at_setup_line: testing $at_desc ..."
 
49075
  $at_traceon
 
49076
 
 
49077
 
 
49078
   { set +x
 
49079
$as_echo "$at_srcdir/ovsdb-condition.at:112: test-ovsdb parse-conditions \\
 
49080
    '{\"columns\":
 
49081
        {\"i\": {\"type\": {\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}},
 
49082
         \"r\": {\"type\": {\"key\": \"real\", \"min\": 0, \"max\": \"unlimited\"}},
 
49083
         \"b\": {\"type\": {\"key\": \"boolean\", \"min\": 0, \"max\": \"unlimited\"}},
 
49084
         \"s\": {\"type\": {\"key\": \"string\", \"min\": 0, \"max\": \"unlimited\"}},
 
49085
         \"u\": {\"type\": {\"key\": \"uuid\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
49086
    '[[\"i\", \"==\", [\"set\", []]]]' \\
 
49087
    '[[\"i\", \"!=\", [\"set\", [1]]]]' \\
 
49088
    '[[\"i\", \"includes\", [\"set\", [1, 2]]]]' \\
 
49089
    '[[\"i\", \"excludes\", [\"set\", [1, 2, 3]]]]' \\
 
49090
    '[[\"r\", \"==\", [\"set\", []]]]' \\
 
49091
    '[[\"r\", \"!=\", [\"set\", [1.5]]]]' \\
 
49092
    '[[\"r\", \"includes\", [\"set\", [1.5, 2.5]]]]' \\
 
49093
    '[[\"r\", \"excludes\", [\"set\", [1.5, 2.5, 3.5]]]]' \\
 
49094
    '[[\"b\", \"==\", [\"set\", [true]]]]' \\
 
49095
    '[[\"b\", \"!=\", [\"set\", [false]]]]' \\
 
49096
    '[[\"b\", \"includes\", [\"set\", [false]]]]' \\
 
49097
    '[[\"b\", \"excludes\", [\"set\", [true, false]]]]' \\
 
49098
    '[[\"s\", \"==\", [\"set\", [\"a\"]]]]' \\
 
49099
    '[[\"s\", \"!=\", [\"set\", [\"a\", \"b\"]]]]' \\
 
49100
    '[[\"s\", \"includes\", [\"set\", [\"c\"]]]]' \\
 
49101
    '[[\"s\", \"excludes\", [\"set\", [\"c\", \"d\"]]]]' \\
 
49102
    '[[\"u\", \"==\",
 
49103
       [\"set\", [[\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]]]' \\
 
49104
    '[[\"u\", \"==\",
 
49105
       [\"set\", [[\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"],
 
49106
                [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]]]' \\
 
49107
    '[[\"u\", \"includes\",
 
49108
       [\"set\", [[\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"],
 
49109
                [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"],
 
49110
                [\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]]]]]' \\
 
49111
    '[[\"u\", \"excludes\",
 
49112
       [\"set\", [[\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"],
 
49113
                [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"],
 
49114
                [\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"],
 
49115
                [\"uuid\", \"62315898-64e0-40b9-b26f-ff74225303e6\"]]]]]' \\
 
49116
"
 
49117
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:112"
 
49118
( $at_check_trace; test-ovsdb parse-conditions \
 
49119
    '{"columns":
 
49120
        {"i": {"type": {"key": "integer", "min": 0, "max": "unlimited"}},
 
49121
         "r": {"type": {"key": "real", "min": 0, "max": "unlimited"}},
 
49122
         "b": {"type": {"key": "boolean", "min": 0, "max": "unlimited"}},
 
49123
         "s": {"type": {"key": "string", "min": 0, "max": "unlimited"}},
 
49124
         "u": {"type": {"key": "uuid", "min": 0, "max": "unlimited"}}}}' \
 
49125
    '[["i", "==", ["set", []]]]' \
 
49126
    '[["i", "!=", ["set", [1]]]]' \
 
49127
    '[["i", "includes", ["set", [1, 2]]]]' \
 
49128
    '[["i", "excludes", ["set", [1, 2, 3]]]]' \
 
49129
    '[["r", "==", ["set", []]]]' \
 
49130
    '[["r", "!=", ["set", [1.5]]]]' \
 
49131
    '[["r", "includes", ["set", [1.5, 2.5]]]]' \
 
49132
    '[["r", "excludes", ["set", [1.5, 2.5, 3.5]]]]' \
 
49133
    '[["b", "==", ["set", [true]]]]' \
 
49134
    '[["b", "!=", ["set", [false]]]]' \
 
49135
    '[["b", "includes", ["set", [false]]]]' \
 
49136
    '[["b", "excludes", ["set", [true, false]]]]' \
 
49137
    '[["s", "==", ["set", ["a"]]]]' \
 
49138
    '[["s", "!=", ["set", ["a", "b"]]]]' \
 
49139
    '[["s", "includes", ["set", ["c"]]]]' \
 
49140
    '[["s", "excludes", ["set", ["c", "d"]]]]' \
 
49141
    '[["u", "==",
 
49142
       ["set", [["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]]]]]' \
 
49143
    '[["u", "==",
 
49144
       ["set", [["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"],
 
49145
                ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]]]' \
 
49146
    '[["u", "includes",
 
49147
       ["set", [["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"],
 
49148
                ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"],
 
49149
                ["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]]]]]' \
 
49150
    '[["u", "excludes",
 
49151
       ["set", [["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"],
 
49152
                ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"],
 
49153
                ["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"],
 
49154
                ["uuid", "62315898-64e0-40b9-b26f-ff74225303e6"]]]]]' \
 
49155
 
 
49156
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49157
at_status=$? at_failed=false
 
49158
$at_check_filter
 
49159
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49160
echo >>"$at_stdout"; $as_echo "[[\"i\",\"==\",[\"set\",[]]]]
 
49161
[[\"i\",\"!=\",1]]
 
49162
[[\"i\",\"includes\",[\"set\",[1,2]]]]
 
49163
[[\"i\",\"excludes\",[\"set\",[1,2,3]]]]
 
49164
[[\"r\",\"==\",[\"set\",[]]]]
 
49165
[[\"r\",\"!=\",1.5]]
 
49166
[[\"r\",\"includes\",[\"set\",[1.5,2.5]]]]
 
49167
[[\"r\",\"excludes\",[\"set\",[1.5,2.5,3.5]]]]
 
49168
[[\"b\",\"==\",true]]
 
49169
[[\"b\",\"!=\",false]]
 
49170
[[\"b\",\"includes\",false]]
 
49171
[[\"b\",\"excludes\",[\"set\",[false,true]]]]
 
49172
[[\"s\",\"==\",\"a\"]]
 
49173
[[\"s\",\"!=\",[\"set\",[\"a\",\"b\"]]]]
 
49174
[[\"s\",\"includes\",\"c\"]]
 
49175
[[\"s\",\"excludes\",[\"set\",[\"c\",\"d\"]]]]
 
49176
[[\"u\",\"==\",[\"uuid\",\"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]
 
49177
[[\"u\",\"==\",[\"set\",[[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"],[\"uuid\",\"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]]]
 
49178
[[\"u\",\"includes\",[\"set\",[[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"],[\"uuid\",\"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"],[\"uuid\",\"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]]]
 
49179
[[\"u\",\"excludes\",[\"set\",[[\"uuid\",\"62315898-64e0-40b9-b26f-ff74225303e6\"],[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"],[\"uuid\",\"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"],[\"uuid\",\"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]]]
 
49180
" | \
 
49181
  $at_diff - "$at_stdout" || at_failed=:
 
49182
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:112"
 
49183
$at_failed && at_fn_log_failure
 
49184
$at_traceon; }
 
49185
 
 
49186
     set +x
 
49187
  $at_times_p && times >"$at_times_file"
 
49188
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49189
read at_status <"$at_status_file"
 
49190
#AT_STOP_709
 
49191
#AT_START_710
 
49192
at_fn_group_banner 710 'ovsdb-condition.at:173' \
 
49193
  "condition sorting" "                              " 52
 
49194
at_xfail=no
 
49195
(
 
49196
  $as_echo "710. $at_setup_line: testing $at_desc ..."
 
49197
  $at_traceon
 
49198
 
 
49199
 
 
49200
   { set +x
 
49201
$as_echo "$at_srcdir/ovsdb-condition.at:173: test-ovsdb parse-conditions \\
 
49202
    '{\"columns\": {\"i\": {\"type\": \"integer\"}}}' \\
 
49203
    '[[\"i\", \"excludes\", 7],
 
49204
      [\"i\", \"!=\", 8],
 
49205
      [\"i\", \"==\", 1],
 
49206
      [\"i\", \"includes\", 2],
 
49207
      [\"i\", \"<=\", 3],
 
49208
      [\"i\", \"<\", 4],
 
49209
      [\"i\", \">\", 6],
 
49210
      [\"i\", \">=\", 5],
 
49211
      [\"_uuid\", \"==\", [\"uuid\", \"d50e85c6-8ae7-4b16-b69e-4395928bd9be\"]]]'"
 
49212
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:173"
 
49213
( $at_check_trace; test-ovsdb parse-conditions \
 
49214
    '{"columns": {"i": {"type": "integer"}}}' \
 
49215
    '[["i", "excludes", 7],
 
49216
      ["i", "!=", 8],
 
49217
      ["i", "==", 1],
 
49218
      ["i", "includes", 2],
 
49219
      ["i", "<=", 3],
 
49220
      ["i", "<", 4],
 
49221
      ["i", ">", 6],
 
49222
      ["i", ">=", 5],
 
49223
      ["_uuid", "==", ["uuid", "d50e85c6-8ae7-4b16-b69e-4395928bd9be"]]]'
 
49224
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49225
at_status=$? at_failed=false
 
49226
$at_check_filter
 
49227
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49228
echo >>"$at_stdout"; $as_echo "[[\"_uuid\",\"==\",[\"uuid\",\"d50e85c6-8ae7-4b16-b69e-4395928bd9be\"]],[\"i\",\"==\",1],[\"i\",\"includes\",2],[\"i\",\"<=\",3],[\"i\",\"<\",4],[\"i\",\">=\",5],[\"i\",\">\",6],[\"i\",\"excludes\",7],[\"i\",\"!=\",8]]
 
49229
" | \
 
49230
  $at_diff - "$at_stdout" || at_failed=:
 
49231
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:173"
 
49232
$at_failed && at_fn_log_failure
 
49233
$at_traceon; }
 
49234
 
 
49235
     set +x
 
49236
  $at_times_p && times >"$at_times_file"
 
49237
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49238
read at_status <"$at_status_file"
 
49239
#AT_STOP_710
 
49240
#AT_START_711
 
49241
at_fn_group_banner 711 'ovsdb-condition.at:187' \
 
49242
  "evaluating null condition" "                      " 52
 
49243
at_xfail=no
 
49244
(
 
49245
  $as_echo "711. $at_setup_line: testing $at_desc ..."
 
49246
  $at_traceon
 
49247
 
 
49248
 
 
49249
   { set +x
 
49250
$as_echo "$at_srcdir/ovsdb-condition.at:187: test-ovsdb evaluate-conditions \\
 
49251
    '{\"columns\": {\"i\": {\"type\": \"integer\"}}}' \\
 
49252
    '[[]]' \\
 
49253
    '[{\"i\": 0},
 
49254
      {\"i\": 1},
 
49255
      {\"i\": 2}']"
 
49256
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:187"
 
49257
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49258
    '{"columns": {"i": {"type": "integer"}}}' \
 
49259
    '[[]]' \
 
49260
    '[{"i": 0},
 
49261
      {"i": 1},
 
49262
      {"i": 2}']
 
49263
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49264
at_status=$? at_failed=false
 
49265
$at_check_filter
 
49266
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49267
echo >>"$at_stdout"; $as_echo "condition  0: TTT
 
49268
" | \
 
49269
  $at_diff - "$at_stdout" || at_failed=:
 
49270
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:187"
 
49271
$at_failed && at_fn_log_failure
 
49272
$at_traceon; }
 
49273
 
 
49274
     set +x
 
49275
  $at_times_p && times >"$at_times_file"
 
49276
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49277
read at_status <"$at_status_file"
 
49278
#AT_STOP_711
 
49279
#AT_START_712
 
49280
at_fn_group_banner 712 'ovsdb-condition.at:196' \
 
49281
  "evaluating conditions on integers" "              " 52
 
49282
at_xfail=no
 
49283
(
 
49284
  $as_echo "712. $at_setup_line: testing $at_desc ..."
 
49285
  $at_traceon
 
49286
 
 
49287
 
 
49288
   { set +x
 
49289
$as_echo "$at_srcdir/ovsdb-condition.at:196: test-ovsdb evaluate-conditions \\
 
49290
    '{\"columns\": {\"i\": {\"type\": \"integer\"}}}' \\
 
49291
    '[[[\"i\", \"<\", 1]],
 
49292
      [[\"i\", \"<=\", 1]],
 
49293
      [[\"i\", \"==\", 1]],
 
49294
      [[\"i\", \"!=\", 1]],
 
49295
      [[\"i\", \">=\", 1]],
 
49296
      [[\"i\", \">\", 1]],
 
49297
      [[\"i\", \"includes\", 1]],
 
49298
      [[\"i\", \"excludes\", 1]],
 
49299
      [[\"i\", \">\", 0], [\"i\", \"<\", 2]]]' \\
 
49300
    '[{\"i\": 0},
 
49301
      {\"i\": 1},
 
49302
      {\"i\": 2}']"
 
49303
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:196"
 
49304
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49305
    '{"columns": {"i": {"type": "integer"}}}' \
 
49306
    '[[["i", "<", 1]],
 
49307
      [["i", "<=", 1]],
 
49308
      [["i", "==", 1]],
 
49309
      [["i", "!=", 1]],
 
49310
      [["i", ">=", 1]],
 
49311
      [["i", ">", 1]],
 
49312
      [["i", "includes", 1]],
 
49313
      [["i", "excludes", 1]],
 
49314
      [["i", ">", 0], ["i", "<", 2]]]' \
 
49315
    '[{"i": 0},
 
49316
      {"i": 1},
 
49317
      {"i": 2}']
 
49318
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49319
at_status=$? at_failed=false
 
49320
$at_check_filter
 
49321
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49322
echo >>"$at_stdout"; $as_echo "condition  0: T--
 
49323
condition  1: TT-
 
49324
condition  2: -T-
 
49325
condition  3: T-T
 
49326
condition  4: -TT
 
49327
condition  5: --T
 
49328
condition  6: -T-
 
49329
condition  7: T-T
 
49330
condition  8: -T-
 
49331
" | \
 
49332
  $at_diff - "$at_stdout" || at_failed=:
 
49333
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:196"
 
49334
$at_failed && at_fn_log_failure
 
49335
$at_traceon; }
 
49336
 
 
49337
     set +x
 
49338
  $at_times_p && times >"$at_times_file"
 
49339
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49340
read at_status <"$at_status_file"
 
49341
#AT_STOP_712
 
49342
#AT_START_713
 
49343
at_fn_group_banner 713 'ovsdb-condition.at:221' \
 
49344
  "evaluating conditions on reals" "                 " 52
 
49345
at_xfail=no
 
49346
(
 
49347
  $as_echo "713. $at_setup_line: testing $at_desc ..."
 
49348
  $at_traceon
 
49349
 
 
49350
 
 
49351
   { set +x
 
49352
$as_echo "$at_srcdir/ovsdb-condition.at:221: test-ovsdb evaluate-conditions \\
 
49353
    '{\"columns\": {\"r\": {\"type\": \"real\"}}}' \\
 
49354
    '[[[\"r\", \"<\", 5.0]],
 
49355
      [[\"r\", \"<=\", 5.0]],
 
49356
      [[\"r\", \"==\", 5.0]],
 
49357
      [[\"r\", \"!=\", 5.0]],
 
49358
      [[\"r\", \">=\", 5.0]],
 
49359
      [[\"r\", \">\", 5.0]],
 
49360
      [[\"r\", \"includes\", 5.0]],
 
49361
      [[\"r\", \"excludes\", 5.0]],
 
49362
      [[\"r\", \"!=\", 0], [\"r\", \"!=\", 5.1]]]' \\
 
49363
    '[{\"r\": 0},
 
49364
      {\"r\": 5.0},
 
49365
      {\"r\": 5.1}']"
 
49366
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:221"
 
49367
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49368
    '{"columns": {"r": {"type": "real"}}}' \
 
49369
    '[[["r", "<", 5.0]],
 
49370
      [["r", "<=", 5.0]],
 
49371
      [["r", "==", 5.0]],
 
49372
      [["r", "!=", 5.0]],
 
49373
      [["r", ">=", 5.0]],
 
49374
      [["r", ">", 5.0]],
 
49375
      [["r", "includes", 5.0]],
 
49376
      [["r", "excludes", 5.0]],
 
49377
      [["r", "!=", 0], ["r", "!=", 5.1]]]' \
 
49378
    '[{"r": 0},
 
49379
      {"r": 5.0},
 
49380
      {"r": 5.1}']
 
49381
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49382
at_status=$? at_failed=false
 
49383
$at_check_filter
 
49384
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49385
echo >>"$at_stdout"; $as_echo "condition  0: T--
 
49386
condition  1: TT-
 
49387
condition  2: -T-
 
49388
condition  3: T-T
 
49389
condition  4: -TT
 
49390
condition  5: --T
 
49391
condition  6: -T-
 
49392
condition  7: T-T
 
49393
condition  8: -T-
 
49394
" | \
 
49395
  $at_diff - "$at_stdout" || at_failed=:
 
49396
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:221"
 
49397
$at_failed && at_fn_log_failure
 
49398
$at_traceon; }
 
49399
 
 
49400
     set +x
 
49401
  $at_times_p && times >"$at_times_file"
 
49402
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49403
read at_status <"$at_status_file"
 
49404
#AT_STOP_713
 
49405
#AT_START_714
 
49406
at_fn_group_banner 714 'ovsdb-condition.at:246' \
 
49407
  "evaluating conditions on booleans" "              " 52
 
49408
at_xfail=no
 
49409
(
 
49410
  $as_echo "714. $at_setup_line: testing $at_desc ..."
 
49411
  $at_traceon
 
49412
 
 
49413
 
 
49414
   { set +x
 
49415
$as_echo "$at_srcdir/ovsdb-condition.at:246: test-ovsdb evaluate-conditions \\
 
49416
    '{\"columns\": {\"b\": {\"type\": \"boolean\"}}}' \\
 
49417
    '[[[\"b\", \"==\", true]],
 
49418
      [[\"b\", \"!=\", true]],
 
49419
      [[\"b\", \"includes\", true]],
 
49420
      [[\"b\", \"excludes\", true]],
 
49421
      [[\"b\", \"==\", false]],
 
49422
      [[\"b\", \"!=\", false]],
 
49423
      [[\"b\", \"includes\", false]],
 
49424
      [[\"b\", \"excludes\", false]],
 
49425
      [[\"b\", \"==\", true], [\"b\", \"==\", false]]]' \\
 
49426
    '[{\"b\": true},
 
49427
      {\"b\": false}']"
 
49428
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:246"
 
49429
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49430
    '{"columns": {"b": {"type": "boolean"}}}' \
 
49431
    '[[["b", "==", true]],
 
49432
      [["b", "!=", true]],
 
49433
      [["b", "includes", true]],
 
49434
      [["b", "excludes", true]],
 
49435
      [["b", "==", false]],
 
49436
      [["b", "!=", false]],
 
49437
      [["b", "includes", false]],
 
49438
      [["b", "excludes", false]],
 
49439
      [["b", "==", true], ["b", "==", false]]]' \
 
49440
    '[{"b": true},
 
49441
      {"b": false}']
 
49442
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49443
at_status=$? at_failed=false
 
49444
$at_check_filter
 
49445
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49446
echo >>"$at_stdout"; $as_echo "condition  0: T-
 
49447
condition  1: -T
 
49448
condition  2: T-
 
49449
condition  3: -T
 
49450
condition  4: -T
 
49451
condition  5: T-
 
49452
condition  6: -T
 
49453
condition  7: T-
 
49454
condition  8: --
 
49455
" | \
 
49456
  $at_diff - "$at_stdout" || at_failed=:
 
49457
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:246"
 
49458
$at_failed && at_fn_log_failure
 
49459
$at_traceon; }
 
49460
 
 
49461
     set +x
 
49462
  $at_times_p && times >"$at_times_file"
 
49463
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49464
read at_status <"$at_status_file"
 
49465
#AT_STOP_714
 
49466
#AT_START_715
 
49467
at_fn_group_banner 715 'ovsdb-condition.at:270' \
 
49468
  "evaluating conditions on strings" "               " 52
 
49469
at_xfail=no
 
49470
(
 
49471
  $as_echo "715. $at_setup_line: testing $at_desc ..."
 
49472
  $at_traceon
 
49473
 
 
49474
 
 
49475
   { set +x
 
49476
$as_echo "$at_srcdir/ovsdb-condition.at:270: test-ovsdb evaluate-conditions \\
 
49477
    '{\"columns\": {\"s\": {\"type\": \"string\"}}}' \\
 
49478
    '[[[\"s\", \"==\", \"\"]],
 
49479
      [[\"s\", \"!=\", \"\"]],
 
49480
      [[\"s\", \"includes\", \"\"]],
 
49481
      [[\"s\", \"excludes\", \"\"]],
 
49482
      [[\"s\", \"==\", \"foo\"]],
 
49483
      [[\"s\", \"!=\", \"foo\"]],
 
49484
      [[\"s\", \"includes\", \"foo\"]],
 
49485
      [[\"s\", \"excludes\", \"foo\"]],
 
49486
      [[\"s\", \"!=\", \"foo\"], [\"s\", \"!=\", \"\"]]]' \\
 
49487
    '[{\"s\": \"\"},
 
49488
      {\"s\": \"foo\"},
 
49489
      {\"s\": \"xxx\"}']"
 
49490
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:270"
 
49491
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49492
    '{"columns": {"s": {"type": "string"}}}' \
 
49493
    '[[["s", "==", ""]],
 
49494
      [["s", "!=", ""]],
 
49495
      [["s", "includes", ""]],
 
49496
      [["s", "excludes", ""]],
 
49497
      [["s", "==", "foo"]],
 
49498
      [["s", "!=", "foo"]],
 
49499
      [["s", "includes", "foo"]],
 
49500
      [["s", "excludes", "foo"]],
 
49501
      [["s", "!=", "foo"], ["s", "!=", ""]]]' \
 
49502
    '[{"s": ""},
 
49503
      {"s": "foo"},
 
49504
      {"s": "xxx"}']
 
49505
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49506
at_status=$? at_failed=false
 
49507
$at_check_filter
 
49508
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49509
echo >>"$at_stdout"; $as_echo "condition  0: T--
 
49510
condition  1: -TT
 
49511
condition  2: T--
 
49512
condition  3: -TT
 
49513
condition  4: -T-
 
49514
condition  5: T-T
 
49515
condition  6: -T-
 
49516
condition  7: T-T
 
49517
condition  8: --T
 
49518
" | \
 
49519
  $at_diff - "$at_stdout" || at_failed=:
 
49520
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:270"
 
49521
$at_failed && at_fn_log_failure
 
49522
$at_traceon; }
 
49523
 
 
49524
     set +x
 
49525
  $at_times_p && times >"$at_times_file"
 
49526
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49527
read at_status <"$at_status_file"
 
49528
#AT_STOP_715
 
49529
#AT_START_716
 
49530
at_fn_group_banner 716 'ovsdb-condition.at:295' \
 
49531
  "evaluating conditions on UUIDs" "                 " 52
 
49532
at_xfail=no
 
49533
(
 
49534
  $as_echo "716. $at_setup_line: testing $at_desc ..."
 
49535
  $at_traceon
 
49536
 
 
49537
 
 
49538
   { set +x
 
49539
$as_echo "$at_srcdir/ovsdb-condition.at:295: test-ovsdb evaluate-conditions \\
 
49540
    '{\"columns\": {\"u\": {\"type\": \"uuid\"}}}' \\
 
49541
    '[[[\"u\", \"==\", [\"uuid\", \"8a1dbdb8-416f-4ce9-affa-3332691714b6\"]]],
 
49542
      [[\"u\", \"!=\", [\"uuid\", \"8a1dbdb8-416f-4ce9-affa-3332691714b6\"]]],
 
49543
      [[\"u\", \"includes\", [\"uuid\", \"8a1dbdb8-416f-4ce9-affa-3332691714b6\"]]],
 
49544
      [[\"u\", \"excludes\", [\"uuid\", \"8a1dbdb8-416f-4ce9-affa-3332691714b6\"]]],
 
49545
      [[\"u\", \"==\", [\"uuid\", \"06151f9d-62d6-4f59-8504-e9765107faa9\"]]],
 
49546
      [[\"u\", \"!=\", [\"uuid\", \"06151f9d-62d6-4f59-8504-e9765107faa9\"]]],
 
49547
      [[\"u\", \"includes\", [\"uuid\", \"06151f9d-62d6-4f59-8504-e9765107faa9\"]]],
 
49548
      [[\"u\", \"excludes\", [\"uuid\", \"06151f9d-62d6-4f59-8504-e9765107faa9\"]]],
 
49549
      [[\"u\", \"!=\", [\"uuid\", \"06151f9d-62d6-4f59-8504-e9765107faa9\"]],
 
49550
       [\"u\", \"!=\", [\"uuid\", \"cb160ed6-92a6-4503-a6aa-a09a09e01f0d\"]]]]' \\
 
49551
    '[{\"u\": [\"uuid\", \"8a1dbdb8-416f-4ce9-affa-3332691714b6\"]},
 
49552
      {\"u\": [\"uuid\", \"06151f9d-62d6-4f59-8504-e9765107faa9\"]},
 
49553
      {\"u\": [\"uuid\", \"00000000-0000-0000-0000-000000000000\"]}']"
 
49554
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:295"
 
49555
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49556
    '{"columns": {"u": {"type": "uuid"}}}' \
 
49557
    '[[["u", "==", ["uuid", "8a1dbdb8-416f-4ce9-affa-3332691714b6"]]],
 
49558
      [["u", "!=", ["uuid", "8a1dbdb8-416f-4ce9-affa-3332691714b6"]]],
 
49559
      [["u", "includes", ["uuid", "8a1dbdb8-416f-4ce9-affa-3332691714b6"]]],
 
49560
      [["u", "excludes", ["uuid", "8a1dbdb8-416f-4ce9-affa-3332691714b6"]]],
 
49561
      [["u", "==", ["uuid", "06151f9d-62d6-4f59-8504-e9765107faa9"]]],
 
49562
      [["u", "!=", ["uuid", "06151f9d-62d6-4f59-8504-e9765107faa9"]]],
 
49563
      [["u", "includes", ["uuid", "06151f9d-62d6-4f59-8504-e9765107faa9"]]],
 
49564
      [["u", "excludes", ["uuid", "06151f9d-62d6-4f59-8504-e9765107faa9"]]],
 
49565
      [["u", "!=", ["uuid", "06151f9d-62d6-4f59-8504-e9765107faa9"]],
 
49566
       ["u", "!=", ["uuid", "cb160ed6-92a6-4503-a6aa-a09a09e01f0d"]]]]' \
 
49567
    '[{"u": ["uuid", "8a1dbdb8-416f-4ce9-affa-3332691714b6"]},
 
49568
      {"u": ["uuid", "06151f9d-62d6-4f59-8504-e9765107faa9"]},
 
49569
      {"u": ["uuid", "00000000-0000-0000-0000-000000000000"]}']
 
49570
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49571
at_status=$? at_failed=false
 
49572
$at_check_filter
 
49573
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49574
echo >>"$at_stdout"; $as_echo "condition  0: T--
 
49575
condition  1: -TT
 
49576
condition  2: T--
 
49577
condition  3: -TT
 
49578
condition  4: -T-
 
49579
condition  5: T-T
 
49580
condition  6: -T-
 
49581
condition  7: T-T
 
49582
condition  8: T-T
 
49583
" | \
 
49584
  $at_diff - "$at_stdout" || at_failed=:
 
49585
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:295"
 
49586
$at_failed && at_fn_log_failure
 
49587
$at_traceon; }
 
49588
 
 
49589
     set +x
 
49590
  $at_times_p && times >"$at_times_file"
 
49591
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49592
read at_status <"$at_status_file"
 
49593
#AT_STOP_716
 
49594
#AT_START_717
 
49595
at_fn_group_banner 717 'ovsdb-condition.at:321' \
 
49596
  "evaluating conditions on sets" "                  " 52
 
49597
at_xfail=no
 
49598
(
 
49599
  $as_echo "717. $at_setup_line: testing $at_desc ..."
 
49600
  $at_traceon
 
49601
 
 
49602
 
 
49603
   { set +x
 
49604
$as_echo "$at_srcdir/ovsdb-condition.at:321: test-ovsdb evaluate-conditions \\
 
49605
    '{\"columns\": {\"i\": {\"type\": {\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
49606
    '[[[\"i\", \"==\", [\"set\", []]]],
 
49607
      [[\"i\", \"==\", [\"set\", [0]]]],
 
49608
      [[\"i\", \"==\", [\"set\", [1]]]],
 
49609
      [[\"i\", \"==\", [\"set\", [0, 1]]]],
 
49610
      [[\"i\", \"==\", [\"set\", [2]]]],
 
49611
      [[\"i\", \"==\", [\"set\", [2, 0]]]],
 
49612
      [[\"i\", \"==\", [\"set\", [2, 1]]]],
 
49613
      [[\"i\", \"==\", [\"set\", [2, 1, 0]]]],
 
49614
      [[\"i\", \"!=\", [\"set\", []]]],
 
49615
      [[\"i\", \"!=\", [\"set\", [0]]]],
 
49616
      [[\"i\", \"!=\", [\"set\", [1]]]],
 
49617
      [[\"i\", \"!=\", [\"set\", [0, 1]]]],
 
49618
      [[\"i\", \"!=\", [\"set\", [2]]]],
 
49619
      [[\"i\", \"!=\", [\"set\", [2, 0]]]],
 
49620
      [[\"i\", \"!=\", [\"set\", [2, 1]]]],
 
49621
      [[\"i\", \"!=\", [\"set\", [2, 1, 0]]]],
 
49622
      [[\"i\", \"includes\", [\"set\", []]]],
 
49623
      [[\"i\", \"includes\", [\"set\", [0]]]],
 
49624
      [[\"i\", \"includes\", [\"set\", [1]]]],
 
49625
      [[\"i\", \"includes\", [\"set\", [0, 1]]]],
 
49626
      [[\"i\", \"includes\", [\"set\", [2]]]],
 
49627
      [[\"i\", \"includes\", [\"set\", [2, 0]]]],
 
49628
      [[\"i\", \"includes\", [\"set\", [2, 1]]]],
 
49629
      [[\"i\", \"includes\", [\"set\", [2, 1, 0]]]],
 
49630
      [[\"i\", \"excludes\", [\"set\", []]]],
 
49631
      [[\"i\", \"excludes\", [\"set\", [0]]]],
 
49632
      [[\"i\", \"excludes\", [\"set\", [1]]]],
 
49633
      [[\"i\", \"excludes\", [\"set\", [0, 1]]]],
 
49634
      [[\"i\", \"excludes\", [\"set\", [2]]]],
 
49635
      [[\"i\", \"excludes\", [\"set\", [2, 0]]]],
 
49636
      [[\"i\", \"excludes\", [\"set\", [2, 1]]]],
 
49637
      [[\"i\", \"excludes\", [\"set\", [2, 1, 0]]]],
 
49638
      [[\"i\", \"includes\", [\"set\", [0]]],
 
49639
       [\"i\", \"includes\", [\"set\", [1]]]]]' \\
 
49640
    '[{\"i\": [\"set\", []]},
 
49641
      {\"i\": [\"set\", [0]]},
 
49642
      {\"i\": [\"set\", [1]]},
 
49643
      {\"i\": [\"set\", [0, 1]]},
 
49644
      {\"i\": [\"set\", [2]]},
 
49645
      {\"i\": [\"set\", [2, 0]]},
 
49646
      {\"i\": [\"set\", [2, 1]]},
 
49647
      {\"i\": [\"set\", [2, 1, 0]]}]'"
 
49648
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:321"
 
49649
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49650
    '{"columns": {"i": {"type": {"key": "integer", "min": 0, "max": "unlimited"}}}}' \
 
49651
    '[[["i", "==", ["set", []]]],
 
49652
      [["i", "==", ["set", [0]]]],
 
49653
      [["i", "==", ["set", [1]]]],
 
49654
      [["i", "==", ["set", [0, 1]]]],
 
49655
      [["i", "==", ["set", [2]]]],
 
49656
      [["i", "==", ["set", [2, 0]]]],
 
49657
      [["i", "==", ["set", [2, 1]]]],
 
49658
      [["i", "==", ["set", [2, 1, 0]]]],
 
49659
      [["i", "!=", ["set", []]]],
 
49660
      [["i", "!=", ["set", [0]]]],
 
49661
      [["i", "!=", ["set", [1]]]],
 
49662
      [["i", "!=", ["set", [0, 1]]]],
 
49663
      [["i", "!=", ["set", [2]]]],
 
49664
      [["i", "!=", ["set", [2, 0]]]],
 
49665
      [["i", "!=", ["set", [2, 1]]]],
 
49666
      [["i", "!=", ["set", [2, 1, 0]]]],
 
49667
      [["i", "includes", ["set", []]]],
 
49668
      [["i", "includes", ["set", [0]]]],
 
49669
      [["i", "includes", ["set", [1]]]],
 
49670
      [["i", "includes", ["set", [0, 1]]]],
 
49671
      [["i", "includes", ["set", [2]]]],
 
49672
      [["i", "includes", ["set", [2, 0]]]],
 
49673
      [["i", "includes", ["set", [2, 1]]]],
 
49674
      [["i", "includes", ["set", [2, 1, 0]]]],
 
49675
      [["i", "excludes", ["set", []]]],
 
49676
      [["i", "excludes", ["set", [0]]]],
 
49677
      [["i", "excludes", ["set", [1]]]],
 
49678
      [["i", "excludes", ["set", [0, 1]]]],
 
49679
      [["i", "excludes", ["set", [2]]]],
 
49680
      [["i", "excludes", ["set", [2, 0]]]],
 
49681
      [["i", "excludes", ["set", [2, 1]]]],
 
49682
      [["i", "excludes", ["set", [2, 1, 0]]]],
 
49683
      [["i", "includes", ["set", [0]]],
 
49684
       ["i", "includes", ["set", [1]]]]]' \
 
49685
    '[{"i": ["set", []]},
 
49686
      {"i": ["set", [0]]},
 
49687
      {"i": ["set", [1]]},
 
49688
      {"i": ["set", [0, 1]]},
 
49689
      {"i": ["set", [2]]},
 
49690
      {"i": ["set", [2, 0]]},
 
49691
      {"i": ["set", [2, 1]]},
 
49692
      {"i": ["set", [2, 1, 0]]}]'
 
49693
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49694
at_status=$? at_failed=false
 
49695
$at_check_filter
 
49696
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49697
echo >>"$at_stdout"; $as_echo "condition  0: T---- ---
 
49698
condition  1: -T--- ---
 
49699
condition  2: --T-- ---
 
49700
condition  3: ---T- ---
 
49701
condition  4: ----T ---
 
49702
condition  5: ----- T--
 
49703
condition  6: ----- -T-
 
49704
condition  7: ----- --T
 
49705
condition  8: -TTTT TTT
 
49706
condition  9: T-TTT TTT
 
49707
condition 10: TT-TT TTT
 
49708
condition 11: TTT-T TTT
 
49709
condition 12: TTTT- TTT
 
49710
condition 13: TTTTT -TT
 
49711
condition 14: TTTTT T-T
 
49712
condition 15: TTTTT TT-
 
49713
condition 16: TTTTT TTT
 
49714
condition 17: -T-T- T-T
 
49715
condition 18: --TT- -TT
 
49716
condition 19: ---T- --T
 
49717
condition 20: ----T TTT
 
49718
condition 21: ----- T-T
 
49719
condition 22: ----- -TT
 
49720
condition 23: ----- --T
 
49721
condition 24: TTTTT TTT
 
49722
condition 25: T-T-T -T-
 
49723
condition 26: TT--T T--
 
49724
condition 27: T---T ---
 
49725
condition 28: TTTT- ---
 
49726
condition 29: T-T-- ---
 
49727
condition 30: TT--- ---
 
49728
condition 31: T---- ---
 
49729
condition 32: ---T- --T
 
49730
" | \
 
49731
  $at_diff - "$at_stdout" || at_failed=:
 
49732
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:321"
 
49733
$at_failed && at_fn_log_failure
 
49734
$at_traceon; }
 
49735
 
 
49736
     set +x
 
49737
  $at_times_p && times >"$at_times_file"
 
49738
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49739
read at_status <"$at_status_file"
 
49740
#AT_STOP_717
 
49741
#AT_START_718
 
49742
at_fn_group_banner 718 'ovsdb-condition.at:403' \
 
49743
  "evaluating conditions on maps (1)" "              " 52
 
49744
at_xfail=no
 
49745
(
 
49746
  $as_echo "718. $at_setup_line: testing $at_desc ..."
 
49747
  $at_traceon
 
49748
 
 
49749
 
 
49750
   { set +x
 
49751
$as_echo "$at_srcdir/ovsdb-condition.at:403: test-ovsdb evaluate-conditions \\
 
49752
    '{\"columns\": {\"i\": {\"type\": {\"key\": \"integer\",
 
49753
                                 \"value\": \"boolean\",
 
49754
                                 \"min\": 0,
 
49755
                                 \"max\": \"unlimited\"}}}}' \\
 
49756
    '[[[\"i\", \"==\", [\"map\", []]]],
 
49757
      [[\"i\", \"==\", [\"map\", [[0, true]]]]],
 
49758
      [[\"i\", \"==\", [\"map\", [[1, false]]]]],
 
49759
      [[\"i\", \"==\", [\"map\", [[0, true], [1, false]]]]],
 
49760
      [[\"i\", \"==\", [\"map\", [[2, true]]]]],
 
49761
      [[\"i\", \"==\", [\"map\", [[2, true], [0, true]]]]],
 
49762
      [[\"i\", \"==\", [\"map\", [[2, true], [1, false]]]]],
 
49763
      [[\"i\", \"==\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
49764
      [[\"i\", \"!=\", [\"map\", []]]],
 
49765
      [[\"i\", \"!=\", [\"map\", [[0, true]]]]],
 
49766
      [[\"i\", \"!=\", [\"map\", [[1, false]]]]],
 
49767
      [[\"i\", \"!=\", [\"map\", [[0, true], [1, false]]]]],
 
49768
      [[\"i\", \"!=\", [\"map\", [[2, true]]]]],
 
49769
      [[\"i\", \"!=\", [\"map\", [[2, true], [0, true]]]]],
 
49770
      [[\"i\", \"!=\", [\"map\", [[2, true], [1, false]]]]],
 
49771
      [[\"i\", \"!=\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
49772
      [[\"i\", \"includes\", [\"map\", []]]],
 
49773
      [[\"i\", \"includes\", [\"map\", [[0, true]]]]],
 
49774
      [[\"i\", \"includes\", [\"map\", [[1, false]]]]],
 
49775
      [[\"i\", \"includes\", [\"map\", [[0, true], [1, false]]]]],
 
49776
      [[\"i\", \"includes\", [\"map\", [[2, true]]]]],
 
49777
      [[\"i\", \"includes\", [\"map\", [[2, true], [0, true]]]]],
 
49778
      [[\"i\", \"includes\", [\"map\", [[2, true], [1, false]]]]],
 
49779
      [[\"i\", \"includes\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
49780
      [[\"i\", \"excludes\", [\"map\", []]]],
 
49781
      [[\"i\", \"excludes\", [\"map\", [[0, true]]]]],
 
49782
      [[\"i\", \"excludes\", [\"map\", [[1, false]]]]],
 
49783
      [[\"i\", \"excludes\", [\"map\", [[0, true], [1, false]]]]],
 
49784
      [[\"i\", \"excludes\", [\"map\", [[2, true]]]]],
 
49785
      [[\"i\", \"excludes\", [\"map\", [[2, true], [0, true]]]]],
 
49786
      [[\"i\", \"excludes\", [\"map\", [[2, true], [1, false]]]]],
 
49787
      [[\"i\", \"excludes\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
49788
      [[\"i\", \"includes\", [\"map\", [[0, true]]]],
 
49789
       [\"i\", \"includes\", [\"map\", [[1, false]]]]]]' \\
 
49790
    '[{\"i\": [\"map\", []]},
 
49791
      {\"i\": [\"map\", [[0, true]]]},
 
49792
      {\"i\": [\"map\", [[1, false]]]},
 
49793
      {\"i\": [\"map\", [[0, true], [1, false]]]},
 
49794
      {\"i\": [\"map\", [[2, true]]]},
 
49795
      {\"i\": [\"map\", [[2, true], [0, true]]]},
 
49796
      {\"i\": [\"map\", [[2, true], [1, false]]]},
 
49797
      {\"i\": [\"map\", [[2, true], [1, false], [0, true]]]}]'"
 
49798
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:403"
 
49799
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49800
    '{"columns": {"i": {"type": {"key": "integer",
 
49801
                                 "value": "boolean",
 
49802
                                 "min": 0,
 
49803
                                 "max": "unlimited"}}}}' \
 
49804
    '[[["i", "==", ["map", []]]],
 
49805
      [["i", "==", ["map", [[0, true]]]]],
 
49806
      [["i", "==", ["map", [[1, false]]]]],
 
49807
      [["i", "==", ["map", [[0, true], [1, false]]]]],
 
49808
      [["i", "==", ["map", [[2, true]]]]],
 
49809
      [["i", "==", ["map", [[2, true], [0, true]]]]],
 
49810
      [["i", "==", ["map", [[2, true], [1, false]]]]],
 
49811
      [["i", "==", ["map", [[2, true], [1, false], [0, true]]]]],
 
49812
      [["i", "!=", ["map", []]]],
 
49813
      [["i", "!=", ["map", [[0, true]]]]],
 
49814
      [["i", "!=", ["map", [[1, false]]]]],
 
49815
      [["i", "!=", ["map", [[0, true], [1, false]]]]],
 
49816
      [["i", "!=", ["map", [[2, true]]]]],
 
49817
      [["i", "!=", ["map", [[2, true], [0, true]]]]],
 
49818
      [["i", "!=", ["map", [[2, true], [1, false]]]]],
 
49819
      [["i", "!=", ["map", [[2, true], [1, false], [0, true]]]]],
 
49820
      [["i", "includes", ["map", []]]],
 
49821
      [["i", "includes", ["map", [[0, true]]]]],
 
49822
      [["i", "includes", ["map", [[1, false]]]]],
 
49823
      [["i", "includes", ["map", [[0, true], [1, false]]]]],
 
49824
      [["i", "includes", ["map", [[2, true]]]]],
 
49825
      [["i", "includes", ["map", [[2, true], [0, true]]]]],
 
49826
      [["i", "includes", ["map", [[2, true], [1, false]]]]],
 
49827
      [["i", "includes", ["map", [[2, true], [1, false], [0, true]]]]],
 
49828
      [["i", "excludes", ["map", []]]],
 
49829
      [["i", "excludes", ["map", [[0, true]]]]],
 
49830
      [["i", "excludes", ["map", [[1, false]]]]],
 
49831
      [["i", "excludes", ["map", [[0, true], [1, false]]]]],
 
49832
      [["i", "excludes", ["map", [[2, true]]]]],
 
49833
      [["i", "excludes", ["map", [[2, true], [0, true]]]]],
 
49834
      [["i", "excludes", ["map", [[2, true], [1, false]]]]],
 
49835
      [["i", "excludes", ["map", [[2, true], [1, false], [0, true]]]]],
 
49836
      [["i", "includes", ["map", [[0, true]]]],
 
49837
       ["i", "includes", ["map", [[1, false]]]]]]' \
 
49838
    '[{"i": ["map", []]},
 
49839
      {"i": ["map", [[0, true]]]},
 
49840
      {"i": ["map", [[1, false]]]},
 
49841
      {"i": ["map", [[0, true], [1, false]]]},
 
49842
      {"i": ["map", [[2, true]]]},
 
49843
      {"i": ["map", [[2, true], [0, true]]]},
 
49844
      {"i": ["map", [[2, true], [1, false]]]},
 
49845
      {"i": ["map", [[2, true], [1, false], [0, true]]]}]'
 
49846
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
49847
at_status=$? at_failed=false
 
49848
$at_check_filter
 
49849
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
49850
echo >>"$at_stdout"; $as_echo "condition  0: T---- ---
 
49851
condition  1: -T--- ---
 
49852
condition  2: --T-- ---
 
49853
condition  3: ---T- ---
 
49854
condition  4: ----T ---
 
49855
condition  5: ----- T--
 
49856
condition  6: ----- -T-
 
49857
condition  7: ----- --T
 
49858
condition  8: -TTTT TTT
 
49859
condition  9: T-TTT TTT
 
49860
condition 10: TT-TT TTT
 
49861
condition 11: TTT-T TTT
 
49862
condition 12: TTTT- TTT
 
49863
condition 13: TTTTT -TT
 
49864
condition 14: TTTTT T-T
 
49865
condition 15: TTTTT TT-
 
49866
condition 16: TTTTT TTT
 
49867
condition 17: -T-T- T-T
 
49868
condition 18: --TT- -TT
 
49869
condition 19: ---T- --T
 
49870
condition 20: ----T TTT
 
49871
condition 21: ----- T-T
 
49872
condition 22: ----- -TT
 
49873
condition 23: ----- --T
 
49874
condition 24: TTTTT TTT
 
49875
condition 25: T-T-T -T-
 
49876
condition 26: TT--T T--
 
49877
condition 27: T---T ---
 
49878
condition 28: TTTT- ---
 
49879
condition 29: T-T-- ---
 
49880
condition 30: TT--- ---
 
49881
condition 31: T---- ---
 
49882
condition 32: ---T- --T
 
49883
" | \
 
49884
  $at_diff - "$at_stdout" || at_failed=:
 
49885
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:403"
 
49886
$at_failed && at_fn_log_failure
 
49887
$at_traceon; }
 
49888
 
 
49889
     set +x
 
49890
  $at_times_p && times >"$at_times_file"
 
49891
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
49892
read at_status <"$at_status_file"
 
49893
#AT_STOP_718
 
49894
#AT_START_719
 
49895
at_fn_group_banner 719 'ovsdb-condition.at:488' \
 
49896
  "evaluating conditions on maps (2)" "              " 52
 
49897
at_xfail=no
 
49898
(
 
49899
  $as_echo "719. $at_setup_line: testing $at_desc ..."
 
49900
  $at_traceon
 
49901
 
 
49902
 
 
49903
   { set +x
 
49904
$as_echo "$at_srcdir/ovsdb-condition.at:488: test-ovsdb evaluate-conditions \\
 
49905
    '{\"columns\": {\"i\": {\"type\": {\"key\": \"integer\",
 
49906
                                 \"value\": \"boolean\",
 
49907
                                 \"min\": 0,
 
49908
                                 \"max\": \"unlimited\"}}}}' \\
 
49909
    '[[[\"i\", \"==\", [\"map\", []]]],
 
49910
      [[\"i\", \"==\", [\"map\", [[0, true]]]]],
 
49911
      [[\"i\", \"==\", [\"map\", [[1, false]]]]],
 
49912
      [[\"i\", \"==\", [\"map\", [[0, true], [1, false]]]]],
 
49913
      [[\"i\", \"==\", [\"map\", [[2, true]]]]],
 
49914
      [[\"i\", \"==\", [\"map\", [[2, true], [0, true]]]]],
 
49915
      [[\"i\", \"==\", [\"map\", [[2, true], [1, false]]]]],
 
49916
      [[\"i\", \"==\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
49917
      [[\"i\", \"!=\", [\"map\", []]]],
 
49918
      [[\"i\", \"!=\", [\"map\", [[0, true]]]]],
 
49919
      [[\"i\", \"!=\", [\"map\", [[1, false]]]]],
 
49920
      [[\"i\", \"!=\", [\"map\", [[0, true], [1, false]]]]],
 
49921
      [[\"i\", \"!=\", [\"map\", [[2, true]]]]],
 
49922
      [[\"i\", \"!=\", [\"map\", [[2, true], [0, true]]]]],
 
49923
      [[\"i\", \"!=\", [\"map\", [[2, true], [1, false]]]]],
 
49924
      [[\"i\", \"!=\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
49925
      [[\"i\", \"includes\", [\"map\", []]]],
 
49926
      [[\"i\", \"includes\", [\"map\", [[0, true]]]]],
 
49927
      [[\"i\", \"includes\", [\"map\", [[1, false]]]]],
 
49928
      [[\"i\", \"includes\", [\"map\", [[0, true], [1, false]]]]],
 
49929
      [[\"i\", \"includes\", [\"map\", [[2, true]]]]],
 
49930
      [[\"i\", \"includes\", [\"map\", [[2, true], [0, true]]]]],
 
49931
      [[\"i\", \"includes\", [\"map\", [[2, true], [1, false]]]]],
 
49932
      [[\"i\", \"includes\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
49933
      [[\"i\", \"excludes\", [\"map\", []]]],
 
49934
      [[\"i\", \"excludes\", [\"map\", [[0, true]]]]],
 
49935
      [[\"i\", \"excludes\", [\"map\", [[1, false]]]]],
 
49936
      [[\"i\", \"excludes\", [\"map\", [[0, true], [1, false]]]]],
 
49937
      [[\"i\", \"excludes\", [\"map\", [[2, true]]]]],
 
49938
      [[\"i\", \"excludes\", [\"map\", [[2, true], [0, true]]]]],
 
49939
      [[\"i\", \"excludes\", [\"map\", [[2, true], [1, false]]]]],
 
49940
      [[\"i\", \"excludes\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
49941
      [[\"i\", \"includes\", [\"map\", [[0, true]]]],
 
49942
       [\"i\", \"includes\", [\"map\", [[1, false]]]]]]' \\
 
49943
    '[{\"i\": [\"map\", []]},
 
49944
      {\"i\": [\"map\", [[0, true]]]},
 
49945
      {\"i\": [\"map\", [[0, false]]]},
 
49946
      {\"i\": [\"map\", [[1, false]]]},
 
49947
      {\"i\": [\"map\", [[1, true]]]},
 
49948
 
 
49949
      {\"i\": [\"map\", [[0, true], [1, false]]]},
 
49950
      {\"i\": [\"map\", [[0, true], [1, true]]]},
 
49951
      {\"i\": [\"map\", [[2, true]]]},
 
49952
      {\"i\": [\"map\", [[2, false]]]},
 
49953
      {\"i\": [\"map\", [[2, true], [0, true]]]},
 
49954
 
 
49955
      {\"i\": [\"map\", [[2, false], [0, true]]]},
 
49956
      {\"i\": [\"map\", [[2, true], [1, false]]]},
 
49957
      {\"i\": [\"map\", [[2, true], [1, true]]]},
 
49958
      {\"i\": [\"map\", [[2, true], [1, false], [0, true]]]},
 
49959
      {\"i\": [\"map\", [[2, true], [1, false], [0, false]]]}]'"
 
49960
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-condition.at:488"
 
49961
( $at_check_trace; test-ovsdb evaluate-conditions \
 
49962
    '{"columns": {"i": {"type": {"key": "integer",
 
49963
                                 "value": "boolean",
 
49964
                                 "min": 0,
 
49965
                                 "max": "unlimited"}}}}' \
 
49966
    '[[["i", "==", ["map", []]]],
 
49967
      [["i", "==", ["map", [[0, true]]]]],
 
49968
      [["i", "==", ["map", [[1, false]]]]],
 
49969
      [["i", "==", ["map", [[0, true], [1, false]]]]],
 
49970
      [["i", "==", ["map", [[2, true]]]]],
 
49971
      [["i", "==", ["map", [[2, true], [0, true]]]]],
 
49972
      [["i", "==", ["map", [[2, true], [1, false]]]]],
 
49973
      [["i", "==", ["map", [[2, true], [1, false], [0, true]]]]],
 
49974
      [["i", "!=", ["map", []]]],
 
49975
      [["i", "!=", ["map", [[0, true]]]]],
 
49976
      [["i", "!=", ["map", [[1, false]]]]],
 
49977
      [["i", "!=", ["map", [[0, true], [1, false]]]]],
 
49978
      [["i", "!=", ["map", [[2, true]]]]],
 
49979
      [["i", "!=", ["map", [[2, true], [0, true]]]]],
 
49980
      [["i", "!=", ["map", [[2, true], [1, false]]]]],
 
49981
      [["i", "!=", ["map", [[2, true], [1, false], [0, true]]]]],
 
49982
      [["i", "includes", ["map", []]]],
 
49983
      [["i", "includes", ["map", [[0, true]]]]],
 
49984
      [["i", "includes", ["map", [[1, false]]]]],
 
49985
      [["i", "includes", ["map", [[0, true], [1, false]]]]],
 
49986
      [["i", "includes", ["map", [[2, true]]]]],
 
49987
      [["i", "includes", ["map", [[2, true], [0, true]]]]],
 
49988
      [["i", "includes", ["map", [[2, true], [1, false]]]]],
 
49989
      [["i", "includes", ["map", [[2, true], [1, false], [0, true]]]]],
 
49990
      [["i", "excludes", ["map", []]]],
 
49991
      [["i", "excludes", ["map", [[0, true]]]]],
 
49992
      [["i", "excludes", ["map", [[1, false]]]]],
 
49993
      [["i", "excludes", ["map", [[0, true], [1, false]]]]],
 
49994
      [["i", "excludes", ["map", [[2, true]]]]],
 
49995
      [["i", "excludes", ["map", [[2, true], [0, true]]]]],
 
49996
      [["i", "excludes", ["map", [[2, true], [1, false]]]]],
 
49997
      [["i", "excludes", ["map", [[2, true], [1, false], [0, true]]]]],
 
49998
      [["i", "includes", ["map", [[0, true]]]],
 
49999
       ["i", "includes", ["map", [[1, false]]]]]]' \
 
50000
    '[{"i": ["map", []]},
 
50001
      {"i": ["map", [[0, true]]]},
 
50002
      {"i": ["map", [[0, false]]]},
 
50003
      {"i": ["map", [[1, false]]]},
 
50004
      {"i": ["map", [[1, true]]]},
 
50005
 
 
50006
      {"i": ["map", [[0, true], [1, false]]]},
 
50007
      {"i": ["map", [[0, true], [1, true]]]},
 
50008
      {"i": ["map", [[2, true]]]},
 
50009
      {"i": ["map", [[2, false]]]},
 
50010
      {"i": ["map", [[2, true], [0, true]]]},
 
50011
 
 
50012
      {"i": ["map", [[2, false], [0, true]]]},
 
50013
      {"i": ["map", [[2, true], [1, false]]]},
 
50014
      {"i": ["map", [[2, true], [1, true]]]},
 
50015
      {"i": ["map", [[2, true], [1, false], [0, true]]]},
 
50016
      {"i": ["map", [[2, true], [1, false], [0, false]]]}]'
 
50017
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50018
at_status=$? at_failed=false
 
50019
$at_check_filter
 
50020
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50021
echo >>"$at_stdout"; $as_echo "condition  0: T---- ----- -----
 
50022
condition  1: -T--- ----- -----
 
50023
condition  2: ---T- ----- -----
 
50024
condition  3: ----- T---- -----
 
50025
condition  4: ----- --T-- -----
 
50026
condition  5: ----- ----T -----
 
50027
condition  6: ----- ----- -T---
 
50028
condition  7: ----- ----- ---T-
 
50029
condition  8: -TTTT TTTTT TTTTT
 
50030
condition  9: T-TTT TTTTT TTTTT
 
50031
condition 10: TTT-T TTTTT TTTTT
 
50032
condition 11: TTTTT -TTTT TTTTT
 
50033
condition 12: TTTTT TT-TT TTTTT
 
50034
condition 13: TTTTT TTTT- TTTTT
 
50035
condition 14: TTTTT TTTTT T-TTT
 
50036
condition 15: TTTTT TTTTT TTT-T
 
50037
condition 16: TTTTT TTTTT TTTTT
 
50038
condition 17: -T--- TT--T T--T-
 
50039
condition 18: ---T- T---- -T-TT
 
50040
condition 19: ----- T---- ---T-
 
50041
condition 20: ----- --T-T -TTTT
 
50042
condition 21: ----- ----T ---T-
 
50043
condition 22: ----- ----- -T-TT
 
50044
condition 23: ----- ----- ---T-
 
50045
condition 24: TTTTT TTTTT TTTTT
 
50046
condition 25: T-TTT --TT- -TT-T
 
50047
condition 26: TTT-T -TTTT T-T--
 
50048
condition 27: T-T-T --TT- --T--
 
50049
condition 28: TTTTT TT-T- T----
 
50050
condition 29: T-TTT ---T- -----
 
50051
condition 30: TTT-T -T-T- T----
 
50052
condition 31: T-T-T ---T- -----
 
50053
condition 32: ----- T---- ---T-
 
50054
" | \
 
50055
  $at_diff - "$at_stdout" || at_failed=:
 
50056
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-condition.at:488"
 
50057
$at_failed && at_fn_log_failure
 
50058
$at_traceon; }
 
50059
 
 
50060
     set +x
 
50061
  $at_times_p && times >"$at_times_file"
 
50062
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50063
read at_status <"$at_status_file"
 
50064
#AT_STOP_719
 
50065
#AT_START_720
 
50066
at_fn_group_banner 720 'ovsdb-mutation.at:3' \
 
50067
  "null mutation" "                                  " 53
 
50068
at_xfail=no
 
50069
(
 
50070
  $as_echo "720. $at_setup_line: testing $at_desc ..."
 
50071
  $at_traceon
 
50072
 
 
50073
 
 
50074
   { set +x
 
50075
$as_echo "$at_srcdir/ovsdb-mutation.at:3: test-ovsdb parse-mutations \\
 
50076
    '{\"columns\": {\"name\": {\"type\": \"string\"}}}' \\
 
50077
    '[]'"
 
50078
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:3"
 
50079
( $at_check_trace; test-ovsdb parse-mutations \
 
50080
    '{"columns": {"name": {"type": "string"}}}' \
 
50081
    '[]'
 
50082
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50083
at_status=$? at_failed=false
 
50084
$at_check_filter
 
50085
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50086
echo >>"$at_stdout"; $as_echo "[]
 
50087
" | \
 
50088
  $at_diff - "$at_stdout" || at_failed=:
 
50089
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:3"
 
50090
$at_failed && at_fn_log_failure
 
50091
$at_traceon; }
 
50092
 
 
50093
     set +x
 
50094
  $at_times_p && times >"$at_times_file"
 
50095
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50096
read at_status <"$at_status_file"
 
50097
#AT_STOP_720
 
50098
#AT_START_721
 
50099
at_fn_group_banner 721 'ovsdb-mutation.at:9' \
 
50100
  "mutations on scalars" "                           " 53
 
50101
at_xfail=no
 
50102
(
 
50103
  $as_echo "721. $at_setup_line: testing $at_desc ..."
 
50104
  $at_traceon
 
50105
 
 
50106
 
 
50107
   { set +x
 
50108
$as_echo "$at_srcdir/ovsdb-mutation.at:9: test-ovsdb parse-mutations \\
 
50109
    '{\"columns\":
 
50110
        {\"i\": {\"type\": \"integer\"},
 
50111
         \"r\": {\"type\": \"real\"},
 
50112
         \"b\": {\"type\": \"boolean\"},
 
50113
         \"s\": {\"type\": \"string\"},
 
50114
         \"u\": {\"type\": \"uuid\"}}}' \\
 
50115
    '[[\"i\", \"+=\", 0]]' \\
 
50116
    '[[\"i\", \"-=\", 1]]' \\
 
50117
    '[[\"i\", \"*=\", 2]]' \\
 
50118
    '[[\"i\", \"/=\", 3]]' \\
 
50119
    '[[\"i\", \"%=\", 4]]' \\
 
50120
    '[[\"r\", \"+=\", 0.5]]' \\
 
50121
    '[[\"r\", \"-=\", 1.5]]' \\
 
50122
    '[[\"r\", \"*=\", 2.5]]' \\
 
50123
    '[[\"r\", \"/=\", 3.5]]'"
 
50124
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:9"
 
50125
( $at_check_trace; test-ovsdb parse-mutations \
 
50126
    '{"columns":
 
50127
        {"i": {"type": "integer"},
 
50128
         "r": {"type": "real"},
 
50129
         "b": {"type": "boolean"},
 
50130
         "s": {"type": "string"},
 
50131
         "u": {"type": "uuid"}}}' \
 
50132
    '[["i", "+=", 0]]' \
 
50133
    '[["i", "-=", 1]]' \
 
50134
    '[["i", "*=", 2]]' \
 
50135
    '[["i", "/=", 3]]' \
 
50136
    '[["i", "%=", 4]]' \
 
50137
    '[["r", "+=", 0.5]]' \
 
50138
    '[["r", "-=", 1.5]]' \
 
50139
    '[["r", "*=", 2.5]]' \
 
50140
    '[["r", "/=", 3.5]]'
 
50141
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50142
at_status=$? at_failed=false
 
50143
$at_check_filter
 
50144
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50145
echo >>"$at_stdout"; $as_echo "[[\"i\",\"+=\",0]]
 
50146
[[\"i\",\"-=\",1]]
 
50147
[[\"i\",\"*=\",2]]
 
50148
[[\"i\",\"/=\",3]]
 
50149
[[\"i\",\"%=\",4]]
 
50150
[[\"r\",\"+=\",0.5]]
 
50151
[[\"r\",\"-=\",1.5]]
 
50152
[[\"r\",\"*=\",2.5]]
 
50153
[[\"r\",\"/=\",3.5]]
 
50154
" | \
 
50155
  $at_diff - "$at_stdout" || at_failed=:
 
50156
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:9"
 
50157
$at_failed && at_fn_log_failure
 
50158
$at_traceon; }
 
50159
 
 
50160
     set +x
 
50161
  $at_times_p && times >"$at_times_file"
 
50162
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50163
read at_status <"$at_status_file"
 
50164
#AT_STOP_721
 
50165
#AT_START_722
 
50166
at_fn_group_banner 722 'ovsdb-mutation.at:37' \
 
50167
  "disallowed mutations on scalars" "                " 53
 
50168
at_xfail=no
 
50169
(
 
50170
  $as_echo "722. $at_setup_line: testing $at_desc ..."
 
50171
  $at_traceon
 
50172
 
 
50173
 
 
50174
{ set +x
 
50175
$as_echo "$at_srcdir/ovsdb-mutation.at:39: test-ovsdb parse-mutations \\
 
50176
    '{\"columns\":
 
50177
        {\"i\": {\"type\": \"integer\"},
 
50178
         \"r\": {\"type\": \"real\"},
 
50179
         \"b\": {\"type\": \"boolean\"},
 
50180
         \"s\": {\"type\": \"string\"},
 
50181
         \"u\": {\"type\": \"uuid\"}}}' \\
 
50182
    '[[\"i\", \"xxx\", 1]]' \\
 
50183
    '[[\"i\", \"insert\", 1]]' \\
 
50184
    '[[\"i\", \"delete\", 2]]' \\
 
50185
    '[[\"r\", \"%=\", 0.5]]' \\
 
50186
    '[[\"r\", \"insert\", 1.5]]' \\
 
50187
    '[[\"r\", \"delete\", 2.5]]' \\
 
50188
    '[[\"b\", \"+=\", true]]' \\
 
50189
    '[[\"b\", \"-=\", false]]' \\
 
50190
    '[[\"b\", \"*=\", true]]' \\
 
50191
    '[[\"b\", \"/=\", false]]' \\
 
50192
    '[[\"b\", \"%=\", true]]' \\
 
50193
    '[[\"b\", \"insert\", false]]' \\
 
50194
    '[[\"b\", \"delete\", true]]' \\
 
50195
    '[[\"s\", \"+=\", \"a\"]]' \\
 
50196
    '[[\"s\", \"-=\", \"b\"]]' \\
 
50197
    '[[\"s\", \"*=\", \"c\"]]' \\
 
50198
    '[[\"s\", \"/=\", \"d\"]]' \\
 
50199
    '[[\"s\", \"%=\", \"e\"]]' \\
 
50200
    '[[\"s\", \"insert\", \"f\"]]' \\
 
50201
    '[[\"s\", \"delete\", \"g\"]]' \\
 
50202
    '[[\"u\", \"+=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]' \\
 
50203
    '[[\"u\", \"-=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]' \\
 
50204
    '[[\"u\", \"*=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]' \\
 
50205
    '[[\"u\", \"/=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]' \\
 
50206
    '[[\"u\", \"insert\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]' \\
 
50207
    '[[\"u\", \"delete\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]'"
 
50208
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:39"
 
50209
( $at_check_trace; test-ovsdb parse-mutations \
 
50210
    '{"columns":
 
50211
        {"i": {"type": "integer"},
 
50212
         "r": {"type": "real"},
 
50213
         "b": {"type": "boolean"},
 
50214
         "s": {"type": "string"},
 
50215
         "u": {"type": "uuid"}}}' \
 
50216
    '[["i", "xxx", 1]]' \
 
50217
    '[["i", "insert", 1]]' \
 
50218
    '[["i", "delete", 2]]' \
 
50219
    '[["r", "%=", 0.5]]' \
 
50220
    '[["r", "insert", 1.5]]' \
 
50221
    '[["r", "delete", 2.5]]' \
 
50222
    '[["b", "+=", true]]' \
 
50223
    '[["b", "-=", false]]' \
 
50224
    '[["b", "*=", true]]' \
 
50225
    '[["b", "/=", false]]' \
 
50226
    '[["b", "%=", true]]' \
 
50227
    '[["b", "insert", false]]' \
 
50228
    '[["b", "delete", true]]' \
 
50229
    '[["s", "+=", "a"]]' \
 
50230
    '[["s", "-=", "b"]]' \
 
50231
    '[["s", "*=", "c"]]' \
 
50232
    '[["s", "/=", "d"]]' \
 
50233
    '[["s", "%=", "e"]]' \
 
50234
    '[["s", "insert", "f"]]' \
 
50235
    '[["s", "delete", "g"]]' \
 
50236
    '[["u", "+=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]' \
 
50237
    '[["u", "-=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]' \
 
50238
    '[["u", "*=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]' \
 
50239
    '[["u", "/=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]' \
 
50240
    '[["u", "insert", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]' \
 
50241
    '[["u", "delete", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]'
 
50242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50243
at_status=$? at_failed=false
 
50244
$at_check_filter
 
50245
echo >>"$at_stderr"; $as_echo "test-ovsdb: unknown mutator: No mutator named xxx.
 
50246
test-ovsdb: syntax \"[\"i\",\"insert\",1]\": syntax error: Type mismatch: \"insert\" operator may not be applied to column i of type integer.
 
50247
test-ovsdb: syntax \"[\"i\",\"delete\",2]\": syntax error: Type mismatch: \"delete\" operator may not be applied to column i of type integer.
 
50248
test-ovsdb: syntax \"[\"r\",\"%=\",0.5]\": syntax error: Type mismatch: \"%=\" operator may not be applied to column r of type real.
 
50249
test-ovsdb: syntax \"[\"r\",\"insert\",1.5]\": syntax error: Type mismatch: \"insert\" operator may not be applied to column r of type real.
 
50250
test-ovsdb: syntax \"[\"r\",\"delete\",2.5]\": syntax error: Type mismatch: \"delete\" operator may not be applied to column r of type real.
 
50251
test-ovsdb: syntax \"[\"b\",\"+=\",true]\": syntax error: Type mismatch: \"+=\" operator may not be applied to column b of type boolean.
 
50252
test-ovsdb: syntax \"[\"b\",\"-=\",false]\": syntax error: Type mismatch: \"-=\" operator may not be applied to column b of type boolean.
 
50253
test-ovsdb: syntax \"[\"b\",\"*=\",true]\": syntax error: Type mismatch: \"*=\" operator may not be applied to column b of type boolean.
 
50254
test-ovsdb: syntax \"[\"b\",\"/=\",false]\": syntax error: Type mismatch: \"/=\" operator may not be applied to column b of type boolean.
 
50255
test-ovsdb: syntax \"[\"b\",\"%=\",true]\": syntax error: Type mismatch: \"%=\" operator may not be applied to column b of type boolean.
 
50256
test-ovsdb: syntax \"[\"b\",\"insert\",false]\": syntax error: Type mismatch: \"insert\" operator may not be applied to column b of type boolean.
 
50257
test-ovsdb: syntax \"[\"b\",\"delete\",true]\": syntax error: Type mismatch: \"delete\" operator may not be applied to column b of type boolean.
 
50258
test-ovsdb: syntax \"[\"s\",\"+=\",\"a\"]\": syntax error: Type mismatch: \"+=\" operator may not be applied to column s of type string.
 
50259
test-ovsdb: syntax \"[\"s\",\"-=\",\"b\"]\": syntax error: Type mismatch: \"-=\" operator may not be applied to column s of type string.
 
50260
test-ovsdb: syntax \"[\"s\",\"*=\",\"c\"]\": syntax error: Type mismatch: \"*=\" operator may not be applied to column s of type string.
 
50261
test-ovsdb: syntax \"[\"s\",\"/=\",\"d\"]\": syntax error: Type mismatch: \"/=\" operator may not be applied to column s of type string.
 
50262
test-ovsdb: syntax \"[\"s\",\"%=\",\"e\"]\": syntax error: Type mismatch: \"%=\" operator may not be applied to column s of type string.
 
50263
test-ovsdb: syntax \"[\"s\",\"insert\",\"f\"]\": syntax error: Type mismatch: \"insert\" operator may not be applied to column s of type string.
 
50264
test-ovsdb: syntax \"[\"s\",\"delete\",\"g\"]\": syntax error: Type mismatch: \"delete\" operator may not be applied to column s of type string.
 
50265
test-ovsdb: syntax \"[\"u\",\"+=\",[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"]]\": syntax error: Type mismatch: \"+=\" operator may not be applied to column u of type uuid.
 
50266
test-ovsdb: syntax \"[\"u\",\"-=\",[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"]]\": syntax error: Type mismatch: \"-=\" operator may not be applied to column u of type uuid.
 
50267
test-ovsdb: syntax \"[\"u\",\"*=\",[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"]]\": syntax error: Type mismatch: \"*=\" operator may not be applied to column u of type uuid.
 
50268
test-ovsdb: syntax \"[\"u\",\"/=\",[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"]]\": syntax error: Type mismatch: \"/=\" operator may not be applied to column u of type uuid.
 
50269
test-ovsdb: syntax \"[\"u\",\"insert\",[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"]]\": syntax error: Type mismatch: \"insert\" operator may not be applied to column u of type uuid.
 
50270
test-ovsdb: syntax \"[\"u\",\"delete\",[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"]]\": syntax error: Type mismatch: \"delete\" operator may not be applied to column u of type uuid.
 
50271
" | \
 
50272
  $at_diff - "$at_stderr" || at_failed=:
 
50273
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
50274
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-mutation.at:39"
 
50275
$at_failed && at_fn_log_failure
 
50276
$at_traceon; }
 
50277
 
 
50278
  set +x
 
50279
  $at_times_p && times >"$at_times_file"
 
50280
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50281
read at_status <"$at_status_file"
 
50282
#AT_STOP_722
 
50283
#AT_START_723
 
50284
at_fn_group_banner 723 'ovsdb-mutation.at:102' \
 
50285
  "mutations on sets" "                              " 53
 
50286
at_xfail=no
 
50287
(
 
50288
  $as_echo "723. $at_setup_line: testing $at_desc ..."
 
50289
  $at_traceon
 
50290
 
 
50291
 
 
50292
   { set +x
 
50293
$as_echo "$at_srcdir/ovsdb-mutation.at:102: test-ovsdb parse-mutations \\
 
50294
    '{\"columns\":
 
50295
        {\"i\": {\"type\": {\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}},
 
50296
         \"r\": {\"type\": {\"key\": \"real\", \"min\": 0, \"max\": \"unlimited\"}},
 
50297
         \"b\": {\"type\": {\"key\": \"boolean\", \"min\": 0, \"max\": \"unlimited\"}},
 
50298
         \"s\": {\"type\": {\"key\": \"string\", \"min\": 0, \"max\": \"unlimited\"}},
 
50299
         \"u\": {\"type\": {\"key\": \"uuid\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
50300
    '[[\"i\", \"+=\", 1]]' \\
 
50301
    '[[\"i\", \"-=\", 2]]' \\
 
50302
    '[[\"i\", \"*=\", 3]]' \\
 
50303
    '[[\"i\", \"/=\", 4]]' \\
 
50304
    '[[\"i\", \"%=\", 5]]' \\
 
50305
    '[[\"i\", \"insert\", [\"set\", [1, 2]]]]' \\
 
50306
    '[[\"i\", \"delete\", [\"set\", [1, 2, 3]]]]' \\
 
50307
    '[[\"r\", \"+=\", 1]]' \\
 
50308
    '[[\"r\", \"-=\", 2]]' \\
 
50309
    '[[\"r\", \"*=\", 3]]' \\
 
50310
    '[[\"r\", \"/=\", 4]]' \\
 
50311
    '[[\"r\", \"insert\", [\"set\", [1, 2]]]]' \\
 
50312
    '[[\"r\", \"delete\", [\"set\", [1, 2, 3]]]]' \\
 
50313
    '[[\"b\", \"insert\", [\"set\", [true]]]]' \\
 
50314
    '[[\"b\", \"delete\", [\"set\", [false]]]]' \\
 
50315
    '[[\"s\", \"insert\", [\"set\", [\"a\"]]]]' \\
 
50316
    '[[\"s\", \"delete\", [\"set\", [\"a\", \"b\"]]]]' \\
 
50317
    '[[\"u\", \"insert\",
 
50318
       [\"set\", [[\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]]]' \\
 
50319
    '[[\"u\", \"delete\",
 
50320
       [\"set\", [[\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"],
 
50321
                [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]]]]' \\
 
50322
"
 
50323
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:102"
 
50324
( $at_check_trace; test-ovsdb parse-mutations \
 
50325
    '{"columns":
 
50326
        {"i": {"type": {"key": "integer", "min": 0, "max": "unlimited"}},
 
50327
         "r": {"type": {"key": "real", "min": 0, "max": "unlimited"}},
 
50328
         "b": {"type": {"key": "boolean", "min": 0, "max": "unlimited"}},
 
50329
         "s": {"type": {"key": "string", "min": 0, "max": "unlimited"}},
 
50330
         "u": {"type": {"key": "uuid", "min": 0, "max": "unlimited"}}}}' \
 
50331
    '[["i", "+=", 1]]' \
 
50332
    '[["i", "-=", 2]]' \
 
50333
    '[["i", "*=", 3]]' \
 
50334
    '[["i", "/=", 4]]' \
 
50335
    '[["i", "%=", 5]]' \
 
50336
    '[["i", "insert", ["set", [1, 2]]]]' \
 
50337
    '[["i", "delete", ["set", [1, 2, 3]]]]' \
 
50338
    '[["r", "+=", 1]]' \
 
50339
    '[["r", "-=", 2]]' \
 
50340
    '[["r", "*=", 3]]' \
 
50341
    '[["r", "/=", 4]]' \
 
50342
    '[["r", "insert", ["set", [1, 2]]]]' \
 
50343
    '[["r", "delete", ["set", [1, 2, 3]]]]' \
 
50344
    '[["b", "insert", ["set", [true]]]]' \
 
50345
    '[["b", "delete", ["set", [false]]]]' \
 
50346
    '[["s", "insert", ["set", ["a"]]]]' \
 
50347
    '[["s", "delete", ["set", ["a", "b"]]]]' \
 
50348
    '[["u", "insert",
 
50349
       ["set", [["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]]]]]' \
 
50350
    '[["u", "delete",
 
50351
       ["set", [["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"],
 
50352
                ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]]]]' \
 
50353
 
 
50354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50355
at_status=$? at_failed=false
 
50356
$at_check_filter
 
50357
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50358
echo >>"$at_stdout"; $as_echo "[[\"i\",\"+=\",1]]
 
50359
[[\"i\",\"-=\",2]]
 
50360
[[\"i\",\"*=\",3]]
 
50361
[[\"i\",\"/=\",4]]
 
50362
[[\"i\",\"%=\",5]]
 
50363
[[\"i\",\"insert\",[\"set\",[1,2]]]]
 
50364
[[\"i\",\"delete\",[\"set\",[1,2,3]]]]
 
50365
[[\"r\",\"+=\",1]]
 
50366
[[\"r\",\"-=\",2]]
 
50367
[[\"r\",\"*=\",3]]
 
50368
[[\"r\",\"/=\",4]]
 
50369
[[\"r\",\"insert\",[\"set\",[1,2]]]]
 
50370
[[\"r\",\"delete\",[\"set\",[1,2,3]]]]
 
50371
[[\"b\",\"insert\",true]]
 
50372
[[\"b\",\"delete\",false]]
 
50373
[[\"s\",\"insert\",\"a\"]]
 
50374
[[\"s\",\"delete\",[\"set\",[\"a\",\"b\"]]]]
 
50375
[[\"u\",\"insert\",[\"uuid\",\"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]
 
50376
[[\"u\",\"delete\",[\"set\",[[\"uuid\",\"9179ca6d-6d65-400a-b455-3ad92783a099\"],[\"uuid\",\"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]]]]
 
50377
" | \
 
50378
  $at_diff - "$at_stdout" || at_failed=:
 
50379
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:102"
 
50380
$at_failed && at_fn_log_failure
 
50381
$at_traceon; }
 
50382
 
 
50383
     set +x
 
50384
  $at_times_p && times >"$at_times_file"
 
50385
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50386
read at_status <"$at_status_file"
 
50387
#AT_STOP_723
 
50388
#AT_START_724
 
50389
at_fn_group_banner 724 'ovsdb-mutation.at:154' \
 
50390
  "executing null mutation" "                        " 53
 
50391
at_xfail=no
 
50392
(
 
50393
  $as_echo "724. $at_setup_line: testing $at_desc ..."
 
50394
  $at_traceon
 
50395
 
 
50396
 
 
50397
   { set +x
 
50398
$as_echo "$at_srcdir/ovsdb-mutation.at:154: test-ovsdb execute-mutations \\
 
50399
    '{\"columns\": {\"i\": {\"type\": \"integer\"}}}' \\
 
50400
    '[[]]' \\
 
50401
    '[{\"i\": 0},
 
50402
      {\"i\": 1},
 
50403
      {\"i\": 2}']"
 
50404
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:154"
 
50405
( $at_check_trace; test-ovsdb execute-mutations \
 
50406
    '{"columns": {"i": {"type": "integer"}}}' \
 
50407
    '[[]]' \
 
50408
    '[{"i": 0},
 
50409
      {"i": 1},
 
50410
      {"i": 2}']
 
50411
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50412
at_status=$? at_failed=false
 
50413
$at_check_filter
 
50414
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50415
echo >>"$at_stdout"; $as_echo "mutation  0:
 
50416
row 0: no change
 
50417
row 1: no change
 
50418
row 2: no change
 
50419
 
 
50420
" | \
 
50421
  $at_diff - "$at_stdout" || at_failed=:
 
50422
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:154"
 
50423
$at_failed && at_fn_log_failure
 
50424
$at_traceon; }
 
50425
 
 
50426
     set +x
 
50427
  $at_times_p && times >"$at_times_file"
 
50428
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50429
read at_status <"$at_status_file"
 
50430
#AT_STOP_724
 
50431
#AT_START_725
 
50432
at_fn_group_banner 725 'ovsdb-mutation.at:167' \
 
50433
  "executing mutations on integers" "                " 53
 
50434
at_xfail=no
 
50435
(
 
50436
  $as_echo "725. $at_setup_line: testing $at_desc ..."
 
50437
  $at_traceon
 
50438
 
 
50439
 
 
50440
   { set +x
 
50441
$as_echo "$at_srcdir/ovsdb-mutation.at:167: test-ovsdb execute-mutations \\
 
50442
    '{\"columns\": {\"i\": {\"type\": \"integer\"}}}' \\
 
50443
    '[[[\"i\", \"+=\", 1]],
 
50444
      [[\"i\", \"-=\", 2]],
 
50445
      [[\"i\", \"*=\", 3]],
 
50446
      [[\"i\", \"/=\", 4]],
 
50447
      [[\"i\", \"%=\", 2]]]' \\
 
50448
    '[{\"i\": 0},
 
50449
      {\"i\": 1},
 
50450
      {\"i\": 2}']"
 
50451
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:167"
 
50452
( $at_check_trace; test-ovsdb execute-mutations \
 
50453
    '{"columns": {"i": {"type": "integer"}}}' \
 
50454
    '[[["i", "+=", 1]],
 
50455
      [["i", "-=", 2]],
 
50456
      [["i", "*=", 3]],
 
50457
      [["i", "/=", 4]],
 
50458
      [["i", "%=", 2]]]' \
 
50459
    '[{"i": 0},
 
50460
      {"i": 1},
 
50461
      {"i": 2}']
 
50462
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50463
at_status=$? at_failed=false
 
50464
$at_check_filter
 
50465
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50466
echo >>"$at_stdout"; $as_echo "mutation  0:
 
50467
row 0: {\"i\":1}
 
50468
row 1: {\"i\":2}
 
50469
row 2: {\"i\":3}
 
50470
 
 
50471
mutation  1:
 
50472
row 0: {\"i\":-2}
 
50473
row 1: {\"i\":-1}
 
50474
row 2: {\"i\":0}
 
50475
 
 
50476
mutation  2:
 
50477
row 0: no change
 
50478
row 1: {\"i\":3}
 
50479
row 2: {\"i\":6}
 
50480
 
 
50481
mutation  3:
 
50482
row 0: no change
 
50483
row 1: {\"i\":0}
 
50484
row 2: {\"i\":0}
 
50485
 
 
50486
mutation  4:
 
50487
row 0: no change
 
50488
row 1: no change
 
50489
row 2: {\"i\":0}
 
50490
 
 
50491
" | \
 
50492
  $at_diff - "$at_stdout" || at_failed=:
 
50493
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:167"
 
50494
$at_failed && at_fn_log_failure
 
50495
$at_traceon; }
 
50496
 
 
50497
     set +x
 
50498
  $at_times_p && times >"$at_times_file"
 
50499
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50500
read at_status <"$at_status_file"
 
50501
#AT_STOP_725
 
50502
#AT_START_726
 
50503
at_fn_group_banner 726 'ovsdb-mutation.at:204' \
 
50504
  "integer overflow detection" "                     " 53
 
50505
at_xfail=no
 
50506
(
 
50507
  $as_echo "726. $at_setup_line: testing $at_desc ..."
 
50508
  $at_traceon
 
50509
 
 
50510
 
 
50511
   { set +x
 
50512
$as_echo "$at_srcdir/ovsdb-mutation.at:204: test-ovsdb execute-mutations \\
 
50513
    '{\"columns\": {\"i\": {\"type\": \"integer\"}}}' \\
 
50514
    '[[[\"i\", \"+=\", 9223372036854775807]],
 
50515
      [[\"i\", \"+=\", -9223372036854775808]],
 
50516
      [[\"i\", \"-=\", -9223372036854775808]],
 
50517
      [[\"i\", \"-=\", 9223372036854775807]],
 
50518
      [[\"i\", \"*=\", 3037000500]],
 
50519
      [[\"i\", \"/=\", -1]],
 
50520
      [[\"i\", \"/=\", 0]]]' \\
 
50521
    '[{\"i\": 0},
 
50522
      {\"i\": 1},
 
50523
      {\"i\": -1},
 
50524
      {\"i\": 9223372036854775807},
 
50525
      {\"i\": -9223372036854775808},
 
50526
      {\"i\": 3037000500},
 
50527
      {\"i\": -3037000500}']"
 
50528
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:204"
 
50529
( $at_check_trace; test-ovsdb execute-mutations \
 
50530
    '{"columns": {"i": {"type": "integer"}}}' \
 
50531
    '[[["i", "+=", 9223372036854775807]],
 
50532
      [["i", "+=", -9223372036854775808]],
 
50533
      [["i", "-=", -9223372036854775808]],
 
50534
      [["i", "-=", 9223372036854775807]],
 
50535
      [["i", "*=", 3037000500]],
 
50536
      [["i", "/=", -1]],
 
50537
      [["i", "/=", 0]]]' \
 
50538
    '[{"i": 0},
 
50539
      {"i": 1},
 
50540
      {"i": -1},
 
50541
      {"i": 9223372036854775807},
 
50542
      {"i": -9223372036854775808},
 
50543
      {"i": 3037000500},
 
50544
      {"i": -3037000500}']
 
50545
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50546
at_status=$? at_failed=false
 
50547
$at_check_filter
 
50548
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50549
echo >>"$at_stdout"; $as_echo "mutation  0:
 
50550
row 0: {\"i\":9223372036854775807}
 
50551
row 1: range error: Result of \"+=\" operation is out of range.
 
50552
row 2: {\"i\":9223372036854775806}
 
50553
row 3: range error: Result of \"+=\" operation is out of range.
 
50554
row 4: {\"i\":-1}
 
50555
row 5: range error: Result of \"+=\" operation is out of range.
 
50556
row 6: {\"i\":9223372033817775307}
 
50557
 
 
50558
mutation  1:
 
50559
row 0: {\"i\":-9223372036854775808}
 
50560
row 1: {\"i\":-9223372036854775807}
 
50561
row 2: range error: Result of \"+=\" operation is out of range.
 
50562
row 3: {\"i\":-1}
 
50563
row 4: range error: Result of \"+=\" operation is out of range.
 
50564
row 5: {\"i\":-9223372033817775308}
 
50565
row 6: range error: Result of \"+=\" operation is out of range.
 
50566
 
 
50567
mutation  2:
 
50568
row 0: range error: Result of \"-=\" operation is out of range.
 
50569
row 1: range error: Result of \"-=\" operation is out of range.
 
50570
row 2: {\"i\":9223372036854775807}
 
50571
row 3: range error: Result of \"-=\" operation is out of range.
 
50572
row 4: {\"i\":0}
 
50573
row 5: range error: Result of \"-=\" operation is out of range.
 
50574
row 6: {\"i\":9223372033817775308}
 
50575
 
 
50576
mutation  3:
 
50577
row 0: {\"i\":-9223372036854775807}
 
50578
row 1: {\"i\":-9223372036854775806}
 
50579
row 2: {\"i\":-9223372036854775808}
 
50580
row 3: {\"i\":0}
 
50581
row 4: range error: Result of \"-=\" operation is out of range.
 
50582
row 5: {\"i\":-9223372033817775307}
 
50583
row 6: range error: Result of \"-=\" operation is out of range.
 
50584
 
 
50585
mutation  4:
 
50586
row 0: no change
 
50587
row 1: {\"i\":3037000500}
 
50588
row 2: {\"i\":-3037000500}
 
50589
row 3: range error: Result of \"*=\" operation is out of range.
 
50590
row 4: range error: Result of \"*=\" operation is out of range.
 
50591
row 5: range error: Result of \"*=\" operation is out of range.
 
50592
row 6: range error: Result of \"*=\" operation is out of range.
 
50593
 
 
50594
mutation  5:
 
50595
row 0: no change
 
50596
row 1: {\"i\":-1}
 
50597
row 2: {\"i\":1}
 
50598
row 3: {\"i\":-9223372036854775807}
 
50599
row 4: range error: Result of \"/=\" operation is out of range.
 
50600
row 5: {\"i\":-3037000500}
 
50601
row 6: {\"i\":3037000500}
 
50602
 
 
50603
mutation  6:
 
50604
row 0: domain error: Division by zero.
 
50605
row 1: domain error: Division by zero.
 
50606
row 2: domain error: Division by zero.
 
50607
row 3: domain error: Division by zero.
 
50608
row 4: domain error: Division by zero.
 
50609
row 5: domain error: Division by zero.
 
50610
row 6: domain error: Division by zero.
 
50611
 
 
50612
" | \
 
50613
  $at_diff - "$at_stdout" || at_failed=:
 
50614
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:204"
 
50615
$at_failed && at_fn_log_failure
 
50616
$at_traceon; }
 
50617
 
 
50618
     set +x
 
50619
  $at_times_p && times >"$at_times_file"
 
50620
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50621
read at_status <"$at_status_file"
 
50622
#AT_STOP_726
 
50623
#AT_START_727
 
50624
at_fn_group_banner 727 'ovsdb-mutation.at:285' \
 
50625
  "executing mutations on integers with constraints" "" 53
 
50626
at_xfail=no
 
50627
(
 
50628
  $as_echo "727. $at_setup_line: testing $at_desc ..."
 
50629
  $at_traceon
 
50630
 
 
50631
 
 
50632
   { set +x
 
50633
$as_echo "$at_srcdir/ovsdb-mutation.at:285: test-ovsdb execute-mutations \\
 
50634
    '{\"columns\": {\"i\": {\"type\": {\"key\": {\"type\": \"integer\",
 
50635
                                         \"minInteger\": 0,
 
50636
                                         \"maxInteger\": 2}}}}}' \\
 
50637
    '[[[\"i\", \"+=\", 1]],
 
50638
      [[\"i\", \"-=\", 2]],
 
50639
      [[\"i\", \"*=\", 3]],
 
50640
      [[\"i\", \"/=\", 4]],
 
50641
      [[\"i\", \"%=\", 2]]]' \\
 
50642
    '[{\"i\": 0},
 
50643
      {\"i\": 1},
 
50644
      {\"i\": 2}']"
 
50645
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:285"
 
50646
( $at_check_trace; test-ovsdb execute-mutations \
 
50647
    '{"columns": {"i": {"type": {"key": {"type": "integer",
 
50648
                                         "minInteger": 0,
 
50649
                                         "maxInteger": 2}}}}}' \
 
50650
    '[[["i", "+=", 1]],
 
50651
      [["i", "-=", 2]],
 
50652
      [["i", "*=", 3]],
 
50653
      [["i", "/=", 4]],
 
50654
      [["i", "%=", 2]]]' \
 
50655
    '[{"i": 0},
 
50656
      {"i": 1},
 
50657
      {"i": 2}']
 
50658
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50659
at_status=$? at_failed=false
 
50660
$at_check_filter
 
50661
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50662
echo >>"$at_stdout"; $as_echo "mutation  0:
 
50663
row 0: {\"i\":1}
 
50664
row 1: {\"i\":2}
 
50665
row 2: constraint violation: 3 is not in the valid range 0 to 2 (inclusive)
 
50666
 
 
50667
mutation  1:
 
50668
row 0: constraint violation: -2 is not in the valid range 0 to 2 (inclusive)
 
50669
row 1: constraint violation: -1 is not in the valid range 0 to 2 (inclusive)
 
50670
row 2: {\"i\":0}
 
50671
 
 
50672
mutation  2:
 
50673
row 0: no change
 
50674
row 1: constraint violation: 3 is not in the valid range 0 to 2 (inclusive)
 
50675
row 2: constraint violation: 6 is not in the valid range 0 to 2 (inclusive)
 
50676
 
 
50677
mutation  3:
 
50678
row 0: no change
 
50679
row 1: {\"i\":0}
 
50680
row 2: {\"i\":0}
 
50681
 
 
50682
mutation  4:
 
50683
row 0: no change
 
50684
row 1: no change
 
50685
row 2: {\"i\":0}
 
50686
 
 
50687
" | \
 
50688
  $at_diff - "$at_stdout" || at_failed=:
 
50689
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:285"
 
50690
$at_failed && at_fn_log_failure
 
50691
$at_traceon; }
 
50692
 
 
50693
     set +x
 
50694
  $at_times_p && times >"$at_times_file"
 
50695
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50696
read at_status <"$at_status_file"
 
50697
#AT_STOP_727
 
50698
#AT_START_728
 
50699
at_fn_group_banner 728 'ovsdb-mutation.at:324' \
 
50700
  "executing mutations on reals" "                   " 53
 
50701
at_xfail=no
 
50702
(
 
50703
  $as_echo "728. $at_setup_line: testing $at_desc ..."
 
50704
  $at_traceon
 
50705
 
 
50706
 
 
50707
   { set +x
 
50708
$as_echo "$at_srcdir/ovsdb-mutation.at:324: test-ovsdb execute-mutations \\
 
50709
    '{\"columns\": {\"r\": {\"type\": \"real\"}}}' \\
 
50710
    '[[[\"r\", \"+=\", 0.5]],
 
50711
      [[\"r\", \"-=\", 1.5]],
 
50712
      [[\"r\", \"*=\", 2.5]],
 
50713
      [[\"r\", \"/=\", 4]]]' \\
 
50714
    '[{\"r\": 0},
 
50715
      {\"r\": -2.5},
 
50716
      {\"r\": 1.25}']"
 
50717
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:324"
 
50718
( $at_check_trace; test-ovsdb execute-mutations \
 
50719
    '{"columns": {"r": {"type": "real"}}}' \
 
50720
    '[[["r", "+=", 0.5]],
 
50721
      [["r", "-=", 1.5]],
 
50722
      [["r", "*=", 2.5]],
 
50723
      [["r", "/=", 4]]]' \
 
50724
    '[{"r": 0},
 
50725
      {"r": -2.5},
 
50726
      {"r": 1.25}']
 
50727
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50728
at_status=$? at_failed=false
 
50729
$at_check_filter
 
50730
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50731
echo >>"$at_stdout"; $as_echo "mutation  0:
 
50732
row 0: {\"r\":0.5}
 
50733
row 1: {\"r\":-2}
 
50734
row 2: {\"r\":1.75}
 
50735
 
 
50736
mutation  1:
 
50737
row 0: {\"r\":-1.5}
 
50738
row 1: {\"r\":-4}
 
50739
row 2: {\"r\":-0.25}
 
50740
 
 
50741
mutation  2:
 
50742
row 0: no change
 
50743
row 1: {\"r\":-6.25}
 
50744
row 2: {\"r\":3.125}
 
50745
 
 
50746
mutation  3:
 
50747
row 0: no change
 
50748
row 1: {\"r\":-0.625}
 
50749
row 2: {\"r\":0.3125}
 
50750
 
 
50751
" | \
 
50752
  $at_diff - "$at_stdout" || at_failed=:
 
50753
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:324"
 
50754
$at_failed && at_fn_log_failure
 
50755
$at_traceon; }
 
50756
 
 
50757
     set +x
 
50758
  $at_times_p && times >"$at_times_file"
 
50759
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50760
read at_status <"$at_status_file"
 
50761
#AT_STOP_728
 
50762
#AT_START_729
 
50763
at_fn_group_banner 729 'ovsdb-mutation.at:355' \
 
50764
  "real overflow detection" "                        " 53
 
50765
at_xfail=no
 
50766
(
 
50767
  $as_echo "729. $at_setup_line: testing $at_desc ..."
 
50768
  $at_traceon
 
50769
 
 
50770
 
 
50771
   { set +x
 
50772
$as_echo "$at_srcdir/ovsdb-mutation.at:355: test-ovsdb execute-mutations \\
 
50773
    '{\"columns\": {\"r\": {\"type\": \"real\"}}}' \\
 
50774
    '[[[\"r\", \"+=\", 1.7976931348623157e+308]],
 
50775
      [[\"r\", \"-=\", 1.7976931348623157e+308]],
 
50776
      [[\"r\", \"*=\", 2]],
 
50777
      [[\"r\", \"/=\", 4]],
 
50778
      [[\"r\", \"/=\", 0.5]],
 
50779
      [[\"r\", \"/=\", 0]]]' \\
 
50780
    '[{\"r\": 0},
 
50781
      {\"r\": 1.7976931348623157e+308},
 
50782
      {\"r\": -1.7976931348623157e+308}']"
 
50783
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:355"
 
50784
( $at_check_trace; test-ovsdb execute-mutations \
 
50785
    '{"columns": {"r": {"type": "real"}}}' \
 
50786
    '[[["r", "+=", 1.7976931348623157e+308]],
 
50787
      [["r", "-=", 1.7976931348623157e+308]],
 
50788
      [["r", "*=", 2]],
 
50789
      [["r", "/=", 4]],
 
50790
      [["r", "/=", 0.5]],
 
50791
      [["r", "/=", 0]]]' \
 
50792
    '[{"r": 0},
 
50793
      {"r": 1.7976931348623157e+308},
 
50794
      {"r": -1.7976931348623157e+308}']
 
50795
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50796
at_status=$? at_failed=false
 
50797
$at_check_filter
 
50798
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50799
echo >>"$at_stdout"; $as_echo "mutation  0:
 
50800
row 0: {\"r\":1.79769313486232e+308}
 
50801
row 1: range error: Result of \"+=\" operation is out of range.
 
50802
row 2: {\"r\":0}
 
50803
 
 
50804
mutation  1:
 
50805
row 0: {\"r\":-1.79769313486232e+308}
 
50806
row 1: {\"r\":0}
 
50807
row 2: range error: Result of \"-=\" operation is out of range.
 
50808
 
 
50809
mutation  2:
 
50810
row 0: no change
 
50811
row 1: range error: Result of \"*=\" operation is out of range.
 
50812
row 2: range error: Result of \"*=\" operation is out of range.
 
50813
 
 
50814
mutation  3:
 
50815
row 0: no change
 
50816
row 1: {\"r\":4.49423283715579e+307}
 
50817
row 2: {\"r\":-4.49423283715579e+307}
 
50818
 
 
50819
mutation  4:
 
50820
row 0: no change
 
50821
row 1: range error: Result of \"/=\" operation is out of range.
 
50822
row 2: range error: Result of \"/=\" operation is out of range.
 
50823
 
 
50824
mutation  5:
 
50825
row 0: domain error: Division by zero.
 
50826
row 1: domain error: Division by zero.
 
50827
row 2: domain error: Division by zero.
 
50828
 
 
50829
" | \
 
50830
  $at_diff - "$at_stdout" || at_failed=:
 
50831
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:355"
 
50832
$at_failed && at_fn_log_failure
 
50833
$at_traceon; }
 
50834
 
 
50835
     set +x
 
50836
  $at_times_p && times >"$at_times_file"
 
50837
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50838
read at_status <"$at_status_file"
 
50839
#AT_STOP_729
 
50840
#AT_START_730
 
50841
at_fn_group_banner 730 'ovsdb-mutation.at:398' \
 
50842
  "executing mutations on reals with constraints" "  " 53
 
50843
at_xfail=no
 
50844
(
 
50845
  $as_echo "730. $at_setup_line: testing $at_desc ..."
 
50846
  $at_traceon
 
50847
 
 
50848
 
 
50849
   { set +x
 
50850
$as_echo "$at_srcdir/ovsdb-mutation.at:398: test-ovsdb execute-mutations \\
 
50851
    '{\"columns\": {\"r\": {\"type\": {\"key\": {\"type\": \"real\",
 
50852
                                         \"minReal\": -2.5,
 
50853
                                         \"maxReal\": 1.75}}}}}' \\
 
50854
    '[[[\"r\", \"+=\", 0.5]],
 
50855
      [[\"r\", \"-=\", 1.5]],
 
50856
      [[\"r\", \"*=\", 2.5]],
 
50857
      [[\"r\", \"/=\", 4]]]' \\
 
50858
    '[{\"r\": 0},
 
50859
      {\"r\": -2.5},
 
50860
      {\"r\": 1.25}']"
 
50861
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:398"
 
50862
( $at_check_trace; test-ovsdb execute-mutations \
 
50863
    '{"columns": {"r": {"type": {"key": {"type": "real",
 
50864
                                         "minReal": -2.5,
 
50865
                                         "maxReal": 1.75}}}}}' \
 
50866
    '[[["r", "+=", 0.5]],
 
50867
      [["r", "-=", 1.5]],
 
50868
      [["r", "*=", 2.5]],
 
50869
      [["r", "/=", 4]]]' \
 
50870
    '[{"r": 0},
 
50871
      {"r": -2.5},
 
50872
      {"r": 1.25}']
 
50873
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50874
at_status=$? at_failed=false
 
50875
$at_check_filter
 
50876
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50877
echo >>"$at_stdout"; $as_echo "mutation  0:
 
50878
row 0: {\"r\":0.5}
 
50879
row 1: {\"r\":-2}
 
50880
row 2: {\"r\":1.75}
 
50881
 
 
50882
mutation  1:
 
50883
row 0: {\"r\":-1.5}
 
50884
row 1: constraint violation: -4 is not in the valid range -2.5 to 1.75 (inclusive)
 
50885
row 2: {\"r\":-0.25}
 
50886
 
 
50887
mutation  2:
 
50888
row 0: no change
 
50889
row 1: constraint violation: -6.25 is not in the valid range -2.5 to 1.75 (inclusive)
 
50890
row 2: constraint violation: 3.125 is not in the valid range -2.5 to 1.75 (inclusive)
 
50891
 
 
50892
mutation  3:
 
50893
row 0: no change
 
50894
row 1: {\"r\":-0.625}
 
50895
row 2: {\"r\":0.3125}
 
50896
 
 
50897
" | \
 
50898
  $at_diff - "$at_stdout" || at_failed=:
 
50899
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:398"
 
50900
$at_failed && at_fn_log_failure
 
50901
$at_traceon; }
 
50902
 
 
50903
     set +x
 
50904
  $at_times_p && times >"$at_times_file"
 
50905
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
50906
read at_status <"$at_status_file"
 
50907
#AT_STOP_730
 
50908
#AT_START_731
 
50909
at_fn_group_banner 731 'ovsdb-mutation.at:431' \
 
50910
  "executing mutations on integer sets" "            " 53
 
50911
at_xfail=no
 
50912
(
 
50913
  $as_echo "731. $at_setup_line: testing $at_desc ..."
 
50914
  $at_traceon
 
50915
 
 
50916
 
 
50917
   { set +x
 
50918
$as_echo "$at_srcdir/ovsdb-mutation.at:431: test-ovsdb execute-mutations \\
 
50919
    '{\"columns\": {\"i\": {\"type\": {\"key\": {\"type\": \"integer\",
 
50920
                                         \"maxInteger\": 5},
 
50921
                                 \"min\": 0,
 
50922
                                 \"max\": \"unlimited\"}}}}' \\
 
50923
    '[[[\"i\", \"+=\", 1]],
 
50924
      [[\"i\", \"-=\", 2]],
 
50925
      [[\"i\", \"*=\", 3]],
 
50926
      [[\"i\", \"/=\", 4]],
 
50927
      [[\"i\", \"%=\", 2]],
 
50928
      [[\"i\", \"insert\", [\"set\", [1]]]],
 
50929
      [[\"i\", \"insert\", [\"set\", [2, 3]]]],
 
50930
      [[\"i\", \"delete\", [\"set\", [1]]]],
 
50931
      [[\"i\", \"delete\", [\"set\", [2, 3]]]]]' \\
 
50932
    '[{\"i\": [\"set\", []]},
 
50933
      {\"i\": [\"set\", [0]]},
 
50934
      {\"i\": [\"set\", [0, 1]]},
 
50935
      {\"i\": [\"set\", [0, 1, 2]]}']"
 
50936
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:431"
 
50937
( $at_check_trace; test-ovsdb execute-mutations \
 
50938
    '{"columns": {"i": {"type": {"key": {"type": "integer",
 
50939
                                         "maxInteger": 5},
 
50940
                                 "min": 0,
 
50941
                                 "max": "unlimited"}}}}' \
 
50942
    '[[["i", "+=", 1]],
 
50943
      [["i", "-=", 2]],
 
50944
      [["i", "*=", 3]],
 
50945
      [["i", "/=", 4]],
 
50946
      [["i", "%=", 2]],
 
50947
      [["i", "insert", ["set", [1]]]],
 
50948
      [["i", "insert", ["set", [2, 3]]]],
 
50949
      [["i", "delete", ["set", [1]]]],
 
50950
      [["i", "delete", ["set", [2, 3]]]]]' \
 
50951
    '[{"i": ["set", []]},
 
50952
      {"i": ["set", [0]]},
 
50953
      {"i": ["set", [0, 1]]},
 
50954
      {"i": ["set", [0, 1, 2]]}']
 
50955
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
50956
at_status=$? at_failed=false
 
50957
$at_check_filter
 
50958
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
50959
echo >>"$at_stdout"; $as_echo "mutation  0:
 
50960
row 0: no change
 
50961
row 1: {\"i\":1}
 
50962
row 2: {\"i\":[\"set\",[1,2]]}
 
50963
row 3: {\"i\":[\"set\",[1,2,3]]}
 
50964
 
 
50965
mutation  1:
 
50966
row 0: no change
 
50967
row 1: {\"i\":-2}
 
50968
row 2: {\"i\":[\"set\",[-2,-1]]}
 
50969
row 3: {\"i\":[\"set\",[-2,-1,0]]}
 
50970
 
 
50971
mutation  2:
 
50972
row 0: no change
 
50973
row 1: no change
 
50974
row 2: {\"i\":[\"set\",[0,3]]}
 
50975
row 3: constraint violation: 6 is greater than maximum allowed value 5
 
50976
 
 
50977
mutation  3:
 
50978
row 0: no change
 
50979
row 1: no change
 
50980
row 2: constraint violation: Result of \"/=\" operation contains duplicates.
 
50981
row 3: constraint violation: Result of \"/=\" operation contains duplicates.
 
50982
 
 
50983
mutation  4:
 
50984
row 0: no change
 
50985
row 1: no change
 
50986
row 2: no change
 
50987
row 3: constraint violation: Result of \"%=\" operation contains duplicates.
 
50988
 
 
50989
mutation  5:
 
50990
row 0: {\"i\":1}
 
50991
row 1: {\"i\":[\"set\",[0,1]]}
 
50992
row 2: no change
 
50993
row 3: no change
 
50994
 
 
50995
mutation  6:
 
50996
row 0: {\"i\":[\"set\",[2,3]]}
 
50997
row 1: {\"i\":[\"set\",[0,2,3]]}
 
50998
row 2: {\"i\":[\"set\",[0,1,2,3]]}
 
50999
row 3: {\"i\":[\"set\",[0,1,2,3]]}
 
51000
 
 
51001
mutation  7:
 
51002
row 0: no change
 
51003
row 1: no change
 
51004
row 2: {\"i\":0}
 
51005
row 3: {\"i\":[\"set\",[0,2]]}
 
51006
 
 
51007
mutation  8:
 
51008
row 0: no change
 
51009
row 1: no change
 
51010
row 2: no change
 
51011
row 3: {\"i\":[\"set\",[0,1]]}
 
51012
 
 
51013
" | \
 
51014
  $at_diff - "$at_stdout" || at_failed=:
 
51015
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:431"
 
51016
$at_failed && at_fn_log_failure
 
51017
$at_traceon; }
 
51018
 
 
51019
     set +x
 
51020
  $at_times_p && times >"$at_times_file"
 
51021
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51022
read at_status <"$at_status_file"
 
51023
#AT_STOP_731
 
51024
#AT_START_732
 
51025
at_fn_group_banner 732 'ovsdb-mutation.at:505' \
 
51026
  "executing mutations on integer sets with constraints" "" 53
 
51027
at_xfail=no
 
51028
(
 
51029
  $as_echo "732. $at_setup_line: testing $at_desc ..."
 
51030
  $at_traceon
 
51031
 
 
51032
 
 
51033
   { set +x
 
51034
$as_echo "$at_srcdir/ovsdb-mutation.at:505: test-ovsdb execute-mutations \\
 
51035
    '{\"columns\": {\"i\": {\"type\": {\"key\": \"integer\",
 
51036
                                 \"min\": 1,
 
51037
                                 \"max\": 2}}}}' \\
 
51038
    '[[[\"i\", \"insert\", [\"set\", [1]]]],
 
51039
      [[\"i\", \"insert\", [\"set\", [2]]]],
 
51040
      [[\"i\", \"delete\", [\"set\", [1]]]],
 
51041
      [[\"i\", \"delete\", [\"set\", [2]]]],
 
51042
      [[\"i\", \"delete\", [\"set\", [0, 1]]]]]' \\
 
51043
    '[{\"i\": [\"set\", [0]]},
 
51044
      {\"i\": [\"set\", [2]]},
 
51045
      {\"i\": [\"set\", [0, 1]]}']"
 
51046
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:505"
 
51047
( $at_check_trace; test-ovsdb execute-mutations \
 
51048
    '{"columns": {"i": {"type": {"key": "integer",
 
51049
                                 "min": 1,
 
51050
                                 "max": 2}}}}' \
 
51051
    '[[["i", "insert", ["set", [1]]]],
 
51052
      [["i", "insert", ["set", [2]]]],
 
51053
      [["i", "delete", ["set", [1]]]],
 
51054
      [["i", "delete", ["set", [2]]]],
 
51055
      [["i", "delete", ["set", [0, 1]]]]]' \
 
51056
    '[{"i": ["set", [0]]},
 
51057
      {"i": ["set", [2]]},
 
51058
      {"i": ["set", [0, 1]]}']
 
51059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51060
at_status=$? at_failed=false
 
51061
$at_check_filter
 
51062
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51063
echo >>"$at_stdout"; $as_echo "mutation  0:
 
51064
row 0: {\"i\":[\"set\",[0,1]]}
 
51065
row 1: {\"i\":[\"set\",[1,2]]}
 
51066
row 2: no change
 
51067
 
 
51068
mutation  1:
 
51069
row 0: {\"i\":[\"set\",[0,2]]}
 
51070
row 1: no change
 
51071
row 2: constraint violation: Attempted to store 3 elements in set of 1 to 2 integers.
 
51072
 
 
51073
mutation  2:
 
51074
row 0: no change
 
51075
row 1: no change
 
51076
row 2: {\"i\":0}
 
51077
 
 
51078
mutation  3:
 
51079
row 0: no change
 
51080
row 1: constraint violation: Attempted to store 0 elements in set of 1 to 2 integers.
 
51081
row 2: no change
 
51082
 
 
51083
mutation  4:
 
51084
row 0: constraint violation: Attempted to store 0 elements in set of 1 to 2 integers.
 
51085
row 1: no change
 
51086
row 2: constraint violation: Attempted to store 0 elements in set of 1 to 2 integers.
 
51087
 
 
51088
" | \
 
51089
  $at_diff - "$at_stdout" || at_failed=:
 
51090
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:505"
 
51091
$at_failed && at_fn_log_failure
 
51092
$at_traceon; }
 
51093
 
 
51094
     set +x
 
51095
  $at_times_p && times >"$at_times_file"
 
51096
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51097
read at_status <"$at_status_file"
 
51098
#AT_STOP_732
 
51099
#AT_START_733
 
51100
at_fn_group_banner 733 'ovsdb-mutation.at:544' \
 
51101
  "executing mutations on real sets" "               " 53
 
51102
at_xfail=no
 
51103
(
 
51104
  $as_echo "733. $at_setup_line: testing $at_desc ..."
 
51105
  $at_traceon
 
51106
 
 
51107
 
 
51108
   { set +x
 
51109
$as_echo "$at_srcdir/ovsdb-mutation.at:544: test-ovsdb execute-mutations \\
 
51110
    '{\"columns\": {\"r\": {\"type\": {\"key\": {\"type\": \"real\",
 
51111
                                         \"maxReal\": 6},
 
51112
                                 \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
51113
    '[[[\"r\", \"+=\", 0.5]],
 
51114
      [[\"r\", \"-=\", 1.5]],
 
51115
      [[\"r\", \"*=\", 2.5]],
 
51116
      [[\"r\", \"/=\", 4]],
 
51117
      [[\"r\", \"*=\", 0]],
 
51118
      [[\"r\", \"insert\", 1.5]],
 
51119
      [[\"r\", \"insert\", 3]],
 
51120
      [[\"r\", \"delete\", [\"set\", [1.5, 3.5]]]],
 
51121
      [[\"r\", \"delete\", [\"set\", [0.5, 1.5, 2.5]]]]]' \\
 
51122
    '[{\"r\": [\"set\", []]},
 
51123
      {\"r\": 0.5},
 
51124
      {\"r\": [\"set\", [0.5, 1.5]]},
 
51125
      {\"r\": [\"set\", [0.5, 1.5, 2.5]]}']"
 
51126
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:544"
 
51127
( $at_check_trace; test-ovsdb execute-mutations \
 
51128
    '{"columns": {"r": {"type": {"key": {"type": "real",
 
51129
                                         "maxReal": 6},
 
51130
                                 "min": 0, "max": "unlimited"}}}}' \
 
51131
    '[[["r", "+=", 0.5]],
 
51132
      [["r", "-=", 1.5]],
 
51133
      [["r", "*=", 2.5]],
 
51134
      [["r", "/=", 4]],
 
51135
      [["r", "*=", 0]],
 
51136
      [["r", "insert", 1.5]],
 
51137
      [["r", "insert", 3]],
 
51138
      [["r", "delete", ["set", [1.5, 3.5]]]],
 
51139
      [["r", "delete", ["set", [0.5, 1.5, 2.5]]]]]' \
 
51140
    '[{"r": ["set", []]},
 
51141
      {"r": 0.5},
 
51142
      {"r": ["set", [0.5, 1.5]]},
 
51143
      {"r": ["set", [0.5, 1.5, 2.5]]}']
 
51144
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51145
at_status=$? at_failed=false
 
51146
$at_check_filter
 
51147
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51148
echo >>"$at_stdout"; $as_echo "mutation  0:
 
51149
row 0: no change
 
51150
row 1: {\"r\":1}
 
51151
row 2: {\"r\":[\"set\",[1,2]]}
 
51152
row 3: {\"r\":[\"set\",[1,2,3]]}
 
51153
 
 
51154
mutation  1:
 
51155
row 0: no change
 
51156
row 1: {\"r\":-1}
 
51157
row 2: {\"r\":[\"set\",[-1,0]]}
 
51158
row 3: {\"r\":[\"set\",[-1,0,1]]}
 
51159
 
 
51160
mutation  2:
 
51161
row 0: no change
 
51162
row 1: {\"r\":1.25}
 
51163
row 2: {\"r\":[\"set\",[1.25,3.75]]}
 
51164
row 3: constraint violation: 6.25 is greater than maximum allowed value 6
 
51165
 
 
51166
mutation  3:
 
51167
row 0: no change
 
51168
row 1: {\"r\":0.125}
 
51169
row 2: {\"r\":[\"set\",[0.125,0.375]]}
 
51170
row 3: {\"r\":[\"set\",[0.125,0.375,0.625]]}
 
51171
 
 
51172
mutation  4:
 
51173
row 0: no change
 
51174
row 1: {\"r\":0}
 
51175
row 2: constraint violation: Result of \"*=\" operation contains duplicates.
 
51176
row 3: constraint violation: Result of \"*=\" operation contains duplicates.
 
51177
 
 
51178
mutation  5:
 
51179
row 0: {\"r\":1.5}
 
51180
row 1: {\"r\":[\"set\",[0.5,1.5]]}
 
51181
row 2: no change
 
51182
row 3: no change
 
51183
 
 
51184
mutation  6:
 
51185
row 0: {\"r\":3}
 
51186
row 1: {\"r\":[\"set\",[0.5,3]]}
 
51187
row 2: {\"r\":[\"set\",[0.5,1.5,3]]}
 
51188
row 3: {\"r\":[\"set\",[0.5,1.5,2.5,3]]}
 
51189
 
 
51190
mutation  7:
 
51191
row 0: no change
 
51192
row 1: no change
 
51193
row 2: {\"r\":0.5}
 
51194
row 3: {\"r\":[\"set\",[0.5,2.5]]}
 
51195
 
 
51196
mutation  8:
 
51197
row 0: no change
 
51198
row 1: {\"r\":[\"set\",[]]}
 
51199
row 2: {\"r\":[\"set\",[]]}
 
51200
row 3: {\"r\":[\"set\",[]]}
 
51201
 
 
51202
" | \
 
51203
  $at_diff - "$at_stdout" || at_failed=:
 
51204
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:544"
 
51205
$at_failed && at_fn_log_failure
 
51206
$at_traceon; }
 
51207
 
 
51208
     set +x
 
51209
  $at_times_p && times >"$at_times_file"
 
51210
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51211
read at_status <"$at_status_file"
 
51212
#AT_STOP_733
 
51213
#AT_START_734
 
51214
at_fn_group_banner 734 'ovsdb-mutation.at:617' \
 
51215
  "executing mutations on boolean sets" "            " 53
 
51216
at_xfail=no
 
51217
(
 
51218
  $as_echo "734. $at_setup_line: testing $at_desc ..."
 
51219
  $at_traceon
 
51220
 
 
51221
 
 
51222
   { set +x
 
51223
$as_echo "$at_srcdir/ovsdb-mutation.at:617: test-ovsdb execute-mutations \\
 
51224
    '{\"columns\": {\"b\": {\"type\": {\"key\": \"boolean\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
51225
    '[[[\"b\", \"insert\", [\"set\", [false]]]],
 
51226
      [[\"b\", \"insert\", [\"set\", [true]]]],
 
51227
      [[\"b\", \"insert\", [\"set\", [false, true]]]],
 
51228
      [[\"b\", \"delete\", [\"set\", [false]]]],
 
51229
      [[\"b\", \"delete\", [\"set\", [true]]]],
 
51230
      [[\"b\", \"delete\", [\"set\", [true, false]]]]]' \\
 
51231
    '[{\"b\": [\"set\", []]},
 
51232
      {\"b\": [\"set\", [false]]},
 
51233
      {\"b\": [\"set\", [true]]},
 
51234
      {\"b\": [\"set\", [false, true]]}']"
 
51235
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:617"
 
51236
( $at_check_trace; test-ovsdb execute-mutations \
 
51237
    '{"columns": {"b": {"type": {"key": "boolean", "min": 0, "max": "unlimited"}}}}' \
 
51238
    '[[["b", "insert", ["set", [false]]]],
 
51239
      [["b", "insert", ["set", [true]]]],
 
51240
      [["b", "insert", ["set", [false, true]]]],
 
51241
      [["b", "delete", ["set", [false]]]],
 
51242
      [["b", "delete", ["set", [true]]]],
 
51243
      [["b", "delete", ["set", [true, false]]]]]' \
 
51244
    '[{"b": ["set", []]},
 
51245
      {"b": ["set", [false]]},
 
51246
      {"b": ["set", [true]]},
 
51247
      {"b": ["set", [false, true]]}']
 
51248
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51249
at_status=$? at_failed=false
 
51250
$at_check_filter
 
51251
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51252
echo >>"$at_stdout"; $as_echo "mutation  0:
 
51253
row 0: {\"b\":false}
 
51254
row 1: no change
 
51255
row 2: {\"b\":[\"set\",[false,true]]}
 
51256
row 3: no change
 
51257
 
 
51258
mutation  1:
 
51259
row 0: {\"b\":true}
 
51260
row 1: {\"b\":[\"set\",[false,true]]}
 
51261
row 2: no change
 
51262
row 3: no change
 
51263
 
 
51264
mutation  2:
 
51265
row 0: {\"b\":[\"set\",[false,true]]}
 
51266
row 1: {\"b\":[\"set\",[false,true]]}
 
51267
row 2: {\"b\":[\"set\",[false,true]]}
 
51268
row 3: no change
 
51269
 
 
51270
mutation  3:
 
51271
row 0: no change
 
51272
row 1: {\"b\":[\"set\",[]]}
 
51273
row 2: no change
 
51274
row 3: {\"b\":true}
 
51275
 
 
51276
mutation  4:
 
51277
row 0: no change
 
51278
row 1: no change
 
51279
row 2: {\"b\":[\"set\",[]]}
 
51280
row 3: {\"b\":false}
 
51281
 
 
51282
mutation  5:
 
51283
row 0: no change
 
51284
row 1: {\"b\":[\"set\",[]]}
 
51285
row 2: {\"b\":[\"set\",[]]}
 
51286
row 3: {\"b\":[\"set\",[]]}
 
51287
 
 
51288
" | \
 
51289
  $at_diff - "$at_stdout" || at_failed=:
 
51290
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:617"
 
51291
$at_failed && at_fn_log_failure
 
51292
$at_traceon; }
 
51293
 
 
51294
     set +x
 
51295
  $at_times_p && times >"$at_times_file"
 
51296
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51297
read at_status <"$at_status_file"
 
51298
#AT_STOP_734
 
51299
#AT_START_735
 
51300
at_fn_group_banner 735 'ovsdb-mutation.at:667' \
 
51301
  "executing mutations on string sets" "             " 53
 
51302
at_xfail=no
 
51303
(
 
51304
  $as_echo "735. $at_setup_line: testing $at_desc ..."
 
51305
  $at_traceon
 
51306
 
 
51307
 
 
51308
   { set +x
 
51309
$as_echo "$at_srcdir/ovsdb-mutation.at:667: test-ovsdb execute-mutations \\
 
51310
    '{\"columns\": {\"s\": {\"type\": {\"key\": \"string\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
51311
    '[[[\"s\", \"insert\", [\"set\", [\"a\"]]]],
 
51312
      [[\"s\", \"insert\", [\"set\", [\"b\"]]]],
 
51313
      [[\"s\", \"insert\", [\"set\", [\"c\", \"d\"]]]],
 
51314
      [[\"s\", \"delete\", [\"set\", [\"a\"]]]],
 
51315
      [[\"s\", \"delete\", [\"set\", [\"b\"]]]],
 
51316
      [[\"s\", \"delete\", [\"set\", [\"c\", \"d\"]]]]]' \\
 
51317
    '[{\"s\": [\"set\", []]},
 
51318
      {\"s\": [\"set\", [\"a\"]]},
 
51319
      {\"s\": [\"set\", [\"a\", \"b\"]]},
 
51320
      {\"s\": [\"set\", [\"a\", \"b\", \"c\", \"d\"]]}']"
 
51321
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:667"
 
51322
( $at_check_trace; test-ovsdb execute-mutations \
 
51323
    '{"columns": {"s": {"type": {"key": "string", "min": 0, "max": "unlimited"}}}}' \
 
51324
    '[[["s", "insert", ["set", ["a"]]]],
 
51325
      [["s", "insert", ["set", ["b"]]]],
 
51326
      [["s", "insert", ["set", ["c", "d"]]]],
 
51327
      [["s", "delete", ["set", ["a"]]]],
 
51328
      [["s", "delete", ["set", ["b"]]]],
 
51329
      [["s", "delete", ["set", ["c", "d"]]]]]' \
 
51330
    '[{"s": ["set", []]},
 
51331
      {"s": ["set", ["a"]]},
 
51332
      {"s": ["set", ["a", "b"]]},
 
51333
      {"s": ["set", ["a", "b", "c", "d"]]}']
 
51334
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51335
at_status=$? at_failed=false
 
51336
$at_check_filter
 
51337
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51338
echo >>"$at_stdout"; $as_echo "mutation  0:
 
51339
row 0: {\"s\":\"a\"}
 
51340
row 1: no change
 
51341
row 2: no change
 
51342
row 3: no change
 
51343
 
 
51344
mutation  1:
 
51345
row 0: {\"s\":\"b\"}
 
51346
row 1: {\"s\":[\"set\",[\"a\",\"b\"]]}
 
51347
row 2: no change
 
51348
row 3: no change
 
51349
 
 
51350
mutation  2:
 
51351
row 0: {\"s\":[\"set\",[\"c\",\"d\"]]}
 
51352
row 1: {\"s\":[\"set\",[\"a\",\"c\",\"d\"]]}
 
51353
row 2: {\"s\":[\"set\",[\"a\",\"b\",\"c\",\"d\"]]}
 
51354
row 3: no change
 
51355
 
 
51356
mutation  3:
 
51357
row 0: no change
 
51358
row 1: {\"s\":[\"set\",[]]}
 
51359
row 2: {\"s\":\"b\"}
 
51360
row 3: {\"s\":[\"set\",[\"b\",\"c\",\"d\"]]}
 
51361
 
 
51362
mutation  4:
 
51363
row 0: no change
 
51364
row 1: no change
 
51365
row 2: {\"s\":\"a\"}
 
51366
row 3: {\"s\":[\"set\",[\"a\",\"c\",\"d\"]]}
 
51367
 
 
51368
mutation  5:
 
51369
row 0: no change
 
51370
row 1: no change
 
51371
row 2: no change
 
51372
row 3: {\"s\":[\"set\",[\"a\",\"b\"]]}
 
51373
 
 
51374
" | \
 
51375
  $at_diff - "$at_stdout" || at_failed=:
 
51376
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:667"
 
51377
$at_failed && at_fn_log_failure
 
51378
$at_traceon; }
 
51379
 
 
51380
     set +x
 
51381
  $at_times_p && times >"$at_times_file"
 
51382
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51383
read at_status <"$at_status_file"
 
51384
#AT_STOP_735
 
51385
#AT_START_736
 
51386
at_fn_group_banner 736 'ovsdb-mutation.at:717' \
 
51387
  "executing mutations on uuid sets" "               " 53
 
51388
at_xfail=no
 
51389
(
 
51390
  $as_echo "736. $at_setup_line: testing $at_desc ..."
 
51391
  $at_traceon
 
51392
 
 
51393
 
 
51394
   { set +x
 
51395
$as_echo "$at_srcdir/ovsdb-mutation.at:717: test-ovsdb execute-mutations \\
 
51396
    '{\"columns\": {\"u\": {\"type\": {\"key\": \"uuid\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
51397
    '[[[\"u\", \"insert\", [\"set\", [[\"uuid\", \"ddd9e79d-7782-414c-8b22-1046c60b6ec2\"]]]]],
 
51398
      [[\"u\", \"insert\", [\"set\", [[\"uuid\", \"a60fe7ff-317b-4568-9106-892b37445313\"]]]]],
 
51399
      [[\"u\", \"insert\", [\"set\", [[\"uuid\", \"2607d30e-e652-4927-9fec-8bbf1b60c7e9\"]]]]],
 
51400
      [[\"u\", \"delete\", [\"set\", [[\"uuid\", \"ddd9e79d-7782-414c-8b22-1046c60b6ec2\"]]]]],
 
51401
      [[\"u\", \"delete\", [\"set\", [[\"uuid\", \"a60fe7ff-317b-4568-9106-892b37445313\"]]]]],
 
51402
      [[\"u\", \"delete\", [\"set\", [[\"uuid\", \"2607d30e-e652-4927-9fec-8bbf1b60c7e9\"]]]]]]' \\
 
51403
    '[{\"u\": [\"set\", []]},
 
51404
      {\"u\": [\"set\", [[\"uuid\", \"ddd9e79d-7782-414c-8b22-1046c60b6ec2\"]]]},
 
51405
      {\"u\": [\"set\", [[\"uuid\", \"a60fe7ff-317b-4568-9106-892b37445313\"]]]},
 
51406
      {\"u\": [\"set\", [[\"uuid\", \"2607d30e-e652-4927-9fec-8bbf1b60c7e9\"]]]}']"
 
51407
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:717"
 
51408
( $at_check_trace; test-ovsdb execute-mutations \
 
51409
    '{"columns": {"u": {"type": {"key": "uuid", "min": 0, "max": "unlimited"}}}}' \
 
51410
    '[[["u", "insert", ["set", [["uuid", "ddd9e79d-7782-414c-8b22-1046c60b6ec2"]]]]],
 
51411
      [["u", "insert", ["set", [["uuid", "a60fe7ff-317b-4568-9106-892b37445313"]]]]],
 
51412
      [["u", "insert", ["set", [["uuid", "2607d30e-e652-4927-9fec-8bbf1b60c7e9"]]]]],
 
51413
      [["u", "delete", ["set", [["uuid", "ddd9e79d-7782-414c-8b22-1046c60b6ec2"]]]]],
 
51414
      [["u", "delete", ["set", [["uuid", "a60fe7ff-317b-4568-9106-892b37445313"]]]]],
 
51415
      [["u", "delete", ["set", [["uuid", "2607d30e-e652-4927-9fec-8bbf1b60c7e9"]]]]]]' \
 
51416
    '[{"u": ["set", []]},
 
51417
      {"u": ["set", [["uuid", "ddd9e79d-7782-414c-8b22-1046c60b6ec2"]]]},
 
51418
      {"u": ["set", [["uuid", "a60fe7ff-317b-4568-9106-892b37445313"]]]},
 
51419
      {"u": ["set", [["uuid", "2607d30e-e652-4927-9fec-8bbf1b60c7e9"]]]}']
 
51420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51421
at_status=$? at_failed=false
 
51422
$at_check_filter
 
51423
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51424
echo >>"$at_stdout"; $as_echo "mutation  0:
 
51425
row 0: {\"u\":[\"uuid\",\"ddd9e79d-7782-414c-8b22-1046c60b6ec2\"]}
 
51426
row 1: no change
 
51427
row 2: {\"u\":[\"set\",[[\"uuid\",\"a60fe7ff-317b-4568-9106-892b37445313\"],[\"uuid\",\"ddd9e79d-7782-414c-8b22-1046c60b6ec2\"]]]}
 
51428
row 3: {\"u\":[\"set\",[[\"uuid\",\"2607d30e-e652-4927-9fec-8bbf1b60c7e9\"],[\"uuid\",\"ddd9e79d-7782-414c-8b22-1046c60b6ec2\"]]]}
 
51429
 
 
51430
mutation  1:
 
51431
row 0: {\"u\":[\"uuid\",\"a60fe7ff-317b-4568-9106-892b37445313\"]}
 
51432
row 1: {\"u\":[\"set\",[[\"uuid\",\"a60fe7ff-317b-4568-9106-892b37445313\"],[\"uuid\",\"ddd9e79d-7782-414c-8b22-1046c60b6ec2\"]]]}
 
51433
row 2: no change
 
51434
row 3: {\"u\":[\"set\",[[\"uuid\",\"2607d30e-e652-4927-9fec-8bbf1b60c7e9\"],[\"uuid\",\"a60fe7ff-317b-4568-9106-892b37445313\"]]]}
 
51435
 
 
51436
mutation  2:
 
51437
row 0: {\"u\":[\"uuid\",\"2607d30e-e652-4927-9fec-8bbf1b60c7e9\"]}
 
51438
row 1: {\"u\":[\"set\",[[\"uuid\",\"2607d30e-e652-4927-9fec-8bbf1b60c7e9\"],[\"uuid\",\"ddd9e79d-7782-414c-8b22-1046c60b6ec2\"]]]}
 
51439
row 2: {\"u\":[\"set\",[[\"uuid\",\"2607d30e-e652-4927-9fec-8bbf1b60c7e9\"],[\"uuid\",\"a60fe7ff-317b-4568-9106-892b37445313\"]]]}
 
51440
row 3: no change
 
51441
 
 
51442
mutation  3:
 
51443
row 0: no change
 
51444
row 1: {\"u\":[\"set\",[]]}
 
51445
row 2: no change
 
51446
row 3: no change
 
51447
 
 
51448
mutation  4:
 
51449
row 0: no change
 
51450
row 1: no change
 
51451
row 2: {\"u\":[\"set\",[]]}
 
51452
row 3: no change
 
51453
 
 
51454
mutation  5:
 
51455
row 0: no change
 
51456
row 1: no change
 
51457
row 2: no change
 
51458
row 3: {\"u\":[\"set\",[]]}
 
51459
 
 
51460
" | \
 
51461
  $at_diff - "$at_stdout" || at_failed=:
 
51462
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:717"
 
51463
$at_failed && at_fn_log_failure
 
51464
$at_traceon; }
 
51465
 
 
51466
     set +x
 
51467
  $at_times_p && times >"$at_times_file"
 
51468
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51469
read at_status <"$at_status_file"
 
51470
#AT_STOP_736
 
51471
#AT_START_737
 
51472
at_fn_group_banner 737 'ovsdb-mutation.at:767' \
 
51473
  "executing mutations on integer maps" "            " 53
 
51474
at_xfail=no
 
51475
(
 
51476
  $as_echo "737. $at_setup_line: testing $at_desc ..."
 
51477
  $at_traceon
 
51478
 
 
51479
 
 
51480
   { set +x
 
51481
$as_echo "$at_srcdir/ovsdb-mutation.at:767: test-ovsdb execute-mutations \\
 
51482
    '{\"columns\": {\"i\": {\"type\": {\"key\": \"integer\", \"value\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
51483
    '[[[\"i\", \"insert\", [\"map\", [[1, 2]]]]],
 
51484
      [[\"i\", \"insert\", [\"map\", [[2, 4], [3, 5]]]]],
 
51485
      [[\"i\", \"delete\", [\"map\", [[1, 2]]]]],
 
51486
      [[\"i\", \"delete\", [\"map\", [[2, 3]]]]],
 
51487
      [[\"i\", \"delete\", [\"set\", [1]]]],
 
51488
      [[\"i\", \"delete\", [\"set\", [2, 3]]]]]' \\
 
51489
    '[{\"i\": [\"map\", []]},
 
51490
      {\"i\": [\"map\", [[1, 2]]]},
 
51491
      {\"i\": [\"map\", [[1, 3], [2, 3]]]},
 
51492
      {\"i\": [\"map\", [[3, 5]]]}']"
 
51493
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-mutation.at:767"
 
51494
( $at_check_trace; test-ovsdb execute-mutations \
 
51495
    '{"columns": {"i": {"type": {"key": "integer", "value": "integer", "min": 0, "max": "unlimited"}}}}' \
 
51496
    '[[["i", "insert", ["map", [[1, 2]]]]],
 
51497
      [["i", "insert", ["map", [[2, 4], [3, 5]]]]],
 
51498
      [["i", "delete", ["map", [[1, 2]]]]],
 
51499
      [["i", "delete", ["map", [[2, 3]]]]],
 
51500
      [["i", "delete", ["set", [1]]]],
 
51501
      [["i", "delete", ["set", [2, 3]]]]]' \
 
51502
    '[{"i": ["map", []]},
 
51503
      {"i": ["map", [[1, 2]]]},
 
51504
      {"i": ["map", [[1, 3], [2, 3]]]},
 
51505
      {"i": ["map", [[3, 5]]]}']
 
51506
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51507
at_status=$? at_failed=false
 
51508
$at_check_filter
 
51509
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51510
echo >>"$at_stdout"; $as_echo "mutation  0:
 
51511
row 0: {\"i\":[\"map\",[[1,2]]]}
 
51512
row 1: no change
 
51513
row 2: no change
 
51514
row 3: {\"i\":[\"map\",[[1,2],[3,5]]]}
 
51515
 
 
51516
mutation  1:
 
51517
row 0: {\"i\":[\"map\",[[2,4],[3,5]]]}
 
51518
row 1: {\"i\":[\"map\",[[1,2],[2,4],[3,5]]]}
 
51519
row 2: {\"i\":[\"map\",[[1,3],[2,3],[3,5]]]}
 
51520
row 3: {\"i\":[\"map\",[[2,4],[3,5]]]}
 
51521
 
 
51522
mutation  2:
 
51523
row 0: no change
 
51524
row 1: {\"i\":[\"map\",[]]}
 
51525
row 2: no change
 
51526
row 3: no change
 
51527
 
 
51528
mutation  3:
 
51529
row 0: no change
 
51530
row 1: no change
 
51531
row 2: {\"i\":[\"map\",[[1,3]]]}
 
51532
row 3: no change
 
51533
 
 
51534
mutation  4:
 
51535
row 0: no change
 
51536
row 1: {\"i\":[\"map\",[]]}
 
51537
row 2: {\"i\":[\"map\",[[2,3]]]}
 
51538
row 3: no change
 
51539
 
 
51540
mutation  5:
 
51541
row 0: no change
 
51542
row 1: no change
 
51543
row 2: {\"i\":[\"map\",[[1,3]]]}
 
51544
row 3: {\"i\":[\"map\",[]]}
 
51545
 
 
51546
" | \
 
51547
  $at_diff - "$at_stdout" || at_failed=:
 
51548
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-mutation.at:767"
 
51549
$at_failed && at_fn_log_failure
 
51550
$at_traceon; }
 
51551
 
 
51552
     set +x
 
51553
  $at_times_p && times >"$at_times_file"
 
51554
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51555
read at_status <"$at_status_file"
 
51556
#AT_STOP_737
 
51557
#AT_START_738
 
51558
at_fn_group_banner 738 'ovsdb-query.at:3' \
 
51559
  "queries on scalars" "                             " 54
 
51560
at_xfail=no
 
51561
(
 
51562
  $as_echo "738. $at_setup_line: testing $at_desc ..."
 
51563
  $at_traceon
 
51564
 
 
51565
 
 
51566
   { set +x
 
51567
$as_echo "$at_srcdir/ovsdb-query.at:3: test-ovsdb query \\
 
51568
    '{\"columns\":
 
51569
        {\"i\": {\"type\": \"integer\"},
 
51570
         \"r\": {\"type\": \"real\"},
 
51571
         \"b\": {\"type\": \"boolean\"},
 
51572
         \"s\": {\"type\": \"string\"},
 
51573
         \"u\": {\"type\": \"uuid\"}}}' \\
 
51574
    '[{\"i\": 0,
 
51575
       \"r\": 0.5,
 
51576
       \"b\": true,
 
51577
       \"s\": \"a\",
 
51578
       \"u\": [\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]},
 
51579
      {\"i\": 1,
 
51580
       \"r\": 1.5,
 
51581
       \"b\": false,
 
51582
       \"s\": \"b\",
 
51583
       \"u\": [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]},
 
51584
      {\"i\": 2,
 
51585
       \"r\": 2.5,
 
51586
       \"b\": true,
 
51587
       \"s\": \"c\",
 
51588
       \"u\": [\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]},
 
51589
      {\"i\": 3,
 
51590
       \"r\": 3.5,
 
51591
       \"b\": false,
 
51592
       \"s\": \"d\",
 
51593
       \"u\": [\"uuid\", \"62315898-64e0-40b9-b26f-ff74225303e6\"]},
 
51594
      {\"i\": 4,
 
51595
       \"r\": 4.5,
 
51596
       \"b\": true,
 
51597
       \"s\": \"e\",
 
51598
       \"u\": [\"uuid\", \"4a5127e2-0256-4a72-a7dc-6246213967c7\"]}]' \\
 
51599
    '[[],
 
51600
      [[\"i\", \"==\", 0]],
 
51601
      [[\"i\", \"!=\", 1]],
 
51602
      [[\"i\", \"<\", 2]],
 
51603
      [[\"i\", \"<=\", 3]],
 
51604
      [[\"i\", \">\", 2]],
 
51605
      [[\"i\", \">=\", 4]],
 
51606
      [[\"i\", \"includes\", 3]],
 
51607
      [[\"i\", \"excludes\", 2]],
 
51608
      [[\"r\", \"==\", 0.5]],
 
51609
      [[\"r\", \"!=\", 1.5]],
 
51610
      [[\"r\", \"<\", 2.5]],
 
51611
      [[\"r\", \"<=\", 3.5]],
 
51612
      [[\"r\", \">\", 4.5]],
 
51613
      [[\"r\", \">=\", 5.5]],
 
51614
      [[\"r\", \"includes\", 1]],
 
51615
      [[\"r\", \"excludes\", 3]],
 
51616
      [[\"b\", \"==\", true]],
 
51617
      [[\"b\", \"!=\", true]],
 
51618
      [[\"b\", \"includes\", false]],
 
51619
      [[\"b\", \"excludes\", true]],
 
51620
      [[\"s\", \"==\", \"a\"]],
 
51621
      [[\"s\", \"!=\", \"b\"]],
 
51622
      [[\"s\", \"includes\", \"c\"]],
 
51623
      [[\"s\", \"excludes\", \"d\"]],
 
51624
      [[\"u\", \"==\", [\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]],
 
51625
      [[\"u\", \"!=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]],
 
51626
      [[\"u\", \"includes\",[\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]]]]'"
 
51627
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-query.at:3"
 
51628
( $at_check_trace; test-ovsdb query \
 
51629
    '{"columns":
 
51630
        {"i": {"type": "integer"},
 
51631
         "r": {"type": "real"},
 
51632
         "b": {"type": "boolean"},
 
51633
         "s": {"type": "string"},
 
51634
         "u": {"type": "uuid"}}}' \
 
51635
    '[{"i": 0,
 
51636
       "r": 0.5,
 
51637
       "b": true,
 
51638
       "s": "a",
 
51639
       "u": ["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]},
 
51640
      {"i": 1,
 
51641
       "r": 1.5,
 
51642
       "b": false,
 
51643
       "s": "b",
 
51644
       "u": ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]},
 
51645
      {"i": 2,
 
51646
       "r": 2.5,
 
51647
       "b": true,
 
51648
       "s": "c",
 
51649
       "u": ["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]},
 
51650
      {"i": 3,
 
51651
       "r": 3.5,
 
51652
       "b": false,
 
51653
       "s": "d",
 
51654
       "u": ["uuid", "62315898-64e0-40b9-b26f-ff74225303e6"]},
 
51655
      {"i": 4,
 
51656
       "r": 4.5,
 
51657
       "b": true,
 
51658
       "s": "e",
 
51659
       "u": ["uuid", "4a5127e2-0256-4a72-a7dc-6246213967c7"]}]' \
 
51660
    '[[],
 
51661
      [["i", "==", 0]],
 
51662
      [["i", "!=", 1]],
 
51663
      [["i", "<", 2]],
 
51664
      [["i", "<=", 3]],
 
51665
      [["i", ">", 2]],
 
51666
      [["i", ">=", 4]],
 
51667
      [["i", "includes", 3]],
 
51668
      [["i", "excludes", 2]],
 
51669
      [["r", "==", 0.5]],
 
51670
      [["r", "!=", 1.5]],
 
51671
      [["r", "<", 2.5]],
 
51672
      [["r", "<=", 3.5]],
 
51673
      [["r", ">", 4.5]],
 
51674
      [["r", ">=", 5.5]],
 
51675
      [["r", "includes", 1]],
 
51676
      [["r", "excludes", 3]],
 
51677
      [["b", "==", true]],
 
51678
      [["b", "!=", true]],
 
51679
      [["b", "includes", false]],
 
51680
      [["b", "excludes", true]],
 
51681
      [["s", "==", "a"]],
 
51682
      [["s", "!=", "b"]],
 
51683
      [["s", "includes", "c"]],
 
51684
      [["s", "excludes", "d"]],
 
51685
      [["u", "==", ["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]]],
 
51686
      [["u", "!=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]],
 
51687
      [["u", "includes",["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]]]]'
 
51688
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51689
at_status=$? at_failed=false
 
51690
$at_check_filter
 
51691
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51692
echo >>"$at_stdout"; $as_echo "query  0: 11111
 
51693
query  1: 1----
 
51694
query  2: 1-111
 
51695
query  3: 11---
 
51696
query  4: 1111-
 
51697
query  5: ---11
 
51698
query  6: ----1
 
51699
query  7: ---1-
 
51700
query  8: 11-11
 
51701
query  9: 1----
 
51702
query 10: 1-111
 
51703
query 11: 11---
 
51704
query 12: 1111-
 
51705
query 13: -----
 
51706
query 14: -----
 
51707
query 15: -----
 
51708
query 16: 11111
 
51709
query 17: 1-1-1
 
51710
query 18: -1-1-
 
51711
query 19: -1-1-
 
51712
query 20: -1-1-
 
51713
query 21: 1----
 
51714
query 22: 1-111
 
51715
query 23: --1--
 
51716
query 24: 111-1
 
51717
query 25: 1----
 
51718
query 26: 1-111
 
51719
query 27: --1--
 
51720
" | \
 
51721
  $at_diff - "$at_stdout" || at_failed=:
 
51722
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-query.at:3"
 
51723
$at_failed && at_fn_log_failure
 
51724
$at_traceon; }
 
51725
 
 
51726
     set +x
 
51727
  $at_times_p && times >"$at_times_file"
 
51728
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51729
read at_status <"$at_status_file"
 
51730
#AT_STOP_738
 
51731
#AT_START_739
 
51732
at_fn_group_banner 739 'ovsdb-query.at:95' \
 
51733
  "queries on sets" "                                " 54
 
51734
at_xfail=no
 
51735
(
 
51736
  $as_echo "739. $at_setup_line: testing $at_desc ..."
 
51737
  $at_traceon
 
51738
 
 
51739
 
 
51740
   { set +x
 
51741
$as_echo "$at_srcdir/ovsdb-query.at:95: test-ovsdb query \\
 
51742
    '{\"columns\": {\"i\": {\"type\": {\"key\": \"integer\", \"min\": 0, \"max\": \"unlimited\"}}}}' \\
 
51743
    '[{\"i\": [\"set\", []]},
 
51744
      {\"i\": [\"set\", [0]]},
 
51745
      {\"i\": [\"set\", [1]]},
 
51746
      {\"i\": [\"set\", [0, 1]]},
 
51747
      {\"i\": [\"set\", [2]]},
 
51748
      {\"i\": [\"set\", [2, 0]]},
 
51749
      {\"i\": [\"set\", [2, 1]]},
 
51750
      {\"i\": [\"set\", [2, 1, 0]]}]' \\
 
51751
    '[[],
 
51752
      [[\"i\", \"==\", [\"set\", []]]],
 
51753
      [[\"i\", \"==\", [\"set\", [0]]]],
 
51754
      [[\"i\", \"==\", [\"set\", [1]]]],
 
51755
      [[\"i\", \"==\", [\"set\", [0, 1]]]],
 
51756
      [[\"i\", \"==\", [\"set\", [2]]]],
 
51757
      [[\"i\", \"==\", [\"set\", [2, 0]]]],
 
51758
      [[\"i\", \"==\", [\"set\", [2, 1]]]],
 
51759
      [[\"i\", \"==\", [\"set\", [2, 1, 0]]]],
 
51760
      [[\"i\", \"!=\", [\"set\", []]]],
 
51761
      [[\"i\", \"!=\", [\"set\", [0]]]],
 
51762
      [[\"i\", \"!=\", [\"set\", [1]]]],
 
51763
      [[\"i\", \"!=\", [\"set\", [0, 1]]]],
 
51764
      [[\"i\", \"!=\", [\"set\", [2]]]],
 
51765
      [[\"i\", \"!=\", [\"set\", [2, 0]]]],
 
51766
      [[\"i\", \"!=\", [\"set\", [2, 1]]]],
 
51767
      [[\"i\", \"!=\", [\"set\", [2, 1, 0]]]],
 
51768
      [[\"i\", \"includes\", [\"set\", []]]],
 
51769
      [[\"i\", \"includes\", [\"set\", [0]]]],
 
51770
      [[\"i\", \"includes\", [\"set\", [1]]]],
 
51771
      [[\"i\", \"includes\", [\"set\", [0, 1]]]],
 
51772
      [[\"i\", \"includes\", [\"set\", [2]]]],
 
51773
      [[\"i\", \"includes\", [\"set\", [2, 0]]]],
 
51774
      [[\"i\", \"includes\", [\"set\", [2, 1]]]],
 
51775
      [[\"i\", \"includes\", [\"set\", [2, 1, 0]]]],
 
51776
      [[\"i\", \"excludes\", [\"set\", []]]],
 
51777
      [[\"i\", \"excludes\", [\"set\", [0]]]],
 
51778
      [[\"i\", \"excludes\", [\"set\", [1]]]],
 
51779
      [[\"i\", \"excludes\", [\"set\", [0, 1]]]],
 
51780
      [[\"i\", \"excludes\", [\"set\", [2]]]],
 
51781
      [[\"i\", \"excludes\", [\"set\", [2, 0]]]],
 
51782
      [[\"i\", \"excludes\", [\"set\", [2, 1]]]],
 
51783
      [[\"i\", \"excludes\", [\"set\", [2, 1, 0]]]]]'"
 
51784
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-query.at:95"
 
51785
( $at_check_trace; test-ovsdb query \
 
51786
    '{"columns": {"i": {"type": {"key": "integer", "min": 0, "max": "unlimited"}}}}' \
 
51787
    '[{"i": ["set", []]},
 
51788
      {"i": ["set", [0]]},
 
51789
      {"i": ["set", [1]]},
 
51790
      {"i": ["set", [0, 1]]},
 
51791
      {"i": ["set", [2]]},
 
51792
      {"i": ["set", [2, 0]]},
 
51793
      {"i": ["set", [2, 1]]},
 
51794
      {"i": ["set", [2, 1, 0]]}]' \
 
51795
    '[[],
 
51796
      [["i", "==", ["set", []]]],
 
51797
      [["i", "==", ["set", [0]]]],
 
51798
      [["i", "==", ["set", [1]]]],
 
51799
      [["i", "==", ["set", [0, 1]]]],
 
51800
      [["i", "==", ["set", [2]]]],
 
51801
      [["i", "==", ["set", [2, 0]]]],
 
51802
      [["i", "==", ["set", [2, 1]]]],
 
51803
      [["i", "==", ["set", [2, 1, 0]]]],
 
51804
      [["i", "!=", ["set", []]]],
 
51805
      [["i", "!=", ["set", [0]]]],
 
51806
      [["i", "!=", ["set", [1]]]],
 
51807
      [["i", "!=", ["set", [0, 1]]]],
 
51808
      [["i", "!=", ["set", [2]]]],
 
51809
      [["i", "!=", ["set", [2, 0]]]],
 
51810
      [["i", "!=", ["set", [2, 1]]]],
 
51811
      [["i", "!=", ["set", [2, 1, 0]]]],
 
51812
      [["i", "includes", ["set", []]]],
 
51813
      [["i", "includes", ["set", [0]]]],
 
51814
      [["i", "includes", ["set", [1]]]],
 
51815
      [["i", "includes", ["set", [0, 1]]]],
 
51816
      [["i", "includes", ["set", [2]]]],
 
51817
      [["i", "includes", ["set", [2, 0]]]],
 
51818
      [["i", "includes", ["set", [2, 1]]]],
 
51819
      [["i", "includes", ["set", [2, 1, 0]]]],
 
51820
      [["i", "excludes", ["set", []]]],
 
51821
      [["i", "excludes", ["set", [0]]]],
 
51822
      [["i", "excludes", ["set", [1]]]],
 
51823
      [["i", "excludes", ["set", [0, 1]]]],
 
51824
      [["i", "excludes", ["set", [2]]]],
 
51825
      [["i", "excludes", ["set", [2, 0]]]],
 
51826
      [["i", "excludes", ["set", [2, 1]]]],
 
51827
      [["i", "excludes", ["set", [2, 1, 0]]]]]'
 
51828
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51829
at_status=$? at_failed=false
 
51830
$at_check_filter
 
51831
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51832
echo >>"$at_stdout"; $as_echo "query  0: 11111 111
 
51833
query  1: 1---- ---
 
51834
query  2: -1--- ---
 
51835
query  3: --1-- ---
 
51836
query  4: ---1- ---
 
51837
query  5: ----1 ---
 
51838
query  6: ----- 1--
 
51839
query  7: ----- -1-
 
51840
query  8: ----- --1
 
51841
query  9: -1111 111
 
51842
query 10: 1-111 111
 
51843
query 11: 11-11 111
 
51844
query 12: 111-1 111
 
51845
query 13: 1111- 111
 
51846
query 14: 11111 -11
 
51847
query 15: 11111 1-1
 
51848
query 16: 11111 11-
 
51849
query 17: 11111 111
 
51850
query 18: -1-1- 1-1
 
51851
query 19: --11- -11
 
51852
query 20: ---1- --1
 
51853
query 21: ----1 111
 
51854
query 22: ----- 1-1
 
51855
query 23: ----- -11
 
51856
query 24: ----- --1
 
51857
query 25: 11111 111
 
51858
query 26: 1-1-1 -1-
 
51859
query 27: 11--1 1--
 
51860
query 28: 1---1 ---
 
51861
query 29: 1111- ---
 
51862
query 30: 1-1-- ---
 
51863
query 31: 11--- ---
 
51864
query 32: 1---- ---
 
51865
" | \
 
51866
  $at_diff - "$at_stdout" || at_failed=:
 
51867
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-query.at:95"
 
51868
$at_failed && at_fn_log_failure
 
51869
$at_traceon; }
 
51870
 
 
51871
     set +x
 
51872
  $at_times_p && times >"$at_times_file"
 
51873
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
51874
read at_status <"$at_status_file"
 
51875
#AT_STOP_739
 
51876
#AT_START_740
 
51877
at_fn_group_banner 740 'ovsdb-query.at:176' \
 
51878
  "queries on maps (1)" "                            " 54
 
51879
at_xfail=no
 
51880
(
 
51881
  $as_echo "740. $at_setup_line: testing $at_desc ..."
 
51882
  $at_traceon
 
51883
 
 
51884
 
 
51885
   { set +x
 
51886
$as_echo "$at_srcdir/ovsdb-query.at:176: test-ovsdb query \\
 
51887
    '{\"columns\": {\"i\": {\"type\": {\"key\": \"integer\",
 
51888
                                 \"value\": \"boolean\",
 
51889
                                 \"min\": 0,
 
51890
                                 \"max\": \"unlimited\"}}}}' \\
 
51891
    '[{\"i\": [\"map\", []]},
 
51892
      {\"i\": [\"map\", [[0, true]]]},
 
51893
      {\"i\": [\"map\", [[1, false]]]},
 
51894
      {\"i\": [\"map\", [[0, true], [1, false]]]},
 
51895
      {\"i\": [\"map\", [[2, true]]]},
 
51896
      {\"i\": [\"map\", [[2, true], [0, true]]]},
 
51897
      {\"i\": [\"map\", [[2, true], [1, false]]]},
 
51898
      {\"i\": [\"map\", [[2, true], [1, false], [0, true]]]}]' \\
 
51899
    '[[],
 
51900
      [[\"i\", \"==\", [\"map\", []]]],
 
51901
      [[\"i\", \"==\", [\"map\", [[0, true]]]]],
 
51902
      [[\"i\", \"==\", [\"map\", [[1, false]]]]],
 
51903
      [[\"i\", \"==\", [\"map\", [[0, true], [1, false]]]]],
 
51904
      [[\"i\", \"==\", [\"map\", [[2, true]]]]],
 
51905
      [[\"i\", \"==\", [\"map\", [[2, true], [0, true]]]]],
 
51906
      [[\"i\", \"==\", [\"map\", [[2, true], [1, false]]]]],
 
51907
      [[\"i\", \"==\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
51908
      [[\"i\", \"!=\", [\"map\", []]]],
 
51909
      [[\"i\", \"!=\", [\"map\", [[0, true]]]]],
 
51910
      [[\"i\", \"!=\", [\"map\", [[1, false]]]]],
 
51911
      [[\"i\", \"!=\", [\"map\", [[0, true], [1, false]]]]],
 
51912
      [[\"i\", \"!=\", [\"map\", [[2, true]]]]],
 
51913
      [[\"i\", \"!=\", [\"map\", [[2, true], [0, true]]]]],
 
51914
      [[\"i\", \"!=\", [\"map\", [[2, true], [1, false]]]]],
 
51915
      [[\"i\", \"!=\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
51916
      [[\"i\", \"includes\", [\"map\", []]]],
 
51917
      [[\"i\", \"includes\", [\"map\", [[0, true]]]]],
 
51918
      [[\"i\", \"includes\", [\"map\", [[1, false]]]]],
 
51919
      [[\"i\", \"includes\", [\"map\", [[0, true], [1, false]]]]],
 
51920
      [[\"i\", \"includes\", [\"map\", [[2, true]]]]],
 
51921
      [[\"i\", \"includes\", [\"map\", [[2, true], [0, true]]]]],
 
51922
      [[\"i\", \"includes\", [\"map\", [[2, true], [1, false]]]]],
 
51923
      [[\"i\", \"includes\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
51924
      [[\"i\", \"excludes\", [\"map\", []]]],
 
51925
      [[\"i\", \"excludes\", [\"map\", [[0, true]]]]],
 
51926
      [[\"i\", \"excludes\", [\"map\", [[1, false]]]]],
 
51927
      [[\"i\", \"excludes\", [\"map\", [[0, true], [1, false]]]]],
 
51928
      [[\"i\", \"excludes\", [\"map\", [[2, true]]]]],
 
51929
      [[\"i\", \"excludes\", [\"map\", [[2, true], [0, true]]]]],
 
51930
      [[\"i\", \"excludes\", [\"map\", [[2, true], [1, false]]]]],
 
51931
      [[\"i\", \"excludes\", [\"map\", [[2, true], [1, false], [0, true]]]]]]'"
 
51932
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-query.at:176"
 
51933
( $at_check_trace; test-ovsdb query \
 
51934
    '{"columns": {"i": {"type": {"key": "integer",
 
51935
                                 "value": "boolean",
 
51936
                                 "min": 0,
 
51937
                                 "max": "unlimited"}}}}' \
 
51938
    '[{"i": ["map", []]},
 
51939
      {"i": ["map", [[0, true]]]},
 
51940
      {"i": ["map", [[1, false]]]},
 
51941
      {"i": ["map", [[0, true], [1, false]]]},
 
51942
      {"i": ["map", [[2, true]]]},
 
51943
      {"i": ["map", [[2, true], [0, true]]]},
 
51944
      {"i": ["map", [[2, true], [1, false]]]},
 
51945
      {"i": ["map", [[2, true], [1, false], [0, true]]]}]' \
 
51946
    '[[],
 
51947
      [["i", "==", ["map", []]]],
 
51948
      [["i", "==", ["map", [[0, true]]]]],
 
51949
      [["i", "==", ["map", [[1, false]]]]],
 
51950
      [["i", "==", ["map", [[0, true], [1, false]]]]],
 
51951
      [["i", "==", ["map", [[2, true]]]]],
 
51952
      [["i", "==", ["map", [[2, true], [0, true]]]]],
 
51953
      [["i", "==", ["map", [[2, true], [1, false]]]]],
 
51954
      [["i", "==", ["map", [[2, true], [1, false], [0, true]]]]],
 
51955
      [["i", "!=", ["map", []]]],
 
51956
      [["i", "!=", ["map", [[0, true]]]]],
 
51957
      [["i", "!=", ["map", [[1, false]]]]],
 
51958
      [["i", "!=", ["map", [[0, true], [1, false]]]]],
 
51959
      [["i", "!=", ["map", [[2, true]]]]],
 
51960
      [["i", "!=", ["map", [[2, true], [0, true]]]]],
 
51961
      [["i", "!=", ["map", [[2, true], [1, false]]]]],
 
51962
      [["i", "!=", ["map", [[2, true], [1, false], [0, true]]]]],
 
51963
      [["i", "includes", ["map", []]]],
 
51964
      [["i", "includes", ["map", [[0, true]]]]],
 
51965
      [["i", "includes", ["map", [[1, false]]]]],
 
51966
      [["i", "includes", ["map", [[0, true], [1, false]]]]],
 
51967
      [["i", "includes", ["map", [[2, true]]]]],
 
51968
      [["i", "includes", ["map", [[2, true], [0, true]]]]],
 
51969
      [["i", "includes", ["map", [[2, true], [1, false]]]]],
 
51970
      [["i", "includes", ["map", [[2, true], [1, false], [0, true]]]]],
 
51971
      [["i", "excludes", ["map", []]]],
 
51972
      [["i", "excludes", ["map", [[0, true]]]]],
 
51973
      [["i", "excludes", ["map", [[1, false]]]]],
 
51974
      [["i", "excludes", ["map", [[0, true], [1, false]]]]],
 
51975
      [["i", "excludes", ["map", [[2, true]]]]],
 
51976
      [["i", "excludes", ["map", [[2, true], [0, true]]]]],
 
51977
      [["i", "excludes", ["map", [[2, true], [1, false]]]]],
 
51978
      [["i", "excludes", ["map", [[2, true], [1, false], [0, true]]]]]]'
 
51979
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
51980
at_status=$? at_failed=false
 
51981
$at_check_filter
 
51982
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
51983
echo >>"$at_stdout"; $as_echo "query  0: 11111 111
 
51984
query  1: 1---- ---
 
51985
query  2: -1--- ---
 
51986
query  3: --1-- ---
 
51987
query  4: ---1- ---
 
51988
query  5: ----1 ---
 
51989
query  6: ----- 1--
 
51990
query  7: ----- -1-
 
51991
query  8: ----- --1
 
51992
query  9: -1111 111
 
51993
query 10: 1-111 111
 
51994
query 11: 11-11 111
 
51995
query 12: 111-1 111
 
51996
query 13: 1111- 111
 
51997
query 14: 11111 -11
 
51998
query 15: 11111 1-1
 
51999
query 16: 11111 11-
 
52000
query 17: 11111 111
 
52001
query 18: -1-1- 1-1
 
52002
query 19: --11- -11
 
52003
query 20: ---1- --1
 
52004
query 21: ----1 111
 
52005
query 22: ----- 1-1
 
52006
query 23: ----- -11
 
52007
query 24: ----- --1
 
52008
query 25: 11111 111
 
52009
query 26: 1-1-1 -1-
 
52010
query 27: 11--1 1--
 
52011
query 28: 1---1 ---
 
52012
query 29: 1111- ---
 
52013
query 30: 1-1-- ---
 
52014
query 31: 11--- ---
 
52015
query 32: 1---- ---
 
52016
" | \
 
52017
  $at_diff - "$at_stdout" || at_failed=:
 
52018
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-query.at:176"
 
52019
$at_failed && at_fn_log_failure
 
52020
$at_traceon; }
 
52021
 
 
52022
     set +x
 
52023
  $at_times_p && times >"$at_times_file"
 
52024
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52025
read at_status <"$at_status_file"
 
52026
#AT_STOP_740
 
52027
#AT_START_741
 
52028
at_fn_group_banner 741 'ovsdb-query.at:260' \
 
52029
  "queries on maps (2)" "                            " 54
 
52030
at_xfail=no
 
52031
(
 
52032
  $as_echo "741. $at_setup_line: testing $at_desc ..."
 
52033
  $at_traceon
 
52034
 
 
52035
 
 
52036
   { set +x
 
52037
$as_echo "$at_srcdir/ovsdb-query.at:260: test-ovsdb query \\
 
52038
    '{\"columns\": {\"i\": {\"type\": {\"key\": \"integer\",
 
52039
                                 \"value\": \"boolean\",
 
52040
                                 \"min\": 0,
 
52041
                                 \"max\": \"unlimited\"}}}}' \\
 
52042
    '[{\"i\": [\"map\", []]},
 
52043
      {\"i\": [\"map\", [[0, true]]]},
 
52044
      {\"i\": [\"map\", [[0, false]]]},
 
52045
      {\"i\": [\"map\", [[1, false]]]},
 
52046
      {\"i\": [\"map\", [[1, true]]]},
 
52047
 
 
52048
      {\"i\": [\"map\", [[0, true], [1, false]]]},
 
52049
      {\"i\": [\"map\", [[0, true], [1, true]]]},
 
52050
      {\"i\": [\"map\", [[2, true]]]},
 
52051
      {\"i\": [\"map\", [[2, false]]]},
 
52052
      {\"i\": [\"map\", [[2, true], [0, true]]]},
 
52053
 
 
52054
      {\"i\": [\"map\", [[2, false], [0, true]]]},
 
52055
      {\"i\": [\"map\", [[2, true], [1, false]]]},
 
52056
      {\"i\": [\"map\", [[2, true], [1, true]]]},
 
52057
      {\"i\": [\"map\", [[2, true], [1, false], [0, true]]]},
 
52058
      {\"i\": [\"map\", [[2, true], [1, false], [0, false]]]}]' \\
 
52059
    '[[],
 
52060
      [[\"i\", \"==\", [\"map\", []]]],
 
52061
      [[\"i\", \"==\", [\"map\", [[0, true]]]]],
 
52062
      [[\"i\", \"==\", [\"map\", [[1, false]]]]],
 
52063
      [[\"i\", \"==\", [\"map\", [[0, true], [1, false]]]]],
 
52064
      [[\"i\", \"==\", [\"map\", [[2, true]]]]],
 
52065
      [[\"i\", \"==\", [\"map\", [[2, true], [0, true]]]]],
 
52066
      [[\"i\", \"==\", [\"map\", [[2, true], [1, false]]]]],
 
52067
      [[\"i\", \"==\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
52068
      [[\"i\", \"!=\", [\"map\", []]]],
 
52069
      [[\"i\", \"!=\", [\"map\", [[0, true]]]]],
 
52070
      [[\"i\", \"!=\", [\"map\", [[1, false]]]]],
 
52071
      [[\"i\", \"!=\", [\"map\", [[0, true], [1, false]]]]],
 
52072
      [[\"i\", \"!=\", [\"map\", [[2, true]]]]],
 
52073
      [[\"i\", \"!=\", [\"map\", [[2, true], [0, true]]]]],
 
52074
      [[\"i\", \"!=\", [\"map\", [[2, true], [1, false]]]]],
 
52075
      [[\"i\", \"!=\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
52076
      [[\"i\", \"includes\", [\"map\", []]]],
 
52077
      [[\"i\", \"includes\", [\"map\", [[0, true]]]]],
 
52078
      [[\"i\", \"includes\", [\"map\", [[1, false]]]]],
 
52079
      [[\"i\", \"includes\", [\"map\", [[0, true], [1, false]]]]],
 
52080
      [[\"i\", \"includes\", [\"map\", [[2, true]]]]],
 
52081
      [[\"i\", \"includes\", [\"map\", [[2, true], [0, true]]]]],
 
52082
      [[\"i\", \"includes\", [\"map\", [[2, true], [1, false]]]]],
 
52083
      [[\"i\", \"includes\", [\"map\", [[2, true], [1, false], [0, true]]]]],
 
52084
      [[\"i\", \"excludes\", [\"map\", []]]],
 
52085
      [[\"i\", \"excludes\", [\"map\", [[0, true]]]]],
 
52086
      [[\"i\", \"excludes\", [\"map\", [[1, false]]]]],
 
52087
      [[\"i\", \"excludes\", [\"map\", [[0, true], [1, false]]]]],
 
52088
      [[\"i\", \"excludes\", [\"map\", [[2, true]]]]],
 
52089
      [[\"i\", \"excludes\", [\"map\", [[2, true], [0, true]]]]],
 
52090
      [[\"i\", \"excludes\", [\"map\", [[2, true], [1, false]]]]],
 
52091
      [[\"i\", \"excludes\", [\"map\", [[2, true], [1, false], [0, true]]]]]]'"
 
52092
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-query.at:260"
 
52093
( $at_check_trace; test-ovsdb query \
 
52094
    '{"columns": {"i": {"type": {"key": "integer",
 
52095
                                 "value": "boolean",
 
52096
                                 "min": 0,
 
52097
                                 "max": "unlimited"}}}}' \
 
52098
    '[{"i": ["map", []]},
 
52099
      {"i": ["map", [[0, true]]]},
 
52100
      {"i": ["map", [[0, false]]]},
 
52101
      {"i": ["map", [[1, false]]]},
 
52102
      {"i": ["map", [[1, true]]]},
 
52103
 
 
52104
      {"i": ["map", [[0, true], [1, false]]]},
 
52105
      {"i": ["map", [[0, true], [1, true]]]},
 
52106
      {"i": ["map", [[2, true]]]},
 
52107
      {"i": ["map", [[2, false]]]},
 
52108
      {"i": ["map", [[2, true], [0, true]]]},
 
52109
 
 
52110
      {"i": ["map", [[2, false], [0, true]]]},
 
52111
      {"i": ["map", [[2, true], [1, false]]]},
 
52112
      {"i": ["map", [[2, true], [1, true]]]},
 
52113
      {"i": ["map", [[2, true], [1, false], [0, true]]]},
 
52114
      {"i": ["map", [[2, true], [1, false], [0, false]]]}]' \
 
52115
    '[[],
 
52116
      [["i", "==", ["map", []]]],
 
52117
      [["i", "==", ["map", [[0, true]]]]],
 
52118
      [["i", "==", ["map", [[1, false]]]]],
 
52119
      [["i", "==", ["map", [[0, true], [1, false]]]]],
 
52120
      [["i", "==", ["map", [[2, true]]]]],
 
52121
      [["i", "==", ["map", [[2, true], [0, true]]]]],
 
52122
      [["i", "==", ["map", [[2, true], [1, false]]]]],
 
52123
      [["i", "==", ["map", [[2, true], [1, false], [0, true]]]]],
 
52124
      [["i", "!=", ["map", []]]],
 
52125
      [["i", "!=", ["map", [[0, true]]]]],
 
52126
      [["i", "!=", ["map", [[1, false]]]]],
 
52127
      [["i", "!=", ["map", [[0, true], [1, false]]]]],
 
52128
      [["i", "!=", ["map", [[2, true]]]]],
 
52129
      [["i", "!=", ["map", [[2, true], [0, true]]]]],
 
52130
      [["i", "!=", ["map", [[2, true], [1, false]]]]],
 
52131
      [["i", "!=", ["map", [[2, true], [1, false], [0, true]]]]],
 
52132
      [["i", "includes", ["map", []]]],
 
52133
      [["i", "includes", ["map", [[0, true]]]]],
 
52134
      [["i", "includes", ["map", [[1, false]]]]],
 
52135
      [["i", "includes", ["map", [[0, true], [1, false]]]]],
 
52136
      [["i", "includes", ["map", [[2, true]]]]],
 
52137
      [["i", "includes", ["map", [[2, true], [0, true]]]]],
 
52138
      [["i", "includes", ["map", [[2, true], [1, false]]]]],
 
52139
      [["i", "includes", ["map", [[2, true], [1, false], [0, true]]]]],
 
52140
      [["i", "excludes", ["map", []]]],
 
52141
      [["i", "excludes", ["map", [[0, true]]]]],
 
52142
      [["i", "excludes", ["map", [[1, false]]]]],
 
52143
      [["i", "excludes", ["map", [[0, true], [1, false]]]]],
 
52144
      [["i", "excludes", ["map", [[2, true]]]]],
 
52145
      [["i", "excludes", ["map", [[2, true], [0, true]]]]],
 
52146
      [["i", "excludes", ["map", [[2, true], [1, false]]]]],
 
52147
      [["i", "excludes", ["map", [[2, true], [1, false], [0, true]]]]]]'
 
52148
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52149
at_status=$? at_failed=false
 
52150
$at_check_filter
 
52151
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52152
echo >>"$at_stdout"; $as_echo "query  0: 11111 11111 11111
 
52153
query  1: 1---- ----- -----
 
52154
query  2: -1--- ----- -----
 
52155
query  3: ---1- ----- -----
 
52156
query  4: ----- 1---- -----
 
52157
query  5: ----- --1-- -----
 
52158
query  6: ----- ----1 -----
 
52159
query  7: ----- ----- -1---
 
52160
query  8: ----- ----- ---1-
 
52161
query  9: -1111 11111 11111
 
52162
query 10: 1-111 11111 11111
 
52163
query 11: 111-1 11111 11111
 
52164
query 12: 11111 -1111 11111
 
52165
query 13: 11111 11-11 11111
 
52166
query 14: 11111 1111- 11111
 
52167
query 15: 11111 11111 1-111
 
52168
query 16: 11111 11111 111-1
 
52169
query 17: 11111 11111 11111
 
52170
query 18: -1--- 11--1 1--1-
 
52171
query 19: ---1- 1---- -1-11
 
52172
query 20: ----- 1---- ---1-
 
52173
query 21: ----- --1-1 -1111
 
52174
query 22: ----- ----1 ---1-
 
52175
query 23: ----- ----- -1-11
 
52176
query 24: ----- ----- ---1-
 
52177
query 25: 11111 11111 11111
 
52178
query 26: 1-111 --11- -11-1
 
52179
query 27: 111-1 -1111 1-1--
 
52180
query 28: 1-1-1 --11- --1--
 
52181
query 29: 11111 11-1- 1----
 
52182
query 30: 1-111 ---1- -----
 
52183
query 31: 111-1 -1-1- 1----
 
52184
query 32: 1-1-1 ---1- -----
 
52185
" | \
 
52186
  $at_diff - "$at_stdout" || at_failed=:
 
52187
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-query.at:260"
 
52188
$at_failed && at_fn_log_failure
 
52189
$at_traceon; }
 
52190
 
 
52191
     set +x
 
52192
  $at_times_p && times >"$at_times_file"
 
52193
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52194
read at_status <"$at_status_file"
 
52195
#AT_STOP_741
 
52196
#AT_START_742
 
52197
at_fn_group_banner 742 'ovsdb-query.at:351' \
 
52198
  "UUID-distinct queries on scalars" "               " 54
 
52199
at_xfail=no
 
52200
(
 
52201
  $as_echo "742. $at_setup_line: testing $at_desc ..."
 
52202
  $at_traceon
 
52203
 
 
52204
 
 
52205
   { set +x
 
52206
$as_echo "$at_srcdir/ovsdb-query.at:351: test-ovsdb query-distinct \\
 
52207
    '{\"columns\":
 
52208
        {\"i\": {\"type\": \"integer\"},
 
52209
         \"r\": {\"type\": \"real\"},
 
52210
         \"b\": {\"type\": \"boolean\"},
 
52211
         \"s\": {\"type\": \"string\"},
 
52212
         \"u\": {\"type\": \"uuid\"}}}' \\
 
52213
    '[{\"i\": 0,
 
52214
       \"r\": 0.5,
 
52215
       \"b\": true,
 
52216
       \"s\": \"a\",
 
52217
       \"u\": [\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]},
 
52218
      {\"i\": 1,
 
52219
       \"r\": 1.5,
 
52220
       \"b\": false,
 
52221
       \"s\": \"b\",
 
52222
       \"u\": [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]},
 
52223
      {\"i\": 2,
 
52224
       \"r\": 2.5,
 
52225
       \"b\": true,
 
52226
       \"s\": \"c\",
 
52227
       \"u\": [\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]},
 
52228
      {\"i\": 3,
 
52229
       \"r\": 3.5,
 
52230
       \"b\": false,
 
52231
       \"s\": \"d\",
 
52232
       \"u\": [\"uuid\", \"62315898-64e0-40b9-b26f-ff74225303e6\"]},
 
52233
      {\"i\": 4,
 
52234
       \"r\": 4.5,
 
52235
       \"b\": true,
 
52236
       \"s\": \"e\",
 
52237
       \"u\": [\"uuid\", \"4a5127e2-0256-4a72-a7dc-6246213967c7\"]}]' \\
 
52238
    '[[],
 
52239
      [[\"i\", \"==\", 0]],
 
52240
      [[\"i\", \"!=\", 1]],
 
52241
      [[\"i\", \"<\", 2]],
 
52242
      [[\"i\", \"<=\", 3]],
 
52243
      [[\"i\", \">\", 2]],
 
52244
      [[\"i\", \">=\", 4]],
 
52245
      [[\"i\", \"includes\", 3]],
 
52246
      [[\"i\", \"excludes\", 2]],
 
52247
      [[\"r\", \"==\", 0.5]],
 
52248
      [[\"r\", \"!=\", 1.5]],
 
52249
      [[\"r\", \"<\", 2.5]],
 
52250
      [[\"r\", \"<=\", 3.5]],
 
52251
      [[\"r\", \">\", 4.5]],
 
52252
      [[\"r\", \">=\", 5.5]],
 
52253
      [[\"r\", \"includes\", 1]],
 
52254
      [[\"r\", \"excludes\", 3]],
 
52255
      [[\"b\", \"==\", true]],
 
52256
      [[\"b\", \"!=\", true]],
 
52257
      [[\"b\", \"includes\", false]],
 
52258
      [[\"b\", \"excludes\", true]],
 
52259
      [[\"s\", \"==\", \"a\"]],
 
52260
      [[\"s\", \"!=\", \"b\"]],
 
52261
      [[\"s\", \"includes\", \"c\"]],
 
52262
      [[\"s\", \"excludes\", \"d\"]],
 
52263
      [[\"u\", \"==\", [\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]],
 
52264
      [[\"u\", \"!=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]],
 
52265
      [[\"u\", \"includes\",[\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]]]]' \\
 
52266
    '[\"_uuid\"]'"
 
52267
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-query.at:351"
 
52268
( $at_check_trace; test-ovsdb query-distinct \
 
52269
    '{"columns":
 
52270
        {"i": {"type": "integer"},
 
52271
         "r": {"type": "real"},
 
52272
         "b": {"type": "boolean"},
 
52273
         "s": {"type": "string"},
 
52274
         "u": {"type": "uuid"}}}' \
 
52275
    '[{"i": 0,
 
52276
       "r": 0.5,
 
52277
       "b": true,
 
52278
       "s": "a",
 
52279
       "u": ["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]},
 
52280
      {"i": 1,
 
52281
       "r": 1.5,
 
52282
       "b": false,
 
52283
       "s": "b",
 
52284
       "u": ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]},
 
52285
      {"i": 2,
 
52286
       "r": 2.5,
 
52287
       "b": true,
 
52288
       "s": "c",
 
52289
       "u": ["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]},
 
52290
      {"i": 3,
 
52291
       "r": 3.5,
 
52292
       "b": false,
 
52293
       "s": "d",
 
52294
       "u": ["uuid", "62315898-64e0-40b9-b26f-ff74225303e6"]},
 
52295
      {"i": 4,
 
52296
       "r": 4.5,
 
52297
       "b": true,
 
52298
       "s": "e",
 
52299
       "u": ["uuid", "4a5127e2-0256-4a72-a7dc-6246213967c7"]}]' \
 
52300
    '[[],
 
52301
      [["i", "==", 0]],
 
52302
      [["i", "!=", 1]],
 
52303
      [["i", "<", 2]],
 
52304
      [["i", "<=", 3]],
 
52305
      [["i", ">", 2]],
 
52306
      [["i", ">=", 4]],
 
52307
      [["i", "includes", 3]],
 
52308
      [["i", "excludes", 2]],
 
52309
      [["r", "==", 0.5]],
 
52310
      [["r", "!=", 1.5]],
 
52311
      [["r", "<", 2.5]],
 
52312
      [["r", "<=", 3.5]],
 
52313
      [["r", ">", 4.5]],
 
52314
      [["r", ">=", 5.5]],
 
52315
      [["r", "includes", 1]],
 
52316
      [["r", "excludes", 3]],
 
52317
      [["b", "==", true]],
 
52318
      [["b", "!=", true]],
 
52319
      [["b", "includes", false]],
 
52320
      [["b", "excludes", true]],
 
52321
      [["s", "==", "a"]],
 
52322
      [["s", "!=", "b"]],
 
52323
      [["s", "includes", "c"]],
 
52324
      [["s", "excludes", "d"]],
 
52325
      [["u", "==", ["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]]],
 
52326
      [["u", "!=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]],
 
52327
      [["u", "includes",["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]]]]' \
 
52328
    '["_uuid"]'
 
52329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52330
at_status=$? at_failed=false
 
52331
$at_check_filter
 
52332
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52333
echo >>"$at_stdout"; $as_echo "query  0: abcde
 
52334
query  1: a----
 
52335
query  2: a-cde
 
52336
query  3: ab---
 
52337
query  4: abcd-
 
52338
query  5: ---de
 
52339
query  6: ----e
 
52340
query  7: ---d-
 
52341
query  8: ab-de
 
52342
query  9: a----
 
52343
query 10: a-cde
 
52344
query 11: ab---
 
52345
query 12: abcd-
 
52346
query 13: -----
 
52347
query 14: -----
 
52348
query 15: -----
 
52349
query 16: abcde
 
52350
query 17: a-c-e
 
52351
query 18: -b-d-
 
52352
query 19: -b-d-
 
52353
query 20: -b-d-
 
52354
query 21: a----
 
52355
query 22: a-cde
 
52356
query 23: --c--
 
52357
query 24: abc-e
 
52358
query 25: a----
 
52359
query 26: a-cde
 
52360
query 27: --c--
 
52361
" | \
 
52362
  $at_diff - "$at_stdout" || at_failed=:
 
52363
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-query.at:351"
 
52364
$at_failed && at_fn_log_failure
 
52365
$at_traceon; }
 
52366
 
 
52367
     set +x
 
52368
  $at_times_p && times >"$at_times_file"
 
52369
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52370
read at_status <"$at_status_file"
 
52371
#AT_STOP_742
 
52372
#AT_START_743
 
52373
at_fn_group_banner 743 'ovsdb-query.at:444' \
 
52374
  "Boolean-distinct queries on scalars" "            " 54
 
52375
at_xfail=no
 
52376
(
 
52377
  $as_echo "743. $at_setup_line: testing $at_desc ..."
 
52378
  $at_traceon
 
52379
 
 
52380
 
 
52381
   { set +x
 
52382
$as_echo "$at_srcdir/ovsdb-query.at:444: test-ovsdb query-distinct \\
 
52383
    '{\"columns\":
 
52384
        {\"i\": {\"type\": \"integer\"},
 
52385
         \"r\": {\"type\": \"real\"},
 
52386
         \"b\": {\"type\": \"boolean\"},
 
52387
         \"s\": {\"type\": \"string\"},
 
52388
         \"u\": {\"type\": \"uuid\"}}}' \\
 
52389
    '[{\"i\": 0,
 
52390
       \"r\": 0.5,
 
52391
       \"b\": true,
 
52392
       \"s\": \"a\",
 
52393
       \"u\": [\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]},
 
52394
      {\"i\": 1,
 
52395
       \"r\": 1.5,
 
52396
       \"b\": false,
 
52397
       \"s\": \"b\",
 
52398
       \"u\": [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]},
 
52399
      {\"i\": 2,
 
52400
       \"r\": 2.5,
 
52401
       \"b\": true,
 
52402
       \"s\": \"c\",
 
52403
       \"u\": [\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]},
 
52404
      {\"i\": 3,
 
52405
       \"r\": 3.5,
 
52406
       \"b\": false,
 
52407
       \"s\": \"d\",
 
52408
       \"u\": [\"uuid\", \"62315898-64e0-40b9-b26f-ff74225303e6\"]},
 
52409
      {\"i\": 4,
 
52410
       \"r\": 4.5,
 
52411
       \"b\": true,
 
52412
       \"s\": \"e\",
 
52413
       \"u\": [\"uuid\", \"4a5127e2-0256-4a72-a7dc-6246213967c7\"]}]' \\
 
52414
    '[[],
 
52415
      [[\"i\", \"==\", 0]],
 
52416
      [[\"i\", \"!=\", 1]],
 
52417
      [[\"i\", \"<\", 2]],
 
52418
      [[\"i\", \"<=\", 3]],
 
52419
      [[\"i\", \">\", 2]],
 
52420
      [[\"i\", \">=\", 4]],
 
52421
      [[\"i\", \"includes\", 3]],
 
52422
      [[\"i\", \"excludes\", 2]],
 
52423
      [[\"r\", \"==\", 0.5]],
 
52424
      [[\"r\", \"!=\", 1.5]],
 
52425
      [[\"r\", \"<\", 2.5]],
 
52426
      [[\"r\", \"<=\", 3.5]],
 
52427
      [[\"r\", \">\", 4.5]],
 
52428
      [[\"r\", \">=\", 5.5]],
 
52429
      [[\"r\", \"includes\", 1]],
 
52430
      [[\"r\", \"excludes\", 3]],
 
52431
      [[\"b\", \"==\", true]],
 
52432
      [[\"b\", \"!=\", true]],
 
52433
      [[\"b\", \"includes\", false]],
 
52434
      [[\"b\", \"excludes\", true]],
 
52435
      [[\"s\", \"==\", \"a\"]],
 
52436
      [[\"s\", \"!=\", \"b\"]],
 
52437
      [[\"s\", \"includes\", \"c\"]],
 
52438
      [[\"s\", \"excludes\", \"d\"]],
 
52439
      [[\"u\", \"==\", [\"uuid\", \"b10d28f7-af18-4a67-9e78-2a6394516c59\"]]],
 
52440
      [[\"u\", \"!=\", [\"uuid\", \"9179ca6d-6d65-400a-b455-3ad92783a099\"]]],
 
52441
      [[\"u\", \"includes\",[\"uuid\", \"ad0fa355-8b84-4a36-a4b5-b2c1bfd91758\"]]]]' \\
 
52442
    '[\"b\"]'"
 
52443
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-query.at:444"
 
52444
( $at_check_trace; test-ovsdb query-distinct \
 
52445
    '{"columns":
 
52446
        {"i": {"type": "integer"},
 
52447
         "r": {"type": "real"},
 
52448
         "b": {"type": "boolean"},
 
52449
         "s": {"type": "string"},
 
52450
         "u": {"type": "uuid"}}}' \
 
52451
    '[{"i": 0,
 
52452
       "r": 0.5,
 
52453
       "b": true,
 
52454
       "s": "a",
 
52455
       "u": ["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]},
 
52456
      {"i": 1,
 
52457
       "r": 1.5,
 
52458
       "b": false,
 
52459
       "s": "b",
 
52460
       "u": ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]},
 
52461
      {"i": 2,
 
52462
       "r": 2.5,
 
52463
       "b": true,
 
52464
       "s": "c",
 
52465
       "u": ["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]},
 
52466
      {"i": 3,
 
52467
       "r": 3.5,
 
52468
       "b": false,
 
52469
       "s": "d",
 
52470
       "u": ["uuid", "62315898-64e0-40b9-b26f-ff74225303e6"]},
 
52471
      {"i": 4,
 
52472
       "r": 4.5,
 
52473
       "b": true,
 
52474
       "s": "e",
 
52475
       "u": ["uuid", "4a5127e2-0256-4a72-a7dc-6246213967c7"]}]' \
 
52476
    '[[],
 
52477
      [["i", "==", 0]],
 
52478
      [["i", "!=", 1]],
 
52479
      [["i", "<", 2]],
 
52480
      [["i", "<=", 3]],
 
52481
      [["i", ">", 2]],
 
52482
      [["i", ">=", 4]],
 
52483
      [["i", "includes", 3]],
 
52484
      [["i", "excludes", 2]],
 
52485
      [["r", "==", 0.5]],
 
52486
      [["r", "!=", 1.5]],
 
52487
      [["r", "<", 2.5]],
 
52488
      [["r", "<=", 3.5]],
 
52489
      [["r", ">", 4.5]],
 
52490
      [["r", ">=", 5.5]],
 
52491
      [["r", "includes", 1]],
 
52492
      [["r", "excludes", 3]],
 
52493
      [["b", "==", true]],
 
52494
      [["b", "!=", true]],
 
52495
      [["b", "includes", false]],
 
52496
      [["b", "excludes", true]],
 
52497
      [["s", "==", "a"]],
 
52498
      [["s", "!=", "b"]],
 
52499
      [["s", "includes", "c"]],
 
52500
      [["s", "excludes", "d"]],
 
52501
      [["u", "==", ["uuid", "b10d28f7-af18-4a67-9e78-2a6394516c59"]]],
 
52502
      [["u", "!=", ["uuid", "9179ca6d-6d65-400a-b455-3ad92783a099"]]],
 
52503
      [["u", "includes",["uuid", "ad0fa355-8b84-4a36-a4b5-b2c1bfd91758"]]]]' \
 
52504
    '["b"]'
 
52505
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52506
at_status=$? at_failed=false
 
52507
$at_check_filter
 
52508
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52509
echo >>"$at_stdout"; $as_echo "query  0: ababa
 
52510
query  1: a-a-a
 
52511
query  2: ababa
 
52512
query  3: ababa
 
52513
query  4: ababa
 
52514
query  5: ababa
 
52515
query  6: a-a-a
 
52516
query  7: -b-b-
 
52517
query  8: ababa
 
52518
query  9: a-a-a
 
52519
query 10: ababa
 
52520
query 11: ababa
 
52521
query 12: ababa
 
52522
query 13: -----
 
52523
query 14: -----
 
52524
query 15: -----
 
52525
query 16: ababa
 
52526
query 17: a-a-a
 
52527
query 18: -b-b-
 
52528
query 19: -b-b-
 
52529
query 20: -b-b-
 
52530
query 21: a-a-a
 
52531
query 22: ababa
 
52532
query 23: a-a-a
 
52533
query 24: ababa
 
52534
query 25: a-a-a
 
52535
query 26: ababa
 
52536
query 27: a-a-a
 
52537
" | \
 
52538
  $at_diff - "$at_stdout" || at_failed=:
 
52539
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-query.at:444"
 
52540
$at_failed && at_fn_log_failure
 
52541
$at_traceon; }
 
52542
 
 
52543
     set +x
 
52544
  $at_times_p && times >"$at_times_file"
 
52545
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52546
read at_status <"$at_status_file"
 
52547
#AT_STOP_743
 
52548
#AT_START_744
 
52549
at_fn_group_banner 744 'ovsdb-query.at:537' \
 
52550
  "parse colunn set containing bad name" "           " 54
 
52551
at_xfail=no
 
52552
(
 
52553
  $as_echo "744. $at_setup_line: testing $at_desc ..."
 
52554
  $at_traceon
 
52555
 
 
52556
 
 
52557
   { set +x
 
52558
$as_echo "$at_srcdir/ovsdb-query.at:537: test-ovsdb query-distinct \\
 
52559
    '{\"columns\": {\"i\": {\"type\": \"integer\"}}}' \\
 
52560
    '[{\"i\": 0}]' \\
 
52561
    '[[]]' \\
 
52562
    '[\"i\", \"bad\"]'"
 
52563
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-query.at:537"
 
52564
( $at_check_trace; test-ovsdb query-distinct \
 
52565
    '{"columns": {"i": {"type": "integer"}}}' \
 
52566
    '[{"i": 0}]' \
 
52567
    '[[]]' \
 
52568
    '["i", "bad"]'
 
52569
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52570
at_status=$? at_failed=false
 
52571
$at_check_filter
 
52572
echo stderr:; tee stderr <"$at_stderr"
 
52573
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
52574
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-query.at:537"
 
52575
$at_failed && at_fn_log_failure
 
52576
$at_traceon; }
 
52577
 
 
52578
 
 
52579
   { set +x
 
52580
$as_echo "$at_srcdir/ovsdb-query.at:537: if grep -F -e \"bad is not a valid column name\" stderr
 
52581
      then
 
52582
        :
 
52583
      else
 
52584
        exit 99
 
52585
      fi"
 
52586
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-query.at:537"
 
52587
( $at_check_trace; if grep -F -e "bad is not a valid column name" stderr
 
52588
      then
 
52589
        :
 
52590
      else
 
52591
        exit 99
 
52592
      fi
 
52593
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52594
at_status=$? at_failed=false
 
52595
$at_check_filter
 
52596
echo stderr:; cat "$at_stderr"
 
52597
echo stdout:; cat "$at_stdout"
 
52598
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-query.at:537"
 
52599
$at_failed && at_fn_log_failure
 
52600
$at_traceon; }
 
52601
 
 
52602
     set +x
 
52603
  $at_times_p && times >"$at_times_file"
 
52604
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52605
read at_status <"$at_status_file"
 
52606
#AT_STOP_744
 
52607
#AT_START_745
 
52608
at_fn_group_banner 745 'ovsdb-transaction.at:3' \
 
52609
  "empty table, empty transaction" "                 " 55
 
52610
at_xfail=no
 
52611
(
 
52612
  $as_echo "745. $at_setup_line: testing $at_desc ..."
 
52613
  $at_traceon
 
52614
 
 
52615
 
 
52616
   { set +x
 
52617
$as_echo "$at_srcdir/ovsdb-transaction.at:3: test-ovsdb transact \\
 
52618
    '[\"print\"]' \\
 
52619
    '[\"commit\"]' \\
 
52620
    '[\"print\"]' \\
 
52621
    '[\"abort\"]' \\
 
52622
    '[\"print\"]'"
 
52623
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:3"
 
52624
( $at_check_trace; test-ovsdb transact \
 
52625
    '["print"]' \
 
52626
    '["commit"]' \
 
52627
    '["print"]' \
 
52628
    '["abort"]' \
 
52629
    '["print"]'
 
52630
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52631
at_status=$? at_failed=false
 
52632
$at_check_filter
 
52633
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52634
echo >>"$at_stdout"; $as_echo "print:
 
52635
commit:
 
52636
print:
 
52637
abort:
 
52638
print:
 
52639
" | \
 
52640
  $at_diff - "$at_stdout" || at_failed=:
 
52641
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:3"
 
52642
$at_failed && at_fn_log_failure
 
52643
$at_traceon; }
 
52644
 
 
52645
     set +x
 
52646
  $at_times_p && times >"$at_times_file"
 
52647
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52648
read at_status <"$at_status_file"
 
52649
#AT_STOP_745
 
52650
#AT_START_746
 
52651
at_fn_group_banner 746 'ovsdb-transaction.at:17' \
 
52652
  "nonempty table, empty transaction" "              " 55
 
52653
at_xfail=no
 
52654
(
 
52655
  $as_echo "746. $at_setup_line: testing $at_desc ..."
 
52656
  $at_traceon
 
52657
 
 
52658
 
 
52659
   { set +x
 
52660
$as_echo "$at_srcdir/ovsdb-transaction.at:17: test-ovsdb transact \\
 
52661
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
52662
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
52663
    '[\"print\"]' \\
 
52664
    '[\"commit\"]' \\
 
52665
    '[\"print\"]' \\
 
52666
    '[\"abort\"]' \\
 
52667
    '[\"print\"]'"
 
52668
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:17"
 
52669
( $at_check_trace; test-ovsdb transact \
 
52670
    '["insert", "1", "2", "3"]' \
 
52671
    '["insert", "2", "2", "3"]' \
 
52672
    '["print"]' \
 
52673
    '["commit"]' \
 
52674
    '["print"]' \
 
52675
    '["abort"]' \
 
52676
    '["print"]'
 
52677
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52678
at_status=$? at_failed=false
 
52679
$at_check_filter
 
52680
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52681
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
52682
insert 2 2 3:
 
52683
print:
 
52684
1: i=2, j=3
 
52685
2: i=2, j=3
 
52686
commit:
 
52687
print:
 
52688
1: i=2, j=3
 
52689
2: i=2, j=3
 
52690
abort:
 
52691
print:
 
52692
1: i=2, j=3
 
52693
2: i=2, j=3
 
52694
" | \
 
52695
  $at_diff - "$at_stdout" || at_failed=:
 
52696
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:17"
 
52697
$at_failed && at_fn_log_failure
 
52698
$at_traceon; }
 
52699
 
 
52700
     set +x
 
52701
  $at_times_p && times >"$at_times_file"
 
52702
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52703
read at_status <"$at_status_file"
 
52704
#AT_STOP_746
 
52705
#AT_START_747
 
52706
at_fn_group_banner 747 'ovsdb-transaction.at:41' \
 
52707
  "insert, commit" "                                 " 55
 
52708
at_xfail=no
 
52709
(
 
52710
  $as_echo "747. $at_setup_line: testing $at_desc ..."
 
52711
  $at_traceon
 
52712
 
 
52713
 
 
52714
   { set +x
 
52715
$as_echo "$at_srcdir/ovsdb-transaction.at:41: test-ovsdb transact \\
 
52716
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
52717
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
52718
    '[\"commit\"]' \\
 
52719
    '[\"print\"]' \\
 
52720
    '[\"insert\", \"3\", \"1\", \"2\"]' \\
 
52721
    '[\"print\"]' \\
 
52722
    '[\"commit\"]' \\
 
52723
    '[\"print\"]'"
 
52724
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:41"
 
52725
( $at_check_trace; test-ovsdb transact \
 
52726
    '["insert", "1", "2", "3"]' \
 
52727
    '["insert", "2", "2", "3"]' \
 
52728
    '["commit"]' \
 
52729
    '["print"]' \
 
52730
    '["insert", "3", "1", "2"]' \
 
52731
    '["print"]' \
 
52732
    '["commit"]' \
 
52733
    '["print"]'
 
52734
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52735
at_status=$? at_failed=false
 
52736
$at_check_filter
 
52737
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52738
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
52739
insert 2 2 3:
 
52740
commit:
 
52741
print:
 
52742
1: i=2, j=3
 
52743
2: i=2, j=3
 
52744
insert 3 1 2:
 
52745
print:
 
52746
1: i=2, j=3
 
52747
2: i=2, j=3
 
52748
3: i=1, j=2
 
52749
commit:
 
52750
print:
 
52751
1: i=2, j=3
 
52752
2: i=2, j=3
 
52753
3: i=1, j=2
 
52754
" | \
 
52755
  $at_diff - "$at_stdout" || at_failed=:
 
52756
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:41"
 
52757
$at_failed && at_fn_log_failure
 
52758
$at_traceon; }
 
52759
 
 
52760
     set +x
 
52761
  $at_times_p && times >"$at_times_file"
 
52762
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52763
read at_status <"$at_status_file"
 
52764
#AT_STOP_747
 
52765
#AT_START_748
 
52766
at_fn_group_banner 748 'ovsdb-transaction.at:70' \
 
52767
  "insert, abort" "                                  " 55
 
52768
at_xfail=no
 
52769
(
 
52770
  $as_echo "748. $at_setup_line: testing $at_desc ..."
 
52771
  $at_traceon
 
52772
 
 
52773
 
 
52774
   { set +x
 
52775
$as_echo "$at_srcdir/ovsdb-transaction.at:70: test-ovsdb transact \\
 
52776
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
52777
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
52778
    '[\"commit\"]' \\
 
52779
    '[\"print\"]' \\
 
52780
    '[\"insert\", \"3\", \"1\", \"2\"]' \\
 
52781
    '[\"print\"]' \\
 
52782
    '[\"abort\"]' \\
 
52783
    '[\"print\"]'"
 
52784
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:70"
 
52785
( $at_check_trace; test-ovsdb transact \
 
52786
    '["insert", "1", "2", "3"]' \
 
52787
    '["insert", "2", "2", "3"]' \
 
52788
    '["commit"]' \
 
52789
    '["print"]' \
 
52790
    '["insert", "3", "1", "2"]' \
 
52791
    '["print"]' \
 
52792
    '["abort"]' \
 
52793
    '["print"]'
 
52794
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52795
at_status=$? at_failed=false
 
52796
$at_check_filter
 
52797
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52798
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
52799
insert 2 2 3:
 
52800
commit:
 
52801
print:
 
52802
1: i=2, j=3
 
52803
2: i=2, j=3
 
52804
insert 3 1 2:
 
52805
print:
 
52806
1: i=2, j=3
 
52807
2: i=2, j=3
 
52808
3: i=1, j=2
 
52809
abort:
 
52810
print:
 
52811
1: i=2, j=3
 
52812
2: i=2, j=3
 
52813
" | \
 
52814
  $at_diff - "$at_stdout" || at_failed=:
 
52815
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:70"
 
52816
$at_failed && at_fn_log_failure
 
52817
$at_traceon; }
 
52818
 
 
52819
     set +x
 
52820
  $at_times_p && times >"$at_times_file"
 
52821
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52822
read at_status <"$at_status_file"
 
52823
#AT_STOP_748
 
52824
#AT_START_749
 
52825
at_fn_group_banner 749 'ovsdb-transaction.at:98' \
 
52826
  "modify, commit" "                                 " 55
 
52827
at_xfail=no
 
52828
(
 
52829
  $as_echo "749. $at_setup_line: testing $at_desc ..."
 
52830
  $at_traceon
 
52831
 
 
52832
 
 
52833
   { set +x
 
52834
$as_echo "$at_srcdir/ovsdb-transaction.at:98: test-ovsdb transact \\
 
52835
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
52836
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
52837
    '[\"commit\"]' \\
 
52838
    '[\"print\"]' \\
 
52839
    '[\"modify\", \"2\", \"5\", \"-1\"]' \\
 
52840
    '[\"modify\", \"1\", \"-1\", \"4\"]' \\
 
52841
    '[\"print\"]' \\
 
52842
    '[\"commit\"]' \\
 
52843
    '[\"print\"]'"
 
52844
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:98"
 
52845
( $at_check_trace; test-ovsdb transact \
 
52846
    '["insert", "1", "2", "3"]' \
 
52847
    '["insert", "2", "2", "3"]' \
 
52848
    '["commit"]' \
 
52849
    '["print"]' \
 
52850
    '["modify", "2", "5", "-1"]' \
 
52851
    '["modify", "1", "-1", "4"]' \
 
52852
    '["print"]' \
 
52853
    '["commit"]' \
 
52854
    '["print"]'
 
52855
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52856
at_status=$? at_failed=false
 
52857
$at_check_filter
 
52858
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52859
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
52860
insert 2 2 3:
 
52861
commit:
 
52862
print:
 
52863
1: i=2, j=3
 
52864
2: i=2, j=3
 
52865
modify 2 5 -1:
 
52866
modify 1 -1 4:
 
52867
print:
 
52868
1: i=2, j=4
 
52869
2: i=5, j=3
 
52870
commit:
 
52871
print:
 
52872
1: i=2, j=4
 
52873
2: i=5, j=3
 
52874
" | \
 
52875
  $at_diff - "$at_stdout" || at_failed=:
 
52876
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:98"
 
52877
$at_failed && at_fn_log_failure
 
52878
$at_traceon; }
 
52879
 
 
52880
     set +x
 
52881
  $at_times_p && times >"$at_times_file"
 
52882
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52883
read at_status <"$at_status_file"
 
52884
#AT_STOP_749
 
52885
#AT_START_750
 
52886
at_fn_group_banner 750 'ovsdb-transaction.at:127' \
 
52887
  "modify, abort" "                                  " 55
 
52888
at_xfail=no
 
52889
(
 
52890
  $as_echo "750. $at_setup_line: testing $at_desc ..."
 
52891
  $at_traceon
 
52892
 
 
52893
 
 
52894
   { set +x
 
52895
$as_echo "$at_srcdir/ovsdb-transaction.at:127: test-ovsdb transact \\
 
52896
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
52897
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
52898
    '[\"commit\"]' \\
 
52899
    '[\"print\"]' \\
 
52900
    '[\"modify\", \"2\", \"5\", \"-1\"]' \\
 
52901
    '[\"modify\", \"1\", \"-1\", \"4\"]' \\
 
52902
    '[\"print\"]' \\
 
52903
    '[\"abort\"]' \\
 
52904
    '[\"print\"]'"
 
52905
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:127"
 
52906
( $at_check_trace; test-ovsdb transact \
 
52907
    '["insert", "1", "2", "3"]' \
 
52908
    '["insert", "2", "2", "3"]' \
 
52909
    '["commit"]' \
 
52910
    '["print"]' \
 
52911
    '["modify", "2", "5", "-1"]' \
 
52912
    '["modify", "1", "-1", "4"]' \
 
52913
    '["print"]' \
 
52914
    '["abort"]' \
 
52915
    '["print"]'
 
52916
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52917
at_status=$? at_failed=false
 
52918
$at_check_filter
 
52919
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52920
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
52921
insert 2 2 3:
 
52922
commit:
 
52923
print:
 
52924
1: i=2, j=3
 
52925
2: i=2, j=3
 
52926
modify 2 5 -1:
 
52927
modify 1 -1 4:
 
52928
print:
 
52929
1: i=2, j=4
 
52930
2: i=5, j=3
 
52931
abort:
 
52932
print:
 
52933
1: i=2, j=3
 
52934
2: i=2, j=3
 
52935
" | \
 
52936
  $at_diff - "$at_stdout" || at_failed=:
 
52937
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:127"
 
52938
$at_failed && at_fn_log_failure
 
52939
$at_traceon; }
 
52940
 
 
52941
     set +x
 
52942
  $at_times_p && times >"$at_times_file"
 
52943
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
52944
read at_status <"$at_status_file"
 
52945
#AT_STOP_750
 
52946
#AT_START_751
 
52947
at_fn_group_banner 751 'ovsdb-transaction.at:156' \
 
52948
  "delete, commit" "                                 " 55
 
52949
at_xfail=no
 
52950
(
 
52951
  $as_echo "751. $at_setup_line: testing $at_desc ..."
 
52952
  $at_traceon
 
52953
 
 
52954
 
 
52955
   { set +x
 
52956
$as_echo "$at_srcdir/ovsdb-transaction.at:156: test-ovsdb transact \\
 
52957
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
52958
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
52959
    '[\"commit\"]' \\
 
52960
    '[\"print\"]' \\
 
52961
    '[\"delete\", \"1\"]' \\
 
52962
    '[\"print\"]' \\
 
52963
    '[\"commit\"]' \\
 
52964
    '[\"print\"]'"
 
52965
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:156"
 
52966
( $at_check_trace; test-ovsdb transact \
 
52967
    '["insert", "1", "2", "3"]' \
 
52968
    '["insert", "2", "2", "3"]' \
 
52969
    '["commit"]' \
 
52970
    '["print"]' \
 
52971
    '["delete", "1"]' \
 
52972
    '["print"]' \
 
52973
    '["commit"]' \
 
52974
    '["print"]'
 
52975
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
52976
at_status=$? at_failed=false
 
52977
$at_check_filter
 
52978
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
52979
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
52980
insert 2 2 3:
 
52981
commit:
 
52982
print:
 
52983
1: i=2, j=3
 
52984
2: i=2, j=3
 
52985
delete 1:
 
52986
print:
 
52987
2: i=2, j=3
 
52988
commit:
 
52989
print:
 
52990
2: i=2, j=3
 
52991
" | \
 
52992
  $at_diff - "$at_stdout" || at_failed=:
 
52993
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:156"
 
52994
$at_failed && at_fn_log_failure
 
52995
$at_traceon; }
 
52996
 
 
52997
     set +x
 
52998
  $at_times_p && times >"$at_times_file"
 
52999
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53000
read at_status <"$at_status_file"
 
53001
#AT_STOP_751
 
53002
#AT_START_752
 
53003
at_fn_group_banner 752 'ovsdb-transaction.at:181' \
 
53004
  "delete, abort" "                                  " 55
 
53005
at_xfail=no
 
53006
(
 
53007
  $as_echo "752. $at_setup_line: testing $at_desc ..."
 
53008
  $at_traceon
 
53009
 
 
53010
 
 
53011
   { set +x
 
53012
$as_echo "$at_srcdir/ovsdb-transaction.at:181: test-ovsdb transact \\
 
53013
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
53014
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
53015
    '[\"commit\"]' \\
 
53016
    '[\"print\"]' \\
 
53017
    '[\"delete\", \"1\"]' \\
 
53018
    '[\"print\"]' \\
 
53019
    '[\"abort\"]' \\
 
53020
    '[\"print\"]'"
 
53021
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:181"
 
53022
( $at_check_trace; test-ovsdb transact \
 
53023
    '["insert", "1", "2", "3"]' \
 
53024
    '["insert", "2", "2", "3"]' \
 
53025
    '["commit"]' \
 
53026
    '["print"]' \
 
53027
    '["delete", "1"]' \
 
53028
    '["print"]' \
 
53029
    '["abort"]' \
 
53030
    '["print"]'
 
53031
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53032
at_status=$? at_failed=false
 
53033
$at_check_filter
 
53034
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53035
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
53036
insert 2 2 3:
 
53037
commit:
 
53038
print:
 
53039
1: i=2, j=3
 
53040
2: i=2, j=3
 
53041
delete 1:
 
53042
print:
 
53043
2: i=2, j=3
 
53044
abort:
 
53045
print:
 
53046
1: i=2, j=3
 
53047
2: i=2, j=3
 
53048
" | \
 
53049
  $at_diff - "$at_stdout" || at_failed=:
 
53050
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:181"
 
53051
$at_failed && at_fn_log_failure
 
53052
$at_traceon; }
 
53053
 
 
53054
     set +x
 
53055
  $at_times_p && times >"$at_times_file"
 
53056
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53057
read at_status <"$at_status_file"
 
53058
#AT_STOP_752
 
53059
#AT_START_753
 
53060
at_fn_group_banner 753 'ovsdb-transaction.at:207' \
 
53061
  "modify, delete, commit" "                         " 55
 
53062
at_xfail=no
 
53063
(
 
53064
  $as_echo "753. $at_setup_line: testing $at_desc ..."
 
53065
  $at_traceon
 
53066
 
 
53067
 
 
53068
   { set +x
 
53069
$as_echo "$at_srcdir/ovsdb-transaction.at:207: test-ovsdb transact \\
 
53070
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
53071
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
53072
    '[\"commit\"]' \\
 
53073
    '[\"print\"]' \\
 
53074
    '[\"modify\", \"1\", \"5\", \"6\"]' \\
 
53075
    '[\"delete\", \"1\"]' \\
 
53076
    '[\"print\"]' \\
 
53077
    '[\"commit\"]' \\
 
53078
    '[\"print\"]'"
 
53079
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:207"
 
53080
( $at_check_trace; test-ovsdb transact \
 
53081
    '["insert", "1", "2", "3"]' \
 
53082
    '["insert", "2", "2", "3"]' \
 
53083
    '["commit"]' \
 
53084
    '["print"]' \
 
53085
    '["modify", "1", "5", "6"]' \
 
53086
    '["delete", "1"]' \
 
53087
    '["print"]' \
 
53088
    '["commit"]' \
 
53089
    '["print"]'
 
53090
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53091
at_status=$? at_failed=false
 
53092
$at_check_filter
 
53093
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53094
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
53095
insert 2 2 3:
 
53096
commit:
 
53097
print:
 
53098
1: i=2, j=3
 
53099
2: i=2, j=3
 
53100
modify 1 5 6:
 
53101
delete 1:
 
53102
print:
 
53103
2: i=2, j=3
 
53104
commit:
 
53105
print:
 
53106
2: i=2, j=3
 
53107
" | \
 
53108
  $at_diff - "$at_stdout" || at_failed=:
 
53109
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:207"
 
53110
$at_failed && at_fn_log_failure
 
53111
$at_traceon; }
 
53112
 
 
53113
     set +x
 
53114
  $at_times_p && times >"$at_times_file"
 
53115
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53116
read at_status <"$at_status_file"
 
53117
#AT_STOP_753
 
53118
#AT_START_754
 
53119
at_fn_group_banner 754 'ovsdb-transaction.at:234' \
 
53120
  "modify, delete, abort" "                          " 55
 
53121
at_xfail=no
 
53122
(
 
53123
  $as_echo "754. $at_setup_line: testing $at_desc ..."
 
53124
  $at_traceon
 
53125
 
 
53126
 
 
53127
   { set +x
 
53128
$as_echo "$at_srcdir/ovsdb-transaction.at:234: test-ovsdb transact \\
 
53129
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
53130
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
53131
    '[\"commit\"]' \\
 
53132
    '[\"print\"]' \\
 
53133
    '[\"modify\", \"1\", \"5\", \"6\"]' \\
 
53134
    '[\"delete\", \"1\"]' \\
 
53135
    '[\"print\"]' \\
 
53136
    '[\"abort\"]' \\
 
53137
    '[\"print\"]'"
 
53138
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:234"
 
53139
( $at_check_trace; test-ovsdb transact \
 
53140
    '["insert", "1", "2", "3"]' \
 
53141
    '["insert", "2", "2", "3"]' \
 
53142
    '["commit"]' \
 
53143
    '["print"]' \
 
53144
    '["modify", "1", "5", "6"]' \
 
53145
    '["delete", "1"]' \
 
53146
    '["print"]' \
 
53147
    '["abort"]' \
 
53148
    '["print"]'
 
53149
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53150
at_status=$? at_failed=false
 
53151
$at_check_filter
 
53152
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53153
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
53154
insert 2 2 3:
 
53155
commit:
 
53156
print:
 
53157
1: i=2, j=3
 
53158
2: i=2, j=3
 
53159
modify 1 5 6:
 
53160
delete 1:
 
53161
print:
 
53162
2: i=2, j=3
 
53163
abort:
 
53164
print:
 
53165
1: i=2, j=3
 
53166
2: i=2, j=3
 
53167
" | \
 
53168
  $at_diff - "$at_stdout" || at_failed=:
 
53169
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:234"
 
53170
$at_failed && at_fn_log_failure
 
53171
$at_traceon; }
 
53172
 
 
53173
     set +x
 
53174
  $at_times_p && times >"$at_times_file"
 
53175
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53176
read at_status <"$at_status_file"
 
53177
#AT_STOP_754
 
53178
#AT_START_755
 
53179
at_fn_group_banner 755 'ovsdb-transaction.at:262' \
 
53180
  "insert, delete, commit" "                         " 55
 
53181
at_xfail=no
 
53182
(
 
53183
  $as_echo "755. $at_setup_line: testing $at_desc ..."
 
53184
  $at_traceon
 
53185
 
 
53186
 
 
53187
   { set +x
 
53188
$as_echo "$at_srcdir/ovsdb-transaction.at:262: test-ovsdb transact \\
 
53189
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
53190
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
53191
    '[\"commit\"]' \\
 
53192
    '[\"print\"]' \\
 
53193
    '[\"insert\", \"3\", \"5\", \"6\"]' \\
 
53194
    '[\"delete\", \"1\"]' \\
 
53195
    '[\"delete\", \"3\"]' \\
 
53196
    '[\"print\"]' \\
 
53197
    '[\"commit\"]' \\
 
53198
    '[\"print\"]'"
 
53199
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:262"
 
53200
( $at_check_trace; test-ovsdb transact \
 
53201
    '["insert", "1", "2", "3"]' \
 
53202
    '["insert", "2", "2", "3"]' \
 
53203
    '["commit"]' \
 
53204
    '["print"]' \
 
53205
    '["insert", "3", "5", "6"]' \
 
53206
    '["delete", "1"]' \
 
53207
    '["delete", "3"]' \
 
53208
    '["print"]' \
 
53209
    '["commit"]' \
 
53210
    '["print"]'
 
53211
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53212
at_status=$? at_failed=false
 
53213
$at_check_filter
 
53214
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53215
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
53216
insert 2 2 3:
 
53217
commit:
 
53218
print:
 
53219
1: i=2, j=3
 
53220
2: i=2, j=3
 
53221
insert 3 5 6:
 
53222
delete 1:
 
53223
delete 3:
 
53224
print:
 
53225
2: i=2, j=3
 
53226
commit:
 
53227
print:
 
53228
2: i=2, j=3
 
53229
" | \
 
53230
  $at_diff - "$at_stdout" || at_failed=:
 
53231
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:262"
 
53232
$at_failed && at_fn_log_failure
 
53233
$at_traceon; }
 
53234
 
 
53235
     set +x
 
53236
  $at_times_p && times >"$at_times_file"
 
53237
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53238
read at_status <"$at_status_file"
 
53239
#AT_STOP_755
 
53240
#AT_START_756
 
53241
at_fn_group_banner 756 'ovsdb-transaction.at:291' \
 
53242
  "insert, delete, abort" "                          " 55
 
53243
at_xfail=no
 
53244
(
 
53245
  $as_echo "756. $at_setup_line: testing $at_desc ..."
 
53246
  $at_traceon
 
53247
 
 
53248
 
 
53249
   { set +x
 
53250
$as_echo "$at_srcdir/ovsdb-transaction.at:291: test-ovsdb transact \\
 
53251
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
53252
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
53253
    '[\"commit\"]' \\
 
53254
    '[\"print\"]' \\
 
53255
    '[\"insert\", \"3\", \"5\", \"6\"]' \\
 
53256
    '[\"delete\", \"1\"]' \\
 
53257
    '[\"delete\", \"3\"]' \\
 
53258
    '[\"print\"]' \\
 
53259
    '[\"abort\"]' \\
 
53260
    '[\"print\"]'"
 
53261
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:291"
 
53262
( $at_check_trace; test-ovsdb transact \
 
53263
    '["insert", "1", "2", "3"]' \
 
53264
    '["insert", "2", "2", "3"]' \
 
53265
    '["commit"]' \
 
53266
    '["print"]' \
 
53267
    '["insert", "3", "5", "6"]' \
 
53268
    '["delete", "1"]' \
 
53269
    '["delete", "3"]' \
 
53270
    '["print"]' \
 
53271
    '["abort"]' \
 
53272
    '["print"]'
 
53273
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53274
at_status=$? at_failed=false
 
53275
$at_check_filter
 
53276
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53277
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
53278
insert 2 2 3:
 
53279
commit:
 
53280
print:
 
53281
1: i=2, j=3
 
53282
2: i=2, j=3
 
53283
insert 3 5 6:
 
53284
delete 1:
 
53285
delete 3:
 
53286
print:
 
53287
2: i=2, j=3
 
53288
abort:
 
53289
print:
 
53290
1: i=2, j=3
 
53291
2: i=2, j=3
 
53292
" | \
 
53293
  $at_diff - "$at_stdout" || at_failed=:
 
53294
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:291"
 
53295
$at_failed && at_fn_log_failure
 
53296
$at_traceon; }
 
53297
 
 
53298
     set +x
 
53299
  $at_times_p && times >"$at_times_file"
 
53300
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53301
read at_status <"$at_status_file"
 
53302
#AT_STOP_756
 
53303
#AT_START_757
 
53304
at_fn_group_banner 757 'ovsdb-transaction.at:322' \
 
53305
  "insert, modify, delete, commit" "                 " 55
 
53306
at_xfail=no
 
53307
(
 
53308
  $as_echo "757. $at_setup_line: testing $at_desc ..."
 
53309
  $at_traceon
 
53310
 
 
53311
 
 
53312
   { set +x
 
53313
$as_echo "$at_srcdir/ovsdb-transaction.at:322: test-ovsdb transact \\
 
53314
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
53315
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
53316
    '[\"commit\"]' \\
 
53317
    '[\"print\"]' \\
 
53318
    '[\"insert\", \"3\", \"5\", \"6\"]' \\
 
53319
    '[\"delete\", \"1\"]' \\
 
53320
    '[\"modify\", \"3\", \"7\", \"8\"]' \\
 
53321
    '[\"delete\", \"3\"]' \\
 
53322
    '[\"print\"]' \\
 
53323
    '[\"commit\"]' \\
 
53324
    '[\"print\"]'"
 
53325
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:322"
 
53326
( $at_check_trace; test-ovsdb transact \
 
53327
    '["insert", "1", "2", "3"]' \
 
53328
    '["insert", "2", "2", "3"]' \
 
53329
    '["commit"]' \
 
53330
    '["print"]' \
 
53331
    '["insert", "3", "5", "6"]' \
 
53332
    '["delete", "1"]' \
 
53333
    '["modify", "3", "7", "8"]' \
 
53334
    '["delete", "3"]' \
 
53335
    '["print"]' \
 
53336
    '["commit"]' \
 
53337
    '["print"]'
 
53338
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53339
at_status=$? at_failed=false
 
53340
$at_check_filter
 
53341
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53342
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
53343
insert 2 2 3:
 
53344
commit:
 
53345
print:
 
53346
1: i=2, j=3
 
53347
2: i=2, j=3
 
53348
insert 3 5 6:
 
53349
delete 1:
 
53350
modify 3 7 8:
 
53351
delete 3:
 
53352
print:
 
53353
2: i=2, j=3
 
53354
commit:
 
53355
print:
 
53356
2: i=2, j=3
 
53357
" | \
 
53358
  $at_diff - "$at_stdout" || at_failed=:
 
53359
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:322"
 
53360
$at_failed && at_fn_log_failure
 
53361
$at_traceon; }
 
53362
 
 
53363
     set +x
 
53364
  $at_times_p && times >"$at_times_file"
 
53365
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53366
read at_status <"$at_status_file"
 
53367
#AT_STOP_757
 
53368
#AT_START_758
 
53369
at_fn_group_banner 758 'ovsdb-transaction.at:353' \
 
53370
  "insert, modify, delete, abort" "                  " 55
 
53371
at_xfail=no
 
53372
(
 
53373
  $as_echo "758. $at_setup_line: testing $at_desc ..."
 
53374
  $at_traceon
 
53375
 
 
53376
 
 
53377
   { set +x
 
53378
$as_echo "$at_srcdir/ovsdb-transaction.at:353: test-ovsdb transact \\
 
53379
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
53380
    '[\"insert\", \"2\", \"2\", \"3\"]' \\
 
53381
    '[\"commit\"]' \\
 
53382
    '[\"print\"]' \\
 
53383
    '[\"insert\", \"3\", \"5\", \"6\"]' \\
 
53384
    '[\"delete\", \"1\"]' \\
 
53385
    '[\"modify\", \"3\", \"7\", \"8\"]' \\
 
53386
    '[\"delete\", \"3\"]' \\
 
53387
    '[\"print\"]' \\
 
53388
    '[\"abort\"]' \\
 
53389
    '[\"print\"]'"
 
53390
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:353"
 
53391
( $at_check_trace; test-ovsdb transact \
 
53392
    '["insert", "1", "2", "3"]' \
 
53393
    '["insert", "2", "2", "3"]' \
 
53394
    '["commit"]' \
 
53395
    '["print"]' \
 
53396
    '["insert", "3", "5", "6"]' \
 
53397
    '["delete", "1"]' \
 
53398
    '["modify", "3", "7", "8"]' \
 
53399
    '["delete", "3"]' \
 
53400
    '["print"]' \
 
53401
    '["abort"]' \
 
53402
    '["print"]'
 
53403
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53404
at_status=$? at_failed=false
 
53405
$at_check_filter
 
53406
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53407
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
53408
insert 2 2 3:
 
53409
commit:
 
53410
print:
 
53411
1: i=2, j=3
 
53412
2: i=2, j=3
 
53413
insert 3 5 6:
 
53414
delete 1:
 
53415
modify 3 7 8:
 
53416
delete 3:
 
53417
print:
 
53418
2: i=2, j=3
 
53419
abort:
 
53420
print:
 
53421
1: i=2, j=3
 
53422
2: i=2, j=3
 
53423
" | \
 
53424
  $at_diff - "$at_stdout" || at_failed=:
 
53425
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:353"
 
53426
$at_failed && at_fn_log_failure
 
53427
$at_traceon; }
 
53428
 
 
53429
     set +x
 
53430
  $at_times_p && times >"$at_times_file"
 
53431
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53432
read at_status <"$at_status_file"
 
53433
#AT_STOP_758
 
53434
#AT_START_759
 
53435
at_fn_group_banner 759 'ovsdb-transaction.at:385' \
 
53436
  "deletes are aborted cleanly" "                    " 55
 
53437
at_xfail=no
 
53438
(
 
53439
  $as_echo "759. $at_setup_line: testing $at_desc ..."
 
53440
  $at_traceon
 
53441
 
 
53442
 
 
53443
   { set +x
 
53444
$as_echo "$at_srcdir/ovsdb-transaction.at:385: test-ovsdb transact \\
 
53445
    '[\"insert\", \"1\", \"2\", \"3\"]' \\
 
53446
    '[\"commit\"]' \\
 
53447
    '[\"print\"]' \\
 
53448
    '[\"delete\", \"1\"]' \\
 
53449
    '[\"abort\"]' \\
 
53450
    '[\"print\"]' \\
 
53451
    '[\"delete\", \"1\"]' \\
 
53452
    '[\"abort\"]' \\
 
53453
    '[\"print\"]'"
 
53454
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-transaction.at:385"
 
53455
( $at_check_trace; test-ovsdb transact \
 
53456
    '["insert", "1", "2", "3"]' \
 
53457
    '["commit"]' \
 
53458
    '["print"]' \
 
53459
    '["delete", "1"]' \
 
53460
    '["abort"]' \
 
53461
    '["print"]' \
 
53462
    '["delete", "1"]' \
 
53463
    '["abort"]' \
 
53464
    '["print"]'
 
53465
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53466
at_status=$? at_failed=false
 
53467
$at_check_filter
 
53468
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53469
echo >>"$at_stdout"; $as_echo "insert 1 2 3:
 
53470
commit:
 
53471
print:
 
53472
1: i=2, j=3
 
53473
delete 1:
 
53474
abort:
 
53475
print:
 
53476
1: i=2, j=3
 
53477
delete 1:
 
53478
abort:
 
53479
print:
 
53480
1: i=2, j=3
 
53481
" | \
 
53482
  $at_diff - "$at_stdout" || at_failed=:
 
53483
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-transaction.at:385"
 
53484
$at_failed && at_fn_log_failure
 
53485
$at_traceon; }
 
53486
 
 
53487
     set +x
 
53488
  $at_times_p && times >"$at_times_file"
 
53489
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53490
read at_status <"$at_status_file"
 
53491
#AT_STOP_759
 
53492
#AT_START_760
 
53493
at_fn_group_banner 760 'ovsdb-execution.at:120' \
 
53494
  "uuid-name must be <id>" "                         " 56
 
53495
at_xfail=no
 
53496
(
 
53497
  $as_echo "760. $at_setup_line: testing $at_desc ..."
 
53498
  $at_traceon
 
53499
 
 
53500
 
 
53501
   { set +x
 
53502
$as_echo "$at_srcdir/ovsdb-execution.at:120: test-ovsdb execute '{\"name\": \"constraints\",
 
53503
     \"tables\": {
 
53504
       \"a\": {
 
53505
         \"columns\": {
 
53506
           \"a\": {\"type\": \"integer\"},
 
53507
           \"a2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
53508
                            \"min\": 0, \"max\": \"unlimited\"}},
 
53509
           \"a2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
53510
                            \"min\": 0, \"max\": \"unlimited\"}}}},
 
53511
       \"b\": {
 
53512
         \"columns\": {
 
53513
           \"b\": {\"type\": \"integer\"},
 
53514
           \"b2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
53515
                            \"min\": 0, \"max\": \"unlimited\"}},
 
53516
           \"b2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
53517
                            \"min\": 0, \"max\": \"unlimited\"}},
 
53518
           \"x\": {\"type\": {\"key\": \"integer\", \"min\": 1, \"max\": 2}}}},
 
53519
       \"constrained\": {
 
53520
         \"columns\": {
 
53521
           \"positive\": {\"type\": {\"key\": {\"type\": \"integer\",
 
53522
                                         \"minInteger\": 1}}}},
 
53523
         \"maxRows\": 1}}}'  '[\"constraints\",
 
53524
      {\"op\": \"insert\",
 
53525
       \"table\": \"a\",
 
53526
       \"row\": {},
 
53527
       \"uuid-name\": \"0\"}]'"
 
53528
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:120"
 
53529
( $at_check_trace; test-ovsdb execute '{"name": "constraints",
 
53530
     "tables": {
 
53531
       "a": {
 
53532
         "columns": {
 
53533
           "a": {"type": "integer"},
 
53534
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
53535
                            "min": 0, "max": "unlimited"}},
 
53536
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
53537
                            "min": 0, "max": "unlimited"}}}},
 
53538
       "b": {
 
53539
         "columns": {
 
53540
           "b": {"type": "integer"},
 
53541
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
53542
                            "min": 0, "max": "unlimited"}},
 
53543
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
53544
                            "min": 0, "max": "unlimited"}},
 
53545
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
53546
       "constrained": {
 
53547
         "columns": {
 
53548
           "positive": {"type": {"key": {"type": "integer",
 
53549
                                         "minInteger": 1}}}},
 
53550
         "maxRows": 1}}}'  '["constraints",
 
53551
      {"op": "insert",
 
53552
       "table": "a",
 
53553
       "row": {},
 
53554
       "uuid-name": "0"}]'
 
53555
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53556
at_status=$? at_failed=false
 
53557
$at_check_filter
 
53558
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53559
echo stdout:; tee stdout <"$at_stdout"
 
53560
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:120"
 
53561
$at_failed && at_fn_log_failure
 
53562
$at_traceon; }
 
53563
 
 
53564
   { set +x
 
53565
$as_echo "$at_srcdir/ovsdb-execution.at:120: perl \$srcdir/uuidfilt.pl stdout"
 
53566
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:120"
 
53567
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
53568
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53569
at_status=$? at_failed=false
 
53570
$at_check_filter
 
53571
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53572
echo >>"$at_stdout"; $as_echo "[{\"details\":\"Parsing ovsdb operation 1 of 1 failed: Type mismatch for member 'uuid-name'.\",\"error\":\"syntax error\",\"syntax\":\"{\\\"op\\\":\\\"insert\\\",\\\"row\\\":{},\\\"table\\\":\\\"a\\\",\\\"uuid-name\\\":\\\"0\\\"}\"}]
 
53573
" | \
 
53574
  $at_diff - "$at_stdout" || at_failed=:
 
53575
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:120"
 
53576
$at_failed && at_fn_log_failure
 
53577
$at_traceon; }
 
53578
 
 
53579
     set +x
 
53580
  $at_times_p && times >"$at_times_file"
 
53581
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53582
read at_status <"$at_status_file"
 
53583
#AT_STOP_760
 
53584
#AT_START_761
 
53585
at_fn_group_banner 761 'ovsdb-execution.at:130' \
 
53586
  "named-uuid must be <id>" "                        " 56
 
53587
at_xfail=no
 
53588
(
 
53589
  $as_echo "761. $at_setup_line: testing $at_desc ..."
 
53590
  $at_traceon
 
53591
 
 
53592
 
 
53593
   { set +x
 
53594
$as_echo "$at_srcdir/ovsdb-execution.at:130: test-ovsdb execute '{\"name\": \"constraints\",
 
53595
     \"tables\": {
 
53596
       \"a\": {
 
53597
         \"columns\": {
 
53598
           \"a\": {\"type\": \"integer\"},
 
53599
           \"a2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
53600
                            \"min\": 0, \"max\": \"unlimited\"}},
 
53601
           \"a2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
53602
                            \"min\": 0, \"max\": \"unlimited\"}}}},
 
53603
       \"b\": {
 
53604
         \"columns\": {
 
53605
           \"b\": {\"type\": \"integer\"},
 
53606
           \"b2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
53607
                            \"min\": 0, \"max\": \"unlimited\"}},
 
53608
           \"b2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
53609
                            \"min\": 0, \"max\": \"unlimited\"}},
 
53610
           \"x\": {\"type\": {\"key\": \"integer\", \"min\": 1, \"max\": 2}}}},
 
53611
       \"constrained\": {
 
53612
         \"columns\": {
 
53613
           \"positive\": {\"type\": {\"key\": {\"type\": \"integer\",
 
53614
                                         \"minInteger\": 1}}}},
 
53615
         \"maxRows\": 1}}}'  '[\"constraints\",
 
53616
      {\"op\": \"insert\",
 
53617
       \"table\": \"a\",
 
53618
       \"row\": {\"a2a\": [\"named-uuid\", \"0\"]}}]'"
 
53619
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:130"
 
53620
( $at_check_trace; test-ovsdb execute '{"name": "constraints",
 
53621
     "tables": {
 
53622
       "a": {
 
53623
         "columns": {
 
53624
           "a": {"type": "integer"},
 
53625
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
53626
                            "min": 0, "max": "unlimited"}},
 
53627
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
53628
                            "min": 0, "max": "unlimited"}}}},
 
53629
       "b": {
 
53630
         "columns": {
 
53631
           "b": {"type": "integer"},
 
53632
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
53633
                            "min": 0, "max": "unlimited"}},
 
53634
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
53635
                            "min": 0, "max": "unlimited"}},
 
53636
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
53637
       "constrained": {
 
53638
         "columns": {
 
53639
           "positive": {"type": {"key": {"type": "integer",
 
53640
                                         "minInteger": 1}}}},
 
53641
         "maxRows": 1}}}'  '["constraints",
 
53642
      {"op": "insert",
 
53643
       "table": "a",
 
53644
       "row": {"a2a": ["named-uuid", "0"]}}]'
 
53645
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53646
at_status=$? at_failed=false
 
53647
$at_check_filter
 
53648
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53649
echo stdout:; tee stdout <"$at_stdout"
 
53650
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:130"
 
53651
$at_failed && at_fn_log_failure
 
53652
$at_traceon; }
 
53653
 
 
53654
   { set +x
 
53655
$as_echo "$at_srcdir/ovsdb-execution.at:130: perl \$srcdir/uuidfilt.pl stdout"
 
53656
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:130"
 
53657
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
53658
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53659
at_status=$? at_failed=false
 
53660
$at_check_filter
 
53661
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53662
echo >>"$at_stdout"; $as_echo "[{\"details\":\"named-uuid string is not a valid <id>\",\"error\":\"syntax error\",\"syntax\":\"[\\\"named-uuid\\\",\\\"0\\\"]\"}]
 
53663
" | \
 
53664
  $at_diff - "$at_stdout" || at_failed=:
 
53665
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:130"
 
53666
$at_failed && at_fn_log_failure
 
53667
$at_traceon; }
 
53668
 
 
53669
     set +x
 
53670
  $at_times_p && times >"$at_times_file"
 
53671
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53672
read at_status <"$at_status_file"
 
53673
#AT_STOP_761
 
53674
#AT_START_762
 
53675
at_fn_group_banner 762 'ovsdb-execution.at:139' \
 
53676
  "duplicate uuid-name not allowed" "                " 56
 
53677
at_xfail=no
 
53678
(
 
53679
  $as_echo "762. $at_setup_line: testing $at_desc ..."
 
53680
  $at_traceon
 
53681
 
 
53682
 
 
53683
   { set +x
 
53684
$as_echo "$at_srcdir/ovsdb-execution.at:139: test-ovsdb execute '{\"name\": \"ordinals\",
 
53685
     \"tables\": {
 
53686
       \"ordinals\": {
 
53687
         \"columns\": {
 
53688
           \"number\": {\"type\": \"integer\"},
 
53689
           \"name\": {\"type\": \"string\"}},
 
53690
         \"indexes\": [[\"number\"]]}},
 
53691
     \"version\": \"5.1.3\",
 
53692
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
53693
      {\"op\": \"insert\",
 
53694
       \"table\": \"ordinals\",
 
53695
       \"row\": {},
 
53696
       \"uuid-name\": \"x\"},
 
53697
      {\"op\": \"insert\",
 
53698
       \"table\": \"ordinals\",
 
53699
       \"row\": {},
 
53700
       \"uuid-name\": \"x\"}]'"
 
53701
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:139"
 
53702
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
53703
     "tables": {
 
53704
       "ordinals": {
 
53705
         "columns": {
 
53706
           "number": {"type": "integer"},
 
53707
           "name": {"type": "string"}},
 
53708
         "indexes": [["number"]]}},
 
53709
     "version": "5.1.3",
 
53710
     "cksum": "12345678 9"}'  '["ordinals",
 
53711
      {"op": "insert",
 
53712
       "table": "ordinals",
 
53713
       "row": {},
 
53714
       "uuid-name": "x"},
 
53715
      {"op": "insert",
 
53716
       "table": "ordinals",
 
53717
       "row": {},
 
53718
       "uuid-name": "x"}]'
 
53719
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53720
at_status=$? at_failed=false
 
53721
$at_check_filter
 
53722
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53723
echo stdout:; tee stdout <"$at_stdout"
 
53724
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:139"
 
53725
$at_failed && at_fn_log_failure
 
53726
$at_traceon; }
 
53727
 
 
53728
   { set +x
 
53729
$as_echo "$at_srcdir/ovsdb-execution.at:139: perl \$srcdir/uuidfilt.pl stdout"
 
53730
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:139"
 
53731
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
53732
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53733
at_status=$? at_failed=false
 
53734
$at_check_filter
 
53735
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53736
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"details\":\"This \\\"uuid-name\\\" appeared on an earlier \\\"insert\\\" operation.\",\"error\":\"duplicate uuid-name\",\"syntax\":\"\\\"x\\\"\"}]
 
53737
" | \
 
53738
  $at_diff - "$at_stdout" || at_failed=:
 
53739
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:139"
 
53740
$at_failed && at_fn_log_failure
 
53741
$at_traceon; }
 
53742
 
 
53743
     set +x
 
53744
  $at_times_p && times >"$at_times_file"
 
53745
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53746
read at_status <"$at_status_file"
 
53747
#AT_STOP_762
 
53748
#AT_START_763
 
53749
at_fn_group_banner 763 'ovsdb-execution.at:1038' \
 
53750
  "insert default row, query table" "                " 56
 
53751
at_xfail=no
 
53752
(
 
53753
  $as_echo "763. $at_setup_line: testing $at_desc ..."
 
53754
  $at_traceon
 
53755
 
 
53756
 
 
53757
   { set +x
 
53758
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
53759
     \"tables\": {
 
53760
       \"ordinals\": {
 
53761
         \"columns\": {
 
53762
           \"number\": {\"type\": \"integer\"},
 
53763
           \"name\": {\"type\": \"string\"}},
 
53764
         \"indexes\": [[\"number\"]]}},
 
53765
     \"version\": \"5.1.3\",
 
53766
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
53767
      {\"op\": \"insert\",
 
53768
       \"table\": \"ordinals\",
 
53769
       \"row\": {}}]' '[\"ordinals\",
 
53770
      {\"op\": \"select\",
 
53771
       \"table\": \"ordinals\",
 
53772
       \"where\": []}]'"
 
53773
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
53774
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
53775
     "tables": {
 
53776
       "ordinals": {
 
53777
         "columns": {
 
53778
           "number": {"type": "integer"},
 
53779
           "name": {"type": "string"}},
 
53780
         "indexes": [["number"]]}},
 
53781
     "version": "5.1.3",
 
53782
     "cksum": "12345678 9"}'  '["ordinals",
 
53783
      {"op": "insert",
 
53784
       "table": "ordinals",
 
53785
       "row": {}}]' '["ordinals",
 
53786
      {"op": "select",
 
53787
       "table": "ordinals",
 
53788
       "where": []}]'
 
53789
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53790
at_status=$? at_failed=false
 
53791
$at_check_filter
 
53792
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53793
echo stdout:; tee stdout <"$at_stdout"
 
53794
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
53795
$at_failed && at_fn_log_failure
 
53796
$at_traceon; }
 
53797
 
 
53798
   { set +x
 
53799
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
53800
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
53801
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
53802
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53803
at_status=$? at_failed=false
 
53804
$at_check_filter
 
53805
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53806
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
53807
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"\",\"number\":0}]}]
 
53808
" | \
 
53809
  $at_diff - "$at_stdout" || at_failed=:
 
53810
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
53811
$at_failed && at_fn_log_failure
 
53812
$at_traceon; }
 
53813
 
 
53814
     set +x
 
53815
  $at_times_p && times >"$at_times_file"
 
53816
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53817
read at_status <"$at_status_file"
 
53818
#AT_STOP_763
 
53819
#AT_START_764
 
53820
at_fn_group_banner 764 'ovsdb-execution.at:1038' \
 
53821
  "insert row, query table" "                        " 56
 
53822
at_xfail=no
 
53823
(
 
53824
  $as_echo "764. $at_setup_line: testing $at_desc ..."
 
53825
  $at_traceon
 
53826
 
 
53827
 
 
53828
   { set +x
 
53829
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
53830
     \"tables\": {
 
53831
       \"ordinals\": {
 
53832
         \"columns\": {
 
53833
           \"number\": {\"type\": \"integer\"},
 
53834
           \"name\": {\"type\": \"string\"}},
 
53835
         \"indexes\": [[\"number\"]]}},
 
53836
     \"version\": \"5.1.3\",
 
53837
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
53838
      {\"op\": \"insert\",
 
53839
       \"table\": \"ordinals\",
 
53840
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]' '[\"ordinals\",
 
53841
      {\"op\": \"select\",
 
53842
       \"table\": \"ordinals\",
 
53843
       \"where\": []}]'"
 
53844
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
53845
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
53846
     "tables": {
 
53847
       "ordinals": {
 
53848
         "columns": {
 
53849
           "number": {"type": "integer"},
 
53850
           "name": {"type": "string"}},
 
53851
         "indexes": [["number"]]}},
 
53852
     "version": "5.1.3",
 
53853
     "cksum": "12345678 9"}'  '["ordinals",
 
53854
      {"op": "insert",
 
53855
       "table": "ordinals",
 
53856
       "row": {"number": 0, "name": "zero"}}]' '["ordinals",
 
53857
      {"op": "select",
 
53858
       "table": "ordinals",
 
53859
       "where": []}]'
 
53860
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53861
at_status=$? at_failed=false
 
53862
$at_check_filter
 
53863
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53864
echo stdout:; tee stdout <"$at_stdout"
 
53865
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
53866
$at_failed && at_fn_log_failure
 
53867
$at_traceon; }
 
53868
 
 
53869
   { set +x
 
53870
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
53871
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
53872
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
53873
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53874
at_status=$? at_failed=false
 
53875
$at_check_filter
 
53876
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53877
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
53878
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]}]
 
53879
" | \
 
53880
  $at_diff - "$at_stdout" || at_failed=:
 
53881
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
53882
$at_failed && at_fn_log_failure
 
53883
$at_traceon; }
 
53884
 
 
53885
     set +x
 
53886
  $at_times_p && times >"$at_times_file"
 
53887
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53888
read at_status <"$at_status_file"
 
53889
#AT_STOP_764
 
53890
#AT_START_765
 
53891
at_fn_group_banner 765 'ovsdb-execution.at:1038' \
 
53892
  "insert rows, query by value" "                    " 56
 
53893
at_xfail=no
 
53894
(
 
53895
  $as_echo "765. $at_setup_line: testing $at_desc ..."
 
53896
  $at_traceon
 
53897
 
 
53898
 
 
53899
   { set +x
 
53900
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
53901
     \"tables\": {
 
53902
       \"ordinals\": {
 
53903
         \"columns\": {
 
53904
           \"number\": {\"type\": \"integer\"},
 
53905
           \"name\": {\"type\": \"string\"}},
 
53906
         \"indexes\": [[\"number\"]]}},
 
53907
     \"version\": \"5.1.3\",
 
53908
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
53909
      {\"op\": \"insert\",
 
53910
       \"table\": \"ordinals\",
 
53911
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]' '[\"ordinals\",
 
53912
      {\"op\": \"insert\",
 
53913
       \"table\": \"ordinals\",
 
53914
       \"row\": {\"number\": 1, \"name\": \"one\"}}]' '[\"ordinals\",
 
53915
      {\"op\": \"select\",
 
53916
       \"table\": \"ordinals\",
 
53917
       \"where\": [[\"name\", \"==\", \"zero\"]]}]' '[\"ordinals\",
 
53918
      {\"op\": \"select\",
 
53919
       \"table\": \"ordinals\",
 
53920
       \"where\": [[\"name\", \"==\", \"one\"]]}]'"
 
53921
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
53922
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
53923
     "tables": {
 
53924
       "ordinals": {
 
53925
         "columns": {
 
53926
           "number": {"type": "integer"},
 
53927
           "name": {"type": "string"}},
 
53928
         "indexes": [["number"]]}},
 
53929
     "version": "5.1.3",
 
53930
     "cksum": "12345678 9"}'  '["ordinals",
 
53931
      {"op": "insert",
 
53932
       "table": "ordinals",
 
53933
       "row": {"number": 0, "name": "zero"}}]' '["ordinals",
 
53934
      {"op": "insert",
 
53935
       "table": "ordinals",
 
53936
       "row": {"number": 1, "name": "one"}}]' '["ordinals",
 
53937
      {"op": "select",
 
53938
       "table": "ordinals",
 
53939
       "where": [["name", "==", "zero"]]}]' '["ordinals",
 
53940
      {"op": "select",
 
53941
       "table": "ordinals",
 
53942
       "where": [["name", "==", "one"]]}]'
 
53943
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53944
at_status=$? at_failed=false
 
53945
$at_check_filter
 
53946
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53947
echo stdout:; tee stdout <"$at_stdout"
 
53948
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
53949
$at_failed && at_fn_log_failure
 
53950
$at_traceon; }
 
53951
 
 
53952
   { set +x
 
53953
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
53954
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
53955
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
53956
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
53957
at_status=$? at_failed=false
 
53958
$at_check_filter
 
53959
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
53960
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
53961
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
53962
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]}]
 
53963
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
53964
" | \
 
53965
  $at_diff - "$at_stdout" || at_failed=:
 
53966
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
53967
$at_failed && at_fn_log_failure
 
53968
$at_traceon; }
 
53969
 
 
53970
     set +x
 
53971
  $at_times_p && times >"$at_times_file"
 
53972
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
53973
read at_status <"$at_status_file"
 
53974
#AT_STOP_765
 
53975
#AT_START_766
 
53976
at_fn_group_banner 766 'ovsdb-execution.at:1038' \
 
53977
  "insert rows, query by named-uuid" "               " 56
 
53978
at_xfail=no
 
53979
(
 
53980
  $as_echo "766. $at_setup_line: testing $at_desc ..."
 
53981
  $at_traceon
 
53982
 
 
53983
 
 
53984
   { set +x
 
53985
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
53986
     \"tables\": {
 
53987
       \"ordinals\": {
 
53988
         \"columns\": {
 
53989
           \"number\": {\"type\": \"integer\"},
 
53990
           \"name\": {\"type\": \"string\"}},
 
53991
         \"indexes\": [[\"number\"]]}},
 
53992
     \"version\": \"5.1.3\",
 
53993
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
53994
      {\"op\": \"insert\",
 
53995
       \"table\": \"ordinals\",
 
53996
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
53997
       \"uuid-name\": \"first\"},
 
53998
      {\"op\": \"insert\",
 
53999
       \"table\": \"ordinals\",
 
54000
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
54001
       \"uuid-name\": \"second\"},
 
54002
      {\"op\": \"select\",
 
54003
       \"table\": \"ordinals\",
 
54004
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"first\"]]]},
 
54005
      {\"op\": \"select\",
 
54006
       \"table\": \"ordinals\",
 
54007
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"second\"]]]}]'"
 
54008
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54009
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54010
     "tables": {
 
54011
       "ordinals": {
 
54012
         "columns": {
 
54013
           "number": {"type": "integer"},
 
54014
           "name": {"type": "string"}},
 
54015
         "indexes": [["number"]]}},
 
54016
     "version": "5.1.3",
 
54017
     "cksum": "12345678 9"}'  '["ordinals",
 
54018
      {"op": "insert",
 
54019
       "table": "ordinals",
 
54020
       "row": {"number": 0, "name": "zero"},
 
54021
       "uuid-name": "first"},
 
54022
      {"op": "insert",
 
54023
       "table": "ordinals",
 
54024
       "row": {"number": 1, "name": "one"},
 
54025
       "uuid-name": "second"},
 
54026
      {"op": "select",
 
54027
       "table": "ordinals",
 
54028
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
54029
      {"op": "select",
 
54030
       "table": "ordinals",
 
54031
       "where": [["_uuid", "==", ["named-uuid", "second"]]]}]'
 
54032
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54033
at_status=$? at_failed=false
 
54034
$at_check_filter
 
54035
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54036
echo stdout:; tee stdout <"$at_stdout"
 
54037
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54038
$at_failed && at_fn_log_failure
 
54039
$at_traceon; }
 
54040
 
 
54041
   { set +x
 
54042
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54043
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54044
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54045
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54046
at_status=$? at_failed=false
 
54047
$at_check_filter
 
54048
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54049
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
54050
" | \
 
54051
  $at_diff - "$at_stdout" || at_failed=:
 
54052
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54053
$at_failed && at_fn_log_failure
 
54054
$at_traceon; }
 
54055
 
 
54056
     set +x
 
54057
  $at_times_p && times >"$at_times_file"
 
54058
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54059
read at_status <"$at_status_file"
 
54060
#AT_STOP_766
 
54061
#AT_START_767
 
54062
at_fn_group_banner 767 'ovsdb-execution.at:1038' \
 
54063
  "insert rows, update rows by value" "              " 56
 
54064
at_xfail=no
 
54065
(
 
54066
  $as_echo "767. $at_setup_line: testing $at_desc ..."
 
54067
  $at_traceon
 
54068
 
 
54069
 
 
54070
   { set +x
 
54071
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54072
     \"tables\": {
 
54073
       \"ordinals\": {
 
54074
         \"columns\": {
 
54075
           \"number\": {\"type\": \"integer\"},
 
54076
           \"name\": {\"type\": \"string\"}},
 
54077
         \"indexes\": [[\"number\"]]}},
 
54078
     \"version\": \"5.1.3\",
 
54079
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54080
      {\"op\": \"insert\",
 
54081
       \"table\": \"ordinals\",
 
54082
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
54083
       \"uuid-name\": \"first\"}]' '[\"ordinals\",
 
54084
      {\"op\": \"insert\",
 
54085
       \"table\": \"ordinals\",
 
54086
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
54087
       \"uuid-name\": \"first\"}]' '[\"ordinals\",
 
54088
      {\"op\": \"update\",
 
54089
       \"table\": \"ordinals\",
 
54090
       \"where\": [[\"name\", \"==\", \"zero\"]],
 
54091
       \"row\": {\"name\": \"nought\"}}]' '[\"ordinals\",
 
54092
      {\"op\": \"select\",
 
54093
       \"table\": \"ordinals\",
 
54094
       \"where\": [],
 
54095
       \"sort\": [\"number\"]}]'"
 
54096
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54097
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54098
     "tables": {
 
54099
       "ordinals": {
 
54100
         "columns": {
 
54101
           "number": {"type": "integer"},
 
54102
           "name": {"type": "string"}},
 
54103
         "indexes": [["number"]]}},
 
54104
     "version": "5.1.3",
 
54105
     "cksum": "12345678 9"}'  '["ordinals",
 
54106
      {"op": "insert",
 
54107
       "table": "ordinals",
 
54108
       "row": {"number": 0, "name": "zero"},
 
54109
       "uuid-name": "first"}]' '["ordinals",
 
54110
      {"op": "insert",
 
54111
       "table": "ordinals",
 
54112
       "row": {"number": 1, "name": "one"},
 
54113
       "uuid-name": "first"}]' '["ordinals",
 
54114
      {"op": "update",
 
54115
       "table": "ordinals",
 
54116
       "where": [["name", "==", "zero"]],
 
54117
       "row": {"name": "nought"}}]' '["ordinals",
 
54118
      {"op": "select",
 
54119
       "table": "ordinals",
 
54120
       "where": [],
 
54121
       "sort": ["number"]}]'
 
54122
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54123
at_status=$? at_failed=false
 
54124
$at_check_filter
 
54125
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54126
echo stdout:; tee stdout <"$at_stdout"
 
54127
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54128
$at_failed && at_fn_log_failure
 
54129
$at_traceon; }
 
54130
 
 
54131
   { set +x
 
54132
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54133
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54134
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54135
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54136
at_status=$? at_failed=false
 
54137
$at_check_filter
 
54138
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54139
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
54140
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
54141
[{\"count\":1}]
 
54142
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"nought\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
54143
" | \
 
54144
  $at_diff - "$at_stdout" || at_failed=:
 
54145
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54146
$at_failed && at_fn_log_failure
 
54147
$at_traceon; }
 
54148
 
 
54149
     set +x
 
54150
  $at_times_p && times >"$at_times_file"
 
54151
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54152
read at_status <"$at_status_file"
 
54153
#AT_STOP_767
 
54154
#AT_START_768
 
54155
at_fn_group_banner 768 'ovsdb-execution.at:1038' \
 
54156
  "insert rows, mutate rows" "                       " 56
 
54157
at_xfail=no
 
54158
(
 
54159
  $as_echo "768. $at_setup_line: testing $at_desc ..."
 
54160
  $at_traceon
 
54161
 
 
54162
 
 
54163
   { set +x
 
54164
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54165
     \"tables\": {
 
54166
       \"ordinals\": {
 
54167
         \"columns\": {
 
54168
           \"number\": {\"type\": \"integer\"},
 
54169
           \"name\": {\"type\": \"string\"}},
 
54170
         \"indexes\": [[\"number\"]]}},
 
54171
     \"version\": \"5.1.3\",
 
54172
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54173
      {\"op\": \"insert\",
 
54174
       \"table\": \"ordinals\",
 
54175
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
54176
       \"uuid-name\": \"first\"}]' '[\"ordinals\",
 
54177
      {\"op\": \"insert\",
 
54178
       \"table\": \"ordinals\",
 
54179
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
54180
       \"uuid-name\": \"first\"}]' '[\"ordinals\",
 
54181
      {\"op\": \"mutate\",
 
54182
       \"table\": \"ordinals\",
 
54183
       \"where\": [[\"name\", \"==\", \"zero\"]],
 
54184
       \"mutations\": [[\"number\", \"+=\", 2]]}]' '[\"ordinals\",
 
54185
      {\"op\": \"select\",
 
54186
       \"table\": \"ordinals\",
 
54187
       \"where\": [],
 
54188
       \"sort\": [\"number\"]}]'"
 
54189
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54190
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54191
     "tables": {
 
54192
       "ordinals": {
 
54193
         "columns": {
 
54194
           "number": {"type": "integer"},
 
54195
           "name": {"type": "string"}},
 
54196
         "indexes": [["number"]]}},
 
54197
     "version": "5.1.3",
 
54198
     "cksum": "12345678 9"}'  '["ordinals",
 
54199
      {"op": "insert",
 
54200
       "table": "ordinals",
 
54201
       "row": {"number": 0, "name": "zero"},
 
54202
       "uuid-name": "first"}]' '["ordinals",
 
54203
      {"op": "insert",
 
54204
       "table": "ordinals",
 
54205
       "row": {"number": 1, "name": "one"},
 
54206
       "uuid-name": "first"}]' '["ordinals",
 
54207
      {"op": "mutate",
 
54208
       "table": "ordinals",
 
54209
       "where": [["name", "==", "zero"]],
 
54210
       "mutations": [["number", "+=", 2]]}]' '["ordinals",
 
54211
      {"op": "select",
 
54212
       "table": "ordinals",
 
54213
       "where": [],
 
54214
       "sort": ["number"]}]'
 
54215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54216
at_status=$? at_failed=false
 
54217
$at_check_filter
 
54218
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54219
echo stdout:; tee stdout <"$at_stdout"
 
54220
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54221
$at_failed && at_fn_log_failure
 
54222
$at_traceon; }
 
54223
 
 
54224
   { set +x
 
54225
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54226
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54227
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54228
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54229
at_status=$? at_failed=false
 
54230
$at_check_filter
 
54231
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54232
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
54233
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
54234
[{\"count\":1}]
 
54235
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1},{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"zero\",\"number\":2}]}]
 
54236
" | \
 
54237
  $at_diff - "$at_stdout" || at_failed=:
 
54238
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54239
$at_failed && at_fn_log_failure
 
54240
$at_traceon; }
 
54241
 
 
54242
     set +x
 
54243
  $at_times_p && times >"$at_times_file"
 
54244
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54245
read at_status <"$at_status_file"
 
54246
#AT_STOP_768
 
54247
#AT_START_769
 
54248
at_fn_group_banner 769 'ovsdb-execution.at:1038' \
 
54249
  "insert rows, delete by named-uuid" "              " 56
 
54250
at_xfail=no
 
54251
(
 
54252
  $as_echo "769. $at_setup_line: testing $at_desc ..."
 
54253
  $at_traceon
 
54254
 
 
54255
 
 
54256
   { set +x
 
54257
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54258
     \"tables\": {
 
54259
       \"ordinals\": {
 
54260
         \"columns\": {
 
54261
           \"number\": {\"type\": \"integer\"},
 
54262
           \"name\": {\"type\": \"string\"}},
 
54263
         \"indexes\": [[\"number\"]]}},
 
54264
     \"version\": \"5.1.3\",
 
54265
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54266
      {\"op\": \"insert\",
 
54267
       \"table\": \"ordinals\",
 
54268
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
54269
       \"uuid-name\": \"first\"},
 
54270
      {\"op\": \"insert\",
 
54271
       \"table\": \"ordinals\",
 
54272
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
54273
       \"uuid-name\": \"second\"},
 
54274
      {\"op\": \"delete\",
 
54275
       \"table\": \"ordinals\",
 
54276
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"first\"]]]},
 
54277
      {\"op\": \"select\",
 
54278
       \"table\": \"ordinals\",
 
54279
       \"where\": [],
 
54280
       \"columns\": [\"name\",\"number\"]}]'"
 
54281
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54282
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54283
     "tables": {
 
54284
       "ordinals": {
 
54285
         "columns": {
 
54286
           "number": {"type": "integer"},
 
54287
           "name": {"type": "string"}},
 
54288
         "indexes": [["number"]]}},
 
54289
     "version": "5.1.3",
 
54290
     "cksum": "12345678 9"}'  '["ordinals",
 
54291
      {"op": "insert",
 
54292
       "table": "ordinals",
 
54293
       "row": {"number": 0, "name": "zero"},
 
54294
       "uuid-name": "first"},
 
54295
      {"op": "insert",
 
54296
       "table": "ordinals",
 
54297
       "row": {"number": 1, "name": "one"},
 
54298
       "uuid-name": "second"},
 
54299
      {"op": "delete",
 
54300
       "table": "ordinals",
 
54301
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
54302
      {"op": "select",
 
54303
       "table": "ordinals",
 
54304
       "where": [],
 
54305
       "columns": ["name","number"]}]'
 
54306
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54307
at_status=$? at_failed=false
 
54308
$at_check_filter
 
54309
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54310
echo stdout:; tee stdout <"$at_stdout"
 
54311
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54312
$at_failed && at_fn_log_failure
 
54313
$at_traceon; }
 
54314
 
 
54315
   { set +x
 
54316
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54317
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54318
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54319
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54320
at_status=$? at_failed=false
 
54321
$at_check_filter
 
54322
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54323
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":1},{\"rows\":[{\"name\":\"one\",\"number\":1}]}]
 
54324
" | \
 
54325
  $at_diff - "$at_stdout" || at_failed=:
 
54326
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54327
$at_failed && at_fn_log_failure
 
54328
$at_traceon; }
 
54329
 
 
54330
     set +x
 
54331
  $at_times_p && times >"$at_times_file"
 
54332
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54333
read at_status <"$at_status_file"
 
54334
#AT_STOP_769
 
54335
#AT_START_770
 
54336
at_fn_group_banner 770 'ovsdb-execution.at:1038' \
 
54337
  "insert rows, delete rows by value" "              " 56
 
54338
at_xfail=no
 
54339
(
 
54340
  $as_echo "770. $at_setup_line: testing $at_desc ..."
 
54341
  $at_traceon
 
54342
 
 
54343
 
 
54344
   { set +x
 
54345
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54346
     \"tables\": {
 
54347
       \"ordinals\": {
 
54348
         \"columns\": {
 
54349
           \"number\": {\"type\": \"integer\"},
 
54350
           \"name\": {\"type\": \"string\"}},
 
54351
         \"indexes\": [[\"number\"]]}},
 
54352
     \"version\": \"5.1.3\",
 
54353
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54354
      {\"op\": \"insert\",
 
54355
       \"table\": \"ordinals\",
 
54356
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
54357
       \"uuid-name\": \"first\"}]' '[\"ordinals\",
 
54358
      {\"op\": \"insert\",
 
54359
       \"table\": \"ordinals\",
 
54360
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
54361
       \"uuid-name\": \"first\"}]' '[\"ordinals\",
 
54362
      {\"op\": \"delete\",
 
54363
       \"table\": \"ordinals\",
 
54364
       \"where\": [[\"name\", \"==\", \"zero\"]]}]' '[\"ordinals\",
 
54365
      {\"op\": \"select\",
 
54366
       \"table\": \"ordinals\",
 
54367
       \"where\": []}]'"
 
54368
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54369
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54370
     "tables": {
 
54371
       "ordinals": {
 
54372
         "columns": {
 
54373
           "number": {"type": "integer"},
 
54374
           "name": {"type": "string"}},
 
54375
         "indexes": [["number"]]}},
 
54376
     "version": "5.1.3",
 
54377
     "cksum": "12345678 9"}'  '["ordinals",
 
54378
      {"op": "insert",
 
54379
       "table": "ordinals",
 
54380
       "row": {"number": 0, "name": "zero"},
 
54381
       "uuid-name": "first"}]' '["ordinals",
 
54382
      {"op": "insert",
 
54383
       "table": "ordinals",
 
54384
       "row": {"number": 1, "name": "one"},
 
54385
       "uuid-name": "first"}]' '["ordinals",
 
54386
      {"op": "delete",
 
54387
       "table": "ordinals",
 
54388
       "where": [["name", "==", "zero"]]}]' '["ordinals",
 
54389
      {"op": "select",
 
54390
       "table": "ordinals",
 
54391
       "where": []}]'
 
54392
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54393
at_status=$? at_failed=false
 
54394
$at_check_filter
 
54395
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54396
echo stdout:; tee stdout <"$at_stdout"
 
54397
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54398
$at_failed && at_fn_log_failure
 
54399
$at_traceon; }
 
54400
 
 
54401
   { set +x
 
54402
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54403
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54404
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54405
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54406
at_status=$? at_failed=false
 
54407
$at_check_filter
 
54408
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54409
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
54410
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
54411
[{\"count\":1}]
 
54412
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1}]}]
 
54413
" | \
 
54414
  $at_diff - "$at_stdout" || at_failed=:
 
54415
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54416
$at_failed && at_fn_log_failure
 
54417
$at_traceon; }
 
54418
 
 
54419
     set +x
 
54420
  $at_times_p && times >"$at_times_file"
 
54421
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54422
read at_status <"$at_status_file"
 
54423
#AT_STOP_770
 
54424
#AT_START_771
 
54425
at_fn_group_banner 771 'ovsdb-execution.at:1038' \
 
54426
  "insert rows, delete by (non-matching) value" "    " 56
 
54427
at_xfail=no
 
54428
(
 
54429
  $as_echo "771. $at_setup_line: testing $at_desc ..."
 
54430
  $at_traceon
 
54431
 
 
54432
 
 
54433
   { set +x
 
54434
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54435
     \"tables\": {
 
54436
       \"ordinals\": {
 
54437
         \"columns\": {
 
54438
           \"number\": {\"type\": \"integer\"},
 
54439
           \"name\": {\"type\": \"string\"}},
 
54440
         \"indexes\": [[\"number\"]]}},
 
54441
     \"version\": \"5.1.3\",
 
54442
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54443
      {\"op\": \"insert\",
 
54444
       \"table\": \"ordinals\",
 
54445
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
54446
       \"uuid-name\": \"first\"}]' '[\"ordinals\",
 
54447
      {\"op\": \"insert\",
 
54448
       \"table\": \"ordinals\",
 
54449
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
54450
       \"uuid-name\": \"first\"}]' '[\"ordinals\",
 
54451
      {\"op\": \"delete\",
 
54452
       \"table\": \"ordinals\",
 
54453
       \"where\": [[\"name\", \"==\", \"nought\"]]}]' '[\"ordinals\",
 
54454
      {\"op\": \"select\",
 
54455
       \"table\": \"ordinals\",
 
54456
       \"where\": [],
 
54457
       \"sort\": [\"number\"]}]'"
 
54458
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54459
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54460
     "tables": {
 
54461
       "ordinals": {
 
54462
         "columns": {
 
54463
           "number": {"type": "integer"},
 
54464
           "name": {"type": "string"}},
 
54465
         "indexes": [["number"]]}},
 
54466
     "version": "5.1.3",
 
54467
     "cksum": "12345678 9"}'  '["ordinals",
 
54468
      {"op": "insert",
 
54469
       "table": "ordinals",
 
54470
       "row": {"number": 0, "name": "zero"},
 
54471
       "uuid-name": "first"}]' '["ordinals",
 
54472
      {"op": "insert",
 
54473
       "table": "ordinals",
 
54474
       "row": {"number": 1, "name": "one"},
 
54475
       "uuid-name": "first"}]' '["ordinals",
 
54476
      {"op": "delete",
 
54477
       "table": "ordinals",
 
54478
       "where": [["name", "==", "nought"]]}]' '["ordinals",
 
54479
      {"op": "select",
 
54480
       "table": "ordinals",
 
54481
       "where": [],
 
54482
       "sort": ["number"]}]'
 
54483
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54484
at_status=$? at_failed=false
 
54485
$at_check_filter
 
54486
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54487
echo stdout:; tee stdout <"$at_stdout"
 
54488
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54489
$at_failed && at_fn_log_failure
 
54490
$at_traceon; }
 
54491
 
 
54492
   { set +x
 
54493
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54494
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54495
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54496
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54497
at_status=$? at_failed=false
 
54498
$at_check_filter
 
54499
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54500
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
54501
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
54502
[{\"count\":0}]
 
54503
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
54504
" | \
 
54505
  $at_diff - "$at_stdout" || at_failed=:
 
54506
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54507
$at_failed && at_fn_log_failure
 
54508
$at_traceon; }
 
54509
 
 
54510
     set +x
 
54511
  $at_times_p && times >"$at_times_file"
 
54512
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54513
read at_status <"$at_status_file"
 
54514
#AT_STOP_771
 
54515
#AT_START_772
 
54516
at_fn_group_banner 772 'ovsdb-execution.at:1038' \
 
54517
  "insert rows, delete all" "                        " 56
 
54518
at_xfail=no
 
54519
(
 
54520
  $as_echo "772. $at_setup_line: testing $at_desc ..."
 
54521
  $at_traceon
 
54522
 
 
54523
 
 
54524
   { set +x
 
54525
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54526
     \"tables\": {
 
54527
       \"ordinals\": {
 
54528
         \"columns\": {
 
54529
           \"number\": {\"type\": \"integer\"},
 
54530
           \"name\": {\"type\": \"string\"}},
 
54531
         \"indexes\": [[\"number\"]]}},
 
54532
     \"version\": \"5.1.3\",
 
54533
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54534
      {\"op\": \"insert\",
 
54535
       \"table\": \"ordinals\",
 
54536
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
54537
       \"uuid-name\": \"first\"},
 
54538
      {\"op\": \"insert\",
 
54539
       \"table\": \"ordinals\",
 
54540
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
54541
       \"uuid-name\": \"second\"},
 
54542
      {\"op\": \"delete\",
 
54543
       \"table\": \"ordinals\",
 
54544
       \"where\": []},
 
54545
      {\"op\": \"select\",
 
54546
       \"table\": \"ordinals\",
 
54547
       \"where\": [],
 
54548
       \"columns\": [\"name\",\"number\"]}]'"
 
54549
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54550
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54551
     "tables": {
 
54552
       "ordinals": {
 
54553
         "columns": {
 
54554
           "number": {"type": "integer"},
 
54555
           "name": {"type": "string"}},
 
54556
         "indexes": [["number"]]}},
 
54557
     "version": "5.1.3",
 
54558
     "cksum": "12345678 9"}'  '["ordinals",
 
54559
      {"op": "insert",
 
54560
       "table": "ordinals",
 
54561
       "row": {"number": 0, "name": "zero"},
 
54562
       "uuid-name": "first"},
 
54563
      {"op": "insert",
 
54564
       "table": "ordinals",
 
54565
       "row": {"number": 1, "name": "one"},
 
54566
       "uuid-name": "second"},
 
54567
      {"op": "delete",
 
54568
       "table": "ordinals",
 
54569
       "where": []},
 
54570
      {"op": "select",
 
54571
       "table": "ordinals",
 
54572
       "where": [],
 
54573
       "columns": ["name","number"]}]'
 
54574
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54575
at_status=$? at_failed=false
 
54576
$at_check_filter
 
54577
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54578
echo stdout:; tee stdout <"$at_stdout"
 
54579
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54580
$at_failed && at_fn_log_failure
 
54581
$at_traceon; }
 
54582
 
 
54583
   { set +x
 
54584
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54585
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54586
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54587
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54588
at_status=$? at_failed=false
 
54589
$at_check_filter
 
54590
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54591
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":2},{\"rows\":[]}]
 
54592
" | \
 
54593
  $at_diff - "$at_stdout" || at_failed=:
 
54594
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54595
$at_failed && at_fn_log_failure
 
54596
$at_traceon; }
 
54597
 
 
54598
     set +x
 
54599
  $at_times_p && times >"$at_times_file"
 
54600
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54601
read at_status <"$at_status_file"
 
54602
#AT_STOP_772
 
54603
#AT_START_773
 
54604
at_fn_group_banner 773 'ovsdb-execution.at:1038' \
 
54605
  "insert row, query table, commit" "                " 56
 
54606
at_xfail=no
 
54607
(
 
54608
  $as_echo "773. $at_setup_line: testing $at_desc ..."
 
54609
  $at_traceon
 
54610
 
 
54611
 
 
54612
   { set +x
 
54613
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54614
     \"tables\": {
 
54615
       \"ordinals\": {
 
54616
         \"columns\": {
 
54617
           \"number\": {\"type\": \"integer\"},
 
54618
           \"name\": {\"type\": \"string\"}},
 
54619
         \"indexes\": [[\"number\"]]}},
 
54620
     \"version\": \"5.1.3\",
 
54621
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54622
      {\"op\": \"insert\",
 
54623
       \"table\": \"ordinals\",
 
54624
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
54625
      {\"op\": \"select\",
 
54626
       \"table\": \"ordinals\",
 
54627
       \"where\": []},
 
54628
      {\"op\": \"commit\",
 
54629
       \"durable\": false}]'"
 
54630
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54631
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54632
     "tables": {
 
54633
       "ordinals": {
 
54634
         "columns": {
 
54635
           "number": {"type": "integer"},
 
54636
           "name": {"type": "string"}},
 
54637
         "indexes": [["number"]]}},
 
54638
     "version": "5.1.3",
 
54639
     "cksum": "12345678 9"}'  '["ordinals",
 
54640
      {"op": "insert",
 
54641
       "table": "ordinals",
 
54642
       "row": {"number": 0, "name": "zero"}},
 
54643
      {"op": "select",
 
54644
       "table": "ordinals",
 
54645
       "where": []},
 
54646
      {"op": "commit",
 
54647
       "durable": false}]'
 
54648
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54649
at_status=$? at_failed=false
 
54650
$at_check_filter
 
54651
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54652
echo stdout:; tee stdout <"$at_stdout"
 
54653
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54654
$at_failed && at_fn_log_failure
 
54655
$at_traceon; }
 
54656
 
 
54657
   { set +x
 
54658
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54659
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54660
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54661
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54662
at_status=$? at_failed=false
 
54663
$at_check_filter
 
54664
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54665
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
54666
" | \
 
54667
  $at_diff - "$at_stdout" || at_failed=:
 
54668
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54669
$at_failed && at_fn_log_failure
 
54670
$at_traceon; }
 
54671
 
 
54672
     set +x
 
54673
  $at_times_p && times >"$at_times_file"
 
54674
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54675
read at_status <"$at_status_file"
 
54676
#AT_STOP_773
 
54677
#AT_START_774
 
54678
at_fn_group_banner 774 'ovsdb-execution.at:1038' \
 
54679
  "insert row, query table, commit durably" "        " 56
 
54680
at_xfail=no
 
54681
(
 
54682
  $as_echo "774. $at_setup_line: testing $at_desc ..."
 
54683
  $at_traceon
 
54684
 
 
54685
 
 
54686
   { set +x
 
54687
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54688
     \"tables\": {
 
54689
       \"ordinals\": {
 
54690
         \"columns\": {
 
54691
           \"number\": {\"type\": \"integer\"},
 
54692
           \"name\": {\"type\": \"string\"}},
 
54693
         \"indexes\": [[\"number\"]]}},
 
54694
     \"version\": \"5.1.3\",
 
54695
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54696
      {\"op\": \"insert\",
 
54697
       \"table\": \"ordinals\",
 
54698
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
54699
      {\"op\": \"select\",
 
54700
       \"table\": \"ordinals\",
 
54701
       \"where\": []},
 
54702
      {\"op\": \"commit\",
 
54703
       \"durable\": true}]'"
 
54704
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54705
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54706
     "tables": {
 
54707
       "ordinals": {
 
54708
         "columns": {
 
54709
           "number": {"type": "integer"},
 
54710
           "name": {"type": "string"}},
 
54711
         "indexes": [["number"]]}},
 
54712
     "version": "5.1.3",
 
54713
     "cksum": "12345678 9"}'  '["ordinals",
 
54714
      {"op": "insert",
 
54715
       "table": "ordinals",
 
54716
       "row": {"number": 0, "name": "zero"}},
 
54717
      {"op": "select",
 
54718
       "table": "ordinals",
 
54719
       "where": []},
 
54720
      {"op": "commit",
 
54721
       "durable": true}]'
 
54722
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54723
at_status=$? at_failed=false
 
54724
$at_check_filter
 
54725
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54726
echo stdout:; tee stdout <"$at_stdout"
 
54727
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54728
$at_failed && at_fn_log_failure
 
54729
$at_traceon; }
 
54730
 
 
54731
   { set +x
 
54732
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54733
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54734
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54735
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54736
at_status=$? at_failed=false
 
54737
$at_check_filter
 
54738
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54739
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
54740
" | \
 
54741
  $at_diff - "$at_stdout" || at_failed=:
 
54742
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54743
$at_failed && at_fn_log_failure
 
54744
$at_traceon; }
 
54745
 
 
54746
     set +x
 
54747
  $at_times_p && times >"$at_times_file"
 
54748
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54749
read at_status <"$at_status_file"
 
54750
#AT_STOP_774
 
54751
#AT_START_775
 
54752
at_fn_group_banner 775 'ovsdb-execution.at:1038' \
 
54753
  "equality wait with correct rows" "                " 56
 
54754
at_xfail=no
 
54755
(
 
54756
  $as_echo "775. $at_setup_line: testing $at_desc ..."
 
54757
  $at_traceon
 
54758
 
 
54759
 
 
54760
   { set +x
 
54761
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54762
     \"tables\": {
 
54763
       \"ordinals\": {
 
54764
         \"columns\": {
 
54765
           \"number\": {\"type\": \"integer\"},
 
54766
           \"name\": {\"type\": \"string\"}},
 
54767
         \"indexes\": [[\"number\"]]}},
 
54768
     \"version\": \"5.1.3\",
 
54769
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54770
      {\"op\": \"insert\",
 
54771
       \"table\": \"ordinals\",
 
54772
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
54773
      {\"op\": \"insert\",
 
54774
       \"table\": \"ordinals\",
 
54775
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
54776
      {\"op\": \"wait\",
 
54777
       \"timeout\": 0,
 
54778
       \"table\": \"ordinals\",
 
54779
       \"where\": [],
 
54780
       \"columns\": [\"name\", \"number\"],
 
54781
       \"until\": \"==\",
 
54782
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
54783
                {\"name\": \"one\", \"number\": 1}]}]'"
 
54784
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54785
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54786
     "tables": {
 
54787
       "ordinals": {
 
54788
         "columns": {
 
54789
           "number": {"type": "integer"},
 
54790
           "name": {"type": "string"}},
 
54791
         "indexes": [["number"]]}},
 
54792
     "version": "5.1.3",
 
54793
     "cksum": "12345678 9"}'  '["ordinals",
 
54794
      {"op": "insert",
 
54795
       "table": "ordinals",
 
54796
       "row": {"number": 0, "name": "zero"}},
 
54797
      {"op": "insert",
 
54798
       "table": "ordinals",
 
54799
       "row": {"number": 1, "name": "one"}},
 
54800
      {"op": "wait",
 
54801
       "timeout": 0,
 
54802
       "table": "ordinals",
 
54803
       "where": [],
 
54804
       "columns": ["name", "number"],
 
54805
       "until": "==",
 
54806
       "rows": [{"name": "zero", "number": 0},
 
54807
                {"name": "one", "number": 1}]}]'
 
54808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54809
at_status=$? at_failed=false
 
54810
$at_check_filter
 
54811
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54812
echo stdout:; tee stdout <"$at_stdout"
 
54813
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54814
$at_failed && at_fn_log_failure
 
54815
$at_traceon; }
 
54816
 
 
54817
   { set +x
 
54818
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54819
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54820
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54821
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54822
at_status=$? at_failed=false
 
54823
$at_check_filter
 
54824
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54825
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
54826
" | \
 
54827
  $at_diff - "$at_stdout" || at_failed=:
 
54828
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54829
$at_failed && at_fn_log_failure
 
54830
$at_traceon; }
 
54831
 
 
54832
     set +x
 
54833
  $at_times_p && times >"$at_times_file"
 
54834
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54835
read at_status <"$at_status_file"
 
54836
#AT_STOP_775
 
54837
#AT_START_776
 
54838
at_fn_group_banner 776 'ovsdb-execution.at:1038' \
 
54839
  "equality wait with extra row" "                   " 56
 
54840
at_xfail=no
 
54841
(
 
54842
  $as_echo "776. $at_setup_line: testing $at_desc ..."
 
54843
  $at_traceon
 
54844
 
 
54845
 
 
54846
   { set +x
 
54847
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54848
     \"tables\": {
 
54849
       \"ordinals\": {
 
54850
         \"columns\": {
 
54851
           \"number\": {\"type\": \"integer\"},
 
54852
           \"name\": {\"type\": \"string\"}},
 
54853
         \"indexes\": [[\"number\"]]}},
 
54854
     \"version\": \"5.1.3\",
 
54855
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54856
      {\"op\": \"insert\",
 
54857
       \"table\": \"ordinals\",
 
54858
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
54859
      {\"op\": \"insert\",
 
54860
       \"table\": \"ordinals\",
 
54861
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
54862
      {\"op\": \"wait\",
 
54863
       \"timeout\": 0,
 
54864
       \"table\": \"ordinals\",
 
54865
       \"where\": [],
 
54866
       \"columns\": [\"name\", \"number\"],
 
54867
       \"until\": \"==\",
 
54868
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
54869
                {\"name\": \"one\", \"number\": 1},
 
54870
                {\"name\": \"two\", \"number\": 2}]}]'"
 
54871
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54872
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54873
     "tables": {
 
54874
       "ordinals": {
 
54875
         "columns": {
 
54876
           "number": {"type": "integer"},
 
54877
           "name": {"type": "string"}},
 
54878
         "indexes": [["number"]]}},
 
54879
     "version": "5.1.3",
 
54880
     "cksum": "12345678 9"}'  '["ordinals",
 
54881
      {"op": "insert",
 
54882
       "table": "ordinals",
 
54883
       "row": {"number": 0, "name": "zero"}},
 
54884
      {"op": "insert",
 
54885
       "table": "ordinals",
 
54886
       "row": {"number": 1, "name": "one"}},
 
54887
      {"op": "wait",
 
54888
       "timeout": 0,
 
54889
       "table": "ordinals",
 
54890
       "where": [],
 
54891
       "columns": ["name", "number"],
 
54892
       "until": "==",
 
54893
       "rows": [{"name": "zero", "number": 0},
 
54894
                {"name": "one", "number": 1},
 
54895
                {"name": "two", "number": 2}]}]'
 
54896
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54897
at_status=$? at_failed=false
 
54898
$at_check_filter
 
54899
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54900
echo stdout:; tee stdout <"$at_stdout"
 
54901
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54902
$at_failed && at_fn_log_failure
 
54903
$at_traceon; }
 
54904
 
 
54905
   { set +x
 
54906
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54907
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54908
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54909
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54910
at_status=$? at_failed=false
 
54911
$at_check_filter
 
54912
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54913
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
54914
" | \
 
54915
  $at_diff - "$at_stdout" || at_failed=:
 
54916
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54917
$at_failed && at_fn_log_failure
 
54918
$at_traceon; }
 
54919
 
 
54920
     set +x
 
54921
  $at_times_p && times >"$at_times_file"
 
54922
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
54923
read at_status <"$at_status_file"
 
54924
#AT_STOP_776
 
54925
#AT_START_777
 
54926
at_fn_group_banner 777 'ovsdb-execution.at:1038' \
 
54927
  "equality wait with missing row" "                 " 56
 
54928
at_xfail=no
 
54929
(
 
54930
  $as_echo "777. $at_setup_line: testing $at_desc ..."
 
54931
  $at_traceon
 
54932
 
 
54933
 
 
54934
   { set +x
 
54935
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
54936
     \"tables\": {
 
54937
       \"ordinals\": {
 
54938
         \"columns\": {
 
54939
           \"number\": {\"type\": \"integer\"},
 
54940
           \"name\": {\"type\": \"string\"}},
 
54941
         \"indexes\": [[\"number\"]]}},
 
54942
     \"version\": \"5.1.3\",
 
54943
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
54944
      {\"op\": \"insert\",
 
54945
       \"table\": \"ordinals\",
 
54946
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
54947
      {\"op\": \"insert\",
 
54948
       \"table\": \"ordinals\",
 
54949
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
54950
      {\"op\": \"wait\",
 
54951
       \"timeout\": 0,
 
54952
       \"table\": \"ordinals\",
 
54953
       \"where\": [],
 
54954
       \"columns\": [\"name\", \"number\"],
 
54955
       \"until\": \"==\",
 
54956
       \"rows\": [{\"name\": \"one\", \"number\": 1}]}]'"
 
54957
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
54958
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
54959
     "tables": {
 
54960
       "ordinals": {
 
54961
         "columns": {
 
54962
           "number": {"type": "integer"},
 
54963
           "name": {"type": "string"}},
 
54964
         "indexes": [["number"]]}},
 
54965
     "version": "5.1.3",
 
54966
     "cksum": "12345678 9"}'  '["ordinals",
 
54967
      {"op": "insert",
 
54968
       "table": "ordinals",
 
54969
       "row": {"number": 0, "name": "zero"}},
 
54970
      {"op": "insert",
 
54971
       "table": "ordinals",
 
54972
       "row": {"number": 1, "name": "one"}},
 
54973
      {"op": "wait",
 
54974
       "timeout": 0,
 
54975
       "table": "ordinals",
 
54976
       "where": [],
 
54977
       "columns": ["name", "number"],
 
54978
       "until": "==",
 
54979
       "rows": [{"name": "one", "number": 1}]}]'
 
54980
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54981
at_status=$? at_failed=false
 
54982
$at_check_filter
 
54983
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54984
echo stdout:; tee stdout <"$at_stdout"
 
54985
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
54986
$at_failed && at_fn_log_failure
 
54987
$at_traceon; }
 
54988
 
 
54989
   { set +x
 
54990
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
54991
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
54992
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
54993
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
54994
at_status=$? at_failed=false
 
54995
$at_check_filter
 
54996
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
54997
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
54998
" | \
 
54999
  $at_diff - "$at_stdout" || at_failed=:
 
55000
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55001
$at_failed && at_fn_log_failure
 
55002
$at_traceon; }
 
55003
 
 
55004
     set +x
 
55005
  $at_times_p && times >"$at_times_file"
 
55006
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
55007
read at_status <"$at_status_file"
 
55008
#AT_STOP_777
 
55009
#AT_START_778
 
55010
at_fn_group_banner 778 'ovsdb-execution.at:1038' \
 
55011
  "inequality wait with correct rows" "              " 56
 
55012
at_xfail=no
 
55013
(
 
55014
  $as_echo "778. $at_setup_line: testing $at_desc ..."
 
55015
  $at_traceon
 
55016
 
 
55017
 
 
55018
   { set +x
 
55019
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
55020
     \"tables\": {
 
55021
       \"ordinals\": {
 
55022
         \"columns\": {
 
55023
           \"number\": {\"type\": \"integer\"},
 
55024
           \"name\": {\"type\": \"string\"}},
 
55025
         \"indexes\": [[\"number\"]]}},
 
55026
     \"version\": \"5.1.3\",
 
55027
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
55028
      {\"op\": \"insert\",
 
55029
       \"table\": \"ordinals\",
 
55030
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
55031
      {\"op\": \"insert\",
 
55032
       \"table\": \"ordinals\",
 
55033
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
55034
      {\"op\": \"wait\",
 
55035
       \"timeout\": 0,
 
55036
       \"table\": \"ordinals\",
 
55037
       \"where\": [],
 
55038
       \"columns\": [\"name\", \"number\"],
 
55039
       \"until\": \"!=\",
 
55040
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
55041
                {\"name\": \"one\", \"number\": 1}]}]'"
 
55042
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
55043
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
55044
     "tables": {
 
55045
       "ordinals": {
 
55046
         "columns": {
 
55047
           "number": {"type": "integer"},
 
55048
           "name": {"type": "string"}},
 
55049
         "indexes": [["number"]]}},
 
55050
     "version": "5.1.3",
 
55051
     "cksum": "12345678 9"}'  '["ordinals",
 
55052
      {"op": "insert",
 
55053
       "table": "ordinals",
 
55054
       "row": {"number": 0, "name": "zero"}},
 
55055
      {"op": "insert",
 
55056
       "table": "ordinals",
 
55057
       "row": {"number": 1, "name": "one"}},
 
55058
      {"op": "wait",
 
55059
       "timeout": 0,
 
55060
       "table": "ordinals",
 
55061
       "where": [],
 
55062
       "columns": ["name", "number"],
 
55063
       "until": "!=",
 
55064
       "rows": [{"name": "zero", "number": 0},
 
55065
                {"name": "one", "number": 1}]}]'
 
55066
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55067
at_status=$? at_failed=false
 
55068
$at_check_filter
 
55069
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55070
echo stdout:; tee stdout <"$at_stdout"
 
55071
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55072
$at_failed && at_fn_log_failure
 
55073
$at_traceon; }
 
55074
 
 
55075
   { set +x
 
55076
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
55077
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
55078
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
55079
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55080
at_status=$? at_failed=false
 
55081
$at_check_filter
 
55082
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55083
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
55084
" | \
 
55085
  $at_diff - "$at_stdout" || at_failed=:
 
55086
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55087
$at_failed && at_fn_log_failure
 
55088
$at_traceon; }
 
55089
 
 
55090
     set +x
 
55091
  $at_times_p && times >"$at_times_file"
 
55092
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
55093
read at_status <"$at_status_file"
 
55094
#AT_STOP_778
 
55095
#AT_START_779
 
55096
at_fn_group_banner 779 'ovsdb-execution.at:1038' \
 
55097
  "inequality wait with extra row" "                 " 56
 
55098
at_xfail=no
 
55099
(
 
55100
  $as_echo "779. $at_setup_line: testing $at_desc ..."
 
55101
  $at_traceon
 
55102
 
 
55103
 
 
55104
   { set +x
 
55105
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
55106
     \"tables\": {
 
55107
       \"ordinals\": {
 
55108
         \"columns\": {
 
55109
           \"number\": {\"type\": \"integer\"},
 
55110
           \"name\": {\"type\": \"string\"}},
 
55111
         \"indexes\": [[\"number\"]]}},
 
55112
     \"version\": \"5.1.3\",
 
55113
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
55114
      {\"op\": \"insert\",
 
55115
       \"table\": \"ordinals\",
 
55116
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
55117
      {\"op\": \"insert\",
 
55118
       \"table\": \"ordinals\",
 
55119
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
55120
      {\"op\": \"wait\",
 
55121
       \"timeout\": 0,
 
55122
       \"table\": \"ordinals\",
 
55123
       \"where\": [],
 
55124
       \"columns\": [\"name\", \"number\"],
 
55125
       \"until\": \"!=\",
 
55126
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
55127
                {\"name\": \"one\", \"number\": 1},
 
55128
                {\"name\": \"two\", \"number\": 2}]}]'"
 
55129
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
55130
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
55131
     "tables": {
 
55132
       "ordinals": {
 
55133
         "columns": {
 
55134
           "number": {"type": "integer"},
 
55135
           "name": {"type": "string"}},
 
55136
         "indexes": [["number"]]}},
 
55137
     "version": "5.1.3",
 
55138
     "cksum": "12345678 9"}'  '["ordinals",
 
55139
      {"op": "insert",
 
55140
       "table": "ordinals",
 
55141
       "row": {"number": 0, "name": "zero"}},
 
55142
      {"op": "insert",
 
55143
       "table": "ordinals",
 
55144
       "row": {"number": 1, "name": "one"}},
 
55145
      {"op": "wait",
 
55146
       "timeout": 0,
 
55147
       "table": "ordinals",
 
55148
       "where": [],
 
55149
       "columns": ["name", "number"],
 
55150
       "until": "!=",
 
55151
       "rows": [{"name": "zero", "number": 0},
 
55152
                {"name": "one", "number": 1},
 
55153
                {"name": "two", "number": 2}]}]'
 
55154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55155
at_status=$? at_failed=false
 
55156
$at_check_filter
 
55157
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55158
echo stdout:; tee stdout <"$at_stdout"
 
55159
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55160
$at_failed && at_fn_log_failure
 
55161
$at_traceon; }
 
55162
 
 
55163
   { set +x
 
55164
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
55165
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
55166
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
55167
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55168
at_status=$? at_failed=false
 
55169
$at_check_filter
 
55170
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55171
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
55172
" | \
 
55173
  $at_diff - "$at_stdout" || at_failed=:
 
55174
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55175
$at_failed && at_fn_log_failure
 
55176
$at_traceon; }
 
55177
 
 
55178
     set +x
 
55179
  $at_times_p && times >"$at_times_file"
 
55180
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
55181
read at_status <"$at_status_file"
 
55182
#AT_STOP_779
 
55183
#AT_START_780
 
55184
at_fn_group_banner 780 'ovsdb-execution.at:1038' \
 
55185
  "inequality wait with missing row" "               " 56
 
55186
at_xfail=no
 
55187
(
 
55188
  $as_echo "780. $at_setup_line: testing $at_desc ..."
 
55189
  $at_traceon
 
55190
 
 
55191
 
 
55192
   { set +x
 
55193
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
55194
     \"tables\": {
 
55195
       \"ordinals\": {
 
55196
         \"columns\": {
 
55197
           \"number\": {\"type\": \"integer\"},
 
55198
           \"name\": {\"type\": \"string\"}},
 
55199
         \"indexes\": [[\"number\"]]}},
 
55200
     \"version\": \"5.1.3\",
 
55201
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
55202
      {\"op\": \"insert\",
 
55203
       \"table\": \"ordinals\",
 
55204
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
55205
      {\"op\": \"insert\",
 
55206
       \"table\": \"ordinals\",
 
55207
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
55208
      {\"op\": \"wait\",
 
55209
       \"timeout\": 0,
 
55210
       \"table\": \"ordinals\",
 
55211
       \"where\": [],
 
55212
       \"columns\": [\"name\", \"number\"],
 
55213
       \"until\": \"!=\",
 
55214
       \"rows\": [{\"name\": \"one\", \"number\": 1}]}]'"
 
55215
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
55216
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
55217
     "tables": {
 
55218
       "ordinals": {
 
55219
         "columns": {
 
55220
           "number": {"type": "integer"},
 
55221
           "name": {"type": "string"}},
 
55222
         "indexes": [["number"]]}},
 
55223
     "version": "5.1.3",
 
55224
     "cksum": "12345678 9"}'  '["ordinals",
 
55225
      {"op": "insert",
 
55226
       "table": "ordinals",
 
55227
       "row": {"number": 0, "name": "zero"}},
 
55228
      {"op": "insert",
 
55229
       "table": "ordinals",
 
55230
       "row": {"number": 1, "name": "one"}},
 
55231
      {"op": "wait",
 
55232
       "timeout": 0,
 
55233
       "table": "ordinals",
 
55234
       "where": [],
 
55235
       "columns": ["name", "number"],
 
55236
       "until": "!=",
 
55237
       "rows": [{"name": "one", "number": 1}]}]'
 
55238
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55239
at_status=$? at_failed=false
 
55240
$at_check_filter
 
55241
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55242
echo stdout:; tee stdout <"$at_stdout"
 
55243
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55244
$at_failed && at_fn_log_failure
 
55245
$at_traceon; }
 
55246
 
 
55247
   { set +x
 
55248
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
55249
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
55250
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
55251
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55252
at_status=$? at_failed=false
 
55253
$at_check_filter
 
55254
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55255
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
55256
" | \
 
55257
  $at_diff - "$at_stdout" || at_failed=:
 
55258
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55259
$at_failed && at_fn_log_failure
 
55260
$at_traceon; }
 
55261
 
 
55262
     set +x
 
55263
  $at_times_p && times >"$at_times_file"
 
55264
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
55265
read at_status <"$at_status_file"
 
55266
#AT_STOP_780
 
55267
#AT_START_781
 
55268
at_fn_group_banner 781 'ovsdb-execution.at:1038' \
 
55269
  "insert and update constraints" "                  " 56
 
55270
at_xfail=no
 
55271
(
 
55272
  $as_echo "781. $at_setup_line: testing $at_desc ..."
 
55273
  $at_traceon
 
55274
 
 
55275
 
 
55276
   { set +x
 
55277
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"constraints\",
 
55278
     \"tables\": {
 
55279
       \"a\": {
 
55280
         \"columns\": {
 
55281
           \"a\": {\"type\": \"integer\"},
 
55282
           \"a2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
55283
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55284
           \"a2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
55285
                            \"min\": 0, \"max\": \"unlimited\"}}}},
 
55286
       \"b\": {
 
55287
         \"columns\": {
 
55288
           \"b\": {\"type\": \"integer\"},
 
55289
           \"b2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
55290
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55291
           \"b2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
55292
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55293
           \"x\": {\"type\": {\"key\": \"integer\", \"min\": 1, \"max\": 2}}}},
 
55294
       \"constrained\": {
 
55295
         \"columns\": {
 
55296
           \"positive\": {\"type\": {\"key\": {\"type\": \"integer\",
 
55297
                                         \"minInteger\": 1}}}},
 
55298
         \"maxRows\": 1}}}'  '[\"constraints\",
 
55299
      {\"op\": \"insert\",
 
55300
       \"table\": \"constrained\",
 
55301
       \"row\": {}}]' '[\"constraints\",
 
55302
      {\"op\": \"insert\",
 
55303
       \"table\": \"constrained\",
 
55304
       \"row\": {\"positive\": -1}}]' '[\"constraints\",
 
55305
      {\"op\": \"update\",
 
55306
       \"table\": \"constrained\",
 
55307
       \"where\": [],
 
55308
       \"row\": {\"positive\": -2}}]' '[\"constraints\",
 
55309
      {\"op\": \"insert\",
 
55310
       \"table\": \"constrained\",
 
55311
       \"row\": {\"positive\": 1}}]' '[\"constraints\",
 
55312
      {\"op\": \"insert\",
 
55313
       \"table\": \"constrained\",
 
55314
       \"row\": {\"positive\": 2}}]'"
 
55315
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
55316
( $at_check_trace; test-ovsdb execute '{"name": "constraints",
 
55317
     "tables": {
 
55318
       "a": {
 
55319
         "columns": {
 
55320
           "a": {"type": "integer"},
 
55321
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
55322
                            "min": 0, "max": "unlimited"}},
 
55323
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
55324
                            "min": 0, "max": "unlimited"}}}},
 
55325
       "b": {
 
55326
         "columns": {
 
55327
           "b": {"type": "integer"},
 
55328
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
55329
                            "min": 0, "max": "unlimited"}},
 
55330
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
55331
                            "min": 0, "max": "unlimited"}},
 
55332
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
55333
       "constrained": {
 
55334
         "columns": {
 
55335
           "positive": {"type": {"key": {"type": "integer",
 
55336
                                         "minInteger": 1}}}},
 
55337
         "maxRows": 1}}}'  '["constraints",
 
55338
      {"op": "insert",
 
55339
       "table": "constrained",
 
55340
       "row": {}}]' '["constraints",
 
55341
      {"op": "insert",
 
55342
       "table": "constrained",
 
55343
       "row": {"positive": -1}}]' '["constraints",
 
55344
      {"op": "update",
 
55345
       "table": "constrained",
 
55346
       "where": [],
 
55347
       "row": {"positive": -2}}]' '["constraints",
 
55348
      {"op": "insert",
 
55349
       "table": "constrained",
 
55350
       "row": {"positive": 1}}]' '["constraints",
 
55351
      {"op": "insert",
 
55352
       "table": "constrained",
 
55353
       "row": {"positive": 2}}]'
 
55354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55355
at_status=$? at_failed=false
 
55356
$at_check_filter
 
55357
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55358
echo stdout:; tee stdout <"$at_stdout"
 
55359
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55360
$at_failed && at_fn_log_failure
 
55361
$at_traceon; }
 
55362
 
 
55363
   { set +x
 
55364
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
55365
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
55366
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
55367
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55368
at_status=$? at_failed=false
 
55369
$at_check_filter
 
55370
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55371
echo >>"$at_stdout"; $as_echo "[{\"details\":\"0 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
55372
[{\"details\":\"-1 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
55373
[{\"details\":\"-2 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
55374
[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
55375
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"transaction causes \\\"constrained\\\" table to contain 2 rows, greater than the schema-defined limit of 1 row(s)\",\"error\":\"constraint violation\"}]
 
55376
" | \
 
55377
  $at_diff - "$at_stdout" || at_failed=:
 
55378
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55379
$at_failed && at_fn_log_failure
 
55380
$at_traceon; }
 
55381
 
 
55382
     set +x
 
55383
  $at_times_p && times >"$at_times_file"
 
55384
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
55385
read at_status <"$at_status_file"
 
55386
#AT_STOP_781
 
55387
#AT_START_782
 
55388
at_fn_group_banner 782 'ovsdb-execution.at:1038' \
 
55389
  "index uniqueness checking" "                      " 56
 
55390
at_xfail=no
 
55391
(
 
55392
  $as_echo "782. $at_setup_line: testing $at_desc ..."
 
55393
  $at_traceon
 
55394
 
 
55395
 
 
55396
   { set +x
 
55397
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"ordinals\",
 
55398
     \"tables\": {
 
55399
       \"ordinals\": {
 
55400
         \"columns\": {
 
55401
           \"number\": {\"type\": \"integer\"},
 
55402
           \"name\": {\"type\": \"string\"}},
 
55403
         \"indexes\": [[\"number\"]]}},
 
55404
     \"version\": \"5.1.3\",
 
55405
     \"cksum\": \"12345678 9\"}'  '[\"ordinals\",
 
55406
      {\"op\": \"insert\",
 
55407
       \"table\": \"ordinals\",
 
55408
       \"row\": {\"number\": 1, \"name\": \"one\"}}]' '   [\"ordinals\",
 
55409
      {\"op\": \"insert\",
 
55410
       \"table\": \"ordinals\",
 
55411
       \"row\": {\"number\": 1, \"name\": \"another one\"}}]' '   [\"ordinals\",
 
55412
      {\"op\": \"insert\",
 
55413
       \"table\": \"ordinals\",
 
55414
       \"row\": {\"number\": 1, \"name\": \"another one\"}},
 
55415
      {\"op\": \"delete\",
 
55416
       \"table\": \"ordinals\",
 
55417
       \"where\": [[\"name\", \"==\", \"one\"]]}]' '   [\"ordinals\",
 
55418
      {\"op\": \"delete\",
 
55419
       \"table\": \"ordinals\",
 
55420
       \"where\": []},
 
55421
      {\"op\": \"insert\",
 
55422
       \"table\": \"ordinals\",
 
55423
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
55424
      {\"op\": \"insert\",
 
55425
       \"table\": \"ordinals\",
 
55426
       \"row\": {\"number\": 1, \"name\": \"still another one\"}}]' '   [\"ordinals\",
 
55427
      {\"op\": \"insert\",
 
55428
       \"table\": \"ordinals\",
 
55429
       \"row\": {\"number\": 2, \"name\": \"two\"}}]' '   [\"ordinals\",
 
55430
      {\"op\": \"update\",
 
55431
       \"table\": \"ordinals\",
 
55432
       \"where\": [],
 
55433
       \"row\": {\"number\": 3}}]' '   [\"ordinals\",
 
55434
      {\"op\": \"update\",
 
55435
       \"table\": \"ordinals\",
 
55436
       \"where\": [[\"number\", \"==\", 1]],
 
55437
       \"row\": {\"number\": 2, \"name\": \"old two\"}},
 
55438
      {\"op\": \"update\",
 
55439
       \"table\": \"ordinals\",
 
55440
       \"where\": [[\"name\", \"==\", \"two\"]],
 
55441
       \"row\": {\"number\": 1, \"name\": \"old one\"}}]' '   [\"ordinals\",
 
55442
      {\"op\": \"mutate\",
 
55443
       \"table\": \"ordinals\",
 
55444
       \"where\": [],
 
55445
       \"mutations\": [[\"number\", \"*=\", 10]]},
 
55446
      {\"op\": \"insert\",
 
55447
       \"table\": \"ordinals\",
 
55448
       \"row\": {\"number\": 1, \"name\": \"new one\"}},
 
55449
      {\"op\": \"insert\",
 
55450
       \"table\": \"ordinals\",
 
55451
       \"row\": {\"number\": 2, \"name\": \"new two\"}},
 
55452
      {\"op\": \"select\",
 
55453
       \"table\": \"ordinals\",
 
55454
       \"where\": [],
 
55455
       \"columns\": [\"number\", \"name\"],
 
55456
       \"sort\": [\"number\"]}]'"
 
55457
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
55458
( $at_check_trace; test-ovsdb execute '{"name": "ordinals",
 
55459
     "tables": {
 
55460
       "ordinals": {
 
55461
         "columns": {
 
55462
           "number": {"type": "integer"},
 
55463
           "name": {"type": "string"}},
 
55464
         "indexes": [["number"]]}},
 
55465
     "version": "5.1.3",
 
55466
     "cksum": "12345678 9"}'  '["ordinals",
 
55467
      {"op": "insert",
 
55468
       "table": "ordinals",
 
55469
       "row": {"number": 1, "name": "one"}}]' '   ["ordinals",
 
55470
      {"op": "insert",
 
55471
       "table": "ordinals",
 
55472
       "row": {"number": 1, "name": "another one"}}]' '   ["ordinals",
 
55473
      {"op": "insert",
 
55474
       "table": "ordinals",
 
55475
       "row": {"number": 1, "name": "another one"}},
 
55476
      {"op": "delete",
 
55477
       "table": "ordinals",
 
55478
       "where": [["name", "==", "one"]]}]' '   ["ordinals",
 
55479
      {"op": "delete",
 
55480
       "table": "ordinals",
 
55481
       "where": []},
 
55482
      {"op": "insert",
 
55483
       "table": "ordinals",
 
55484
       "row": {"number": 1, "name": "one"}},
 
55485
      {"op": "insert",
 
55486
       "table": "ordinals",
 
55487
       "row": {"number": 1, "name": "still another one"}}]' '   ["ordinals",
 
55488
      {"op": "insert",
 
55489
       "table": "ordinals",
 
55490
       "row": {"number": 2, "name": "two"}}]' '   ["ordinals",
 
55491
      {"op": "update",
 
55492
       "table": "ordinals",
 
55493
       "where": [],
 
55494
       "row": {"number": 3}}]' '   ["ordinals",
 
55495
      {"op": "update",
 
55496
       "table": "ordinals",
 
55497
       "where": [["number", "==", 1]],
 
55498
       "row": {"number": 2, "name": "old two"}},
 
55499
      {"op": "update",
 
55500
       "table": "ordinals",
 
55501
       "where": [["name", "==", "two"]],
 
55502
       "row": {"number": 1, "name": "old one"}}]' '   ["ordinals",
 
55503
      {"op": "mutate",
 
55504
       "table": "ordinals",
 
55505
       "where": [],
 
55506
       "mutations": [["number", "*=", 10]]},
 
55507
      {"op": "insert",
 
55508
       "table": "ordinals",
 
55509
       "row": {"number": 1, "name": "new one"}},
 
55510
      {"op": "insert",
 
55511
       "table": "ordinals",
 
55512
       "row": {"number": 2, "name": "new two"}},
 
55513
      {"op": "select",
 
55514
       "table": "ordinals",
 
55515
       "where": [],
 
55516
       "columns": ["number", "name"],
 
55517
       "sort": ["number"]}]'
 
55518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55519
at_status=$? at_failed=false
 
55520
$at_check_filter
 
55521
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55522
echo stdout:; tee stdout <"$at_stdout"
 
55523
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55524
$at_failed && at_fn_log_failure
 
55525
$at_traceon; }
 
55526
 
 
55527
   { set +x
 
55528
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
55529
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
55530
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
55531
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55532
at_status=$? at_failed=false
 
55533
$at_check_filter
 
55534
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55535
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
55536
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <0>, existed in the database before this transaction and was not modified by the transaction.  Second row, with UUID <1>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
55537
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"count\":1}]
 
55538
[{\"count\":1},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <4>, was inserted by this transaction.  Second row, with UUID <3>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
55539
[{\"uuid\":[\"uuid\",\"<5>\"]}]
 
55540
[{\"count\":2},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (3) for index on column \\\"number\\\".  First row, with UUID <5>, had the following index values before the transaction: 2.  Second row, with UUID <2>, had the following index values before the transaction: 1.\",\"error\":\"constraint violation\"}]
 
55541
[{\"count\":1},{\"count\":1}]
 
55542
[{\"count\":2},{\"uuid\":[\"uuid\",\"<6>\"]},{\"uuid\":[\"uuid\",\"<7>\"]},{\"rows\":[{\"name\":\"new one\",\"number\":1},{\"name\":\"new two\",\"number\":2},{\"name\":\"old one\",\"number\":10},{\"name\":\"old two\",\"number\":20}]}]
 
55543
" | \
 
55544
  $at_diff - "$at_stdout" || at_failed=:
 
55545
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55546
$at_failed && at_fn_log_failure
 
55547
$at_traceon; }
 
55548
 
 
55549
     set +x
 
55550
  $at_times_p && times >"$at_times_file"
 
55551
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
55552
read at_status <"$at_status_file"
 
55553
#AT_STOP_782
 
55554
#AT_START_783
 
55555
at_fn_group_banner 783 'ovsdb-execution.at:1038' \
 
55556
  "referential integrity -- simple" "                " 56
 
55557
at_xfail=no
 
55558
(
 
55559
  $as_echo "783. $at_setup_line: testing $at_desc ..."
 
55560
  $at_traceon
 
55561
 
 
55562
 
 
55563
   { set +x
 
55564
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"constraints\",
 
55565
     \"tables\": {
 
55566
       \"a\": {
 
55567
         \"columns\": {
 
55568
           \"a\": {\"type\": \"integer\"},
 
55569
           \"a2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
55570
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55571
           \"a2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
55572
                            \"min\": 0, \"max\": \"unlimited\"}}}},
 
55573
       \"b\": {
 
55574
         \"columns\": {
 
55575
           \"b\": {\"type\": \"integer\"},
 
55576
           \"b2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
55577
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55578
           \"b2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
55579
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55580
           \"x\": {\"type\": {\"key\": \"integer\", \"min\": 1, \"max\": 2}}}},
 
55581
       \"constrained\": {
 
55582
         \"columns\": {
 
55583
           \"positive\": {\"type\": {\"key\": {\"type\": \"integer\",
 
55584
                                         \"minInteger\": 1}}}},
 
55585
         \"maxRows\": 1}}}'  '[\"constraints\",
 
55586
      {\"op\": \"insert\",
 
55587
       \"table\": \"b\",
 
55588
       \"row\": {\"b\": 1},
 
55589
       \"uuid-name\": \"brow\"},
 
55590
      {\"op\": \"insert\",
 
55591
       \"table\": \"a\",
 
55592
       \"row\": {\"a\": 0,
 
55593
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}},
 
55594
      {\"op\": \"insert\",
 
55595
       \"table\": \"a\",
 
55596
       \"row\": {\"a\": 1,
 
55597
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}},
 
55598
      {\"op\": \"insert\",
 
55599
       \"table\": \"a\",
 
55600
       \"row\": {\"a\": 2,
 
55601
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}}]' '[\"constraints\",
 
55602
      {\"op\": \"delete\",
 
55603
       \"table\": \"b\",
 
55604
       \"where\": []}]' '   [\"constraints\",
 
55605
      {\"op\": \"mutate\",
 
55606
       \"table\": \"b\",
 
55607
       \"where\": [],
 
55608
       \"mutations\": [[\"x\", \"delete\", 0]]}]' '[\"constraints\",
 
55609
      {\"op\": \"delete\",
 
55610
       \"table\": \"a\",
 
55611
       \"where\": [[\"a\", \"==\", 0]]}]' '[\"constraints\",
 
55612
      {\"op\": \"delete\",
 
55613
       \"table\": \"b\",
 
55614
       \"where\": []}]' '[\"constraints\",
 
55615
      {\"op\": \"delete\",
 
55616
       \"table\": \"a\",
 
55617
       \"where\": [[\"a\", \"==\", 1]]}]' '[\"constraints\",
 
55618
      {\"op\": \"delete\",
 
55619
       \"table\": \"b\",
 
55620
       \"where\": []}]' '[\"constraints\",
 
55621
      {\"op\": \"delete\",
 
55622
       \"table\": \"a\",
 
55623
       \"where\": [[\"a\", \"==\", 2]]}]' '[\"constraints\",
 
55624
      {\"op\": \"delete\",
 
55625
       \"table\": \"b\",
 
55626
       \"where\": []}]'"
 
55627
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
55628
( $at_check_trace; test-ovsdb execute '{"name": "constraints",
 
55629
     "tables": {
 
55630
       "a": {
 
55631
         "columns": {
 
55632
           "a": {"type": "integer"},
 
55633
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
55634
                            "min": 0, "max": "unlimited"}},
 
55635
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
55636
                            "min": 0, "max": "unlimited"}}}},
 
55637
       "b": {
 
55638
         "columns": {
 
55639
           "b": {"type": "integer"},
 
55640
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
55641
                            "min": 0, "max": "unlimited"}},
 
55642
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
55643
                            "min": 0, "max": "unlimited"}},
 
55644
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
55645
       "constrained": {
 
55646
         "columns": {
 
55647
           "positive": {"type": {"key": {"type": "integer",
 
55648
                                         "minInteger": 1}}}},
 
55649
         "maxRows": 1}}}'  '["constraints",
 
55650
      {"op": "insert",
 
55651
       "table": "b",
 
55652
       "row": {"b": 1},
 
55653
       "uuid-name": "brow"},
 
55654
      {"op": "insert",
 
55655
       "table": "a",
 
55656
       "row": {"a": 0,
 
55657
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
55658
      {"op": "insert",
 
55659
       "table": "a",
 
55660
       "row": {"a": 1,
 
55661
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
55662
      {"op": "insert",
 
55663
       "table": "a",
 
55664
       "row": {"a": 2,
 
55665
               "a2b": ["set", [["named-uuid", "brow"]]]}}]' '["constraints",
 
55666
      {"op": "delete",
 
55667
       "table": "b",
 
55668
       "where": []}]' '   ["constraints",
 
55669
      {"op": "mutate",
 
55670
       "table": "b",
 
55671
       "where": [],
 
55672
       "mutations": [["x", "delete", 0]]}]' '["constraints",
 
55673
      {"op": "delete",
 
55674
       "table": "a",
 
55675
       "where": [["a", "==", 0]]}]' '["constraints",
 
55676
      {"op": "delete",
 
55677
       "table": "b",
 
55678
       "where": []}]' '["constraints",
 
55679
      {"op": "delete",
 
55680
       "table": "a",
 
55681
       "where": [["a", "==", 1]]}]' '["constraints",
 
55682
      {"op": "delete",
 
55683
       "table": "b",
 
55684
       "where": []}]' '["constraints",
 
55685
      {"op": "delete",
 
55686
       "table": "a",
 
55687
       "where": [["a", "==", 2]]}]' '["constraints",
 
55688
      {"op": "delete",
 
55689
       "table": "b",
 
55690
       "where": []}]'
 
55691
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55692
at_status=$? at_failed=false
 
55693
$at_check_filter
 
55694
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55695
echo stdout:; tee stdout <"$at_stdout"
 
55696
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55697
$at_failed && at_fn_log_failure
 
55698
$at_traceon; }
 
55699
 
 
55700
   { set +x
 
55701
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
55702
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
55703
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
55704
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55705
at_status=$? at_failed=false
 
55706
$at_check_filter
 
55707
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55708
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]
 
55709
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 3 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
55710
[{\"details\":\"Attempted to store 0 elements in set of 1 to 2 integers.\",\"error\":\"constraint violation\"}]
 
55711
[{\"count\":1}]
 
55712
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 2 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
55713
[{\"count\":1}]
 
55714
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
55715
[{\"count\":1}]
 
55716
[{\"count\":1}]
 
55717
" | \
 
55718
  $at_diff - "$at_stdout" || at_failed=:
 
55719
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55720
$at_failed && at_fn_log_failure
 
55721
$at_traceon; }
 
55722
 
 
55723
     set +x
 
55724
  $at_times_p && times >"$at_times_file"
 
55725
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
55726
read at_status <"$at_status_file"
 
55727
#AT_STOP_783
 
55728
#AT_START_784
 
55729
at_fn_group_banner 784 'ovsdb-execution.at:1038' \
 
55730
  "referential integrity -- mutual references" "     " 56
 
55731
at_xfail=no
 
55732
(
 
55733
  $as_echo "784. $at_setup_line: testing $at_desc ..."
 
55734
  $at_traceon
 
55735
 
 
55736
 
 
55737
   { set +x
 
55738
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"constraints\",
 
55739
     \"tables\": {
 
55740
       \"a\": {
 
55741
         \"columns\": {
 
55742
           \"a\": {\"type\": \"integer\"},
 
55743
           \"a2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
55744
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55745
           \"a2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
55746
                            \"min\": 0, \"max\": \"unlimited\"}}}},
 
55747
       \"b\": {
 
55748
         \"columns\": {
 
55749
           \"b\": {\"type\": \"integer\"},
 
55750
           \"b2a\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"a\"},
 
55751
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55752
           \"b2b\": {\"type\": {\"key\": {\"type\": \"uuid\", \"refTable\": \"b\"},
 
55753
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55754
           \"x\": {\"type\": {\"key\": \"integer\", \"min\": 1, \"max\": 2}}}},
 
55755
       \"constrained\": {
 
55756
         \"columns\": {
 
55757
           \"positive\": {\"type\": {\"key\": {\"type\": \"integer\",
 
55758
                                         \"minInteger\": 1}}}},
 
55759
         \"maxRows\": 1}}}'  '[\"constraints\",
 
55760
      {\"op\": \"insert\",
 
55761
       \"table\": \"a\",
 
55762
       \"row\": {\"a\": 0,
 
55763
               \"a2b\": [\"set\", [[\"named-uuid\", \"row2\"]]],
 
55764
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"]]]},
 
55765
       \"uuid-name\": \"row1\"},
 
55766
      {\"op\": \"insert\",
 
55767
       \"table\": \"b\",
 
55768
       \"row\": {\"b\": 1,
 
55769
               \"b2b\": [\"set\", [[\"named-uuid\", \"row2\"]]],
 
55770
               \"b2a\": [\"set\", [[\"named-uuid\", \"row1\"]]]},
 
55771
       \"uuid-name\": \"row2\"}]' '[\"constraints\",
 
55772
      {\"op\": \"insert\",
 
55773
       \"table\": \"a\",
 
55774
       \"row\": {\"a2b\": [\"set\", [[\"uuid\", \"b516b960-5b19-4fc2-bb82-fe1cbd6d0241\"]]]}}]' '[\"constraints\",
 
55775
      {\"op\": \"delete\",
 
55776
       \"table\": \"a\",
 
55777
       \"where\": [[\"a\", \"==\", 0]]}]' '[\"constraints\",
 
55778
      {\"op\": \"delete\",
 
55779
       \"table\": \"b\",
 
55780
       \"where\": [[\"b\", \"==\", 1]]}]' '   [\"constraints\",
 
55781
      {\"op\": \"delete\",
 
55782
       \"table\": \"a\",
 
55783
       \"where\": [[\"a\", \"==\", 0]]}]' '[\"constraints\",
 
55784
      {\"op\": \"delete\",
 
55785
       \"table\": \"b\",
 
55786
       \"where\": [[\"b\", \"==\", 1]]}]' '[\"constraints\",
 
55787
      {\"op\": \"delete\",
 
55788
       \"table\": \"a\",
 
55789
       \"where\": [[\"a\", \"==\", 0]]},
 
55790
      {\"op\": \"delete\",
 
55791
       \"table\": \"b\",
 
55792
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
55793
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
55794
( $at_check_trace; test-ovsdb execute '{"name": "constraints",
 
55795
     "tables": {
 
55796
       "a": {
 
55797
         "columns": {
 
55798
           "a": {"type": "integer"},
 
55799
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
55800
                            "min": 0, "max": "unlimited"}},
 
55801
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
55802
                            "min": 0, "max": "unlimited"}}}},
 
55803
       "b": {
 
55804
         "columns": {
 
55805
           "b": {"type": "integer"},
 
55806
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
55807
                            "min": 0, "max": "unlimited"}},
 
55808
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
55809
                            "min": 0, "max": "unlimited"}},
 
55810
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
55811
       "constrained": {
 
55812
         "columns": {
 
55813
           "positive": {"type": {"key": {"type": "integer",
 
55814
                                         "minInteger": 1}}}},
 
55815
         "maxRows": 1}}}'  '["constraints",
 
55816
      {"op": "insert",
 
55817
       "table": "a",
 
55818
       "row": {"a": 0,
 
55819
               "a2b": ["set", [["named-uuid", "row2"]]],
 
55820
               "a2a": ["set", [["named-uuid", "row1"]]]},
 
55821
       "uuid-name": "row1"},
 
55822
      {"op": "insert",
 
55823
       "table": "b",
 
55824
       "row": {"b": 1,
 
55825
               "b2b": ["set", [["named-uuid", "row2"]]],
 
55826
               "b2a": ["set", [["named-uuid", "row1"]]]},
 
55827
       "uuid-name": "row2"}]' '["constraints",
 
55828
      {"op": "insert",
 
55829
       "table": "a",
 
55830
       "row": {"a2b": ["set", [["uuid", "b516b960-5b19-4fc2-bb82-fe1cbd6d0241"]]]}}]' '["constraints",
 
55831
      {"op": "delete",
 
55832
       "table": "a",
 
55833
       "where": [["a", "==", 0]]}]' '["constraints",
 
55834
      {"op": "delete",
 
55835
       "table": "b",
 
55836
       "where": [["b", "==", 1]]}]' '   ["constraints",
 
55837
      {"op": "delete",
 
55838
       "table": "a",
 
55839
       "where": [["a", "==", 0]]}]' '["constraints",
 
55840
      {"op": "delete",
 
55841
       "table": "b",
 
55842
       "where": [["b", "==", 1]]}]' '["constraints",
 
55843
      {"op": "delete",
 
55844
       "table": "a",
 
55845
       "where": [["a", "==", 0]]},
 
55846
      {"op": "delete",
 
55847
       "table": "b",
 
55848
       "where": [["b", "==", 1]]}]'
 
55849
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55850
at_status=$? at_failed=false
 
55851
$at_check_filter
 
55852
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55853
echo stdout:; tee stdout <"$at_stdout"
 
55854
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55855
$at_failed && at_fn_log_failure
 
55856
$at_traceon; }
 
55857
 
 
55858
   { set +x
 
55859
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
55860
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
55861
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
55862
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
55863
at_status=$? at_failed=false
 
55864
$at_check_filter
 
55865
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
55866
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]
 
55867
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"details\":\"Table a column a2b row <2> references nonexistent row <3> in table b.\",\"error\":\"referential integrity violation\"}]
 
55868
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
55869
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
55870
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
55871
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
55872
[{\"count\":1},{\"count\":1}]
 
55873
" | \
 
55874
  $at_diff - "$at_stdout" || at_failed=:
 
55875
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
55876
$at_failed && at_fn_log_failure
 
55877
$at_traceon; }
 
55878
 
 
55879
     set +x
 
55880
  $at_times_p && times >"$at_times_file"
 
55881
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
55882
read at_status <"$at_status_file"
 
55883
#AT_STOP_784
 
55884
#AT_START_785
 
55885
at_fn_group_banner 785 'ovsdb-execution.at:1038' \
 
55886
  "weak references" "                                " 56
 
55887
at_xfail=no
 
55888
(
 
55889
  $as_echo "785. $at_setup_line: testing $at_desc ..."
 
55890
  $at_traceon
 
55891
 
 
55892
 
 
55893
   { set +x
 
55894
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"weak\",
 
55895
     \"tables\": {
 
55896
       \"a\": {
 
55897
         \"columns\": {
 
55898
           \"a\": {\"type\": \"integer\"},
 
55899
           \"a2a\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
55900
                                    \"refTable\": \"a\",
 
55901
                                    \"refType\": \"weak\"},
 
55902
                            \"min\": 0, \"max\": \"unlimited\"}},
 
55903
           \"a2a1\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
55904
                                     \"refTable\": \"a\",
 
55905
                                     \"refType\": \"weak\"}}},
 
55906
           \"a2b\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
55907
                                    \"refTable\": \"b\",
 
55908
                                    \"refType\": \"weak\"}}}}},
 
55909
       \"b\": {
 
55910
         \"columns\": {
 
55911
           \"b\": {\"type\": \"integer\"},
 
55912
           \"b2a\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
55913
                                    \"refTable\": \"a\",
 
55914
                                    \"refType\": \"weak\"},
 
55915
                            \"min\": 0, \"max\": \"unlimited\"}}}}}}'  '[\"weak\",
 
55916
      {\"op\": \"insert\",
 
55917
       \"table\": \"a\",
 
55918
       \"row\": {\"a\": 0,
 
55919
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
55920
                               [\"named-uuid\", \"row2\"],
 
55921
                               [\"uuid\", \"0e767b36-6822-4044-8307-d58467e04669\"]]],
 
55922
               \"a2a1\": [\"named-uuid\", \"row1\"],
 
55923
               \"a2b\": [\"named-uuid\", \"row3\"]},
 
55924
       \"uuid-name\": \"row1\"},
 
55925
      {\"op\": \"insert\",
 
55926
       \"table\": \"a\",
 
55927
       \"row\": {\"a\": 1,
 
55928
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
55929
                               [\"named-uuid\", \"row2\"]]],
 
55930
               \"a2a1\": [\"named-uuid\", \"row2\"],
 
55931
               \"a2b\": [\"named-uuid\", \"row3\"]},
 
55932
       \"uuid-name\": \"row2\"},
 
55933
      {\"op\": \"insert\",
 
55934
       \"table\": \"a\",
 
55935
       \"row\": {\"a\": 2,
 
55936
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
55937
                               [\"named-uuid\", \"row2\"]]],
 
55938
               \"a2a1\": [\"named-uuid\", \"row2\"],
 
55939
               \"a2b\": [\"named-uuid\", \"row4\"]}},
 
55940
      {\"op\": \"insert\",
 
55941
       \"table\": \"b\",
 
55942
       \"row\": {\"b\": 2,
 
55943
               \"b2a\": [\"named-uuid\", \"row1\"]},
 
55944
       \"uuid-name\": \"row3\"},
 
55945
      {\"op\": \"insert\",
 
55946
       \"table\": \"b\",
 
55947
       \"row\": {\"b\": 3,
 
55948
               \"b2a\": [\"named-uuid\", \"row2\"]},
 
55949
       \"uuid-name\": \"row4\"}]' '      [\"weak\",
 
55950
      {\"op\": \"select\",
 
55951
       \"table\": \"a\",
 
55952
       \"where\": [],
 
55953
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
55954
       \"sort\": [\"a\"]}]' '[\"weak\",
 
55955
      {\"op\": \"select\",
 
55956
       \"table\": \"b\",
 
55957
       \"where\": [],
 
55958
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
55959
       \"sort\": [\"b\"]}]' '      [\"weak\",
 
55960
      {\"op\": \"insert\",
 
55961
       \"table\": \"a\",
 
55962
       \"row\": {\"a2a1\": [\"named-uuid\", \"me\"]},
 
55963
       \"uuid-name\": \"me\"}]' '      [\"weak\",
 
55964
      {\"op\": \"delete\",
 
55965
       \"table\": \"b\",
 
55966
       \"where\": [[\"b\", \"==\", 3]]}]' '      [\"weak\",
 
55967
      {\"op\": \"delete\",
 
55968
       \"table\": \"a\",
 
55969
       \"where\": [[\"a\", \"==\", 1]]}]' '      [\"weak\",
 
55970
      {\"op\": \"delete\",
 
55971
       \"table\": \"a\",
 
55972
       \"where\": [[\"a\", \"==\", 2]]}]' '[\"weak\",
 
55973
      {\"op\": \"select\",
 
55974
       \"table\": \"a\",
 
55975
       \"where\": [],
 
55976
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
55977
       \"sort\": [\"a\"]}]' '[\"weak\",
 
55978
      {\"op\": \"select\",
 
55979
       \"table\": \"b\",
 
55980
       \"where\": [],
 
55981
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
55982
       \"sort\": [\"b\"]}]' '   [\"weak\",
 
55983
      {\"op\": \"delete\",
 
55984
       \"table\": \"a\",
 
55985
       \"where\": [[\"a\", \"==\", 0]]}]' '[\"weak\",
 
55986
      {\"op\": \"select\",
 
55987
       \"table\": \"a\",
 
55988
       \"where\": [],
 
55989
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
55990
       \"sort\": [\"a\"]}]' '[\"weak\",
 
55991
      {\"op\": \"select\",
 
55992
       \"table\": \"b\",
 
55993
       \"where\": [],
 
55994
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
55995
       \"sort\": [\"b\"]}]' '   [\"weak\",
 
55996
      {\"op\": \"delete\",
 
55997
       \"table\": \"a\",
 
55998
       \"where\": [[\"a\", \"==\", 1]]}]' '[\"weak\",
 
55999
      {\"op\": \"select\",
 
56000
       \"table\": \"a\",
 
56001
       \"where\": [],
 
56002
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
56003
       \"sort\": [\"a\"]}]' '[\"weak\",
 
56004
      {\"op\": \"select\",
 
56005
       \"table\": \"b\",
 
56006
       \"where\": [],
 
56007
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
56008
       \"sort\": [\"b\"]}]'"
 
56009
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
56010
( $at_check_trace; test-ovsdb execute '{"name": "weak",
 
56011
     "tables": {
 
56012
       "a": {
 
56013
         "columns": {
 
56014
           "a": {"type": "integer"},
 
56015
           "a2a": {"type": {"key": {"type": "uuid",
 
56016
                                    "refTable": "a",
 
56017
                                    "refType": "weak"},
 
56018
                            "min": 0, "max": "unlimited"}},
 
56019
           "a2a1": {"type": {"key": {"type": "uuid",
 
56020
                                     "refTable": "a",
 
56021
                                     "refType": "weak"}}},
 
56022
           "a2b": {"type": {"key": {"type": "uuid",
 
56023
                                    "refTable": "b",
 
56024
                                    "refType": "weak"}}}}},
 
56025
       "b": {
 
56026
         "columns": {
 
56027
           "b": {"type": "integer"},
 
56028
           "b2a": {"type": {"key": {"type": "uuid",
 
56029
                                    "refTable": "a",
 
56030
                                    "refType": "weak"},
 
56031
                            "min": 0, "max": "unlimited"}}}}}}'  '["weak",
 
56032
      {"op": "insert",
 
56033
       "table": "a",
 
56034
       "row": {"a": 0,
 
56035
               "a2a": ["set", [["named-uuid", "row1"],
 
56036
                               ["named-uuid", "row2"],
 
56037
                               ["uuid", "0e767b36-6822-4044-8307-d58467e04669"]]],
 
56038
               "a2a1": ["named-uuid", "row1"],
 
56039
               "a2b": ["named-uuid", "row3"]},
 
56040
       "uuid-name": "row1"},
 
56041
      {"op": "insert",
 
56042
       "table": "a",
 
56043
       "row": {"a": 1,
 
56044
               "a2a": ["set", [["named-uuid", "row1"],
 
56045
                               ["named-uuid", "row2"]]],
 
56046
               "a2a1": ["named-uuid", "row2"],
 
56047
               "a2b": ["named-uuid", "row3"]},
 
56048
       "uuid-name": "row2"},
 
56049
      {"op": "insert",
 
56050
       "table": "a",
 
56051
       "row": {"a": 2,
 
56052
               "a2a": ["set", [["named-uuid", "row1"],
 
56053
                               ["named-uuid", "row2"]]],
 
56054
               "a2a1": ["named-uuid", "row2"],
 
56055
               "a2b": ["named-uuid", "row4"]}},
 
56056
      {"op": "insert",
 
56057
       "table": "b",
 
56058
       "row": {"b": 2,
 
56059
               "b2a": ["named-uuid", "row1"]},
 
56060
       "uuid-name": "row3"},
 
56061
      {"op": "insert",
 
56062
       "table": "b",
 
56063
       "row": {"b": 3,
 
56064
               "b2a": ["named-uuid", "row2"]},
 
56065
       "uuid-name": "row4"}]' '      ["weak",
 
56066
      {"op": "select",
 
56067
       "table": "a",
 
56068
       "where": [],
 
56069
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
56070
       "sort": ["a"]}]' '["weak",
 
56071
      {"op": "select",
 
56072
       "table": "b",
 
56073
       "where": [],
 
56074
       "columns": ["_uuid", "b", "b2a"],
 
56075
       "sort": ["b"]}]' '      ["weak",
 
56076
      {"op": "insert",
 
56077
       "table": "a",
 
56078
       "row": {"a2a1": ["named-uuid", "me"]},
 
56079
       "uuid-name": "me"}]' '      ["weak",
 
56080
      {"op": "delete",
 
56081
       "table": "b",
 
56082
       "where": [["b", "==", 3]]}]' '      ["weak",
 
56083
      {"op": "delete",
 
56084
       "table": "a",
 
56085
       "where": [["a", "==", 1]]}]' '      ["weak",
 
56086
      {"op": "delete",
 
56087
       "table": "a",
 
56088
       "where": [["a", "==", 2]]}]' '["weak",
 
56089
      {"op": "select",
 
56090
       "table": "a",
 
56091
       "where": [],
 
56092
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
56093
       "sort": ["a"]}]' '["weak",
 
56094
      {"op": "select",
 
56095
       "table": "b",
 
56096
       "where": [],
 
56097
       "columns": ["_uuid", "b", "b2a"],
 
56098
       "sort": ["b"]}]' '   ["weak",
 
56099
      {"op": "delete",
 
56100
       "table": "a",
 
56101
       "where": [["a", "==", 0]]}]' '["weak",
 
56102
      {"op": "select",
 
56103
       "table": "a",
 
56104
       "where": [],
 
56105
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
56106
       "sort": ["a"]}]' '["weak",
 
56107
      {"op": "select",
 
56108
       "table": "b",
 
56109
       "where": [],
 
56110
       "columns": ["_uuid", "b", "b2a"],
 
56111
       "sort": ["b"]}]' '   ["weak",
 
56112
      {"op": "delete",
 
56113
       "table": "a",
 
56114
       "where": [["a", "==", 1]]}]' '["weak",
 
56115
      {"op": "select",
 
56116
       "table": "a",
 
56117
       "where": [],
 
56118
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
56119
       "sort": ["a"]}]' '["weak",
 
56120
      {"op": "select",
 
56121
       "table": "b",
 
56122
       "where": [],
 
56123
       "columns": ["_uuid", "b", "b2a"],
 
56124
       "sort": ["b"]}]'
 
56125
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56126
at_status=$? at_failed=false
 
56127
$at_check_filter
 
56128
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56129
echo stdout:; tee stdout <"$at_stdout"
 
56130
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
56131
$at_failed && at_fn_log_failure
 
56132
$at_traceon; }
 
56133
 
 
56134
   { set +x
 
56135
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
56136
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
56137
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
56138
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56139
at_status=$? at_failed=false
 
56140
$at_check_filter
 
56141
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56142
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
56143
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<2>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<4>\"]}]}]
 
56144
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
56145
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"details\":\"Weak reference column \\\"a2b\\\" in \\\"a\\\" row <5> (inserted within this transaction) contained all-zeros UUID (probably as the default value for this column) but deleting this value caused a constraint volation because this column is not allowed to be empty.\",\"error\":\"constraint violation\"}]
 
56146
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2b\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
56147
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2a1\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
56148
[{\"count\":1}]
 
56149
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
56150
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
56151
[{\"count\":1}]
 
56152
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"uuid\",\"<1>\"],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
56153
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
56154
[{\"count\":1}]
 
56155
[{\"rows\":[]}]
 
56156
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"set\",[]]}]}]
 
56157
" | \
 
56158
  $at_diff - "$at_stdout" || at_failed=:
 
56159
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
56160
$at_failed && at_fn_log_failure
 
56161
$at_traceon; }
 
56162
 
 
56163
     set +x
 
56164
  $at_times_p && times >"$at_times_file"
 
56165
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
56166
read at_status <"$at_status_file"
 
56167
#AT_STOP_785
 
56168
#AT_START_786
 
56169
at_fn_group_banner 786 'ovsdb-execution.at:1038' \
 
56170
  "garbage collection" "                             " 56
 
56171
at_xfail=no
 
56172
(
 
56173
  $as_echo "786. $at_setup_line: testing $at_desc ..."
 
56174
  $at_traceon
 
56175
 
 
56176
 
 
56177
   { set +x
 
56178
$as_echo "$at_srcdir/ovsdb-execution.at:1038: test-ovsdb execute '{\"name\": \"gc\",
 
56179
     \"tables\": {
 
56180
       \"root\": {
 
56181
         \"columns\": {
 
56182
           \"a\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
56183
                                  \"refTable\": \"a\"},
 
56184
                            \"min\": 0, \"max\": \"unlimited\"}}},
 
56185
         \"isRoot\": true},
 
56186
       \"a\": {
 
56187
         \"columns\": {
 
56188
           \"a\": {\"type\": \"integer\"},
 
56189
           \"a2a\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
56190
                                    \"refTable\": \"a\"},
 
56191
                            \"min\": 0, \"max\": \"unlimited\"}},
 
56192
           \"a2b\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
56193
                                    \"refTable\": \"b\"},
 
56194
                            \"min\": 0, \"max\": \"unlimited\"}},
 
56195
           \"wa2a\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
56196
                                     \"refTable\": \"a\",
 
56197
                                     \"refType\": \"weak\"},
 
56198
                             \"min\": 0, \"max\": \"unlimited\"}},
 
56199
           \"wa2b\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
56200
                                    \"refTable\": \"b\",
 
56201
                                    \"refType\": \"weak\"},
 
56202
                             \"min\": 0, \"max\": \"unlimited\"}}}},
 
56203
       \"b\": {
 
56204
         \"columns\": {
 
56205
           \"b\": {\"type\": \"integer\"},
 
56206
           \"b2a\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
56207
                                    \"refTable\": \"a\"},
 
56208
                            \"min\": 0, \"max\": \"unlimited\"}},
 
56209
           \"wb2a\": {\"type\": {\"key\": {\"type\": \"uuid\",
 
56210
                                     \"refTable\": \"a\",
 
56211
                                     \"refType\": \"weak\"},
 
56212
                             \"min\": 0, \"max\": \"unlimited\"}}},
 
56213
         \"isRoot\": false}}}'  '   [\"gc\",
 
56214
      {\"op\": \"insert\",
 
56215
       \"table\": \"a\",
 
56216
       \"row\": {\"a\": 0}}]' '[\"gc\",
 
56217
      {\"op\": \"select\",
 
56218
       \"table\": \"a\",
 
56219
       \"where\": [],
 
56220
       \"columns\": [\"a\"]}]' '      [\"gc\",
 
56221
      {\"op\": \"insert\",
 
56222
       \"table\": \"a\",
 
56223
       \"row\": {\"a\": 0, \"a2a\": [\"named-uuid\", \"row1\"]},
 
56224
       \"uuid-name\": \"row0\"},
 
56225
      {\"op\": \"insert\",
 
56226
       \"table\": \"a\",
 
56227
       \"row\": {\"a\": 1, \"a2a\": [\"named-uuid\", \"row2\"]},
 
56228
       \"uuid-name\": \"row1\"},
 
56229
      {\"op\": \"insert\",
 
56230
       \"table\": \"a\",
 
56231
       \"row\": {\"a\": 2, \"a2a\": [\"named-uuid\", \"row3\"]},
 
56232
       \"uuid-name\": \"row2\"},
 
56233
      {\"op\": \"insert\",
 
56234
       \"table\": \"a\",
 
56235
       \"row\": {\"a\": 3},
 
56236
       \"uuid-name\": \"row3\"}]' '[\"gc\",
 
56237
      {\"op\": \"select\",
 
56238
       \"table\": \"a\",
 
56239
       \"where\": [],
 
56240
       \"columns\": [\"a\"]}]' '      [\"gc\",
 
56241
      {\"op\": \"insert\",
 
56242
       \"table\": \"a\",
 
56243
       \"row\": {\"a\": 4, \"a2a\": [\"named-uuid\", \"row5\"]},
 
56244
       \"uuid-name\": \"row4\"},
 
56245
      {\"op\": \"insert\",
 
56246
       \"table\": \"a\",
 
56247
       \"row\": {\"a\": 5, \"a2a\": [\"named-uuid\", \"row4\"]},
 
56248
       \"uuid-name\": \"row5\"}]' '[\"gc\",
 
56249
      {\"op\": \"select\",
 
56250
       \"table\": \"a\",
 
56251
       \"where\": [],
 
56252
       \"columns\": [\"a\"],
 
56253
       \"sort\": [\"a\"]}]' '   [\"gc\",
 
56254
      {\"op\": \"update\",
 
56255
       \"table\": \"a\",
 
56256
       \"where\": [[\"a\", \"==\", 4]],
 
56257
       \"row\": {\"a2a\": [\"set\", []]}}]' '[\"gc\",
 
56258
      {\"op\": \"select\",
 
56259
       \"table\": \"a\",
 
56260
       \"where\": [],
 
56261
       \"columns\": [\"a\"]}]' '      [\"gc\",
 
56262
      {\"op\": \"insert\",
 
56263
       \"table\": \"a\",
 
56264
       \"row\": {\"a\": 6, \"wa2a\": [\"named-uuid\", \"row7\"]},
 
56265
       \"uuid-name\": \"row6\"},
 
56266
      {\"op\": \"insert\",
 
56267
       \"table\": \"a\",
 
56268
       \"row\": {\"a\": 7, \"wa2a\": [\"named-uuid\", \"row6\"]},
 
56269
       \"uuid-name\": \"row7\"}]' '[\"gc\",
 
56270
      {\"op\": \"select\",
 
56271
       \"table\": \"a\",
 
56272
       \"where\": [],
 
56273
       \"columns\": [\"a\"]}]' '   [\"gc\",
 
56274
      {\"op\": \"insert\",
 
56275
       \"table\": \"a\",
 
56276
       \"row\": {\"a\": 8, \"a2a\": [\"named-uuid\", \"row9\"]},
 
56277
       \"uuid-name\": \"row8\"},
 
56278
      {\"op\": \"insert\",
 
56279
       \"table\": \"a\",
 
56280
       \"row\": {\"a\": 9, \"a2a\": [\"named-uuid\", \"row10\"]},
 
56281
       \"uuid-name\": \"row9\"},
 
56282
      {\"op\": \"insert\",
 
56283
       \"table\": \"a\",
 
56284
       \"row\": {\"a\": 10, \"a2a\": [\"named-uuid\", \"row11\"]},
 
56285
       \"uuid-name\": \"row10\"},
 
56286
      {\"op\": \"insert\",
 
56287
       \"table\": \"a\",
 
56288
       \"row\": {\"a\": 11, \"a2a\": [\"named-uuid\", \"row8\"]},
 
56289
       \"uuid-name\": \"row11\"}]' '[\"gc\",
 
56290
      {\"op\": \"select\",
 
56291
       \"table\": \"a\",
 
56292
       \"where\": [],
 
56293
       \"columns\": [\"a\"],
 
56294
       \"sort\": [\"a\"]}]' '   [\"gc\",
 
56295
      {\"op\": \"update\",
 
56296
       \"table\": \"a\",
 
56297
       \"where\": [[\"a\", \"==\", 9]],
 
56298
       \"row\": {\"a2a\": [\"set\", []]}}]' '[\"gc\",
 
56299
      {\"op\": \"select\",
 
56300
       \"table\": \"a\",
 
56301
       \"where\": [],
 
56302
       \"columns\": [\"a\"]}]' '   [\"gc\",
 
56303
      {\"op\": \"insert\",
 
56304
       \"table\": \"a\",
 
56305
       \"row\": {\"a\": 12, \"a2a\": [\"named-uuid\", \"self\"]},
 
56306
       \"uuid-name\": \"self\"}]' '[\"gc\",
 
56307
      {\"op\": \"select\",
 
56308
       \"table\": \"a\",
 
56309
       \"where\": [],
 
56310
       \"columns\": [\"a\"]}]'"
 
56311
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-execution.at:1038"
 
56312
( $at_check_trace; test-ovsdb execute '{"name": "gc",
 
56313
     "tables": {
 
56314
       "root": {
 
56315
         "columns": {
 
56316
           "a": {"type": {"key": {"type": "uuid",
 
56317
                                  "refTable": "a"},
 
56318
                            "min": 0, "max": "unlimited"}}},
 
56319
         "isRoot": true},
 
56320
       "a": {
 
56321
         "columns": {
 
56322
           "a": {"type": "integer"},
 
56323
           "a2a": {"type": {"key": {"type": "uuid",
 
56324
                                    "refTable": "a"},
 
56325
                            "min": 0, "max": "unlimited"}},
 
56326
           "a2b": {"type": {"key": {"type": "uuid",
 
56327
                                    "refTable": "b"},
 
56328
                            "min": 0, "max": "unlimited"}},
 
56329
           "wa2a": {"type": {"key": {"type": "uuid",
 
56330
                                     "refTable": "a",
 
56331
                                     "refType": "weak"},
 
56332
                             "min": 0, "max": "unlimited"}},
 
56333
           "wa2b": {"type": {"key": {"type": "uuid",
 
56334
                                    "refTable": "b",
 
56335
                                    "refType": "weak"},
 
56336
                             "min": 0, "max": "unlimited"}}}},
 
56337
       "b": {
 
56338
         "columns": {
 
56339
           "b": {"type": "integer"},
 
56340
           "b2a": {"type": {"key": {"type": "uuid",
 
56341
                                    "refTable": "a"},
 
56342
                            "min": 0, "max": "unlimited"}},
 
56343
           "wb2a": {"type": {"key": {"type": "uuid",
 
56344
                                     "refTable": "a",
 
56345
                                     "refType": "weak"},
 
56346
                             "min": 0, "max": "unlimited"}}},
 
56347
         "isRoot": false}}}'  '   ["gc",
 
56348
      {"op": "insert",
 
56349
       "table": "a",
 
56350
       "row": {"a": 0}}]' '["gc",
 
56351
      {"op": "select",
 
56352
       "table": "a",
 
56353
       "where": [],
 
56354
       "columns": ["a"]}]' '      ["gc",
 
56355
      {"op": "insert",
 
56356
       "table": "a",
 
56357
       "row": {"a": 0, "a2a": ["named-uuid", "row1"]},
 
56358
       "uuid-name": "row0"},
 
56359
      {"op": "insert",
 
56360
       "table": "a",
 
56361
       "row": {"a": 1, "a2a": ["named-uuid", "row2"]},
 
56362
       "uuid-name": "row1"},
 
56363
      {"op": "insert",
 
56364
       "table": "a",
 
56365
       "row": {"a": 2, "a2a": ["named-uuid", "row3"]},
 
56366
       "uuid-name": "row2"},
 
56367
      {"op": "insert",
 
56368
       "table": "a",
 
56369
       "row": {"a": 3},
 
56370
       "uuid-name": "row3"}]' '["gc",
 
56371
      {"op": "select",
 
56372
       "table": "a",
 
56373
       "where": [],
 
56374
       "columns": ["a"]}]' '      ["gc",
 
56375
      {"op": "insert",
 
56376
       "table": "a",
 
56377
       "row": {"a": 4, "a2a": ["named-uuid", "row5"]},
 
56378
       "uuid-name": "row4"},
 
56379
      {"op": "insert",
 
56380
       "table": "a",
 
56381
       "row": {"a": 5, "a2a": ["named-uuid", "row4"]},
 
56382
       "uuid-name": "row5"}]' '["gc",
 
56383
      {"op": "select",
 
56384
       "table": "a",
 
56385
       "where": [],
 
56386
       "columns": ["a"],
 
56387
       "sort": ["a"]}]' '   ["gc",
 
56388
      {"op": "update",
 
56389
       "table": "a",
 
56390
       "where": [["a", "==", 4]],
 
56391
       "row": {"a2a": ["set", []]}}]' '["gc",
 
56392
      {"op": "select",
 
56393
       "table": "a",
 
56394
       "where": [],
 
56395
       "columns": ["a"]}]' '      ["gc",
 
56396
      {"op": "insert",
 
56397
       "table": "a",
 
56398
       "row": {"a": 6, "wa2a": ["named-uuid", "row7"]},
 
56399
       "uuid-name": "row6"},
 
56400
      {"op": "insert",
 
56401
       "table": "a",
 
56402
       "row": {"a": 7, "wa2a": ["named-uuid", "row6"]},
 
56403
       "uuid-name": "row7"}]' '["gc",
 
56404
      {"op": "select",
 
56405
       "table": "a",
 
56406
       "where": [],
 
56407
       "columns": ["a"]}]' '   ["gc",
 
56408
      {"op": "insert",
 
56409
       "table": "a",
 
56410
       "row": {"a": 8, "a2a": ["named-uuid", "row9"]},
 
56411
       "uuid-name": "row8"},
 
56412
      {"op": "insert",
 
56413
       "table": "a",
 
56414
       "row": {"a": 9, "a2a": ["named-uuid", "row10"]},
 
56415
       "uuid-name": "row9"},
 
56416
      {"op": "insert",
 
56417
       "table": "a",
 
56418
       "row": {"a": 10, "a2a": ["named-uuid", "row11"]},
 
56419
       "uuid-name": "row10"},
 
56420
      {"op": "insert",
 
56421
       "table": "a",
 
56422
       "row": {"a": 11, "a2a": ["named-uuid", "row8"]},
 
56423
       "uuid-name": "row11"}]' '["gc",
 
56424
      {"op": "select",
 
56425
       "table": "a",
 
56426
       "where": [],
 
56427
       "columns": ["a"],
 
56428
       "sort": ["a"]}]' '   ["gc",
 
56429
      {"op": "update",
 
56430
       "table": "a",
 
56431
       "where": [["a", "==", 9]],
 
56432
       "row": {"a2a": ["set", []]}}]' '["gc",
 
56433
      {"op": "select",
 
56434
       "table": "a",
 
56435
       "where": [],
 
56436
       "columns": ["a"]}]' '   ["gc",
 
56437
      {"op": "insert",
 
56438
       "table": "a",
 
56439
       "row": {"a": 12, "a2a": ["named-uuid", "self"]},
 
56440
       "uuid-name": "self"}]' '["gc",
 
56441
      {"op": "select",
 
56442
       "table": "a",
 
56443
       "where": [],
 
56444
       "columns": ["a"]}]'
 
56445
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56446
at_status=$? at_failed=false
 
56447
$at_check_filter
 
56448
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56449
echo stdout:; tee stdout <"$at_stdout"
 
56450
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
56451
$at_failed && at_fn_log_failure
 
56452
$at_traceon; }
 
56453
 
 
56454
   { set +x
 
56455
$as_echo "$at_srcdir/ovsdb-execution.at:1038: perl \$srcdir/uuidfilt.pl stdout"
 
56456
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-execution.at:1038"
 
56457
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
56458
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56459
at_status=$? at_failed=false
 
56460
$at_check_filter
 
56461
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56462
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
56463
[{\"rows\":[]}]
 
56464
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
56465
[{\"rows\":[]}]
 
56466
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"uuid\":[\"uuid\",\"<6>\"]}]
 
56467
[{\"rows\":[{\"a\":4},{\"a\":5}]}]
 
56468
[{\"count\":1}]
 
56469
[{\"rows\":[]}]
 
56470
[{\"uuid\":[\"uuid\",\"<7>\"]},{\"uuid\":[\"uuid\",\"<8>\"]}]
 
56471
[{\"rows\":[]}]
 
56472
[{\"uuid\":[\"uuid\",\"<9>\"]},{\"uuid\":[\"uuid\",\"<10>\"]},{\"uuid\":[\"uuid\",\"<11>\"]},{\"uuid\":[\"uuid\",\"<12>\"]}]
 
56473
[{\"rows\":[{\"a\":8},{\"a\":9},{\"a\":10},{\"a\":11}]}]
 
56474
[{\"count\":1}]
 
56475
[{\"rows\":[]}]
 
56476
[{\"uuid\":[\"uuid\",\"<13>\"]}]
 
56477
[{\"rows\":[]}]
 
56478
" | \
 
56479
  $at_diff - "$at_stdout" || at_failed=:
 
56480
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-execution.at:1038"
 
56481
$at_failed && at_fn_log_failure
 
56482
$at_traceon; }
 
56483
 
 
56484
     set +x
 
56485
  $at_times_p && times >"$at_times_file"
 
56486
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
56487
read at_status <"$at_status_file"
 
56488
#AT_STOP_786
 
56489
#AT_START_787
 
56490
at_fn_group_banner 787 'ovsdb-trigger.at:15' \
 
56491
  "trigger fires immediately" "                      " 57
 
56492
at_xfail=no
 
56493
(
 
56494
  $as_echo "787. $at_setup_line: testing $at_desc ..."
 
56495
  $at_traceon
 
56496
 
 
56497
 
 
56498
   { set +x
 
56499
$as_echo "$at_srcdir/ovsdb-trigger.at:15: test-ovsdb trigger '{\"name\": \"ordinals\",
 
56500
     \"tables\": {
 
56501
       \"ordinals\": {
 
56502
         \"columns\": {
 
56503
           \"number\": {\"type\": \"integer\"},
 
56504
           \"name\": {\"type\": \"string\"}},
 
56505
         \"indexes\": [[\"number\"]]}},
 
56506
     \"version\": \"5.1.3\",
 
56507
     \"cksum\": \"12345678 9\"}' \\
 
56508
    '[\"ordinals\",
 
56509
      {\"op\": \"insert\",
 
56510
       \"table\": \"ordinals\",
 
56511
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
56512
      {\"op\": \"insert\",
 
56513
       \"table\": \"ordinals\",
 
56514
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
56515
      {\"op\": \"wait\",
 
56516
       \"timeout\": 10,
 
56517
       \"table\": \"ordinals\",
 
56518
       \"where\": [],
 
56519
       \"columns\": [\"name\", \"number\"],
 
56520
       \"until\": \"==\",
 
56521
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
56522
                {\"name\": \"one\", \"number\": 1}]},
 
56523
      {\"op\": \"insert\",
 
56524
       \"table\": \"ordinals\",
 
56525
       \"row\": {\"number\": 2, \"name\": \"two\"}}]'"
 
56526
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-trigger.at:15"
 
56527
( $at_check_trace; test-ovsdb trigger '{"name": "ordinals",
 
56528
     "tables": {
 
56529
       "ordinals": {
 
56530
         "columns": {
 
56531
           "number": {"type": "integer"},
 
56532
           "name": {"type": "string"}},
 
56533
         "indexes": [["number"]]}},
 
56534
     "version": "5.1.3",
 
56535
     "cksum": "12345678 9"}' \
 
56536
    '["ordinals",
 
56537
      {"op": "insert",
 
56538
       "table": "ordinals",
 
56539
       "row": {"number": 0, "name": "zero"}},
 
56540
      {"op": "insert",
 
56541
       "table": "ordinals",
 
56542
       "row": {"number": 1, "name": "one"}},
 
56543
      {"op": "wait",
 
56544
       "timeout": 10,
 
56545
       "table": "ordinals",
 
56546
       "where": [],
 
56547
       "columns": ["name", "number"],
 
56548
       "until": "==",
 
56549
       "rows": [{"name": "zero", "number": 0},
 
56550
                {"name": "one", "number": 1}]},
 
56551
      {"op": "insert",
 
56552
       "table": "ordinals",
 
56553
       "row": {"number": 2, "name": "two"}}]'
 
56554
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56555
at_status=$? at_failed=false
 
56556
$at_check_filter
 
56557
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56558
echo stdout:; tee stdout <"$at_stdout"
 
56559
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:15"
 
56560
$at_failed && at_fn_log_failure
 
56561
$at_traceon; }
 
56562
 
 
56563
   { set +x
 
56564
$as_echo "$at_srcdir/ovsdb-trigger.at:15: perl \$srcdir/uuidfilt.pl stdout"
 
56565
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-trigger.at:15"
 
56566
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
56567
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56568
at_status=$? at_failed=false
 
56569
$at_check_filter
 
56570
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56571
echo >>"$at_stdout"; $as_echo "t=0: trigger 0 (immediate): [{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{},{\"uuid\":[\"uuid\",\"<2>\"]}]
 
56572
" | \
 
56573
  $at_diff - "$at_stdout" || at_failed=:
 
56574
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:15"
 
56575
$at_failed && at_fn_log_failure
 
56576
$at_traceon; }
 
56577
 
 
56578
     set +x
 
56579
  $at_times_p && times >"$at_times_file"
 
56580
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
56581
read at_status <"$at_status_file"
 
56582
#AT_STOP_787
 
56583
#AT_START_788
 
56584
at_fn_group_banner 788 'ovsdb-trigger.at:38' \
 
56585
  "trigger times out" "                              " 57
 
56586
at_xfail=no
 
56587
(
 
56588
  $as_echo "788. $at_setup_line: testing $at_desc ..."
 
56589
  $at_traceon
 
56590
 
 
56591
 
 
56592
   { set +x
 
56593
$as_echo "$at_srcdir/ovsdb-trigger.at:38: test-ovsdb trigger '{\"name\": \"ordinals\",
 
56594
     \"tables\": {
 
56595
       \"ordinals\": {
 
56596
         \"columns\": {
 
56597
           \"number\": {\"type\": \"integer\"},
 
56598
           \"name\": {\"type\": \"string\"}},
 
56599
         \"indexes\": [[\"number\"]]}},
 
56600
     \"version\": \"5.1.3\",
 
56601
     \"cksum\": \"12345678 9\"}' \\
 
56602
    '[\"ordinals\",
 
56603
      {\"op\": \"insert\",
 
56604
       \"table\": \"ordinals\",
 
56605
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
56606
      {\"op\": \"insert\",
 
56607
       \"table\": \"ordinals\",
 
56608
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
56609
      {\"op\": \"wait\",
 
56610
       \"timeout\": 10,
 
56611
       \"table\": \"ordinals\",
 
56612
       \"where\": [],
 
56613
       \"columns\": [\"name\", \"number\"],
 
56614
       \"until\": \"==\",
 
56615
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
56616
                {\"name\": \"one\", \"number\": 1},
 
56617
                {\"name\": \"two\", \"number\": 2}]}]' \\
 
56618
    '[\"advance\", 10]'"
 
56619
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-trigger.at:38"
 
56620
( $at_check_trace; test-ovsdb trigger '{"name": "ordinals",
 
56621
     "tables": {
 
56622
       "ordinals": {
 
56623
         "columns": {
 
56624
           "number": {"type": "integer"},
 
56625
           "name": {"type": "string"}},
 
56626
         "indexes": [["number"]]}},
 
56627
     "version": "5.1.3",
 
56628
     "cksum": "12345678 9"}' \
 
56629
    '["ordinals",
 
56630
      {"op": "insert",
 
56631
       "table": "ordinals",
 
56632
       "row": {"number": 0, "name": "zero"}},
 
56633
      {"op": "insert",
 
56634
       "table": "ordinals",
 
56635
       "row": {"number": 1, "name": "one"}},
 
56636
      {"op": "wait",
 
56637
       "timeout": 10,
 
56638
       "table": "ordinals",
 
56639
       "where": [],
 
56640
       "columns": ["name", "number"],
 
56641
       "until": "==",
 
56642
       "rows": [{"name": "zero", "number": 0},
 
56643
                {"name": "one", "number": 1},
 
56644
                {"name": "two", "number": 2}]}]' \
 
56645
    '["advance", 10]'
 
56646
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56647
at_status=$? at_failed=false
 
56648
$at_check_filter
 
56649
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56650
echo stdout:; tee stdout <"$at_stdout"
 
56651
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:38"
 
56652
$at_failed && at_fn_log_failure
 
56653
$at_traceon; }
 
56654
 
 
56655
   { set +x
 
56656
$as_echo "$at_srcdir/ovsdb-trigger.at:38: perl \$srcdir/uuidfilt.pl stdout"
 
56657
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-trigger.at:38"
 
56658
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
56659
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56660
at_status=$? at_failed=false
 
56661
$at_check_filter
 
56662
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56663
echo >>"$at_stdout"; $as_echo "t=0: new trigger 0
 
56664
t=10: trigger 0 (delayed): [{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out after 10 ms\",\"error\":\"timed out\"}]
 
56665
" | \
 
56666
  $at_diff - "$at_stdout" || at_failed=:
 
56667
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:38"
 
56668
$at_failed && at_fn_log_failure
 
56669
$at_traceon; }
 
56670
 
 
56671
     set +x
 
56672
  $at_times_p && times >"$at_times_file"
 
56673
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
56674
read at_status <"$at_status_file"
 
56675
#AT_STOP_788
 
56676
#AT_START_789
 
56677
at_fn_group_banner 789 'ovsdb-trigger.at:61' \
 
56678
  "trigger fires after delay" "                      " 57
 
56679
at_xfail=no
 
56680
(
 
56681
  $as_echo "789. $at_setup_line: testing $at_desc ..."
 
56682
  $at_traceon
 
56683
 
 
56684
 
 
56685
   { set +x
 
56686
$as_echo "$at_srcdir/ovsdb-trigger.at:61: test-ovsdb trigger '{\"name\": \"ordinals\",
 
56687
     \"tables\": {
 
56688
       \"ordinals\": {
 
56689
         \"columns\": {
 
56690
           \"number\": {\"type\": \"integer\"},
 
56691
           \"name\": {\"type\": \"string\"}},
 
56692
         \"indexes\": [[\"number\"]]}},
 
56693
     \"version\": \"5.1.3\",
 
56694
     \"cksum\": \"12345678 9\"}' \\
 
56695
    '[\"ordinals\",
 
56696
      {\"op\": \"insert\",
 
56697
       \"table\": \"ordinals\",
 
56698
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
56699
      {\"op\": \"insert\",
 
56700
       \"table\": \"ordinals\",
 
56701
       \"row\": {\"number\": 1, \"name\": \"one\"}}]' \\
 
56702
    '[\"advance\", 5]' \\
 
56703
    '[\"ordinals\",
 
56704
      {\"op\": \"wait\",
 
56705
       \"timeout\": 10,
 
56706
       \"table\": \"ordinals\",
 
56707
       \"where\": [],
 
56708
       \"columns\": [\"name\", \"number\"],
 
56709
       \"until\": \"==\",
 
56710
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
56711
                {\"name\": \"one\", \"number\": 1},
 
56712
                {\"name\": \"two\", \"number\": 2}]}]' \\
 
56713
    '[\"advance\", 5]' \\
 
56714
    '[\"ordinals\",
 
56715
      {\"op\": \"insert\",
 
56716
       \"table\": \"ordinals\",
 
56717
       \"row\": {\"number\": 2, \"name\": \"two\"}}]'"
 
56718
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-trigger.at:61"
 
56719
( $at_check_trace; test-ovsdb trigger '{"name": "ordinals",
 
56720
     "tables": {
 
56721
       "ordinals": {
 
56722
         "columns": {
 
56723
           "number": {"type": "integer"},
 
56724
           "name": {"type": "string"}},
 
56725
         "indexes": [["number"]]}},
 
56726
     "version": "5.1.3",
 
56727
     "cksum": "12345678 9"}' \
 
56728
    '["ordinals",
 
56729
      {"op": "insert",
 
56730
       "table": "ordinals",
 
56731
       "row": {"number": 0, "name": "zero"}},
 
56732
      {"op": "insert",
 
56733
       "table": "ordinals",
 
56734
       "row": {"number": 1, "name": "one"}}]' \
 
56735
    '["advance", 5]' \
 
56736
    '["ordinals",
 
56737
      {"op": "wait",
 
56738
       "timeout": 10,
 
56739
       "table": "ordinals",
 
56740
       "where": [],
 
56741
       "columns": ["name", "number"],
 
56742
       "until": "==",
 
56743
       "rows": [{"name": "zero", "number": 0},
 
56744
                {"name": "one", "number": 1},
 
56745
                {"name": "two", "number": 2}]}]' \
 
56746
    '["advance", 5]' \
 
56747
    '["ordinals",
 
56748
      {"op": "insert",
 
56749
       "table": "ordinals",
 
56750
       "row": {"number": 2, "name": "two"}}]'
 
56751
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56752
at_status=$? at_failed=false
 
56753
$at_check_filter
 
56754
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56755
echo stdout:; tee stdout <"$at_stdout"
 
56756
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:61"
 
56757
$at_failed && at_fn_log_failure
 
56758
$at_traceon; }
 
56759
 
 
56760
   { set +x
 
56761
$as_echo "$at_srcdir/ovsdb-trigger.at:61: perl \$srcdir/uuidfilt.pl stdout"
 
56762
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-trigger.at:61"
 
56763
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
56764
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56765
at_status=$? at_failed=false
 
56766
$at_check_filter
 
56767
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56768
echo >>"$at_stdout"; $as_echo "t=0: trigger 0 (immediate): [{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]
 
56769
t=5: new trigger 1
 
56770
t=10: trigger 2 (immediate): [{\"uuid\":[\"uuid\",\"<2>\"]}]
 
56771
t=10: trigger 1 (delayed): [{}]
 
56772
" | \
 
56773
  $at_diff - "$at_stdout" || at_failed=:
 
56774
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:61"
 
56775
$at_failed && at_fn_log_failure
 
56776
$at_traceon; }
 
56777
 
 
56778
     set +x
 
56779
  $at_times_p && times >"$at_times_file"
 
56780
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
56781
read at_status <"$at_status_file"
 
56782
#AT_STOP_789
 
56783
#AT_START_790
 
56784
at_fn_group_banner 790 'ovsdb-trigger.at:92' \
 
56785
  "delayed trigger modifies database" "              " 57
 
56786
at_xfail=no
 
56787
(
 
56788
  $as_echo "790. $at_setup_line: testing $at_desc ..."
 
56789
  $at_traceon
 
56790
 
 
56791
 
 
56792
   { set +x
 
56793
$as_echo "$at_srcdir/ovsdb-trigger.at:92: test-ovsdb trigger '{\"name\": \"ordinals\",
 
56794
     \"tables\": {
 
56795
       \"ordinals\": {
 
56796
         \"columns\": {
 
56797
           \"number\": {\"type\": \"integer\"},
 
56798
           \"name\": {\"type\": \"string\"}},
 
56799
         \"indexes\": [[\"number\"]]}},
 
56800
     \"version\": \"5.1.3\",
 
56801
     \"cksum\": \"12345678 9\"}' \\
 
56802
    '[\"ordinals\",
 
56803
      {\"op\": \"insert\",
 
56804
       \"table\": \"ordinals\",
 
56805
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
56806
      {\"op\": \"insert\",
 
56807
       \"table\": \"ordinals\",
 
56808
       \"row\": {\"number\": 1, \"name\": \"one\"}}]' \\
 
56809
    '[\"advance\", 5]' \\
 
56810
    '[\"ordinals\",
 
56811
      {\"op\": \"wait\",
 
56812
       \"timeout\": 10,
 
56813
       \"table\": \"ordinals\",
 
56814
       \"where\": [],
 
56815
       \"columns\": [\"name\", \"number\"],
 
56816
       \"until\": \"==\",
 
56817
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
56818
                {\"name\": \"one\", \"number\": 1},
 
56819
                {\"name\": \"two\", \"number\": 2}]},
 
56820
      {\"op\": \"delete\",
 
56821
       \"table\": \"ordinals\",
 
56822
       \"where\": [[\"number\", \"<\", 2]]}]' \\
 
56823
    '[\"advance\", 5]' \\
 
56824
    '[\"ordinals\",
 
56825
      {\"op\": \"insert\",
 
56826
       \"table\": \"ordinals\",
 
56827
       \"row\": {\"number\": 2, \"name\": \"two\"}}]' \\
 
56828
    '[\"advance\", 5]' \\
 
56829
    '[\"ordinals\",
 
56830
      {\"op\": \"select\",
 
56831
       \"table\": \"ordinals\",
 
56832
       \"where\": []}]'"
 
56833
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-trigger.at:92"
 
56834
( $at_check_trace; test-ovsdb trigger '{"name": "ordinals",
 
56835
     "tables": {
 
56836
       "ordinals": {
 
56837
         "columns": {
 
56838
           "number": {"type": "integer"},
 
56839
           "name": {"type": "string"}},
 
56840
         "indexes": [["number"]]}},
 
56841
     "version": "5.1.3",
 
56842
     "cksum": "12345678 9"}' \
 
56843
    '["ordinals",
 
56844
      {"op": "insert",
 
56845
       "table": "ordinals",
 
56846
       "row": {"number": 0, "name": "zero"}},
 
56847
      {"op": "insert",
 
56848
       "table": "ordinals",
 
56849
       "row": {"number": 1, "name": "one"}}]' \
 
56850
    '["advance", 5]' \
 
56851
    '["ordinals",
 
56852
      {"op": "wait",
 
56853
       "timeout": 10,
 
56854
       "table": "ordinals",
 
56855
       "where": [],
 
56856
       "columns": ["name", "number"],
 
56857
       "until": "==",
 
56858
       "rows": [{"name": "zero", "number": 0},
 
56859
                {"name": "one", "number": 1},
 
56860
                {"name": "two", "number": 2}]},
 
56861
      {"op": "delete",
 
56862
       "table": "ordinals",
 
56863
       "where": [["number", "<", 2]]}]' \
 
56864
    '["advance", 5]' \
 
56865
    '["ordinals",
 
56866
      {"op": "insert",
 
56867
       "table": "ordinals",
 
56868
       "row": {"number": 2, "name": "two"}}]' \
 
56869
    '["advance", 5]' \
 
56870
    '["ordinals",
 
56871
      {"op": "select",
 
56872
       "table": "ordinals",
 
56873
       "where": []}]'
 
56874
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56875
at_status=$? at_failed=false
 
56876
$at_check_filter
 
56877
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56878
echo stdout:; tee stdout <"$at_stdout"
 
56879
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:92"
 
56880
$at_failed && at_fn_log_failure
 
56881
$at_traceon; }
 
56882
 
 
56883
   { set +x
 
56884
$as_echo "$at_srcdir/ovsdb-trigger.at:92: perl \$srcdir/uuidfilt.pl stdout"
 
56885
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-trigger.at:92"
 
56886
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
56887
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
56888
at_status=$? at_failed=false
 
56889
$at_check_filter
 
56890
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
56891
echo >>"$at_stdout"; $as_echo "t=0: trigger 0 (immediate): [{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]
 
56892
t=5: new trigger 1
 
56893
t=10: trigger 2 (immediate): [{\"uuid\":[\"uuid\",\"<2>\"]}]
 
56894
t=10: trigger 1 (delayed): [{},{\"count\":2}]
 
56895
t=15: trigger 3 (immediate): [{\"rows\":[{\"_uuid\":[\"uuid\",\"<2>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"two\",\"number\":2}]}]
 
56896
" | \
 
56897
  $at_diff - "$at_stdout" || at_failed=:
 
56898
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:92"
 
56899
$at_failed && at_fn_log_failure
 
56900
$at_traceon; }
 
56901
 
 
56902
     set +x
 
56903
  $at_times_p && times >"$at_times_file"
 
56904
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
56905
read at_status <"$at_status_file"
 
56906
#AT_STOP_790
 
56907
#AT_START_791
 
56908
at_fn_group_banner 791 'ovsdb-trigger.at:132' \
 
56909
  "one delayed trigger wakes up another" "           " 57
 
56910
at_xfail=no
 
56911
(
 
56912
  $as_echo "791. $at_setup_line: testing $at_desc ..."
 
56913
  $at_traceon
 
56914
 
 
56915
 
 
56916
   { set +x
 
56917
$as_echo "$at_srcdir/ovsdb-trigger.at:132: test-ovsdb trigger '{\"name\": \"ordinals\",
 
56918
     \"tables\": {
 
56919
       \"ordinals\": {
 
56920
         \"columns\": {
 
56921
           \"number\": {\"type\": \"integer\"},
 
56922
           \"name\": {\"type\": \"string\"}},
 
56923
         \"indexes\": [[\"number\"]]}},
 
56924
     \"version\": \"5.1.3\",
 
56925
     \"cksum\": \"12345678 9\"}' \\
 
56926
    '[\"ordinals\",
 
56927
      {\"op\": \"insert\",
 
56928
       \"table\": \"ordinals\",
 
56929
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
56930
      {\"op\": \"insert\",
 
56931
       \"table\": \"ordinals\",
 
56932
       \"row\": {\"number\": 1, \"name\": \"one\"}}]' \\
 
56933
    '[\"advance\", 5]' \\
 
56934
    '[\"ordinals\",
 
56935
      {\"op\": \"wait\",
 
56936
       \"timeout\": 10,
 
56937
       \"table\": \"ordinals\",
 
56938
       \"where\": [],
 
56939
       \"columns\": [\"name\", \"number\"],
 
56940
       \"until\": \"==\",
 
56941
       \"rows\": [{\"name\": \"two\", \"number\": 2}]},
 
56942
      {\"op\": \"delete\",
 
56943
       \"table\": \"ordinals\",
 
56944
       \"where\": [[\"number\", \"==\", 2]]},
 
56945
      {\"op\": \"insert\",
 
56946
       \"table\": \"ordinals\",
 
56947
       \"row\": {\"number\": 3, \"name\": \"three\"}}]' \\
 
56948
    '[\"ordinals\",
 
56949
      {\"op\": \"wait\",
 
56950
       \"timeout\": 10,
 
56951
       \"table\": \"ordinals\",
 
56952
       \"where\": [],
 
56953
       \"columns\": [\"name\", \"number\"],
 
56954
       \"until\": \"==\",
 
56955
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
56956
                {\"name\": \"one\", \"number\": 1},
 
56957
                {\"name\": \"two\", \"number\": 2}]},
 
56958
      {\"op\": \"delete\",
 
56959
       \"table\": \"ordinals\",
 
56960
       \"where\": [[\"number\", \"<\", 2]]}]' \\
 
56961
    '[\"advance\", 5]' \\
 
56962
    '[\"ordinals\",
 
56963
      {\"op\": \"insert\",
 
56964
       \"table\": \"ordinals\",
 
56965
       \"row\": {\"number\": 2, \"name\": \"two\"}}]' \\
 
56966
    '[\"advance\", 5]' \\
 
56967
    '[\"ordinals\",
 
56968
      {\"op\": \"select\",
 
56969
       \"table\": \"ordinals\",
 
56970
       \"where\": []}]'"
 
56971
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-trigger.at:132"
 
56972
( $at_check_trace; test-ovsdb trigger '{"name": "ordinals",
 
56973
     "tables": {
 
56974
       "ordinals": {
 
56975
         "columns": {
 
56976
           "number": {"type": "integer"},
 
56977
           "name": {"type": "string"}},
 
56978
         "indexes": [["number"]]}},
 
56979
     "version": "5.1.3",
 
56980
     "cksum": "12345678 9"}' \
 
56981
    '["ordinals",
 
56982
      {"op": "insert",
 
56983
       "table": "ordinals",
 
56984
       "row": {"number": 0, "name": "zero"}},
 
56985
      {"op": "insert",
 
56986
       "table": "ordinals",
 
56987
       "row": {"number": 1, "name": "one"}}]' \
 
56988
    '["advance", 5]' \
 
56989
    '["ordinals",
 
56990
      {"op": "wait",
 
56991
       "timeout": 10,
 
56992
       "table": "ordinals",
 
56993
       "where": [],
 
56994
       "columns": ["name", "number"],
 
56995
       "until": "==",
 
56996
       "rows": [{"name": "two", "number": 2}]},
 
56997
      {"op": "delete",
 
56998
       "table": "ordinals",
 
56999
       "where": [["number", "==", 2]]},
 
57000
      {"op": "insert",
 
57001
       "table": "ordinals",
 
57002
       "row": {"number": 3, "name": "three"}}]' \
 
57003
    '["ordinals",
 
57004
      {"op": "wait",
 
57005
       "timeout": 10,
 
57006
       "table": "ordinals",
 
57007
       "where": [],
 
57008
       "columns": ["name", "number"],
 
57009
       "until": "==",
 
57010
       "rows": [{"name": "zero", "number": 0},
 
57011
                {"name": "one", "number": 1},
 
57012
                {"name": "two", "number": 2}]},
 
57013
      {"op": "delete",
 
57014
       "table": "ordinals",
 
57015
       "where": [["number", "<", 2]]}]' \
 
57016
    '["advance", 5]' \
 
57017
    '["ordinals",
 
57018
      {"op": "insert",
 
57019
       "table": "ordinals",
 
57020
       "row": {"number": 2, "name": "two"}}]' \
 
57021
    '["advance", 5]' \
 
57022
    '["ordinals",
 
57023
      {"op": "select",
 
57024
       "table": "ordinals",
 
57025
       "where": []}]'
 
57026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57027
at_status=$? at_failed=false
 
57028
$at_check_filter
 
57029
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57030
echo stdout:; tee stdout <"$at_stdout"
 
57031
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:132"
 
57032
$at_failed && at_fn_log_failure
 
57033
$at_traceon; }
 
57034
 
 
57035
   { set +x
 
57036
$as_echo "$at_srcdir/ovsdb-trigger.at:132: perl \$srcdir/uuidfilt.pl stdout"
 
57037
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-trigger.at:132"
 
57038
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
57039
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57040
at_status=$? at_failed=false
 
57041
$at_check_filter
 
57042
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57043
echo >>"$at_stdout"; $as_echo "t=0: trigger 0 (immediate): [{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]
 
57044
t=5: new trigger 1
 
57045
t=5: new trigger 2
 
57046
t=10: trigger 3 (immediate): [{\"uuid\":[\"uuid\",\"<2>\"]}]
 
57047
t=10: trigger 2 (delayed): [{},{\"count\":2}]
 
57048
t=15: trigger 1 (delayed): [{},{\"count\":1},{\"uuid\":[\"uuid\",\"<3>\"]}]
 
57049
t=15: trigger 4 (immediate): [{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"_version\":[\"uuid\",\"<4>\"],\"name\":\"three\",\"number\":3}]}]
 
57050
" | \
 
57051
  $at_diff - "$at_stdout" || at_failed=:
 
57052
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-trigger.at:132"
 
57053
$at_failed && at_fn_log_failure
 
57054
$at_traceon; }
 
57055
 
 
57056
     set +x
 
57057
  $at_times_p && times >"$at_times_file"
 
57058
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
57059
read at_status <"$at_status_file"
 
57060
#AT_STOP_791
 
57061
#AT_START_792
 
57062
at_fn_group_banner 792 'ovsdb-tool.at:30' \
 
57063
  "insert default row, query table" "                " 58
 
57064
at_xfail=no
 
57065
(
 
57066
  $as_echo "792. $at_setup_line: testing $at_desc ..."
 
57067
  $at_traceon
 
57068
 
 
57069
 
 
57070
   cat >schema <<'_ATEOF'
 
57071
{"name": "ordinals",
 
57072
     "tables": {
 
57073
       "ordinals": {
 
57074
         "columns": {
 
57075
           "number": {"type": "integer"},
 
57076
           "name": {"type": "string"}},
 
57077
         "indexes": [["number"]]}},
 
57078
     "version": "5.1.3",
 
57079
     "cksum": "12345678 9"}
 
57080
_ATEOF
 
57081
 
 
57082
   touch .db.~lock~
 
57083
   { set +x
 
57084
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
57085
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
57086
( $at_check_trace; ovsdb-tool create db schema
 
57087
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57088
at_status=$? at_failed=false
 
57089
$at_check_filter
 
57090
echo stderr:; cat "$at_stderr"
 
57091
echo stdout:; tee stdout <"$at_stdout"
 
57092
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57093
$at_failed && at_fn_log_failure
 
57094
$at_traceon; }
 
57095
 
 
57096
   { set +x
 
57097
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57098
      {\"op\": \"insert\",
 
57099
       \"table\": \"ordinals\",
 
57100
       \"row\": {}}]'"
 
57101
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57102
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57103
      {"op": "insert",
 
57104
       "table": "ordinals",
 
57105
       "row": {}}]'
 
57106
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57107
at_status=$? at_failed=false
 
57108
$at_check_filter
 
57109
echo stderr:; cat "$at_stderr"
 
57110
echo stdout:; tee stdout <"$at_stdout"
 
57111
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57112
$at_failed && at_fn_log_failure
 
57113
$at_traceon; }
 
57114
 
 
57115
cat stdout >> output
 
57116
{ set +x
 
57117
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57118
      {\"op\": \"select\",
 
57119
       \"table\": \"ordinals\",
 
57120
       \"where\": []}]'"
 
57121
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57122
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57123
      {"op": "select",
 
57124
       "table": "ordinals",
 
57125
       "where": []}]'
 
57126
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57127
at_status=$? at_failed=false
 
57128
$at_check_filter
 
57129
echo stderr:; cat "$at_stderr"
 
57130
echo stdout:; tee stdout <"$at_stdout"
 
57131
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57132
$at_failed && at_fn_log_failure
 
57133
$at_traceon; }
 
57134
 
 
57135
cat stdout >> output
 
57136
 
 
57137
   { set +x
 
57138
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
57139
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
57140
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
57141
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57142
at_status=$? at_failed=false
 
57143
$at_check_filter
 
57144
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57145
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
57146
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"\",\"number\":0}]}]
 
57147
" | \
 
57148
  $at_diff - "$at_stdout" || at_failed=:
 
57149
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57150
$at_failed && at_fn_log_failure
 
57151
$at_traceon; }
 
57152
 
 
57153
     set +x
 
57154
  $at_times_p && times >"$at_times_file"
 
57155
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
57156
read at_status <"$at_status_file"
 
57157
#AT_STOP_792
 
57158
#AT_START_793
 
57159
at_fn_group_banner 793 'ovsdb-tool.at:30' \
 
57160
  "insert row, query table" "                        " 58
 
57161
at_xfail=no
 
57162
(
 
57163
  $as_echo "793. $at_setup_line: testing $at_desc ..."
 
57164
  $at_traceon
 
57165
 
 
57166
 
 
57167
   cat >schema <<'_ATEOF'
 
57168
{"name": "ordinals",
 
57169
     "tables": {
 
57170
       "ordinals": {
 
57171
         "columns": {
 
57172
           "number": {"type": "integer"},
 
57173
           "name": {"type": "string"}},
 
57174
         "indexes": [["number"]]}},
 
57175
     "version": "5.1.3",
 
57176
     "cksum": "12345678 9"}
 
57177
_ATEOF
 
57178
 
 
57179
   touch .db.~lock~
 
57180
   { set +x
 
57181
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
57182
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
57183
( $at_check_trace; ovsdb-tool create db schema
 
57184
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57185
at_status=$? at_failed=false
 
57186
$at_check_filter
 
57187
echo stderr:; cat "$at_stderr"
 
57188
echo stdout:; tee stdout <"$at_stdout"
 
57189
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57190
$at_failed && at_fn_log_failure
 
57191
$at_traceon; }
 
57192
 
 
57193
   { set +x
 
57194
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57195
      {\"op\": \"insert\",
 
57196
       \"table\": \"ordinals\",
 
57197
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]'"
 
57198
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57199
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57200
      {"op": "insert",
 
57201
       "table": "ordinals",
 
57202
       "row": {"number": 0, "name": "zero"}}]'
 
57203
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57204
at_status=$? at_failed=false
 
57205
$at_check_filter
 
57206
echo stderr:; cat "$at_stderr"
 
57207
echo stdout:; tee stdout <"$at_stdout"
 
57208
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57209
$at_failed && at_fn_log_failure
 
57210
$at_traceon; }
 
57211
 
 
57212
cat stdout >> output
 
57213
{ set +x
 
57214
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57215
      {\"op\": \"select\",
 
57216
       \"table\": \"ordinals\",
 
57217
       \"where\": []}]'"
 
57218
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57219
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57220
      {"op": "select",
 
57221
       "table": "ordinals",
 
57222
       "where": []}]'
 
57223
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57224
at_status=$? at_failed=false
 
57225
$at_check_filter
 
57226
echo stderr:; cat "$at_stderr"
 
57227
echo stdout:; tee stdout <"$at_stdout"
 
57228
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57229
$at_failed && at_fn_log_failure
 
57230
$at_traceon; }
 
57231
 
 
57232
cat stdout >> output
 
57233
 
 
57234
   { set +x
 
57235
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
57236
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
57237
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
57238
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57239
at_status=$? at_failed=false
 
57240
$at_check_filter
 
57241
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57242
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
57243
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]}]
 
57244
" | \
 
57245
  $at_diff - "$at_stdout" || at_failed=:
 
57246
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57247
$at_failed && at_fn_log_failure
 
57248
$at_traceon; }
 
57249
 
 
57250
     set +x
 
57251
  $at_times_p && times >"$at_times_file"
 
57252
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
57253
read at_status <"$at_status_file"
 
57254
#AT_STOP_793
 
57255
#AT_START_794
 
57256
at_fn_group_banner 794 'ovsdb-tool.at:30' \
 
57257
  "insert rows, query by value" "                    " 58
 
57258
at_xfail=no
 
57259
(
 
57260
  $as_echo "794. $at_setup_line: testing $at_desc ..."
 
57261
  $at_traceon
 
57262
 
 
57263
 
 
57264
   cat >schema <<'_ATEOF'
 
57265
{"name": "ordinals",
 
57266
     "tables": {
 
57267
       "ordinals": {
 
57268
         "columns": {
 
57269
           "number": {"type": "integer"},
 
57270
           "name": {"type": "string"}},
 
57271
         "indexes": [["number"]]}},
 
57272
     "version": "5.1.3",
 
57273
     "cksum": "12345678 9"}
 
57274
_ATEOF
 
57275
 
 
57276
   touch .db.~lock~
 
57277
   { set +x
 
57278
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
57279
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
57280
( $at_check_trace; ovsdb-tool create db schema
 
57281
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57282
at_status=$? at_failed=false
 
57283
$at_check_filter
 
57284
echo stderr:; cat "$at_stderr"
 
57285
echo stdout:; tee stdout <"$at_stdout"
 
57286
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57287
$at_failed && at_fn_log_failure
 
57288
$at_traceon; }
 
57289
 
 
57290
   { set +x
 
57291
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57292
      {\"op\": \"insert\",
 
57293
       \"table\": \"ordinals\",
 
57294
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]'"
 
57295
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57296
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57297
      {"op": "insert",
 
57298
       "table": "ordinals",
 
57299
       "row": {"number": 0, "name": "zero"}}]'
 
57300
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57301
at_status=$? at_failed=false
 
57302
$at_check_filter
 
57303
echo stderr:; cat "$at_stderr"
 
57304
echo stdout:; tee stdout <"$at_stdout"
 
57305
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57306
$at_failed && at_fn_log_failure
 
57307
$at_traceon; }
 
57308
 
 
57309
cat stdout >> output
 
57310
{ set +x
 
57311
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57312
      {\"op\": \"insert\",
 
57313
       \"table\": \"ordinals\",
 
57314
       \"row\": {\"number\": 1, \"name\": \"one\"}}]'"
 
57315
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57316
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57317
      {"op": "insert",
 
57318
       "table": "ordinals",
 
57319
       "row": {"number": 1, "name": "one"}}]'
 
57320
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57321
at_status=$? at_failed=false
 
57322
$at_check_filter
 
57323
echo stderr:; cat "$at_stderr"
 
57324
echo stdout:; tee stdout <"$at_stdout"
 
57325
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57326
$at_failed && at_fn_log_failure
 
57327
$at_traceon; }
 
57328
 
 
57329
cat stdout >> output
 
57330
{ set +x
 
57331
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57332
      {\"op\": \"select\",
 
57333
       \"table\": \"ordinals\",
 
57334
       \"where\": [[\"name\", \"==\", \"zero\"]]}]'"
 
57335
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57336
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57337
      {"op": "select",
 
57338
       "table": "ordinals",
 
57339
       "where": [["name", "==", "zero"]]}]'
 
57340
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57341
at_status=$? at_failed=false
 
57342
$at_check_filter
 
57343
echo stderr:; cat "$at_stderr"
 
57344
echo stdout:; tee stdout <"$at_stdout"
 
57345
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57346
$at_failed && at_fn_log_failure
 
57347
$at_traceon; }
 
57348
 
 
57349
cat stdout >> output
 
57350
{ set +x
 
57351
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57352
      {\"op\": \"select\",
 
57353
       \"table\": \"ordinals\",
 
57354
       \"where\": [[\"name\", \"==\", \"one\"]]}]'"
 
57355
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57356
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57357
      {"op": "select",
 
57358
       "table": "ordinals",
 
57359
       "where": [["name", "==", "one"]]}]'
 
57360
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57361
at_status=$? at_failed=false
 
57362
$at_check_filter
 
57363
echo stderr:; cat "$at_stderr"
 
57364
echo stdout:; tee stdout <"$at_stdout"
 
57365
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57366
$at_failed && at_fn_log_failure
 
57367
$at_traceon; }
 
57368
 
 
57369
cat stdout >> output
 
57370
 
 
57371
   { set +x
 
57372
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
57373
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
57374
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
57375
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57376
at_status=$? at_failed=false
 
57377
$at_check_filter
 
57378
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57379
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
57380
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
57381
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]}]
 
57382
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
57383
" | \
 
57384
  $at_diff - "$at_stdout" || at_failed=:
 
57385
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57386
$at_failed && at_fn_log_failure
 
57387
$at_traceon; }
 
57388
 
 
57389
     set +x
 
57390
  $at_times_p && times >"$at_times_file"
 
57391
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
57392
read at_status <"$at_status_file"
 
57393
#AT_STOP_794
 
57394
#AT_START_795
 
57395
at_fn_group_banner 795 'ovsdb-tool.at:30' \
 
57396
  "insert rows, query by named-uuid" "               " 58
 
57397
at_xfail=no
 
57398
(
 
57399
  $as_echo "795. $at_setup_line: testing $at_desc ..."
 
57400
  $at_traceon
 
57401
 
 
57402
 
 
57403
   cat >schema <<'_ATEOF'
 
57404
{"name": "ordinals",
 
57405
     "tables": {
 
57406
       "ordinals": {
 
57407
         "columns": {
 
57408
           "number": {"type": "integer"},
 
57409
           "name": {"type": "string"}},
 
57410
         "indexes": [["number"]]}},
 
57411
     "version": "5.1.3",
 
57412
     "cksum": "12345678 9"}
 
57413
_ATEOF
 
57414
 
 
57415
   touch .db.~lock~
 
57416
   { set +x
 
57417
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
57418
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
57419
( $at_check_trace; ovsdb-tool create db schema
 
57420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57421
at_status=$? at_failed=false
 
57422
$at_check_filter
 
57423
echo stderr:; cat "$at_stderr"
 
57424
echo stdout:; tee stdout <"$at_stdout"
 
57425
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57426
$at_failed && at_fn_log_failure
 
57427
$at_traceon; }
 
57428
 
 
57429
   { set +x
 
57430
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57431
      {\"op\": \"insert\",
 
57432
       \"table\": \"ordinals\",
 
57433
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
57434
       \"uuid-name\": \"first\"},
 
57435
      {\"op\": \"insert\",
 
57436
       \"table\": \"ordinals\",
 
57437
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
57438
       \"uuid-name\": \"second\"},
 
57439
      {\"op\": \"select\",
 
57440
       \"table\": \"ordinals\",
 
57441
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"first\"]]]},
 
57442
      {\"op\": \"select\",
 
57443
       \"table\": \"ordinals\",
 
57444
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"second\"]]]}]'"
 
57445
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57446
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57447
      {"op": "insert",
 
57448
       "table": "ordinals",
 
57449
       "row": {"number": 0, "name": "zero"},
 
57450
       "uuid-name": "first"},
 
57451
      {"op": "insert",
 
57452
       "table": "ordinals",
 
57453
       "row": {"number": 1, "name": "one"},
 
57454
       "uuid-name": "second"},
 
57455
      {"op": "select",
 
57456
       "table": "ordinals",
 
57457
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
57458
      {"op": "select",
 
57459
       "table": "ordinals",
 
57460
       "where": [["_uuid", "==", ["named-uuid", "second"]]]}]'
 
57461
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57462
at_status=$? at_failed=false
 
57463
$at_check_filter
 
57464
echo stderr:; cat "$at_stderr"
 
57465
echo stdout:; tee stdout <"$at_stdout"
 
57466
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57467
$at_failed && at_fn_log_failure
 
57468
$at_traceon; }
 
57469
 
 
57470
cat stdout >> output
 
57471
 
 
57472
   { set +x
 
57473
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
57474
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
57475
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
57476
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57477
at_status=$? at_failed=false
 
57478
$at_check_filter
 
57479
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57480
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
57481
" | \
 
57482
  $at_diff - "$at_stdout" || at_failed=:
 
57483
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57484
$at_failed && at_fn_log_failure
 
57485
$at_traceon; }
 
57486
 
 
57487
     set +x
 
57488
  $at_times_p && times >"$at_times_file"
 
57489
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
57490
read at_status <"$at_status_file"
 
57491
#AT_STOP_795
 
57492
#AT_START_796
 
57493
at_fn_group_banner 796 'ovsdb-tool.at:30' \
 
57494
  "insert rows, update rows by value" "              " 58
 
57495
at_xfail=no
 
57496
(
 
57497
  $as_echo "796. $at_setup_line: testing $at_desc ..."
 
57498
  $at_traceon
 
57499
 
 
57500
 
 
57501
   cat >schema <<'_ATEOF'
 
57502
{"name": "ordinals",
 
57503
     "tables": {
 
57504
       "ordinals": {
 
57505
         "columns": {
 
57506
           "number": {"type": "integer"},
 
57507
           "name": {"type": "string"}},
 
57508
         "indexes": [["number"]]}},
 
57509
     "version": "5.1.3",
 
57510
     "cksum": "12345678 9"}
 
57511
_ATEOF
 
57512
 
 
57513
   touch .db.~lock~
 
57514
   { set +x
 
57515
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
57516
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
57517
( $at_check_trace; ovsdb-tool create db schema
 
57518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57519
at_status=$? at_failed=false
 
57520
$at_check_filter
 
57521
echo stderr:; cat "$at_stderr"
 
57522
echo stdout:; tee stdout <"$at_stdout"
 
57523
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57524
$at_failed && at_fn_log_failure
 
57525
$at_traceon; }
 
57526
 
 
57527
   { set +x
 
57528
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57529
      {\"op\": \"insert\",
 
57530
       \"table\": \"ordinals\",
 
57531
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
57532
       \"uuid-name\": \"first\"}]'"
 
57533
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57534
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57535
      {"op": "insert",
 
57536
       "table": "ordinals",
 
57537
       "row": {"number": 0, "name": "zero"},
 
57538
       "uuid-name": "first"}]'
 
57539
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57540
at_status=$? at_failed=false
 
57541
$at_check_filter
 
57542
echo stderr:; cat "$at_stderr"
 
57543
echo stdout:; tee stdout <"$at_stdout"
 
57544
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57545
$at_failed && at_fn_log_failure
 
57546
$at_traceon; }
 
57547
 
 
57548
cat stdout >> output
 
57549
{ set +x
 
57550
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57551
      {\"op\": \"insert\",
 
57552
       \"table\": \"ordinals\",
 
57553
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
57554
       \"uuid-name\": \"first\"}]'"
 
57555
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57556
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57557
      {"op": "insert",
 
57558
       "table": "ordinals",
 
57559
       "row": {"number": 1, "name": "one"},
 
57560
       "uuid-name": "first"}]'
 
57561
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57562
at_status=$? at_failed=false
 
57563
$at_check_filter
 
57564
echo stderr:; cat "$at_stderr"
 
57565
echo stdout:; tee stdout <"$at_stdout"
 
57566
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57567
$at_failed && at_fn_log_failure
 
57568
$at_traceon; }
 
57569
 
 
57570
cat stdout >> output
 
57571
{ set +x
 
57572
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57573
      {\"op\": \"update\",
 
57574
       \"table\": \"ordinals\",
 
57575
       \"where\": [[\"name\", \"==\", \"zero\"]],
 
57576
       \"row\": {\"name\": \"nought\"}}]'"
 
57577
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57578
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57579
      {"op": "update",
 
57580
       "table": "ordinals",
 
57581
       "where": [["name", "==", "zero"]],
 
57582
       "row": {"name": "nought"}}]'
 
57583
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57584
at_status=$? at_failed=false
 
57585
$at_check_filter
 
57586
echo stderr:; cat "$at_stderr"
 
57587
echo stdout:; tee stdout <"$at_stdout"
 
57588
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57589
$at_failed && at_fn_log_failure
 
57590
$at_traceon; }
 
57591
 
 
57592
cat stdout >> output
 
57593
{ set +x
 
57594
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57595
      {\"op\": \"select\",
 
57596
       \"table\": \"ordinals\",
 
57597
       \"where\": [],
 
57598
       \"sort\": [\"number\"]}]'"
 
57599
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57600
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57601
      {"op": "select",
 
57602
       "table": "ordinals",
 
57603
       "where": [],
 
57604
       "sort": ["number"]}]'
 
57605
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57606
at_status=$? at_failed=false
 
57607
$at_check_filter
 
57608
echo stderr:; cat "$at_stderr"
 
57609
echo stdout:; tee stdout <"$at_stdout"
 
57610
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57611
$at_failed && at_fn_log_failure
 
57612
$at_traceon; }
 
57613
 
 
57614
cat stdout >> output
 
57615
 
 
57616
   { set +x
 
57617
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
57618
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
57619
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
57620
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57621
at_status=$? at_failed=false
 
57622
$at_check_filter
 
57623
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57624
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
57625
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
57626
[{\"count\":1}]
 
57627
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"nought\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
57628
" | \
 
57629
  $at_diff - "$at_stdout" || at_failed=:
 
57630
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57631
$at_failed && at_fn_log_failure
 
57632
$at_traceon; }
 
57633
 
 
57634
     set +x
 
57635
  $at_times_p && times >"$at_times_file"
 
57636
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
57637
read at_status <"$at_status_file"
 
57638
#AT_STOP_796
 
57639
#AT_START_797
 
57640
at_fn_group_banner 797 'ovsdb-tool.at:30' \
 
57641
  "insert rows, mutate rows" "                       " 58
 
57642
at_xfail=no
 
57643
(
 
57644
  $as_echo "797. $at_setup_line: testing $at_desc ..."
 
57645
  $at_traceon
 
57646
 
 
57647
 
 
57648
   cat >schema <<'_ATEOF'
 
57649
{"name": "ordinals",
 
57650
     "tables": {
 
57651
       "ordinals": {
 
57652
         "columns": {
 
57653
           "number": {"type": "integer"},
 
57654
           "name": {"type": "string"}},
 
57655
         "indexes": [["number"]]}},
 
57656
     "version": "5.1.3",
 
57657
     "cksum": "12345678 9"}
 
57658
_ATEOF
 
57659
 
 
57660
   touch .db.~lock~
 
57661
   { set +x
 
57662
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
57663
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
57664
( $at_check_trace; ovsdb-tool create db schema
 
57665
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57666
at_status=$? at_failed=false
 
57667
$at_check_filter
 
57668
echo stderr:; cat "$at_stderr"
 
57669
echo stdout:; tee stdout <"$at_stdout"
 
57670
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57671
$at_failed && at_fn_log_failure
 
57672
$at_traceon; }
 
57673
 
 
57674
   { set +x
 
57675
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57676
      {\"op\": \"insert\",
 
57677
       \"table\": \"ordinals\",
 
57678
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
57679
       \"uuid-name\": \"first\"}]'"
 
57680
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57681
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57682
      {"op": "insert",
 
57683
       "table": "ordinals",
 
57684
       "row": {"number": 0, "name": "zero"},
 
57685
       "uuid-name": "first"}]'
 
57686
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57687
at_status=$? at_failed=false
 
57688
$at_check_filter
 
57689
echo stderr:; cat "$at_stderr"
 
57690
echo stdout:; tee stdout <"$at_stdout"
 
57691
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57692
$at_failed && at_fn_log_failure
 
57693
$at_traceon; }
 
57694
 
 
57695
cat stdout >> output
 
57696
{ set +x
 
57697
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57698
      {\"op\": \"insert\",
 
57699
       \"table\": \"ordinals\",
 
57700
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
57701
       \"uuid-name\": \"first\"}]'"
 
57702
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57703
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57704
      {"op": "insert",
 
57705
       "table": "ordinals",
 
57706
       "row": {"number": 1, "name": "one"},
 
57707
       "uuid-name": "first"}]'
 
57708
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57709
at_status=$? at_failed=false
 
57710
$at_check_filter
 
57711
echo stderr:; cat "$at_stderr"
 
57712
echo stdout:; tee stdout <"$at_stdout"
 
57713
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57714
$at_failed && at_fn_log_failure
 
57715
$at_traceon; }
 
57716
 
 
57717
cat stdout >> output
 
57718
{ set +x
 
57719
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57720
      {\"op\": \"mutate\",
 
57721
       \"table\": \"ordinals\",
 
57722
       \"where\": [[\"name\", \"==\", \"zero\"]],
 
57723
       \"mutations\": [[\"number\", \"+=\", 2]]}]'"
 
57724
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57725
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57726
      {"op": "mutate",
 
57727
       "table": "ordinals",
 
57728
       "where": [["name", "==", "zero"]],
 
57729
       "mutations": [["number", "+=", 2]]}]'
 
57730
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57731
at_status=$? at_failed=false
 
57732
$at_check_filter
 
57733
echo stderr:; cat "$at_stderr"
 
57734
echo stdout:; tee stdout <"$at_stdout"
 
57735
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57736
$at_failed && at_fn_log_failure
 
57737
$at_traceon; }
 
57738
 
 
57739
cat stdout >> output
 
57740
{ set +x
 
57741
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57742
      {\"op\": \"select\",
 
57743
       \"table\": \"ordinals\",
 
57744
       \"where\": [],
 
57745
       \"sort\": [\"number\"]}]'"
 
57746
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57747
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57748
      {"op": "select",
 
57749
       "table": "ordinals",
 
57750
       "where": [],
 
57751
       "sort": ["number"]}]'
 
57752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57753
at_status=$? at_failed=false
 
57754
$at_check_filter
 
57755
echo stderr:; cat "$at_stderr"
 
57756
echo stdout:; tee stdout <"$at_stdout"
 
57757
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57758
$at_failed && at_fn_log_failure
 
57759
$at_traceon; }
 
57760
 
 
57761
cat stdout >> output
 
57762
 
 
57763
   { set +x
 
57764
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
57765
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
57766
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
57767
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57768
at_status=$? at_failed=false
 
57769
$at_check_filter
 
57770
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57771
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
57772
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
57773
[{\"count\":1}]
 
57774
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1},{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"zero\",\"number\":2}]}]
 
57775
" | \
 
57776
  $at_diff - "$at_stdout" || at_failed=:
 
57777
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57778
$at_failed && at_fn_log_failure
 
57779
$at_traceon; }
 
57780
 
 
57781
     set +x
 
57782
  $at_times_p && times >"$at_times_file"
 
57783
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
57784
read at_status <"$at_status_file"
 
57785
#AT_STOP_797
 
57786
#AT_START_798
 
57787
at_fn_group_banner 798 'ovsdb-tool.at:30' \
 
57788
  "insert rows, delete by named-uuid" "              " 58
 
57789
at_xfail=no
 
57790
(
 
57791
  $as_echo "798. $at_setup_line: testing $at_desc ..."
 
57792
  $at_traceon
 
57793
 
 
57794
 
 
57795
   cat >schema <<'_ATEOF'
 
57796
{"name": "ordinals",
 
57797
     "tables": {
 
57798
       "ordinals": {
 
57799
         "columns": {
 
57800
           "number": {"type": "integer"},
 
57801
           "name": {"type": "string"}},
 
57802
         "indexes": [["number"]]}},
 
57803
     "version": "5.1.3",
 
57804
     "cksum": "12345678 9"}
 
57805
_ATEOF
 
57806
 
 
57807
   touch .db.~lock~
 
57808
   { set +x
 
57809
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
57810
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
57811
( $at_check_trace; ovsdb-tool create db schema
 
57812
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57813
at_status=$? at_failed=false
 
57814
$at_check_filter
 
57815
echo stderr:; cat "$at_stderr"
 
57816
echo stdout:; tee stdout <"$at_stdout"
 
57817
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57818
$at_failed && at_fn_log_failure
 
57819
$at_traceon; }
 
57820
 
 
57821
   { set +x
 
57822
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57823
      {\"op\": \"insert\",
 
57824
       \"table\": \"ordinals\",
 
57825
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
57826
       \"uuid-name\": \"first\"},
 
57827
      {\"op\": \"insert\",
 
57828
       \"table\": \"ordinals\",
 
57829
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
57830
       \"uuid-name\": \"second\"},
 
57831
      {\"op\": \"delete\",
 
57832
       \"table\": \"ordinals\",
 
57833
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"first\"]]]},
 
57834
      {\"op\": \"select\",
 
57835
       \"table\": \"ordinals\",
 
57836
       \"where\": [],
 
57837
       \"columns\": [\"name\",\"number\"]}]'"
 
57838
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57839
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57840
      {"op": "insert",
 
57841
       "table": "ordinals",
 
57842
       "row": {"number": 0, "name": "zero"},
 
57843
       "uuid-name": "first"},
 
57844
      {"op": "insert",
 
57845
       "table": "ordinals",
 
57846
       "row": {"number": 1, "name": "one"},
 
57847
       "uuid-name": "second"},
 
57848
      {"op": "delete",
 
57849
       "table": "ordinals",
 
57850
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
57851
      {"op": "select",
 
57852
       "table": "ordinals",
 
57853
       "where": [],
 
57854
       "columns": ["name","number"]}]'
 
57855
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57856
at_status=$? at_failed=false
 
57857
$at_check_filter
 
57858
echo stderr:; cat "$at_stderr"
 
57859
echo stdout:; tee stdout <"$at_stdout"
 
57860
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57861
$at_failed && at_fn_log_failure
 
57862
$at_traceon; }
 
57863
 
 
57864
cat stdout >> output
 
57865
 
 
57866
   { set +x
 
57867
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
57868
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
57869
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
57870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57871
at_status=$? at_failed=false
 
57872
$at_check_filter
 
57873
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
57874
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":1},{\"rows\":[{\"name\":\"one\",\"number\":1}]}]
 
57875
" | \
 
57876
  $at_diff - "$at_stdout" || at_failed=:
 
57877
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57878
$at_failed && at_fn_log_failure
 
57879
$at_traceon; }
 
57880
 
 
57881
     set +x
 
57882
  $at_times_p && times >"$at_times_file"
 
57883
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
57884
read at_status <"$at_status_file"
 
57885
#AT_STOP_798
 
57886
#AT_START_799
 
57887
at_fn_group_banner 799 'ovsdb-tool.at:30' \
 
57888
  "insert rows, delete rows by value" "              " 58
 
57889
at_xfail=no
 
57890
(
 
57891
  $as_echo "799. $at_setup_line: testing $at_desc ..."
 
57892
  $at_traceon
 
57893
 
 
57894
 
 
57895
   cat >schema <<'_ATEOF'
 
57896
{"name": "ordinals",
 
57897
     "tables": {
 
57898
       "ordinals": {
 
57899
         "columns": {
 
57900
           "number": {"type": "integer"},
 
57901
           "name": {"type": "string"}},
 
57902
         "indexes": [["number"]]}},
 
57903
     "version": "5.1.3",
 
57904
     "cksum": "12345678 9"}
 
57905
_ATEOF
 
57906
 
 
57907
   touch .db.~lock~
 
57908
   { set +x
 
57909
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
57910
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
57911
( $at_check_trace; ovsdb-tool create db schema
 
57912
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57913
at_status=$? at_failed=false
 
57914
$at_check_filter
 
57915
echo stderr:; cat "$at_stderr"
 
57916
echo stdout:; tee stdout <"$at_stdout"
 
57917
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57918
$at_failed && at_fn_log_failure
 
57919
$at_traceon; }
 
57920
 
 
57921
   { set +x
 
57922
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57923
      {\"op\": \"insert\",
 
57924
       \"table\": \"ordinals\",
 
57925
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
57926
       \"uuid-name\": \"first\"}]'"
 
57927
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57928
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57929
      {"op": "insert",
 
57930
       "table": "ordinals",
 
57931
       "row": {"number": 0, "name": "zero"},
 
57932
       "uuid-name": "first"}]'
 
57933
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57934
at_status=$? at_failed=false
 
57935
$at_check_filter
 
57936
echo stderr:; cat "$at_stderr"
 
57937
echo stdout:; tee stdout <"$at_stdout"
 
57938
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57939
$at_failed && at_fn_log_failure
 
57940
$at_traceon; }
 
57941
 
 
57942
cat stdout >> output
 
57943
{ set +x
 
57944
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57945
      {\"op\": \"insert\",
 
57946
       \"table\": \"ordinals\",
 
57947
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
57948
       \"uuid-name\": \"first\"}]'"
 
57949
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57950
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57951
      {"op": "insert",
 
57952
       "table": "ordinals",
 
57953
       "row": {"number": 1, "name": "one"},
 
57954
       "uuid-name": "first"}]'
 
57955
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57956
at_status=$? at_failed=false
 
57957
$at_check_filter
 
57958
echo stderr:; cat "$at_stderr"
 
57959
echo stdout:; tee stdout <"$at_stdout"
 
57960
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57961
$at_failed && at_fn_log_failure
 
57962
$at_traceon; }
 
57963
 
 
57964
cat stdout >> output
 
57965
{ set +x
 
57966
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57967
      {\"op\": \"delete\",
 
57968
       \"table\": \"ordinals\",
 
57969
       \"where\": [[\"name\", \"==\", \"zero\"]]}]'"
 
57970
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57971
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57972
      {"op": "delete",
 
57973
       "table": "ordinals",
 
57974
       "where": [["name", "==", "zero"]]}]'
 
57975
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57976
at_status=$? at_failed=false
 
57977
$at_check_filter
 
57978
echo stderr:; cat "$at_stderr"
 
57979
echo stdout:; tee stdout <"$at_stdout"
 
57980
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
57981
$at_failed && at_fn_log_failure
 
57982
$at_traceon; }
 
57983
 
 
57984
cat stdout >> output
 
57985
{ set +x
 
57986
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
57987
      {\"op\": \"select\",
 
57988
       \"table\": \"ordinals\",
 
57989
       \"where\": []}]'"
 
57990
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
57991
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
57992
      {"op": "select",
 
57993
       "table": "ordinals",
 
57994
       "where": []}]'
 
57995
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
57996
at_status=$? at_failed=false
 
57997
$at_check_filter
 
57998
echo stderr:; cat "$at_stderr"
 
57999
echo stdout:; tee stdout <"$at_stdout"
 
58000
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58001
$at_failed && at_fn_log_failure
 
58002
$at_traceon; }
 
58003
 
 
58004
cat stdout >> output
 
58005
 
 
58006
   { set +x
 
58007
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58008
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58009
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58010
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58011
at_status=$? at_failed=false
 
58012
$at_check_filter
 
58013
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58014
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
58015
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
58016
[{\"count\":1}]
 
58017
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1}]}]
 
58018
" | \
 
58019
  $at_diff - "$at_stdout" || at_failed=:
 
58020
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58021
$at_failed && at_fn_log_failure
 
58022
$at_traceon; }
 
58023
 
 
58024
     set +x
 
58025
  $at_times_p && times >"$at_times_file"
 
58026
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58027
read at_status <"$at_status_file"
 
58028
#AT_STOP_799
 
58029
#AT_START_800
 
58030
at_fn_group_banner 800 'ovsdb-tool.at:30' \
 
58031
  "insert rows, delete by (non-matching) value" "    " 58
 
58032
at_xfail=no
 
58033
(
 
58034
  $as_echo "800. $at_setup_line: testing $at_desc ..."
 
58035
  $at_traceon
 
58036
 
 
58037
 
 
58038
   cat >schema <<'_ATEOF'
 
58039
{"name": "ordinals",
 
58040
     "tables": {
 
58041
       "ordinals": {
 
58042
         "columns": {
 
58043
           "number": {"type": "integer"},
 
58044
           "name": {"type": "string"}},
 
58045
         "indexes": [["number"]]}},
 
58046
     "version": "5.1.3",
 
58047
     "cksum": "12345678 9"}
 
58048
_ATEOF
 
58049
 
 
58050
   touch .db.~lock~
 
58051
   { set +x
 
58052
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58053
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58054
( $at_check_trace; ovsdb-tool create db schema
 
58055
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58056
at_status=$? at_failed=false
 
58057
$at_check_filter
 
58058
echo stderr:; cat "$at_stderr"
 
58059
echo stdout:; tee stdout <"$at_stdout"
 
58060
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58061
$at_failed && at_fn_log_failure
 
58062
$at_traceon; }
 
58063
 
 
58064
   { set +x
 
58065
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58066
      {\"op\": \"insert\",
 
58067
       \"table\": \"ordinals\",
 
58068
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
58069
       \"uuid-name\": \"first\"}]'"
 
58070
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58071
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58072
      {"op": "insert",
 
58073
       "table": "ordinals",
 
58074
       "row": {"number": 0, "name": "zero"},
 
58075
       "uuid-name": "first"}]'
 
58076
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58077
at_status=$? at_failed=false
 
58078
$at_check_filter
 
58079
echo stderr:; cat "$at_stderr"
 
58080
echo stdout:; tee stdout <"$at_stdout"
 
58081
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58082
$at_failed && at_fn_log_failure
 
58083
$at_traceon; }
 
58084
 
 
58085
cat stdout >> output
 
58086
{ set +x
 
58087
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58088
      {\"op\": \"insert\",
 
58089
       \"table\": \"ordinals\",
 
58090
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
58091
       \"uuid-name\": \"first\"}]'"
 
58092
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58093
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58094
      {"op": "insert",
 
58095
       "table": "ordinals",
 
58096
       "row": {"number": 1, "name": "one"},
 
58097
       "uuid-name": "first"}]'
 
58098
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58099
at_status=$? at_failed=false
 
58100
$at_check_filter
 
58101
echo stderr:; cat "$at_stderr"
 
58102
echo stdout:; tee stdout <"$at_stdout"
 
58103
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58104
$at_failed && at_fn_log_failure
 
58105
$at_traceon; }
 
58106
 
 
58107
cat stdout >> output
 
58108
{ set +x
 
58109
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58110
      {\"op\": \"delete\",
 
58111
       \"table\": \"ordinals\",
 
58112
       \"where\": [[\"name\", \"==\", \"nought\"]]}]'"
 
58113
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58114
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58115
      {"op": "delete",
 
58116
       "table": "ordinals",
 
58117
       "where": [["name", "==", "nought"]]}]'
 
58118
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58119
at_status=$? at_failed=false
 
58120
$at_check_filter
 
58121
echo stderr:; cat "$at_stderr"
 
58122
echo stdout:; tee stdout <"$at_stdout"
 
58123
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58124
$at_failed && at_fn_log_failure
 
58125
$at_traceon; }
 
58126
 
 
58127
cat stdout >> output
 
58128
{ set +x
 
58129
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58130
      {\"op\": \"select\",
 
58131
       \"table\": \"ordinals\",
 
58132
       \"where\": [],
 
58133
       \"sort\": [\"number\"]}]'"
 
58134
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58135
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58136
      {"op": "select",
 
58137
       "table": "ordinals",
 
58138
       "where": [],
 
58139
       "sort": ["number"]}]'
 
58140
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58141
at_status=$? at_failed=false
 
58142
$at_check_filter
 
58143
echo stderr:; cat "$at_stderr"
 
58144
echo stdout:; tee stdout <"$at_stdout"
 
58145
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58146
$at_failed && at_fn_log_failure
 
58147
$at_traceon; }
 
58148
 
 
58149
cat stdout >> output
 
58150
 
 
58151
   { set +x
 
58152
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58153
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58154
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58155
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58156
at_status=$? at_failed=false
 
58157
$at_check_filter
 
58158
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58159
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
58160
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
58161
[{\"count\":0}]
 
58162
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
58163
" | \
 
58164
  $at_diff - "$at_stdout" || at_failed=:
 
58165
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58166
$at_failed && at_fn_log_failure
 
58167
$at_traceon; }
 
58168
 
 
58169
     set +x
 
58170
  $at_times_p && times >"$at_times_file"
 
58171
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58172
read at_status <"$at_status_file"
 
58173
#AT_STOP_800
 
58174
#AT_START_801
 
58175
at_fn_group_banner 801 'ovsdb-tool.at:30' \
 
58176
  "insert rows, delete all" "                        " 58
 
58177
at_xfail=no
 
58178
(
 
58179
  $as_echo "801. $at_setup_line: testing $at_desc ..."
 
58180
  $at_traceon
 
58181
 
 
58182
 
 
58183
   cat >schema <<'_ATEOF'
 
58184
{"name": "ordinals",
 
58185
     "tables": {
 
58186
       "ordinals": {
 
58187
         "columns": {
 
58188
           "number": {"type": "integer"},
 
58189
           "name": {"type": "string"}},
 
58190
         "indexes": [["number"]]}},
 
58191
     "version": "5.1.3",
 
58192
     "cksum": "12345678 9"}
 
58193
_ATEOF
 
58194
 
 
58195
   touch .db.~lock~
 
58196
   { set +x
 
58197
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58198
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58199
( $at_check_trace; ovsdb-tool create db schema
 
58200
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58201
at_status=$? at_failed=false
 
58202
$at_check_filter
 
58203
echo stderr:; cat "$at_stderr"
 
58204
echo stdout:; tee stdout <"$at_stdout"
 
58205
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58206
$at_failed && at_fn_log_failure
 
58207
$at_traceon; }
 
58208
 
 
58209
   { set +x
 
58210
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58211
      {\"op\": \"insert\",
 
58212
       \"table\": \"ordinals\",
 
58213
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
58214
       \"uuid-name\": \"first\"},
 
58215
      {\"op\": \"insert\",
 
58216
       \"table\": \"ordinals\",
 
58217
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
58218
       \"uuid-name\": \"second\"},
 
58219
      {\"op\": \"delete\",
 
58220
       \"table\": \"ordinals\",
 
58221
       \"where\": []},
 
58222
      {\"op\": \"select\",
 
58223
       \"table\": \"ordinals\",
 
58224
       \"where\": [],
 
58225
       \"columns\": [\"name\",\"number\"]}]'"
 
58226
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58227
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58228
      {"op": "insert",
 
58229
       "table": "ordinals",
 
58230
       "row": {"number": 0, "name": "zero"},
 
58231
       "uuid-name": "first"},
 
58232
      {"op": "insert",
 
58233
       "table": "ordinals",
 
58234
       "row": {"number": 1, "name": "one"},
 
58235
       "uuid-name": "second"},
 
58236
      {"op": "delete",
 
58237
       "table": "ordinals",
 
58238
       "where": []},
 
58239
      {"op": "select",
 
58240
       "table": "ordinals",
 
58241
       "where": [],
 
58242
       "columns": ["name","number"]}]'
 
58243
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58244
at_status=$? at_failed=false
 
58245
$at_check_filter
 
58246
echo stderr:; cat "$at_stderr"
 
58247
echo stdout:; tee stdout <"$at_stdout"
 
58248
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58249
$at_failed && at_fn_log_failure
 
58250
$at_traceon; }
 
58251
 
 
58252
cat stdout >> output
 
58253
 
 
58254
   { set +x
 
58255
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58256
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58257
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58258
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58259
at_status=$? at_failed=false
 
58260
$at_check_filter
 
58261
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58262
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":2},{\"rows\":[]}]
 
58263
" | \
 
58264
  $at_diff - "$at_stdout" || at_failed=:
 
58265
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58266
$at_failed && at_fn_log_failure
 
58267
$at_traceon; }
 
58268
 
 
58269
     set +x
 
58270
  $at_times_p && times >"$at_times_file"
 
58271
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58272
read at_status <"$at_status_file"
 
58273
#AT_STOP_801
 
58274
#AT_START_802
 
58275
at_fn_group_banner 802 'ovsdb-tool.at:30' \
 
58276
  "insert row, query table, commit" "                " 58
 
58277
at_xfail=no
 
58278
(
 
58279
  $as_echo "802. $at_setup_line: testing $at_desc ..."
 
58280
  $at_traceon
 
58281
 
 
58282
 
 
58283
   cat >schema <<'_ATEOF'
 
58284
{"name": "ordinals",
 
58285
     "tables": {
 
58286
       "ordinals": {
 
58287
         "columns": {
 
58288
           "number": {"type": "integer"},
 
58289
           "name": {"type": "string"}},
 
58290
         "indexes": [["number"]]}},
 
58291
     "version": "5.1.3",
 
58292
     "cksum": "12345678 9"}
 
58293
_ATEOF
 
58294
 
 
58295
   touch .db.~lock~
 
58296
   { set +x
 
58297
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58298
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58299
( $at_check_trace; ovsdb-tool create db schema
 
58300
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58301
at_status=$? at_failed=false
 
58302
$at_check_filter
 
58303
echo stderr:; cat "$at_stderr"
 
58304
echo stdout:; tee stdout <"$at_stdout"
 
58305
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58306
$at_failed && at_fn_log_failure
 
58307
$at_traceon; }
 
58308
 
 
58309
   { set +x
 
58310
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58311
      {\"op\": \"insert\",
 
58312
       \"table\": \"ordinals\",
 
58313
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
58314
      {\"op\": \"select\",
 
58315
       \"table\": \"ordinals\",
 
58316
       \"where\": []},
 
58317
      {\"op\": \"commit\",
 
58318
       \"durable\": false}]'"
 
58319
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58320
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58321
      {"op": "insert",
 
58322
       "table": "ordinals",
 
58323
       "row": {"number": 0, "name": "zero"}},
 
58324
      {"op": "select",
 
58325
       "table": "ordinals",
 
58326
       "where": []},
 
58327
      {"op": "commit",
 
58328
       "durable": false}]'
 
58329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58330
at_status=$? at_failed=false
 
58331
$at_check_filter
 
58332
echo stderr:; cat "$at_stderr"
 
58333
echo stdout:; tee stdout <"$at_stdout"
 
58334
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58335
$at_failed && at_fn_log_failure
 
58336
$at_traceon; }
 
58337
 
 
58338
cat stdout >> output
 
58339
 
 
58340
   { set +x
 
58341
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58342
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58343
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58344
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58345
at_status=$? at_failed=false
 
58346
$at_check_filter
 
58347
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58348
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
58349
" | \
 
58350
  $at_diff - "$at_stdout" || at_failed=:
 
58351
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58352
$at_failed && at_fn_log_failure
 
58353
$at_traceon; }
 
58354
 
 
58355
     set +x
 
58356
  $at_times_p && times >"$at_times_file"
 
58357
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58358
read at_status <"$at_status_file"
 
58359
#AT_STOP_802
 
58360
#AT_START_803
 
58361
at_fn_group_banner 803 'ovsdb-tool.at:30' \
 
58362
  "insert row, query table, commit durably" "        " 58
 
58363
at_xfail=no
 
58364
(
 
58365
  $as_echo "803. $at_setup_line: testing $at_desc ..."
 
58366
  $at_traceon
 
58367
 
 
58368
 
 
58369
   cat >schema <<'_ATEOF'
 
58370
{"name": "ordinals",
 
58371
     "tables": {
 
58372
       "ordinals": {
 
58373
         "columns": {
 
58374
           "number": {"type": "integer"},
 
58375
           "name": {"type": "string"}},
 
58376
         "indexes": [["number"]]}},
 
58377
     "version": "5.1.3",
 
58378
     "cksum": "12345678 9"}
 
58379
_ATEOF
 
58380
 
 
58381
   touch .db.~lock~
 
58382
   { set +x
 
58383
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58384
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58385
( $at_check_trace; ovsdb-tool create db schema
 
58386
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58387
at_status=$? at_failed=false
 
58388
$at_check_filter
 
58389
echo stderr:; cat "$at_stderr"
 
58390
echo stdout:; tee stdout <"$at_stdout"
 
58391
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58392
$at_failed && at_fn_log_failure
 
58393
$at_traceon; }
 
58394
 
 
58395
   { set +x
 
58396
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58397
      {\"op\": \"insert\",
 
58398
       \"table\": \"ordinals\",
 
58399
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
58400
      {\"op\": \"select\",
 
58401
       \"table\": \"ordinals\",
 
58402
       \"where\": []},
 
58403
      {\"op\": \"commit\",
 
58404
       \"durable\": true}]'"
 
58405
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58406
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58407
      {"op": "insert",
 
58408
       "table": "ordinals",
 
58409
       "row": {"number": 0, "name": "zero"}},
 
58410
      {"op": "select",
 
58411
       "table": "ordinals",
 
58412
       "where": []},
 
58413
      {"op": "commit",
 
58414
       "durable": true}]'
 
58415
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58416
at_status=$? at_failed=false
 
58417
$at_check_filter
 
58418
echo stderr:; cat "$at_stderr"
 
58419
echo stdout:; tee stdout <"$at_stdout"
 
58420
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58421
$at_failed && at_fn_log_failure
 
58422
$at_traceon; }
 
58423
 
 
58424
cat stdout >> output
 
58425
 
 
58426
   { set +x
 
58427
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58428
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58429
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58430
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58431
at_status=$? at_failed=false
 
58432
$at_check_filter
 
58433
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58434
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
58435
" | \
 
58436
  $at_diff - "$at_stdout" || at_failed=:
 
58437
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58438
$at_failed && at_fn_log_failure
 
58439
$at_traceon; }
 
58440
 
 
58441
     set +x
 
58442
  $at_times_p && times >"$at_times_file"
 
58443
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58444
read at_status <"$at_status_file"
 
58445
#AT_STOP_803
 
58446
#AT_START_804
 
58447
at_fn_group_banner 804 'ovsdb-tool.at:30' \
 
58448
  "equality wait with correct rows" "                " 58
 
58449
at_xfail=no
 
58450
(
 
58451
  $as_echo "804. $at_setup_line: testing $at_desc ..."
 
58452
  $at_traceon
 
58453
 
 
58454
 
 
58455
   cat >schema <<'_ATEOF'
 
58456
{"name": "ordinals",
 
58457
     "tables": {
 
58458
       "ordinals": {
 
58459
         "columns": {
 
58460
           "number": {"type": "integer"},
 
58461
           "name": {"type": "string"}},
 
58462
         "indexes": [["number"]]}},
 
58463
     "version": "5.1.3",
 
58464
     "cksum": "12345678 9"}
 
58465
_ATEOF
 
58466
 
 
58467
   touch .db.~lock~
 
58468
   { set +x
 
58469
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58470
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58471
( $at_check_trace; ovsdb-tool create db schema
 
58472
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58473
at_status=$? at_failed=false
 
58474
$at_check_filter
 
58475
echo stderr:; cat "$at_stderr"
 
58476
echo stdout:; tee stdout <"$at_stdout"
 
58477
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58478
$at_failed && at_fn_log_failure
 
58479
$at_traceon; }
 
58480
 
 
58481
   { set +x
 
58482
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58483
      {\"op\": \"insert\",
 
58484
       \"table\": \"ordinals\",
 
58485
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
58486
      {\"op\": \"insert\",
 
58487
       \"table\": \"ordinals\",
 
58488
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
58489
      {\"op\": \"wait\",
 
58490
       \"timeout\": 0,
 
58491
       \"table\": \"ordinals\",
 
58492
       \"where\": [],
 
58493
       \"columns\": [\"name\", \"number\"],
 
58494
       \"until\": \"==\",
 
58495
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
58496
                {\"name\": \"one\", \"number\": 1}]}]'"
 
58497
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58498
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58499
      {"op": "insert",
 
58500
       "table": "ordinals",
 
58501
       "row": {"number": 0, "name": "zero"}},
 
58502
      {"op": "insert",
 
58503
       "table": "ordinals",
 
58504
       "row": {"number": 1, "name": "one"}},
 
58505
      {"op": "wait",
 
58506
       "timeout": 0,
 
58507
       "table": "ordinals",
 
58508
       "where": [],
 
58509
       "columns": ["name", "number"],
 
58510
       "until": "==",
 
58511
       "rows": [{"name": "zero", "number": 0},
 
58512
                {"name": "one", "number": 1}]}]'
 
58513
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58514
at_status=$? at_failed=false
 
58515
$at_check_filter
 
58516
echo stderr:; cat "$at_stderr"
 
58517
echo stdout:; tee stdout <"$at_stdout"
 
58518
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58519
$at_failed && at_fn_log_failure
 
58520
$at_traceon; }
 
58521
 
 
58522
cat stdout >> output
 
58523
 
 
58524
   { set +x
 
58525
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58526
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58527
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58528
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58529
at_status=$? at_failed=false
 
58530
$at_check_filter
 
58531
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58532
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
58533
" | \
 
58534
  $at_diff - "$at_stdout" || at_failed=:
 
58535
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58536
$at_failed && at_fn_log_failure
 
58537
$at_traceon; }
 
58538
 
 
58539
     set +x
 
58540
  $at_times_p && times >"$at_times_file"
 
58541
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58542
read at_status <"$at_status_file"
 
58543
#AT_STOP_804
 
58544
#AT_START_805
 
58545
at_fn_group_banner 805 'ovsdb-tool.at:30' \
 
58546
  "equality wait with extra row" "                   " 58
 
58547
at_xfail=no
 
58548
(
 
58549
  $as_echo "805. $at_setup_line: testing $at_desc ..."
 
58550
  $at_traceon
 
58551
 
 
58552
 
 
58553
   cat >schema <<'_ATEOF'
 
58554
{"name": "ordinals",
 
58555
     "tables": {
 
58556
       "ordinals": {
 
58557
         "columns": {
 
58558
           "number": {"type": "integer"},
 
58559
           "name": {"type": "string"}},
 
58560
         "indexes": [["number"]]}},
 
58561
     "version": "5.1.3",
 
58562
     "cksum": "12345678 9"}
 
58563
_ATEOF
 
58564
 
 
58565
   touch .db.~lock~
 
58566
   { set +x
 
58567
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58568
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58569
( $at_check_trace; ovsdb-tool create db schema
 
58570
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58571
at_status=$? at_failed=false
 
58572
$at_check_filter
 
58573
echo stderr:; cat "$at_stderr"
 
58574
echo stdout:; tee stdout <"$at_stdout"
 
58575
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58576
$at_failed && at_fn_log_failure
 
58577
$at_traceon; }
 
58578
 
 
58579
   { set +x
 
58580
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58581
      {\"op\": \"insert\",
 
58582
       \"table\": \"ordinals\",
 
58583
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
58584
      {\"op\": \"insert\",
 
58585
       \"table\": \"ordinals\",
 
58586
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
58587
      {\"op\": \"wait\",
 
58588
       \"timeout\": 0,
 
58589
       \"table\": \"ordinals\",
 
58590
       \"where\": [],
 
58591
       \"columns\": [\"name\", \"number\"],
 
58592
       \"until\": \"==\",
 
58593
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
58594
                {\"name\": \"one\", \"number\": 1},
 
58595
                {\"name\": \"two\", \"number\": 2}]}]'"
 
58596
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58597
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58598
      {"op": "insert",
 
58599
       "table": "ordinals",
 
58600
       "row": {"number": 0, "name": "zero"}},
 
58601
      {"op": "insert",
 
58602
       "table": "ordinals",
 
58603
       "row": {"number": 1, "name": "one"}},
 
58604
      {"op": "wait",
 
58605
       "timeout": 0,
 
58606
       "table": "ordinals",
 
58607
       "where": [],
 
58608
       "columns": ["name", "number"],
 
58609
       "until": "==",
 
58610
       "rows": [{"name": "zero", "number": 0},
 
58611
                {"name": "one", "number": 1},
 
58612
                {"name": "two", "number": 2}]}]'
 
58613
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58614
at_status=$? at_failed=false
 
58615
$at_check_filter
 
58616
echo stderr:; cat "$at_stderr"
 
58617
echo stdout:; tee stdout <"$at_stdout"
 
58618
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58619
$at_failed && at_fn_log_failure
 
58620
$at_traceon; }
 
58621
 
 
58622
cat stdout >> output
 
58623
 
 
58624
   { set +x
 
58625
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58626
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58627
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58628
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58629
at_status=$? at_failed=false
 
58630
$at_check_filter
 
58631
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58632
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
58633
" | \
 
58634
  $at_diff - "$at_stdout" || at_failed=:
 
58635
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58636
$at_failed && at_fn_log_failure
 
58637
$at_traceon; }
 
58638
 
 
58639
     set +x
 
58640
  $at_times_p && times >"$at_times_file"
 
58641
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58642
read at_status <"$at_status_file"
 
58643
#AT_STOP_805
 
58644
#AT_START_806
 
58645
at_fn_group_banner 806 'ovsdb-tool.at:30' \
 
58646
  "equality wait with missing row" "                 " 58
 
58647
at_xfail=no
 
58648
(
 
58649
  $as_echo "806. $at_setup_line: testing $at_desc ..."
 
58650
  $at_traceon
 
58651
 
 
58652
 
 
58653
   cat >schema <<'_ATEOF'
 
58654
{"name": "ordinals",
 
58655
     "tables": {
 
58656
       "ordinals": {
 
58657
         "columns": {
 
58658
           "number": {"type": "integer"},
 
58659
           "name": {"type": "string"}},
 
58660
         "indexes": [["number"]]}},
 
58661
     "version": "5.1.3",
 
58662
     "cksum": "12345678 9"}
 
58663
_ATEOF
 
58664
 
 
58665
   touch .db.~lock~
 
58666
   { set +x
 
58667
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58668
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58669
( $at_check_trace; ovsdb-tool create db schema
 
58670
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58671
at_status=$? at_failed=false
 
58672
$at_check_filter
 
58673
echo stderr:; cat "$at_stderr"
 
58674
echo stdout:; tee stdout <"$at_stdout"
 
58675
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58676
$at_failed && at_fn_log_failure
 
58677
$at_traceon; }
 
58678
 
 
58679
   { set +x
 
58680
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58681
      {\"op\": \"insert\",
 
58682
       \"table\": \"ordinals\",
 
58683
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
58684
      {\"op\": \"insert\",
 
58685
       \"table\": \"ordinals\",
 
58686
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
58687
      {\"op\": \"wait\",
 
58688
       \"timeout\": 0,
 
58689
       \"table\": \"ordinals\",
 
58690
       \"where\": [],
 
58691
       \"columns\": [\"name\", \"number\"],
 
58692
       \"until\": \"==\",
 
58693
       \"rows\": [{\"name\": \"one\", \"number\": 1}]}]'"
 
58694
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58695
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58696
      {"op": "insert",
 
58697
       "table": "ordinals",
 
58698
       "row": {"number": 0, "name": "zero"}},
 
58699
      {"op": "insert",
 
58700
       "table": "ordinals",
 
58701
       "row": {"number": 1, "name": "one"}},
 
58702
      {"op": "wait",
 
58703
       "timeout": 0,
 
58704
       "table": "ordinals",
 
58705
       "where": [],
 
58706
       "columns": ["name", "number"],
 
58707
       "until": "==",
 
58708
       "rows": [{"name": "one", "number": 1}]}]'
 
58709
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58710
at_status=$? at_failed=false
 
58711
$at_check_filter
 
58712
echo stderr:; cat "$at_stderr"
 
58713
echo stdout:; tee stdout <"$at_stdout"
 
58714
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58715
$at_failed && at_fn_log_failure
 
58716
$at_traceon; }
 
58717
 
 
58718
cat stdout >> output
 
58719
 
 
58720
   { set +x
 
58721
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58722
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58723
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58724
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58725
at_status=$? at_failed=false
 
58726
$at_check_filter
 
58727
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58728
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
58729
" | \
 
58730
  $at_diff - "$at_stdout" || at_failed=:
 
58731
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58732
$at_failed && at_fn_log_failure
 
58733
$at_traceon; }
 
58734
 
 
58735
     set +x
 
58736
  $at_times_p && times >"$at_times_file"
 
58737
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58738
read at_status <"$at_status_file"
 
58739
#AT_STOP_806
 
58740
#AT_START_807
 
58741
at_fn_group_banner 807 'ovsdb-tool.at:30' \
 
58742
  "inequality wait with correct rows" "              " 58
 
58743
at_xfail=no
 
58744
(
 
58745
  $as_echo "807. $at_setup_line: testing $at_desc ..."
 
58746
  $at_traceon
 
58747
 
 
58748
 
 
58749
   cat >schema <<'_ATEOF'
 
58750
{"name": "ordinals",
 
58751
     "tables": {
 
58752
       "ordinals": {
 
58753
         "columns": {
 
58754
           "number": {"type": "integer"},
 
58755
           "name": {"type": "string"}},
 
58756
         "indexes": [["number"]]}},
 
58757
     "version": "5.1.3",
 
58758
     "cksum": "12345678 9"}
 
58759
_ATEOF
 
58760
 
 
58761
   touch .db.~lock~
 
58762
   { set +x
 
58763
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58764
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58765
( $at_check_trace; ovsdb-tool create db schema
 
58766
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58767
at_status=$? at_failed=false
 
58768
$at_check_filter
 
58769
echo stderr:; cat "$at_stderr"
 
58770
echo stdout:; tee stdout <"$at_stdout"
 
58771
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58772
$at_failed && at_fn_log_failure
 
58773
$at_traceon; }
 
58774
 
 
58775
   { set +x
 
58776
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58777
      {\"op\": \"insert\",
 
58778
       \"table\": \"ordinals\",
 
58779
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
58780
      {\"op\": \"insert\",
 
58781
       \"table\": \"ordinals\",
 
58782
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
58783
      {\"op\": \"wait\",
 
58784
       \"timeout\": 0,
 
58785
       \"table\": \"ordinals\",
 
58786
       \"where\": [],
 
58787
       \"columns\": [\"name\", \"number\"],
 
58788
       \"until\": \"!=\",
 
58789
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
58790
                {\"name\": \"one\", \"number\": 1}]}]'"
 
58791
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58792
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58793
      {"op": "insert",
 
58794
       "table": "ordinals",
 
58795
       "row": {"number": 0, "name": "zero"}},
 
58796
      {"op": "insert",
 
58797
       "table": "ordinals",
 
58798
       "row": {"number": 1, "name": "one"}},
 
58799
      {"op": "wait",
 
58800
       "timeout": 0,
 
58801
       "table": "ordinals",
 
58802
       "where": [],
 
58803
       "columns": ["name", "number"],
 
58804
       "until": "!=",
 
58805
       "rows": [{"name": "zero", "number": 0},
 
58806
                {"name": "one", "number": 1}]}]'
 
58807
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58808
at_status=$? at_failed=false
 
58809
$at_check_filter
 
58810
echo stderr:; cat "$at_stderr"
 
58811
echo stdout:; tee stdout <"$at_stdout"
 
58812
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58813
$at_failed && at_fn_log_failure
 
58814
$at_traceon; }
 
58815
 
 
58816
cat stdout >> output
 
58817
 
 
58818
   { set +x
 
58819
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58820
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58821
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58822
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58823
at_status=$? at_failed=false
 
58824
$at_check_filter
 
58825
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58826
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
58827
" | \
 
58828
  $at_diff - "$at_stdout" || at_failed=:
 
58829
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58830
$at_failed && at_fn_log_failure
 
58831
$at_traceon; }
 
58832
 
 
58833
     set +x
 
58834
  $at_times_p && times >"$at_times_file"
 
58835
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58836
read at_status <"$at_status_file"
 
58837
#AT_STOP_807
 
58838
#AT_START_808
 
58839
at_fn_group_banner 808 'ovsdb-tool.at:30' \
 
58840
  "inequality wait with extra row" "                 " 58
 
58841
at_xfail=no
 
58842
(
 
58843
  $as_echo "808. $at_setup_line: testing $at_desc ..."
 
58844
  $at_traceon
 
58845
 
 
58846
 
 
58847
   cat >schema <<'_ATEOF'
 
58848
{"name": "ordinals",
 
58849
     "tables": {
 
58850
       "ordinals": {
 
58851
         "columns": {
 
58852
           "number": {"type": "integer"},
 
58853
           "name": {"type": "string"}},
 
58854
         "indexes": [["number"]]}},
 
58855
     "version": "5.1.3",
 
58856
     "cksum": "12345678 9"}
 
58857
_ATEOF
 
58858
 
 
58859
   touch .db.~lock~
 
58860
   { set +x
 
58861
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58862
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58863
( $at_check_trace; ovsdb-tool create db schema
 
58864
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58865
at_status=$? at_failed=false
 
58866
$at_check_filter
 
58867
echo stderr:; cat "$at_stderr"
 
58868
echo stdout:; tee stdout <"$at_stdout"
 
58869
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58870
$at_failed && at_fn_log_failure
 
58871
$at_traceon; }
 
58872
 
 
58873
   { set +x
 
58874
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58875
      {\"op\": \"insert\",
 
58876
       \"table\": \"ordinals\",
 
58877
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
58878
      {\"op\": \"insert\",
 
58879
       \"table\": \"ordinals\",
 
58880
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
58881
      {\"op\": \"wait\",
 
58882
       \"timeout\": 0,
 
58883
       \"table\": \"ordinals\",
 
58884
       \"where\": [],
 
58885
       \"columns\": [\"name\", \"number\"],
 
58886
       \"until\": \"!=\",
 
58887
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
58888
                {\"name\": \"one\", \"number\": 1},
 
58889
                {\"name\": \"two\", \"number\": 2}]}]'"
 
58890
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58891
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58892
      {"op": "insert",
 
58893
       "table": "ordinals",
 
58894
       "row": {"number": 0, "name": "zero"}},
 
58895
      {"op": "insert",
 
58896
       "table": "ordinals",
 
58897
       "row": {"number": 1, "name": "one"}},
 
58898
      {"op": "wait",
 
58899
       "timeout": 0,
 
58900
       "table": "ordinals",
 
58901
       "where": [],
 
58902
       "columns": ["name", "number"],
 
58903
       "until": "!=",
 
58904
       "rows": [{"name": "zero", "number": 0},
 
58905
                {"name": "one", "number": 1},
 
58906
                {"name": "two", "number": 2}]}]'
 
58907
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58908
at_status=$? at_failed=false
 
58909
$at_check_filter
 
58910
echo stderr:; cat "$at_stderr"
 
58911
echo stdout:; tee stdout <"$at_stdout"
 
58912
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58913
$at_failed && at_fn_log_failure
 
58914
$at_traceon; }
 
58915
 
 
58916
cat stdout >> output
 
58917
 
 
58918
   { set +x
 
58919
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
58920
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
58921
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
58922
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58923
at_status=$? at_failed=false
 
58924
$at_check_filter
 
58925
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
58926
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
58927
" | \
 
58928
  $at_diff - "$at_stdout" || at_failed=:
 
58929
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58930
$at_failed && at_fn_log_failure
 
58931
$at_traceon; }
 
58932
 
 
58933
     set +x
 
58934
  $at_times_p && times >"$at_times_file"
 
58935
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
58936
read at_status <"$at_status_file"
 
58937
#AT_STOP_808
 
58938
#AT_START_809
 
58939
at_fn_group_banner 809 'ovsdb-tool.at:30' \
 
58940
  "inequality wait with missing row" "               " 58
 
58941
at_xfail=no
 
58942
(
 
58943
  $as_echo "809. $at_setup_line: testing $at_desc ..."
 
58944
  $at_traceon
 
58945
 
 
58946
 
 
58947
   cat >schema <<'_ATEOF'
 
58948
{"name": "ordinals",
 
58949
     "tables": {
 
58950
       "ordinals": {
 
58951
         "columns": {
 
58952
           "number": {"type": "integer"},
 
58953
           "name": {"type": "string"}},
 
58954
         "indexes": [["number"]]}},
 
58955
     "version": "5.1.3",
 
58956
     "cksum": "12345678 9"}
 
58957
_ATEOF
 
58958
 
 
58959
   touch .db.~lock~
 
58960
   { set +x
 
58961
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
58962
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
58963
( $at_check_trace; ovsdb-tool create db schema
 
58964
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
58965
at_status=$? at_failed=false
 
58966
$at_check_filter
 
58967
echo stderr:; cat "$at_stderr"
 
58968
echo stdout:; tee stdout <"$at_stdout"
 
58969
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
58970
$at_failed && at_fn_log_failure
 
58971
$at_traceon; }
 
58972
 
 
58973
   { set +x
 
58974
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
58975
      {\"op\": \"insert\",
 
58976
       \"table\": \"ordinals\",
 
58977
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
58978
      {\"op\": \"insert\",
 
58979
       \"table\": \"ordinals\",
 
58980
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
58981
      {\"op\": \"wait\",
 
58982
       \"timeout\": 0,
 
58983
       \"table\": \"ordinals\",
 
58984
       \"where\": [],
 
58985
       \"columns\": [\"name\", \"number\"],
 
58986
       \"until\": \"!=\",
 
58987
       \"rows\": [{\"name\": \"one\", \"number\": 1}]}]'"
 
58988
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
58989
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
58990
      {"op": "insert",
 
58991
       "table": "ordinals",
 
58992
       "row": {"number": 0, "name": "zero"}},
 
58993
      {"op": "insert",
 
58994
       "table": "ordinals",
 
58995
       "row": {"number": 1, "name": "one"}},
 
58996
      {"op": "wait",
 
58997
       "timeout": 0,
 
58998
       "table": "ordinals",
 
58999
       "where": [],
 
59000
       "columns": ["name", "number"],
 
59001
       "until": "!=",
 
59002
       "rows": [{"name": "one", "number": 1}]}]'
 
59003
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59004
at_status=$? at_failed=false
 
59005
$at_check_filter
 
59006
echo stderr:; cat "$at_stderr"
 
59007
echo stdout:; tee stdout <"$at_stdout"
 
59008
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59009
$at_failed && at_fn_log_failure
 
59010
$at_traceon; }
 
59011
 
 
59012
cat stdout >> output
 
59013
 
 
59014
   { set +x
 
59015
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
59016
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
59017
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
59018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59019
at_status=$? at_failed=false
 
59020
$at_check_filter
 
59021
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
59022
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
59023
" | \
 
59024
  $at_diff - "$at_stdout" || at_failed=:
 
59025
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59026
$at_failed && at_fn_log_failure
 
59027
$at_traceon; }
 
59028
 
 
59029
     set +x
 
59030
  $at_times_p && times >"$at_times_file"
 
59031
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
59032
read at_status <"$at_status_file"
 
59033
#AT_STOP_809
 
59034
#AT_START_810
 
59035
at_fn_group_banner 810 'ovsdb-tool.at:30' \
 
59036
  "insert and update constraints" "                  " 58
 
59037
at_xfail=no
 
59038
(
 
59039
  $as_echo "810. $at_setup_line: testing $at_desc ..."
 
59040
  $at_traceon
 
59041
 
 
59042
 
 
59043
   cat >schema <<'_ATEOF'
 
59044
{"name": "constraints",
 
59045
     "tables": {
 
59046
       "a": {
 
59047
         "columns": {
 
59048
           "a": {"type": "integer"},
 
59049
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
59050
                            "min": 0, "max": "unlimited"}},
 
59051
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
59052
                            "min": 0, "max": "unlimited"}}}},
 
59053
       "b": {
 
59054
         "columns": {
 
59055
           "b": {"type": "integer"},
 
59056
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
59057
                            "min": 0, "max": "unlimited"}},
 
59058
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
59059
                            "min": 0, "max": "unlimited"}},
 
59060
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
59061
       "constrained": {
 
59062
         "columns": {
 
59063
           "positive": {"type": {"key": {"type": "integer",
 
59064
                                         "minInteger": 1}}}},
 
59065
         "maxRows": 1}}}
 
59066
_ATEOF
 
59067
 
 
59068
   touch .db.~lock~
 
59069
   { set +x
 
59070
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
59071
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
59072
( $at_check_trace; ovsdb-tool create db schema
 
59073
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59074
at_status=$? at_failed=false
 
59075
$at_check_filter
 
59076
echo stderr:; cat "$at_stderr"
 
59077
echo stdout:; tee stdout <"$at_stdout"
 
59078
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59079
$at_failed && at_fn_log_failure
 
59080
$at_traceon; }
 
59081
 
 
59082
   { set +x
 
59083
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59084
      {\"op\": \"insert\",
 
59085
       \"table\": \"constrained\",
 
59086
       \"row\": {}}]'"
 
59087
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59088
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59089
      {"op": "insert",
 
59090
       "table": "constrained",
 
59091
       "row": {}}]'
 
59092
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59093
at_status=$? at_failed=false
 
59094
$at_check_filter
 
59095
echo stderr:; cat "$at_stderr"
 
59096
echo stdout:; tee stdout <"$at_stdout"
 
59097
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59098
$at_failed && at_fn_log_failure
 
59099
$at_traceon; }
 
59100
 
 
59101
cat stdout >> output
 
59102
{ set +x
 
59103
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59104
      {\"op\": \"insert\",
 
59105
       \"table\": \"constrained\",
 
59106
       \"row\": {\"positive\": -1}}]'"
 
59107
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59108
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59109
      {"op": "insert",
 
59110
       "table": "constrained",
 
59111
       "row": {"positive": -1}}]'
 
59112
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59113
at_status=$? at_failed=false
 
59114
$at_check_filter
 
59115
echo stderr:; cat "$at_stderr"
 
59116
echo stdout:; tee stdout <"$at_stdout"
 
59117
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59118
$at_failed && at_fn_log_failure
 
59119
$at_traceon; }
 
59120
 
 
59121
cat stdout >> output
 
59122
{ set +x
 
59123
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59124
      {\"op\": \"update\",
 
59125
       \"table\": \"constrained\",
 
59126
       \"where\": [],
 
59127
       \"row\": {\"positive\": -2}}]'"
 
59128
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59129
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59130
      {"op": "update",
 
59131
       "table": "constrained",
 
59132
       "where": [],
 
59133
       "row": {"positive": -2}}]'
 
59134
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59135
at_status=$? at_failed=false
 
59136
$at_check_filter
 
59137
echo stderr:; cat "$at_stderr"
 
59138
echo stdout:; tee stdout <"$at_stdout"
 
59139
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59140
$at_failed && at_fn_log_failure
 
59141
$at_traceon; }
 
59142
 
 
59143
cat stdout >> output
 
59144
{ set +x
 
59145
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59146
      {\"op\": \"insert\",
 
59147
       \"table\": \"constrained\",
 
59148
       \"row\": {\"positive\": 1}}]'"
 
59149
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59150
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59151
      {"op": "insert",
 
59152
       "table": "constrained",
 
59153
       "row": {"positive": 1}}]'
 
59154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59155
at_status=$? at_failed=false
 
59156
$at_check_filter
 
59157
echo stderr:; cat "$at_stderr"
 
59158
echo stdout:; tee stdout <"$at_stdout"
 
59159
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59160
$at_failed && at_fn_log_failure
 
59161
$at_traceon; }
 
59162
 
 
59163
cat stdout >> output
 
59164
{ set +x
 
59165
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59166
      {\"op\": \"insert\",
 
59167
       \"table\": \"constrained\",
 
59168
       \"row\": {\"positive\": 2}}]'"
 
59169
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59170
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59171
      {"op": "insert",
 
59172
       "table": "constrained",
 
59173
       "row": {"positive": 2}}]'
 
59174
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59175
at_status=$? at_failed=false
 
59176
$at_check_filter
 
59177
echo stderr:; cat "$at_stderr"
 
59178
echo stdout:; tee stdout <"$at_stdout"
 
59179
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59180
$at_failed && at_fn_log_failure
 
59181
$at_traceon; }
 
59182
 
 
59183
cat stdout >> output
 
59184
 
 
59185
   { set +x
 
59186
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
59187
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
59188
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
59189
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59190
at_status=$? at_failed=false
 
59191
$at_check_filter
 
59192
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
59193
echo >>"$at_stdout"; $as_echo "[{\"details\":\"0 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
59194
[{\"details\":\"-1 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
59195
[{\"details\":\"-2 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
59196
[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
59197
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"transaction causes \\\"constrained\\\" table to contain 2 rows, greater than the schema-defined limit of 1 row(s)\",\"error\":\"constraint violation\"}]
 
59198
" | \
 
59199
  $at_diff - "$at_stdout" || at_failed=:
 
59200
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59201
$at_failed && at_fn_log_failure
 
59202
$at_traceon; }
 
59203
 
 
59204
     set +x
 
59205
  $at_times_p && times >"$at_times_file"
 
59206
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
59207
read at_status <"$at_status_file"
 
59208
#AT_STOP_810
 
59209
#AT_START_811
 
59210
at_fn_group_banner 811 'ovsdb-tool.at:30' \
 
59211
  "index uniqueness checking" "                      " 58
 
59212
at_xfail=no
 
59213
(
 
59214
  $as_echo "811. $at_setup_line: testing $at_desc ..."
 
59215
  $at_traceon
 
59216
 
 
59217
 
 
59218
   cat >schema <<'_ATEOF'
 
59219
{"name": "ordinals",
 
59220
     "tables": {
 
59221
       "ordinals": {
 
59222
         "columns": {
 
59223
           "number": {"type": "integer"},
 
59224
           "name": {"type": "string"}},
 
59225
         "indexes": [["number"]]}},
 
59226
     "version": "5.1.3",
 
59227
     "cksum": "12345678 9"}
 
59228
_ATEOF
 
59229
 
 
59230
   touch .db.~lock~
 
59231
   { set +x
 
59232
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
59233
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
59234
( $at_check_trace; ovsdb-tool create db schema
 
59235
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59236
at_status=$? at_failed=false
 
59237
$at_check_filter
 
59238
echo stderr:; cat "$at_stderr"
 
59239
echo stdout:; tee stdout <"$at_stdout"
 
59240
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59241
$at_failed && at_fn_log_failure
 
59242
$at_traceon; }
 
59243
 
 
59244
   { set +x
 
59245
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"ordinals\",
 
59246
      {\"op\": \"insert\",
 
59247
       \"table\": \"ordinals\",
 
59248
       \"row\": {\"number\": 1, \"name\": \"one\"}}]'"
 
59249
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59250
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
59251
      {"op": "insert",
 
59252
       "table": "ordinals",
 
59253
       "row": {"number": 1, "name": "one"}}]'
 
59254
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59255
at_status=$? at_failed=false
 
59256
$at_check_filter
 
59257
echo stderr:; cat "$at_stderr"
 
59258
echo stdout:; tee stdout <"$at_stdout"
 
59259
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59260
$at_failed && at_fn_log_failure
 
59261
$at_traceon; }
 
59262
 
 
59263
cat stdout >> output
 
59264
{ set +x
 
59265
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"ordinals\",
 
59266
      {\"op\": \"insert\",
 
59267
       \"table\": \"ordinals\",
 
59268
       \"row\": {\"number\": 1, \"name\": \"another one\"}}]'"
 
59269
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59270
( $at_check_trace; ovsdb-tool transact db '   ["ordinals",
 
59271
      {"op": "insert",
 
59272
       "table": "ordinals",
 
59273
       "row": {"number": 1, "name": "another one"}}]'
 
59274
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59275
at_status=$? at_failed=false
 
59276
$at_check_filter
 
59277
echo stderr:; cat "$at_stderr"
 
59278
echo stdout:; tee stdout <"$at_stdout"
 
59279
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59280
$at_failed && at_fn_log_failure
 
59281
$at_traceon; }
 
59282
 
 
59283
cat stdout >> output
 
59284
{ set +x
 
59285
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"ordinals\",
 
59286
      {\"op\": \"insert\",
 
59287
       \"table\": \"ordinals\",
 
59288
       \"row\": {\"number\": 1, \"name\": \"another one\"}},
 
59289
      {\"op\": \"delete\",
 
59290
       \"table\": \"ordinals\",
 
59291
       \"where\": [[\"name\", \"==\", \"one\"]]}]'"
 
59292
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59293
( $at_check_trace; ovsdb-tool transact db '   ["ordinals",
 
59294
      {"op": "insert",
 
59295
       "table": "ordinals",
 
59296
       "row": {"number": 1, "name": "another one"}},
 
59297
      {"op": "delete",
 
59298
       "table": "ordinals",
 
59299
       "where": [["name", "==", "one"]]}]'
 
59300
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59301
at_status=$? at_failed=false
 
59302
$at_check_filter
 
59303
echo stderr:; cat "$at_stderr"
 
59304
echo stdout:; tee stdout <"$at_stdout"
 
59305
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59306
$at_failed && at_fn_log_failure
 
59307
$at_traceon; }
 
59308
 
 
59309
cat stdout >> output
 
59310
{ set +x
 
59311
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"ordinals\",
 
59312
      {\"op\": \"delete\",
 
59313
       \"table\": \"ordinals\",
 
59314
       \"where\": []},
 
59315
      {\"op\": \"insert\",
 
59316
       \"table\": \"ordinals\",
 
59317
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
59318
      {\"op\": \"insert\",
 
59319
       \"table\": \"ordinals\",
 
59320
       \"row\": {\"number\": 1, \"name\": \"still another one\"}}]'"
 
59321
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59322
( $at_check_trace; ovsdb-tool transact db '   ["ordinals",
 
59323
      {"op": "delete",
 
59324
       "table": "ordinals",
 
59325
       "where": []},
 
59326
      {"op": "insert",
 
59327
       "table": "ordinals",
 
59328
       "row": {"number": 1, "name": "one"}},
 
59329
      {"op": "insert",
 
59330
       "table": "ordinals",
 
59331
       "row": {"number": 1, "name": "still another one"}}]'
 
59332
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59333
at_status=$? at_failed=false
 
59334
$at_check_filter
 
59335
echo stderr:; cat "$at_stderr"
 
59336
echo stdout:; tee stdout <"$at_stdout"
 
59337
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59338
$at_failed && at_fn_log_failure
 
59339
$at_traceon; }
 
59340
 
 
59341
cat stdout >> output
 
59342
{ set +x
 
59343
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"ordinals\",
 
59344
      {\"op\": \"insert\",
 
59345
       \"table\": \"ordinals\",
 
59346
       \"row\": {\"number\": 2, \"name\": \"two\"}}]'"
 
59347
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59348
( $at_check_trace; ovsdb-tool transact db '   ["ordinals",
 
59349
      {"op": "insert",
 
59350
       "table": "ordinals",
 
59351
       "row": {"number": 2, "name": "two"}}]'
 
59352
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59353
at_status=$? at_failed=false
 
59354
$at_check_filter
 
59355
echo stderr:; cat "$at_stderr"
 
59356
echo stdout:; tee stdout <"$at_stdout"
 
59357
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59358
$at_failed && at_fn_log_failure
 
59359
$at_traceon; }
 
59360
 
 
59361
cat stdout >> output
 
59362
{ set +x
 
59363
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"ordinals\",
 
59364
      {\"op\": \"update\",
 
59365
       \"table\": \"ordinals\",
 
59366
       \"where\": [],
 
59367
       \"row\": {\"number\": 3}}]'"
 
59368
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59369
( $at_check_trace; ovsdb-tool transact db '   ["ordinals",
 
59370
      {"op": "update",
 
59371
       "table": "ordinals",
 
59372
       "where": [],
 
59373
       "row": {"number": 3}}]'
 
59374
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59375
at_status=$? at_failed=false
 
59376
$at_check_filter
 
59377
echo stderr:; cat "$at_stderr"
 
59378
echo stdout:; tee stdout <"$at_stdout"
 
59379
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59380
$at_failed && at_fn_log_failure
 
59381
$at_traceon; }
 
59382
 
 
59383
cat stdout >> output
 
59384
{ set +x
 
59385
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"ordinals\",
 
59386
      {\"op\": \"update\",
 
59387
       \"table\": \"ordinals\",
 
59388
       \"where\": [[\"number\", \"==\", 1]],
 
59389
       \"row\": {\"number\": 2, \"name\": \"old two\"}},
 
59390
      {\"op\": \"update\",
 
59391
       \"table\": \"ordinals\",
 
59392
       \"where\": [[\"name\", \"==\", \"two\"]],
 
59393
       \"row\": {\"number\": 1, \"name\": \"old one\"}}]'"
 
59394
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59395
( $at_check_trace; ovsdb-tool transact db '   ["ordinals",
 
59396
      {"op": "update",
 
59397
       "table": "ordinals",
 
59398
       "where": [["number", "==", 1]],
 
59399
       "row": {"number": 2, "name": "old two"}},
 
59400
      {"op": "update",
 
59401
       "table": "ordinals",
 
59402
       "where": [["name", "==", "two"]],
 
59403
       "row": {"number": 1, "name": "old one"}}]'
 
59404
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59405
at_status=$? at_failed=false
 
59406
$at_check_filter
 
59407
echo stderr:; cat "$at_stderr"
 
59408
echo stdout:; tee stdout <"$at_stdout"
 
59409
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59410
$at_failed && at_fn_log_failure
 
59411
$at_traceon; }
 
59412
 
 
59413
cat stdout >> output
 
59414
{ set +x
 
59415
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"ordinals\",
 
59416
      {\"op\": \"mutate\",
 
59417
       \"table\": \"ordinals\",
 
59418
       \"where\": [],
 
59419
       \"mutations\": [[\"number\", \"*=\", 10]]},
 
59420
      {\"op\": \"insert\",
 
59421
       \"table\": \"ordinals\",
 
59422
       \"row\": {\"number\": 1, \"name\": \"new one\"}},
 
59423
      {\"op\": \"insert\",
 
59424
       \"table\": \"ordinals\",
 
59425
       \"row\": {\"number\": 2, \"name\": \"new two\"}},
 
59426
      {\"op\": \"select\",
 
59427
       \"table\": \"ordinals\",
 
59428
       \"where\": [],
 
59429
       \"columns\": [\"number\", \"name\"],
 
59430
       \"sort\": [\"number\"]}]'"
 
59431
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59432
( $at_check_trace; ovsdb-tool transact db '   ["ordinals",
 
59433
      {"op": "mutate",
 
59434
       "table": "ordinals",
 
59435
       "where": [],
 
59436
       "mutations": [["number", "*=", 10]]},
 
59437
      {"op": "insert",
 
59438
       "table": "ordinals",
 
59439
       "row": {"number": 1, "name": "new one"}},
 
59440
      {"op": "insert",
 
59441
       "table": "ordinals",
 
59442
       "row": {"number": 2, "name": "new two"}},
 
59443
      {"op": "select",
 
59444
       "table": "ordinals",
 
59445
       "where": [],
 
59446
       "columns": ["number", "name"],
 
59447
       "sort": ["number"]}]'
 
59448
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59449
at_status=$? at_failed=false
 
59450
$at_check_filter
 
59451
echo stderr:; cat "$at_stderr"
 
59452
echo stdout:; tee stdout <"$at_stdout"
 
59453
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59454
$at_failed && at_fn_log_failure
 
59455
$at_traceon; }
 
59456
 
 
59457
cat stdout >> output
 
59458
 
 
59459
   { set +x
 
59460
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
59461
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
59462
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
59463
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59464
at_status=$? at_failed=false
 
59465
$at_check_filter
 
59466
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
59467
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
59468
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <0>, existed in the database before this transaction and was not modified by the transaction.  Second row, with UUID <1>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
59469
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"count\":1}]
 
59470
[{\"count\":1},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <4>, was inserted by this transaction.  Second row, with UUID <3>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
59471
[{\"uuid\":[\"uuid\",\"<5>\"]}]
 
59472
[{\"count\":2},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (3) for index on column \\\"number\\\".  First row, with UUID <5>, had the following index values before the transaction: 2.  Second row, with UUID <2>, had the following index values before the transaction: 1.\",\"error\":\"constraint violation\"}]
 
59473
[{\"count\":1},{\"count\":1}]
 
59474
[{\"count\":2},{\"uuid\":[\"uuid\",\"<6>\"]},{\"uuid\":[\"uuid\",\"<7>\"]},{\"rows\":[{\"name\":\"new one\",\"number\":1},{\"name\":\"new two\",\"number\":2},{\"name\":\"old one\",\"number\":10},{\"name\":\"old two\",\"number\":20}]}]
 
59475
" | \
 
59476
  $at_diff - "$at_stdout" || at_failed=:
 
59477
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59478
$at_failed && at_fn_log_failure
 
59479
$at_traceon; }
 
59480
 
 
59481
     set +x
 
59482
  $at_times_p && times >"$at_times_file"
 
59483
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
59484
read at_status <"$at_status_file"
 
59485
#AT_STOP_811
 
59486
#AT_START_812
 
59487
at_fn_group_banner 812 'ovsdb-tool.at:30' \
 
59488
  "referential integrity -- simple" "                " 58
 
59489
at_xfail=no
 
59490
(
 
59491
  $as_echo "812. $at_setup_line: testing $at_desc ..."
 
59492
  $at_traceon
 
59493
 
 
59494
 
 
59495
   cat >schema <<'_ATEOF'
 
59496
{"name": "constraints",
 
59497
     "tables": {
 
59498
       "a": {
 
59499
         "columns": {
 
59500
           "a": {"type": "integer"},
 
59501
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
59502
                            "min": 0, "max": "unlimited"}},
 
59503
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
59504
                            "min": 0, "max": "unlimited"}}}},
 
59505
       "b": {
 
59506
         "columns": {
 
59507
           "b": {"type": "integer"},
 
59508
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
59509
                            "min": 0, "max": "unlimited"}},
 
59510
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
59511
                            "min": 0, "max": "unlimited"}},
 
59512
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
59513
       "constrained": {
 
59514
         "columns": {
 
59515
           "positive": {"type": {"key": {"type": "integer",
 
59516
                                         "minInteger": 1}}}},
 
59517
         "maxRows": 1}}}
 
59518
_ATEOF
 
59519
 
 
59520
   touch .db.~lock~
 
59521
   { set +x
 
59522
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
59523
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
59524
( $at_check_trace; ovsdb-tool create db schema
 
59525
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59526
at_status=$? at_failed=false
 
59527
$at_check_filter
 
59528
echo stderr:; cat "$at_stderr"
 
59529
echo stdout:; tee stdout <"$at_stdout"
 
59530
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59531
$at_failed && at_fn_log_failure
 
59532
$at_traceon; }
 
59533
 
 
59534
   { set +x
 
59535
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59536
      {\"op\": \"insert\",
 
59537
       \"table\": \"b\",
 
59538
       \"row\": {\"b\": 1},
 
59539
       \"uuid-name\": \"brow\"},
 
59540
      {\"op\": \"insert\",
 
59541
       \"table\": \"a\",
 
59542
       \"row\": {\"a\": 0,
 
59543
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}},
 
59544
      {\"op\": \"insert\",
 
59545
       \"table\": \"a\",
 
59546
       \"row\": {\"a\": 1,
 
59547
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}},
 
59548
      {\"op\": \"insert\",
 
59549
       \"table\": \"a\",
 
59550
       \"row\": {\"a\": 2,
 
59551
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}}]'"
 
59552
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59553
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59554
      {"op": "insert",
 
59555
       "table": "b",
 
59556
       "row": {"b": 1},
 
59557
       "uuid-name": "brow"},
 
59558
      {"op": "insert",
 
59559
       "table": "a",
 
59560
       "row": {"a": 0,
 
59561
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
59562
      {"op": "insert",
 
59563
       "table": "a",
 
59564
       "row": {"a": 1,
 
59565
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
59566
      {"op": "insert",
 
59567
       "table": "a",
 
59568
       "row": {"a": 2,
 
59569
               "a2b": ["set", [["named-uuid", "brow"]]]}}]'
 
59570
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59571
at_status=$? at_failed=false
 
59572
$at_check_filter
 
59573
echo stderr:; cat "$at_stderr"
 
59574
echo stdout:; tee stdout <"$at_stdout"
 
59575
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59576
$at_failed && at_fn_log_failure
 
59577
$at_traceon; }
 
59578
 
 
59579
cat stdout >> output
 
59580
{ set +x
 
59581
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59582
      {\"op\": \"delete\",
 
59583
       \"table\": \"b\",
 
59584
       \"where\": []}]'"
 
59585
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59586
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59587
      {"op": "delete",
 
59588
       "table": "b",
 
59589
       "where": []}]'
 
59590
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59591
at_status=$? at_failed=false
 
59592
$at_check_filter
 
59593
echo stderr:; cat "$at_stderr"
 
59594
echo stdout:; tee stdout <"$at_stdout"
 
59595
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59596
$at_failed && at_fn_log_failure
 
59597
$at_traceon; }
 
59598
 
 
59599
cat stdout >> output
 
59600
{ set +x
 
59601
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"constraints\",
 
59602
      {\"op\": \"mutate\",
 
59603
       \"table\": \"b\",
 
59604
       \"where\": [],
 
59605
       \"mutations\": [[\"x\", \"delete\", 0]]}]'"
 
59606
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59607
( $at_check_trace; ovsdb-tool transact db '   ["constraints",
 
59608
      {"op": "mutate",
 
59609
       "table": "b",
 
59610
       "where": [],
 
59611
       "mutations": [["x", "delete", 0]]}]'
 
59612
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59613
at_status=$? at_failed=false
 
59614
$at_check_filter
 
59615
echo stderr:; cat "$at_stderr"
 
59616
echo stdout:; tee stdout <"$at_stdout"
 
59617
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59618
$at_failed && at_fn_log_failure
 
59619
$at_traceon; }
 
59620
 
 
59621
cat stdout >> output
 
59622
{ set +x
 
59623
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59624
      {\"op\": \"delete\",
 
59625
       \"table\": \"a\",
 
59626
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
59627
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59628
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59629
      {"op": "delete",
 
59630
       "table": "a",
 
59631
       "where": [["a", "==", 0]]}]'
 
59632
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59633
at_status=$? at_failed=false
 
59634
$at_check_filter
 
59635
echo stderr:; cat "$at_stderr"
 
59636
echo stdout:; tee stdout <"$at_stdout"
 
59637
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59638
$at_failed && at_fn_log_failure
 
59639
$at_traceon; }
 
59640
 
 
59641
cat stdout >> output
 
59642
{ set +x
 
59643
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59644
      {\"op\": \"delete\",
 
59645
       \"table\": \"b\",
 
59646
       \"where\": []}]'"
 
59647
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59648
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59649
      {"op": "delete",
 
59650
       "table": "b",
 
59651
       "where": []}]'
 
59652
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59653
at_status=$? at_failed=false
 
59654
$at_check_filter
 
59655
echo stderr:; cat "$at_stderr"
 
59656
echo stdout:; tee stdout <"$at_stdout"
 
59657
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59658
$at_failed && at_fn_log_failure
 
59659
$at_traceon; }
 
59660
 
 
59661
cat stdout >> output
 
59662
{ set +x
 
59663
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59664
      {\"op\": \"delete\",
 
59665
       \"table\": \"a\",
 
59666
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
59667
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59668
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59669
      {"op": "delete",
 
59670
       "table": "a",
 
59671
       "where": [["a", "==", 1]]}]'
 
59672
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59673
at_status=$? at_failed=false
 
59674
$at_check_filter
 
59675
echo stderr:; cat "$at_stderr"
 
59676
echo stdout:; tee stdout <"$at_stdout"
 
59677
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59678
$at_failed && at_fn_log_failure
 
59679
$at_traceon; }
 
59680
 
 
59681
cat stdout >> output
 
59682
{ set +x
 
59683
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59684
      {\"op\": \"delete\",
 
59685
       \"table\": \"b\",
 
59686
       \"where\": []}]'"
 
59687
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59688
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59689
      {"op": "delete",
 
59690
       "table": "b",
 
59691
       "where": []}]'
 
59692
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59693
at_status=$? at_failed=false
 
59694
$at_check_filter
 
59695
echo stderr:; cat "$at_stderr"
 
59696
echo stdout:; tee stdout <"$at_stdout"
 
59697
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59698
$at_failed && at_fn_log_failure
 
59699
$at_traceon; }
 
59700
 
 
59701
cat stdout >> output
 
59702
{ set +x
 
59703
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59704
      {\"op\": \"delete\",
 
59705
       \"table\": \"a\",
 
59706
       \"where\": [[\"a\", \"==\", 2]]}]'"
 
59707
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59708
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59709
      {"op": "delete",
 
59710
       "table": "a",
 
59711
       "where": [["a", "==", 2]]}]'
 
59712
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59713
at_status=$? at_failed=false
 
59714
$at_check_filter
 
59715
echo stderr:; cat "$at_stderr"
 
59716
echo stdout:; tee stdout <"$at_stdout"
 
59717
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59718
$at_failed && at_fn_log_failure
 
59719
$at_traceon; }
 
59720
 
 
59721
cat stdout >> output
 
59722
{ set +x
 
59723
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59724
      {\"op\": \"delete\",
 
59725
       \"table\": \"b\",
 
59726
       \"where\": []}]'"
 
59727
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59728
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59729
      {"op": "delete",
 
59730
       "table": "b",
 
59731
       "where": []}]'
 
59732
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59733
at_status=$? at_failed=false
 
59734
$at_check_filter
 
59735
echo stderr:; cat "$at_stderr"
 
59736
echo stdout:; tee stdout <"$at_stdout"
 
59737
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59738
$at_failed && at_fn_log_failure
 
59739
$at_traceon; }
 
59740
 
 
59741
cat stdout >> output
 
59742
 
 
59743
   { set +x
 
59744
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
59745
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
59746
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
59747
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59748
at_status=$? at_failed=false
 
59749
$at_check_filter
 
59750
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
59751
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]
 
59752
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 3 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
59753
[{\"details\":\"Attempted to store 0 elements in set of 1 to 2 integers.\",\"error\":\"constraint violation\"}]
 
59754
[{\"count\":1}]
 
59755
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 2 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
59756
[{\"count\":1}]
 
59757
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
59758
[{\"count\":1}]
 
59759
[{\"count\":1}]
 
59760
" | \
 
59761
  $at_diff - "$at_stdout" || at_failed=:
 
59762
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59763
$at_failed && at_fn_log_failure
 
59764
$at_traceon; }
 
59765
 
 
59766
     set +x
 
59767
  $at_times_p && times >"$at_times_file"
 
59768
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
59769
read at_status <"$at_status_file"
 
59770
#AT_STOP_812
 
59771
#AT_START_813
 
59772
at_fn_group_banner 813 'ovsdb-tool.at:30' \
 
59773
  "referential integrity -- mutual references" "     " 58
 
59774
at_xfail=no
 
59775
(
 
59776
  $as_echo "813. $at_setup_line: testing $at_desc ..."
 
59777
  $at_traceon
 
59778
 
 
59779
 
 
59780
   cat >schema <<'_ATEOF'
 
59781
{"name": "constraints",
 
59782
     "tables": {
 
59783
       "a": {
 
59784
         "columns": {
 
59785
           "a": {"type": "integer"},
 
59786
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
59787
                            "min": 0, "max": "unlimited"}},
 
59788
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
59789
                            "min": 0, "max": "unlimited"}}}},
 
59790
       "b": {
 
59791
         "columns": {
 
59792
           "b": {"type": "integer"},
 
59793
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
59794
                            "min": 0, "max": "unlimited"}},
 
59795
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
59796
                            "min": 0, "max": "unlimited"}},
 
59797
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
59798
       "constrained": {
 
59799
         "columns": {
 
59800
           "positive": {"type": {"key": {"type": "integer",
 
59801
                                         "minInteger": 1}}}},
 
59802
         "maxRows": 1}}}
 
59803
_ATEOF
 
59804
 
 
59805
   touch .db.~lock~
 
59806
   { set +x
 
59807
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
59808
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
59809
( $at_check_trace; ovsdb-tool create db schema
 
59810
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59811
at_status=$? at_failed=false
 
59812
$at_check_filter
 
59813
echo stderr:; cat "$at_stderr"
 
59814
echo stdout:; tee stdout <"$at_stdout"
 
59815
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59816
$at_failed && at_fn_log_failure
 
59817
$at_traceon; }
 
59818
 
 
59819
   { set +x
 
59820
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59821
      {\"op\": \"insert\",
 
59822
       \"table\": \"a\",
 
59823
       \"row\": {\"a\": 0,
 
59824
               \"a2b\": [\"set\", [[\"named-uuid\", \"row2\"]]],
 
59825
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"]]]},
 
59826
       \"uuid-name\": \"row1\"},
 
59827
      {\"op\": \"insert\",
 
59828
       \"table\": \"b\",
 
59829
       \"row\": {\"b\": 1,
 
59830
               \"b2b\": [\"set\", [[\"named-uuid\", \"row2\"]]],
 
59831
               \"b2a\": [\"set\", [[\"named-uuid\", \"row1\"]]]},
 
59832
       \"uuid-name\": \"row2\"}]'"
 
59833
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59834
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59835
      {"op": "insert",
 
59836
       "table": "a",
 
59837
       "row": {"a": 0,
 
59838
               "a2b": ["set", [["named-uuid", "row2"]]],
 
59839
               "a2a": ["set", [["named-uuid", "row1"]]]},
 
59840
       "uuid-name": "row1"},
 
59841
      {"op": "insert",
 
59842
       "table": "b",
 
59843
       "row": {"b": 1,
 
59844
               "b2b": ["set", [["named-uuid", "row2"]]],
 
59845
               "b2a": ["set", [["named-uuid", "row1"]]]},
 
59846
       "uuid-name": "row2"}]'
 
59847
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59848
at_status=$? at_failed=false
 
59849
$at_check_filter
 
59850
echo stderr:; cat "$at_stderr"
 
59851
echo stdout:; tee stdout <"$at_stdout"
 
59852
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59853
$at_failed && at_fn_log_failure
 
59854
$at_traceon; }
 
59855
 
 
59856
cat stdout >> output
 
59857
{ set +x
 
59858
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59859
      {\"op\": \"insert\",
 
59860
       \"table\": \"a\",
 
59861
       \"row\": {\"a2b\": [\"set\", [[\"uuid\", \"b516b960-5b19-4fc2-bb82-fe1cbd6d0241\"]]]}}]'"
 
59862
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59863
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59864
      {"op": "insert",
 
59865
       "table": "a",
 
59866
       "row": {"a2b": ["set", [["uuid", "b516b960-5b19-4fc2-bb82-fe1cbd6d0241"]]]}}]'
 
59867
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59868
at_status=$? at_failed=false
 
59869
$at_check_filter
 
59870
echo stderr:; cat "$at_stderr"
 
59871
echo stdout:; tee stdout <"$at_stdout"
 
59872
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59873
$at_failed && at_fn_log_failure
 
59874
$at_traceon; }
 
59875
 
 
59876
cat stdout >> output
 
59877
{ set +x
 
59878
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59879
      {\"op\": \"delete\",
 
59880
       \"table\": \"a\",
 
59881
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
59882
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59883
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59884
      {"op": "delete",
 
59885
       "table": "a",
 
59886
       "where": [["a", "==", 0]]}]'
 
59887
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59888
at_status=$? at_failed=false
 
59889
$at_check_filter
 
59890
echo stderr:; cat "$at_stderr"
 
59891
echo stdout:; tee stdout <"$at_stdout"
 
59892
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59893
$at_failed && at_fn_log_failure
 
59894
$at_traceon; }
 
59895
 
 
59896
cat stdout >> output
 
59897
{ set +x
 
59898
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59899
      {\"op\": \"delete\",
 
59900
       \"table\": \"b\",
 
59901
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
59902
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59903
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59904
      {"op": "delete",
 
59905
       "table": "b",
 
59906
       "where": [["b", "==", 1]]}]'
 
59907
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59908
at_status=$? at_failed=false
 
59909
$at_check_filter
 
59910
echo stderr:; cat "$at_stderr"
 
59911
echo stdout:; tee stdout <"$at_stdout"
 
59912
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59913
$at_failed && at_fn_log_failure
 
59914
$at_traceon; }
 
59915
 
 
59916
cat stdout >> output
 
59917
{ set +x
 
59918
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"constraints\",
 
59919
      {\"op\": \"delete\",
 
59920
       \"table\": \"a\",
 
59921
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
59922
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59923
( $at_check_trace; ovsdb-tool transact db '   ["constraints",
 
59924
      {"op": "delete",
 
59925
       "table": "a",
 
59926
       "where": [["a", "==", 0]]}]'
 
59927
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59928
at_status=$? at_failed=false
 
59929
$at_check_filter
 
59930
echo stderr:; cat "$at_stderr"
 
59931
echo stdout:; tee stdout <"$at_stdout"
 
59932
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59933
$at_failed && at_fn_log_failure
 
59934
$at_traceon; }
 
59935
 
 
59936
cat stdout >> output
 
59937
{ set +x
 
59938
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59939
      {\"op\": \"delete\",
 
59940
       \"table\": \"b\",
 
59941
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
59942
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59943
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59944
      {"op": "delete",
 
59945
       "table": "b",
 
59946
       "where": [["b", "==", 1]]}]'
 
59947
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59948
at_status=$? at_failed=false
 
59949
$at_check_filter
 
59950
echo stderr:; cat "$at_stderr"
 
59951
echo stdout:; tee stdout <"$at_stdout"
 
59952
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59953
$at_failed && at_fn_log_failure
 
59954
$at_traceon; }
 
59955
 
 
59956
cat stdout >> output
 
59957
{ set +x
 
59958
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"constraints\",
 
59959
      {\"op\": \"delete\",
 
59960
       \"table\": \"a\",
 
59961
       \"where\": [[\"a\", \"==\", 0]]},
 
59962
      {\"op\": \"delete\",
 
59963
       \"table\": \"b\",
 
59964
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
59965
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
59966
( $at_check_trace; ovsdb-tool transact db '["constraints",
 
59967
      {"op": "delete",
 
59968
       "table": "a",
 
59969
       "where": [["a", "==", 0]]},
 
59970
      {"op": "delete",
 
59971
       "table": "b",
 
59972
       "where": [["b", "==", 1]]}]'
 
59973
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59974
at_status=$? at_failed=false
 
59975
$at_check_filter
 
59976
echo stderr:; cat "$at_stderr"
 
59977
echo stdout:; tee stdout <"$at_stdout"
 
59978
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
59979
$at_failed && at_fn_log_failure
 
59980
$at_traceon; }
 
59981
 
 
59982
cat stdout >> output
 
59983
 
 
59984
   { set +x
 
59985
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
59986
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
59987
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
59988
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
59989
at_status=$? at_failed=false
 
59990
$at_check_filter
 
59991
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
59992
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]
 
59993
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"details\":\"Table a column a2b row <2> references nonexistent row <3> in table b.\",\"error\":\"referential integrity violation\"}]
 
59994
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
59995
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
59996
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
59997
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
59998
[{\"count\":1},{\"count\":1}]
 
59999
" | \
 
60000
  $at_diff - "$at_stdout" || at_failed=:
 
60001
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60002
$at_failed && at_fn_log_failure
 
60003
$at_traceon; }
 
60004
 
 
60005
     set +x
 
60006
  $at_times_p && times >"$at_times_file"
 
60007
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
60008
read at_status <"$at_status_file"
 
60009
#AT_STOP_813
 
60010
#AT_START_814
 
60011
at_fn_group_banner 814 'ovsdb-tool.at:30' \
 
60012
  "weak references" "                                " 58
 
60013
at_xfail=no
 
60014
(
 
60015
  $as_echo "814. $at_setup_line: testing $at_desc ..."
 
60016
  $at_traceon
 
60017
 
 
60018
 
 
60019
   cat >schema <<'_ATEOF'
 
60020
{"name": "weak",
 
60021
     "tables": {
 
60022
       "a": {
 
60023
         "columns": {
 
60024
           "a": {"type": "integer"},
 
60025
           "a2a": {"type": {"key": {"type": "uuid",
 
60026
                                    "refTable": "a",
 
60027
                                    "refType": "weak"},
 
60028
                            "min": 0, "max": "unlimited"}},
 
60029
           "a2a1": {"type": {"key": {"type": "uuid",
 
60030
                                     "refTable": "a",
 
60031
                                     "refType": "weak"}}},
 
60032
           "a2b": {"type": {"key": {"type": "uuid",
 
60033
                                    "refTable": "b",
 
60034
                                    "refType": "weak"}}}}},
 
60035
       "b": {
 
60036
         "columns": {
 
60037
           "b": {"type": "integer"},
 
60038
           "b2a": {"type": {"key": {"type": "uuid",
 
60039
                                    "refTable": "a",
 
60040
                                    "refType": "weak"},
 
60041
                            "min": 0, "max": "unlimited"}}}}}}
 
60042
_ATEOF
 
60043
 
 
60044
   touch .db.~lock~
 
60045
   { set +x
 
60046
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
60047
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
60048
( $at_check_trace; ovsdb-tool create db schema
 
60049
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60050
at_status=$? at_failed=false
 
60051
$at_check_filter
 
60052
echo stderr:; cat "$at_stderr"
 
60053
echo stdout:; tee stdout <"$at_stdout"
 
60054
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60055
$at_failed && at_fn_log_failure
 
60056
$at_traceon; }
 
60057
 
 
60058
   { set +x
 
60059
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"weak\",
 
60060
      {\"op\": \"insert\",
 
60061
       \"table\": \"a\",
 
60062
       \"row\": {\"a\": 0,
 
60063
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
60064
                               [\"named-uuid\", \"row2\"],
 
60065
                               [\"uuid\", \"0e767b36-6822-4044-8307-d58467e04669\"]]],
 
60066
               \"a2a1\": [\"named-uuid\", \"row1\"],
 
60067
               \"a2b\": [\"named-uuid\", \"row3\"]},
 
60068
       \"uuid-name\": \"row1\"},
 
60069
      {\"op\": \"insert\",
 
60070
       \"table\": \"a\",
 
60071
       \"row\": {\"a\": 1,
 
60072
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
60073
                               [\"named-uuid\", \"row2\"]]],
 
60074
               \"a2a1\": [\"named-uuid\", \"row2\"],
 
60075
               \"a2b\": [\"named-uuid\", \"row3\"]},
 
60076
       \"uuid-name\": \"row2\"},
 
60077
      {\"op\": \"insert\",
 
60078
       \"table\": \"a\",
 
60079
       \"row\": {\"a\": 2,
 
60080
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
60081
                               [\"named-uuid\", \"row2\"]]],
 
60082
               \"a2a1\": [\"named-uuid\", \"row2\"],
 
60083
               \"a2b\": [\"named-uuid\", \"row4\"]}},
 
60084
      {\"op\": \"insert\",
 
60085
       \"table\": \"b\",
 
60086
       \"row\": {\"b\": 2,
 
60087
               \"b2a\": [\"named-uuid\", \"row1\"]},
 
60088
       \"uuid-name\": \"row3\"},
 
60089
      {\"op\": \"insert\",
 
60090
       \"table\": \"b\",
 
60091
       \"row\": {\"b\": 3,
 
60092
               \"b2a\": [\"named-uuid\", \"row2\"]},
 
60093
       \"uuid-name\": \"row4\"}]'"
 
60094
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60095
( $at_check_trace; ovsdb-tool transact db '["weak",
 
60096
      {"op": "insert",
 
60097
       "table": "a",
 
60098
       "row": {"a": 0,
 
60099
               "a2a": ["set", [["named-uuid", "row1"],
 
60100
                               ["named-uuid", "row2"],
 
60101
                               ["uuid", "0e767b36-6822-4044-8307-d58467e04669"]]],
 
60102
               "a2a1": ["named-uuid", "row1"],
 
60103
               "a2b": ["named-uuid", "row3"]},
 
60104
       "uuid-name": "row1"},
 
60105
      {"op": "insert",
 
60106
       "table": "a",
 
60107
       "row": {"a": 1,
 
60108
               "a2a": ["set", [["named-uuid", "row1"],
 
60109
                               ["named-uuid", "row2"]]],
 
60110
               "a2a1": ["named-uuid", "row2"],
 
60111
               "a2b": ["named-uuid", "row3"]},
 
60112
       "uuid-name": "row2"},
 
60113
      {"op": "insert",
 
60114
       "table": "a",
 
60115
       "row": {"a": 2,
 
60116
               "a2a": ["set", [["named-uuid", "row1"],
 
60117
                               ["named-uuid", "row2"]]],
 
60118
               "a2a1": ["named-uuid", "row2"],
 
60119
               "a2b": ["named-uuid", "row4"]}},
 
60120
      {"op": "insert",
 
60121
       "table": "b",
 
60122
       "row": {"b": 2,
 
60123
               "b2a": ["named-uuid", "row1"]},
 
60124
       "uuid-name": "row3"},
 
60125
      {"op": "insert",
 
60126
       "table": "b",
 
60127
       "row": {"b": 3,
 
60128
               "b2a": ["named-uuid", "row2"]},
 
60129
       "uuid-name": "row4"}]'
 
60130
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60131
at_status=$? at_failed=false
 
60132
$at_check_filter
 
60133
echo stderr:; cat "$at_stderr"
 
60134
echo stdout:; tee stdout <"$at_stdout"
 
60135
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60136
$at_failed && at_fn_log_failure
 
60137
$at_traceon; }
 
60138
 
 
60139
cat stdout >> output
 
60140
{ set +x
 
60141
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '      [\"weak\",
 
60142
      {\"op\": \"select\",
 
60143
       \"table\": \"a\",
 
60144
       \"where\": [],
 
60145
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
60146
       \"sort\": [\"a\"]}]'"
 
60147
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60148
( $at_check_trace; ovsdb-tool transact db '      ["weak",
 
60149
      {"op": "select",
 
60150
       "table": "a",
 
60151
       "where": [],
 
60152
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
60153
       "sort": ["a"]}]'
 
60154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60155
at_status=$? at_failed=false
 
60156
$at_check_filter
 
60157
echo stderr:; cat "$at_stderr"
 
60158
echo stdout:; tee stdout <"$at_stdout"
 
60159
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60160
$at_failed && at_fn_log_failure
 
60161
$at_traceon; }
 
60162
 
 
60163
cat stdout >> output
 
60164
{ set +x
 
60165
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"weak\",
 
60166
      {\"op\": \"select\",
 
60167
       \"table\": \"b\",
 
60168
       \"where\": [],
 
60169
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
60170
       \"sort\": [\"b\"]}]'"
 
60171
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60172
( $at_check_trace; ovsdb-tool transact db '["weak",
 
60173
      {"op": "select",
 
60174
       "table": "b",
 
60175
       "where": [],
 
60176
       "columns": ["_uuid", "b", "b2a"],
 
60177
       "sort": ["b"]}]'
 
60178
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60179
at_status=$? at_failed=false
 
60180
$at_check_filter
 
60181
echo stderr:; cat "$at_stderr"
 
60182
echo stdout:; tee stdout <"$at_stdout"
 
60183
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60184
$at_failed && at_fn_log_failure
 
60185
$at_traceon; }
 
60186
 
 
60187
cat stdout >> output
 
60188
{ set +x
 
60189
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '      [\"weak\",
 
60190
      {\"op\": \"insert\",
 
60191
       \"table\": \"a\",
 
60192
       \"row\": {\"a2a1\": [\"named-uuid\", \"me\"]},
 
60193
       \"uuid-name\": \"me\"}]'"
 
60194
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60195
( $at_check_trace; ovsdb-tool transact db '      ["weak",
 
60196
      {"op": "insert",
 
60197
       "table": "a",
 
60198
       "row": {"a2a1": ["named-uuid", "me"]},
 
60199
       "uuid-name": "me"}]'
 
60200
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60201
at_status=$? at_failed=false
 
60202
$at_check_filter
 
60203
echo stderr:; cat "$at_stderr"
 
60204
echo stdout:; tee stdout <"$at_stdout"
 
60205
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60206
$at_failed && at_fn_log_failure
 
60207
$at_traceon; }
 
60208
 
 
60209
cat stdout >> output
 
60210
{ set +x
 
60211
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '      [\"weak\",
 
60212
      {\"op\": \"delete\",
 
60213
       \"table\": \"b\",
 
60214
       \"where\": [[\"b\", \"==\", 3]]}]'"
 
60215
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60216
( $at_check_trace; ovsdb-tool transact db '      ["weak",
 
60217
      {"op": "delete",
 
60218
       "table": "b",
 
60219
       "where": [["b", "==", 3]]}]'
 
60220
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60221
at_status=$? at_failed=false
 
60222
$at_check_filter
 
60223
echo stderr:; cat "$at_stderr"
 
60224
echo stdout:; tee stdout <"$at_stdout"
 
60225
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60226
$at_failed && at_fn_log_failure
 
60227
$at_traceon; }
 
60228
 
 
60229
cat stdout >> output
 
60230
{ set +x
 
60231
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '      [\"weak\",
 
60232
      {\"op\": \"delete\",
 
60233
       \"table\": \"a\",
 
60234
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
60235
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60236
( $at_check_trace; ovsdb-tool transact db '      ["weak",
 
60237
      {"op": "delete",
 
60238
       "table": "a",
 
60239
       "where": [["a", "==", 1]]}]'
 
60240
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60241
at_status=$? at_failed=false
 
60242
$at_check_filter
 
60243
echo stderr:; cat "$at_stderr"
 
60244
echo stdout:; tee stdout <"$at_stdout"
 
60245
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60246
$at_failed && at_fn_log_failure
 
60247
$at_traceon; }
 
60248
 
 
60249
cat stdout >> output
 
60250
{ set +x
 
60251
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '      [\"weak\",
 
60252
      {\"op\": \"delete\",
 
60253
       \"table\": \"a\",
 
60254
       \"where\": [[\"a\", \"==\", 2]]}]'"
 
60255
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60256
( $at_check_trace; ovsdb-tool transact db '      ["weak",
 
60257
      {"op": "delete",
 
60258
       "table": "a",
 
60259
       "where": [["a", "==", 2]]}]'
 
60260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60261
at_status=$? at_failed=false
 
60262
$at_check_filter
 
60263
echo stderr:; cat "$at_stderr"
 
60264
echo stdout:; tee stdout <"$at_stdout"
 
60265
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60266
$at_failed && at_fn_log_failure
 
60267
$at_traceon; }
 
60268
 
 
60269
cat stdout >> output
 
60270
{ set +x
 
60271
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"weak\",
 
60272
      {\"op\": \"select\",
 
60273
       \"table\": \"a\",
 
60274
       \"where\": [],
 
60275
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
60276
       \"sort\": [\"a\"]}]'"
 
60277
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60278
( $at_check_trace; ovsdb-tool transact db '["weak",
 
60279
      {"op": "select",
 
60280
       "table": "a",
 
60281
       "where": [],
 
60282
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
60283
       "sort": ["a"]}]'
 
60284
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60285
at_status=$? at_failed=false
 
60286
$at_check_filter
 
60287
echo stderr:; cat "$at_stderr"
 
60288
echo stdout:; tee stdout <"$at_stdout"
 
60289
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60290
$at_failed && at_fn_log_failure
 
60291
$at_traceon; }
 
60292
 
 
60293
cat stdout >> output
 
60294
{ set +x
 
60295
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"weak\",
 
60296
      {\"op\": \"select\",
 
60297
       \"table\": \"b\",
 
60298
       \"where\": [],
 
60299
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
60300
       \"sort\": [\"b\"]}]'"
 
60301
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60302
( $at_check_trace; ovsdb-tool transact db '["weak",
 
60303
      {"op": "select",
 
60304
       "table": "b",
 
60305
       "where": [],
 
60306
       "columns": ["_uuid", "b", "b2a"],
 
60307
       "sort": ["b"]}]'
 
60308
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60309
at_status=$? at_failed=false
 
60310
$at_check_filter
 
60311
echo stderr:; cat "$at_stderr"
 
60312
echo stdout:; tee stdout <"$at_stdout"
 
60313
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60314
$at_failed && at_fn_log_failure
 
60315
$at_traceon; }
 
60316
 
 
60317
cat stdout >> output
 
60318
{ set +x
 
60319
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"weak\",
 
60320
      {\"op\": \"delete\",
 
60321
       \"table\": \"a\",
 
60322
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
60323
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60324
( $at_check_trace; ovsdb-tool transact db '   ["weak",
 
60325
      {"op": "delete",
 
60326
       "table": "a",
 
60327
       "where": [["a", "==", 0]]}]'
 
60328
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60329
at_status=$? at_failed=false
 
60330
$at_check_filter
 
60331
echo stderr:; cat "$at_stderr"
 
60332
echo stdout:; tee stdout <"$at_stdout"
 
60333
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60334
$at_failed && at_fn_log_failure
 
60335
$at_traceon; }
 
60336
 
 
60337
cat stdout >> output
 
60338
{ set +x
 
60339
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"weak\",
 
60340
      {\"op\": \"select\",
 
60341
       \"table\": \"a\",
 
60342
       \"where\": [],
 
60343
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
60344
       \"sort\": [\"a\"]}]'"
 
60345
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60346
( $at_check_trace; ovsdb-tool transact db '["weak",
 
60347
      {"op": "select",
 
60348
       "table": "a",
 
60349
       "where": [],
 
60350
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
60351
       "sort": ["a"]}]'
 
60352
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60353
at_status=$? at_failed=false
 
60354
$at_check_filter
 
60355
echo stderr:; cat "$at_stderr"
 
60356
echo stdout:; tee stdout <"$at_stdout"
 
60357
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60358
$at_failed && at_fn_log_failure
 
60359
$at_traceon; }
 
60360
 
 
60361
cat stdout >> output
 
60362
{ set +x
 
60363
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"weak\",
 
60364
      {\"op\": \"select\",
 
60365
       \"table\": \"b\",
 
60366
       \"where\": [],
 
60367
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
60368
       \"sort\": [\"b\"]}]'"
 
60369
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60370
( $at_check_trace; ovsdb-tool transact db '["weak",
 
60371
      {"op": "select",
 
60372
       "table": "b",
 
60373
       "where": [],
 
60374
       "columns": ["_uuid", "b", "b2a"],
 
60375
       "sort": ["b"]}]'
 
60376
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60377
at_status=$? at_failed=false
 
60378
$at_check_filter
 
60379
echo stderr:; cat "$at_stderr"
 
60380
echo stdout:; tee stdout <"$at_stdout"
 
60381
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60382
$at_failed && at_fn_log_failure
 
60383
$at_traceon; }
 
60384
 
 
60385
cat stdout >> output
 
60386
{ set +x
 
60387
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"weak\",
 
60388
      {\"op\": \"delete\",
 
60389
       \"table\": \"a\",
 
60390
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
60391
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60392
( $at_check_trace; ovsdb-tool transact db '   ["weak",
 
60393
      {"op": "delete",
 
60394
       "table": "a",
 
60395
       "where": [["a", "==", 1]]}]'
 
60396
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60397
at_status=$? at_failed=false
 
60398
$at_check_filter
 
60399
echo stderr:; cat "$at_stderr"
 
60400
echo stdout:; tee stdout <"$at_stdout"
 
60401
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60402
$at_failed && at_fn_log_failure
 
60403
$at_traceon; }
 
60404
 
 
60405
cat stdout >> output
 
60406
{ set +x
 
60407
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"weak\",
 
60408
      {\"op\": \"select\",
 
60409
       \"table\": \"a\",
 
60410
       \"where\": [],
 
60411
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
60412
       \"sort\": [\"a\"]}]'"
 
60413
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60414
( $at_check_trace; ovsdb-tool transact db '["weak",
 
60415
      {"op": "select",
 
60416
       "table": "a",
 
60417
       "where": [],
 
60418
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
60419
       "sort": ["a"]}]'
 
60420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60421
at_status=$? at_failed=false
 
60422
$at_check_filter
 
60423
echo stderr:; cat "$at_stderr"
 
60424
echo stdout:; tee stdout <"$at_stdout"
 
60425
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60426
$at_failed && at_fn_log_failure
 
60427
$at_traceon; }
 
60428
 
 
60429
cat stdout >> output
 
60430
{ set +x
 
60431
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"weak\",
 
60432
      {\"op\": \"select\",
 
60433
       \"table\": \"b\",
 
60434
       \"where\": [],
 
60435
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
60436
       \"sort\": [\"b\"]}]'"
 
60437
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60438
( $at_check_trace; ovsdb-tool transact db '["weak",
 
60439
      {"op": "select",
 
60440
       "table": "b",
 
60441
       "where": [],
 
60442
       "columns": ["_uuid", "b", "b2a"],
 
60443
       "sort": ["b"]}]'
 
60444
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60445
at_status=$? at_failed=false
 
60446
$at_check_filter
 
60447
echo stderr:; cat "$at_stderr"
 
60448
echo stdout:; tee stdout <"$at_stdout"
 
60449
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60450
$at_failed && at_fn_log_failure
 
60451
$at_traceon; }
 
60452
 
 
60453
cat stdout >> output
 
60454
 
 
60455
   { set +x
 
60456
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
60457
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
60458
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
60459
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60460
at_status=$? at_failed=false
 
60461
$at_check_filter
 
60462
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
60463
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
60464
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<2>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<4>\"]}]}]
 
60465
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
60466
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"details\":\"Weak reference column \\\"a2b\\\" in \\\"a\\\" row <5> (inserted within this transaction) contained all-zeros UUID (probably as the default value for this column) but deleting this value caused a constraint volation because this column is not allowed to be empty.\",\"error\":\"constraint violation\"}]
 
60467
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2b\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
60468
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2a1\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
60469
[{\"count\":1}]
 
60470
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
60471
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
60472
[{\"count\":1}]
 
60473
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"uuid\",\"<1>\"],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
60474
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
60475
[{\"count\":1}]
 
60476
[{\"rows\":[]}]
 
60477
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"set\",[]]}]}]
 
60478
" | \
 
60479
  $at_diff - "$at_stdout" || at_failed=:
 
60480
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60481
$at_failed && at_fn_log_failure
 
60482
$at_traceon; }
 
60483
 
 
60484
     set +x
 
60485
  $at_times_p && times >"$at_times_file"
 
60486
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
60487
read at_status <"$at_status_file"
 
60488
#AT_STOP_814
 
60489
#AT_START_815
 
60490
at_fn_group_banner 815 'ovsdb-tool.at:30' \
 
60491
  "garbage collection" "                             " 58
 
60492
at_xfail=no
 
60493
(
 
60494
  $as_echo "815. $at_setup_line: testing $at_desc ..."
 
60495
  $at_traceon
 
60496
 
 
60497
 
 
60498
   cat >schema <<'_ATEOF'
 
60499
{"name": "gc",
 
60500
     "tables": {
 
60501
       "root": {
 
60502
         "columns": {
 
60503
           "a": {"type": {"key": {"type": "uuid",
 
60504
                                  "refTable": "a"},
 
60505
                            "min": 0, "max": "unlimited"}}},
 
60506
         "isRoot": true},
 
60507
       "a": {
 
60508
         "columns": {
 
60509
           "a": {"type": "integer"},
 
60510
           "a2a": {"type": {"key": {"type": "uuid",
 
60511
                                    "refTable": "a"},
 
60512
                            "min": 0, "max": "unlimited"}},
 
60513
           "a2b": {"type": {"key": {"type": "uuid",
 
60514
                                    "refTable": "b"},
 
60515
                            "min": 0, "max": "unlimited"}},
 
60516
           "wa2a": {"type": {"key": {"type": "uuid",
 
60517
                                     "refTable": "a",
 
60518
                                     "refType": "weak"},
 
60519
                             "min": 0, "max": "unlimited"}},
 
60520
           "wa2b": {"type": {"key": {"type": "uuid",
 
60521
                                    "refTable": "b",
 
60522
                                    "refType": "weak"},
 
60523
                             "min": 0, "max": "unlimited"}}}},
 
60524
       "b": {
 
60525
         "columns": {
 
60526
           "b": {"type": "integer"},
 
60527
           "b2a": {"type": {"key": {"type": "uuid",
 
60528
                                    "refTable": "a"},
 
60529
                            "min": 0, "max": "unlimited"}},
 
60530
           "wb2a": {"type": {"key": {"type": "uuid",
 
60531
                                     "refTable": "a",
 
60532
                                     "refType": "weak"},
 
60533
                             "min": 0, "max": "unlimited"}}},
 
60534
         "isRoot": false}}}
 
60535
_ATEOF
 
60536
 
 
60537
   touch .db.~lock~
 
60538
   { set +x
 
60539
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool create db schema"
 
60540
at_fn_check_prepare_trace "ovsdb-tool.at:30"
 
60541
( $at_check_trace; ovsdb-tool create db schema
 
60542
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60543
at_status=$? at_failed=false
 
60544
$at_check_filter
 
60545
echo stderr:; cat "$at_stderr"
 
60546
echo stdout:; tee stdout <"$at_stdout"
 
60547
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60548
$at_failed && at_fn_log_failure
 
60549
$at_traceon; }
 
60550
 
 
60551
   { set +x
 
60552
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"gc\",
 
60553
      {\"op\": \"insert\",
 
60554
       \"table\": \"a\",
 
60555
       \"row\": {\"a\": 0}}]'"
 
60556
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60557
( $at_check_trace; ovsdb-tool transact db '   ["gc",
 
60558
      {"op": "insert",
 
60559
       "table": "a",
 
60560
       "row": {"a": 0}}]'
 
60561
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60562
at_status=$? at_failed=false
 
60563
$at_check_filter
 
60564
echo stderr:; cat "$at_stderr"
 
60565
echo stdout:; tee stdout <"$at_stdout"
 
60566
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60567
$at_failed && at_fn_log_failure
 
60568
$at_traceon; }
 
60569
 
 
60570
cat stdout >> output
 
60571
{ set +x
 
60572
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"gc\",
 
60573
      {\"op\": \"select\",
 
60574
       \"table\": \"a\",
 
60575
       \"where\": [],
 
60576
       \"columns\": [\"a\"]}]'"
 
60577
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60578
( $at_check_trace; ovsdb-tool transact db '["gc",
 
60579
      {"op": "select",
 
60580
       "table": "a",
 
60581
       "where": [],
 
60582
       "columns": ["a"]}]'
 
60583
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60584
at_status=$? at_failed=false
 
60585
$at_check_filter
 
60586
echo stderr:; cat "$at_stderr"
 
60587
echo stdout:; tee stdout <"$at_stdout"
 
60588
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60589
$at_failed && at_fn_log_failure
 
60590
$at_traceon; }
 
60591
 
 
60592
cat stdout >> output
 
60593
{ set +x
 
60594
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '      [\"gc\",
 
60595
      {\"op\": \"insert\",
 
60596
       \"table\": \"a\",
 
60597
       \"row\": {\"a\": 0, \"a2a\": [\"named-uuid\", \"row1\"]},
 
60598
       \"uuid-name\": \"row0\"},
 
60599
      {\"op\": \"insert\",
 
60600
       \"table\": \"a\",
 
60601
       \"row\": {\"a\": 1, \"a2a\": [\"named-uuid\", \"row2\"]},
 
60602
       \"uuid-name\": \"row1\"},
 
60603
      {\"op\": \"insert\",
 
60604
       \"table\": \"a\",
 
60605
       \"row\": {\"a\": 2, \"a2a\": [\"named-uuid\", \"row3\"]},
 
60606
       \"uuid-name\": \"row2\"},
 
60607
      {\"op\": \"insert\",
 
60608
       \"table\": \"a\",
 
60609
       \"row\": {\"a\": 3},
 
60610
       \"uuid-name\": \"row3\"}]'"
 
60611
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60612
( $at_check_trace; ovsdb-tool transact db '      ["gc",
 
60613
      {"op": "insert",
 
60614
       "table": "a",
 
60615
       "row": {"a": 0, "a2a": ["named-uuid", "row1"]},
 
60616
       "uuid-name": "row0"},
 
60617
      {"op": "insert",
 
60618
       "table": "a",
 
60619
       "row": {"a": 1, "a2a": ["named-uuid", "row2"]},
 
60620
       "uuid-name": "row1"},
 
60621
      {"op": "insert",
 
60622
       "table": "a",
 
60623
       "row": {"a": 2, "a2a": ["named-uuid", "row3"]},
 
60624
       "uuid-name": "row2"},
 
60625
      {"op": "insert",
 
60626
       "table": "a",
 
60627
       "row": {"a": 3},
 
60628
       "uuid-name": "row3"}]'
 
60629
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60630
at_status=$? at_failed=false
 
60631
$at_check_filter
 
60632
echo stderr:; cat "$at_stderr"
 
60633
echo stdout:; tee stdout <"$at_stdout"
 
60634
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60635
$at_failed && at_fn_log_failure
 
60636
$at_traceon; }
 
60637
 
 
60638
cat stdout >> output
 
60639
{ set +x
 
60640
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"gc\",
 
60641
      {\"op\": \"select\",
 
60642
       \"table\": \"a\",
 
60643
       \"where\": [],
 
60644
       \"columns\": [\"a\"]}]'"
 
60645
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60646
( $at_check_trace; ovsdb-tool transact db '["gc",
 
60647
      {"op": "select",
 
60648
       "table": "a",
 
60649
       "where": [],
 
60650
       "columns": ["a"]}]'
 
60651
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60652
at_status=$? at_failed=false
 
60653
$at_check_filter
 
60654
echo stderr:; cat "$at_stderr"
 
60655
echo stdout:; tee stdout <"$at_stdout"
 
60656
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60657
$at_failed && at_fn_log_failure
 
60658
$at_traceon; }
 
60659
 
 
60660
cat stdout >> output
 
60661
{ set +x
 
60662
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '      [\"gc\",
 
60663
      {\"op\": \"insert\",
 
60664
       \"table\": \"a\",
 
60665
       \"row\": {\"a\": 4, \"a2a\": [\"named-uuid\", \"row5\"]},
 
60666
       \"uuid-name\": \"row4\"},
 
60667
      {\"op\": \"insert\",
 
60668
       \"table\": \"a\",
 
60669
       \"row\": {\"a\": 5, \"a2a\": [\"named-uuid\", \"row4\"]},
 
60670
       \"uuid-name\": \"row5\"}]'"
 
60671
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60672
( $at_check_trace; ovsdb-tool transact db '      ["gc",
 
60673
      {"op": "insert",
 
60674
       "table": "a",
 
60675
       "row": {"a": 4, "a2a": ["named-uuid", "row5"]},
 
60676
       "uuid-name": "row4"},
 
60677
      {"op": "insert",
 
60678
       "table": "a",
 
60679
       "row": {"a": 5, "a2a": ["named-uuid", "row4"]},
 
60680
       "uuid-name": "row5"}]'
 
60681
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60682
at_status=$? at_failed=false
 
60683
$at_check_filter
 
60684
echo stderr:; cat "$at_stderr"
 
60685
echo stdout:; tee stdout <"$at_stdout"
 
60686
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60687
$at_failed && at_fn_log_failure
 
60688
$at_traceon; }
 
60689
 
 
60690
cat stdout >> output
 
60691
{ set +x
 
60692
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"gc\",
 
60693
      {\"op\": \"select\",
 
60694
       \"table\": \"a\",
 
60695
       \"where\": [],
 
60696
       \"columns\": [\"a\"],
 
60697
       \"sort\": [\"a\"]}]'"
 
60698
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60699
( $at_check_trace; ovsdb-tool transact db '["gc",
 
60700
      {"op": "select",
 
60701
       "table": "a",
 
60702
       "where": [],
 
60703
       "columns": ["a"],
 
60704
       "sort": ["a"]}]'
 
60705
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60706
at_status=$? at_failed=false
 
60707
$at_check_filter
 
60708
echo stderr:; cat "$at_stderr"
 
60709
echo stdout:; tee stdout <"$at_stdout"
 
60710
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60711
$at_failed && at_fn_log_failure
 
60712
$at_traceon; }
 
60713
 
 
60714
cat stdout >> output
 
60715
{ set +x
 
60716
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"gc\",
 
60717
      {\"op\": \"update\",
 
60718
       \"table\": \"a\",
 
60719
       \"where\": [[\"a\", \"==\", 4]],
 
60720
       \"row\": {\"a2a\": [\"set\", []]}}]'"
 
60721
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60722
( $at_check_trace; ovsdb-tool transact db '   ["gc",
 
60723
      {"op": "update",
 
60724
       "table": "a",
 
60725
       "where": [["a", "==", 4]],
 
60726
       "row": {"a2a": ["set", []]}}]'
 
60727
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60728
at_status=$? at_failed=false
 
60729
$at_check_filter
 
60730
echo stderr:; cat "$at_stderr"
 
60731
echo stdout:; tee stdout <"$at_stdout"
 
60732
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60733
$at_failed && at_fn_log_failure
 
60734
$at_traceon; }
 
60735
 
 
60736
cat stdout >> output
 
60737
{ set +x
 
60738
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"gc\",
 
60739
      {\"op\": \"select\",
 
60740
       \"table\": \"a\",
 
60741
       \"where\": [],
 
60742
       \"columns\": [\"a\"]}]'"
 
60743
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60744
( $at_check_trace; ovsdb-tool transact db '["gc",
 
60745
      {"op": "select",
 
60746
       "table": "a",
 
60747
       "where": [],
 
60748
       "columns": ["a"]}]'
 
60749
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60750
at_status=$? at_failed=false
 
60751
$at_check_filter
 
60752
echo stderr:; cat "$at_stderr"
 
60753
echo stdout:; tee stdout <"$at_stdout"
 
60754
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60755
$at_failed && at_fn_log_failure
 
60756
$at_traceon; }
 
60757
 
 
60758
cat stdout >> output
 
60759
{ set +x
 
60760
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '      [\"gc\",
 
60761
      {\"op\": \"insert\",
 
60762
       \"table\": \"a\",
 
60763
       \"row\": {\"a\": 6, \"wa2a\": [\"named-uuid\", \"row7\"]},
 
60764
       \"uuid-name\": \"row6\"},
 
60765
      {\"op\": \"insert\",
 
60766
       \"table\": \"a\",
 
60767
       \"row\": {\"a\": 7, \"wa2a\": [\"named-uuid\", \"row6\"]},
 
60768
       \"uuid-name\": \"row7\"}]'"
 
60769
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60770
( $at_check_trace; ovsdb-tool transact db '      ["gc",
 
60771
      {"op": "insert",
 
60772
       "table": "a",
 
60773
       "row": {"a": 6, "wa2a": ["named-uuid", "row7"]},
 
60774
       "uuid-name": "row6"},
 
60775
      {"op": "insert",
 
60776
       "table": "a",
 
60777
       "row": {"a": 7, "wa2a": ["named-uuid", "row6"]},
 
60778
       "uuid-name": "row7"}]'
 
60779
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60780
at_status=$? at_failed=false
 
60781
$at_check_filter
 
60782
echo stderr:; cat "$at_stderr"
 
60783
echo stdout:; tee stdout <"$at_stdout"
 
60784
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60785
$at_failed && at_fn_log_failure
 
60786
$at_traceon; }
 
60787
 
 
60788
cat stdout >> output
 
60789
{ set +x
 
60790
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"gc\",
 
60791
      {\"op\": \"select\",
 
60792
       \"table\": \"a\",
 
60793
       \"where\": [],
 
60794
       \"columns\": [\"a\"]}]'"
 
60795
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60796
( $at_check_trace; ovsdb-tool transact db '["gc",
 
60797
      {"op": "select",
 
60798
       "table": "a",
 
60799
       "where": [],
 
60800
       "columns": ["a"]}]'
 
60801
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60802
at_status=$? at_failed=false
 
60803
$at_check_filter
 
60804
echo stderr:; cat "$at_stderr"
 
60805
echo stdout:; tee stdout <"$at_stdout"
 
60806
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60807
$at_failed && at_fn_log_failure
 
60808
$at_traceon; }
 
60809
 
 
60810
cat stdout >> output
 
60811
{ set +x
 
60812
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"gc\",
 
60813
      {\"op\": \"insert\",
 
60814
       \"table\": \"a\",
 
60815
       \"row\": {\"a\": 8, \"a2a\": [\"named-uuid\", \"row9\"]},
 
60816
       \"uuid-name\": \"row8\"},
 
60817
      {\"op\": \"insert\",
 
60818
       \"table\": \"a\",
 
60819
       \"row\": {\"a\": 9, \"a2a\": [\"named-uuid\", \"row10\"]},
 
60820
       \"uuid-name\": \"row9\"},
 
60821
      {\"op\": \"insert\",
 
60822
       \"table\": \"a\",
 
60823
       \"row\": {\"a\": 10, \"a2a\": [\"named-uuid\", \"row11\"]},
 
60824
       \"uuid-name\": \"row10\"},
 
60825
      {\"op\": \"insert\",
 
60826
       \"table\": \"a\",
 
60827
       \"row\": {\"a\": 11, \"a2a\": [\"named-uuid\", \"row8\"]},
 
60828
       \"uuid-name\": \"row11\"}]'"
 
60829
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60830
( $at_check_trace; ovsdb-tool transact db '   ["gc",
 
60831
      {"op": "insert",
 
60832
       "table": "a",
 
60833
       "row": {"a": 8, "a2a": ["named-uuid", "row9"]},
 
60834
       "uuid-name": "row8"},
 
60835
      {"op": "insert",
 
60836
       "table": "a",
 
60837
       "row": {"a": 9, "a2a": ["named-uuid", "row10"]},
 
60838
       "uuid-name": "row9"},
 
60839
      {"op": "insert",
 
60840
       "table": "a",
 
60841
       "row": {"a": 10, "a2a": ["named-uuid", "row11"]},
 
60842
       "uuid-name": "row10"},
 
60843
      {"op": "insert",
 
60844
       "table": "a",
 
60845
       "row": {"a": 11, "a2a": ["named-uuid", "row8"]},
 
60846
       "uuid-name": "row11"}]'
 
60847
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60848
at_status=$? at_failed=false
 
60849
$at_check_filter
 
60850
echo stderr:; cat "$at_stderr"
 
60851
echo stdout:; tee stdout <"$at_stdout"
 
60852
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60853
$at_failed && at_fn_log_failure
 
60854
$at_traceon; }
 
60855
 
 
60856
cat stdout >> output
 
60857
{ set +x
 
60858
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"gc\",
 
60859
      {\"op\": \"select\",
 
60860
       \"table\": \"a\",
 
60861
       \"where\": [],
 
60862
       \"columns\": [\"a\"],
 
60863
       \"sort\": [\"a\"]}]'"
 
60864
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60865
( $at_check_trace; ovsdb-tool transact db '["gc",
 
60866
      {"op": "select",
 
60867
       "table": "a",
 
60868
       "where": [],
 
60869
       "columns": ["a"],
 
60870
       "sort": ["a"]}]'
 
60871
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60872
at_status=$? at_failed=false
 
60873
$at_check_filter
 
60874
echo stderr:; cat "$at_stderr"
 
60875
echo stdout:; tee stdout <"$at_stdout"
 
60876
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60877
$at_failed && at_fn_log_failure
 
60878
$at_traceon; }
 
60879
 
 
60880
cat stdout >> output
 
60881
{ set +x
 
60882
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"gc\",
 
60883
      {\"op\": \"update\",
 
60884
       \"table\": \"a\",
 
60885
       \"where\": [[\"a\", \"==\", 9]],
 
60886
       \"row\": {\"a2a\": [\"set\", []]}}]'"
 
60887
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60888
( $at_check_trace; ovsdb-tool transact db '   ["gc",
 
60889
      {"op": "update",
 
60890
       "table": "a",
 
60891
       "where": [["a", "==", 9]],
 
60892
       "row": {"a2a": ["set", []]}}]'
 
60893
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60894
at_status=$? at_failed=false
 
60895
$at_check_filter
 
60896
echo stderr:; cat "$at_stderr"
 
60897
echo stdout:; tee stdout <"$at_stdout"
 
60898
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60899
$at_failed && at_fn_log_failure
 
60900
$at_traceon; }
 
60901
 
 
60902
cat stdout >> output
 
60903
{ set +x
 
60904
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"gc\",
 
60905
      {\"op\": \"select\",
 
60906
       \"table\": \"a\",
 
60907
       \"where\": [],
 
60908
       \"columns\": [\"a\"]}]'"
 
60909
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60910
( $at_check_trace; ovsdb-tool transact db '["gc",
 
60911
      {"op": "select",
 
60912
       "table": "a",
 
60913
       "where": [],
 
60914
       "columns": ["a"]}]'
 
60915
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60916
at_status=$? at_failed=false
 
60917
$at_check_filter
 
60918
echo stderr:; cat "$at_stderr"
 
60919
echo stdout:; tee stdout <"$at_stdout"
 
60920
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60921
$at_failed && at_fn_log_failure
 
60922
$at_traceon; }
 
60923
 
 
60924
cat stdout >> output
 
60925
{ set +x
 
60926
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '   [\"gc\",
 
60927
      {\"op\": \"insert\",
 
60928
       \"table\": \"a\",
 
60929
       \"row\": {\"a\": 12, \"a2a\": [\"named-uuid\", \"self\"]},
 
60930
       \"uuid-name\": \"self\"}]'"
 
60931
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60932
( $at_check_trace; ovsdb-tool transact db '   ["gc",
 
60933
      {"op": "insert",
 
60934
       "table": "a",
 
60935
       "row": {"a": 12, "a2a": ["named-uuid", "self"]},
 
60936
       "uuid-name": "self"}]'
 
60937
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60938
at_status=$? at_failed=false
 
60939
$at_check_filter
 
60940
echo stderr:; cat "$at_stderr"
 
60941
echo stdout:; tee stdout <"$at_stdout"
 
60942
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60943
$at_failed && at_fn_log_failure
 
60944
$at_traceon; }
 
60945
 
 
60946
cat stdout >> output
 
60947
{ set +x
 
60948
$as_echo "$at_srcdir/ovsdb-tool.at:30: ovsdb-tool transact db '[\"gc\",
 
60949
      {\"op\": \"select\",
 
60950
       \"table\": \"a\",
 
60951
       \"where\": [],
 
60952
       \"columns\": [\"a\"]}]'"
 
60953
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:30"
 
60954
( $at_check_trace; ovsdb-tool transact db '["gc",
 
60955
      {"op": "select",
 
60956
       "table": "a",
 
60957
       "where": [],
 
60958
       "columns": ["a"]}]'
 
60959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60960
at_status=$? at_failed=false
 
60961
$at_check_filter
 
60962
echo stderr:; cat "$at_stderr"
 
60963
echo stdout:; tee stdout <"$at_stdout"
 
60964
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60965
$at_failed && at_fn_log_failure
 
60966
$at_traceon; }
 
60967
 
 
60968
cat stdout >> output
 
60969
 
 
60970
   { set +x
 
60971
$as_echo "$at_srcdir/ovsdb-tool.at:30: perl \$srcdir/uuidfilt.pl output"
 
60972
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-tool.at:30"
 
60973
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
60974
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
60975
at_status=$? at_failed=false
 
60976
$at_check_filter
 
60977
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
60978
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
60979
[{\"rows\":[]}]
 
60980
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
60981
[{\"rows\":[]}]
 
60982
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"uuid\":[\"uuid\",\"<6>\"]}]
 
60983
[{\"rows\":[{\"a\":4},{\"a\":5}]}]
 
60984
[{\"count\":1}]
 
60985
[{\"rows\":[]}]
 
60986
[{\"uuid\":[\"uuid\",\"<7>\"]},{\"uuid\":[\"uuid\",\"<8>\"]}]
 
60987
[{\"rows\":[]}]
 
60988
[{\"uuid\":[\"uuid\",\"<9>\"]},{\"uuid\":[\"uuid\",\"<10>\"]},{\"uuid\":[\"uuid\",\"<11>\"]},{\"uuid\":[\"uuid\",\"<12>\"]}]
 
60989
[{\"rows\":[{\"a\":8},{\"a\":9},{\"a\":10},{\"a\":11}]}]
 
60990
[{\"count\":1}]
 
60991
[{\"rows\":[]}]
 
60992
[{\"uuid\":[\"uuid\",\"<13>\"]}]
 
60993
[{\"rows\":[]}]
 
60994
" | \
 
60995
  $at_diff - "$at_stdout" || at_failed=:
 
60996
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:30"
 
60997
$at_failed && at_fn_log_failure
 
60998
$at_traceon; }
 
60999
 
 
61000
     set +x
 
61001
  $at_times_p && times >"$at_times_file"
 
61002
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61003
read at_status <"$at_status_file"
 
61004
#AT_STOP_815
 
61005
#AT_START_816
 
61006
at_fn_group_banner 816 'ovsdb-tool.at:32' \
 
61007
  "transaction comments" "                           " 58
 
61008
at_xfail=no
 
61009
(
 
61010
  $as_echo "816. $at_setup_line: testing $at_desc ..."
 
61011
  $at_traceon
 
61012
 
 
61013
 
 
61014
cat >schema <<'_ATEOF'
 
61015
{"name": "ordinals",
 
61016
     "tables": {
 
61017
       "ordinals": {
 
61018
         "columns": {
 
61019
           "number": {"type": "integer"},
 
61020
           "name": {"type": "string"}},
 
61021
         "indexes": [["number"]]}},
 
61022
     "version": "5.1.3",
 
61023
     "cksum": "12345678 9"}
 
61024
_ATEOF
 
61025
 
 
61026
touch .db.~lock~
 
61027
{ set +x
 
61028
$as_echo "$at_srcdir/ovsdb-tool.at:37: ovsdb-tool create db schema"
 
61029
at_fn_check_prepare_trace "ovsdb-tool.at:37"
 
61030
( $at_check_trace; ovsdb-tool create db schema
 
61031
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61032
at_status=$? at_failed=false
 
61033
$at_check_filter
 
61034
echo stderr:; cat "$at_stderr"
 
61035
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61036
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:37"
 
61037
$at_failed && at_fn_log_failure
 
61038
$at_traceon; }
 
61039
 
 
61040
{ set +x
 
61041
$as_echo "$at_srcdir/ovsdb-tool.at:38: ovsdb-tool transact db '
 
61042
    [\"ordinals\",
 
61043
     {\"op\": \"insert\",
 
61044
      \"table\": \"ordinals\",
 
61045
      \"row\": {\"name\": \"five\", \"number\": 5}},
 
61046
     {\"op\": \"comment\",
 
61047
      \"comment\": \"add row for 5\"}]'"
 
61048
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:38"
 
61049
( $at_check_trace; ovsdb-tool transact db '
 
61050
    ["ordinals",
 
61051
     {"op": "insert",
 
61052
      "table": "ordinals",
 
61053
      "row": {"name": "five", "number": 5}},
 
61054
     {"op": "comment",
 
61055
      "comment": "add row for 5"}]'
 
61056
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61057
at_status=$? at_failed=false
 
61058
$at_check_filter
 
61059
echo stderr:; cat "$at_stderr"
 
61060
echo stdout:; tee stdout <"$at_stdout"
 
61061
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:38"
 
61062
$at_failed && at_fn_log_failure
 
61063
$at_traceon; }
 
61064
 
 
61065
{ set +x
 
61066
$as_echo "$at_srcdir/ovsdb-tool.at:45: perl \$srcdir/uuidfilt.pl stdout"
 
61067
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-tool.at:45"
 
61068
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
61069
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61070
at_status=$? at_failed=false
 
61071
$at_check_filter
 
61072
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61073
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{}]
 
61074
" | \
 
61075
  $at_diff - "$at_stdout" || at_failed=:
 
61076
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:45"
 
61077
$at_failed && at_fn_log_failure
 
61078
$at_traceon; }
 
61079
 
 
61080
{ set +x
 
61081
$as_echo "$at_srcdir/ovsdb-tool.at:48: grep \"add row for 5\" db"
 
61082
at_fn_check_prepare_trace "ovsdb-tool.at:48"
 
61083
( $at_check_trace; grep "add row for 5" db
 
61084
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61085
at_status=$? at_failed=false
 
61086
$at_check_filter
 
61087
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61088
echo stdout:; cat "$at_stdout"
 
61089
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:48"
 
61090
$at_failed && at_fn_log_failure
 
61091
$at_traceon; }
 
61092
 
 
61093
  set +x
 
61094
  $at_times_p && times >"$at_times_file"
 
61095
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61096
read at_status <"$at_status_file"
 
61097
#AT_STOP_816
 
61098
#AT_START_817
 
61099
at_fn_group_banner 817 'ovsdb-tool.at:51' \
 
61100
  "ovsdb-tool compact" "                             " 58
 
61101
at_xfail=no
 
61102
(
 
61103
  $as_echo "817. $at_setup_line: testing $at_desc ..."
 
61104
  $at_traceon
 
61105
 
 
61106
 
 
61107
cat >schema <<'_ATEOF'
 
61108
{"name": "ordinals",
 
61109
     "tables": {
 
61110
       "ordinals": {
 
61111
         "columns": {
 
61112
           "number": {"type": "integer"},
 
61113
           "name": {"type": "string"}},
 
61114
         "indexes": [["number"]]}},
 
61115
     "version": "5.1.3",
 
61116
     "cksum": "12345678 9"}
 
61117
_ATEOF
 
61118
 
 
61119
touch .db.~lock~
 
61120
{ set +x
 
61121
$as_echo "$at_srcdir/ovsdb-tool.at:56: ovsdb-tool create db schema"
 
61122
at_fn_check_prepare_trace "ovsdb-tool.at:56"
 
61123
( $at_check_trace; ovsdb-tool create db schema
 
61124
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61125
at_status=$? at_failed=false
 
61126
$at_check_filter
 
61127
echo stderr:; cat "$at_stderr"
 
61128
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61129
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:56"
 
61130
$at_failed && at_fn_log_failure
 
61131
$at_traceon; }
 
61132
 
 
61133
{ set +x
 
61134
$as_echo "$at_srcdir/ovsdb-tool.at:58: for pair in 'zero 0' 'one 1' 'two 2' 'three 3' 'four 4' 'five 5'; do
 
61135
      set -- \$pair
 
61136
      ovsdb-tool transact db '
 
61137
        [\"ordinals\",
 
61138
         {\"op\": \"insert\",
 
61139
          \"table\": \"ordinals\",
 
61140
          \"row\": {\"name\": \"'\$1'\", \"number\": '\$2'}},
 
61141
         {\"op\": \"comment\",
 
61142
          \"comment\": \"add row for '\"\$pair\"'\"}]'
 
61143
      ovsdb-tool transact db '
 
61144
        [\"ordinals\",
 
61145
         {\"op\": \"delete\",
 
61146
          \"table\": \"ordinals\",
 
61147
          \"where\": [[\"number\", \"==\", '\$2']]},
 
61148
         {\"op\": \"comment\",
 
61149
          \"comment\": \"delete row for '\"\$2\"'\"}]'
 
61150
      ovsdb-tool transact db '
 
61151
        [\"ordinals\",
 
61152
         {\"op\": \"insert\",
 
61153
          \"table\": \"ordinals\",
 
61154
          \"row\": {\"name\": \"'\$1'\", \"number\": '\$2'}},
 
61155
         {\"op\": \"comment\",
 
61156
          \"comment\": \"add back row for '\"\$pair\"'\"}]'
 
61157
    done"
 
61158
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:58"
 
61159
( $at_check_trace; for pair in 'zero 0' 'one 1' 'two 2' 'three 3' 'four 4' 'five 5'; do
 
61160
      set -- $pair
 
61161
      ovsdb-tool transact db '
 
61162
        ["ordinals",
 
61163
         {"op": "insert",
 
61164
          "table": "ordinals",
 
61165
          "row": {"name": "'$1'", "number": '$2'}},
 
61166
         {"op": "comment",
 
61167
          "comment": "add row for '"$pair"'"}]'
 
61168
      ovsdb-tool transact db '
 
61169
        ["ordinals",
 
61170
         {"op": "delete",
 
61171
          "table": "ordinals",
 
61172
          "where": [["number", "==", '$2']]},
 
61173
         {"op": "comment",
 
61174
          "comment": "delete row for '"$2"'"}]'
 
61175
      ovsdb-tool transact db '
 
61176
        ["ordinals",
 
61177
         {"op": "insert",
 
61178
          "table": "ordinals",
 
61179
          "row": {"name": "'$1'", "number": '$2'}},
 
61180
         {"op": "comment",
 
61181
          "comment": "add back row for '"$pair"'"}]'
 
61182
    done
 
61183
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61184
at_status=$? at_failed=false
 
61185
$at_check_filter
 
61186
echo stderr:; cat "$at_stderr"
 
61187
echo stdout:; tee stdout <"$at_stdout"
 
61188
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:58"
 
61189
$at_failed && at_fn_log_failure
 
61190
$at_traceon; }
 
61191
 
 
61192
{ set +x
 
61193
$as_echo "$at_srcdir/ovsdb-tool.at:85: perl \$srcdir/uuidfilt.pl db | grep -v ^OVSDB | sed 's/\"_date\":[0-9]*/\"_date\":0/' | test-json --multiple -"
 
61194
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-tool.at:85"
 
61195
( $at_check_trace; perl $srcdir/uuidfilt.pl db | grep -v ^OVSDB | sed 's/"_date":[0-9]*/"_date":0/' | test-json --multiple -
 
61196
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61197
at_status=$? at_failed=false
 
61198
$at_check_filter
 
61199
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61200
echo >>"$at_stdout"; $as_echo "{\"cksum\":\"12345678 9\",\"name\":\"ordinals\",\"tables\":{\"ordinals\":{\"columns\":{\"name\":{\"type\":\"string\"},\"number\":{\"type\":\"integer\"}},\"indexes\":[[\"number\"]]}},\"version\":\"5.1.3\"}
 
61201
{\"_comment\":\"add row for zero 0\",\"_date\":0,\"ordinals\":{\"<0>\":{\"name\":\"zero\"}}}
 
61202
{\"_comment\":\"delete row for 0\",\"_date\":0,\"ordinals\":{\"<0>\":null}}
 
61203
{\"_comment\":\"add back row for zero 0\",\"_date\":0,\"ordinals\":{\"<1>\":{\"name\":\"zero\"}}}
 
61204
{\"_comment\":\"add row for one 1\",\"_date\":0,\"ordinals\":{\"<2>\":{\"name\":\"one\",\"number\":1}}}
 
61205
{\"_comment\":\"delete row for 1\",\"_date\":0,\"ordinals\":{\"<2>\":null}}
 
61206
{\"_comment\":\"add back row for one 1\",\"_date\":0,\"ordinals\":{\"<3>\":{\"name\":\"one\",\"number\":1}}}
 
61207
{\"_comment\":\"add row for two 2\",\"_date\":0,\"ordinals\":{\"<4>\":{\"name\":\"two\",\"number\":2}}}
 
61208
{\"_comment\":\"delete row for 2\",\"_date\":0,\"ordinals\":{\"<4>\":null}}
 
61209
{\"_comment\":\"add back row for two 2\",\"_date\":0,\"ordinals\":{\"<5>\":{\"name\":\"two\",\"number\":2}}}
 
61210
{\"_comment\":\"add row for three 3\",\"_date\":0,\"ordinals\":{\"<6>\":{\"name\":\"three\",\"number\":3}}}
 
61211
{\"_comment\":\"delete row for 3\",\"_date\":0,\"ordinals\":{\"<6>\":null}}
 
61212
{\"_comment\":\"add back row for three 3\",\"_date\":0,\"ordinals\":{\"<7>\":{\"name\":\"three\",\"number\":3}}}
 
61213
{\"_comment\":\"add row for four 4\",\"_date\":0,\"ordinals\":{\"<8>\":{\"name\":\"four\",\"number\":4}}}
 
61214
{\"_comment\":\"delete row for 4\",\"_date\":0,\"ordinals\":{\"<8>\":null}}
 
61215
{\"_comment\":\"add back row for four 4\",\"_date\":0,\"ordinals\":{\"<9>\":{\"name\":\"four\",\"number\":4}}}
 
61216
{\"_comment\":\"add row for five 5\",\"_date\":0,\"ordinals\":{\"<10>\":{\"name\":\"five\",\"number\":5}}}
 
61217
{\"_comment\":\"delete row for 5\",\"_date\":0,\"ordinals\":{\"<10>\":null}}
 
61218
{\"_comment\":\"add back row for five 5\",\"_date\":0,\"ordinals\":{\"<11>\":{\"name\":\"five\",\"number\":5}}}
 
61219
" | \
 
61220
  $at_diff - "$at_stdout" || at_failed=:
 
61221
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:85"
 
61222
$at_failed && at_fn_log_failure
 
61223
$at_traceon; }
 
61224
 
 
61225
{ set +x
 
61226
$as_echo "$at_srcdir/ovsdb-tool.at:107: ovsdb-server --unixctl=\$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db"
 
61227
at_fn_check_prepare_dynamic "ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db" "ovsdb-tool.at:107"
 
61228
( $at_check_trace; ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run "ovsdb-client dump unix:socket ordinals" db
 
61229
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61230
at_status=$? at_failed=false
 
61231
$at_check_filter
 
61232
echo stderr:; cat "$at_stderr"
 
61233
echo stdout:; tee stdout <"$at_stdout"
 
61234
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:107"
 
61235
$at_failed && at_fn_log_failure
 
61236
$at_traceon; }
 
61237
 
 
61238
{ set +x
 
61239
$as_echo "$at_srcdir/ovsdb-tool.at:109: perl \$srcdir/uuidfilt.pl stdout"
 
61240
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-tool.at:109"
 
61241
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
61242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61243
at_status=$? at_failed=false
 
61244
$at_check_filter
 
61245
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61246
echo >>"$at_stdout"; $as_echo "ordinals table
 
61247
_uuid                                name  number
 
61248
------------------------------------ ----- ------
 
61249
<0> five  5     
 
61250
<1> four  4     
 
61251
<2> one   1     
 
61252
<3> three 3     
 
61253
<4> two   2     
 
61254
<5> zero  0     
 
61255
" | \
 
61256
  $at_diff - "$at_stdout" || at_failed=:
 
61257
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:109"
 
61258
$at_failed && at_fn_log_failure
 
61259
$at_traceon; }
 
61260
 
 
61261
touch .db.tmp.~lock~
 
61262
{ set +x
 
61263
$as_echo "$at_srcdir/ovsdb-tool.at:122: ovsdb-tool compact db"
 
61264
at_fn_check_prepare_trace "ovsdb-tool.at:122"
 
61265
( $at_check_trace; ovsdb-tool compact db
 
61266
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61267
at_status=$? at_failed=false
 
61268
$at_check_filter
 
61269
echo stderr:; cat "$at_stderr"
 
61270
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61271
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:122"
 
61272
$at_failed && at_fn_log_failure
 
61273
$at_traceon; }
 
61274
 
 
61275
 
 
61276
{ set +x
 
61277
$as_echo "$at_srcdir/ovsdb-tool.at:127: wc -l < db"
 
61278
at_fn_check_prepare_trace "ovsdb-tool.at:127"
 
61279
( $at_check_trace; wc -l < db
 
61280
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61281
at_status=$? at_failed=false
 
61282
$at_check_filter
 
61283
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61284
echo >>"$at_stdout"; $as_echo "4
 
61285
" | \
 
61286
  $at_diff - "$at_stdout" || at_failed=:
 
61287
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:127"
 
61288
$at_failed && at_fn_log_failure  \
 
61289
"db"
 
61290
$at_traceon; }
 
61291
 
 
61292
{ set +x
 
61293
$as_echo "$at_srcdir/ovsdb-tool.at:130: ovsdb-server --unixctl=\$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db"
 
61294
at_fn_check_prepare_dynamic "ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db" "ovsdb-tool.at:130"
 
61295
( $at_check_trace; ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run "ovsdb-client dump unix:socket ordinals" db
 
61296
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61297
at_status=$? at_failed=false
 
61298
$at_check_filter
 
61299
echo stderr:; cat "$at_stderr"
 
61300
echo stdout:; tee stdout <"$at_stdout"
 
61301
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:130"
 
61302
$at_failed && at_fn_log_failure  \
 
61303
"db"
 
61304
$at_traceon; }
 
61305
 
 
61306
{ set +x
 
61307
$as_echo "$at_srcdir/ovsdb-tool.at:132: perl \$srcdir/uuidfilt.pl stdout"
 
61308
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-tool.at:132"
 
61309
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
61310
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61311
at_status=$? at_failed=false
 
61312
$at_check_filter
 
61313
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61314
echo >>"$at_stdout"; $as_echo "ordinals table
 
61315
_uuid                                name  number
 
61316
------------------------------------ ----- ------
 
61317
<0> five  5     
 
61318
<1> four  4     
 
61319
<2> one   1     
 
61320
<3> three 3     
 
61321
<4> two   2     
 
61322
<5> zero  0     
 
61323
" | \
 
61324
  $at_diff - "$at_stdout" || at_failed=:
 
61325
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:132"
 
61326
$at_failed && at_fn_log_failure  \
 
61327
"db"
 
61328
$at_traceon; }
 
61329
 
 
61330
  set +x
 
61331
  $at_times_p && times >"$at_times_file"
 
61332
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61333
read at_status <"$at_status_file"
 
61334
#AT_STOP_817
 
61335
#AT_START_818
 
61336
at_fn_group_banner 818 'ovsdb-tool.at:145' \
 
61337
  "ovsdb-tool convert -- removing a column" "        " 58
 
61338
at_xfail=no
 
61339
(
 
61340
  $as_echo "818. $at_setup_line: testing $at_desc ..."
 
61341
  $at_traceon
 
61342
 
 
61343
 
 
61344
cat >schema <<'_ATEOF'
 
61345
{"name": "ordinals",
 
61346
     "tables": {
 
61347
       "ordinals": {
 
61348
         "columns": {
 
61349
           "number": {"type": "integer"},
 
61350
           "name": {"type": "string"}},
 
61351
         "indexes": [["number"]]}},
 
61352
     "version": "5.1.3",
 
61353
     "cksum": "12345678 9"}
 
61354
_ATEOF
 
61355
 
 
61356
cat >new-schema <<'_ATEOF'
 
61357
{"name": "ordinals",
 
61358
     "tables": {
 
61359
       "ordinals": {
 
61360
         "columns": {
 
61361
           "number": {"type": "integer"}}}}}
 
61362
_ATEOF
 
61363
 
 
61364
touch .db.~lock~
 
61365
{ set +x
 
61366
$as_echo "$at_srcdir/ovsdb-tool.at:157: ovsdb-tool create db schema"
 
61367
at_fn_check_prepare_trace "ovsdb-tool.at:157"
 
61368
( $at_check_trace; ovsdb-tool create db schema
 
61369
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61370
at_status=$? at_failed=false
 
61371
$at_check_filter
 
61372
echo stderr:; cat "$at_stderr"
 
61373
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61374
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:157"
 
61375
$at_failed && at_fn_log_failure
 
61376
$at_traceon; }
 
61377
 
 
61378
{ set +x
 
61379
$as_echo "$at_srcdir/ovsdb-tool.at:159: for pair in 'zero 0' 'one 1' 'two 2' 'three 3' 'four 4' 'five 5'; do
 
61380
      set -- \$pair
 
61381
      ovsdb-tool transact db '
 
61382
        [\"ordinals\",
 
61383
         {\"op\": \"insert\",
 
61384
          \"table\": \"ordinals\",
 
61385
          \"row\": {\"name\": \"'\$1'\", \"number\": '\$2'}},
 
61386
         {\"op\": \"comment\",
 
61387
          \"comment\": \"add row for '\"\$pair\"'\"}]'
 
61388
    done"
 
61389
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:159"
 
61390
( $at_check_trace; for pair in 'zero 0' 'one 1' 'two 2' 'three 3' 'four 4' 'five 5'; do
 
61391
      set -- $pair
 
61392
      ovsdb-tool transact db '
 
61393
        ["ordinals",
 
61394
         {"op": "insert",
 
61395
          "table": "ordinals",
 
61396
          "row": {"name": "'$1'", "number": '$2'}},
 
61397
         {"op": "comment",
 
61398
          "comment": "add row for '"$pair"'"}]'
 
61399
    done
 
61400
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61401
at_status=$? at_failed=false
 
61402
$at_check_filter
 
61403
echo stderr:; cat "$at_stderr"
 
61404
echo stdout:; tee stdout <"$at_stdout"
 
61405
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:159"
 
61406
$at_failed && at_fn_log_failure
 
61407
$at_traceon; }
 
61408
 
 
61409
{ set +x
 
61410
$as_echo "$at_srcdir/ovsdb-tool.at:172: ovsdb-server --unixctl=\$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db"
 
61411
at_fn_check_prepare_dynamic "ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db" "ovsdb-tool.at:172"
 
61412
( $at_check_trace; ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run "ovsdb-client dump unix:socket ordinals" db
 
61413
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61414
at_status=$? at_failed=false
 
61415
$at_check_filter
 
61416
echo stderr:; cat "$at_stderr"
 
61417
echo stdout:; tee stdout <"$at_stdout"
 
61418
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:172"
 
61419
$at_failed && at_fn_log_failure
 
61420
$at_traceon; }
 
61421
 
 
61422
{ set +x
 
61423
$as_echo "$at_srcdir/ovsdb-tool.at:174: perl \$srcdir/uuidfilt.pl stdout"
 
61424
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-tool.at:174"
 
61425
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
61426
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61427
at_status=$? at_failed=false
 
61428
$at_check_filter
 
61429
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61430
echo >>"$at_stdout"; $as_echo "ordinals table
 
61431
_uuid                                name  number
 
61432
------------------------------------ ----- ------
 
61433
<0> five  5     
 
61434
<1> four  4     
 
61435
<2> one   1     
 
61436
<3> three 3     
 
61437
<4> two   2     
 
61438
<5> zero  0     
 
61439
" | \
 
61440
  $at_diff - "$at_stdout" || at_failed=:
 
61441
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:174"
 
61442
$at_failed && at_fn_log_failure
 
61443
$at_traceon; }
 
61444
 
 
61445
touch .db.tmp.~lock~
 
61446
{ set +x
 
61447
$as_echo "$at_srcdir/ovsdb-tool.at:187: ovsdb-tool convert db new-schema"
 
61448
at_fn_check_prepare_trace "ovsdb-tool.at:187"
 
61449
( $at_check_trace; ovsdb-tool convert db new-schema
 
61450
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61451
at_status=$? at_failed=false
 
61452
$at_check_filter
 
61453
echo stderr:; cat "$at_stderr"
 
61454
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61455
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:187"
 
61456
$at_failed && at_fn_log_failure
 
61457
$at_traceon; }
 
61458
 
 
61459
 
 
61460
{ set +x
 
61461
$as_echo "$at_srcdir/ovsdb-tool.at:192: wc -l < db"
 
61462
at_fn_check_prepare_trace "ovsdb-tool.at:192"
 
61463
( $at_check_trace; wc -l < db
 
61464
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61465
at_status=$? at_failed=false
 
61466
$at_check_filter
 
61467
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61468
echo >>"$at_stdout"; $as_echo "4
 
61469
" | \
 
61470
  $at_diff - "$at_stdout" || at_failed=:
 
61471
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:192"
 
61472
$at_failed && at_fn_log_failure  \
 
61473
"db"
 
61474
$at_traceon; }
 
61475
 
 
61476
{ set +x
 
61477
$as_echo "$at_srcdir/ovsdb-tool.at:195: ovsdb-server --unixctl=\$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db"
 
61478
at_fn_check_prepare_dynamic "ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db" "ovsdb-tool.at:195"
 
61479
( $at_check_trace; ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run "ovsdb-client dump unix:socket ordinals" db
 
61480
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61481
at_status=$? at_failed=false
 
61482
$at_check_filter
 
61483
echo stderr:; cat "$at_stderr"
 
61484
echo stdout:; tee stdout <"$at_stdout"
 
61485
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:195"
 
61486
$at_failed && at_fn_log_failure  \
 
61487
"db"
 
61488
$at_traceon; }
 
61489
 
 
61490
{ set +x
 
61491
$as_echo "$at_srcdir/ovsdb-tool.at:197: perl \$srcdir/uuidfilt.pl stdout"
 
61492
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-tool.at:197"
 
61493
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
61494
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61495
at_status=$? at_failed=false
 
61496
$at_check_filter
 
61497
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61498
echo >>"$at_stdout"; $as_echo "ordinals table
 
61499
_uuid                                number
 
61500
------------------------------------ ------
 
61501
<0> 0     
 
61502
<1> 1     
 
61503
<2> 2     
 
61504
<3> 3     
 
61505
<4> 4     
 
61506
<5> 5     
 
61507
" | \
 
61508
  $at_diff - "$at_stdout" || at_failed=:
 
61509
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:197"
 
61510
$at_failed && at_fn_log_failure  \
 
61511
"db"
 
61512
$at_traceon; }
 
61513
 
 
61514
  set +x
 
61515
  $at_times_p && times >"$at_times_file"
 
61516
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61517
read at_status <"$at_status_file"
 
61518
#AT_STOP_818
 
61519
#AT_START_819
 
61520
at_fn_group_banner 819 'ovsdb-tool.at:210' \
 
61521
  "ovsdb-tool convert -- adding a column" "          " 58
 
61522
at_xfail=no
 
61523
(
 
61524
  $as_echo "819. $at_setup_line: testing $at_desc ..."
 
61525
  $at_traceon
 
61526
 
 
61527
 
 
61528
cat >schema <<'_ATEOF'
 
61529
{"name": "ordinals",
 
61530
     "tables": {
 
61531
       "ordinals": {
 
61532
         "columns": {
 
61533
           "number": {"type": "integer"}}}}}
 
61534
_ATEOF
 
61535
 
 
61536
cat >new-schema <<'_ATEOF'
 
61537
{"name": "ordinals",
 
61538
     "tables": {
 
61539
       "ordinals": {
 
61540
         "columns": {
 
61541
           "number": {"type": "integer"},
 
61542
           "name": {"type": "string"}},
 
61543
         "indexes": [["number"]]}},
 
61544
     "version": "5.1.3",
 
61545
     "cksum": "12345678 9"}
 
61546
_ATEOF
 
61547
 
 
61548
touch .db.~lock~
 
61549
{ set +x
 
61550
$as_echo "$at_srcdir/ovsdb-tool.at:222: ovsdb-tool create db schema"
 
61551
at_fn_check_prepare_trace "ovsdb-tool.at:222"
 
61552
( $at_check_trace; ovsdb-tool create db schema
 
61553
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61554
at_status=$? at_failed=false
 
61555
$at_check_filter
 
61556
echo stderr:; cat "$at_stderr"
 
61557
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61558
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:222"
 
61559
$at_failed && at_fn_log_failure
 
61560
$at_traceon; }
 
61561
 
 
61562
{ set +x
 
61563
$as_echo "$at_srcdir/ovsdb-tool.at:224: for number in 0 1 2 3 4 5; do
 
61564
      ovsdb-tool transact db '
 
61565
        [\"ordinals\",
 
61566
         {\"op\": \"insert\",
 
61567
          \"table\": \"ordinals\",
 
61568
          \"row\": {\"number\": '\$number'}},
 
61569
         {\"op\": \"comment\",
 
61570
          \"comment\": \"add row for '\"\$number\"'\"}]'
 
61571
    done"
 
61572
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-tool.at:224"
 
61573
( $at_check_trace; for number in 0 1 2 3 4 5; do
 
61574
      ovsdb-tool transact db '
 
61575
        ["ordinals",
 
61576
         {"op": "insert",
 
61577
          "table": "ordinals",
 
61578
          "row": {"number": '$number'}},
 
61579
         {"op": "comment",
 
61580
          "comment": "add row for '"$number"'"}]'
 
61581
    done
 
61582
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61583
at_status=$? at_failed=false
 
61584
$at_check_filter
 
61585
echo stderr:; cat "$at_stderr"
 
61586
echo stdout:; tee stdout <"$at_stdout"
 
61587
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:224"
 
61588
$at_failed && at_fn_log_failure
 
61589
$at_traceon; }
 
61590
 
 
61591
{ set +x
 
61592
$as_echo "$at_srcdir/ovsdb-tool.at:236: ovsdb-server --unixctl=\$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db"
 
61593
at_fn_check_prepare_dynamic "ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db" "ovsdb-tool.at:236"
 
61594
( $at_check_trace; ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run "ovsdb-client dump unix:socket ordinals" db
 
61595
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61596
at_status=$? at_failed=false
 
61597
$at_check_filter
 
61598
echo stderr:; cat "$at_stderr"
 
61599
echo stdout:; tee stdout <"$at_stdout"
 
61600
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:236"
 
61601
$at_failed && at_fn_log_failure
 
61602
$at_traceon; }
 
61603
 
 
61604
{ set +x
 
61605
$as_echo "$at_srcdir/ovsdb-tool.at:238: perl \$srcdir/uuidfilt.pl stdout"
 
61606
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-tool.at:238"
 
61607
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
61608
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61609
at_status=$? at_failed=false
 
61610
$at_check_filter
 
61611
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61612
echo >>"$at_stdout"; $as_echo "ordinals table
 
61613
_uuid                                number
 
61614
------------------------------------ ------
 
61615
<0> 0     
 
61616
<1> 1     
 
61617
<2> 2     
 
61618
<3> 3     
 
61619
<4> 4     
 
61620
<5> 5     
 
61621
" | \
 
61622
  $at_diff - "$at_stdout" || at_failed=:
 
61623
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:238"
 
61624
$at_failed && at_fn_log_failure
 
61625
$at_traceon; }
 
61626
 
 
61627
touch .db.tmp.~lock~
 
61628
{ set +x
 
61629
$as_echo "$at_srcdir/ovsdb-tool.at:251: ovsdb-tool convert db new-schema"
 
61630
at_fn_check_prepare_trace "ovsdb-tool.at:251"
 
61631
( $at_check_trace; ovsdb-tool convert db new-schema
 
61632
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61633
at_status=$? at_failed=false
 
61634
$at_check_filter
 
61635
echo stderr:; cat "$at_stderr"
 
61636
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61637
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:251"
 
61638
$at_failed && at_fn_log_failure
 
61639
$at_traceon; }
 
61640
 
 
61641
 
 
61642
{ set +x
 
61643
$as_echo "$at_srcdir/ovsdb-tool.at:256: wc -l < db"
 
61644
at_fn_check_prepare_trace "ovsdb-tool.at:256"
 
61645
( $at_check_trace; wc -l < db
 
61646
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61647
at_status=$? at_failed=false
 
61648
$at_check_filter
 
61649
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61650
echo >>"$at_stdout"; $as_echo "4
 
61651
" | \
 
61652
  $at_diff - "$at_stdout" || at_failed=:
 
61653
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:256"
 
61654
$at_failed && at_fn_log_failure  \
 
61655
"db"
 
61656
$at_traceon; }
 
61657
 
 
61658
{ set +x
 
61659
$as_echo "$at_srcdir/ovsdb-tool.at:259: ovsdb-server --unixctl=\$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db"
 
61660
at_fn_check_prepare_dynamic "ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run \"ovsdb-client dump unix:socket ordinals\" db" "ovsdb-tool.at:259"
 
61661
( $at_check_trace; ovsdb-server --unixctl=$PWD/unixctl --remote=punix:socket --run "ovsdb-client dump unix:socket ordinals" db
 
61662
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61663
at_status=$? at_failed=false
 
61664
$at_check_filter
 
61665
echo stderr:; cat "$at_stderr"
 
61666
echo stdout:; tee stdout <"$at_stdout"
 
61667
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:259"
 
61668
$at_failed && at_fn_log_failure  \
 
61669
"db"
 
61670
$at_traceon; }
 
61671
 
 
61672
{ set +x
 
61673
$as_echo "$at_srcdir/ovsdb-tool.at:261: perl \$srcdir/uuidfilt.pl stdout"
 
61674
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-tool.at:261"
 
61675
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
61676
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61677
at_status=$? at_failed=false
 
61678
$at_check_filter
 
61679
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61680
echo >>"$at_stdout"; $as_echo "ordinals table
 
61681
_uuid                                name number
 
61682
------------------------------------ ---- ------
 
61683
<0> \"\"   0     
 
61684
<1> \"\"   1     
 
61685
<2> \"\"   2     
 
61686
<3> \"\"   3     
 
61687
<4> \"\"   4     
 
61688
<5> \"\"   5     
 
61689
" | \
 
61690
  $at_diff - "$at_stdout" || at_failed=:
 
61691
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:261"
 
61692
$at_failed && at_fn_log_failure  \
 
61693
"db"
 
61694
$at_traceon; }
 
61695
 
 
61696
  set +x
 
61697
  $at_times_p && times >"$at_times_file"
 
61698
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61699
read at_status <"$at_status_file"
 
61700
#AT_STOP_819
 
61701
#AT_START_820
 
61702
at_fn_group_banner 820 'ovsdb-tool.at:274' \
 
61703
  "ovsdb-tool schema-version" "                      " 58
 
61704
at_xfail=no
 
61705
(
 
61706
  $as_echo "820. $at_setup_line: testing $at_desc ..."
 
61707
  $at_traceon
 
61708
 
 
61709
 
 
61710
cat >schema <<'_ATEOF'
 
61711
{"name": "ordinals",
 
61712
     "tables": {
 
61713
       "ordinals": {
 
61714
         "columns": {
 
61715
           "number": {"type": "integer"},
 
61716
           "name": {"type": "string"}},
 
61717
         "indexes": [["number"]]}},
 
61718
     "version": "5.1.3",
 
61719
     "cksum": "12345678 9"}
 
61720
_ATEOF
 
61721
 
 
61722
{ set +x
 
61723
$as_echo "$at_srcdir/ovsdb-tool.at:278: ovsdb-tool schema-version schema"
 
61724
at_fn_check_prepare_trace "ovsdb-tool.at:278"
 
61725
( $at_check_trace; ovsdb-tool schema-version schema
 
61726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61727
at_status=$? at_failed=false
 
61728
$at_check_filter
 
61729
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61730
echo >>"$at_stdout"; $as_echo "5.1.3
 
61731
" | \
 
61732
  $at_diff - "$at_stdout" || at_failed=:
 
61733
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:278"
 
61734
$at_failed && at_fn_log_failure
 
61735
$at_traceon; }
 
61736
 
 
61737
  set +x
 
61738
  $at_times_p && times >"$at_times_file"
 
61739
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61740
read at_status <"$at_status_file"
 
61741
#AT_STOP_820
 
61742
#AT_START_821
 
61743
at_fn_group_banner 821 'ovsdb-tool.at:282' \
 
61744
  "ovsdb-tool db-version" "                          " 58
 
61745
at_xfail=no
 
61746
(
 
61747
  $as_echo "821. $at_setup_line: testing $at_desc ..."
 
61748
  $at_traceon
 
61749
 
 
61750
 
 
61751
cat >schema <<'_ATEOF'
 
61752
{"name": "ordinals",
 
61753
     "tables": {
 
61754
       "ordinals": {
 
61755
         "columns": {
 
61756
           "number": {"type": "integer"},
 
61757
           "name": {"type": "string"}},
 
61758
         "indexes": [["number"]]}},
 
61759
     "version": "5.1.3",
 
61760
     "cksum": "12345678 9"}
 
61761
_ATEOF
 
61762
 
 
61763
touch .db.~lock~
 
61764
{ set +x
 
61765
$as_echo "$at_srcdir/ovsdb-tool.at:287: ovsdb-tool create db schema"
 
61766
at_fn_check_prepare_trace "ovsdb-tool.at:287"
 
61767
( $at_check_trace; ovsdb-tool create db schema
 
61768
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61769
at_status=$? at_failed=false
 
61770
$at_check_filter
 
61771
echo stderr:; cat "$at_stderr"
 
61772
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61773
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:287"
 
61774
$at_failed && at_fn_log_failure
 
61775
$at_traceon; }
 
61776
 
 
61777
{ set +x
 
61778
$as_echo "$at_srcdir/ovsdb-tool.at:288: ovsdb-tool db-version db"
 
61779
at_fn_check_prepare_trace "ovsdb-tool.at:288"
 
61780
( $at_check_trace; ovsdb-tool db-version db
 
61781
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61782
at_status=$? at_failed=false
 
61783
$at_check_filter
 
61784
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61785
echo >>"$at_stdout"; $as_echo "5.1.3
 
61786
" | \
 
61787
  $at_diff - "$at_stdout" || at_failed=:
 
61788
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:288"
 
61789
$at_failed && at_fn_log_failure
 
61790
$at_traceon; }
 
61791
 
 
61792
  set +x
 
61793
  $at_times_p && times >"$at_times_file"
 
61794
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61795
read at_status <"$at_status_file"
 
61796
#AT_STOP_821
 
61797
#AT_START_822
 
61798
at_fn_group_banner 822 'ovsdb-tool.at:292' \
 
61799
  "ovsdb-tool schema-cksum" "                        " 58
 
61800
at_xfail=no
 
61801
(
 
61802
  $as_echo "822. $at_setup_line: testing $at_desc ..."
 
61803
  $at_traceon
 
61804
 
 
61805
 
 
61806
cat >schema <<'_ATEOF'
 
61807
{"name": "ordinals",
 
61808
     "tables": {
 
61809
       "ordinals": {
 
61810
         "columns": {
 
61811
           "number": {"type": "integer"},
 
61812
           "name": {"type": "string"}},
 
61813
         "indexes": [["number"]]}},
 
61814
     "version": "5.1.3",
 
61815
     "cksum": "12345678 9"}
 
61816
_ATEOF
 
61817
 
 
61818
{ set +x
 
61819
$as_echo "$at_srcdir/ovsdb-tool.at:296: ovsdb-tool schema-cksum schema"
 
61820
at_fn_check_prepare_trace "ovsdb-tool.at:296"
 
61821
( $at_check_trace; ovsdb-tool schema-cksum schema
 
61822
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61823
at_status=$? at_failed=false
 
61824
$at_check_filter
 
61825
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61826
echo >>"$at_stdout"; $as_echo "12345678 9
 
61827
" | \
 
61828
  $at_diff - "$at_stdout" || at_failed=:
 
61829
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:296"
 
61830
$at_failed && at_fn_log_failure
 
61831
$at_traceon; }
 
61832
 
 
61833
  set +x
 
61834
  $at_times_p && times >"$at_times_file"
 
61835
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61836
read at_status <"$at_status_file"
 
61837
#AT_STOP_822
 
61838
#AT_START_823
 
61839
at_fn_group_banner 823 'ovsdb-tool.at:300' \
 
61840
  "ovsdb-tool db-cksum" "                            " 58
 
61841
at_xfail=no
 
61842
(
 
61843
  $as_echo "823. $at_setup_line: testing $at_desc ..."
 
61844
  $at_traceon
 
61845
 
 
61846
 
 
61847
cat >schema <<'_ATEOF'
 
61848
{"name": "ordinals",
 
61849
     "tables": {
 
61850
       "ordinals": {
 
61851
         "columns": {
 
61852
           "number": {"type": "integer"},
 
61853
           "name": {"type": "string"}},
 
61854
         "indexes": [["number"]]}},
 
61855
     "version": "5.1.3",
 
61856
     "cksum": "12345678 9"}
 
61857
_ATEOF
 
61858
 
 
61859
touch .db.~lock~
 
61860
{ set +x
 
61861
$as_echo "$at_srcdir/ovsdb-tool.at:305: ovsdb-tool create db schema"
 
61862
at_fn_check_prepare_trace "ovsdb-tool.at:305"
 
61863
( $at_check_trace; ovsdb-tool create db schema
 
61864
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61865
at_status=$? at_failed=false
 
61866
$at_check_filter
 
61867
echo stderr:; cat "$at_stderr"
 
61868
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61869
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:305"
 
61870
$at_failed && at_fn_log_failure
 
61871
$at_traceon; }
 
61872
 
 
61873
{ set +x
 
61874
$as_echo "$at_srcdir/ovsdb-tool.at:306: ovsdb-tool db-cksum db"
 
61875
at_fn_check_prepare_trace "ovsdb-tool.at:306"
 
61876
( $at_check_trace; ovsdb-tool db-cksum db
 
61877
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61878
at_status=$? at_failed=false
 
61879
$at_check_filter
 
61880
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61881
echo >>"$at_stdout"; $as_echo "12345678 9
 
61882
" | \
 
61883
  $at_diff - "$at_stdout" || at_failed=:
 
61884
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:306"
 
61885
$at_failed && at_fn_log_failure
 
61886
$at_traceon; }
 
61887
 
 
61888
  set +x
 
61889
  $at_times_p && times >"$at_times_file"
 
61890
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61891
read at_status <"$at_status_file"
 
61892
#AT_STOP_823
 
61893
#AT_START_824
 
61894
at_fn_group_banner 824 'ovsdb-tool.at:310' \
 
61895
  "ovsdb-tool needs-conversion (no conversion needed)" "" 58
 
61896
at_xfail=no
 
61897
(
 
61898
  $as_echo "824. $at_setup_line: testing $at_desc ..."
 
61899
  $at_traceon
 
61900
 
 
61901
 
 
61902
cat >schema <<'_ATEOF'
 
61903
{"name": "ordinals",
 
61904
     "tables": {
 
61905
       "ordinals": {
 
61906
         "columns": {
 
61907
           "number": {"type": "integer"},
 
61908
           "name": {"type": "string"}},
 
61909
         "indexes": [["number"]]}},
 
61910
     "version": "5.1.3",
 
61911
     "cksum": "12345678 9"}
 
61912
_ATEOF
 
61913
 
 
61914
touch .db.~lock~
 
61915
{ set +x
 
61916
$as_echo "$at_srcdir/ovsdb-tool.at:315: ovsdb-tool create db schema"
 
61917
at_fn_check_prepare_trace "ovsdb-tool.at:315"
 
61918
( $at_check_trace; ovsdb-tool create db schema
 
61919
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61920
at_status=$? at_failed=false
 
61921
$at_check_filter
 
61922
echo stderr:; cat "$at_stderr"
 
61923
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61924
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:315"
 
61925
$at_failed && at_fn_log_failure
 
61926
$at_traceon; }
 
61927
 
 
61928
{ set +x
 
61929
$as_echo "$at_srcdir/ovsdb-tool.at:316: ovsdb-tool needs-conversion db schema"
 
61930
at_fn_check_prepare_trace "ovsdb-tool.at:316"
 
61931
( $at_check_trace; ovsdb-tool needs-conversion db schema
 
61932
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61933
at_status=$? at_failed=false
 
61934
$at_check_filter
 
61935
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61936
echo >>"$at_stdout"; $as_echo "no
 
61937
" | \
 
61938
  $at_diff - "$at_stdout" || at_failed=:
 
61939
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:316"
 
61940
$at_failed && at_fn_log_failure
 
61941
$at_traceon; }
 
61942
 
 
61943
  set +x
 
61944
  $at_times_p && times >"$at_times_file"
 
61945
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
61946
read at_status <"$at_status_file"
 
61947
#AT_STOP_824
 
61948
#AT_START_825
 
61949
at_fn_group_banner 825 'ovsdb-tool.at:320' \
 
61950
  "ovsdb-tool needs-conversion (conversion needed)" "" 58
 
61951
at_xfail=no
 
61952
(
 
61953
  $as_echo "825. $at_setup_line: testing $at_desc ..."
 
61954
  $at_traceon
 
61955
 
 
61956
 
 
61957
cat >schema <<'_ATEOF'
 
61958
{"name": "ordinals",
 
61959
     "tables": {
 
61960
       "ordinals": {
 
61961
         "columns": {
 
61962
           "number": {"type": "integer"},
 
61963
           "name": {"type": "string"}},
 
61964
         "indexes": [["number"]]}},
 
61965
     "version": "5.1.3",
 
61966
     "cksum": "12345678 9"}
 
61967
_ATEOF
 
61968
 
 
61969
touch .db.~lock~
 
61970
{ set +x
 
61971
$as_echo "$at_srcdir/ovsdb-tool.at:325: ovsdb-tool create db schema"
 
61972
at_fn_check_prepare_trace "ovsdb-tool.at:325"
 
61973
( $at_check_trace; ovsdb-tool create db schema
 
61974
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61975
at_status=$? at_failed=false
 
61976
$at_check_filter
 
61977
echo stderr:; cat "$at_stderr"
 
61978
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
61979
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:325"
 
61980
$at_failed && at_fn_log_failure
 
61981
$at_traceon; }
 
61982
 
 
61983
sed 's/5\.1\.3/5.1.4/' < schema > schema2
 
61984
{ set +x
 
61985
$as_echo "$at_srcdir/ovsdb-tool.at:327: diff schema schema2"
 
61986
at_fn_check_prepare_trace "ovsdb-tool.at:327"
 
61987
( $at_check_trace; diff schema schema2
 
61988
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
61989
at_status=$? at_failed=false
 
61990
$at_check_filter
 
61991
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
61992
echo stdout:; cat "$at_stdout"
 
61993
at_fn_check_status 1 $at_status "$at_srcdir/ovsdb-tool.at:327"
 
61994
$at_failed && at_fn_log_failure
 
61995
$at_traceon; }
 
61996
 
 
61997
{ set +x
 
61998
$as_echo "$at_srcdir/ovsdb-tool.at:328: ovsdb-tool needs-conversion db schema2"
 
61999
at_fn_check_prepare_trace "ovsdb-tool.at:328"
 
62000
( $at_check_trace; ovsdb-tool needs-conversion db schema2
 
62001
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62002
at_status=$? at_failed=false
 
62003
$at_check_filter
 
62004
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
62005
echo >>"$at_stdout"; $as_echo "yes
 
62006
" | \
 
62007
  $at_diff - "$at_stdout" || at_failed=:
 
62008
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-tool.at:328"
 
62009
$at_failed && at_fn_log_failure
 
62010
$at_traceon; }
 
62011
 
 
62012
  set +x
 
62013
  $at_times_p && times >"$at_times_file"
 
62014
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
62015
read at_status <"$at_status_file"
 
62016
#AT_STOP_825
 
62017
#AT_START_826
 
62018
at_fn_group_banner 826 'ovsdb-server.at:39' \
 
62019
  "insert default row, query table" "                " 59
 
62020
at_xfail=no
 
62021
(
 
62022
  $as_echo "826. $at_setup_line: testing $at_desc ..."
 
62023
  $at_traceon
 
62024
 
 
62025
 
 
62026
   cat >schema <<'_ATEOF'
 
62027
{"name": "ordinals",
 
62028
     "tables": {
 
62029
       "ordinals": {
 
62030
         "columns": {
 
62031
           "number": {"type": "integer"},
 
62032
           "name": {"type": "string"}},
 
62033
         "indexes": [["number"]]}},
 
62034
     "version": "5.1.3",
 
62035
     "cksum": "12345678 9"}
 
62036
_ATEOF
 
62037
 
 
62038
   { set +x
 
62039
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
62040
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
62041
( $at_check_trace; ovsdb-tool create db schema
 
62042
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62043
at_status=$? at_failed=false
 
62044
$at_check_filter
 
62045
echo stderr:; cat "$at_stderr"
 
62046
echo stdout:; tee stdout <"$at_stdout"
 
62047
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62048
$at_failed && at_fn_log_failure
 
62049
$at_traceon; }
 
62050
 
 
62051
   { set +x
 
62052
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
62053
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
62054
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
62055
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62056
at_status=$? at_failed=false
 
62057
$at_check_filter
 
62058
echo stderr:; cat "$at_stderr"
 
62059
echo stdout:; cat "$at_stdout"
 
62060
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62061
$at_failed && at_fn_log_failure
 
62062
$at_traceon; }
 
62063
 
 
62064
   { set +x
 
62065
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62066
      {\"op\": \"insert\",
 
62067
       \"table\": \"ordinals\",
 
62068
       \"row\": {}}]'"
 
62069
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62070
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62071
      {"op": "insert",
 
62072
       "table": "ordinals",
 
62073
       "row": {}}]'
 
62074
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62075
at_status=$? at_failed=false
 
62076
$at_check_filter
 
62077
echo stderr:; cat "$at_stderr"
 
62078
echo stdout:; tee stdout <"$at_stdout"
 
62079
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62080
if $at_failed; then :
 
62081
  test ! -e pid || kill `cat pid`
 
62082
fi
 
62083
$at_failed && at_fn_log_failure
 
62084
$at_traceon; }
 
62085
 
 
62086
cat stdout >> output
 
62087
{ set +x
 
62088
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62089
      {\"op\": \"select\",
 
62090
       \"table\": \"ordinals\",
 
62091
       \"where\": []}]'"
 
62092
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62093
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62094
      {"op": "select",
 
62095
       "table": "ordinals",
 
62096
       "where": []}]'
 
62097
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62098
at_status=$? at_failed=false
 
62099
$at_check_filter
 
62100
echo stderr:; cat "$at_stderr"
 
62101
echo stdout:; tee stdout <"$at_stdout"
 
62102
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62103
if $at_failed; then :
 
62104
  test ! -e pid || kill `cat pid`
 
62105
fi
 
62106
$at_failed && at_fn_log_failure
 
62107
$at_traceon; }
 
62108
 
 
62109
cat stdout >> output
 
62110
 
 
62111
   { set +x
 
62112
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
62113
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
62114
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
62115
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62116
at_status=$? at_failed=false
 
62117
$at_check_filter
 
62118
echo stderr:; cat "$at_stderr"
 
62119
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
62120
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"\",\"number\":0}]}]
 
62121
" | \
 
62122
  $at_diff - "$at_stdout" || at_failed=:
 
62123
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62124
if $at_failed; then :
 
62125
  test ! -e pid || kill `cat pid`
 
62126
fi
 
62127
$at_failed && at_fn_log_failure
 
62128
$at_traceon; }
 
62129
 
 
62130
   cp pid savepid
 
62131
   { set +x
 
62132
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
62133
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
62134
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
62135
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62136
at_status=$? at_failed=false
 
62137
$at_check_filter
 
62138
echo stderr:; cat "$at_stderr"
 
62139
echo stdout:; cat "$at_stdout"
 
62140
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62141
$at_failed && at_fn_log_failure
 
62142
$at_traceon; }
 
62143
 
 
62144
   { set +x
 
62145
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
62146
     # in the normal case.  POSIX doesn't require fractional times to
 
62147
     # work, so this might not work.
 
62148
     sleep 0.1
 
62149
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62150
     # Then wait up to 10 seconds.
 
62151
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62152
       sleep 1
 
62153
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62154
     done
 
62155
     exit 1"
 
62156
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
62157
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
62158
     # in the normal case.  POSIX doesn't require fractional times to
 
62159
     # work, so this might not work.
 
62160
     sleep 0.1
 
62161
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
62162
     # Then wait up to 10 seconds.
 
62163
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62164
       sleep 1
 
62165
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
62166
     done
 
62167
     exit 1
 
62168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62169
at_status=$? at_failed=false
 
62170
$at_check_filter
 
62171
echo stderr:; cat "$at_stderr"
 
62172
echo stdout:; cat "$at_stdout"
 
62173
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62174
if $at_failed; then :
 
62175
  kill `cat savepid`
 
62176
fi
 
62177
$at_failed && at_fn_log_failure
 
62178
$at_traceon; }
 
62179
 
 
62180
     set +x
 
62181
  $at_times_p && times >"$at_times_file"
 
62182
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
62183
read at_status <"$at_status_file"
 
62184
#AT_STOP_826
 
62185
#AT_START_827
 
62186
at_fn_group_banner 827 'ovsdb-server.at:39' \
 
62187
  "insert row, query table" "                        " 59
 
62188
at_xfail=no
 
62189
(
 
62190
  $as_echo "827. $at_setup_line: testing $at_desc ..."
 
62191
  $at_traceon
 
62192
 
 
62193
 
 
62194
   cat >schema <<'_ATEOF'
 
62195
{"name": "ordinals",
 
62196
     "tables": {
 
62197
       "ordinals": {
 
62198
         "columns": {
 
62199
           "number": {"type": "integer"},
 
62200
           "name": {"type": "string"}},
 
62201
         "indexes": [["number"]]}},
 
62202
     "version": "5.1.3",
 
62203
     "cksum": "12345678 9"}
 
62204
_ATEOF
 
62205
 
 
62206
   { set +x
 
62207
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
62208
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
62209
( $at_check_trace; ovsdb-tool create db schema
 
62210
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62211
at_status=$? at_failed=false
 
62212
$at_check_filter
 
62213
echo stderr:; cat "$at_stderr"
 
62214
echo stdout:; tee stdout <"$at_stdout"
 
62215
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62216
$at_failed && at_fn_log_failure
 
62217
$at_traceon; }
 
62218
 
 
62219
   { set +x
 
62220
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
62221
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
62222
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
62223
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62224
at_status=$? at_failed=false
 
62225
$at_check_filter
 
62226
echo stderr:; cat "$at_stderr"
 
62227
echo stdout:; cat "$at_stdout"
 
62228
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62229
$at_failed && at_fn_log_failure
 
62230
$at_traceon; }
 
62231
 
 
62232
   { set +x
 
62233
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62234
      {\"op\": \"insert\",
 
62235
       \"table\": \"ordinals\",
 
62236
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]'"
 
62237
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62238
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62239
      {"op": "insert",
 
62240
       "table": "ordinals",
 
62241
       "row": {"number": 0, "name": "zero"}}]'
 
62242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62243
at_status=$? at_failed=false
 
62244
$at_check_filter
 
62245
echo stderr:; cat "$at_stderr"
 
62246
echo stdout:; tee stdout <"$at_stdout"
 
62247
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62248
if $at_failed; then :
 
62249
  test ! -e pid || kill `cat pid`
 
62250
fi
 
62251
$at_failed && at_fn_log_failure
 
62252
$at_traceon; }
 
62253
 
 
62254
cat stdout >> output
 
62255
{ set +x
 
62256
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62257
      {\"op\": \"select\",
 
62258
       \"table\": \"ordinals\",
 
62259
       \"where\": []}]'"
 
62260
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62261
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62262
      {"op": "select",
 
62263
       "table": "ordinals",
 
62264
       "where": []}]'
 
62265
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62266
at_status=$? at_failed=false
 
62267
$at_check_filter
 
62268
echo stderr:; cat "$at_stderr"
 
62269
echo stdout:; tee stdout <"$at_stdout"
 
62270
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62271
if $at_failed; then :
 
62272
  test ! -e pid || kill `cat pid`
 
62273
fi
 
62274
$at_failed && at_fn_log_failure
 
62275
$at_traceon; }
 
62276
 
 
62277
cat stdout >> output
 
62278
 
 
62279
   { set +x
 
62280
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
62281
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
62282
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
62283
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62284
at_status=$? at_failed=false
 
62285
$at_check_filter
 
62286
echo stderr:; cat "$at_stderr"
 
62287
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
62288
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]}]
 
62289
" | \
 
62290
  $at_diff - "$at_stdout" || at_failed=:
 
62291
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62292
if $at_failed; then :
 
62293
  test ! -e pid || kill `cat pid`
 
62294
fi
 
62295
$at_failed && at_fn_log_failure
 
62296
$at_traceon; }
 
62297
 
 
62298
   cp pid savepid
 
62299
   { set +x
 
62300
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
62301
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
62302
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
62303
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62304
at_status=$? at_failed=false
 
62305
$at_check_filter
 
62306
echo stderr:; cat "$at_stderr"
 
62307
echo stdout:; cat "$at_stdout"
 
62308
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62309
$at_failed && at_fn_log_failure
 
62310
$at_traceon; }
 
62311
 
 
62312
   { set +x
 
62313
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
62314
     # in the normal case.  POSIX doesn't require fractional times to
 
62315
     # work, so this might not work.
 
62316
     sleep 0.1
 
62317
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62318
     # Then wait up to 10 seconds.
 
62319
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62320
       sleep 1
 
62321
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62322
     done
 
62323
     exit 1"
 
62324
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
62325
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
62326
     # in the normal case.  POSIX doesn't require fractional times to
 
62327
     # work, so this might not work.
 
62328
     sleep 0.1
 
62329
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
62330
     # Then wait up to 10 seconds.
 
62331
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62332
       sleep 1
 
62333
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
62334
     done
 
62335
     exit 1
 
62336
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62337
at_status=$? at_failed=false
 
62338
$at_check_filter
 
62339
echo stderr:; cat "$at_stderr"
 
62340
echo stdout:; cat "$at_stdout"
 
62341
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62342
if $at_failed; then :
 
62343
  kill `cat savepid`
 
62344
fi
 
62345
$at_failed && at_fn_log_failure
 
62346
$at_traceon; }
 
62347
 
 
62348
     set +x
 
62349
  $at_times_p && times >"$at_times_file"
 
62350
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
62351
read at_status <"$at_status_file"
 
62352
#AT_STOP_827
 
62353
#AT_START_828
 
62354
at_fn_group_banner 828 'ovsdb-server.at:39' \
 
62355
  "insert rows, query by value" "                    " 59
 
62356
at_xfail=no
 
62357
(
 
62358
  $as_echo "828. $at_setup_line: testing $at_desc ..."
 
62359
  $at_traceon
 
62360
 
 
62361
 
 
62362
   cat >schema <<'_ATEOF'
 
62363
{"name": "ordinals",
 
62364
     "tables": {
 
62365
       "ordinals": {
 
62366
         "columns": {
 
62367
           "number": {"type": "integer"},
 
62368
           "name": {"type": "string"}},
 
62369
         "indexes": [["number"]]}},
 
62370
     "version": "5.1.3",
 
62371
     "cksum": "12345678 9"}
 
62372
_ATEOF
 
62373
 
 
62374
   { set +x
 
62375
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
62376
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
62377
( $at_check_trace; ovsdb-tool create db schema
 
62378
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62379
at_status=$? at_failed=false
 
62380
$at_check_filter
 
62381
echo stderr:; cat "$at_stderr"
 
62382
echo stdout:; tee stdout <"$at_stdout"
 
62383
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62384
$at_failed && at_fn_log_failure
 
62385
$at_traceon; }
 
62386
 
 
62387
   { set +x
 
62388
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
62389
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
62390
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
62391
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62392
at_status=$? at_failed=false
 
62393
$at_check_filter
 
62394
echo stderr:; cat "$at_stderr"
 
62395
echo stdout:; cat "$at_stdout"
 
62396
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62397
$at_failed && at_fn_log_failure
 
62398
$at_traceon; }
 
62399
 
 
62400
   { set +x
 
62401
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62402
      {\"op\": \"insert\",
 
62403
       \"table\": \"ordinals\",
 
62404
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]'"
 
62405
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62406
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62407
      {"op": "insert",
 
62408
       "table": "ordinals",
 
62409
       "row": {"number": 0, "name": "zero"}}]'
 
62410
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62411
at_status=$? at_failed=false
 
62412
$at_check_filter
 
62413
echo stderr:; cat "$at_stderr"
 
62414
echo stdout:; tee stdout <"$at_stdout"
 
62415
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62416
if $at_failed; then :
 
62417
  test ! -e pid || kill `cat pid`
 
62418
fi
 
62419
$at_failed && at_fn_log_failure
 
62420
$at_traceon; }
 
62421
 
 
62422
cat stdout >> output
 
62423
{ set +x
 
62424
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62425
      {\"op\": \"insert\",
 
62426
       \"table\": \"ordinals\",
 
62427
       \"row\": {\"number\": 1, \"name\": \"one\"}}]'"
 
62428
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62429
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62430
      {"op": "insert",
 
62431
       "table": "ordinals",
 
62432
       "row": {"number": 1, "name": "one"}}]'
 
62433
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62434
at_status=$? at_failed=false
 
62435
$at_check_filter
 
62436
echo stderr:; cat "$at_stderr"
 
62437
echo stdout:; tee stdout <"$at_stdout"
 
62438
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62439
if $at_failed; then :
 
62440
  test ! -e pid || kill `cat pid`
 
62441
fi
 
62442
$at_failed && at_fn_log_failure
 
62443
$at_traceon; }
 
62444
 
 
62445
cat stdout >> output
 
62446
{ set +x
 
62447
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62448
      {\"op\": \"select\",
 
62449
       \"table\": \"ordinals\",
 
62450
       \"where\": [[\"name\", \"==\", \"zero\"]]}]'"
 
62451
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62452
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62453
      {"op": "select",
 
62454
       "table": "ordinals",
 
62455
       "where": [["name", "==", "zero"]]}]'
 
62456
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62457
at_status=$? at_failed=false
 
62458
$at_check_filter
 
62459
echo stderr:; cat "$at_stderr"
 
62460
echo stdout:; tee stdout <"$at_stdout"
 
62461
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62462
if $at_failed; then :
 
62463
  test ! -e pid || kill `cat pid`
 
62464
fi
 
62465
$at_failed && at_fn_log_failure
 
62466
$at_traceon; }
 
62467
 
 
62468
cat stdout >> output
 
62469
{ set +x
 
62470
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62471
      {\"op\": \"select\",
 
62472
       \"table\": \"ordinals\",
 
62473
       \"where\": [[\"name\", \"==\", \"one\"]]}]'"
 
62474
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62475
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62476
      {"op": "select",
 
62477
       "table": "ordinals",
 
62478
       "where": [["name", "==", "one"]]}]'
 
62479
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62480
at_status=$? at_failed=false
 
62481
$at_check_filter
 
62482
echo stderr:; cat "$at_stderr"
 
62483
echo stdout:; tee stdout <"$at_stdout"
 
62484
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62485
if $at_failed; then :
 
62486
  test ! -e pid || kill `cat pid`
 
62487
fi
 
62488
$at_failed && at_fn_log_failure
 
62489
$at_traceon; }
 
62490
 
 
62491
cat stdout >> output
 
62492
 
 
62493
   { set +x
 
62494
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
62495
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
62496
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
62497
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62498
at_status=$? at_failed=false
 
62499
$at_check_filter
 
62500
echo stderr:; cat "$at_stderr"
 
62501
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
62502
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
62503
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]}]
 
62504
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
62505
" | \
 
62506
  $at_diff - "$at_stdout" || at_failed=:
 
62507
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62508
if $at_failed; then :
 
62509
  test ! -e pid || kill `cat pid`
 
62510
fi
 
62511
$at_failed && at_fn_log_failure
 
62512
$at_traceon; }
 
62513
 
 
62514
   cp pid savepid
 
62515
   { set +x
 
62516
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
62517
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
62518
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
62519
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62520
at_status=$? at_failed=false
 
62521
$at_check_filter
 
62522
echo stderr:; cat "$at_stderr"
 
62523
echo stdout:; cat "$at_stdout"
 
62524
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62525
$at_failed && at_fn_log_failure
 
62526
$at_traceon; }
 
62527
 
 
62528
   { set +x
 
62529
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
62530
     # in the normal case.  POSIX doesn't require fractional times to
 
62531
     # work, so this might not work.
 
62532
     sleep 0.1
 
62533
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62534
     # Then wait up to 10 seconds.
 
62535
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62536
       sleep 1
 
62537
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62538
     done
 
62539
     exit 1"
 
62540
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
62541
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
62542
     # in the normal case.  POSIX doesn't require fractional times to
 
62543
     # work, so this might not work.
 
62544
     sleep 0.1
 
62545
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
62546
     # Then wait up to 10 seconds.
 
62547
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62548
       sleep 1
 
62549
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
62550
     done
 
62551
     exit 1
 
62552
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62553
at_status=$? at_failed=false
 
62554
$at_check_filter
 
62555
echo stderr:; cat "$at_stderr"
 
62556
echo stdout:; cat "$at_stdout"
 
62557
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62558
if $at_failed; then :
 
62559
  kill `cat savepid`
 
62560
fi
 
62561
$at_failed && at_fn_log_failure
 
62562
$at_traceon; }
 
62563
 
 
62564
     set +x
 
62565
  $at_times_p && times >"$at_times_file"
 
62566
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
62567
read at_status <"$at_status_file"
 
62568
#AT_STOP_828
 
62569
#AT_START_829
 
62570
at_fn_group_banner 829 'ovsdb-server.at:39' \
 
62571
  "insert rows, query by named-uuid" "               " 59
 
62572
at_xfail=no
 
62573
(
 
62574
  $as_echo "829. $at_setup_line: testing $at_desc ..."
 
62575
  $at_traceon
 
62576
 
 
62577
 
 
62578
   cat >schema <<'_ATEOF'
 
62579
{"name": "ordinals",
 
62580
     "tables": {
 
62581
       "ordinals": {
 
62582
         "columns": {
 
62583
           "number": {"type": "integer"},
 
62584
           "name": {"type": "string"}},
 
62585
         "indexes": [["number"]]}},
 
62586
     "version": "5.1.3",
 
62587
     "cksum": "12345678 9"}
 
62588
_ATEOF
 
62589
 
 
62590
   { set +x
 
62591
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
62592
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
62593
( $at_check_trace; ovsdb-tool create db schema
 
62594
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62595
at_status=$? at_failed=false
 
62596
$at_check_filter
 
62597
echo stderr:; cat "$at_stderr"
 
62598
echo stdout:; tee stdout <"$at_stdout"
 
62599
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62600
$at_failed && at_fn_log_failure
 
62601
$at_traceon; }
 
62602
 
 
62603
   { set +x
 
62604
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
62605
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
62606
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
62607
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62608
at_status=$? at_failed=false
 
62609
$at_check_filter
 
62610
echo stderr:; cat "$at_stderr"
 
62611
echo stdout:; cat "$at_stdout"
 
62612
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62613
$at_failed && at_fn_log_failure
 
62614
$at_traceon; }
 
62615
 
 
62616
   { set +x
 
62617
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62618
      {\"op\": \"insert\",
 
62619
       \"table\": \"ordinals\",
 
62620
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
62621
       \"uuid-name\": \"first\"},
 
62622
      {\"op\": \"insert\",
 
62623
       \"table\": \"ordinals\",
 
62624
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
62625
       \"uuid-name\": \"second\"},
 
62626
      {\"op\": \"select\",
 
62627
       \"table\": \"ordinals\",
 
62628
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"first\"]]]},
 
62629
      {\"op\": \"select\",
 
62630
       \"table\": \"ordinals\",
 
62631
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"second\"]]]}]'"
 
62632
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62633
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62634
      {"op": "insert",
 
62635
       "table": "ordinals",
 
62636
       "row": {"number": 0, "name": "zero"},
 
62637
       "uuid-name": "first"},
 
62638
      {"op": "insert",
 
62639
       "table": "ordinals",
 
62640
       "row": {"number": 1, "name": "one"},
 
62641
       "uuid-name": "second"},
 
62642
      {"op": "select",
 
62643
       "table": "ordinals",
 
62644
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
62645
      {"op": "select",
 
62646
       "table": "ordinals",
 
62647
       "where": [["_uuid", "==", ["named-uuid", "second"]]]}]'
 
62648
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62649
at_status=$? at_failed=false
 
62650
$at_check_filter
 
62651
echo stderr:; cat "$at_stderr"
 
62652
echo stdout:; tee stdout <"$at_stdout"
 
62653
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62654
if $at_failed; then :
 
62655
  test ! -e pid || kill `cat pid`
 
62656
fi
 
62657
$at_failed && at_fn_log_failure
 
62658
$at_traceon; }
 
62659
 
 
62660
cat stdout >> output
 
62661
 
 
62662
   { set +x
 
62663
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
62664
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
62665
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
62666
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62667
at_status=$? at_failed=false
 
62668
$at_check_filter
 
62669
echo stderr:; cat "$at_stderr"
 
62670
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
62671
" | \
 
62672
  $at_diff - "$at_stdout" || at_failed=:
 
62673
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62674
if $at_failed; then :
 
62675
  test ! -e pid || kill `cat pid`
 
62676
fi
 
62677
$at_failed && at_fn_log_failure
 
62678
$at_traceon; }
 
62679
 
 
62680
   cp pid savepid
 
62681
   { set +x
 
62682
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
62683
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
62684
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
62685
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62686
at_status=$? at_failed=false
 
62687
$at_check_filter
 
62688
echo stderr:; cat "$at_stderr"
 
62689
echo stdout:; cat "$at_stdout"
 
62690
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62691
$at_failed && at_fn_log_failure
 
62692
$at_traceon; }
 
62693
 
 
62694
   { set +x
 
62695
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
62696
     # in the normal case.  POSIX doesn't require fractional times to
 
62697
     # work, so this might not work.
 
62698
     sleep 0.1
 
62699
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62700
     # Then wait up to 10 seconds.
 
62701
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62702
       sleep 1
 
62703
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62704
     done
 
62705
     exit 1"
 
62706
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
62707
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
62708
     # in the normal case.  POSIX doesn't require fractional times to
 
62709
     # work, so this might not work.
 
62710
     sleep 0.1
 
62711
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
62712
     # Then wait up to 10 seconds.
 
62713
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62714
       sleep 1
 
62715
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
62716
     done
 
62717
     exit 1
 
62718
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62719
at_status=$? at_failed=false
 
62720
$at_check_filter
 
62721
echo stderr:; cat "$at_stderr"
 
62722
echo stdout:; cat "$at_stdout"
 
62723
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62724
if $at_failed; then :
 
62725
  kill `cat savepid`
 
62726
fi
 
62727
$at_failed && at_fn_log_failure
 
62728
$at_traceon; }
 
62729
 
 
62730
     set +x
 
62731
  $at_times_p && times >"$at_times_file"
 
62732
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
62733
read at_status <"$at_status_file"
 
62734
#AT_STOP_829
 
62735
#AT_START_830
 
62736
at_fn_group_banner 830 'ovsdb-server.at:39' \
 
62737
  "insert rows, update rows by value" "              " 59
 
62738
at_xfail=no
 
62739
(
 
62740
  $as_echo "830. $at_setup_line: testing $at_desc ..."
 
62741
  $at_traceon
 
62742
 
 
62743
 
 
62744
   cat >schema <<'_ATEOF'
 
62745
{"name": "ordinals",
 
62746
     "tables": {
 
62747
       "ordinals": {
 
62748
         "columns": {
 
62749
           "number": {"type": "integer"},
 
62750
           "name": {"type": "string"}},
 
62751
         "indexes": [["number"]]}},
 
62752
     "version": "5.1.3",
 
62753
     "cksum": "12345678 9"}
 
62754
_ATEOF
 
62755
 
 
62756
   { set +x
 
62757
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
62758
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
62759
( $at_check_trace; ovsdb-tool create db schema
 
62760
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62761
at_status=$? at_failed=false
 
62762
$at_check_filter
 
62763
echo stderr:; cat "$at_stderr"
 
62764
echo stdout:; tee stdout <"$at_stdout"
 
62765
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62766
$at_failed && at_fn_log_failure
 
62767
$at_traceon; }
 
62768
 
 
62769
   { set +x
 
62770
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
62771
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
62772
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
62773
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62774
at_status=$? at_failed=false
 
62775
$at_check_filter
 
62776
echo stderr:; cat "$at_stderr"
 
62777
echo stdout:; cat "$at_stdout"
 
62778
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62779
$at_failed && at_fn_log_failure
 
62780
$at_traceon; }
 
62781
 
 
62782
   { set +x
 
62783
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62784
      {\"op\": \"insert\",
 
62785
       \"table\": \"ordinals\",
 
62786
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
62787
       \"uuid-name\": \"first\"}]'"
 
62788
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62789
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62790
      {"op": "insert",
 
62791
       "table": "ordinals",
 
62792
       "row": {"number": 0, "name": "zero"},
 
62793
       "uuid-name": "first"}]'
 
62794
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62795
at_status=$? at_failed=false
 
62796
$at_check_filter
 
62797
echo stderr:; cat "$at_stderr"
 
62798
echo stdout:; tee stdout <"$at_stdout"
 
62799
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62800
if $at_failed; then :
 
62801
  test ! -e pid || kill `cat pid`
 
62802
fi
 
62803
$at_failed && at_fn_log_failure
 
62804
$at_traceon; }
 
62805
 
 
62806
cat stdout >> output
 
62807
{ set +x
 
62808
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62809
      {\"op\": \"insert\",
 
62810
       \"table\": \"ordinals\",
 
62811
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
62812
       \"uuid-name\": \"first\"}]'"
 
62813
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62814
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62815
      {"op": "insert",
 
62816
       "table": "ordinals",
 
62817
       "row": {"number": 1, "name": "one"},
 
62818
       "uuid-name": "first"}]'
 
62819
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62820
at_status=$? at_failed=false
 
62821
$at_check_filter
 
62822
echo stderr:; cat "$at_stderr"
 
62823
echo stdout:; tee stdout <"$at_stdout"
 
62824
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62825
if $at_failed; then :
 
62826
  test ! -e pid || kill `cat pid`
 
62827
fi
 
62828
$at_failed && at_fn_log_failure
 
62829
$at_traceon; }
 
62830
 
 
62831
cat stdout >> output
 
62832
{ set +x
 
62833
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62834
      {\"op\": \"update\",
 
62835
       \"table\": \"ordinals\",
 
62836
       \"where\": [[\"name\", \"==\", \"zero\"]],
 
62837
       \"row\": {\"name\": \"nought\"}}]'"
 
62838
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62839
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62840
      {"op": "update",
 
62841
       "table": "ordinals",
 
62842
       "where": [["name", "==", "zero"]],
 
62843
       "row": {"name": "nought"}}]'
 
62844
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62845
at_status=$? at_failed=false
 
62846
$at_check_filter
 
62847
echo stderr:; cat "$at_stderr"
 
62848
echo stdout:; tee stdout <"$at_stdout"
 
62849
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62850
if $at_failed; then :
 
62851
  test ! -e pid || kill `cat pid`
 
62852
fi
 
62853
$at_failed && at_fn_log_failure
 
62854
$at_traceon; }
 
62855
 
 
62856
cat stdout >> output
 
62857
{ set +x
 
62858
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
62859
      {\"op\": \"select\",
 
62860
       \"table\": \"ordinals\",
 
62861
       \"where\": [],
 
62862
       \"sort\": [\"number\"]}]'"
 
62863
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
62864
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
62865
      {"op": "select",
 
62866
       "table": "ordinals",
 
62867
       "where": [],
 
62868
       "sort": ["number"]}]'
 
62869
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62870
at_status=$? at_failed=false
 
62871
$at_check_filter
 
62872
echo stderr:; cat "$at_stderr"
 
62873
echo stdout:; tee stdout <"$at_stdout"
 
62874
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62875
if $at_failed; then :
 
62876
  test ! -e pid || kill `cat pid`
 
62877
fi
 
62878
$at_failed && at_fn_log_failure
 
62879
$at_traceon; }
 
62880
 
 
62881
cat stdout >> output
 
62882
 
 
62883
   { set +x
 
62884
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
62885
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
62886
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
62887
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62888
at_status=$? at_failed=false
 
62889
$at_check_filter
 
62890
echo stderr:; cat "$at_stderr"
 
62891
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
62892
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
62893
[{\"count\":1}]
 
62894
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"nought\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
62895
" | \
 
62896
  $at_diff - "$at_stdout" || at_failed=:
 
62897
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62898
if $at_failed; then :
 
62899
  test ! -e pid || kill `cat pid`
 
62900
fi
 
62901
$at_failed && at_fn_log_failure
 
62902
$at_traceon; }
 
62903
 
 
62904
   cp pid savepid
 
62905
   { set +x
 
62906
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
62907
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
62908
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
62909
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62910
at_status=$? at_failed=false
 
62911
$at_check_filter
 
62912
echo stderr:; cat "$at_stderr"
 
62913
echo stdout:; cat "$at_stdout"
 
62914
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62915
$at_failed && at_fn_log_failure
 
62916
$at_traceon; }
 
62917
 
 
62918
   { set +x
 
62919
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
62920
     # in the normal case.  POSIX doesn't require fractional times to
 
62921
     # work, so this might not work.
 
62922
     sleep 0.1
 
62923
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62924
     # Then wait up to 10 seconds.
 
62925
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62926
       sleep 1
 
62927
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
62928
     done
 
62929
     exit 1"
 
62930
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
62931
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
62932
     # in the normal case.  POSIX doesn't require fractional times to
 
62933
     # work, so this might not work.
 
62934
     sleep 0.1
 
62935
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
62936
     # Then wait up to 10 seconds.
 
62937
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
62938
       sleep 1
 
62939
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
62940
     done
 
62941
     exit 1
 
62942
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62943
at_status=$? at_failed=false
 
62944
$at_check_filter
 
62945
echo stderr:; cat "$at_stderr"
 
62946
echo stdout:; cat "$at_stdout"
 
62947
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62948
if $at_failed; then :
 
62949
  kill `cat savepid`
 
62950
fi
 
62951
$at_failed && at_fn_log_failure
 
62952
$at_traceon; }
 
62953
 
 
62954
     set +x
 
62955
  $at_times_p && times >"$at_times_file"
 
62956
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
62957
read at_status <"$at_status_file"
 
62958
#AT_STOP_830
 
62959
#AT_START_831
 
62960
at_fn_group_banner 831 'ovsdb-server.at:39' \
 
62961
  "insert rows, mutate rows" "                       " 59
 
62962
at_xfail=no
 
62963
(
 
62964
  $as_echo "831. $at_setup_line: testing $at_desc ..."
 
62965
  $at_traceon
 
62966
 
 
62967
 
 
62968
   cat >schema <<'_ATEOF'
 
62969
{"name": "ordinals",
 
62970
     "tables": {
 
62971
       "ordinals": {
 
62972
         "columns": {
 
62973
           "number": {"type": "integer"},
 
62974
           "name": {"type": "string"}},
 
62975
         "indexes": [["number"]]}},
 
62976
     "version": "5.1.3",
 
62977
     "cksum": "12345678 9"}
 
62978
_ATEOF
 
62979
 
 
62980
   { set +x
 
62981
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
62982
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
62983
( $at_check_trace; ovsdb-tool create db schema
 
62984
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62985
at_status=$? at_failed=false
 
62986
$at_check_filter
 
62987
echo stderr:; cat "$at_stderr"
 
62988
echo stdout:; tee stdout <"$at_stdout"
 
62989
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
62990
$at_failed && at_fn_log_failure
 
62991
$at_traceon; }
 
62992
 
 
62993
   { set +x
 
62994
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
62995
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
62996
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
62997
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
62998
at_status=$? at_failed=false
 
62999
$at_check_filter
 
63000
echo stderr:; cat "$at_stderr"
 
63001
echo stdout:; cat "$at_stdout"
 
63002
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63003
$at_failed && at_fn_log_failure
 
63004
$at_traceon; }
 
63005
 
 
63006
   { set +x
 
63007
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63008
      {\"op\": \"insert\",
 
63009
       \"table\": \"ordinals\",
 
63010
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
63011
       \"uuid-name\": \"first\"}]'"
 
63012
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63013
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63014
      {"op": "insert",
 
63015
       "table": "ordinals",
 
63016
       "row": {"number": 0, "name": "zero"},
 
63017
       "uuid-name": "first"}]'
 
63018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63019
at_status=$? at_failed=false
 
63020
$at_check_filter
 
63021
echo stderr:; cat "$at_stderr"
 
63022
echo stdout:; tee stdout <"$at_stdout"
 
63023
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63024
if $at_failed; then :
 
63025
  test ! -e pid || kill `cat pid`
 
63026
fi
 
63027
$at_failed && at_fn_log_failure
 
63028
$at_traceon; }
 
63029
 
 
63030
cat stdout >> output
 
63031
{ set +x
 
63032
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63033
      {\"op\": \"insert\",
 
63034
       \"table\": \"ordinals\",
 
63035
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
63036
       \"uuid-name\": \"first\"}]'"
 
63037
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63038
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63039
      {"op": "insert",
 
63040
       "table": "ordinals",
 
63041
       "row": {"number": 1, "name": "one"},
 
63042
       "uuid-name": "first"}]'
 
63043
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63044
at_status=$? at_failed=false
 
63045
$at_check_filter
 
63046
echo stderr:; cat "$at_stderr"
 
63047
echo stdout:; tee stdout <"$at_stdout"
 
63048
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63049
if $at_failed; then :
 
63050
  test ! -e pid || kill `cat pid`
 
63051
fi
 
63052
$at_failed && at_fn_log_failure
 
63053
$at_traceon; }
 
63054
 
 
63055
cat stdout >> output
 
63056
{ set +x
 
63057
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63058
      {\"op\": \"mutate\",
 
63059
       \"table\": \"ordinals\",
 
63060
       \"where\": [[\"name\", \"==\", \"zero\"]],
 
63061
       \"mutations\": [[\"number\", \"+=\", 2]]}]'"
 
63062
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63063
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63064
      {"op": "mutate",
 
63065
       "table": "ordinals",
 
63066
       "where": [["name", "==", "zero"]],
 
63067
       "mutations": [["number", "+=", 2]]}]'
 
63068
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63069
at_status=$? at_failed=false
 
63070
$at_check_filter
 
63071
echo stderr:; cat "$at_stderr"
 
63072
echo stdout:; tee stdout <"$at_stdout"
 
63073
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63074
if $at_failed; then :
 
63075
  test ! -e pid || kill `cat pid`
 
63076
fi
 
63077
$at_failed && at_fn_log_failure
 
63078
$at_traceon; }
 
63079
 
 
63080
cat stdout >> output
 
63081
{ set +x
 
63082
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63083
      {\"op\": \"select\",
 
63084
       \"table\": \"ordinals\",
 
63085
       \"where\": [],
 
63086
       \"sort\": [\"number\"]}]'"
 
63087
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63088
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63089
      {"op": "select",
 
63090
       "table": "ordinals",
 
63091
       "where": [],
 
63092
       "sort": ["number"]}]'
 
63093
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63094
at_status=$? at_failed=false
 
63095
$at_check_filter
 
63096
echo stderr:; cat "$at_stderr"
 
63097
echo stdout:; tee stdout <"$at_stdout"
 
63098
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63099
if $at_failed; then :
 
63100
  test ! -e pid || kill `cat pid`
 
63101
fi
 
63102
$at_failed && at_fn_log_failure
 
63103
$at_traceon; }
 
63104
 
 
63105
cat stdout >> output
 
63106
 
 
63107
   { set +x
 
63108
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
63109
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
63110
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
63111
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63112
at_status=$? at_failed=false
 
63113
$at_check_filter
 
63114
echo stderr:; cat "$at_stderr"
 
63115
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
63116
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
63117
[{\"count\":1}]
 
63118
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1},{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"zero\",\"number\":2}]}]
 
63119
" | \
 
63120
  $at_diff - "$at_stdout" || at_failed=:
 
63121
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63122
if $at_failed; then :
 
63123
  test ! -e pid || kill `cat pid`
 
63124
fi
 
63125
$at_failed && at_fn_log_failure
 
63126
$at_traceon; }
 
63127
 
 
63128
   cp pid savepid
 
63129
   { set +x
 
63130
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
63131
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
63132
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
63133
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63134
at_status=$? at_failed=false
 
63135
$at_check_filter
 
63136
echo stderr:; cat "$at_stderr"
 
63137
echo stdout:; cat "$at_stdout"
 
63138
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63139
$at_failed && at_fn_log_failure
 
63140
$at_traceon; }
 
63141
 
 
63142
   { set +x
 
63143
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
63144
     # in the normal case.  POSIX doesn't require fractional times to
 
63145
     # work, so this might not work.
 
63146
     sleep 0.1
 
63147
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63148
     # Then wait up to 10 seconds.
 
63149
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63150
       sleep 1
 
63151
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63152
     done
 
63153
     exit 1"
 
63154
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
63155
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
63156
     # in the normal case.  POSIX doesn't require fractional times to
 
63157
     # work, so this might not work.
 
63158
     sleep 0.1
 
63159
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
63160
     # Then wait up to 10 seconds.
 
63161
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63162
       sleep 1
 
63163
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
63164
     done
 
63165
     exit 1
 
63166
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63167
at_status=$? at_failed=false
 
63168
$at_check_filter
 
63169
echo stderr:; cat "$at_stderr"
 
63170
echo stdout:; cat "$at_stdout"
 
63171
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63172
if $at_failed; then :
 
63173
  kill `cat savepid`
 
63174
fi
 
63175
$at_failed && at_fn_log_failure
 
63176
$at_traceon; }
 
63177
 
 
63178
     set +x
 
63179
  $at_times_p && times >"$at_times_file"
 
63180
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
63181
read at_status <"$at_status_file"
 
63182
#AT_STOP_831
 
63183
#AT_START_832
 
63184
at_fn_group_banner 832 'ovsdb-server.at:39' \
 
63185
  "insert rows, delete by named-uuid" "              " 59
 
63186
at_xfail=no
 
63187
(
 
63188
  $as_echo "832. $at_setup_line: testing $at_desc ..."
 
63189
  $at_traceon
 
63190
 
 
63191
 
 
63192
   cat >schema <<'_ATEOF'
 
63193
{"name": "ordinals",
 
63194
     "tables": {
 
63195
       "ordinals": {
 
63196
         "columns": {
 
63197
           "number": {"type": "integer"},
 
63198
           "name": {"type": "string"}},
 
63199
         "indexes": [["number"]]}},
 
63200
     "version": "5.1.3",
 
63201
     "cksum": "12345678 9"}
 
63202
_ATEOF
 
63203
 
 
63204
   { set +x
 
63205
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
63206
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
63207
( $at_check_trace; ovsdb-tool create db schema
 
63208
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63209
at_status=$? at_failed=false
 
63210
$at_check_filter
 
63211
echo stderr:; cat "$at_stderr"
 
63212
echo stdout:; tee stdout <"$at_stdout"
 
63213
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63214
$at_failed && at_fn_log_failure
 
63215
$at_traceon; }
 
63216
 
 
63217
   { set +x
 
63218
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
63219
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
63220
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
63221
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63222
at_status=$? at_failed=false
 
63223
$at_check_filter
 
63224
echo stderr:; cat "$at_stderr"
 
63225
echo stdout:; cat "$at_stdout"
 
63226
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63227
$at_failed && at_fn_log_failure
 
63228
$at_traceon; }
 
63229
 
 
63230
   { set +x
 
63231
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63232
      {\"op\": \"insert\",
 
63233
       \"table\": \"ordinals\",
 
63234
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
63235
       \"uuid-name\": \"first\"},
 
63236
      {\"op\": \"insert\",
 
63237
       \"table\": \"ordinals\",
 
63238
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
63239
       \"uuid-name\": \"second\"},
 
63240
      {\"op\": \"delete\",
 
63241
       \"table\": \"ordinals\",
 
63242
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"first\"]]]},
 
63243
      {\"op\": \"select\",
 
63244
       \"table\": \"ordinals\",
 
63245
       \"where\": [],
 
63246
       \"columns\": [\"name\",\"number\"]}]'"
 
63247
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63248
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63249
      {"op": "insert",
 
63250
       "table": "ordinals",
 
63251
       "row": {"number": 0, "name": "zero"},
 
63252
       "uuid-name": "first"},
 
63253
      {"op": "insert",
 
63254
       "table": "ordinals",
 
63255
       "row": {"number": 1, "name": "one"},
 
63256
       "uuid-name": "second"},
 
63257
      {"op": "delete",
 
63258
       "table": "ordinals",
 
63259
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
63260
      {"op": "select",
 
63261
       "table": "ordinals",
 
63262
       "where": [],
 
63263
       "columns": ["name","number"]}]'
 
63264
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63265
at_status=$? at_failed=false
 
63266
$at_check_filter
 
63267
echo stderr:; cat "$at_stderr"
 
63268
echo stdout:; tee stdout <"$at_stdout"
 
63269
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63270
if $at_failed; then :
 
63271
  test ! -e pid || kill `cat pid`
 
63272
fi
 
63273
$at_failed && at_fn_log_failure
 
63274
$at_traceon; }
 
63275
 
 
63276
cat stdout >> output
 
63277
 
 
63278
   { set +x
 
63279
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
63280
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
63281
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
63282
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63283
at_status=$? at_failed=false
 
63284
$at_check_filter
 
63285
echo stderr:; cat "$at_stderr"
 
63286
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":1},{\"rows\":[{\"name\":\"one\",\"number\":1}]}]
 
63287
" | \
 
63288
  $at_diff - "$at_stdout" || at_failed=:
 
63289
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63290
if $at_failed; then :
 
63291
  test ! -e pid || kill `cat pid`
 
63292
fi
 
63293
$at_failed && at_fn_log_failure
 
63294
$at_traceon; }
 
63295
 
 
63296
   cp pid savepid
 
63297
   { set +x
 
63298
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
63299
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
63300
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
63301
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63302
at_status=$? at_failed=false
 
63303
$at_check_filter
 
63304
echo stderr:; cat "$at_stderr"
 
63305
echo stdout:; cat "$at_stdout"
 
63306
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63307
$at_failed && at_fn_log_failure
 
63308
$at_traceon; }
 
63309
 
 
63310
   { set +x
 
63311
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
63312
     # in the normal case.  POSIX doesn't require fractional times to
 
63313
     # work, so this might not work.
 
63314
     sleep 0.1
 
63315
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63316
     # Then wait up to 10 seconds.
 
63317
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63318
       sleep 1
 
63319
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63320
     done
 
63321
     exit 1"
 
63322
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
63323
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
63324
     # in the normal case.  POSIX doesn't require fractional times to
 
63325
     # work, so this might not work.
 
63326
     sleep 0.1
 
63327
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
63328
     # Then wait up to 10 seconds.
 
63329
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63330
       sleep 1
 
63331
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
63332
     done
 
63333
     exit 1
 
63334
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63335
at_status=$? at_failed=false
 
63336
$at_check_filter
 
63337
echo stderr:; cat "$at_stderr"
 
63338
echo stdout:; cat "$at_stdout"
 
63339
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63340
if $at_failed; then :
 
63341
  kill `cat savepid`
 
63342
fi
 
63343
$at_failed && at_fn_log_failure
 
63344
$at_traceon; }
 
63345
 
 
63346
     set +x
 
63347
  $at_times_p && times >"$at_times_file"
 
63348
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
63349
read at_status <"$at_status_file"
 
63350
#AT_STOP_832
 
63351
#AT_START_833
 
63352
at_fn_group_banner 833 'ovsdb-server.at:39' \
 
63353
  "insert rows, delete rows by value" "              " 59
 
63354
at_xfail=no
 
63355
(
 
63356
  $as_echo "833. $at_setup_line: testing $at_desc ..."
 
63357
  $at_traceon
 
63358
 
 
63359
 
 
63360
   cat >schema <<'_ATEOF'
 
63361
{"name": "ordinals",
 
63362
     "tables": {
 
63363
       "ordinals": {
 
63364
         "columns": {
 
63365
           "number": {"type": "integer"},
 
63366
           "name": {"type": "string"}},
 
63367
         "indexes": [["number"]]}},
 
63368
     "version": "5.1.3",
 
63369
     "cksum": "12345678 9"}
 
63370
_ATEOF
 
63371
 
 
63372
   { set +x
 
63373
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
63374
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
63375
( $at_check_trace; ovsdb-tool create db schema
 
63376
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63377
at_status=$? at_failed=false
 
63378
$at_check_filter
 
63379
echo stderr:; cat "$at_stderr"
 
63380
echo stdout:; tee stdout <"$at_stdout"
 
63381
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63382
$at_failed && at_fn_log_failure
 
63383
$at_traceon; }
 
63384
 
 
63385
   { set +x
 
63386
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
63387
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
63388
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
63389
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63390
at_status=$? at_failed=false
 
63391
$at_check_filter
 
63392
echo stderr:; cat "$at_stderr"
 
63393
echo stdout:; cat "$at_stdout"
 
63394
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63395
$at_failed && at_fn_log_failure
 
63396
$at_traceon; }
 
63397
 
 
63398
   { set +x
 
63399
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63400
      {\"op\": \"insert\",
 
63401
       \"table\": \"ordinals\",
 
63402
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
63403
       \"uuid-name\": \"first\"}]'"
 
63404
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63405
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63406
      {"op": "insert",
 
63407
       "table": "ordinals",
 
63408
       "row": {"number": 0, "name": "zero"},
 
63409
       "uuid-name": "first"}]'
 
63410
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63411
at_status=$? at_failed=false
 
63412
$at_check_filter
 
63413
echo stderr:; cat "$at_stderr"
 
63414
echo stdout:; tee stdout <"$at_stdout"
 
63415
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63416
if $at_failed; then :
 
63417
  test ! -e pid || kill `cat pid`
 
63418
fi
 
63419
$at_failed && at_fn_log_failure
 
63420
$at_traceon; }
 
63421
 
 
63422
cat stdout >> output
 
63423
{ set +x
 
63424
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63425
      {\"op\": \"insert\",
 
63426
       \"table\": \"ordinals\",
 
63427
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
63428
       \"uuid-name\": \"first\"}]'"
 
63429
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63430
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63431
      {"op": "insert",
 
63432
       "table": "ordinals",
 
63433
       "row": {"number": 1, "name": "one"},
 
63434
       "uuid-name": "first"}]'
 
63435
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63436
at_status=$? at_failed=false
 
63437
$at_check_filter
 
63438
echo stderr:; cat "$at_stderr"
 
63439
echo stdout:; tee stdout <"$at_stdout"
 
63440
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63441
if $at_failed; then :
 
63442
  test ! -e pid || kill `cat pid`
 
63443
fi
 
63444
$at_failed && at_fn_log_failure
 
63445
$at_traceon; }
 
63446
 
 
63447
cat stdout >> output
 
63448
{ set +x
 
63449
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63450
      {\"op\": \"delete\",
 
63451
       \"table\": \"ordinals\",
 
63452
       \"where\": [[\"name\", \"==\", \"zero\"]]}]'"
 
63453
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63454
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63455
      {"op": "delete",
 
63456
       "table": "ordinals",
 
63457
       "where": [["name", "==", "zero"]]}]'
 
63458
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63459
at_status=$? at_failed=false
 
63460
$at_check_filter
 
63461
echo stderr:; cat "$at_stderr"
 
63462
echo stdout:; tee stdout <"$at_stdout"
 
63463
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63464
if $at_failed; then :
 
63465
  test ! -e pid || kill `cat pid`
 
63466
fi
 
63467
$at_failed && at_fn_log_failure
 
63468
$at_traceon; }
 
63469
 
 
63470
cat stdout >> output
 
63471
{ set +x
 
63472
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63473
      {\"op\": \"select\",
 
63474
       \"table\": \"ordinals\",
 
63475
       \"where\": []}]'"
 
63476
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63477
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63478
      {"op": "select",
 
63479
       "table": "ordinals",
 
63480
       "where": []}]'
 
63481
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63482
at_status=$? at_failed=false
 
63483
$at_check_filter
 
63484
echo stderr:; cat "$at_stderr"
 
63485
echo stdout:; tee stdout <"$at_stdout"
 
63486
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63487
if $at_failed; then :
 
63488
  test ! -e pid || kill `cat pid`
 
63489
fi
 
63490
$at_failed && at_fn_log_failure
 
63491
$at_traceon; }
 
63492
 
 
63493
cat stdout >> output
 
63494
 
 
63495
   { set +x
 
63496
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
63497
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
63498
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
63499
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63500
at_status=$? at_failed=false
 
63501
$at_check_filter
 
63502
echo stderr:; cat "$at_stderr"
 
63503
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
63504
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
63505
[{\"count\":1}]
 
63506
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1}]}]
 
63507
" | \
 
63508
  $at_diff - "$at_stdout" || at_failed=:
 
63509
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63510
if $at_failed; then :
 
63511
  test ! -e pid || kill `cat pid`
 
63512
fi
 
63513
$at_failed && at_fn_log_failure
 
63514
$at_traceon; }
 
63515
 
 
63516
   cp pid savepid
 
63517
   { set +x
 
63518
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
63519
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
63520
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
63521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63522
at_status=$? at_failed=false
 
63523
$at_check_filter
 
63524
echo stderr:; cat "$at_stderr"
 
63525
echo stdout:; cat "$at_stdout"
 
63526
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63527
$at_failed && at_fn_log_failure
 
63528
$at_traceon; }
 
63529
 
 
63530
   { set +x
 
63531
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
63532
     # in the normal case.  POSIX doesn't require fractional times to
 
63533
     # work, so this might not work.
 
63534
     sleep 0.1
 
63535
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63536
     # Then wait up to 10 seconds.
 
63537
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63538
       sleep 1
 
63539
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63540
     done
 
63541
     exit 1"
 
63542
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
63543
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
63544
     # in the normal case.  POSIX doesn't require fractional times to
 
63545
     # work, so this might not work.
 
63546
     sleep 0.1
 
63547
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
63548
     # Then wait up to 10 seconds.
 
63549
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63550
       sleep 1
 
63551
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
63552
     done
 
63553
     exit 1
 
63554
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63555
at_status=$? at_failed=false
 
63556
$at_check_filter
 
63557
echo stderr:; cat "$at_stderr"
 
63558
echo stdout:; cat "$at_stdout"
 
63559
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63560
if $at_failed; then :
 
63561
  kill `cat savepid`
 
63562
fi
 
63563
$at_failed && at_fn_log_failure
 
63564
$at_traceon; }
 
63565
 
 
63566
     set +x
 
63567
  $at_times_p && times >"$at_times_file"
 
63568
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
63569
read at_status <"$at_status_file"
 
63570
#AT_STOP_833
 
63571
#AT_START_834
 
63572
at_fn_group_banner 834 'ovsdb-server.at:39' \
 
63573
  "insert rows, delete by (non-matching) value" "    " 59
 
63574
at_xfail=no
 
63575
(
 
63576
  $as_echo "834. $at_setup_line: testing $at_desc ..."
 
63577
  $at_traceon
 
63578
 
 
63579
 
 
63580
   cat >schema <<'_ATEOF'
 
63581
{"name": "ordinals",
 
63582
     "tables": {
 
63583
       "ordinals": {
 
63584
         "columns": {
 
63585
           "number": {"type": "integer"},
 
63586
           "name": {"type": "string"}},
 
63587
         "indexes": [["number"]]}},
 
63588
     "version": "5.1.3",
 
63589
     "cksum": "12345678 9"}
 
63590
_ATEOF
 
63591
 
 
63592
   { set +x
 
63593
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
63594
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
63595
( $at_check_trace; ovsdb-tool create db schema
 
63596
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63597
at_status=$? at_failed=false
 
63598
$at_check_filter
 
63599
echo stderr:; cat "$at_stderr"
 
63600
echo stdout:; tee stdout <"$at_stdout"
 
63601
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63602
$at_failed && at_fn_log_failure
 
63603
$at_traceon; }
 
63604
 
 
63605
   { set +x
 
63606
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
63607
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
63608
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
63609
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63610
at_status=$? at_failed=false
 
63611
$at_check_filter
 
63612
echo stderr:; cat "$at_stderr"
 
63613
echo stdout:; cat "$at_stdout"
 
63614
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63615
$at_failed && at_fn_log_failure
 
63616
$at_traceon; }
 
63617
 
 
63618
   { set +x
 
63619
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63620
      {\"op\": \"insert\",
 
63621
       \"table\": \"ordinals\",
 
63622
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
63623
       \"uuid-name\": \"first\"}]'"
 
63624
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63625
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63626
      {"op": "insert",
 
63627
       "table": "ordinals",
 
63628
       "row": {"number": 0, "name": "zero"},
 
63629
       "uuid-name": "first"}]'
 
63630
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63631
at_status=$? at_failed=false
 
63632
$at_check_filter
 
63633
echo stderr:; cat "$at_stderr"
 
63634
echo stdout:; tee stdout <"$at_stdout"
 
63635
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63636
if $at_failed; then :
 
63637
  test ! -e pid || kill `cat pid`
 
63638
fi
 
63639
$at_failed && at_fn_log_failure
 
63640
$at_traceon; }
 
63641
 
 
63642
cat stdout >> output
 
63643
{ set +x
 
63644
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63645
      {\"op\": \"insert\",
 
63646
       \"table\": \"ordinals\",
 
63647
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
63648
       \"uuid-name\": \"first\"}]'"
 
63649
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63650
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63651
      {"op": "insert",
 
63652
       "table": "ordinals",
 
63653
       "row": {"number": 1, "name": "one"},
 
63654
       "uuid-name": "first"}]'
 
63655
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63656
at_status=$? at_failed=false
 
63657
$at_check_filter
 
63658
echo stderr:; cat "$at_stderr"
 
63659
echo stdout:; tee stdout <"$at_stdout"
 
63660
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63661
if $at_failed; then :
 
63662
  test ! -e pid || kill `cat pid`
 
63663
fi
 
63664
$at_failed && at_fn_log_failure
 
63665
$at_traceon; }
 
63666
 
 
63667
cat stdout >> output
 
63668
{ set +x
 
63669
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63670
      {\"op\": \"delete\",
 
63671
       \"table\": \"ordinals\",
 
63672
       \"where\": [[\"name\", \"==\", \"nought\"]]}]'"
 
63673
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63674
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63675
      {"op": "delete",
 
63676
       "table": "ordinals",
 
63677
       "where": [["name", "==", "nought"]]}]'
 
63678
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63679
at_status=$? at_failed=false
 
63680
$at_check_filter
 
63681
echo stderr:; cat "$at_stderr"
 
63682
echo stdout:; tee stdout <"$at_stdout"
 
63683
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63684
if $at_failed; then :
 
63685
  test ! -e pid || kill `cat pid`
 
63686
fi
 
63687
$at_failed && at_fn_log_failure
 
63688
$at_traceon; }
 
63689
 
 
63690
cat stdout >> output
 
63691
{ set +x
 
63692
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63693
      {\"op\": \"select\",
 
63694
       \"table\": \"ordinals\",
 
63695
       \"where\": [],
 
63696
       \"sort\": [\"number\"]}]'"
 
63697
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63698
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63699
      {"op": "select",
 
63700
       "table": "ordinals",
 
63701
       "where": [],
 
63702
       "sort": ["number"]}]'
 
63703
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63704
at_status=$? at_failed=false
 
63705
$at_check_filter
 
63706
echo stderr:; cat "$at_stderr"
 
63707
echo stdout:; tee stdout <"$at_stdout"
 
63708
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63709
if $at_failed; then :
 
63710
  test ! -e pid || kill `cat pid`
 
63711
fi
 
63712
$at_failed && at_fn_log_failure
 
63713
$at_traceon; }
 
63714
 
 
63715
cat stdout >> output
 
63716
 
 
63717
   { set +x
 
63718
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
63719
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
63720
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
63721
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63722
at_status=$? at_failed=false
 
63723
$at_check_filter
 
63724
echo stderr:; cat "$at_stderr"
 
63725
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
63726
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
63727
[{\"count\":0}]
 
63728
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
63729
" | \
 
63730
  $at_diff - "$at_stdout" || at_failed=:
 
63731
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63732
if $at_failed; then :
 
63733
  test ! -e pid || kill `cat pid`
 
63734
fi
 
63735
$at_failed && at_fn_log_failure
 
63736
$at_traceon; }
 
63737
 
 
63738
   cp pid savepid
 
63739
   { set +x
 
63740
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
63741
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
63742
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
63743
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63744
at_status=$? at_failed=false
 
63745
$at_check_filter
 
63746
echo stderr:; cat "$at_stderr"
 
63747
echo stdout:; cat "$at_stdout"
 
63748
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63749
$at_failed && at_fn_log_failure
 
63750
$at_traceon; }
 
63751
 
 
63752
   { set +x
 
63753
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
63754
     # in the normal case.  POSIX doesn't require fractional times to
 
63755
     # work, so this might not work.
 
63756
     sleep 0.1
 
63757
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63758
     # Then wait up to 10 seconds.
 
63759
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63760
       sleep 1
 
63761
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63762
     done
 
63763
     exit 1"
 
63764
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
63765
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
63766
     # in the normal case.  POSIX doesn't require fractional times to
 
63767
     # work, so this might not work.
 
63768
     sleep 0.1
 
63769
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
63770
     # Then wait up to 10 seconds.
 
63771
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63772
       sleep 1
 
63773
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
63774
     done
 
63775
     exit 1
 
63776
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63777
at_status=$? at_failed=false
 
63778
$at_check_filter
 
63779
echo stderr:; cat "$at_stderr"
 
63780
echo stdout:; cat "$at_stdout"
 
63781
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63782
if $at_failed; then :
 
63783
  kill `cat savepid`
 
63784
fi
 
63785
$at_failed && at_fn_log_failure
 
63786
$at_traceon; }
 
63787
 
 
63788
     set +x
 
63789
  $at_times_p && times >"$at_times_file"
 
63790
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
63791
read at_status <"$at_status_file"
 
63792
#AT_STOP_834
 
63793
#AT_START_835
 
63794
at_fn_group_banner 835 'ovsdb-server.at:39' \
 
63795
  "insert rows, delete all" "                        " 59
 
63796
at_xfail=no
 
63797
(
 
63798
  $as_echo "835. $at_setup_line: testing $at_desc ..."
 
63799
  $at_traceon
 
63800
 
 
63801
 
 
63802
   cat >schema <<'_ATEOF'
 
63803
{"name": "ordinals",
 
63804
     "tables": {
 
63805
       "ordinals": {
 
63806
         "columns": {
 
63807
           "number": {"type": "integer"},
 
63808
           "name": {"type": "string"}},
 
63809
         "indexes": [["number"]]}},
 
63810
     "version": "5.1.3",
 
63811
     "cksum": "12345678 9"}
 
63812
_ATEOF
 
63813
 
 
63814
   { set +x
 
63815
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
63816
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
63817
( $at_check_trace; ovsdb-tool create db schema
 
63818
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63819
at_status=$? at_failed=false
 
63820
$at_check_filter
 
63821
echo stderr:; cat "$at_stderr"
 
63822
echo stdout:; tee stdout <"$at_stdout"
 
63823
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63824
$at_failed && at_fn_log_failure
 
63825
$at_traceon; }
 
63826
 
 
63827
   { set +x
 
63828
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
63829
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
63830
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
63831
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63832
at_status=$? at_failed=false
 
63833
$at_check_filter
 
63834
echo stderr:; cat "$at_stderr"
 
63835
echo stdout:; cat "$at_stdout"
 
63836
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63837
$at_failed && at_fn_log_failure
 
63838
$at_traceon; }
 
63839
 
 
63840
   { set +x
 
63841
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
63842
      {\"op\": \"insert\",
 
63843
       \"table\": \"ordinals\",
 
63844
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
63845
       \"uuid-name\": \"first\"},
 
63846
      {\"op\": \"insert\",
 
63847
       \"table\": \"ordinals\",
 
63848
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
63849
       \"uuid-name\": \"second\"},
 
63850
      {\"op\": \"delete\",
 
63851
       \"table\": \"ordinals\",
 
63852
       \"where\": []},
 
63853
      {\"op\": \"select\",
 
63854
       \"table\": \"ordinals\",
 
63855
       \"where\": [],
 
63856
       \"columns\": [\"name\",\"number\"]}]'"
 
63857
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
63858
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
63859
      {"op": "insert",
 
63860
       "table": "ordinals",
 
63861
       "row": {"number": 0, "name": "zero"},
 
63862
       "uuid-name": "first"},
 
63863
      {"op": "insert",
 
63864
       "table": "ordinals",
 
63865
       "row": {"number": 1, "name": "one"},
 
63866
       "uuid-name": "second"},
 
63867
      {"op": "delete",
 
63868
       "table": "ordinals",
 
63869
       "where": []},
 
63870
      {"op": "select",
 
63871
       "table": "ordinals",
 
63872
       "where": [],
 
63873
       "columns": ["name","number"]}]'
 
63874
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63875
at_status=$? at_failed=false
 
63876
$at_check_filter
 
63877
echo stderr:; cat "$at_stderr"
 
63878
echo stdout:; tee stdout <"$at_stdout"
 
63879
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63880
if $at_failed; then :
 
63881
  test ! -e pid || kill `cat pid`
 
63882
fi
 
63883
$at_failed && at_fn_log_failure
 
63884
$at_traceon; }
 
63885
 
 
63886
cat stdout >> output
 
63887
 
 
63888
   { set +x
 
63889
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
63890
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
63891
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
63892
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63893
at_status=$? at_failed=false
 
63894
$at_check_filter
 
63895
echo stderr:; cat "$at_stderr"
 
63896
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":2},{\"rows\":[]}]
 
63897
" | \
 
63898
  $at_diff - "$at_stdout" || at_failed=:
 
63899
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63900
if $at_failed; then :
 
63901
  test ! -e pid || kill `cat pid`
 
63902
fi
 
63903
$at_failed && at_fn_log_failure
 
63904
$at_traceon; }
 
63905
 
 
63906
   cp pid savepid
 
63907
   { set +x
 
63908
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
63909
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
63910
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
63911
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63912
at_status=$? at_failed=false
 
63913
$at_check_filter
 
63914
echo stderr:; cat "$at_stderr"
 
63915
echo stdout:; cat "$at_stdout"
 
63916
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63917
$at_failed && at_fn_log_failure
 
63918
$at_traceon; }
 
63919
 
 
63920
   { set +x
 
63921
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
63922
     # in the normal case.  POSIX doesn't require fractional times to
 
63923
     # work, so this might not work.
 
63924
     sleep 0.1
 
63925
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63926
     # Then wait up to 10 seconds.
 
63927
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63928
       sleep 1
 
63929
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
63930
     done
 
63931
     exit 1"
 
63932
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
63933
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
63934
     # in the normal case.  POSIX doesn't require fractional times to
 
63935
     # work, so this might not work.
 
63936
     sleep 0.1
 
63937
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
63938
     # Then wait up to 10 seconds.
 
63939
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
63940
       sleep 1
 
63941
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
63942
     done
 
63943
     exit 1
 
63944
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63945
at_status=$? at_failed=false
 
63946
$at_check_filter
 
63947
echo stderr:; cat "$at_stderr"
 
63948
echo stdout:; cat "$at_stdout"
 
63949
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63950
if $at_failed; then :
 
63951
  kill `cat savepid`
 
63952
fi
 
63953
$at_failed && at_fn_log_failure
 
63954
$at_traceon; }
 
63955
 
 
63956
     set +x
 
63957
  $at_times_p && times >"$at_times_file"
 
63958
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
63959
read at_status <"$at_status_file"
 
63960
#AT_STOP_835
 
63961
#AT_START_836
 
63962
at_fn_group_banner 836 'ovsdb-server.at:39' \
 
63963
  "insert row, query table, commit" "                " 59
 
63964
at_xfail=no
 
63965
(
 
63966
  $as_echo "836. $at_setup_line: testing $at_desc ..."
 
63967
  $at_traceon
 
63968
 
 
63969
 
 
63970
   cat >schema <<'_ATEOF'
 
63971
{"name": "ordinals",
 
63972
     "tables": {
 
63973
       "ordinals": {
 
63974
         "columns": {
 
63975
           "number": {"type": "integer"},
 
63976
           "name": {"type": "string"}},
 
63977
         "indexes": [["number"]]}},
 
63978
     "version": "5.1.3",
 
63979
     "cksum": "12345678 9"}
 
63980
_ATEOF
 
63981
 
 
63982
   { set +x
 
63983
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
63984
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
63985
( $at_check_trace; ovsdb-tool create db schema
 
63986
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
63987
at_status=$? at_failed=false
 
63988
$at_check_filter
 
63989
echo stderr:; cat "$at_stderr"
 
63990
echo stdout:; tee stdout <"$at_stdout"
 
63991
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
63992
$at_failed && at_fn_log_failure
 
63993
$at_traceon; }
 
63994
 
 
63995
   { set +x
 
63996
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
63997
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
63998
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
63999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64000
at_status=$? at_failed=false
 
64001
$at_check_filter
 
64002
echo stderr:; cat "$at_stderr"
 
64003
echo stdout:; cat "$at_stdout"
 
64004
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64005
$at_failed && at_fn_log_failure
 
64006
$at_traceon; }
 
64007
 
 
64008
   { set +x
 
64009
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
64010
      {\"op\": \"insert\",
 
64011
       \"table\": \"ordinals\",
 
64012
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
64013
      {\"op\": \"select\",
 
64014
       \"table\": \"ordinals\",
 
64015
       \"where\": []},
 
64016
      {\"op\": \"commit\",
 
64017
       \"durable\": false}]'"
 
64018
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
64019
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
64020
      {"op": "insert",
 
64021
       "table": "ordinals",
 
64022
       "row": {"number": 0, "name": "zero"}},
 
64023
      {"op": "select",
 
64024
       "table": "ordinals",
 
64025
       "where": []},
 
64026
      {"op": "commit",
 
64027
       "durable": false}]'
 
64028
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64029
at_status=$? at_failed=false
 
64030
$at_check_filter
 
64031
echo stderr:; cat "$at_stderr"
 
64032
echo stdout:; tee stdout <"$at_stdout"
 
64033
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64034
if $at_failed; then :
 
64035
  test ! -e pid || kill `cat pid`
 
64036
fi
 
64037
$at_failed && at_fn_log_failure
 
64038
$at_traceon; }
 
64039
 
 
64040
cat stdout >> output
 
64041
 
 
64042
   { set +x
 
64043
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
64044
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
64045
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
64046
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64047
at_status=$? at_failed=false
 
64048
$at_check_filter
 
64049
echo stderr:; cat "$at_stderr"
 
64050
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
64051
" | \
 
64052
  $at_diff - "$at_stdout" || at_failed=:
 
64053
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64054
if $at_failed; then :
 
64055
  test ! -e pid || kill `cat pid`
 
64056
fi
 
64057
$at_failed && at_fn_log_failure
 
64058
$at_traceon; }
 
64059
 
 
64060
   cp pid savepid
 
64061
   { set +x
 
64062
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
64063
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
64064
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
64065
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64066
at_status=$? at_failed=false
 
64067
$at_check_filter
 
64068
echo stderr:; cat "$at_stderr"
 
64069
echo stdout:; cat "$at_stdout"
 
64070
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64071
$at_failed && at_fn_log_failure
 
64072
$at_traceon; }
 
64073
 
 
64074
   { set +x
 
64075
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
64076
     # in the normal case.  POSIX doesn't require fractional times to
 
64077
     # work, so this might not work.
 
64078
     sleep 0.1
 
64079
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64080
     # Then wait up to 10 seconds.
 
64081
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64082
       sleep 1
 
64083
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64084
     done
 
64085
     exit 1"
 
64086
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
64087
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
64088
     # in the normal case.  POSIX doesn't require fractional times to
 
64089
     # work, so this might not work.
 
64090
     sleep 0.1
 
64091
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
64092
     # Then wait up to 10 seconds.
 
64093
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64094
       sleep 1
 
64095
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
64096
     done
 
64097
     exit 1
 
64098
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64099
at_status=$? at_failed=false
 
64100
$at_check_filter
 
64101
echo stderr:; cat "$at_stderr"
 
64102
echo stdout:; cat "$at_stdout"
 
64103
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64104
if $at_failed; then :
 
64105
  kill `cat savepid`
 
64106
fi
 
64107
$at_failed && at_fn_log_failure
 
64108
$at_traceon; }
 
64109
 
 
64110
     set +x
 
64111
  $at_times_p && times >"$at_times_file"
 
64112
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
64113
read at_status <"$at_status_file"
 
64114
#AT_STOP_836
 
64115
#AT_START_837
 
64116
at_fn_group_banner 837 'ovsdb-server.at:39' \
 
64117
  "insert row, query table, commit durably" "        " 59
 
64118
at_xfail=no
 
64119
(
 
64120
  $as_echo "837. $at_setup_line: testing $at_desc ..."
 
64121
  $at_traceon
 
64122
 
 
64123
 
 
64124
   cat >schema <<'_ATEOF'
 
64125
{"name": "ordinals",
 
64126
     "tables": {
 
64127
       "ordinals": {
 
64128
         "columns": {
 
64129
           "number": {"type": "integer"},
 
64130
           "name": {"type": "string"}},
 
64131
         "indexes": [["number"]]}},
 
64132
     "version": "5.1.3",
 
64133
     "cksum": "12345678 9"}
 
64134
_ATEOF
 
64135
 
 
64136
   { set +x
 
64137
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
64138
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
64139
( $at_check_trace; ovsdb-tool create db schema
 
64140
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64141
at_status=$? at_failed=false
 
64142
$at_check_filter
 
64143
echo stderr:; cat "$at_stderr"
 
64144
echo stdout:; tee stdout <"$at_stdout"
 
64145
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64146
$at_failed && at_fn_log_failure
 
64147
$at_traceon; }
 
64148
 
 
64149
   { set +x
 
64150
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
64151
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
64152
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
64153
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64154
at_status=$? at_failed=false
 
64155
$at_check_filter
 
64156
echo stderr:; cat "$at_stderr"
 
64157
echo stdout:; cat "$at_stdout"
 
64158
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64159
$at_failed && at_fn_log_failure
 
64160
$at_traceon; }
 
64161
 
 
64162
   { set +x
 
64163
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
64164
      {\"op\": \"insert\",
 
64165
       \"table\": \"ordinals\",
 
64166
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
64167
      {\"op\": \"select\",
 
64168
       \"table\": \"ordinals\",
 
64169
       \"where\": []},
 
64170
      {\"op\": \"commit\",
 
64171
       \"durable\": true}]'"
 
64172
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
64173
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
64174
      {"op": "insert",
 
64175
       "table": "ordinals",
 
64176
       "row": {"number": 0, "name": "zero"}},
 
64177
      {"op": "select",
 
64178
       "table": "ordinals",
 
64179
       "where": []},
 
64180
      {"op": "commit",
 
64181
       "durable": true}]'
 
64182
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64183
at_status=$? at_failed=false
 
64184
$at_check_filter
 
64185
echo stderr:; cat "$at_stderr"
 
64186
echo stdout:; tee stdout <"$at_stdout"
 
64187
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64188
if $at_failed; then :
 
64189
  test ! -e pid || kill `cat pid`
 
64190
fi
 
64191
$at_failed && at_fn_log_failure
 
64192
$at_traceon; }
 
64193
 
 
64194
cat stdout >> output
 
64195
 
 
64196
   { set +x
 
64197
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
64198
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
64199
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
64200
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64201
at_status=$? at_failed=false
 
64202
$at_check_filter
 
64203
echo stderr:; cat "$at_stderr"
 
64204
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
64205
" | \
 
64206
  $at_diff - "$at_stdout" || at_failed=:
 
64207
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64208
if $at_failed; then :
 
64209
  test ! -e pid || kill `cat pid`
 
64210
fi
 
64211
$at_failed && at_fn_log_failure
 
64212
$at_traceon; }
 
64213
 
 
64214
   cp pid savepid
 
64215
   { set +x
 
64216
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
64217
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
64218
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
64219
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64220
at_status=$? at_failed=false
 
64221
$at_check_filter
 
64222
echo stderr:; cat "$at_stderr"
 
64223
echo stdout:; cat "$at_stdout"
 
64224
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64225
$at_failed && at_fn_log_failure
 
64226
$at_traceon; }
 
64227
 
 
64228
   { set +x
 
64229
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
64230
     # in the normal case.  POSIX doesn't require fractional times to
 
64231
     # work, so this might not work.
 
64232
     sleep 0.1
 
64233
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64234
     # Then wait up to 10 seconds.
 
64235
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64236
       sleep 1
 
64237
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64238
     done
 
64239
     exit 1"
 
64240
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
64241
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
64242
     # in the normal case.  POSIX doesn't require fractional times to
 
64243
     # work, so this might not work.
 
64244
     sleep 0.1
 
64245
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
64246
     # Then wait up to 10 seconds.
 
64247
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64248
       sleep 1
 
64249
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
64250
     done
 
64251
     exit 1
 
64252
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64253
at_status=$? at_failed=false
 
64254
$at_check_filter
 
64255
echo stderr:; cat "$at_stderr"
 
64256
echo stdout:; cat "$at_stdout"
 
64257
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64258
if $at_failed; then :
 
64259
  kill `cat savepid`
 
64260
fi
 
64261
$at_failed && at_fn_log_failure
 
64262
$at_traceon; }
 
64263
 
 
64264
     set +x
 
64265
  $at_times_p && times >"$at_times_file"
 
64266
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
64267
read at_status <"$at_status_file"
 
64268
#AT_STOP_837
 
64269
#AT_START_838
 
64270
at_fn_group_banner 838 'ovsdb-server.at:39' \
 
64271
  "equality wait with correct rows" "                " 59
 
64272
at_xfail=no
 
64273
(
 
64274
  $as_echo "838. $at_setup_line: testing $at_desc ..."
 
64275
  $at_traceon
 
64276
 
 
64277
 
 
64278
   cat >schema <<'_ATEOF'
 
64279
{"name": "ordinals",
 
64280
     "tables": {
 
64281
       "ordinals": {
 
64282
         "columns": {
 
64283
           "number": {"type": "integer"},
 
64284
           "name": {"type": "string"}},
 
64285
         "indexes": [["number"]]}},
 
64286
     "version": "5.1.3",
 
64287
     "cksum": "12345678 9"}
 
64288
_ATEOF
 
64289
 
 
64290
   { set +x
 
64291
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
64292
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
64293
( $at_check_trace; ovsdb-tool create db schema
 
64294
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64295
at_status=$? at_failed=false
 
64296
$at_check_filter
 
64297
echo stderr:; cat "$at_stderr"
 
64298
echo stdout:; tee stdout <"$at_stdout"
 
64299
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64300
$at_failed && at_fn_log_failure
 
64301
$at_traceon; }
 
64302
 
 
64303
   { set +x
 
64304
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
64305
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
64306
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
64307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64308
at_status=$? at_failed=false
 
64309
$at_check_filter
 
64310
echo stderr:; cat "$at_stderr"
 
64311
echo stdout:; cat "$at_stdout"
 
64312
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64313
$at_failed && at_fn_log_failure
 
64314
$at_traceon; }
 
64315
 
 
64316
   { set +x
 
64317
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
64318
      {\"op\": \"insert\",
 
64319
       \"table\": \"ordinals\",
 
64320
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
64321
      {\"op\": \"insert\",
 
64322
       \"table\": \"ordinals\",
 
64323
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
64324
      {\"op\": \"wait\",
 
64325
       \"timeout\": 0,
 
64326
       \"table\": \"ordinals\",
 
64327
       \"where\": [],
 
64328
       \"columns\": [\"name\", \"number\"],
 
64329
       \"until\": \"==\",
 
64330
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
64331
                {\"name\": \"one\", \"number\": 1}]}]'"
 
64332
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
64333
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
64334
      {"op": "insert",
 
64335
       "table": "ordinals",
 
64336
       "row": {"number": 0, "name": "zero"}},
 
64337
      {"op": "insert",
 
64338
       "table": "ordinals",
 
64339
       "row": {"number": 1, "name": "one"}},
 
64340
      {"op": "wait",
 
64341
       "timeout": 0,
 
64342
       "table": "ordinals",
 
64343
       "where": [],
 
64344
       "columns": ["name", "number"],
 
64345
       "until": "==",
 
64346
       "rows": [{"name": "zero", "number": 0},
 
64347
                {"name": "one", "number": 1}]}]'
 
64348
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64349
at_status=$? at_failed=false
 
64350
$at_check_filter
 
64351
echo stderr:; cat "$at_stderr"
 
64352
echo stdout:; tee stdout <"$at_stdout"
 
64353
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64354
if $at_failed; then :
 
64355
  test ! -e pid || kill `cat pid`
 
64356
fi
 
64357
$at_failed && at_fn_log_failure
 
64358
$at_traceon; }
 
64359
 
 
64360
cat stdout >> output
 
64361
 
 
64362
   { set +x
 
64363
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
64364
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
64365
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
64366
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64367
at_status=$? at_failed=false
 
64368
$at_check_filter
 
64369
echo stderr:; cat "$at_stderr"
 
64370
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
64371
" | \
 
64372
  $at_diff - "$at_stdout" || at_failed=:
 
64373
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64374
if $at_failed; then :
 
64375
  test ! -e pid || kill `cat pid`
 
64376
fi
 
64377
$at_failed && at_fn_log_failure
 
64378
$at_traceon; }
 
64379
 
 
64380
   cp pid savepid
 
64381
   { set +x
 
64382
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
64383
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
64384
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
64385
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64386
at_status=$? at_failed=false
 
64387
$at_check_filter
 
64388
echo stderr:; cat "$at_stderr"
 
64389
echo stdout:; cat "$at_stdout"
 
64390
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64391
$at_failed && at_fn_log_failure
 
64392
$at_traceon; }
 
64393
 
 
64394
   { set +x
 
64395
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
64396
     # in the normal case.  POSIX doesn't require fractional times to
 
64397
     # work, so this might not work.
 
64398
     sleep 0.1
 
64399
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64400
     # Then wait up to 10 seconds.
 
64401
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64402
       sleep 1
 
64403
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64404
     done
 
64405
     exit 1"
 
64406
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
64407
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
64408
     # in the normal case.  POSIX doesn't require fractional times to
 
64409
     # work, so this might not work.
 
64410
     sleep 0.1
 
64411
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
64412
     # Then wait up to 10 seconds.
 
64413
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64414
       sleep 1
 
64415
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
64416
     done
 
64417
     exit 1
 
64418
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64419
at_status=$? at_failed=false
 
64420
$at_check_filter
 
64421
echo stderr:; cat "$at_stderr"
 
64422
echo stdout:; cat "$at_stdout"
 
64423
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64424
if $at_failed; then :
 
64425
  kill `cat savepid`
 
64426
fi
 
64427
$at_failed && at_fn_log_failure
 
64428
$at_traceon; }
 
64429
 
 
64430
     set +x
 
64431
  $at_times_p && times >"$at_times_file"
 
64432
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
64433
read at_status <"$at_status_file"
 
64434
#AT_STOP_838
 
64435
#AT_START_839
 
64436
at_fn_group_banner 839 'ovsdb-server.at:39' \
 
64437
  "equality wait with extra row" "                   " 59
 
64438
at_xfail=no
 
64439
(
 
64440
  $as_echo "839. $at_setup_line: testing $at_desc ..."
 
64441
  $at_traceon
 
64442
 
 
64443
 
 
64444
   cat >schema <<'_ATEOF'
 
64445
{"name": "ordinals",
 
64446
     "tables": {
 
64447
       "ordinals": {
 
64448
         "columns": {
 
64449
           "number": {"type": "integer"},
 
64450
           "name": {"type": "string"}},
 
64451
         "indexes": [["number"]]}},
 
64452
     "version": "5.1.3",
 
64453
     "cksum": "12345678 9"}
 
64454
_ATEOF
 
64455
 
 
64456
   { set +x
 
64457
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
64458
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
64459
( $at_check_trace; ovsdb-tool create db schema
 
64460
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64461
at_status=$? at_failed=false
 
64462
$at_check_filter
 
64463
echo stderr:; cat "$at_stderr"
 
64464
echo stdout:; tee stdout <"$at_stdout"
 
64465
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64466
$at_failed && at_fn_log_failure
 
64467
$at_traceon; }
 
64468
 
 
64469
   { set +x
 
64470
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
64471
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
64472
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
64473
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64474
at_status=$? at_failed=false
 
64475
$at_check_filter
 
64476
echo stderr:; cat "$at_stderr"
 
64477
echo stdout:; cat "$at_stdout"
 
64478
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64479
$at_failed && at_fn_log_failure
 
64480
$at_traceon; }
 
64481
 
 
64482
   { set +x
 
64483
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
64484
      {\"op\": \"insert\",
 
64485
       \"table\": \"ordinals\",
 
64486
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
64487
      {\"op\": \"insert\",
 
64488
       \"table\": \"ordinals\",
 
64489
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
64490
      {\"op\": \"wait\",
 
64491
       \"timeout\": 0,
 
64492
       \"table\": \"ordinals\",
 
64493
       \"where\": [],
 
64494
       \"columns\": [\"name\", \"number\"],
 
64495
       \"until\": \"==\",
 
64496
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
64497
                {\"name\": \"one\", \"number\": 1},
 
64498
                {\"name\": \"two\", \"number\": 2}]}]'"
 
64499
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
64500
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
64501
      {"op": "insert",
 
64502
       "table": "ordinals",
 
64503
       "row": {"number": 0, "name": "zero"}},
 
64504
      {"op": "insert",
 
64505
       "table": "ordinals",
 
64506
       "row": {"number": 1, "name": "one"}},
 
64507
      {"op": "wait",
 
64508
       "timeout": 0,
 
64509
       "table": "ordinals",
 
64510
       "where": [],
 
64511
       "columns": ["name", "number"],
 
64512
       "until": "==",
 
64513
       "rows": [{"name": "zero", "number": 0},
 
64514
                {"name": "one", "number": 1},
 
64515
                {"name": "two", "number": 2}]}]'
 
64516
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64517
at_status=$? at_failed=false
 
64518
$at_check_filter
 
64519
echo stderr:; cat "$at_stderr"
 
64520
echo stdout:; tee stdout <"$at_stdout"
 
64521
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64522
if $at_failed; then :
 
64523
  test ! -e pid || kill `cat pid`
 
64524
fi
 
64525
$at_failed && at_fn_log_failure
 
64526
$at_traceon; }
 
64527
 
 
64528
cat stdout >> output
 
64529
 
 
64530
   { set +x
 
64531
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
64532
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
64533
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
64534
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64535
at_status=$? at_failed=false
 
64536
$at_check_filter
 
64537
echo stderr:; cat "$at_stderr"
 
64538
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
64539
" | \
 
64540
  $at_diff - "$at_stdout" || at_failed=:
 
64541
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64542
if $at_failed; then :
 
64543
  test ! -e pid || kill `cat pid`
 
64544
fi
 
64545
$at_failed && at_fn_log_failure
 
64546
$at_traceon; }
 
64547
 
 
64548
   cp pid savepid
 
64549
   { set +x
 
64550
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
64551
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
64552
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
64553
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64554
at_status=$? at_failed=false
 
64555
$at_check_filter
 
64556
echo stderr:; cat "$at_stderr"
 
64557
echo stdout:; cat "$at_stdout"
 
64558
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64559
$at_failed && at_fn_log_failure
 
64560
$at_traceon; }
 
64561
 
 
64562
   { set +x
 
64563
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
64564
     # in the normal case.  POSIX doesn't require fractional times to
 
64565
     # work, so this might not work.
 
64566
     sleep 0.1
 
64567
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64568
     # Then wait up to 10 seconds.
 
64569
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64570
       sleep 1
 
64571
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64572
     done
 
64573
     exit 1"
 
64574
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
64575
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
64576
     # in the normal case.  POSIX doesn't require fractional times to
 
64577
     # work, so this might not work.
 
64578
     sleep 0.1
 
64579
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
64580
     # Then wait up to 10 seconds.
 
64581
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64582
       sleep 1
 
64583
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
64584
     done
 
64585
     exit 1
 
64586
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64587
at_status=$? at_failed=false
 
64588
$at_check_filter
 
64589
echo stderr:; cat "$at_stderr"
 
64590
echo stdout:; cat "$at_stdout"
 
64591
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64592
if $at_failed; then :
 
64593
  kill `cat savepid`
 
64594
fi
 
64595
$at_failed && at_fn_log_failure
 
64596
$at_traceon; }
 
64597
 
 
64598
     set +x
 
64599
  $at_times_p && times >"$at_times_file"
 
64600
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
64601
read at_status <"$at_status_file"
 
64602
#AT_STOP_839
 
64603
#AT_START_840
 
64604
at_fn_group_banner 840 'ovsdb-server.at:39' \
 
64605
  "equality wait with missing row" "                 " 59
 
64606
at_xfail=no
 
64607
(
 
64608
  $as_echo "840. $at_setup_line: testing $at_desc ..."
 
64609
  $at_traceon
 
64610
 
 
64611
 
 
64612
   cat >schema <<'_ATEOF'
 
64613
{"name": "ordinals",
 
64614
     "tables": {
 
64615
       "ordinals": {
 
64616
         "columns": {
 
64617
           "number": {"type": "integer"},
 
64618
           "name": {"type": "string"}},
 
64619
         "indexes": [["number"]]}},
 
64620
     "version": "5.1.3",
 
64621
     "cksum": "12345678 9"}
 
64622
_ATEOF
 
64623
 
 
64624
   { set +x
 
64625
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
64626
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
64627
( $at_check_trace; ovsdb-tool create db schema
 
64628
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64629
at_status=$? at_failed=false
 
64630
$at_check_filter
 
64631
echo stderr:; cat "$at_stderr"
 
64632
echo stdout:; tee stdout <"$at_stdout"
 
64633
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64634
$at_failed && at_fn_log_failure
 
64635
$at_traceon; }
 
64636
 
 
64637
   { set +x
 
64638
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
64639
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
64640
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
64641
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64642
at_status=$? at_failed=false
 
64643
$at_check_filter
 
64644
echo stderr:; cat "$at_stderr"
 
64645
echo stdout:; cat "$at_stdout"
 
64646
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64647
$at_failed && at_fn_log_failure
 
64648
$at_traceon; }
 
64649
 
 
64650
   { set +x
 
64651
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
64652
      {\"op\": \"insert\",
 
64653
       \"table\": \"ordinals\",
 
64654
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
64655
      {\"op\": \"insert\",
 
64656
       \"table\": \"ordinals\",
 
64657
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
64658
      {\"op\": \"wait\",
 
64659
       \"timeout\": 0,
 
64660
       \"table\": \"ordinals\",
 
64661
       \"where\": [],
 
64662
       \"columns\": [\"name\", \"number\"],
 
64663
       \"until\": \"==\",
 
64664
       \"rows\": [{\"name\": \"one\", \"number\": 1}]}]'"
 
64665
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
64666
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
64667
      {"op": "insert",
 
64668
       "table": "ordinals",
 
64669
       "row": {"number": 0, "name": "zero"}},
 
64670
      {"op": "insert",
 
64671
       "table": "ordinals",
 
64672
       "row": {"number": 1, "name": "one"}},
 
64673
      {"op": "wait",
 
64674
       "timeout": 0,
 
64675
       "table": "ordinals",
 
64676
       "where": [],
 
64677
       "columns": ["name", "number"],
 
64678
       "until": "==",
 
64679
       "rows": [{"name": "one", "number": 1}]}]'
 
64680
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64681
at_status=$? at_failed=false
 
64682
$at_check_filter
 
64683
echo stderr:; cat "$at_stderr"
 
64684
echo stdout:; tee stdout <"$at_stdout"
 
64685
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64686
if $at_failed; then :
 
64687
  test ! -e pid || kill `cat pid`
 
64688
fi
 
64689
$at_failed && at_fn_log_failure
 
64690
$at_traceon; }
 
64691
 
 
64692
cat stdout >> output
 
64693
 
 
64694
   { set +x
 
64695
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
64696
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
64697
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
64698
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64699
at_status=$? at_failed=false
 
64700
$at_check_filter
 
64701
echo stderr:; cat "$at_stderr"
 
64702
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
64703
" | \
 
64704
  $at_diff - "$at_stdout" || at_failed=:
 
64705
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64706
if $at_failed; then :
 
64707
  test ! -e pid || kill `cat pid`
 
64708
fi
 
64709
$at_failed && at_fn_log_failure
 
64710
$at_traceon; }
 
64711
 
 
64712
   cp pid savepid
 
64713
   { set +x
 
64714
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
64715
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
64716
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
64717
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64718
at_status=$? at_failed=false
 
64719
$at_check_filter
 
64720
echo stderr:; cat "$at_stderr"
 
64721
echo stdout:; cat "$at_stdout"
 
64722
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64723
$at_failed && at_fn_log_failure
 
64724
$at_traceon; }
 
64725
 
 
64726
   { set +x
 
64727
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
64728
     # in the normal case.  POSIX doesn't require fractional times to
 
64729
     # work, so this might not work.
 
64730
     sleep 0.1
 
64731
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64732
     # Then wait up to 10 seconds.
 
64733
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64734
       sleep 1
 
64735
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64736
     done
 
64737
     exit 1"
 
64738
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
64739
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
64740
     # in the normal case.  POSIX doesn't require fractional times to
 
64741
     # work, so this might not work.
 
64742
     sleep 0.1
 
64743
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
64744
     # Then wait up to 10 seconds.
 
64745
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64746
       sleep 1
 
64747
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
64748
     done
 
64749
     exit 1
 
64750
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64751
at_status=$? at_failed=false
 
64752
$at_check_filter
 
64753
echo stderr:; cat "$at_stderr"
 
64754
echo stdout:; cat "$at_stdout"
 
64755
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64756
if $at_failed; then :
 
64757
  kill `cat savepid`
 
64758
fi
 
64759
$at_failed && at_fn_log_failure
 
64760
$at_traceon; }
 
64761
 
 
64762
     set +x
 
64763
  $at_times_p && times >"$at_times_file"
 
64764
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
64765
read at_status <"$at_status_file"
 
64766
#AT_STOP_840
 
64767
#AT_START_841
 
64768
at_fn_group_banner 841 'ovsdb-server.at:39' \
 
64769
  "inequality wait with correct rows" "              " 59
 
64770
at_xfail=no
 
64771
(
 
64772
  $as_echo "841. $at_setup_line: testing $at_desc ..."
 
64773
  $at_traceon
 
64774
 
 
64775
 
 
64776
   cat >schema <<'_ATEOF'
 
64777
{"name": "ordinals",
 
64778
     "tables": {
 
64779
       "ordinals": {
 
64780
         "columns": {
 
64781
           "number": {"type": "integer"},
 
64782
           "name": {"type": "string"}},
 
64783
         "indexes": [["number"]]}},
 
64784
     "version": "5.1.3",
 
64785
     "cksum": "12345678 9"}
 
64786
_ATEOF
 
64787
 
 
64788
   { set +x
 
64789
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
64790
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
64791
( $at_check_trace; ovsdb-tool create db schema
 
64792
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64793
at_status=$? at_failed=false
 
64794
$at_check_filter
 
64795
echo stderr:; cat "$at_stderr"
 
64796
echo stdout:; tee stdout <"$at_stdout"
 
64797
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64798
$at_failed && at_fn_log_failure
 
64799
$at_traceon; }
 
64800
 
 
64801
   { set +x
 
64802
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
64803
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
64804
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
64805
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64806
at_status=$? at_failed=false
 
64807
$at_check_filter
 
64808
echo stderr:; cat "$at_stderr"
 
64809
echo stdout:; cat "$at_stdout"
 
64810
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64811
$at_failed && at_fn_log_failure
 
64812
$at_traceon; }
 
64813
 
 
64814
   { set +x
 
64815
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
64816
      {\"op\": \"insert\",
 
64817
       \"table\": \"ordinals\",
 
64818
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
64819
      {\"op\": \"insert\",
 
64820
       \"table\": \"ordinals\",
 
64821
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
64822
      {\"op\": \"wait\",
 
64823
       \"timeout\": 0,
 
64824
       \"table\": \"ordinals\",
 
64825
       \"where\": [],
 
64826
       \"columns\": [\"name\", \"number\"],
 
64827
       \"until\": \"!=\",
 
64828
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
64829
                {\"name\": \"one\", \"number\": 1}]}]'"
 
64830
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
64831
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
64832
      {"op": "insert",
 
64833
       "table": "ordinals",
 
64834
       "row": {"number": 0, "name": "zero"}},
 
64835
      {"op": "insert",
 
64836
       "table": "ordinals",
 
64837
       "row": {"number": 1, "name": "one"}},
 
64838
      {"op": "wait",
 
64839
       "timeout": 0,
 
64840
       "table": "ordinals",
 
64841
       "where": [],
 
64842
       "columns": ["name", "number"],
 
64843
       "until": "!=",
 
64844
       "rows": [{"name": "zero", "number": 0},
 
64845
                {"name": "one", "number": 1}]}]'
 
64846
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64847
at_status=$? at_failed=false
 
64848
$at_check_filter
 
64849
echo stderr:; cat "$at_stderr"
 
64850
echo stdout:; tee stdout <"$at_stdout"
 
64851
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64852
if $at_failed; then :
 
64853
  test ! -e pid || kill `cat pid`
 
64854
fi
 
64855
$at_failed && at_fn_log_failure
 
64856
$at_traceon; }
 
64857
 
 
64858
cat stdout >> output
 
64859
 
 
64860
   { set +x
 
64861
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
64862
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
64863
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
64864
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64865
at_status=$? at_failed=false
 
64866
$at_check_filter
 
64867
echo stderr:; cat "$at_stderr"
 
64868
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
64869
" | \
 
64870
  $at_diff - "$at_stdout" || at_failed=:
 
64871
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64872
if $at_failed; then :
 
64873
  test ! -e pid || kill `cat pid`
 
64874
fi
 
64875
$at_failed && at_fn_log_failure
 
64876
$at_traceon; }
 
64877
 
 
64878
   cp pid savepid
 
64879
   { set +x
 
64880
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
64881
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
64882
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
64883
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64884
at_status=$? at_failed=false
 
64885
$at_check_filter
 
64886
echo stderr:; cat "$at_stderr"
 
64887
echo stdout:; cat "$at_stdout"
 
64888
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64889
$at_failed && at_fn_log_failure
 
64890
$at_traceon; }
 
64891
 
 
64892
   { set +x
 
64893
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
64894
     # in the normal case.  POSIX doesn't require fractional times to
 
64895
     # work, so this might not work.
 
64896
     sleep 0.1
 
64897
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64898
     # Then wait up to 10 seconds.
 
64899
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64900
       sleep 1
 
64901
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
64902
     done
 
64903
     exit 1"
 
64904
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
64905
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
64906
     # in the normal case.  POSIX doesn't require fractional times to
 
64907
     # work, so this might not work.
 
64908
     sleep 0.1
 
64909
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
64910
     # Then wait up to 10 seconds.
 
64911
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
64912
       sleep 1
 
64913
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
64914
     done
 
64915
     exit 1
 
64916
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64917
at_status=$? at_failed=false
 
64918
$at_check_filter
 
64919
echo stderr:; cat "$at_stderr"
 
64920
echo stdout:; cat "$at_stdout"
 
64921
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64922
if $at_failed; then :
 
64923
  kill `cat savepid`
 
64924
fi
 
64925
$at_failed && at_fn_log_failure
 
64926
$at_traceon; }
 
64927
 
 
64928
     set +x
 
64929
  $at_times_p && times >"$at_times_file"
 
64930
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
64931
read at_status <"$at_status_file"
 
64932
#AT_STOP_841
 
64933
#AT_START_842
 
64934
at_fn_group_banner 842 'ovsdb-server.at:39' \
 
64935
  "inequality wait with extra row" "                 " 59
 
64936
at_xfail=no
 
64937
(
 
64938
  $as_echo "842. $at_setup_line: testing $at_desc ..."
 
64939
  $at_traceon
 
64940
 
 
64941
 
 
64942
   cat >schema <<'_ATEOF'
 
64943
{"name": "ordinals",
 
64944
     "tables": {
 
64945
       "ordinals": {
 
64946
         "columns": {
 
64947
           "number": {"type": "integer"},
 
64948
           "name": {"type": "string"}},
 
64949
         "indexes": [["number"]]}},
 
64950
     "version": "5.1.3",
 
64951
     "cksum": "12345678 9"}
 
64952
_ATEOF
 
64953
 
 
64954
   { set +x
 
64955
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
64956
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
64957
( $at_check_trace; ovsdb-tool create db schema
 
64958
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64959
at_status=$? at_failed=false
 
64960
$at_check_filter
 
64961
echo stderr:; cat "$at_stderr"
 
64962
echo stdout:; tee stdout <"$at_stdout"
 
64963
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64964
$at_failed && at_fn_log_failure
 
64965
$at_traceon; }
 
64966
 
 
64967
   { set +x
 
64968
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
64969
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
64970
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
64971
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
64972
at_status=$? at_failed=false
 
64973
$at_check_filter
 
64974
echo stderr:; cat "$at_stderr"
 
64975
echo stdout:; cat "$at_stdout"
 
64976
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
64977
$at_failed && at_fn_log_failure
 
64978
$at_traceon; }
 
64979
 
 
64980
   { set +x
 
64981
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
64982
      {\"op\": \"insert\",
 
64983
       \"table\": \"ordinals\",
 
64984
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
64985
      {\"op\": \"insert\",
 
64986
       \"table\": \"ordinals\",
 
64987
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
64988
      {\"op\": \"wait\",
 
64989
       \"timeout\": 0,
 
64990
       \"table\": \"ordinals\",
 
64991
       \"where\": [],
 
64992
       \"columns\": [\"name\", \"number\"],
 
64993
       \"until\": \"!=\",
 
64994
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
64995
                {\"name\": \"one\", \"number\": 1},
 
64996
                {\"name\": \"two\", \"number\": 2}]}]'"
 
64997
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
64998
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
64999
      {"op": "insert",
 
65000
       "table": "ordinals",
 
65001
       "row": {"number": 0, "name": "zero"}},
 
65002
      {"op": "insert",
 
65003
       "table": "ordinals",
 
65004
       "row": {"number": 1, "name": "one"}},
 
65005
      {"op": "wait",
 
65006
       "timeout": 0,
 
65007
       "table": "ordinals",
 
65008
       "where": [],
 
65009
       "columns": ["name", "number"],
 
65010
       "until": "!=",
 
65011
       "rows": [{"name": "zero", "number": 0},
 
65012
                {"name": "one", "number": 1},
 
65013
                {"name": "two", "number": 2}]}]'
 
65014
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65015
at_status=$? at_failed=false
 
65016
$at_check_filter
 
65017
echo stderr:; cat "$at_stderr"
 
65018
echo stdout:; tee stdout <"$at_stdout"
 
65019
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65020
if $at_failed; then :
 
65021
  test ! -e pid || kill `cat pid`
 
65022
fi
 
65023
$at_failed && at_fn_log_failure
 
65024
$at_traceon; }
 
65025
 
 
65026
cat stdout >> output
 
65027
 
 
65028
   { set +x
 
65029
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
65030
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
65031
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
65032
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65033
at_status=$? at_failed=false
 
65034
$at_check_filter
 
65035
echo stderr:; cat "$at_stderr"
 
65036
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
65037
" | \
 
65038
  $at_diff - "$at_stdout" || at_failed=:
 
65039
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65040
if $at_failed; then :
 
65041
  test ! -e pid || kill `cat pid`
 
65042
fi
 
65043
$at_failed && at_fn_log_failure
 
65044
$at_traceon; }
 
65045
 
 
65046
   cp pid savepid
 
65047
   { set +x
 
65048
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
65049
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
65050
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
65051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65052
at_status=$? at_failed=false
 
65053
$at_check_filter
 
65054
echo stderr:; cat "$at_stderr"
 
65055
echo stdout:; cat "$at_stdout"
 
65056
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65057
$at_failed && at_fn_log_failure
 
65058
$at_traceon; }
 
65059
 
 
65060
   { set +x
 
65061
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
65062
     # in the normal case.  POSIX doesn't require fractional times to
 
65063
     # work, so this might not work.
 
65064
     sleep 0.1
 
65065
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
65066
     # Then wait up to 10 seconds.
 
65067
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
65068
       sleep 1
 
65069
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
65070
     done
 
65071
     exit 1"
 
65072
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
65073
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
65074
     # in the normal case.  POSIX doesn't require fractional times to
 
65075
     # work, so this might not work.
 
65076
     sleep 0.1
 
65077
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
65078
     # Then wait up to 10 seconds.
 
65079
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
65080
       sleep 1
 
65081
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
65082
     done
 
65083
     exit 1
 
65084
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65085
at_status=$? at_failed=false
 
65086
$at_check_filter
 
65087
echo stderr:; cat "$at_stderr"
 
65088
echo stdout:; cat "$at_stdout"
 
65089
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65090
if $at_failed; then :
 
65091
  kill `cat savepid`
 
65092
fi
 
65093
$at_failed && at_fn_log_failure
 
65094
$at_traceon; }
 
65095
 
 
65096
     set +x
 
65097
  $at_times_p && times >"$at_times_file"
 
65098
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
65099
read at_status <"$at_status_file"
 
65100
#AT_STOP_842
 
65101
#AT_START_843
 
65102
at_fn_group_banner 843 'ovsdb-server.at:39' \
 
65103
  "inequality wait with missing row" "               " 59
 
65104
at_xfail=no
 
65105
(
 
65106
  $as_echo "843. $at_setup_line: testing $at_desc ..."
 
65107
  $at_traceon
 
65108
 
 
65109
 
 
65110
   cat >schema <<'_ATEOF'
 
65111
{"name": "ordinals",
 
65112
     "tables": {
 
65113
       "ordinals": {
 
65114
         "columns": {
 
65115
           "number": {"type": "integer"},
 
65116
           "name": {"type": "string"}},
 
65117
         "indexes": [["number"]]}},
 
65118
     "version": "5.1.3",
 
65119
     "cksum": "12345678 9"}
 
65120
_ATEOF
 
65121
 
 
65122
   { set +x
 
65123
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
65124
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
65125
( $at_check_trace; ovsdb-tool create db schema
 
65126
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65127
at_status=$? at_failed=false
 
65128
$at_check_filter
 
65129
echo stderr:; cat "$at_stderr"
 
65130
echo stdout:; tee stdout <"$at_stdout"
 
65131
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65132
$at_failed && at_fn_log_failure
 
65133
$at_traceon; }
 
65134
 
 
65135
   { set +x
 
65136
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
65137
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
65138
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
65139
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65140
at_status=$? at_failed=false
 
65141
$at_check_filter
 
65142
echo stderr:; cat "$at_stderr"
 
65143
echo stdout:; cat "$at_stdout"
 
65144
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65145
$at_failed && at_fn_log_failure
 
65146
$at_traceon; }
 
65147
 
 
65148
   { set +x
 
65149
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
65150
      {\"op\": \"insert\",
 
65151
       \"table\": \"ordinals\",
 
65152
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
65153
      {\"op\": \"insert\",
 
65154
       \"table\": \"ordinals\",
 
65155
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
65156
      {\"op\": \"wait\",
 
65157
       \"timeout\": 0,
 
65158
       \"table\": \"ordinals\",
 
65159
       \"where\": [],
 
65160
       \"columns\": [\"name\", \"number\"],
 
65161
       \"until\": \"!=\",
 
65162
       \"rows\": [{\"name\": \"one\", \"number\": 1}]}]'"
 
65163
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65164
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
65165
      {"op": "insert",
 
65166
       "table": "ordinals",
 
65167
       "row": {"number": 0, "name": "zero"}},
 
65168
      {"op": "insert",
 
65169
       "table": "ordinals",
 
65170
       "row": {"number": 1, "name": "one"}},
 
65171
      {"op": "wait",
 
65172
       "timeout": 0,
 
65173
       "table": "ordinals",
 
65174
       "where": [],
 
65175
       "columns": ["name", "number"],
 
65176
       "until": "!=",
 
65177
       "rows": [{"name": "one", "number": 1}]}]'
 
65178
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65179
at_status=$? at_failed=false
 
65180
$at_check_filter
 
65181
echo stderr:; cat "$at_stderr"
 
65182
echo stdout:; tee stdout <"$at_stdout"
 
65183
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65184
if $at_failed; then :
 
65185
  test ! -e pid || kill `cat pid`
 
65186
fi
 
65187
$at_failed && at_fn_log_failure
 
65188
$at_traceon; }
 
65189
 
 
65190
cat stdout >> output
 
65191
 
 
65192
   { set +x
 
65193
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
65194
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
65195
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
65196
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65197
at_status=$? at_failed=false
 
65198
$at_check_filter
 
65199
echo stderr:; cat "$at_stderr"
 
65200
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
65201
" | \
 
65202
  $at_diff - "$at_stdout" || at_failed=:
 
65203
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65204
if $at_failed; then :
 
65205
  test ! -e pid || kill `cat pid`
 
65206
fi
 
65207
$at_failed && at_fn_log_failure
 
65208
$at_traceon; }
 
65209
 
 
65210
   cp pid savepid
 
65211
   { set +x
 
65212
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
65213
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
65214
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
65215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65216
at_status=$? at_failed=false
 
65217
$at_check_filter
 
65218
echo stderr:; cat "$at_stderr"
 
65219
echo stdout:; cat "$at_stdout"
 
65220
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65221
$at_failed && at_fn_log_failure
 
65222
$at_traceon; }
 
65223
 
 
65224
   { set +x
 
65225
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
65226
     # in the normal case.  POSIX doesn't require fractional times to
 
65227
     # work, so this might not work.
 
65228
     sleep 0.1
 
65229
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
65230
     # Then wait up to 10 seconds.
 
65231
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
65232
       sleep 1
 
65233
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
65234
     done
 
65235
     exit 1"
 
65236
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
65237
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
65238
     # in the normal case.  POSIX doesn't require fractional times to
 
65239
     # work, so this might not work.
 
65240
     sleep 0.1
 
65241
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
65242
     # Then wait up to 10 seconds.
 
65243
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
65244
       sleep 1
 
65245
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
65246
     done
 
65247
     exit 1
 
65248
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65249
at_status=$? at_failed=false
 
65250
$at_check_filter
 
65251
echo stderr:; cat "$at_stderr"
 
65252
echo stdout:; cat "$at_stdout"
 
65253
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65254
if $at_failed; then :
 
65255
  kill `cat savepid`
 
65256
fi
 
65257
$at_failed && at_fn_log_failure
 
65258
$at_traceon; }
 
65259
 
 
65260
     set +x
 
65261
  $at_times_p && times >"$at_times_file"
 
65262
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
65263
read at_status <"$at_status_file"
 
65264
#AT_STOP_843
 
65265
#AT_START_844
 
65266
at_fn_group_banner 844 'ovsdb-server.at:39' \
 
65267
  "insert and update constraints" "                  " 59
 
65268
at_xfail=no
 
65269
(
 
65270
  $as_echo "844. $at_setup_line: testing $at_desc ..."
 
65271
  $at_traceon
 
65272
 
 
65273
 
 
65274
   cat >schema <<'_ATEOF'
 
65275
{"name": "constraints",
 
65276
     "tables": {
 
65277
       "a": {
 
65278
         "columns": {
 
65279
           "a": {"type": "integer"},
 
65280
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
65281
                            "min": 0, "max": "unlimited"}},
 
65282
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
65283
                            "min": 0, "max": "unlimited"}}}},
 
65284
       "b": {
 
65285
         "columns": {
 
65286
           "b": {"type": "integer"},
 
65287
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
65288
                            "min": 0, "max": "unlimited"}},
 
65289
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
65290
                            "min": 0, "max": "unlimited"}},
 
65291
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
65292
       "constrained": {
 
65293
         "columns": {
 
65294
           "positive": {"type": {"key": {"type": "integer",
 
65295
                                         "minInteger": 1}}}},
 
65296
         "maxRows": 1}}}
 
65297
_ATEOF
 
65298
 
 
65299
   { set +x
 
65300
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
65301
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
65302
( $at_check_trace; ovsdb-tool create db schema
 
65303
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65304
at_status=$? at_failed=false
 
65305
$at_check_filter
 
65306
echo stderr:; cat "$at_stderr"
 
65307
echo stdout:; tee stdout <"$at_stdout"
 
65308
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65309
$at_failed && at_fn_log_failure
 
65310
$at_traceon; }
 
65311
 
 
65312
   { set +x
 
65313
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
65314
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
65315
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
65316
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65317
at_status=$? at_failed=false
 
65318
$at_check_filter
 
65319
echo stderr:; cat "$at_stderr"
 
65320
echo stdout:; cat "$at_stdout"
 
65321
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65322
$at_failed && at_fn_log_failure
 
65323
$at_traceon; }
 
65324
 
 
65325
   { set +x
 
65326
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
65327
      {\"op\": \"insert\",
 
65328
       \"table\": \"constrained\",
 
65329
       \"row\": {}}]'"
 
65330
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65331
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
65332
      {"op": "insert",
 
65333
       "table": "constrained",
 
65334
       "row": {}}]'
 
65335
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65336
at_status=$? at_failed=false
 
65337
$at_check_filter
 
65338
echo stderr:; cat "$at_stderr"
 
65339
echo stdout:; tee stdout <"$at_stdout"
 
65340
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65341
if $at_failed; then :
 
65342
  test ! -e pid || kill `cat pid`
 
65343
fi
 
65344
$at_failed && at_fn_log_failure
 
65345
$at_traceon; }
 
65346
 
 
65347
cat stdout >> output
 
65348
{ set +x
 
65349
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
65350
      {\"op\": \"insert\",
 
65351
       \"table\": \"constrained\",
 
65352
       \"row\": {\"positive\": -1}}]'"
 
65353
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65354
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
65355
      {"op": "insert",
 
65356
       "table": "constrained",
 
65357
       "row": {"positive": -1}}]'
 
65358
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65359
at_status=$? at_failed=false
 
65360
$at_check_filter
 
65361
echo stderr:; cat "$at_stderr"
 
65362
echo stdout:; tee stdout <"$at_stdout"
 
65363
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65364
if $at_failed; then :
 
65365
  test ! -e pid || kill `cat pid`
 
65366
fi
 
65367
$at_failed && at_fn_log_failure
 
65368
$at_traceon; }
 
65369
 
 
65370
cat stdout >> output
 
65371
{ set +x
 
65372
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
65373
      {\"op\": \"update\",
 
65374
       \"table\": \"constrained\",
 
65375
       \"where\": [],
 
65376
       \"row\": {\"positive\": -2}}]'"
 
65377
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65378
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
65379
      {"op": "update",
 
65380
       "table": "constrained",
 
65381
       "where": [],
 
65382
       "row": {"positive": -2}}]'
 
65383
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65384
at_status=$? at_failed=false
 
65385
$at_check_filter
 
65386
echo stderr:; cat "$at_stderr"
 
65387
echo stdout:; tee stdout <"$at_stdout"
 
65388
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65389
if $at_failed; then :
 
65390
  test ! -e pid || kill `cat pid`
 
65391
fi
 
65392
$at_failed && at_fn_log_failure
 
65393
$at_traceon; }
 
65394
 
 
65395
cat stdout >> output
 
65396
{ set +x
 
65397
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
65398
      {\"op\": \"insert\",
 
65399
       \"table\": \"constrained\",
 
65400
       \"row\": {\"positive\": 1}}]'"
 
65401
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65402
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
65403
      {"op": "insert",
 
65404
       "table": "constrained",
 
65405
       "row": {"positive": 1}}]'
 
65406
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65407
at_status=$? at_failed=false
 
65408
$at_check_filter
 
65409
echo stderr:; cat "$at_stderr"
 
65410
echo stdout:; tee stdout <"$at_stdout"
 
65411
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65412
if $at_failed; then :
 
65413
  test ! -e pid || kill `cat pid`
 
65414
fi
 
65415
$at_failed && at_fn_log_failure
 
65416
$at_traceon; }
 
65417
 
 
65418
cat stdout >> output
 
65419
{ set +x
 
65420
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
65421
      {\"op\": \"insert\",
 
65422
       \"table\": \"constrained\",
 
65423
       \"row\": {\"positive\": 2}}]'"
 
65424
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65425
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
65426
      {"op": "insert",
 
65427
       "table": "constrained",
 
65428
       "row": {"positive": 2}}]'
 
65429
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65430
at_status=$? at_failed=false
 
65431
$at_check_filter
 
65432
echo stderr:; cat "$at_stderr"
 
65433
echo stdout:; tee stdout <"$at_stdout"
 
65434
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65435
if $at_failed; then :
 
65436
  test ! -e pid || kill `cat pid`
 
65437
fi
 
65438
$at_failed && at_fn_log_failure
 
65439
$at_traceon; }
 
65440
 
 
65441
cat stdout >> output
 
65442
 
 
65443
   { set +x
 
65444
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
65445
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
65446
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
65447
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65448
at_status=$? at_failed=false
 
65449
$at_check_filter
 
65450
echo stderr:; cat "$at_stderr"
 
65451
echo >>"$at_stdout"; $as_echo "[{\"details\":\"0 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
65452
[{\"details\":\"-1 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
65453
[{\"details\":\"-2 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
65454
[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
65455
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"transaction causes \\\"constrained\\\" table to contain 2 rows, greater than the schema-defined limit of 1 row(s)\",\"error\":\"constraint violation\"}]
 
65456
" | \
 
65457
  $at_diff - "$at_stdout" || at_failed=:
 
65458
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65459
if $at_failed; then :
 
65460
  test ! -e pid || kill `cat pid`
 
65461
fi
 
65462
$at_failed && at_fn_log_failure
 
65463
$at_traceon; }
 
65464
 
 
65465
   cp pid savepid
 
65466
   { set +x
 
65467
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
65468
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
65469
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
65470
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65471
at_status=$? at_failed=false
 
65472
$at_check_filter
 
65473
echo stderr:; cat "$at_stderr"
 
65474
echo stdout:; cat "$at_stdout"
 
65475
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65476
$at_failed && at_fn_log_failure
 
65477
$at_traceon; }
 
65478
 
 
65479
   { set +x
 
65480
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
65481
     # in the normal case.  POSIX doesn't require fractional times to
 
65482
     # work, so this might not work.
 
65483
     sleep 0.1
 
65484
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
65485
     # Then wait up to 10 seconds.
 
65486
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
65487
       sleep 1
 
65488
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
65489
     done
 
65490
     exit 1"
 
65491
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
65492
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
65493
     # in the normal case.  POSIX doesn't require fractional times to
 
65494
     # work, so this might not work.
 
65495
     sleep 0.1
 
65496
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
65497
     # Then wait up to 10 seconds.
 
65498
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
65499
       sleep 1
 
65500
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
65501
     done
 
65502
     exit 1
 
65503
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65504
at_status=$? at_failed=false
 
65505
$at_check_filter
 
65506
echo stderr:; cat "$at_stderr"
 
65507
echo stdout:; cat "$at_stdout"
 
65508
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65509
if $at_failed; then :
 
65510
  kill `cat savepid`
 
65511
fi
 
65512
$at_failed && at_fn_log_failure
 
65513
$at_traceon; }
 
65514
 
 
65515
     set +x
 
65516
  $at_times_p && times >"$at_times_file"
 
65517
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
65518
read at_status <"$at_status_file"
 
65519
#AT_STOP_844
 
65520
#AT_START_845
 
65521
at_fn_group_banner 845 'ovsdb-server.at:39' \
 
65522
  "index uniqueness checking" "                      " 59
 
65523
at_xfail=no
 
65524
(
 
65525
  $as_echo "845. $at_setup_line: testing $at_desc ..."
 
65526
  $at_traceon
 
65527
 
 
65528
 
 
65529
   cat >schema <<'_ATEOF'
 
65530
{"name": "ordinals",
 
65531
     "tables": {
 
65532
       "ordinals": {
 
65533
         "columns": {
 
65534
           "number": {"type": "integer"},
 
65535
           "name": {"type": "string"}},
 
65536
         "indexes": [["number"]]}},
 
65537
     "version": "5.1.3",
 
65538
     "cksum": "12345678 9"}
 
65539
_ATEOF
 
65540
 
 
65541
   { set +x
 
65542
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
65543
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
65544
( $at_check_trace; ovsdb-tool create db schema
 
65545
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65546
at_status=$? at_failed=false
 
65547
$at_check_filter
 
65548
echo stderr:; cat "$at_stderr"
 
65549
echo stdout:; tee stdout <"$at_stdout"
 
65550
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65551
$at_failed && at_fn_log_failure
 
65552
$at_traceon; }
 
65553
 
 
65554
   { set +x
 
65555
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
65556
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
65557
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
65558
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65559
at_status=$? at_failed=false
 
65560
$at_check_filter
 
65561
echo stderr:; cat "$at_stderr"
 
65562
echo stdout:; cat "$at_stdout"
 
65563
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65564
$at_failed && at_fn_log_failure
 
65565
$at_traceon; }
 
65566
 
 
65567
   { set +x
 
65568
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"ordinals\",
 
65569
      {\"op\": \"insert\",
 
65570
       \"table\": \"ordinals\",
 
65571
       \"row\": {\"number\": 1, \"name\": \"one\"}}]'"
 
65572
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65573
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
65574
      {"op": "insert",
 
65575
       "table": "ordinals",
 
65576
       "row": {"number": 1, "name": "one"}}]'
 
65577
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65578
at_status=$? at_failed=false
 
65579
$at_check_filter
 
65580
echo stderr:; cat "$at_stderr"
 
65581
echo stdout:; tee stdout <"$at_stdout"
 
65582
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65583
if $at_failed; then :
 
65584
  test ! -e pid || kill `cat pid`
 
65585
fi
 
65586
$at_failed && at_fn_log_failure
 
65587
$at_traceon; }
 
65588
 
 
65589
cat stdout >> output
 
65590
{ set +x
 
65591
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"ordinals\",
 
65592
      {\"op\": \"insert\",
 
65593
       \"table\": \"ordinals\",
 
65594
       \"row\": {\"number\": 1, \"name\": \"another one\"}}]'"
 
65595
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65596
( $at_check_trace; ovsdb-client transact unix:socket '   ["ordinals",
 
65597
      {"op": "insert",
 
65598
       "table": "ordinals",
 
65599
       "row": {"number": 1, "name": "another one"}}]'
 
65600
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65601
at_status=$? at_failed=false
 
65602
$at_check_filter
 
65603
echo stderr:; cat "$at_stderr"
 
65604
echo stdout:; tee stdout <"$at_stdout"
 
65605
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65606
if $at_failed; then :
 
65607
  test ! -e pid || kill `cat pid`
 
65608
fi
 
65609
$at_failed && at_fn_log_failure
 
65610
$at_traceon; }
 
65611
 
 
65612
cat stdout >> output
 
65613
{ set +x
 
65614
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"ordinals\",
 
65615
      {\"op\": \"insert\",
 
65616
       \"table\": \"ordinals\",
 
65617
       \"row\": {\"number\": 1, \"name\": \"another one\"}},
 
65618
      {\"op\": \"delete\",
 
65619
       \"table\": \"ordinals\",
 
65620
       \"where\": [[\"name\", \"==\", \"one\"]]}]'"
 
65621
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65622
( $at_check_trace; ovsdb-client transact unix:socket '   ["ordinals",
 
65623
      {"op": "insert",
 
65624
       "table": "ordinals",
 
65625
       "row": {"number": 1, "name": "another one"}},
 
65626
      {"op": "delete",
 
65627
       "table": "ordinals",
 
65628
       "where": [["name", "==", "one"]]}]'
 
65629
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65630
at_status=$? at_failed=false
 
65631
$at_check_filter
 
65632
echo stderr:; cat "$at_stderr"
 
65633
echo stdout:; tee stdout <"$at_stdout"
 
65634
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65635
if $at_failed; then :
 
65636
  test ! -e pid || kill `cat pid`
 
65637
fi
 
65638
$at_failed && at_fn_log_failure
 
65639
$at_traceon; }
 
65640
 
 
65641
cat stdout >> output
 
65642
{ set +x
 
65643
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"ordinals\",
 
65644
      {\"op\": \"delete\",
 
65645
       \"table\": \"ordinals\",
 
65646
       \"where\": []},
 
65647
      {\"op\": \"insert\",
 
65648
       \"table\": \"ordinals\",
 
65649
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
65650
      {\"op\": \"insert\",
 
65651
       \"table\": \"ordinals\",
 
65652
       \"row\": {\"number\": 1, \"name\": \"still another one\"}}]'"
 
65653
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65654
( $at_check_trace; ovsdb-client transact unix:socket '   ["ordinals",
 
65655
      {"op": "delete",
 
65656
       "table": "ordinals",
 
65657
       "where": []},
 
65658
      {"op": "insert",
 
65659
       "table": "ordinals",
 
65660
       "row": {"number": 1, "name": "one"}},
 
65661
      {"op": "insert",
 
65662
       "table": "ordinals",
 
65663
       "row": {"number": 1, "name": "still another one"}}]'
 
65664
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65665
at_status=$? at_failed=false
 
65666
$at_check_filter
 
65667
echo stderr:; cat "$at_stderr"
 
65668
echo stdout:; tee stdout <"$at_stdout"
 
65669
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65670
if $at_failed; then :
 
65671
  test ! -e pid || kill `cat pid`
 
65672
fi
 
65673
$at_failed && at_fn_log_failure
 
65674
$at_traceon; }
 
65675
 
 
65676
cat stdout >> output
 
65677
{ set +x
 
65678
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"ordinals\",
 
65679
      {\"op\": \"insert\",
 
65680
       \"table\": \"ordinals\",
 
65681
       \"row\": {\"number\": 2, \"name\": \"two\"}}]'"
 
65682
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65683
( $at_check_trace; ovsdb-client transact unix:socket '   ["ordinals",
 
65684
      {"op": "insert",
 
65685
       "table": "ordinals",
 
65686
       "row": {"number": 2, "name": "two"}}]'
 
65687
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65688
at_status=$? at_failed=false
 
65689
$at_check_filter
 
65690
echo stderr:; cat "$at_stderr"
 
65691
echo stdout:; tee stdout <"$at_stdout"
 
65692
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65693
if $at_failed; then :
 
65694
  test ! -e pid || kill `cat pid`
 
65695
fi
 
65696
$at_failed && at_fn_log_failure
 
65697
$at_traceon; }
 
65698
 
 
65699
cat stdout >> output
 
65700
{ set +x
 
65701
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"ordinals\",
 
65702
      {\"op\": \"update\",
 
65703
       \"table\": \"ordinals\",
 
65704
       \"where\": [],
 
65705
       \"row\": {\"number\": 3}}]'"
 
65706
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65707
( $at_check_trace; ovsdb-client transact unix:socket '   ["ordinals",
 
65708
      {"op": "update",
 
65709
       "table": "ordinals",
 
65710
       "where": [],
 
65711
       "row": {"number": 3}}]'
 
65712
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65713
at_status=$? at_failed=false
 
65714
$at_check_filter
 
65715
echo stderr:; cat "$at_stderr"
 
65716
echo stdout:; tee stdout <"$at_stdout"
 
65717
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65718
if $at_failed; then :
 
65719
  test ! -e pid || kill `cat pid`
 
65720
fi
 
65721
$at_failed && at_fn_log_failure
 
65722
$at_traceon; }
 
65723
 
 
65724
cat stdout >> output
 
65725
{ set +x
 
65726
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"ordinals\",
 
65727
      {\"op\": \"update\",
 
65728
       \"table\": \"ordinals\",
 
65729
       \"where\": [[\"number\", \"==\", 1]],
 
65730
       \"row\": {\"number\": 2, \"name\": \"old two\"}},
 
65731
      {\"op\": \"update\",
 
65732
       \"table\": \"ordinals\",
 
65733
       \"where\": [[\"name\", \"==\", \"two\"]],
 
65734
       \"row\": {\"number\": 1, \"name\": \"old one\"}}]'"
 
65735
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65736
( $at_check_trace; ovsdb-client transact unix:socket '   ["ordinals",
 
65737
      {"op": "update",
 
65738
       "table": "ordinals",
 
65739
       "where": [["number", "==", 1]],
 
65740
       "row": {"number": 2, "name": "old two"}},
 
65741
      {"op": "update",
 
65742
       "table": "ordinals",
 
65743
       "where": [["name", "==", "two"]],
 
65744
       "row": {"number": 1, "name": "old one"}}]'
 
65745
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65746
at_status=$? at_failed=false
 
65747
$at_check_filter
 
65748
echo stderr:; cat "$at_stderr"
 
65749
echo stdout:; tee stdout <"$at_stdout"
 
65750
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65751
if $at_failed; then :
 
65752
  test ! -e pid || kill `cat pid`
 
65753
fi
 
65754
$at_failed && at_fn_log_failure
 
65755
$at_traceon; }
 
65756
 
 
65757
cat stdout >> output
 
65758
{ set +x
 
65759
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"ordinals\",
 
65760
      {\"op\": \"mutate\",
 
65761
       \"table\": \"ordinals\",
 
65762
       \"where\": [],
 
65763
       \"mutations\": [[\"number\", \"*=\", 10]]},
 
65764
      {\"op\": \"insert\",
 
65765
       \"table\": \"ordinals\",
 
65766
       \"row\": {\"number\": 1, \"name\": \"new one\"}},
 
65767
      {\"op\": \"insert\",
 
65768
       \"table\": \"ordinals\",
 
65769
       \"row\": {\"number\": 2, \"name\": \"new two\"}},
 
65770
      {\"op\": \"select\",
 
65771
       \"table\": \"ordinals\",
 
65772
       \"where\": [],
 
65773
       \"columns\": [\"number\", \"name\"],
 
65774
       \"sort\": [\"number\"]}]'"
 
65775
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65776
( $at_check_trace; ovsdb-client transact unix:socket '   ["ordinals",
 
65777
      {"op": "mutate",
 
65778
       "table": "ordinals",
 
65779
       "where": [],
 
65780
       "mutations": [["number", "*=", 10]]},
 
65781
      {"op": "insert",
 
65782
       "table": "ordinals",
 
65783
       "row": {"number": 1, "name": "new one"}},
 
65784
      {"op": "insert",
 
65785
       "table": "ordinals",
 
65786
       "row": {"number": 2, "name": "new two"}},
 
65787
      {"op": "select",
 
65788
       "table": "ordinals",
 
65789
       "where": [],
 
65790
       "columns": ["number", "name"],
 
65791
       "sort": ["number"]}]'
 
65792
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65793
at_status=$? at_failed=false
 
65794
$at_check_filter
 
65795
echo stderr:; cat "$at_stderr"
 
65796
echo stdout:; tee stdout <"$at_stdout"
 
65797
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65798
if $at_failed; then :
 
65799
  test ! -e pid || kill `cat pid`
 
65800
fi
 
65801
$at_failed && at_fn_log_failure
 
65802
$at_traceon; }
 
65803
 
 
65804
cat stdout >> output
 
65805
 
 
65806
   { set +x
 
65807
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
65808
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
65809
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
65810
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65811
at_status=$? at_failed=false
 
65812
$at_check_filter
 
65813
echo stderr:; cat "$at_stderr"
 
65814
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
65815
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <0>, existed in the database before this transaction and was not modified by the transaction.  Second row, with UUID <1>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
65816
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"count\":1}]
 
65817
[{\"count\":1},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <4>, was inserted by this transaction.  Second row, with UUID <3>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
65818
[{\"uuid\":[\"uuid\",\"<5>\"]}]
 
65819
[{\"count\":2},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (3) for index on column \\\"number\\\".  First row, with UUID <5>, had the following index values before the transaction: 2.  Second row, with UUID <2>, had the following index values before the transaction: 1.\",\"error\":\"constraint violation\"}]
 
65820
[{\"count\":1},{\"count\":1}]
 
65821
[{\"count\":2},{\"uuid\":[\"uuid\",\"<6>\"]},{\"uuid\":[\"uuid\",\"<7>\"]},{\"rows\":[{\"name\":\"new one\",\"number\":1},{\"name\":\"new two\",\"number\":2},{\"name\":\"old one\",\"number\":10},{\"name\":\"old two\",\"number\":20}]}]
 
65822
" | \
 
65823
  $at_diff - "$at_stdout" || at_failed=:
 
65824
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65825
if $at_failed; then :
 
65826
  test ! -e pid || kill `cat pid`
 
65827
fi
 
65828
$at_failed && at_fn_log_failure
 
65829
$at_traceon; }
 
65830
 
 
65831
   cp pid savepid
 
65832
   { set +x
 
65833
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
65834
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
65835
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
65836
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65837
at_status=$? at_failed=false
 
65838
$at_check_filter
 
65839
echo stderr:; cat "$at_stderr"
 
65840
echo stdout:; cat "$at_stdout"
 
65841
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65842
$at_failed && at_fn_log_failure
 
65843
$at_traceon; }
 
65844
 
 
65845
   { set +x
 
65846
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
65847
     # in the normal case.  POSIX doesn't require fractional times to
 
65848
     # work, so this might not work.
 
65849
     sleep 0.1
 
65850
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
65851
     # Then wait up to 10 seconds.
 
65852
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
65853
       sleep 1
 
65854
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
65855
     done
 
65856
     exit 1"
 
65857
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
65858
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
65859
     # in the normal case.  POSIX doesn't require fractional times to
 
65860
     # work, so this might not work.
 
65861
     sleep 0.1
 
65862
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
65863
     # Then wait up to 10 seconds.
 
65864
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
65865
       sleep 1
 
65866
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
65867
     done
 
65868
     exit 1
 
65869
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65870
at_status=$? at_failed=false
 
65871
$at_check_filter
 
65872
echo stderr:; cat "$at_stderr"
 
65873
echo stdout:; cat "$at_stdout"
 
65874
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65875
if $at_failed; then :
 
65876
  kill `cat savepid`
 
65877
fi
 
65878
$at_failed && at_fn_log_failure
 
65879
$at_traceon; }
 
65880
 
 
65881
     set +x
 
65882
  $at_times_p && times >"$at_times_file"
 
65883
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
65884
read at_status <"$at_status_file"
 
65885
#AT_STOP_845
 
65886
#AT_START_846
 
65887
at_fn_group_banner 846 'ovsdb-server.at:39' \
 
65888
  "referential integrity -- simple" "                " 59
 
65889
at_xfail=no
 
65890
(
 
65891
  $as_echo "846. $at_setup_line: testing $at_desc ..."
 
65892
  $at_traceon
 
65893
 
 
65894
 
 
65895
   cat >schema <<'_ATEOF'
 
65896
{"name": "constraints",
 
65897
     "tables": {
 
65898
       "a": {
 
65899
         "columns": {
 
65900
           "a": {"type": "integer"},
 
65901
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
65902
                            "min": 0, "max": "unlimited"}},
 
65903
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
65904
                            "min": 0, "max": "unlimited"}}}},
 
65905
       "b": {
 
65906
         "columns": {
 
65907
           "b": {"type": "integer"},
 
65908
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
65909
                            "min": 0, "max": "unlimited"}},
 
65910
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
65911
                            "min": 0, "max": "unlimited"}},
 
65912
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
65913
       "constrained": {
 
65914
         "columns": {
 
65915
           "positive": {"type": {"key": {"type": "integer",
 
65916
                                         "minInteger": 1}}}},
 
65917
         "maxRows": 1}}}
 
65918
_ATEOF
 
65919
 
 
65920
   { set +x
 
65921
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
65922
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
65923
( $at_check_trace; ovsdb-tool create db schema
 
65924
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65925
at_status=$? at_failed=false
 
65926
$at_check_filter
 
65927
echo stderr:; cat "$at_stderr"
 
65928
echo stdout:; tee stdout <"$at_stdout"
 
65929
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65930
$at_failed && at_fn_log_failure
 
65931
$at_traceon; }
 
65932
 
 
65933
   { set +x
 
65934
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
65935
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
65936
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
65937
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65938
at_status=$? at_failed=false
 
65939
$at_check_filter
 
65940
echo stderr:; cat "$at_stderr"
 
65941
echo stdout:; cat "$at_stdout"
 
65942
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65943
$at_failed && at_fn_log_failure
 
65944
$at_traceon; }
 
65945
 
 
65946
   { set +x
 
65947
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
65948
      {\"op\": \"insert\",
 
65949
       \"table\": \"b\",
 
65950
       \"row\": {\"b\": 1},
 
65951
       \"uuid-name\": \"brow\"},
 
65952
      {\"op\": \"insert\",
 
65953
       \"table\": \"a\",
 
65954
       \"row\": {\"a\": 0,
 
65955
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}},
 
65956
      {\"op\": \"insert\",
 
65957
       \"table\": \"a\",
 
65958
       \"row\": {\"a\": 1,
 
65959
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}},
 
65960
      {\"op\": \"insert\",
 
65961
       \"table\": \"a\",
 
65962
       \"row\": {\"a\": 2,
 
65963
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}}]'"
 
65964
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
65965
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
65966
      {"op": "insert",
 
65967
       "table": "b",
 
65968
       "row": {"b": 1},
 
65969
       "uuid-name": "brow"},
 
65970
      {"op": "insert",
 
65971
       "table": "a",
 
65972
       "row": {"a": 0,
 
65973
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
65974
      {"op": "insert",
 
65975
       "table": "a",
 
65976
       "row": {"a": 1,
 
65977
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
65978
      {"op": "insert",
 
65979
       "table": "a",
 
65980
       "row": {"a": 2,
 
65981
               "a2b": ["set", [["named-uuid", "brow"]]]}}]'
 
65982
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
65983
at_status=$? at_failed=false
 
65984
$at_check_filter
 
65985
echo stderr:; cat "$at_stderr"
 
65986
echo stdout:; tee stdout <"$at_stdout"
 
65987
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
65988
if $at_failed; then :
 
65989
  test ! -e pid || kill `cat pid`
 
65990
fi
 
65991
$at_failed && at_fn_log_failure
 
65992
$at_traceon; }
 
65993
 
 
65994
cat stdout >> output
 
65995
{ set +x
 
65996
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
65997
      {\"op\": \"delete\",
 
65998
       \"table\": \"b\",
 
65999
       \"where\": []}]'"
 
66000
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66001
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66002
      {"op": "delete",
 
66003
       "table": "b",
 
66004
       "where": []}]'
 
66005
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66006
at_status=$? at_failed=false
 
66007
$at_check_filter
 
66008
echo stderr:; cat "$at_stderr"
 
66009
echo stdout:; tee stdout <"$at_stdout"
 
66010
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66011
if $at_failed; then :
 
66012
  test ! -e pid || kill `cat pid`
 
66013
fi
 
66014
$at_failed && at_fn_log_failure
 
66015
$at_traceon; }
 
66016
 
 
66017
cat stdout >> output
 
66018
{ set +x
 
66019
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"constraints\",
 
66020
      {\"op\": \"mutate\",
 
66021
       \"table\": \"b\",
 
66022
       \"where\": [],
 
66023
       \"mutations\": [[\"x\", \"delete\", 0]]}]'"
 
66024
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66025
( $at_check_trace; ovsdb-client transact unix:socket '   ["constraints",
 
66026
      {"op": "mutate",
 
66027
       "table": "b",
 
66028
       "where": [],
 
66029
       "mutations": [["x", "delete", 0]]}]'
 
66030
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66031
at_status=$? at_failed=false
 
66032
$at_check_filter
 
66033
echo stderr:; cat "$at_stderr"
 
66034
echo stdout:; tee stdout <"$at_stdout"
 
66035
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66036
if $at_failed; then :
 
66037
  test ! -e pid || kill `cat pid`
 
66038
fi
 
66039
$at_failed && at_fn_log_failure
 
66040
$at_traceon; }
 
66041
 
 
66042
cat stdout >> output
 
66043
{ set +x
 
66044
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66045
      {\"op\": \"delete\",
 
66046
       \"table\": \"a\",
 
66047
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
66048
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66049
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66050
      {"op": "delete",
 
66051
       "table": "a",
 
66052
       "where": [["a", "==", 0]]}]'
 
66053
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66054
at_status=$? at_failed=false
 
66055
$at_check_filter
 
66056
echo stderr:; cat "$at_stderr"
 
66057
echo stdout:; tee stdout <"$at_stdout"
 
66058
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66059
if $at_failed; then :
 
66060
  test ! -e pid || kill `cat pid`
 
66061
fi
 
66062
$at_failed && at_fn_log_failure
 
66063
$at_traceon; }
 
66064
 
 
66065
cat stdout >> output
 
66066
{ set +x
 
66067
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66068
      {\"op\": \"delete\",
 
66069
       \"table\": \"b\",
 
66070
       \"where\": []}]'"
 
66071
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66072
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66073
      {"op": "delete",
 
66074
       "table": "b",
 
66075
       "where": []}]'
 
66076
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66077
at_status=$? at_failed=false
 
66078
$at_check_filter
 
66079
echo stderr:; cat "$at_stderr"
 
66080
echo stdout:; tee stdout <"$at_stdout"
 
66081
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66082
if $at_failed; then :
 
66083
  test ! -e pid || kill `cat pid`
 
66084
fi
 
66085
$at_failed && at_fn_log_failure
 
66086
$at_traceon; }
 
66087
 
 
66088
cat stdout >> output
 
66089
{ set +x
 
66090
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66091
      {\"op\": \"delete\",
 
66092
       \"table\": \"a\",
 
66093
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
66094
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66095
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66096
      {"op": "delete",
 
66097
       "table": "a",
 
66098
       "where": [["a", "==", 1]]}]'
 
66099
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66100
at_status=$? at_failed=false
 
66101
$at_check_filter
 
66102
echo stderr:; cat "$at_stderr"
 
66103
echo stdout:; tee stdout <"$at_stdout"
 
66104
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66105
if $at_failed; then :
 
66106
  test ! -e pid || kill `cat pid`
 
66107
fi
 
66108
$at_failed && at_fn_log_failure
 
66109
$at_traceon; }
 
66110
 
 
66111
cat stdout >> output
 
66112
{ set +x
 
66113
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66114
      {\"op\": \"delete\",
 
66115
       \"table\": \"b\",
 
66116
       \"where\": []}]'"
 
66117
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66118
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66119
      {"op": "delete",
 
66120
       "table": "b",
 
66121
       "where": []}]'
 
66122
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66123
at_status=$? at_failed=false
 
66124
$at_check_filter
 
66125
echo stderr:; cat "$at_stderr"
 
66126
echo stdout:; tee stdout <"$at_stdout"
 
66127
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66128
if $at_failed; then :
 
66129
  test ! -e pid || kill `cat pid`
 
66130
fi
 
66131
$at_failed && at_fn_log_failure
 
66132
$at_traceon; }
 
66133
 
 
66134
cat stdout >> output
 
66135
{ set +x
 
66136
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66137
      {\"op\": \"delete\",
 
66138
       \"table\": \"a\",
 
66139
       \"where\": [[\"a\", \"==\", 2]]}]'"
 
66140
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66141
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66142
      {"op": "delete",
 
66143
       "table": "a",
 
66144
       "where": [["a", "==", 2]]}]'
 
66145
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66146
at_status=$? at_failed=false
 
66147
$at_check_filter
 
66148
echo stderr:; cat "$at_stderr"
 
66149
echo stdout:; tee stdout <"$at_stdout"
 
66150
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66151
if $at_failed; then :
 
66152
  test ! -e pid || kill `cat pid`
 
66153
fi
 
66154
$at_failed && at_fn_log_failure
 
66155
$at_traceon; }
 
66156
 
 
66157
cat stdout >> output
 
66158
{ set +x
 
66159
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66160
      {\"op\": \"delete\",
 
66161
       \"table\": \"b\",
 
66162
       \"where\": []}]'"
 
66163
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66164
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66165
      {"op": "delete",
 
66166
       "table": "b",
 
66167
       "where": []}]'
 
66168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66169
at_status=$? at_failed=false
 
66170
$at_check_filter
 
66171
echo stderr:; cat "$at_stderr"
 
66172
echo stdout:; tee stdout <"$at_stdout"
 
66173
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66174
if $at_failed; then :
 
66175
  test ! -e pid || kill `cat pid`
 
66176
fi
 
66177
$at_failed && at_fn_log_failure
 
66178
$at_traceon; }
 
66179
 
 
66180
cat stdout >> output
 
66181
 
 
66182
   { set +x
 
66183
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
66184
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
66185
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
66186
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66187
at_status=$? at_failed=false
 
66188
$at_check_filter
 
66189
echo stderr:; cat "$at_stderr"
 
66190
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]
 
66191
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 3 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
66192
[{\"details\":\"Attempted to store 0 elements in set of 1 to 2 integers.\",\"error\":\"constraint violation\"}]
 
66193
[{\"count\":1}]
 
66194
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 2 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
66195
[{\"count\":1}]
 
66196
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
66197
[{\"count\":1}]
 
66198
[{\"count\":1}]
 
66199
" | \
 
66200
  $at_diff - "$at_stdout" || at_failed=:
 
66201
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66202
if $at_failed; then :
 
66203
  test ! -e pid || kill `cat pid`
 
66204
fi
 
66205
$at_failed && at_fn_log_failure
 
66206
$at_traceon; }
 
66207
 
 
66208
   cp pid savepid
 
66209
   { set +x
 
66210
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
66211
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
66212
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
66213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66214
at_status=$? at_failed=false
 
66215
$at_check_filter
 
66216
echo stderr:; cat "$at_stderr"
 
66217
echo stdout:; cat "$at_stdout"
 
66218
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66219
$at_failed && at_fn_log_failure
 
66220
$at_traceon; }
 
66221
 
 
66222
   { set +x
 
66223
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
66224
     # in the normal case.  POSIX doesn't require fractional times to
 
66225
     # work, so this might not work.
 
66226
     sleep 0.1
 
66227
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
66228
     # Then wait up to 10 seconds.
 
66229
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
66230
       sleep 1
 
66231
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
66232
     done
 
66233
     exit 1"
 
66234
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
66235
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
66236
     # in the normal case.  POSIX doesn't require fractional times to
 
66237
     # work, so this might not work.
 
66238
     sleep 0.1
 
66239
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
66240
     # Then wait up to 10 seconds.
 
66241
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
66242
       sleep 1
 
66243
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
66244
     done
 
66245
     exit 1
 
66246
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66247
at_status=$? at_failed=false
 
66248
$at_check_filter
 
66249
echo stderr:; cat "$at_stderr"
 
66250
echo stdout:; cat "$at_stdout"
 
66251
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66252
if $at_failed; then :
 
66253
  kill `cat savepid`
 
66254
fi
 
66255
$at_failed && at_fn_log_failure
 
66256
$at_traceon; }
 
66257
 
 
66258
     set +x
 
66259
  $at_times_p && times >"$at_times_file"
 
66260
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
66261
read at_status <"$at_status_file"
 
66262
#AT_STOP_846
 
66263
#AT_START_847
 
66264
at_fn_group_banner 847 'ovsdb-server.at:39' \
 
66265
  "referential integrity -- mutual references" "     " 59
 
66266
at_xfail=no
 
66267
(
 
66268
  $as_echo "847. $at_setup_line: testing $at_desc ..."
 
66269
  $at_traceon
 
66270
 
 
66271
 
 
66272
   cat >schema <<'_ATEOF'
 
66273
{"name": "constraints",
 
66274
     "tables": {
 
66275
       "a": {
 
66276
         "columns": {
 
66277
           "a": {"type": "integer"},
 
66278
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
66279
                            "min": 0, "max": "unlimited"}},
 
66280
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
66281
                            "min": 0, "max": "unlimited"}}}},
 
66282
       "b": {
 
66283
         "columns": {
 
66284
           "b": {"type": "integer"},
 
66285
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
66286
                            "min": 0, "max": "unlimited"}},
 
66287
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
66288
                            "min": 0, "max": "unlimited"}},
 
66289
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
66290
       "constrained": {
 
66291
         "columns": {
 
66292
           "positive": {"type": {"key": {"type": "integer",
 
66293
                                         "minInteger": 1}}}},
 
66294
         "maxRows": 1}}}
 
66295
_ATEOF
 
66296
 
 
66297
   { set +x
 
66298
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
66299
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
66300
( $at_check_trace; ovsdb-tool create db schema
 
66301
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66302
at_status=$? at_failed=false
 
66303
$at_check_filter
 
66304
echo stderr:; cat "$at_stderr"
 
66305
echo stdout:; tee stdout <"$at_stdout"
 
66306
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66307
$at_failed && at_fn_log_failure
 
66308
$at_traceon; }
 
66309
 
 
66310
   { set +x
 
66311
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
66312
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
66313
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
66314
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66315
at_status=$? at_failed=false
 
66316
$at_check_filter
 
66317
echo stderr:; cat "$at_stderr"
 
66318
echo stdout:; cat "$at_stdout"
 
66319
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66320
$at_failed && at_fn_log_failure
 
66321
$at_traceon; }
 
66322
 
 
66323
   { set +x
 
66324
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66325
      {\"op\": \"insert\",
 
66326
       \"table\": \"a\",
 
66327
       \"row\": {\"a\": 0,
 
66328
               \"a2b\": [\"set\", [[\"named-uuid\", \"row2\"]]],
 
66329
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"]]]},
 
66330
       \"uuid-name\": \"row1\"},
 
66331
      {\"op\": \"insert\",
 
66332
       \"table\": \"b\",
 
66333
       \"row\": {\"b\": 1,
 
66334
               \"b2b\": [\"set\", [[\"named-uuid\", \"row2\"]]],
 
66335
               \"b2a\": [\"set\", [[\"named-uuid\", \"row1\"]]]},
 
66336
       \"uuid-name\": \"row2\"}]'"
 
66337
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66338
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66339
      {"op": "insert",
 
66340
       "table": "a",
 
66341
       "row": {"a": 0,
 
66342
               "a2b": ["set", [["named-uuid", "row2"]]],
 
66343
               "a2a": ["set", [["named-uuid", "row1"]]]},
 
66344
       "uuid-name": "row1"},
 
66345
      {"op": "insert",
 
66346
       "table": "b",
 
66347
       "row": {"b": 1,
 
66348
               "b2b": ["set", [["named-uuid", "row2"]]],
 
66349
               "b2a": ["set", [["named-uuid", "row1"]]]},
 
66350
       "uuid-name": "row2"}]'
 
66351
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66352
at_status=$? at_failed=false
 
66353
$at_check_filter
 
66354
echo stderr:; cat "$at_stderr"
 
66355
echo stdout:; tee stdout <"$at_stdout"
 
66356
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66357
if $at_failed; then :
 
66358
  test ! -e pid || kill `cat pid`
 
66359
fi
 
66360
$at_failed && at_fn_log_failure
 
66361
$at_traceon; }
 
66362
 
 
66363
cat stdout >> output
 
66364
{ set +x
 
66365
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66366
      {\"op\": \"insert\",
 
66367
       \"table\": \"a\",
 
66368
       \"row\": {\"a2b\": [\"set\", [[\"uuid\", \"b516b960-5b19-4fc2-bb82-fe1cbd6d0241\"]]]}}]'"
 
66369
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66370
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66371
      {"op": "insert",
 
66372
       "table": "a",
 
66373
       "row": {"a2b": ["set", [["uuid", "b516b960-5b19-4fc2-bb82-fe1cbd6d0241"]]]}}]'
 
66374
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66375
at_status=$? at_failed=false
 
66376
$at_check_filter
 
66377
echo stderr:; cat "$at_stderr"
 
66378
echo stdout:; tee stdout <"$at_stdout"
 
66379
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66380
if $at_failed; then :
 
66381
  test ! -e pid || kill `cat pid`
 
66382
fi
 
66383
$at_failed && at_fn_log_failure
 
66384
$at_traceon; }
 
66385
 
 
66386
cat stdout >> output
 
66387
{ set +x
 
66388
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66389
      {\"op\": \"delete\",
 
66390
       \"table\": \"a\",
 
66391
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
66392
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66393
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66394
      {"op": "delete",
 
66395
       "table": "a",
 
66396
       "where": [["a", "==", 0]]}]'
 
66397
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66398
at_status=$? at_failed=false
 
66399
$at_check_filter
 
66400
echo stderr:; cat "$at_stderr"
 
66401
echo stdout:; tee stdout <"$at_stdout"
 
66402
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66403
if $at_failed; then :
 
66404
  test ! -e pid || kill `cat pid`
 
66405
fi
 
66406
$at_failed && at_fn_log_failure
 
66407
$at_traceon; }
 
66408
 
 
66409
cat stdout >> output
 
66410
{ set +x
 
66411
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66412
      {\"op\": \"delete\",
 
66413
       \"table\": \"b\",
 
66414
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
66415
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66416
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66417
      {"op": "delete",
 
66418
       "table": "b",
 
66419
       "where": [["b", "==", 1]]}]'
 
66420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66421
at_status=$? at_failed=false
 
66422
$at_check_filter
 
66423
echo stderr:; cat "$at_stderr"
 
66424
echo stdout:; tee stdout <"$at_stdout"
 
66425
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66426
if $at_failed; then :
 
66427
  test ! -e pid || kill `cat pid`
 
66428
fi
 
66429
$at_failed && at_fn_log_failure
 
66430
$at_traceon; }
 
66431
 
 
66432
cat stdout >> output
 
66433
{ set +x
 
66434
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"constraints\",
 
66435
      {\"op\": \"delete\",
 
66436
       \"table\": \"a\",
 
66437
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
66438
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66439
( $at_check_trace; ovsdb-client transact unix:socket '   ["constraints",
 
66440
      {"op": "delete",
 
66441
       "table": "a",
 
66442
       "where": [["a", "==", 0]]}]'
 
66443
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66444
at_status=$? at_failed=false
 
66445
$at_check_filter
 
66446
echo stderr:; cat "$at_stderr"
 
66447
echo stdout:; tee stdout <"$at_stdout"
 
66448
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66449
if $at_failed; then :
 
66450
  test ! -e pid || kill `cat pid`
 
66451
fi
 
66452
$at_failed && at_fn_log_failure
 
66453
$at_traceon; }
 
66454
 
 
66455
cat stdout >> output
 
66456
{ set +x
 
66457
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66458
      {\"op\": \"delete\",
 
66459
       \"table\": \"b\",
 
66460
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
66461
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66462
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66463
      {"op": "delete",
 
66464
       "table": "b",
 
66465
       "where": [["b", "==", 1]]}]'
 
66466
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66467
at_status=$? at_failed=false
 
66468
$at_check_filter
 
66469
echo stderr:; cat "$at_stderr"
 
66470
echo stdout:; tee stdout <"$at_stdout"
 
66471
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66472
if $at_failed; then :
 
66473
  test ! -e pid || kill `cat pid`
 
66474
fi
 
66475
$at_failed && at_fn_log_failure
 
66476
$at_traceon; }
 
66477
 
 
66478
cat stdout >> output
 
66479
{ set +x
 
66480
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"constraints\",
 
66481
      {\"op\": \"delete\",
 
66482
       \"table\": \"a\",
 
66483
       \"where\": [[\"a\", \"==\", 0]]},
 
66484
      {\"op\": \"delete\",
 
66485
       \"table\": \"b\",
 
66486
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
66487
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66488
( $at_check_trace; ovsdb-client transact unix:socket '["constraints",
 
66489
      {"op": "delete",
 
66490
       "table": "a",
 
66491
       "where": [["a", "==", 0]]},
 
66492
      {"op": "delete",
 
66493
       "table": "b",
 
66494
       "where": [["b", "==", 1]]}]'
 
66495
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66496
at_status=$? at_failed=false
 
66497
$at_check_filter
 
66498
echo stderr:; cat "$at_stderr"
 
66499
echo stdout:; tee stdout <"$at_stdout"
 
66500
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66501
if $at_failed; then :
 
66502
  test ! -e pid || kill `cat pid`
 
66503
fi
 
66504
$at_failed && at_fn_log_failure
 
66505
$at_traceon; }
 
66506
 
 
66507
cat stdout >> output
 
66508
 
 
66509
   { set +x
 
66510
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
66511
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
66512
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
66513
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66514
at_status=$? at_failed=false
 
66515
$at_check_filter
 
66516
echo stderr:; cat "$at_stderr"
 
66517
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]
 
66518
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"details\":\"Table a column a2b row <2> references nonexistent row <3> in table b.\",\"error\":\"referential integrity violation\"}]
 
66519
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
66520
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
66521
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
66522
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
66523
[{\"count\":1},{\"count\":1}]
 
66524
" | \
 
66525
  $at_diff - "$at_stdout" || at_failed=:
 
66526
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66527
if $at_failed; then :
 
66528
  test ! -e pid || kill `cat pid`
 
66529
fi
 
66530
$at_failed && at_fn_log_failure
 
66531
$at_traceon; }
 
66532
 
 
66533
   cp pid savepid
 
66534
   { set +x
 
66535
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
66536
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
66537
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
66538
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66539
at_status=$? at_failed=false
 
66540
$at_check_filter
 
66541
echo stderr:; cat "$at_stderr"
 
66542
echo stdout:; cat "$at_stdout"
 
66543
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66544
$at_failed && at_fn_log_failure
 
66545
$at_traceon; }
 
66546
 
 
66547
   { set +x
 
66548
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
66549
     # in the normal case.  POSIX doesn't require fractional times to
 
66550
     # work, so this might not work.
 
66551
     sleep 0.1
 
66552
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
66553
     # Then wait up to 10 seconds.
 
66554
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
66555
       sleep 1
 
66556
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
66557
     done
 
66558
     exit 1"
 
66559
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
66560
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
66561
     # in the normal case.  POSIX doesn't require fractional times to
 
66562
     # work, so this might not work.
 
66563
     sleep 0.1
 
66564
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
66565
     # Then wait up to 10 seconds.
 
66566
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
66567
       sleep 1
 
66568
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
66569
     done
 
66570
     exit 1
 
66571
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66572
at_status=$? at_failed=false
 
66573
$at_check_filter
 
66574
echo stderr:; cat "$at_stderr"
 
66575
echo stdout:; cat "$at_stdout"
 
66576
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66577
if $at_failed; then :
 
66578
  kill `cat savepid`
 
66579
fi
 
66580
$at_failed && at_fn_log_failure
 
66581
$at_traceon; }
 
66582
 
 
66583
     set +x
 
66584
  $at_times_p && times >"$at_times_file"
 
66585
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
66586
read at_status <"$at_status_file"
 
66587
#AT_STOP_847
 
66588
#AT_START_848
 
66589
at_fn_group_banner 848 'ovsdb-server.at:39' \
 
66590
  "weak references" "                                " 59
 
66591
at_xfail=no
 
66592
(
 
66593
  $as_echo "848. $at_setup_line: testing $at_desc ..."
 
66594
  $at_traceon
 
66595
 
 
66596
 
 
66597
   cat >schema <<'_ATEOF'
 
66598
{"name": "weak",
 
66599
     "tables": {
 
66600
       "a": {
 
66601
         "columns": {
 
66602
           "a": {"type": "integer"},
 
66603
           "a2a": {"type": {"key": {"type": "uuid",
 
66604
                                    "refTable": "a",
 
66605
                                    "refType": "weak"},
 
66606
                            "min": 0, "max": "unlimited"}},
 
66607
           "a2a1": {"type": {"key": {"type": "uuid",
 
66608
                                     "refTable": "a",
 
66609
                                     "refType": "weak"}}},
 
66610
           "a2b": {"type": {"key": {"type": "uuid",
 
66611
                                    "refTable": "b",
 
66612
                                    "refType": "weak"}}}}},
 
66613
       "b": {
 
66614
         "columns": {
 
66615
           "b": {"type": "integer"},
 
66616
           "b2a": {"type": {"key": {"type": "uuid",
 
66617
                                    "refTable": "a",
 
66618
                                    "refType": "weak"},
 
66619
                            "min": 0, "max": "unlimited"}}}}}}
 
66620
_ATEOF
 
66621
 
 
66622
   { set +x
 
66623
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
66624
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
66625
( $at_check_trace; ovsdb-tool create db schema
 
66626
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66627
at_status=$? at_failed=false
 
66628
$at_check_filter
 
66629
echo stderr:; cat "$at_stderr"
 
66630
echo stdout:; tee stdout <"$at_stdout"
 
66631
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66632
$at_failed && at_fn_log_failure
 
66633
$at_traceon; }
 
66634
 
 
66635
   { set +x
 
66636
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
66637
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
66638
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
66639
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66640
at_status=$? at_failed=false
 
66641
$at_check_filter
 
66642
echo stderr:; cat "$at_stderr"
 
66643
echo stdout:; cat "$at_stdout"
 
66644
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66645
$at_failed && at_fn_log_failure
 
66646
$at_traceon; }
 
66647
 
 
66648
   { set +x
 
66649
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"weak\",
 
66650
      {\"op\": \"insert\",
 
66651
       \"table\": \"a\",
 
66652
       \"row\": {\"a\": 0,
 
66653
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
66654
                               [\"named-uuid\", \"row2\"],
 
66655
                               [\"uuid\", \"0e767b36-6822-4044-8307-d58467e04669\"]]],
 
66656
               \"a2a1\": [\"named-uuid\", \"row1\"],
 
66657
               \"a2b\": [\"named-uuid\", \"row3\"]},
 
66658
       \"uuid-name\": \"row1\"},
 
66659
      {\"op\": \"insert\",
 
66660
       \"table\": \"a\",
 
66661
       \"row\": {\"a\": 1,
 
66662
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
66663
                               [\"named-uuid\", \"row2\"]]],
 
66664
               \"a2a1\": [\"named-uuid\", \"row2\"],
 
66665
               \"a2b\": [\"named-uuid\", \"row3\"]},
 
66666
       \"uuid-name\": \"row2\"},
 
66667
      {\"op\": \"insert\",
 
66668
       \"table\": \"a\",
 
66669
       \"row\": {\"a\": 2,
 
66670
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
66671
                               [\"named-uuid\", \"row2\"]]],
 
66672
               \"a2a1\": [\"named-uuid\", \"row2\"],
 
66673
               \"a2b\": [\"named-uuid\", \"row4\"]}},
 
66674
      {\"op\": \"insert\",
 
66675
       \"table\": \"b\",
 
66676
       \"row\": {\"b\": 2,
 
66677
               \"b2a\": [\"named-uuid\", \"row1\"]},
 
66678
       \"uuid-name\": \"row3\"},
 
66679
      {\"op\": \"insert\",
 
66680
       \"table\": \"b\",
 
66681
       \"row\": {\"b\": 3,
 
66682
               \"b2a\": [\"named-uuid\", \"row2\"]},
 
66683
       \"uuid-name\": \"row4\"}]'"
 
66684
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66685
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
66686
      {"op": "insert",
 
66687
       "table": "a",
 
66688
       "row": {"a": 0,
 
66689
               "a2a": ["set", [["named-uuid", "row1"],
 
66690
                               ["named-uuid", "row2"],
 
66691
                               ["uuid", "0e767b36-6822-4044-8307-d58467e04669"]]],
 
66692
               "a2a1": ["named-uuid", "row1"],
 
66693
               "a2b": ["named-uuid", "row3"]},
 
66694
       "uuid-name": "row1"},
 
66695
      {"op": "insert",
 
66696
       "table": "a",
 
66697
       "row": {"a": 1,
 
66698
               "a2a": ["set", [["named-uuid", "row1"],
 
66699
                               ["named-uuid", "row2"]]],
 
66700
               "a2a1": ["named-uuid", "row2"],
 
66701
               "a2b": ["named-uuid", "row3"]},
 
66702
       "uuid-name": "row2"},
 
66703
      {"op": "insert",
 
66704
       "table": "a",
 
66705
       "row": {"a": 2,
 
66706
               "a2a": ["set", [["named-uuid", "row1"],
 
66707
                               ["named-uuid", "row2"]]],
 
66708
               "a2a1": ["named-uuid", "row2"],
 
66709
               "a2b": ["named-uuid", "row4"]}},
 
66710
      {"op": "insert",
 
66711
       "table": "b",
 
66712
       "row": {"b": 2,
 
66713
               "b2a": ["named-uuid", "row1"]},
 
66714
       "uuid-name": "row3"},
 
66715
      {"op": "insert",
 
66716
       "table": "b",
 
66717
       "row": {"b": 3,
 
66718
               "b2a": ["named-uuid", "row2"]},
 
66719
       "uuid-name": "row4"}]'
 
66720
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66721
at_status=$? at_failed=false
 
66722
$at_check_filter
 
66723
echo stderr:; cat "$at_stderr"
 
66724
echo stdout:; tee stdout <"$at_stdout"
 
66725
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66726
if $at_failed; then :
 
66727
  test ! -e pid || kill `cat pid`
 
66728
fi
 
66729
$at_failed && at_fn_log_failure
 
66730
$at_traceon; }
 
66731
 
 
66732
cat stdout >> output
 
66733
{ set +x
 
66734
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '      [\"weak\",
 
66735
      {\"op\": \"select\",
 
66736
       \"table\": \"a\",
 
66737
       \"where\": [],
 
66738
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
66739
       \"sort\": [\"a\"]}]'"
 
66740
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66741
( $at_check_trace; ovsdb-client transact unix:socket '      ["weak",
 
66742
      {"op": "select",
 
66743
       "table": "a",
 
66744
       "where": [],
 
66745
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
66746
       "sort": ["a"]}]'
 
66747
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66748
at_status=$? at_failed=false
 
66749
$at_check_filter
 
66750
echo stderr:; cat "$at_stderr"
 
66751
echo stdout:; tee stdout <"$at_stdout"
 
66752
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66753
if $at_failed; then :
 
66754
  test ! -e pid || kill `cat pid`
 
66755
fi
 
66756
$at_failed && at_fn_log_failure
 
66757
$at_traceon; }
 
66758
 
 
66759
cat stdout >> output
 
66760
{ set +x
 
66761
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"weak\",
 
66762
      {\"op\": \"select\",
 
66763
       \"table\": \"b\",
 
66764
       \"where\": [],
 
66765
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
66766
       \"sort\": [\"b\"]}]'"
 
66767
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66768
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
66769
      {"op": "select",
 
66770
       "table": "b",
 
66771
       "where": [],
 
66772
       "columns": ["_uuid", "b", "b2a"],
 
66773
       "sort": ["b"]}]'
 
66774
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66775
at_status=$? at_failed=false
 
66776
$at_check_filter
 
66777
echo stderr:; cat "$at_stderr"
 
66778
echo stdout:; tee stdout <"$at_stdout"
 
66779
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66780
if $at_failed; then :
 
66781
  test ! -e pid || kill `cat pid`
 
66782
fi
 
66783
$at_failed && at_fn_log_failure
 
66784
$at_traceon; }
 
66785
 
 
66786
cat stdout >> output
 
66787
{ set +x
 
66788
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '      [\"weak\",
 
66789
      {\"op\": \"insert\",
 
66790
       \"table\": \"a\",
 
66791
       \"row\": {\"a2a1\": [\"named-uuid\", \"me\"]},
 
66792
       \"uuid-name\": \"me\"}]'"
 
66793
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66794
( $at_check_trace; ovsdb-client transact unix:socket '      ["weak",
 
66795
      {"op": "insert",
 
66796
       "table": "a",
 
66797
       "row": {"a2a1": ["named-uuid", "me"]},
 
66798
       "uuid-name": "me"}]'
 
66799
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66800
at_status=$? at_failed=false
 
66801
$at_check_filter
 
66802
echo stderr:; cat "$at_stderr"
 
66803
echo stdout:; tee stdout <"$at_stdout"
 
66804
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66805
if $at_failed; then :
 
66806
  test ! -e pid || kill `cat pid`
 
66807
fi
 
66808
$at_failed && at_fn_log_failure
 
66809
$at_traceon; }
 
66810
 
 
66811
cat stdout >> output
 
66812
{ set +x
 
66813
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '      [\"weak\",
 
66814
      {\"op\": \"delete\",
 
66815
       \"table\": \"b\",
 
66816
       \"where\": [[\"b\", \"==\", 3]]}]'"
 
66817
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66818
( $at_check_trace; ovsdb-client transact unix:socket '      ["weak",
 
66819
      {"op": "delete",
 
66820
       "table": "b",
 
66821
       "where": [["b", "==", 3]]}]'
 
66822
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66823
at_status=$? at_failed=false
 
66824
$at_check_filter
 
66825
echo stderr:; cat "$at_stderr"
 
66826
echo stdout:; tee stdout <"$at_stdout"
 
66827
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66828
if $at_failed; then :
 
66829
  test ! -e pid || kill `cat pid`
 
66830
fi
 
66831
$at_failed && at_fn_log_failure
 
66832
$at_traceon; }
 
66833
 
 
66834
cat stdout >> output
 
66835
{ set +x
 
66836
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '      [\"weak\",
 
66837
      {\"op\": \"delete\",
 
66838
       \"table\": \"a\",
 
66839
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
66840
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66841
( $at_check_trace; ovsdb-client transact unix:socket '      ["weak",
 
66842
      {"op": "delete",
 
66843
       "table": "a",
 
66844
       "where": [["a", "==", 1]]}]'
 
66845
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66846
at_status=$? at_failed=false
 
66847
$at_check_filter
 
66848
echo stderr:; cat "$at_stderr"
 
66849
echo stdout:; tee stdout <"$at_stdout"
 
66850
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66851
if $at_failed; then :
 
66852
  test ! -e pid || kill `cat pid`
 
66853
fi
 
66854
$at_failed && at_fn_log_failure
 
66855
$at_traceon; }
 
66856
 
 
66857
cat stdout >> output
 
66858
{ set +x
 
66859
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '      [\"weak\",
 
66860
      {\"op\": \"delete\",
 
66861
       \"table\": \"a\",
 
66862
       \"where\": [[\"a\", \"==\", 2]]}]'"
 
66863
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66864
( $at_check_trace; ovsdb-client transact unix:socket '      ["weak",
 
66865
      {"op": "delete",
 
66866
       "table": "a",
 
66867
       "where": [["a", "==", 2]]}]'
 
66868
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66869
at_status=$? at_failed=false
 
66870
$at_check_filter
 
66871
echo stderr:; cat "$at_stderr"
 
66872
echo stdout:; tee stdout <"$at_stdout"
 
66873
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66874
if $at_failed; then :
 
66875
  test ! -e pid || kill `cat pid`
 
66876
fi
 
66877
$at_failed && at_fn_log_failure
 
66878
$at_traceon; }
 
66879
 
 
66880
cat stdout >> output
 
66881
{ set +x
 
66882
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"weak\",
 
66883
      {\"op\": \"select\",
 
66884
       \"table\": \"a\",
 
66885
       \"where\": [],
 
66886
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
66887
       \"sort\": [\"a\"]}]'"
 
66888
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66889
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
66890
      {"op": "select",
 
66891
       "table": "a",
 
66892
       "where": [],
 
66893
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
66894
       "sort": ["a"]}]'
 
66895
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66896
at_status=$? at_failed=false
 
66897
$at_check_filter
 
66898
echo stderr:; cat "$at_stderr"
 
66899
echo stdout:; tee stdout <"$at_stdout"
 
66900
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66901
if $at_failed; then :
 
66902
  test ! -e pid || kill `cat pid`
 
66903
fi
 
66904
$at_failed && at_fn_log_failure
 
66905
$at_traceon; }
 
66906
 
 
66907
cat stdout >> output
 
66908
{ set +x
 
66909
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"weak\",
 
66910
      {\"op\": \"select\",
 
66911
       \"table\": \"b\",
 
66912
       \"where\": [],
 
66913
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
66914
       \"sort\": [\"b\"]}]'"
 
66915
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66916
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
66917
      {"op": "select",
 
66918
       "table": "b",
 
66919
       "where": [],
 
66920
       "columns": ["_uuid", "b", "b2a"],
 
66921
       "sort": ["b"]}]'
 
66922
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66923
at_status=$? at_failed=false
 
66924
$at_check_filter
 
66925
echo stderr:; cat "$at_stderr"
 
66926
echo stdout:; tee stdout <"$at_stdout"
 
66927
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66928
if $at_failed; then :
 
66929
  test ! -e pid || kill `cat pid`
 
66930
fi
 
66931
$at_failed && at_fn_log_failure
 
66932
$at_traceon; }
 
66933
 
 
66934
cat stdout >> output
 
66935
{ set +x
 
66936
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"weak\",
 
66937
      {\"op\": \"delete\",
 
66938
       \"table\": \"a\",
 
66939
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
66940
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66941
( $at_check_trace; ovsdb-client transact unix:socket '   ["weak",
 
66942
      {"op": "delete",
 
66943
       "table": "a",
 
66944
       "where": [["a", "==", 0]]}]'
 
66945
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66946
at_status=$? at_failed=false
 
66947
$at_check_filter
 
66948
echo stderr:; cat "$at_stderr"
 
66949
echo stdout:; tee stdout <"$at_stdout"
 
66950
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66951
if $at_failed; then :
 
66952
  test ! -e pid || kill `cat pid`
 
66953
fi
 
66954
$at_failed && at_fn_log_failure
 
66955
$at_traceon; }
 
66956
 
 
66957
cat stdout >> output
 
66958
{ set +x
 
66959
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"weak\",
 
66960
      {\"op\": \"select\",
 
66961
       \"table\": \"a\",
 
66962
       \"where\": [],
 
66963
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
66964
       \"sort\": [\"a\"]}]'"
 
66965
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66966
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
66967
      {"op": "select",
 
66968
       "table": "a",
 
66969
       "where": [],
 
66970
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
66971
       "sort": ["a"]}]'
 
66972
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
66973
at_status=$? at_failed=false
 
66974
$at_check_filter
 
66975
echo stderr:; cat "$at_stderr"
 
66976
echo stdout:; tee stdout <"$at_stdout"
 
66977
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
66978
if $at_failed; then :
 
66979
  test ! -e pid || kill `cat pid`
 
66980
fi
 
66981
$at_failed && at_fn_log_failure
 
66982
$at_traceon; }
 
66983
 
 
66984
cat stdout >> output
 
66985
{ set +x
 
66986
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"weak\",
 
66987
      {\"op\": \"select\",
 
66988
       \"table\": \"b\",
 
66989
       \"where\": [],
 
66990
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
66991
       \"sort\": [\"b\"]}]'"
 
66992
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
66993
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
66994
      {"op": "select",
 
66995
       "table": "b",
 
66996
       "where": [],
 
66997
       "columns": ["_uuid", "b", "b2a"],
 
66998
       "sort": ["b"]}]'
 
66999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67000
at_status=$? at_failed=false
 
67001
$at_check_filter
 
67002
echo stderr:; cat "$at_stderr"
 
67003
echo stdout:; tee stdout <"$at_stdout"
 
67004
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67005
if $at_failed; then :
 
67006
  test ! -e pid || kill `cat pid`
 
67007
fi
 
67008
$at_failed && at_fn_log_failure
 
67009
$at_traceon; }
 
67010
 
 
67011
cat stdout >> output
 
67012
{ set +x
 
67013
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"weak\",
 
67014
      {\"op\": \"delete\",
 
67015
       \"table\": \"a\",
 
67016
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
67017
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67018
( $at_check_trace; ovsdb-client transact unix:socket '   ["weak",
 
67019
      {"op": "delete",
 
67020
       "table": "a",
 
67021
       "where": [["a", "==", 1]]}]'
 
67022
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67023
at_status=$? at_failed=false
 
67024
$at_check_filter
 
67025
echo stderr:; cat "$at_stderr"
 
67026
echo stdout:; tee stdout <"$at_stdout"
 
67027
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67028
if $at_failed; then :
 
67029
  test ! -e pid || kill `cat pid`
 
67030
fi
 
67031
$at_failed && at_fn_log_failure
 
67032
$at_traceon; }
 
67033
 
 
67034
cat stdout >> output
 
67035
{ set +x
 
67036
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"weak\",
 
67037
      {\"op\": \"select\",
 
67038
       \"table\": \"a\",
 
67039
       \"where\": [],
 
67040
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
67041
       \"sort\": [\"a\"]}]'"
 
67042
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67043
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
67044
      {"op": "select",
 
67045
       "table": "a",
 
67046
       "where": [],
 
67047
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
67048
       "sort": ["a"]}]'
 
67049
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67050
at_status=$? at_failed=false
 
67051
$at_check_filter
 
67052
echo stderr:; cat "$at_stderr"
 
67053
echo stdout:; tee stdout <"$at_stdout"
 
67054
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67055
if $at_failed; then :
 
67056
  test ! -e pid || kill `cat pid`
 
67057
fi
 
67058
$at_failed && at_fn_log_failure
 
67059
$at_traceon; }
 
67060
 
 
67061
cat stdout >> output
 
67062
{ set +x
 
67063
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"weak\",
 
67064
      {\"op\": \"select\",
 
67065
       \"table\": \"b\",
 
67066
       \"where\": [],
 
67067
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
67068
       \"sort\": [\"b\"]}]'"
 
67069
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67070
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
67071
      {"op": "select",
 
67072
       "table": "b",
 
67073
       "where": [],
 
67074
       "columns": ["_uuid", "b", "b2a"],
 
67075
       "sort": ["b"]}]'
 
67076
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67077
at_status=$? at_failed=false
 
67078
$at_check_filter
 
67079
echo stderr:; cat "$at_stderr"
 
67080
echo stdout:; tee stdout <"$at_stdout"
 
67081
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67082
if $at_failed; then :
 
67083
  test ! -e pid || kill `cat pid`
 
67084
fi
 
67085
$at_failed && at_fn_log_failure
 
67086
$at_traceon; }
 
67087
 
 
67088
cat stdout >> output
 
67089
 
 
67090
   { set +x
 
67091
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
67092
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
67093
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
67094
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67095
at_status=$? at_failed=false
 
67096
$at_check_filter
 
67097
echo stderr:; cat "$at_stderr"
 
67098
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
67099
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<2>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<4>\"]}]}]
 
67100
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
67101
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"details\":\"Weak reference column \\\"a2b\\\" in \\\"a\\\" row <5> (inserted within this transaction) contained all-zeros UUID (probably as the default value for this column) but deleting this value caused a constraint volation because this column is not allowed to be empty.\",\"error\":\"constraint violation\"}]
 
67102
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2b\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
67103
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2a1\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
67104
[{\"count\":1}]
 
67105
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
67106
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
67107
[{\"count\":1}]
 
67108
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"uuid\",\"<1>\"],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
67109
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
67110
[{\"count\":1}]
 
67111
[{\"rows\":[]}]
 
67112
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"set\",[]]}]}]
 
67113
" | \
 
67114
  $at_diff - "$at_stdout" || at_failed=:
 
67115
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67116
if $at_failed; then :
 
67117
  test ! -e pid || kill `cat pid`
 
67118
fi
 
67119
$at_failed && at_fn_log_failure
 
67120
$at_traceon; }
 
67121
 
 
67122
   cp pid savepid
 
67123
   { set +x
 
67124
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
67125
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
67126
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
67127
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67128
at_status=$? at_failed=false
 
67129
$at_check_filter
 
67130
echo stderr:; cat "$at_stderr"
 
67131
echo stdout:; cat "$at_stdout"
 
67132
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67133
$at_failed && at_fn_log_failure
 
67134
$at_traceon; }
 
67135
 
 
67136
   { set +x
 
67137
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
67138
     # in the normal case.  POSIX doesn't require fractional times to
 
67139
     # work, so this might not work.
 
67140
     sleep 0.1
 
67141
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
67142
     # Then wait up to 10 seconds.
 
67143
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
67144
       sleep 1
 
67145
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
67146
     done
 
67147
     exit 1"
 
67148
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
67149
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
67150
     # in the normal case.  POSIX doesn't require fractional times to
 
67151
     # work, so this might not work.
 
67152
     sleep 0.1
 
67153
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
67154
     # Then wait up to 10 seconds.
 
67155
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
67156
       sleep 1
 
67157
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
67158
     done
 
67159
     exit 1
 
67160
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67161
at_status=$? at_failed=false
 
67162
$at_check_filter
 
67163
echo stderr:; cat "$at_stderr"
 
67164
echo stdout:; cat "$at_stdout"
 
67165
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67166
if $at_failed; then :
 
67167
  kill `cat savepid`
 
67168
fi
 
67169
$at_failed && at_fn_log_failure
 
67170
$at_traceon; }
 
67171
 
 
67172
     set +x
 
67173
  $at_times_p && times >"$at_times_file"
 
67174
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
67175
read at_status <"$at_status_file"
 
67176
#AT_STOP_848
 
67177
#AT_START_849
 
67178
at_fn_group_banner 849 'ovsdb-server.at:39' \
 
67179
  "garbage collection" "                             " 59
 
67180
at_xfail=no
 
67181
(
 
67182
  $as_echo "849. $at_setup_line: testing $at_desc ..."
 
67183
  $at_traceon
 
67184
 
 
67185
 
 
67186
   cat >schema <<'_ATEOF'
 
67187
{"name": "gc",
 
67188
     "tables": {
 
67189
       "root": {
 
67190
         "columns": {
 
67191
           "a": {"type": {"key": {"type": "uuid",
 
67192
                                  "refTable": "a"},
 
67193
                            "min": 0, "max": "unlimited"}}},
 
67194
         "isRoot": true},
 
67195
       "a": {
 
67196
         "columns": {
 
67197
           "a": {"type": "integer"},
 
67198
           "a2a": {"type": {"key": {"type": "uuid",
 
67199
                                    "refTable": "a"},
 
67200
                            "min": 0, "max": "unlimited"}},
 
67201
           "a2b": {"type": {"key": {"type": "uuid",
 
67202
                                    "refTable": "b"},
 
67203
                            "min": 0, "max": "unlimited"}},
 
67204
           "wa2a": {"type": {"key": {"type": "uuid",
 
67205
                                     "refTable": "a",
 
67206
                                     "refType": "weak"},
 
67207
                             "min": 0, "max": "unlimited"}},
 
67208
           "wa2b": {"type": {"key": {"type": "uuid",
 
67209
                                    "refTable": "b",
 
67210
                                    "refType": "weak"},
 
67211
                             "min": 0, "max": "unlimited"}}}},
 
67212
       "b": {
 
67213
         "columns": {
 
67214
           "b": {"type": "integer"},
 
67215
           "b2a": {"type": {"key": {"type": "uuid",
 
67216
                                    "refTable": "a"},
 
67217
                            "min": 0, "max": "unlimited"}},
 
67218
           "wb2a": {"type": {"key": {"type": "uuid",
 
67219
                                     "refTable": "a",
 
67220
                                     "refType": "weak"},
 
67221
                             "min": 0, "max": "unlimited"}}},
 
67222
         "isRoot": false}}}
 
67223
_ATEOF
 
67224
 
 
67225
   { set +x
 
67226
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-tool create db schema"
 
67227
at_fn_check_prepare_trace "ovsdb-server.at:39"
 
67228
( $at_check_trace; ovsdb-tool create db schema
 
67229
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67230
at_status=$? at_failed=false
 
67231
$at_check_filter
 
67232
echo stderr:; cat "$at_stderr"
 
67233
echo stdout:; tee stdout <"$at_stdout"
 
67234
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67235
$at_failed && at_fn_log_failure
 
67236
$at_traceon; }
 
67237
 
 
67238
   { set +x
 
67239
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
67240
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db" "ovsdb-server.at:39"
 
67241
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
67242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67243
at_status=$? at_failed=false
 
67244
$at_check_filter
 
67245
echo stderr:; cat "$at_stderr"
 
67246
echo stdout:; cat "$at_stdout"
 
67247
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67248
$at_failed && at_fn_log_failure
 
67249
$at_traceon; }
 
67250
 
 
67251
   { set +x
 
67252
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"gc\",
 
67253
      {\"op\": \"insert\",
 
67254
       \"table\": \"a\",
 
67255
       \"row\": {\"a\": 0}}]'"
 
67256
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67257
( $at_check_trace; ovsdb-client transact unix:socket '   ["gc",
 
67258
      {"op": "insert",
 
67259
       "table": "a",
 
67260
       "row": {"a": 0}}]'
 
67261
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67262
at_status=$? at_failed=false
 
67263
$at_check_filter
 
67264
echo stderr:; cat "$at_stderr"
 
67265
echo stdout:; tee stdout <"$at_stdout"
 
67266
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67267
if $at_failed; then :
 
67268
  test ! -e pid || kill `cat pid`
 
67269
fi
 
67270
$at_failed && at_fn_log_failure
 
67271
$at_traceon; }
 
67272
 
 
67273
cat stdout >> output
 
67274
{ set +x
 
67275
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"gc\",
 
67276
      {\"op\": \"select\",
 
67277
       \"table\": \"a\",
 
67278
       \"where\": [],
 
67279
       \"columns\": [\"a\"]}]'"
 
67280
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67281
( $at_check_trace; ovsdb-client transact unix:socket '["gc",
 
67282
      {"op": "select",
 
67283
       "table": "a",
 
67284
       "where": [],
 
67285
       "columns": ["a"]}]'
 
67286
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67287
at_status=$? at_failed=false
 
67288
$at_check_filter
 
67289
echo stderr:; cat "$at_stderr"
 
67290
echo stdout:; tee stdout <"$at_stdout"
 
67291
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67292
if $at_failed; then :
 
67293
  test ! -e pid || kill `cat pid`
 
67294
fi
 
67295
$at_failed && at_fn_log_failure
 
67296
$at_traceon; }
 
67297
 
 
67298
cat stdout >> output
 
67299
{ set +x
 
67300
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '      [\"gc\",
 
67301
      {\"op\": \"insert\",
 
67302
       \"table\": \"a\",
 
67303
       \"row\": {\"a\": 0, \"a2a\": [\"named-uuid\", \"row1\"]},
 
67304
       \"uuid-name\": \"row0\"},
 
67305
      {\"op\": \"insert\",
 
67306
       \"table\": \"a\",
 
67307
       \"row\": {\"a\": 1, \"a2a\": [\"named-uuid\", \"row2\"]},
 
67308
       \"uuid-name\": \"row1\"},
 
67309
      {\"op\": \"insert\",
 
67310
       \"table\": \"a\",
 
67311
       \"row\": {\"a\": 2, \"a2a\": [\"named-uuid\", \"row3\"]},
 
67312
       \"uuid-name\": \"row2\"},
 
67313
      {\"op\": \"insert\",
 
67314
       \"table\": \"a\",
 
67315
       \"row\": {\"a\": 3},
 
67316
       \"uuid-name\": \"row3\"}]'"
 
67317
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67318
( $at_check_trace; ovsdb-client transact unix:socket '      ["gc",
 
67319
      {"op": "insert",
 
67320
       "table": "a",
 
67321
       "row": {"a": 0, "a2a": ["named-uuid", "row1"]},
 
67322
       "uuid-name": "row0"},
 
67323
      {"op": "insert",
 
67324
       "table": "a",
 
67325
       "row": {"a": 1, "a2a": ["named-uuid", "row2"]},
 
67326
       "uuid-name": "row1"},
 
67327
      {"op": "insert",
 
67328
       "table": "a",
 
67329
       "row": {"a": 2, "a2a": ["named-uuid", "row3"]},
 
67330
       "uuid-name": "row2"},
 
67331
      {"op": "insert",
 
67332
       "table": "a",
 
67333
       "row": {"a": 3},
 
67334
       "uuid-name": "row3"}]'
 
67335
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67336
at_status=$? at_failed=false
 
67337
$at_check_filter
 
67338
echo stderr:; cat "$at_stderr"
 
67339
echo stdout:; tee stdout <"$at_stdout"
 
67340
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67341
if $at_failed; then :
 
67342
  test ! -e pid || kill `cat pid`
 
67343
fi
 
67344
$at_failed && at_fn_log_failure
 
67345
$at_traceon; }
 
67346
 
 
67347
cat stdout >> output
 
67348
{ set +x
 
67349
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"gc\",
 
67350
      {\"op\": \"select\",
 
67351
       \"table\": \"a\",
 
67352
       \"where\": [],
 
67353
       \"columns\": [\"a\"]}]'"
 
67354
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67355
( $at_check_trace; ovsdb-client transact unix:socket '["gc",
 
67356
      {"op": "select",
 
67357
       "table": "a",
 
67358
       "where": [],
 
67359
       "columns": ["a"]}]'
 
67360
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67361
at_status=$? at_failed=false
 
67362
$at_check_filter
 
67363
echo stderr:; cat "$at_stderr"
 
67364
echo stdout:; tee stdout <"$at_stdout"
 
67365
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67366
if $at_failed; then :
 
67367
  test ! -e pid || kill `cat pid`
 
67368
fi
 
67369
$at_failed && at_fn_log_failure
 
67370
$at_traceon; }
 
67371
 
 
67372
cat stdout >> output
 
67373
{ set +x
 
67374
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '      [\"gc\",
 
67375
      {\"op\": \"insert\",
 
67376
       \"table\": \"a\",
 
67377
       \"row\": {\"a\": 4, \"a2a\": [\"named-uuid\", \"row5\"]},
 
67378
       \"uuid-name\": \"row4\"},
 
67379
      {\"op\": \"insert\",
 
67380
       \"table\": \"a\",
 
67381
       \"row\": {\"a\": 5, \"a2a\": [\"named-uuid\", \"row4\"]},
 
67382
       \"uuid-name\": \"row5\"}]'"
 
67383
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67384
( $at_check_trace; ovsdb-client transact unix:socket '      ["gc",
 
67385
      {"op": "insert",
 
67386
       "table": "a",
 
67387
       "row": {"a": 4, "a2a": ["named-uuid", "row5"]},
 
67388
       "uuid-name": "row4"},
 
67389
      {"op": "insert",
 
67390
       "table": "a",
 
67391
       "row": {"a": 5, "a2a": ["named-uuid", "row4"]},
 
67392
       "uuid-name": "row5"}]'
 
67393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67394
at_status=$? at_failed=false
 
67395
$at_check_filter
 
67396
echo stderr:; cat "$at_stderr"
 
67397
echo stdout:; tee stdout <"$at_stdout"
 
67398
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67399
if $at_failed; then :
 
67400
  test ! -e pid || kill `cat pid`
 
67401
fi
 
67402
$at_failed && at_fn_log_failure
 
67403
$at_traceon; }
 
67404
 
 
67405
cat stdout >> output
 
67406
{ set +x
 
67407
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"gc\",
 
67408
      {\"op\": \"select\",
 
67409
       \"table\": \"a\",
 
67410
       \"where\": [],
 
67411
       \"columns\": [\"a\"],
 
67412
       \"sort\": [\"a\"]}]'"
 
67413
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67414
( $at_check_trace; ovsdb-client transact unix:socket '["gc",
 
67415
      {"op": "select",
 
67416
       "table": "a",
 
67417
       "where": [],
 
67418
       "columns": ["a"],
 
67419
       "sort": ["a"]}]'
 
67420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67421
at_status=$? at_failed=false
 
67422
$at_check_filter
 
67423
echo stderr:; cat "$at_stderr"
 
67424
echo stdout:; tee stdout <"$at_stdout"
 
67425
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67426
if $at_failed; then :
 
67427
  test ! -e pid || kill `cat pid`
 
67428
fi
 
67429
$at_failed && at_fn_log_failure
 
67430
$at_traceon; }
 
67431
 
 
67432
cat stdout >> output
 
67433
{ set +x
 
67434
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"gc\",
 
67435
      {\"op\": \"update\",
 
67436
       \"table\": \"a\",
 
67437
       \"where\": [[\"a\", \"==\", 4]],
 
67438
       \"row\": {\"a2a\": [\"set\", []]}}]'"
 
67439
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67440
( $at_check_trace; ovsdb-client transact unix:socket '   ["gc",
 
67441
      {"op": "update",
 
67442
       "table": "a",
 
67443
       "where": [["a", "==", 4]],
 
67444
       "row": {"a2a": ["set", []]}}]'
 
67445
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67446
at_status=$? at_failed=false
 
67447
$at_check_filter
 
67448
echo stderr:; cat "$at_stderr"
 
67449
echo stdout:; tee stdout <"$at_stdout"
 
67450
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67451
if $at_failed; then :
 
67452
  test ! -e pid || kill `cat pid`
 
67453
fi
 
67454
$at_failed && at_fn_log_failure
 
67455
$at_traceon; }
 
67456
 
 
67457
cat stdout >> output
 
67458
{ set +x
 
67459
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"gc\",
 
67460
      {\"op\": \"select\",
 
67461
       \"table\": \"a\",
 
67462
       \"where\": [],
 
67463
       \"columns\": [\"a\"]}]'"
 
67464
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67465
( $at_check_trace; ovsdb-client transact unix:socket '["gc",
 
67466
      {"op": "select",
 
67467
       "table": "a",
 
67468
       "where": [],
 
67469
       "columns": ["a"]}]'
 
67470
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67471
at_status=$? at_failed=false
 
67472
$at_check_filter
 
67473
echo stderr:; cat "$at_stderr"
 
67474
echo stdout:; tee stdout <"$at_stdout"
 
67475
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67476
if $at_failed; then :
 
67477
  test ! -e pid || kill `cat pid`
 
67478
fi
 
67479
$at_failed && at_fn_log_failure
 
67480
$at_traceon; }
 
67481
 
 
67482
cat stdout >> output
 
67483
{ set +x
 
67484
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '      [\"gc\",
 
67485
      {\"op\": \"insert\",
 
67486
       \"table\": \"a\",
 
67487
       \"row\": {\"a\": 6, \"wa2a\": [\"named-uuid\", \"row7\"]},
 
67488
       \"uuid-name\": \"row6\"},
 
67489
      {\"op\": \"insert\",
 
67490
       \"table\": \"a\",
 
67491
       \"row\": {\"a\": 7, \"wa2a\": [\"named-uuid\", \"row6\"]},
 
67492
       \"uuid-name\": \"row7\"}]'"
 
67493
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67494
( $at_check_trace; ovsdb-client transact unix:socket '      ["gc",
 
67495
      {"op": "insert",
 
67496
       "table": "a",
 
67497
       "row": {"a": 6, "wa2a": ["named-uuid", "row7"]},
 
67498
       "uuid-name": "row6"},
 
67499
      {"op": "insert",
 
67500
       "table": "a",
 
67501
       "row": {"a": 7, "wa2a": ["named-uuid", "row6"]},
 
67502
       "uuid-name": "row7"}]'
 
67503
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67504
at_status=$? at_failed=false
 
67505
$at_check_filter
 
67506
echo stderr:; cat "$at_stderr"
 
67507
echo stdout:; tee stdout <"$at_stdout"
 
67508
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67509
if $at_failed; then :
 
67510
  test ! -e pid || kill `cat pid`
 
67511
fi
 
67512
$at_failed && at_fn_log_failure
 
67513
$at_traceon; }
 
67514
 
 
67515
cat stdout >> output
 
67516
{ set +x
 
67517
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"gc\",
 
67518
      {\"op\": \"select\",
 
67519
       \"table\": \"a\",
 
67520
       \"where\": [],
 
67521
       \"columns\": [\"a\"]}]'"
 
67522
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67523
( $at_check_trace; ovsdb-client transact unix:socket '["gc",
 
67524
      {"op": "select",
 
67525
       "table": "a",
 
67526
       "where": [],
 
67527
       "columns": ["a"]}]'
 
67528
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67529
at_status=$? at_failed=false
 
67530
$at_check_filter
 
67531
echo stderr:; cat "$at_stderr"
 
67532
echo stdout:; tee stdout <"$at_stdout"
 
67533
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67534
if $at_failed; then :
 
67535
  test ! -e pid || kill `cat pid`
 
67536
fi
 
67537
$at_failed && at_fn_log_failure
 
67538
$at_traceon; }
 
67539
 
 
67540
cat stdout >> output
 
67541
{ set +x
 
67542
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"gc\",
 
67543
      {\"op\": \"insert\",
 
67544
       \"table\": \"a\",
 
67545
       \"row\": {\"a\": 8, \"a2a\": [\"named-uuid\", \"row9\"]},
 
67546
       \"uuid-name\": \"row8\"},
 
67547
      {\"op\": \"insert\",
 
67548
       \"table\": \"a\",
 
67549
       \"row\": {\"a\": 9, \"a2a\": [\"named-uuid\", \"row10\"]},
 
67550
       \"uuid-name\": \"row9\"},
 
67551
      {\"op\": \"insert\",
 
67552
       \"table\": \"a\",
 
67553
       \"row\": {\"a\": 10, \"a2a\": [\"named-uuid\", \"row11\"]},
 
67554
       \"uuid-name\": \"row10\"},
 
67555
      {\"op\": \"insert\",
 
67556
       \"table\": \"a\",
 
67557
       \"row\": {\"a\": 11, \"a2a\": [\"named-uuid\", \"row8\"]},
 
67558
       \"uuid-name\": \"row11\"}]'"
 
67559
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67560
( $at_check_trace; ovsdb-client transact unix:socket '   ["gc",
 
67561
      {"op": "insert",
 
67562
       "table": "a",
 
67563
       "row": {"a": 8, "a2a": ["named-uuid", "row9"]},
 
67564
       "uuid-name": "row8"},
 
67565
      {"op": "insert",
 
67566
       "table": "a",
 
67567
       "row": {"a": 9, "a2a": ["named-uuid", "row10"]},
 
67568
       "uuid-name": "row9"},
 
67569
      {"op": "insert",
 
67570
       "table": "a",
 
67571
       "row": {"a": 10, "a2a": ["named-uuid", "row11"]},
 
67572
       "uuid-name": "row10"},
 
67573
      {"op": "insert",
 
67574
       "table": "a",
 
67575
       "row": {"a": 11, "a2a": ["named-uuid", "row8"]},
 
67576
       "uuid-name": "row11"}]'
 
67577
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67578
at_status=$? at_failed=false
 
67579
$at_check_filter
 
67580
echo stderr:; cat "$at_stderr"
 
67581
echo stdout:; tee stdout <"$at_stdout"
 
67582
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67583
if $at_failed; then :
 
67584
  test ! -e pid || kill `cat pid`
 
67585
fi
 
67586
$at_failed && at_fn_log_failure
 
67587
$at_traceon; }
 
67588
 
 
67589
cat stdout >> output
 
67590
{ set +x
 
67591
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"gc\",
 
67592
      {\"op\": \"select\",
 
67593
       \"table\": \"a\",
 
67594
       \"where\": [],
 
67595
       \"columns\": [\"a\"],
 
67596
       \"sort\": [\"a\"]}]'"
 
67597
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67598
( $at_check_trace; ovsdb-client transact unix:socket '["gc",
 
67599
      {"op": "select",
 
67600
       "table": "a",
 
67601
       "where": [],
 
67602
       "columns": ["a"],
 
67603
       "sort": ["a"]}]'
 
67604
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67605
at_status=$? at_failed=false
 
67606
$at_check_filter
 
67607
echo stderr:; cat "$at_stderr"
 
67608
echo stdout:; tee stdout <"$at_stdout"
 
67609
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67610
if $at_failed; then :
 
67611
  test ! -e pid || kill `cat pid`
 
67612
fi
 
67613
$at_failed && at_fn_log_failure
 
67614
$at_traceon; }
 
67615
 
 
67616
cat stdout >> output
 
67617
{ set +x
 
67618
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"gc\",
 
67619
      {\"op\": \"update\",
 
67620
       \"table\": \"a\",
 
67621
       \"where\": [[\"a\", \"==\", 9]],
 
67622
       \"row\": {\"a2a\": [\"set\", []]}}]'"
 
67623
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67624
( $at_check_trace; ovsdb-client transact unix:socket '   ["gc",
 
67625
      {"op": "update",
 
67626
       "table": "a",
 
67627
       "where": [["a", "==", 9]],
 
67628
       "row": {"a2a": ["set", []]}}]'
 
67629
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67630
at_status=$? at_failed=false
 
67631
$at_check_filter
 
67632
echo stderr:; cat "$at_stderr"
 
67633
echo stdout:; tee stdout <"$at_stdout"
 
67634
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67635
if $at_failed; then :
 
67636
  test ! -e pid || kill `cat pid`
 
67637
fi
 
67638
$at_failed && at_fn_log_failure
 
67639
$at_traceon; }
 
67640
 
 
67641
cat stdout >> output
 
67642
{ set +x
 
67643
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"gc\",
 
67644
      {\"op\": \"select\",
 
67645
       \"table\": \"a\",
 
67646
       \"where\": [],
 
67647
       \"columns\": [\"a\"]}]'"
 
67648
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67649
( $at_check_trace; ovsdb-client transact unix:socket '["gc",
 
67650
      {"op": "select",
 
67651
       "table": "a",
 
67652
       "where": [],
 
67653
       "columns": ["a"]}]'
 
67654
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67655
at_status=$? at_failed=false
 
67656
$at_check_filter
 
67657
echo stderr:; cat "$at_stderr"
 
67658
echo stdout:; tee stdout <"$at_stdout"
 
67659
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67660
if $at_failed; then :
 
67661
  test ! -e pid || kill `cat pid`
 
67662
fi
 
67663
$at_failed && at_fn_log_failure
 
67664
$at_traceon; }
 
67665
 
 
67666
cat stdout >> output
 
67667
{ set +x
 
67668
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '   [\"gc\",
 
67669
      {\"op\": \"insert\",
 
67670
       \"table\": \"a\",
 
67671
       \"row\": {\"a\": 12, \"a2a\": [\"named-uuid\", \"self\"]},
 
67672
       \"uuid-name\": \"self\"}]'"
 
67673
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67674
( $at_check_trace; ovsdb-client transact unix:socket '   ["gc",
 
67675
      {"op": "insert",
 
67676
       "table": "a",
 
67677
       "row": {"a": 12, "a2a": ["named-uuid", "self"]},
 
67678
       "uuid-name": "self"}]'
 
67679
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67680
at_status=$? at_failed=false
 
67681
$at_check_filter
 
67682
echo stderr:; cat "$at_stderr"
 
67683
echo stdout:; tee stdout <"$at_stdout"
 
67684
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67685
if $at_failed; then :
 
67686
  test ! -e pid || kill `cat pid`
 
67687
fi
 
67688
$at_failed && at_fn_log_failure
 
67689
$at_traceon; }
 
67690
 
 
67691
cat stdout >> output
 
67692
{ set +x
 
67693
$as_echo "$at_srcdir/ovsdb-server.at:39: ovsdb-client transact unix:socket '[\"gc\",
 
67694
      {\"op\": \"select\",
 
67695
       \"table\": \"a\",
 
67696
       \"where\": [],
 
67697
       \"columns\": [\"a\"]}]'"
 
67698
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:39"
 
67699
( $at_check_trace; ovsdb-client transact unix:socket '["gc",
 
67700
      {"op": "select",
 
67701
       "table": "a",
 
67702
       "where": [],
 
67703
       "columns": ["a"]}]'
 
67704
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67705
at_status=$? at_failed=false
 
67706
$at_check_filter
 
67707
echo stderr:; cat "$at_stderr"
 
67708
echo stdout:; tee stdout <"$at_stdout"
 
67709
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67710
if $at_failed; then :
 
67711
  test ! -e pid || kill `cat pid`
 
67712
fi
 
67713
$at_failed && at_fn_log_failure
 
67714
$at_traceon; }
 
67715
 
 
67716
cat stdout >> output
 
67717
 
 
67718
   { set +x
 
67719
$as_echo "$at_srcdir/ovsdb-server.at:39: perl \$srcdir/uuidfilt.pl output"
 
67720
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:39"
 
67721
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
67722
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67723
at_status=$? at_failed=false
 
67724
$at_check_filter
 
67725
echo stderr:; cat "$at_stderr"
 
67726
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
67727
[{\"rows\":[]}]
 
67728
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
67729
[{\"rows\":[]}]
 
67730
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"uuid\":[\"uuid\",\"<6>\"]}]
 
67731
[{\"rows\":[{\"a\":4},{\"a\":5}]}]
 
67732
[{\"count\":1}]
 
67733
[{\"rows\":[]}]
 
67734
[{\"uuid\":[\"uuid\",\"<7>\"]},{\"uuid\":[\"uuid\",\"<8>\"]}]
 
67735
[{\"rows\":[]}]
 
67736
[{\"uuid\":[\"uuid\",\"<9>\"]},{\"uuid\":[\"uuid\",\"<10>\"]},{\"uuid\":[\"uuid\",\"<11>\"]},{\"uuid\":[\"uuid\",\"<12>\"]}]
 
67737
[{\"rows\":[{\"a\":8},{\"a\":9},{\"a\":10},{\"a\":11}]}]
 
67738
[{\"count\":1}]
 
67739
[{\"rows\":[]}]
 
67740
[{\"uuid\":[\"uuid\",\"<13>\"]}]
 
67741
[{\"rows\":[]}]
 
67742
" | \
 
67743
  $at_diff - "$at_stdout" || at_failed=:
 
67744
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67745
if $at_failed; then :
 
67746
  test ! -e pid || kill `cat pid`
 
67747
fi
 
67748
$at_failed && at_fn_log_failure
 
67749
$at_traceon; }
 
67750
 
 
67751
   cp pid savepid
 
67752
   { set +x
 
67753
$as_echo "$at_srcdir/ovsdb-server.at:39: ovs-appctl -t \$PWD/unixctl -e exit"
 
67754
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:39"
 
67755
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
67756
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67757
at_status=$? at_failed=false
 
67758
$at_check_filter
 
67759
echo stderr:; cat "$at_stderr"
 
67760
echo stdout:; cat "$at_stdout"
 
67761
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67762
$at_failed && at_fn_log_failure
 
67763
$at_traceon; }
 
67764
 
 
67765
   { set +x
 
67766
$as_echo "$at_srcdir/ovsdb-server.at:39: # First try a quick sleep, so that the test completes very quickly
 
67767
     # in the normal case.  POSIX doesn't require fractional times to
 
67768
     # work, so this might not work.
 
67769
     sleep 0.1
 
67770
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
67771
     # Then wait up to 10 seconds.
 
67772
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
67773
       sleep 1
 
67774
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
67775
     done
 
67776
     exit 1"
 
67777
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:39"
 
67778
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
67779
     # in the normal case.  POSIX doesn't require fractional times to
 
67780
     # work, so this might not work.
 
67781
     sleep 0.1
 
67782
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
67783
     # Then wait up to 10 seconds.
 
67784
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
67785
       sleep 1
 
67786
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
67787
     done
 
67788
     exit 1
 
67789
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67790
at_status=$? at_failed=false
 
67791
$at_check_filter
 
67792
echo stderr:; cat "$at_stderr"
 
67793
echo stdout:; cat "$at_stdout"
 
67794
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:39"
 
67795
if $at_failed; then :
 
67796
  kill `cat savepid`
 
67797
fi
 
67798
$at_failed && at_fn_log_failure
 
67799
$at_traceon; }
 
67800
 
 
67801
     set +x
 
67802
  $at_times_p && times >"$at_times_file"
 
67803
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
67804
read at_status <"$at_status_file"
 
67805
#AT_STOP_849
 
67806
#AT_START_850
 
67807
at_fn_group_banner 850 'ovsdb-server.at:41' \
 
67808
  "truncating corrupted database log" "              " 59
 
67809
at_xfail=no
 
67810
(
 
67811
  $as_echo "850. $at_setup_line: testing $at_desc ..."
 
67812
  $at_traceon
 
67813
 
 
67814
 
 
67815
cat >schema <<'_ATEOF'
 
67816
{"name": "ordinals",
 
67817
     "tables": {
 
67818
       "ordinals": {
 
67819
         "columns": {
 
67820
           "number": {"type": "integer"},
 
67821
           "name": {"type": "string"}},
 
67822
         "indexes": [["number"]]}},
 
67823
     "version": "5.1.3",
 
67824
     "cksum": "12345678 9"}
 
67825
_ATEOF
 
67826
 
 
67827
{ set +x
 
67828
$as_echo "$at_srcdir/ovsdb-server.at:45: ovsdb-tool create db schema"
 
67829
at_fn_check_prepare_trace "ovsdb-server.at:45"
 
67830
( $at_check_trace; ovsdb-tool create db schema
 
67831
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67832
at_status=$? at_failed=false
 
67833
$at_check_filter
 
67834
echo stderr:; cat "$at_stderr"
 
67835
echo stdout:; tee stdout <"$at_stdout"
 
67836
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:45"
 
67837
$at_failed && at_fn_log_failure
 
67838
$at_traceon; }
 
67839
 
 
67840
cat >txnfile <<'_ATEOF'
 
67841
ovsdb-client transact unix:socket \
 
67842
'["ordinals",
 
67843
  {"op": "insert",
 
67844
   "table": "ordinals",
 
67845
   "row": {"number": 0, "name": "zero"}}]'
 
67846
_ATEOF
 
67847
 
 
67848
{ set +x
 
67849
$as_echo "$at_srcdir/ovsdb-server.at:53: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
67850
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:53"
 
67851
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
67852
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67853
at_status=$? at_failed=false
 
67854
$at_check_filter
 
67855
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
67856
echo stdout:; tee stdout <"$at_stdout"
 
67857
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:53"
 
67858
$at_failed && at_fn_log_failure
 
67859
$at_traceon; }
 
67860
 
 
67861
cat stdout >> output
 
67862
echo 'xxx' >> db
 
67863
cat >txnfile <<'_ATEOF'
 
67864
ovsdb-client transact unix:socket \
 
67865
'["ordinals",
 
67866
  {"op": "insert",
 
67867
   "table": "ordinals",
 
67868
   "row": {"number": 1, "name": "one"}}]'
 
67869
_ATEOF
 
67870
 
 
67871
{ set +x
 
67872
$as_echo "$at_srcdir/ovsdb-server.at:64: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
67873
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:64"
 
67874
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
67875
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67876
at_status=$? at_failed=false
 
67877
$at_check_filter
 
67878
echo stderr:; tee stderr <"$at_stderr"
 
67879
echo stdout:; tee stdout <"$at_stdout"
 
67880
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:64"
 
67881
$at_failed && at_fn_log_failure
 
67882
$at_traceon; }
 
67883
 
 
67884
{ set +x
 
67885
$as_echo "$at_srcdir/ovsdb-server.at:65: grep 'syntax error: db: parse error.* in header line \"xxx\"' stderr"
 
67886
at_fn_check_prepare_trace "ovsdb-server.at:65"
 
67887
( $at_check_trace; grep 'syntax error: db: parse error.* in header line "xxx"' stderr
 
67888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67889
at_status=$? at_failed=false
 
67890
$at_check_filter
 
67891
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
67892
echo stdout:; cat "$at_stdout"
 
67893
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:65"
 
67894
$at_failed && at_fn_log_failure
 
67895
$at_traceon; }
 
67896
 
 
67897
cat stdout >> output
 
67898
cat >txnfile <<'_ATEOF'
 
67899
ovsdb-client transact unix:socket \
 
67900
'["ordinals",
 
67901
  {"op": "select",
 
67902
   "table": "ordinals",
 
67903
   "where": [],
 
67904
   "sort": ["number"]}]'
 
67905
_ATEOF
 
67906
 
 
67907
{ set +x
 
67908
$as_echo "$at_srcdir/ovsdb-server.at:78: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
67909
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:78"
 
67910
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
67911
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67912
at_status=$? at_failed=false
 
67913
$at_check_filter
 
67914
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
67915
echo stdout:; tee stdout <"$at_stdout"
 
67916
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:78"
 
67917
$at_failed && at_fn_log_failure
 
67918
$at_traceon; }
 
67919
 
 
67920
cat stdout >> output
 
67921
{ set +x
 
67922
$as_echo "$at_srcdir/ovsdb-server.at:80: perl \$srcdir/uuidfilt.pl output"
 
67923
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:80"
 
67924
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
67925
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67926
at_status=$? at_failed=false
 
67927
$at_check_filter
 
67928
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
67929
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
67930
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
67931
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
67932
" | \
 
67933
  $at_diff - "$at_stdout" || at_failed=:
 
67934
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:80"
 
67935
if $at_failed; then :
 
67936
  test ! -e pid || kill `cat pid`
 
67937
fi
 
67938
$at_failed && at_fn_log_failure
 
67939
$at_traceon; }
 
67940
 
 
67941
  set +x
 
67942
  $at_times_p && times >"$at_times_file"
 
67943
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
67944
read at_status <"$at_status_file"
 
67945
#AT_STOP_850
 
67946
#AT_START_851
 
67947
at_fn_group_banner 851 'ovsdb-server.at:88' \
 
67948
  "truncating database log with bad transaction" "   " 59
 
67949
at_xfail=no
 
67950
(
 
67951
  $as_echo "851. $at_setup_line: testing $at_desc ..."
 
67952
  $at_traceon
 
67953
 
 
67954
 
 
67955
cat >schema <<'_ATEOF'
 
67956
{"name": "ordinals",
 
67957
     "tables": {
 
67958
       "ordinals": {
 
67959
         "columns": {
 
67960
           "number": {"type": "integer"},
 
67961
           "name": {"type": "string"}},
 
67962
         "indexes": [["number"]]}},
 
67963
     "version": "5.1.3",
 
67964
     "cksum": "12345678 9"}
 
67965
_ATEOF
 
67966
 
 
67967
{ set +x
 
67968
$as_echo "$at_srcdir/ovsdb-server.at:92: ovsdb-tool create db schema"
 
67969
at_fn_check_prepare_trace "ovsdb-server.at:92"
 
67970
( $at_check_trace; ovsdb-tool create db schema
 
67971
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67972
at_status=$? at_failed=false
 
67973
$at_check_filter
 
67974
echo stderr:; cat "$at_stderr"
 
67975
echo stdout:; tee stdout <"$at_stdout"
 
67976
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:92"
 
67977
$at_failed && at_fn_log_failure
 
67978
$at_traceon; }
 
67979
 
 
67980
cat >txnfile <<'_ATEOF'
 
67981
ovsdb-client transact unix:socket \
 
67982
'["ordinals",
 
67983
  {"op": "insert",
 
67984
   "table": "ordinals",
 
67985
   "row": {"number": 0, "name": "zero"}}]'
 
67986
_ATEOF
 
67987
 
 
67988
{ set +x
 
67989
$as_echo "$at_srcdir/ovsdb-server.at:100: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
67990
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:100"
 
67991
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
67992
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
67993
at_status=$? at_failed=false
 
67994
$at_check_filter
 
67995
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
67996
echo stdout:; tee stdout <"$at_stdout"
 
67997
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:100"
 
67998
$at_failed && at_fn_log_failure
 
67999
$at_traceon; }
 
68000
 
 
68001
cat stdout >> output
 
68002
echo 'OVSDB JSON 15 ffbcdae4b0386265f9ea3280dd7c8f0b72a20e56
 
68003
{"invalid":{}}' >> db
 
68004
cat >txnfile <<'_ATEOF'
 
68005
ovsdb-client transact unix:socket \
 
68006
'["ordinals",
 
68007
  {"op": "insert",
 
68008
   "table": "ordinals",
 
68009
   "row": {"number": 1, "name": "one"}}]'
 
68010
_ATEOF
 
68011
 
 
68012
{ set +x
 
68013
$as_echo "$at_srcdir/ovsdb-server.at:112: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
68014
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:112"
 
68015
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
68016
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68017
at_status=$? at_failed=false
 
68018
$at_check_filter
 
68019
echo stderr:; tee stderr <"$at_stderr"
 
68020
echo stdout:; tee stdout <"$at_stdout"
 
68021
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:112"
 
68022
$at_failed && at_fn_log_failure
 
68023
$at_traceon; }
 
68024
 
 
68025
{ set +x
 
68026
$as_echo "$at_srcdir/ovsdb-server.at:113: grep 'syntax \"{\"invalid\":{}}\": unknown table: No table named invalid.' stderr"
 
68027
at_fn_check_prepare_trace "ovsdb-server.at:113"
 
68028
( $at_check_trace; grep 'syntax "{"invalid":{}}": unknown table: No table named invalid.' stderr
 
68029
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68030
at_status=$? at_failed=false
 
68031
$at_check_filter
 
68032
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68033
echo stdout:; cat "$at_stdout"
 
68034
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:113"
 
68035
$at_failed && at_fn_log_failure
 
68036
$at_traceon; }
 
68037
 
 
68038
cat stdout >> output
 
68039
cat >txnfile <<'_ATEOF'
 
68040
ovsdb-client transact unix:socket \
 
68041
'["ordinals",
 
68042
  {"op": "select",
 
68043
   "table": "ordinals",
 
68044
   "where": [],
 
68045
   "sort": ["number"]}]'
 
68046
_ATEOF
 
68047
 
 
68048
{ set +x
 
68049
$as_echo "$at_srcdir/ovsdb-server.at:126: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
68050
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:126"
 
68051
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
68052
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68053
at_status=$? at_failed=false
 
68054
$at_check_filter
 
68055
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68056
echo stdout:; tee stdout <"$at_stdout"
 
68057
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:126"
 
68058
$at_failed && at_fn_log_failure
 
68059
$at_traceon; }
 
68060
 
 
68061
cat stdout >> output
 
68062
{ set +x
 
68063
$as_echo "$at_srcdir/ovsdb-server.at:128: perl \$srcdir/uuidfilt.pl output"
 
68064
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:128"
 
68065
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
68066
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68067
at_status=$? at_failed=false
 
68068
$at_check_filter
 
68069
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68070
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
68071
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
68072
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
68073
" | \
 
68074
  $at_diff - "$at_stdout" || at_failed=:
 
68075
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:128"
 
68076
if $at_failed; then :
 
68077
  test ! -e pid || kill `cat pid`
 
68078
fi
 
68079
$at_failed && at_fn_log_failure
 
68080
$at_traceon; }
 
68081
 
 
68082
  set +x
 
68083
  $at_times_p && times >"$at_times_file"
 
68084
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
68085
read at_status <"$at_status_file"
 
68086
#AT_STOP_851
 
68087
#AT_START_852
 
68088
at_fn_group_banner 852 'ovsdb-server.at:136' \
 
68089
  "ovsdb-client get-schema-version" "                " 59
 
68090
at_xfail=no
 
68091
(
 
68092
  $as_echo "852. $at_setup_line: testing $at_desc ..."
 
68093
  $at_traceon
 
68094
 
 
68095
 
 
68096
cat >schema <<'_ATEOF'
 
68097
{"name": "ordinals",
 
68098
     "tables": {
 
68099
       "ordinals": {
 
68100
         "columns": {
 
68101
           "number": {"type": "integer"},
 
68102
           "name": {"type": "string"}},
 
68103
         "indexes": [["number"]]}},
 
68104
     "version": "5.1.3",
 
68105
     "cksum": "12345678 9"}
 
68106
_ATEOF
 
68107
 
 
68108
{ set +x
 
68109
$as_echo "$at_srcdir/ovsdb-server.at:140: ovsdb-tool create db schema"
 
68110
at_fn_check_prepare_trace "ovsdb-server.at:140"
 
68111
( $at_check_trace; ovsdb-tool create db schema
 
68112
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68113
at_status=$? at_failed=false
 
68114
$at_check_filter
 
68115
echo stderr:; cat "$at_stderr"
 
68116
echo stdout:; cat "$at_stdout"
 
68117
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:140"
 
68118
$at_failed && at_fn_log_failure
 
68119
$at_traceon; }
 
68120
 
 
68121
{ set +x
 
68122
$as_echo "$at_srcdir/ovsdb-server.at:141: ovsdb-server --detach --pidfile=\$PWD/pid --unixctl=\$PWD/unixctl --remote=punix:socket db"
 
68123
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/unixctl --remote=punix:socket db" "ovsdb-server.at:141"
 
68124
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/unixctl --remote=punix:socket db
 
68125
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68126
at_status=$? at_failed=false
 
68127
$at_check_filter
 
68128
echo stderr:; cat "$at_stderr"
 
68129
echo stdout:; cat "$at_stdout"
 
68130
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:141"
 
68131
$at_failed && at_fn_log_failure
 
68132
$at_traceon; }
 
68133
 
 
68134
{ set +x
 
68135
$as_echo "$at_srcdir/ovsdb-server.at:142: ovsdb-client get-schema-version unix:socket ordinals"
 
68136
at_fn_check_prepare_trace "ovsdb-server.at:142"
 
68137
( $at_check_trace; ovsdb-client get-schema-version unix:socket ordinals
 
68138
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68139
at_status=$? at_failed=false
 
68140
$at_check_filter
 
68141
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68142
echo >>"$at_stdout"; $as_echo "5.1.3
 
68143
" | \
 
68144
  $at_diff - "$at_stdout" || at_failed=:
 
68145
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:142"
 
68146
$at_failed && at_fn_log_failure
 
68147
$at_traceon; }
 
68148
 
 
68149
cp pid savepid
 
68150
   { set +x
 
68151
$as_echo "$at_srcdir/ovsdb-server.at:144: ovs-appctl -t \$PWD/unixctl -e exit"
 
68152
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:144"
 
68153
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
68154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68155
at_status=$? at_failed=false
 
68156
$at_check_filter
 
68157
echo stderr:; cat "$at_stderr"
 
68158
echo stdout:; cat "$at_stdout"
 
68159
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:144"
 
68160
$at_failed && at_fn_log_failure
 
68161
$at_traceon; }
 
68162
 
 
68163
   { set +x
 
68164
$as_echo "$at_srcdir/ovsdb-server.at:144: # First try a quick sleep, so that the test completes very quickly
 
68165
     # in the normal case.  POSIX doesn't require fractional times to
 
68166
     # work, so this might not work.
 
68167
     sleep 0.1
 
68168
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
68169
     # Then wait up to 10 seconds.
 
68170
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
68171
       sleep 1
 
68172
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
68173
     done
 
68174
     exit 1"
 
68175
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:144"
 
68176
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
68177
     # in the normal case.  POSIX doesn't require fractional times to
 
68178
     # work, so this might not work.
 
68179
     sleep 0.1
 
68180
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
68181
     # Then wait up to 10 seconds.
 
68182
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
68183
       sleep 1
 
68184
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
68185
     done
 
68186
     exit 1
 
68187
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68188
at_status=$? at_failed=false
 
68189
$at_check_filter
 
68190
echo stderr:; cat "$at_stderr"
 
68191
echo stdout:; cat "$at_stdout"
 
68192
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:144"
 
68193
if $at_failed; then :
 
68194
  kill `cat savepid`
 
68195
fi
 
68196
$at_failed && at_fn_log_failure
 
68197
$at_traceon; }
 
68198
 
 
68199
  set +x
 
68200
  $at_times_p && times >"$at_times_file"
 
68201
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
68202
read at_status <"$at_status_file"
 
68203
#AT_STOP_852
 
68204
#AT_START_853
 
68205
at_fn_group_banner 853 'ovsdb-server.at:147' \
 
68206
  "database multiplexing implementation" "           " 59
 
68207
at_xfail=no
 
68208
(
 
68209
  $as_echo "853. $at_setup_line: testing $at_desc ..."
 
68210
  $at_traceon
 
68211
 
 
68212
 
 
68213
cat >schema <<'_ATEOF'
 
68214
{"name": "ordinals",
 
68215
     "tables": {
 
68216
       "ordinals": {
 
68217
         "columns": {
 
68218
           "number": {"type": "integer"},
 
68219
           "name": {"type": "string"}},
 
68220
         "indexes": [["number"]]}},
 
68221
     "version": "5.1.3",
 
68222
     "cksum": "12345678 9"}
 
68223
_ATEOF
 
68224
 
 
68225
{ set +x
 
68226
$as_echo "$at_srcdir/ovsdb-server.at:151: ovsdb-tool create db schema"
 
68227
at_fn_check_prepare_trace "ovsdb-server.at:151"
 
68228
( $at_check_trace; ovsdb-tool create db schema
 
68229
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68230
at_status=$? at_failed=false
 
68231
$at_check_filter
 
68232
echo stderr:; cat "$at_stderr"
 
68233
echo stdout:; cat "$at_stdout"
 
68234
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:151"
 
68235
$at_failed && at_fn_log_failure
 
68236
$at_traceon; }
 
68237
 
 
68238
{ set +x
 
68239
$as_echo "$at_srcdir/ovsdb-server.at:152: ovsdb-server --detach --pidfile=\$PWD/pid --unixctl=\$PWD/unixctl --remote=punix:socket db"
 
68240
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/unixctl --remote=punix:socket db" "ovsdb-server.at:152"
 
68241
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/unixctl --remote=punix:socket db
 
68242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68243
at_status=$? at_failed=false
 
68244
$at_check_filter
 
68245
echo stderr:; cat "$at_stderr"
 
68246
echo stdout:; cat "$at_stdout"
 
68247
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:152"
 
68248
$at_failed && at_fn_log_failure
 
68249
$at_traceon; }
 
68250
 
 
68251
{ set +x
 
68252
$as_echo "$at_srcdir/ovsdb-server.at:153: ovsdb-client list-dbs unix:socket"
 
68253
at_fn_check_prepare_trace "ovsdb-server.at:153"
 
68254
( $at_check_trace; ovsdb-client list-dbs unix:socket
 
68255
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68256
at_status=$? at_failed=false
 
68257
$at_check_filter
 
68258
echo stderr:; cat "$at_stderr"
 
68259
echo >>"$at_stdout"; $as_echo "ordinals
 
68260
" | \
 
68261
  $at_diff - "$at_stdout" || at_failed=:
 
68262
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:153"
 
68263
if $at_failed; then :
 
68264
  test ! -e pid || kill `cat pid`
 
68265
fi
 
68266
$at_failed && at_fn_log_failure
 
68267
$at_traceon; }
 
68268
 
 
68269
{ set +x
 
68270
$as_echo "$at_srcdir/ovsdb-server.at:157: test-jsonrpc request unix:socket get_schema [\\\"nonexistent\\\"]"
 
68271
at_fn_check_prepare_trace "ovsdb-server.at:157"
 
68272
( $at_check_trace; test-jsonrpc request unix:socket get_schema [\"nonexistent\"]
 
68273
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68274
at_status=$? at_failed=false
 
68275
$at_check_filter
 
68276
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68277
echo >>"$at_stdout"; $as_echo "{\"error\":null,\"id\":0,\"result\":{\"details\":\"get_schema request specifies unknown database nonexistent\",\"error\":\"unknown database\",\"syntax\":\"[\\\"nonexistent\\\"]\"}}
 
68278
" | \
 
68279
  $at_diff - "$at_stdout" || at_failed=:
 
68280
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:157"
 
68281
if $at_failed; then :
 
68282
  test ! -e pid || kill `cat pid`
 
68283
fi
 
68284
$at_failed && at_fn_log_failure
 
68285
$at_traceon; }
 
68286
 
 
68287
cp pid savepid
 
68288
   { set +x
 
68289
$as_echo "$at_srcdir/ovsdb-server.at:161: ovs-appctl -t \$PWD/unixctl -e exit"
 
68290
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:161"
 
68291
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
68292
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68293
at_status=$? at_failed=false
 
68294
$at_check_filter
 
68295
echo stderr:; cat "$at_stderr"
 
68296
echo stdout:; cat "$at_stdout"
 
68297
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:161"
 
68298
$at_failed && at_fn_log_failure
 
68299
$at_traceon; }
 
68300
 
 
68301
   { set +x
 
68302
$as_echo "$at_srcdir/ovsdb-server.at:161: # First try a quick sleep, so that the test completes very quickly
 
68303
     # in the normal case.  POSIX doesn't require fractional times to
 
68304
     # work, so this might not work.
 
68305
     sleep 0.1
 
68306
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
68307
     # Then wait up to 10 seconds.
 
68308
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
68309
       sleep 1
 
68310
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
68311
     done
 
68312
     exit 1"
 
68313
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:161"
 
68314
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
68315
     # in the normal case.  POSIX doesn't require fractional times to
 
68316
     # work, so this might not work.
 
68317
     sleep 0.1
 
68318
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
68319
     # Then wait up to 10 seconds.
 
68320
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
68321
       sleep 1
 
68322
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
68323
     done
 
68324
     exit 1
 
68325
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68326
at_status=$? at_failed=false
 
68327
$at_check_filter
 
68328
echo stderr:; cat "$at_stderr"
 
68329
echo stdout:; cat "$at_stdout"
 
68330
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:161"
 
68331
if $at_failed; then :
 
68332
  kill `cat savepid`
 
68333
fi
 
68334
$at_failed && at_fn_log_failure
 
68335
$at_traceon; }
 
68336
 
 
68337
  set +x
 
68338
  $at_times_p && times >"$at_times_file"
 
68339
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
68340
read at_status <"$at_status_file"
 
68341
#AT_STOP_853
 
68342
#AT_START_854
 
68343
at_fn_group_banner 854 'ovsdb-server.at:164' \
 
68344
  "--remote=db: implementation" "                    " 59
 
68345
at_xfail=no
 
68346
(
 
68347
  $as_echo "854. $at_setup_line: testing $at_desc ..."
 
68348
  $at_traceon
 
68349
 
 
68350
 
 
68351
cat >schema <<'_ATEOF'
 
68352
{"name": "mydb",
 
68353
     "tables": {
 
68354
       "Manager": {
 
68355
         "columns": {
 
68356
           "manager": {"type": "string"}}}}}
 
68357
_ATEOF
 
68358
 
 
68359
{ set +x
 
68360
$as_echo "$at_srcdir/ovsdb-server.at:173: ovsdb-tool create db schema"
 
68361
at_fn_check_prepare_trace "ovsdb-server.at:173"
 
68362
( $at_check_trace; ovsdb-tool create db schema
 
68363
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68364
at_status=$? at_failed=false
 
68365
$at_check_filter
 
68366
echo stderr:; cat "$at_stderr"
 
68367
echo stdout:; cat "$at_stdout"
 
68368
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:173"
 
68369
$at_failed && at_fn_log_failure
 
68370
$at_traceon; }
 
68371
 
 
68372
{ set +x
 
68373
$as_echo "$at_srcdir/ovsdb-server.at:174: ovsdb-tool transact db \\
 
68374
     '[\"mydb\",
 
68375
       {\"op\": \"insert\",
 
68376
        \"table\": \"Manager\",
 
68377
        \"row\": {\"manager\": \"punix:socket\"}}]'"
 
68378
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:174"
 
68379
( $at_check_trace; ovsdb-tool transact db \
 
68380
     '["mydb",
 
68381
       {"op": "insert",
 
68382
        "table": "Manager",
 
68383
        "row": {"manager": "punix:socket"}}]'
 
68384
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68385
at_status=$? at_failed=false
 
68386
$at_check_filter
 
68387
echo stderr:; cat "$at_stderr"
 
68388
echo stdout:; cat "$at_stdout"
 
68389
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:174"
 
68390
$at_failed && at_fn_log_failure
 
68391
$at_traceon; }
 
68392
 
 
68393
{ set +x
 
68394
$as_echo "$at_srcdir/ovsdb-server.at:180: ovsdb-server --detach --pidfile=\$PWD/pid --remote=db:Manager,manager --unixctl=\$PWD/unixctl db"
 
68395
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=db:Manager,manager --unixctl=$PWD/unixctl db" "ovsdb-server.at:180"
 
68396
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=db:Manager,manager --unixctl=$PWD/unixctl db
 
68397
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68398
at_status=$? at_failed=false
 
68399
$at_check_filter
 
68400
echo stderr:; cat "$at_stderr"
 
68401
echo stdout:; cat "$at_stdout"
 
68402
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:180"
 
68403
$at_failed && at_fn_log_failure
 
68404
$at_traceon; }
 
68405
 
 
68406
{ set +x
 
68407
$as_echo "$at_srcdir/ovsdb-server.at:181: ovsdb-client transact unix:socket \\
 
68408
     '[\"mydb\",
 
68409
       {\"op\": \"select\",
 
68410
        \"table\": \"Manager\",
 
68411
        \"where\": [],
 
68412
        \"columns\": [\"manager\"]}]'"
 
68413
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:181"
 
68414
( $at_check_trace; ovsdb-client transact unix:socket \
 
68415
     '["mydb",
 
68416
       {"op": "select",
 
68417
        "table": "Manager",
 
68418
        "where": [],
 
68419
        "columns": ["manager"]}]'
 
68420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68421
at_status=$? at_failed=false
 
68422
$at_check_filter
 
68423
echo stderr:; cat "$at_stderr"
 
68424
echo stdout:; tee stdout <"$at_stdout"
 
68425
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:181"
 
68426
if $at_failed; then :
 
68427
  test ! -e pid || kill `cat pid`
 
68428
fi
 
68429
$at_failed && at_fn_log_failure
 
68430
$at_traceon; }
 
68431
 
 
68432
{ set +x
 
68433
$as_echo "$at_srcdir/ovsdb-server.at:189: perl \$srcdir/uuidfilt.pl stdout"
 
68434
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-server.at:189"
 
68435
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
68436
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68437
at_status=$? at_failed=false
 
68438
$at_check_filter
 
68439
echo stderr:; cat "$at_stderr"
 
68440
echo >>"$at_stdout"; $as_echo "[{\"rows\":[{\"manager\":\"punix:socket\"}]}]
 
68441
" | \
 
68442
  $at_diff - "$at_stdout" || at_failed=:
 
68443
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:189"
 
68444
if $at_failed; then :
 
68445
  test ! -e pid || kill `cat pid`
 
68446
fi
 
68447
$at_failed && at_fn_log_failure
 
68448
$at_traceon; }
 
68449
 
 
68450
cp pid savepid
 
68451
   { set +x
 
68452
$as_echo "$at_srcdir/ovsdb-server.at:196: ovs-appctl -t \$PWD/unixctl -e exit"
 
68453
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:196"
 
68454
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
68455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68456
at_status=$? at_failed=false
 
68457
$at_check_filter
 
68458
echo stderr:; cat "$at_stderr"
 
68459
echo stdout:; cat "$at_stdout"
 
68460
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:196"
 
68461
$at_failed && at_fn_log_failure
 
68462
$at_traceon; }
 
68463
 
 
68464
   { set +x
 
68465
$as_echo "$at_srcdir/ovsdb-server.at:196: # First try a quick sleep, so that the test completes very quickly
 
68466
     # in the normal case.  POSIX doesn't require fractional times to
 
68467
     # work, so this might not work.
 
68468
     sleep 0.1
 
68469
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
68470
     # Then wait up to 10 seconds.
 
68471
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
68472
       sleep 1
 
68473
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
68474
     done
 
68475
     exit 1"
 
68476
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:196"
 
68477
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
68478
     # in the normal case.  POSIX doesn't require fractional times to
 
68479
     # work, so this might not work.
 
68480
     sleep 0.1
 
68481
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
68482
     # Then wait up to 10 seconds.
 
68483
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
68484
       sleep 1
 
68485
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
68486
     done
 
68487
     exit 1
 
68488
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68489
at_status=$? at_failed=false
 
68490
$at_check_filter
 
68491
echo stderr:; cat "$at_stderr"
 
68492
echo stdout:; cat "$at_stdout"
 
68493
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:196"
 
68494
if $at_failed; then :
 
68495
  kill `cat savepid`
 
68496
fi
 
68497
$at_failed && at_fn_log_failure
 
68498
$at_traceon; }
 
68499
 
 
68500
  set +x
 
68501
  $at_times_p && times >"$at_times_file"
 
68502
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
68503
read at_status <"$at_status_file"
 
68504
#AT_STOP_854
 
68505
#AT_START_855
 
68506
at_fn_group_banner 855 'ovsdb-server.at:199' \
 
68507
  "SSL db: implementation" "                         " 59
 
68508
at_xfail=no
 
68509
(
 
68510
  $as_echo "855. $at_setup_line: testing $at_desc ..."
 
68511
  $at_traceon
 
68512
 
 
68513
 
 
68514
$as_echo "ovsdb-server.at:201" >"$at_check_line_file"
 
68515
(test "$HAVE_OPENSSL" = no) \
 
68516
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:201"
 
68517
$as_echo "ovsdb-server.at:202" >"$at_check_line_file"
 
68518
(test "x$RANDOM" = x) \
 
68519
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:202"
 
68520
SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
68521
PKIDIR=$abs_top_builddir/tests
 
68522
$as_echo "ovsdb-server.at:205" >"$at_check_line_file"
 
68523
(expr "$PKIDIR" : ".*   '\"
 
68524
 
 
 
b'\\\\") \\'
 
68525
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:205"
 
68526
cat >schema <<'_ATEOF'
 
68527
{"name": "mydb",
 
68528
     "tables": {
 
68529
       "SSL": {
 
68530
         "columns": {
 
68531
           "private_key": {"type": "string"},
 
68532
           "certificate": {"type": "string"},
 
68533
           "ca_cert": {"type": "string"}}}}}
 
68534
_ATEOF
 
68535
 
 
68536
{ set +x
 
68537
$as_echo "$at_srcdir/ovsdb-server.at:216: ovsdb-tool create db schema"
 
68538
at_fn_check_prepare_trace "ovsdb-server.at:216"
 
68539
( $at_check_trace; ovsdb-tool create db schema
 
68540
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68541
at_status=$? at_failed=false
 
68542
$at_check_filter
 
68543
echo stderr:; cat "$at_stderr"
 
68544
echo stdout:; tee stdout <"$at_stdout"
 
68545
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:216"
 
68546
$at_failed && at_fn_log_failure
 
68547
$at_traceon; }
 
68548
 
 
68549
{ set +x
 
68550
$as_echo "$at_srcdir/ovsdb-server.at:217: ovsdb-tool transact db \\
 
68551
     '[\"mydb\",
 
68552
       {\"op\": \"insert\",
 
68553
        \"table\": \"SSL\",
 
68554
        \"row\": {\"private_key\": \"'\"\$PKIDIR/testpki-privkey2.pem\"'\",
 
68555
                \"certificate\": \"'\"\$PKIDIR/testpki-cert2.pem\"'\",
 
68556
                \"ca_cert\": \"'\"\$PKIDIR/testpki-cacert.pem\"'\"}}]'"
 
68557
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:217"
 
68558
( $at_check_trace; ovsdb-tool transact db \
 
68559
     '["mydb",
 
68560
       {"op": "insert",
 
68561
        "table": "SSL",
 
68562
        "row": {"private_key": "'"$PKIDIR/testpki-privkey2.pem"'",
 
68563
                "certificate": "'"$PKIDIR/testpki-cert2.pem"'",
 
68564
                "ca_cert": "'"$PKIDIR/testpki-cacert.pem"'"}}]'
 
68565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68566
at_status=$? at_failed=false
 
68567
$at_check_filter
 
68568
echo stderr:; cat "$at_stderr"
 
68569
echo stdout:; cat "$at_stdout"
 
68570
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:217"
 
68571
$at_failed && at_fn_log_failure
 
68572
$at_traceon; }
 
68573
 
 
68574
{ set +x
 
68575
$as_echo "$at_srcdir/ovsdb-server.at:226: ovsdb-server --detach --pidfile=\$PWD/pid \\
 
68576
        --private-key=db:SSL,private_key \\
 
68577
        --certificate=db:SSL,certificate \\
 
68578
        --ca-cert=db:SSL,ca_cert \\
 
68579
         --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
68580
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:226"
 
68581
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid \
 
68582
        --private-key=db:SSL,private_key \
 
68583
        --certificate=db:SSL,certificate \
 
68584
        --ca-cert=db:SSL,ca_cert \
 
68585
         --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
68586
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68587
at_status=$? at_failed=false
 
68588
$at_check_filter
 
68589
echo stderr:; cat "$at_stderr"
 
68590
echo stdout:; cat "$at_stdout"
 
68591
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:226"
 
68592
$at_failed && at_fn_log_failure
 
68593
$at_traceon; }
 
68594
 
 
68595
{ set +x
 
68596
$as_echo "$at_srcdir/ovsdb-server.at:233: ovsdb-client \\
 
68597
        --private-key=\$PKIDIR/testpki-privkey.pem \\
 
68598
        --certificate=\$PKIDIR/testpki-cert.pem \\
 
68599
        --ca-cert=\$PKIDIR/testpki-cacert.pem \\
 
68600
        transact ssl:127.0.0.1:\$SSL_PORT \\
 
68601
        '[\"mydb\",
 
68602
          {\"op\": \"select\",
 
68603
           \"table\": \"SSL\",
 
68604
           \"where\": [],
 
68605
           \"columns\": [\"private_key\"]}]'"
 
68606
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:233"
 
68607
( $at_check_trace; ovsdb-client \
 
68608
        --private-key=$PKIDIR/testpki-privkey.pem \
 
68609
        --certificate=$PKIDIR/testpki-cert.pem \
 
68610
        --ca-cert=$PKIDIR/testpki-cacert.pem \
 
68611
        transact ssl:127.0.0.1:$SSL_PORT \
 
68612
        '["mydb",
 
68613
          {"op": "select",
 
68614
           "table": "SSL",
 
68615
           "where": [],
 
68616
           "columns": ["private_key"]}]'
 
68617
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68618
at_status=$? at_failed=false
 
68619
$at_check_filter
 
68620
echo stderr:; cat "$at_stderr"
 
68621
echo stdout:; tee stdout <"$at_stdout"
 
68622
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:233"
 
68623
if $at_failed; then :
 
68624
  test ! -e pid || kill `cat pid`
 
68625
fi
 
68626
$at_failed && at_fn_log_failure
 
68627
$at_traceon; }
 
68628
 
 
68629
cat stdout >> output
 
68630
{ set +x
 
68631
$as_echo "$at_srcdir/ovsdb-server.at:246: perl \$srcdir/uuidfilt.pl output"
 
68632
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:246"
 
68633
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
68634
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68635
at_status=$? at_failed=false
 
68636
$at_check_filter
 
68637
echo stderr:; cat "$at_stderr"
 
68638
echo >>"$at_stdout"; $as_echo "[{\"rows\":[{\"private_key\":\"$PKIDIR/testpki-privkey2.pem\"}]}]
 
68639
" | \
 
68640
  $at_diff - "$at_stdout" || at_failed=:
 
68641
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:246"
 
68642
if $at_failed; then :
 
68643
  test ! -e pid || kill `cat pid`
 
68644
fi
 
68645
$at_failed && at_fn_log_failure
 
68646
$at_traceon; }
 
68647
 
 
68648
cp pid savepid
 
68649
   { set +x
 
68650
$as_echo "$at_srcdir/ovsdb-server.at:250: ovs-appctl -t \$PWD/unixctl -e exit"
 
68651
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:250"
 
68652
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
68653
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68654
at_status=$? at_failed=false
 
68655
$at_check_filter
 
68656
echo stderr:; cat "$at_stderr"
 
68657
echo stdout:; cat "$at_stdout"
 
68658
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:250"
 
68659
$at_failed && at_fn_log_failure
 
68660
$at_traceon; }
 
68661
 
 
68662
   { set +x
 
68663
$as_echo "$at_srcdir/ovsdb-server.at:250: # First try a quick sleep, so that the test completes very quickly
 
68664
     # in the normal case.  POSIX doesn't require fractional times to
 
68665
     # work, so this might not work.
 
68666
     sleep 0.1
 
68667
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
68668
     # Then wait up to 10 seconds.
 
68669
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
68670
       sleep 1
 
68671
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
68672
     done
 
68673
     exit 1"
 
68674
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:250"
 
68675
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
68676
     # in the normal case.  POSIX doesn't require fractional times to
 
68677
     # work, so this might not work.
 
68678
     sleep 0.1
 
68679
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
68680
     # Then wait up to 10 seconds.
 
68681
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
68682
       sleep 1
 
68683
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
68684
     done
 
68685
     exit 1
 
68686
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68687
at_status=$? at_failed=false
 
68688
$at_check_filter
 
68689
echo stderr:; cat "$at_stderr"
 
68690
echo stdout:; cat "$at_stdout"
 
68691
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:250"
 
68692
if $at_failed; then :
 
68693
  kill `cat savepid`
 
68694
fi
 
68695
$at_failed && at_fn_log_failure
 
68696
$at_traceon; }
 
68697
 
 
68698
  set +x
 
68699
  $at_times_p && times >"$at_times_file"
 
68700
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
68701
read at_status <"$at_status_file"
 
68702
#AT_STOP_855
 
68703
#AT_START_856
 
68704
at_fn_group_banner 856 'ovsdb-server.at:253' \
 
68705
  "compacting online" "                              " 59
 
68706
at_xfail=no
 
68707
(
 
68708
  $as_echo "856. $at_setup_line: testing $at_desc ..."
 
68709
  $at_traceon
 
68710
 
 
68711
 
 
68712
cat >schema <<'_ATEOF'
 
68713
{"name": "ordinals",
 
68714
     "tables": {
 
68715
       "ordinals": {
 
68716
         "columns": {
 
68717
           "number": {"type": "integer"},
 
68718
           "name": {"type": "string"}},
 
68719
         "indexes": [["number"]]}},
 
68720
     "version": "5.1.3",
 
68721
     "cksum": "12345678 9"}
 
68722
_ATEOF
 
68723
 
 
68724
touch .db.~lock~
 
68725
{ set +x
 
68726
$as_echo "$at_srcdir/ovsdb-server.at:258: ovsdb-tool create db schema"
 
68727
at_fn_check_prepare_trace "ovsdb-server.at:258"
 
68728
( $at_check_trace; ovsdb-tool create db schema
 
68729
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68730
at_status=$? at_failed=false
 
68731
$at_check_filter
 
68732
echo stderr:; cat "$at_stderr"
 
68733
echo stdout:; cat "$at_stdout"
 
68734
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:258"
 
68735
$at_failed && at_fn_log_failure
 
68736
$at_traceon; }
 
68737
 
 
68738
{ set +x
 
68739
$as_echo "$at_srcdir/ovsdb-server.at:259: ovsdb-server --detach --pidfile=\$PWD/pid --unixctl=\$PWD/unixctl --remote=punix:socket --log-file=\$PWD/ovsdb-server.log db"
 
68740
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/unixctl --remote=punix:socket --log-file=$PWD/ovsdb-server.log db" "ovsdb-server.at:259"
 
68741
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --unixctl=$PWD/unixctl --remote=punix:socket --log-file=$PWD/ovsdb-server.log db
 
68742
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68743
at_status=$? at_failed=false
 
68744
$at_check_filter
 
68745
echo stderr:; cat "$at_stderr"
 
68746
echo stdout:; cat "$at_stdout"
 
68747
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:259"
 
68748
$at_failed && at_fn_log_failure
 
68749
$at_traceon; }
 
68750
 
 
68751
 
 
68752
{ set +x
 
68753
$as_echo "$at_srcdir/ovsdb-server.at:262: for pair in 'zero 0' 'one 1' 'two 2' 'three 3' 'four 4' 'five 5'; do
 
68754
      set -- \$pair
 
68755
      ovsdb-client transact unix:socket '
 
68756
        [\"ordinals\",
 
68757
         {\"op\": \"insert\",
 
68758
          \"table\": \"ordinals\",
 
68759
          \"row\": {\"name\": \"'\$1'\", \"number\": '\$2'}},
 
68760
         {\"op\": \"comment\",
 
68761
          \"comment\": \"add row for '\"\$pair\"'\"}]'
 
68762
      ovsdb-client transact unix:socket '
 
68763
        [\"ordinals\",
 
68764
         {\"op\": \"delete\",
 
68765
          \"table\": \"ordinals\",
 
68766
          \"where\": [[\"number\", \"==\", '\$2']]},
 
68767
         {\"op\": \"comment\",
 
68768
          \"comment\": \"delete row for '\"\$2\"'\"}]'
 
68769
      ovsdb-client transact unix:socket '
 
68770
        [\"ordinals\",
 
68771
         {\"op\": \"insert\",
 
68772
          \"table\": \"ordinals\",
 
68773
          \"row\": {\"name\": \"'\$1'\", \"number\": '\$2'}},
 
68774
         {\"op\": \"comment\",
 
68775
          \"comment\": \"add back row for '\"\$pair\"'\"}]'
 
68776
    done"
 
68777
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:262"
 
68778
( $at_check_trace; for pair in 'zero 0' 'one 1' 'two 2' 'three 3' 'four 4' 'five 5'; do
 
68779
      set -- $pair
 
68780
      ovsdb-client transact unix:socket '
 
68781
        ["ordinals",
 
68782
         {"op": "insert",
 
68783
          "table": "ordinals",
 
68784
          "row": {"name": "'$1'", "number": '$2'}},
 
68785
         {"op": "comment",
 
68786
          "comment": "add row for '"$pair"'"}]'
 
68787
      ovsdb-client transact unix:socket '
 
68788
        ["ordinals",
 
68789
         {"op": "delete",
 
68790
          "table": "ordinals",
 
68791
          "where": [["number", "==", '$2']]},
 
68792
         {"op": "comment",
 
68793
          "comment": "delete row for '"$2"'"}]'
 
68794
      ovsdb-client transact unix:socket '
 
68795
        ["ordinals",
 
68796
         {"op": "insert",
 
68797
          "table": "ordinals",
 
68798
          "row": {"name": "'$1'", "number": '$2'}},
 
68799
         {"op": "comment",
 
68800
          "comment": "add back row for '"$pair"'"}]'
 
68801
    done
 
68802
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68803
at_status=$? at_failed=false
 
68804
$at_check_filter
 
68805
echo stderr:; cat "$at_stderr"
 
68806
echo stdout:; tee stdout <"$at_stdout"
 
68807
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:262"
 
68808
if $at_failed; then :
 
68809
  test ! -e pid || kill `cat pid`
 
68810
fi
 
68811
$at_failed && at_fn_log_failure  \
 
68812
"ovsdb-server.log"
 
68813
$at_traceon; }
 
68814
 
 
68815
{ set +x
 
68816
$as_echo "$at_srcdir/ovsdb-server.at:289: perl \$srcdir/uuidfilt.pl db | grep -v ^OVSDB | sed 's/\"_date\":[0-9]*/\"_date\":0/' | test-json --multiple -"
 
68817
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-server.at:289"
 
68818
( $at_check_trace; perl $srcdir/uuidfilt.pl db | grep -v ^OVSDB | sed 's/"_date":[0-9]*/"_date":0/' | test-json --multiple -
 
68819
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68820
at_status=$? at_failed=false
 
68821
$at_check_filter
 
68822
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68823
echo >>"$at_stdout"; $as_echo "{\"cksum\":\"12345678 9\",\"name\":\"ordinals\",\"tables\":{\"ordinals\":{\"columns\":{\"name\":{\"type\":\"string\"},\"number\":{\"type\":\"integer\"}},\"indexes\":[[\"number\"]]}},\"version\":\"5.1.3\"}
 
68824
{\"_comment\":\"add row for zero 0\",\"_date\":0,\"ordinals\":{\"<0>\":{\"name\":\"zero\"}}}
 
68825
{\"_comment\":\"delete row for 0\",\"_date\":0,\"ordinals\":{\"<0>\":null}}
 
68826
{\"_comment\":\"add back row for zero 0\",\"_date\":0,\"ordinals\":{\"<1>\":{\"name\":\"zero\"}}}
 
68827
{\"_comment\":\"add row for one 1\",\"_date\":0,\"ordinals\":{\"<2>\":{\"name\":\"one\",\"number\":1}}}
 
68828
{\"_comment\":\"delete row for 1\",\"_date\":0,\"ordinals\":{\"<2>\":null}}
 
68829
{\"_comment\":\"add back row for one 1\",\"_date\":0,\"ordinals\":{\"<3>\":{\"name\":\"one\",\"number\":1}}}
 
68830
{\"_comment\":\"add row for two 2\",\"_date\":0,\"ordinals\":{\"<4>\":{\"name\":\"two\",\"number\":2}}}
 
68831
{\"_comment\":\"delete row for 2\",\"_date\":0,\"ordinals\":{\"<4>\":null}}
 
68832
{\"_comment\":\"add back row for two 2\",\"_date\":0,\"ordinals\":{\"<5>\":{\"name\":\"two\",\"number\":2}}}
 
68833
{\"_comment\":\"add row for three 3\",\"_date\":0,\"ordinals\":{\"<6>\":{\"name\":\"three\",\"number\":3}}}
 
68834
{\"_comment\":\"delete row for 3\",\"_date\":0,\"ordinals\":{\"<6>\":null}}
 
68835
{\"_comment\":\"add back row for three 3\",\"_date\":0,\"ordinals\":{\"<7>\":{\"name\":\"three\",\"number\":3}}}
 
68836
{\"_comment\":\"add row for four 4\",\"_date\":0,\"ordinals\":{\"<8>\":{\"name\":\"four\",\"number\":4}}}
 
68837
{\"_comment\":\"delete row for 4\",\"_date\":0,\"ordinals\":{\"<8>\":null}}
 
68838
{\"_comment\":\"add back row for four 4\",\"_date\":0,\"ordinals\":{\"<9>\":{\"name\":\"four\",\"number\":4}}}
 
68839
{\"_comment\":\"add row for five 5\",\"_date\":0,\"ordinals\":{\"<10>\":{\"name\":\"five\",\"number\":5}}}
 
68840
{\"_comment\":\"delete row for 5\",\"_date\":0,\"ordinals\":{\"<10>\":null}}
 
68841
{\"_comment\":\"add back row for five 5\",\"_date\":0,\"ordinals\":{\"<11>\":{\"name\":\"five\",\"number\":5}}}
 
68842
" | \
 
68843
  $at_diff - "$at_stdout" || at_failed=:
 
68844
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:289"
 
68845
if $at_failed; then :
 
68846
  test ! -e pid || kill `cat pid`
 
68847
fi
 
68848
$at_failed && at_fn_log_failure  \
 
68849
"ovsdb-server.log"
 
68850
$at_traceon; }
 
68851
 
 
68852
{ set +x
 
68853
$as_echo "$at_srcdir/ovsdb-server.at:311: ovsdb-client dump unix:socket ordinals"
 
68854
at_fn_check_prepare_trace "ovsdb-server.at:311"
 
68855
( $at_check_trace; ovsdb-client dump unix:socket ordinals
 
68856
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68857
at_status=$? at_failed=false
 
68858
$at_check_filter
 
68859
echo stderr:; cat "$at_stderr"
 
68860
echo stdout:; tee stdout <"$at_stdout"
 
68861
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:311"
 
68862
$at_failed && at_fn_log_failure  \
 
68863
"ovsdb-server.log"
 
68864
$at_traceon; }
 
68865
 
 
68866
{ set +x
 
68867
$as_echo "$at_srcdir/ovsdb-server.at:313: perl \$srcdir/uuidfilt.pl stdout"
 
68868
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-server.at:313"
 
68869
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
68870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68871
at_status=$? at_failed=false
 
68872
$at_check_filter
 
68873
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68874
echo >>"$at_stdout"; $as_echo "ordinals table
 
68875
_uuid                                name  number
 
68876
------------------------------------ ----- ------
 
68877
<0> five  5     
 
68878
<1> four  4     
 
68879
<2> one   1     
 
68880
<3> three 3     
 
68881
<4> two   2     
 
68882
<5> zero  0     
 
68883
" | \
 
68884
  $at_diff - "$at_stdout" || at_failed=:
 
68885
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:313"
 
68886
if $at_failed; then :
 
68887
  test ! -e pid || kill `cat pid`
 
68888
fi
 
68889
$at_failed && at_fn_log_failure  \
 
68890
"ovsdb-server.log"
 
68891
$at_traceon; }
 
68892
 
 
68893
{ set +x
 
68894
$as_echo "$at_srcdir/ovsdb-server.at:325: ovs-appctl -t \$PWD/unixctl ovsdb-server/compact"
 
68895
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl ovsdb-server/compact" "ovsdb-server.at:325"
 
68896
( $at_check_trace; ovs-appctl -t $PWD/unixctl ovsdb-server/compact
 
68897
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68898
at_status=$? at_failed=false
 
68899
$at_check_filter
 
68900
echo stderr:; cat "$at_stderr"
 
68901
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
68902
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:325"
 
68903
if $at_failed; then :
 
68904
  test ! -e pid || kill `cat pid`
 
68905
fi
 
68906
$at_failed && at_fn_log_failure  \
 
68907
"ovsdb-server.log"
 
68908
$at_traceon; }
 
68909
 
 
68910
 
 
68911
{ set +x
 
68912
$as_echo "$at_srcdir/ovsdb-server.at:331: wc -l < db"
 
68913
at_fn_check_prepare_trace "ovsdb-server.at:331"
 
68914
( $at_check_trace; wc -l < db
 
68915
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68916
at_status=$? at_failed=false
 
68917
$at_check_filter
 
68918
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68919
echo >>"$at_stdout"; $as_echo "4
 
68920
" | \
 
68921
  $at_diff - "$at_stdout" || at_failed=:
 
68922
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:331"
 
68923
if $at_failed; then :
 
68924
  test ! -e pid || kill `cat pid`
 
68925
fi
 
68926
$at_failed && at_fn_log_failure  \
 
68927
"ovsdb-server.log" \
 
68928
"db"
 
68929
$at_traceon; }
 
68930
 
 
68931
{ set +x
 
68932
$as_echo "$at_srcdir/ovsdb-server.at:334: ovsdb-client dump unix:socket ordinals"
 
68933
at_fn_check_prepare_trace "ovsdb-server.at:334"
 
68934
( $at_check_trace; ovsdb-client dump unix:socket ordinals
 
68935
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68936
at_status=$? at_failed=false
 
68937
$at_check_filter
 
68938
echo stderr:; cat "$at_stderr"
 
68939
echo stdout:; tee stdout <"$at_stdout"
 
68940
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:334"
 
68941
if $at_failed; then :
 
68942
  test ! -e pid || kill `cat pid`
 
68943
fi
 
68944
$at_failed && at_fn_log_failure  \
 
68945
"ovsdb-server.log" \
 
68946
"db"
 
68947
$at_traceon; }
 
68948
 
 
68949
{ set +x
 
68950
$as_echo "$at_srcdir/ovsdb-server.at:336: perl \$srcdir/uuidfilt.pl stdout"
 
68951
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-server.at:336"
 
68952
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
68953
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68954
at_status=$? at_failed=false
 
68955
$at_check_filter
 
68956
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
68957
echo >>"$at_stdout"; $as_echo "ordinals table
 
68958
_uuid                                name  number
 
68959
------------------------------------ ----- ------
 
68960
<0> five  5     
 
68961
<1> four  4     
 
68962
<2> one   1     
 
68963
<3> three 3     
 
68964
<4> two   2     
 
68965
<5> zero  0     
 
68966
" | \
 
68967
  $at_diff - "$at_stdout" || at_failed=:
 
68968
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:336"
 
68969
if $at_failed; then :
 
68970
  test ! -e pid || kill `cat pid`
 
68971
fi
 
68972
$at_failed && at_fn_log_failure  \
 
68973
"ovsdb-server.log" \
 
68974
"db"
 
68975
$at_traceon; }
 
68976
 
 
68977
{ set +x
 
68978
$as_echo "$at_srcdir/ovsdb-server.at:348: ovsdb-client transact unix:socket '
 
68979
     [\"ordinals\",
 
68980
      {\"op\": \"delete\",
 
68981
       \"table\": \"ordinals\",
 
68982
       \"where\": [[\"number\", \"<\", 3]]}]'"
 
68983
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:348"
 
68984
( $at_check_trace; ovsdb-client transact unix:socket '
 
68985
     ["ordinals",
 
68986
      {"op": "delete",
 
68987
       "table": "ordinals",
 
68988
       "where": [["number", "<", 3]]}]'
 
68989
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
68990
at_status=$? at_failed=false
 
68991
$at_check_filter
 
68992
echo stderr:; cat "$at_stderr"
 
68993
echo >>"$at_stdout"; $as_echo "[{\"count\":3}]
 
68994
" | \
 
68995
  $at_diff - "$at_stdout" || at_failed=:
 
68996
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:348"
 
68997
if $at_failed; then :
 
68998
  test ! -e pid || kill `cat pid`
 
68999
fi
 
69000
$at_failed && at_fn_log_failure  \
 
69001
"ovsdb-server.log" \
 
69002
"db"
 
69003
$at_traceon; }
 
69004
 
 
69005
{ set +x
 
69006
$as_echo "$at_srcdir/ovsdb-server.at:357: wc -l < db"
 
69007
at_fn_check_prepare_trace "ovsdb-server.at:357"
 
69008
( $at_check_trace; wc -l < db
 
69009
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69010
at_status=$? at_failed=false
 
69011
$at_check_filter
 
69012
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
69013
echo >>"$at_stdout"; $as_echo "6
 
69014
" | \
 
69015
  $at_diff - "$at_stdout" || at_failed=:
 
69016
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:357"
 
69017
if $at_failed; then :
 
69018
  test ! -e pid || kill `cat pid`
 
69019
fi
 
69020
$at_failed && at_fn_log_failure  \
 
69021
"ovsdb-server.log" \
 
69022
"db"
 
69023
$at_traceon; }
 
69024
 
 
69025
{ set +x
 
69026
$as_echo "$at_srcdir/ovsdb-server.at:360: ovsdb-client dump unix:socket ordinals"
 
69027
at_fn_check_prepare_trace "ovsdb-server.at:360"
 
69028
( $at_check_trace; ovsdb-client dump unix:socket ordinals
 
69029
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69030
at_status=$? at_failed=false
 
69031
$at_check_filter
 
69032
echo stderr:; cat "$at_stderr"
 
69033
echo stdout:; tee stdout <"$at_stdout"
 
69034
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:360"
 
69035
if $at_failed; then :
 
69036
  test ! -e pid || kill `cat pid`
 
69037
fi
 
69038
$at_failed && at_fn_log_failure  \
 
69039
"ovsdb-server.log" \
 
69040
"db"
 
69041
$at_traceon; }
 
69042
 
 
69043
{ set +x
 
69044
$as_echo "$at_srcdir/ovsdb-server.at:362: perl \$srcdir/uuidfilt.pl stdout"
 
69045
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovsdb-server.at:362"
 
69046
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
69047
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69048
at_status=$? at_failed=false
 
69049
$at_check_filter
 
69050
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
69051
echo >>"$at_stdout"; $as_echo "ordinals table
 
69052
_uuid                                name  number
 
69053
------------------------------------ ----- ------
 
69054
<0> five  5     
 
69055
<1> four  4     
 
69056
<2> three 3     
 
69057
" | \
 
69058
  $at_diff - "$at_stdout" || at_failed=:
 
69059
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:362"
 
69060
if $at_failed; then :
 
69061
  test ! -e pid || kill `cat pid`
 
69062
fi
 
69063
$at_failed && at_fn_log_failure  \
 
69064
"ovsdb-server.log" \
 
69065
"db"
 
69066
$at_traceon; }
 
69067
 
 
69068
cp pid savepid
 
69069
   { set +x
 
69070
$as_echo "$at_srcdir/ovsdb-server.at:370: ovs-appctl -t \$PWD/unixctl -e exit"
 
69071
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:370"
 
69072
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
69073
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69074
at_status=$? at_failed=false
 
69075
$at_check_filter
 
69076
echo stderr:; cat "$at_stderr"
 
69077
echo stdout:; cat "$at_stdout"
 
69078
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:370"
 
69079
$at_failed && at_fn_log_failure  \
 
69080
"ovsdb-server.log" \
 
69081
"db"
 
69082
$at_traceon; }
 
69083
 
 
69084
   { set +x
 
69085
$as_echo "$at_srcdir/ovsdb-server.at:370: # First try a quick sleep, so that the test completes very quickly
 
69086
     # in the normal case.  POSIX doesn't require fractional times to
 
69087
     # work, so this might not work.
 
69088
     sleep 0.1
 
69089
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69090
     # Then wait up to 10 seconds.
 
69091
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69092
       sleep 1
 
69093
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69094
     done
 
69095
     exit 1"
 
69096
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:370"
 
69097
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
69098
     # in the normal case.  POSIX doesn't require fractional times to
 
69099
     # work, so this might not work.
 
69100
     sleep 0.1
 
69101
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
69102
     # Then wait up to 10 seconds.
 
69103
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69104
       sleep 1
 
69105
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
69106
     done
 
69107
     exit 1
 
69108
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69109
at_status=$? at_failed=false
 
69110
$at_check_filter
 
69111
echo stderr:; cat "$at_stderr"
 
69112
echo stdout:; cat "$at_stdout"
 
69113
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:370"
 
69114
if $at_failed; then :
 
69115
  kill `cat savepid`
 
69116
fi
 
69117
$at_failed && at_fn_log_failure  \
 
69118
"ovsdb-server.log" \
 
69119
"db"
 
69120
$at_traceon; }
 
69121
 
 
69122
  set +x
 
69123
  $at_times_p && times >"$at_times_file"
 
69124
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
69125
read at_status <"$at_status_file"
 
69126
#AT_STOP_856
 
69127
#AT_START_857
 
69128
at_fn_group_banner 857 'ovsdb-server.at:410' \
 
69129
  "insert default row, query table" "                " 60
 
69130
at_xfail=no
 
69131
(
 
69132
  $as_echo "857. $at_setup_line: testing $at_desc ..."
 
69133
  $at_traceon
 
69134
 
 
69135
 
 
69136
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69137
(test "$HAVE_OPENSSL" = no) \
 
69138
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69139
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69140
(test "x$RANDOM" = x) \
 
69141
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69142
   cat >schema <<'_ATEOF'
 
69143
{"name": "ordinals",
 
69144
     "tables": {
 
69145
       "ordinals": {
 
69146
         "columns": {
 
69147
           "number": {"type": "integer"},
 
69148
           "name": {"type": "string"}},
 
69149
         "indexes": [["number"]]}},
 
69150
     "version": "5.1.3",
 
69151
     "cksum": "12345678 9"}
 
69152
_ATEOF
 
69153
 
 
69154
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
69155
   PKIDIR=$abs_top_builddir/tests
 
69156
   { set +x
 
69157
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
69158
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
69159
( $at_check_trace; ovsdb-tool create db schema
 
69160
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69161
at_status=$? at_failed=false
 
69162
$at_check_filter
 
69163
echo stderr:; cat "$at_stderr"
 
69164
echo stdout:; tee stdout <"$at_stdout"
 
69165
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69166
$at_failed && at_fn_log_failure
 
69167
$at_traceon; }
 
69168
 
 
69169
   { set +x
 
69170
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
69171
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
69172
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
69173
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69174
at_status=$? at_failed=false
 
69175
$at_check_filter
 
69176
echo stderr:; cat "$at_stderr"
 
69177
echo stdout:; cat "$at_stdout"
 
69178
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69179
$at_failed && at_fn_log_failure
 
69180
$at_traceon; }
 
69181
 
 
69182
   { set +x
 
69183
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69184
      {\"op\": \"insert\",
 
69185
       \"table\": \"ordinals\",
 
69186
       \"row\": {}}]'"
 
69187
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69188
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69189
      {"op": "insert",
 
69190
       "table": "ordinals",
 
69191
       "row": {}}]'
 
69192
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69193
at_status=$? at_failed=false
 
69194
$at_check_filter
 
69195
echo stderr:; cat "$at_stderr"
 
69196
echo stdout:; tee stdout <"$at_stdout"
 
69197
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69198
if $at_failed; then :
 
69199
  test ! -e pid || kill `cat pid`
 
69200
fi
 
69201
$at_failed && at_fn_log_failure
 
69202
$at_traceon; }
 
69203
 
 
69204
cat stdout >> output
 
69205
{ set +x
 
69206
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69207
      {\"op\": \"select\",
 
69208
       \"table\": \"ordinals\",
 
69209
       \"where\": []}]'"
 
69210
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69211
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69212
      {"op": "select",
 
69213
       "table": "ordinals",
 
69214
       "where": []}]'
 
69215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69216
at_status=$? at_failed=false
 
69217
$at_check_filter
 
69218
echo stderr:; cat "$at_stderr"
 
69219
echo stdout:; tee stdout <"$at_stdout"
 
69220
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69221
if $at_failed; then :
 
69222
  test ! -e pid || kill `cat pid`
 
69223
fi
 
69224
$at_failed && at_fn_log_failure
 
69225
$at_traceon; }
 
69226
 
 
69227
cat stdout >> output
 
69228
 
 
69229
   { set +x
 
69230
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
69231
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
69232
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
69233
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69234
at_status=$? at_failed=false
 
69235
$at_check_filter
 
69236
echo stderr:; cat "$at_stderr"
 
69237
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
69238
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"\",\"number\":0}]}]
 
69239
" | \
 
69240
  $at_diff - "$at_stdout" || at_failed=:
 
69241
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69242
if $at_failed; then :
 
69243
  test ! -e pid || kill `cat pid`
 
69244
fi
 
69245
$at_failed && at_fn_log_failure
 
69246
$at_traceon; }
 
69247
 
 
69248
   cp pid savepid
 
69249
   { set +x
 
69250
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
69251
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
69252
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
69253
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69254
at_status=$? at_failed=false
 
69255
$at_check_filter
 
69256
echo stderr:; cat "$at_stderr"
 
69257
echo stdout:; cat "$at_stdout"
 
69258
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69259
$at_failed && at_fn_log_failure
 
69260
$at_traceon; }
 
69261
 
 
69262
   { set +x
 
69263
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
69264
     # in the normal case.  POSIX doesn't require fractional times to
 
69265
     # work, so this might not work.
 
69266
     sleep 0.1
 
69267
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69268
     # Then wait up to 10 seconds.
 
69269
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69270
       sleep 1
 
69271
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69272
     done
 
69273
     exit 1"
 
69274
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
69275
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
69276
     # in the normal case.  POSIX doesn't require fractional times to
 
69277
     # work, so this might not work.
 
69278
     sleep 0.1
 
69279
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
69280
     # Then wait up to 10 seconds.
 
69281
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69282
       sleep 1
 
69283
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
69284
     done
 
69285
     exit 1
 
69286
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69287
at_status=$? at_failed=false
 
69288
$at_check_filter
 
69289
echo stderr:; cat "$at_stderr"
 
69290
echo stdout:; cat "$at_stdout"
 
69291
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69292
if $at_failed; then :
 
69293
  kill `cat savepid`
 
69294
fi
 
69295
$at_failed && at_fn_log_failure
 
69296
$at_traceon; }
 
69297
 
 
69298
     set +x
 
69299
  $at_times_p && times >"$at_times_file"
 
69300
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
69301
read at_status <"$at_status_file"
 
69302
#AT_STOP_857
 
69303
#AT_START_858
 
69304
at_fn_group_banner 858 'ovsdb-server.at:410' \
 
69305
  "insert row, query table" "                        " 60
 
69306
at_xfail=no
 
69307
(
 
69308
  $as_echo "858. $at_setup_line: testing $at_desc ..."
 
69309
  $at_traceon
 
69310
 
 
69311
 
 
69312
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69313
(test "$HAVE_OPENSSL" = no) \
 
69314
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69315
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69316
(test "x$RANDOM" = x) \
 
69317
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69318
   cat >schema <<'_ATEOF'
 
69319
{"name": "ordinals",
 
69320
     "tables": {
 
69321
       "ordinals": {
 
69322
         "columns": {
 
69323
           "number": {"type": "integer"},
 
69324
           "name": {"type": "string"}},
 
69325
         "indexes": [["number"]]}},
 
69326
     "version": "5.1.3",
 
69327
     "cksum": "12345678 9"}
 
69328
_ATEOF
 
69329
 
 
69330
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
69331
   PKIDIR=$abs_top_builddir/tests
 
69332
   { set +x
 
69333
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
69334
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
69335
( $at_check_trace; ovsdb-tool create db schema
 
69336
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69337
at_status=$? at_failed=false
 
69338
$at_check_filter
 
69339
echo stderr:; cat "$at_stderr"
 
69340
echo stdout:; tee stdout <"$at_stdout"
 
69341
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69342
$at_failed && at_fn_log_failure
 
69343
$at_traceon; }
 
69344
 
 
69345
   { set +x
 
69346
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
69347
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
69348
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
69349
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69350
at_status=$? at_failed=false
 
69351
$at_check_filter
 
69352
echo stderr:; cat "$at_stderr"
 
69353
echo stdout:; cat "$at_stdout"
 
69354
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69355
$at_failed && at_fn_log_failure
 
69356
$at_traceon; }
 
69357
 
 
69358
   { set +x
 
69359
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69360
      {\"op\": \"insert\",
 
69361
       \"table\": \"ordinals\",
 
69362
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]'"
 
69363
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69364
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69365
      {"op": "insert",
 
69366
       "table": "ordinals",
 
69367
       "row": {"number": 0, "name": "zero"}}]'
 
69368
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69369
at_status=$? at_failed=false
 
69370
$at_check_filter
 
69371
echo stderr:; cat "$at_stderr"
 
69372
echo stdout:; tee stdout <"$at_stdout"
 
69373
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69374
if $at_failed; then :
 
69375
  test ! -e pid || kill `cat pid`
 
69376
fi
 
69377
$at_failed && at_fn_log_failure
 
69378
$at_traceon; }
 
69379
 
 
69380
cat stdout >> output
 
69381
{ set +x
 
69382
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69383
      {\"op\": \"select\",
 
69384
       \"table\": \"ordinals\",
 
69385
       \"where\": []}]'"
 
69386
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69387
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69388
      {"op": "select",
 
69389
       "table": "ordinals",
 
69390
       "where": []}]'
 
69391
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69392
at_status=$? at_failed=false
 
69393
$at_check_filter
 
69394
echo stderr:; cat "$at_stderr"
 
69395
echo stdout:; tee stdout <"$at_stdout"
 
69396
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69397
if $at_failed; then :
 
69398
  test ! -e pid || kill `cat pid`
 
69399
fi
 
69400
$at_failed && at_fn_log_failure
 
69401
$at_traceon; }
 
69402
 
 
69403
cat stdout >> output
 
69404
 
 
69405
   { set +x
 
69406
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
69407
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
69408
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
69409
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69410
at_status=$? at_failed=false
 
69411
$at_check_filter
 
69412
echo stderr:; cat "$at_stderr"
 
69413
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
69414
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]}]
 
69415
" | \
 
69416
  $at_diff - "$at_stdout" || at_failed=:
 
69417
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69418
if $at_failed; then :
 
69419
  test ! -e pid || kill `cat pid`
 
69420
fi
 
69421
$at_failed && at_fn_log_failure
 
69422
$at_traceon; }
 
69423
 
 
69424
   cp pid savepid
 
69425
   { set +x
 
69426
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
69427
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
69428
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
69429
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69430
at_status=$? at_failed=false
 
69431
$at_check_filter
 
69432
echo stderr:; cat "$at_stderr"
 
69433
echo stdout:; cat "$at_stdout"
 
69434
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69435
$at_failed && at_fn_log_failure
 
69436
$at_traceon; }
 
69437
 
 
69438
   { set +x
 
69439
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
69440
     # in the normal case.  POSIX doesn't require fractional times to
 
69441
     # work, so this might not work.
 
69442
     sleep 0.1
 
69443
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69444
     # Then wait up to 10 seconds.
 
69445
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69446
       sleep 1
 
69447
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69448
     done
 
69449
     exit 1"
 
69450
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
69451
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
69452
     # in the normal case.  POSIX doesn't require fractional times to
 
69453
     # work, so this might not work.
 
69454
     sleep 0.1
 
69455
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
69456
     # Then wait up to 10 seconds.
 
69457
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69458
       sleep 1
 
69459
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
69460
     done
 
69461
     exit 1
 
69462
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69463
at_status=$? at_failed=false
 
69464
$at_check_filter
 
69465
echo stderr:; cat "$at_stderr"
 
69466
echo stdout:; cat "$at_stdout"
 
69467
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69468
if $at_failed; then :
 
69469
  kill `cat savepid`
 
69470
fi
 
69471
$at_failed && at_fn_log_failure
 
69472
$at_traceon; }
 
69473
 
 
69474
     set +x
 
69475
  $at_times_p && times >"$at_times_file"
 
69476
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
69477
read at_status <"$at_status_file"
 
69478
#AT_STOP_858
 
69479
#AT_START_859
 
69480
at_fn_group_banner 859 'ovsdb-server.at:410' \
 
69481
  "insert rows, query by value" "                    " 60
 
69482
at_xfail=no
 
69483
(
 
69484
  $as_echo "859. $at_setup_line: testing $at_desc ..."
 
69485
  $at_traceon
 
69486
 
 
69487
 
 
69488
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69489
(test "$HAVE_OPENSSL" = no) \
 
69490
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69491
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69492
(test "x$RANDOM" = x) \
 
69493
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69494
   cat >schema <<'_ATEOF'
 
69495
{"name": "ordinals",
 
69496
     "tables": {
 
69497
       "ordinals": {
 
69498
         "columns": {
 
69499
           "number": {"type": "integer"},
 
69500
           "name": {"type": "string"}},
 
69501
         "indexes": [["number"]]}},
 
69502
     "version": "5.1.3",
 
69503
     "cksum": "12345678 9"}
 
69504
_ATEOF
 
69505
 
 
69506
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
69507
   PKIDIR=$abs_top_builddir/tests
 
69508
   { set +x
 
69509
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
69510
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
69511
( $at_check_trace; ovsdb-tool create db schema
 
69512
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69513
at_status=$? at_failed=false
 
69514
$at_check_filter
 
69515
echo stderr:; cat "$at_stderr"
 
69516
echo stdout:; tee stdout <"$at_stdout"
 
69517
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69518
$at_failed && at_fn_log_failure
 
69519
$at_traceon; }
 
69520
 
 
69521
   { set +x
 
69522
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
69523
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
69524
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
69525
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69526
at_status=$? at_failed=false
 
69527
$at_check_filter
 
69528
echo stderr:; cat "$at_stderr"
 
69529
echo stdout:; cat "$at_stdout"
 
69530
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69531
$at_failed && at_fn_log_failure
 
69532
$at_traceon; }
 
69533
 
 
69534
   { set +x
 
69535
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69536
      {\"op\": \"insert\",
 
69537
       \"table\": \"ordinals\",
 
69538
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]'"
 
69539
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69540
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69541
      {"op": "insert",
 
69542
       "table": "ordinals",
 
69543
       "row": {"number": 0, "name": "zero"}}]'
 
69544
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69545
at_status=$? at_failed=false
 
69546
$at_check_filter
 
69547
echo stderr:; cat "$at_stderr"
 
69548
echo stdout:; tee stdout <"$at_stdout"
 
69549
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69550
if $at_failed; then :
 
69551
  test ! -e pid || kill `cat pid`
 
69552
fi
 
69553
$at_failed && at_fn_log_failure
 
69554
$at_traceon; }
 
69555
 
 
69556
cat stdout >> output
 
69557
{ set +x
 
69558
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69559
      {\"op\": \"insert\",
 
69560
       \"table\": \"ordinals\",
 
69561
       \"row\": {\"number\": 1, \"name\": \"one\"}}]'"
 
69562
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69563
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69564
      {"op": "insert",
 
69565
       "table": "ordinals",
 
69566
       "row": {"number": 1, "name": "one"}}]'
 
69567
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69568
at_status=$? at_failed=false
 
69569
$at_check_filter
 
69570
echo stderr:; cat "$at_stderr"
 
69571
echo stdout:; tee stdout <"$at_stdout"
 
69572
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69573
if $at_failed; then :
 
69574
  test ! -e pid || kill `cat pid`
 
69575
fi
 
69576
$at_failed && at_fn_log_failure
 
69577
$at_traceon; }
 
69578
 
 
69579
cat stdout >> output
 
69580
{ set +x
 
69581
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69582
      {\"op\": \"select\",
 
69583
       \"table\": \"ordinals\",
 
69584
       \"where\": [[\"name\", \"==\", \"zero\"]]}]'"
 
69585
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69586
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69587
      {"op": "select",
 
69588
       "table": "ordinals",
 
69589
       "where": [["name", "==", "zero"]]}]'
 
69590
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69591
at_status=$? at_failed=false
 
69592
$at_check_filter
 
69593
echo stderr:; cat "$at_stderr"
 
69594
echo stdout:; tee stdout <"$at_stdout"
 
69595
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69596
if $at_failed; then :
 
69597
  test ! -e pid || kill `cat pid`
 
69598
fi
 
69599
$at_failed && at_fn_log_failure
 
69600
$at_traceon; }
 
69601
 
 
69602
cat stdout >> output
 
69603
{ set +x
 
69604
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69605
      {\"op\": \"select\",
 
69606
       \"table\": \"ordinals\",
 
69607
       \"where\": [[\"name\", \"==\", \"one\"]]}]'"
 
69608
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69609
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69610
      {"op": "select",
 
69611
       "table": "ordinals",
 
69612
       "where": [["name", "==", "one"]]}]'
 
69613
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69614
at_status=$? at_failed=false
 
69615
$at_check_filter
 
69616
echo stderr:; cat "$at_stderr"
 
69617
echo stdout:; tee stdout <"$at_stdout"
 
69618
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69619
if $at_failed; then :
 
69620
  test ! -e pid || kill `cat pid`
 
69621
fi
 
69622
$at_failed && at_fn_log_failure
 
69623
$at_traceon; }
 
69624
 
 
69625
cat stdout >> output
 
69626
 
 
69627
   { set +x
 
69628
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
69629
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
69630
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
69631
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69632
at_status=$? at_failed=false
 
69633
$at_check_filter
 
69634
echo stderr:; cat "$at_stderr"
 
69635
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
69636
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
69637
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]}]
 
69638
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
69639
" | \
 
69640
  $at_diff - "$at_stdout" || at_failed=:
 
69641
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69642
if $at_failed; then :
 
69643
  test ! -e pid || kill `cat pid`
 
69644
fi
 
69645
$at_failed && at_fn_log_failure
 
69646
$at_traceon; }
 
69647
 
 
69648
   cp pid savepid
 
69649
   { set +x
 
69650
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
69651
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
69652
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
69653
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69654
at_status=$? at_failed=false
 
69655
$at_check_filter
 
69656
echo stderr:; cat "$at_stderr"
 
69657
echo stdout:; cat "$at_stdout"
 
69658
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69659
$at_failed && at_fn_log_failure
 
69660
$at_traceon; }
 
69661
 
 
69662
   { set +x
 
69663
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
69664
     # in the normal case.  POSIX doesn't require fractional times to
 
69665
     # work, so this might not work.
 
69666
     sleep 0.1
 
69667
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69668
     # Then wait up to 10 seconds.
 
69669
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69670
       sleep 1
 
69671
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69672
     done
 
69673
     exit 1"
 
69674
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
69675
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
69676
     # in the normal case.  POSIX doesn't require fractional times to
 
69677
     # work, so this might not work.
 
69678
     sleep 0.1
 
69679
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
69680
     # Then wait up to 10 seconds.
 
69681
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69682
       sleep 1
 
69683
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
69684
     done
 
69685
     exit 1
 
69686
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69687
at_status=$? at_failed=false
 
69688
$at_check_filter
 
69689
echo stderr:; cat "$at_stderr"
 
69690
echo stdout:; cat "$at_stdout"
 
69691
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69692
if $at_failed; then :
 
69693
  kill `cat savepid`
 
69694
fi
 
69695
$at_failed && at_fn_log_failure
 
69696
$at_traceon; }
 
69697
 
 
69698
     set +x
 
69699
  $at_times_p && times >"$at_times_file"
 
69700
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
69701
read at_status <"$at_status_file"
 
69702
#AT_STOP_859
 
69703
#AT_START_860
 
69704
at_fn_group_banner 860 'ovsdb-server.at:410' \
 
69705
  "insert rows, query by named-uuid" "               " 60
 
69706
at_xfail=no
 
69707
(
 
69708
  $as_echo "860. $at_setup_line: testing $at_desc ..."
 
69709
  $at_traceon
 
69710
 
 
69711
 
 
69712
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69713
(test "$HAVE_OPENSSL" = no) \
 
69714
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69715
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69716
(test "x$RANDOM" = x) \
 
69717
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69718
   cat >schema <<'_ATEOF'
 
69719
{"name": "ordinals",
 
69720
     "tables": {
 
69721
       "ordinals": {
 
69722
         "columns": {
 
69723
           "number": {"type": "integer"},
 
69724
           "name": {"type": "string"}},
 
69725
         "indexes": [["number"]]}},
 
69726
     "version": "5.1.3",
 
69727
     "cksum": "12345678 9"}
 
69728
_ATEOF
 
69729
 
 
69730
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
69731
   PKIDIR=$abs_top_builddir/tests
 
69732
   { set +x
 
69733
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
69734
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
69735
( $at_check_trace; ovsdb-tool create db schema
 
69736
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69737
at_status=$? at_failed=false
 
69738
$at_check_filter
 
69739
echo stderr:; cat "$at_stderr"
 
69740
echo stdout:; tee stdout <"$at_stdout"
 
69741
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69742
$at_failed && at_fn_log_failure
 
69743
$at_traceon; }
 
69744
 
 
69745
   { set +x
 
69746
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
69747
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
69748
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
69749
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69750
at_status=$? at_failed=false
 
69751
$at_check_filter
 
69752
echo stderr:; cat "$at_stderr"
 
69753
echo stdout:; cat "$at_stdout"
 
69754
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69755
$at_failed && at_fn_log_failure
 
69756
$at_traceon; }
 
69757
 
 
69758
   { set +x
 
69759
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69760
      {\"op\": \"insert\",
 
69761
       \"table\": \"ordinals\",
 
69762
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
69763
       \"uuid-name\": \"first\"},
 
69764
      {\"op\": \"insert\",
 
69765
       \"table\": \"ordinals\",
 
69766
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
69767
       \"uuid-name\": \"second\"},
 
69768
      {\"op\": \"select\",
 
69769
       \"table\": \"ordinals\",
 
69770
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"first\"]]]},
 
69771
      {\"op\": \"select\",
 
69772
       \"table\": \"ordinals\",
 
69773
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"second\"]]]}]'"
 
69774
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69775
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69776
      {"op": "insert",
 
69777
       "table": "ordinals",
 
69778
       "row": {"number": 0, "name": "zero"},
 
69779
       "uuid-name": "first"},
 
69780
      {"op": "insert",
 
69781
       "table": "ordinals",
 
69782
       "row": {"number": 1, "name": "one"},
 
69783
       "uuid-name": "second"},
 
69784
      {"op": "select",
 
69785
       "table": "ordinals",
 
69786
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
69787
      {"op": "select",
 
69788
       "table": "ordinals",
 
69789
       "where": [["_uuid", "==", ["named-uuid", "second"]]]}]'
 
69790
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69791
at_status=$? at_failed=false
 
69792
$at_check_filter
 
69793
echo stderr:; cat "$at_stderr"
 
69794
echo stdout:; tee stdout <"$at_stdout"
 
69795
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69796
if $at_failed; then :
 
69797
  test ! -e pid || kill `cat pid`
 
69798
fi
 
69799
$at_failed && at_fn_log_failure
 
69800
$at_traceon; }
 
69801
 
 
69802
cat stdout >> output
 
69803
 
 
69804
   { set +x
 
69805
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
69806
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
69807
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
69808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69809
at_status=$? at_failed=false
 
69810
$at_check_filter
 
69811
echo stderr:; cat "$at_stderr"
 
69812
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
69813
" | \
 
69814
  $at_diff - "$at_stdout" || at_failed=:
 
69815
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69816
if $at_failed; then :
 
69817
  test ! -e pid || kill `cat pid`
 
69818
fi
 
69819
$at_failed && at_fn_log_failure
 
69820
$at_traceon; }
 
69821
 
 
69822
   cp pid savepid
 
69823
   { set +x
 
69824
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
69825
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
69826
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
69827
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69828
at_status=$? at_failed=false
 
69829
$at_check_filter
 
69830
echo stderr:; cat "$at_stderr"
 
69831
echo stdout:; cat "$at_stdout"
 
69832
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69833
$at_failed && at_fn_log_failure
 
69834
$at_traceon; }
 
69835
 
 
69836
   { set +x
 
69837
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
69838
     # in the normal case.  POSIX doesn't require fractional times to
 
69839
     # work, so this might not work.
 
69840
     sleep 0.1
 
69841
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69842
     # Then wait up to 10 seconds.
 
69843
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69844
       sleep 1
 
69845
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
69846
     done
 
69847
     exit 1"
 
69848
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
69849
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
69850
     # in the normal case.  POSIX doesn't require fractional times to
 
69851
     # work, so this might not work.
 
69852
     sleep 0.1
 
69853
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
69854
     # Then wait up to 10 seconds.
 
69855
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
69856
       sleep 1
 
69857
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
69858
     done
 
69859
     exit 1
 
69860
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69861
at_status=$? at_failed=false
 
69862
$at_check_filter
 
69863
echo stderr:; cat "$at_stderr"
 
69864
echo stdout:; cat "$at_stdout"
 
69865
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69866
if $at_failed; then :
 
69867
  kill `cat savepid`
 
69868
fi
 
69869
$at_failed && at_fn_log_failure
 
69870
$at_traceon; }
 
69871
 
 
69872
     set +x
 
69873
  $at_times_p && times >"$at_times_file"
 
69874
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
69875
read at_status <"$at_status_file"
 
69876
#AT_STOP_860
 
69877
#AT_START_861
 
69878
at_fn_group_banner 861 'ovsdb-server.at:410' \
 
69879
  "insert rows, update rows by value" "              " 60
 
69880
at_xfail=no
 
69881
(
 
69882
  $as_echo "861. $at_setup_line: testing $at_desc ..."
 
69883
  $at_traceon
 
69884
 
 
69885
 
 
69886
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69887
(test "$HAVE_OPENSSL" = no) \
 
69888
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69889
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
69890
(test "x$RANDOM" = x) \
 
69891
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
69892
   cat >schema <<'_ATEOF'
 
69893
{"name": "ordinals",
 
69894
     "tables": {
 
69895
       "ordinals": {
 
69896
         "columns": {
 
69897
           "number": {"type": "integer"},
 
69898
           "name": {"type": "string"}},
 
69899
         "indexes": [["number"]]}},
 
69900
     "version": "5.1.3",
 
69901
     "cksum": "12345678 9"}
 
69902
_ATEOF
 
69903
 
 
69904
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
69905
   PKIDIR=$abs_top_builddir/tests
 
69906
   { set +x
 
69907
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
69908
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
69909
( $at_check_trace; ovsdb-tool create db schema
 
69910
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69911
at_status=$? at_failed=false
 
69912
$at_check_filter
 
69913
echo stderr:; cat "$at_stderr"
 
69914
echo stdout:; tee stdout <"$at_stdout"
 
69915
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69916
$at_failed && at_fn_log_failure
 
69917
$at_traceon; }
 
69918
 
 
69919
   { set +x
 
69920
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
69921
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
69922
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
69923
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69924
at_status=$? at_failed=false
 
69925
$at_check_filter
 
69926
echo stderr:; cat "$at_stderr"
 
69927
echo stdout:; cat "$at_stdout"
 
69928
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69929
$at_failed && at_fn_log_failure
 
69930
$at_traceon; }
 
69931
 
 
69932
   { set +x
 
69933
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69934
      {\"op\": \"insert\",
 
69935
       \"table\": \"ordinals\",
 
69936
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
69937
       \"uuid-name\": \"first\"}]'"
 
69938
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69939
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69940
      {"op": "insert",
 
69941
       "table": "ordinals",
 
69942
       "row": {"number": 0, "name": "zero"},
 
69943
       "uuid-name": "first"}]'
 
69944
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69945
at_status=$? at_failed=false
 
69946
$at_check_filter
 
69947
echo stderr:; cat "$at_stderr"
 
69948
echo stdout:; tee stdout <"$at_stdout"
 
69949
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69950
if $at_failed; then :
 
69951
  test ! -e pid || kill `cat pid`
 
69952
fi
 
69953
$at_failed && at_fn_log_failure
 
69954
$at_traceon; }
 
69955
 
 
69956
cat stdout >> output
 
69957
{ set +x
 
69958
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69959
      {\"op\": \"insert\",
 
69960
       \"table\": \"ordinals\",
 
69961
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
69962
       \"uuid-name\": \"first\"}]'"
 
69963
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69964
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69965
      {"op": "insert",
 
69966
       "table": "ordinals",
 
69967
       "row": {"number": 1, "name": "one"},
 
69968
       "uuid-name": "first"}]'
 
69969
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69970
at_status=$? at_failed=false
 
69971
$at_check_filter
 
69972
echo stderr:; cat "$at_stderr"
 
69973
echo stdout:; tee stdout <"$at_stdout"
 
69974
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
69975
if $at_failed; then :
 
69976
  test ! -e pid || kill `cat pid`
 
69977
fi
 
69978
$at_failed && at_fn_log_failure
 
69979
$at_traceon; }
 
69980
 
 
69981
cat stdout >> output
 
69982
{ set +x
 
69983
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
69984
      {\"op\": \"update\",
 
69985
       \"table\": \"ordinals\",
 
69986
       \"where\": [[\"name\", \"==\", \"zero\"]],
 
69987
       \"row\": {\"name\": \"nought\"}}]'"
 
69988
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
69989
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
69990
      {"op": "update",
 
69991
       "table": "ordinals",
 
69992
       "where": [["name", "==", "zero"]],
 
69993
       "row": {"name": "nought"}}]'
 
69994
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
69995
at_status=$? at_failed=false
 
69996
$at_check_filter
 
69997
echo stderr:; cat "$at_stderr"
 
69998
echo stdout:; tee stdout <"$at_stdout"
 
69999
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70000
if $at_failed; then :
 
70001
  test ! -e pid || kill `cat pid`
 
70002
fi
 
70003
$at_failed && at_fn_log_failure
 
70004
$at_traceon; }
 
70005
 
 
70006
cat stdout >> output
 
70007
{ set +x
 
70008
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70009
      {\"op\": \"select\",
 
70010
       \"table\": \"ordinals\",
 
70011
       \"where\": [],
 
70012
       \"sort\": [\"number\"]}]'"
 
70013
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70014
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70015
      {"op": "select",
 
70016
       "table": "ordinals",
 
70017
       "where": [],
 
70018
       "sort": ["number"]}]'
 
70019
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70020
at_status=$? at_failed=false
 
70021
$at_check_filter
 
70022
echo stderr:; cat "$at_stderr"
 
70023
echo stdout:; tee stdout <"$at_stdout"
 
70024
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70025
if $at_failed; then :
 
70026
  test ! -e pid || kill `cat pid`
 
70027
fi
 
70028
$at_failed && at_fn_log_failure
 
70029
$at_traceon; }
 
70030
 
 
70031
cat stdout >> output
 
70032
 
 
70033
   { set +x
 
70034
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
70035
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
70036
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
70037
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70038
at_status=$? at_failed=false
 
70039
$at_check_filter
 
70040
echo stderr:; cat "$at_stderr"
 
70041
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
70042
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
70043
[{\"count\":1}]
 
70044
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"nought\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
70045
" | \
 
70046
  $at_diff - "$at_stdout" || at_failed=:
 
70047
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70048
if $at_failed; then :
 
70049
  test ! -e pid || kill `cat pid`
 
70050
fi
 
70051
$at_failed && at_fn_log_failure
 
70052
$at_traceon; }
 
70053
 
 
70054
   cp pid savepid
 
70055
   { set +x
 
70056
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
70057
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
70058
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
70059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70060
at_status=$? at_failed=false
 
70061
$at_check_filter
 
70062
echo stderr:; cat "$at_stderr"
 
70063
echo stdout:; cat "$at_stdout"
 
70064
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70065
$at_failed && at_fn_log_failure
 
70066
$at_traceon; }
 
70067
 
 
70068
   { set +x
 
70069
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
70070
     # in the normal case.  POSIX doesn't require fractional times to
 
70071
     # work, so this might not work.
 
70072
     sleep 0.1
 
70073
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70074
     # Then wait up to 10 seconds.
 
70075
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70076
       sleep 1
 
70077
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70078
     done
 
70079
     exit 1"
 
70080
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
70081
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
70082
     # in the normal case.  POSIX doesn't require fractional times to
 
70083
     # work, so this might not work.
 
70084
     sleep 0.1
 
70085
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
70086
     # Then wait up to 10 seconds.
 
70087
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70088
       sleep 1
 
70089
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
70090
     done
 
70091
     exit 1
 
70092
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70093
at_status=$? at_failed=false
 
70094
$at_check_filter
 
70095
echo stderr:; cat "$at_stderr"
 
70096
echo stdout:; cat "$at_stdout"
 
70097
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70098
if $at_failed; then :
 
70099
  kill `cat savepid`
 
70100
fi
 
70101
$at_failed && at_fn_log_failure
 
70102
$at_traceon; }
 
70103
 
 
70104
     set +x
 
70105
  $at_times_p && times >"$at_times_file"
 
70106
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
70107
read at_status <"$at_status_file"
 
70108
#AT_STOP_861
 
70109
#AT_START_862
 
70110
at_fn_group_banner 862 'ovsdb-server.at:410' \
 
70111
  "insert rows, mutate rows" "                       " 60
 
70112
at_xfail=no
 
70113
(
 
70114
  $as_echo "862. $at_setup_line: testing $at_desc ..."
 
70115
  $at_traceon
 
70116
 
 
70117
 
 
70118
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70119
(test "$HAVE_OPENSSL" = no) \
 
70120
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70121
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70122
(test "x$RANDOM" = x) \
 
70123
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70124
   cat >schema <<'_ATEOF'
 
70125
{"name": "ordinals",
 
70126
     "tables": {
 
70127
       "ordinals": {
 
70128
         "columns": {
 
70129
           "number": {"type": "integer"},
 
70130
           "name": {"type": "string"}},
 
70131
         "indexes": [["number"]]}},
 
70132
     "version": "5.1.3",
 
70133
     "cksum": "12345678 9"}
 
70134
_ATEOF
 
70135
 
 
70136
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
70137
   PKIDIR=$abs_top_builddir/tests
 
70138
   { set +x
 
70139
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
70140
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
70141
( $at_check_trace; ovsdb-tool create db schema
 
70142
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70143
at_status=$? at_failed=false
 
70144
$at_check_filter
 
70145
echo stderr:; cat "$at_stderr"
 
70146
echo stdout:; tee stdout <"$at_stdout"
 
70147
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70148
$at_failed && at_fn_log_failure
 
70149
$at_traceon; }
 
70150
 
 
70151
   { set +x
 
70152
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
70153
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
70154
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
70155
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70156
at_status=$? at_failed=false
 
70157
$at_check_filter
 
70158
echo stderr:; cat "$at_stderr"
 
70159
echo stdout:; cat "$at_stdout"
 
70160
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70161
$at_failed && at_fn_log_failure
 
70162
$at_traceon; }
 
70163
 
 
70164
   { set +x
 
70165
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70166
      {\"op\": \"insert\",
 
70167
       \"table\": \"ordinals\",
 
70168
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
70169
       \"uuid-name\": \"first\"}]'"
 
70170
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70171
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70172
      {"op": "insert",
 
70173
       "table": "ordinals",
 
70174
       "row": {"number": 0, "name": "zero"},
 
70175
       "uuid-name": "first"}]'
 
70176
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70177
at_status=$? at_failed=false
 
70178
$at_check_filter
 
70179
echo stderr:; cat "$at_stderr"
 
70180
echo stdout:; tee stdout <"$at_stdout"
 
70181
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70182
if $at_failed; then :
 
70183
  test ! -e pid || kill `cat pid`
 
70184
fi
 
70185
$at_failed && at_fn_log_failure
 
70186
$at_traceon; }
 
70187
 
 
70188
cat stdout >> output
 
70189
{ set +x
 
70190
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70191
      {\"op\": \"insert\",
 
70192
       \"table\": \"ordinals\",
 
70193
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
70194
       \"uuid-name\": \"first\"}]'"
 
70195
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70196
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70197
      {"op": "insert",
 
70198
       "table": "ordinals",
 
70199
       "row": {"number": 1, "name": "one"},
 
70200
       "uuid-name": "first"}]'
 
70201
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70202
at_status=$? at_failed=false
 
70203
$at_check_filter
 
70204
echo stderr:; cat "$at_stderr"
 
70205
echo stdout:; tee stdout <"$at_stdout"
 
70206
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70207
if $at_failed; then :
 
70208
  test ! -e pid || kill `cat pid`
 
70209
fi
 
70210
$at_failed && at_fn_log_failure
 
70211
$at_traceon; }
 
70212
 
 
70213
cat stdout >> output
 
70214
{ set +x
 
70215
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70216
      {\"op\": \"mutate\",
 
70217
       \"table\": \"ordinals\",
 
70218
       \"where\": [[\"name\", \"==\", \"zero\"]],
 
70219
       \"mutations\": [[\"number\", \"+=\", 2]]}]'"
 
70220
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70221
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70222
      {"op": "mutate",
 
70223
       "table": "ordinals",
 
70224
       "where": [["name", "==", "zero"]],
 
70225
       "mutations": [["number", "+=", 2]]}]'
 
70226
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70227
at_status=$? at_failed=false
 
70228
$at_check_filter
 
70229
echo stderr:; cat "$at_stderr"
 
70230
echo stdout:; tee stdout <"$at_stdout"
 
70231
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70232
if $at_failed; then :
 
70233
  test ! -e pid || kill `cat pid`
 
70234
fi
 
70235
$at_failed && at_fn_log_failure
 
70236
$at_traceon; }
 
70237
 
 
70238
cat stdout >> output
 
70239
{ set +x
 
70240
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70241
      {\"op\": \"select\",
 
70242
       \"table\": \"ordinals\",
 
70243
       \"where\": [],
 
70244
       \"sort\": [\"number\"]}]'"
 
70245
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70246
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70247
      {"op": "select",
 
70248
       "table": "ordinals",
 
70249
       "where": [],
 
70250
       "sort": ["number"]}]'
 
70251
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70252
at_status=$? at_failed=false
 
70253
$at_check_filter
 
70254
echo stderr:; cat "$at_stderr"
 
70255
echo stdout:; tee stdout <"$at_stdout"
 
70256
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70257
if $at_failed; then :
 
70258
  test ! -e pid || kill `cat pid`
 
70259
fi
 
70260
$at_failed && at_fn_log_failure
 
70261
$at_traceon; }
 
70262
 
 
70263
cat stdout >> output
 
70264
 
 
70265
   { set +x
 
70266
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
70267
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
70268
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
70269
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70270
at_status=$? at_failed=false
 
70271
$at_check_filter
 
70272
echo stderr:; cat "$at_stderr"
 
70273
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
70274
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
70275
[{\"count\":1}]
 
70276
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1},{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"zero\",\"number\":2}]}]
 
70277
" | \
 
70278
  $at_diff - "$at_stdout" || at_failed=:
 
70279
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70280
if $at_failed; then :
 
70281
  test ! -e pid || kill `cat pid`
 
70282
fi
 
70283
$at_failed && at_fn_log_failure
 
70284
$at_traceon; }
 
70285
 
 
70286
   cp pid savepid
 
70287
   { set +x
 
70288
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
70289
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
70290
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
70291
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70292
at_status=$? at_failed=false
 
70293
$at_check_filter
 
70294
echo stderr:; cat "$at_stderr"
 
70295
echo stdout:; cat "$at_stdout"
 
70296
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70297
$at_failed && at_fn_log_failure
 
70298
$at_traceon; }
 
70299
 
 
70300
   { set +x
 
70301
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
70302
     # in the normal case.  POSIX doesn't require fractional times to
 
70303
     # work, so this might not work.
 
70304
     sleep 0.1
 
70305
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70306
     # Then wait up to 10 seconds.
 
70307
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70308
       sleep 1
 
70309
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70310
     done
 
70311
     exit 1"
 
70312
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
70313
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
70314
     # in the normal case.  POSIX doesn't require fractional times to
 
70315
     # work, so this might not work.
 
70316
     sleep 0.1
 
70317
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
70318
     # Then wait up to 10 seconds.
 
70319
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70320
       sleep 1
 
70321
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
70322
     done
 
70323
     exit 1
 
70324
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70325
at_status=$? at_failed=false
 
70326
$at_check_filter
 
70327
echo stderr:; cat "$at_stderr"
 
70328
echo stdout:; cat "$at_stdout"
 
70329
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70330
if $at_failed; then :
 
70331
  kill `cat savepid`
 
70332
fi
 
70333
$at_failed && at_fn_log_failure
 
70334
$at_traceon; }
 
70335
 
 
70336
     set +x
 
70337
  $at_times_p && times >"$at_times_file"
 
70338
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
70339
read at_status <"$at_status_file"
 
70340
#AT_STOP_862
 
70341
#AT_START_863
 
70342
at_fn_group_banner 863 'ovsdb-server.at:410' \
 
70343
  "insert rows, delete by named-uuid" "              " 60
 
70344
at_xfail=no
 
70345
(
 
70346
  $as_echo "863. $at_setup_line: testing $at_desc ..."
 
70347
  $at_traceon
 
70348
 
 
70349
 
 
70350
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70351
(test "$HAVE_OPENSSL" = no) \
 
70352
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70353
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70354
(test "x$RANDOM" = x) \
 
70355
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70356
   cat >schema <<'_ATEOF'
 
70357
{"name": "ordinals",
 
70358
     "tables": {
 
70359
       "ordinals": {
 
70360
         "columns": {
 
70361
           "number": {"type": "integer"},
 
70362
           "name": {"type": "string"}},
 
70363
         "indexes": [["number"]]}},
 
70364
     "version": "5.1.3",
 
70365
     "cksum": "12345678 9"}
 
70366
_ATEOF
 
70367
 
 
70368
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
70369
   PKIDIR=$abs_top_builddir/tests
 
70370
   { set +x
 
70371
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
70372
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
70373
( $at_check_trace; ovsdb-tool create db schema
 
70374
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70375
at_status=$? at_failed=false
 
70376
$at_check_filter
 
70377
echo stderr:; cat "$at_stderr"
 
70378
echo stdout:; tee stdout <"$at_stdout"
 
70379
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70380
$at_failed && at_fn_log_failure
 
70381
$at_traceon; }
 
70382
 
 
70383
   { set +x
 
70384
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
70385
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
70386
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
70387
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70388
at_status=$? at_failed=false
 
70389
$at_check_filter
 
70390
echo stderr:; cat "$at_stderr"
 
70391
echo stdout:; cat "$at_stdout"
 
70392
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70393
$at_failed && at_fn_log_failure
 
70394
$at_traceon; }
 
70395
 
 
70396
   { set +x
 
70397
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70398
      {\"op\": \"insert\",
 
70399
       \"table\": \"ordinals\",
 
70400
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
70401
       \"uuid-name\": \"first\"},
 
70402
      {\"op\": \"insert\",
 
70403
       \"table\": \"ordinals\",
 
70404
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
70405
       \"uuid-name\": \"second\"},
 
70406
      {\"op\": \"delete\",
 
70407
       \"table\": \"ordinals\",
 
70408
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"first\"]]]},
 
70409
      {\"op\": \"select\",
 
70410
       \"table\": \"ordinals\",
 
70411
       \"where\": [],
 
70412
       \"columns\": [\"name\",\"number\"]}]'"
 
70413
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70414
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70415
      {"op": "insert",
 
70416
       "table": "ordinals",
 
70417
       "row": {"number": 0, "name": "zero"},
 
70418
       "uuid-name": "first"},
 
70419
      {"op": "insert",
 
70420
       "table": "ordinals",
 
70421
       "row": {"number": 1, "name": "one"},
 
70422
       "uuid-name": "second"},
 
70423
      {"op": "delete",
 
70424
       "table": "ordinals",
 
70425
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
70426
      {"op": "select",
 
70427
       "table": "ordinals",
 
70428
       "where": [],
 
70429
       "columns": ["name","number"]}]'
 
70430
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70431
at_status=$? at_failed=false
 
70432
$at_check_filter
 
70433
echo stderr:; cat "$at_stderr"
 
70434
echo stdout:; tee stdout <"$at_stdout"
 
70435
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70436
if $at_failed; then :
 
70437
  test ! -e pid || kill `cat pid`
 
70438
fi
 
70439
$at_failed && at_fn_log_failure
 
70440
$at_traceon; }
 
70441
 
 
70442
cat stdout >> output
 
70443
 
 
70444
   { set +x
 
70445
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
70446
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
70447
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
70448
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70449
at_status=$? at_failed=false
 
70450
$at_check_filter
 
70451
echo stderr:; cat "$at_stderr"
 
70452
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":1},{\"rows\":[{\"name\":\"one\",\"number\":1}]}]
 
70453
" | \
 
70454
  $at_diff - "$at_stdout" || at_failed=:
 
70455
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70456
if $at_failed; then :
 
70457
  test ! -e pid || kill `cat pid`
 
70458
fi
 
70459
$at_failed && at_fn_log_failure
 
70460
$at_traceon; }
 
70461
 
 
70462
   cp pid savepid
 
70463
   { set +x
 
70464
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
70465
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
70466
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
70467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70468
at_status=$? at_failed=false
 
70469
$at_check_filter
 
70470
echo stderr:; cat "$at_stderr"
 
70471
echo stdout:; cat "$at_stdout"
 
70472
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70473
$at_failed && at_fn_log_failure
 
70474
$at_traceon; }
 
70475
 
 
70476
   { set +x
 
70477
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
70478
     # in the normal case.  POSIX doesn't require fractional times to
 
70479
     # work, so this might not work.
 
70480
     sleep 0.1
 
70481
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70482
     # Then wait up to 10 seconds.
 
70483
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70484
       sleep 1
 
70485
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70486
     done
 
70487
     exit 1"
 
70488
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
70489
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
70490
     # in the normal case.  POSIX doesn't require fractional times to
 
70491
     # work, so this might not work.
 
70492
     sleep 0.1
 
70493
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
70494
     # Then wait up to 10 seconds.
 
70495
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70496
       sleep 1
 
70497
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
70498
     done
 
70499
     exit 1
 
70500
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70501
at_status=$? at_failed=false
 
70502
$at_check_filter
 
70503
echo stderr:; cat "$at_stderr"
 
70504
echo stdout:; cat "$at_stdout"
 
70505
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70506
if $at_failed; then :
 
70507
  kill `cat savepid`
 
70508
fi
 
70509
$at_failed && at_fn_log_failure
 
70510
$at_traceon; }
 
70511
 
 
70512
     set +x
 
70513
  $at_times_p && times >"$at_times_file"
 
70514
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
70515
read at_status <"$at_status_file"
 
70516
#AT_STOP_863
 
70517
#AT_START_864
 
70518
at_fn_group_banner 864 'ovsdb-server.at:410' \
 
70519
  "insert rows, delete rows by value" "              " 60
 
70520
at_xfail=no
 
70521
(
 
70522
  $as_echo "864. $at_setup_line: testing $at_desc ..."
 
70523
  $at_traceon
 
70524
 
 
70525
 
 
70526
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70527
(test "$HAVE_OPENSSL" = no) \
 
70528
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70529
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70530
(test "x$RANDOM" = x) \
 
70531
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70532
   cat >schema <<'_ATEOF'
 
70533
{"name": "ordinals",
 
70534
     "tables": {
 
70535
       "ordinals": {
 
70536
         "columns": {
 
70537
           "number": {"type": "integer"},
 
70538
           "name": {"type": "string"}},
 
70539
         "indexes": [["number"]]}},
 
70540
     "version": "5.1.3",
 
70541
     "cksum": "12345678 9"}
 
70542
_ATEOF
 
70543
 
 
70544
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
70545
   PKIDIR=$abs_top_builddir/tests
 
70546
   { set +x
 
70547
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
70548
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
70549
( $at_check_trace; ovsdb-tool create db schema
 
70550
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70551
at_status=$? at_failed=false
 
70552
$at_check_filter
 
70553
echo stderr:; cat "$at_stderr"
 
70554
echo stdout:; tee stdout <"$at_stdout"
 
70555
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70556
$at_failed && at_fn_log_failure
 
70557
$at_traceon; }
 
70558
 
 
70559
   { set +x
 
70560
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
70561
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
70562
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
70563
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70564
at_status=$? at_failed=false
 
70565
$at_check_filter
 
70566
echo stderr:; cat "$at_stderr"
 
70567
echo stdout:; cat "$at_stdout"
 
70568
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70569
$at_failed && at_fn_log_failure
 
70570
$at_traceon; }
 
70571
 
 
70572
   { set +x
 
70573
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70574
      {\"op\": \"insert\",
 
70575
       \"table\": \"ordinals\",
 
70576
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
70577
       \"uuid-name\": \"first\"}]'"
 
70578
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70579
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70580
      {"op": "insert",
 
70581
       "table": "ordinals",
 
70582
       "row": {"number": 0, "name": "zero"},
 
70583
       "uuid-name": "first"}]'
 
70584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70585
at_status=$? at_failed=false
 
70586
$at_check_filter
 
70587
echo stderr:; cat "$at_stderr"
 
70588
echo stdout:; tee stdout <"$at_stdout"
 
70589
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70590
if $at_failed; then :
 
70591
  test ! -e pid || kill `cat pid`
 
70592
fi
 
70593
$at_failed && at_fn_log_failure
 
70594
$at_traceon; }
 
70595
 
 
70596
cat stdout >> output
 
70597
{ set +x
 
70598
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70599
      {\"op\": \"insert\",
 
70600
       \"table\": \"ordinals\",
 
70601
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
70602
       \"uuid-name\": \"first\"}]'"
 
70603
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70604
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70605
      {"op": "insert",
 
70606
       "table": "ordinals",
 
70607
       "row": {"number": 1, "name": "one"},
 
70608
       "uuid-name": "first"}]'
 
70609
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70610
at_status=$? at_failed=false
 
70611
$at_check_filter
 
70612
echo stderr:; cat "$at_stderr"
 
70613
echo stdout:; tee stdout <"$at_stdout"
 
70614
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70615
if $at_failed; then :
 
70616
  test ! -e pid || kill `cat pid`
 
70617
fi
 
70618
$at_failed && at_fn_log_failure
 
70619
$at_traceon; }
 
70620
 
 
70621
cat stdout >> output
 
70622
{ set +x
 
70623
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70624
      {\"op\": \"delete\",
 
70625
       \"table\": \"ordinals\",
 
70626
       \"where\": [[\"name\", \"==\", \"zero\"]]}]'"
 
70627
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70628
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70629
      {"op": "delete",
 
70630
       "table": "ordinals",
 
70631
       "where": [["name", "==", "zero"]]}]'
 
70632
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70633
at_status=$? at_failed=false
 
70634
$at_check_filter
 
70635
echo stderr:; cat "$at_stderr"
 
70636
echo stdout:; tee stdout <"$at_stdout"
 
70637
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70638
if $at_failed; then :
 
70639
  test ! -e pid || kill `cat pid`
 
70640
fi
 
70641
$at_failed && at_fn_log_failure
 
70642
$at_traceon; }
 
70643
 
 
70644
cat stdout >> output
 
70645
{ set +x
 
70646
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70647
      {\"op\": \"select\",
 
70648
       \"table\": \"ordinals\",
 
70649
       \"where\": []}]'"
 
70650
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70651
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70652
      {"op": "select",
 
70653
       "table": "ordinals",
 
70654
       "where": []}]'
 
70655
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70656
at_status=$? at_failed=false
 
70657
$at_check_filter
 
70658
echo stderr:; cat "$at_stderr"
 
70659
echo stdout:; tee stdout <"$at_stdout"
 
70660
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70661
if $at_failed; then :
 
70662
  test ! -e pid || kill `cat pid`
 
70663
fi
 
70664
$at_failed && at_fn_log_failure
 
70665
$at_traceon; }
 
70666
 
 
70667
cat stdout >> output
 
70668
 
 
70669
   { set +x
 
70670
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
70671
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
70672
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
70673
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70674
at_status=$? at_failed=false
 
70675
$at_check_filter
 
70676
echo stderr:; cat "$at_stderr"
 
70677
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
70678
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
70679
[{\"count\":1}]
 
70680
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1}]}]
 
70681
" | \
 
70682
  $at_diff - "$at_stdout" || at_failed=:
 
70683
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70684
if $at_failed; then :
 
70685
  test ! -e pid || kill `cat pid`
 
70686
fi
 
70687
$at_failed && at_fn_log_failure
 
70688
$at_traceon; }
 
70689
 
 
70690
   cp pid savepid
 
70691
   { set +x
 
70692
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
70693
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
70694
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
70695
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70696
at_status=$? at_failed=false
 
70697
$at_check_filter
 
70698
echo stderr:; cat "$at_stderr"
 
70699
echo stdout:; cat "$at_stdout"
 
70700
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70701
$at_failed && at_fn_log_failure
 
70702
$at_traceon; }
 
70703
 
 
70704
   { set +x
 
70705
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
70706
     # in the normal case.  POSIX doesn't require fractional times to
 
70707
     # work, so this might not work.
 
70708
     sleep 0.1
 
70709
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70710
     # Then wait up to 10 seconds.
 
70711
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70712
       sleep 1
 
70713
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70714
     done
 
70715
     exit 1"
 
70716
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
70717
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
70718
     # in the normal case.  POSIX doesn't require fractional times to
 
70719
     # work, so this might not work.
 
70720
     sleep 0.1
 
70721
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
70722
     # Then wait up to 10 seconds.
 
70723
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70724
       sleep 1
 
70725
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
70726
     done
 
70727
     exit 1
 
70728
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70729
at_status=$? at_failed=false
 
70730
$at_check_filter
 
70731
echo stderr:; cat "$at_stderr"
 
70732
echo stdout:; cat "$at_stdout"
 
70733
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70734
if $at_failed; then :
 
70735
  kill `cat savepid`
 
70736
fi
 
70737
$at_failed && at_fn_log_failure
 
70738
$at_traceon; }
 
70739
 
 
70740
     set +x
 
70741
  $at_times_p && times >"$at_times_file"
 
70742
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
70743
read at_status <"$at_status_file"
 
70744
#AT_STOP_864
 
70745
#AT_START_865
 
70746
at_fn_group_banner 865 'ovsdb-server.at:410' \
 
70747
  "insert rows, delete by (non-matching) value" "    " 60
 
70748
at_xfail=no
 
70749
(
 
70750
  $as_echo "865. $at_setup_line: testing $at_desc ..."
 
70751
  $at_traceon
 
70752
 
 
70753
 
 
70754
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70755
(test "$HAVE_OPENSSL" = no) \
 
70756
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70757
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70758
(test "x$RANDOM" = x) \
 
70759
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70760
   cat >schema <<'_ATEOF'
 
70761
{"name": "ordinals",
 
70762
     "tables": {
 
70763
       "ordinals": {
 
70764
         "columns": {
 
70765
           "number": {"type": "integer"},
 
70766
           "name": {"type": "string"}},
 
70767
         "indexes": [["number"]]}},
 
70768
     "version": "5.1.3",
 
70769
     "cksum": "12345678 9"}
 
70770
_ATEOF
 
70771
 
 
70772
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
70773
   PKIDIR=$abs_top_builddir/tests
 
70774
   { set +x
 
70775
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
70776
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
70777
( $at_check_trace; ovsdb-tool create db schema
 
70778
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70779
at_status=$? at_failed=false
 
70780
$at_check_filter
 
70781
echo stderr:; cat "$at_stderr"
 
70782
echo stdout:; tee stdout <"$at_stdout"
 
70783
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70784
$at_failed && at_fn_log_failure
 
70785
$at_traceon; }
 
70786
 
 
70787
   { set +x
 
70788
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
70789
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
70790
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
70791
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70792
at_status=$? at_failed=false
 
70793
$at_check_filter
 
70794
echo stderr:; cat "$at_stderr"
 
70795
echo stdout:; cat "$at_stdout"
 
70796
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70797
$at_failed && at_fn_log_failure
 
70798
$at_traceon; }
 
70799
 
 
70800
   { set +x
 
70801
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70802
      {\"op\": \"insert\",
 
70803
       \"table\": \"ordinals\",
 
70804
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
70805
       \"uuid-name\": \"first\"}]'"
 
70806
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70807
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70808
      {"op": "insert",
 
70809
       "table": "ordinals",
 
70810
       "row": {"number": 0, "name": "zero"},
 
70811
       "uuid-name": "first"}]'
 
70812
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70813
at_status=$? at_failed=false
 
70814
$at_check_filter
 
70815
echo stderr:; cat "$at_stderr"
 
70816
echo stdout:; tee stdout <"$at_stdout"
 
70817
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70818
if $at_failed; then :
 
70819
  test ! -e pid || kill `cat pid`
 
70820
fi
 
70821
$at_failed && at_fn_log_failure
 
70822
$at_traceon; }
 
70823
 
 
70824
cat stdout >> output
 
70825
{ set +x
 
70826
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70827
      {\"op\": \"insert\",
 
70828
       \"table\": \"ordinals\",
 
70829
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
70830
       \"uuid-name\": \"first\"}]'"
 
70831
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70832
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70833
      {"op": "insert",
 
70834
       "table": "ordinals",
 
70835
       "row": {"number": 1, "name": "one"},
 
70836
       "uuid-name": "first"}]'
 
70837
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70838
at_status=$? at_failed=false
 
70839
$at_check_filter
 
70840
echo stderr:; cat "$at_stderr"
 
70841
echo stdout:; tee stdout <"$at_stdout"
 
70842
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70843
if $at_failed; then :
 
70844
  test ! -e pid || kill `cat pid`
 
70845
fi
 
70846
$at_failed && at_fn_log_failure
 
70847
$at_traceon; }
 
70848
 
 
70849
cat stdout >> output
 
70850
{ set +x
 
70851
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70852
      {\"op\": \"delete\",
 
70853
       \"table\": \"ordinals\",
 
70854
       \"where\": [[\"name\", \"==\", \"nought\"]]}]'"
 
70855
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70856
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70857
      {"op": "delete",
 
70858
       "table": "ordinals",
 
70859
       "where": [["name", "==", "nought"]]}]'
 
70860
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70861
at_status=$? at_failed=false
 
70862
$at_check_filter
 
70863
echo stderr:; cat "$at_stderr"
 
70864
echo stdout:; tee stdout <"$at_stdout"
 
70865
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70866
if $at_failed; then :
 
70867
  test ! -e pid || kill `cat pid`
 
70868
fi
 
70869
$at_failed && at_fn_log_failure
 
70870
$at_traceon; }
 
70871
 
 
70872
cat stdout >> output
 
70873
{ set +x
 
70874
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
70875
      {\"op\": \"select\",
 
70876
       \"table\": \"ordinals\",
 
70877
       \"where\": [],
 
70878
       \"sort\": [\"number\"]}]'"
 
70879
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
70880
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
70881
      {"op": "select",
 
70882
       "table": "ordinals",
 
70883
       "where": [],
 
70884
       "sort": ["number"]}]'
 
70885
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70886
at_status=$? at_failed=false
 
70887
$at_check_filter
 
70888
echo stderr:; cat "$at_stderr"
 
70889
echo stdout:; tee stdout <"$at_stdout"
 
70890
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70891
if $at_failed; then :
 
70892
  test ! -e pid || kill `cat pid`
 
70893
fi
 
70894
$at_failed && at_fn_log_failure
 
70895
$at_traceon; }
 
70896
 
 
70897
cat stdout >> output
 
70898
 
 
70899
   { set +x
 
70900
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
70901
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
70902
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
70903
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70904
at_status=$? at_failed=false
 
70905
$at_check_filter
 
70906
echo stderr:; cat "$at_stderr"
 
70907
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
70908
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
70909
[{\"count\":0}]
 
70910
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
70911
" | \
 
70912
  $at_diff - "$at_stdout" || at_failed=:
 
70913
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70914
if $at_failed; then :
 
70915
  test ! -e pid || kill `cat pid`
 
70916
fi
 
70917
$at_failed && at_fn_log_failure
 
70918
$at_traceon; }
 
70919
 
 
70920
   cp pid savepid
 
70921
   { set +x
 
70922
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
70923
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
70924
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
70925
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70926
at_status=$? at_failed=false
 
70927
$at_check_filter
 
70928
echo stderr:; cat "$at_stderr"
 
70929
echo stdout:; cat "$at_stdout"
 
70930
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70931
$at_failed && at_fn_log_failure
 
70932
$at_traceon; }
 
70933
 
 
70934
   { set +x
 
70935
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
70936
     # in the normal case.  POSIX doesn't require fractional times to
 
70937
     # work, so this might not work.
 
70938
     sleep 0.1
 
70939
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70940
     # Then wait up to 10 seconds.
 
70941
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70942
       sleep 1
 
70943
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
70944
     done
 
70945
     exit 1"
 
70946
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
70947
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
70948
     # in the normal case.  POSIX doesn't require fractional times to
 
70949
     # work, so this might not work.
 
70950
     sleep 0.1
 
70951
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
70952
     # Then wait up to 10 seconds.
 
70953
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
70954
       sleep 1
 
70955
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
70956
     done
 
70957
     exit 1
 
70958
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
70959
at_status=$? at_failed=false
 
70960
$at_check_filter
 
70961
echo stderr:; cat "$at_stderr"
 
70962
echo stdout:; cat "$at_stdout"
 
70963
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
70964
if $at_failed; then :
 
70965
  kill `cat savepid`
 
70966
fi
 
70967
$at_failed && at_fn_log_failure
 
70968
$at_traceon; }
 
70969
 
 
70970
     set +x
 
70971
  $at_times_p && times >"$at_times_file"
 
70972
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
70973
read at_status <"$at_status_file"
 
70974
#AT_STOP_865
 
70975
#AT_START_866
 
70976
at_fn_group_banner 866 'ovsdb-server.at:410' \
 
70977
  "insert rows, delete all" "                        " 60
 
70978
at_xfail=no
 
70979
(
 
70980
  $as_echo "866. $at_setup_line: testing $at_desc ..."
 
70981
  $at_traceon
 
70982
 
 
70983
 
 
70984
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70985
(test "$HAVE_OPENSSL" = no) \
 
70986
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70987
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
70988
(test "x$RANDOM" = x) \
 
70989
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
70990
   cat >schema <<'_ATEOF'
 
70991
{"name": "ordinals",
 
70992
     "tables": {
 
70993
       "ordinals": {
 
70994
         "columns": {
 
70995
           "number": {"type": "integer"},
 
70996
           "name": {"type": "string"}},
 
70997
         "indexes": [["number"]]}},
 
70998
     "version": "5.1.3",
 
70999
     "cksum": "12345678 9"}
 
71000
_ATEOF
 
71001
 
 
71002
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
71003
   PKIDIR=$abs_top_builddir/tests
 
71004
   { set +x
 
71005
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
71006
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
71007
( $at_check_trace; ovsdb-tool create db schema
 
71008
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71009
at_status=$? at_failed=false
 
71010
$at_check_filter
 
71011
echo stderr:; cat "$at_stderr"
 
71012
echo stdout:; tee stdout <"$at_stdout"
 
71013
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71014
$at_failed && at_fn_log_failure
 
71015
$at_traceon; }
 
71016
 
 
71017
   { set +x
 
71018
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
71019
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
71020
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
71021
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71022
at_status=$? at_failed=false
 
71023
$at_check_filter
 
71024
echo stderr:; cat "$at_stderr"
 
71025
echo stdout:; cat "$at_stdout"
 
71026
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71027
$at_failed && at_fn_log_failure
 
71028
$at_traceon; }
 
71029
 
 
71030
   { set +x
 
71031
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
71032
      {\"op\": \"insert\",
 
71033
       \"table\": \"ordinals\",
 
71034
       \"row\": {\"number\": 0, \"name\": \"zero\"},
 
71035
       \"uuid-name\": \"first\"},
 
71036
      {\"op\": \"insert\",
 
71037
       \"table\": \"ordinals\",
 
71038
       \"row\": {\"number\": 1, \"name\": \"one\"},
 
71039
       \"uuid-name\": \"second\"},
 
71040
      {\"op\": \"delete\",
 
71041
       \"table\": \"ordinals\",
 
71042
       \"where\": []},
 
71043
      {\"op\": \"select\",
 
71044
       \"table\": \"ordinals\",
 
71045
       \"where\": [],
 
71046
       \"columns\": [\"name\",\"number\"]}]'"
 
71047
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
71048
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
71049
      {"op": "insert",
 
71050
       "table": "ordinals",
 
71051
       "row": {"number": 0, "name": "zero"},
 
71052
       "uuid-name": "first"},
 
71053
      {"op": "insert",
 
71054
       "table": "ordinals",
 
71055
       "row": {"number": 1, "name": "one"},
 
71056
       "uuid-name": "second"},
 
71057
      {"op": "delete",
 
71058
       "table": "ordinals",
 
71059
       "where": []},
 
71060
      {"op": "select",
 
71061
       "table": "ordinals",
 
71062
       "where": [],
 
71063
       "columns": ["name","number"]}]'
 
71064
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71065
at_status=$? at_failed=false
 
71066
$at_check_filter
 
71067
echo stderr:; cat "$at_stderr"
 
71068
echo stdout:; tee stdout <"$at_stdout"
 
71069
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71070
if $at_failed; then :
 
71071
  test ! -e pid || kill `cat pid`
 
71072
fi
 
71073
$at_failed && at_fn_log_failure
 
71074
$at_traceon; }
 
71075
 
 
71076
cat stdout >> output
 
71077
 
 
71078
   { set +x
 
71079
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
71080
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
71081
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
71082
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71083
at_status=$? at_failed=false
 
71084
$at_check_filter
 
71085
echo stderr:; cat "$at_stderr"
 
71086
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":2},{\"rows\":[]}]
 
71087
" | \
 
71088
  $at_diff - "$at_stdout" || at_failed=:
 
71089
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71090
if $at_failed; then :
 
71091
  test ! -e pid || kill `cat pid`
 
71092
fi
 
71093
$at_failed && at_fn_log_failure
 
71094
$at_traceon; }
 
71095
 
 
71096
   cp pid savepid
 
71097
   { set +x
 
71098
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
71099
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
71100
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
71101
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71102
at_status=$? at_failed=false
 
71103
$at_check_filter
 
71104
echo stderr:; cat "$at_stderr"
 
71105
echo stdout:; cat "$at_stdout"
 
71106
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71107
$at_failed && at_fn_log_failure
 
71108
$at_traceon; }
 
71109
 
 
71110
   { set +x
 
71111
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
71112
     # in the normal case.  POSIX doesn't require fractional times to
 
71113
     # work, so this might not work.
 
71114
     sleep 0.1
 
71115
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71116
     # Then wait up to 10 seconds.
 
71117
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71118
       sleep 1
 
71119
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71120
     done
 
71121
     exit 1"
 
71122
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
71123
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
71124
     # in the normal case.  POSIX doesn't require fractional times to
 
71125
     # work, so this might not work.
 
71126
     sleep 0.1
 
71127
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
71128
     # Then wait up to 10 seconds.
 
71129
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71130
       sleep 1
 
71131
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
71132
     done
 
71133
     exit 1
 
71134
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71135
at_status=$? at_failed=false
 
71136
$at_check_filter
 
71137
echo stderr:; cat "$at_stderr"
 
71138
echo stdout:; cat "$at_stdout"
 
71139
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71140
if $at_failed; then :
 
71141
  kill `cat savepid`
 
71142
fi
 
71143
$at_failed && at_fn_log_failure
 
71144
$at_traceon; }
 
71145
 
 
71146
     set +x
 
71147
  $at_times_p && times >"$at_times_file"
 
71148
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
71149
read at_status <"$at_status_file"
 
71150
#AT_STOP_866
 
71151
#AT_START_867
 
71152
at_fn_group_banner 867 'ovsdb-server.at:410' \
 
71153
  "insert row, query table, commit" "                " 60
 
71154
at_xfail=no
 
71155
(
 
71156
  $as_echo "867. $at_setup_line: testing $at_desc ..."
 
71157
  $at_traceon
 
71158
 
 
71159
 
 
71160
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71161
(test "$HAVE_OPENSSL" = no) \
 
71162
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71163
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71164
(test "x$RANDOM" = x) \
 
71165
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71166
   cat >schema <<'_ATEOF'
 
71167
{"name": "ordinals",
 
71168
     "tables": {
 
71169
       "ordinals": {
 
71170
         "columns": {
 
71171
           "number": {"type": "integer"},
 
71172
           "name": {"type": "string"}},
 
71173
         "indexes": [["number"]]}},
 
71174
     "version": "5.1.3",
 
71175
     "cksum": "12345678 9"}
 
71176
_ATEOF
 
71177
 
 
71178
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
71179
   PKIDIR=$abs_top_builddir/tests
 
71180
   { set +x
 
71181
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
71182
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
71183
( $at_check_trace; ovsdb-tool create db schema
 
71184
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71185
at_status=$? at_failed=false
 
71186
$at_check_filter
 
71187
echo stderr:; cat "$at_stderr"
 
71188
echo stdout:; tee stdout <"$at_stdout"
 
71189
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71190
$at_failed && at_fn_log_failure
 
71191
$at_traceon; }
 
71192
 
 
71193
   { set +x
 
71194
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
71195
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
71196
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
71197
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71198
at_status=$? at_failed=false
 
71199
$at_check_filter
 
71200
echo stderr:; cat "$at_stderr"
 
71201
echo stdout:; cat "$at_stdout"
 
71202
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71203
$at_failed && at_fn_log_failure
 
71204
$at_traceon; }
 
71205
 
 
71206
   { set +x
 
71207
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
71208
      {\"op\": \"insert\",
 
71209
       \"table\": \"ordinals\",
 
71210
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
71211
      {\"op\": \"select\",
 
71212
       \"table\": \"ordinals\",
 
71213
       \"where\": []},
 
71214
      {\"op\": \"commit\",
 
71215
       \"durable\": false}]'"
 
71216
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
71217
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
71218
      {"op": "insert",
 
71219
       "table": "ordinals",
 
71220
       "row": {"number": 0, "name": "zero"}},
 
71221
      {"op": "select",
 
71222
       "table": "ordinals",
 
71223
       "where": []},
 
71224
      {"op": "commit",
 
71225
       "durable": false}]'
 
71226
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71227
at_status=$? at_failed=false
 
71228
$at_check_filter
 
71229
echo stderr:; cat "$at_stderr"
 
71230
echo stdout:; tee stdout <"$at_stdout"
 
71231
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71232
if $at_failed; then :
 
71233
  test ! -e pid || kill `cat pid`
 
71234
fi
 
71235
$at_failed && at_fn_log_failure
 
71236
$at_traceon; }
 
71237
 
 
71238
cat stdout >> output
 
71239
 
 
71240
   { set +x
 
71241
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
71242
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
71243
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
71244
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71245
at_status=$? at_failed=false
 
71246
$at_check_filter
 
71247
echo stderr:; cat "$at_stderr"
 
71248
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
71249
" | \
 
71250
  $at_diff - "$at_stdout" || at_failed=:
 
71251
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71252
if $at_failed; then :
 
71253
  test ! -e pid || kill `cat pid`
 
71254
fi
 
71255
$at_failed && at_fn_log_failure
 
71256
$at_traceon; }
 
71257
 
 
71258
   cp pid savepid
 
71259
   { set +x
 
71260
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
71261
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
71262
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
71263
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71264
at_status=$? at_failed=false
 
71265
$at_check_filter
 
71266
echo stderr:; cat "$at_stderr"
 
71267
echo stdout:; cat "$at_stdout"
 
71268
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71269
$at_failed && at_fn_log_failure
 
71270
$at_traceon; }
 
71271
 
 
71272
   { set +x
 
71273
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
71274
     # in the normal case.  POSIX doesn't require fractional times to
 
71275
     # work, so this might not work.
 
71276
     sleep 0.1
 
71277
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71278
     # Then wait up to 10 seconds.
 
71279
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71280
       sleep 1
 
71281
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71282
     done
 
71283
     exit 1"
 
71284
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
71285
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
71286
     # in the normal case.  POSIX doesn't require fractional times to
 
71287
     # work, so this might not work.
 
71288
     sleep 0.1
 
71289
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
71290
     # Then wait up to 10 seconds.
 
71291
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71292
       sleep 1
 
71293
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
71294
     done
 
71295
     exit 1
 
71296
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71297
at_status=$? at_failed=false
 
71298
$at_check_filter
 
71299
echo stderr:; cat "$at_stderr"
 
71300
echo stdout:; cat "$at_stdout"
 
71301
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71302
if $at_failed; then :
 
71303
  kill `cat savepid`
 
71304
fi
 
71305
$at_failed && at_fn_log_failure
 
71306
$at_traceon; }
 
71307
 
 
71308
     set +x
 
71309
  $at_times_p && times >"$at_times_file"
 
71310
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
71311
read at_status <"$at_status_file"
 
71312
#AT_STOP_867
 
71313
#AT_START_868
 
71314
at_fn_group_banner 868 'ovsdb-server.at:410' \
 
71315
  "insert row, query table, commit durably" "        " 60
 
71316
at_xfail=no
 
71317
(
 
71318
  $as_echo "868. $at_setup_line: testing $at_desc ..."
 
71319
  $at_traceon
 
71320
 
 
71321
 
 
71322
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71323
(test "$HAVE_OPENSSL" = no) \
 
71324
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71325
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71326
(test "x$RANDOM" = x) \
 
71327
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71328
   cat >schema <<'_ATEOF'
 
71329
{"name": "ordinals",
 
71330
     "tables": {
 
71331
       "ordinals": {
 
71332
         "columns": {
 
71333
           "number": {"type": "integer"},
 
71334
           "name": {"type": "string"}},
 
71335
         "indexes": [["number"]]}},
 
71336
     "version": "5.1.3",
 
71337
     "cksum": "12345678 9"}
 
71338
_ATEOF
 
71339
 
 
71340
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
71341
   PKIDIR=$abs_top_builddir/tests
 
71342
   { set +x
 
71343
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
71344
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
71345
( $at_check_trace; ovsdb-tool create db schema
 
71346
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71347
at_status=$? at_failed=false
 
71348
$at_check_filter
 
71349
echo stderr:; cat "$at_stderr"
 
71350
echo stdout:; tee stdout <"$at_stdout"
 
71351
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71352
$at_failed && at_fn_log_failure
 
71353
$at_traceon; }
 
71354
 
 
71355
   { set +x
 
71356
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
71357
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
71358
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
71359
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71360
at_status=$? at_failed=false
 
71361
$at_check_filter
 
71362
echo stderr:; cat "$at_stderr"
 
71363
echo stdout:; cat "$at_stdout"
 
71364
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71365
$at_failed && at_fn_log_failure
 
71366
$at_traceon; }
 
71367
 
 
71368
   { set +x
 
71369
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
71370
      {\"op\": \"insert\",
 
71371
       \"table\": \"ordinals\",
 
71372
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
71373
      {\"op\": \"select\",
 
71374
       \"table\": \"ordinals\",
 
71375
       \"where\": []},
 
71376
      {\"op\": \"commit\",
 
71377
       \"durable\": true}]'"
 
71378
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
71379
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
71380
      {"op": "insert",
 
71381
       "table": "ordinals",
 
71382
       "row": {"number": 0, "name": "zero"}},
 
71383
      {"op": "select",
 
71384
       "table": "ordinals",
 
71385
       "where": []},
 
71386
      {"op": "commit",
 
71387
       "durable": true}]'
 
71388
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71389
at_status=$? at_failed=false
 
71390
$at_check_filter
 
71391
echo stderr:; cat "$at_stderr"
 
71392
echo stdout:; tee stdout <"$at_stdout"
 
71393
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71394
if $at_failed; then :
 
71395
  test ! -e pid || kill `cat pid`
 
71396
fi
 
71397
$at_failed && at_fn_log_failure
 
71398
$at_traceon; }
 
71399
 
 
71400
cat stdout >> output
 
71401
 
 
71402
   { set +x
 
71403
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
71404
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
71405
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
71406
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71407
at_status=$? at_failed=false
 
71408
$at_check_filter
 
71409
echo stderr:; cat "$at_stderr"
 
71410
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
71411
" | \
 
71412
  $at_diff - "$at_stdout" || at_failed=:
 
71413
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71414
if $at_failed; then :
 
71415
  test ! -e pid || kill `cat pid`
 
71416
fi
 
71417
$at_failed && at_fn_log_failure
 
71418
$at_traceon; }
 
71419
 
 
71420
   cp pid savepid
 
71421
   { set +x
 
71422
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
71423
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
71424
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
71425
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71426
at_status=$? at_failed=false
 
71427
$at_check_filter
 
71428
echo stderr:; cat "$at_stderr"
 
71429
echo stdout:; cat "$at_stdout"
 
71430
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71431
$at_failed && at_fn_log_failure
 
71432
$at_traceon; }
 
71433
 
 
71434
   { set +x
 
71435
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
71436
     # in the normal case.  POSIX doesn't require fractional times to
 
71437
     # work, so this might not work.
 
71438
     sleep 0.1
 
71439
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71440
     # Then wait up to 10 seconds.
 
71441
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71442
       sleep 1
 
71443
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71444
     done
 
71445
     exit 1"
 
71446
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
71447
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
71448
     # in the normal case.  POSIX doesn't require fractional times to
 
71449
     # work, so this might not work.
 
71450
     sleep 0.1
 
71451
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
71452
     # Then wait up to 10 seconds.
 
71453
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71454
       sleep 1
 
71455
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
71456
     done
 
71457
     exit 1
 
71458
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71459
at_status=$? at_failed=false
 
71460
$at_check_filter
 
71461
echo stderr:; cat "$at_stderr"
 
71462
echo stdout:; cat "$at_stdout"
 
71463
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71464
if $at_failed; then :
 
71465
  kill `cat savepid`
 
71466
fi
 
71467
$at_failed && at_fn_log_failure
 
71468
$at_traceon; }
 
71469
 
 
71470
     set +x
 
71471
  $at_times_p && times >"$at_times_file"
 
71472
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
71473
read at_status <"$at_status_file"
 
71474
#AT_STOP_868
 
71475
#AT_START_869
 
71476
at_fn_group_banner 869 'ovsdb-server.at:410' \
 
71477
  "equality wait with correct rows" "                " 60
 
71478
at_xfail=no
 
71479
(
 
71480
  $as_echo "869. $at_setup_line: testing $at_desc ..."
 
71481
  $at_traceon
 
71482
 
 
71483
 
 
71484
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71485
(test "$HAVE_OPENSSL" = no) \
 
71486
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71487
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71488
(test "x$RANDOM" = x) \
 
71489
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71490
   cat >schema <<'_ATEOF'
 
71491
{"name": "ordinals",
 
71492
     "tables": {
 
71493
       "ordinals": {
 
71494
         "columns": {
 
71495
           "number": {"type": "integer"},
 
71496
           "name": {"type": "string"}},
 
71497
         "indexes": [["number"]]}},
 
71498
     "version": "5.1.3",
 
71499
     "cksum": "12345678 9"}
 
71500
_ATEOF
 
71501
 
 
71502
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
71503
   PKIDIR=$abs_top_builddir/tests
 
71504
   { set +x
 
71505
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
71506
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
71507
( $at_check_trace; ovsdb-tool create db schema
 
71508
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71509
at_status=$? at_failed=false
 
71510
$at_check_filter
 
71511
echo stderr:; cat "$at_stderr"
 
71512
echo stdout:; tee stdout <"$at_stdout"
 
71513
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71514
$at_failed && at_fn_log_failure
 
71515
$at_traceon; }
 
71516
 
 
71517
   { set +x
 
71518
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
71519
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
71520
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
71521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71522
at_status=$? at_failed=false
 
71523
$at_check_filter
 
71524
echo stderr:; cat "$at_stderr"
 
71525
echo stdout:; cat "$at_stdout"
 
71526
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71527
$at_failed && at_fn_log_failure
 
71528
$at_traceon; }
 
71529
 
 
71530
   { set +x
 
71531
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
71532
      {\"op\": \"insert\",
 
71533
       \"table\": \"ordinals\",
 
71534
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
71535
      {\"op\": \"insert\",
 
71536
       \"table\": \"ordinals\",
 
71537
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
71538
      {\"op\": \"wait\",
 
71539
       \"timeout\": 0,
 
71540
       \"table\": \"ordinals\",
 
71541
       \"where\": [],
 
71542
       \"columns\": [\"name\", \"number\"],
 
71543
       \"until\": \"==\",
 
71544
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
71545
                {\"name\": \"one\", \"number\": 1}]}]'"
 
71546
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
71547
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
71548
      {"op": "insert",
 
71549
       "table": "ordinals",
 
71550
       "row": {"number": 0, "name": "zero"}},
 
71551
      {"op": "insert",
 
71552
       "table": "ordinals",
 
71553
       "row": {"number": 1, "name": "one"}},
 
71554
      {"op": "wait",
 
71555
       "timeout": 0,
 
71556
       "table": "ordinals",
 
71557
       "where": [],
 
71558
       "columns": ["name", "number"],
 
71559
       "until": "==",
 
71560
       "rows": [{"name": "zero", "number": 0},
 
71561
                {"name": "one", "number": 1}]}]'
 
71562
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71563
at_status=$? at_failed=false
 
71564
$at_check_filter
 
71565
echo stderr:; cat "$at_stderr"
 
71566
echo stdout:; tee stdout <"$at_stdout"
 
71567
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71568
if $at_failed; then :
 
71569
  test ! -e pid || kill `cat pid`
 
71570
fi
 
71571
$at_failed && at_fn_log_failure
 
71572
$at_traceon; }
 
71573
 
 
71574
cat stdout >> output
 
71575
 
 
71576
   { set +x
 
71577
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
71578
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
71579
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
71580
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71581
at_status=$? at_failed=false
 
71582
$at_check_filter
 
71583
echo stderr:; cat "$at_stderr"
 
71584
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
71585
" | \
 
71586
  $at_diff - "$at_stdout" || at_failed=:
 
71587
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71588
if $at_failed; then :
 
71589
  test ! -e pid || kill `cat pid`
 
71590
fi
 
71591
$at_failed && at_fn_log_failure
 
71592
$at_traceon; }
 
71593
 
 
71594
   cp pid savepid
 
71595
   { set +x
 
71596
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
71597
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
71598
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
71599
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71600
at_status=$? at_failed=false
 
71601
$at_check_filter
 
71602
echo stderr:; cat "$at_stderr"
 
71603
echo stdout:; cat "$at_stdout"
 
71604
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71605
$at_failed && at_fn_log_failure
 
71606
$at_traceon; }
 
71607
 
 
71608
   { set +x
 
71609
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
71610
     # in the normal case.  POSIX doesn't require fractional times to
 
71611
     # work, so this might not work.
 
71612
     sleep 0.1
 
71613
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71614
     # Then wait up to 10 seconds.
 
71615
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71616
       sleep 1
 
71617
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71618
     done
 
71619
     exit 1"
 
71620
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
71621
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
71622
     # in the normal case.  POSIX doesn't require fractional times to
 
71623
     # work, so this might not work.
 
71624
     sleep 0.1
 
71625
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
71626
     # Then wait up to 10 seconds.
 
71627
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71628
       sleep 1
 
71629
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
71630
     done
 
71631
     exit 1
 
71632
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71633
at_status=$? at_failed=false
 
71634
$at_check_filter
 
71635
echo stderr:; cat "$at_stderr"
 
71636
echo stdout:; cat "$at_stdout"
 
71637
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71638
if $at_failed; then :
 
71639
  kill `cat savepid`
 
71640
fi
 
71641
$at_failed && at_fn_log_failure
 
71642
$at_traceon; }
 
71643
 
 
71644
     set +x
 
71645
  $at_times_p && times >"$at_times_file"
 
71646
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
71647
read at_status <"$at_status_file"
 
71648
#AT_STOP_869
 
71649
#AT_START_870
 
71650
at_fn_group_banner 870 'ovsdb-server.at:410' \
 
71651
  "equality wait with extra row" "                   " 60
 
71652
at_xfail=no
 
71653
(
 
71654
  $as_echo "870. $at_setup_line: testing $at_desc ..."
 
71655
  $at_traceon
 
71656
 
 
71657
 
 
71658
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71659
(test "$HAVE_OPENSSL" = no) \
 
71660
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71661
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71662
(test "x$RANDOM" = x) \
 
71663
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71664
   cat >schema <<'_ATEOF'
 
71665
{"name": "ordinals",
 
71666
     "tables": {
 
71667
       "ordinals": {
 
71668
         "columns": {
 
71669
           "number": {"type": "integer"},
 
71670
           "name": {"type": "string"}},
 
71671
         "indexes": [["number"]]}},
 
71672
     "version": "5.1.3",
 
71673
     "cksum": "12345678 9"}
 
71674
_ATEOF
 
71675
 
 
71676
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
71677
   PKIDIR=$abs_top_builddir/tests
 
71678
   { set +x
 
71679
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
71680
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
71681
( $at_check_trace; ovsdb-tool create db schema
 
71682
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71683
at_status=$? at_failed=false
 
71684
$at_check_filter
 
71685
echo stderr:; cat "$at_stderr"
 
71686
echo stdout:; tee stdout <"$at_stdout"
 
71687
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71688
$at_failed && at_fn_log_failure
 
71689
$at_traceon; }
 
71690
 
 
71691
   { set +x
 
71692
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
71693
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
71694
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
71695
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71696
at_status=$? at_failed=false
 
71697
$at_check_filter
 
71698
echo stderr:; cat "$at_stderr"
 
71699
echo stdout:; cat "$at_stdout"
 
71700
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71701
$at_failed && at_fn_log_failure
 
71702
$at_traceon; }
 
71703
 
 
71704
   { set +x
 
71705
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
71706
      {\"op\": \"insert\",
 
71707
       \"table\": \"ordinals\",
 
71708
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
71709
      {\"op\": \"insert\",
 
71710
       \"table\": \"ordinals\",
 
71711
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
71712
      {\"op\": \"wait\",
 
71713
       \"timeout\": 0,
 
71714
       \"table\": \"ordinals\",
 
71715
       \"where\": [],
 
71716
       \"columns\": [\"name\", \"number\"],
 
71717
       \"until\": \"==\",
 
71718
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
71719
                {\"name\": \"one\", \"number\": 1},
 
71720
                {\"name\": \"two\", \"number\": 2}]}]'"
 
71721
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
71722
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
71723
      {"op": "insert",
 
71724
       "table": "ordinals",
 
71725
       "row": {"number": 0, "name": "zero"}},
 
71726
      {"op": "insert",
 
71727
       "table": "ordinals",
 
71728
       "row": {"number": 1, "name": "one"}},
 
71729
      {"op": "wait",
 
71730
       "timeout": 0,
 
71731
       "table": "ordinals",
 
71732
       "where": [],
 
71733
       "columns": ["name", "number"],
 
71734
       "until": "==",
 
71735
       "rows": [{"name": "zero", "number": 0},
 
71736
                {"name": "one", "number": 1},
 
71737
                {"name": "two", "number": 2}]}]'
 
71738
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71739
at_status=$? at_failed=false
 
71740
$at_check_filter
 
71741
echo stderr:; cat "$at_stderr"
 
71742
echo stdout:; tee stdout <"$at_stdout"
 
71743
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71744
if $at_failed; then :
 
71745
  test ! -e pid || kill `cat pid`
 
71746
fi
 
71747
$at_failed && at_fn_log_failure
 
71748
$at_traceon; }
 
71749
 
 
71750
cat stdout >> output
 
71751
 
 
71752
   { set +x
 
71753
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
71754
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
71755
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
71756
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71757
at_status=$? at_failed=false
 
71758
$at_check_filter
 
71759
echo stderr:; cat "$at_stderr"
 
71760
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
71761
" | \
 
71762
  $at_diff - "$at_stdout" || at_failed=:
 
71763
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71764
if $at_failed; then :
 
71765
  test ! -e pid || kill `cat pid`
 
71766
fi
 
71767
$at_failed && at_fn_log_failure
 
71768
$at_traceon; }
 
71769
 
 
71770
   cp pid savepid
 
71771
   { set +x
 
71772
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
71773
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
71774
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
71775
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71776
at_status=$? at_failed=false
 
71777
$at_check_filter
 
71778
echo stderr:; cat "$at_stderr"
 
71779
echo stdout:; cat "$at_stdout"
 
71780
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71781
$at_failed && at_fn_log_failure
 
71782
$at_traceon; }
 
71783
 
 
71784
   { set +x
 
71785
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
71786
     # in the normal case.  POSIX doesn't require fractional times to
 
71787
     # work, so this might not work.
 
71788
     sleep 0.1
 
71789
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71790
     # Then wait up to 10 seconds.
 
71791
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71792
       sleep 1
 
71793
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71794
     done
 
71795
     exit 1"
 
71796
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
71797
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
71798
     # in the normal case.  POSIX doesn't require fractional times to
 
71799
     # work, so this might not work.
 
71800
     sleep 0.1
 
71801
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
71802
     # Then wait up to 10 seconds.
 
71803
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71804
       sleep 1
 
71805
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
71806
     done
 
71807
     exit 1
 
71808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71809
at_status=$? at_failed=false
 
71810
$at_check_filter
 
71811
echo stderr:; cat "$at_stderr"
 
71812
echo stdout:; cat "$at_stdout"
 
71813
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71814
if $at_failed; then :
 
71815
  kill `cat savepid`
 
71816
fi
 
71817
$at_failed && at_fn_log_failure
 
71818
$at_traceon; }
 
71819
 
 
71820
     set +x
 
71821
  $at_times_p && times >"$at_times_file"
 
71822
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
71823
read at_status <"$at_status_file"
 
71824
#AT_STOP_870
 
71825
#AT_START_871
 
71826
at_fn_group_banner 871 'ovsdb-server.at:410' \
 
71827
  "equality wait with missing row" "                 " 60
 
71828
at_xfail=no
 
71829
(
 
71830
  $as_echo "871. $at_setup_line: testing $at_desc ..."
 
71831
  $at_traceon
 
71832
 
 
71833
 
 
71834
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71835
(test "$HAVE_OPENSSL" = no) \
 
71836
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71837
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
71838
(test "x$RANDOM" = x) \
 
71839
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
71840
   cat >schema <<'_ATEOF'
 
71841
{"name": "ordinals",
 
71842
     "tables": {
 
71843
       "ordinals": {
 
71844
         "columns": {
 
71845
           "number": {"type": "integer"},
 
71846
           "name": {"type": "string"}},
 
71847
         "indexes": [["number"]]}},
 
71848
     "version": "5.1.3",
 
71849
     "cksum": "12345678 9"}
 
71850
_ATEOF
 
71851
 
 
71852
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
71853
   PKIDIR=$abs_top_builddir/tests
 
71854
   { set +x
 
71855
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
71856
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
71857
( $at_check_trace; ovsdb-tool create db schema
 
71858
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71859
at_status=$? at_failed=false
 
71860
$at_check_filter
 
71861
echo stderr:; cat "$at_stderr"
 
71862
echo stdout:; tee stdout <"$at_stdout"
 
71863
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71864
$at_failed && at_fn_log_failure
 
71865
$at_traceon; }
 
71866
 
 
71867
   { set +x
 
71868
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
71869
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
71870
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
71871
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71872
at_status=$? at_failed=false
 
71873
$at_check_filter
 
71874
echo stderr:; cat "$at_stderr"
 
71875
echo stdout:; cat "$at_stdout"
 
71876
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71877
$at_failed && at_fn_log_failure
 
71878
$at_traceon; }
 
71879
 
 
71880
   { set +x
 
71881
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
71882
      {\"op\": \"insert\",
 
71883
       \"table\": \"ordinals\",
 
71884
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
71885
      {\"op\": \"insert\",
 
71886
       \"table\": \"ordinals\",
 
71887
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
71888
      {\"op\": \"wait\",
 
71889
       \"timeout\": 0,
 
71890
       \"table\": \"ordinals\",
 
71891
       \"where\": [],
 
71892
       \"columns\": [\"name\", \"number\"],
 
71893
       \"until\": \"==\",
 
71894
       \"rows\": [{\"name\": \"one\", \"number\": 1}]}]'"
 
71895
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
71896
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
71897
      {"op": "insert",
 
71898
       "table": "ordinals",
 
71899
       "row": {"number": 0, "name": "zero"}},
 
71900
      {"op": "insert",
 
71901
       "table": "ordinals",
 
71902
       "row": {"number": 1, "name": "one"}},
 
71903
      {"op": "wait",
 
71904
       "timeout": 0,
 
71905
       "table": "ordinals",
 
71906
       "where": [],
 
71907
       "columns": ["name", "number"],
 
71908
       "until": "==",
 
71909
       "rows": [{"name": "one", "number": 1}]}]'
 
71910
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71911
at_status=$? at_failed=false
 
71912
$at_check_filter
 
71913
echo stderr:; cat "$at_stderr"
 
71914
echo stdout:; tee stdout <"$at_stdout"
 
71915
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71916
if $at_failed; then :
 
71917
  test ! -e pid || kill `cat pid`
 
71918
fi
 
71919
$at_failed && at_fn_log_failure
 
71920
$at_traceon; }
 
71921
 
 
71922
cat stdout >> output
 
71923
 
 
71924
   { set +x
 
71925
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
71926
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
71927
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
71928
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71929
at_status=$? at_failed=false
 
71930
$at_check_filter
 
71931
echo stderr:; cat "$at_stderr"
 
71932
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
71933
" | \
 
71934
  $at_diff - "$at_stdout" || at_failed=:
 
71935
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71936
if $at_failed; then :
 
71937
  test ! -e pid || kill `cat pid`
 
71938
fi
 
71939
$at_failed && at_fn_log_failure
 
71940
$at_traceon; }
 
71941
 
 
71942
   cp pid savepid
 
71943
   { set +x
 
71944
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
71945
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
71946
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
71947
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71948
at_status=$? at_failed=false
 
71949
$at_check_filter
 
71950
echo stderr:; cat "$at_stderr"
 
71951
echo stdout:; cat "$at_stdout"
 
71952
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71953
$at_failed && at_fn_log_failure
 
71954
$at_traceon; }
 
71955
 
 
71956
   { set +x
 
71957
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
71958
     # in the normal case.  POSIX doesn't require fractional times to
 
71959
     # work, so this might not work.
 
71960
     sleep 0.1
 
71961
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71962
     # Then wait up to 10 seconds.
 
71963
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71964
       sleep 1
 
71965
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
71966
     done
 
71967
     exit 1"
 
71968
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
71969
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
71970
     # in the normal case.  POSIX doesn't require fractional times to
 
71971
     # work, so this might not work.
 
71972
     sleep 0.1
 
71973
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
71974
     # Then wait up to 10 seconds.
 
71975
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
71976
       sleep 1
 
71977
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
71978
     done
 
71979
     exit 1
 
71980
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
71981
at_status=$? at_failed=false
 
71982
$at_check_filter
 
71983
echo stderr:; cat "$at_stderr"
 
71984
echo stdout:; cat "$at_stdout"
 
71985
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
71986
if $at_failed; then :
 
71987
  kill `cat savepid`
 
71988
fi
 
71989
$at_failed && at_fn_log_failure
 
71990
$at_traceon; }
 
71991
 
 
71992
     set +x
 
71993
  $at_times_p && times >"$at_times_file"
 
71994
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
71995
read at_status <"$at_status_file"
 
71996
#AT_STOP_871
 
71997
#AT_START_872
 
71998
at_fn_group_banner 872 'ovsdb-server.at:410' \
 
71999
  "inequality wait with correct rows" "              " 60
 
72000
at_xfail=no
 
72001
(
 
72002
  $as_echo "872. $at_setup_line: testing $at_desc ..."
 
72003
  $at_traceon
 
72004
 
 
72005
 
 
72006
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72007
(test "$HAVE_OPENSSL" = no) \
 
72008
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72009
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72010
(test "x$RANDOM" = x) \
 
72011
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72012
   cat >schema <<'_ATEOF'
 
72013
{"name": "ordinals",
 
72014
     "tables": {
 
72015
       "ordinals": {
 
72016
         "columns": {
 
72017
           "number": {"type": "integer"},
 
72018
           "name": {"type": "string"}},
 
72019
         "indexes": [["number"]]}},
 
72020
     "version": "5.1.3",
 
72021
     "cksum": "12345678 9"}
 
72022
_ATEOF
 
72023
 
 
72024
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
72025
   PKIDIR=$abs_top_builddir/tests
 
72026
   { set +x
 
72027
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
72028
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
72029
( $at_check_trace; ovsdb-tool create db schema
 
72030
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72031
at_status=$? at_failed=false
 
72032
$at_check_filter
 
72033
echo stderr:; cat "$at_stderr"
 
72034
echo stdout:; tee stdout <"$at_stdout"
 
72035
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72036
$at_failed && at_fn_log_failure
 
72037
$at_traceon; }
 
72038
 
 
72039
   { set +x
 
72040
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
72041
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
72042
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
72043
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72044
at_status=$? at_failed=false
 
72045
$at_check_filter
 
72046
echo stderr:; cat "$at_stderr"
 
72047
echo stdout:; cat "$at_stdout"
 
72048
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72049
$at_failed && at_fn_log_failure
 
72050
$at_traceon; }
 
72051
 
 
72052
   { set +x
 
72053
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
72054
      {\"op\": \"insert\",
 
72055
       \"table\": \"ordinals\",
 
72056
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
72057
      {\"op\": \"insert\",
 
72058
       \"table\": \"ordinals\",
 
72059
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
72060
      {\"op\": \"wait\",
 
72061
       \"timeout\": 0,
 
72062
       \"table\": \"ordinals\",
 
72063
       \"where\": [],
 
72064
       \"columns\": [\"name\", \"number\"],
 
72065
       \"until\": \"!=\",
 
72066
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
72067
                {\"name\": \"one\", \"number\": 1}]}]'"
 
72068
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72069
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
72070
      {"op": "insert",
 
72071
       "table": "ordinals",
 
72072
       "row": {"number": 0, "name": "zero"}},
 
72073
      {"op": "insert",
 
72074
       "table": "ordinals",
 
72075
       "row": {"number": 1, "name": "one"}},
 
72076
      {"op": "wait",
 
72077
       "timeout": 0,
 
72078
       "table": "ordinals",
 
72079
       "where": [],
 
72080
       "columns": ["name", "number"],
 
72081
       "until": "!=",
 
72082
       "rows": [{"name": "zero", "number": 0},
 
72083
                {"name": "one", "number": 1}]}]'
 
72084
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72085
at_status=$? at_failed=false
 
72086
$at_check_filter
 
72087
echo stderr:; cat "$at_stderr"
 
72088
echo stdout:; tee stdout <"$at_stdout"
 
72089
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72090
if $at_failed; then :
 
72091
  test ! -e pid || kill `cat pid`
 
72092
fi
 
72093
$at_failed && at_fn_log_failure
 
72094
$at_traceon; }
 
72095
 
 
72096
cat stdout >> output
 
72097
 
 
72098
   { set +x
 
72099
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
72100
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
72101
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
72102
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72103
at_status=$? at_failed=false
 
72104
$at_check_filter
 
72105
echo stderr:; cat "$at_stderr"
 
72106
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
72107
" | \
 
72108
  $at_diff - "$at_stdout" || at_failed=:
 
72109
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72110
if $at_failed; then :
 
72111
  test ! -e pid || kill `cat pid`
 
72112
fi
 
72113
$at_failed && at_fn_log_failure
 
72114
$at_traceon; }
 
72115
 
 
72116
   cp pid savepid
 
72117
   { set +x
 
72118
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
72119
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
72120
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
72121
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72122
at_status=$? at_failed=false
 
72123
$at_check_filter
 
72124
echo stderr:; cat "$at_stderr"
 
72125
echo stdout:; cat "$at_stdout"
 
72126
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72127
$at_failed && at_fn_log_failure
 
72128
$at_traceon; }
 
72129
 
 
72130
   { set +x
 
72131
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
72132
     # in the normal case.  POSIX doesn't require fractional times to
 
72133
     # work, so this might not work.
 
72134
     sleep 0.1
 
72135
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
72136
     # Then wait up to 10 seconds.
 
72137
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
72138
       sleep 1
 
72139
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
72140
     done
 
72141
     exit 1"
 
72142
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
72143
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
72144
     # in the normal case.  POSIX doesn't require fractional times to
 
72145
     # work, so this might not work.
 
72146
     sleep 0.1
 
72147
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
72148
     # Then wait up to 10 seconds.
 
72149
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
72150
       sleep 1
 
72151
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
72152
     done
 
72153
     exit 1
 
72154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72155
at_status=$? at_failed=false
 
72156
$at_check_filter
 
72157
echo stderr:; cat "$at_stderr"
 
72158
echo stdout:; cat "$at_stdout"
 
72159
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72160
if $at_failed; then :
 
72161
  kill `cat savepid`
 
72162
fi
 
72163
$at_failed && at_fn_log_failure
 
72164
$at_traceon; }
 
72165
 
 
72166
     set +x
 
72167
  $at_times_p && times >"$at_times_file"
 
72168
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
72169
read at_status <"$at_status_file"
 
72170
#AT_STOP_872
 
72171
#AT_START_873
 
72172
at_fn_group_banner 873 'ovsdb-server.at:410' \
 
72173
  "inequality wait with extra row" "                 " 60
 
72174
at_xfail=no
 
72175
(
 
72176
  $as_echo "873. $at_setup_line: testing $at_desc ..."
 
72177
  $at_traceon
 
72178
 
 
72179
 
 
72180
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72181
(test "$HAVE_OPENSSL" = no) \
 
72182
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72183
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72184
(test "x$RANDOM" = x) \
 
72185
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72186
   cat >schema <<'_ATEOF'
 
72187
{"name": "ordinals",
 
72188
     "tables": {
 
72189
       "ordinals": {
 
72190
         "columns": {
 
72191
           "number": {"type": "integer"},
 
72192
           "name": {"type": "string"}},
 
72193
         "indexes": [["number"]]}},
 
72194
     "version": "5.1.3",
 
72195
     "cksum": "12345678 9"}
 
72196
_ATEOF
 
72197
 
 
72198
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
72199
   PKIDIR=$abs_top_builddir/tests
 
72200
   { set +x
 
72201
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
72202
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
72203
( $at_check_trace; ovsdb-tool create db schema
 
72204
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72205
at_status=$? at_failed=false
 
72206
$at_check_filter
 
72207
echo stderr:; cat "$at_stderr"
 
72208
echo stdout:; tee stdout <"$at_stdout"
 
72209
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72210
$at_failed && at_fn_log_failure
 
72211
$at_traceon; }
 
72212
 
 
72213
   { set +x
 
72214
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
72215
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
72216
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
72217
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72218
at_status=$? at_failed=false
 
72219
$at_check_filter
 
72220
echo stderr:; cat "$at_stderr"
 
72221
echo stdout:; cat "$at_stdout"
 
72222
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72223
$at_failed && at_fn_log_failure
 
72224
$at_traceon; }
 
72225
 
 
72226
   { set +x
 
72227
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
72228
      {\"op\": \"insert\",
 
72229
       \"table\": \"ordinals\",
 
72230
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
72231
      {\"op\": \"insert\",
 
72232
       \"table\": \"ordinals\",
 
72233
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
72234
      {\"op\": \"wait\",
 
72235
       \"timeout\": 0,
 
72236
       \"table\": \"ordinals\",
 
72237
       \"where\": [],
 
72238
       \"columns\": [\"name\", \"number\"],
 
72239
       \"until\": \"!=\",
 
72240
       \"rows\": [{\"name\": \"zero\", \"number\": 0},
 
72241
                {\"name\": \"one\", \"number\": 1},
 
72242
                {\"name\": \"two\", \"number\": 2}]}]'"
 
72243
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72244
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
72245
      {"op": "insert",
 
72246
       "table": "ordinals",
 
72247
       "row": {"number": 0, "name": "zero"}},
 
72248
      {"op": "insert",
 
72249
       "table": "ordinals",
 
72250
       "row": {"number": 1, "name": "one"}},
 
72251
      {"op": "wait",
 
72252
       "timeout": 0,
 
72253
       "table": "ordinals",
 
72254
       "where": [],
 
72255
       "columns": ["name", "number"],
 
72256
       "until": "!=",
 
72257
       "rows": [{"name": "zero", "number": 0},
 
72258
                {"name": "one", "number": 1},
 
72259
                {"name": "two", "number": 2}]}]'
 
72260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72261
at_status=$? at_failed=false
 
72262
$at_check_filter
 
72263
echo stderr:; cat "$at_stderr"
 
72264
echo stdout:; tee stdout <"$at_stdout"
 
72265
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72266
if $at_failed; then :
 
72267
  test ! -e pid || kill `cat pid`
 
72268
fi
 
72269
$at_failed && at_fn_log_failure
 
72270
$at_traceon; }
 
72271
 
 
72272
cat stdout >> output
 
72273
 
 
72274
   { set +x
 
72275
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
72276
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
72277
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
72278
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72279
at_status=$? at_failed=false
 
72280
$at_check_filter
 
72281
echo stderr:; cat "$at_stderr"
 
72282
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
72283
" | \
 
72284
  $at_diff - "$at_stdout" || at_failed=:
 
72285
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72286
if $at_failed; then :
 
72287
  test ! -e pid || kill `cat pid`
 
72288
fi
 
72289
$at_failed && at_fn_log_failure
 
72290
$at_traceon; }
 
72291
 
 
72292
   cp pid savepid
 
72293
   { set +x
 
72294
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
72295
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
72296
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
72297
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72298
at_status=$? at_failed=false
 
72299
$at_check_filter
 
72300
echo stderr:; cat "$at_stderr"
 
72301
echo stdout:; cat "$at_stdout"
 
72302
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72303
$at_failed && at_fn_log_failure
 
72304
$at_traceon; }
 
72305
 
 
72306
   { set +x
 
72307
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
72308
     # in the normal case.  POSIX doesn't require fractional times to
 
72309
     # work, so this might not work.
 
72310
     sleep 0.1
 
72311
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
72312
     # Then wait up to 10 seconds.
 
72313
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
72314
       sleep 1
 
72315
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
72316
     done
 
72317
     exit 1"
 
72318
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
72319
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
72320
     # in the normal case.  POSIX doesn't require fractional times to
 
72321
     # work, so this might not work.
 
72322
     sleep 0.1
 
72323
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
72324
     # Then wait up to 10 seconds.
 
72325
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
72326
       sleep 1
 
72327
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
72328
     done
 
72329
     exit 1
 
72330
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72331
at_status=$? at_failed=false
 
72332
$at_check_filter
 
72333
echo stderr:; cat "$at_stderr"
 
72334
echo stdout:; cat "$at_stdout"
 
72335
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72336
if $at_failed; then :
 
72337
  kill `cat savepid`
 
72338
fi
 
72339
$at_failed && at_fn_log_failure
 
72340
$at_traceon; }
 
72341
 
 
72342
     set +x
 
72343
  $at_times_p && times >"$at_times_file"
 
72344
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
72345
read at_status <"$at_status_file"
 
72346
#AT_STOP_873
 
72347
#AT_START_874
 
72348
at_fn_group_banner 874 'ovsdb-server.at:410' \
 
72349
  "inequality wait with missing row" "               " 60
 
72350
at_xfail=no
 
72351
(
 
72352
  $as_echo "874. $at_setup_line: testing $at_desc ..."
 
72353
  $at_traceon
 
72354
 
 
72355
 
 
72356
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72357
(test "$HAVE_OPENSSL" = no) \
 
72358
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72359
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72360
(test "x$RANDOM" = x) \
 
72361
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72362
   cat >schema <<'_ATEOF'
 
72363
{"name": "ordinals",
 
72364
     "tables": {
 
72365
       "ordinals": {
 
72366
         "columns": {
 
72367
           "number": {"type": "integer"},
 
72368
           "name": {"type": "string"}},
 
72369
         "indexes": [["number"]]}},
 
72370
     "version": "5.1.3",
 
72371
     "cksum": "12345678 9"}
 
72372
_ATEOF
 
72373
 
 
72374
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
72375
   PKIDIR=$abs_top_builddir/tests
 
72376
   { set +x
 
72377
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
72378
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
72379
( $at_check_trace; ovsdb-tool create db schema
 
72380
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72381
at_status=$? at_failed=false
 
72382
$at_check_filter
 
72383
echo stderr:; cat "$at_stderr"
 
72384
echo stdout:; tee stdout <"$at_stdout"
 
72385
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72386
$at_failed && at_fn_log_failure
 
72387
$at_traceon; }
 
72388
 
 
72389
   { set +x
 
72390
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
72391
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
72392
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
72393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72394
at_status=$? at_failed=false
 
72395
$at_check_filter
 
72396
echo stderr:; cat "$at_stderr"
 
72397
echo stdout:; cat "$at_stdout"
 
72398
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72399
$at_failed && at_fn_log_failure
 
72400
$at_traceon; }
 
72401
 
 
72402
   { set +x
 
72403
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
72404
      {\"op\": \"insert\",
 
72405
       \"table\": \"ordinals\",
 
72406
       \"row\": {\"number\": 0, \"name\": \"zero\"}},
 
72407
      {\"op\": \"insert\",
 
72408
       \"table\": \"ordinals\",
 
72409
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
72410
      {\"op\": \"wait\",
 
72411
       \"timeout\": 0,
 
72412
       \"table\": \"ordinals\",
 
72413
       \"where\": [],
 
72414
       \"columns\": [\"name\", \"number\"],
 
72415
       \"until\": \"!=\",
 
72416
       \"rows\": [{\"name\": \"one\", \"number\": 1}]}]'"
 
72417
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72418
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
72419
      {"op": "insert",
 
72420
       "table": "ordinals",
 
72421
       "row": {"number": 0, "name": "zero"}},
 
72422
      {"op": "insert",
 
72423
       "table": "ordinals",
 
72424
       "row": {"number": 1, "name": "one"}},
 
72425
      {"op": "wait",
 
72426
       "timeout": 0,
 
72427
       "table": "ordinals",
 
72428
       "where": [],
 
72429
       "columns": ["name", "number"],
 
72430
       "until": "!=",
 
72431
       "rows": [{"name": "one", "number": 1}]}]'
 
72432
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72433
at_status=$? at_failed=false
 
72434
$at_check_filter
 
72435
echo stderr:; cat "$at_stderr"
 
72436
echo stdout:; tee stdout <"$at_stdout"
 
72437
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72438
if $at_failed; then :
 
72439
  test ! -e pid || kill `cat pid`
 
72440
fi
 
72441
$at_failed && at_fn_log_failure
 
72442
$at_traceon; }
 
72443
 
 
72444
cat stdout >> output
 
72445
 
 
72446
   { set +x
 
72447
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
72448
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
72449
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
72450
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72451
at_status=$? at_failed=false
 
72452
$at_check_filter
 
72453
echo stderr:; cat "$at_stderr"
 
72454
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
72455
" | \
 
72456
  $at_diff - "$at_stdout" || at_failed=:
 
72457
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72458
if $at_failed; then :
 
72459
  test ! -e pid || kill `cat pid`
 
72460
fi
 
72461
$at_failed && at_fn_log_failure
 
72462
$at_traceon; }
 
72463
 
 
72464
   cp pid savepid
 
72465
   { set +x
 
72466
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
72467
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
72468
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
72469
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72470
at_status=$? at_failed=false
 
72471
$at_check_filter
 
72472
echo stderr:; cat "$at_stderr"
 
72473
echo stdout:; cat "$at_stdout"
 
72474
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72475
$at_failed && at_fn_log_failure
 
72476
$at_traceon; }
 
72477
 
 
72478
   { set +x
 
72479
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
72480
     # in the normal case.  POSIX doesn't require fractional times to
 
72481
     # work, so this might not work.
 
72482
     sleep 0.1
 
72483
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
72484
     # Then wait up to 10 seconds.
 
72485
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
72486
       sleep 1
 
72487
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
72488
     done
 
72489
     exit 1"
 
72490
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
72491
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
72492
     # in the normal case.  POSIX doesn't require fractional times to
 
72493
     # work, so this might not work.
 
72494
     sleep 0.1
 
72495
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
72496
     # Then wait up to 10 seconds.
 
72497
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
72498
       sleep 1
 
72499
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
72500
     done
 
72501
     exit 1
 
72502
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72503
at_status=$? at_failed=false
 
72504
$at_check_filter
 
72505
echo stderr:; cat "$at_stderr"
 
72506
echo stdout:; cat "$at_stdout"
 
72507
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72508
if $at_failed; then :
 
72509
  kill `cat savepid`
 
72510
fi
 
72511
$at_failed && at_fn_log_failure
 
72512
$at_traceon; }
 
72513
 
 
72514
     set +x
 
72515
  $at_times_p && times >"$at_times_file"
 
72516
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
72517
read at_status <"$at_status_file"
 
72518
#AT_STOP_874
 
72519
#AT_START_875
 
72520
at_fn_group_banner 875 'ovsdb-server.at:410' \
 
72521
  "insert and update constraints" "                  " 60
 
72522
at_xfail=no
 
72523
(
 
72524
  $as_echo "875. $at_setup_line: testing $at_desc ..."
 
72525
  $at_traceon
 
72526
 
 
72527
 
 
72528
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72529
(test "$HAVE_OPENSSL" = no) \
 
72530
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72531
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72532
(test "x$RANDOM" = x) \
 
72533
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72534
   cat >schema <<'_ATEOF'
 
72535
{"name": "constraints",
 
72536
     "tables": {
 
72537
       "a": {
 
72538
         "columns": {
 
72539
           "a": {"type": "integer"},
 
72540
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
72541
                            "min": 0, "max": "unlimited"}},
 
72542
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
72543
                            "min": 0, "max": "unlimited"}}}},
 
72544
       "b": {
 
72545
         "columns": {
 
72546
           "b": {"type": "integer"},
 
72547
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
72548
                            "min": 0, "max": "unlimited"}},
 
72549
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
72550
                            "min": 0, "max": "unlimited"}},
 
72551
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
72552
       "constrained": {
 
72553
         "columns": {
 
72554
           "positive": {"type": {"key": {"type": "integer",
 
72555
                                         "minInteger": 1}}}},
 
72556
         "maxRows": 1}}}
 
72557
_ATEOF
 
72558
 
 
72559
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
72560
   PKIDIR=$abs_top_builddir/tests
 
72561
   { set +x
 
72562
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
72563
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
72564
( $at_check_trace; ovsdb-tool create db schema
 
72565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72566
at_status=$? at_failed=false
 
72567
$at_check_filter
 
72568
echo stderr:; cat "$at_stderr"
 
72569
echo stdout:; tee stdout <"$at_stdout"
 
72570
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72571
$at_failed && at_fn_log_failure
 
72572
$at_traceon; }
 
72573
 
 
72574
   { set +x
 
72575
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
72576
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
72577
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
72578
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72579
at_status=$? at_failed=false
 
72580
$at_check_filter
 
72581
echo stderr:; cat "$at_stderr"
 
72582
echo stdout:; cat "$at_stdout"
 
72583
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72584
$at_failed && at_fn_log_failure
 
72585
$at_traceon; }
 
72586
 
 
72587
   { set +x
 
72588
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
72589
      {\"op\": \"insert\",
 
72590
       \"table\": \"constrained\",
 
72591
       \"row\": {}}]'"
 
72592
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72593
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
72594
      {"op": "insert",
 
72595
       "table": "constrained",
 
72596
       "row": {}}]'
 
72597
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72598
at_status=$? at_failed=false
 
72599
$at_check_filter
 
72600
echo stderr:; cat "$at_stderr"
 
72601
echo stdout:; tee stdout <"$at_stdout"
 
72602
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72603
if $at_failed; then :
 
72604
  test ! -e pid || kill `cat pid`
 
72605
fi
 
72606
$at_failed && at_fn_log_failure
 
72607
$at_traceon; }
 
72608
 
 
72609
cat stdout >> output
 
72610
{ set +x
 
72611
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
72612
      {\"op\": \"insert\",
 
72613
       \"table\": \"constrained\",
 
72614
       \"row\": {\"positive\": -1}}]'"
 
72615
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72616
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
72617
      {"op": "insert",
 
72618
       "table": "constrained",
 
72619
       "row": {"positive": -1}}]'
 
72620
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72621
at_status=$? at_failed=false
 
72622
$at_check_filter
 
72623
echo stderr:; cat "$at_stderr"
 
72624
echo stdout:; tee stdout <"$at_stdout"
 
72625
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72626
if $at_failed; then :
 
72627
  test ! -e pid || kill `cat pid`
 
72628
fi
 
72629
$at_failed && at_fn_log_failure
 
72630
$at_traceon; }
 
72631
 
 
72632
cat stdout >> output
 
72633
{ set +x
 
72634
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
72635
      {\"op\": \"update\",
 
72636
       \"table\": \"constrained\",
 
72637
       \"where\": [],
 
72638
       \"row\": {\"positive\": -2}}]'"
 
72639
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72640
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
72641
      {"op": "update",
 
72642
       "table": "constrained",
 
72643
       "where": [],
 
72644
       "row": {"positive": -2}}]'
 
72645
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72646
at_status=$? at_failed=false
 
72647
$at_check_filter
 
72648
echo stderr:; cat "$at_stderr"
 
72649
echo stdout:; tee stdout <"$at_stdout"
 
72650
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72651
if $at_failed; then :
 
72652
  test ! -e pid || kill `cat pid`
 
72653
fi
 
72654
$at_failed && at_fn_log_failure
 
72655
$at_traceon; }
 
72656
 
 
72657
cat stdout >> output
 
72658
{ set +x
 
72659
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
72660
      {\"op\": \"insert\",
 
72661
       \"table\": \"constrained\",
 
72662
       \"row\": {\"positive\": 1}}]'"
 
72663
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72664
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
72665
      {"op": "insert",
 
72666
       "table": "constrained",
 
72667
       "row": {"positive": 1}}]'
 
72668
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72669
at_status=$? at_failed=false
 
72670
$at_check_filter
 
72671
echo stderr:; cat "$at_stderr"
 
72672
echo stdout:; tee stdout <"$at_stdout"
 
72673
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72674
if $at_failed; then :
 
72675
  test ! -e pid || kill `cat pid`
 
72676
fi
 
72677
$at_failed && at_fn_log_failure
 
72678
$at_traceon; }
 
72679
 
 
72680
cat stdout >> output
 
72681
{ set +x
 
72682
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
72683
      {\"op\": \"insert\",
 
72684
       \"table\": \"constrained\",
 
72685
       \"row\": {\"positive\": 2}}]'"
 
72686
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72687
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
72688
      {"op": "insert",
 
72689
       "table": "constrained",
 
72690
       "row": {"positive": 2}}]'
 
72691
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72692
at_status=$? at_failed=false
 
72693
$at_check_filter
 
72694
echo stderr:; cat "$at_stderr"
 
72695
echo stdout:; tee stdout <"$at_stdout"
 
72696
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72697
if $at_failed; then :
 
72698
  test ! -e pid || kill `cat pid`
 
72699
fi
 
72700
$at_failed && at_fn_log_failure
 
72701
$at_traceon; }
 
72702
 
 
72703
cat stdout >> output
 
72704
 
 
72705
   { set +x
 
72706
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
72707
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
72708
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
72709
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72710
at_status=$? at_failed=false
 
72711
$at_check_filter
 
72712
echo stderr:; cat "$at_stderr"
 
72713
echo >>"$at_stdout"; $as_echo "[{\"details\":\"0 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
72714
[{\"details\":\"-1 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
72715
[{\"details\":\"-2 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
72716
[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
72717
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"transaction causes \\\"constrained\\\" table to contain 2 rows, greater than the schema-defined limit of 1 row(s)\",\"error\":\"constraint violation\"}]
 
72718
" | \
 
72719
  $at_diff - "$at_stdout" || at_failed=:
 
72720
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72721
if $at_failed; then :
 
72722
  test ! -e pid || kill `cat pid`
 
72723
fi
 
72724
$at_failed && at_fn_log_failure
 
72725
$at_traceon; }
 
72726
 
 
72727
   cp pid savepid
 
72728
   { set +x
 
72729
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
72730
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
72731
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
72732
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72733
at_status=$? at_failed=false
 
72734
$at_check_filter
 
72735
echo stderr:; cat "$at_stderr"
 
72736
echo stdout:; cat "$at_stdout"
 
72737
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72738
$at_failed && at_fn_log_failure
 
72739
$at_traceon; }
 
72740
 
 
72741
   { set +x
 
72742
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
72743
     # in the normal case.  POSIX doesn't require fractional times to
 
72744
     # work, so this might not work.
 
72745
     sleep 0.1
 
72746
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
72747
     # Then wait up to 10 seconds.
 
72748
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
72749
       sleep 1
 
72750
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
72751
     done
 
72752
     exit 1"
 
72753
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
72754
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
72755
     # in the normal case.  POSIX doesn't require fractional times to
 
72756
     # work, so this might not work.
 
72757
     sleep 0.1
 
72758
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
72759
     # Then wait up to 10 seconds.
 
72760
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
72761
       sleep 1
 
72762
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
72763
     done
 
72764
     exit 1
 
72765
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72766
at_status=$? at_failed=false
 
72767
$at_check_filter
 
72768
echo stderr:; cat "$at_stderr"
 
72769
echo stdout:; cat "$at_stdout"
 
72770
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72771
if $at_failed; then :
 
72772
  kill `cat savepid`
 
72773
fi
 
72774
$at_failed && at_fn_log_failure
 
72775
$at_traceon; }
 
72776
 
 
72777
     set +x
 
72778
  $at_times_p && times >"$at_times_file"
 
72779
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
72780
read at_status <"$at_status_file"
 
72781
#AT_STOP_875
 
72782
#AT_START_876
 
72783
at_fn_group_banner 876 'ovsdb-server.at:410' \
 
72784
  "index uniqueness checking" "                      " 60
 
72785
at_xfail=no
 
72786
(
 
72787
  $as_echo "876. $at_setup_line: testing $at_desc ..."
 
72788
  $at_traceon
 
72789
 
 
72790
 
 
72791
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72792
(test "$HAVE_OPENSSL" = no) \
 
72793
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72794
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
72795
(test "x$RANDOM" = x) \
 
72796
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
72797
   cat >schema <<'_ATEOF'
 
72798
{"name": "ordinals",
 
72799
     "tables": {
 
72800
       "ordinals": {
 
72801
         "columns": {
 
72802
           "number": {"type": "integer"},
 
72803
           "name": {"type": "string"}},
 
72804
         "indexes": [["number"]]}},
 
72805
     "version": "5.1.3",
 
72806
     "cksum": "12345678 9"}
 
72807
_ATEOF
 
72808
 
 
72809
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
72810
   PKIDIR=$abs_top_builddir/tests
 
72811
   { set +x
 
72812
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
72813
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
72814
( $at_check_trace; ovsdb-tool create db schema
 
72815
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72816
at_status=$? at_failed=false
 
72817
$at_check_filter
 
72818
echo stderr:; cat "$at_stderr"
 
72819
echo stdout:; tee stdout <"$at_stdout"
 
72820
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72821
$at_failed && at_fn_log_failure
 
72822
$at_traceon; }
 
72823
 
 
72824
   { set +x
 
72825
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
72826
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
72827
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
72828
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72829
at_status=$? at_failed=false
 
72830
$at_check_filter
 
72831
echo stderr:; cat "$at_stderr"
 
72832
echo stdout:; cat "$at_stdout"
 
72833
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72834
$at_failed && at_fn_log_failure
 
72835
$at_traceon; }
 
72836
 
 
72837
   { set +x
 
72838
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"ordinals\",
 
72839
      {\"op\": \"insert\",
 
72840
       \"table\": \"ordinals\",
 
72841
       \"row\": {\"number\": 1, \"name\": \"one\"}}]'"
 
72842
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72843
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["ordinals",
 
72844
      {"op": "insert",
 
72845
       "table": "ordinals",
 
72846
       "row": {"number": 1, "name": "one"}}]'
 
72847
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72848
at_status=$? at_failed=false
 
72849
$at_check_filter
 
72850
echo stderr:; cat "$at_stderr"
 
72851
echo stdout:; tee stdout <"$at_stdout"
 
72852
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72853
if $at_failed; then :
 
72854
  test ! -e pid || kill `cat pid`
 
72855
fi
 
72856
$at_failed && at_fn_log_failure
 
72857
$at_traceon; }
 
72858
 
 
72859
cat stdout >> output
 
72860
{ set +x
 
72861
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"ordinals\",
 
72862
      {\"op\": \"insert\",
 
72863
       \"table\": \"ordinals\",
 
72864
       \"row\": {\"number\": 1, \"name\": \"another one\"}}]'"
 
72865
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72866
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["ordinals",
 
72867
      {"op": "insert",
 
72868
       "table": "ordinals",
 
72869
       "row": {"number": 1, "name": "another one"}}]'
 
72870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72871
at_status=$? at_failed=false
 
72872
$at_check_filter
 
72873
echo stderr:; cat "$at_stderr"
 
72874
echo stdout:; tee stdout <"$at_stdout"
 
72875
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72876
if $at_failed; then :
 
72877
  test ! -e pid || kill `cat pid`
 
72878
fi
 
72879
$at_failed && at_fn_log_failure
 
72880
$at_traceon; }
 
72881
 
 
72882
cat stdout >> output
 
72883
{ set +x
 
72884
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"ordinals\",
 
72885
      {\"op\": \"insert\",
 
72886
       \"table\": \"ordinals\",
 
72887
       \"row\": {\"number\": 1, \"name\": \"another one\"}},
 
72888
      {\"op\": \"delete\",
 
72889
       \"table\": \"ordinals\",
 
72890
       \"where\": [[\"name\", \"==\", \"one\"]]}]'"
 
72891
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72892
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["ordinals",
 
72893
      {"op": "insert",
 
72894
       "table": "ordinals",
 
72895
       "row": {"number": 1, "name": "another one"}},
 
72896
      {"op": "delete",
 
72897
       "table": "ordinals",
 
72898
       "where": [["name", "==", "one"]]}]'
 
72899
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72900
at_status=$? at_failed=false
 
72901
$at_check_filter
 
72902
echo stderr:; cat "$at_stderr"
 
72903
echo stdout:; tee stdout <"$at_stdout"
 
72904
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72905
if $at_failed; then :
 
72906
  test ! -e pid || kill `cat pid`
 
72907
fi
 
72908
$at_failed && at_fn_log_failure
 
72909
$at_traceon; }
 
72910
 
 
72911
cat stdout >> output
 
72912
{ set +x
 
72913
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"ordinals\",
 
72914
      {\"op\": \"delete\",
 
72915
       \"table\": \"ordinals\",
 
72916
       \"where\": []},
 
72917
      {\"op\": \"insert\",
 
72918
       \"table\": \"ordinals\",
 
72919
       \"row\": {\"number\": 1, \"name\": \"one\"}},
 
72920
      {\"op\": \"insert\",
 
72921
       \"table\": \"ordinals\",
 
72922
       \"row\": {\"number\": 1, \"name\": \"still another one\"}}]'"
 
72923
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72924
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["ordinals",
 
72925
      {"op": "delete",
 
72926
       "table": "ordinals",
 
72927
       "where": []},
 
72928
      {"op": "insert",
 
72929
       "table": "ordinals",
 
72930
       "row": {"number": 1, "name": "one"}},
 
72931
      {"op": "insert",
 
72932
       "table": "ordinals",
 
72933
       "row": {"number": 1, "name": "still another one"}}]'
 
72934
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72935
at_status=$? at_failed=false
 
72936
$at_check_filter
 
72937
echo stderr:; cat "$at_stderr"
 
72938
echo stdout:; tee stdout <"$at_stdout"
 
72939
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72940
if $at_failed; then :
 
72941
  test ! -e pid || kill `cat pid`
 
72942
fi
 
72943
$at_failed && at_fn_log_failure
 
72944
$at_traceon; }
 
72945
 
 
72946
cat stdout >> output
 
72947
{ set +x
 
72948
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"ordinals\",
 
72949
      {\"op\": \"insert\",
 
72950
       \"table\": \"ordinals\",
 
72951
       \"row\": {\"number\": 2, \"name\": \"two\"}}]'"
 
72952
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72953
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["ordinals",
 
72954
      {"op": "insert",
 
72955
       "table": "ordinals",
 
72956
       "row": {"number": 2, "name": "two"}}]'
 
72957
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72958
at_status=$? at_failed=false
 
72959
$at_check_filter
 
72960
echo stderr:; cat "$at_stderr"
 
72961
echo stdout:; tee stdout <"$at_stdout"
 
72962
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72963
if $at_failed; then :
 
72964
  test ! -e pid || kill `cat pid`
 
72965
fi
 
72966
$at_failed && at_fn_log_failure
 
72967
$at_traceon; }
 
72968
 
 
72969
cat stdout >> output
 
72970
{ set +x
 
72971
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"ordinals\",
 
72972
      {\"op\": \"update\",
 
72973
       \"table\": \"ordinals\",
 
72974
       \"where\": [],
 
72975
       \"row\": {\"number\": 3}}]'"
 
72976
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
72977
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["ordinals",
 
72978
      {"op": "update",
 
72979
       "table": "ordinals",
 
72980
       "where": [],
 
72981
       "row": {"number": 3}}]'
 
72982
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
72983
at_status=$? at_failed=false
 
72984
$at_check_filter
 
72985
echo stderr:; cat "$at_stderr"
 
72986
echo stdout:; tee stdout <"$at_stdout"
 
72987
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
72988
if $at_failed; then :
 
72989
  test ! -e pid || kill `cat pid`
 
72990
fi
 
72991
$at_failed && at_fn_log_failure
 
72992
$at_traceon; }
 
72993
 
 
72994
cat stdout >> output
 
72995
{ set +x
 
72996
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"ordinals\",
 
72997
      {\"op\": \"update\",
 
72998
       \"table\": \"ordinals\",
 
72999
       \"where\": [[\"number\", \"==\", 1]],
 
73000
       \"row\": {\"number\": 2, \"name\": \"old two\"}},
 
73001
      {\"op\": \"update\",
 
73002
       \"table\": \"ordinals\",
 
73003
       \"where\": [[\"name\", \"==\", \"two\"]],
 
73004
       \"row\": {\"number\": 1, \"name\": \"old one\"}}]'"
 
73005
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73006
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["ordinals",
 
73007
      {"op": "update",
 
73008
       "table": "ordinals",
 
73009
       "where": [["number", "==", 1]],
 
73010
       "row": {"number": 2, "name": "old two"}},
 
73011
      {"op": "update",
 
73012
       "table": "ordinals",
 
73013
       "where": [["name", "==", "two"]],
 
73014
       "row": {"number": 1, "name": "old one"}}]'
 
73015
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73016
at_status=$? at_failed=false
 
73017
$at_check_filter
 
73018
echo stderr:; cat "$at_stderr"
 
73019
echo stdout:; tee stdout <"$at_stdout"
 
73020
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73021
if $at_failed; then :
 
73022
  test ! -e pid || kill `cat pid`
 
73023
fi
 
73024
$at_failed && at_fn_log_failure
 
73025
$at_traceon; }
 
73026
 
 
73027
cat stdout >> output
 
73028
{ set +x
 
73029
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"ordinals\",
 
73030
      {\"op\": \"mutate\",
 
73031
       \"table\": \"ordinals\",
 
73032
       \"where\": [],
 
73033
       \"mutations\": [[\"number\", \"*=\", 10]]},
 
73034
      {\"op\": \"insert\",
 
73035
       \"table\": \"ordinals\",
 
73036
       \"row\": {\"number\": 1, \"name\": \"new one\"}},
 
73037
      {\"op\": \"insert\",
 
73038
       \"table\": \"ordinals\",
 
73039
       \"row\": {\"number\": 2, \"name\": \"new two\"}},
 
73040
      {\"op\": \"select\",
 
73041
       \"table\": \"ordinals\",
 
73042
       \"where\": [],
 
73043
       \"columns\": [\"number\", \"name\"],
 
73044
       \"sort\": [\"number\"]}]'"
 
73045
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73046
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["ordinals",
 
73047
      {"op": "mutate",
 
73048
       "table": "ordinals",
 
73049
       "where": [],
 
73050
       "mutations": [["number", "*=", 10]]},
 
73051
      {"op": "insert",
 
73052
       "table": "ordinals",
 
73053
       "row": {"number": 1, "name": "new one"}},
 
73054
      {"op": "insert",
 
73055
       "table": "ordinals",
 
73056
       "row": {"number": 2, "name": "new two"}},
 
73057
      {"op": "select",
 
73058
       "table": "ordinals",
 
73059
       "where": [],
 
73060
       "columns": ["number", "name"],
 
73061
       "sort": ["number"]}]'
 
73062
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73063
at_status=$? at_failed=false
 
73064
$at_check_filter
 
73065
echo stderr:; cat "$at_stderr"
 
73066
echo stdout:; tee stdout <"$at_stdout"
 
73067
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73068
if $at_failed; then :
 
73069
  test ! -e pid || kill `cat pid`
 
73070
fi
 
73071
$at_failed && at_fn_log_failure
 
73072
$at_traceon; }
 
73073
 
 
73074
cat stdout >> output
 
73075
 
 
73076
   { set +x
 
73077
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
73078
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
73079
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
73080
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73081
at_status=$? at_failed=false
 
73082
$at_check_filter
 
73083
echo stderr:; cat "$at_stderr"
 
73084
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
73085
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <0>, existed in the database before this transaction and was not modified by the transaction.  Second row, with UUID <1>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
73086
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"count\":1}]
 
73087
[{\"count\":1},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <4>, was inserted by this transaction.  Second row, with UUID <3>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
73088
[{\"uuid\":[\"uuid\",\"<5>\"]}]
 
73089
[{\"count\":2},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (3) for index on column \\\"number\\\".  First row, with UUID <5>, had the following index values before the transaction: 2.  Second row, with UUID <2>, had the following index values before the transaction: 1.\",\"error\":\"constraint violation\"}]
 
73090
[{\"count\":1},{\"count\":1}]
 
73091
[{\"count\":2},{\"uuid\":[\"uuid\",\"<6>\"]},{\"uuid\":[\"uuid\",\"<7>\"]},{\"rows\":[{\"name\":\"new one\",\"number\":1},{\"name\":\"new two\",\"number\":2},{\"name\":\"old one\",\"number\":10},{\"name\":\"old two\",\"number\":20}]}]
 
73092
" | \
 
73093
  $at_diff - "$at_stdout" || at_failed=:
 
73094
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73095
if $at_failed; then :
 
73096
  test ! -e pid || kill `cat pid`
 
73097
fi
 
73098
$at_failed && at_fn_log_failure
 
73099
$at_traceon; }
 
73100
 
 
73101
   cp pid savepid
 
73102
   { set +x
 
73103
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
73104
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
73105
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
73106
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73107
at_status=$? at_failed=false
 
73108
$at_check_filter
 
73109
echo stderr:; cat "$at_stderr"
 
73110
echo stdout:; cat "$at_stdout"
 
73111
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73112
$at_failed && at_fn_log_failure
 
73113
$at_traceon; }
 
73114
 
 
73115
   { set +x
 
73116
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
73117
     # in the normal case.  POSIX doesn't require fractional times to
 
73118
     # work, so this might not work.
 
73119
     sleep 0.1
 
73120
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
73121
     # Then wait up to 10 seconds.
 
73122
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
73123
       sleep 1
 
73124
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
73125
     done
 
73126
     exit 1"
 
73127
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
73128
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
73129
     # in the normal case.  POSIX doesn't require fractional times to
 
73130
     # work, so this might not work.
 
73131
     sleep 0.1
 
73132
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
73133
     # Then wait up to 10 seconds.
 
73134
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
73135
       sleep 1
 
73136
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
73137
     done
 
73138
     exit 1
 
73139
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73140
at_status=$? at_failed=false
 
73141
$at_check_filter
 
73142
echo stderr:; cat "$at_stderr"
 
73143
echo stdout:; cat "$at_stdout"
 
73144
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73145
if $at_failed; then :
 
73146
  kill `cat savepid`
 
73147
fi
 
73148
$at_failed && at_fn_log_failure
 
73149
$at_traceon; }
 
73150
 
 
73151
     set +x
 
73152
  $at_times_p && times >"$at_times_file"
 
73153
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
73154
read at_status <"$at_status_file"
 
73155
#AT_STOP_876
 
73156
#AT_START_877
 
73157
at_fn_group_banner 877 'ovsdb-server.at:410' \
 
73158
  "referential integrity -- simple" "                " 60
 
73159
at_xfail=no
 
73160
(
 
73161
  $as_echo "877. $at_setup_line: testing $at_desc ..."
 
73162
  $at_traceon
 
73163
 
 
73164
 
 
73165
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
73166
(test "$HAVE_OPENSSL" = no) \
 
73167
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
73168
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
73169
(test "x$RANDOM" = x) \
 
73170
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
73171
   cat >schema <<'_ATEOF'
 
73172
{"name": "constraints",
 
73173
     "tables": {
 
73174
       "a": {
 
73175
         "columns": {
 
73176
           "a": {"type": "integer"},
 
73177
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
73178
                            "min": 0, "max": "unlimited"}},
 
73179
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
73180
                            "min": 0, "max": "unlimited"}}}},
 
73181
       "b": {
 
73182
         "columns": {
 
73183
           "b": {"type": "integer"},
 
73184
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
73185
                            "min": 0, "max": "unlimited"}},
 
73186
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
73187
                            "min": 0, "max": "unlimited"}},
 
73188
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
73189
       "constrained": {
 
73190
         "columns": {
 
73191
           "positive": {"type": {"key": {"type": "integer",
 
73192
                                         "minInteger": 1}}}},
 
73193
         "maxRows": 1}}}
 
73194
_ATEOF
 
73195
 
 
73196
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
73197
   PKIDIR=$abs_top_builddir/tests
 
73198
   { set +x
 
73199
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
73200
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
73201
( $at_check_trace; ovsdb-tool create db schema
 
73202
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73203
at_status=$? at_failed=false
 
73204
$at_check_filter
 
73205
echo stderr:; cat "$at_stderr"
 
73206
echo stdout:; tee stdout <"$at_stdout"
 
73207
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73208
$at_failed && at_fn_log_failure
 
73209
$at_traceon; }
 
73210
 
 
73211
   { set +x
 
73212
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
73213
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
73214
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
73215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73216
at_status=$? at_failed=false
 
73217
$at_check_filter
 
73218
echo stderr:; cat "$at_stderr"
 
73219
echo stdout:; cat "$at_stdout"
 
73220
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73221
$at_failed && at_fn_log_failure
 
73222
$at_traceon; }
 
73223
 
 
73224
   { set +x
 
73225
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73226
      {\"op\": \"insert\",
 
73227
       \"table\": \"b\",
 
73228
       \"row\": {\"b\": 1},
 
73229
       \"uuid-name\": \"brow\"},
 
73230
      {\"op\": \"insert\",
 
73231
       \"table\": \"a\",
 
73232
       \"row\": {\"a\": 0,
 
73233
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}},
 
73234
      {\"op\": \"insert\",
 
73235
       \"table\": \"a\",
 
73236
       \"row\": {\"a\": 1,
 
73237
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}},
 
73238
      {\"op\": \"insert\",
 
73239
       \"table\": \"a\",
 
73240
       \"row\": {\"a\": 2,
 
73241
               \"a2b\": [\"set\", [[\"named-uuid\", \"brow\"]]]}}]'"
 
73242
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73243
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73244
      {"op": "insert",
 
73245
       "table": "b",
 
73246
       "row": {"b": 1},
 
73247
       "uuid-name": "brow"},
 
73248
      {"op": "insert",
 
73249
       "table": "a",
 
73250
       "row": {"a": 0,
 
73251
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
73252
      {"op": "insert",
 
73253
       "table": "a",
 
73254
       "row": {"a": 1,
 
73255
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
73256
      {"op": "insert",
 
73257
       "table": "a",
 
73258
       "row": {"a": 2,
 
73259
               "a2b": ["set", [["named-uuid", "brow"]]]}}]'
 
73260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73261
at_status=$? at_failed=false
 
73262
$at_check_filter
 
73263
echo stderr:; cat "$at_stderr"
 
73264
echo stdout:; tee stdout <"$at_stdout"
 
73265
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73266
if $at_failed; then :
 
73267
  test ! -e pid || kill `cat pid`
 
73268
fi
 
73269
$at_failed && at_fn_log_failure
 
73270
$at_traceon; }
 
73271
 
 
73272
cat stdout >> output
 
73273
{ set +x
 
73274
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73275
      {\"op\": \"delete\",
 
73276
       \"table\": \"b\",
 
73277
       \"where\": []}]'"
 
73278
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73279
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73280
      {"op": "delete",
 
73281
       "table": "b",
 
73282
       "where": []}]'
 
73283
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73284
at_status=$? at_failed=false
 
73285
$at_check_filter
 
73286
echo stderr:; cat "$at_stderr"
 
73287
echo stdout:; tee stdout <"$at_stdout"
 
73288
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73289
if $at_failed; then :
 
73290
  test ! -e pid || kill `cat pid`
 
73291
fi
 
73292
$at_failed && at_fn_log_failure
 
73293
$at_traceon; }
 
73294
 
 
73295
cat stdout >> output
 
73296
{ set +x
 
73297
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"constraints\",
 
73298
      {\"op\": \"mutate\",
 
73299
       \"table\": \"b\",
 
73300
       \"where\": [],
 
73301
       \"mutations\": [[\"x\", \"delete\", 0]]}]'"
 
73302
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73303
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["constraints",
 
73304
      {"op": "mutate",
 
73305
       "table": "b",
 
73306
       "where": [],
 
73307
       "mutations": [["x", "delete", 0]]}]'
 
73308
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73309
at_status=$? at_failed=false
 
73310
$at_check_filter
 
73311
echo stderr:; cat "$at_stderr"
 
73312
echo stdout:; tee stdout <"$at_stdout"
 
73313
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73314
if $at_failed; then :
 
73315
  test ! -e pid || kill `cat pid`
 
73316
fi
 
73317
$at_failed && at_fn_log_failure
 
73318
$at_traceon; }
 
73319
 
 
73320
cat stdout >> output
 
73321
{ set +x
 
73322
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73323
      {\"op\": \"delete\",
 
73324
       \"table\": \"a\",
 
73325
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
73326
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73327
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73328
      {"op": "delete",
 
73329
       "table": "a",
 
73330
       "where": [["a", "==", 0]]}]'
 
73331
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73332
at_status=$? at_failed=false
 
73333
$at_check_filter
 
73334
echo stderr:; cat "$at_stderr"
 
73335
echo stdout:; tee stdout <"$at_stdout"
 
73336
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73337
if $at_failed; then :
 
73338
  test ! -e pid || kill `cat pid`
 
73339
fi
 
73340
$at_failed && at_fn_log_failure
 
73341
$at_traceon; }
 
73342
 
 
73343
cat stdout >> output
 
73344
{ set +x
 
73345
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73346
      {\"op\": \"delete\",
 
73347
       \"table\": \"b\",
 
73348
       \"where\": []}]'"
 
73349
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73350
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73351
      {"op": "delete",
 
73352
       "table": "b",
 
73353
       "where": []}]'
 
73354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73355
at_status=$? at_failed=false
 
73356
$at_check_filter
 
73357
echo stderr:; cat "$at_stderr"
 
73358
echo stdout:; tee stdout <"$at_stdout"
 
73359
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73360
if $at_failed; then :
 
73361
  test ! -e pid || kill `cat pid`
 
73362
fi
 
73363
$at_failed && at_fn_log_failure
 
73364
$at_traceon; }
 
73365
 
 
73366
cat stdout >> output
 
73367
{ set +x
 
73368
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73369
      {\"op\": \"delete\",
 
73370
       \"table\": \"a\",
 
73371
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
73372
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73373
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73374
      {"op": "delete",
 
73375
       "table": "a",
 
73376
       "where": [["a", "==", 1]]}]'
 
73377
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73378
at_status=$? at_failed=false
 
73379
$at_check_filter
 
73380
echo stderr:; cat "$at_stderr"
 
73381
echo stdout:; tee stdout <"$at_stdout"
 
73382
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73383
if $at_failed; then :
 
73384
  test ! -e pid || kill `cat pid`
 
73385
fi
 
73386
$at_failed && at_fn_log_failure
 
73387
$at_traceon; }
 
73388
 
 
73389
cat stdout >> output
 
73390
{ set +x
 
73391
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73392
      {\"op\": \"delete\",
 
73393
       \"table\": \"b\",
 
73394
       \"where\": []}]'"
 
73395
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73396
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73397
      {"op": "delete",
 
73398
       "table": "b",
 
73399
       "where": []}]'
 
73400
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73401
at_status=$? at_failed=false
 
73402
$at_check_filter
 
73403
echo stderr:; cat "$at_stderr"
 
73404
echo stdout:; tee stdout <"$at_stdout"
 
73405
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73406
if $at_failed; then :
 
73407
  test ! -e pid || kill `cat pid`
 
73408
fi
 
73409
$at_failed && at_fn_log_failure
 
73410
$at_traceon; }
 
73411
 
 
73412
cat stdout >> output
 
73413
{ set +x
 
73414
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73415
      {\"op\": \"delete\",
 
73416
       \"table\": \"a\",
 
73417
       \"where\": [[\"a\", \"==\", 2]]}]'"
 
73418
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73419
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73420
      {"op": "delete",
 
73421
       "table": "a",
 
73422
       "where": [["a", "==", 2]]}]'
 
73423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73424
at_status=$? at_failed=false
 
73425
$at_check_filter
 
73426
echo stderr:; cat "$at_stderr"
 
73427
echo stdout:; tee stdout <"$at_stdout"
 
73428
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73429
if $at_failed; then :
 
73430
  test ! -e pid || kill `cat pid`
 
73431
fi
 
73432
$at_failed && at_fn_log_failure
 
73433
$at_traceon; }
 
73434
 
 
73435
cat stdout >> output
 
73436
{ set +x
 
73437
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73438
      {\"op\": \"delete\",
 
73439
       \"table\": \"b\",
 
73440
       \"where\": []}]'"
 
73441
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73442
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73443
      {"op": "delete",
 
73444
       "table": "b",
 
73445
       "where": []}]'
 
73446
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73447
at_status=$? at_failed=false
 
73448
$at_check_filter
 
73449
echo stderr:; cat "$at_stderr"
 
73450
echo stdout:; tee stdout <"$at_stdout"
 
73451
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73452
if $at_failed; then :
 
73453
  test ! -e pid || kill `cat pid`
 
73454
fi
 
73455
$at_failed && at_fn_log_failure
 
73456
$at_traceon; }
 
73457
 
 
73458
cat stdout >> output
 
73459
 
 
73460
   { set +x
 
73461
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
73462
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
73463
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
73464
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73465
at_status=$? at_failed=false
 
73466
$at_check_filter
 
73467
echo stderr:; cat "$at_stderr"
 
73468
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]
 
73469
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 3 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
73470
[{\"details\":\"Attempted to store 0 elements in set of 1 to 2 integers.\",\"error\":\"constraint violation\"}]
 
73471
[{\"count\":1}]
 
73472
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 2 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
73473
[{\"count\":1}]
 
73474
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
73475
[{\"count\":1}]
 
73476
[{\"count\":1}]
 
73477
" | \
 
73478
  $at_diff - "$at_stdout" || at_failed=:
 
73479
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73480
if $at_failed; then :
 
73481
  test ! -e pid || kill `cat pid`
 
73482
fi
 
73483
$at_failed && at_fn_log_failure
 
73484
$at_traceon; }
 
73485
 
 
73486
   cp pid savepid
 
73487
   { set +x
 
73488
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
73489
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
73490
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
73491
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73492
at_status=$? at_failed=false
 
73493
$at_check_filter
 
73494
echo stderr:; cat "$at_stderr"
 
73495
echo stdout:; cat "$at_stdout"
 
73496
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73497
$at_failed && at_fn_log_failure
 
73498
$at_traceon; }
 
73499
 
 
73500
   { set +x
 
73501
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
73502
     # in the normal case.  POSIX doesn't require fractional times to
 
73503
     # work, so this might not work.
 
73504
     sleep 0.1
 
73505
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
73506
     # Then wait up to 10 seconds.
 
73507
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
73508
       sleep 1
 
73509
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
73510
     done
 
73511
     exit 1"
 
73512
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
73513
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
73514
     # in the normal case.  POSIX doesn't require fractional times to
 
73515
     # work, so this might not work.
 
73516
     sleep 0.1
 
73517
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
73518
     # Then wait up to 10 seconds.
 
73519
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
73520
       sleep 1
 
73521
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
73522
     done
 
73523
     exit 1
 
73524
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73525
at_status=$? at_failed=false
 
73526
$at_check_filter
 
73527
echo stderr:; cat "$at_stderr"
 
73528
echo stdout:; cat "$at_stdout"
 
73529
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73530
if $at_failed; then :
 
73531
  kill `cat savepid`
 
73532
fi
 
73533
$at_failed && at_fn_log_failure
 
73534
$at_traceon; }
 
73535
 
 
73536
     set +x
 
73537
  $at_times_p && times >"$at_times_file"
 
73538
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
73539
read at_status <"$at_status_file"
 
73540
#AT_STOP_877
 
73541
#AT_START_878
 
73542
at_fn_group_banner 878 'ovsdb-server.at:410' \
 
73543
  "referential integrity -- mutual references" "     " 60
 
73544
at_xfail=no
 
73545
(
 
73546
  $as_echo "878. $at_setup_line: testing $at_desc ..."
 
73547
  $at_traceon
 
73548
 
 
73549
 
 
73550
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
73551
(test "$HAVE_OPENSSL" = no) \
 
73552
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
73553
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
73554
(test "x$RANDOM" = x) \
 
73555
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
73556
   cat >schema <<'_ATEOF'
 
73557
{"name": "constraints",
 
73558
     "tables": {
 
73559
       "a": {
 
73560
         "columns": {
 
73561
           "a": {"type": "integer"},
 
73562
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
73563
                            "min": 0, "max": "unlimited"}},
 
73564
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
73565
                            "min": 0, "max": "unlimited"}}}},
 
73566
       "b": {
 
73567
         "columns": {
 
73568
           "b": {"type": "integer"},
 
73569
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
73570
                            "min": 0, "max": "unlimited"}},
 
73571
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
73572
                            "min": 0, "max": "unlimited"}},
 
73573
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
73574
       "constrained": {
 
73575
         "columns": {
 
73576
           "positive": {"type": {"key": {"type": "integer",
 
73577
                                         "minInteger": 1}}}},
 
73578
         "maxRows": 1}}}
 
73579
_ATEOF
 
73580
 
 
73581
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
73582
   PKIDIR=$abs_top_builddir/tests
 
73583
   { set +x
 
73584
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
73585
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
73586
( $at_check_trace; ovsdb-tool create db schema
 
73587
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73588
at_status=$? at_failed=false
 
73589
$at_check_filter
 
73590
echo stderr:; cat "$at_stderr"
 
73591
echo stdout:; tee stdout <"$at_stdout"
 
73592
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73593
$at_failed && at_fn_log_failure
 
73594
$at_traceon; }
 
73595
 
 
73596
   { set +x
 
73597
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
73598
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
73599
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
73600
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73601
at_status=$? at_failed=false
 
73602
$at_check_filter
 
73603
echo stderr:; cat "$at_stderr"
 
73604
echo stdout:; cat "$at_stdout"
 
73605
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73606
$at_failed && at_fn_log_failure
 
73607
$at_traceon; }
 
73608
 
 
73609
   { set +x
 
73610
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73611
      {\"op\": \"insert\",
 
73612
       \"table\": \"a\",
 
73613
       \"row\": {\"a\": 0,
 
73614
               \"a2b\": [\"set\", [[\"named-uuid\", \"row2\"]]],
 
73615
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"]]]},
 
73616
       \"uuid-name\": \"row1\"},
 
73617
      {\"op\": \"insert\",
 
73618
       \"table\": \"b\",
 
73619
       \"row\": {\"b\": 1,
 
73620
               \"b2b\": [\"set\", [[\"named-uuid\", \"row2\"]]],
 
73621
               \"b2a\": [\"set\", [[\"named-uuid\", \"row1\"]]]},
 
73622
       \"uuid-name\": \"row2\"}]'"
 
73623
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73624
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73625
      {"op": "insert",
 
73626
       "table": "a",
 
73627
       "row": {"a": 0,
 
73628
               "a2b": ["set", [["named-uuid", "row2"]]],
 
73629
               "a2a": ["set", [["named-uuid", "row1"]]]},
 
73630
       "uuid-name": "row1"},
 
73631
      {"op": "insert",
 
73632
       "table": "b",
 
73633
       "row": {"b": 1,
 
73634
               "b2b": ["set", [["named-uuid", "row2"]]],
 
73635
               "b2a": ["set", [["named-uuid", "row1"]]]},
 
73636
       "uuid-name": "row2"}]'
 
73637
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73638
at_status=$? at_failed=false
 
73639
$at_check_filter
 
73640
echo stderr:; cat "$at_stderr"
 
73641
echo stdout:; tee stdout <"$at_stdout"
 
73642
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73643
if $at_failed; then :
 
73644
  test ! -e pid || kill `cat pid`
 
73645
fi
 
73646
$at_failed && at_fn_log_failure
 
73647
$at_traceon; }
 
73648
 
 
73649
cat stdout >> output
 
73650
{ set +x
 
73651
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73652
      {\"op\": \"insert\",
 
73653
       \"table\": \"a\",
 
73654
       \"row\": {\"a2b\": [\"set\", [[\"uuid\", \"b516b960-5b19-4fc2-bb82-fe1cbd6d0241\"]]]}}]'"
 
73655
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73656
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73657
      {"op": "insert",
 
73658
       "table": "a",
 
73659
       "row": {"a2b": ["set", [["uuid", "b516b960-5b19-4fc2-bb82-fe1cbd6d0241"]]]}}]'
 
73660
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73661
at_status=$? at_failed=false
 
73662
$at_check_filter
 
73663
echo stderr:; cat "$at_stderr"
 
73664
echo stdout:; tee stdout <"$at_stdout"
 
73665
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73666
if $at_failed; then :
 
73667
  test ! -e pid || kill `cat pid`
 
73668
fi
 
73669
$at_failed && at_fn_log_failure
 
73670
$at_traceon; }
 
73671
 
 
73672
cat stdout >> output
 
73673
{ set +x
 
73674
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73675
      {\"op\": \"delete\",
 
73676
       \"table\": \"a\",
 
73677
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
73678
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73679
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73680
      {"op": "delete",
 
73681
       "table": "a",
 
73682
       "where": [["a", "==", 0]]}]'
 
73683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73684
at_status=$? at_failed=false
 
73685
$at_check_filter
 
73686
echo stderr:; cat "$at_stderr"
 
73687
echo stdout:; tee stdout <"$at_stdout"
 
73688
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73689
if $at_failed; then :
 
73690
  test ! -e pid || kill `cat pid`
 
73691
fi
 
73692
$at_failed && at_fn_log_failure
 
73693
$at_traceon; }
 
73694
 
 
73695
cat stdout >> output
 
73696
{ set +x
 
73697
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73698
      {\"op\": \"delete\",
 
73699
       \"table\": \"b\",
 
73700
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
73701
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73702
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73703
      {"op": "delete",
 
73704
       "table": "b",
 
73705
       "where": [["b", "==", 1]]}]'
 
73706
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73707
at_status=$? at_failed=false
 
73708
$at_check_filter
 
73709
echo stderr:; cat "$at_stderr"
 
73710
echo stdout:; tee stdout <"$at_stdout"
 
73711
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73712
if $at_failed; then :
 
73713
  test ! -e pid || kill `cat pid`
 
73714
fi
 
73715
$at_failed && at_fn_log_failure
 
73716
$at_traceon; }
 
73717
 
 
73718
cat stdout >> output
 
73719
{ set +x
 
73720
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"constraints\",
 
73721
      {\"op\": \"delete\",
 
73722
       \"table\": \"a\",
 
73723
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
73724
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73725
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["constraints",
 
73726
      {"op": "delete",
 
73727
       "table": "a",
 
73728
       "where": [["a", "==", 0]]}]'
 
73729
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73730
at_status=$? at_failed=false
 
73731
$at_check_filter
 
73732
echo stderr:; cat "$at_stderr"
 
73733
echo stdout:; tee stdout <"$at_stdout"
 
73734
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73735
if $at_failed; then :
 
73736
  test ! -e pid || kill `cat pid`
 
73737
fi
 
73738
$at_failed && at_fn_log_failure
 
73739
$at_traceon; }
 
73740
 
 
73741
cat stdout >> output
 
73742
{ set +x
 
73743
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73744
      {\"op\": \"delete\",
 
73745
       \"table\": \"b\",
 
73746
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
73747
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73748
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73749
      {"op": "delete",
 
73750
       "table": "b",
 
73751
       "where": [["b", "==", 1]]}]'
 
73752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73753
at_status=$? at_failed=false
 
73754
$at_check_filter
 
73755
echo stderr:; cat "$at_stderr"
 
73756
echo stdout:; tee stdout <"$at_stdout"
 
73757
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73758
if $at_failed; then :
 
73759
  test ! -e pid || kill `cat pid`
 
73760
fi
 
73761
$at_failed && at_fn_log_failure
 
73762
$at_traceon; }
 
73763
 
 
73764
cat stdout >> output
 
73765
{ set +x
 
73766
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"constraints\",
 
73767
      {\"op\": \"delete\",
 
73768
       \"table\": \"a\",
 
73769
       \"where\": [[\"a\", \"==\", 0]]},
 
73770
      {\"op\": \"delete\",
 
73771
       \"table\": \"b\",
 
73772
       \"where\": [[\"b\", \"==\", 1]]}]'"
 
73773
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73774
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["constraints",
 
73775
      {"op": "delete",
 
73776
       "table": "a",
 
73777
       "where": [["a", "==", 0]]},
 
73778
      {"op": "delete",
 
73779
       "table": "b",
 
73780
       "where": [["b", "==", 1]]}]'
 
73781
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73782
at_status=$? at_failed=false
 
73783
$at_check_filter
 
73784
echo stderr:; cat "$at_stderr"
 
73785
echo stdout:; tee stdout <"$at_stdout"
 
73786
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73787
if $at_failed; then :
 
73788
  test ! -e pid || kill `cat pid`
 
73789
fi
 
73790
$at_failed && at_fn_log_failure
 
73791
$at_traceon; }
 
73792
 
 
73793
cat stdout >> output
 
73794
 
 
73795
   { set +x
 
73796
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
73797
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
73798
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
73799
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73800
at_status=$? at_failed=false
 
73801
$at_check_filter
 
73802
echo stderr:; cat "$at_stderr"
 
73803
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]
 
73804
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"details\":\"Table a column a2b row <2> references nonexistent row <3> in table b.\",\"error\":\"referential integrity violation\"}]
 
73805
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
73806
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
73807
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
73808
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
73809
[{\"count\":1},{\"count\":1}]
 
73810
" | \
 
73811
  $at_diff - "$at_stdout" || at_failed=:
 
73812
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73813
if $at_failed; then :
 
73814
  test ! -e pid || kill `cat pid`
 
73815
fi
 
73816
$at_failed && at_fn_log_failure
 
73817
$at_traceon; }
 
73818
 
 
73819
   cp pid savepid
 
73820
   { set +x
 
73821
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
73822
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
73823
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
73824
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73825
at_status=$? at_failed=false
 
73826
$at_check_filter
 
73827
echo stderr:; cat "$at_stderr"
 
73828
echo stdout:; cat "$at_stdout"
 
73829
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73830
$at_failed && at_fn_log_failure
 
73831
$at_traceon; }
 
73832
 
 
73833
   { set +x
 
73834
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
73835
     # in the normal case.  POSIX doesn't require fractional times to
 
73836
     # work, so this might not work.
 
73837
     sleep 0.1
 
73838
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
73839
     # Then wait up to 10 seconds.
 
73840
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
73841
       sleep 1
 
73842
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
73843
     done
 
73844
     exit 1"
 
73845
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
73846
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
73847
     # in the normal case.  POSIX doesn't require fractional times to
 
73848
     # work, so this might not work.
 
73849
     sleep 0.1
 
73850
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
73851
     # Then wait up to 10 seconds.
 
73852
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
73853
       sleep 1
 
73854
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
73855
     done
 
73856
     exit 1
 
73857
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73858
at_status=$? at_failed=false
 
73859
$at_check_filter
 
73860
echo stderr:; cat "$at_stderr"
 
73861
echo stdout:; cat "$at_stdout"
 
73862
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73863
if $at_failed; then :
 
73864
  kill `cat savepid`
 
73865
fi
 
73866
$at_failed && at_fn_log_failure
 
73867
$at_traceon; }
 
73868
 
 
73869
     set +x
 
73870
  $at_times_p && times >"$at_times_file"
 
73871
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
73872
read at_status <"$at_status_file"
 
73873
#AT_STOP_878
 
73874
#AT_START_879
 
73875
at_fn_group_banner 879 'ovsdb-server.at:410' \
 
73876
  "weak references" "                                " 60
 
73877
at_xfail=no
 
73878
(
 
73879
  $as_echo "879. $at_setup_line: testing $at_desc ..."
 
73880
  $at_traceon
 
73881
 
 
73882
 
 
73883
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
73884
(test "$HAVE_OPENSSL" = no) \
 
73885
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
73886
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
73887
(test "x$RANDOM" = x) \
 
73888
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
73889
   cat >schema <<'_ATEOF'
 
73890
{"name": "weak",
 
73891
     "tables": {
 
73892
       "a": {
 
73893
         "columns": {
 
73894
           "a": {"type": "integer"},
 
73895
           "a2a": {"type": {"key": {"type": "uuid",
 
73896
                                    "refTable": "a",
 
73897
                                    "refType": "weak"},
 
73898
                            "min": 0, "max": "unlimited"}},
 
73899
           "a2a1": {"type": {"key": {"type": "uuid",
 
73900
                                     "refTable": "a",
 
73901
                                     "refType": "weak"}}},
 
73902
           "a2b": {"type": {"key": {"type": "uuid",
 
73903
                                    "refTable": "b",
 
73904
                                    "refType": "weak"}}}}},
 
73905
       "b": {
 
73906
         "columns": {
 
73907
           "b": {"type": "integer"},
 
73908
           "b2a": {"type": {"key": {"type": "uuid",
 
73909
                                    "refTable": "a",
 
73910
                                    "refType": "weak"},
 
73911
                            "min": 0, "max": "unlimited"}}}}}}
 
73912
_ATEOF
 
73913
 
 
73914
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
73915
   PKIDIR=$abs_top_builddir/tests
 
73916
   { set +x
 
73917
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
73918
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
73919
( $at_check_trace; ovsdb-tool create db schema
 
73920
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73921
at_status=$? at_failed=false
 
73922
$at_check_filter
 
73923
echo stderr:; cat "$at_stderr"
 
73924
echo stdout:; tee stdout <"$at_stdout"
 
73925
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73926
$at_failed && at_fn_log_failure
 
73927
$at_traceon; }
 
73928
 
 
73929
   { set +x
 
73930
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
73931
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
73932
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
73933
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
73934
at_status=$? at_failed=false
 
73935
$at_check_filter
 
73936
echo stderr:; cat "$at_stderr"
 
73937
echo stdout:; cat "$at_stdout"
 
73938
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
73939
$at_failed && at_fn_log_failure
 
73940
$at_traceon; }
 
73941
 
 
73942
   { set +x
 
73943
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"weak\",
 
73944
      {\"op\": \"insert\",
 
73945
       \"table\": \"a\",
 
73946
       \"row\": {\"a\": 0,
 
73947
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
73948
                               [\"named-uuid\", \"row2\"],
 
73949
                               [\"uuid\", \"0e767b36-6822-4044-8307-d58467e04669\"]]],
 
73950
               \"a2a1\": [\"named-uuid\", \"row1\"],
 
73951
               \"a2b\": [\"named-uuid\", \"row3\"]},
 
73952
       \"uuid-name\": \"row1\"},
 
73953
      {\"op\": \"insert\",
 
73954
       \"table\": \"a\",
 
73955
       \"row\": {\"a\": 1,
 
73956
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
73957
                               [\"named-uuid\", \"row2\"]]],
 
73958
               \"a2a1\": [\"named-uuid\", \"row2\"],
 
73959
               \"a2b\": [\"named-uuid\", \"row3\"]},
 
73960
       \"uuid-name\": \"row2\"},
 
73961
      {\"op\": \"insert\",
 
73962
       \"table\": \"a\",
 
73963
       \"row\": {\"a\": 2,
 
73964
               \"a2a\": [\"set\", [[\"named-uuid\", \"row1\"],
 
73965
                               [\"named-uuid\", \"row2\"]]],
 
73966
               \"a2a1\": [\"named-uuid\", \"row2\"],
 
73967
               \"a2b\": [\"named-uuid\", \"row4\"]}},
 
73968
      {\"op\": \"insert\",
 
73969
       \"table\": \"b\",
 
73970
       \"row\": {\"b\": 2,
 
73971
               \"b2a\": [\"named-uuid\", \"row1\"]},
 
73972
       \"uuid-name\": \"row3\"},
 
73973
      {\"op\": \"insert\",
 
73974
       \"table\": \"b\",
 
73975
       \"row\": {\"b\": 3,
 
73976
               \"b2a\": [\"named-uuid\", \"row2\"]},
 
73977
       \"uuid-name\": \"row4\"}]'"
 
73978
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
73979
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["weak",
 
73980
      {"op": "insert",
 
73981
       "table": "a",
 
73982
       "row": {"a": 0,
 
73983
               "a2a": ["set", [["named-uuid", "row1"],
 
73984
                               ["named-uuid", "row2"],
 
73985
                               ["uuid", "0e767b36-6822-4044-8307-d58467e04669"]]],
 
73986
               "a2a1": ["named-uuid", "row1"],
 
73987
               "a2b": ["named-uuid", "row3"]},
 
73988
       "uuid-name": "row1"},
 
73989
      {"op": "insert",
 
73990
       "table": "a",
 
73991
       "row": {"a": 1,
 
73992
               "a2a": ["set", [["named-uuid", "row1"],
 
73993
                               ["named-uuid", "row2"]]],
 
73994
               "a2a1": ["named-uuid", "row2"],
 
73995
               "a2b": ["named-uuid", "row3"]},
 
73996
       "uuid-name": "row2"},
 
73997
      {"op": "insert",
 
73998
       "table": "a",
 
73999
       "row": {"a": 2,
 
74000
               "a2a": ["set", [["named-uuid", "row1"],
 
74001
                               ["named-uuid", "row2"]]],
 
74002
               "a2a1": ["named-uuid", "row2"],
 
74003
               "a2b": ["named-uuid", "row4"]}},
 
74004
      {"op": "insert",
 
74005
       "table": "b",
 
74006
       "row": {"b": 2,
 
74007
               "b2a": ["named-uuid", "row1"]},
 
74008
       "uuid-name": "row3"},
 
74009
      {"op": "insert",
 
74010
       "table": "b",
 
74011
       "row": {"b": 3,
 
74012
               "b2a": ["named-uuid", "row2"]},
 
74013
       "uuid-name": "row4"}]'
 
74014
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74015
at_status=$? at_failed=false
 
74016
$at_check_filter
 
74017
echo stderr:; cat "$at_stderr"
 
74018
echo stdout:; tee stdout <"$at_stdout"
 
74019
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74020
if $at_failed; then :
 
74021
  test ! -e pid || kill `cat pid`
 
74022
fi
 
74023
$at_failed && at_fn_log_failure
 
74024
$at_traceon; }
 
74025
 
 
74026
cat stdout >> output
 
74027
{ set +x
 
74028
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '      [\"weak\",
 
74029
      {\"op\": \"select\",
 
74030
       \"table\": \"a\",
 
74031
       \"where\": [],
 
74032
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
74033
       \"sort\": [\"a\"]}]'"
 
74034
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74035
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '      ["weak",
 
74036
      {"op": "select",
 
74037
       "table": "a",
 
74038
       "where": [],
 
74039
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
74040
       "sort": ["a"]}]'
 
74041
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74042
at_status=$? at_failed=false
 
74043
$at_check_filter
 
74044
echo stderr:; cat "$at_stderr"
 
74045
echo stdout:; tee stdout <"$at_stdout"
 
74046
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74047
if $at_failed; then :
 
74048
  test ! -e pid || kill `cat pid`
 
74049
fi
 
74050
$at_failed && at_fn_log_failure
 
74051
$at_traceon; }
 
74052
 
 
74053
cat stdout >> output
 
74054
{ set +x
 
74055
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"weak\",
 
74056
      {\"op\": \"select\",
 
74057
       \"table\": \"b\",
 
74058
       \"where\": [],
 
74059
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
74060
       \"sort\": [\"b\"]}]'"
 
74061
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74062
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["weak",
 
74063
      {"op": "select",
 
74064
       "table": "b",
 
74065
       "where": [],
 
74066
       "columns": ["_uuid", "b", "b2a"],
 
74067
       "sort": ["b"]}]'
 
74068
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74069
at_status=$? at_failed=false
 
74070
$at_check_filter
 
74071
echo stderr:; cat "$at_stderr"
 
74072
echo stdout:; tee stdout <"$at_stdout"
 
74073
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74074
if $at_failed; then :
 
74075
  test ! -e pid || kill `cat pid`
 
74076
fi
 
74077
$at_failed && at_fn_log_failure
 
74078
$at_traceon; }
 
74079
 
 
74080
cat stdout >> output
 
74081
{ set +x
 
74082
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '      [\"weak\",
 
74083
      {\"op\": \"insert\",
 
74084
       \"table\": \"a\",
 
74085
       \"row\": {\"a2a1\": [\"named-uuid\", \"me\"]},
 
74086
       \"uuid-name\": \"me\"}]'"
 
74087
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74088
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '      ["weak",
 
74089
      {"op": "insert",
 
74090
       "table": "a",
 
74091
       "row": {"a2a1": ["named-uuid", "me"]},
 
74092
       "uuid-name": "me"}]'
 
74093
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74094
at_status=$? at_failed=false
 
74095
$at_check_filter
 
74096
echo stderr:; cat "$at_stderr"
 
74097
echo stdout:; tee stdout <"$at_stdout"
 
74098
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74099
if $at_failed; then :
 
74100
  test ! -e pid || kill `cat pid`
 
74101
fi
 
74102
$at_failed && at_fn_log_failure
 
74103
$at_traceon; }
 
74104
 
 
74105
cat stdout >> output
 
74106
{ set +x
 
74107
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '      [\"weak\",
 
74108
      {\"op\": \"delete\",
 
74109
       \"table\": \"b\",
 
74110
       \"where\": [[\"b\", \"==\", 3]]}]'"
 
74111
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74112
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '      ["weak",
 
74113
      {"op": "delete",
 
74114
       "table": "b",
 
74115
       "where": [["b", "==", 3]]}]'
 
74116
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74117
at_status=$? at_failed=false
 
74118
$at_check_filter
 
74119
echo stderr:; cat "$at_stderr"
 
74120
echo stdout:; tee stdout <"$at_stdout"
 
74121
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74122
if $at_failed; then :
 
74123
  test ! -e pid || kill `cat pid`
 
74124
fi
 
74125
$at_failed && at_fn_log_failure
 
74126
$at_traceon; }
 
74127
 
 
74128
cat stdout >> output
 
74129
{ set +x
 
74130
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '      [\"weak\",
 
74131
      {\"op\": \"delete\",
 
74132
       \"table\": \"a\",
 
74133
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
74134
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74135
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '      ["weak",
 
74136
      {"op": "delete",
 
74137
       "table": "a",
 
74138
       "where": [["a", "==", 1]]}]'
 
74139
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74140
at_status=$? at_failed=false
 
74141
$at_check_filter
 
74142
echo stderr:; cat "$at_stderr"
 
74143
echo stdout:; tee stdout <"$at_stdout"
 
74144
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74145
if $at_failed; then :
 
74146
  test ! -e pid || kill `cat pid`
 
74147
fi
 
74148
$at_failed && at_fn_log_failure
 
74149
$at_traceon; }
 
74150
 
 
74151
cat stdout >> output
 
74152
{ set +x
 
74153
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '      [\"weak\",
 
74154
      {\"op\": \"delete\",
 
74155
       \"table\": \"a\",
 
74156
       \"where\": [[\"a\", \"==\", 2]]}]'"
 
74157
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74158
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '      ["weak",
 
74159
      {"op": "delete",
 
74160
       "table": "a",
 
74161
       "where": [["a", "==", 2]]}]'
 
74162
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74163
at_status=$? at_failed=false
 
74164
$at_check_filter
 
74165
echo stderr:; cat "$at_stderr"
 
74166
echo stdout:; tee stdout <"$at_stdout"
 
74167
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74168
if $at_failed; then :
 
74169
  test ! -e pid || kill `cat pid`
 
74170
fi
 
74171
$at_failed && at_fn_log_failure
 
74172
$at_traceon; }
 
74173
 
 
74174
cat stdout >> output
 
74175
{ set +x
 
74176
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"weak\",
 
74177
      {\"op\": \"select\",
 
74178
       \"table\": \"a\",
 
74179
       \"where\": [],
 
74180
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
74181
       \"sort\": [\"a\"]}]'"
 
74182
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74183
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["weak",
 
74184
      {"op": "select",
 
74185
       "table": "a",
 
74186
       "where": [],
 
74187
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
74188
       "sort": ["a"]}]'
 
74189
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74190
at_status=$? at_failed=false
 
74191
$at_check_filter
 
74192
echo stderr:; cat "$at_stderr"
 
74193
echo stdout:; tee stdout <"$at_stdout"
 
74194
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74195
if $at_failed; then :
 
74196
  test ! -e pid || kill `cat pid`
 
74197
fi
 
74198
$at_failed && at_fn_log_failure
 
74199
$at_traceon; }
 
74200
 
 
74201
cat stdout >> output
 
74202
{ set +x
 
74203
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"weak\",
 
74204
      {\"op\": \"select\",
 
74205
       \"table\": \"b\",
 
74206
       \"where\": [],
 
74207
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
74208
       \"sort\": [\"b\"]}]'"
 
74209
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74210
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["weak",
 
74211
      {"op": "select",
 
74212
       "table": "b",
 
74213
       "where": [],
 
74214
       "columns": ["_uuid", "b", "b2a"],
 
74215
       "sort": ["b"]}]'
 
74216
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74217
at_status=$? at_failed=false
 
74218
$at_check_filter
 
74219
echo stderr:; cat "$at_stderr"
 
74220
echo stdout:; tee stdout <"$at_stdout"
 
74221
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74222
if $at_failed; then :
 
74223
  test ! -e pid || kill `cat pid`
 
74224
fi
 
74225
$at_failed && at_fn_log_failure
 
74226
$at_traceon; }
 
74227
 
 
74228
cat stdout >> output
 
74229
{ set +x
 
74230
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"weak\",
 
74231
      {\"op\": \"delete\",
 
74232
       \"table\": \"a\",
 
74233
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
74234
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74235
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["weak",
 
74236
      {"op": "delete",
 
74237
       "table": "a",
 
74238
       "where": [["a", "==", 0]]}]'
 
74239
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74240
at_status=$? at_failed=false
 
74241
$at_check_filter
 
74242
echo stderr:; cat "$at_stderr"
 
74243
echo stdout:; tee stdout <"$at_stdout"
 
74244
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74245
if $at_failed; then :
 
74246
  test ! -e pid || kill `cat pid`
 
74247
fi
 
74248
$at_failed && at_fn_log_failure
 
74249
$at_traceon; }
 
74250
 
 
74251
cat stdout >> output
 
74252
{ set +x
 
74253
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"weak\",
 
74254
      {\"op\": \"select\",
 
74255
       \"table\": \"a\",
 
74256
       \"where\": [],
 
74257
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
74258
       \"sort\": [\"a\"]}]'"
 
74259
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74260
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["weak",
 
74261
      {"op": "select",
 
74262
       "table": "a",
 
74263
       "where": [],
 
74264
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
74265
       "sort": ["a"]}]'
 
74266
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74267
at_status=$? at_failed=false
 
74268
$at_check_filter
 
74269
echo stderr:; cat "$at_stderr"
 
74270
echo stdout:; tee stdout <"$at_stdout"
 
74271
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74272
if $at_failed; then :
 
74273
  test ! -e pid || kill `cat pid`
 
74274
fi
 
74275
$at_failed && at_fn_log_failure
 
74276
$at_traceon; }
 
74277
 
 
74278
cat stdout >> output
 
74279
{ set +x
 
74280
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"weak\",
 
74281
      {\"op\": \"select\",
 
74282
       \"table\": \"b\",
 
74283
       \"where\": [],
 
74284
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
74285
       \"sort\": [\"b\"]}]'"
 
74286
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74287
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["weak",
 
74288
      {"op": "select",
 
74289
       "table": "b",
 
74290
       "where": [],
 
74291
       "columns": ["_uuid", "b", "b2a"],
 
74292
       "sort": ["b"]}]'
 
74293
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74294
at_status=$? at_failed=false
 
74295
$at_check_filter
 
74296
echo stderr:; cat "$at_stderr"
 
74297
echo stdout:; tee stdout <"$at_stdout"
 
74298
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74299
if $at_failed; then :
 
74300
  test ! -e pid || kill `cat pid`
 
74301
fi
 
74302
$at_failed && at_fn_log_failure
 
74303
$at_traceon; }
 
74304
 
 
74305
cat stdout >> output
 
74306
{ set +x
 
74307
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"weak\",
 
74308
      {\"op\": \"delete\",
 
74309
       \"table\": \"a\",
 
74310
       \"where\": [[\"a\", \"==\", 1]]}]'"
 
74311
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74312
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["weak",
 
74313
      {"op": "delete",
 
74314
       "table": "a",
 
74315
       "where": [["a", "==", 1]]}]'
 
74316
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74317
at_status=$? at_failed=false
 
74318
$at_check_filter
 
74319
echo stderr:; cat "$at_stderr"
 
74320
echo stdout:; tee stdout <"$at_stdout"
 
74321
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74322
if $at_failed; then :
 
74323
  test ! -e pid || kill `cat pid`
 
74324
fi
 
74325
$at_failed && at_fn_log_failure
 
74326
$at_traceon; }
 
74327
 
 
74328
cat stdout >> output
 
74329
{ set +x
 
74330
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"weak\",
 
74331
      {\"op\": \"select\",
 
74332
       \"table\": \"a\",
 
74333
       \"where\": [],
 
74334
       \"columns\": [\"_uuid\", \"a2a\", \"a2a1\", \"a2b\"],
 
74335
       \"sort\": [\"a\"]}]'"
 
74336
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74337
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["weak",
 
74338
      {"op": "select",
 
74339
       "table": "a",
 
74340
       "where": [],
 
74341
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
74342
       "sort": ["a"]}]'
 
74343
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74344
at_status=$? at_failed=false
 
74345
$at_check_filter
 
74346
echo stderr:; cat "$at_stderr"
 
74347
echo stdout:; tee stdout <"$at_stdout"
 
74348
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74349
if $at_failed; then :
 
74350
  test ! -e pid || kill `cat pid`
 
74351
fi
 
74352
$at_failed && at_fn_log_failure
 
74353
$at_traceon; }
 
74354
 
 
74355
cat stdout >> output
 
74356
{ set +x
 
74357
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"weak\",
 
74358
      {\"op\": \"select\",
 
74359
       \"table\": \"b\",
 
74360
       \"where\": [],
 
74361
       \"columns\": [\"_uuid\", \"b\", \"b2a\"],
 
74362
       \"sort\": [\"b\"]}]'"
 
74363
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74364
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["weak",
 
74365
      {"op": "select",
 
74366
       "table": "b",
 
74367
       "where": [],
 
74368
       "columns": ["_uuid", "b", "b2a"],
 
74369
       "sort": ["b"]}]'
 
74370
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74371
at_status=$? at_failed=false
 
74372
$at_check_filter
 
74373
echo stderr:; cat "$at_stderr"
 
74374
echo stdout:; tee stdout <"$at_stdout"
 
74375
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74376
if $at_failed; then :
 
74377
  test ! -e pid || kill `cat pid`
 
74378
fi
 
74379
$at_failed && at_fn_log_failure
 
74380
$at_traceon; }
 
74381
 
 
74382
cat stdout >> output
 
74383
 
 
74384
   { set +x
 
74385
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
74386
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
74387
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
74388
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74389
at_status=$? at_failed=false
 
74390
$at_check_filter
 
74391
echo stderr:; cat "$at_stderr"
 
74392
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
74393
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<2>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<4>\"]}]}]
 
74394
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
74395
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"details\":\"Weak reference column \\\"a2b\\\" in \\\"a\\\" row <5> (inserted within this transaction) contained all-zeros UUID (probably as the default value for this column) but deleting this value caused a constraint volation because this column is not allowed to be empty.\",\"error\":\"constraint violation\"}]
 
74396
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2b\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
74397
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2a1\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
74398
[{\"count\":1}]
 
74399
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
74400
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
74401
[{\"count\":1}]
 
74402
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"uuid\",\"<1>\"],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
74403
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
74404
[{\"count\":1}]
 
74405
[{\"rows\":[]}]
 
74406
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"set\",[]]}]}]
 
74407
" | \
 
74408
  $at_diff - "$at_stdout" || at_failed=:
 
74409
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74410
if $at_failed; then :
 
74411
  test ! -e pid || kill `cat pid`
 
74412
fi
 
74413
$at_failed && at_fn_log_failure
 
74414
$at_traceon; }
 
74415
 
 
74416
   cp pid savepid
 
74417
   { set +x
 
74418
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
74419
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
74420
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
74421
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74422
at_status=$? at_failed=false
 
74423
$at_check_filter
 
74424
echo stderr:; cat "$at_stderr"
 
74425
echo stdout:; cat "$at_stdout"
 
74426
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74427
$at_failed && at_fn_log_failure
 
74428
$at_traceon; }
 
74429
 
 
74430
   { set +x
 
74431
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
74432
     # in the normal case.  POSIX doesn't require fractional times to
 
74433
     # work, so this might not work.
 
74434
     sleep 0.1
 
74435
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
74436
     # Then wait up to 10 seconds.
 
74437
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
74438
       sleep 1
 
74439
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
74440
     done
 
74441
     exit 1"
 
74442
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
74443
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
74444
     # in the normal case.  POSIX doesn't require fractional times to
 
74445
     # work, so this might not work.
 
74446
     sleep 0.1
 
74447
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
74448
     # Then wait up to 10 seconds.
 
74449
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
74450
       sleep 1
 
74451
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
74452
     done
 
74453
     exit 1
 
74454
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74455
at_status=$? at_failed=false
 
74456
$at_check_filter
 
74457
echo stderr:; cat "$at_stderr"
 
74458
echo stdout:; cat "$at_stdout"
 
74459
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74460
if $at_failed; then :
 
74461
  kill `cat savepid`
 
74462
fi
 
74463
$at_failed && at_fn_log_failure
 
74464
$at_traceon; }
 
74465
 
 
74466
     set +x
 
74467
  $at_times_p && times >"$at_times_file"
 
74468
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
74469
read at_status <"$at_status_file"
 
74470
#AT_STOP_879
 
74471
#AT_START_880
 
74472
at_fn_group_banner 880 'ovsdb-server.at:410' \
 
74473
  "garbage collection" "                             " 60
 
74474
at_xfail=no
 
74475
(
 
74476
  $as_echo "880. $at_setup_line: testing $at_desc ..."
 
74477
  $at_traceon
 
74478
 
 
74479
 
 
74480
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
74481
(test "$HAVE_OPENSSL" = no) \
 
74482
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
74483
   $as_echo "ovsdb-server.at:410" >"$at_check_line_file"
 
74484
(test "x$RANDOM" = x) \
 
74485
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-server.at:410"
 
74486
   cat >schema <<'_ATEOF'
 
74487
{"name": "gc",
 
74488
     "tables": {
 
74489
       "root": {
 
74490
         "columns": {
 
74491
           "a": {"type": {"key": {"type": "uuid",
 
74492
                                  "refTable": "a"},
 
74493
                            "min": 0, "max": "unlimited"}}},
 
74494
         "isRoot": true},
 
74495
       "a": {
 
74496
         "columns": {
 
74497
           "a": {"type": "integer"},
 
74498
           "a2a": {"type": {"key": {"type": "uuid",
 
74499
                                    "refTable": "a"},
 
74500
                            "min": 0, "max": "unlimited"}},
 
74501
           "a2b": {"type": {"key": {"type": "uuid",
 
74502
                                    "refTable": "b"},
 
74503
                            "min": 0, "max": "unlimited"}},
 
74504
           "wa2a": {"type": {"key": {"type": "uuid",
 
74505
                                     "refTable": "a",
 
74506
                                     "refType": "weak"},
 
74507
                             "min": 0, "max": "unlimited"}},
 
74508
           "wa2b": {"type": {"key": {"type": "uuid",
 
74509
                                    "refTable": "b",
 
74510
                                    "refType": "weak"},
 
74511
                             "min": 0, "max": "unlimited"}}}},
 
74512
       "b": {
 
74513
         "columns": {
 
74514
           "b": {"type": "integer"},
 
74515
           "b2a": {"type": {"key": {"type": "uuid",
 
74516
                                    "refTable": "a"},
 
74517
                            "min": 0, "max": "unlimited"}},
 
74518
           "wb2a": {"type": {"key": {"type": "uuid",
 
74519
                                     "refTable": "a",
 
74520
                                     "refType": "weak"},
 
74521
                             "min": 0, "max": "unlimited"}}},
 
74522
         "isRoot": false}}}
 
74523
_ATEOF
 
74524
 
 
74525
   SSL_PORT=`expr 32767 + \( $RANDOM % 32767 \)`
 
74526
   PKIDIR=$abs_top_builddir/tests
 
74527
   { set +x
 
74528
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-tool create db schema"
 
74529
at_fn_check_prepare_trace "ovsdb-server.at:410"
 
74530
( $at_check_trace; ovsdb-tool create db schema
 
74531
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74532
at_status=$? at_failed=false
 
74533
$at_check_filter
 
74534
echo stderr:; cat "$at_stderr"
 
74535
echo stdout:; tee stdout <"$at_stdout"
 
74536
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74537
$at_failed && at_fn_log_failure
 
74538
$at_traceon; }
 
74539
 
 
74540
   { set +x
 
74541
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-server --detach --pidfile=\$PWD/pid --private-key=\$PKIDIR/testpki-privkey2.pem --certificate=\$PKIDIR/testpki-cert2.pem --ca-cert=\$PKIDIR/testpki-cacert.pem --remote=pssl:\$SSL_PORT:127.0.0.1 --unixctl=\$PWD/unixctl db"
 
74542
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db" "ovsdb-server.at:410"
 
74543
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --private-key=$PKIDIR/testpki-privkey2.pem --certificate=$PKIDIR/testpki-cert2.pem --ca-cert=$PKIDIR/testpki-cacert.pem --remote=pssl:$SSL_PORT:127.0.0.1 --unixctl=$PWD/unixctl db
 
74544
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74545
at_status=$? at_failed=false
 
74546
$at_check_filter
 
74547
echo stderr:; cat "$at_stderr"
 
74548
echo stdout:; cat "$at_stdout"
 
74549
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74550
$at_failed && at_fn_log_failure
 
74551
$at_traceon; }
 
74552
 
 
74553
   { set +x
 
74554
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"gc\",
 
74555
      {\"op\": \"insert\",
 
74556
       \"table\": \"a\",
 
74557
       \"row\": {\"a\": 0}}]'"
 
74558
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74559
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["gc",
 
74560
      {"op": "insert",
 
74561
       "table": "a",
 
74562
       "row": {"a": 0}}]'
 
74563
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74564
at_status=$? at_failed=false
 
74565
$at_check_filter
 
74566
echo stderr:; cat "$at_stderr"
 
74567
echo stdout:; tee stdout <"$at_stdout"
 
74568
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74569
if $at_failed; then :
 
74570
  test ! -e pid || kill `cat pid`
 
74571
fi
 
74572
$at_failed && at_fn_log_failure
 
74573
$at_traceon; }
 
74574
 
 
74575
cat stdout >> output
 
74576
{ set +x
 
74577
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"gc\",
 
74578
      {\"op\": \"select\",
 
74579
       \"table\": \"a\",
 
74580
       \"where\": [],
 
74581
       \"columns\": [\"a\"]}]'"
 
74582
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74583
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["gc",
 
74584
      {"op": "select",
 
74585
       "table": "a",
 
74586
       "where": [],
 
74587
       "columns": ["a"]}]'
 
74588
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74589
at_status=$? at_failed=false
 
74590
$at_check_filter
 
74591
echo stderr:; cat "$at_stderr"
 
74592
echo stdout:; tee stdout <"$at_stdout"
 
74593
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74594
if $at_failed; then :
 
74595
  test ! -e pid || kill `cat pid`
 
74596
fi
 
74597
$at_failed && at_fn_log_failure
 
74598
$at_traceon; }
 
74599
 
 
74600
cat stdout >> output
 
74601
{ set +x
 
74602
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '      [\"gc\",
 
74603
      {\"op\": \"insert\",
 
74604
       \"table\": \"a\",
 
74605
       \"row\": {\"a\": 0, \"a2a\": [\"named-uuid\", \"row1\"]},
 
74606
       \"uuid-name\": \"row0\"},
 
74607
      {\"op\": \"insert\",
 
74608
       \"table\": \"a\",
 
74609
       \"row\": {\"a\": 1, \"a2a\": [\"named-uuid\", \"row2\"]},
 
74610
       \"uuid-name\": \"row1\"},
 
74611
      {\"op\": \"insert\",
 
74612
       \"table\": \"a\",
 
74613
       \"row\": {\"a\": 2, \"a2a\": [\"named-uuid\", \"row3\"]},
 
74614
       \"uuid-name\": \"row2\"},
 
74615
      {\"op\": \"insert\",
 
74616
       \"table\": \"a\",
 
74617
       \"row\": {\"a\": 3},
 
74618
       \"uuid-name\": \"row3\"}]'"
 
74619
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74620
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '      ["gc",
 
74621
      {"op": "insert",
 
74622
       "table": "a",
 
74623
       "row": {"a": 0, "a2a": ["named-uuid", "row1"]},
 
74624
       "uuid-name": "row0"},
 
74625
      {"op": "insert",
 
74626
       "table": "a",
 
74627
       "row": {"a": 1, "a2a": ["named-uuid", "row2"]},
 
74628
       "uuid-name": "row1"},
 
74629
      {"op": "insert",
 
74630
       "table": "a",
 
74631
       "row": {"a": 2, "a2a": ["named-uuid", "row3"]},
 
74632
       "uuid-name": "row2"},
 
74633
      {"op": "insert",
 
74634
       "table": "a",
 
74635
       "row": {"a": 3},
 
74636
       "uuid-name": "row3"}]'
 
74637
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74638
at_status=$? at_failed=false
 
74639
$at_check_filter
 
74640
echo stderr:; cat "$at_stderr"
 
74641
echo stdout:; tee stdout <"$at_stdout"
 
74642
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74643
if $at_failed; then :
 
74644
  test ! -e pid || kill `cat pid`
 
74645
fi
 
74646
$at_failed && at_fn_log_failure
 
74647
$at_traceon; }
 
74648
 
 
74649
cat stdout >> output
 
74650
{ set +x
 
74651
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"gc\",
 
74652
      {\"op\": \"select\",
 
74653
       \"table\": \"a\",
 
74654
       \"where\": [],
 
74655
       \"columns\": [\"a\"]}]'"
 
74656
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74657
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["gc",
 
74658
      {"op": "select",
 
74659
       "table": "a",
 
74660
       "where": [],
 
74661
       "columns": ["a"]}]'
 
74662
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74663
at_status=$? at_failed=false
 
74664
$at_check_filter
 
74665
echo stderr:; cat "$at_stderr"
 
74666
echo stdout:; tee stdout <"$at_stdout"
 
74667
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74668
if $at_failed; then :
 
74669
  test ! -e pid || kill `cat pid`
 
74670
fi
 
74671
$at_failed && at_fn_log_failure
 
74672
$at_traceon; }
 
74673
 
 
74674
cat stdout >> output
 
74675
{ set +x
 
74676
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '      [\"gc\",
 
74677
      {\"op\": \"insert\",
 
74678
       \"table\": \"a\",
 
74679
       \"row\": {\"a\": 4, \"a2a\": [\"named-uuid\", \"row5\"]},
 
74680
       \"uuid-name\": \"row4\"},
 
74681
      {\"op\": \"insert\",
 
74682
       \"table\": \"a\",
 
74683
       \"row\": {\"a\": 5, \"a2a\": [\"named-uuid\", \"row4\"]},
 
74684
       \"uuid-name\": \"row5\"}]'"
 
74685
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74686
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '      ["gc",
 
74687
      {"op": "insert",
 
74688
       "table": "a",
 
74689
       "row": {"a": 4, "a2a": ["named-uuid", "row5"]},
 
74690
       "uuid-name": "row4"},
 
74691
      {"op": "insert",
 
74692
       "table": "a",
 
74693
       "row": {"a": 5, "a2a": ["named-uuid", "row4"]},
 
74694
       "uuid-name": "row5"}]'
 
74695
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74696
at_status=$? at_failed=false
 
74697
$at_check_filter
 
74698
echo stderr:; cat "$at_stderr"
 
74699
echo stdout:; tee stdout <"$at_stdout"
 
74700
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74701
if $at_failed; then :
 
74702
  test ! -e pid || kill `cat pid`
 
74703
fi
 
74704
$at_failed && at_fn_log_failure
 
74705
$at_traceon; }
 
74706
 
 
74707
cat stdout >> output
 
74708
{ set +x
 
74709
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"gc\",
 
74710
      {\"op\": \"select\",
 
74711
       \"table\": \"a\",
 
74712
       \"where\": [],
 
74713
       \"columns\": [\"a\"],
 
74714
       \"sort\": [\"a\"]}]'"
 
74715
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74716
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["gc",
 
74717
      {"op": "select",
 
74718
       "table": "a",
 
74719
       "where": [],
 
74720
       "columns": ["a"],
 
74721
       "sort": ["a"]}]'
 
74722
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74723
at_status=$? at_failed=false
 
74724
$at_check_filter
 
74725
echo stderr:; cat "$at_stderr"
 
74726
echo stdout:; tee stdout <"$at_stdout"
 
74727
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74728
if $at_failed; then :
 
74729
  test ! -e pid || kill `cat pid`
 
74730
fi
 
74731
$at_failed && at_fn_log_failure
 
74732
$at_traceon; }
 
74733
 
 
74734
cat stdout >> output
 
74735
{ set +x
 
74736
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"gc\",
 
74737
      {\"op\": \"update\",
 
74738
       \"table\": \"a\",
 
74739
       \"where\": [[\"a\", \"==\", 4]],
 
74740
       \"row\": {\"a2a\": [\"set\", []]}}]'"
 
74741
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74742
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["gc",
 
74743
      {"op": "update",
 
74744
       "table": "a",
 
74745
       "where": [["a", "==", 4]],
 
74746
       "row": {"a2a": ["set", []]}}]'
 
74747
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74748
at_status=$? at_failed=false
 
74749
$at_check_filter
 
74750
echo stderr:; cat "$at_stderr"
 
74751
echo stdout:; tee stdout <"$at_stdout"
 
74752
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74753
if $at_failed; then :
 
74754
  test ! -e pid || kill `cat pid`
 
74755
fi
 
74756
$at_failed && at_fn_log_failure
 
74757
$at_traceon; }
 
74758
 
 
74759
cat stdout >> output
 
74760
{ set +x
 
74761
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"gc\",
 
74762
      {\"op\": \"select\",
 
74763
       \"table\": \"a\",
 
74764
       \"where\": [],
 
74765
       \"columns\": [\"a\"]}]'"
 
74766
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74767
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["gc",
 
74768
      {"op": "select",
 
74769
       "table": "a",
 
74770
       "where": [],
 
74771
       "columns": ["a"]}]'
 
74772
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74773
at_status=$? at_failed=false
 
74774
$at_check_filter
 
74775
echo stderr:; cat "$at_stderr"
 
74776
echo stdout:; tee stdout <"$at_stdout"
 
74777
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74778
if $at_failed; then :
 
74779
  test ! -e pid || kill `cat pid`
 
74780
fi
 
74781
$at_failed && at_fn_log_failure
 
74782
$at_traceon; }
 
74783
 
 
74784
cat stdout >> output
 
74785
{ set +x
 
74786
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '      [\"gc\",
 
74787
      {\"op\": \"insert\",
 
74788
       \"table\": \"a\",
 
74789
       \"row\": {\"a\": 6, \"wa2a\": [\"named-uuid\", \"row7\"]},
 
74790
       \"uuid-name\": \"row6\"},
 
74791
      {\"op\": \"insert\",
 
74792
       \"table\": \"a\",
 
74793
       \"row\": {\"a\": 7, \"wa2a\": [\"named-uuid\", \"row6\"]},
 
74794
       \"uuid-name\": \"row7\"}]'"
 
74795
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74796
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '      ["gc",
 
74797
      {"op": "insert",
 
74798
       "table": "a",
 
74799
       "row": {"a": 6, "wa2a": ["named-uuid", "row7"]},
 
74800
       "uuid-name": "row6"},
 
74801
      {"op": "insert",
 
74802
       "table": "a",
 
74803
       "row": {"a": 7, "wa2a": ["named-uuid", "row6"]},
 
74804
       "uuid-name": "row7"}]'
 
74805
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74806
at_status=$? at_failed=false
 
74807
$at_check_filter
 
74808
echo stderr:; cat "$at_stderr"
 
74809
echo stdout:; tee stdout <"$at_stdout"
 
74810
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74811
if $at_failed; then :
 
74812
  test ! -e pid || kill `cat pid`
 
74813
fi
 
74814
$at_failed && at_fn_log_failure
 
74815
$at_traceon; }
 
74816
 
 
74817
cat stdout >> output
 
74818
{ set +x
 
74819
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"gc\",
 
74820
      {\"op\": \"select\",
 
74821
       \"table\": \"a\",
 
74822
       \"where\": [],
 
74823
       \"columns\": [\"a\"]}]'"
 
74824
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74825
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["gc",
 
74826
      {"op": "select",
 
74827
       "table": "a",
 
74828
       "where": [],
 
74829
       "columns": ["a"]}]'
 
74830
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74831
at_status=$? at_failed=false
 
74832
$at_check_filter
 
74833
echo stderr:; cat "$at_stderr"
 
74834
echo stdout:; tee stdout <"$at_stdout"
 
74835
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74836
if $at_failed; then :
 
74837
  test ! -e pid || kill `cat pid`
 
74838
fi
 
74839
$at_failed && at_fn_log_failure
 
74840
$at_traceon; }
 
74841
 
 
74842
cat stdout >> output
 
74843
{ set +x
 
74844
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"gc\",
 
74845
      {\"op\": \"insert\",
 
74846
       \"table\": \"a\",
 
74847
       \"row\": {\"a\": 8, \"a2a\": [\"named-uuid\", \"row9\"]},
 
74848
       \"uuid-name\": \"row8\"},
 
74849
      {\"op\": \"insert\",
 
74850
       \"table\": \"a\",
 
74851
       \"row\": {\"a\": 9, \"a2a\": [\"named-uuid\", \"row10\"]},
 
74852
       \"uuid-name\": \"row9\"},
 
74853
      {\"op\": \"insert\",
 
74854
       \"table\": \"a\",
 
74855
       \"row\": {\"a\": 10, \"a2a\": [\"named-uuid\", \"row11\"]},
 
74856
       \"uuid-name\": \"row10\"},
 
74857
      {\"op\": \"insert\",
 
74858
       \"table\": \"a\",
 
74859
       \"row\": {\"a\": 11, \"a2a\": [\"named-uuid\", \"row8\"]},
 
74860
       \"uuid-name\": \"row11\"}]'"
 
74861
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74862
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["gc",
 
74863
      {"op": "insert",
 
74864
       "table": "a",
 
74865
       "row": {"a": 8, "a2a": ["named-uuid", "row9"]},
 
74866
       "uuid-name": "row8"},
 
74867
      {"op": "insert",
 
74868
       "table": "a",
 
74869
       "row": {"a": 9, "a2a": ["named-uuid", "row10"]},
 
74870
       "uuid-name": "row9"},
 
74871
      {"op": "insert",
 
74872
       "table": "a",
 
74873
       "row": {"a": 10, "a2a": ["named-uuid", "row11"]},
 
74874
       "uuid-name": "row10"},
 
74875
      {"op": "insert",
 
74876
       "table": "a",
 
74877
       "row": {"a": 11, "a2a": ["named-uuid", "row8"]},
 
74878
       "uuid-name": "row11"}]'
 
74879
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74880
at_status=$? at_failed=false
 
74881
$at_check_filter
 
74882
echo stderr:; cat "$at_stderr"
 
74883
echo stdout:; tee stdout <"$at_stdout"
 
74884
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74885
if $at_failed; then :
 
74886
  test ! -e pid || kill `cat pid`
 
74887
fi
 
74888
$at_failed && at_fn_log_failure
 
74889
$at_traceon; }
 
74890
 
 
74891
cat stdout >> output
 
74892
{ set +x
 
74893
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"gc\",
 
74894
      {\"op\": \"select\",
 
74895
       \"table\": \"a\",
 
74896
       \"where\": [],
 
74897
       \"columns\": [\"a\"],
 
74898
       \"sort\": [\"a\"]}]'"
 
74899
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74900
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["gc",
 
74901
      {"op": "select",
 
74902
       "table": "a",
 
74903
       "where": [],
 
74904
       "columns": ["a"],
 
74905
       "sort": ["a"]}]'
 
74906
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74907
at_status=$? at_failed=false
 
74908
$at_check_filter
 
74909
echo stderr:; cat "$at_stderr"
 
74910
echo stdout:; tee stdout <"$at_stdout"
 
74911
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74912
if $at_failed; then :
 
74913
  test ! -e pid || kill `cat pid`
 
74914
fi
 
74915
$at_failed && at_fn_log_failure
 
74916
$at_traceon; }
 
74917
 
 
74918
cat stdout >> output
 
74919
{ set +x
 
74920
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"gc\",
 
74921
      {\"op\": \"update\",
 
74922
       \"table\": \"a\",
 
74923
       \"where\": [[\"a\", \"==\", 9]],
 
74924
       \"row\": {\"a2a\": [\"set\", []]}}]'"
 
74925
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74926
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["gc",
 
74927
      {"op": "update",
 
74928
       "table": "a",
 
74929
       "where": [["a", "==", 9]],
 
74930
       "row": {"a2a": ["set", []]}}]'
 
74931
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74932
at_status=$? at_failed=false
 
74933
$at_check_filter
 
74934
echo stderr:; cat "$at_stderr"
 
74935
echo stdout:; tee stdout <"$at_stdout"
 
74936
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74937
if $at_failed; then :
 
74938
  test ! -e pid || kill `cat pid`
 
74939
fi
 
74940
$at_failed && at_fn_log_failure
 
74941
$at_traceon; }
 
74942
 
 
74943
cat stdout >> output
 
74944
{ set +x
 
74945
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"gc\",
 
74946
      {\"op\": \"select\",
 
74947
       \"table\": \"a\",
 
74948
       \"where\": [],
 
74949
       \"columns\": [\"a\"]}]'"
 
74950
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74951
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["gc",
 
74952
      {"op": "select",
 
74953
       "table": "a",
 
74954
       "where": [],
 
74955
       "columns": ["a"]}]'
 
74956
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74957
at_status=$? at_failed=false
 
74958
$at_check_filter
 
74959
echo stderr:; cat "$at_stderr"
 
74960
echo stdout:; tee stdout <"$at_stdout"
 
74961
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74962
if $at_failed; then :
 
74963
  test ! -e pid || kill `cat pid`
 
74964
fi
 
74965
$at_failed && at_fn_log_failure
 
74966
$at_traceon; }
 
74967
 
 
74968
cat stdout >> output
 
74969
{ set +x
 
74970
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '   [\"gc\",
 
74971
      {\"op\": \"insert\",
 
74972
       \"table\": \"a\",
 
74973
       \"row\": {\"a\": 12, \"a2a\": [\"named-uuid\", \"self\"]},
 
74974
       \"uuid-name\": \"self\"}]'"
 
74975
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
74976
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '   ["gc",
 
74977
      {"op": "insert",
 
74978
       "table": "a",
 
74979
       "row": {"a": 12, "a2a": ["named-uuid", "self"]},
 
74980
       "uuid-name": "self"}]'
 
74981
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
74982
at_status=$? at_failed=false
 
74983
$at_check_filter
 
74984
echo stderr:; cat "$at_stderr"
 
74985
echo stdout:; tee stdout <"$at_stdout"
 
74986
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
74987
if $at_failed; then :
 
74988
  test ! -e pid || kill `cat pid`
 
74989
fi
 
74990
$at_failed && at_fn_log_failure
 
74991
$at_traceon; }
 
74992
 
 
74993
cat stdout >> output
 
74994
{ set +x
 
74995
$as_echo "$at_srcdir/ovsdb-server.at:410: ovsdb-client --private-key=\$PKIDIR/testpki-privkey.pem --certificate=\$PKIDIR/testpki-cert.pem --ca-cert=\$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:\$SSL_PORT '[\"gc\",
 
74996
      {\"op\": \"select\",
 
74997
       \"table\": \"a\",
 
74998
       \"where\": [],
 
74999
       \"columns\": [\"a\"]}]'"
 
75000
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-server.at:410"
 
75001
( $at_check_trace; ovsdb-client --private-key=$PKIDIR/testpki-privkey.pem --certificate=$PKIDIR/testpki-cert.pem --ca-cert=$PKIDIR/testpki-cacert.pem transact ssl:127.0.0.1:$SSL_PORT '["gc",
 
75002
      {"op": "select",
 
75003
       "table": "a",
 
75004
       "where": [],
 
75005
       "columns": ["a"]}]'
 
75006
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75007
at_status=$? at_failed=false
 
75008
$at_check_filter
 
75009
echo stderr:; cat "$at_stderr"
 
75010
echo stdout:; tee stdout <"$at_stdout"
 
75011
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
75012
if $at_failed; then :
 
75013
  test ! -e pid || kill `cat pid`
 
75014
fi
 
75015
$at_failed && at_fn_log_failure
 
75016
$at_traceon; }
 
75017
 
 
75018
cat stdout >> output
 
75019
 
 
75020
   { set +x
 
75021
$as_echo "$at_srcdir/ovsdb-server.at:410: perl \$srcdir/uuidfilt.pl output"
 
75022
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:410"
 
75023
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
75024
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75025
at_status=$? at_failed=false
 
75026
$at_check_filter
 
75027
echo stderr:; cat "$at_stderr"
 
75028
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
75029
[{\"rows\":[]}]
 
75030
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
75031
[{\"rows\":[]}]
 
75032
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"uuid\":[\"uuid\",\"<6>\"]}]
 
75033
[{\"rows\":[{\"a\":4},{\"a\":5}]}]
 
75034
[{\"count\":1}]
 
75035
[{\"rows\":[]}]
 
75036
[{\"uuid\":[\"uuid\",\"<7>\"]},{\"uuid\":[\"uuid\",\"<8>\"]}]
 
75037
[{\"rows\":[]}]
 
75038
[{\"uuid\":[\"uuid\",\"<9>\"]},{\"uuid\":[\"uuid\",\"<10>\"]},{\"uuid\":[\"uuid\",\"<11>\"]},{\"uuid\":[\"uuid\",\"<12>\"]}]
 
75039
[{\"rows\":[{\"a\":8},{\"a\":9},{\"a\":10},{\"a\":11}]}]
 
75040
[{\"count\":1}]
 
75041
[{\"rows\":[]}]
 
75042
[{\"uuid\":[\"uuid\",\"<13>\"]}]
 
75043
[{\"rows\":[]}]
 
75044
" | \
 
75045
  $at_diff - "$at_stdout" || at_failed=:
 
75046
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
75047
if $at_failed; then :
 
75048
  test ! -e pid || kill `cat pid`
 
75049
fi
 
75050
$at_failed && at_fn_log_failure
 
75051
$at_traceon; }
 
75052
 
 
75053
   cp pid savepid
 
75054
   { set +x
 
75055
$as_echo "$at_srcdir/ovsdb-server.at:410: ovs-appctl -t \$PWD/unixctl -e exit"
 
75056
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-server.at:410"
 
75057
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
75058
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75059
at_status=$? at_failed=false
 
75060
$at_check_filter
 
75061
echo stderr:; cat "$at_stderr"
 
75062
echo stdout:; cat "$at_stdout"
 
75063
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
75064
$at_failed && at_fn_log_failure
 
75065
$at_traceon; }
 
75066
 
 
75067
   { set +x
 
75068
$as_echo "$at_srcdir/ovsdb-server.at:410: # First try a quick sleep, so that the test completes very quickly
 
75069
     # in the normal case.  POSIX doesn't require fractional times to
 
75070
     # work, so this might not work.
 
75071
     sleep 0.1
 
75072
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
75073
     # Then wait up to 10 seconds.
 
75074
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
75075
       sleep 1
 
75076
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
75077
     done
 
75078
     exit 1"
 
75079
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-server.at:410"
 
75080
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
75081
     # in the normal case.  POSIX doesn't require fractional times to
 
75082
     # work, so this might not work.
 
75083
     sleep 0.1
 
75084
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
75085
     # Then wait up to 10 seconds.
 
75086
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
75087
       sleep 1
 
75088
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
75089
     done
 
75090
     exit 1
 
75091
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75092
at_status=$? at_failed=false
 
75093
$at_check_filter
 
75094
echo stderr:; cat "$at_stderr"
 
75095
echo stdout:; cat "$at_stdout"
 
75096
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:410"
 
75097
if $at_failed; then :
 
75098
  kill `cat savepid`
 
75099
fi
 
75100
$at_failed && at_fn_log_failure
 
75101
$at_traceon; }
 
75102
 
 
75103
     set +x
 
75104
  $at_times_p && times >"$at_times_file"
 
75105
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
75106
read at_status <"$at_status_file"
 
75107
#AT_STOP_880
 
75108
#AT_START_881
 
75109
at_fn_group_banner 881 'ovsdb-server.at:446' \
 
75110
  "insert default row, query table" "                " 61
 
75111
at_xfail=no
 
75112
(
 
75113
  $as_echo "881. $at_setup_line: testing $at_desc ..."
 
75114
  $at_traceon
 
75115
 
 
75116
 
 
75117
   cat >schema <<'_ATEOF'
 
75118
{"name": "ordinals",
 
75119
     "tables": {
 
75120
       "ordinals": {
 
75121
         "columns": {
 
75122
           "number": {"type": "integer"},
 
75123
           "name": {"type": "string"}},
 
75124
         "indexes": [["number"]]}},
 
75125
     "version": "5.1.3",
 
75126
     "cksum": "12345678 9"}
 
75127
_ATEOF
 
75128
 
 
75129
   { set +x
 
75130
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
75131
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
75132
( $at_check_trace; ovsdb-tool create db schema
 
75133
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75134
at_status=$? at_failed=false
 
75135
$at_check_filter
 
75136
echo stderr:; cat "$at_stderr"
 
75137
echo stdout:; tee stdout <"$at_stdout"
 
75138
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75139
$at_failed && at_fn_log_failure
 
75140
$at_traceon; }
 
75141
 
 
75142
   cat >txnfile <<'_ATEOF'
 
75143
ovsdb-client transact unix:socket '["ordinals",
 
75144
      {"op": "insert",
 
75145
       "table": "ordinals",
 
75146
       "row": {}}]'
 
75147
_ATEOF
 
75148
 
 
75149
      { set +x
 
75150
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75151
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75152
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75153
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75154
at_status=$? at_failed=false
 
75155
$at_check_filter
 
75156
echo stderr:; cat "$at_stderr"
 
75157
echo stdout:; tee stdout <"$at_stdout"
 
75158
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75159
$at_failed && at_fn_log_failure
 
75160
$at_traceon; }
 
75161
 
 
75162
      cat stdout >> output
 
75163
cat >txnfile <<'_ATEOF'
 
75164
ovsdb-client transact unix:socket '["ordinals",
 
75165
      {"op": "select",
 
75166
       "table": "ordinals",
 
75167
       "where": []}]'
 
75168
_ATEOF
 
75169
 
 
75170
      { set +x
 
75171
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75172
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75173
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75174
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75175
at_status=$? at_failed=false
 
75176
$at_check_filter
 
75177
echo stderr:; cat "$at_stderr"
 
75178
echo stdout:; tee stdout <"$at_stdout"
 
75179
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75180
$at_failed && at_fn_log_failure
 
75181
$at_traceon; }
 
75182
 
 
75183
      cat stdout >> output
 
75184
 
 
75185
   { set +x
 
75186
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
75187
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
75188
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
75189
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75190
at_status=$? at_failed=false
 
75191
$at_check_filter
 
75192
echo stderr:; cat "$at_stderr"
 
75193
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
75194
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"\",\"number\":0}]}]
 
75195
" | \
 
75196
  $at_diff - "$at_stdout" || at_failed=:
 
75197
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75198
$at_failed && at_fn_log_failure
 
75199
$at_traceon; }
 
75200
 
 
75201
     set +x
 
75202
  $at_times_p && times >"$at_times_file"
 
75203
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
75204
read at_status <"$at_status_file"
 
75205
#AT_STOP_881
 
75206
#AT_START_882
 
75207
at_fn_group_banner 882 'ovsdb-server.at:446' \
 
75208
  "insert row, query table" "                        " 61
 
75209
at_xfail=no
 
75210
(
 
75211
  $as_echo "882. $at_setup_line: testing $at_desc ..."
 
75212
  $at_traceon
 
75213
 
 
75214
 
 
75215
   cat >schema <<'_ATEOF'
 
75216
{"name": "ordinals",
 
75217
     "tables": {
 
75218
       "ordinals": {
 
75219
         "columns": {
 
75220
           "number": {"type": "integer"},
 
75221
           "name": {"type": "string"}},
 
75222
         "indexes": [["number"]]}},
 
75223
     "version": "5.1.3",
 
75224
     "cksum": "12345678 9"}
 
75225
_ATEOF
 
75226
 
 
75227
   { set +x
 
75228
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
75229
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
75230
( $at_check_trace; ovsdb-tool create db schema
 
75231
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75232
at_status=$? at_failed=false
 
75233
$at_check_filter
 
75234
echo stderr:; cat "$at_stderr"
 
75235
echo stdout:; tee stdout <"$at_stdout"
 
75236
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75237
$at_failed && at_fn_log_failure
 
75238
$at_traceon; }
 
75239
 
 
75240
   cat >txnfile <<'_ATEOF'
 
75241
ovsdb-client transact unix:socket '["ordinals",
 
75242
      {"op": "insert",
 
75243
       "table": "ordinals",
 
75244
       "row": {"number": 0, "name": "zero"}}]'
 
75245
_ATEOF
 
75246
 
 
75247
      { set +x
 
75248
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75249
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75250
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75251
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75252
at_status=$? at_failed=false
 
75253
$at_check_filter
 
75254
echo stderr:; cat "$at_stderr"
 
75255
echo stdout:; tee stdout <"$at_stdout"
 
75256
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75257
$at_failed && at_fn_log_failure
 
75258
$at_traceon; }
 
75259
 
 
75260
      cat stdout >> output
 
75261
cat >txnfile <<'_ATEOF'
 
75262
ovsdb-client transact unix:socket '["ordinals",
 
75263
      {"op": "select",
 
75264
       "table": "ordinals",
 
75265
       "where": []}]'
 
75266
_ATEOF
 
75267
 
 
75268
      { set +x
 
75269
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75270
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75271
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75272
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75273
at_status=$? at_failed=false
 
75274
$at_check_filter
 
75275
echo stderr:; cat "$at_stderr"
 
75276
echo stdout:; tee stdout <"$at_stdout"
 
75277
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75278
$at_failed && at_fn_log_failure
 
75279
$at_traceon; }
 
75280
 
 
75281
      cat stdout >> output
 
75282
 
 
75283
   { set +x
 
75284
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
75285
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
75286
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
75287
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75288
at_status=$? at_failed=false
 
75289
$at_check_filter
 
75290
echo stderr:; cat "$at_stderr"
 
75291
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
75292
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]}]
 
75293
" | \
 
75294
  $at_diff - "$at_stdout" || at_failed=:
 
75295
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75296
$at_failed && at_fn_log_failure
 
75297
$at_traceon; }
 
75298
 
 
75299
     set +x
 
75300
  $at_times_p && times >"$at_times_file"
 
75301
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
75302
read at_status <"$at_status_file"
 
75303
#AT_STOP_882
 
75304
#AT_START_883
 
75305
at_fn_group_banner 883 'ovsdb-server.at:446' \
 
75306
  "insert rows, query by value" "                    " 61
 
75307
at_xfail=no
 
75308
(
 
75309
  $as_echo "883. $at_setup_line: testing $at_desc ..."
 
75310
  $at_traceon
 
75311
 
 
75312
 
 
75313
   cat >schema <<'_ATEOF'
 
75314
{"name": "ordinals",
 
75315
     "tables": {
 
75316
       "ordinals": {
 
75317
         "columns": {
 
75318
           "number": {"type": "integer"},
 
75319
           "name": {"type": "string"}},
 
75320
         "indexes": [["number"]]}},
 
75321
     "version": "5.1.3",
 
75322
     "cksum": "12345678 9"}
 
75323
_ATEOF
 
75324
 
 
75325
   { set +x
 
75326
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
75327
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
75328
( $at_check_trace; ovsdb-tool create db schema
 
75329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75330
at_status=$? at_failed=false
 
75331
$at_check_filter
 
75332
echo stderr:; cat "$at_stderr"
 
75333
echo stdout:; tee stdout <"$at_stdout"
 
75334
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75335
$at_failed && at_fn_log_failure
 
75336
$at_traceon; }
 
75337
 
 
75338
   cat >txnfile <<'_ATEOF'
 
75339
ovsdb-client transact unix:socket '["ordinals",
 
75340
      {"op": "insert",
 
75341
       "table": "ordinals",
 
75342
       "row": {"number": 0, "name": "zero"}}]'
 
75343
_ATEOF
 
75344
 
 
75345
      { set +x
 
75346
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75347
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75348
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75349
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75350
at_status=$? at_failed=false
 
75351
$at_check_filter
 
75352
echo stderr:; cat "$at_stderr"
 
75353
echo stdout:; tee stdout <"$at_stdout"
 
75354
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75355
$at_failed && at_fn_log_failure
 
75356
$at_traceon; }
 
75357
 
 
75358
      cat stdout >> output
 
75359
cat >txnfile <<'_ATEOF'
 
75360
ovsdb-client transact unix:socket '["ordinals",
 
75361
      {"op": "insert",
 
75362
       "table": "ordinals",
 
75363
       "row": {"number": 1, "name": "one"}}]'
 
75364
_ATEOF
 
75365
 
 
75366
      { set +x
 
75367
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75368
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75369
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75370
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75371
at_status=$? at_failed=false
 
75372
$at_check_filter
 
75373
echo stderr:; cat "$at_stderr"
 
75374
echo stdout:; tee stdout <"$at_stdout"
 
75375
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75376
$at_failed && at_fn_log_failure
 
75377
$at_traceon; }
 
75378
 
 
75379
      cat stdout >> output
 
75380
cat >txnfile <<'_ATEOF'
 
75381
ovsdb-client transact unix:socket '["ordinals",
 
75382
      {"op": "select",
 
75383
       "table": "ordinals",
 
75384
       "where": [["name", "==", "zero"]]}]'
 
75385
_ATEOF
 
75386
 
 
75387
      { set +x
 
75388
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75389
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75390
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75391
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75392
at_status=$? at_failed=false
 
75393
$at_check_filter
 
75394
echo stderr:; cat "$at_stderr"
 
75395
echo stdout:; tee stdout <"$at_stdout"
 
75396
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75397
$at_failed && at_fn_log_failure
 
75398
$at_traceon; }
 
75399
 
 
75400
      cat stdout >> output
 
75401
cat >txnfile <<'_ATEOF'
 
75402
ovsdb-client transact unix:socket '["ordinals",
 
75403
      {"op": "select",
 
75404
       "table": "ordinals",
 
75405
       "where": [["name", "==", "one"]]}]'
 
75406
_ATEOF
 
75407
 
 
75408
      { set +x
 
75409
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75410
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75411
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75412
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75413
at_status=$? at_failed=false
 
75414
$at_check_filter
 
75415
echo stderr:; cat "$at_stderr"
 
75416
echo stdout:; tee stdout <"$at_stdout"
 
75417
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75418
$at_failed && at_fn_log_failure
 
75419
$at_traceon; }
 
75420
 
 
75421
      cat stdout >> output
 
75422
 
 
75423
   { set +x
 
75424
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
75425
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
75426
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
75427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75428
at_status=$? at_failed=false
 
75429
$at_check_filter
 
75430
echo stderr:; cat "$at_stderr"
 
75431
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
75432
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
75433
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]}]
 
75434
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
75435
" | \
 
75436
  $at_diff - "$at_stdout" || at_failed=:
 
75437
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75438
$at_failed && at_fn_log_failure
 
75439
$at_traceon; }
 
75440
 
 
75441
     set +x
 
75442
  $at_times_p && times >"$at_times_file"
 
75443
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
75444
read at_status <"$at_status_file"
 
75445
#AT_STOP_883
 
75446
#AT_START_884
 
75447
at_fn_group_banner 884 'ovsdb-server.at:446' \
 
75448
  "insert rows, query by named-uuid" "               " 61
 
75449
at_xfail=no
 
75450
(
 
75451
  $as_echo "884. $at_setup_line: testing $at_desc ..."
 
75452
  $at_traceon
 
75453
 
 
75454
 
 
75455
   cat >schema <<'_ATEOF'
 
75456
{"name": "ordinals",
 
75457
     "tables": {
 
75458
       "ordinals": {
 
75459
         "columns": {
 
75460
           "number": {"type": "integer"},
 
75461
           "name": {"type": "string"}},
 
75462
         "indexes": [["number"]]}},
 
75463
     "version": "5.1.3",
 
75464
     "cksum": "12345678 9"}
 
75465
_ATEOF
 
75466
 
 
75467
   { set +x
 
75468
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
75469
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
75470
( $at_check_trace; ovsdb-tool create db schema
 
75471
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75472
at_status=$? at_failed=false
 
75473
$at_check_filter
 
75474
echo stderr:; cat "$at_stderr"
 
75475
echo stdout:; tee stdout <"$at_stdout"
 
75476
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75477
$at_failed && at_fn_log_failure
 
75478
$at_traceon; }
 
75479
 
 
75480
   cat >txnfile <<'_ATEOF'
 
75481
ovsdb-client transact unix:socket '["ordinals",
 
75482
      {"op": "insert",
 
75483
       "table": "ordinals",
 
75484
       "row": {"number": 0, "name": "zero"},
 
75485
       "uuid-name": "first"},
 
75486
      {"op": "insert",
 
75487
       "table": "ordinals",
 
75488
       "row": {"number": 1, "name": "one"},
 
75489
       "uuid-name": "second"},
 
75490
      {"op": "select",
 
75491
       "table": "ordinals",
 
75492
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
75493
      {"op": "select",
 
75494
       "table": "ordinals",
 
75495
       "where": [["_uuid", "==", ["named-uuid", "second"]]]}]'
 
75496
_ATEOF
 
75497
 
 
75498
      { set +x
 
75499
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75500
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75501
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75502
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75503
at_status=$? at_failed=false
 
75504
$at_check_filter
 
75505
echo stderr:; cat "$at_stderr"
 
75506
echo stdout:; tee stdout <"$at_stdout"
 
75507
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75508
$at_failed && at_fn_log_failure
 
75509
$at_traceon; }
 
75510
 
 
75511
      cat stdout >> output
 
75512
 
 
75513
   { set +x
 
75514
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
75515
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
75516
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
75517
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75518
at_status=$? at_failed=false
 
75519
$at_check_filter
 
75520
echo stderr:; cat "$at_stderr"
 
75521
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0}]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
75522
" | \
 
75523
  $at_diff - "$at_stdout" || at_failed=:
 
75524
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75525
$at_failed && at_fn_log_failure
 
75526
$at_traceon; }
 
75527
 
 
75528
     set +x
 
75529
  $at_times_p && times >"$at_times_file"
 
75530
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
75531
read at_status <"$at_status_file"
 
75532
#AT_STOP_884
 
75533
#AT_START_885
 
75534
at_fn_group_banner 885 'ovsdb-server.at:446' \
 
75535
  "insert rows, update rows by value" "              " 61
 
75536
at_xfail=no
 
75537
(
 
75538
  $as_echo "885. $at_setup_line: testing $at_desc ..."
 
75539
  $at_traceon
 
75540
 
 
75541
 
 
75542
   cat >schema <<'_ATEOF'
 
75543
{"name": "ordinals",
 
75544
     "tables": {
 
75545
       "ordinals": {
 
75546
         "columns": {
 
75547
           "number": {"type": "integer"},
 
75548
           "name": {"type": "string"}},
 
75549
         "indexes": [["number"]]}},
 
75550
     "version": "5.1.3",
 
75551
     "cksum": "12345678 9"}
 
75552
_ATEOF
 
75553
 
 
75554
   { set +x
 
75555
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
75556
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
75557
( $at_check_trace; ovsdb-tool create db schema
 
75558
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75559
at_status=$? at_failed=false
 
75560
$at_check_filter
 
75561
echo stderr:; cat "$at_stderr"
 
75562
echo stdout:; tee stdout <"$at_stdout"
 
75563
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75564
$at_failed && at_fn_log_failure
 
75565
$at_traceon; }
 
75566
 
 
75567
   cat >txnfile <<'_ATEOF'
 
75568
ovsdb-client transact unix:socket '["ordinals",
 
75569
      {"op": "insert",
 
75570
       "table": "ordinals",
 
75571
       "row": {"number": 0, "name": "zero"},
 
75572
       "uuid-name": "first"}]'
 
75573
_ATEOF
 
75574
 
 
75575
      { set +x
 
75576
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75577
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75578
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75579
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75580
at_status=$? at_failed=false
 
75581
$at_check_filter
 
75582
echo stderr:; cat "$at_stderr"
 
75583
echo stdout:; tee stdout <"$at_stdout"
 
75584
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75585
$at_failed && at_fn_log_failure
 
75586
$at_traceon; }
 
75587
 
 
75588
      cat stdout >> output
 
75589
cat >txnfile <<'_ATEOF'
 
75590
ovsdb-client transact unix:socket '["ordinals",
 
75591
      {"op": "insert",
 
75592
       "table": "ordinals",
 
75593
       "row": {"number": 1, "name": "one"},
 
75594
       "uuid-name": "first"}]'
 
75595
_ATEOF
 
75596
 
 
75597
      { set +x
 
75598
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75599
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75600
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75601
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75602
at_status=$? at_failed=false
 
75603
$at_check_filter
 
75604
echo stderr:; cat "$at_stderr"
 
75605
echo stdout:; tee stdout <"$at_stdout"
 
75606
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75607
$at_failed && at_fn_log_failure
 
75608
$at_traceon; }
 
75609
 
 
75610
      cat stdout >> output
 
75611
cat >txnfile <<'_ATEOF'
 
75612
ovsdb-client transact unix:socket '["ordinals",
 
75613
      {"op": "update",
 
75614
       "table": "ordinals",
 
75615
       "where": [["name", "==", "zero"]],
 
75616
       "row": {"name": "nought"}}]'
 
75617
_ATEOF
 
75618
 
 
75619
      { set +x
 
75620
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75621
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75622
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75623
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75624
at_status=$? at_failed=false
 
75625
$at_check_filter
 
75626
echo stderr:; cat "$at_stderr"
 
75627
echo stdout:; tee stdout <"$at_stdout"
 
75628
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75629
$at_failed && at_fn_log_failure
 
75630
$at_traceon; }
 
75631
 
 
75632
      cat stdout >> output
 
75633
cat >txnfile <<'_ATEOF'
 
75634
ovsdb-client transact unix:socket '["ordinals",
 
75635
      {"op": "select",
 
75636
       "table": "ordinals",
 
75637
       "where": [],
 
75638
       "sort": ["number"]}]'
 
75639
_ATEOF
 
75640
 
 
75641
      { set +x
 
75642
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75643
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75644
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75645
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75646
at_status=$? at_failed=false
 
75647
$at_check_filter
 
75648
echo stderr:; cat "$at_stderr"
 
75649
echo stdout:; tee stdout <"$at_stdout"
 
75650
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75651
$at_failed && at_fn_log_failure
 
75652
$at_traceon; }
 
75653
 
 
75654
      cat stdout >> output
 
75655
 
 
75656
   { set +x
 
75657
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
75658
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
75659
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
75660
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75661
at_status=$? at_failed=false
 
75662
$at_check_filter
 
75663
echo stderr:; cat "$at_stderr"
 
75664
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
75665
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
75666
[{\"count\":1}]
 
75667
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"nought\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
75668
" | \
 
75669
  $at_diff - "$at_stdout" || at_failed=:
 
75670
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75671
$at_failed && at_fn_log_failure
 
75672
$at_traceon; }
 
75673
 
 
75674
     set +x
 
75675
  $at_times_p && times >"$at_times_file"
 
75676
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
75677
read at_status <"$at_status_file"
 
75678
#AT_STOP_885
 
75679
#AT_START_886
 
75680
at_fn_group_banner 886 'ovsdb-server.at:446' \
 
75681
  "insert rows, mutate rows" "                       " 61
 
75682
at_xfail=no
 
75683
(
 
75684
  $as_echo "886. $at_setup_line: testing $at_desc ..."
 
75685
  $at_traceon
 
75686
 
 
75687
 
 
75688
   cat >schema <<'_ATEOF'
 
75689
{"name": "ordinals",
 
75690
     "tables": {
 
75691
       "ordinals": {
 
75692
         "columns": {
 
75693
           "number": {"type": "integer"},
 
75694
           "name": {"type": "string"}},
 
75695
         "indexes": [["number"]]}},
 
75696
     "version": "5.1.3",
 
75697
     "cksum": "12345678 9"}
 
75698
_ATEOF
 
75699
 
 
75700
   { set +x
 
75701
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
75702
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
75703
( $at_check_trace; ovsdb-tool create db schema
 
75704
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75705
at_status=$? at_failed=false
 
75706
$at_check_filter
 
75707
echo stderr:; cat "$at_stderr"
 
75708
echo stdout:; tee stdout <"$at_stdout"
 
75709
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75710
$at_failed && at_fn_log_failure
 
75711
$at_traceon; }
 
75712
 
 
75713
   cat >txnfile <<'_ATEOF'
 
75714
ovsdb-client transact unix:socket '["ordinals",
 
75715
      {"op": "insert",
 
75716
       "table": "ordinals",
 
75717
       "row": {"number": 0, "name": "zero"},
 
75718
       "uuid-name": "first"}]'
 
75719
_ATEOF
 
75720
 
 
75721
      { set +x
 
75722
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75723
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75724
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75725
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75726
at_status=$? at_failed=false
 
75727
$at_check_filter
 
75728
echo stderr:; cat "$at_stderr"
 
75729
echo stdout:; tee stdout <"$at_stdout"
 
75730
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75731
$at_failed && at_fn_log_failure
 
75732
$at_traceon; }
 
75733
 
 
75734
      cat stdout >> output
 
75735
cat >txnfile <<'_ATEOF'
 
75736
ovsdb-client transact unix:socket '["ordinals",
 
75737
      {"op": "insert",
 
75738
       "table": "ordinals",
 
75739
       "row": {"number": 1, "name": "one"},
 
75740
       "uuid-name": "first"}]'
 
75741
_ATEOF
 
75742
 
 
75743
      { set +x
 
75744
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75745
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75746
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75747
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75748
at_status=$? at_failed=false
 
75749
$at_check_filter
 
75750
echo stderr:; cat "$at_stderr"
 
75751
echo stdout:; tee stdout <"$at_stdout"
 
75752
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75753
$at_failed && at_fn_log_failure
 
75754
$at_traceon; }
 
75755
 
 
75756
      cat stdout >> output
 
75757
cat >txnfile <<'_ATEOF'
 
75758
ovsdb-client transact unix:socket '["ordinals",
 
75759
      {"op": "mutate",
 
75760
       "table": "ordinals",
 
75761
       "where": [["name", "==", "zero"]],
 
75762
       "mutations": [["number", "+=", 2]]}]'
 
75763
_ATEOF
 
75764
 
 
75765
      { set +x
 
75766
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75767
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75768
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75769
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75770
at_status=$? at_failed=false
 
75771
$at_check_filter
 
75772
echo stderr:; cat "$at_stderr"
 
75773
echo stdout:; tee stdout <"$at_stdout"
 
75774
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75775
$at_failed && at_fn_log_failure
 
75776
$at_traceon; }
 
75777
 
 
75778
      cat stdout >> output
 
75779
cat >txnfile <<'_ATEOF'
 
75780
ovsdb-client transact unix:socket '["ordinals",
 
75781
      {"op": "select",
 
75782
       "table": "ordinals",
 
75783
       "where": [],
 
75784
       "sort": ["number"]}]'
 
75785
_ATEOF
 
75786
 
 
75787
      { set +x
 
75788
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75789
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75790
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75791
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75792
at_status=$? at_failed=false
 
75793
$at_check_filter
 
75794
echo stderr:; cat "$at_stderr"
 
75795
echo stdout:; tee stdout <"$at_stdout"
 
75796
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75797
$at_failed && at_fn_log_failure
 
75798
$at_traceon; }
 
75799
 
 
75800
      cat stdout >> output
 
75801
 
 
75802
   { set +x
 
75803
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
75804
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
75805
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
75806
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75807
at_status=$? at_failed=false
 
75808
$at_check_filter
 
75809
echo stderr:; cat "$at_stderr"
 
75810
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
75811
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
75812
[{\"count\":1}]
 
75813
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1},{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"zero\",\"number\":2}]}]
 
75814
" | \
 
75815
  $at_diff - "$at_stdout" || at_failed=:
 
75816
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75817
$at_failed && at_fn_log_failure
 
75818
$at_traceon; }
 
75819
 
 
75820
     set +x
 
75821
  $at_times_p && times >"$at_times_file"
 
75822
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
75823
read at_status <"$at_status_file"
 
75824
#AT_STOP_886
 
75825
#AT_START_887
 
75826
at_fn_group_banner 887 'ovsdb-server.at:446' \
 
75827
  "insert rows, delete by named-uuid" "              " 61
 
75828
at_xfail=no
 
75829
(
 
75830
  $as_echo "887. $at_setup_line: testing $at_desc ..."
 
75831
  $at_traceon
 
75832
 
 
75833
 
 
75834
   cat >schema <<'_ATEOF'
 
75835
{"name": "ordinals",
 
75836
     "tables": {
 
75837
       "ordinals": {
 
75838
         "columns": {
 
75839
           "number": {"type": "integer"},
 
75840
           "name": {"type": "string"}},
 
75841
         "indexes": [["number"]]}},
 
75842
     "version": "5.1.3",
 
75843
     "cksum": "12345678 9"}
 
75844
_ATEOF
 
75845
 
 
75846
   { set +x
 
75847
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
75848
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
75849
( $at_check_trace; ovsdb-tool create db schema
 
75850
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75851
at_status=$? at_failed=false
 
75852
$at_check_filter
 
75853
echo stderr:; cat "$at_stderr"
 
75854
echo stdout:; tee stdout <"$at_stdout"
 
75855
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75856
$at_failed && at_fn_log_failure
 
75857
$at_traceon; }
 
75858
 
 
75859
   cat >txnfile <<'_ATEOF'
 
75860
ovsdb-client transact unix:socket '["ordinals",
 
75861
      {"op": "insert",
 
75862
       "table": "ordinals",
 
75863
       "row": {"number": 0, "name": "zero"},
 
75864
       "uuid-name": "first"},
 
75865
      {"op": "insert",
 
75866
       "table": "ordinals",
 
75867
       "row": {"number": 1, "name": "one"},
 
75868
       "uuid-name": "second"},
 
75869
      {"op": "delete",
 
75870
       "table": "ordinals",
 
75871
       "where": [["_uuid", "==", ["named-uuid", "first"]]]},
 
75872
      {"op": "select",
 
75873
       "table": "ordinals",
 
75874
       "where": [],
 
75875
       "columns": ["name","number"]}]'
 
75876
_ATEOF
 
75877
 
 
75878
      { set +x
 
75879
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75880
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75881
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75882
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75883
at_status=$? at_failed=false
 
75884
$at_check_filter
 
75885
echo stderr:; cat "$at_stderr"
 
75886
echo stdout:; tee stdout <"$at_stdout"
 
75887
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75888
$at_failed && at_fn_log_failure
 
75889
$at_traceon; }
 
75890
 
 
75891
      cat stdout >> output
 
75892
 
 
75893
   { set +x
 
75894
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
75895
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
75896
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
75897
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75898
at_status=$? at_failed=false
 
75899
$at_check_filter
 
75900
echo stderr:; cat "$at_stderr"
 
75901
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":1},{\"rows\":[{\"name\":\"one\",\"number\":1}]}]
 
75902
" | \
 
75903
  $at_diff - "$at_stdout" || at_failed=:
 
75904
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75905
$at_failed && at_fn_log_failure
 
75906
$at_traceon; }
 
75907
 
 
75908
     set +x
 
75909
  $at_times_p && times >"$at_times_file"
 
75910
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
75911
read at_status <"$at_status_file"
 
75912
#AT_STOP_887
 
75913
#AT_START_888
 
75914
at_fn_group_banner 888 'ovsdb-server.at:446' \
 
75915
  "insert rows, delete rows by value" "              " 61
 
75916
at_xfail=no
 
75917
(
 
75918
  $as_echo "888. $at_setup_line: testing $at_desc ..."
 
75919
  $at_traceon
 
75920
 
 
75921
 
 
75922
   cat >schema <<'_ATEOF'
 
75923
{"name": "ordinals",
 
75924
     "tables": {
 
75925
       "ordinals": {
 
75926
         "columns": {
 
75927
           "number": {"type": "integer"},
 
75928
           "name": {"type": "string"}},
 
75929
         "indexes": [["number"]]}},
 
75930
     "version": "5.1.3",
 
75931
     "cksum": "12345678 9"}
 
75932
_ATEOF
 
75933
 
 
75934
   { set +x
 
75935
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
75936
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
75937
( $at_check_trace; ovsdb-tool create db schema
 
75938
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75939
at_status=$? at_failed=false
 
75940
$at_check_filter
 
75941
echo stderr:; cat "$at_stderr"
 
75942
echo stdout:; tee stdout <"$at_stdout"
 
75943
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75944
$at_failed && at_fn_log_failure
 
75945
$at_traceon; }
 
75946
 
 
75947
   cat >txnfile <<'_ATEOF'
 
75948
ovsdb-client transact unix:socket '["ordinals",
 
75949
      {"op": "insert",
 
75950
       "table": "ordinals",
 
75951
       "row": {"number": 0, "name": "zero"},
 
75952
       "uuid-name": "first"}]'
 
75953
_ATEOF
 
75954
 
 
75955
      { set +x
 
75956
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75957
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75958
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75960
at_status=$? at_failed=false
 
75961
$at_check_filter
 
75962
echo stderr:; cat "$at_stderr"
 
75963
echo stdout:; tee stdout <"$at_stdout"
 
75964
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75965
$at_failed && at_fn_log_failure
 
75966
$at_traceon; }
 
75967
 
 
75968
      cat stdout >> output
 
75969
cat >txnfile <<'_ATEOF'
 
75970
ovsdb-client transact unix:socket '["ordinals",
 
75971
      {"op": "insert",
 
75972
       "table": "ordinals",
 
75973
       "row": {"number": 1, "name": "one"},
 
75974
       "uuid-name": "first"}]'
 
75975
_ATEOF
 
75976
 
 
75977
      { set +x
 
75978
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
75979
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
75980
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
75981
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
75982
at_status=$? at_failed=false
 
75983
$at_check_filter
 
75984
echo stderr:; cat "$at_stderr"
 
75985
echo stdout:; tee stdout <"$at_stdout"
 
75986
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
75987
$at_failed && at_fn_log_failure
 
75988
$at_traceon; }
 
75989
 
 
75990
      cat stdout >> output
 
75991
cat >txnfile <<'_ATEOF'
 
75992
ovsdb-client transact unix:socket '["ordinals",
 
75993
      {"op": "delete",
 
75994
       "table": "ordinals",
 
75995
       "where": [["name", "==", "zero"]]}]'
 
75996
_ATEOF
 
75997
 
 
75998
      { set +x
 
75999
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76000
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76001
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76002
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76003
at_status=$? at_failed=false
 
76004
$at_check_filter
 
76005
echo stderr:; cat "$at_stderr"
 
76006
echo stdout:; tee stdout <"$at_stdout"
 
76007
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76008
$at_failed && at_fn_log_failure
 
76009
$at_traceon; }
 
76010
 
 
76011
      cat stdout >> output
 
76012
cat >txnfile <<'_ATEOF'
 
76013
ovsdb-client transact unix:socket '["ordinals",
 
76014
      {"op": "select",
 
76015
       "table": "ordinals",
 
76016
       "where": []}]'
 
76017
_ATEOF
 
76018
 
 
76019
      { set +x
 
76020
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76021
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76022
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76023
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76024
at_status=$? at_failed=false
 
76025
$at_check_filter
 
76026
echo stderr:; cat "$at_stderr"
 
76027
echo stdout:; tee stdout <"$at_stdout"
 
76028
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76029
$at_failed && at_fn_log_failure
 
76030
$at_traceon; }
 
76031
 
 
76032
      cat stdout >> output
 
76033
 
 
76034
   { set +x
 
76035
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76036
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76037
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76038
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76039
at_status=$? at_failed=false
 
76040
$at_check_filter
 
76041
echo stderr:; cat "$at_stderr"
 
76042
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
76043
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
76044
[{\"count\":1}]
 
76045
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"one\",\"number\":1}]}]
 
76046
" | \
 
76047
  $at_diff - "$at_stdout" || at_failed=:
 
76048
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76049
$at_failed && at_fn_log_failure
 
76050
$at_traceon; }
 
76051
 
 
76052
     set +x
 
76053
  $at_times_p && times >"$at_times_file"
 
76054
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76055
read at_status <"$at_status_file"
 
76056
#AT_STOP_888
 
76057
#AT_START_889
 
76058
at_fn_group_banner 889 'ovsdb-server.at:446' \
 
76059
  "insert rows, delete by (non-matching) value" "    " 61
 
76060
at_xfail=no
 
76061
(
 
76062
  $as_echo "889. $at_setup_line: testing $at_desc ..."
 
76063
  $at_traceon
 
76064
 
 
76065
 
 
76066
   cat >schema <<'_ATEOF'
 
76067
{"name": "ordinals",
 
76068
     "tables": {
 
76069
       "ordinals": {
 
76070
         "columns": {
 
76071
           "number": {"type": "integer"},
 
76072
           "name": {"type": "string"}},
 
76073
         "indexes": [["number"]]}},
 
76074
     "version": "5.1.3",
 
76075
     "cksum": "12345678 9"}
 
76076
_ATEOF
 
76077
 
 
76078
   { set +x
 
76079
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76080
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76081
( $at_check_trace; ovsdb-tool create db schema
 
76082
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76083
at_status=$? at_failed=false
 
76084
$at_check_filter
 
76085
echo stderr:; cat "$at_stderr"
 
76086
echo stdout:; tee stdout <"$at_stdout"
 
76087
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76088
$at_failed && at_fn_log_failure
 
76089
$at_traceon; }
 
76090
 
 
76091
   cat >txnfile <<'_ATEOF'
 
76092
ovsdb-client transact unix:socket '["ordinals",
 
76093
      {"op": "insert",
 
76094
       "table": "ordinals",
 
76095
       "row": {"number": 0, "name": "zero"},
 
76096
       "uuid-name": "first"}]'
 
76097
_ATEOF
 
76098
 
 
76099
      { set +x
 
76100
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76101
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76102
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76103
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76104
at_status=$? at_failed=false
 
76105
$at_check_filter
 
76106
echo stderr:; cat "$at_stderr"
 
76107
echo stdout:; tee stdout <"$at_stdout"
 
76108
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76109
$at_failed && at_fn_log_failure
 
76110
$at_traceon; }
 
76111
 
 
76112
      cat stdout >> output
 
76113
cat >txnfile <<'_ATEOF'
 
76114
ovsdb-client transact unix:socket '["ordinals",
 
76115
      {"op": "insert",
 
76116
       "table": "ordinals",
 
76117
       "row": {"number": 1, "name": "one"},
 
76118
       "uuid-name": "first"}]'
 
76119
_ATEOF
 
76120
 
 
76121
      { set +x
 
76122
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76123
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76124
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76125
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76126
at_status=$? at_failed=false
 
76127
$at_check_filter
 
76128
echo stderr:; cat "$at_stderr"
 
76129
echo stdout:; tee stdout <"$at_stdout"
 
76130
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76131
$at_failed && at_fn_log_failure
 
76132
$at_traceon; }
 
76133
 
 
76134
      cat stdout >> output
 
76135
cat >txnfile <<'_ATEOF'
 
76136
ovsdb-client transact unix:socket '["ordinals",
 
76137
      {"op": "delete",
 
76138
       "table": "ordinals",
 
76139
       "where": [["name", "==", "nought"]]}]'
 
76140
_ATEOF
 
76141
 
 
76142
      { set +x
 
76143
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76144
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76145
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76146
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76147
at_status=$? at_failed=false
 
76148
$at_check_filter
 
76149
echo stderr:; cat "$at_stderr"
 
76150
echo stdout:; tee stdout <"$at_stdout"
 
76151
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76152
$at_failed && at_fn_log_failure
 
76153
$at_traceon; }
 
76154
 
 
76155
      cat stdout >> output
 
76156
cat >txnfile <<'_ATEOF'
 
76157
ovsdb-client transact unix:socket '["ordinals",
 
76158
      {"op": "select",
 
76159
       "table": "ordinals",
 
76160
       "where": [],
 
76161
       "sort": ["number"]}]'
 
76162
_ATEOF
 
76163
 
 
76164
      { set +x
 
76165
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76166
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76167
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76169
at_status=$? at_failed=false
 
76170
$at_check_filter
 
76171
echo stderr:; cat "$at_stderr"
 
76172
echo stdout:; tee stdout <"$at_stdout"
 
76173
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76174
$at_failed && at_fn_log_failure
 
76175
$at_traceon; }
 
76176
 
 
76177
      cat stdout >> output
 
76178
 
 
76179
   { set +x
 
76180
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76181
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76182
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76183
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76184
at_status=$? at_failed=false
 
76185
$at_check_filter
 
76186
echo stderr:; cat "$at_stderr"
 
76187
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
76188
[{\"uuid\":[\"uuid\",\"<1>\"]}]
 
76189
[{\"count\":0}]
 
76190
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<2>\"],\"name\":\"zero\",\"number\":0},{\"_uuid\":[\"uuid\",\"<1>\"],\"_version\":[\"uuid\",\"<3>\"],\"name\":\"one\",\"number\":1}]}]
 
76191
" | \
 
76192
  $at_diff - "$at_stdout" || at_failed=:
 
76193
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76194
$at_failed && at_fn_log_failure
 
76195
$at_traceon; }
 
76196
 
 
76197
     set +x
 
76198
  $at_times_p && times >"$at_times_file"
 
76199
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76200
read at_status <"$at_status_file"
 
76201
#AT_STOP_889
 
76202
#AT_START_890
 
76203
at_fn_group_banner 890 'ovsdb-server.at:446' \
 
76204
  "insert rows, delete all" "                        " 61
 
76205
at_xfail=no
 
76206
(
 
76207
  $as_echo "890. $at_setup_line: testing $at_desc ..."
 
76208
  $at_traceon
 
76209
 
 
76210
 
 
76211
   cat >schema <<'_ATEOF'
 
76212
{"name": "ordinals",
 
76213
     "tables": {
 
76214
       "ordinals": {
 
76215
         "columns": {
 
76216
           "number": {"type": "integer"},
 
76217
           "name": {"type": "string"}},
 
76218
         "indexes": [["number"]]}},
 
76219
     "version": "5.1.3",
 
76220
     "cksum": "12345678 9"}
 
76221
_ATEOF
 
76222
 
 
76223
   { set +x
 
76224
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76225
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76226
( $at_check_trace; ovsdb-tool create db schema
 
76227
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76228
at_status=$? at_failed=false
 
76229
$at_check_filter
 
76230
echo stderr:; cat "$at_stderr"
 
76231
echo stdout:; tee stdout <"$at_stdout"
 
76232
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76233
$at_failed && at_fn_log_failure
 
76234
$at_traceon; }
 
76235
 
 
76236
   cat >txnfile <<'_ATEOF'
 
76237
ovsdb-client transact unix:socket '["ordinals",
 
76238
      {"op": "insert",
 
76239
       "table": "ordinals",
 
76240
       "row": {"number": 0, "name": "zero"},
 
76241
       "uuid-name": "first"},
 
76242
      {"op": "insert",
 
76243
       "table": "ordinals",
 
76244
       "row": {"number": 1, "name": "one"},
 
76245
       "uuid-name": "second"},
 
76246
      {"op": "delete",
 
76247
       "table": "ordinals",
 
76248
       "where": []},
 
76249
      {"op": "select",
 
76250
       "table": "ordinals",
 
76251
       "where": [],
 
76252
       "columns": ["name","number"]}]'
 
76253
_ATEOF
 
76254
 
 
76255
      { set +x
 
76256
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76257
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76258
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76259
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76260
at_status=$? at_failed=false
 
76261
$at_check_filter
 
76262
echo stderr:; cat "$at_stderr"
 
76263
echo stdout:; tee stdout <"$at_stdout"
 
76264
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76265
$at_failed && at_fn_log_failure
 
76266
$at_traceon; }
 
76267
 
 
76268
      cat stdout >> output
 
76269
 
 
76270
   { set +x
 
76271
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76272
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76273
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76274
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76275
at_status=$? at_failed=false
 
76276
$at_check_filter
 
76277
echo stderr:; cat "$at_stderr"
 
76278
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"count\":2},{\"rows\":[]}]
 
76279
" | \
 
76280
  $at_diff - "$at_stdout" || at_failed=:
 
76281
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76282
$at_failed && at_fn_log_failure
 
76283
$at_traceon; }
 
76284
 
 
76285
     set +x
 
76286
  $at_times_p && times >"$at_times_file"
 
76287
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76288
read at_status <"$at_status_file"
 
76289
#AT_STOP_890
 
76290
#AT_START_891
 
76291
at_fn_group_banner 891 'ovsdb-server.at:446' \
 
76292
  "insert row, query table, commit" "                " 61
 
76293
at_xfail=no
 
76294
(
 
76295
  $as_echo "891. $at_setup_line: testing $at_desc ..."
 
76296
  $at_traceon
 
76297
 
 
76298
 
 
76299
   cat >schema <<'_ATEOF'
 
76300
{"name": "ordinals",
 
76301
     "tables": {
 
76302
       "ordinals": {
 
76303
         "columns": {
 
76304
           "number": {"type": "integer"},
 
76305
           "name": {"type": "string"}},
 
76306
         "indexes": [["number"]]}},
 
76307
     "version": "5.1.3",
 
76308
     "cksum": "12345678 9"}
 
76309
_ATEOF
 
76310
 
 
76311
   { set +x
 
76312
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76313
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76314
( $at_check_trace; ovsdb-tool create db schema
 
76315
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76316
at_status=$? at_failed=false
 
76317
$at_check_filter
 
76318
echo stderr:; cat "$at_stderr"
 
76319
echo stdout:; tee stdout <"$at_stdout"
 
76320
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76321
$at_failed && at_fn_log_failure
 
76322
$at_traceon; }
 
76323
 
 
76324
   cat >txnfile <<'_ATEOF'
 
76325
ovsdb-client transact unix:socket '["ordinals",
 
76326
      {"op": "insert",
 
76327
       "table": "ordinals",
 
76328
       "row": {"number": 0, "name": "zero"}},
 
76329
      {"op": "select",
 
76330
       "table": "ordinals",
 
76331
       "where": []},
 
76332
      {"op": "commit",
 
76333
       "durable": false}]'
 
76334
_ATEOF
 
76335
 
 
76336
      { set +x
 
76337
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76338
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76339
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76340
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76341
at_status=$? at_failed=false
 
76342
$at_check_filter
 
76343
echo stderr:; cat "$at_stderr"
 
76344
echo stdout:; tee stdout <"$at_stdout"
 
76345
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76346
$at_failed && at_fn_log_failure
 
76347
$at_traceon; }
 
76348
 
 
76349
      cat stdout >> output
 
76350
 
 
76351
   { set +x
 
76352
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76353
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76354
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76355
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76356
at_status=$? at_failed=false
 
76357
$at_check_filter
 
76358
echo stderr:; cat "$at_stderr"
 
76359
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
76360
" | \
 
76361
  $at_diff - "$at_stdout" || at_failed=:
 
76362
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76363
$at_failed && at_fn_log_failure
 
76364
$at_traceon; }
 
76365
 
 
76366
     set +x
 
76367
  $at_times_p && times >"$at_times_file"
 
76368
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76369
read at_status <"$at_status_file"
 
76370
#AT_STOP_891
 
76371
#AT_START_892
 
76372
at_fn_group_banner 892 'ovsdb-server.at:446' \
 
76373
  "insert row, query table, commit durably" "        " 61
 
76374
at_xfail=no
 
76375
(
 
76376
  $as_echo "892. $at_setup_line: testing $at_desc ..."
 
76377
  $at_traceon
 
76378
 
 
76379
 
 
76380
   cat >schema <<'_ATEOF'
 
76381
{"name": "ordinals",
 
76382
     "tables": {
 
76383
       "ordinals": {
 
76384
         "columns": {
 
76385
           "number": {"type": "integer"},
 
76386
           "name": {"type": "string"}},
 
76387
         "indexes": [["number"]]}},
 
76388
     "version": "5.1.3",
 
76389
     "cksum": "12345678 9"}
 
76390
_ATEOF
 
76391
 
 
76392
   { set +x
 
76393
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76394
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76395
( $at_check_trace; ovsdb-tool create db schema
 
76396
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76397
at_status=$? at_failed=false
 
76398
$at_check_filter
 
76399
echo stderr:; cat "$at_stderr"
 
76400
echo stdout:; tee stdout <"$at_stdout"
 
76401
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76402
$at_failed && at_fn_log_failure
 
76403
$at_traceon; }
 
76404
 
 
76405
   cat >txnfile <<'_ATEOF'
 
76406
ovsdb-client transact unix:socket '["ordinals",
 
76407
      {"op": "insert",
 
76408
       "table": "ordinals",
 
76409
       "row": {"number": 0, "name": "zero"}},
 
76410
      {"op": "select",
 
76411
       "table": "ordinals",
 
76412
       "where": []},
 
76413
      {"op": "commit",
 
76414
       "durable": true}]'
 
76415
_ATEOF
 
76416
 
 
76417
      { set +x
 
76418
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76419
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76420
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76421
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76422
at_status=$? at_failed=false
 
76423
$at_check_filter
 
76424
echo stderr:; cat "$at_stderr"
 
76425
echo stdout:; tee stdout <"$at_stdout"
 
76426
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76427
$at_failed && at_fn_log_failure
 
76428
$at_traceon; }
 
76429
 
 
76430
      cat stdout >> output
 
76431
 
 
76432
   { set +x
 
76433
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76434
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76435
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76436
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76437
at_status=$? at_failed=false
 
76438
$at_check_filter
 
76439
echo stderr:; cat "$at_stderr"
 
76440
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"_version\":[\"uuid\",\"<1>\"],\"name\":\"zero\",\"number\":0}]},{}]
 
76441
" | \
 
76442
  $at_diff - "$at_stdout" || at_failed=:
 
76443
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76444
$at_failed && at_fn_log_failure
 
76445
$at_traceon; }
 
76446
 
 
76447
     set +x
 
76448
  $at_times_p && times >"$at_times_file"
 
76449
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76450
read at_status <"$at_status_file"
 
76451
#AT_STOP_892
 
76452
#AT_START_893
 
76453
at_fn_group_banner 893 'ovsdb-server.at:446' \
 
76454
  "equality wait with correct rows" "                " 61
 
76455
at_xfail=no
 
76456
(
 
76457
  $as_echo "893. $at_setup_line: testing $at_desc ..."
 
76458
  $at_traceon
 
76459
 
 
76460
 
 
76461
   cat >schema <<'_ATEOF'
 
76462
{"name": "ordinals",
 
76463
     "tables": {
 
76464
       "ordinals": {
 
76465
         "columns": {
 
76466
           "number": {"type": "integer"},
 
76467
           "name": {"type": "string"}},
 
76468
         "indexes": [["number"]]}},
 
76469
     "version": "5.1.3",
 
76470
     "cksum": "12345678 9"}
 
76471
_ATEOF
 
76472
 
 
76473
   { set +x
 
76474
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76475
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76476
( $at_check_trace; ovsdb-tool create db schema
 
76477
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76478
at_status=$? at_failed=false
 
76479
$at_check_filter
 
76480
echo stderr:; cat "$at_stderr"
 
76481
echo stdout:; tee stdout <"$at_stdout"
 
76482
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76483
$at_failed && at_fn_log_failure
 
76484
$at_traceon; }
 
76485
 
 
76486
   cat >txnfile <<'_ATEOF'
 
76487
ovsdb-client transact unix:socket '["ordinals",
 
76488
      {"op": "insert",
 
76489
       "table": "ordinals",
 
76490
       "row": {"number": 0, "name": "zero"}},
 
76491
      {"op": "insert",
 
76492
       "table": "ordinals",
 
76493
       "row": {"number": 1, "name": "one"}},
 
76494
      {"op": "wait",
 
76495
       "timeout": 0,
 
76496
       "table": "ordinals",
 
76497
       "where": [],
 
76498
       "columns": ["name", "number"],
 
76499
       "until": "==",
 
76500
       "rows": [{"name": "zero", "number": 0},
 
76501
                {"name": "one", "number": 1}]}]'
 
76502
_ATEOF
 
76503
 
 
76504
      { set +x
 
76505
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76506
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76507
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76508
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76509
at_status=$? at_failed=false
 
76510
$at_check_filter
 
76511
echo stderr:; cat "$at_stderr"
 
76512
echo stdout:; tee stdout <"$at_stdout"
 
76513
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76514
$at_failed && at_fn_log_failure
 
76515
$at_traceon; }
 
76516
 
 
76517
      cat stdout >> output
 
76518
 
 
76519
   { set +x
 
76520
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76521
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76522
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76524
at_status=$? at_failed=false
 
76525
$at_check_filter
 
76526
echo stderr:; cat "$at_stderr"
 
76527
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
76528
" | \
 
76529
  $at_diff - "$at_stdout" || at_failed=:
 
76530
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76531
$at_failed && at_fn_log_failure
 
76532
$at_traceon; }
 
76533
 
 
76534
     set +x
 
76535
  $at_times_p && times >"$at_times_file"
 
76536
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76537
read at_status <"$at_status_file"
 
76538
#AT_STOP_893
 
76539
#AT_START_894
 
76540
at_fn_group_banner 894 'ovsdb-server.at:446' \
 
76541
  "equality wait with extra row" "                   " 61
 
76542
at_xfail=no
 
76543
(
 
76544
  $as_echo "894. $at_setup_line: testing $at_desc ..."
 
76545
  $at_traceon
 
76546
 
 
76547
 
 
76548
   cat >schema <<'_ATEOF'
 
76549
{"name": "ordinals",
 
76550
     "tables": {
 
76551
       "ordinals": {
 
76552
         "columns": {
 
76553
           "number": {"type": "integer"},
 
76554
           "name": {"type": "string"}},
 
76555
         "indexes": [["number"]]}},
 
76556
     "version": "5.1.3",
 
76557
     "cksum": "12345678 9"}
 
76558
_ATEOF
 
76559
 
 
76560
   { set +x
 
76561
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76562
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76563
( $at_check_trace; ovsdb-tool create db schema
 
76564
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76565
at_status=$? at_failed=false
 
76566
$at_check_filter
 
76567
echo stderr:; cat "$at_stderr"
 
76568
echo stdout:; tee stdout <"$at_stdout"
 
76569
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76570
$at_failed && at_fn_log_failure
 
76571
$at_traceon; }
 
76572
 
 
76573
   cat >txnfile <<'_ATEOF'
 
76574
ovsdb-client transact unix:socket '["ordinals",
 
76575
      {"op": "insert",
 
76576
       "table": "ordinals",
 
76577
       "row": {"number": 0, "name": "zero"}},
 
76578
      {"op": "insert",
 
76579
       "table": "ordinals",
 
76580
       "row": {"number": 1, "name": "one"}},
 
76581
      {"op": "wait",
 
76582
       "timeout": 0,
 
76583
       "table": "ordinals",
 
76584
       "where": [],
 
76585
       "columns": ["name", "number"],
 
76586
       "until": "==",
 
76587
       "rows": [{"name": "zero", "number": 0},
 
76588
                {"name": "one", "number": 1},
 
76589
                {"name": "two", "number": 2}]}]'
 
76590
_ATEOF
 
76591
 
 
76592
      { set +x
 
76593
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76594
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76595
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76596
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76597
at_status=$? at_failed=false
 
76598
$at_check_filter
 
76599
echo stderr:; cat "$at_stderr"
 
76600
echo stdout:; tee stdout <"$at_stdout"
 
76601
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76602
$at_failed && at_fn_log_failure
 
76603
$at_traceon; }
 
76604
 
 
76605
      cat stdout >> output
 
76606
 
 
76607
   { set +x
 
76608
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76609
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76610
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76611
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76612
at_status=$? at_failed=false
 
76613
$at_check_filter
 
76614
echo stderr:; cat "$at_stderr"
 
76615
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
76616
" | \
 
76617
  $at_diff - "$at_stdout" || at_failed=:
 
76618
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76619
$at_failed && at_fn_log_failure
 
76620
$at_traceon; }
 
76621
 
 
76622
     set +x
 
76623
  $at_times_p && times >"$at_times_file"
 
76624
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76625
read at_status <"$at_status_file"
 
76626
#AT_STOP_894
 
76627
#AT_START_895
 
76628
at_fn_group_banner 895 'ovsdb-server.at:446' \
 
76629
  "equality wait with missing row" "                 " 61
 
76630
at_xfail=no
 
76631
(
 
76632
  $as_echo "895. $at_setup_line: testing $at_desc ..."
 
76633
  $at_traceon
 
76634
 
 
76635
 
 
76636
   cat >schema <<'_ATEOF'
 
76637
{"name": "ordinals",
 
76638
     "tables": {
 
76639
       "ordinals": {
 
76640
         "columns": {
 
76641
           "number": {"type": "integer"},
 
76642
           "name": {"type": "string"}},
 
76643
         "indexes": [["number"]]}},
 
76644
     "version": "5.1.3",
 
76645
     "cksum": "12345678 9"}
 
76646
_ATEOF
 
76647
 
 
76648
   { set +x
 
76649
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76650
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76651
( $at_check_trace; ovsdb-tool create db schema
 
76652
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76653
at_status=$? at_failed=false
 
76654
$at_check_filter
 
76655
echo stderr:; cat "$at_stderr"
 
76656
echo stdout:; tee stdout <"$at_stdout"
 
76657
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76658
$at_failed && at_fn_log_failure
 
76659
$at_traceon; }
 
76660
 
 
76661
   cat >txnfile <<'_ATEOF'
 
76662
ovsdb-client transact unix:socket '["ordinals",
 
76663
      {"op": "insert",
 
76664
       "table": "ordinals",
 
76665
       "row": {"number": 0, "name": "zero"}},
 
76666
      {"op": "insert",
 
76667
       "table": "ordinals",
 
76668
       "row": {"number": 1, "name": "one"}},
 
76669
      {"op": "wait",
 
76670
       "timeout": 0,
 
76671
       "table": "ordinals",
 
76672
       "where": [],
 
76673
       "columns": ["name", "number"],
 
76674
       "until": "==",
 
76675
       "rows": [{"name": "one", "number": 1}]}]'
 
76676
_ATEOF
 
76677
 
 
76678
      { set +x
 
76679
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76680
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76681
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76682
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76683
at_status=$? at_failed=false
 
76684
$at_check_filter
 
76685
echo stderr:; cat "$at_stderr"
 
76686
echo stdout:; tee stdout <"$at_stdout"
 
76687
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76688
$at_failed && at_fn_log_failure
 
76689
$at_traceon; }
 
76690
 
 
76691
      cat stdout >> output
 
76692
 
 
76693
   { set +x
 
76694
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76695
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76696
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76697
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76698
at_status=$? at_failed=false
 
76699
$at_check_filter
 
76700
echo stderr:; cat "$at_stderr"
 
76701
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
76702
" | \
 
76703
  $at_diff - "$at_stdout" || at_failed=:
 
76704
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76705
$at_failed && at_fn_log_failure
 
76706
$at_traceon; }
 
76707
 
 
76708
     set +x
 
76709
  $at_times_p && times >"$at_times_file"
 
76710
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76711
read at_status <"$at_status_file"
 
76712
#AT_STOP_895
 
76713
#AT_START_896
 
76714
at_fn_group_banner 896 'ovsdb-server.at:446' \
 
76715
  "inequality wait with correct rows" "              " 61
 
76716
at_xfail=no
 
76717
(
 
76718
  $as_echo "896. $at_setup_line: testing $at_desc ..."
 
76719
  $at_traceon
 
76720
 
 
76721
 
 
76722
   cat >schema <<'_ATEOF'
 
76723
{"name": "ordinals",
 
76724
     "tables": {
 
76725
       "ordinals": {
 
76726
         "columns": {
 
76727
           "number": {"type": "integer"},
 
76728
           "name": {"type": "string"}},
 
76729
         "indexes": [["number"]]}},
 
76730
     "version": "5.1.3",
 
76731
     "cksum": "12345678 9"}
 
76732
_ATEOF
 
76733
 
 
76734
   { set +x
 
76735
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76736
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76737
( $at_check_trace; ovsdb-tool create db schema
 
76738
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76739
at_status=$? at_failed=false
 
76740
$at_check_filter
 
76741
echo stderr:; cat "$at_stderr"
 
76742
echo stdout:; tee stdout <"$at_stdout"
 
76743
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76744
$at_failed && at_fn_log_failure
 
76745
$at_traceon; }
 
76746
 
 
76747
   cat >txnfile <<'_ATEOF'
 
76748
ovsdb-client transact unix:socket '["ordinals",
 
76749
      {"op": "insert",
 
76750
       "table": "ordinals",
 
76751
       "row": {"number": 0, "name": "zero"}},
 
76752
      {"op": "insert",
 
76753
       "table": "ordinals",
 
76754
       "row": {"number": 1, "name": "one"}},
 
76755
      {"op": "wait",
 
76756
       "timeout": 0,
 
76757
       "table": "ordinals",
 
76758
       "where": [],
 
76759
       "columns": ["name", "number"],
 
76760
       "until": "!=",
 
76761
       "rows": [{"name": "zero", "number": 0},
 
76762
                {"name": "one", "number": 1}]}]'
 
76763
_ATEOF
 
76764
 
 
76765
      { set +x
 
76766
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76767
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76768
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76769
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76770
at_status=$? at_failed=false
 
76771
$at_check_filter
 
76772
echo stderr:; cat "$at_stderr"
 
76773
echo stdout:; tee stdout <"$at_stdout"
 
76774
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76775
$at_failed && at_fn_log_failure
 
76776
$at_traceon; }
 
76777
 
 
76778
      cat stdout >> output
 
76779
 
 
76780
   { set +x
 
76781
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76782
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76783
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76784
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76785
at_status=$? at_failed=false
 
76786
$at_check_filter
 
76787
echo stderr:; cat "$at_stderr"
 
76788
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"\\\"wait\\\" timed out\",\"error\":\"timed out\"}]
 
76789
" | \
 
76790
  $at_diff - "$at_stdout" || at_failed=:
 
76791
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76792
$at_failed && at_fn_log_failure
 
76793
$at_traceon; }
 
76794
 
 
76795
     set +x
 
76796
  $at_times_p && times >"$at_times_file"
 
76797
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76798
read at_status <"$at_status_file"
 
76799
#AT_STOP_896
 
76800
#AT_START_897
 
76801
at_fn_group_banner 897 'ovsdb-server.at:446' \
 
76802
  "inequality wait with extra row" "                 " 61
 
76803
at_xfail=no
 
76804
(
 
76805
  $as_echo "897. $at_setup_line: testing $at_desc ..."
 
76806
  $at_traceon
 
76807
 
 
76808
 
 
76809
   cat >schema <<'_ATEOF'
 
76810
{"name": "ordinals",
 
76811
     "tables": {
 
76812
       "ordinals": {
 
76813
         "columns": {
 
76814
           "number": {"type": "integer"},
 
76815
           "name": {"type": "string"}},
 
76816
         "indexes": [["number"]]}},
 
76817
     "version": "5.1.3",
 
76818
     "cksum": "12345678 9"}
 
76819
_ATEOF
 
76820
 
 
76821
   { set +x
 
76822
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76823
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76824
( $at_check_trace; ovsdb-tool create db schema
 
76825
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76826
at_status=$? at_failed=false
 
76827
$at_check_filter
 
76828
echo stderr:; cat "$at_stderr"
 
76829
echo stdout:; tee stdout <"$at_stdout"
 
76830
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76831
$at_failed && at_fn_log_failure
 
76832
$at_traceon; }
 
76833
 
 
76834
   cat >txnfile <<'_ATEOF'
 
76835
ovsdb-client transact unix:socket '["ordinals",
 
76836
      {"op": "insert",
 
76837
       "table": "ordinals",
 
76838
       "row": {"number": 0, "name": "zero"}},
 
76839
      {"op": "insert",
 
76840
       "table": "ordinals",
 
76841
       "row": {"number": 1, "name": "one"}},
 
76842
      {"op": "wait",
 
76843
       "timeout": 0,
 
76844
       "table": "ordinals",
 
76845
       "where": [],
 
76846
       "columns": ["name", "number"],
 
76847
       "until": "!=",
 
76848
       "rows": [{"name": "zero", "number": 0},
 
76849
                {"name": "one", "number": 1},
 
76850
                {"name": "two", "number": 2}]}]'
 
76851
_ATEOF
 
76852
 
 
76853
      { set +x
 
76854
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76855
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76856
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76857
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76858
at_status=$? at_failed=false
 
76859
$at_check_filter
 
76860
echo stderr:; cat "$at_stderr"
 
76861
echo stdout:; tee stdout <"$at_stdout"
 
76862
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76863
$at_failed && at_fn_log_failure
 
76864
$at_traceon; }
 
76865
 
 
76866
      cat stdout >> output
 
76867
 
 
76868
   { set +x
 
76869
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76870
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76871
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76872
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76873
at_status=$? at_failed=false
 
76874
$at_check_filter
 
76875
echo stderr:; cat "$at_stderr"
 
76876
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
76877
" | \
 
76878
  $at_diff - "$at_stdout" || at_failed=:
 
76879
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76880
$at_failed && at_fn_log_failure
 
76881
$at_traceon; }
 
76882
 
 
76883
     set +x
 
76884
  $at_times_p && times >"$at_times_file"
 
76885
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76886
read at_status <"$at_status_file"
 
76887
#AT_STOP_897
 
76888
#AT_START_898
 
76889
at_fn_group_banner 898 'ovsdb-server.at:446' \
 
76890
  "inequality wait with missing row" "               " 61
 
76891
at_xfail=no
 
76892
(
 
76893
  $as_echo "898. $at_setup_line: testing $at_desc ..."
 
76894
  $at_traceon
 
76895
 
 
76896
 
 
76897
   cat >schema <<'_ATEOF'
 
76898
{"name": "ordinals",
 
76899
     "tables": {
 
76900
       "ordinals": {
 
76901
         "columns": {
 
76902
           "number": {"type": "integer"},
 
76903
           "name": {"type": "string"}},
 
76904
         "indexes": [["number"]]}},
 
76905
     "version": "5.1.3",
 
76906
     "cksum": "12345678 9"}
 
76907
_ATEOF
 
76908
 
 
76909
   { set +x
 
76910
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
76911
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
76912
( $at_check_trace; ovsdb-tool create db schema
 
76913
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76914
at_status=$? at_failed=false
 
76915
$at_check_filter
 
76916
echo stderr:; cat "$at_stderr"
 
76917
echo stdout:; tee stdout <"$at_stdout"
 
76918
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76919
$at_failed && at_fn_log_failure
 
76920
$at_traceon; }
 
76921
 
 
76922
   cat >txnfile <<'_ATEOF'
 
76923
ovsdb-client transact unix:socket '["ordinals",
 
76924
      {"op": "insert",
 
76925
       "table": "ordinals",
 
76926
       "row": {"number": 0, "name": "zero"}},
 
76927
      {"op": "insert",
 
76928
       "table": "ordinals",
 
76929
       "row": {"number": 1, "name": "one"}},
 
76930
      {"op": "wait",
 
76931
       "timeout": 0,
 
76932
       "table": "ordinals",
 
76933
       "where": [],
 
76934
       "columns": ["name", "number"],
 
76935
       "until": "!=",
 
76936
       "rows": [{"name": "one", "number": 1}]}]'
 
76937
_ATEOF
 
76938
 
 
76939
      { set +x
 
76940
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
76941
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
76942
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
76943
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76944
at_status=$? at_failed=false
 
76945
$at_check_filter
 
76946
echo stderr:; cat "$at_stderr"
 
76947
echo stdout:; tee stdout <"$at_stdout"
 
76948
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76949
$at_failed && at_fn_log_failure
 
76950
$at_traceon; }
 
76951
 
 
76952
      cat stdout >> output
 
76953
 
 
76954
   { set +x
 
76955
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
76956
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
76957
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
76958
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
76959
at_status=$? at_failed=false
 
76960
$at_check_filter
 
76961
echo stderr:; cat "$at_stderr"
 
76962
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{}]
 
76963
" | \
 
76964
  $at_diff - "$at_stdout" || at_failed=:
 
76965
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
76966
$at_failed && at_fn_log_failure
 
76967
$at_traceon; }
 
76968
 
 
76969
     set +x
 
76970
  $at_times_p && times >"$at_times_file"
 
76971
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
76972
read at_status <"$at_status_file"
 
76973
#AT_STOP_898
 
76974
#AT_START_899
 
76975
at_fn_group_banner 899 'ovsdb-server.at:446' \
 
76976
  "insert and update constraints" "                  " 61
 
76977
at_xfail=no
 
76978
(
 
76979
  $as_echo "899. $at_setup_line: testing $at_desc ..."
 
76980
  $at_traceon
 
76981
 
 
76982
 
 
76983
   cat >schema <<'_ATEOF'
 
76984
{"name": "constraints",
 
76985
     "tables": {
 
76986
       "a": {
 
76987
         "columns": {
 
76988
           "a": {"type": "integer"},
 
76989
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
76990
                            "min": 0, "max": "unlimited"}},
 
76991
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
76992
                            "min": 0, "max": "unlimited"}}}},
 
76993
       "b": {
 
76994
         "columns": {
 
76995
           "b": {"type": "integer"},
 
76996
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
76997
                            "min": 0, "max": "unlimited"}},
 
76998
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
76999
                            "min": 0, "max": "unlimited"}},
 
77000
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
77001
       "constrained": {
 
77002
         "columns": {
 
77003
           "positive": {"type": {"key": {"type": "integer",
 
77004
                                         "minInteger": 1}}}},
 
77005
         "maxRows": 1}}}
 
77006
_ATEOF
 
77007
 
 
77008
   { set +x
 
77009
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
77010
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
77011
( $at_check_trace; ovsdb-tool create db schema
 
77012
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77013
at_status=$? at_failed=false
 
77014
$at_check_filter
 
77015
echo stderr:; cat "$at_stderr"
 
77016
echo stdout:; tee stdout <"$at_stdout"
 
77017
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77018
$at_failed && at_fn_log_failure
 
77019
$at_traceon; }
 
77020
 
 
77021
   cat >txnfile <<'_ATEOF'
 
77022
ovsdb-client transact unix:socket '["constraints",
 
77023
      {"op": "insert",
 
77024
       "table": "constrained",
 
77025
       "row": {}}]'
 
77026
_ATEOF
 
77027
 
 
77028
      { set +x
 
77029
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77030
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77031
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77032
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77033
at_status=$? at_failed=false
 
77034
$at_check_filter
 
77035
echo stderr:; cat "$at_stderr"
 
77036
echo stdout:; tee stdout <"$at_stdout"
 
77037
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77038
$at_failed && at_fn_log_failure
 
77039
$at_traceon; }
 
77040
 
 
77041
      cat stdout >> output
 
77042
cat >txnfile <<'_ATEOF'
 
77043
ovsdb-client transact unix:socket '["constraints",
 
77044
      {"op": "insert",
 
77045
       "table": "constrained",
 
77046
       "row": {"positive": -1}}]'
 
77047
_ATEOF
 
77048
 
 
77049
      { set +x
 
77050
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77051
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77052
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77053
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77054
at_status=$? at_failed=false
 
77055
$at_check_filter
 
77056
echo stderr:; cat "$at_stderr"
 
77057
echo stdout:; tee stdout <"$at_stdout"
 
77058
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77059
$at_failed && at_fn_log_failure
 
77060
$at_traceon; }
 
77061
 
 
77062
      cat stdout >> output
 
77063
cat >txnfile <<'_ATEOF'
 
77064
ovsdb-client transact unix:socket '["constraints",
 
77065
      {"op": "update",
 
77066
       "table": "constrained",
 
77067
       "where": [],
 
77068
       "row": {"positive": -2}}]'
 
77069
_ATEOF
 
77070
 
 
77071
      { set +x
 
77072
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77073
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77074
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77075
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77076
at_status=$? at_failed=false
 
77077
$at_check_filter
 
77078
echo stderr:; cat "$at_stderr"
 
77079
echo stdout:; tee stdout <"$at_stdout"
 
77080
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77081
$at_failed && at_fn_log_failure
 
77082
$at_traceon; }
 
77083
 
 
77084
      cat stdout >> output
 
77085
cat >txnfile <<'_ATEOF'
 
77086
ovsdb-client transact unix:socket '["constraints",
 
77087
      {"op": "insert",
 
77088
       "table": "constrained",
 
77089
       "row": {"positive": 1}}]'
 
77090
_ATEOF
 
77091
 
 
77092
      { set +x
 
77093
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77094
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77095
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77096
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77097
at_status=$? at_failed=false
 
77098
$at_check_filter
 
77099
echo stderr:; cat "$at_stderr"
 
77100
echo stdout:; tee stdout <"$at_stdout"
 
77101
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77102
$at_failed && at_fn_log_failure
 
77103
$at_traceon; }
 
77104
 
 
77105
      cat stdout >> output
 
77106
cat >txnfile <<'_ATEOF'
 
77107
ovsdb-client transact unix:socket '["constraints",
 
77108
      {"op": "insert",
 
77109
       "table": "constrained",
 
77110
       "row": {"positive": 2}}]'
 
77111
_ATEOF
 
77112
 
 
77113
      { set +x
 
77114
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77115
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77116
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77117
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77118
at_status=$? at_failed=false
 
77119
$at_check_filter
 
77120
echo stderr:; cat "$at_stderr"
 
77121
echo stdout:; tee stdout <"$at_stdout"
 
77122
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77123
$at_failed && at_fn_log_failure
 
77124
$at_traceon; }
 
77125
 
 
77126
      cat stdout >> output
 
77127
 
 
77128
   { set +x
 
77129
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
77130
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
77131
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
77132
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77133
at_status=$? at_failed=false
 
77134
$at_check_filter
 
77135
echo stderr:; cat "$at_stderr"
 
77136
echo >>"$at_stdout"; $as_echo "[{\"details\":\"0 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
77137
[{\"details\":\"-1 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
77138
[{\"details\":\"-2 is less than minimum allowed value 1\",\"error\":\"constraint violation\"}]
 
77139
[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
77140
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"transaction causes \\\"constrained\\\" table to contain 2 rows, greater than the schema-defined limit of 1 row(s)\",\"error\":\"constraint violation\"}]
 
77141
" | \
 
77142
  $at_diff - "$at_stdout" || at_failed=:
 
77143
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77144
$at_failed && at_fn_log_failure
 
77145
$at_traceon; }
 
77146
 
 
77147
     set +x
 
77148
  $at_times_p && times >"$at_times_file"
 
77149
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
77150
read at_status <"$at_status_file"
 
77151
#AT_STOP_899
 
77152
#AT_START_900
 
77153
at_fn_group_banner 900 'ovsdb-server.at:446' \
 
77154
  "index uniqueness checking" "                      " 61
 
77155
at_xfail=no
 
77156
(
 
77157
  $as_echo "900. $at_setup_line: testing $at_desc ..."
 
77158
  $at_traceon
 
77159
 
 
77160
 
 
77161
   cat >schema <<'_ATEOF'
 
77162
{"name": "ordinals",
 
77163
     "tables": {
 
77164
       "ordinals": {
 
77165
         "columns": {
 
77166
           "number": {"type": "integer"},
 
77167
           "name": {"type": "string"}},
 
77168
         "indexes": [["number"]]}},
 
77169
     "version": "5.1.3",
 
77170
     "cksum": "12345678 9"}
 
77171
_ATEOF
 
77172
 
 
77173
   { set +x
 
77174
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
77175
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
77176
( $at_check_trace; ovsdb-tool create db schema
 
77177
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77178
at_status=$? at_failed=false
 
77179
$at_check_filter
 
77180
echo stderr:; cat "$at_stderr"
 
77181
echo stdout:; tee stdout <"$at_stdout"
 
77182
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77183
$at_failed && at_fn_log_failure
 
77184
$at_traceon; }
 
77185
 
 
77186
   cat >txnfile <<'_ATEOF'
 
77187
ovsdb-client transact unix:socket '["ordinals",
 
77188
      {"op": "insert",
 
77189
       "table": "ordinals",
 
77190
       "row": {"number": 1, "name": "one"}}]'
 
77191
_ATEOF
 
77192
 
 
77193
      { set +x
 
77194
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77195
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77196
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77197
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77198
at_status=$? at_failed=false
 
77199
$at_check_filter
 
77200
echo stderr:; cat "$at_stderr"
 
77201
echo stdout:; tee stdout <"$at_stdout"
 
77202
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77203
$at_failed && at_fn_log_failure
 
77204
$at_traceon; }
 
77205
 
 
77206
      cat stdout >> output
 
77207
cat >txnfile <<'_ATEOF'
 
77208
ovsdb-client transact unix:socket '   ["ordinals",
 
77209
      {"op": "insert",
 
77210
       "table": "ordinals",
 
77211
       "row": {"number": 1, "name": "another one"}}]'
 
77212
_ATEOF
 
77213
 
 
77214
      { set +x
 
77215
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77216
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77217
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77218
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77219
at_status=$? at_failed=false
 
77220
$at_check_filter
 
77221
echo stderr:; cat "$at_stderr"
 
77222
echo stdout:; tee stdout <"$at_stdout"
 
77223
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77224
$at_failed && at_fn_log_failure
 
77225
$at_traceon; }
 
77226
 
 
77227
      cat stdout >> output
 
77228
cat >txnfile <<'_ATEOF'
 
77229
ovsdb-client transact unix:socket '   ["ordinals",
 
77230
      {"op": "insert",
 
77231
       "table": "ordinals",
 
77232
       "row": {"number": 1, "name": "another one"}},
 
77233
      {"op": "delete",
 
77234
       "table": "ordinals",
 
77235
       "where": [["name", "==", "one"]]}]'
 
77236
_ATEOF
 
77237
 
 
77238
      { set +x
 
77239
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77240
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77241
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77243
at_status=$? at_failed=false
 
77244
$at_check_filter
 
77245
echo stderr:; cat "$at_stderr"
 
77246
echo stdout:; tee stdout <"$at_stdout"
 
77247
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77248
$at_failed && at_fn_log_failure
 
77249
$at_traceon; }
 
77250
 
 
77251
      cat stdout >> output
 
77252
cat >txnfile <<'_ATEOF'
 
77253
ovsdb-client transact unix:socket '   ["ordinals",
 
77254
      {"op": "delete",
 
77255
       "table": "ordinals",
 
77256
       "where": []},
 
77257
      {"op": "insert",
 
77258
       "table": "ordinals",
 
77259
       "row": {"number": 1, "name": "one"}},
 
77260
      {"op": "insert",
 
77261
       "table": "ordinals",
 
77262
       "row": {"number": 1, "name": "still another one"}}]'
 
77263
_ATEOF
 
77264
 
 
77265
      { set +x
 
77266
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77267
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77268
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77269
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77270
at_status=$? at_failed=false
 
77271
$at_check_filter
 
77272
echo stderr:; cat "$at_stderr"
 
77273
echo stdout:; tee stdout <"$at_stdout"
 
77274
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77275
$at_failed && at_fn_log_failure
 
77276
$at_traceon; }
 
77277
 
 
77278
      cat stdout >> output
 
77279
cat >txnfile <<'_ATEOF'
 
77280
ovsdb-client transact unix:socket '   ["ordinals",
 
77281
      {"op": "insert",
 
77282
       "table": "ordinals",
 
77283
       "row": {"number": 2, "name": "two"}}]'
 
77284
_ATEOF
 
77285
 
 
77286
      { set +x
 
77287
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77288
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77289
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77291
at_status=$? at_failed=false
 
77292
$at_check_filter
 
77293
echo stderr:; cat "$at_stderr"
 
77294
echo stdout:; tee stdout <"$at_stdout"
 
77295
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77296
$at_failed && at_fn_log_failure
 
77297
$at_traceon; }
 
77298
 
 
77299
      cat stdout >> output
 
77300
cat >txnfile <<'_ATEOF'
 
77301
ovsdb-client transact unix:socket '   ["ordinals",
 
77302
      {"op": "update",
 
77303
       "table": "ordinals",
 
77304
       "where": [],
 
77305
       "row": {"number": 3}}]'
 
77306
_ATEOF
 
77307
 
 
77308
      { set +x
 
77309
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77310
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77311
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77312
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77313
at_status=$? at_failed=false
 
77314
$at_check_filter
 
77315
echo stderr:; cat "$at_stderr"
 
77316
echo stdout:; tee stdout <"$at_stdout"
 
77317
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77318
$at_failed && at_fn_log_failure
 
77319
$at_traceon; }
 
77320
 
 
77321
      cat stdout >> output
 
77322
cat >txnfile <<'_ATEOF'
 
77323
ovsdb-client transact unix:socket '   ["ordinals",
 
77324
      {"op": "update",
 
77325
       "table": "ordinals",
 
77326
       "where": [["number", "==", 1]],
 
77327
       "row": {"number": 2, "name": "old two"}},
 
77328
      {"op": "update",
 
77329
       "table": "ordinals",
 
77330
       "where": [["name", "==", "two"]],
 
77331
       "row": {"number": 1, "name": "old one"}}]'
 
77332
_ATEOF
 
77333
 
 
77334
      { set +x
 
77335
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77336
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77337
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77338
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77339
at_status=$? at_failed=false
 
77340
$at_check_filter
 
77341
echo stderr:; cat "$at_stderr"
 
77342
echo stdout:; tee stdout <"$at_stdout"
 
77343
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77344
$at_failed && at_fn_log_failure
 
77345
$at_traceon; }
 
77346
 
 
77347
      cat stdout >> output
 
77348
cat >txnfile <<'_ATEOF'
 
77349
ovsdb-client transact unix:socket '   ["ordinals",
 
77350
      {"op": "mutate",
 
77351
       "table": "ordinals",
 
77352
       "where": [],
 
77353
       "mutations": [["number", "*=", 10]]},
 
77354
      {"op": "insert",
 
77355
       "table": "ordinals",
 
77356
       "row": {"number": 1, "name": "new one"}},
 
77357
      {"op": "insert",
 
77358
       "table": "ordinals",
 
77359
       "row": {"number": 2, "name": "new two"}},
 
77360
      {"op": "select",
 
77361
       "table": "ordinals",
 
77362
       "where": [],
 
77363
       "columns": ["number", "name"],
 
77364
       "sort": ["number"]}]'
 
77365
_ATEOF
 
77366
 
 
77367
      { set +x
 
77368
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77369
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77370
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77371
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77372
at_status=$? at_failed=false
 
77373
$at_check_filter
 
77374
echo stderr:; cat "$at_stderr"
 
77375
echo stdout:; tee stdout <"$at_stdout"
 
77376
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77377
$at_failed && at_fn_log_failure
 
77378
$at_traceon; }
 
77379
 
 
77380
      cat stdout >> output
 
77381
 
 
77382
   { set +x
 
77383
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
77384
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
77385
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
77386
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77387
at_status=$? at_failed=false
 
77388
$at_check_filter
 
77389
echo stderr:; cat "$at_stderr"
 
77390
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
77391
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <0>, existed in the database before this transaction and was not modified by the transaction.  Second row, with UUID <1>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
77392
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"count\":1}]
 
77393
[{\"count\":1},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (1) for index on column \\\"number\\\".  First row, with UUID <4>, was inserted by this transaction.  Second row, with UUID <3>, was inserted by this transaction.\",\"error\":\"constraint violation\"}]
 
77394
[{\"uuid\":[\"uuid\",\"<5>\"]}]
 
77395
[{\"count\":2},{\"details\":\"Transaction causes multiple rows in \\\"ordinals\\\" table to have identical values (3) for index on column \\\"number\\\".  First row, with UUID <5>, had the following index values before the transaction: 2.  Second row, with UUID <2>, had the following index values before the transaction: 1.\",\"error\":\"constraint violation\"}]
 
77396
[{\"count\":1},{\"count\":1}]
 
77397
[{\"count\":2},{\"uuid\":[\"uuid\",\"<6>\"]},{\"uuid\":[\"uuid\",\"<7>\"]},{\"rows\":[{\"name\":\"new one\",\"number\":1},{\"name\":\"new two\",\"number\":2},{\"name\":\"old one\",\"number\":10},{\"name\":\"old two\",\"number\":20}]}]
 
77398
" | \
 
77399
  $at_diff - "$at_stdout" || at_failed=:
 
77400
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77401
$at_failed && at_fn_log_failure
 
77402
$at_traceon; }
 
77403
 
 
77404
     set +x
 
77405
  $at_times_p && times >"$at_times_file"
 
77406
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
77407
read at_status <"$at_status_file"
 
77408
#AT_STOP_900
 
77409
#AT_START_901
 
77410
at_fn_group_banner 901 'ovsdb-server.at:446' \
 
77411
  "referential integrity -- simple" "                " 61
 
77412
at_xfail=no
 
77413
(
 
77414
  $as_echo "901. $at_setup_line: testing $at_desc ..."
 
77415
  $at_traceon
 
77416
 
 
77417
 
 
77418
   cat >schema <<'_ATEOF'
 
77419
{"name": "constraints",
 
77420
     "tables": {
 
77421
       "a": {
 
77422
         "columns": {
 
77423
           "a": {"type": "integer"},
 
77424
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
77425
                            "min": 0, "max": "unlimited"}},
 
77426
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
77427
                            "min": 0, "max": "unlimited"}}}},
 
77428
       "b": {
 
77429
         "columns": {
 
77430
           "b": {"type": "integer"},
 
77431
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
77432
                            "min": 0, "max": "unlimited"}},
 
77433
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
77434
                            "min": 0, "max": "unlimited"}},
 
77435
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
77436
       "constrained": {
 
77437
         "columns": {
 
77438
           "positive": {"type": {"key": {"type": "integer",
 
77439
                                         "minInteger": 1}}}},
 
77440
         "maxRows": 1}}}
 
77441
_ATEOF
 
77442
 
 
77443
   { set +x
 
77444
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
77445
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
77446
( $at_check_trace; ovsdb-tool create db schema
 
77447
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77448
at_status=$? at_failed=false
 
77449
$at_check_filter
 
77450
echo stderr:; cat "$at_stderr"
 
77451
echo stdout:; tee stdout <"$at_stdout"
 
77452
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77453
$at_failed && at_fn_log_failure
 
77454
$at_traceon; }
 
77455
 
 
77456
   cat >txnfile <<'_ATEOF'
 
77457
ovsdb-client transact unix:socket '["constraints",
 
77458
      {"op": "insert",
 
77459
       "table": "b",
 
77460
       "row": {"b": 1},
 
77461
       "uuid-name": "brow"},
 
77462
      {"op": "insert",
 
77463
       "table": "a",
 
77464
       "row": {"a": 0,
 
77465
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
77466
      {"op": "insert",
 
77467
       "table": "a",
 
77468
       "row": {"a": 1,
 
77469
               "a2b": ["set", [["named-uuid", "brow"]]]}},
 
77470
      {"op": "insert",
 
77471
       "table": "a",
 
77472
       "row": {"a": 2,
 
77473
               "a2b": ["set", [["named-uuid", "brow"]]]}}]'
 
77474
_ATEOF
 
77475
 
 
77476
      { set +x
 
77477
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77478
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77479
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77480
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77481
at_status=$? at_failed=false
 
77482
$at_check_filter
 
77483
echo stderr:; cat "$at_stderr"
 
77484
echo stdout:; tee stdout <"$at_stdout"
 
77485
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77486
$at_failed && at_fn_log_failure
 
77487
$at_traceon; }
 
77488
 
 
77489
      cat stdout >> output
 
77490
cat >txnfile <<'_ATEOF'
 
77491
ovsdb-client transact unix:socket '["constraints",
 
77492
      {"op": "delete",
 
77493
       "table": "b",
 
77494
       "where": []}]'
 
77495
_ATEOF
 
77496
 
 
77497
      { set +x
 
77498
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77499
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77500
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77501
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77502
at_status=$? at_failed=false
 
77503
$at_check_filter
 
77504
echo stderr:; cat "$at_stderr"
 
77505
echo stdout:; tee stdout <"$at_stdout"
 
77506
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77507
$at_failed && at_fn_log_failure
 
77508
$at_traceon; }
 
77509
 
 
77510
      cat stdout >> output
 
77511
cat >txnfile <<'_ATEOF'
 
77512
ovsdb-client transact unix:socket '   ["constraints",
 
77513
      {"op": "mutate",
 
77514
       "table": "b",
 
77515
       "where": [],
 
77516
       "mutations": [["x", "delete", 0]]}]'
 
77517
_ATEOF
 
77518
 
 
77519
      { set +x
 
77520
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77521
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77522
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77524
at_status=$? at_failed=false
 
77525
$at_check_filter
 
77526
echo stderr:; cat "$at_stderr"
 
77527
echo stdout:; tee stdout <"$at_stdout"
 
77528
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77529
$at_failed && at_fn_log_failure
 
77530
$at_traceon; }
 
77531
 
 
77532
      cat stdout >> output
 
77533
cat >txnfile <<'_ATEOF'
 
77534
ovsdb-client transact unix:socket '["constraints",
 
77535
      {"op": "delete",
 
77536
       "table": "a",
 
77537
       "where": [["a", "==", 0]]}]'
 
77538
_ATEOF
 
77539
 
 
77540
      { set +x
 
77541
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77542
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77543
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77544
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77545
at_status=$? at_failed=false
 
77546
$at_check_filter
 
77547
echo stderr:; cat "$at_stderr"
 
77548
echo stdout:; tee stdout <"$at_stdout"
 
77549
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77550
$at_failed && at_fn_log_failure
 
77551
$at_traceon; }
 
77552
 
 
77553
      cat stdout >> output
 
77554
cat >txnfile <<'_ATEOF'
 
77555
ovsdb-client transact unix:socket '["constraints",
 
77556
      {"op": "delete",
 
77557
       "table": "b",
 
77558
       "where": []}]'
 
77559
_ATEOF
 
77560
 
 
77561
      { set +x
 
77562
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77563
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77564
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77566
at_status=$? at_failed=false
 
77567
$at_check_filter
 
77568
echo stderr:; cat "$at_stderr"
 
77569
echo stdout:; tee stdout <"$at_stdout"
 
77570
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77571
$at_failed && at_fn_log_failure
 
77572
$at_traceon; }
 
77573
 
 
77574
      cat stdout >> output
 
77575
cat >txnfile <<'_ATEOF'
 
77576
ovsdb-client transact unix:socket '["constraints",
 
77577
      {"op": "delete",
 
77578
       "table": "a",
 
77579
       "where": [["a", "==", 1]]}]'
 
77580
_ATEOF
 
77581
 
 
77582
      { set +x
 
77583
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77584
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77585
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77586
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77587
at_status=$? at_failed=false
 
77588
$at_check_filter
 
77589
echo stderr:; cat "$at_stderr"
 
77590
echo stdout:; tee stdout <"$at_stdout"
 
77591
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77592
$at_failed && at_fn_log_failure
 
77593
$at_traceon; }
 
77594
 
 
77595
      cat stdout >> output
 
77596
cat >txnfile <<'_ATEOF'
 
77597
ovsdb-client transact unix:socket '["constraints",
 
77598
      {"op": "delete",
 
77599
       "table": "b",
 
77600
       "where": []}]'
 
77601
_ATEOF
 
77602
 
 
77603
      { set +x
 
77604
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77605
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77606
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77607
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77608
at_status=$? at_failed=false
 
77609
$at_check_filter
 
77610
echo stderr:; cat "$at_stderr"
 
77611
echo stdout:; tee stdout <"$at_stdout"
 
77612
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77613
$at_failed && at_fn_log_failure
 
77614
$at_traceon; }
 
77615
 
 
77616
      cat stdout >> output
 
77617
cat >txnfile <<'_ATEOF'
 
77618
ovsdb-client transact unix:socket '["constraints",
 
77619
      {"op": "delete",
 
77620
       "table": "a",
 
77621
       "where": [["a", "==", 2]]}]'
 
77622
_ATEOF
 
77623
 
 
77624
      { set +x
 
77625
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77626
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77627
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77628
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77629
at_status=$? at_failed=false
 
77630
$at_check_filter
 
77631
echo stderr:; cat "$at_stderr"
 
77632
echo stdout:; tee stdout <"$at_stdout"
 
77633
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77634
$at_failed && at_fn_log_failure
 
77635
$at_traceon; }
 
77636
 
 
77637
      cat stdout >> output
 
77638
cat >txnfile <<'_ATEOF'
 
77639
ovsdb-client transact unix:socket '["constraints",
 
77640
      {"op": "delete",
 
77641
       "table": "b",
 
77642
       "where": []}]'
 
77643
_ATEOF
 
77644
 
 
77645
      { set +x
 
77646
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77647
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77648
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77649
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77650
at_status=$? at_failed=false
 
77651
$at_check_filter
 
77652
echo stderr:; cat "$at_stderr"
 
77653
echo stdout:; tee stdout <"$at_stdout"
 
77654
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77655
$at_failed && at_fn_log_failure
 
77656
$at_traceon; }
 
77657
 
 
77658
      cat stdout >> output
 
77659
 
 
77660
   { set +x
 
77661
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
77662
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
77663
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
77664
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77665
at_status=$? at_failed=false
 
77666
$at_check_filter
 
77667
echo stderr:; cat "$at_stderr"
 
77668
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]
 
77669
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 3 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
77670
[{\"details\":\"Attempted to store 0 elements in set of 1 to 2 integers.\",\"error\":\"constraint violation\"}]
 
77671
[{\"count\":1}]
 
77672
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 2 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
77673
[{\"count\":1}]
 
77674
[{\"count\":1},{\"details\":\"cannot delete b row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
77675
[{\"count\":1}]
 
77676
[{\"count\":1}]
 
77677
" | \
 
77678
  $at_diff - "$at_stdout" || at_failed=:
 
77679
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77680
$at_failed && at_fn_log_failure
 
77681
$at_traceon; }
 
77682
 
 
77683
     set +x
 
77684
  $at_times_p && times >"$at_times_file"
 
77685
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
77686
read at_status <"$at_status_file"
 
77687
#AT_STOP_901
 
77688
#AT_START_902
 
77689
at_fn_group_banner 902 'ovsdb-server.at:446' \
 
77690
  "referential integrity -- mutual references" "     " 61
 
77691
at_xfail=no
 
77692
(
 
77693
  $as_echo "902. $at_setup_line: testing $at_desc ..."
 
77694
  $at_traceon
 
77695
 
 
77696
 
 
77697
   cat >schema <<'_ATEOF'
 
77698
{"name": "constraints",
 
77699
     "tables": {
 
77700
       "a": {
 
77701
         "columns": {
 
77702
           "a": {"type": "integer"},
 
77703
           "a2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
77704
                            "min": 0, "max": "unlimited"}},
 
77705
           "a2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
77706
                            "min": 0, "max": "unlimited"}}}},
 
77707
       "b": {
 
77708
         "columns": {
 
77709
           "b": {"type": "integer"},
 
77710
           "b2a": {"type": {"key": {"type": "uuid", "refTable": "a"},
 
77711
                            "min": 0, "max": "unlimited"}},
 
77712
           "b2b": {"type": {"key": {"type": "uuid", "refTable": "b"},
 
77713
                            "min": 0, "max": "unlimited"}},
 
77714
           "x": {"type": {"key": "integer", "min": 1, "max": 2}}}},
 
77715
       "constrained": {
 
77716
         "columns": {
 
77717
           "positive": {"type": {"key": {"type": "integer",
 
77718
                                         "minInteger": 1}}}},
 
77719
         "maxRows": 1}}}
 
77720
_ATEOF
 
77721
 
 
77722
   { set +x
 
77723
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
77724
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
77725
( $at_check_trace; ovsdb-tool create db schema
 
77726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77727
at_status=$? at_failed=false
 
77728
$at_check_filter
 
77729
echo stderr:; cat "$at_stderr"
 
77730
echo stdout:; tee stdout <"$at_stdout"
 
77731
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77732
$at_failed && at_fn_log_failure
 
77733
$at_traceon; }
 
77734
 
 
77735
   cat >txnfile <<'_ATEOF'
 
77736
ovsdb-client transact unix:socket '["constraints",
 
77737
      {"op": "insert",
 
77738
       "table": "a",
 
77739
       "row": {"a": 0,
 
77740
               "a2b": ["set", [["named-uuid", "row2"]]],
 
77741
               "a2a": ["set", [["named-uuid", "row1"]]]},
 
77742
       "uuid-name": "row1"},
 
77743
      {"op": "insert",
 
77744
       "table": "b",
 
77745
       "row": {"b": 1,
 
77746
               "b2b": ["set", [["named-uuid", "row2"]]],
 
77747
               "b2a": ["set", [["named-uuid", "row1"]]]},
 
77748
       "uuid-name": "row2"}]'
 
77749
_ATEOF
 
77750
 
 
77751
      { set +x
 
77752
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77753
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77754
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77755
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77756
at_status=$? at_failed=false
 
77757
$at_check_filter
 
77758
echo stderr:; cat "$at_stderr"
 
77759
echo stdout:; tee stdout <"$at_stdout"
 
77760
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77761
$at_failed && at_fn_log_failure
 
77762
$at_traceon; }
 
77763
 
 
77764
      cat stdout >> output
 
77765
cat >txnfile <<'_ATEOF'
 
77766
ovsdb-client transact unix:socket '["constraints",
 
77767
      {"op": "insert",
 
77768
       "table": "a",
 
77769
       "row": {"a2b": ["set", [["uuid", "b516b960-5b19-4fc2-bb82-fe1cbd6d0241"]]]}}]'
 
77770
_ATEOF
 
77771
 
 
77772
      { set +x
 
77773
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77774
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77775
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77776
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77777
at_status=$? at_failed=false
 
77778
$at_check_filter
 
77779
echo stderr:; cat "$at_stderr"
 
77780
echo stdout:; tee stdout <"$at_stdout"
 
77781
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77782
$at_failed && at_fn_log_failure
 
77783
$at_traceon; }
 
77784
 
 
77785
      cat stdout >> output
 
77786
cat >txnfile <<'_ATEOF'
 
77787
ovsdb-client transact unix:socket '["constraints",
 
77788
      {"op": "delete",
 
77789
       "table": "a",
 
77790
       "where": [["a", "==", 0]]}]'
 
77791
_ATEOF
 
77792
 
 
77793
      { set +x
 
77794
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77795
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77796
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77797
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77798
at_status=$? at_failed=false
 
77799
$at_check_filter
 
77800
echo stderr:; cat "$at_stderr"
 
77801
echo stdout:; tee stdout <"$at_stdout"
 
77802
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77803
$at_failed && at_fn_log_failure
 
77804
$at_traceon; }
 
77805
 
 
77806
      cat stdout >> output
 
77807
cat >txnfile <<'_ATEOF'
 
77808
ovsdb-client transact unix:socket '["constraints",
 
77809
      {"op": "delete",
 
77810
       "table": "b",
 
77811
       "where": [["b", "==", 1]]}]'
 
77812
_ATEOF
 
77813
 
 
77814
      { set +x
 
77815
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77816
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77817
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77818
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77819
at_status=$? at_failed=false
 
77820
$at_check_filter
 
77821
echo stderr:; cat "$at_stderr"
 
77822
echo stdout:; tee stdout <"$at_stdout"
 
77823
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77824
$at_failed && at_fn_log_failure
 
77825
$at_traceon; }
 
77826
 
 
77827
      cat stdout >> output
 
77828
cat >txnfile <<'_ATEOF'
 
77829
ovsdb-client transact unix:socket '   ["constraints",
 
77830
      {"op": "delete",
 
77831
       "table": "a",
 
77832
       "where": [["a", "==", 0]]}]'
 
77833
_ATEOF
 
77834
 
 
77835
      { set +x
 
77836
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77837
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77838
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77839
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77840
at_status=$? at_failed=false
 
77841
$at_check_filter
 
77842
echo stderr:; cat "$at_stderr"
 
77843
echo stdout:; tee stdout <"$at_stdout"
 
77844
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77845
$at_failed && at_fn_log_failure
 
77846
$at_traceon; }
 
77847
 
 
77848
      cat stdout >> output
 
77849
cat >txnfile <<'_ATEOF'
 
77850
ovsdb-client transact unix:socket '["constraints",
 
77851
      {"op": "delete",
 
77852
       "table": "b",
 
77853
       "where": [["b", "==", 1]]}]'
 
77854
_ATEOF
 
77855
 
 
77856
      { set +x
 
77857
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77858
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77859
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77860
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77861
at_status=$? at_failed=false
 
77862
$at_check_filter
 
77863
echo stderr:; cat "$at_stderr"
 
77864
echo stdout:; tee stdout <"$at_stdout"
 
77865
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77866
$at_failed && at_fn_log_failure
 
77867
$at_traceon; }
 
77868
 
 
77869
      cat stdout >> output
 
77870
cat >txnfile <<'_ATEOF'
 
77871
ovsdb-client transact unix:socket '["constraints",
 
77872
      {"op": "delete",
 
77873
       "table": "a",
 
77874
       "where": [["a", "==", 0]]},
 
77875
      {"op": "delete",
 
77876
       "table": "b",
 
77877
       "where": [["b", "==", 1]]}]'
 
77878
_ATEOF
 
77879
 
 
77880
      { set +x
 
77881
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
77882
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
77883
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
77884
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77885
at_status=$? at_failed=false
 
77886
$at_check_filter
 
77887
echo stderr:; cat "$at_stderr"
 
77888
echo stdout:; tee stdout <"$at_stdout"
 
77889
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77890
$at_failed && at_fn_log_failure
 
77891
$at_traceon; }
 
77892
 
 
77893
      cat stdout >> output
 
77894
 
 
77895
   { set +x
 
77896
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
77897
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
77898
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
77899
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77900
at_status=$? at_failed=false
 
77901
$at_check_filter
 
77902
echo stderr:; cat "$at_stderr"
 
77903
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]
 
77904
[{\"uuid\":[\"uuid\",\"<2>\"]},{\"details\":\"Table a column a2b row <2> references nonexistent row <3> in table b.\",\"error\":\"referential integrity violation\"}]
 
77905
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
77906
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
77907
[{\"count\":1},{\"details\":\"cannot delete a row <0> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
77908
[{\"count\":1},{\"details\":\"cannot delete b row <1> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]
 
77909
[{\"count\":1},{\"count\":1}]
 
77910
" | \
 
77911
  $at_diff - "$at_stdout" || at_failed=:
 
77912
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77913
$at_failed && at_fn_log_failure
 
77914
$at_traceon; }
 
77915
 
 
77916
     set +x
 
77917
  $at_times_p && times >"$at_times_file"
 
77918
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
77919
read at_status <"$at_status_file"
 
77920
#AT_STOP_902
 
77921
#AT_START_903
 
77922
at_fn_group_banner 903 'ovsdb-server.at:446' \
 
77923
  "weak references" "                                " 61
 
77924
at_xfail=no
 
77925
(
 
77926
  $as_echo "903. $at_setup_line: testing $at_desc ..."
 
77927
  $at_traceon
 
77928
 
 
77929
 
 
77930
   cat >schema <<'_ATEOF'
 
77931
{"name": "weak",
 
77932
     "tables": {
 
77933
       "a": {
 
77934
         "columns": {
 
77935
           "a": {"type": "integer"},
 
77936
           "a2a": {"type": {"key": {"type": "uuid",
 
77937
                                    "refTable": "a",
 
77938
                                    "refType": "weak"},
 
77939
                            "min": 0, "max": "unlimited"}},
 
77940
           "a2a1": {"type": {"key": {"type": "uuid",
 
77941
                                     "refTable": "a",
 
77942
                                     "refType": "weak"}}},
 
77943
           "a2b": {"type": {"key": {"type": "uuid",
 
77944
                                    "refTable": "b",
 
77945
                                    "refType": "weak"}}}}},
 
77946
       "b": {
 
77947
         "columns": {
 
77948
           "b": {"type": "integer"},
 
77949
           "b2a": {"type": {"key": {"type": "uuid",
 
77950
                                    "refTable": "a",
 
77951
                                    "refType": "weak"},
 
77952
                            "min": 0, "max": "unlimited"}}}}}}
 
77953
_ATEOF
 
77954
 
 
77955
   { set +x
 
77956
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
77957
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
77958
( $at_check_trace; ovsdb-tool create db schema
 
77959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
77960
at_status=$? at_failed=false
 
77961
$at_check_filter
 
77962
echo stderr:; cat "$at_stderr"
 
77963
echo stdout:; tee stdout <"$at_stdout"
 
77964
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
77965
$at_failed && at_fn_log_failure
 
77966
$at_traceon; }
 
77967
 
 
77968
   cat >txnfile <<'_ATEOF'
 
77969
ovsdb-client transact unix:socket '["weak",
 
77970
      {"op": "insert",
 
77971
       "table": "a",
 
77972
       "row": {"a": 0,
 
77973
               "a2a": ["set", [["named-uuid", "row1"],
 
77974
                               ["named-uuid", "row2"],
 
77975
                               ["uuid", "0e767b36-6822-4044-8307-d58467e04669"]]],
 
77976
               "a2a1": ["named-uuid", "row1"],
 
77977
               "a2b": ["named-uuid", "row3"]},
 
77978
       "uuid-name": "row1"},
 
77979
      {"op": "insert",
 
77980
       "table": "a",
 
77981
       "row": {"a": 1,
 
77982
               "a2a": ["set", [["named-uuid", "row1"],
 
77983
                               ["named-uuid", "row2"]]],
 
77984
               "a2a1": ["named-uuid", "row2"],
 
77985
               "a2b": ["named-uuid", "row3"]},
 
77986
       "uuid-name": "row2"},
 
77987
      {"op": "insert",
 
77988
       "table": "a",
 
77989
       "row": {"a": 2,
 
77990
               "a2a": ["set", [["named-uuid", "row1"],
 
77991
                               ["named-uuid", "row2"]]],
 
77992
               "a2a1": ["named-uuid", "row2"],
 
77993
               "a2b": ["named-uuid", "row4"]}},
 
77994
      {"op": "insert",
 
77995
       "table": "b",
 
77996
       "row": {"b": 2,
 
77997
               "b2a": ["named-uuid", "row1"]},
 
77998
       "uuid-name": "row3"},
 
77999
      {"op": "insert",
 
78000
       "table": "b",
 
78001
       "row": {"b": 3,
 
78002
               "b2a": ["named-uuid", "row2"]},
 
78003
       "uuid-name": "row4"}]'
 
78004
_ATEOF
 
78005
 
 
78006
      { set +x
 
78007
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78008
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78009
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78010
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78011
at_status=$? at_failed=false
 
78012
$at_check_filter
 
78013
echo stderr:; cat "$at_stderr"
 
78014
echo stdout:; tee stdout <"$at_stdout"
 
78015
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78016
$at_failed && at_fn_log_failure
 
78017
$at_traceon; }
 
78018
 
 
78019
      cat stdout >> output
 
78020
cat >txnfile <<'_ATEOF'
 
78021
ovsdb-client transact unix:socket '      ["weak",
 
78022
      {"op": "select",
 
78023
       "table": "a",
 
78024
       "where": [],
 
78025
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
78026
       "sort": ["a"]}]'
 
78027
_ATEOF
 
78028
 
 
78029
      { set +x
 
78030
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78031
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78032
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78033
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78034
at_status=$? at_failed=false
 
78035
$at_check_filter
 
78036
echo stderr:; cat "$at_stderr"
 
78037
echo stdout:; tee stdout <"$at_stdout"
 
78038
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78039
$at_failed && at_fn_log_failure
 
78040
$at_traceon; }
 
78041
 
 
78042
      cat stdout >> output
 
78043
cat >txnfile <<'_ATEOF'
 
78044
ovsdb-client transact unix:socket '["weak",
 
78045
      {"op": "select",
 
78046
       "table": "b",
 
78047
       "where": [],
 
78048
       "columns": ["_uuid", "b", "b2a"],
 
78049
       "sort": ["b"]}]'
 
78050
_ATEOF
 
78051
 
 
78052
      { set +x
 
78053
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78054
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78055
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78056
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78057
at_status=$? at_failed=false
 
78058
$at_check_filter
 
78059
echo stderr:; cat "$at_stderr"
 
78060
echo stdout:; tee stdout <"$at_stdout"
 
78061
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78062
$at_failed && at_fn_log_failure
 
78063
$at_traceon; }
 
78064
 
 
78065
      cat stdout >> output
 
78066
cat >txnfile <<'_ATEOF'
 
78067
ovsdb-client transact unix:socket '      ["weak",
 
78068
      {"op": "insert",
 
78069
       "table": "a",
 
78070
       "row": {"a2a1": ["named-uuid", "me"]},
 
78071
       "uuid-name": "me"}]'
 
78072
_ATEOF
 
78073
 
 
78074
      { set +x
 
78075
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78076
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78077
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78078
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78079
at_status=$? at_failed=false
 
78080
$at_check_filter
 
78081
echo stderr:; cat "$at_stderr"
 
78082
echo stdout:; tee stdout <"$at_stdout"
 
78083
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78084
$at_failed && at_fn_log_failure
 
78085
$at_traceon; }
 
78086
 
 
78087
      cat stdout >> output
 
78088
cat >txnfile <<'_ATEOF'
 
78089
ovsdb-client transact unix:socket '      ["weak",
 
78090
      {"op": "delete",
 
78091
       "table": "b",
 
78092
       "where": [["b", "==", 3]]}]'
 
78093
_ATEOF
 
78094
 
 
78095
      { set +x
 
78096
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78097
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78098
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78099
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78100
at_status=$? at_failed=false
 
78101
$at_check_filter
 
78102
echo stderr:; cat "$at_stderr"
 
78103
echo stdout:; tee stdout <"$at_stdout"
 
78104
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78105
$at_failed && at_fn_log_failure
 
78106
$at_traceon; }
 
78107
 
 
78108
      cat stdout >> output
 
78109
cat >txnfile <<'_ATEOF'
 
78110
ovsdb-client transact unix:socket '      ["weak",
 
78111
      {"op": "delete",
 
78112
       "table": "a",
 
78113
       "where": [["a", "==", 1]]}]'
 
78114
_ATEOF
 
78115
 
 
78116
      { set +x
 
78117
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78118
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78119
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78120
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78121
at_status=$? at_failed=false
 
78122
$at_check_filter
 
78123
echo stderr:; cat "$at_stderr"
 
78124
echo stdout:; tee stdout <"$at_stdout"
 
78125
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78126
$at_failed && at_fn_log_failure
 
78127
$at_traceon; }
 
78128
 
 
78129
      cat stdout >> output
 
78130
cat >txnfile <<'_ATEOF'
 
78131
ovsdb-client transact unix:socket '      ["weak",
 
78132
      {"op": "delete",
 
78133
       "table": "a",
 
78134
       "where": [["a", "==", 2]]}]'
 
78135
_ATEOF
 
78136
 
 
78137
      { set +x
 
78138
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78139
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78140
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78141
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78142
at_status=$? at_failed=false
 
78143
$at_check_filter
 
78144
echo stderr:; cat "$at_stderr"
 
78145
echo stdout:; tee stdout <"$at_stdout"
 
78146
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78147
$at_failed && at_fn_log_failure
 
78148
$at_traceon; }
 
78149
 
 
78150
      cat stdout >> output
 
78151
cat >txnfile <<'_ATEOF'
 
78152
ovsdb-client transact unix:socket '["weak",
 
78153
      {"op": "select",
 
78154
       "table": "a",
 
78155
       "where": [],
 
78156
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
78157
       "sort": ["a"]}]'
 
78158
_ATEOF
 
78159
 
 
78160
      { set +x
 
78161
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78162
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78163
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78165
at_status=$? at_failed=false
 
78166
$at_check_filter
 
78167
echo stderr:; cat "$at_stderr"
 
78168
echo stdout:; tee stdout <"$at_stdout"
 
78169
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78170
$at_failed && at_fn_log_failure
 
78171
$at_traceon; }
 
78172
 
 
78173
      cat stdout >> output
 
78174
cat >txnfile <<'_ATEOF'
 
78175
ovsdb-client transact unix:socket '["weak",
 
78176
      {"op": "select",
 
78177
       "table": "b",
 
78178
       "where": [],
 
78179
       "columns": ["_uuid", "b", "b2a"],
 
78180
       "sort": ["b"]}]'
 
78181
_ATEOF
 
78182
 
 
78183
      { set +x
 
78184
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78185
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78186
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78187
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78188
at_status=$? at_failed=false
 
78189
$at_check_filter
 
78190
echo stderr:; cat "$at_stderr"
 
78191
echo stdout:; tee stdout <"$at_stdout"
 
78192
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78193
$at_failed && at_fn_log_failure
 
78194
$at_traceon; }
 
78195
 
 
78196
      cat stdout >> output
 
78197
cat >txnfile <<'_ATEOF'
 
78198
ovsdb-client transact unix:socket '   ["weak",
 
78199
      {"op": "delete",
 
78200
       "table": "a",
 
78201
       "where": [["a", "==", 0]]}]'
 
78202
_ATEOF
 
78203
 
 
78204
      { set +x
 
78205
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78206
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78207
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78208
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78209
at_status=$? at_failed=false
 
78210
$at_check_filter
 
78211
echo stderr:; cat "$at_stderr"
 
78212
echo stdout:; tee stdout <"$at_stdout"
 
78213
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78214
$at_failed && at_fn_log_failure
 
78215
$at_traceon; }
 
78216
 
 
78217
      cat stdout >> output
 
78218
cat >txnfile <<'_ATEOF'
 
78219
ovsdb-client transact unix:socket '["weak",
 
78220
      {"op": "select",
 
78221
       "table": "a",
 
78222
       "where": [],
 
78223
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
78224
       "sort": ["a"]}]'
 
78225
_ATEOF
 
78226
 
 
78227
      { set +x
 
78228
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78229
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78230
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78231
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78232
at_status=$? at_failed=false
 
78233
$at_check_filter
 
78234
echo stderr:; cat "$at_stderr"
 
78235
echo stdout:; tee stdout <"$at_stdout"
 
78236
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78237
$at_failed && at_fn_log_failure
 
78238
$at_traceon; }
 
78239
 
 
78240
      cat stdout >> output
 
78241
cat >txnfile <<'_ATEOF'
 
78242
ovsdb-client transact unix:socket '["weak",
 
78243
      {"op": "select",
 
78244
       "table": "b",
 
78245
       "where": [],
 
78246
       "columns": ["_uuid", "b", "b2a"],
 
78247
       "sort": ["b"]}]'
 
78248
_ATEOF
 
78249
 
 
78250
      { set +x
 
78251
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78252
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78253
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78254
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78255
at_status=$? at_failed=false
 
78256
$at_check_filter
 
78257
echo stderr:; cat "$at_stderr"
 
78258
echo stdout:; tee stdout <"$at_stdout"
 
78259
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78260
$at_failed && at_fn_log_failure
 
78261
$at_traceon; }
 
78262
 
 
78263
      cat stdout >> output
 
78264
cat >txnfile <<'_ATEOF'
 
78265
ovsdb-client transact unix:socket '   ["weak",
 
78266
      {"op": "delete",
 
78267
       "table": "a",
 
78268
       "where": [["a", "==", 1]]}]'
 
78269
_ATEOF
 
78270
 
 
78271
      { set +x
 
78272
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78273
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78274
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78276
at_status=$? at_failed=false
 
78277
$at_check_filter
 
78278
echo stderr:; cat "$at_stderr"
 
78279
echo stdout:; tee stdout <"$at_stdout"
 
78280
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78281
$at_failed && at_fn_log_failure
 
78282
$at_traceon; }
 
78283
 
 
78284
      cat stdout >> output
 
78285
cat >txnfile <<'_ATEOF'
 
78286
ovsdb-client transact unix:socket '["weak",
 
78287
      {"op": "select",
 
78288
       "table": "a",
 
78289
       "where": [],
 
78290
       "columns": ["_uuid", "a2a", "a2a1", "a2b"],
 
78291
       "sort": ["a"]}]'
 
78292
_ATEOF
 
78293
 
 
78294
      { set +x
 
78295
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78296
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78297
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78298
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78299
at_status=$? at_failed=false
 
78300
$at_check_filter
 
78301
echo stderr:; cat "$at_stderr"
 
78302
echo stdout:; tee stdout <"$at_stdout"
 
78303
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78304
$at_failed && at_fn_log_failure
 
78305
$at_traceon; }
 
78306
 
 
78307
      cat stdout >> output
 
78308
cat >txnfile <<'_ATEOF'
 
78309
ovsdb-client transact unix:socket '["weak",
 
78310
      {"op": "select",
 
78311
       "table": "b",
 
78312
       "where": [],
 
78313
       "columns": ["_uuid", "b", "b2a"],
 
78314
       "sort": ["b"]}]'
 
78315
_ATEOF
 
78316
 
 
78317
      { set +x
 
78318
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78319
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78320
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78321
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78322
at_status=$? at_failed=false
 
78323
$at_check_filter
 
78324
echo stderr:; cat "$at_stderr"
 
78325
echo stdout:; tee stdout <"$at_stdout"
 
78326
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78327
$at_failed && at_fn_log_failure
 
78328
$at_traceon; }
 
78329
 
 
78330
      cat stdout >> output
 
78331
 
 
78332
   { set +x
 
78333
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
78334
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
78335
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
78336
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78337
at_status=$? at_failed=false
 
78338
$at_check_filter
 
78339
echo stderr:; cat "$at_stderr"
 
78340
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
78341
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<2>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<4>\"]}]}]
 
78342
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
78343
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"details\":\"Weak reference column \\\"a2b\\\" in \\\"a\\\" row <5> (inserted within this transaction) contained all-zeros UUID (probably as the default value for this column) but deleting this value caused a constraint volation because this column is not allowed to be empty.\",\"error\":\"constraint violation\"}]
 
78344
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2b\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
78345
[{\"count\":1},{\"details\":\"Deletion of 1 weak reference(s) to deleted (or never-existing) rows from column \\\"a2a1\\\" in \\\"a\\\" row <2> caused this column to become empty, but constraints on this column disallow an empty column.\",\"error\":\"constraint violation\"}]
 
78346
[{\"count\":1}]
 
78347
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<0>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<0>\"],\"a2b\":[\"uuid\",\"<3>\"]},{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"set\",[[\"uuid\",\"<0>\"],[\"uuid\",\"<1>\"]]],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
78348
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"uuid\",\"<0>\"]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
78349
[{\"count\":1}]
 
78350
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<1>\"],\"a2a\":[\"uuid\",\"<1>\"],\"a2a1\":[\"uuid\",\"<1>\"],\"a2b\":[\"uuid\",\"<3>\"]}]}]
 
78351
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"uuid\",\"<1>\"]}]}]
 
78352
[{\"count\":1}]
 
78353
[{\"rows\":[]}]
 
78354
[{\"rows\":[{\"_uuid\":[\"uuid\",\"<3>\"],\"b\":2,\"b2a\":[\"set\",[]]},{\"_uuid\":[\"uuid\",\"<4>\"],\"b\":3,\"b2a\":[\"set\",[]]}]}]
 
78355
" | \
 
78356
  $at_diff - "$at_stdout" || at_failed=:
 
78357
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78358
$at_failed && at_fn_log_failure
 
78359
$at_traceon; }
 
78360
 
 
78361
     set +x
 
78362
  $at_times_p && times >"$at_times_file"
 
78363
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
78364
read at_status <"$at_status_file"
 
78365
#AT_STOP_903
 
78366
#AT_START_904
 
78367
at_fn_group_banner 904 'ovsdb-server.at:446' \
 
78368
  "garbage collection" "                             " 61
 
78369
at_xfail=no
 
78370
(
 
78371
  $as_echo "904. $at_setup_line: testing $at_desc ..."
 
78372
  $at_traceon
 
78373
 
 
78374
 
 
78375
   cat >schema <<'_ATEOF'
 
78376
{"name": "gc",
 
78377
     "tables": {
 
78378
       "root": {
 
78379
         "columns": {
 
78380
           "a": {"type": {"key": {"type": "uuid",
 
78381
                                  "refTable": "a"},
 
78382
                            "min": 0, "max": "unlimited"}}},
 
78383
         "isRoot": true},
 
78384
       "a": {
 
78385
         "columns": {
 
78386
           "a": {"type": "integer"},
 
78387
           "a2a": {"type": {"key": {"type": "uuid",
 
78388
                                    "refTable": "a"},
 
78389
                            "min": 0, "max": "unlimited"}},
 
78390
           "a2b": {"type": {"key": {"type": "uuid",
 
78391
                                    "refTable": "b"},
 
78392
                            "min": 0, "max": "unlimited"}},
 
78393
           "wa2a": {"type": {"key": {"type": "uuid",
 
78394
                                     "refTable": "a",
 
78395
                                     "refType": "weak"},
 
78396
                             "min": 0, "max": "unlimited"}},
 
78397
           "wa2b": {"type": {"key": {"type": "uuid",
 
78398
                                    "refTable": "b",
 
78399
                                    "refType": "weak"},
 
78400
                             "min": 0, "max": "unlimited"}}}},
 
78401
       "b": {
 
78402
         "columns": {
 
78403
           "b": {"type": "integer"},
 
78404
           "b2a": {"type": {"key": {"type": "uuid",
 
78405
                                    "refTable": "a"},
 
78406
                            "min": 0, "max": "unlimited"}},
 
78407
           "wb2a": {"type": {"key": {"type": "uuid",
 
78408
                                     "refTable": "a",
 
78409
                                     "refType": "weak"},
 
78410
                             "min": 0, "max": "unlimited"}}},
 
78411
         "isRoot": false}}}
 
78412
_ATEOF
 
78413
 
 
78414
   { set +x
 
78415
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-tool create db schema"
 
78416
at_fn_check_prepare_trace "ovsdb-server.at:446"
 
78417
( $at_check_trace; ovsdb-tool create db schema
 
78418
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78419
at_status=$? at_failed=false
 
78420
$at_check_filter
 
78421
echo stderr:; cat "$at_stderr"
 
78422
echo stdout:; tee stdout <"$at_stdout"
 
78423
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78424
$at_failed && at_fn_log_failure
 
78425
$at_traceon; }
 
78426
 
 
78427
   cat >txnfile <<'_ATEOF'
 
78428
ovsdb-client transact unix:socket '   ["gc",
 
78429
      {"op": "insert",
 
78430
       "table": "a",
 
78431
       "row": {"a": 0}}]'
 
78432
_ATEOF
 
78433
 
 
78434
      { set +x
 
78435
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78436
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78437
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78438
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78439
at_status=$? at_failed=false
 
78440
$at_check_filter
 
78441
echo stderr:; cat "$at_stderr"
 
78442
echo stdout:; tee stdout <"$at_stdout"
 
78443
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78444
$at_failed && at_fn_log_failure
 
78445
$at_traceon; }
 
78446
 
 
78447
      cat stdout >> output
 
78448
cat >txnfile <<'_ATEOF'
 
78449
ovsdb-client transact unix:socket '["gc",
 
78450
      {"op": "select",
 
78451
       "table": "a",
 
78452
       "where": [],
 
78453
       "columns": ["a"]}]'
 
78454
_ATEOF
 
78455
 
 
78456
      { set +x
 
78457
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78458
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78459
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78460
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78461
at_status=$? at_failed=false
 
78462
$at_check_filter
 
78463
echo stderr:; cat "$at_stderr"
 
78464
echo stdout:; tee stdout <"$at_stdout"
 
78465
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78466
$at_failed && at_fn_log_failure
 
78467
$at_traceon; }
 
78468
 
 
78469
      cat stdout >> output
 
78470
cat >txnfile <<'_ATEOF'
 
78471
ovsdb-client transact unix:socket '      ["gc",
 
78472
      {"op": "insert",
 
78473
       "table": "a",
 
78474
       "row": {"a": 0, "a2a": ["named-uuid", "row1"]},
 
78475
       "uuid-name": "row0"},
 
78476
      {"op": "insert",
 
78477
       "table": "a",
 
78478
       "row": {"a": 1, "a2a": ["named-uuid", "row2"]},
 
78479
       "uuid-name": "row1"},
 
78480
      {"op": "insert",
 
78481
       "table": "a",
 
78482
       "row": {"a": 2, "a2a": ["named-uuid", "row3"]},
 
78483
       "uuid-name": "row2"},
 
78484
      {"op": "insert",
 
78485
       "table": "a",
 
78486
       "row": {"a": 3},
 
78487
       "uuid-name": "row3"}]'
 
78488
_ATEOF
 
78489
 
 
78490
      { set +x
 
78491
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78492
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78493
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78494
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78495
at_status=$? at_failed=false
 
78496
$at_check_filter
 
78497
echo stderr:; cat "$at_stderr"
 
78498
echo stdout:; tee stdout <"$at_stdout"
 
78499
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78500
$at_failed && at_fn_log_failure
 
78501
$at_traceon; }
 
78502
 
 
78503
      cat stdout >> output
 
78504
cat >txnfile <<'_ATEOF'
 
78505
ovsdb-client transact unix:socket '["gc",
 
78506
      {"op": "select",
 
78507
       "table": "a",
 
78508
       "where": [],
 
78509
       "columns": ["a"]}]'
 
78510
_ATEOF
 
78511
 
 
78512
      { set +x
 
78513
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78514
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78515
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78516
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78517
at_status=$? at_failed=false
 
78518
$at_check_filter
 
78519
echo stderr:; cat "$at_stderr"
 
78520
echo stdout:; tee stdout <"$at_stdout"
 
78521
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78522
$at_failed && at_fn_log_failure
 
78523
$at_traceon; }
 
78524
 
 
78525
      cat stdout >> output
 
78526
cat >txnfile <<'_ATEOF'
 
78527
ovsdb-client transact unix:socket '      ["gc",
 
78528
      {"op": "insert",
 
78529
       "table": "a",
 
78530
       "row": {"a": 4, "a2a": ["named-uuid", "row5"]},
 
78531
       "uuid-name": "row4"},
 
78532
      {"op": "insert",
 
78533
       "table": "a",
 
78534
       "row": {"a": 5, "a2a": ["named-uuid", "row4"]},
 
78535
       "uuid-name": "row5"}]'
 
78536
_ATEOF
 
78537
 
 
78538
      { set +x
 
78539
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78540
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78541
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78542
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78543
at_status=$? at_failed=false
 
78544
$at_check_filter
 
78545
echo stderr:; cat "$at_stderr"
 
78546
echo stdout:; tee stdout <"$at_stdout"
 
78547
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78548
$at_failed && at_fn_log_failure
 
78549
$at_traceon; }
 
78550
 
 
78551
      cat stdout >> output
 
78552
cat >txnfile <<'_ATEOF'
 
78553
ovsdb-client transact unix:socket '["gc",
 
78554
      {"op": "select",
 
78555
       "table": "a",
 
78556
       "where": [],
 
78557
       "columns": ["a"],
 
78558
       "sort": ["a"]}]'
 
78559
_ATEOF
 
78560
 
 
78561
      { set +x
 
78562
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78563
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78564
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78566
at_status=$? at_failed=false
 
78567
$at_check_filter
 
78568
echo stderr:; cat "$at_stderr"
 
78569
echo stdout:; tee stdout <"$at_stdout"
 
78570
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78571
$at_failed && at_fn_log_failure
 
78572
$at_traceon; }
 
78573
 
 
78574
      cat stdout >> output
 
78575
cat >txnfile <<'_ATEOF'
 
78576
ovsdb-client transact unix:socket '   ["gc",
 
78577
      {"op": "update",
 
78578
       "table": "a",
 
78579
       "where": [["a", "==", 4]],
 
78580
       "row": {"a2a": ["set", []]}}]'
 
78581
_ATEOF
 
78582
 
 
78583
      { set +x
 
78584
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78585
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78586
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78587
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78588
at_status=$? at_failed=false
 
78589
$at_check_filter
 
78590
echo stderr:; cat "$at_stderr"
 
78591
echo stdout:; tee stdout <"$at_stdout"
 
78592
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78593
$at_failed && at_fn_log_failure
 
78594
$at_traceon; }
 
78595
 
 
78596
      cat stdout >> output
 
78597
cat >txnfile <<'_ATEOF'
 
78598
ovsdb-client transact unix:socket '["gc",
 
78599
      {"op": "select",
 
78600
       "table": "a",
 
78601
       "where": [],
 
78602
       "columns": ["a"]}]'
 
78603
_ATEOF
 
78604
 
 
78605
      { set +x
 
78606
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78607
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78608
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78609
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78610
at_status=$? at_failed=false
 
78611
$at_check_filter
 
78612
echo stderr:; cat "$at_stderr"
 
78613
echo stdout:; tee stdout <"$at_stdout"
 
78614
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78615
$at_failed && at_fn_log_failure
 
78616
$at_traceon; }
 
78617
 
 
78618
      cat stdout >> output
 
78619
cat >txnfile <<'_ATEOF'
 
78620
ovsdb-client transact unix:socket '      ["gc",
 
78621
      {"op": "insert",
 
78622
       "table": "a",
 
78623
       "row": {"a": 6, "wa2a": ["named-uuid", "row7"]},
 
78624
       "uuid-name": "row6"},
 
78625
      {"op": "insert",
 
78626
       "table": "a",
 
78627
       "row": {"a": 7, "wa2a": ["named-uuid", "row6"]},
 
78628
       "uuid-name": "row7"}]'
 
78629
_ATEOF
 
78630
 
 
78631
      { set +x
 
78632
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78633
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78634
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78635
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78636
at_status=$? at_failed=false
 
78637
$at_check_filter
 
78638
echo stderr:; cat "$at_stderr"
 
78639
echo stdout:; tee stdout <"$at_stdout"
 
78640
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78641
$at_failed && at_fn_log_failure
 
78642
$at_traceon; }
 
78643
 
 
78644
      cat stdout >> output
 
78645
cat >txnfile <<'_ATEOF'
 
78646
ovsdb-client transact unix:socket '["gc",
 
78647
      {"op": "select",
 
78648
       "table": "a",
 
78649
       "where": [],
 
78650
       "columns": ["a"]}]'
 
78651
_ATEOF
 
78652
 
 
78653
      { set +x
 
78654
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78655
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78656
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78657
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78658
at_status=$? at_failed=false
 
78659
$at_check_filter
 
78660
echo stderr:; cat "$at_stderr"
 
78661
echo stdout:; tee stdout <"$at_stdout"
 
78662
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78663
$at_failed && at_fn_log_failure
 
78664
$at_traceon; }
 
78665
 
 
78666
      cat stdout >> output
 
78667
cat >txnfile <<'_ATEOF'
 
78668
ovsdb-client transact unix:socket '   ["gc",
 
78669
      {"op": "insert",
 
78670
       "table": "a",
 
78671
       "row": {"a": 8, "a2a": ["named-uuid", "row9"]},
 
78672
       "uuid-name": "row8"},
 
78673
      {"op": "insert",
 
78674
       "table": "a",
 
78675
       "row": {"a": 9, "a2a": ["named-uuid", "row10"]},
 
78676
       "uuid-name": "row9"},
 
78677
      {"op": "insert",
 
78678
       "table": "a",
 
78679
       "row": {"a": 10, "a2a": ["named-uuid", "row11"]},
 
78680
       "uuid-name": "row10"},
 
78681
      {"op": "insert",
 
78682
       "table": "a",
 
78683
       "row": {"a": 11, "a2a": ["named-uuid", "row8"]},
 
78684
       "uuid-name": "row11"}]'
 
78685
_ATEOF
 
78686
 
 
78687
      { set +x
 
78688
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78689
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78690
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78691
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78692
at_status=$? at_failed=false
 
78693
$at_check_filter
 
78694
echo stderr:; cat "$at_stderr"
 
78695
echo stdout:; tee stdout <"$at_stdout"
 
78696
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78697
$at_failed && at_fn_log_failure
 
78698
$at_traceon; }
 
78699
 
 
78700
      cat stdout >> output
 
78701
cat >txnfile <<'_ATEOF'
 
78702
ovsdb-client transact unix:socket '["gc",
 
78703
      {"op": "select",
 
78704
       "table": "a",
 
78705
       "where": [],
 
78706
       "columns": ["a"],
 
78707
       "sort": ["a"]}]'
 
78708
_ATEOF
 
78709
 
 
78710
      { set +x
 
78711
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78712
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78713
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78714
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78715
at_status=$? at_failed=false
 
78716
$at_check_filter
 
78717
echo stderr:; cat "$at_stderr"
 
78718
echo stdout:; tee stdout <"$at_stdout"
 
78719
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78720
$at_failed && at_fn_log_failure
 
78721
$at_traceon; }
 
78722
 
 
78723
      cat stdout >> output
 
78724
cat >txnfile <<'_ATEOF'
 
78725
ovsdb-client transact unix:socket '   ["gc",
 
78726
      {"op": "update",
 
78727
       "table": "a",
 
78728
       "where": [["a", "==", 9]],
 
78729
       "row": {"a2a": ["set", []]}}]'
 
78730
_ATEOF
 
78731
 
 
78732
      { set +x
 
78733
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78734
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78735
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78736
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78737
at_status=$? at_failed=false
 
78738
$at_check_filter
 
78739
echo stderr:; cat "$at_stderr"
 
78740
echo stdout:; tee stdout <"$at_stdout"
 
78741
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78742
$at_failed && at_fn_log_failure
 
78743
$at_traceon; }
 
78744
 
 
78745
      cat stdout >> output
 
78746
cat >txnfile <<'_ATEOF'
 
78747
ovsdb-client transact unix:socket '["gc",
 
78748
      {"op": "select",
 
78749
       "table": "a",
 
78750
       "where": [],
 
78751
       "columns": ["a"]}]'
 
78752
_ATEOF
 
78753
 
 
78754
      { set +x
 
78755
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78756
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78757
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78758
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78759
at_status=$? at_failed=false
 
78760
$at_check_filter
 
78761
echo stderr:; cat "$at_stderr"
 
78762
echo stdout:; tee stdout <"$at_stdout"
 
78763
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78764
$at_failed && at_fn_log_failure
 
78765
$at_traceon; }
 
78766
 
 
78767
      cat stdout >> output
 
78768
cat >txnfile <<'_ATEOF'
 
78769
ovsdb-client transact unix:socket '   ["gc",
 
78770
      {"op": "insert",
 
78771
       "table": "a",
 
78772
       "row": {"a": 12, "a2a": ["named-uuid", "self"]},
 
78773
       "uuid-name": "self"}]'
 
78774
_ATEOF
 
78775
 
 
78776
      { set +x
 
78777
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78778
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78779
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78780
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78781
at_status=$? at_failed=false
 
78782
$at_check_filter
 
78783
echo stderr:; cat "$at_stderr"
 
78784
echo stdout:; tee stdout <"$at_stdout"
 
78785
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78786
$at_failed && at_fn_log_failure
 
78787
$at_traceon; }
 
78788
 
 
78789
      cat stdout >> output
 
78790
cat >txnfile <<'_ATEOF'
 
78791
ovsdb-client transact unix:socket '["gc",
 
78792
      {"op": "select",
 
78793
       "table": "a",
 
78794
       "where": [],
 
78795
       "columns": ["a"]}]'
 
78796
_ATEOF
 
78797
 
 
78798
      { set +x
 
78799
$as_echo "$at_srcdir/ovsdb-server.at:446: ovsdb-server --remote=punix:socket --unixctl=\$PWD/unixctl db --run=\"sh txnfile\""
 
78800
at_fn_check_prepare_dynamic "ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run=\"sh txnfile\"" "ovsdb-server.at:446"
 
78801
( $at_check_trace; ovsdb-server --remote=punix:socket --unixctl=$PWD/unixctl db --run="sh txnfile"
 
78802
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78803
at_status=$? at_failed=false
 
78804
$at_check_filter
 
78805
echo stderr:; cat "$at_stderr"
 
78806
echo stdout:; tee stdout <"$at_stdout"
 
78807
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78808
$at_failed && at_fn_log_failure
 
78809
$at_traceon; }
 
78810
 
 
78811
      cat stdout >> output
 
78812
 
 
78813
   { set +x
 
78814
$as_echo "$at_srcdir/ovsdb-server.at:446: perl \$srcdir/uuidfilt.pl output"
 
78815
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl output" "ovsdb-server.at:446"
 
78816
( $at_check_trace; perl $srcdir/uuidfilt.pl output
 
78817
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78818
at_status=$? at_failed=false
 
78819
$at_check_filter
 
78820
echo stderr:; cat "$at_stderr"
 
78821
echo >>"$at_stdout"; $as_echo "[{\"uuid\":[\"uuid\",\"<0>\"]}]
 
78822
[{\"rows\":[]}]
 
78823
[{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]},{\"uuid\":[\"uuid\",\"<4>\"]}]
 
78824
[{\"rows\":[]}]
 
78825
[{\"uuid\":[\"uuid\",\"<5>\"]},{\"uuid\":[\"uuid\",\"<6>\"]}]
 
78826
[{\"rows\":[{\"a\":4},{\"a\":5}]}]
 
78827
[{\"count\":1}]
 
78828
[{\"rows\":[]}]
 
78829
[{\"uuid\":[\"uuid\",\"<7>\"]},{\"uuid\":[\"uuid\",\"<8>\"]}]
 
78830
[{\"rows\":[]}]
 
78831
[{\"uuid\":[\"uuid\",\"<9>\"]},{\"uuid\":[\"uuid\",\"<10>\"]},{\"uuid\":[\"uuid\",\"<11>\"]},{\"uuid\":[\"uuid\",\"<12>\"]}]
 
78832
[{\"rows\":[{\"a\":8},{\"a\":9},{\"a\":10},{\"a\":11}]}]
 
78833
[{\"count\":1}]
 
78834
[{\"rows\":[]}]
 
78835
[{\"uuid\":[\"uuid\",\"<13>\"]}]
 
78836
[{\"rows\":[]}]
 
78837
" | \
 
78838
  $at_diff - "$at_stdout" || at_failed=:
 
78839
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-server.at:446"
 
78840
$at_failed && at_fn_log_failure
 
78841
$at_traceon; }
 
78842
 
 
78843
     set +x
 
78844
  $at_times_p && times >"$at_times_file"
 
78845
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
78846
read at_status <"$at_status_file"
 
78847
#AT_STOP_904
 
78848
#AT_START_905
 
78849
at_fn_group_banner 905 'ovsdb-monitor.at:42' \
 
78850
  "monitor insert into empty table" "                " 62
 
78851
at_xfail=no
 
78852
(
 
78853
  $as_echo "905. $at_setup_line: testing $at_desc ..."
 
78854
  $at_traceon
 
78855
 
 
78856
 
 
78857
   cat >schema <<'_ATEOF'
 
78858
{"name": "ordinals",
 
78859
     "tables": {
 
78860
       "ordinals": {
 
78861
         "columns": {
 
78862
           "number": {"type": "integer"},
 
78863
           "name": {"type": "string"}},
 
78864
         "indexes": [["number"]]}},
 
78865
     "version": "5.1.3",
 
78866
     "cksum": "12345678 9"}
 
78867
_ATEOF
 
78868
 
 
78869
   { set +x
 
78870
$as_echo "$at_srcdir/ovsdb-monitor.at:42: ovsdb-tool create db schema"
 
78871
at_fn_check_prepare_trace "ovsdb-monitor.at:42"
 
78872
( $at_check_trace; ovsdb-tool create db schema
 
78873
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78874
at_status=$? at_failed=false
 
78875
$at_check_filter
 
78876
echo stderr:; cat "$at_stderr"
 
78877
echo stdout:; tee stdout <"$at_stdout"
 
78878
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:42"
 
78879
$at_failed && at_fn_log_failure
 
78880
$at_traceon; }
 
78881
 
 
78882
 
 
78883
 
 
78884
   { set +x
 
78885
$as_echo "$at_srcdir/ovsdb-monitor.at:42: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
78886
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:42"
 
78887
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
78888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78889
at_status=$? at_failed=false
 
78890
$at_check_filter
 
78891
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
78892
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
78893
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:42"
 
78894
$at_failed && at_fn_log_failure  \
 
78895
"ovsdb-server-log"
 
78896
$at_traceon; }
 
78897
 
 
78898
   { set +x
 
78899
$as_echo "$at_srcdir/ovsdb-monitor.at:42: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
78900
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:42"
 
78901
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
78902
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78903
at_status=$? at_failed=false
 
78904
$at_check_filter
 
78905
echo stderr:; cat "$at_stderr"
 
78906
echo stdout:; cat "$at_stdout"
 
78907
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:42"
 
78908
if $at_failed; then :
 
78909
  kill `cat server-pid`
 
78910
fi
 
78911
$at_failed && at_fn_log_failure  \
 
78912
"ovsdb-server-log"
 
78913
$at_traceon; }
 
78914
 
 
78915
   { set +x
 
78916
$as_echo "$at_srcdir/ovsdb-monitor.at:42: ovsdb-client transact unix:socket '[\"ordinals\",
 
78917
      {\"op\": \"insert\",
 
78918
       \"table\": \"ordinals\",
 
78919
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]'"
 
78920
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:42"
 
78921
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
78922
      {"op": "insert",
 
78923
       "table": "ordinals",
 
78924
       "row": {"number": 0, "name": "zero"}}]'
 
78925
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78926
at_status=$? at_failed=false
 
78927
$at_check_filter
 
78928
echo stderr:; cat "$at_stderr"
 
78929
echo stdout:; cat "$at_stdout"
 
78930
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:42"
 
78931
if $at_failed; then :
 
78932
  kill `cat server-pid client-pid`
 
78933
fi
 
78934
$at_failed && at_fn_log_failure  \
 
78935
"ovsdb-server-log"
 
78936
$at_traceon; }
 
78937
 
 
78938
   { set +x
 
78939
$as_echo "$at_srcdir/ovsdb-monitor.at:42: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
78940
at_fn_check_prepare_trace "ovsdb-monitor.at:42"
 
78941
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
78942
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78943
at_status=$? at_failed=false
 
78944
$at_check_filter
 
78945
echo stderr:; cat "$at_stderr"
 
78946
echo stdout:; cat "$at_stdout"
 
78947
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:42"
 
78948
if $at_failed; then :
 
78949
  kill `cat server-pid client-pid`
 
78950
fi
 
78951
$at_failed && at_fn_log_failure  \
 
78952
"ovsdb-server-log"
 
78953
$at_traceon; }
 
78954
 
 
78955
   { set +x
 
78956
$as_echo "$at_srcdir/ovsdb-monitor.at:42: ovs-appctl -t \$PWD/unixctl -e exit"
 
78957
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:42"
 
78958
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
78959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78960
at_status=$? at_failed=false
 
78961
$at_check_filter
 
78962
echo stderr:; cat "$at_stderr"
 
78963
echo stdout:; cat "$at_stdout"
 
78964
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:42"
 
78965
$at_failed && at_fn_log_failure  \
 
78966
"ovsdb-server-log"
 
78967
$at_traceon; }
 
78968
 
 
78969
   { set +x
 
78970
$as_echo "$at_srcdir/ovsdb-monitor.at:42: # First try a quick sleep, so that the test completes very quickly
 
78971
     # in the normal case.  POSIX doesn't require fractional times to
 
78972
     # work, so this might not work.
 
78973
     sleep 0.1
 
78974
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
78975
     # Then wait up to 10 seconds.
 
78976
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
78977
       sleep 1
 
78978
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
78979
     done
 
78980
     exit 1"
 
78981
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:42"
 
78982
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
78983
     # in the normal case.  POSIX doesn't require fractional times to
 
78984
     # work, so this might not work.
 
78985
     sleep 0.1
 
78986
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
78987
     # Then wait up to 10 seconds.
 
78988
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
78989
       sleep 1
 
78990
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
78991
     done
 
78992
     exit 1
 
78993
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
78994
at_status=$? at_failed=false
 
78995
$at_check_filter
 
78996
echo stderr:; cat "$at_stderr"
 
78997
echo stdout:; cat "$at_stdout"
 
78998
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:42"
 
78999
$at_failed && at_fn_log_failure  \
 
79000
"ovsdb-server-log"
 
79001
$at_traceon; }
 
79002
 
 
79003
   { set +x
 
79004
$as_echo "$at_srcdir/ovsdb-monitor.at:42: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
79005
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:42"
 
79006
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
79007
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79008
at_status=$? at_failed=false
 
79009
$at_check_filter
 
79010
echo stderr:; cat "$at_stderr"
 
79011
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
79012
<0>,insert,\"\"\"zero\"\"\",0,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
79013
" | \
 
79014
  $at_diff - "$at_stdout" || at_failed=:
 
79015
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:42"
 
79016
$at_failed && at_fn_log_failure  \
 
79017
"ovsdb-server-log"
 
79018
$at_traceon; }
 
79019
 
 
79020
     set +x
 
79021
  $at_times_p && times >"$at_times_file"
 
79022
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
79023
read at_status <"$at_status_file"
 
79024
#AT_STOP_905
 
79025
#AT_START_906
 
79026
at_fn_group_banner 906 'ovsdb-monitor.at:54' \
 
79027
  "monitor insert into populated table" "            " 62
 
79028
at_xfail=no
 
79029
(
 
79030
  $as_echo "906. $at_setup_line: testing $at_desc ..."
 
79031
  $at_traceon
 
79032
 
 
79033
 
 
79034
   cat >schema <<'_ATEOF'
 
79035
{"name": "ordinals",
 
79036
     "tables": {
 
79037
       "ordinals": {
 
79038
         "columns": {
 
79039
           "number": {"type": "integer"},
 
79040
           "name": {"type": "string"}},
 
79041
         "indexes": [["number"]]}},
 
79042
     "version": "5.1.3",
 
79043
     "cksum": "12345678 9"}
 
79044
_ATEOF
 
79045
 
 
79046
   { set +x
 
79047
$as_echo "$at_srcdir/ovsdb-monitor.at:54: ovsdb-tool create db schema"
 
79048
at_fn_check_prepare_trace "ovsdb-monitor.at:54"
 
79049
( $at_check_trace; ovsdb-tool create db schema
 
79050
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79051
at_status=$? at_failed=false
 
79052
$at_check_filter
 
79053
echo stderr:; cat "$at_stderr"
 
79054
echo stdout:; tee stdout <"$at_stdout"
 
79055
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79056
$at_failed && at_fn_log_failure
 
79057
$at_traceon; }
 
79058
 
 
79059
   { set +x
 
79060
$as_echo "$at_srcdir/ovsdb-monitor.at:54: ovsdb-tool transact db '[\"ordinals\",
 
79061
      {\"op\": \"insert\",
 
79062
       \"table\": \"ordinals\",
 
79063
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
79064
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:54"
 
79065
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
79066
      {"op": "insert",
 
79067
       "table": "ordinals",
 
79068
       "row": {"number": 10, "name": "ten"}}]'
 
79069
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79070
at_status=$? at_failed=false
 
79071
$at_check_filter
 
79072
echo stderr:; cat "$at_stderr"
 
79073
echo stdout:; cat "$at_stdout"
 
79074
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79075
$at_failed && at_fn_log_failure
 
79076
$at_traceon; }
 
79077
 
 
79078
 
 
79079
   { set +x
 
79080
$as_echo "$at_srcdir/ovsdb-monitor.at:54: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
79081
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:54"
 
79082
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
79083
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79084
at_status=$? at_failed=false
 
79085
$at_check_filter
 
79086
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
79087
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
79088
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79089
$at_failed && at_fn_log_failure  \
 
79090
"ovsdb-server-log"
 
79091
$at_traceon; }
 
79092
 
 
79093
   { set +x
 
79094
$as_echo "$at_srcdir/ovsdb-monitor.at:54: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
79095
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:54"
 
79096
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
79097
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79098
at_status=$? at_failed=false
 
79099
$at_check_filter
 
79100
echo stderr:; cat "$at_stderr"
 
79101
echo stdout:; cat "$at_stdout"
 
79102
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79103
if $at_failed; then :
 
79104
  kill `cat server-pid`
 
79105
fi
 
79106
$at_failed && at_fn_log_failure  \
 
79107
"ovsdb-server-log"
 
79108
$at_traceon; }
 
79109
 
 
79110
   { set +x
 
79111
$as_echo "$at_srcdir/ovsdb-monitor.at:54: ovsdb-client transact unix:socket '[\"ordinals\",
 
79112
      {\"op\": \"insert\",
 
79113
       \"table\": \"ordinals\",
 
79114
       \"row\": {\"number\": 0, \"name\": \"zero\"}}]'"
 
79115
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:54"
 
79116
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
79117
      {"op": "insert",
 
79118
       "table": "ordinals",
 
79119
       "row": {"number": 0, "name": "zero"}}]'
 
79120
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79121
at_status=$? at_failed=false
 
79122
$at_check_filter
 
79123
echo stderr:; cat "$at_stderr"
 
79124
echo stdout:; cat "$at_stdout"
 
79125
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79126
if $at_failed; then :
 
79127
  kill `cat server-pid client-pid`
 
79128
fi
 
79129
$at_failed && at_fn_log_failure  \
 
79130
"ovsdb-server-log"
 
79131
$at_traceon; }
 
79132
 
 
79133
   { set +x
 
79134
$as_echo "$at_srcdir/ovsdb-monitor.at:54: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
79135
at_fn_check_prepare_trace "ovsdb-monitor.at:54"
 
79136
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
79137
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79138
at_status=$? at_failed=false
 
79139
$at_check_filter
 
79140
echo stderr:; cat "$at_stderr"
 
79141
echo stdout:; cat "$at_stdout"
 
79142
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79143
if $at_failed; then :
 
79144
  kill `cat server-pid client-pid`
 
79145
fi
 
79146
$at_failed && at_fn_log_failure  \
 
79147
"ovsdb-server-log"
 
79148
$at_traceon; }
 
79149
 
 
79150
   { set +x
 
79151
$as_echo "$at_srcdir/ovsdb-monitor.at:54: ovs-appctl -t \$PWD/unixctl -e exit"
 
79152
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:54"
 
79153
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
79154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79155
at_status=$? at_failed=false
 
79156
$at_check_filter
 
79157
echo stderr:; cat "$at_stderr"
 
79158
echo stdout:; cat "$at_stdout"
 
79159
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79160
$at_failed && at_fn_log_failure  \
 
79161
"ovsdb-server-log"
 
79162
$at_traceon; }
 
79163
 
 
79164
   { set +x
 
79165
$as_echo "$at_srcdir/ovsdb-monitor.at:54: # First try a quick sleep, so that the test completes very quickly
 
79166
     # in the normal case.  POSIX doesn't require fractional times to
 
79167
     # work, so this might not work.
 
79168
     sleep 0.1
 
79169
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79170
     # Then wait up to 10 seconds.
 
79171
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
79172
       sleep 1
 
79173
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79174
     done
 
79175
     exit 1"
 
79176
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:54"
 
79177
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
79178
     # in the normal case.  POSIX doesn't require fractional times to
 
79179
     # work, so this might not work.
 
79180
     sleep 0.1
 
79181
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79182
     # Then wait up to 10 seconds.
 
79183
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
79184
       sleep 1
 
79185
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79186
     done
 
79187
     exit 1
 
79188
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79189
at_status=$? at_failed=false
 
79190
$at_check_filter
 
79191
echo stderr:; cat "$at_stderr"
 
79192
echo stdout:; cat "$at_stdout"
 
79193
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79194
$at_failed && at_fn_log_failure  \
 
79195
"ovsdb-server-log"
 
79196
$at_traceon; }
 
79197
 
 
79198
   { set +x
 
79199
$as_echo "$at_srcdir/ovsdb-monitor.at:54: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
79200
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:54"
 
79201
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
79202
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79203
at_status=$? at_failed=false
 
79204
$at_check_filter
 
79205
echo stderr:; cat "$at_stderr"
 
79206
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
79207
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
79208
 
 
79209
row,action,name,number,_version
 
79210
<2>,insert,\"\"\"zero\"\"\",0,\"[\"\"uuid\"\",\"\"<3>\"\"]\"
 
79211
" | \
 
79212
  $at_diff - "$at_stdout" || at_failed=:
 
79213
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:54"
 
79214
$at_failed && at_fn_log_failure  \
 
79215
"ovsdb-server-log"
 
79216
$at_traceon; }
 
79217
 
 
79218
     set +x
 
79219
  $at_times_p && times >"$at_times_file"
 
79220
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
79221
read at_status <"$at_status_file"
 
79222
#AT_STOP_906
 
79223
#AT_START_907
 
79224
at_fn_group_banner 907 'ovsdb-monitor.at:72' \
 
79225
  "monitor delete" "                                 " 62
 
79226
at_xfail=no
 
79227
(
 
79228
  $as_echo "907. $at_setup_line: testing $at_desc ..."
 
79229
  $at_traceon
 
79230
 
 
79231
 
 
79232
   cat >schema <<'_ATEOF'
 
79233
{"name": "ordinals",
 
79234
     "tables": {
 
79235
       "ordinals": {
 
79236
         "columns": {
 
79237
           "number": {"type": "integer"},
 
79238
           "name": {"type": "string"}},
 
79239
         "indexes": [["number"]]}},
 
79240
     "version": "5.1.3",
 
79241
     "cksum": "12345678 9"}
 
79242
_ATEOF
 
79243
 
 
79244
   { set +x
 
79245
$as_echo "$at_srcdir/ovsdb-monitor.at:72: ovsdb-tool create db schema"
 
79246
at_fn_check_prepare_trace "ovsdb-monitor.at:72"
 
79247
( $at_check_trace; ovsdb-tool create db schema
 
79248
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79249
at_status=$? at_failed=false
 
79250
$at_check_filter
 
79251
echo stderr:; cat "$at_stderr"
 
79252
echo stdout:; tee stdout <"$at_stdout"
 
79253
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79254
$at_failed && at_fn_log_failure
 
79255
$at_traceon; }
 
79256
 
 
79257
   { set +x
 
79258
$as_echo "$at_srcdir/ovsdb-monitor.at:72: ovsdb-tool transact db '[\"ordinals\",
 
79259
      {\"op\": \"insert\",
 
79260
       \"table\": \"ordinals\",
 
79261
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
79262
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:72"
 
79263
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
79264
      {"op": "insert",
 
79265
       "table": "ordinals",
 
79266
       "row": {"number": 10, "name": "ten"}}]'
 
79267
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79268
at_status=$? at_failed=false
 
79269
$at_check_filter
 
79270
echo stderr:; cat "$at_stderr"
 
79271
echo stdout:; cat "$at_stdout"
 
79272
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79273
$at_failed && at_fn_log_failure
 
79274
$at_traceon; }
 
79275
 
 
79276
 
 
79277
   { set +x
 
79278
$as_echo "$at_srcdir/ovsdb-monitor.at:72: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
79279
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:72"
 
79280
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
79281
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79282
at_status=$? at_failed=false
 
79283
$at_check_filter
 
79284
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
79285
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
79286
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79287
$at_failed && at_fn_log_failure  \
 
79288
"ovsdb-server-log"
 
79289
$at_traceon; }
 
79290
 
 
79291
   { set +x
 
79292
$as_echo "$at_srcdir/ovsdb-monitor.at:72: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
79293
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:72"
 
79294
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
79295
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79296
at_status=$? at_failed=false
 
79297
$at_check_filter
 
79298
echo stderr:; cat "$at_stderr"
 
79299
echo stdout:; cat "$at_stdout"
 
79300
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79301
if $at_failed; then :
 
79302
  kill `cat server-pid`
 
79303
fi
 
79304
$at_failed && at_fn_log_failure  \
 
79305
"ovsdb-server-log"
 
79306
$at_traceon; }
 
79307
 
 
79308
   { set +x
 
79309
$as_echo "$at_srcdir/ovsdb-monitor.at:72: ovsdb-client transact unix:socket '[\"ordinals\",
 
79310
      {\"op\": \"delete\",
 
79311
       \"table\": \"ordinals\",
 
79312
       \"where\": [[\"number\", \"==\", 10]]}]'"
 
79313
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:72"
 
79314
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
79315
      {"op": "delete",
 
79316
       "table": "ordinals",
 
79317
       "where": [["number", "==", 10]]}]'
 
79318
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79319
at_status=$? at_failed=false
 
79320
$at_check_filter
 
79321
echo stderr:; cat "$at_stderr"
 
79322
echo stdout:; cat "$at_stdout"
 
79323
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79324
if $at_failed; then :
 
79325
  kill `cat server-pid client-pid`
 
79326
fi
 
79327
$at_failed && at_fn_log_failure  \
 
79328
"ovsdb-server-log"
 
79329
$at_traceon; }
 
79330
 
 
79331
   { set +x
 
79332
$as_echo "$at_srcdir/ovsdb-monitor.at:72: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
79333
at_fn_check_prepare_trace "ovsdb-monitor.at:72"
 
79334
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
79335
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79336
at_status=$? at_failed=false
 
79337
$at_check_filter
 
79338
echo stderr:; cat "$at_stderr"
 
79339
echo stdout:; cat "$at_stdout"
 
79340
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79341
if $at_failed; then :
 
79342
  kill `cat server-pid client-pid`
 
79343
fi
 
79344
$at_failed && at_fn_log_failure  \
 
79345
"ovsdb-server-log"
 
79346
$at_traceon; }
 
79347
 
 
79348
   { set +x
 
79349
$as_echo "$at_srcdir/ovsdb-monitor.at:72: ovs-appctl -t \$PWD/unixctl -e exit"
 
79350
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:72"
 
79351
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
79352
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79353
at_status=$? at_failed=false
 
79354
$at_check_filter
 
79355
echo stderr:; cat "$at_stderr"
 
79356
echo stdout:; cat "$at_stdout"
 
79357
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79358
$at_failed && at_fn_log_failure  \
 
79359
"ovsdb-server-log"
 
79360
$at_traceon; }
 
79361
 
 
79362
   { set +x
 
79363
$as_echo "$at_srcdir/ovsdb-monitor.at:72: # First try a quick sleep, so that the test completes very quickly
 
79364
     # in the normal case.  POSIX doesn't require fractional times to
 
79365
     # work, so this might not work.
 
79366
     sleep 0.1
 
79367
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79368
     # Then wait up to 10 seconds.
 
79369
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
79370
       sleep 1
 
79371
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79372
     done
 
79373
     exit 1"
 
79374
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:72"
 
79375
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
79376
     # in the normal case.  POSIX doesn't require fractional times to
 
79377
     # work, so this might not work.
 
79378
     sleep 0.1
 
79379
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79380
     # Then wait up to 10 seconds.
 
79381
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
79382
       sleep 1
 
79383
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79384
     done
 
79385
     exit 1
 
79386
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79387
at_status=$? at_failed=false
 
79388
$at_check_filter
 
79389
echo stderr:; cat "$at_stderr"
 
79390
echo stdout:; cat "$at_stdout"
 
79391
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79392
$at_failed && at_fn_log_failure  \
 
79393
"ovsdb-server-log"
 
79394
$at_traceon; }
 
79395
 
 
79396
   { set +x
 
79397
$as_echo "$at_srcdir/ovsdb-monitor.at:72: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
79398
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:72"
 
79399
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
79400
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79401
at_status=$? at_failed=false
 
79402
$at_check_filter
 
79403
echo stderr:; cat "$at_stderr"
 
79404
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
79405
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
79406
 
 
79407
row,action,name,number,_version
 
79408
<0>,delete,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
79409
" | \
 
79410
  $at_diff - "$at_stdout" || at_failed=:
 
79411
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:72"
 
79412
$at_failed && at_fn_log_failure  \
 
79413
"ovsdb-server-log"
 
79414
$at_traceon; }
 
79415
 
 
79416
     set +x
 
79417
  $at_times_p && times >"$at_times_file"
 
79418
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
79419
read at_status <"$at_status_file"
 
79420
#AT_STOP_907
 
79421
#AT_START_908
 
79422
at_fn_group_banner 908 'ovsdb-monitor.at:90' \
 
79423
  "monitor row update" "                             " 62
 
79424
at_xfail=no
 
79425
(
 
79426
  $as_echo "908. $at_setup_line: testing $at_desc ..."
 
79427
  $at_traceon
 
79428
 
 
79429
 
 
79430
   cat >schema <<'_ATEOF'
 
79431
{"name": "ordinals",
 
79432
     "tables": {
 
79433
       "ordinals": {
 
79434
         "columns": {
 
79435
           "number": {"type": "integer"},
 
79436
           "name": {"type": "string"}},
 
79437
         "indexes": [["number"]]}},
 
79438
     "version": "5.1.3",
 
79439
     "cksum": "12345678 9"}
 
79440
_ATEOF
 
79441
 
 
79442
   { set +x
 
79443
$as_echo "$at_srcdir/ovsdb-monitor.at:90: ovsdb-tool create db schema"
 
79444
at_fn_check_prepare_trace "ovsdb-monitor.at:90"
 
79445
( $at_check_trace; ovsdb-tool create db schema
 
79446
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79447
at_status=$? at_failed=false
 
79448
$at_check_filter
 
79449
echo stderr:; cat "$at_stderr"
 
79450
echo stdout:; tee stdout <"$at_stdout"
 
79451
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79452
$at_failed && at_fn_log_failure
 
79453
$at_traceon; }
 
79454
 
 
79455
   { set +x
 
79456
$as_echo "$at_srcdir/ovsdb-monitor.at:90: ovsdb-tool transact db '[\"ordinals\",
 
79457
      {\"op\": \"insert\",
 
79458
       \"table\": \"ordinals\",
 
79459
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
79460
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:90"
 
79461
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
79462
      {"op": "insert",
 
79463
       "table": "ordinals",
 
79464
       "row": {"number": 10, "name": "ten"}}]'
 
79465
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79466
at_status=$? at_failed=false
 
79467
$at_check_filter
 
79468
echo stderr:; cat "$at_stderr"
 
79469
echo stdout:; cat "$at_stdout"
 
79470
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79471
$at_failed && at_fn_log_failure
 
79472
$at_traceon; }
 
79473
 
 
79474
 
 
79475
   { set +x
 
79476
$as_echo "$at_srcdir/ovsdb-monitor.at:90: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
79477
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:90"
 
79478
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
79479
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79480
at_status=$? at_failed=false
 
79481
$at_check_filter
 
79482
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
79483
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
79484
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79485
$at_failed && at_fn_log_failure  \
 
79486
"ovsdb-server-log"
 
79487
$at_traceon; }
 
79488
 
 
79489
   { set +x
 
79490
$as_echo "$at_srcdir/ovsdb-monitor.at:90: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
79491
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:90"
 
79492
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
79493
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79494
at_status=$? at_failed=false
 
79495
$at_check_filter
 
79496
echo stderr:; cat "$at_stderr"
 
79497
echo stdout:; cat "$at_stdout"
 
79498
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79499
if $at_failed; then :
 
79500
  kill `cat server-pid`
 
79501
fi
 
79502
$at_failed && at_fn_log_failure  \
 
79503
"ovsdb-server-log"
 
79504
$at_traceon; }
 
79505
 
 
79506
   { set +x
 
79507
$as_echo "$at_srcdir/ovsdb-monitor.at:90: ovsdb-client transact unix:socket '[\"ordinals\",
 
79508
      {\"op\": \"update\",
 
79509
       \"table\": \"ordinals\",
 
79510
       \"where\": [[\"number\", \"==\", 10]],
 
79511
       \"row\": {\"name\": \"five plus five\"}}]'"
 
79512
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:90"
 
79513
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
79514
      {"op": "update",
 
79515
       "table": "ordinals",
 
79516
       "where": [["number", "==", 10]],
 
79517
       "row": {"name": "five plus five"}}]'
 
79518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79519
at_status=$? at_failed=false
 
79520
$at_check_filter
 
79521
echo stderr:; cat "$at_stderr"
 
79522
echo stdout:; cat "$at_stdout"
 
79523
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79524
if $at_failed; then :
 
79525
  kill `cat server-pid client-pid`
 
79526
fi
 
79527
$at_failed && at_fn_log_failure  \
 
79528
"ovsdb-server-log"
 
79529
$at_traceon; }
 
79530
 
 
79531
   { set +x
 
79532
$as_echo "$at_srcdir/ovsdb-monitor.at:90: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
79533
at_fn_check_prepare_trace "ovsdb-monitor.at:90"
 
79534
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
79535
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79536
at_status=$? at_failed=false
 
79537
$at_check_filter
 
79538
echo stderr:; cat "$at_stderr"
 
79539
echo stdout:; cat "$at_stdout"
 
79540
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79541
if $at_failed; then :
 
79542
  kill `cat server-pid client-pid`
 
79543
fi
 
79544
$at_failed && at_fn_log_failure  \
 
79545
"ovsdb-server-log"
 
79546
$at_traceon; }
 
79547
 
 
79548
   { set +x
 
79549
$as_echo "$at_srcdir/ovsdb-monitor.at:90: ovs-appctl -t \$PWD/unixctl -e exit"
 
79550
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:90"
 
79551
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
79552
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79553
at_status=$? at_failed=false
 
79554
$at_check_filter
 
79555
echo stderr:; cat "$at_stderr"
 
79556
echo stdout:; cat "$at_stdout"
 
79557
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79558
$at_failed && at_fn_log_failure  \
 
79559
"ovsdb-server-log"
 
79560
$at_traceon; }
 
79561
 
 
79562
   { set +x
 
79563
$as_echo "$at_srcdir/ovsdb-monitor.at:90: # First try a quick sleep, so that the test completes very quickly
 
79564
     # in the normal case.  POSIX doesn't require fractional times to
 
79565
     # work, so this might not work.
 
79566
     sleep 0.1
 
79567
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79568
     # Then wait up to 10 seconds.
 
79569
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
79570
       sleep 1
 
79571
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79572
     done
 
79573
     exit 1"
 
79574
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:90"
 
79575
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
79576
     # in the normal case.  POSIX doesn't require fractional times to
 
79577
     # work, so this might not work.
 
79578
     sleep 0.1
 
79579
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79580
     # Then wait up to 10 seconds.
 
79581
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
79582
       sleep 1
 
79583
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79584
     done
 
79585
     exit 1
 
79586
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79587
at_status=$? at_failed=false
 
79588
$at_check_filter
 
79589
echo stderr:; cat "$at_stderr"
 
79590
echo stdout:; cat "$at_stdout"
 
79591
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79592
$at_failed && at_fn_log_failure  \
 
79593
"ovsdb-server-log"
 
79594
$at_traceon; }
 
79595
 
 
79596
   { set +x
 
79597
$as_echo "$at_srcdir/ovsdb-monitor.at:90: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
79598
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:90"
 
79599
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
79600
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79601
at_status=$? at_failed=false
 
79602
$at_check_filter
 
79603
echo stderr:; cat "$at_stderr"
 
79604
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
79605
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
79606
 
 
79607
row,action,name,number,_version
 
79608
<0>,old,\"\"\"ten\"\"\",,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
79609
,new,\"\"\"five plus five\"\"\",10,\"[\"\"uuid\"\",\"\"<2>\"\"]\"
 
79610
" | \
 
79611
  $at_diff - "$at_stdout" || at_failed=:
 
79612
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:90"
 
79613
$at_failed && at_fn_log_failure  \
 
79614
"ovsdb-server-log"
 
79615
$at_traceon; }
 
79616
 
 
79617
     set +x
 
79618
  $at_times_p && times >"$at_times_file"
 
79619
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
79620
read at_status <"$at_status_file"
 
79621
#AT_STOP_908
 
79622
#AT_START_909
 
79623
at_fn_group_banner 909 'ovsdb-monitor.at:110' \
 
79624
  "monitor no-op row updates" "                      " 62
 
79625
at_xfail=no
 
79626
(
 
79627
  $as_echo "909. $at_setup_line: testing $at_desc ..."
 
79628
  $at_traceon
 
79629
 
 
79630
 
 
79631
   cat >schema <<'_ATEOF'
 
79632
{"name": "ordinals",
 
79633
     "tables": {
 
79634
       "ordinals": {
 
79635
         "columns": {
 
79636
           "number": {"type": "integer"},
 
79637
           "name": {"type": "string"}},
 
79638
         "indexes": [["number"]]}},
 
79639
     "version": "5.1.3",
 
79640
     "cksum": "12345678 9"}
 
79641
_ATEOF
 
79642
 
 
79643
   { set +x
 
79644
$as_echo "$at_srcdir/ovsdb-monitor.at:110: ovsdb-tool create db schema"
 
79645
at_fn_check_prepare_trace "ovsdb-monitor.at:110"
 
79646
( $at_check_trace; ovsdb-tool create db schema
 
79647
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79648
at_status=$? at_failed=false
 
79649
$at_check_filter
 
79650
echo stderr:; cat "$at_stderr"
 
79651
echo stdout:; tee stdout <"$at_stdout"
 
79652
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79653
$at_failed && at_fn_log_failure
 
79654
$at_traceon; }
 
79655
 
 
79656
   { set +x
 
79657
$as_echo "$at_srcdir/ovsdb-monitor.at:110: ovsdb-tool transact db '[\"ordinals\",
 
79658
      {\"op\": \"insert\",
 
79659
       \"table\": \"ordinals\",
 
79660
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
79661
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:110"
 
79662
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
79663
      {"op": "insert",
 
79664
       "table": "ordinals",
 
79665
       "row": {"number": 10, "name": "ten"}}]'
 
79666
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79667
at_status=$? at_failed=false
 
79668
$at_check_filter
 
79669
echo stderr:; cat "$at_stderr"
 
79670
echo stdout:; cat "$at_stdout"
 
79671
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79672
$at_failed && at_fn_log_failure
 
79673
$at_traceon; }
 
79674
 
 
79675
 
 
79676
   { set +x
 
79677
$as_echo "$at_srcdir/ovsdb-monitor.at:110: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
79678
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:110"
 
79679
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
79680
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79681
at_status=$? at_failed=false
 
79682
$at_check_filter
 
79683
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
79684
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
79685
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79686
$at_failed && at_fn_log_failure  \
 
79687
"ovsdb-server-log"
 
79688
$at_traceon; }
 
79689
 
 
79690
   { set +x
 
79691
$as_echo "$at_srcdir/ovsdb-monitor.at:110: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
79692
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:110"
 
79693
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
79694
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79695
at_status=$? at_failed=false
 
79696
$at_check_filter
 
79697
echo stderr:; cat "$at_stderr"
 
79698
echo stdout:; cat "$at_stdout"
 
79699
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79700
if $at_failed; then :
 
79701
  kill `cat server-pid`
 
79702
fi
 
79703
$at_failed && at_fn_log_failure  \
 
79704
"ovsdb-server-log"
 
79705
$at_traceon; }
 
79706
 
 
79707
   { set +x
 
79708
$as_echo "$at_srcdir/ovsdb-monitor.at:110: ovsdb-client transact unix:socket '[\"ordinals\",
 
79709
      {\"op\": \"update\",
 
79710
       \"table\": \"ordinals\",
 
79711
       \"where\": [[\"number\", \"==\", 10]],
 
79712
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
79713
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:110"
 
79714
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
79715
      {"op": "update",
 
79716
       "table": "ordinals",
 
79717
       "where": [["number", "==", 10]],
 
79718
       "row": {"number": 10, "name": "ten"}}]'
 
79719
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79720
at_status=$? at_failed=false
 
79721
$at_check_filter
 
79722
echo stderr:; cat "$at_stderr"
 
79723
echo stdout:; cat "$at_stdout"
 
79724
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79725
if $at_failed; then :
 
79726
  kill `cat server-pid client-pid`
 
79727
fi
 
79728
$at_failed && at_fn_log_failure  \
 
79729
"ovsdb-server-log"
 
79730
$at_traceon; }
 
79731
{ set +x
 
79732
$as_echo "$at_srcdir/ovsdb-monitor.at:110: ovsdb-client transact unix:socket '[\"ordinals\",
 
79733
      {\"op\": \"insert\",
 
79734
       \"table\": \"ordinals\",
 
79735
       \"row\": {\"number\": 9, \"name\": \"nine\"}}]'"
 
79736
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:110"
 
79737
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
79738
      {"op": "insert",
 
79739
       "table": "ordinals",
 
79740
       "row": {"number": 9, "name": "nine"}}]'
 
79741
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79742
at_status=$? at_failed=false
 
79743
$at_check_filter
 
79744
echo stderr:; cat "$at_stderr"
 
79745
echo stdout:; cat "$at_stdout"
 
79746
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79747
if $at_failed; then :
 
79748
  kill `cat server-pid client-pid`
 
79749
fi
 
79750
$at_failed && at_fn_log_failure  \
 
79751
"ovsdb-server-log"
 
79752
$at_traceon; }
 
79753
 
 
79754
   { set +x
 
79755
$as_echo "$at_srcdir/ovsdb-monitor.at:110: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
79756
at_fn_check_prepare_trace "ovsdb-monitor.at:110"
 
79757
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
79758
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79759
at_status=$? at_failed=false
 
79760
$at_check_filter
 
79761
echo stderr:; cat "$at_stderr"
 
79762
echo stdout:; cat "$at_stdout"
 
79763
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79764
if $at_failed; then :
 
79765
  kill `cat server-pid client-pid`
 
79766
fi
 
79767
$at_failed && at_fn_log_failure  \
 
79768
"ovsdb-server-log"
 
79769
$at_traceon; }
 
79770
 
 
79771
   { set +x
 
79772
$as_echo "$at_srcdir/ovsdb-monitor.at:110: ovs-appctl -t \$PWD/unixctl -e exit"
 
79773
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:110"
 
79774
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
79775
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79776
at_status=$? at_failed=false
 
79777
$at_check_filter
 
79778
echo stderr:; cat "$at_stderr"
 
79779
echo stdout:; cat "$at_stdout"
 
79780
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79781
$at_failed && at_fn_log_failure  \
 
79782
"ovsdb-server-log"
 
79783
$at_traceon; }
 
79784
 
 
79785
   { set +x
 
79786
$as_echo "$at_srcdir/ovsdb-monitor.at:110: # First try a quick sleep, so that the test completes very quickly
 
79787
     # in the normal case.  POSIX doesn't require fractional times to
 
79788
     # work, so this might not work.
 
79789
     sleep 0.1
 
79790
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79791
     # Then wait up to 10 seconds.
 
79792
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
79793
       sleep 1
 
79794
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79795
     done
 
79796
     exit 1"
 
79797
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:110"
 
79798
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
79799
     # in the normal case.  POSIX doesn't require fractional times to
 
79800
     # work, so this might not work.
 
79801
     sleep 0.1
 
79802
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79803
     # Then wait up to 10 seconds.
 
79804
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
79805
       sleep 1
 
79806
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79807
     done
 
79808
     exit 1
 
79809
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79810
at_status=$? at_failed=false
 
79811
$at_check_filter
 
79812
echo stderr:; cat "$at_stderr"
 
79813
echo stdout:; cat "$at_stdout"
 
79814
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79815
$at_failed && at_fn_log_failure  \
 
79816
"ovsdb-server-log"
 
79817
$at_traceon; }
 
79818
 
 
79819
   { set +x
 
79820
$as_echo "$at_srcdir/ovsdb-monitor.at:110: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
79821
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:110"
 
79822
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
79823
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79824
at_status=$? at_failed=false
 
79825
$at_check_filter
 
79826
echo stderr:; cat "$at_stderr"
 
79827
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
79828
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
79829
 
 
79830
row,action,name,number,_version
 
79831
<2>,insert,\"\"\"nine\"\"\",9,\"[\"\"uuid\"\",\"\"<3>\"\"]\"
 
79832
" | \
 
79833
  $at_diff - "$at_stdout" || at_failed=:
 
79834
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:110"
 
79835
$at_failed && at_fn_log_failure  \
 
79836
"ovsdb-server-log"
 
79837
$at_traceon; }
 
79838
 
 
79839
     set +x
 
79840
  $at_times_p && times >"$at_times_file"
 
79841
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
79842
read at_status <"$at_status_file"
 
79843
#AT_STOP_909
 
79844
#AT_START_910
 
79845
at_fn_group_banner 910 'ovsdb-monitor.at:133' \
 
79846
  "monitor insert-and-update transaction" "          " 62
 
79847
at_xfail=no
 
79848
(
 
79849
  $as_echo "910. $at_setup_line: testing $at_desc ..."
 
79850
  $at_traceon
 
79851
 
 
79852
 
 
79853
   cat >schema <<'_ATEOF'
 
79854
{"name": "ordinals",
 
79855
     "tables": {
 
79856
       "ordinals": {
 
79857
         "columns": {
 
79858
           "number": {"type": "integer"},
 
79859
           "name": {"type": "string"}},
 
79860
         "indexes": [["number"]]}},
 
79861
     "version": "5.1.3",
 
79862
     "cksum": "12345678 9"}
 
79863
_ATEOF
 
79864
 
 
79865
   { set +x
 
79866
$as_echo "$at_srcdir/ovsdb-monitor.at:133: ovsdb-tool create db schema"
 
79867
at_fn_check_prepare_trace "ovsdb-monitor.at:133"
 
79868
( $at_check_trace; ovsdb-tool create db schema
 
79869
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79870
at_status=$? at_failed=false
 
79871
$at_check_filter
 
79872
echo stderr:; cat "$at_stderr"
 
79873
echo stdout:; tee stdout <"$at_stdout"
 
79874
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
79875
$at_failed && at_fn_log_failure
 
79876
$at_traceon; }
 
79877
 
 
79878
   { set +x
 
79879
$as_echo "$at_srcdir/ovsdb-monitor.at:133: ovsdb-tool transact db '[\"ordinals\",
 
79880
      {\"op\": \"insert\",
 
79881
       \"table\": \"ordinals\",
 
79882
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
79883
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:133"
 
79884
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
79885
      {"op": "insert",
 
79886
       "table": "ordinals",
 
79887
       "row": {"number": 10, "name": "ten"}}]'
 
79888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79889
at_status=$? at_failed=false
 
79890
$at_check_filter
 
79891
echo stderr:; cat "$at_stderr"
 
79892
echo stdout:; cat "$at_stdout"
 
79893
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
79894
$at_failed && at_fn_log_failure
 
79895
$at_traceon; }
 
79896
 
 
79897
 
 
79898
   { set +x
 
79899
$as_echo "$at_srcdir/ovsdb-monitor.at:133: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
79900
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:133"
 
79901
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
79902
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79903
at_status=$? at_failed=false
 
79904
$at_check_filter
 
79905
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
79906
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
79907
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
79908
$at_failed && at_fn_log_failure  \
 
79909
"ovsdb-server-log"
 
79910
$at_traceon; }
 
79911
 
 
79912
   { set +x
 
79913
$as_echo "$at_srcdir/ovsdb-monitor.at:133: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
79914
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:133"
 
79915
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
79916
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79917
at_status=$? at_failed=false
 
79918
$at_check_filter
 
79919
echo stderr:; cat "$at_stderr"
 
79920
echo stdout:; cat "$at_stdout"
 
79921
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
79922
if $at_failed; then :
 
79923
  kill `cat server-pid`
 
79924
fi
 
79925
$at_failed && at_fn_log_failure  \
 
79926
"ovsdb-server-log"
 
79927
$at_traceon; }
 
79928
 
 
79929
   { set +x
 
79930
$as_echo "$at_srcdir/ovsdb-monitor.at:133: ovsdb-client transact unix:socket '[\"ordinals\",
 
79931
      {\"op\": \"insert\",
 
79932
       \"table\": \"ordinals\",
 
79933
       \"row\": {\"number\": 9, \"name\": \"nine\"},
 
79934
       \"uuid-name\": \"nine\"},
 
79935
      {\"op\": \"update\",
 
79936
       \"table\": \"ordinals\",
 
79937
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"nine\"]]],
 
79938
       \"row\": {\"name\": \"three squared\"}}]'"
 
79939
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:133"
 
79940
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
79941
      {"op": "insert",
 
79942
       "table": "ordinals",
 
79943
       "row": {"number": 9, "name": "nine"},
 
79944
       "uuid-name": "nine"},
 
79945
      {"op": "update",
 
79946
       "table": "ordinals",
 
79947
       "where": [["_uuid", "==", ["named-uuid", "nine"]]],
 
79948
       "row": {"name": "three squared"}}]'
 
79949
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79950
at_status=$? at_failed=false
 
79951
$at_check_filter
 
79952
echo stderr:; cat "$at_stderr"
 
79953
echo stdout:; cat "$at_stdout"
 
79954
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
79955
if $at_failed; then :
 
79956
  kill `cat server-pid client-pid`
 
79957
fi
 
79958
$at_failed && at_fn_log_failure  \
 
79959
"ovsdb-server-log"
 
79960
$at_traceon; }
 
79961
 
 
79962
   { set +x
 
79963
$as_echo "$at_srcdir/ovsdb-monitor.at:133: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
79964
at_fn_check_prepare_trace "ovsdb-monitor.at:133"
 
79965
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
79966
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79967
at_status=$? at_failed=false
 
79968
$at_check_filter
 
79969
echo stderr:; cat "$at_stderr"
 
79970
echo stdout:; cat "$at_stdout"
 
79971
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
79972
if $at_failed; then :
 
79973
  kill `cat server-pid client-pid`
 
79974
fi
 
79975
$at_failed && at_fn_log_failure  \
 
79976
"ovsdb-server-log"
 
79977
$at_traceon; }
 
79978
 
 
79979
   { set +x
 
79980
$as_echo "$at_srcdir/ovsdb-monitor.at:133: ovs-appctl -t \$PWD/unixctl -e exit"
 
79981
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:133"
 
79982
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
79983
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
79984
at_status=$? at_failed=false
 
79985
$at_check_filter
 
79986
echo stderr:; cat "$at_stderr"
 
79987
echo stdout:; cat "$at_stdout"
 
79988
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
79989
$at_failed && at_fn_log_failure  \
 
79990
"ovsdb-server-log"
 
79991
$at_traceon; }
 
79992
 
 
79993
   { set +x
 
79994
$as_echo "$at_srcdir/ovsdb-monitor.at:133: # First try a quick sleep, so that the test completes very quickly
 
79995
     # in the normal case.  POSIX doesn't require fractional times to
 
79996
     # work, so this might not work.
 
79997
     sleep 0.1
 
79998
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
79999
     # Then wait up to 10 seconds.
 
80000
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80001
       sleep 1
 
80002
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80003
     done
 
80004
     exit 1"
 
80005
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:133"
 
80006
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
80007
     # in the normal case.  POSIX doesn't require fractional times to
 
80008
     # work, so this might not work.
 
80009
     sleep 0.1
 
80010
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80011
     # Then wait up to 10 seconds.
 
80012
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80013
       sleep 1
 
80014
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80015
     done
 
80016
     exit 1
 
80017
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80018
at_status=$? at_failed=false
 
80019
$at_check_filter
 
80020
echo stderr:; cat "$at_stderr"
 
80021
echo stdout:; cat "$at_stdout"
 
80022
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
80023
$at_failed && at_fn_log_failure  \
 
80024
"ovsdb-server-log"
 
80025
$at_traceon; }
 
80026
 
 
80027
   { set +x
 
80028
$as_echo "$at_srcdir/ovsdb-monitor.at:133: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
80029
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:133"
 
80030
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
80031
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80032
at_status=$? at_failed=false
 
80033
$at_check_filter
 
80034
echo stderr:; cat "$at_stderr"
 
80035
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
80036
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
80037
 
 
80038
row,action,name,number,_version
 
80039
<2>,insert,\"\"\"three squared\"\"\",9,\"[\"\"uuid\"\",\"\"<3>\"\"]\"
 
80040
" | \
 
80041
  $at_diff - "$at_stdout" || at_failed=:
 
80042
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:133"
 
80043
$at_failed && at_fn_log_failure  \
 
80044
"ovsdb-server-log"
 
80045
$at_traceon; }
 
80046
 
 
80047
     set +x
 
80048
  $at_times_p && times >"$at_times_file"
 
80049
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
80050
read at_status <"$at_status_file"
 
80051
#AT_STOP_910
 
80052
#AT_START_911
 
80053
at_fn_group_banner 911 'ovsdb-monitor.at:156' \
 
80054
  "monitor insert-update-and-delete transaction" "   " 62
 
80055
at_xfail=no
 
80056
(
 
80057
  $as_echo "911. $at_setup_line: testing $at_desc ..."
 
80058
  $at_traceon
 
80059
 
 
80060
 
 
80061
   cat >schema <<'_ATEOF'
 
80062
{"name": "ordinals",
 
80063
     "tables": {
 
80064
       "ordinals": {
 
80065
         "columns": {
 
80066
           "number": {"type": "integer"},
 
80067
           "name": {"type": "string"}},
 
80068
         "indexes": [["number"]]}},
 
80069
     "version": "5.1.3",
 
80070
     "cksum": "12345678 9"}
 
80071
_ATEOF
 
80072
 
 
80073
   { set +x
 
80074
$as_echo "$at_srcdir/ovsdb-monitor.at:156: ovsdb-tool create db schema"
 
80075
at_fn_check_prepare_trace "ovsdb-monitor.at:156"
 
80076
( $at_check_trace; ovsdb-tool create db schema
 
80077
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80078
at_status=$? at_failed=false
 
80079
$at_check_filter
 
80080
echo stderr:; cat "$at_stderr"
 
80081
echo stdout:; tee stdout <"$at_stdout"
 
80082
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80083
$at_failed && at_fn_log_failure
 
80084
$at_traceon; }
 
80085
 
 
80086
   { set +x
 
80087
$as_echo "$at_srcdir/ovsdb-monitor.at:156: ovsdb-tool transact db '[\"ordinals\",
 
80088
      {\"op\": \"insert\",
 
80089
       \"table\": \"ordinals\",
 
80090
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
80091
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:156"
 
80092
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
80093
      {"op": "insert",
 
80094
       "table": "ordinals",
 
80095
       "row": {"number": 10, "name": "ten"}}]'
 
80096
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80097
at_status=$? at_failed=false
 
80098
$at_check_filter
 
80099
echo stderr:; cat "$at_stderr"
 
80100
echo stdout:; cat "$at_stdout"
 
80101
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80102
$at_failed && at_fn_log_failure
 
80103
$at_traceon; }
 
80104
 
 
80105
 
 
80106
   { set +x
 
80107
$as_echo "$at_srcdir/ovsdb-monitor.at:156: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
80108
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:156"
 
80109
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
80110
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80111
at_status=$? at_failed=false
 
80112
$at_check_filter
 
80113
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
80114
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
80115
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80116
$at_failed && at_fn_log_failure  \
 
80117
"ovsdb-server-log"
 
80118
$at_traceon; }
 
80119
 
 
80120
   { set +x
 
80121
$as_echo "$at_srcdir/ovsdb-monitor.at:156: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
80122
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:156"
 
80123
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
80124
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80125
at_status=$? at_failed=false
 
80126
$at_check_filter
 
80127
echo stderr:; cat "$at_stderr"
 
80128
echo stdout:; cat "$at_stdout"
 
80129
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80130
if $at_failed; then :
 
80131
  kill `cat server-pid`
 
80132
fi
 
80133
$at_failed && at_fn_log_failure  \
 
80134
"ovsdb-server-log"
 
80135
$at_traceon; }
 
80136
 
 
80137
   { set +x
 
80138
$as_echo "$at_srcdir/ovsdb-monitor.at:156: ovsdb-client transact unix:socket '[\"ordinals\",
 
80139
      {\"op\": \"insert\",
 
80140
       \"table\": \"ordinals\",
 
80141
       \"row\": {\"number\": 9, \"name\": \"nine\"},
 
80142
       \"uuid-name\": \"nine\"},
 
80143
      {\"op\": \"update\",
 
80144
       \"table\": \"ordinals\",
 
80145
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"nine\"]]],
 
80146
       \"row\": {\"name\": \"three squared\"}},
 
80147
      {\"op\": \"delete\",
 
80148
       \"table\": \"ordinals\",
 
80149
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"nine\"]]]},
 
80150
      {\"op\": \"insert\",
 
80151
       \"table\": \"ordinals\",
 
80152
       \"row\": {\"number\": 7, \"name\": \"seven\"}}]'"
 
80153
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:156"
 
80154
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
80155
      {"op": "insert",
 
80156
       "table": "ordinals",
 
80157
       "row": {"number": 9, "name": "nine"},
 
80158
       "uuid-name": "nine"},
 
80159
      {"op": "update",
 
80160
       "table": "ordinals",
 
80161
       "where": [["_uuid", "==", ["named-uuid", "nine"]]],
 
80162
       "row": {"name": "three squared"}},
 
80163
      {"op": "delete",
 
80164
       "table": "ordinals",
 
80165
       "where": [["_uuid", "==", ["named-uuid", "nine"]]]},
 
80166
      {"op": "insert",
 
80167
       "table": "ordinals",
 
80168
       "row": {"number": 7, "name": "seven"}}]'
 
80169
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80170
at_status=$? at_failed=false
 
80171
$at_check_filter
 
80172
echo stderr:; cat "$at_stderr"
 
80173
echo stdout:; cat "$at_stdout"
 
80174
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80175
if $at_failed; then :
 
80176
  kill `cat server-pid client-pid`
 
80177
fi
 
80178
$at_failed && at_fn_log_failure  \
 
80179
"ovsdb-server-log"
 
80180
$at_traceon; }
 
80181
 
 
80182
   { set +x
 
80183
$as_echo "$at_srcdir/ovsdb-monitor.at:156: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
80184
at_fn_check_prepare_trace "ovsdb-monitor.at:156"
 
80185
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
80186
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80187
at_status=$? at_failed=false
 
80188
$at_check_filter
 
80189
echo stderr:; cat "$at_stderr"
 
80190
echo stdout:; cat "$at_stdout"
 
80191
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80192
if $at_failed; then :
 
80193
  kill `cat server-pid client-pid`
 
80194
fi
 
80195
$at_failed && at_fn_log_failure  \
 
80196
"ovsdb-server-log"
 
80197
$at_traceon; }
 
80198
 
 
80199
   { set +x
 
80200
$as_echo "$at_srcdir/ovsdb-monitor.at:156: ovs-appctl -t \$PWD/unixctl -e exit"
 
80201
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:156"
 
80202
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
80203
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80204
at_status=$? at_failed=false
 
80205
$at_check_filter
 
80206
echo stderr:; cat "$at_stderr"
 
80207
echo stdout:; cat "$at_stdout"
 
80208
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80209
$at_failed && at_fn_log_failure  \
 
80210
"ovsdb-server-log"
 
80211
$at_traceon; }
 
80212
 
 
80213
   { set +x
 
80214
$as_echo "$at_srcdir/ovsdb-monitor.at:156: # First try a quick sleep, so that the test completes very quickly
 
80215
     # in the normal case.  POSIX doesn't require fractional times to
 
80216
     # work, so this might not work.
 
80217
     sleep 0.1
 
80218
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80219
     # Then wait up to 10 seconds.
 
80220
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80221
       sleep 1
 
80222
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80223
     done
 
80224
     exit 1"
 
80225
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:156"
 
80226
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
80227
     # in the normal case.  POSIX doesn't require fractional times to
 
80228
     # work, so this might not work.
 
80229
     sleep 0.1
 
80230
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80231
     # Then wait up to 10 seconds.
 
80232
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80233
       sleep 1
 
80234
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80235
     done
 
80236
     exit 1
 
80237
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80238
at_status=$? at_failed=false
 
80239
$at_check_filter
 
80240
echo stderr:; cat "$at_stderr"
 
80241
echo stdout:; cat "$at_stdout"
 
80242
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80243
$at_failed && at_fn_log_failure  \
 
80244
"ovsdb-server-log"
 
80245
$at_traceon; }
 
80246
 
 
80247
   { set +x
 
80248
$as_echo "$at_srcdir/ovsdb-monitor.at:156: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
80249
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:156"
 
80250
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
80251
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80252
at_status=$? at_failed=false
 
80253
$at_check_filter
 
80254
echo stderr:; cat "$at_stderr"
 
80255
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
80256
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
80257
 
 
80258
row,action,name,number,_version
 
80259
<2>,insert,\"\"\"seven\"\"\",7,\"[\"\"uuid\"\",\"\"<3>\"\"]\"
 
80260
" | \
 
80261
  $at_diff - "$at_stdout" || at_failed=:
 
80262
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:156"
 
80263
$at_failed && at_fn_log_failure  \
 
80264
"ovsdb-server-log"
 
80265
$at_traceon; }
 
80266
 
 
80267
     set +x
 
80268
  $at_times_p && times >"$at_times_file"
 
80269
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
80270
read at_status <"$at_status_file"
 
80271
#AT_STOP_911
 
80272
#AT_START_912
 
80273
at_fn_group_banner 912 'ovsdb-monitor.at:185' \
 
80274
  "monitor weak reference change" "                  " 62
 
80275
at_xfail=no
 
80276
(
 
80277
  $as_echo "912. $at_setup_line: testing $at_desc ..."
 
80278
  $at_traceon
 
80279
 
 
80280
 
 
80281
   cat >schema <<'_ATEOF'
 
80282
{"name": "weak",
 
80283
     "tables": {
 
80284
       "a": {
 
80285
         "columns": {
 
80286
           "a": {"type": "integer"},
 
80287
           "a2a": {"type": {"key": {"type": "uuid",
 
80288
                                    "refTable": "a",
 
80289
                                    "refType": "weak"},
 
80290
                            "min": 0, "max": "unlimited"}},
 
80291
           "a2a1": {"type": {"key": {"type": "uuid",
 
80292
                                     "refTable": "a",
 
80293
                                     "refType": "weak"}}},
 
80294
           "a2b": {"type": {"key": {"type": "uuid",
 
80295
                                    "refTable": "b",
 
80296
                                    "refType": "weak"}}}}},
 
80297
       "b": {
 
80298
         "columns": {
 
80299
           "b": {"type": "integer"},
 
80300
           "b2a": {"type": {"key": {"type": "uuid",
 
80301
                                    "refTable": "a",
 
80302
                                    "refType": "weak"},
 
80303
                            "min": 0, "max": "unlimited"}}}}}}
 
80304
_ATEOF
 
80305
 
 
80306
   { set +x
 
80307
$as_echo "$at_srcdir/ovsdb-monitor.at:185: ovsdb-tool create db schema"
 
80308
at_fn_check_prepare_trace "ovsdb-monitor.at:185"
 
80309
( $at_check_trace; ovsdb-tool create db schema
 
80310
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80311
at_status=$? at_failed=false
 
80312
$at_check_filter
 
80313
echo stderr:; cat "$at_stderr"
 
80314
echo stdout:; tee stdout <"$at_stdout"
 
80315
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80316
$at_failed && at_fn_log_failure
 
80317
$at_traceon; }
 
80318
 
 
80319
   { set +x
 
80320
$as_echo "$at_srcdir/ovsdb-monitor.at:185: ovsdb-tool transact db '[\"weak\",
 
80321
      {\"op\": \"insert\",
 
80322
       \"table\": \"a\",
 
80323
       \"row\": {\"a\": 0,
 
80324
               \"a2a1\": [\"named-uuid\", \"a0\"],
 
80325
               \"a2b\": [\"named-uuid\", \"b2\"]},
 
80326
       \"uuid-name\": \"a0\"},
 
80327
      {\"op\": \"insert\",
 
80328
       \"table\": \"a\",
 
80329
       \"row\": {\"a\": 1,
 
80330
               \"a2a\": [\"named-uuid\", \"a0\"],
 
80331
               \"a2a1\": [\"named-uuid\", \"a1\"],
 
80332
               \"a2b\": [\"named-uuid\", \"b2\"]},
 
80333
       \"uuid-name\": \"a1\"},
 
80334
      {\"op\": \"insert\",
 
80335
       \"table\": \"b\",
 
80336
       \"row\": {\"b\": 2},
 
80337
       \"uuid-name\": \"b2\"}]'"
 
80338
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:185"
 
80339
( $at_check_trace; ovsdb-tool transact db '["weak",
 
80340
      {"op": "insert",
 
80341
       "table": "a",
 
80342
       "row": {"a": 0,
 
80343
               "a2a1": ["named-uuid", "a0"],
 
80344
               "a2b": ["named-uuid", "b2"]},
 
80345
       "uuid-name": "a0"},
 
80346
      {"op": "insert",
 
80347
       "table": "a",
 
80348
       "row": {"a": 1,
 
80349
               "a2a": ["named-uuid", "a0"],
 
80350
               "a2a1": ["named-uuid", "a1"],
 
80351
               "a2b": ["named-uuid", "b2"]},
 
80352
       "uuid-name": "a1"},
 
80353
      {"op": "insert",
 
80354
       "table": "b",
 
80355
       "row": {"b": 2},
 
80356
       "uuid-name": "b2"}]'
 
80357
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80358
at_status=$? at_failed=false
 
80359
$at_check_filter
 
80360
echo stderr:; cat "$at_stderr"
 
80361
echo stdout:; cat "$at_stdout"
 
80362
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80363
$at_failed && at_fn_log_failure
 
80364
$at_traceon; }
 
80365
 
 
80366
 
 
80367
   { set +x
 
80368
$as_echo "$at_srcdir/ovsdb-monitor.at:185: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
80369
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:185"
 
80370
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
80371
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80372
at_status=$? at_failed=false
 
80373
$at_check_filter
 
80374
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
80375
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
80376
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80377
$at_failed && at_fn_log_failure  \
 
80378
"ovsdb-server-log"
 
80379
$at_traceon; }
 
80380
 
 
80381
   { set +x
 
80382
$as_echo "$at_srcdir/ovsdb-monitor.at:185: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket weak a  > output"
 
80383
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket weak a  > output" "ovsdb-monitor.at:185"
 
80384
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket weak a  > output
 
80385
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80386
at_status=$? at_failed=false
 
80387
$at_check_filter
 
80388
echo stderr:; cat "$at_stderr"
 
80389
echo stdout:; cat "$at_stdout"
 
80390
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80391
if $at_failed; then :
 
80392
  kill `cat server-pid`
 
80393
fi
 
80394
$at_failed && at_fn_log_failure  \
 
80395
"ovsdb-server-log"
 
80396
$at_traceon; }
 
80397
 
 
80398
   { set +x
 
80399
$as_echo "$at_srcdir/ovsdb-monitor.at:185: ovsdb-client transact unix:socket '[\"weak\",
 
80400
      {\"op\": \"delete\",
 
80401
       \"table\": \"a\",
 
80402
       \"where\": [[\"a\", \"==\", 0]]}]'"
 
80403
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:185"
 
80404
( $at_check_trace; ovsdb-client transact unix:socket '["weak",
 
80405
      {"op": "delete",
 
80406
       "table": "a",
 
80407
       "where": [["a", "==", 0]]}]'
 
80408
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80409
at_status=$? at_failed=false
 
80410
$at_check_filter
 
80411
echo stderr:; cat "$at_stderr"
 
80412
echo stdout:; cat "$at_stdout"
 
80413
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80414
if $at_failed; then :
 
80415
  kill `cat server-pid client-pid`
 
80416
fi
 
80417
$at_failed && at_fn_log_failure  \
 
80418
"ovsdb-server-log"
 
80419
$at_traceon; }
 
80420
 
 
80421
   { set +x
 
80422
$as_echo "$at_srcdir/ovsdb-monitor.at:185: ovsdb-client transact unix:socket '[\"weak\"]'"
 
80423
at_fn_check_prepare_trace "ovsdb-monitor.at:185"
 
80424
( $at_check_trace; ovsdb-client transact unix:socket '["weak"]'
 
80425
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80426
at_status=$? at_failed=false
 
80427
$at_check_filter
 
80428
echo stderr:; cat "$at_stderr"
 
80429
echo stdout:; cat "$at_stdout"
 
80430
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80431
if $at_failed; then :
 
80432
  kill `cat server-pid client-pid`
 
80433
fi
 
80434
$at_failed && at_fn_log_failure  \
 
80435
"ovsdb-server-log"
 
80436
$at_traceon; }
 
80437
 
 
80438
   { set +x
 
80439
$as_echo "$at_srcdir/ovsdb-monitor.at:185: ovs-appctl -t \$PWD/unixctl -e exit"
 
80440
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:185"
 
80441
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
80442
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80443
at_status=$? at_failed=false
 
80444
$at_check_filter
 
80445
echo stderr:; cat "$at_stderr"
 
80446
echo stdout:; cat "$at_stdout"
 
80447
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80448
$at_failed && at_fn_log_failure  \
 
80449
"ovsdb-server-log"
 
80450
$at_traceon; }
 
80451
 
 
80452
   { set +x
 
80453
$as_echo "$at_srcdir/ovsdb-monitor.at:185: # First try a quick sleep, so that the test completes very quickly
 
80454
     # in the normal case.  POSIX doesn't require fractional times to
 
80455
     # work, so this might not work.
 
80456
     sleep 0.1
 
80457
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80458
     # Then wait up to 10 seconds.
 
80459
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80460
       sleep 1
 
80461
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80462
     done
 
80463
     exit 1"
 
80464
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:185"
 
80465
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
80466
     # in the normal case.  POSIX doesn't require fractional times to
 
80467
     # work, so this might not work.
 
80468
     sleep 0.1
 
80469
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80470
     # Then wait up to 10 seconds.
 
80471
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80472
       sleep 1
 
80473
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80474
     done
 
80475
     exit 1
 
80476
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80477
at_status=$? at_failed=false
 
80478
$at_check_filter
 
80479
echo stderr:; cat "$at_stderr"
 
80480
echo stdout:; cat "$at_stdout"
 
80481
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80482
$at_failed && at_fn_log_failure  \
 
80483
"ovsdb-server-log"
 
80484
$at_traceon; }
 
80485
 
 
80486
   { set +x
 
80487
$as_echo "$at_srcdir/ovsdb-monitor.at:185: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
80488
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:185"
 
80489
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
80490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80491
at_status=$? at_failed=false
 
80492
$at_check_filter
 
80493
echo stderr:; cat "$at_stderr"
 
80494
echo >>"$at_stdout"; $as_echo "row,action,a,a2a,a2a1,a2b,_version
 
80495
<0>,initial,0,\"[\"\"set\"\",[]]\",\"[\"\"uuid\"\",\"\"<0>\"\"]\",\"[\"\"uuid\"\",\"\"<1>\"\"]\",\"[\"\"uuid\"\",\"\"<2>\"\"]\"
 
80496
<3>,initial,1,\"[\"\"uuid\"\",\"\"<0>\"\"]\",\"[\"\"uuid\"\",\"\"<3>\"\"]\",\"[\"\"uuid\"\",\"\"<1>\"\"]\",\"[\"\"uuid\"\",\"\"<4>\"\"]\"
 
80497
 
 
80498
row,action,a,a2a,a2a1,a2b,_version
 
80499
<0>,delete,0,\"[\"\"set\"\",[]]\",\"[\"\"uuid\"\",\"\"<0>\"\"]\",\"[\"\"uuid\"\",\"\"<1>\"\"]\",\"[\"\"uuid\"\",\"\"<2>\"\"]\"
 
80500
<3>,old,,\"[\"\"uuid\"\",\"\"<0>\"\"]\",,,
 
80501
,new,1,\"[\"\"set\"\",[]]\",\"[\"\"uuid\"\",\"\"<3>\"\"]\",\"[\"\"uuid\"\",\"\"<1>\"\"]\",\"[\"\"uuid\"\",\"\"<5>\"\"]\"
 
80502
" | \
 
80503
  $at_diff - "$at_stdout" || at_failed=:
 
80504
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:185"
 
80505
$at_failed && at_fn_log_failure  \
 
80506
"ovsdb-server-log"
 
80507
$at_traceon; }
 
80508
 
 
80509
     set +x
 
80510
  $at_times_p && times >"$at_times_file"
 
80511
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
80512
read at_status <"$at_status_file"
 
80513
#AT_STOP_912
 
80514
#AT_START_913
 
80515
at_fn_group_banner 913 'ovsdb-monitor.at:220' \
 
80516
  "monitor insert-update-and-delete transaction" "   " 62
 
80517
at_xfail=no
 
80518
(
 
80519
  $as_echo "913. $at_setup_line: testing $at_desc ..."
 
80520
  $at_traceon
 
80521
 
 
80522
 
 
80523
   cat >schema <<'_ATEOF'
 
80524
{"name": "ordinals",
 
80525
     "tables": {
 
80526
       "ordinals": {
 
80527
         "columns": {
 
80528
           "number": {"type": "integer"},
 
80529
           "name": {"type": "string"}},
 
80530
         "indexes": [["number"]]}},
 
80531
     "version": "5.1.3",
 
80532
     "cksum": "12345678 9"}
 
80533
_ATEOF
 
80534
 
 
80535
   { set +x
 
80536
$as_echo "$at_srcdir/ovsdb-monitor.at:220: ovsdb-tool create db schema"
 
80537
at_fn_check_prepare_trace "ovsdb-monitor.at:220"
 
80538
( $at_check_trace; ovsdb-tool create db schema
 
80539
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80540
at_status=$? at_failed=false
 
80541
$at_check_filter
 
80542
echo stderr:; cat "$at_stderr"
 
80543
echo stdout:; tee stdout <"$at_stdout"
 
80544
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80545
$at_failed && at_fn_log_failure
 
80546
$at_traceon; }
 
80547
 
 
80548
   { set +x
 
80549
$as_echo "$at_srcdir/ovsdb-monitor.at:220: ovsdb-tool transact db '[\"ordinals\",
 
80550
      {\"op\": \"insert\",
 
80551
       \"table\": \"ordinals\",
 
80552
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
80553
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:220"
 
80554
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
80555
      {"op": "insert",
 
80556
       "table": "ordinals",
 
80557
       "row": {"number": 10, "name": "ten"}}]'
 
80558
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80559
at_status=$? at_failed=false
 
80560
$at_check_filter
 
80561
echo stderr:; cat "$at_stderr"
 
80562
echo stdout:; cat "$at_stdout"
 
80563
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80564
$at_failed && at_fn_log_failure
 
80565
$at_traceon; }
 
80566
 
 
80567
 
 
80568
   { set +x
 
80569
$as_echo "$at_srcdir/ovsdb-monitor.at:220: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
80570
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:220"
 
80571
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
80572
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80573
at_status=$? at_failed=false
 
80574
$at_check_filter
 
80575
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
80576
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
80577
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80578
$at_failed && at_fn_log_failure  \
 
80579
"ovsdb-server-log"
 
80580
$at_traceon; }
 
80581
 
 
80582
   { set +x
 
80583
$as_echo "$at_srcdir/ovsdb-monitor.at:220: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
80584
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:220"
 
80585
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
80586
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80587
at_status=$? at_failed=false
 
80588
$at_check_filter
 
80589
echo stderr:; cat "$at_stderr"
 
80590
echo stdout:; cat "$at_stdout"
 
80591
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80592
if $at_failed; then :
 
80593
  kill `cat server-pid`
 
80594
fi
 
80595
$at_failed && at_fn_log_failure  \
 
80596
"ovsdb-server-log"
 
80597
$at_traceon; }
 
80598
 
 
80599
   { set +x
 
80600
$as_echo "$at_srcdir/ovsdb-monitor.at:220: ovsdb-client transact unix:socket '[\"ordinals\",
 
80601
      {\"op\": \"insert\",
 
80602
       \"table\": \"ordinals\",
 
80603
       \"row\": {\"number\": 9, \"name\": \"nine\"},
 
80604
       \"uuid-name\": \"nine\"},
 
80605
      {\"op\": \"update\",
 
80606
       \"table\": \"ordinals\",
 
80607
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"nine\"]]],
 
80608
       \"row\": {\"name\": \"three squared\"}},
 
80609
      {\"op\": \"delete\",
 
80610
       \"table\": \"ordinals\",
 
80611
       \"where\": [[\"_uuid\", \"==\", [\"named-uuid\", \"nine\"]]]},
 
80612
      {\"op\": \"insert\",
 
80613
       \"table\": \"ordinals\",
 
80614
       \"row\": {\"number\": 7, \"name\": \"seven\"}}]'"
 
80615
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:220"
 
80616
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
80617
      {"op": "insert",
 
80618
       "table": "ordinals",
 
80619
       "row": {"number": 9, "name": "nine"},
 
80620
       "uuid-name": "nine"},
 
80621
      {"op": "update",
 
80622
       "table": "ordinals",
 
80623
       "where": [["_uuid", "==", ["named-uuid", "nine"]]],
 
80624
       "row": {"name": "three squared"}},
 
80625
      {"op": "delete",
 
80626
       "table": "ordinals",
 
80627
       "where": [["_uuid", "==", ["named-uuid", "nine"]]]},
 
80628
      {"op": "insert",
 
80629
       "table": "ordinals",
 
80630
       "row": {"number": 7, "name": "seven"}}]'
 
80631
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80632
at_status=$? at_failed=false
 
80633
$at_check_filter
 
80634
echo stderr:; cat "$at_stderr"
 
80635
echo stdout:; cat "$at_stdout"
 
80636
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80637
if $at_failed; then :
 
80638
  kill `cat server-pid client-pid`
 
80639
fi
 
80640
$at_failed && at_fn_log_failure  \
 
80641
"ovsdb-server-log"
 
80642
$at_traceon; }
 
80643
 
 
80644
   { set +x
 
80645
$as_echo "$at_srcdir/ovsdb-monitor.at:220: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
80646
at_fn_check_prepare_trace "ovsdb-monitor.at:220"
 
80647
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
80648
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80649
at_status=$? at_failed=false
 
80650
$at_check_filter
 
80651
echo stderr:; cat "$at_stderr"
 
80652
echo stdout:; cat "$at_stdout"
 
80653
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80654
if $at_failed; then :
 
80655
  kill `cat server-pid client-pid`
 
80656
fi
 
80657
$at_failed && at_fn_log_failure  \
 
80658
"ovsdb-server-log"
 
80659
$at_traceon; }
 
80660
 
 
80661
   { set +x
 
80662
$as_echo "$at_srcdir/ovsdb-monitor.at:220: ovs-appctl -t \$PWD/unixctl -e exit"
 
80663
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:220"
 
80664
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
80665
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80666
at_status=$? at_failed=false
 
80667
$at_check_filter
 
80668
echo stderr:; cat "$at_stderr"
 
80669
echo stdout:; cat "$at_stdout"
 
80670
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80671
$at_failed && at_fn_log_failure  \
 
80672
"ovsdb-server-log"
 
80673
$at_traceon; }
 
80674
 
 
80675
   { set +x
 
80676
$as_echo "$at_srcdir/ovsdb-monitor.at:220: # First try a quick sleep, so that the test completes very quickly
 
80677
     # in the normal case.  POSIX doesn't require fractional times to
 
80678
     # work, so this might not work.
 
80679
     sleep 0.1
 
80680
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80681
     # Then wait up to 10 seconds.
 
80682
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80683
       sleep 1
 
80684
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80685
     done
 
80686
     exit 1"
 
80687
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:220"
 
80688
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
80689
     # in the normal case.  POSIX doesn't require fractional times to
 
80690
     # work, so this might not work.
 
80691
     sleep 0.1
 
80692
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80693
     # Then wait up to 10 seconds.
 
80694
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80695
       sleep 1
 
80696
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80697
     done
 
80698
     exit 1
 
80699
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80700
at_status=$? at_failed=false
 
80701
$at_check_filter
 
80702
echo stderr:; cat "$at_stderr"
 
80703
echo stdout:; cat "$at_stdout"
 
80704
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80705
$at_failed && at_fn_log_failure  \
 
80706
"ovsdb-server-log"
 
80707
$at_traceon; }
 
80708
 
 
80709
   { set +x
 
80710
$as_echo "$at_srcdir/ovsdb-monitor.at:220: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
80711
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:220"
 
80712
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
80713
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80714
at_status=$? at_failed=false
 
80715
$at_check_filter
 
80716
echo stderr:; cat "$at_stderr"
 
80717
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
80718
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
80719
 
 
80720
row,action,name,number,_version
 
80721
<2>,insert,\"\"\"seven\"\"\",7,\"[\"\"uuid\"\",\"\"<3>\"\"]\"
 
80722
" | \
 
80723
  $at_diff - "$at_stdout" || at_failed=:
 
80724
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:220"
 
80725
$at_failed && at_fn_log_failure  \
 
80726
"ovsdb-server-log"
 
80727
$at_traceon; }
 
80728
 
 
80729
     set +x
 
80730
  $at_times_p && times >"$at_times_file"
 
80731
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
80732
read at_status <"$at_status_file"
 
80733
#AT_STOP_913
 
80734
#AT_START_914
 
80735
at_fn_group_banner 914 'ovsdb-monitor.at:271' \
 
80736
  "monitor all operations" "                         " 63
 
80737
at_xfail=no
 
80738
(
 
80739
  $as_echo "914. $at_setup_line: testing $at_desc ..."
 
80740
  $at_traceon
 
80741
 
 
80742
 
 
80743
   cat >schema <<'_ATEOF'
 
80744
{"name": "ordinals",
 
80745
     "tables": {
 
80746
       "ordinals": {
 
80747
         "columns": {
 
80748
           "number": {"type": "integer"},
 
80749
           "name": {"type": "string"}},
 
80750
         "indexes": [["number"]]}},
 
80751
     "version": "5.1.3",
 
80752
     "cksum": "12345678 9"}
 
80753
_ATEOF
 
80754
 
 
80755
   { set +x
 
80756
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovsdb-tool create db schema"
 
80757
at_fn_check_prepare_trace "ovsdb-monitor.at:271"
 
80758
( $at_check_trace; ovsdb-tool create db schema
 
80759
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80760
at_status=$? at_failed=false
 
80761
$at_check_filter
 
80762
echo stderr:; cat "$at_stderr"
 
80763
echo stdout:; tee stdout <"$at_stdout"
 
80764
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80765
$at_failed && at_fn_log_failure
 
80766
$at_traceon; }
 
80767
 
 
80768
   { set +x
 
80769
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovsdb-tool transact db '[\"ordinals\",
 
80770
      {\"op\": \"insert\",
 
80771
       \"table\": \"ordinals\",
 
80772
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
80773
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:271"
 
80774
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
80775
      {"op": "insert",
 
80776
       "table": "ordinals",
 
80777
       "row": {"number": 10, "name": "ten"}}]'
 
80778
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80779
at_status=$? at_failed=false
 
80780
$at_check_filter
 
80781
echo stderr:; cat "$at_stderr"
 
80782
echo stdout:; cat "$at_stdout"
 
80783
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80784
$at_failed && at_fn_log_failure
 
80785
$at_traceon; }
 
80786
 
 
80787
 
 
80788
   { set +x
 
80789
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
80790
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:271"
 
80791
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
80792
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80793
at_status=$? at_failed=false
 
80794
$at_check_filter
 
80795
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
80796
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
80797
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80798
$at_failed && at_fn_log_failure  \
 
80799
"ovsdb-server-log"
 
80800
$at_traceon; }
 
80801
 
 
80802
   { set +x
 
80803
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output"
 
80804
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output" "ovsdb-monitor.at:271"
 
80805
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals  > output
 
80806
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80807
at_status=$? at_failed=false
 
80808
$at_check_filter
 
80809
echo stderr:; cat "$at_stderr"
 
80810
echo stdout:; cat "$at_stdout"
 
80811
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80812
if $at_failed; then :
 
80813
  kill `cat server-pid`
 
80814
fi
 
80815
$at_failed && at_fn_log_failure  \
 
80816
"ovsdb-server-log"
 
80817
$at_traceon; }
 
80818
 
 
80819
   { set +x
 
80820
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovsdb-client transact unix:socket '[\"ordinals\",
 
80821
      {\"op\": \"insert\",
 
80822
       \"table\": \"ordinals\",
 
80823
       \"row\": {\"number\": 5, \"name\": \"five\"}}]'"
 
80824
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:271"
 
80825
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
80826
      {"op": "insert",
 
80827
       "table": "ordinals",
 
80828
       "row": {"number": 5, "name": "five"}}]'
 
80829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80830
at_status=$? at_failed=false
 
80831
$at_check_filter
 
80832
echo stderr:; cat "$at_stderr"
 
80833
echo stdout:; cat "$at_stdout"
 
80834
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80835
if $at_failed; then :
 
80836
  kill `cat server-pid client-pid`
 
80837
fi
 
80838
$at_failed && at_fn_log_failure  \
 
80839
"ovsdb-server-log"
 
80840
$at_traceon; }
 
80841
{ set +x
 
80842
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovsdb-client transact unix:socket '[\"ordinals\",
 
80843
      {\"op\": \"update\",
 
80844
       \"table\": \"ordinals\",
 
80845
       \"where\": [[\"name\", \"==\", \"five\"]],
 
80846
       \"row\": {\"name\": \"FIVE\"}}]'"
 
80847
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:271"
 
80848
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
80849
      {"op": "update",
 
80850
       "table": "ordinals",
 
80851
       "where": [["name", "==", "five"]],
 
80852
       "row": {"name": "FIVE"}}]'
 
80853
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80854
at_status=$? at_failed=false
 
80855
$at_check_filter
 
80856
echo stderr:; cat "$at_stderr"
 
80857
echo stdout:; cat "$at_stdout"
 
80858
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80859
if $at_failed; then :
 
80860
  kill `cat server-pid client-pid`
 
80861
fi
 
80862
$at_failed && at_fn_log_failure  \
 
80863
"ovsdb-server-log"
 
80864
$at_traceon; }
 
80865
{ set +x
 
80866
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovsdb-client transact unix:socket '[\"ordinals\",
 
80867
      {\"op\": \"delete\",
 
80868
       \"table\": \"ordinals\",
 
80869
       \"where\": []}]'"
 
80870
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:271"
 
80871
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
80872
      {"op": "delete",
 
80873
       "table": "ordinals",
 
80874
       "where": []}]'
 
80875
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80876
at_status=$? at_failed=false
 
80877
$at_check_filter
 
80878
echo stderr:; cat "$at_stderr"
 
80879
echo stdout:; cat "$at_stdout"
 
80880
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80881
if $at_failed; then :
 
80882
  kill `cat server-pid client-pid`
 
80883
fi
 
80884
$at_failed && at_fn_log_failure  \
 
80885
"ovsdb-server-log"
 
80886
$at_traceon; }
 
80887
 
 
80888
   { set +x
 
80889
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
80890
at_fn_check_prepare_trace "ovsdb-monitor.at:271"
 
80891
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
80892
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80893
at_status=$? at_failed=false
 
80894
$at_check_filter
 
80895
echo stderr:; cat "$at_stderr"
 
80896
echo stdout:; cat "$at_stdout"
 
80897
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80898
if $at_failed; then :
 
80899
  kill `cat server-pid client-pid`
 
80900
fi
 
80901
$at_failed && at_fn_log_failure  \
 
80902
"ovsdb-server-log"
 
80903
$at_traceon; }
 
80904
 
 
80905
   { set +x
 
80906
$as_echo "$at_srcdir/ovsdb-monitor.at:271: ovs-appctl -t \$PWD/unixctl -e exit"
 
80907
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:271"
 
80908
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
80909
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80910
at_status=$? at_failed=false
 
80911
$at_check_filter
 
80912
echo stderr:; cat "$at_stderr"
 
80913
echo stdout:; cat "$at_stdout"
 
80914
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80915
$at_failed && at_fn_log_failure  \
 
80916
"ovsdb-server-log"
 
80917
$at_traceon; }
 
80918
 
 
80919
   { set +x
 
80920
$as_echo "$at_srcdir/ovsdb-monitor.at:271: # First try a quick sleep, so that the test completes very quickly
 
80921
     # in the normal case.  POSIX doesn't require fractional times to
 
80922
     # work, so this might not work.
 
80923
     sleep 0.1
 
80924
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80925
     # Then wait up to 10 seconds.
 
80926
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80927
       sleep 1
 
80928
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80929
     done
 
80930
     exit 1"
 
80931
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:271"
 
80932
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
80933
     # in the normal case.  POSIX doesn't require fractional times to
 
80934
     # work, so this might not work.
 
80935
     sleep 0.1
 
80936
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80937
     # Then wait up to 10 seconds.
 
80938
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
80939
       sleep 1
 
80940
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
80941
     done
 
80942
     exit 1
 
80943
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80944
at_status=$? at_failed=false
 
80945
$at_check_filter
 
80946
echo stderr:; cat "$at_stderr"
 
80947
echo stdout:; cat "$at_stdout"
 
80948
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80949
$at_failed && at_fn_log_failure  \
 
80950
"ovsdb-server-log"
 
80951
$at_traceon; }
 
80952
 
 
80953
   { set +x
 
80954
$as_echo "$at_srcdir/ovsdb-monitor.at:271: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
80955
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:271"
 
80956
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
80957
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
80958
at_status=$? at_failed=false
 
80959
$at_check_filter
 
80960
echo stderr:; cat "$at_stderr"
 
80961
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
80962
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
80963
 
 
80964
row,action,name,number,_version
 
80965
<2>,insert,\"\"\"five\"\"\",5,\"[\"\"uuid\"\",\"\"<3>\"\"]\"
 
80966
 
 
80967
row,action,name,number,_version
 
80968
<2>,old,\"\"\"five\"\"\",,\"[\"\"uuid\"\",\"\"<3>\"\"]\"
 
80969
,new,\"\"\"FIVE\"\"\",5,\"[\"\"uuid\"\",\"\"<4>\"\"]\"
 
80970
 
 
80971
row,action,name,number,_version
 
80972
<2>,delete,\"\"\"FIVE\"\"\",5,\"[\"\"uuid\"\",\"\"<4>\"\"]\"
 
80973
<0>,delete,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
80974
" | \
 
80975
  $at_diff - "$at_stdout" || at_failed=:
 
80976
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:271"
 
80977
$at_failed && at_fn_log_failure  \
 
80978
"ovsdb-server-log"
 
80979
$at_traceon; }
 
80980
 
 
80981
     set +x
 
80982
  $at_times_p && times >"$at_times_file"
 
80983
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
80984
read at_status <"$at_status_file"
 
80985
#AT_STOP_914
 
80986
#AT_START_915
 
80987
at_fn_group_banner 915 'ovsdb-monitor.at:291' \
 
80988
  "monitor initial only" "                           " 63
 
80989
at_xfail=no
 
80990
(
 
80991
  $as_echo "915. $at_setup_line: testing $at_desc ..."
 
80992
  $at_traceon
 
80993
 
 
80994
 
 
80995
   cat >schema <<'_ATEOF'
 
80996
{"name": "ordinals",
 
80997
     "tables": {
 
80998
       "ordinals": {
 
80999
         "columns": {
 
81000
           "number": {"type": "integer"},
 
81001
           "name": {"type": "string"}},
 
81002
         "indexes": [["number"]]}},
 
81003
     "version": "5.1.3",
 
81004
     "cksum": "12345678 9"}
 
81005
_ATEOF
 
81006
 
 
81007
   { set +x
 
81008
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovsdb-tool create db schema"
 
81009
at_fn_check_prepare_trace "ovsdb-monitor.at:291"
 
81010
( $at_check_trace; ovsdb-tool create db schema
 
81011
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81012
at_status=$? at_failed=false
 
81013
$at_check_filter
 
81014
echo stderr:; cat "$at_stderr"
 
81015
echo stdout:; tee stdout <"$at_stdout"
 
81016
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81017
$at_failed && at_fn_log_failure
 
81018
$at_traceon; }
 
81019
 
 
81020
   { set +x
 
81021
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovsdb-tool transact db '[\"ordinals\",
 
81022
      {\"op\": \"insert\",
 
81023
       \"table\": \"ordinals\",
 
81024
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
81025
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:291"
 
81026
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
81027
      {"op": "insert",
 
81028
       "table": "ordinals",
 
81029
       "row": {"number": 10, "name": "ten"}}]'
 
81030
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81031
at_status=$? at_failed=false
 
81032
$at_check_filter
 
81033
echo stderr:; cat "$at_stderr"
 
81034
echo stdout:; cat "$at_stdout"
 
81035
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81036
$at_failed && at_fn_log_failure
 
81037
$at_traceon; }
 
81038
 
 
81039
 
 
81040
   { set +x
 
81041
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
81042
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:291"
 
81043
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
81044
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81045
at_status=$? at_failed=false
 
81046
$at_check_filter
 
81047
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
81048
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
81049
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81050
$at_failed && at_fn_log_failure  \
 
81051
"ovsdb-server-log"
 
81052
$at_traceon; }
 
81053
 
 
81054
   { set +x
 
81055
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !insert,!delete,!modify > output"
 
81056
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !insert,!delete,!modify > output" "ovsdb-monitor.at:291"
 
81057
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !insert,!delete,!modify > output
 
81058
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81059
at_status=$? at_failed=false
 
81060
$at_check_filter
 
81061
echo stderr:; cat "$at_stderr"
 
81062
echo stdout:; cat "$at_stdout"
 
81063
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81064
if $at_failed; then :
 
81065
  kill `cat server-pid`
 
81066
fi
 
81067
$at_failed && at_fn_log_failure  \
 
81068
"ovsdb-server-log"
 
81069
$at_traceon; }
 
81070
 
 
81071
   { set +x
 
81072
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovsdb-client transact unix:socket '[\"ordinals\",
 
81073
      {\"op\": \"insert\",
 
81074
       \"table\": \"ordinals\",
 
81075
       \"row\": {\"number\": 5, \"name\": \"five\"}}]'"
 
81076
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:291"
 
81077
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81078
      {"op": "insert",
 
81079
       "table": "ordinals",
 
81080
       "row": {"number": 5, "name": "five"}}]'
 
81081
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81082
at_status=$? at_failed=false
 
81083
$at_check_filter
 
81084
echo stderr:; cat "$at_stderr"
 
81085
echo stdout:; cat "$at_stdout"
 
81086
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81087
if $at_failed; then :
 
81088
  kill `cat server-pid client-pid`
 
81089
fi
 
81090
$at_failed && at_fn_log_failure  \
 
81091
"ovsdb-server-log"
 
81092
$at_traceon; }
 
81093
{ set +x
 
81094
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovsdb-client transact unix:socket '[\"ordinals\",
 
81095
      {\"op\": \"update\",
 
81096
       \"table\": \"ordinals\",
 
81097
       \"where\": [[\"name\", \"==\", \"five\"]],
 
81098
       \"row\": {\"name\": \"FIVE\"}}]'"
 
81099
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:291"
 
81100
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81101
      {"op": "update",
 
81102
       "table": "ordinals",
 
81103
       "where": [["name", "==", "five"]],
 
81104
       "row": {"name": "FIVE"}}]'
 
81105
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81106
at_status=$? at_failed=false
 
81107
$at_check_filter
 
81108
echo stderr:; cat "$at_stderr"
 
81109
echo stdout:; cat "$at_stdout"
 
81110
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81111
if $at_failed; then :
 
81112
  kill `cat server-pid client-pid`
 
81113
fi
 
81114
$at_failed && at_fn_log_failure  \
 
81115
"ovsdb-server-log"
 
81116
$at_traceon; }
 
81117
{ set +x
 
81118
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovsdb-client transact unix:socket '[\"ordinals\",
 
81119
      {\"op\": \"delete\",
 
81120
       \"table\": \"ordinals\",
 
81121
       \"where\": []}]'"
 
81122
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:291"
 
81123
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81124
      {"op": "delete",
 
81125
       "table": "ordinals",
 
81126
       "where": []}]'
 
81127
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81128
at_status=$? at_failed=false
 
81129
$at_check_filter
 
81130
echo stderr:; cat "$at_stderr"
 
81131
echo stdout:; cat "$at_stdout"
 
81132
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81133
if $at_failed; then :
 
81134
  kill `cat server-pid client-pid`
 
81135
fi
 
81136
$at_failed && at_fn_log_failure  \
 
81137
"ovsdb-server-log"
 
81138
$at_traceon; }
 
81139
 
 
81140
   { set +x
 
81141
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
81142
at_fn_check_prepare_trace "ovsdb-monitor.at:291"
 
81143
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
81144
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81145
at_status=$? at_failed=false
 
81146
$at_check_filter
 
81147
echo stderr:; cat "$at_stderr"
 
81148
echo stdout:; cat "$at_stdout"
 
81149
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81150
if $at_failed; then :
 
81151
  kill `cat server-pid client-pid`
 
81152
fi
 
81153
$at_failed && at_fn_log_failure  \
 
81154
"ovsdb-server-log"
 
81155
$at_traceon; }
 
81156
 
 
81157
   { set +x
 
81158
$as_echo "$at_srcdir/ovsdb-monitor.at:291: ovs-appctl -t \$PWD/unixctl -e exit"
 
81159
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:291"
 
81160
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
81161
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81162
at_status=$? at_failed=false
 
81163
$at_check_filter
 
81164
echo stderr:; cat "$at_stderr"
 
81165
echo stdout:; cat "$at_stdout"
 
81166
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81167
$at_failed && at_fn_log_failure  \
 
81168
"ovsdb-server-log"
 
81169
$at_traceon; }
 
81170
 
 
81171
   { set +x
 
81172
$as_echo "$at_srcdir/ovsdb-monitor.at:291: # First try a quick sleep, so that the test completes very quickly
 
81173
     # in the normal case.  POSIX doesn't require fractional times to
 
81174
     # work, so this might not work.
 
81175
     sleep 0.1
 
81176
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81177
     # Then wait up to 10 seconds.
 
81178
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
81179
       sleep 1
 
81180
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81181
     done
 
81182
     exit 1"
 
81183
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:291"
 
81184
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
81185
     # in the normal case.  POSIX doesn't require fractional times to
 
81186
     # work, so this might not work.
 
81187
     sleep 0.1
 
81188
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81189
     # Then wait up to 10 seconds.
 
81190
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
81191
       sleep 1
 
81192
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81193
     done
 
81194
     exit 1
 
81195
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81196
at_status=$? at_failed=false
 
81197
$at_check_filter
 
81198
echo stderr:; cat "$at_stderr"
 
81199
echo stdout:; cat "$at_stdout"
 
81200
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81201
$at_failed && at_fn_log_failure  \
 
81202
"ovsdb-server-log"
 
81203
$at_traceon; }
 
81204
 
 
81205
   { set +x
 
81206
$as_echo "$at_srcdir/ovsdb-monitor.at:291: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
81207
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:291"
 
81208
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
81209
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81210
at_status=$? at_failed=false
 
81211
$at_check_filter
 
81212
echo stderr:; cat "$at_stderr"
 
81213
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
81214
<0>,initial,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
81215
" | \
 
81216
  $at_diff - "$at_stdout" || at_failed=:
 
81217
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:291"
 
81218
$at_failed && at_fn_log_failure  \
 
81219
"ovsdb-server-log"
 
81220
$at_traceon; }
 
81221
 
 
81222
     set +x
 
81223
  $at_times_p && times >"$at_times_file"
 
81224
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
81225
read at_status <"$at_status_file"
 
81226
#AT_STOP_915
 
81227
#AT_START_916
 
81228
at_fn_group_banner 916 'ovsdb-monitor.at:298' \
 
81229
  "monitor insert only" "                            " 63
 
81230
at_xfail=no
 
81231
(
 
81232
  $as_echo "916. $at_setup_line: testing $at_desc ..."
 
81233
  $at_traceon
 
81234
 
 
81235
 
 
81236
   cat >schema <<'_ATEOF'
 
81237
{"name": "ordinals",
 
81238
     "tables": {
 
81239
       "ordinals": {
 
81240
         "columns": {
 
81241
           "number": {"type": "integer"},
 
81242
           "name": {"type": "string"}},
 
81243
         "indexes": [["number"]]}},
 
81244
     "version": "5.1.3",
 
81245
     "cksum": "12345678 9"}
 
81246
_ATEOF
 
81247
 
 
81248
   { set +x
 
81249
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovsdb-tool create db schema"
 
81250
at_fn_check_prepare_trace "ovsdb-monitor.at:298"
 
81251
( $at_check_trace; ovsdb-tool create db schema
 
81252
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81253
at_status=$? at_failed=false
 
81254
$at_check_filter
 
81255
echo stderr:; cat "$at_stderr"
 
81256
echo stdout:; tee stdout <"$at_stdout"
 
81257
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81258
$at_failed && at_fn_log_failure
 
81259
$at_traceon; }
 
81260
 
 
81261
   { set +x
 
81262
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovsdb-tool transact db '[\"ordinals\",
 
81263
      {\"op\": \"insert\",
 
81264
       \"table\": \"ordinals\",
 
81265
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
81266
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:298"
 
81267
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
81268
      {"op": "insert",
 
81269
       "table": "ordinals",
 
81270
       "row": {"number": 10, "name": "ten"}}]'
 
81271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81272
at_status=$? at_failed=false
 
81273
$at_check_filter
 
81274
echo stderr:; cat "$at_stderr"
 
81275
echo stdout:; cat "$at_stdout"
 
81276
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81277
$at_failed && at_fn_log_failure
 
81278
$at_traceon; }
 
81279
 
 
81280
 
 
81281
   { set +x
 
81282
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
81283
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:298"
 
81284
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
81285
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81286
at_status=$? at_failed=false
 
81287
$at_check_filter
 
81288
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
81289
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
81290
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81291
$at_failed && at_fn_log_failure  \
 
81292
"ovsdb-server-log"
 
81293
$at_traceon; }
 
81294
 
 
81295
   { set +x
 
81296
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!delete,!modify > output"
 
81297
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!delete,!modify > output" "ovsdb-monitor.at:298"
 
81298
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!delete,!modify > output
 
81299
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81300
at_status=$? at_failed=false
 
81301
$at_check_filter
 
81302
echo stderr:; cat "$at_stderr"
 
81303
echo stdout:; cat "$at_stdout"
 
81304
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81305
if $at_failed; then :
 
81306
  kill `cat server-pid`
 
81307
fi
 
81308
$at_failed && at_fn_log_failure  \
 
81309
"ovsdb-server-log"
 
81310
$at_traceon; }
 
81311
 
 
81312
   { set +x
 
81313
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovsdb-client transact unix:socket '[\"ordinals\",
 
81314
      {\"op\": \"insert\",
 
81315
       \"table\": \"ordinals\",
 
81316
       \"row\": {\"number\": 5, \"name\": \"five\"}}]'"
 
81317
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:298"
 
81318
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81319
      {"op": "insert",
 
81320
       "table": "ordinals",
 
81321
       "row": {"number": 5, "name": "five"}}]'
 
81322
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81323
at_status=$? at_failed=false
 
81324
$at_check_filter
 
81325
echo stderr:; cat "$at_stderr"
 
81326
echo stdout:; cat "$at_stdout"
 
81327
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81328
if $at_failed; then :
 
81329
  kill `cat server-pid client-pid`
 
81330
fi
 
81331
$at_failed && at_fn_log_failure  \
 
81332
"ovsdb-server-log"
 
81333
$at_traceon; }
 
81334
{ set +x
 
81335
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovsdb-client transact unix:socket '[\"ordinals\",
 
81336
      {\"op\": \"update\",
 
81337
       \"table\": \"ordinals\",
 
81338
       \"where\": [[\"name\", \"==\", \"five\"]],
 
81339
       \"row\": {\"name\": \"FIVE\"}}]'"
 
81340
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:298"
 
81341
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81342
      {"op": "update",
 
81343
       "table": "ordinals",
 
81344
       "where": [["name", "==", "five"]],
 
81345
       "row": {"name": "FIVE"}}]'
 
81346
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81347
at_status=$? at_failed=false
 
81348
$at_check_filter
 
81349
echo stderr:; cat "$at_stderr"
 
81350
echo stdout:; cat "$at_stdout"
 
81351
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81352
if $at_failed; then :
 
81353
  kill `cat server-pid client-pid`
 
81354
fi
 
81355
$at_failed && at_fn_log_failure  \
 
81356
"ovsdb-server-log"
 
81357
$at_traceon; }
 
81358
{ set +x
 
81359
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovsdb-client transact unix:socket '[\"ordinals\",
 
81360
      {\"op\": \"delete\",
 
81361
       \"table\": \"ordinals\",
 
81362
       \"where\": []}]'"
 
81363
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:298"
 
81364
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81365
      {"op": "delete",
 
81366
       "table": "ordinals",
 
81367
       "where": []}]'
 
81368
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81369
at_status=$? at_failed=false
 
81370
$at_check_filter
 
81371
echo stderr:; cat "$at_stderr"
 
81372
echo stdout:; cat "$at_stdout"
 
81373
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81374
if $at_failed; then :
 
81375
  kill `cat server-pid client-pid`
 
81376
fi
 
81377
$at_failed && at_fn_log_failure  \
 
81378
"ovsdb-server-log"
 
81379
$at_traceon; }
 
81380
 
 
81381
   { set +x
 
81382
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
81383
at_fn_check_prepare_trace "ovsdb-monitor.at:298"
 
81384
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
81385
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81386
at_status=$? at_failed=false
 
81387
$at_check_filter
 
81388
echo stderr:; cat "$at_stderr"
 
81389
echo stdout:; cat "$at_stdout"
 
81390
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81391
if $at_failed; then :
 
81392
  kill `cat server-pid client-pid`
 
81393
fi
 
81394
$at_failed && at_fn_log_failure  \
 
81395
"ovsdb-server-log"
 
81396
$at_traceon; }
 
81397
 
 
81398
   { set +x
 
81399
$as_echo "$at_srcdir/ovsdb-monitor.at:298: ovs-appctl -t \$PWD/unixctl -e exit"
 
81400
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:298"
 
81401
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
81402
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81403
at_status=$? at_failed=false
 
81404
$at_check_filter
 
81405
echo stderr:; cat "$at_stderr"
 
81406
echo stdout:; cat "$at_stdout"
 
81407
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81408
$at_failed && at_fn_log_failure  \
 
81409
"ovsdb-server-log"
 
81410
$at_traceon; }
 
81411
 
 
81412
   { set +x
 
81413
$as_echo "$at_srcdir/ovsdb-monitor.at:298: # First try a quick sleep, so that the test completes very quickly
 
81414
     # in the normal case.  POSIX doesn't require fractional times to
 
81415
     # work, so this might not work.
 
81416
     sleep 0.1
 
81417
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81418
     # Then wait up to 10 seconds.
 
81419
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
81420
       sleep 1
 
81421
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81422
     done
 
81423
     exit 1"
 
81424
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:298"
 
81425
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
81426
     # in the normal case.  POSIX doesn't require fractional times to
 
81427
     # work, so this might not work.
 
81428
     sleep 0.1
 
81429
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81430
     # Then wait up to 10 seconds.
 
81431
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
81432
       sleep 1
 
81433
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81434
     done
 
81435
     exit 1
 
81436
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81437
at_status=$? at_failed=false
 
81438
$at_check_filter
 
81439
echo stderr:; cat "$at_stderr"
 
81440
echo stdout:; cat "$at_stdout"
 
81441
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81442
$at_failed && at_fn_log_failure  \
 
81443
"ovsdb-server-log"
 
81444
$at_traceon; }
 
81445
 
 
81446
   { set +x
 
81447
$as_echo "$at_srcdir/ovsdb-monitor.at:298: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
81448
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:298"
 
81449
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
81450
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81451
at_status=$? at_failed=false
 
81452
$at_check_filter
 
81453
echo stderr:; cat "$at_stderr"
 
81454
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
81455
<0>,insert,\"\"\"five\"\"\",5,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
81456
" | \
 
81457
  $at_diff - "$at_stdout" || at_failed=:
 
81458
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:298"
 
81459
$at_failed && at_fn_log_failure  \
 
81460
"ovsdb-server-log"
 
81461
$at_traceon; }
 
81462
 
 
81463
     set +x
 
81464
  $at_times_p && times >"$at_times_file"
 
81465
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
81466
read at_status <"$at_status_file"
 
81467
#AT_STOP_916
 
81468
#AT_START_917
 
81469
at_fn_group_banner 917 'ovsdb-monitor.at:305' \
 
81470
  "monitor delete only" "                            " 63
 
81471
at_xfail=no
 
81472
(
 
81473
  $as_echo "917. $at_setup_line: testing $at_desc ..."
 
81474
  $at_traceon
 
81475
 
 
81476
 
 
81477
   cat >schema <<'_ATEOF'
 
81478
{"name": "ordinals",
 
81479
     "tables": {
 
81480
       "ordinals": {
 
81481
         "columns": {
 
81482
           "number": {"type": "integer"},
 
81483
           "name": {"type": "string"}},
 
81484
         "indexes": [["number"]]}},
 
81485
     "version": "5.1.3",
 
81486
     "cksum": "12345678 9"}
 
81487
_ATEOF
 
81488
 
 
81489
   { set +x
 
81490
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovsdb-tool create db schema"
 
81491
at_fn_check_prepare_trace "ovsdb-monitor.at:305"
 
81492
( $at_check_trace; ovsdb-tool create db schema
 
81493
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81494
at_status=$? at_failed=false
 
81495
$at_check_filter
 
81496
echo stderr:; cat "$at_stderr"
 
81497
echo stdout:; tee stdout <"$at_stdout"
 
81498
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81499
$at_failed && at_fn_log_failure
 
81500
$at_traceon; }
 
81501
 
 
81502
   { set +x
 
81503
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovsdb-tool transact db '[\"ordinals\",
 
81504
      {\"op\": \"insert\",
 
81505
       \"table\": \"ordinals\",
 
81506
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
81507
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:305"
 
81508
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
81509
      {"op": "insert",
 
81510
       "table": "ordinals",
 
81511
       "row": {"number": 10, "name": "ten"}}]'
 
81512
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81513
at_status=$? at_failed=false
 
81514
$at_check_filter
 
81515
echo stderr:; cat "$at_stderr"
 
81516
echo stdout:; cat "$at_stdout"
 
81517
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81518
$at_failed && at_fn_log_failure
 
81519
$at_traceon; }
 
81520
 
 
81521
 
 
81522
   { set +x
 
81523
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
81524
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:305"
 
81525
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
81526
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81527
at_status=$? at_failed=false
 
81528
$at_check_filter
 
81529
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
81530
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
81531
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81532
$at_failed && at_fn_log_failure  \
 
81533
"ovsdb-server-log"
 
81534
$at_traceon; }
 
81535
 
 
81536
   { set +x
 
81537
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!insert,!modify > output"
 
81538
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!insert,!modify > output" "ovsdb-monitor.at:305"
 
81539
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!insert,!modify > output
 
81540
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81541
at_status=$? at_failed=false
 
81542
$at_check_filter
 
81543
echo stderr:; cat "$at_stderr"
 
81544
echo stdout:; cat "$at_stdout"
 
81545
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81546
if $at_failed; then :
 
81547
  kill `cat server-pid`
 
81548
fi
 
81549
$at_failed && at_fn_log_failure  \
 
81550
"ovsdb-server-log"
 
81551
$at_traceon; }
 
81552
 
 
81553
   { set +x
 
81554
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovsdb-client transact unix:socket '[\"ordinals\",
 
81555
      {\"op\": \"insert\",
 
81556
       \"table\": \"ordinals\",
 
81557
       \"row\": {\"number\": 5, \"name\": \"five\"}}]'"
 
81558
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:305"
 
81559
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81560
      {"op": "insert",
 
81561
       "table": "ordinals",
 
81562
       "row": {"number": 5, "name": "five"}}]'
 
81563
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81564
at_status=$? at_failed=false
 
81565
$at_check_filter
 
81566
echo stderr:; cat "$at_stderr"
 
81567
echo stdout:; cat "$at_stdout"
 
81568
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81569
if $at_failed; then :
 
81570
  kill `cat server-pid client-pid`
 
81571
fi
 
81572
$at_failed && at_fn_log_failure  \
 
81573
"ovsdb-server-log"
 
81574
$at_traceon; }
 
81575
{ set +x
 
81576
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovsdb-client transact unix:socket '[\"ordinals\",
 
81577
      {\"op\": \"update\",
 
81578
       \"table\": \"ordinals\",
 
81579
       \"where\": [[\"name\", \"==\", \"five\"]],
 
81580
       \"row\": {\"name\": \"FIVE\"}}]'"
 
81581
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:305"
 
81582
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81583
      {"op": "update",
 
81584
       "table": "ordinals",
 
81585
       "where": [["name", "==", "five"]],
 
81586
       "row": {"name": "FIVE"}}]'
 
81587
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81588
at_status=$? at_failed=false
 
81589
$at_check_filter
 
81590
echo stderr:; cat "$at_stderr"
 
81591
echo stdout:; cat "$at_stdout"
 
81592
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81593
if $at_failed; then :
 
81594
  kill `cat server-pid client-pid`
 
81595
fi
 
81596
$at_failed && at_fn_log_failure  \
 
81597
"ovsdb-server-log"
 
81598
$at_traceon; }
 
81599
{ set +x
 
81600
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovsdb-client transact unix:socket '[\"ordinals\",
 
81601
      {\"op\": \"delete\",
 
81602
       \"table\": \"ordinals\",
 
81603
       \"where\": []}]'"
 
81604
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:305"
 
81605
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81606
      {"op": "delete",
 
81607
       "table": "ordinals",
 
81608
       "where": []}]'
 
81609
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81610
at_status=$? at_failed=false
 
81611
$at_check_filter
 
81612
echo stderr:; cat "$at_stderr"
 
81613
echo stdout:; cat "$at_stdout"
 
81614
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81615
if $at_failed; then :
 
81616
  kill `cat server-pid client-pid`
 
81617
fi
 
81618
$at_failed && at_fn_log_failure  \
 
81619
"ovsdb-server-log"
 
81620
$at_traceon; }
 
81621
 
 
81622
   { set +x
 
81623
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
81624
at_fn_check_prepare_trace "ovsdb-monitor.at:305"
 
81625
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
81626
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81627
at_status=$? at_failed=false
 
81628
$at_check_filter
 
81629
echo stderr:; cat "$at_stderr"
 
81630
echo stdout:; cat "$at_stdout"
 
81631
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81632
if $at_failed; then :
 
81633
  kill `cat server-pid client-pid`
 
81634
fi
 
81635
$at_failed && at_fn_log_failure  \
 
81636
"ovsdb-server-log"
 
81637
$at_traceon; }
 
81638
 
 
81639
   { set +x
 
81640
$as_echo "$at_srcdir/ovsdb-monitor.at:305: ovs-appctl -t \$PWD/unixctl -e exit"
 
81641
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:305"
 
81642
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
81643
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81644
at_status=$? at_failed=false
 
81645
$at_check_filter
 
81646
echo stderr:; cat "$at_stderr"
 
81647
echo stdout:; cat "$at_stdout"
 
81648
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81649
$at_failed && at_fn_log_failure  \
 
81650
"ovsdb-server-log"
 
81651
$at_traceon; }
 
81652
 
 
81653
   { set +x
 
81654
$as_echo "$at_srcdir/ovsdb-monitor.at:305: # First try a quick sleep, so that the test completes very quickly
 
81655
     # in the normal case.  POSIX doesn't require fractional times to
 
81656
     # work, so this might not work.
 
81657
     sleep 0.1
 
81658
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81659
     # Then wait up to 10 seconds.
 
81660
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
81661
       sleep 1
 
81662
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81663
     done
 
81664
     exit 1"
 
81665
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:305"
 
81666
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
81667
     # in the normal case.  POSIX doesn't require fractional times to
 
81668
     # work, so this might not work.
 
81669
     sleep 0.1
 
81670
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81671
     # Then wait up to 10 seconds.
 
81672
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
81673
       sleep 1
 
81674
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81675
     done
 
81676
     exit 1
 
81677
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81678
at_status=$? at_failed=false
 
81679
$at_check_filter
 
81680
echo stderr:; cat "$at_stderr"
 
81681
echo stdout:; cat "$at_stdout"
 
81682
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81683
$at_failed && at_fn_log_failure  \
 
81684
"ovsdb-server-log"
 
81685
$at_traceon; }
 
81686
 
 
81687
   { set +x
 
81688
$as_echo "$at_srcdir/ovsdb-monitor.at:305: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
81689
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:305"
 
81690
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
81691
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81692
at_status=$? at_failed=false
 
81693
$at_check_filter
 
81694
echo stderr:; cat "$at_stderr"
 
81695
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
81696
<0>,delete,\"\"\"FIVE\"\"\",5,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
81697
<2>,delete,\"\"\"ten\"\"\",10,\"[\"\"uuid\"\",\"\"<3>\"\"]\"
 
81698
" | \
 
81699
  $at_diff - "$at_stdout" || at_failed=:
 
81700
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:305"
 
81701
$at_failed && at_fn_log_failure  \
 
81702
"ovsdb-server-log"
 
81703
$at_traceon; }
 
81704
 
 
81705
     set +x
 
81706
  $at_times_p && times >"$at_times_file"
 
81707
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
81708
read at_status <"$at_status_file"
 
81709
#AT_STOP_917
 
81710
#AT_START_918
 
81711
at_fn_group_banner 918 'ovsdb-monitor.at:313' \
 
81712
  "monitor modify only" "                            " 63
 
81713
at_xfail=no
 
81714
(
 
81715
  $as_echo "918. $at_setup_line: testing $at_desc ..."
 
81716
  $at_traceon
 
81717
 
 
81718
 
 
81719
   cat >schema <<'_ATEOF'
 
81720
{"name": "ordinals",
 
81721
     "tables": {
 
81722
       "ordinals": {
 
81723
         "columns": {
 
81724
           "number": {"type": "integer"},
 
81725
           "name": {"type": "string"}},
 
81726
         "indexes": [["number"]]}},
 
81727
     "version": "5.1.3",
 
81728
     "cksum": "12345678 9"}
 
81729
_ATEOF
 
81730
 
 
81731
   { set +x
 
81732
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovsdb-tool create db schema"
 
81733
at_fn_check_prepare_trace "ovsdb-monitor.at:313"
 
81734
( $at_check_trace; ovsdb-tool create db schema
 
81735
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81736
at_status=$? at_failed=false
 
81737
$at_check_filter
 
81738
echo stderr:; cat "$at_stderr"
 
81739
echo stdout:; tee stdout <"$at_stdout"
 
81740
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81741
$at_failed && at_fn_log_failure
 
81742
$at_traceon; }
 
81743
 
 
81744
   { set +x
 
81745
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovsdb-tool transact db '[\"ordinals\",
 
81746
      {\"op\": \"insert\",
 
81747
       \"table\": \"ordinals\",
 
81748
       \"row\": {\"number\": 10, \"name\": \"ten\"}}]'"
 
81749
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:313"
 
81750
( $at_check_trace; ovsdb-tool transact db '["ordinals",
 
81751
      {"op": "insert",
 
81752
       "table": "ordinals",
 
81753
       "row": {"number": 10, "name": "ten"}}]'
 
81754
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81755
at_status=$? at_failed=false
 
81756
$at_check_filter
 
81757
echo stderr:; cat "$at_stderr"
 
81758
echo stdout:; cat "$at_stdout"
 
81759
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81760
$at_failed && at_fn_log_failure
 
81761
$at_traceon; }
 
81762
 
 
81763
 
 
81764
   { set +x
 
81765
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovsdb-server --detach --pidfile=\$PWD/server-pid --remote=punix:socket --unixctl=\$PWD/unixctl --log-file=\$PWD/ovsdb-server-log db >/dev/null 2>&1"
 
81766
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1" "ovsdb-monitor.at:313"
 
81767
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/server-pid --remote=punix:socket --unixctl=$PWD/unixctl --log-file=$PWD/ovsdb-server-log db >/dev/null 2>&1
 
81768
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81769
at_status=$? at_failed=false
 
81770
$at_check_filter
 
81771
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
81772
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
81773
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81774
$at_failed && at_fn_log_failure  \
 
81775
"ovsdb-server-log"
 
81776
$at_traceon; }
 
81777
 
 
81778
   { set +x
 
81779
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovsdb-client -vjsonrpc --detach --pidfile=\$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!insert,!delete > output"
 
81780
at_fn_check_prepare_dynamic "ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!insert,!delete > output" "ovsdb-monitor.at:313"
 
81781
( $at_check_trace; ovsdb-client -vjsonrpc --detach --pidfile=$PWD/client-pid -d json monitor --format=csv unix:socket ordinals ordinals !initial,!insert,!delete > output
 
81782
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81783
at_status=$? at_failed=false
 
81784
$at_check_filter
 
81785
echo stderr:; cat "$at_stderr"
 
81786
echo stdout:; cat "$at_stdout"
 
81787
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81788
if $at_failed; then :
 
81789
  kill `cat server-pid`
 
81790
fi
 
81791
$at_failed && at_fn_log_failure  \
 
81792
"ovsdb-server-log"
 
81793
$at_traceon; }
 
81794
 
 
81795
   { set +x
 
81796
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovsdb-client transact unix:socket '[\"ordinals\",
 
81797
      {\"op\": \"insert\",
 
81798
       \"table\": \"ordinals\",
 
81799
       \"row\": {\"number\": 5, \"name\": \"five\"}}]'"
 
81800
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:313"
 
81801
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81802
      {"op": "insert",
 
81803
       "table": "ordinals",
 
81804
       "row": {"number": 5, "name": "five"}}]'
 
81805
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81806
at_status=$? at_failed=false
 
81807
$at_check_filter
 
81808
echo stderr:; cat "$at_stderr"
 
81809
echo stdout:; cat "$at_stdout"
 
81810
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81811
if $at_failed; then :
 
81812
  kill `cat server-pid client-pid`
 
81813
fi
 
81814
$at_failed && at_fn_log_failure  \
 
81815
"ovsdb-server-log"
 
81816
$at_traceon; }
 
81817
{ set +x
 
81818
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovsdb-client transact unix:socket '[\"ordinals\",
 
81819
      {\"op\": \"update\",
 
81820
       \"table\": \"ordinals\",
 
81821
       \"where\": [[\"name\", \"==\", \"five\"]],
 
81822
       \"row\": {\"name\": \"FIVE\"}}]'"
 
81823
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:313"
 
81824
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81825
      {"op": "update",
 
81826
       "table": "ordinals",
 
81827
       "where": [["name", "==", "five"]],
 
81828
       "row": {"name": "FIVE"}}]'
 
81829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81830
at_status=$? at_failed=false
 
81831
$at_check_filter
 
81832
echo stderr:; cat "$at_stderr"
 
81833
echo stdout:; cat "$at_stdout"
 
81834
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81835
if $at_failed; then :
 
81836
  kill `cat server-pid client-pid`
 
81837
fi
 
81838
$at_failed && at_fn_log_failure  \
 
81839
"ovsdb-server-log"
 
81840
$at_traceon; }
 
81841
{ set +x
 
81842
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovsdb-client transact unix:socket '[\"ordinals\",
 
81843
      {\"op\": \"delete\",
 
81844
       \"table\": \"ordinals\",
 
81845
       \"where\": []}]'"
 
81846
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:313"
 
81847
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals",
 
81848
      {"op": "delete",
 
81849
       "table": "ordinals",
 
81850
       "where": []}]'
 
81851
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81852
at_status=$? at_failed=false
 
81853
$at_check_filter
 
81854
echo stderr:; cat "$at_stderr"
 
81855
echo stdout:; cat "$at_stdout"
 
81856
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81857
if $at_failed; then :
 
81858
  kill `cat server-pid client-pid`
 
81859
fi
 
81860
$at_failed && at_fn_log_failure  \
 
81861
"ovsdb-server-log"
 
81862
$at_traceon; }
 
81863
 
 
81864
   { set +x
 
81865
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovsdb-client transact unix:socket '[\"ordinals\"]'"
 
81866
at_fn_check_prepare_trace "ovsdb-monitor.at:313"
 
81867
( $at_check_trace; ovsdb-client transact unix:socket '["ordinals"]'
 
81868
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81869
at_status=$? at_failed=false
 
81870
$at_check_filter
 
81871
echo stderr:; cat "$at_stderr"
 
81872
echo stdout:; cat "$at_stdout"
 
81873
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81874
if $at_failed; then :
 
81875
  kill `cat server-pid client-pid`
 
81876
fi
 
81877
$at_failed && at_fn_log_failure  \
 
81878
"ovsdb-server-log"
 
81879
$at_traceon; }
 
81880
 
 
81881
   { set +x
 
81882
$as_echo "$at_srcdir/ovsdb-monitor.at:313: ovs-appctl -t \$PWD/unixctl -e exit"
 
81883
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-monitor.at:313"
 
81884
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
81885
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81886
at_status=$? at_failed=false
 
81887
$at_check_filter
 
81888
echo stderr:; cat "$at_stderr"
 
81889
echo stdout:; cat "$at_stdout"
 
81890
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81891
$at_failed && at_fn_log_failure  \
 
81892
"ovsdb-server-log"
 
81893
$at_traceon; }
 
81894
 
 
81895
   { set +x
 
81896
$as_echo "$at_srcdir/ovsdb-monitor.at:313: # First try a quick sleep, so that the test completes very quickly
 
81897
     # in the normal case.  POSIX doesn't require fractional times to
 
81898
     # work, so this might not work.
 
81899
     sleep 0.1
 
81900
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81901
     # Then wait up to 10 seconds.
 
81902
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
81903
       sleep 1
 
81904
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81905
     done
 
81906
     exit 1"
 
81907
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-monitor.at:313"
 
81908
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
81909
     # in the normal case.  POSIX doesn't require fractional times to
 
81910
     # work, so this might not work.
 
81911
     sleep 0.1
 
81912
     if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81913
     # Then wait up to 10 seconds.
 
81914
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
81915
       sleep 1
 
81916
       if test ! -e server-pid && test ! -e client-pid; then exit 0; fi
 
81917
     done
 
81918
     exit 1
 
81919
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81920
at_status=$? at_failed=false
 
81921
$at_check_filter
 
81922
echo stderr:; cat "$at_stderr"
 
81923
echo stdout:; cat "$at_stdout"
 
81924
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81925
$at_failed && at_fn_log_failure  \
 
81926
"ovsdb-server-log"
 
81927
$at_traceon; }
 
81928
 
 
81929
   { set +x
 
81930
$as_echo "$at_srcdir/ovsdb-monitor.at:313: perl \$srcdir/ovsdb-monitor-sort.pl < output | perl \$srcdir/uuidfilt.pl"
 
81931
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-monitor.at:313"
 
81932
( $at_check_trace; perl $srcdir/ovsdb-monitor-sort.pl < output | perl $srcdir/uuidfilt.pl
 
81933
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81934
at_status=$? at_failed=false
 
81935
$at_check_filter
 
81936
echo stderr:; cat "$at_stderr"
 
81937
echo >>"$at_stdout"; $as_echo "row,action,name,number,_version
 
81938
<0>,old,\"\"\"five\"\"\",,\"[\"\"uuid\"\",\"\"<1>\"\"]\"
 
81939
,new,\"\"\"FIVE\"\"\",5,\"[\"\"uuid\"\",\"\"<2>\"\"]\"
 
81940
" | \
 
81941
  $at_diff - "$at_stdout" || at_failed=:
 
81942
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-monitor.at:313"
 
81943
$at_failed && at_fn_log_failure  \
 
81944
"ovsdb-server-log"
 
81945
$at_traceon; }
 
81946
 
 
81947
     set +x
 
81948
  $at_times_p && times >"$at_times_file"
 
81949
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
81950
read at_status <"$at_status_file"
 
81951
#AT_STOP_918
 
81952
#AT_START_919
 
81953
at_fn_group_banner 919 'ovsdb-idl.at:55' \
 
81954
  "simple idl, initially empty, no ops - C" "        " 64
 
81955
at_xfail=no
 
81956
(
 
81957
  $as_echo "919. $at_setup_line: testing $at_desc ..."
 
81958
  $at_traceon
 
81959
 
 
81960
 
 
81961
   { set +x
 
81962
$as_echo "$at_srcdir/ovsdb-idl.at:55: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
81963
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:55"
 
81964
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
81965
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81966
at_status=$? at_failed=false
 
81967
$at_check_filter
 
81968
echo stderr:; cat "$at_stderr"
 
81969
echo stdout:; tee stdout <"$at_stdout"
 
81970
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
81971
$at_failed && at_fn_log_failure
 
81972
$at_traceon; }
 
81973
 
 
81974
   { set +x
 
81975
$as_echo "$at_srcdir/ovsdb-idl.at:55: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
81976
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:55"
 
81977
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
81978
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81979
at_status=$? at_failed=false
 
81980
$at_check_filter
 
81981
echo stderr:; cat "$at_stderr"
 
81982
echo stdout:; cat "$at_stdout"
 
81983
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
81984
$at_failed && at_fn_log_failure
 
81985
$at_traceon; }
 
81986
 
 
81987
 
 
81988
   { set +x
 
81989
$as_echo "$at_srcdir/ovsdb-idl.at:55: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket "
 
81990
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:55"
 
81991
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket
 
81992
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
81993
at_status=$? at_failed=false
 
81994
$at_check_filter
 
81995
echo stderr:; cat "$at_stderr"
 
81996
echo stdout:; tee stdout <"$at_stdout"
 
81997
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
81998
if $at_failed; then :
 
81999
  kill `cat pid`
 
82000
fi
 
82001
$at_failed && at_fn_log_failure
 
82002
$at_traceon; }
 
82003
 
 
82004
   { set +x
 
82005
$as_echo "$at_srcdir/ovsdb-idl.at:55: sort stdout | perl \$srcdir/uuidfilt.pl"
 
82006
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:55"
 
82007
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
82008
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82009
at_status=$? at_failed=false
 
82010
$at_check_filter
 
82011
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
82012
echo >>"$at_stdout"; $as_echo "000: empty
 
82013
001: done
 
82014
" | \
 
82015
  $at_diff - "$at_stdout" || at_failed=:
 
82016
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82017
if $at_failed; then :
 
82018
  kill `cat pid`
 
82019
fi
 
82020
$at_failed && at_fn_log_failure
 
82021
$at_traceon; }
 
82022
 
 
82023
   cp pid savepid
 
82024
   { set +x
 
82025
$as_echo "$at_srcdir/ovsdb-idl.at:55: ovs-appctl -t \$PWD/unixctl -e exit"
 
82026
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:55"
 
82027
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
82028
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82029
at_status=$? at_failed=false
 
82030
$at_check_filter
 
82031
echo stderr:; cat "$at_stderr"
 
82032
echo stdout:; cat "$at_stdout"
 
82033
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82034
$at_failed && at_fn_log_failure
 
82035
$at_traceon; }
 
82036
 
 
82037
   { set +x
 
82038
$as_echo "$at_srcdir/ovsdb-idl.at:55: # First try a quick sleep, so that the test completes very quickly
 
82039
     # in the normal case.  POSIX doesn't require fractional times to
 
82040
     # work, so this might not work.
 
82041
     sleep 0.1
 
82042
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82043
     # Then wait up to 10 seconds.
 
82044
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82045
       sleep 1
 
82046
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82047
     done
 
82048
     exit 1"
 
82049
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:55"
 
82050
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
82051
     # in the normal case.  POSIX doesn't require fractional times to
 
82052
     # work, so this might not work.
 
82053
     sleep 0.1
 
82054
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
82055
     # Then wait up to 10 seconds.
 
82056
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82057
       sleep 1
 
82058
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
82059
     done
 
82060
     exit 1
 
82061
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82062
at_status=$? at_failed=false
 
82063
$at_check_filter
 
82064
echo stderr:; cat "$at_stderr"
 
82065
echo stdout:; cat "$at_stdout"
 
82066
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82067
if $at_failed; then :
 
82068
  kill `cat savepid`
 
82069
fi
 
82070
$at_failed && at_fn_log_failure
 
82071
$at_traceon; }
 
82072
 
 
82073
     set +x
 
82074
  $at_times_p && times >"$at_times_file"
 
82075
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
82076
read at_status <"$at_status_file"
 
82077
#AT_STOP_919
 
82078
#AT_START_920
 
82079
at_fn_group_banner 920 'ovsdb-idl.at:55' \
 
82080
  "simple idl, initially empty, no ops - Python" "   " 64
 
82081
at_xfail=no
 
82082
(
 
82083
  $as_echo "920. $at_setup_line: testing $at_desc ..."
 
82084
  $at_traceon
 
82085
 
 
82086
   $as_echo "ovsdb-idl.at:55" >"$at_check_line_file"
 
82087
(test $HAVE_PYTHON = no) \
 
82088
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:55"
 
82089
 
 
82090
   { set +x
 
82091
$as_echo "$at_srcdir/ovsdb-idl.at:55: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
82092
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:55"
 
82093
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
82094
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82095
at_status=$? at_failed=false
 
82096
$at_check_filter
 
82097
echo stderr:; cat "$at_stderr"
 
82098
echo stdout:; tee stdout <"$at_stdout"
 
82099
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82100
$at_failed && at_fn_log_failure
 
82101
$at_traceon; }
 
82102
 
 
82103
   { set +x
 
82104
$as_echo "$at_srcdir/ovsdb-idl.at:55: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
82105
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:55"
 
82106
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
82107
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82108
at_status=$? at_failed=false
 
82109
$at_check_filter
 
82110
echo stderr:; cat "$at_stderr"
 
82111
echo stdout:; cat "$at_stdout"
 
82112
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82113
$at_failed && at_fn_log_failure
 
82114
$at_traceon; }
 
82115
 
 
82116
 
 
82117
   { set +x
 
82118
$as_echo "$at_srcdir/ovsdb-idl.at:55: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket "
 
82119
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket " "ovsdb-idl.at:55"
 
82120
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket
 
82121
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82122
at_status=$? at_failed=false
 
82123
$at_check_filter
 
82124
echo stderr:; cat "$at_stderr"
 
82125
echo stdout:; tee stdout <"$at_stdout"
 
82126
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82127
if $at_failed; then :
 
82128
  kill `cat pid`
 
82129
fi
 
82130
$at_failed && at_fn_log_failure
 
82131
$at_traceon; }
 
82132
 
 
82133
   { set +x
 
82134
$as_echo "$at_srcdir/ovsdb-idl.at:55: sort stdout | perl \$srcdir/uuidfilt.pl"
 
82135
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:55"
 
82136
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
82137
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82138
at_status=$? at_failed=false
 
82139
$at_check_filter
 
82140
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
82141
echo >>"$at_stdout"; $as_echo "000: empty
 
82142
001: done
 
82143
" | \
 
82144
  $at_diff - "$at_stdout" || at_failed=:
 
82145
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82146
if $at_failed; then :
 
82147
  kill `cat pid`
 
82148
fi
 
82149
$at_failed && at_fn_log_failure
 
82150
$at_traceon; }
 
82151
 
 
82152
   cp pid savepid
 
82153
   { set +x
 
82154
$as_echo "$at_srcdir/ovsdb-idl.at:55: ovs-appctl -t \$PWD/unixctl -e exit"
 
82155
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:55"
 
82156
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
82157
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82158
at_status=$? at_failed=false
 
82159
$at_check_filter
 
82160
echo stderr:; cat "$at_stderr"
 
82161
echo stdout:; cat "$at_stdout"
 
82162
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82163
$at_failed && at_fn_log_failure
 
82164
$at_traceon; }
 
82165
 
 
82166
   { set +x
 
82167
$as_echo "$at_srcdir/ovsdb-idl.at:55: # First try a quick sleep, so that the test completes very quickly
 
82168
     # in the normal case.  POSIX doesn't require fractional times to
 
82169
     # work, so this might not work.
 
82170
     sleep 0.1
 
82171
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82172
     # Then wait up to 10 seconds.
 
82173
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82174
       sleep 1
 
82175
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82176
     done
 
82177
     exit 1"
 
82178
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:55"
 
82179
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
82180
     # in the normal case.  POSIX doesn't require fractional times to
 
82181
     # work, so this might not work.
 
82182
     sleep 0.1
 
82183
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
82184
     # Then wait up to 10 seconds.
 
82185
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82186
       sleep 1
 
82187
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
82188
     done
 
82189
     exit 1
 
82190
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82191
at_status=$? at_failed=false
 
82192
$at_check_filter
 
82193
echo stderr:; cat "$at_stderr"
 
82194
echo stdout:; cat "$at_stdout"
 
82195
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:55"
 
82196
if $at_failed; then :
 
82197
  kill `cat savepid`
 
82198
fi
 
82199
$at_failed && at_fn_log_failure
 
82200
$at_traceon; }
 
82201
 
 
82202
     set +x
 
82203
  $at_times_p && times >"$at_times_file"
 
82204
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
82205
read at_status <"$at_status_file"
 
82206
#AT_STOP_920
 
82207
#AT_START_921
 
82208
at_fn_group_banner 921 'ovsdb-idl.at:62' \
 
82209
  "simple idl, initially empty, various ops - C" "   " 64
 
82210
at_xfail=no
 
82211
(
 
82212
  $as_echo "921. $at_setup_line: testing $at_desc ..."
 
82213
  $at_traceon
 
82214
 
 
82215
 
 
82216
   { set +x
 
82217
$as_echo "$at_srcdir/ovsdb-idl.at:62: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
82218
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:62"
 
82219
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
82220
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82221
at_status=$? at_failed=false
 
82222
$at_check_filter
 
82223
echo stderr:; cat "$at_stderr"
 
82224
echo stdout:; tee stdout <"$at_stdout"
 
82225
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82226
$at_failed && at_fn_log_failure
 
82227
$at_traceon; }
 
82228
 
 
82229
   { set +x
 
82230
$as_echo "$at_srcdir/ovsdb-idl.at:62: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
82231
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:62"
 
82232
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
82233
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82234
at_status=$? at_failed=false
 
82235
$at_check_filter
 
82236
echo stderr:; cat "$at_stderr"
 
82237
echo stdout:; cat "$at_stdout"
 
82238
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82239
$at_failed && at_fn_log_failure
 
82240
$at_traceon; }
 
82241
 
 
82242
 
 
82243
   { set +x
 
82244
$as_echo "$at_srcdir/ovsdb-idl.at:62: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '[\"idltest\",
 
82245
      {\"op\": \"insert\",
 
82246
       \"table\": \"simple\",
 
82247
       \"row\": {\"i\": 1,
 
82248
               \"r\": 2.0,
 
82249
               \"b\": true,
 
82250
               \"s\": \"mystring\",
 
82251
               \"u\": [\"uuid\", \"84f5c8f5-ac76-4dbc-a24f-8860eb407fc1\"],
 
82252
               \"ia\": [\"set\", [1, 2, 3]],
 
82253
               \"ra\": [\"set\", [-0.5]],
 
82254
               \"ba\": [\"set\", [true]],
 
82255
               \"sa\": [\"set\", [\"abc\", \"def\"]],
 
82256
               \"ua\": [\"set\", [[\"uuid\", \"69443985-7806-45e2-b35f-574a04e720f9\"],
 
82257
                              [\"uuid\", \"aad11ef0-816a-4b01-93e6-03b8b4256b98\"]]]}},
 
82258
      {\"op\": \"insert\",
 
82259
       \"table\": \"simple\",
 
82260
       \"row\": {}}]' \\
 
82261
    '[\"idltest\",
 
82262
      {\"op\": \"update\",
 
82263
       \"table\": \"simple\",
 
82264
       \"where\": [],
 
82265
       \"row\": {\"b\": true}}]' \\
 
82266
    '[\"idltest\",
 
82267
      {\"op\": \"update\",
 
82268
       \"table\": \"simple\",
 
82269
       \"where\": [],
 
82270
       \"row\": {\"r\": 123.5}}]' \\
 
82271
    '[\"idltest\",
 
82272
      {\"op\": \"insert\",
 
82273
       \"table\": \"simple\",
 
82274
       \"row\": {\"i\": -1,
 
82275
               \"r\": 125,
 
82276
               \"b\": false,
 
82277
               \"s\": \"\",
 
82278
               \"ia\": [\"set\", [1]],
 
82279
               \"ra\": [\"set\", [1.5]],
 
82280
               \"ba\": [\"set\", [false]],
 
82281
               \"sa\": [\"set\", []],
 
82282
               \"ua\": [\"set\", []]}}]' \\
 
82283
    '[\"idltest\",
 
82284
      {\"op\": \"update\",
 
82285
       \"table\": \"simple\",
 
82286
       \"where\": [[\"i\", \"<\", 1]],
 
82287
       \"row\": {\"s\": \"newstring\"}}]' \\
 
82288
    '[\"idltest\",
 
82289
      {\"op\": \"delete\",
 
82290
       \"table\": \"simple\",
 
82291
       \"where\": [[\"i\", \"==\", 0]]}]' \\
 
82292
    'reconnect'"
 
82293
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:62"
 
82294
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '["idltest",
 
82295
      {"op": "insert",
 
82296
       "table": "simple",
 
82297
       "row": {"i": 1,
 
82298
               "r": 2.0,
 
82299
               "b": true,
 
82300
               "s": "mystring",
 
82301
               "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
 
82302
               "ia": ["set", [1, 2, 3]],
 
82303
               "ra": ["set", [-0.5]],
 
82304
               "ba": ["set", [true]],
 
82305
               "sa": ["set", ["abc", "def"]],
 
82306
               "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
 
82307
                              ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
 
82308
      {"op": "insert",
 
82309
       "table": "simple",
 
82310
       "row": {}}]' \
 
82311
    '["idltest",
 
82312
      {"op": "update",
 
82313
       "table": "simple",
 
82314
       "where": [],
 
82315
       "row": {"b": true}}]' \
 
82316
    '["idltest",
 
82317
      {"op": "update",
 
82318
       "table": "simple",
 
82319
       "where": [],
 
82320
       "row": {"r": 123.5}}]' \
 
82321
    '["idltest",
 
82322
      {"op": "insert",
 
82323
       "table": "simple",
 
82324
       "row": {"i": -1,
 
82325
               "r": 125,
 
82326
               "b": false,
 
82327
               "s": "",
 
82328
               "ia": ["set", [1]],
 
82329
               "ra": ["set", [1.5]],
 
82330
               "ba": ["set", [false]],
 
82331
               "sa": ["set", []],
 
82332
               "ua": ["set", []]}}]' \
 
82333
    '["idltest",
 
82334
      {"op": "update",
 
82335
       "table": "simple",
 
82336
       "where": [["i", "<", 1]],
 
82337
       "row": {"s": "newstring"}}]' \
 
82338
    '["idltest",
 
82339
      {"op": "delete",
 
82340
       "table": "simple",
 
82341
       "where": [["i", "==", 0]]}]' \
 
82342
    'reconnect'
 
82343
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82344
at_status=$? at_failed=false
 
82345
$at_check_filter
 
82346
echo stderr:; cat "$at_stderr"
 
82347
echo stdout:; tee stdout <"$at_stdout"
 
82348
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82349
if $at_failed; then :
 
82350
  kill `cat pid`
 
82351
fi
 
82352
$at_failed && at_fn_log_failure
 
82353
$at_traceon; }
 
82354
 
 
82355
   { set +x
 
82356
$as_echo "$at_srcdir/ovsdb-idl.at:62: sort stdout | perl \$srcdir/uuidfilt.pl"
 
82357
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:62"
 
82358
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
82359
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82360
at_status=$? at_failed=false
 
82361
$at_check_filter
 
82362
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
82363
echo >>"$at_stdout"; $as_echo "000: empty
 
82364
001: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]}
 
82365
002: i=0 r=0 b=false s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82366
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>
 
82367
003: {\"error\":null,\"result\":[{\"count\":2}]}
 
82368
004: i=0 r=0 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82369
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>
 
82370
005: {\"error\":null,\"result\":[{\"count\":2}]}
 
82371
006: i=0 r=123.5 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82372
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>
 
82373
007: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<6>\"]}]}
 
82374
008: i=-1 r=125 b=false s= u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
 
82375
008: i=0 r=123.5 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82376
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>
 
82377
009: {\"error\":null,\"result\":[{\"count\":2}]}
 
82378
010: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
 
82379
010: i=0 r=123.5 b=true s=newstring u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82380
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>
 
82381
011: {\"error\":null,\"result\":[{\"count\":1}]}
 
82382
012: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
 
82383
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>
 
82384
013: reconnect
 
82385
014: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
 
82386
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>
 
82387
015: done
 
82388
" | \
 
82389
  $at_diff - "$at_stdout" || at_failed=:
 
82390
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82391
if $at_failed; then :
 
82392
  kill `cat pid`
 
82393
fi
 
82394
$at_failed && at_fn_log_failure
 
82395
$at_traceon; }
 
82396
 
 
82397
   cp pid savepid
 
82398
   { set +x
 
82399
$as_echo "$at_srcdir/ovsdb-idl.at:62: ovs-appctl -t \$PWD/unixctl -e exit"
 
82400
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:62"
 
82401
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
82402
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82403
at_status=$? at_failed=false
 
82404
$at_check_filter
 
82405
echo stderr:; cat "$at_stderr"
 
82406
echo stdout:; cat "$at_stdout"
 
82407
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82408
$at_failed && at_fn_log_failure
 
82409
$at_traceon; }
 
82410
 
 
82411
   { set +x
 
82412
$as_echo "$at_srcdir/ovsdb-idl.at:62: # First try a quick sleep, so that the test completes very quickly
 
82413
     # in the normal case.  POSIX doesn't require fractional times to
 
82414
     # work, so this might not work.
 
82415
     sleep 0.1
 
82416
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82417
     # Then wait up to 10 seconds.
 
82418
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82419
       sleep 1
 
82420
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82421
     done
 
82422
     exit 1"
 
82423
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:62"
 
82424
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
82425
     # in the normal case.  POSIX doesn't require fractional times to
 
82426
     # work, so this might not work.
 
82427
     sleep 0.1
 
82428
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
82429
     # Then wait up to 10 seconds.
 
82430
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82431
       sleep 1
 
82432
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
82433
     done
 
82434
     exit 1
 
82435
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82436
at_status=$? at_failed=false
 
82437
$at_check_filter
 
82438
echo stderr:; cat "$at_stderr"
 
82439
echo stdout:; cat "$at_stdout"
 
82440
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82441
if $at_failed; then :
 
82442
  kill `cat savepid`
 
82443
fi
 
82444
$at_failed && at_fn_log_failure
 
82445
$at_traceon; }
 
82446
 
 
82447
     set +x
 
82448
  $at_times_p && times >"$at_times_file"
 
82449
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
82450
read at_status <"$at_status_file"
 
82451
#AT_STOP_921
 
82452
#AT_START_922
 
82453
at_fn_group_banner 922 'ovsdb-idl.at:62' \
 
82454
  "simple idl, initially empty, various ops - Python" "" 64
 
82455
at_xfail=no
 
82456
(
 
82457
  $as_echo "922. $at_setup_line: testing $at_desc ..."
 
82458
  $at_traceon
 
82459
 
 
82460
   $as_echo "ovsdb-idl.at:62" >"$at_check_line_file"
 
82461
(test $HAVE_PYTHON = no) \
 
82462
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:62"
 
82463
 
 
82464
   { set +x
 
82465
$as_echo "$at_srcdir/ovsdb-idl.at:62: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
82466
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:62"
 
82467
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
82468
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82469
at_status=$? at_failed=false
 
82470
$at_check_filter
 
82471
echo stderr:; cat "$at_stderr"
 
82472
echo stdout:; tee stdout <"$at_stdout"
 
82473
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82474
$at_failed && at_fn_log_failure
 
82475
$at_traceon; }
 
82476
 
 
82477
   { set +x
 
82478
$as_echo "$at_srcdir/ovsdb-idl.at:62: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
82479
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:62"
 
82480
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
82481
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82482
at_status=$? at_failed=false
 
82483
$at_check_filter
 
82484
echo stderr:; cat "$at_stderr"
 
82485
echo stdout:; cat "$at_stdout"
 
82486
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82487
$at_failed && at_fn_log_failure
 
82488
$at_traceon; }
 
82489
 
 
82490
 
 
82491
   { set +x
 
82492
$as_echo "$at_srcdir/ovsdb-idl.at:62: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket '[\"idltest\",
 
82493
      {\"op\": \"insert\",
 
82494
       \"table\": \"simple\",
 
82495
       \"row\": {\"i\": 1,
 
82496
               \"r\": 2.0,
 
82497
               \"b\": true,
 
82498
               \"s\": \"mystring\",
 
82499
               \"u\": [\"uuid\", \"84f5c8f5-ac76-4dbc-a24f-8860eb407fc1\"],
 
82500
               \"ia\": [\"set\", [1, 2, 3]],
 
82501
               \"ra\": [\"set\", [-0.5]],
 
82502
               \"ba\": [\"set\", [true]],
 
82503
               \"sa\": [\"set\", [\"abc\", \"def\"]],
 
82504
               \"ua\": [\"set\", [[\"uuid\", \"69443985-7806-45e2-b35f-574a04e720f9\"],
 
82505
                              [\"uuid\", \"aad11ef0-816a-4b01-93e6-03b8b4256b98\"]]]}},
 
82506
      {\"op\": \"insert\",
 
82507
       \"table\": \"simple\",
 
82508
       \"row\": {}}]' \\
 
82509
    '[\"idltest\",
 
82510
      {\"op\": \"update\",
 
82511
       \"table\": \"simple\",
 
82512
       \"where\": [],
 
82513
       \"row\": {\"b\": true}}]' \\
 
82514
    '[\"idltest\",
 
82515
      {\"op\": \"update\",
 
82516
       \"table\": \"simple\",
 
82517
       \"where\": [],
 
82518
       \"row\": {\"r\": 123.5}}]' \\
 
82519
    '[\"idltest\",
 
82520
      {\"op\": \"insert\",
 
82521
       \"table\": \"simple\",
 
82522
       \"row\": {\"i\": -1,
 
82523
               \"r\": 125,
 
82524
               \"b\": false,
 
82525
               \"s\": \"\",
 
82526
               \"ia\": [\"set\", [1]],
 
82527
               \"ra\": [\"set\", [1.5]],
 
82528
               \"ba\": [\"set\", [false]],
 
82529
               \"sa\": [\"set\", []],
 
82530
               \"ua\": [\"set\", []]}}]' \\
 
82531
    '[\"idltest\",
 
82532
      {\"op\": \"update\",
 
82533
       \"table\": \"simple\",
 
82534
       \"where\": [[\"i\", \"<\", 1]],
 
82535
       \"row\": {\"s\": \"newstring\"}}]' \\
 
82536
    '[\"idltest\",
 
82537
      {\"op\": \"delete\",
 
82538
       \"table\": \"simple\",
 
82539
       \"where\": [[\"i\", \"==\", 0]]}]' \\
 
82540
    'reconnect'"
 
82541
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:62"
 
82542
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket '["idltest",
 
82543
      {"op": "insert",
 
82544
       "table": "simple",
 
82545
       "row": {"i": 1,
 
82546
               "r": 2.0,
 
82547
               "b": true,
 
82548
               "s": "mystring",
 
82549
               "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
 
82550
               "ia": ["set", [1, 2, 3]],
 
82551
               "ra": ["set", [-0.5]],
 
82552
               "ba": ["set", [true]],
 
82553
               "sa": ["set", ["abc", "def"]],
 
82554
               "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
 
82555
                              ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
 
82556
      {"op": "insert",
 
82557
       "table": "simple",
 
82558
       "row": {}}]' \
 
82559
    '["idltest",
 
82560
      {"op": "update",
 
82561
       "table": "simple",
 
82562
       "where": [],
 
82563
       "row": {"b": true}}]' \
 
82564
    '["idltest",
 
82565
      {"op": "update",
 
82566
       "table": "simple",
 
82567
       "where": [],
 
82568
       "row": {"r": 123.5}}]' \
 
82569
    '["idltest",
 
82570
      {"op": "insert",
 
82571
       "table": "simple",
 
82572
       "row": {"i": -1,
 
82573
               "r": 125,
 
82574
               "b": false,
 
82575
               "s": "",
 
82576
               "ia": ["set", [1]],
 
82577
               "ra": ["set", [1.5]],
 
82578
               "ba": ["set", [false]],
 
82579
               "sa": ["set", []],
 
82580
               "ua": ["set", []]}}]' \
 
82581
    '["idltest",
 
82582
      {"op": "update",
 
82583
       "table": "simple",
 
82584
       "where": [["i", "<", 1]],
 
82585
       "row": {"s": "newstring"}}]' \
 
82586
    '["idltest",
 
82587
      {"op": "delete",
 
82588
       "table": "simple",
 
82589
       "where": [["i", "==", 0]]}]' \
 
82590
    'reconnect'
 
82591
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82592
at_status=$? at_failed=false
 
82593
$at_check_filter
 
82594
echo stderr:; cat "$at_stderr"
 
82595
echo stdout:; tee stdout <"$at_stdout"
 
82596
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82597
if $at_failed; then :
 
82598
  kill `cat pid`
 
82599
fi
 
82600
$at_failed && at_fn_log_failure
 
82601
$at_traceon; }
 
82602
 
 
82603
   { set +x
 
82604
$as_echo "$at_srcdir/ovsdb-idl.at:62: sort stdout | perl \$srcdir/uuidfilt.pl"
 
82605
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:62"
 
82606
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
82607
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82608
at_status=$? at_failed=false
 
82609
$at_check_filter
 
82610
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
82611
echo >>"$at_stdout"; $as_echo "000: empty
 
82612
001: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]}
 
82613
002: i=0 r=0 b=false s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82614
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>
 
82615
003: {\"error\":null,\"result\":[{\"count\":2}]}
 
82616
004: i=0 r=0 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82617
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>
 
82618
005: {\"error\":null,\"result\":[{\"count\":2}]}
 
82619
006: i=0 r=123.5 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82620
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>
 
82621
007: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<6>\"]}]}
 
82622
008: i=-1 r=125 b=false s= u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
 
82623
008: i=0 r=123.5 b=true s= u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82624
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>
 
82625
009: {\"error\":null,\"result\":[{\"count\":2}]}
 
82626
010: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
 
82627
010: i=0 r=123.5 b=true s=newstring u=<2> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82628
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>
 
82629
011: {\"error\":null,\"result\":[{\"count\":1}]}
 
82630
012: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
 
82631
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>
 
82632
013: reconnect
 
82633
014: i=-1 r=125 b=false s=newstring u=<2> ia=[1] ra=[1.5] ba=[false] sa=[] ua=[] uuid=<6>
 
82634
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>
 
82635
015: done
 
82636
" | \
 
82637
  $at_diff - "$at_stdout" || at_failed=:
 
82638
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82639
if $at_failed; then :
 
82640
  kill `cat pid`
 
82641
fi
 
82642
$at_failed && at_fn_log_failure
 
82643
$at_traceon; }
 
82644
 
 
82645
   cp pid savepid
 
82646
   { set +x
 
82647
$as_echo "$at_srcdir/ovsdb-idl.at:62: ovs-appctl -t \$PWD/unixctl -e exit"
 
82648
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:62"
 
82649
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
82650
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82651
at_status=$? at_failed=false
 
82652
$at_check_filter
 
82653
echo stderr:; cat "$at_stderr"
 
82654
echo stdout:; cat "$at_stdout"
 
82655
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82656
$at_failed && at_fn_log_failure
 
82657
$at_traceon; }
 
82658
 
 
82659
   { set +x
 
82660
$as_echo "$at_srcdir/ovsdb-idl.at:62: # First try a quick sleep, so that the test completes very quickly
 
82661
     # in the normal case.  POSIX doesn't require fractional times to
 
82662
     # work, so this might not work.
 
82663
     sleep 0.1
 
82664
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82665
     # Then wait up to 10 seconds.
 
82666
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82667
       sleep 1
 
82668
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82669
     done
 
82670
     exit 1"
 
82671
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:62"
 
82672
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
82673
     # in the normal case.  POSIX doesn't require fractional times to
 
82674
     # work, so this might not work.
 
82675
     sleep 0.1
 
82676
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
82677
     # Then wait up to 10 seconds.
 
82678
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82679
       sleep 1
 
82680
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
82681
     done
 
82682
     exit 1
 
82683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82684
at_status=$? at_failed=false
 
82685
$at_check_filter
 
82686
echo stderr:; cat "$at_stderr"
 
82687
echo stdout:; cat "$at_stdout"
 
82688
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:62"
 
82689
if $at_failed; then :
 
82690
  kill `cat savepid`
 
82691
fi
 
82692
$at_failed && at_fn_log_failure
 
82693
$at_traceon; }
 
82694
 
 
82695
     set +x
 
82696
  $at_times_p && times >"$at_times_file"
 
82697
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
82698
read at_status <"$at_status_file"
 
82699
#AT_STOP_922
 
82700
#AT_START_923
 
82701
at_fn_group_banner 923 'ovsdb-idl.at:140' \
 
82702
  "simple idl, initially populated - C" "            " 64
 
82703
at_xfail=no
 
82704
(
 
82705
  $as_echo "923. $at_setup_line: testing $at_desc ..."
 
82706
  $at_traceon
 
82707
 
 
82708
 
 
82709
   { set +x
 
82710
$as_echo "$at_srcdir/ovsdb-idl.at:140: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
82711
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:140"
 
82712
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
82713
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82714
at_status=$? at_failed=false
 
82715
$at_check_filter
 
82716
echo stderr:; cat "$at_stderr"
 
82717
echo stdout:; tee stdout <"$at_stdout"
 
82718
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82719
$at_failed && at_fn_log_failure
 
82720
$at_traceon; }
 
82721
 
 
82722
   { set +x
 
82723
$as_echo "$at_srcdir/ovsdb-idl.at:140: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
82724
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:140"
 
82725
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
82726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82727
at_status=$? at_failed=false
 
82728
$at_check_filter
 
82729
echo stderr:; cat "$at_stderr"
 
82730
echo stdout:; cat "$at_stdout"
 
82731
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82732
$at_failed && at_fn_log_failure
 
82733
$at_traceon; }
 
82734
 
 
82735
   { set +x
 
82736
$as_echo "$at_srcdir/ovsdb-idl.at:140: ovsdb-client transact unix:socket '[\"idltest\",
 
82737
      {\"op\": \"insert\",
 
82738
       \"table\": \"simple\",
 
82739
       \"row\": {\"i\": 1,
 
82740
               \"r\": 2.0,
 
82741
               \"b\": true,
 
82742
               \"s\": \"mystring\",
 
82743
               \"u\": [\"uuid\", \"84f5c8f5-ac76-4dbc-a24f-8860eb407fc1\"],
 
82744
               \"ia\": [\"set\", [1, 2, 3]],
 
82745
               \"ra\": [\"set\", [-0.5]],
 
82746
               \"ba\": [\"set\", [true]],
 
82747
               \"sa\": [\"set\", [\"abc\", \"def\"]],
 
82748
               \"ua\": [\"set\", [[\"uuid\", \"69443985-7806-45e2-b35f-574a04e720f9\"],
 
82749
                              [\"uuid\", \"aad11ef0-816a-4b01-93e6-03b8b4256b98\"]]]}},
 
82750
      {\"op\": \"insert\",
 
82751
       \"table\": \"simple\",
 
82752
       \"row\": {}}]'"
 
82753
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:140"
 
82754
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
82755
      {"op": "insert",
 
82756
       "table": "simple",
 
82757
       "row": {"i": 1,
 
82758
               "r": 2.0,
 
82759
               "b": true,
 
82760
               "s": "mystring",
 
82761
               "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
 
82762
               "ia": ["set", [1, 2, 3]],
 
82763
               "ra": ["set", [-0.5]],
 
82764
               "ba": ["set", [true]],
 
82765
               "sa": ["set", ["abc", "def"]],
 
82766
               "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
 
82767
                              ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
 
82768
      {"op": "insert",
 
82769
       "table": "simple",
 
82770
       "row": {}}]'
 
82771
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82772
at_status=$? at_failed=false
 
82773
$at_check_filter
 
82774
echo stderr:; cat "$at_stderr"
 
82775
echo stdout:; cat "$at_stdout"
 
82776
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82777
if $at_failed; then :
 
82778
  kill `cat pid`
 
82779
fi
 
82780
$at_failed && at_fn_log_failure
 
82781
$at_traceon; }
 
82782
 
 
82783
   { set +x
 
82784
$as_echo "$at_srcdir/ovsdb-idl.at:140: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '[\"idltest\",
 
82785
      {\"op\": \"update\",
 
82786
       \"table\": \"simple\",
 
82787
       \"where\": [],
 
82788
       \"row\": {\"b\": true}}]'"
 
82789
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:140"
 
82790
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '["idltest",
 
82791
      {"op": "update",
 
82792
       "table": "simple",
 
82793
       "where": [],
 
82794
       "row": {"b": true}}]'
 
82795
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82796
at_status=$? at_failed=false
 
82797
$at_check_filter
 
82798
echo stderr:; cat "$at_stderr"
 
82799
echo stdout:; tee stdout <"$at_stdout"
 
82800
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82801
if $at_failed; then :
 
82802
  kill `cat pid`
 
82803
fi
 
82804
$at_failed && at_fn_log_failure
 
82805
$at_traceon; }
 
82806
 
 
82807
   { set +x
 
82808
$as_echo "$at_srcdir/ovsdb-idl.at:140: sort stdout | perl \$srcdir/uuidfilt.pl"
 
82809
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:140"
 
82810
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
82811
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82812
at_status=$? at_failed=false
 
82813
$at_check_filter
 
82814
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
82815
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82816
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>
 
82817
001: {\"error\":null,\"result\":[{\"count\":2}]}
 
82818
002: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
82819
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>
 
82820
003: done
 
82821
" | \
 
82822
  $at_diff - "$at_stdout" || at_failed=:
 
82823
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82824
if $at_failed; then :
 
82825
  kill `cat pid`
 
82826
fi
 
82827
$at_failed && at_fn_log_failure
 
82828
$at_traceon; }
 
82829
 
 
82830
   cp pid savepid
 
82831
   { set +x
 
82832
$as_echo "$at_srcdir/ovsdb-idl.at:140: ovs-appctl -t \$PWD/unixctl -e exit"
 
82833
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:140"
 
82834
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
82835
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82836
at_status=$? at_failed=false
 
82837
$at_check_filter
 
82838
echo stderr:; cat "$at_stderr"
 
82839
echo stdout:; cat "$at_stdout"
 
82840
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82841
$at_failed && at_fn_log_failure
 
82842
$at_traceon; }
 
82843
 
 
82844
   { set +x
 
82845
$as_echo "$at_srcdir/ovsdb-idl.at:140: # First try a quick sleep, so that the test completes very quickly
 
82846
     # in the normal case.  POSIX doesn't require fractional times to
 
82847
     # work, so this might not work.
 
82848
     sleep 0.1
 
82849
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82850
     # Then wait up to 10 seconds.
 
82851
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82852
       sleep 1
 
82853
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
82854
     done
 
82855
     exit 1"
 
82856
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:140"
 
82857
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
82858
     # in the normal case.  POSIX doesn't require fractional times to
 
82859
     # work, so this might not work.
 
82860
     sleep 0.1
 
82861
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
82862
     # Then wait up to 10 seconds.
 
82863
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
82864
       sleep 1
 
82865
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
82866
     done
 
82867
     exit 1
 
82868
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82869
at_status=$? at_failed=false
 
82870
$at_check_filter
 
82871
echo stderr:; cat "$at_stderr"
 
82872
echo stdout:; cat "$at_stdout"
 
82873
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82874
if $at_failed; then :
 
82875
  kill `cat savepid`
 
82876
fi
 
82877
$at_failed && at_fn_log_failure
 
82878
$at_traceon; }
 
82879
 
 
82880
     set +x
 
82881
  $at_times_p && times >"$at_times_file"
 
82882
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
82883
read at_status <"$at_status_file"
 
82884
#AT_STOP_923
 
82885
#AT_START_924
 
82886
at_fn_group_banner 924 'ovsdb-idl.at:140' \
 
82887
  "simple idl, initially populated - Python" "       " 64
 
82888
at_xfail=no
 
82889
(
 
82890
  $as_echo "924. $at_setup_line: testing $at_desc ..."
 
82891
  $at_traceon
 
82892
 
 
82893
   $as_echo "ovsdb-idl.at:140" >"$at_check_line_file"
 
82894
(test $HAVE_PYTHON = no) \
 
82895
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:140"
 
82896
 
 
82897
   { set +x
 
82898
$as_echo "$at_srcdir/ovsdb-idl.at:140: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
82899
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:140"
 
82900
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
82901
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82902
at_status=$? at_failed=false
 
82903
$at_check_filter
 
82904
echo stderr:; cat "$at_stderr"
 
82905
echo stdout:; tee stdout <"$at_stdout"
 
82906
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82907
$at_failed && at_fn_log_failure
 
82908
$at_traceon; }
 
82909
 
 
82910
   { set +x
 
82911
$as_echo "$at_srcdir/ovsdb-idl.at:140: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
82912
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:140"
 
82913
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
82914
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82915
at_status=$? at_failed=false
 
82916
$at_check_filter
 
82917
echo stderr:; cat "$at_stderr"
 
82918
echo stdout:; cat "$at_stdout"
 
82919
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82920
$at_failed && at_fn_log_failure
 
82921
$at_traceon; }
 
82922
 
 
82923
   { set +x
 
82924
$as_echo "$at_srcdir/ovsdb-idl.at:140: ovsdb-client transact unix:socket '[\"idltest\",
 
82925
      {\"op\": \"insert\",
 
82926
       \"table\": \"simple\",
 
82927
       \"row\": {\"i\": 1,
 
82928
               \"r\": 2.0,
 
82929
               \"b\": true,
 
82930
               \"s\": \"mystring\",
 
82931
               \"u\": [\"uuid\", \"84f5c8f5-ac76-4dbc-a24f-8860eb407fc1\"],
 
82932
               \"ia\": [\"set\", [1, 2, 3]],
 
82933
               \"ra\": [\"set\", [-0.5]],
 
82934
               \"ba\": [\"set\", [true]],
 
82935
               \"sa\": [\"set\", [\"abc\", \"def\"]],
 
82936
               \"ua\": [\"set\", [[\"uuid\", \"69443985-7806-45e2-b35f-574a04e720f9\"],
 
82937
                              [\"uuid\", \"aad11ef0-816a-4b01-93e6-03b8b4256b98\"]]]}},
 
82938
      {\"op\": \"insert\",
 
82939
       \"table\": \"simple\",
 
82940
       \"row\": {}}]'"
 
82941
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:140"
 
82942
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
82943
      {"op": "insert",
 
82944
       "table": "simple",
 
82945
       "row": {"i": 1,
 
82946
               "r": 2.0,
 
82947
               "b": true,
 
82948
               "s": "mystring",
 
82949
               "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
 
82950
               "ia": ["set", [1, 2, 3]],
 
82951
               "ra": ["set", [-0.5]],
 
82952
               "ba": ["set", [true]],
 
82953
               "sa": ["set", ["abc", "def"]],
 
82954
               "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
 
82955
                              ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
 
82956
      {"op": "insert",
 
82957
       "table": "simple",
 
82958
       "row": {}}]'
 
82959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82960
at_status=$? at_failed=false
 
82961
$at_check_filter
 
82962
echo stderr:; cat "$at_stderr"
 
82963
echo stdout:; cat "$at_stdout"
 
82964
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82965
if $at_failed; then :
 
82966
  kill `cat pid`
 
82967
fi
 
82968
$at_failed && at_fn_log_failure
 
82969
$at_traceon; }
 
82970
 
 
82971
   { set +x
 
82972
$as_echo "$at_srcdir/ovsdb-idl.at:140: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket '[\"idltest\",
 
82973
      {\"op\": \"update\",
 
82974
       \"table\": \"simple\",
 
82975
       \"where\": [],
 
82976
       \"row\": {\"b\": true}}]'"
 
82977
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:140"
 
82978
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket '["idltest",
 
82979
      {"op": "update",
 
82980
       "table": "simple",
 
82981
       "where": [],
 
82982
       "row": {"b": true}}]'
 
82983
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
82984
at_status=$? at_failed=false
 
82985
$at_check_filter
 
82986
echo stderr:; cat "$at_stderr"
 
82987
echo stdout:; tee stdout <"$at_stdout"
 
82988
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
82989
if $at_failed; then :
 
82990
  kill `cat pid`
 
82991
fi
 
82992
$at_failed && at_fn_log_failure
 
82993
$at_traceon; }
 
82994
 
 
82995
   { set +x
 
82996
$as_echo "$at_srcdir/ovsdb-idl.at:140: sort stdout | perl \$srcdir/uuidfilt.pl"
 
82997
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:140"
 
82998
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
82999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83000
at_status=$? at_failed=false
 
83001
$at_check_filter
 
83002
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
83003
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83004
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>
 
83005
001: {\"error\":null,\"result\":[{\"count\":2}]}
 
83006
002: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83007
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>
 
83008
003: done
 
83009
" | \
 
83010
  $at_diff - "$at_stdout" || at_failed=:
 
83011
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
83012
if $at_failed; then :
 
83013
  kill `cat pid`
 
83014
fi
 
83015
$at_failed && at_fn_log_failure
 
83016
$at_traceon; }
 
83017
 
 
83018
   cp pid savepid
 
83019
   { set +x
 
83020
$as_echo "$at_srcdir/ovsdb-idl.at:140: ovs-appctl -t \$PWD/unixctl -e exit"
 
83021
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:140"
 
83022
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
83023
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83024
at_status=$? at_failed=false
 
83025
$at_check_filter
 
83026
echo stderr:; cat "$at_stderr"
 
83027
echo stdout:; cat "$at_stdout"
 
83028
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
83029
$at_failed && at_fn_log_failure
 
83030
$at_traceon; }
 
83031
 
 
83032
   { set +x
 
83033
$as_echo "$at_srcdir/ovsdb-idl.at:140: # First try a quick sleep, so that the test completes very quickly
 
83034
     # in the normal case.  POSIX doesn't require fractional times to
 
83035
     # work, so this might not work.
 
83036
     sleep 0.1
 
83037
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83038
     # Then wait up to 10 seconds.
 
83039
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83040
       sleep 1
 
83041
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83042
     done
 
83043
     exit 1"
 
83044
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:140"
 
83045
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
83046
     # in the normal case.  POSIX doesn't require fractional times to
 
83047
     # work, so this might not work.
 
83048
     sleep 0.1
 
83049
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
83050
     # Then wait up to 10 seconds.
 
83051
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83052
       sleep 1
 
83053
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
83054
     done
 
83055
     exit 1
 
83056
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83057
at_status=$? at_failed=false
 
83058
$at_check_filter
 
83059
echo stderr:; cat "$at_stderr"
 
83060
echo stdout:; cat "$at_stdout"
 
83061
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:140"
 
83062
if $at_failed; then :
 
83063
  kill `cat savepid`
 
83064
fi
 
83065
$at_failed && at_fn_log_failure
 
83066
$at_traceon; }
 
83067
 
 
83068
     set +x
 
83069
  $at_times_p && times >"$at_times_file"
 
83070
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
83071
read at_status <"$at_status_file"
 
83072
#AT_STOP_924
 
83073
#AT_START_925
 
83074
at_fn_group_banner 925 'ovsdb-idl.at:171' \
 
83075
  "simple idl, writing via IDL - C" "                " 64
 
83076
at_xfail=no
 
83077
(
 
83078
  $as_echo "925. $at_setup_line: testing $at_desc ..."
 
83079
  $at_traceon
 
83080
 
 
83081
 
 
83082
   { set +x
 
83083
$as_echo "$at_srcdir/ovsdb-idl.at:171: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
83084
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:171"
 
83085
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
83086
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83087
at_status=$? at_failed=false
 
83088
$at_check_filter
 
83089
echo stderr:; cat "$at_stderr"
 
83090
echo stdout:; tee stdout <"$at_stdout"
 
83091
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83092
$at_failed && at_fn_log_failure
 
83093
$at_traceon; }
 
83094
 
 
83095
   { set +x
 
83096
$as_echo "$at_srcdir/ovsdb-idl.at:171: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
83097
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:171"
 
83098
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
83099
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83100
at_status=$? at_failed=false
 
83101
$at_check_filter
 
83102
echo stderr:; cat "$at_stderr"
 
83103
echo stdout:; cat "$at_stdout"
 
83104
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83105
$at_failed && at_fn_log_failure
 
83106
$at_traceon; }
 
83107
 
 
83108
   { set +x
 
83109
$as_echo "$at_srcdir/ovsdb-idl.at:171: ovsdb-client transact unix:socket '[\"idltest\",
 
83110
      {\"op\": \"insert\",
 
83111
       \"table\": \"simple\",
 
83112
       \"row\": {\"i\": 1,
 
83113
               \"r\": 2.0,
 
83114
               \"b\": true,
 
83115
               \"s\": \"mystring\",
 
83116
               \"u\": [\"uuid\", \"84f5c8f5-ac76-4dbc-a24f-8860eb407fc1\"],
 
83117
               \"ia\": [\"set\", [1, 2, 3]],
 
83118
               \"ra\": [\"set\", [-0.5]],
 
83119
               \"ba\": [\"set\", [true]],
 
83120
               \"sa\": [\"set\", [\"abc\", \"def\"]],
 
83121
               \"ua\": [\"set\", [[\"uuid\", \"69443985-7806-45e2-b35f-574a04e720f9\"],
 
83122
                              [\"uuid\", \"aad11ef0-816a-4b01-93e6-03b8b4256b98\"]]]}},
 
83123
      {\"op\": \"insert\",
 
83124
       \"table\": \"simple\",
 
83125
       \"row\": {}}]'"
 
83126
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:171"
 
83127
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
83128
      {"op": "insert",
 
83129
       "table": "simple",
 
83130
       "row": {"i": 1,
 
83131
               "r": 2.0,
 
83132
               "b": true,
 
83133
               "s": "mystring",
 
83134
               "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
 
83135
               "ia": ["set", [1, 2, 3]],
 
83136
               "ra": ["set", [-0.5]],
 
83137
               "ba": ["set", [true]],
 
83138
               "sa": ["set", ["abc", "def"]],
 
83139
               "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
 
83140
                              ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
 
83141
      {"op": "insert",
 
83142
       "table": "simple",
 
83143
       "row": {}}]'
 
83144
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83145
at_status=$? at_failed=false
 
83146
$at_check_filter
 
83147
echo stderr:; cat "$at_stderr"
 
83148
echo stdout:; cat "$at_stdout"
 
83149
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83150
if $at_failed; then :
 
83151
  kill `cat pid`
 
83152
fi
 
83153
$at_failed && at_fn_log_failure
 
83154
$at_traceon; }
 
83155
 
 
83156
   { set +x
 
83157
$as_echo "$at_srcdir/ovsdb-idl.at:171: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'verify 0 b, verify 1 r, set 0 b 1, set 1 r 3.5' \\
 
83158
    'insert 2, verify 2 i, verify 1 b, delete 1'"
 
83159
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:171"
 
83160
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'verify 0 b, verify 1 r, set 0 b 1, set 1 r 3.5' \
 
83161
    'insert 2, verify 2 i, verify 1 b, delete 1'
 
83162
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83163
at_status=$? at_failed=false
 
83164
$at_check_filter
 
83165
echo stderr:; cat "$at_stderr"
 
83166
echo stdout:; tee stdout <"$at_stdout"
 
83167
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83168
if $at_failed; then :
 
83169
  kill `cat pid`
 
83170
fi
 
83171
$at_failed && at_fn_log_failure
 
83172
$at_traceon; }
 
83173
 
 
83174
   { set +x
 
83175
$as_echo "$at_srcdir/ovsdb-idl.at:171: sort stdout | perl \$srcdir/uuidfilt.pl"
 
83176
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:171"
 
83177
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
83178
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83179
at_status=$? at_failed=false
 
83180
$at_check_filter
 
83181
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
83182
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83183
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>
 
83184
001: commit, status=success
 
83185
002: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83186
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>
 
83187
003: commit, status=success
 
83188
004: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83189
004: i=2 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<6>
 
83190
005: done
 
83191
" | \
 
83192
  $at_diff - "$at_stdout" || at_failed=:
 
83193
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83194
if $at_failed; then :
 
83195
  kill `cat pid`
 
83196
fi
 
83197
$at_failed && at_fn_log_failure
 
83198
$at_traceon; }
 
83199
 
 
83200
   cp pid savepid
 
83201
   { set +x
 
83202
$as_echo "$at_srcdir/ovsdb-idl.at:171: ovs-appctl -t \$PWD/unixctl -e exit"
 
83203
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:171"
 
83204
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
83205
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83206
at_status=$? at_failed=false
 
83207
$at_check_filter
 
83208
echo stderr:; cat "$at_stderr"
 
83209
echo stdout:; cat "$at_stdout"
 
83210
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83211
$at_failed && at_fn_log_failure
 
83212
$at_traceon; }
 
83213
 
 
83214
   { set +x
 
83215
$as_echo "$at_srcdir/ovsdb-idl.at:171: # First try a quick sleep, so that the test completes very quickly
 
83216
     # in the normal case.  POSIX doesn't require fractional times to
 
83217
     # work, so this might not work.
 
83218
     sleep 0.1
 
83219
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83220
     # Then wait up to 10 seconds.
 
83221
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83222
       sleep 1
 
83223
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83224
     done
 
83225
     exit 1"
 
83226
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:171"
 
83227
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
83228
     # in the normal case.  POSIX doesn't require fractional times to
 
83229
     # work, so this might not work.
 
83230
     sleep 0.1
 
83231
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
83232
     # Then wait up to 10 seconds.
 
83233
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83234
       sleep 1
 
83235
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
83236
     done
 
83237
     exit 1
 
83238
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83239
at_status=$? at_failed=false
 
83240
$at_check_filter
 
83241
echo stderr:; cat "$at_stderr"
 
83242
echo stdout:; cat "$at_stdout"
 
83243
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83244
if $at_failed; then :
 
83245
  kill `cat savepid`
 
83246
fi
 
83247
$at_failed && at_fn_log_failure
 
83248
$at_traceon; }
 
83249
 
 
83250
     set +x
 
83251
  $at_times_p && times >"$at_times_file"
 
83252
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
83253
read at_status <"$at_status_file"
 
83254
#AT_STOP_925
 
83255
#AT_START_926
 
83256
at_fn_group_banner 926 'ovsdb-idl.at:171' \
 
83257
  "simple idl, writing via IDL - Python" "           " 64
 
83258
at_xfail=no
 
83259
(
 
83260
  $as_echo "926. $at_setup_line: testing $at_desc ..."
 
83261
  $at_traceon
 
83262
 
 
83263
   $as_echo "ovsdb-idl.at:171" >"$at_check_line_file"
 
83264
(test $HAVE_PYTHON = no) \
 
83265
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:171"
 
83266
 
 
83267
   { set +x
 
83268
$as_echo "$at_srcdir/ovsdb-idl.at:171: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
83269
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:171"
 
83270
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
83271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83272
at_status=$? at_failed=false
 
83273
$at_check_filter
 
83274
echo stderr:; cat "$at_stderr"
 
83275
echo stdout:; tee stdout <"$at_stdout"
 
83276
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83277
$at_failed && at_fn_log_failure
 
83278
$at_traceon; }
 
83279
 
 
83280
   { set +x
 
83281
$as_echo "$at_srcdir/ovsdb-idl.at:171: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
83282
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:171"
 
83283
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
83284
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83285
at_status=$? at_failed=false
 
83286
$at_check_filter
 
83287
echo stderr:; cat "$at_stderr"
 
83288
echo stdout:; cat "$at_stdout"
 
83289
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83290
$at_failed && at_fn_log_failure
 
83291
$at_traceon; }
 
83292
 
 
83293
   { set +x
 
83294
$as_echo "$at_srcdir/ovsdb-idl.at:171: ovsdb-client transact unix:socket '[\"idltest\",
 
83295
      {\"op\": \"insert\",
 
83296
       \"table\": \"simple\",
 
83297
       \"row\": {\"i\": 1,
 
83298
               \"r\": 2.0,
 
83299
               \"b\": true,
 
83300
               \"s\": \"mystring\",
 
83301
               \"u\": [\"uuid\", \"84f5c8f5-ac76-4dbc-a24f-8860eb407fc1\"],
 
83302
               \"ia\": [\"set\", [1, 2, 3]],
 
83303
               \"ra\": [\"set\", [-0.5]],
 
83304
               \"ba\": [\"set\", [true]],
 
83305
               \"sa\": [\"set\", [\"abc\", \"def\"]],
 
83306
               \"ua\": [\"set\", [[\"uuid\", \"69443985-7806-45e2-b35f-574a04e720f9\"],
 
83307
                              [\"uuid\", \"aad11ef0-816a-4b01-93e6-03b8b4256b98\"]]]}},
 
83308
      {\"op\": \"insert\",
 
83309
       \"table\": \"simple\",
 
83310
       \"row\": {}}]'"
 
83311
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:171"
 
83312
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
83313
      {"op": "insert",
 
83314
       "table": "simple",
 
83315
       "row": {"i": 1,
 
83316
               "r": 2.0,
 
83317
               "b": true,
 
83318
               "s": "mystring",
 
83319
               "u": ["uuid", "84f5c8f5-ac76-4dbc-a24f-8860eb407fc1"],
 
83320
               "ia": ["set", [1, 2, 3]],
 
83321
               "ra": ["set", [-0.5]],
 
83322
               "ba": ["set", [true]],
 
83323
               "sa": ["set", ["abc", "def"]],
 
83324
               "ua": ["set", [["uuid", "69443985-7806-45e2-b35f-574a04e720f9"],
 
83325
                              ["uuid", "aad11ef0-816a-4b01-93e6-03b8b4256b98"]]]}},
 
83326
      {"op": "insert",
 
83327
       "table": "simple",
 
83328
       "row": {}}]'
 
83329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83330
at_status=$? at_failed=false
 
83331
$at_check_filter
 
83332
echo stderr:; cat "$at_stderr"
 
83333
echo stdout:; cat "$at_stdout"
 
83334
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83335
if $at_failed; then :
 
83336
  kill `cat pid`
 
83337
fi
 
83338
$at_failed && at_fn_log_failure
 
83339
$at_traceon; }
 
83340
 
 
83341
   { set +x
 
83342
$as_echo "$at_srcdir/ovsdb-idl.at:171: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket 'verify 0 b, verify 1 r, set 0 b 1, set 1 r 3.5' \\
 
83343
    'insert 2, verify 2 i, verify 1 b, delete 1'"
 
83344
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:171"
 
83345
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket 'verify 0 b, verify 1 r, set 0 b 1, set 1 r 3.5' \
 
83346
    'insert 2, verify 2 i, verify 1 b, delete 1'
 
83347
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83348
at_status=$? at_failed=false
 
83349
$at_check_filter
 
83350
echo stderr:; cat "$at_stderr"
 
83351
echo stdout:; tee stdout <"$at_stdout"
 
83352
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83353
if $at_failed; then :
 
83354
  kill `cat pid`
 
83355
fi
 
83356
$at_failed && at_fn_log_failure
 
83357
$at_traceon; }
 
83358
 
 
83359
   { set +x
 
83360
$as_echo "$at_srcdir/ovsdb-idl.at:171: sort stdout | perl \$srcdir/uuidfilt.pl"
 
83361
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:171"
 
83362
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
83363
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83364
at_status=$? at_failed=false
 
83365
$at_check_filter
 
83366
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
83367
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83368
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>
 
83369
001: commit, status=success
 
83370
002: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83371
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>
 
83372
003: commit, status=success
 
83373
004: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83374
004: i=2 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<6>
 
83375
005: done
 
83376
" | \
 
83377
  $at_diff - "$at_stdout" || at_failed=:
 
83378
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83379
if $at_failed; then :
 
83380
  kill `cat pid`
 
83381
fi
 
83382
$at_failed && at_fn_log_failure
 
83383
$at_traceon; }
 
83384
 
 
83385
   cp pid savepid
 
83386
   { set +x
 
83387
$as_echo "$at_srcdir/ovsdb-idl.at:171: ovs-appctl -t \$PWD/unixctl -e exit"
 
83388
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:171"
 
83389
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
83390
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83391
at_status=$? at_failed=false
 
83392
$at_check_filter
 
83393
echo stderr:; cat "$at_stderr"
 
83394
echo stdout:; cat "$at_stdout"
 
83395
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83396
$at_failed && at_fn_log_failure
 
83397
$at_traceon; }
 
83398
 
 
83399
   { set +x
 
83400
$as_echo "$at_srcdir/ovsdb-idl.at:171: # First try a quick sleep, so that the test completes very quickly
 
83401
     # in the normal case.  POSIX doesn't require fractional times to
 
83402
     # work, so this might not work.
 
83403
     sleep 0.1
 
83404
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83405
     # Then wait up to 10 seconds.
 
83406
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83407
       sleep 1
 
83408
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83409
     done
 
83410
     exit 1"
 
83411
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:171"
 
83412
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
83413
     # in the normal case.  POSIX doesn't require fractional times to
 
83414
     # work, so this might not work.
 
83415
     sleep 0.1
 
83416
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
83417
     # Then wait up to 10 seconds.
 
83418
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83419
       sleep 1
 
83420
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
83421
     done
 
83422
     exit 1
 
83423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83424
at_status=$? at_failed=false
 
83425
$at_check_filter
 
83426
echo stderr:; cat "$at_stderr"
 
83427
echo stdout:; cat "$at_stdout"
 
83428
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:171"
 
83429
if $at_failed; then :
 
83430
  kill `cat savepid`
 
83431
fi
 
83432
$at_failed && at_fn_log_failure
 
83433
$at_traceon; }
 
83434
 
 
83435
     set +x
 
83436
  $at_times_p && times >"$at_times_file"
 
83437
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
83438
read at_status <"$at_status_file"
 
83439
#AT_STOP_926
 
83440
#AT_START_927
 
83441
at_fn_group_banner 927 'ovsdb-idl.at:202' \
 
83442
  "simple idl, handling verification failure - C" "  " 64
 
83443
at_xfail=no
 
83444
(
 
83445
  $as_echo "927. $at_setup_line: testing $at_desc ..."
 
83446
  $at_traceon
 
83447
 
 
83448
 
 
83449
   { set +x
 
83450
$as_echo "$at_srcdir/ovsdb-idl.at:202: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
83451
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:202"
 
83452
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
83453
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83454
at_status=$? at_failed=false
 
83455
$at_check_filter
 
83456
echo stderr:; cat "$at_stderr"
 
83457
echo stdout:; tee stdout <"$at_stdout"
 
83458
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83459
$at_failed && at_fn_log_failure
 
83460
$at_traceon; }
 
83461
 
 
83462
   { set +x
 
83463
$as_echo "$at_srcdir/ovsdb-idl.at:202: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
83464
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:202"
 
83465
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
83466
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83467
at_status=$? at_failed=false
 
83468
$at_check_filter
 
83469
echo stderr:; cat "$at_stderr"
 
83470
echo stdout:; cat "$at_stdout"
 
83471
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83472
$at_failed && at_fn_log_failure
 
83473
$at_traceon; }
 
83474
 
 
83475
   { set +x
 
83476
$as_echo "$at_srcdir/ovsdb-idl.at:202: ovsdb-client transact unix:socket '[\"idltest\",
 
83477
      {\"op\": \"insert\",
 
83478
       \"table\": \"simple\",
 
83479
       \"row\": {\"i\": 1,
 
83480
               \"r\": 2.0}},
 
83481
      {\"op\": \"insert\",
 
83482
       \"table\": \"simple\",
 
83483
       \"row\": {}}]'"
 
83484
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:202"
 
83485
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
83486
      {"op": "insert",
 
83487
       "table": "simple",
 
83488
       "row": {"i": 1,
 
83489
               "r": 2.0}},
 
83490
      {"op": "insert",
 
83491
       "table": "simple",
 
83492
       "row": {}}]'
 
83493
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83494
at_status=$? at_failed=false
 
83495
$at_check_filter
 
83496
echo stderr:; cat "$at_stderr"
 
83497
echo stdout:; cat "$at_stdout"
 
83498
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83499
if $at_failed; then :
 
83500
  kill `cat pid`
 
83501
fi
 
83502
$at_failed && at_fn_log_failure
 
83503
$at_traceon; }
 
83504
 
 
83505
   { set +x
 
83506
$as_echo "$at_srcdir/ovsdb-idl.at:202: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'set 0 b 1' \\
 
83507
    '+[\"idltest\",
 
83508
       {\"op\": \"update\",
 
83509
        \"table\": \"simple\",
 
83510
        \"where\": [[\"i\", \"==\", 1]],
 
83511
        \"row\": {\"r\": 5.0}}]' \\
 
83512
    '+verify 1 r, set 1 r 3' \\
 
83513
    'verify 1 r, set 1 r 3' \\
 
83514
    "
 
83515
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:202"
 
83516
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'set 0 b 1' \
 
83517
    '+["idltest",
 
83518
       {"op": "update",
 
83519
        "table": "simple",
 
83520
        "where": [["i", "==", 1]],
 
83521
        "row": {"r": 5.0}}]' \
 
83522
    '+verify 1 r, set 1 r 3' \
 
83523
    'verify 1 r, set 1 r 3' \
 
83524
 
 
83525
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83526
at_status=$? at_failed=false
 
83527
$at_check_filter
 
83528
echo stderr:; cat "$at_stderr"
 
83529
echo stdout:; tee stdout <"$at_stdout"
 
83530
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83531
if $at_failed; then :
 
83532
  kill `cat pid`
 
83533
fi
 
83534
$at_failed && at_fn_log_failure
 
83535
$at_traceon; }
 
83536
 
 
83537
   { set +x
 
83538
$as_echo "$at_srcdir/ovsdb-idl.at:202: sort stdout | perl \$srcdir/uuidfilt.pl"
 
83539
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:202"
 
83540
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
83541
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83542
at_status=$? at_failed=false
 
83543
$at_check_filter
 
83544
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
83545
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83546
000: i=1 r=2 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
 
83547
001: commit, status=success
 
83548
002: {\"error\":null,\"result\":[{\"count\":1}]}
 
83549
003: commit, status=try again now
 
83550
004: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83551
004: i=1 r=5 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
 
83552
005: commit, status=success
 
83553
006: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83554
006: i=1 r=3 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
 
83555
007: done
 
83556
" | \
 
83557
  $at_diff - "$at_stdout" || at_failed=:
 
83558
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83559
if $at_failed; then :
 
83560
  kill `cat pid`
 
83561
fi
 
83562
$at_failed && at_fn_log_failure
 
83563
$at_traceon; }
 
83564
 
 
83565
   cp pid savepid
 
83566
   { set +x
 
83567
$as_echo "$at_srcdir/ovsdb-idl.at:202: ovs-appctl -t \$PWD/unixctl -e exit"
 
83568
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:202"
 
83569
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
83570
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83571
at_status=$? at_failed=false
 
83572
$at_check_filter
 
83573
echo stderr:; cat "$at_stderr"
 
83574
echo stdout:; cat "$at_stdout"
 
83575
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83576
$at_failed && at_fn_log_failure
 
83577
$at_traceon; }
 
83578
 
 
83579
   { set +x
 
83580
$as_echo "$at_srcdir/ovsdb-idl.at:202: # First try a quick sleep, so that the test completes very quickly
 
83581
     # in the normal case.  POSIX doesn't require fractional times to
 
83582
     # work, so this might not work.
 
83583
     sleep 0.1
 
83584
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83585
     # Then wait up to 10 seconds.
 
83586
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83587
       sleep 1
 
83588
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83589
     done
 
83590
     exit 1"
 
83591
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:202"
 
83592
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
83593
     # in the normal case.  POSIX doesn't require fractional times to
 
83594
     # work, so this might not work.
 
83595
     sleep 0.1
 
83596
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
83597
     # Then wait up to 10 seconds.
 
83598
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83599
       sleep 1
 
83600
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
83601
     done
 
83602
     exit 1
 
83603
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83604
at_status=$? at_failed=false
 
83605
$at_check_filter
 
83606
echo stderr:; cat "$at_stderr"
 
83607
echo stdout:; cat "$at_stdout"
 
83608
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83609
if $at_failed; then :
 
83610
  kill `cat savepid`
 
83611
fi
 
83612
$at_failed && at_fn_log_failure
 
83613
$at_traceon; }
 
83614
 
 
83615
     set +x
 
83616
  $at_times_p && times >"$at_times_file"
 
83617
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
83618
read at_status <"$at_status_file"
 
83619
#AT_STOP_927
 
83620
#AT_START_928
 
83621
at_fn_group_banner 928 'ovsdb-idl.at:202' \
 
83622
  "simple idl, handling verification failure - Python" "" 64
 
83623
at_xfail=no
 
83624
(
 
83625
  $as_echo "928. $at_setup_line: testing $at_desc ..."
 
83626
  $at_traceon
 
83627
 
 
83628
   $as_echo "ovsdb-idl.at:202" >"$at_check_line_file"
 
83629
(test $HAVE_PYTHON = no) \
 
83630
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:202"
 
83631
 
 
83632
   { set +x
 
83633
$as_echo "$at_srcdir/ovsdb-idl.at:202: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
83634
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:202"
 
83635
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
83636
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83637
at_status=$? at_failed=false
 
83638
$at_check_filter
 
83639
echo stderr:; cat "$at_stderr"
 
83640
echo stdout:; tee stdout <"$at_stdout"
 
83641
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83642
$at_failed && at_fn_log_failure
 
83643
$at_traceon; }
 
83644
 
 
83645
   { set +x
 
83646
$as_echo "$at_srcdir/ovsdb-idl.at:202: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
83647
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:202"
 
83648
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
83649
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83650
at_status=$? at_failed=false
 
83651
$at_check_filter
 
83652
echo stderr:; cat "$at_stderr"
 
83653
echo stdout:; cat "$at_stdout"
 
83654
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83655
$at_failed && at_fn_log_failure
 
83656
$at_traceon; }
 
83657
 
 
83658
   { set +x
 
83659
$as_echo "$at_srcdir/ovsdb-idl.at:202: ovsdb-client transact unix:socket '[\"idltest\",
 
83660
      {\"op\": \"insert\",
 
83661
       \"table\": \"simple\",
 
83662
       \"row\": {\"i\": 1,
 
83663
               \"r\": 2.0}},
 
83664
      {\"op\": \"insert\",
 
83665
       \"table\": \"simple\",
 
83666
       \"row\": {}}]'"
 
83667
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:202"
 
83668
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
83669
      {"op": "insert",
 
83670
       "table": "simple",
 
83671
       "row": {"i": 1,
 
83672
               "r": 2.0}},
 
83673
      {"op": "insert",
 
83674
       "table": "simple",
 
83675
       "row": {}}]'
 
83676
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83677
at_status=$? at_failed=false
 
83678
$at_check_filter
 
83679
echo stderr:; cat "$at_stderr"
 
83680
echo stdout:; cat "$at_stdout"
 
83681
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83682
if $at_failed; then :
 
83683
  kill `cat pid`
 
83684
fi
 
83685
$at_failed && at_fn_log_failure
 
83686
$at_traceon; }
 
83687
 
 
83688
   { set +x
 
83689
$as_echo "$at_srcdir/ovsdb-idl.at:202: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket 'set 0 b 1' \\
 
83690
    '+[\"idltest\",
 
83691
       {\"op\": \"update\",
 
83692
        \"table\": \"simple\",
 
83693
        \"where\": [[\"i\", \"==\", 1]],
 
83694
        \"row\": {\"r\": 5.0}}]' \\
 
83695
    '+verify 1 r, set 1 r 3' \\
 
83696
    'verify 1 r, set 1 r 3' \\
 
83697
    "
 
83698
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:202"
 
83699
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket 'set 0 b 1' \
 
83700
    '+["idltest",
 
83701
       {"op": "update",
 
83702
        "table": "simple",
 
83703
        "where": [["i", "==", 1]],
 
83704
        "row": {"r": 5.0}}]' \
 
83705
    '+verify 1 r, set 1 r 3' \
 
83706
    'verify 1 r, set 1 r 3' \
 
83707
 
 
83708
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83709
at_status=$? at_failed=false
 
83710
$at_check_filter
 
83711
echo stderr:; cat "$at_stderr"
 
83712
echo stdout:; tee stdout <"$at_stdout"
 
83713
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83714
if $at_failed; then :
 
83715
  kill `cat pid`
 
83716
fi
 
83717
$at_failed && at_fn_log_failure
 
83718
$at_traceon; }
 
83719
 
 
83720
   { set +x
 
83721
$as_echo "$at_srcdir/ovsdb-idl.at:202: sort stdout | perl \$srcdir/uuidfilt.pl"
 
83722
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:202"
 
83723
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
83724
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83725
at_status=$? at_failed=false
 
83726
$at_check_filter
 
83727
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
83728
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83729
000: i=1 r=2 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
 
83730
001: commit, status=success
 
83731
002: {\"error\":null,\"result\":[{\"count\":1}]}
 
83732
003: commit, status=try again now
 
83733
004: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83734
004: i=1 r=5 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
 
83735
005: commit, status=success
 
83736
006: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83737
006: i=1 r=3 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<2>
 
83738
007: done
 
83739
" | \
 
83740
  $at_diff - "$at_stdout" || at_failed=:
 
83741
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83742
if $at_failed; then :
 
83743
  kill `cat pid`
 
83744
fi
 
83745
$at_failed && at_fn_log_failure
 
83746
$at_traceon; }
 
83747
 
 
83748
   cp pid savepid
 
83749
   { set +x
 
83750
$as_echo "$at_srcdir/ovsdb-idl.at:202: ovs-appctl -t \$PWD/unixctl -e exit"
 
83751
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:202"
 
83752
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
83753
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83754
at_status=$? at_failed=false
 
83755
$at_check_filter
 
83756
echo stderr:; cat "$at_stderr"
 
83757
echo stdout:; cat "$at_stdout"
 
83758
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83759
$at_failed && at_fn_log_failure
 
83760
$at_traceon; }
 
83761
 
 
83762
   { set +x
 
83763
$as_echo "$at_srcdir/ovsdb-idl.at:202: # First try a quick sleep, so that the test completes very quickly
 
83764
     # in the normal case.  POSIX doesn't require fractional times to
 
83765
     # work, so this might not work.
 
83766
     sleep 0.1
 
83767
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83768
     # Then wait up to 10 seconds.
 
83769
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83770
       sleep 1
 
83771
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83772
     done
 
83773
     exit 1"
 
83774
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:202"
 
83775
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
83776
     # in the normal case.  POSIX doesn't require fractional times to
 
83777
     # work, so this might not work.
 
83778
     sleep 0.1
 
83779
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
83780
     # Then wait up to 10 seconds.
 
83781
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83782
       sleep 1
 
83783
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
83784
     done
 
83785
     exit 1
 
83786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83787
at_status=$? at_failed=false
 
83788
$at_check_filter
 
83789
echo stderr:; cat "$at_stderr"
 
83790
echo stdout:; cat "$at_stdout"
 
83791
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:202"
 
83792
if $at_failed; then :
 
83793
  kill `cat savepid`
 
83794
fi
 
83795
$at_failed && at_fn_log_failure
 
83796
$at_traceon; }
 
83797
 
 
83798
     set +x
 
83799
  $at_times_p && times >"$at_times_file"
 
83800
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
83801
read at_status <"$at_status_file"
 
83802
#AT_STOP_928
 
83803
#AT_START_929
 
83804
at_fn_group_banner 929 'ovsdb-idl.at:233' \
 
83805
  "simple idl, increment operation - C" "            " 64
 
83806
at_xfail=no
 
83807
(
 
83808
  $as_echo "929. $at_setup_line: testing $at_desc ..."
 
83809
  $at_traceon
 
83810
 
 
83811
 
 
83812
   { set +x
 
83813
$as_echo "$at_srcdir/ovsdb-idl.at:233: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
83814
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:233"
 
83815
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
83816
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83817
at_status=$? at_failed=false
 
83818
$at_check_filter
 
83819
echo stderr:; cat "$at_stderr"
 
83820
echo stdout:; tee stdout <"$at_stdout"
 
83821
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83822
$at_failed && at_fn_log_failure
 
83823
$at_traceon; }
 
83824
 
 
83825
   { set +x
 
83826
$as_echo "$at_srcdir/ovsdb-idl.at:233: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
83827
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:233"
 
83828
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
83829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83830
at_status=$? at_failed=false
 
83831
$at_check_filter
 
83832
echo stderr:; cat "$at_stderr"
 
83833
echo stdout:; cat "$at_stdout"
 
83834
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83835
$at_failed && at_fn_log_failure
 
83836
$at_traceon; }
 
83837
 
 
83838
   { set +x
 
83839
$as_echo "$at_srcdir/ovsdb-idl.at:233: ovsdb-client transact unix:socket '[\"idltest\",
 
83840
      {\"op\": \"insert\",
 
83841
       \"table\": \"simple\",
 
83842
       \"row\": {}}]'"
 
83843
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:233"
 
83844
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
83845
      {"op": "insert",
 
83846
       "table": "simple",
 
83847
       "row": {}}]'
 
83848
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83849
at_status=$? at_failed=false
 
83850
$at_check_filter
 
83851
echo stderr:; cat "$at_stderr"
 
83852
echo stdout:; cat "$at_stdout"
 
83853
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83854
if $at_failed; then :
 
83855
  kill `cat pid`
 
83856
fi
 
83857
$at_failed && at_fn_log_failure
 
83858
$at_traceon; }
 
83859
 
 
83860
   { set +x
 
83861
$as_echo "$at_srcdir/ovsdb-idl.at:233: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'set 0 r 2.0, increment simple i'"
 
83862
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:233"
 
83863
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'set 0 r 2.0, increment simple i'
 
83864
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83865
at_status=$? at_failed=false
 
83866
$at_check_filter
 
83867
echo stderr:; cat "$at_stderr"
 
83868
echo stdout:; tee stdout <"$at_stdout"
 
83869
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83870
if $at_failed; then :
 
83871
  kill `cat pid`
 
83872
fi
 
83873
$at_failed && at_fn_log_failure
 
83874
$at_traceon; }
 
83875
 
 
83876
   { set +x
 
83877
$as_echo "$at_srcdir/ovsdb-idl.at:233: sort stdout | perl \$srcdir/uuidfilt.pl"
 
83878
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:233"
 
83879
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
83880
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83881
at_status=$? at_failed=false
 
83882
$at_check_filter
 
83883
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
83884
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83885
001: commit, status=success, increment=1
 
83886
002: i=1 r=2 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
83887
003: done
 
83888
" | \
 
83889
  $at_diff - "$at_stdout" || at_failed=:
 
83890
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83891
if $at_failed; then :
 
83892
  kill `cat pid`
 
83893
fi
 
83894
$at_failed && at_fn_log_failure
 
83895
$at_traceon; }
 
83896
 
 
83897
   cp pid savepid
 
83898
   { set +x
 
83899
$as_echo "$at_srcdir/ovsdb-idl.at:233: ovs-appctl -t \$PWD/unixctl -e exit"
 
83900
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:233"
 
83901
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
83902
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83903
at_status=$? at_failed=false
 
83904
$at_check_filter
 
83905
echo stderr:; cat "$at_stderr"
 
83906
echo stdout:; cat "$at_stdout"
 
83907
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83908
$at_failed && at_fn_log_failure
 
83909
$at_traceon; }
 
83910
 
 
83911
   { set +x
 
83912
$as_echo "$at_srcdir/ovsdb-idl.at:233: # First try a quick sleep, so that the test completes very quickly
 
83913
     # in the normal case.  POSIX doesn't require fractional times to
 
83914
     # work, so this might not work.
 
83915
     sleep 0.1
 
83916
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83917
     # Then wait up to 10 seconds.
 
83918
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83919
       sleep 1
 
83920
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
83921
     done
 
83922
     exit 1"
 
83923
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:233"
 
83924
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
83925
     # in the normal case.  POSIX doesn't require fractional times to
 
83926
     # work, so this might not work.
 
83927
     sleep 0.1
 
83928
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
83929
     # Then wait up to 10 seconds.
 
83930
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
83931
       sleep 1
 
83932
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
83933
     done
 
83934
     exit 1
 
83935
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83936
at_status=$? at_failed=false
 
83937
$at_check_filter
 
83938
echo stderr:; cat "$at_stderr"
 
83939
echo stdout:; cat "$at_stdout"
 
83940
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83941
if $at_failed; then :
 
83942
  kill `cat savepid`
 
83943
fi
 
83944
$at_failed && at_fn_log_failure
 
83945
$at_traceon; }
 
83946
 
 
83947
     set +x
 
83948
  $at_times_p && times >"$at_times_file"
 
83949
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
83950
read at_status <"$at_status_file"
 
83951
#AT_STOP_929
 
83952
#AT_START_930
 
83953
at_fn_group_banner 930 'ovsdb-idl.at:233' \
 
83954
  "simple idl, increment operation - Python" "       " 64
 
83955
at_xfail=no
 
83956
(
 
83957
  $as_echo "930. $at_setup_line: testing $at_desc ..."
 
83958
  $at_traceon
 
83959
 
 
83960
   $as_echo "ovsdb-idl.at:233" >"$at_check_line_file"
 
83961
(test $HAVE_PYTHON = no) \
 
83962
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:233"
 
83963
 
 
83964
   { set +x
 
83965
$as_echo "$at_srcdir/ovsdb-idl.at:233: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
83966
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:233"
 
83967
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
83968
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83969
at_status=$? at_failed=false
 
83970
$at_check_filter
 
83971
echo stderr:; cat "$at_stderr"
 
83972
echo stdout:; tee stdout <"$at_stdout"
 
83973
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83974
$at_failed && at_fn_log_failure
 
83975
$at_traceon; }
 
83976
 
 
83977
   { set +x
 
83978
$as_echo "$at_srcdir/ovsdb-idl.at:233: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
83979
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:233"
 
83980
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
83981
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
83982
at_status=$? at_failed=false
 
83983
$at_check_filter
 
83984
echo stderr:; cat "$at_stderr"
 
83985
echo stdout:; cat "$at_stdout"
 
83986
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
83987
$at_failed && at_fn_log_failure
 
83988
$at_traceon; }
 
83989
 
 
83990
   { set +x
 
83991
$as_echo "$at_srcdir/ovsdb-idl.at:233: ovsdb-client transact unix:socket '[\"idltest\",
 
83992
      {\"op\": \"insert\",
 
83993
       \"table\": \"simple\",
 
83994
       \"row\": {}}]'"
 
83995
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:233"
 
83996
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
83997
      {"op": "insert",
 
83998
       "table": "simple",
 
83999
       "row": {}}]'
 
84000
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84001
at_status=$? at_failed=false
 
84002
$at_check_filter
 
84003
echo stderr:; cat "$at_stderr"
 
84004
echo stdout:; cat "$at_stdout"
 
84005
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
84006
if $at_failed; then :
 
84007
  kill `cat pid`
 
84008
fi
 
84009
$at_failed && at_fn_log_failure
 
84010
$at_traceon; }
 
84011
 
 
84012
   { set +x
 
84013
$as_echo "$at_srcdir/ovsdb-idl.at:233: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket 'set 0 r 2.0, increment simple i'"
 
84014
at_fn_check_prepare_dynamic "$PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket 'set 0 r 2.0, increment simple i'" "ovsdb-idl.at:233"
 
84015
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket 'set 0 r 2.0, increment simple i'
 
84016
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84017
at_status=$? at_failed=false
 
84018
$at_check_filter
 
84019
echo stderr:; cat "$at_stderr"
 
84020
echo stdout:; tee stdout <"$at_stdout"
 
84021
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
84022
if $at_failed; then :
 
84023
  kill `cat pid`
 
84024
fi
 
84025
$at_failed && at_fn_log_failure
 
84026
$at_traceon; }
 
84027
 
 
84028
   { set +x
 
84029
$as_echo "$at_srcdir/ovsdb-idl.at:233: sort stdout | perl \$srcdir/uuidfilt.pl"
 
84030
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:233"
 
84031
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
84032
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84033
at_status=$? at_failed=false
 
84034
$at_check_filter
 
84035
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
84036
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84037
001: commit, status=success, increment=1
 
84038
002: i=1 r=2 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84039
003: done
 
84040
" | \
 
84041
  $at_diff - "$at_stdout" || at_failed=:
 
84042
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
84043
if $at_failed; then :
 
84044
  kill `cat pid`
 
84045
fi
 
84046
$at_failed && at_fn_log_failure
 
84047
$at_traceon; }
 
84048
 
 
84049
   cp pid savepid
 
84050
   { set +x
 
84051
$as_echo "$at_srcdir/ovsdb-idl.at:233: ovs-appctl -t \$PWD/unixctl -e exit"
 
84052
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:233"
 
84053
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
84054
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84055
at_status=$? at_failed=false
 
84056
$at_check_filter
 
84057
echo stderr:; cat "$at_stderr"
 
84058
echo stdout:; cat "$at_stdout"
 
84059
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
84060
$at_failed && at_fn_log_failure
 
84061
$at_traceon; }
 
84062
 
 
84063
   { set +x
 
84064
$as_echo "$at_srcdir/ovsdb-idl.at:233: # First try a quick sleep, so that the test completes very quickly
 
84065
     # in the normal case.  POSIX doesn't require fractional times to
 
84066
     # work, so this might not work.
 
84067
     sleep 0.1
 
84068
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84069
     # Then wait up to 10 seconds.
 
84070
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84071
       sleep 1
 
84072
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84073
     done
 
84074
     exit 1"
 
84075
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:233"
 
84076
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
84077
     # in the normal case.  POSIX doesn't require fractional times to
 
84078
     # work, so this might not work.
 
84079
     sleep 0.1
 
84080
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
84081
     # Then wait up to 10 seconds.
 
84082
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84083
       sleep 1
 
84084
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
84085
     done
 
84086
     exit 1
 
84087
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84088
at_status=$? at_failed=false
 
84089
$at_check_filter
 
84090
echo stderr:; cat "$at_stderr"
 
84091
echo stdout:; cat "$at_stdout"
 
84092
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:233"
 
84093
if $at_failed; then :
 
84094
  kill `cat savepid`
 
84095
fi
 
84096
$at_failed && at_fn_log_failure
 
84097
$at_traceon; }
 
84098
 
 
84099
     set +x
 
84100
  $at_times_p && times >"$at_times_file"
 
84101
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
84102
read at_status <"$at_status_file"
 
84103
#AT_STOP_930
 
84104
#AT_START_931
 
84105
at_fn_group_banner 931 'ovsdb-idl.at:245' \
 
84106
  "simple idl, aborting - C" "                       " 64
 
84107
at_xfail=no
 
84108
(
 
84109
  $as_echo "931. $at_setup_line: testing $at_desc ..."
 
84110
  $at_traceon
 
84111
 
 
84112
 
 
84113
   { set +x
 
84114
$as_echo "$at_srcdir/ovsdb-idl.at:245: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
84115
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:245"
 
84116
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
84117
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84118
at_status=$? at_failed=false
 
84119
$at_check_filter
 
84120
echo stderr:; cat "$at_stderr"
 
84121
echo stdout:; tee stdout <"$at_stdout"
 
84122
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84123
$at_failed && at_fn_log_failure
 
84124
$at_traceon; }
 
84125
 
 
84126
   { set +x
 
84127
$as_echo "$at_srcdir/ovsdb-idl.at:245: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
84128
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:245"
 
84129
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
84130
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84131
at_status=$? at_failed=false
 
84132
$at_check_filter
 
84133
echo stderr:; cat "$at_stderr"
 
84134
echo stdout:; cat "$at_stdout"
 
84135
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84136
$at_failed && at_fn_log_failure
 
84137
$at_traceon; }
 
84138
 
 
84139
   { set +x
 
84140
$as_echo "$at_srcdir/ovsdb-idl.at:245: ovsdb-client transact unix:socket '[\"idltest\",
 
84141
      {\"op\": \"insert\",
 
84142
       \"table\": \"simple\",
 
84143
       \"row\": {}}]'"
 
84144
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:245"
 
84145
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
84146
      {"op": "insert",
 
84147
       "table": "simple",
 
84148
       "row": {}}]'
 
84149
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84150
at_status=$? at_failed=false
 
84151
$at_check_filter
 
84152
echo stderr:; cat "$at_stderr"
 
84153
echo stdout:; cat "$at_stdout"
 
84154
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84155
if $at_failed; then :
 
84156
  kill `cat pid`
 
84157
fi
 
84158
$at_failed && at_fn_log_failure
 
84159
$at_traceon; }
 
84160
 
 
84161
   { set +x
 
84162
$as_echo "$at_srcdir/ovsdb-idl.at:245: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'set 0 r 2.0, abort' \\
 
84163
'+set 0 b 1'"
 
84164
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:245"
 
84165
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'set 0 r 2.0, abort' \
 
84166
'+set 0 b 1'
 
84167
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84168
at_status=$? at_failed=false
 
84169
$at_check_filter
 
84170
echo stderr:; cat "$at_stderr"
 
84171
echo stdout:; tee stdout <"$at_stdout"
 
84172
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84173
if $at_failed; then :
 
84174
  kill `cat pid`
 
84175
fi
 
84176
$at_failed && at_fn_log_failure
 
84177
$at_traceon; }
 
84178
 
 
84179
   { set +x
 
84180
$as_echo "$at_srcdir/ovsdb-idl.at:245: sort stdout | perl \$srcdir/uuidfilt.pl"
 
84181
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:245"
 
84182
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
84183
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84184
at_status=$? at_failed=false
 
84185
$at_check_filter
 
84186
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
84187
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84188
001: commit, status=aborted
 
84189
002: commit, status=success
 
84190
003: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84191
004: done
 
84192
" | \
 
84193
  $at_diff - "$at_stdout" || at_failed=:
 
84194
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84195
if $at_failed; then :
 
84196
  kill `cat pid`
 
84197
fi
 
84198
$at_failed && at_fn_log_failure
 
84199
$at_traceon; }
 
84200
 
 
84201
   cp pid savepid
 
84202
   { set +x
 
84203
$as_echo "$at_srcdir/ovsdb-idl.at:245: ovs-appctl -t \$PWD/unixctl -e exit"
 
84204
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:245"
 
84205
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
84206
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84207
at_status=$? at_failed=false
 
84208
$at_check_filter
 
84209
echo stderr:; cat "$at_stderr"
 
84210
echo stdout:; cat "$at_stdout"
 
84211
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84212
$at_failed && at_fn_log_failure
 
84213
$at_traceon; }
 
84214
 
 
84215
   { set +x
 
84216
$as_echo "$at_srcdir/ovsdb-idl.at:245: # First try a quick sleep, so that the test completes very quickly
 
84217
     # in the normal case.  POSIX doesn't require fractional times to
 
84218
     # work, so this might not work.
 
84219
     sleep 0.1
 
84220
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84221
     # Then wait up to 10 seconds.
 
84222
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84223
       sleep 1
 
84224
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84225
     done
 
84226
     exit 1"
 
84227
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:245"
 
84228
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
84229
     # in the normal case.  POSIX doesn't require fractional times to
 
84230
     # work, so this might not work.
 
84231
     sleep 0.1
 
84232
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
84233
     # Then wait up to 10 seconds.
 
84234
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84235
       sleep 1
 
84236
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
84237
     done
 
84238
     exit 1
 
84239
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84240
at_status=$? at_failed=false
 
84241
$at_check_filter
 
84242
echo stderr:; cat "$at_stderr"
 
84243
echo stdout:; cat "$at_stdout"
 
84244
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84245
if $at_failed; then :
 
84246
  kill `cat savepid`
 
84247
fi
 
84248
$at_failed && at_fn_log_failure
 
84249
$at_traceon; }
 
84250
 
 
84251
     set +x
 
84252
  $at_times_p && times >"$at_times_file"
 
84253
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
84254
read at_status <"$at_status_file"
 
84255
#AT_STOP_931
 
84256
#AT_START_932
 
84257
at_fn_group_banner 932 'ovsdb-idl.at:245' \
 
84258
  "simple idl, aborting - Python" "                  " 64
 
84259
at_xfail=no
 
84260
(
 
84261
  $as_echo "932. $at_setup_line: testing $at_desc ..."
 
84262
  $at_traceon
 
84263
 
 
84264
   $as_echo "ovsdb-idl.at:245" >"$at_check_line_file"
 
84265
(test $HAVE_PYTHON = no) \
 
84266
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:245"
 
84267
 
 
84268
   { set +x
 
84269
$as_echo "$at_srcdir/ovsdb-idl.at:245: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
84270
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:245"
 
84271
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
84272
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84273
at_status=$? at_failed=false
 
84274
$at_check_filter
 
84275
echo stderr:; cat "$at_stderr"
 
84276
echo stdout:; tee stdout <"$at_stdout"
 
84277
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84278
$at_failed && at_fn_log_failure
 
84279
$at_traceon; }
 
84280
 
 
84281
   { set +x
 
84282
$as_echo "$at_srcdir/ovsdb-idl.at:245: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
84283
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:245"
 
84284
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
84285
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84286
at_status=$? at_failed=false
 
84287
$at_check_filter
 
84288
echo stderr:; cat "$at_stderr"
 
84289
echo stdout:; cat "$at_stdout"
 
84290
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84291
$at_failed && at_fn_log_failure
 
84292
$at_traceon; }
 
84293
 
 
84294
   { set +x
 
84295
$as_echo "$at_srcdir/ovsdb-idl.at:245: ovsdb-client transact unix:socket '[\"idltest\",
 
84296
      {\"op\": \"insert\",
 
84297
       \"table\": \"simple\",
 
84298
       \"row\": {}}]'"
 
84299
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:245"
 
84300
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
84301
      {"op": "insert",
 
84302
       "table": "simple",
 
84303
       "row": {}}]'
 
84304
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84305
at_status=$? at_failed=false
 
84306
$at_check_filter
 
84307
echo stderr:; cat "$at_stderr"
 
84308
echo stdout:; cat "$at_stdout"
 
84309
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84310
if $at_failed; then :
 
84311
  kill `cat pid`
 
84312
fi
 
84313
$at_failed && at_fn_log_failure
 
84314
$at_traceon; }
 
84315
 
 
84316
   { set +x
 
84317
$as_echo "$at_srcdir/ovsdb-idl.at:245: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket 'set 0 r 2.0, abort' \\
 
84318
'+set 0 b 1'"
 
84319
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:245"
 
84320
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket 'set 0 r 2.0, abort' \
 
84321
'+set 0 b 1'
 
84322
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84323
at_status=$? at_failed=false
 
84324
$at_check_filter
 
84325
echo stderr:; cat "$at_stderr"
 
84326
echo stdout:; tee stdout <"$at_stdout"
 
84327
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84328
if $at_failed; then :
 
84329
  kill `cat pid`
 
84330
fi
 
84331
$at_failed && at_fn_log_failure
 
84332
$at_traceon; }
 
84333
 
 
84334
   { set +x
 
84335
$as_echo "$at_srcdir/ovsdb-idl.at:245: sort stdout | perl \$srcdir/uuidfilt.pl"
 
84336
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:245"
 
84337
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
84338
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84339
at_status=$? at_failed=false
 
84340
$at_check_filter
 
84341
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
84342
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84343
001: commit, status=aborted
 
84344
002: commit, status=success
 
84345
003: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84346
004: done
 
84347
" | \
 
84348
  $at_diff - "$at_stdout" || at_failed=:
 
84349
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84350
if $at_failed; then :
 
84351
  kill `cat pid`
 
84352
fi
 
84353
$at_failed && at_fn_log_failure
 
84354
$at_traceon; }
 
84355
 
 
84356
   cp pid savepid
 
84357
   { set +x
 
84358
$as_echo "$at_srcdir/ovsdb-idl.at:245: ovs-appctl -t \$PWD/unixctl -e exit"
 
84359
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:245"
 
84360
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
84361
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84362
at_status=$? at_failed=false
 
84363
$at_check_filter
 
84364
echo stderr:; cat "$at_stderr"
 
84365
echo stdout:; cat "$at_stdout"
 
84366
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84367
$at_failed && at_fn_log_failure
 
84368
$at_traceon; }
 
84369
 
 
84370
   { set +x
 
84371
$as_echo "$at_srcdir/ovsdb-idl.at:245: # First try a quick sleep, so that the test completes very quickly
 
84372
     # in the normal case.  POSIX doesn't require fractional times to
 
84373
     # work, so this might not work.
 
84374
     sleep 0.1
 
84375
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84376
     # Then wait up to 10 seconds.
 
84377
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84378
       sleep 1
 
84379
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84380
     done
 
84381
     exit 1"
 
84382
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:245"
 
84383
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
84384
     # in the normal case.  POSIX doesn't require fractional times to
 
84385
     # work, so this might not work.
 
84386
     sleep 0.1
 
84387
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
84388
     # Then wait up to 10 seconds.
 
84389
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84390
       sleep 1
 
84391
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
84392
     done
 
84393
     exit 1
 
84394
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84395
at_status=$? at_failed=false
 
84396
$at_check_filter
 
84397
echo stderr:; cat "$at_stderr"
 
84398
echo stdout:; cat "$at_stdout"
 
84399
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:245"
 
84400
if $at_failed; then :
 
84401
  kill `cat savepid`
 
84402
fi
 
84403
$at_failed && at_fn_log_failure
 
84404
$at_traceon; }
 
84405
 
 
84406
     set +x
 
84407
  $at_times_p && times >"$at_times_file"
 
84408
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
84409
read at_status <"$at_status_file"
 
84410
#AT_STOP_932
 
84411
#AT_START_933
 
84412
at_fn_group_banner 933 'ovsdb-idl.at:259' \
 
84413
  "simple idl, destroy without commit or abort - C" "" 64
 
84414
at_xfail=no
 
84415
(
 
84416
  $as_echo "933. $at_setup_line: testing $at_desc ..."
 
84417
  $at_traceon
 
84418
 
 
84419
 
 
84420
   { set +x
 
84421
$as_echo "$at_srcdir/ovsdb-idl.at:259: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
84422
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:259"
 
84423
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
84424
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84425
at_status=$? at_failed=false
 
84426
$at_check_filter
 
84427
echo stderr:; cat "$at_stderr"
 
84428
echo stdout:; tee stdout <"$at_stdout"
 
84429
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84430
$at_failed && at_fn_log_failure
 
84431
$at_traceon; }
 
84432
 
 
84433
   { set +x
 
84434
$as_echo "$at_srcdir/ovsdb-idl.at:259: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
84435
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:259"
 
84436
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
84437
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84438
at_status=$? at_failed=false
 
84439
$at_check_filter
 
84440
echo stderr:; cat "$at_stderr"
 
84441
echo stdout:; cat "$at_stdout"
 
84442
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84443
$at_failed && at_fn_log_failure
 
84444
$at_traceon; }
 
84445
 
 
84446
   { set +x
 
84447
$as_echo "$at_srcdir/ovsdb-idl.at:259: ovsdb-client transact unix:socket '[\"idltest\",
 
84448
      {\"op\": \"insert\",
 
84449
       \"table\": \"simple\",
 
84450
       \"row\": {}}]'"
 
84451
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:259"
 
84452
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
84453
      {"op": "insert",
 
84454
       "table": "simple",
 
84455
       "row": {}}]'
 
84456
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84457
at_status=$? at_failed=false
 
84458
$at_check_filter
 
84459
echo stderr:; cat "$at_stderr"
 
84460
echo stdout:; cat "$at_stdout"
 
84461
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84462
if $at_failed; then :
 
84463
  kill `cat pid`
 
84464
fi
 
84465
$at_failed && at_fn_log_failure
 
84466
$at_traceon; }
 
84467
 
 
84468
   { set +x
 
84469
$as_echo "$at_srcdir/ovsdb-idl.at:259: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'set 0 r 2.0, destroy' \\
 
84470
'+set 0 b 1'"
 
84471
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:259"
 
84472
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket 'set 0 r 2.0, destroy' \
 
84473
'+set 0 b 1'
 
84474
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84475
at_status=$? at_failed=false
 
84476
$at_check_filter
 
84477
echo stderr:; cat "$at_stderr"
 
84478
echo stdout:; tee stdout <"$at_stdout"
 
84479
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84480
if $at_failed; then :
 
84481
  kill `cat pid`
 
84482
fi
 
84483
$at_failed && at_fn_log_failure
 
84484
$at_traceon; }
 
84485
 
 
84486
   { set +x
 
84487
$as_echo "$at_srcdir/ovsdb-idl.at:259: sort stdout | perl \$srcdir/uuidfilt.pl"
 
84488
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:259"
 
84489
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
84490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84491
at_status=$? at_failed=false
 
84492
$at_check_filter
 
84493
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
84494
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84495
001: destroy
 
84496
002: commit, status=success
 
84497
003: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84498
004: done
 
84499
" | \
 
84500
  $at_diff - "$at_stdout" || at_failed=:
 
84501
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84502
if $at_failed; then :
 
84503
  kill `cat pid`
 
84504
fi
 
84505
$at_failed && at_fn_log_failure
 
84506
$at_traceon; }
 
84507
 
 
84508
   cp pid savepid
 
84509
   { set +x
 
84510
$as_echo "$at_srcdir/ovsdb-idl.at:259: ovs-appctl -t \$PWD/unixctl -e exit"
 
84511
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:259"
 
84512
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
84513
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84514
at_status=$? at_failed=false
 
84515
$at_check_filter
 
84516
echo stderr:; cat "$at_stderr"
 
84517
echo stdout:; cat "$at_stdout"
 
84518
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84519
$at_failed && at_fn_log_failure
 
84520
$at_traceon; }
 
84521
 
 
84522
   { set +x
 
84523
$as_echo "$at_srcdir/ovsdb-idl.at:259: # First try a quick sleep, so that the test completes very quickly
 
84524
     # in the normal case.  POSIX doesn't require fractional times to
 
84525
     # work, so this might not work.
 
84526
     sleep 0.1
 
84527
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84528
     # Then wait up to 10 seconds.
 
84529
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84530
       sleep 1
 
84531
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84532
     done
 
84533
     exit 1"
 
84534
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:259"
 
84535
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
84536
     # in the normal case.  POSIX doesn't require fractional times to
 
84537
     # work, so this might not work.
 
84538
     sleep 0.1
 
84539
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
84540
     # Then wait up to 10 seconds.
 
84541
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84542
       sleep 1
 
84543
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
84544
     done
 
84545
     exit 1
 
84546
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84547
at_status=$? at_failed=false
 
84548
$at_check_filter
 
84549
echo stderr:; cat "$at_stderr"
 
84550
echo stdout:; cat "$at_stdout"
 
84551
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84552
if $at_failed; then :
 
84553
  kill `cat savepid`
 
84554
fi
 
84555
$at_failed && at_fn_log_failure
 
84556
$at_traceon; }
 
84557
 
 
84558
     set +x
 
84559
  $at_times_p && times >"$at_times_file"
 
84560
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
84561
read at_status <"$at_status_file"
 
84562
#AT_STOP_933
 
84563
#AT_START_934
 
84564
at_fn_group_banner 934 'ovsdb-idl.at:259' \
 
84565
  "simple idl, destroy without commit or abort - Python" "" 64
 
84566
at_xfail=no
 
84567
(
 
84568
  $as_echo "934. $at_setup_line: testing $at_desc ..."
 
84569
  $at_traceon
 
84570
 
 
84571
   $as_echo "ovsdb-idl.at:259" >"$at_check_line_file"
 
84572
(test $HAVE_PYTHON = no) \
 
84573
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:259"
 
84574
 
 
84575
   { set +x
 
84576
$as_echo "$at_srcdir/ovsdb-idl.at:259: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
84577
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:259"
 
84578
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
84579
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84580
at_status=$? at_failed=false
 
84581
$at_check_filter
 
84582
echo stderr:; cat "$at_stderr"
 
84583
echo stdout:; tee stdout <"$at_stdout"
 
84584
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84585
$at_failed && at_fn_log_failure
 
84586
$at_traceon; }
 
84587
 
 
84588
   { set +x
 
84589
$as_echo "$at_srcdir/ovsdb-idl.at:259: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
84590
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:259"
 
84591
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
84592
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84593
at_status=$? at_failed=false
 
84594
$at_check_filter
 
84595
echo stderr:; cat "$at_stderr"
 
84596
echo stdout:; cat "$at_stdout"
 
84597
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84598
$at_failed && at_fn_log_failure
 
84599
$at_traceon; }
 
84600
 
 
84601
   { set +x
 
84602
$as_echo "$at_srcdir/ovsdb-idl.at:259: ovsdb-client transact unix:socket '[\"idltest\",
 
84603
      {\"op\": \"insert\",
 
84604
       \"table\": \"simple\",
 
84605
       \"row\": {}}]'"
 
84606
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:259"
 
84607
( $at_check_trace; ovsdb-client transact unix:socket '["idltest",
 
84608
      {"op": "insert",
 
84609
       "table": "simple",
 
84610
       "row": {}}]'
 
84611
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84612
at_status=$? at_failed=false
 
84613
$at_check_filter
 
84614
echo stderr:; cat "$at_stderr"
 
84615
echo stdout:; cat "$at_stdout"
 
84616
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84617
if $at_failed; then :
 
84618
  kill `cat pid`
 
84619
fi
 
84620
$at_failed && at_fn_log_failure
 
84621
$at_traceon; }
 
84622
 
 
84623
   { set +x
 
84624
$as_echo "$at_srcdir/ovsdb-idl.at:259: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket 'set 0 r 2.0, destroy' \\
 
84625
'+set 0 b 1'"
 
84626
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:259"
 
84627
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket 'set 0 r 2.0, destroy' \
 
84628
'+set 0 b 1'
 
84629
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84630
at_status=$? at_failed=false
 
84631
$at_check_filter
 
84632
echo stderr:; cat "$at_stderr"
 
84633
echo stdout:; tee stdout <"$at_stdout"
 
84634
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84635
if $at_failed; then :
 
84636
  kill `cat pid`
 
84637
fi
 
84638
$at_failed && at_fn_log_failure
 
84639
$at_traceon; }
 
84640
 
 
84641
   { set +x
 
84642
$as_echo "$at_srcdir/ovsdb-idl.at:259: sort stdout | perl \$srcdir/uuidfilt.pl"
 
84643
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:259"
 
84644
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
84645
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84646
at_status=$? at_failed=false
 
84647
$at_check_filter
 
84648
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
84649
echo >>"$at_stdout"; $as_echo "000: i=0 r=0 b=false s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84650
001: destroy
 
84651
002: commit, status=success
 
84652
003: i=0 r=0 b=true s= u=<0> ia=[] ra=[] ba=[] sa=[] ua=[] uuid=<1>
 
84653
004: done
 
84654
" | \
 
84655
  $at_diff - "$at_stdout" || at_failed=:
 
84656
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84657
if $at_failed; then :
 
84658
  kill `cat pid`
 
84659
fi
 
84660
$at_failed && at_fn_log_failure
 
84661
$at_traceon; }
 
84662
 
 
84663
   cp pid savepid
 
84664
   { set +x
 
84665
$as_echo "$at_srcdir/ovsdb-idl.at:259: ovs-appctl -t \$PWD/unixctl -e exit"
 
84666
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:259"
 
84667
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
84668
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84669
at_status=$? at_failed=false
 
84670
$at_check_filter
 
84671
echo stderr:; cat "$at_stderr"
 
84672
echo stdout:; cat "$at_stdout"
 
84673
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84674
$at_failed && at_fn_log_failure
 
84675
$at_traceon; }
 
84676
 
 
84677
   { set +x
 
84678
$as_echo "$at_srcdir/ovsdb-idl.at:259: # First try a quick sleep, so that the test completes very quickly
 
84679
     # in the normal case.  POSIX doesn't require fractional times to
 
84680
     # work, so this might not work.
 
84681
     sleep 0.1
 
84682
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84683
     # Then wait up to 10 seconds.
 
84684
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84685
       sleep 1
 
84686
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84687
     done
 
84688
     exit 1"
 
84689
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:259"
 
84690
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
84691
     # in the normal case.  POSIX doesn't require fractional times to
 
84692
     # work, so this might not work.
 
84693
     sleep 0.1
 
84694
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
84695
     # Then wait up to 10 seconds.
 
84696
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84697
       sleep 1
 
84698
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
84699
     done
 
84700
     exit 1
 
84701
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84702
at_status=$? at_failed=false
 
84703
$at_check_filter
 
84704
echo stderr:; cat "$at_stderr"
 
84705
echo stdout:; cat "$at_stdout"
 
84706
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:259"
 
84707
if $at_failed; then :
 
84708
  kill `cat savepid`
 
84709
fi
 
84710
$at_failed && at_fn_log_failure
 
84711
$at_traceon; }
 
84712
 
 
84713
     set +x
 
84714
  $at_times_p && times >"$at_times_file"
 
84715
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
84716
read at_status <"$at_status_file"
 
84717
#AT_STOP_934
 
84718
#AT_START_935
 
84719
at_fn_group_banner 935 'ovsdb-idl.at:273' \
 
84720
  "self-linking idl, consistent ops - C" "           " 64
 
84721
at_xfail=no
 
84722
(
 
84723
  $as_echo "935. $at_setup_line: testing $at_desc ..."
 
84724
  $at_traceon
 
84725
 
 
84726
 
 
84727
   { set +x
 
84728
$as_echo "$at_srcdir/ovsdb-idl.at:273: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
84729
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:273"
 
84730
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
84731
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84732
at_status=$? at_failed=false
 
84733
$at_check_filter
 
84734
echo stderr:; cat "$at_stderr"
 
84735
echo stdout:; tee stdout <"$at_stdout"
 
84736
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84737
$at_failed && at_fn_log_failure
 
84738
$at_traceon; }
 
84739
 
 
84740
   { set +x
 
84741
$as_echo "$at_srcdir/ovsdb-idl.at:273: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
84742
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:273"
 
84743
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
84744
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84745
at_status=$? at_failed=false
 
84746
$at_check_filter
 
84747
echo stderr:; cat "$at_stderr"
 
84748
echo stdout:; cat "$at_stdout"
 
84749
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84750
$at_failed && at_fn_log_failure
 
84751
$at_traceon; }
 
84752
 
 
84753
 
 
84754
   { set +x
 
84755
$as_echo "$at_srcdir/ovsdb-idl.at:273: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '[\"idltest\",
 
84756
      {\"op\": \"insert\",
 
84757
       \"table\": \"link1\",
 
84758
       \"row\": {\"i\": 0, \"k\": [\"named-uuid\", \"self\"]},
 
84759
       \"uuid-name\": \"self\"}]' \\
 
84760
    '[\"idltest\",
 
84761
      {\"op\": \"insert\",
 
84762
       \"table\": \"link1\",
 
84763
       \"row\": {\"i\": 1, \"k\": [\"named-uuid\", \"row2\"]},
 
84764
       \"uuid-name\": \"row1\"},
 
84765
      {\"op\": \"insert\",
 
84766
       \"table\": \"link1\",
 
84767
       \"row\": {\"i\": 2, \"k\": [\"named-uuid\", \"row1\"]},
 
84768
       \"uuid-name\": \"row2\"}]' \\
 
84769
    '[\"idltest\",
 
84770
      {\"op\": \"update\",
 
84771
       \"table\": \"link1\",
 
84772
       \"where\": [[\"i\", \"==\", 1]],
 
84773
       \"row\": {\"k\": [\"uuid\", \"#1#\"]}}]' \\
 
84774
    '[\"idltest\",
 
84775
      {\"op\": \"update\",
 
84776
       \"table\": \"link1\",
 
84777
       \"where\": [],
 
84778
       \"row\": {\"k\": [\"uuid\", \"#0#\"]}}]'"
 
84779
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:273"
 
84780
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '["idltest",
 
84781
      {"op": "insert",
 
84782
       "table": "link1",
 
84783
       "row": {"i": 0, "k": ["named-uuid", "self"]},
 
84784
       "uuid-name": "self"}]' \
 
84785
    '["idltest",
 
84786
      {"op": "insert",
 
84787
       "table": "link1",
 
84788
       "row": {"i": 1, "k": ["named-uuid", "row2"]},
 
84789
       "uuid-name": "row1"},
 
84790
      {"op": "insert",
 
84791
       "table": "link1",
 
84792
       "row": {"i": 2, "k": ["named-uuid", "row1"]},
 
84793
       "uuid-name": "row2"}]' \
 
84794
    '["idltest",
 
84795
      {"op": "update",
 
84796
       "table": "link1",
 
84797
       "where": [["i", "==", 1]],
 
84798
       "row": {"k": ["uuid", "#1#"]}}]' \
 
84799
    '["idltest",
 
84800
      {"op": "update",
 
84801
       "table": "link1",
 
84802
       "where": [],
 
84803
       "row": {"k": ["uuid", "#0#"]}}]'
 
84804
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84805
at_status=$? at_failed=false
 
84806
$at_check_filter
 
84807
echo stderr:; cat "$at_stderr"
 
84808
echo stdout:; tee stdout <"$at_stdout"
 
84809
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84810
if $at_failed; then :
 
84811
  kill `cat pid`
 
84812
fi
 
84813
$at_failed && at_fn_log_failure
 
84814
$at_traceon; }
 
84815
 
 
84816
   { set +x
 
84817
$as_echo "$at_srcdir/ovsdb-idl.at:273: sort stdout | perl \$srcdir/uuidfilt.pl"
 
84818
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:273"
 
84819
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
84820
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84821
at_status=$? at_failed=false
 
84822
$at_check_filter
 
84823
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
84824
echo >>"$at_stdout"; $as_echo "000: empty
 
84825
001: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<0>\"]}]}
 
84826
002: i=0 k=0 ka=[] l2= uuid=<0>
 
84827
003: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]}]}
 
84828
004: i=0 k=0 ka=[] l2= uuid=<0>
 
84829
004: i=1 k=2 ka=[] l2= uuid=<1>
 
84830
004: i=2 k=1 ka=[] l2= uuid=<2>
 
84831
005: {\"error\":null,\"result\":[{\"count\":1}]}
 
84832
006: i=0 k=0 ka=[] l2= uuid=<0>
 
84833
006: i=1 k=1 ka=[] l2= uuid=<1>
 
84834
006: i=2 k=1 ka=[] l2= uuid=<2>
 
84835
007: {\"error\":null,\"result\":[{\"count\":3}]}
 
84836
008: i=0 k=0 ka=[] l2= uuid=<0>
 
84837
008: i=1 k=0 ka=[] l2= uuid=<1>
 
84838
008: i=2 k=0 ka=[] l2= uuid=<2>
 
84839
009: done
 
84840
" | \
 
84841
  $at_diff - "$at_stdout" || at_failed=:
 
84842
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84843
if $at_failed; then :
 
84844
  kill `cat pid`
 
84845
fi
 
84846
$at_failed && at_fn_log_failure
 
84847
$at_traceon; }
 
84848
 
 
84849
   cp pid savepid
 
84850
   { set +x
 
84851
$as_echo "$at_srcdir/ovsdb-idl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
84852
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:273"
 
84853
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
84854
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84855
at_status=$? at_failed=false
 
84856
$at_check_filter
 
84857
echo stderr:; cat "$at_stderr"
 
84858
echo stdout:; cat "$at_stdout"
 
84859
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84860
$at_failed && at_fn_log_failure
 
84861
$at_traceon; }
 
84862
 
 
84863
   { set +x
 
84864
$as_echo "$at_srcdir/ovsdb-idl.at:273: # First try a quick sleep, so that the test completes very quickly
 
84865
     # in the normal case.  POSIX doesn't require fractional times to
 
84866
     # work, so this might not work.
 
84867
     sleep 0.1
 
84868
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84869
     # Then wait up to 10 seconds.
 
84870
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84871
       sleep 1
 
84872
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
84873
     done
 
84874
     exit 1"
 
84875
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:273"
 
84876
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
84877
     # in the normal case.  POSIX doesn't require fractional times to
 
84878
     # work, so this might not work.
 
84879
     sleep 0.1
 
84880
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
84881
     # Then wait up to 10 seconds.
 
84882
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
84883
       sleep 1
 
84884
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
84885
     done
 
84886
     exit 1
 
84887
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84888
at_status=$? at_failed=false
 
84889
$at_check_filter
 
84890
echo stderr:; cat "$at_stderr"
 
84891
echo stdout:; cat "$at_stdout"
 
84892
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84893
if $at_failed; then :
 
84894
  kill `cat savepid`
 
84895
fi
 
84896
$at_failed && at_fn_log_failure
 
84897
$at_traceon; }
 
84898
 
 
84899
     set +x
 
84900
  $at_times_p && times >"$at_times_file"
 
84901
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
84902
read at_status <"$at_status_file"
 
84903
#AT_STOP_935
 
84904
#AT_START_936
 
84905
at_fn_group_banner 936 'ovsdb-idl.at:273' \
 
84906
  "self-linking idl, consistent ops - Python" "      " 64
 
84907
at_xfail=no
 
84908
(
 
84909
  $as_echo "936. $at_setup_line: testing $at_desc ..."
 
84910
  $at_traceon
 
84911
 
 
84912
   $as_echo "ovsdb-idl.at:273" >"$at_check_line_file"
 
84913
(test $HAVE_PYTHON = no) \
 
84914
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:273"
 
84915
 
 
84916
   { set +x
 
84917
$as_echo "$at_srcdir/ovsdb-idl.at:273: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
84918
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:273"
 
84919
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
84920
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84921
at_status=$? at_failed=false
 
84922
$at_check_filter
 
84923
echo stderr:; cat "$at_stderr"
 
84924
echo stdout:; tee stdout <"$at_stdout"
 
84925
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84926
$at_failed && at_fn_log_failure
 
84927
$at_traceon; }
 
84928
 
 
84929
   { set +x
 
84930
$as_echo "$at_srcdir/ovsdb-idl.at:273: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
84931
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:273"
 
84932
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
84933
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84934
at_status=$? at_failed=false
 
84935
$at_check_filter
 
84936
echo stderr:; cat "$at_stderr"
 
84937
echo stdout:; cat "$at_stdout"
 
84938
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84939
$at_failed && at_fn_log_failure
 
84940
$at_traceon; }
 
84941
 
 
84942
 
 
84943
   { set +x
 
84944
$as_echo "$at_srcdir/ovsdb-idl.at:273: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket '[\"idltest\",
 
84945
      {\"op\": \"insert\",
 
84946
       \"table\": \"link1\",
 
84947
       \"row\": {\"i\": 0, \"k\": [\"named-uuid\", \"self\"]},
 
84948
       \"uuid-name\": \"self\"}]' \\
 
84949
    '[\"idltest\",
 
84950
      {\"op\": \"insert\",
 
84951
       \"table\": \"link1\",
 
84952
       \"row\": {\"i\": 1, \"k\": [\"named-uuid\", \"row2\"]},
 
84953
       \"uuid-name\": \"row1\"},
 
84954
      {\"op\": \"insert\",
 
84955
       \"table\": \"link1\",
 
84956
       \"row\": {\"i\": 2, \"k\": [\"named-uuid\", \"row1\"]},
 
84957
       \"uuid-name\": \"row2\"}]' \\
 
84958
    '[\"idltest\",
 
84959
      {\"op\": \"update\",
 
84960
       \"table\": \"link1\",
 
84961
       \"where\": [[\"i\", \"==\", 1]],
 
84962
       \"row\": {\"k\": [\"uuid\", \"#1#\"]}}]' \\
 
84963
    '[\"idltest\",
 
84964
      {\"op\": \"update\",
 
84965
       \"table\": \"link1\",
 
84966
       \"where\": [],
 
84967
       \"row\": {\"k\": [\"uuid\", \"#0#\"]}}]'"
 
84968
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:273"
 
84969
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket '["idltest",
 
84970
      {"op": "insert",
 
84971
       "table": "link1",
 
84972
       "row": {"i": 0, "k": ["named-uuid", "self"]},
 
84973
       "uuid-name": "self"}]' \
 
84974
    '["idltest",
 
84975
      {"op": "insert",
 
84976
       "table": "link1",
 
84977
       "row": {"i": 1, "k": ["named-uuid", "row2"]},
 
84978
       "uuid-name": "row1"},
 
84979
      {"op": "insert",
 
84980
       "table": "link1",
 
84981
       "row": {"i": 2, "k": ["named-uuid", "row1"]},
 
84982
       "uuid-name": "row2"}]' \
 
84983
    '["idltest",
 
84984
      {"op": "update",
 
84985
       "table": "link1",
 
84986
       "where": [["i", "==", 1]],
 
84987
       "row": {"k": ["uuid", "#1#"]}}]' \
 
84988
    '["idltest",
 
84989
      {"op": "update",
 
84990
       "table": "link1",
 
84991
       "where": [],
 
84992
       "row": {"k": ["uuid", "#0#"]}}]'
 
84993
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
84994
at_status=$? at_failed=false
 
84995
$at_check_filter
 
84996
echo stderr:; cat "$at_stderr"
 
84997
echo stdout:; tee stdout <"$at_stdout"
 
84998
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
84999
if $at_failed; then :
 
85000
  kill `cat pid`
 
85001
fi
 
85002
$at_failed && at_fn_log_failure
 
85003
$at_traceon; }
 
85004
 
 
85005
   { set +x
 
85006
$as_echo "$at_srcdir/ovsdb-idl.at:273: sort stdout | perl \$srcdir/uuidfilt.pl"
 
85007
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:273"
 
85008
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
85009
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85010
at_status=$? at_failed=false
 
85011
$at_check_filter
 
85012
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
85013
echo >>"$at_stdout"; $as_echo "000: empty
 
85014
001: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<0>\"]}]}
 
85015
002: i=0 k=0 ka=[] l2= uuid=<0>
 
85016
003: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]}]}
 
85017
004: i=0 k=0 ka=[] l2= uuid=<0>
 
85018
004: i=1 k=2 ka=[] l2= uuid=<1>
 
85019
004: i=2 k=1 ka=[] l2= uuid=<2>
 
85020
005: {\"error\":null,\"result\":[{\"count\":1}]}
 
85021
006: i=0 k=0 ka=[] l2= uuid=<0>
 
85022
006: i=1 k=1 ka=[] l2= uuid=<1>
 
85023
006: i=2 k=1 ka=[] l2= uuid=<2>
 
85024
007: {\"error\":null,\"result\":[{\"count\":3}]}
 
85025
008: i=0 k=0 ka=[] l2= uuid=<0>
 
85026
008: i=1 k=0 ka=[] l2= uuid=<1>
 
85027
008: i=2 k=0 ka=[] l2= uuid=<2>
 
85028
009: done
 
85029
" | \
 
85030
  $at_diff - "$at_stdout" || at_failed=:
 
85031
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
85032
if $at_failed; then :
 
85033
  kill `cat pid`
 
85034
fi
 
85035
$at_failed && at_fn_log_failure
 
85036
$at_traceon; }
 
85037
 
 
85038
   cp pid savepid
 
85039
   { set +x
 
85040
$as_echo "$at_srcdir/ovsdb-idl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
85041
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:273"
 
85042
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
85043
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85044
at_status=$? at_failed=false
 
85045
$at_check_filter
 
85046
echo stderr:; cat "$at_stderr"
 
85047
echo stdout:; cat "$at_stdout"
 
85048
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
85049
$at_failed && at_fn_log_failure
 
85050
$at_traceon; }
 
85051
 
 
85052
   { set +x
 
85053
$as_echo "$at_srcdir/ovsdb-idl.at:273: # First try a quick sleep, so that the test completes very quickly
 
85054
     # in the normal case.  POSIX doesn't require fractional times to
 
85055
     # work, so this might not work.
 
85056
     sleep 0.1
 
85057
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85058
     # Then wait up to 10 seconds.
 
85059
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85060
       sleep 1
 
85061
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85062
     done
 
85063
     exit 1"
 
85064
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:273"
 
85065
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
85066
     # in the normal case.  POSIX doesn't require fractional times to
 
85067
     # work, so this might not work.
 
85068
     sleep 0.1
 
85069
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
85070
     # Then wait up to 10 seconds.
 
85071
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85072
       sleep 1
 
85073
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
85074
     done
 
85075
     exit 1
 
85076
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85077
at_status=$? at_failed=false
 
85078
$at_check_filter
 
85079
echo stderr:; cat "$at_stderr"
 
85080
echo stdout:; cat "$at_stdout"
 
85081
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:273"
 
85082
if $at_failed; then :
 
85083
  kill `cat savepid`
 
85084
fi
 
85085
$at_failed && at_fn_log_failure
 
85086
$at_traceon; }
 
85087
 
 
85088
     set +x
 
85089
  $at_times_p && times >"$at_times_file"
 
85090
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
85091
read at_status <"$at_status_file"
 
85092
#AT_STOP_936
 
85093
#AT_START_937
 
85094
at_fn_group_banner 937 'ovsdb-idl.at:317' \
 
85095
  "self-linking idl, inconsistent ops - C" "         " 64
 
85096
at_xfail=no
 
85097
(
 
85098
  $as_echo "937. $at_setup_line: testing $at_desc ..."
 
85099
  $at_traceon
 
85100
 
 
85101
 
 
85102
   { set +x
 
85103
$as_echo "$at_srcdir/ovsdb-idl.at:317: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
85104
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:317"
 
85105
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
85106
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85107
at_status=$? at_failed=false
 
85108
$at_check_filter
 
85109
echo stderr:; cat "$at_stderr"
 
85110
echo stdout:; tee stdout <"$at_stdout"
 
85111
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85112
$at_failed && at_fn_log_failure
 
85113
$at_traceon; }
 
85114
 
 
85115
   { set +x
 
85116
$as_echo "$at_srcdir/ovsdb-idl.at:317: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
85117
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:317"
 
85118
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
85119
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85120
at_status=$? at_failed=false
 
85121
$at_check_filter
 
85122
echo stderr:; cat "$at_stderr"
 
85123
echo stdout:; cat "$at_stdout"
 
85124
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85125
$at_failed && at_fn_log_failure
 
85126
$at_traceon; }
 
85127
 
 
85128
 
 
85129
   { set +x
 
85130
$as_echo "$at_srcdir/ovsdb-idl.at:317: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '[\"idltest\",
 
85131
      {\"op\": \"insert\",
 
85132
       \"table\": \"link1\",
 
85133
       \"row\": {\"i\": 0, \"k\": [\"uuid\", \"cf197cc5-c8c9-42f5-82d5-c71a9f2cb96b\"]}}]' \\
 
85134
    '+[\"idltest\",
 
85135
      {\"op\": \"insert\",
 
85136
       \"table\": \"link1\",
 
85137
       \"uuid-name\": \"one\",
 
85138
       \"row\": {\"i\": 1, \"k\": [\"named-uuid\", \"one\"]}},
 
85139
      {\"op\": \"insert\",
 
85140
       \"table\": \"link1\",
 
85141
       \"row\": {\"i\": 2, \"k\": [\"named-uuid\", \"one\"]}}]' \\
 
85142
     '[\"idltest\",
 
85143
      {\"op\": \"update\",
 
85144
       \"table\": \"link1\",
 
85145
       \"where\": [],
 
85146
       \"row\": {\"k\": [\"uuid\", \"c2fca39a-e69a-42a4-9c56-5eca85839ce9\"]}}]' \\
 
85147
     '+[\"idltest\",
 
85148
      {\"op\": \"delete\",
 
85149
       \"table\": \"link1\",
 
85150
       \"where\": [[\"_uuid\", \"==\", [\"uuid\", \"#1#\"]]]}]' \\
 
85151
     '+[\"idltest\",
 
85152
      {\"op\": \"delete\",
 
85153
       \"table\": \"link1\",
 
85154
       \"where\": [[\"_uuid\", \"==\", [\"uuid\", \"#2#\"]]]}]' \\
 
85155
     '[\"idltest\",
 
85156
      {\"op\": \"delete\",
 
85157
       \"table\": \"link1\",
 
85158
       \"where\": []}]' \\
 
85159
"
 
85160
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:317"
 
85161
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '["idltest",
 
85162
      {"op": "insert",
 
85163
       "table": "link1",
 
85164
       "row": {"i": 0, "k": ["uuid", "cf197cc5-c8c9-42f5-82d5-c71a9f2cb96b"]}}]' \
 
85165
    '+["idltest",
 
85166
      {"op": "insert",
 
85167
       "table": "link1",
 
85168
       "uuid-name": "one",
 
85169
       "row": {"i": 1, "k": ["named-uuid", "one"]}},
 
85170
      {"op": "insert",
 
85171
       "table": "link1",
 
85172
       "row": {"i": 2, "k": ["named-uuid", "one"]}}]' \
 
85173
     '["idltest",
 
85174
      {"op": "update",
 
85175
       "table": "link1",
 
85176
       "where": [],
 
85177
       "row": {"k": ["uuid", "c2fca39a-e69a-42a4-9c56-5eca85839ce9"]}}]' \
 
85178
     '+["idltest",
 
85179
      {"op": "delete",
 
85180
       "table": "link1",
 
85181
       "where": [["_uuid", "==", ["uuid", "#1#"]]]}]' \
 
85182
     '+["idltest",
 
85183
      {"op": "delete",
 
85184
       "table": "link1",
 
85185
       "where": [["_uuid", "==", ["uuid", "#2#"]]]}]' \
 
85186
     '["idltest",
 
85187
      {"op": "delete",
 
85188
       "table": "link1",
 
85189
       "where": []}]' \
 
85190
 
 
85191
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85192
at_status=$? at_failed=false
 
85193
$at_check_filter
 
85194
echo stderr:; cat "$at_stderr"
 
85195
echo stdout:; tee stdout <"$at_stdout"
 
85196
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85197
if $at_failed; then :
 
85198
  kill `cat pid`
 
85199
fi
 
85200
$at_failed && at_fn_log_failure
 
85201
$at_traceon; }
 
85202
 
 
85203
   { set +x
 
85204
$as_echo "$at_srcdir/ovsdb-idl.at:317: sort stdout | perl \$srcdir/uuidfilt.pl| sed -e '/004:/s/row <[23]> references/row <x> references/'"
 
85205
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:317"
 
85206
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl| sed -e '/004:/s/row <[23]> references/row <x> references/'
 
85207
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85208
at_status=$? at_failed=false
 
85209
$at_check_filter
 
85210
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
85211
echo >>"$at_stdout"; $as_echo "000: empty
 
85212
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\"}]}
 
85213
002: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]}
 
85214
003: i=1 k=1 ka=[] l2= uuid=<2>
 
85215
003: i=2 k=1 ka=[] l2= uuid=<3>
 
85216
004: {\"error\":null,\"result\":[{\"count\":2},{\"details\":\"Table link1 column k row <x> references nonexistent row <4> in table link1.\",\"error\":\"referential integrity violation\"}]}
 
85217
005: {\"error\":null,\"result\":[{\"count\":1},{\"details\":\"cannot delete link1 row <2> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]}
 
85218
006: {\"error\":null,\"result\":[{\"count\":1}]}
 
85219
007: i=1 k=1 ka=[] l2= uuid=<2>
 
85220
008: {\"error\":null,\"result\":[{\"count\":1}]}
 
85221
009: empty
 
85222
010: done
 
85223
" | \
 
85224
  $at_diff - "$at_stdout" || at_failed=:
 
85225
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85226
if $at_failed; then :
 
85227
  kill `cat pid`
 
85228
fi
 
85229
$at_failed && at_fn_log_failure
 
85230
$at_traceon; }
 
85231
 
 
85232
   cp pid savepid
 
85233
   { set +x
 
85234
$as_echo "$at_srcdir/ovsdb-idl.at:317: ovs-appctl -t \$PWD/unixctl -e exit"
 
85235
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:317"
 
85236
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
85237
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85238
at_status=$? at_failed=false
 
85239
$at_check_filter
 
85240
echo stderr:; cat "$at_stderr"
 
85241
echo stdout:; cat "$at_stdout"
 
85242
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85243
$at_failed && at_fn_log_failure
 
85244
$at_traceon; }
 
85245
 
 
85246
   { set +x
 
85247
$as_echo "$at_srcdir/ovsdb-idl.at:317: # First try a quick sleep, so that the test completes very quickly
 
85248
     # in the normal case.  POSIX doesn't require fractional times to
 
85249
     # work, so this might not work.
 
85250
     sleep 0.1
 
85251
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85252
     # Then wait up to 10 seconds.
 
85253
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85254
       sleep 1
 
85255
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85256
     done
 
85257
     exit 1"
 
85258
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:317"
 
85259
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
85260
     # in the normal case.  POSIX doesn't require fractional times to
 
85261
     # work, so this might not work.
 
85262
     sleep 0.1
 
85263
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
85264
     # Then wait up to 10 seconds.
 
85265
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85266
       sleep 1
 
85267
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
85268
     done
 
85269
     exit 1
 
85270
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85271
at_status=$? at_failed=false
 
85272
$at_check_filter
 
85273
echo stderr:; cat "$at_stderr"
 
85274
echo stdout:; cat "$at_stdout"
 
85275
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85276
if $at_failed; then :
 
85277
  kill `cat savepid`
 
85278
fi
 
85279
$at_failed && at_fn_log_failure
 
85280
$at_traceon; }
 
85281
 
 
85282
     set +x
 
85283
  $at_times_p && times >"$at_times_file"
 
85284
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
85285
read at_status <"$at_status_file"
 
85286
#AT_STOP_937
 
85287
#AT_START_938
 
85288
at_fn_group_banner 938 'ovsdb-idl.at:317' \
 
85289
  "self-linking idl, inconsistent ops - Python" "    " 64
 
85290
at_xfail=no
 
85291
(
 
85292
  $as_echo "938. $at_setup_line: testing $at_desc ..."
 
85293
  $at_traceon
 
85294
 
 
85295
   $as_echo "ovsdb-idl.at:317" >"$at_check_line_file"
 
85296
(test $HAVE_PYTHON = no) \
 
85297
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:317"
 
85298
 
 
85299
   { set +x
 
85300
$as_echo "$at_srcdir/ovsdb-idl.at:317: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
85301
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:317"
 
85302
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
85303
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85304
at_status=$? at_failed=false
 
85305
$at_check_filter
 
85306
echo stderr:; cat "$at_stderr"
 
85307
echo stdout:; tee stdout <"$at_stdout"
 
85308
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85309
$at_failed && at_fn_log_failure
 
85310
$at_traceon; }
 
85311
 
 
85312
   { set +x
 
85313
$as_echo "$at_srcdir/ovsdb-idl.at:317: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
85314
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:317"
 
85315
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
85316
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85317
at_status=$? at_failed=false
 
85318
$at_check_filter
 
85319
echo stderr:; cat "$at_stderr"
 
85320
echo stdout:; cat "$at_stdout"
 
85321
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85322
$at_failed && at_fn_log_failure
 
85323
$at_traceon; }
 
85324
 
 
85325
 
 
85326
   { set +x
 
85327
$as_echo "$at_srcdir/ovsdb-idl.at:317: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket '[\"idltest\",
 
85328
      {\"op\": \"insert\",
 
85329
       \"table\": \"link1\",
 
85330
       \"row\": {\"i\": 0, \"k\": [\"uuid\", \"cf197cc5-c8c9-42f5-82d5-c71a9f2cb96b\"]}}]' \\
 
85331
    '+[\"idltest\",
 
85332
      {\"op\": \"insert\",
 
85333
       \"table\": \"link1\",
 
85334
       \"uuid-name\": \"one\",
 
85335
       \"row\": {\"i\": 1, \"k\": [\"named-uuid\", \"one\"]}},
 
85336
      {\"op\": \"insert\",
 
85337
       \"table\": \"link1\",
 
85338
       \"row\": {\"i\": 2, \"k\": [\"named-uuid\", \"one\"]}}]' \\
 
85339
     '[\"idltest\",
 
85340
      {\"op\": \"update\",
 
85341
       \"table\": \"link1\",
 
85342
       \"where\": [],
 
85343
       \"row\": {\"k\": [\"uuid\", \"c2fca39a-e69a-42a4-9c56-5eca85839ce9\"]}}]' \\
 
85344
     '+[\"idltest\",
 
85345
      {\"op\": \"delete\",
 
85346
       \"table\": \"link1\",
 
85347
       \"where\": [[\"_uuid\", \"==\", [\"uuid\", \"#1#\"]]]}]' \\
 
85348
     '+[\"idltest\",
 
85349
      {\"op\": \"delete\",
 
85350
       \"table\": \"link1\",
 
85351
       \"where\": [[\"_uuid\", \"==\", [\"uuid\", \"#2#\"]]]}]' \\
 
85352
     '[\"idltest\",
 
85353
      {\"op\": \"delete\",
 
85354
       \"table\": \"link1\",
 
85355
       \"where\": []}]' \\
 
85356
"
 
85357
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:317"
 
85358
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket '["idltest",
 
85359
      {"op": "insert",
 
85360
       "table": "link1",
 
85361
       "row": {"i": 0, "k": ["uuid", "cf197cc5-c8c9-42f5-82d5-c71a9f2cb96b"]}}]' \
 
85362
    '+["idltest",
 
85363
      {"op": "insert",
 
85364
       "table": "link1",
 
85365
       "uuid-name": "one",
 
85366
       "row": {"i": 1, "k": ["named-uuid", "one"]}},
 
85367
      {"op": "insert",
 
85368
       "table": "link1",
 
85369
       "row": {"i": 2, "k": ["named-uuid", "one"]}}]' \
 
85370
     '["idltest",
 
85371
      {"op": "update",
 
85372
       "table": "link1",
 
85373
       "where": [],
 
85374
       "row": {"k": ["uuid", "c2fca39a-e69a-42a4-9c56-5eca85839ce9"]}}]' \
 
85375
     '+["idltest",
 
85376
      {"op": "delete",
 
85377
       "table": "link1",
 
85378
       "where": [["_uuid", "==", ["uuid", "#1#"]]]}]' \
 
85379
     '+["idltest",
 
85380
      {"op": "delete",
 
85381
       "table": "link1",
 
85382
       "where": [["_uuid", "==", ["uuid", "#2#"]]]}]' \
 
85383
     '["idltest",
 
85384
      {"op": "delete",
 
85385
       "table": "link1",
 
85386
       "where": []}]' \
 
85387
 
 
85388
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85389
at_status=$? at_failed=false
 
85390
$at_check_filter
 
85391
echo stderr:; cat "$at_stderr"
 
85392
echo stdout:; tee stdout <"$at_stdout"
 
85393
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85394
if $at_failed; then :
 
85395
  kill `cat pid`
 
85396
fi
 
85397
$at_failed && at_fn_log_failure
 
85398
$at_traceon; }
 
85399
 
 
85400
   { set +x
 
85401
$as_echo "$at_srcdir/ovsdb-idl.at:317: sort stdout | perl \$srcdir/uuidfilt.pl| sed -e '/004:/s/row <[23]> references/row <x> references/'"
 
85402
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:317"
 
85403
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl| sed -e '/004:/s/row <[23]> references/row <x> references/'
 
85404
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85405
at_status=$? at_failed=false
 
85406
$at_check_filter
 
85407
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
85408
echo >>"$at_stdout"; $as_echo "000: empty
 
85409
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\"}]}
 
85410
002: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]}
 
85411
003: i=1 k=1 ka=[] l2= uuid=<2>
 
85412
003: i=2 k=1 ka=[] l2= uuid=<3>
 
85413
004: {\"error\":null,\"result\":[{\"count\":2},{\"details\":\"Table link1 column k row <x> references nonexistent row <4> in table link1.\",\"error\":\"referential integrity violation\"}]}
 
85414
005: {\"error\":null,\"result\":[{\"count\":1},{\"details\":\"cannot delete link1 row <2> because of 1 remaining reference(s)\",\"error\":\"referential integrity violation\"}]}
 
85415
006: {\"error\":null,\"result\":[{\"count\":1}]}
 
85416
007: i=1 k=1 ka=[] l2= uuid=<2>
 
85417
008: {\"error\":null,\"result\":[{\"count\":1}]}
 
85418
009: empty
 
85419
010: done
 
85420
" | \
 
85421
  $at_diff - "$at_stdout" || at_failed=:
 
85422
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85423
if $at_failed; then :
 
85424
  kill `cat pid`
 
85425
fi
 
85426
$at_failed && at_fn_log_failure
 
85427
$at_traceon; }
 
85428
 
 
85429
   cp pid savepid
 
85430
   { set +x
 
85431
$as_echo "$at_srcdir/ovsdb-idl.at:317: ovs-appctl -t \$PWD/unixctl -e exit"
 
85432
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:317"
 
85433
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
85434
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85435
at_status=$? at_failed=false
 
85436
$at_check_filter
 
85437
echo stderr:; cat "$at_stderr"
 
85438
echo stdout:; cat "$at_stdout"
 
85439
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85440
$at_failed && at_fn_log_failure
 
85441
$at_traceon; }
 
85442
 
 
85443
   { set +x
 
85444
$as_echo "$at_srcdir/ovsdb-idl.at:317: # First try a quick sleep, so that the test completes very quickly
 
85445
     # in the normal case.  POSIX doesn't require fractional times to
 
85446
     # work, so this might not work.
 
85447
     sleep 0.1
 
85448
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85449
     # Then wait up to 10 seconds.
 
85450
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85451
       sleep 1
 
85452
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85453
     done
 
85454
     exit 1"
 
85455
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:317"
 
85456
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
85457
     # in the normal case.  POSIX doesn't require fractional times to
 
85458
     # work, so this might not work.
 
85459
     sleep 0.1
 
85460
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
85461
     # Then wait up to 10 seconds.
 
85462
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85463
       sleep 1
 
85464
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
85465
     done
 
85466
     exit 1
 
85467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85468
at_status=$? at_failed=false
 
85469
$at_check_filter
 
85470
echo stderr:; cat "$at_stderr"
 
85471
echo stdout:; cat "$at_stdout"
 
85472
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:317"
 
85473
if $at_failed; then :
 
85474
  kill `cat savepid`
 
85475
fi
 
85476
$at_failed && at_fn_log_failure
 
85477
$at_traceon; }
 
85478
 
 
85479
     set +x
 
85480
  $at_times_p && times >"$at_times_file"
 
85481
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
85482
read at_status <"$at_status_file"
 
85483
#AT_STOP_938
 
85484
#AT_START_939
 
85485
at_fn_group_banner 939 'ovsdb-idl.at:365' \
 
85486
  "self-linking idl, sets - C" "                     " 64
 
85487
at_xfail=no
 
85488
(
 
85489
  $as_echo "939. $at_setup_line: testing $at_desc ..."
 
85490
  $at_traceon
 
85491
 
 
85492
 
 
85493
   { set +x
 
85494
$as_echo "$at_srcdir/ovsdb-idl.at:365: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
85495
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:365"
 
85496
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
85497
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85498
at_status=$? at_failed=false
 
85499
$at_check_filter
 
85500
echo stderr:; cat "$at_stderr"
 
85501
echo stdout:; tee stdout <"$at_stdout"
 
85502
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85503
$at_failed && at_fn_log_failure
 
85504
$at_traceon; }
 
85505
 
 
85506
   { set +x
 
85507
$as_echo "$at_srcdir/ovsdb-idl.at:365: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
85508
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:365"
 
85509
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
85510
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85511
at_status=$? at_failed=false
 
85512
$at_check_filter
 
85513
echo stderr:; cat "$at_stderr"
 
85514
echo stdout:; cat "$at_stdout"
 
85515
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85516
$at_failed && at_fn_log_failure
 
85517
$at_traceon; }
 
85518
 
 
85519
 
 
85520
   { set +x
 
85521
$as_echo "$at_srcdir/ovsdb-idl.at:365: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '[\"idltest\",
 
85522
      {\"op\": \"insert\",
 
85523
       \"table\": \"link1\",
 
85524
       \"row\": {\"i\": 0, \"k\": [\"named-uuid\", \"i0\"], \"ka\": [\"set\", [[\"named-uuid\", \"i0\"]]]},
 
85525
       \"uuid-name\": \"i0\"},
 
85526
      {\"op\": \"insert\",
 
85527
       \"table\": \"link1\",
 
85528
       \"row\": {\"i\": 1, \"k\": [\"named-uuid\", \"i0\"], \"ka\": [\"set\", [[\"named-uuid\", \"i1\"]]]},
 
85529
       \"uuid-name\": \"i1\"},
 
85530
      {\"op\": \"insert\",
 
85531
       \"table\": \"link1\",
 
85532
       \"row\": {\"i\": 2, \"k\": [\"named-uuid\", \"i0\"], \"ka\": [\"set\", [[\"named-uuid\", \"i2\"]]]},
 
85533
       \"uuid-name\": \"i2\"},
 
85534
      {\"op\": \"insert\",
 
85535
       \"table\": \"link1\",
 
85536
       \"row\": {\"i\": 3, \"k\": [\"named-uuid\", \"i0\"], \"ka\": [\"set\", [[\"named-uuid\", \"i3\"]]]},
 
85537
       \"uuid-name\": \"i3\"}]' \\
 
85538
    '[\"idltest\",
 
85539
      {\"op\": \"update\",
 
85540
       \"table\": \"link1\",
 
85541
       \"where\": [],
 
85542
       \"row\": {\"ka\": [\"set\", [[\"uuid\", \"#0#\"], [\"uuid\", \"#1#\"], [\"uuid\", \"#2#\"], [\"uuid\", \"#3#\"]]]}}]' \\
 
85543
    '[\"idltest\",
 
85544
      {\"op\": \"update\",
 
85545
       \"table\": \"link1\",
 
85546
       \"where\": [[\"i\", \"==\", 2]],
 
85547
       \"row\": {\"ka\": [\"set\", [[\"uuid\", \"#0#\"], [\"uuid\", \"88702e78-845b-4a6e-ad08-cf68922ae84a\"], [\"uuid\", \"#2#\"]]]}}]' \\
 
85548
    '+[\"idltest\",
 
85549
      {\"op\": \"delete\",
 
85550
       \"table\": \"link1\",
 
85551
       \"where\": []}]'"
 
85552
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:365"
 
85553
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '["idltest",
 
85554
      {"op": "insert",
 
85555
       "table": "link1",
 
85556
       "row": {"i": 0, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i0"]]]},
 
85557
       "uuid-name": "i0"},
 
85558
      {"op": "insert",
 
85559
       "table": "link1",
 
85560
       "row": {"i": 1, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i1"]]]},
 
85561
       "uuid-name": "i1"},
 
85562
      {"op": "insert",
 
85563
       "table": "link1",
 
85564
       "row": {"i": 2, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i2"]]]},
 
85565
       "uuid-name": "i2"},
 
85566
      {"op": "insert",
 
85567
       "table": "link1",
 
85568
       "row": {"i": 3, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i3"]]]},
 
85569
       "uuid-name": "i3"}]' \
 
85570
    '["idltest",
 
85571
      {"op": "update",
 
85572
       "table": "link1",
 
85573
       "where": [],
 
85574
       "row": {"ka": ["set", [["uuid", "#0#"], ["uuid", "#1#"], ["uuid", "#2#"], ["uuid", "#3#"]]]}}]' \
 
85575
    '["idltest",
 
85576
      {"op": "update",
 
85577
       "table": "link1",
 
85578
       "where": [["i", "==", 2]],
 
85579
       "row": {"ka": ["set", [["uuid", "#0#"], ["uuid", "88702e78-845b-4a6e-ad08-cf68922ae84a"], ["uuid", "#2#"]]]}}]' \
 
85580
    '+["idltest",
 
85581
      {"op": "delete",
 
85582
       "table": "link1",
 
85583
       "where": []}]'
 
85584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85585
at_status=$? at_failed=false
 
85586
$at_check_filter
 
85587
echo stderr:; cat "$at_stderr"
 
85588
echo stdout:; tee stdout <"$at_stdout"
 
85589
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85590
if $at_failed; then :
 
85591
  kill `cat pid`
 
85592
fi
 
85593
$at_failed && at_fn_log_failure
 
85594
$at_traceon; }
 
85595
 
 
85596
   { set +x
 
85597
$as_echo "$at_srcdir/ovsdb-idl.at:365: sort stdout | perl \$srcdir/uuidfilt.pl"
 
85598
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:365"
 
85599
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
85600
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85601
at_status=$? at_failed=false
 
85602
$at_check_filter
 
85603
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
85604
echo >>"$at_stdout"; $as_echo "000: empty
 
85605
001: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]}
 
85606
002: i=0 k=0 ka=[0] l2= uuid=<0>
 
85607
002: i=1 k=0 ka=[1] l2= uuid=<1>
 
85608
002: i=2 k=0 ka=[2] l2= uuid=<2>
 
85609
002: i=3 k=0 ka=[3] l2= uuid=<3>
 
85610
003: {\"error\":null,\"result\":[{\"count\":4}]}
 
85611
004: i=0 k=0 ka=[0 1 2 3] l2= uuid=<0>
 
85612
004: i=1 k=0 ka=[0 1 2 3] l2= uuid=<1>
 
85613
004: i=2 k=0 ka=[0 1 2 3] l2= uuid=<2>
 
85614
004: i=3 k=0 ka=[0 1 2 3] l2= uuid=<3>
 
85615
005: {\"error\":null,\"result\":[{\"count\":1},{\"details\":\"Table link1 column ka row <2> references nonexistent row <4> in table link1.\",\"error\":\"referential integrity violation\"}]}
 
85616
006: {\"error\":null,\"result\":[{\"count\":4}]}
 
85617
007: empty
 
85618
008: done
 
85619
" | \
 
85620
  $at_diff - "$at_stdout" || at_failed=:
 
85621
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85622
if $at_failed; then :
 
85623
  kill `cat pid`
 
85624
fi
 
85625
$at_failed && at_fn_log_failure
 
85626
$at_traceon; }
 
85627
 
 
85628
   cp pid savepid
 
85629
   { set +x
 
85630
$as_echo "$at_srcdir/ovsdb-idl.at:365: ovs-appctl -t \$PWD/unixctl -e exit"
 
85631
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:365"
 
85632
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
85633
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85634
at_status=$? at_failed=false
 
85635
$at_check_filter
 
85636
echo stderr:; cat "$at_stderr"
 
85637
echo stdout:; cat "$at_stdout"
 
85638
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85639
$at_failed && at_fn_log_failure
 
85640
$at_traceon; }
 
85641
 
 
85642
   { set +x
 
85643
$as_echo "$at_srcdir/ovsdb-idl.at:365: # First try a quick sleep, so that the test completes very quickly
 
85644
     # in the normal case.  POSIX doesn't require fractional times to
 
85645
     # work, so this might not work.
 
85646
     sleep 0.1
 
85647
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85648
     # Then wait up to 10 seconds.
 
85649
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85650
       sleep 1
 
85651
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85652
     done
 
85653
     exit 1"
 
85654
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:365"
 
85655
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
85656
     # in the normal case.  POSIX doesn't require fractional times to
 
85657
     # work, so this might not work.
 
85658
     sleep 0.1
 
85659
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
85660
     # Then wait up to 10 seconds.
 
85661
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85662
       sleep 1
 
85663
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
85664
     done
 
85665
     exit 1
 
85666
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85667
at_status=$? at_failed=false
 
85668
$at_check_filter
 
85669
echo stderr:; cat "$at_stderr"
 
85670
echo stdout:; cat "$at_stdout"
 
85671
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85672
if $at_failed; then :
 
85673
  kill `cat savepid`
 
85674
fi
 
85675
$at_failed && at_fn_log_failure
 
85676
$at_traceon; }
 
85677
 
 
85678
     set +x
 
85679
  $at_times_p && times >"$at_times_file"
 
85680
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
85681
read at_status <"$at_status_file"
 
85682
#AT_STOP_939
 
85683
#AT_START_940
 
85684
at_fn_group_banner 940 'ovsdb-idl.at:365' \
 
85685
  "self-linking idl, sets - Python" "                " 64
 
85686
at_xfail=no
 
85687
(
 
85688
  $as_echo "940. $at_setup_line: testing $at_desc ..."
 
85689
  $at_traceon
 
85690
 
 
85691
   $as_echo "ovsdb-idl.at:365" >"$at_check_line_file"
 
85692
(test $HAVE_PYTHON = no) \
 
85693
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:365"
 
85694
 
 
85695
   { set +x
 
85696
$as_echo "$at_srcdir/ovsdb-idl.at:365: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
85697
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:365"
 
85698
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
85699
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85700
at_status=$? at_failed=false
 
85701
$at_check_filter
 
85702
echo stderr:; cat "$at_stderr"
 
85703
echo stdout:; tee stdout <"$at_stdout"
 
85704
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85705
$at_failed && at_fn_log_failure
 
85706
$at_traceon; }
 
85707
 
 
85708
   { set +x
 
85709
$as_echo "$at_srcdir/ovsdb-idl.at:365: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
85710
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:365"
 
85711
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
85712
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85713
at_status=$? at_failed=false
 
85714
$at_check_filter
 
85715
echo stderr:; cat "$at_stderr"
 
85716
echo stdout:; cat "$at_stdout"
 
85717
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85718
$at_failed && at_fn_log_failure
 
85719
$at_traceon; }
 
85720
 
 
85721
 
 
85722
   { set +x
 
85723
$as_echo "$at_srcdir/ovsdb-idl.at:365: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket '[\"idltest\",
 
85724
      {\"op\": \"insert\",
 
85725
       \"table\": \"link1\",
 
85726
       \"row\": {\"i\": 0, \"k\": [\"named-uuid\", \"i0\"], \"ka\": [\"set\", [[\"named-uuid\", \"i0\"]]]},
 
85727
       \"uuid-name\": \"i0\"},
 
85728
      {\"op\": \"insert\",
 
85729
       \"table\": \"link1\",
 
85730
       \"row\": {\"i\": 1, \"k\": [\"named-uuid\", \"i0\"], \"ka\": [\"set\", [[\"named-uuid\", \"i1\"]]]},
 
85731
       \"uuid-name\": \"i1\"},
 
85732
      {\"op\": \"insert\",
 
85733
       \"table\": \"link1\",
 
85734
       \"row\": {\"i\": 2, \"k\": [\"named-uuid\", \"i0\"], \"ka\": [\"set\", [[\"named-uuid\", \"i2\"]]]},
 
85735
       \"uuid-name\": \"i2\"},
 
85736
      {\"op\": \"insert\",
 
85737
       \"table\": \"link1\",
 
85738
       \"row\": {\"i\": 3, \"k\": [\"named-uuid\", \"i0\"], \"ka\": [\"set\", [[\"named-uuid\", \"i3\"]]]},
 
85739
       \"uuid-name\": \"i3\"}]' \\
 
85740
    '[\"idltest\",
 
85741
      {\"op\": \"update\",
 
85742
       \"table\": \"link1\",
 
85743
       \"where\": [],
 
85744
       \"row\": {\"ka\": [\"set\", [[\"uuid\", \"#0#\"], [\"uuid\", \"#1#\"], [\"uuid\", \"#2#\"], [\"uuid\", \"#3#\"]]]}}]' \\
 
85745
    '[\"idltest\",
 
85746
      {\"op\": \"update\",
 
85747
       \"table\": \"link1\",
 
85748
       \"where\": [[\"i\", \"==\", 2]],
 
85749
       \"row\": {\"ka\": [\"set\", [[\"uuid\", \"#0#\"], [\"uuid\", \"88702e78-845b-4a6e-ad08-cf68922ae84a\"], [\"uuid\", \"#2#\"]]]}}]' \\
 
85750
    '+[\"idltest\",
 
85751
      {\"op\": \"delete\",
 
85752
       \"table\": \"link1\",
 
85753
       \"where\": []}]'"
 
85754
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:365"
 
85755
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket '["idltest",
 
85756
      {"op": "insert",
 
85757
       "table": "link1",
 
85758
       "row": {"i": 0, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i0"]]]},
 
85759
       "uuid-name": "i0"},
 
85760
      {"op": "insert",
 
85761
       "table": "link1",
 
85762
       "row": {"i": 1, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i1"]]]},
 
85763
       "uuid-name": "i1"},
 
85764
      {"op": "insert",
 
85765
       "table": "link1",
 
85766
       "row": {"i": 2, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i2"]]]},
 
85767
       "uuid-name": "i2"},
 
85768
      {"op": "insert",
 
85769
       "table": "link1",
 
85770
       "row": {"i": 3, "k": ["named-uuid", "i0"], "ka": ["set", [["named-uuid", "i3"]]]},
 
85771
       "uuid-name": "i3"}]' \
 
85772
    '["idltest",
 
85773
      {"op": "update",
 
85774
       "table": "link1",
 
85775
       "where": [],
 
85776
       "row": {"ka": ["set", [["uuid", "#0#"], ["uuid", "#1#"], ["uuid", "#2#"], ["uuid", "#3#"]]]}}]' \
 
85777
    '["idltest",
 
85778
      {"op": "update",
 
85779
       "table": "link1",
 
85780
       "where": [["i", "==", 2]],
 
85781
       "row": {"ka": ["set", [["uuid", "#0#"], ["uuid", "88702e78-845b-4a6e-ad08-cf68922ae84a"], ["uuid", "#2#"]]]}}]' \
 
85782
    '+["idltest",
 
85783
      {"op": "delete",
 
85784
       "table": "link1",
 
85785
       "where": []}]'
 
85786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85787
at_status=$? at_failed=false
 
85788
$at_check_filter
 
85789
echo stderr:; cat "$at_stderr"
 
85790
echo stdout:; tee stdout <"$at_stdout"
 
85791
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85792
if $at_failed; then :
 
85793
  kill `cat pid`
 
85794
fi
 
85795
$at_failed && at_fn_log_failure
 
85796
$at_traceon; }
 
85797
 
 
85798
   { set +x
 
85799
$as_echo "$at_srcdir/ovsdb-idl.at:365: sort stdout | perl \$srcdir/uuidfilt.pl"
 
85800
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:365"
 
85801
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
85802
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85803
at_status=$? at_failed=false
 
85804
$at_check_filter
 
85805
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
85806
echo >>"$at_stdout"; $as_echo "000: empty
 
85807
001: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]},{\"uuid\":[\"uuid\",\"<2>\"]},{\"uuid\":[\"uuid\",\"<3>\"]}]}
 
85808
002: i=0 k=0 ka=[0] l2= uuid=<0>
 
85809
002: i=1 k=0 ka=[1] l2= uuid=<1>
 
85810
002: i=2 k=0 ka=[2] l2= uuid=<2>
 
85811
002: i=3 k=0 ka=[3] l2= uuid=<3>
 
85812
003: {\"error\":null,\"result\":[{\"count\":4}]}
 
85813
004: i=0 k=0 ka=[0 1 2 3] l2= uuid=<0>
 
85814
004: i=1 k=0 ka=[0 1 2 3] l2= uuid=<1>
 
85815
004: i=2 k=0 ka=[0 1 2 3] l2= uuid=<2>
 
85816
004: i=3 k=0 ka=[0 1 2 3] l2= uuid=<3>
 
85817
005: {\"error\":null,\"result\":[{\"count\":1},{\"details\":\"Table link1 column ka row <2> references nonexistent row <4> in table link1.\",\"error\":\"referential integrity violation\"}]}
 
85818
006: {\"error\":null,\"result\":[{\"count\":4}]}
 
85819
007: empty
 
85820
008: done
 
85821
" | \
 
85822
  $at_diff - "$at_stdout" || at_failed=:
 
85823
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85824
if $at_failed; then :
 
85825
  kill `cat pid`
 
85826
fi
 
85827
$at_failed && at_fn_log_failure
 
85828
$at_traceon; }
 
85829
 
 
85830
   cp pid savepid
 
85831
   { set +x
 
85832
$as_echo "$at_srcdir/ovsdb-idl.at:365: ovs-appctl -t \$PWD/unixctl -e exit"
 
85833
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:365"
 
85834
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
85835
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85836
at_status=$? at_failed=false
 
85837
$at_check_filter
 
85838
echo stderr:; cat "$at_stderr"
 
85839
echo stdout:; cat "$at_stdout"
 
85840
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85841
$at_failed && at_fn_log_failure
 
85842
$at_traceon; }
 
85843
 
 
85844
   { set +x
 
85845
$as_echo "$at_srcdir/ovsdb-idl.at:365: # First try a quick sleep, so that the test completes very quickly
 
85846
     # in the normal case.  POSIX doesn't require fractional times to
 
85847
     # work, so this might not work.
 
85848
     sleep 0.1
 
85849
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85850
     # Then wait up to 10 seconds.
 
85851
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85852
       sleep 1
 
85853
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85854
     done
 
85855
     exit 1"
 
85856
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:365"
 
85857
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
85858
     # in the normal case.  POSIX doesn't require fractional times to
 
85859
     # work, so this might not work.
 
85860
     sleep 0.1
 
85861
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
85862
     # Then wait up to 10 seconds.
 
85863
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85864
       sleep 1
 
85865
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
85866
     done
 
85867
     exit 1
 
85868
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85869
at_status=$? at_failed=false
 
85870
$at_check_filter
 
85871
echo stderr:; cat "$at_stderr"
 
85872
echo stdout:; cat "$at_stdout"
 
85873
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:365"
 
85874
if $at_failed; then :
 
85875
  kill `cat savepid`
 
85876
fi
 
85877
$at_failed && at_fn_log_failure
 
85878
$at_traceon; }
 
85879
 
 
85880
     set +x
 
85881
  $at_times_p && times >"$at_times_file"
 
85882
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
85883
read at_status <"$at_status_file"
 
85884
#AT_STOP_940
 
85885
#AT_START_941
 
85886
at_fn_group_banner 941 'ovsdb-idl.at:415' \
 
85887
  "external-linking idl, consistent ops - C" "       " 64
 
85888
at_xfail=no
 
85889
(
 
85890
  $as_echo "941. $at_setup_line: testing $at_desc ..."
 
85891
  $at_traceon
 
85892
 
 
85893
 
 
85894
   { set +x
 
85895
$as_echo "$at_srcdir/ovsdb-idl.at:415: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
85896
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:415"
 
85897
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
85898
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85899
at_status=$? at_failed=false
 
85900
$at_check_filter
 
85901
echo stderr:; cat "$at_stderr"
 
85902
echo stdout:; tee stdout <"$at_stdout"
 
85903
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
85904
$at_failed && at_fn_log_failure
 
85905
$at_traceon; }
 
85906
 
 
85907
   { set +x
 
85908
$as_echo "$at_srcdir/ovsdb-idl.at:415: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
85909
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:415"
 
85910
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
85911
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85912
at_status=$? at_failed=false
 
85913
$at_check_filter
 
85914
echo stderr:; cat "$at_stderr"
 
85915
echo stdout:; cat "$at_stdout"
 
85916
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
85917
$at_failed && at_fn_log_failure
 
85918
$at_traceon; }
 
85919
 
 
85920
 
 
85921
   { set +x
 
85922
$as_echo "$at_srcdir/ovsdb-idl.at:415: test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '[\"idltest\",
 
85923
      {\"op\": \"insert\",
 
85924
       \"table\": \"link2\",
 
85925
       \"row\": {\"i\": 0},
 
85926
       \"uuid-name\": \"row0\"},
 
85927
      {\"op\": \"insert\",
 
85928
       \"table\": \"link1\",
 
85929
       \"row\": {\"i\": 1, \"k\": [\"named-uuid\", \"row1\"], \"l2\": [\"set\", [[\"named-uuid\", \"row0\"]]]},
 
85930
       \"uuid-name\": \"row1\"}]'"
 
85931
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:415"
 
85932
( $at_check_trace; test-ovsdb '-vPATTERN:console:test-ovsdb|%c|%m' -vjsonrpc -t10 idl unix:socket '["idltest",
 
85933
      {"op": "insert",
 
85934
       "table": "link2",
 
85935
       "row": {"i": 0},
 
85936
       "uuid-name": "row0"},
 
85937
      {"op": "insert",
 
85938
       "table": "link1",
 
85939
       "row": {"i": 1, "k": ["named-uuid", "row1"], "l2": ["set", [["named-uuid", "row0"]]]},
 
85940
       "uuid-name": "row1"}]'
 
85941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85942
at_status=$? at_failed=false
 
85943
$at_check_filter
 
85944
echo stderr:; cat "$at_stderr"
 
85945
echo stdout:; tee stdout <"$at_stdout"
 
85946
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
85947
if $at_failed; then :
 
85948
  kill `cat pid`
 
85949
fi
 
85950
$at_failed && at_fn_log_failure
 
85951
$at_traceon; }
 
85952
 
 
85953
   { set +x
 
85954
$as_echo "$at_srcdir/ovsdb-idl.at:415: sort stdout | perl \$srcdir/uuidfilt.pl"
 
85955
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:415"
 
85956
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
85957
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85958
at_status=$? at_failed=false
 
85959
$at_check_filter
 
85960
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
85961
echo >>"$at_stdout"; $as_echo "000: empty
 
85962
001: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]}
 
85963
002: i=0 l1= uuid=<0>
 
85964
002: i=1 k=1 ka=[] l2=0 uuid=<1>
 
85965
003: done
 
85966
" | \
 
85967
  $at_diff - "$at_stdout" || at_failed=:
 
85968
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
85969
if $at_failed; then :
 
85970
  kill `cat pid`
 
85971
fi
 
85972
$at_failed && at_fn_log_failure
 
85973
$at_traceon; }
 
85974
 
 
85975
   cp pid savepid
 
85976
   { set +x
 
85977
$as_echo "$at_srcdir/ovsdb-idl.at:415: ovs-appctl -t \$PWD/unixctl -e exit"
 
85978
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:415"
 
85979
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
85980
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
85981
at_status=$? at_failed=false
 
85982
$at_check_filter
 
85983
echo stderr:; cat "$at_stderr"
 
85984
echo stdout:; cat "$at_stdout"
 
85985
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
85986
$at_failed && at_fn_log_failure
 
85987
$at_traceon; }
 
85988
 
 
85989
   { set +x
 
85990
$as_echo "$at_srcdir/ovsdb-idl.at:415: # First try a quick sleep, so that the test completes very quickly
 
85991
     # in the normal case.  POSIX doesn't require fractional times to
 
85992
     # work, so this might not work.
 
85993
     sleep 0.1
 
85994
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85995
     # Then wait up to 10 seconds.
 
85996
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
85997
       sleep 1
 
85998
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
85999
     done
 
86000
     exit 1"
 
86001
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:415"
 
86002
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86003
     # in the normal case.  POSIX doesn't require fractional times to
 
86004
     # work, so this might not work.
 
86005
     sleep 0.1
 
86006
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86007
     # Then wait up to 10 seconds.
 
86008
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86009
       sleep 1
 
86010
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86011
     done
 
86012
     exit 1
 
86013
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86014
at_status=$? at_failed=false
 
86015
$at_check_filter
 
86016
echo stderr:; cat "$at_stderr"
 
86017
echo stdout:; cat "$at_stdout"
 
86018
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
86019
if $at_failed; then :
 
86020
  kill `cat savepid`
 
86021
fi
 
86022
$at_failed && at_fn_log_failure
 
86023
$at_traceon; }
 
86024
 
 
86025
     set +x
 
86026
  $at_times_p && times >"$at_times_file"
 
86027
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
86028
read at_status <"$at_status_file"
 
86029
#AT_STOP_941
 
86030
#AT_START_942
 
86031
at_fn_group_banner 942 'ovsdb-idl.at:415' \
 
86032
  "external-linking idl, consistent ops - Python" "  " 64
 
86033
at_xfail=no
 
86034
(
 
86035
  $as_echo "942. $at_setup_line: testing $at_desc ..."
 
86036
  $at_traceon
 
86037
 
 
86038
   $as_echo "ovsdb-idl.at:415" >"$at_check_line_file"
 
86039
(test $HAVE_PYTHON = no) \
 
86040
  && at_fn_check_skip 77 "$at_srcdir/ovsdb-idl.at:415"
 
86041
 
 
86042
   { set +x
 
86043
$as_echo "$at_srcdir/ovsdb-idl.at:415: ovsdb-tool create db \$abs_srcdir/idltest.ovsschema"
 
86044
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_srcdir/idltest.ovsschema" "ovsdb-idl.at:415"
 
86045
( $at_check_trace; ovsdb-tool create db $abs_srcdir/idltest.ovsschema
 
86046
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86047
at_status=$? at_failed=false
 
86048
$at_check_filter
 
86049
echo stderr:; cat "$at_stderr"
 
86050
echo stdout:; tee stdout <"$at_stdout"
 
86051
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
86052
$at_failed && at_fn_log_failure
 
86053
$at_traceon; }
 
86054
 
 
86055
   { set +x
 
86056
$as_echo "$at_srcdir/ovsdb-idl.at:415: ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db"
 
86057
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:415"
 
86058
( $at_check_trace; ovsdb-server '-vPATTERN:console:ovsdb-server|%c|%m' --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db
 
86059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86060
at_status=$? at_failed=false
 
86061
$at_check_filter
 
86062
echo stderr:; cat "$at_stderr"
 
86063
echo stdout:; cat "$at_stdout"
 
86064
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
86065
$at_failed && at_fn_log_failure
 
86066
$at_traceon; }
 
86067
 
 
86068
 
 
86069
   { set +x
 
86070
$as_echo "$at_srcdir/ovsdb-idl.at:415: \$PYTHON \$srcdir/test-ovsdb.py  -t10 idl \$srcdir/idltest.ovsschema unix:socket '[\"idltest\",
 
86071
      {\"op\": \"insert\",
 
86072
       \"table\": \"link2\",
 
86073
       \"row\": {\"i\": 0},
 
86074
       \"uuid-name\": \"row0\"},
 
86075
      {\"op\": \"insert\",
 
86076
       \"table\": \"link1\",
 
86077
       \"row\": {\"i\": 1, \"k\": [\"named-uuid\", \"row1\"], \"l2\": [\"set\", [[\"named-uuid\", \"row0\"]]]},
 
86078
       \"uuid-name\": \"row1\"}]'"
 
86079
at_fn_check_prepare_notrace 'an embedded newline' "ovsdb-idl.at:415"
 
86080
( $at_check_trace; $PYTHON $srcdir/test-ovsdb.py  -t10 idl $srcdir/idltest.ovsschema unix:socket '["idltest",
 
86081
      {"op": "insert",
 
86082
       "table": "link2",
 
86083
       "row": {"i": 0},
 
86084
       "uuid-name": "row0"},
 
86085
      {"op": "insert",
 
86086
       "table": "link1",
 
86087
       "row": {"i": 1, "k": ["named-uuid", "row1"], "l2": ["set", [["named-uuid", "row0"]]]},
 
86088
       "uuid-name": "row1"}]'
 
86089
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86090
at_status=$? at_failed=false
 
86091
$at_check_filter
 
86092
echo stderr:; cat "$at_stderr"
 
86093
echo stdout:; tee stdout <"$at_stdout"
 
86094
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
86095
if $at_failed; then :
 
86096
  kill `cat pid`
 
86097
fi
 
86098
$at_failed && at_fn_log_failure
 
86099
$at_traceon; }
 
86100
 
 
86101
   { set +x
 
86102
$as_echo "$at_srcdir/ovsdb-idl.at:415: sort stdout | perl \$srcdir/uuidfilt.pl"
 
86103
at_fn_check_prepare_notrace 'a shell pipeline' "ovsdb-idl.at:415"
 
86104
( $at_check_trace; sort stdout | perl $srcdir/uuidfilt.pl
 
86105
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86106
at_status=$? at_failed=false
 
86107
$at_check_filter
 
86108
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86109
echo >>"$at_stdout"; $as_echo "000: empty
 
86110
001: {\"error\":null,\"result\":[{\"uuid\":[\"uuid\",\"<0>\"]},{\"uuid\":[\"uuid\",\"<1>\"]}]}
 
86111
002: i=0 l1= uuid=<0>
 
86112
002: i=1 k=1 ka=[] l2=0 uuid=<1>
 
86113
003: done
 
86114
" | \
 
86115
  $at_diff - "$at_stdout" || at_failed=:
 
86116
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
86117
if $at_failed; then :
 
86118
  kill `cat pid`
 
86119
fi
 
86120
$at_failed && at_fn_log_failure
 
86121
$at_traceon; }
 
86122
 
 
86123
   cp pid savepid
 
86124
   { set +x
 
86125
$as_echo "$at_srcdir/ovsdb-idl.at:415: ovs-appctl -t \$PWD/unixctl -e exit"
 
86126
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovsdb-idl.at:415"
 
86127
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86129
at_status=$? at_failed=false
 
86130
$at_check_filter
 
86131
echo stderr:; cat "$at_stderr"
 
86132
echo stdout:; cat "$at_stdout"
 
86133
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
86134
$at_failed && at_fn_log_failure
 
86135
$at_traceon; }
 
86136
 
 
86137
   { set +x
 
86138
$as_echo "$at_srcdir/ovsdb-idl.at:415: # First try a quick sleep, so that the test completes very quickly
 
86139
     # in the normal case.  POSIX doesn't require fractional times to
 
86140
     # work, so this might not work.
 
86141
     sleep 0.1
 
86142
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86143
     # Then wait up to 10 seconds.
 
86144
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86145
       sleep 1
 
86146
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86147
     done
 
86148
     exit 1"
 
86149
at_fn_check_prepare_notrace 'a `...` command substitution' "ovsdb-idl.at:415"
 
86150
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86151
     # in the normal case.  POSIX doesn't require fractional times to
 
86152
     # work, so this might not work.
 
86153
     sleep 0.1
 
86154
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86155
     # Then wait up to 10 seconds.
 
86156
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86157
       sleep 1
 
86158
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86159
     done
 
86160
     exit 1
 
86161
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86162
at_status=$? at_failed=false
 
86163
$at_check_filter
 
86164
echo stderr:; cat "$at_stderr"
 
86165
echo stdout:; cat "$at_stdout"
 
86166
at_fn_check_status 0 $at_status "$at_srcdir/ovsdb-idl.at:415"
 
86167
if $at_failed; then :
 
86168
  kill `cat savepid`
 
86169
fi
 
86170
$at_failed && at_fn_log_failure
 
86171
$at_traceon; }
 
86172
 
 
86173
     set +x
 
86174
  $at_times_p && times >"$at_times_file"
 
86175
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
86176
read at_status <"$at_status_file"
 
86177
#AT_STOP_942
 
86178
#AT_START_943
 
86179
at_fn_group_banner 943 'ovs-vsctl.at:145' \
 
86180
  "add-br a" "                                       " 65
 
86181
at_xfail=no
 
86182
(
 
86183
  $as_echo "943. $at_setup_line: testing $at_desc ..."
 
86184
  $at_traceon
 
86185
 
 
86186
 
 
86187
{ set +x
 
86188
$as_echo "$at_srcdir/ovs-vsctl.at:147: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
86189
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:147"
 
86190
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
86191
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86192
at_status=$? at_failed=false
 
86193
$at_check_filter
 
86194
echo stderr:; cat "$at_stderr"
 
86195
echo stdout:; tee stdout <"$at_stdout"
 
86196
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:147"
 
86197
$at_failed && at_fn_log_failure
 
86198
$at_traceon; }
 
86199
 
 
86200
   { set +x
 
86201
$as_echo "$at_srcdir/ovs-vsctl.at:147: ovsdb-tool transact db \\
 
86202
        '[\"Open_vSwitch\",
 
86203
          {\"op\": \"insert\",
 
86204
           \"table\": \"Open_vSwitch\",
 
86205
           \"row\": {}}]'"
 
86206
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:147"
 
86207
( $at_check_trace; ovsdb-tool transact db \
 
86208
        '["Open_vSwitch",
 
86209
          {"op": "insert",
 
86210
           "table": "Open_vSwitch",
 
86211
           "row": {}}]'
 
86212
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86213
at_status=$? at_failed=false
 
86214
$at_check_filter
 
86215
echo stderr:; cat "$at_stderr"
 
86216
echo stdout:; cat "$at_stdout"
 
86217
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:147"
 
86218
$at_failed && at_fn_log_failure
 
86219
$at_traceon; }
 
86220
 
 
86221
   { set +x
 
86222
$as_echo "$at_srcdir/ovs-vsctl.at:147: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
86223
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:147"
 
86224
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
86225
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86226
at_status=$? at_failed=false
 
86227
$at_check_filter
 
86228
echo stderr:; cat "$at_stderr"
 
86229
echo stdout:; cat "$at_stdout"
 
86230
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:147"
 
86231
$at_failed && at_fn_log_failure
 
86232
$at_traceon; }
 
86233
 
 
86234
{ set +x
 
86235
$as_echo "$at_srcdir/ovs-vsctl.at:148: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
86236
"
 
86237
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:148"
 
86238
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
86239
 
 
86240
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86241
at_status=$? at_failed=false
 
86242
$at_check_filter
 
86243
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86244
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
86245
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:148"
 
86246
if $at_failed; then :
 
86247
  cp pid savepid
 
86248
   { set +x
 
86249
$as_echo "$at_srcdir/ovs-vsctl.at:148: ovs-appctl -t \$PWD/unixctl -e exit"
 
86250
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:148"
 
86251
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86252
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86253
at_status=$? at_failed=false
 
86254
$at_check_filter
 
86255
echo stderr:; cat "$at_stderr"
 
86256
echo stdout:; cat "$at_stdout"
 
86257
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:148"
 
86258
$at_failed && at_fn_log_failure
 
86259
$at_traceon; }
 
86260
 
 
86261
   { set +x
 
86262
$as_echo "$at_srcdir/ovs-vsctl.at:148: # First try a quick sleep, so that the test completes very quickly
 
86263
     # in the normal case.  POSIX doesn't require fractional times to
 
86264
     # work, so this might not work.
 
86265
     sleep 0.1
 
86266
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86267
     # Then wait up to 10 seconds.
 
86268
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86269
       sleep 1
 
86270
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86271
     done
 
86272
     exit 1"
 
86273
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:148"
 
86274
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86275
     # in the normal case.  POSIX doesn't require fractional times to
 
86276
     # work, so this might not work.
 
86277
     sleep 0.1
 
86278
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86279
     # Then wait up to 10 seconds.
 
86280
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86281
       sleep 1
 
86282
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86283
     done
 
86284
     exit 1
 
86285
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86286
at_status=$? at_failed=false
 
86287
$at_check_filter
 
86288
echo stderr:; cat "$at_stderr"
 
86289
echo stdout:; cat "$at_stdout"
 
86290
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:148"
 
86291
if $at_failed; then :
 
86292
  kill `cat savepid`
 
86293
fi
 
86294
$at_failed && at_fn_log_failure
 
86295
$at_traceon; }
 
86296
 
 
86297
fi
 
86298
$at_failed && at_fn_log_failure
 
86299
$at_traceon; }
 
86300
 
 
86301
   { set +x
 
86302
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
86303
"
 
86304
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:149"
 
86305
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
86306
 
 
86307
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86308
at_status=$? at_failed=false
 
86309
$at_check_filter
 
86310
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86311
echo >>"$at_stdout"; $as_echo "a
 
86312
" | \
 
86313
  $at_diff - "$at_stdout" || at_failed=:
 
86314
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86315
if $at_failed; then :
 
86316
  cp pid savepid
 
86317
   { set +x
 
86318
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-appctl -t \$PWD/unixctl -e exit"
 
86319
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:149"
 
86320
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86321
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86322
at_status=$? at_failed=false
 
86323
$at_check_filter
 
86324
echo stderr:; cat "$at_stderr"
 
86325
echo stdout:; cat "$at_stdout"
 
86326
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86327
$at_failed && at_fn_log_failure
 
86328
$at_traceon; }
 
86329
 
 
86330
   { set +x
 
86331
$as_echo "$at_srcdir/ovs-vsctl.at:149: # First try a quick sleep, so that the test completes very quickly
 
86332
     # in the normal case.  POSIX doesn't require fractional times to
 
86333
     # work, so this might not work.
 
86334
     sleep 0.1
 
86335
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86336
     # Then wait up to 10 seconds.
 
86337
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86338
       sleep 1
 
86339
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86340
     done
 
86341
     exit 1"
 
86342
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:149"
 
86343
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86344
     # in the normal case.  POSIX doesn't require fractional times to
 
86345
     # work, so this might not work.
 
86346
     sleep 0.1
 
86347
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86348
     # Then wait up to 10 seconds.
 
86349
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86350
       sleep 1
 
86351
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86352
     done
 
86353
     exit 1
 
86354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86355
at_status=$? at_failed=false
 
86356
$at_check_filter
 
86357
echo stderr:; cat "$at_stderr"
 
86358
echo stdout:; cat "$at_stdout"
 
86359
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86360
if $at_failed; then :
 
86361
  kill `cat savepid`
 
86362
fi
 
86363
$at_failed && at_fn_log_failure
 
86364
$at_traceon; }
 
86365
 
 
86366
fi
 
86367
$at_failed && at_fn_log_failure
 
86368
$at_traceon; }
 
86369
 
 
86370
 
 
86371
      { set +x
 
86372
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
86373
"
 
86374
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:149"
 
86375
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
86376
 
 
86377
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86378
at_status=$? at_failed=false
 
86379
$at_check_filter
 
86380
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86381
echo >>"$at_stdout"; $as_echo "a
 
86382
" | \
 
86383
  $at_diff - "$at_stdout" || at_failed=:
 
86384
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86385
if $at_failed; then :
 
86386
  cp pid savepid
 
86387
   { set +x
 
86388
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-appctl -t \$PWD/unixctl -e exit"
 
86389
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:149"
 
86390
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86391
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86392
at_status=$? at_failed=false
 
86393
$at_check_filter
 
86394
echo stderr:; cat "$at_stderr"
 
86395
echo stdout:; cat "$at_stdout"
 
86396
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86397
$at_failed && at_fn_log_failure
 
86398
$at_traceon; }
 
86399
 
 
86400
   { set +x
 
86401
$as_echo "$at_srcdir/ovs-vsctl.at:149: # First try a quick sleep, so that the test completes very quickly
 
86402
     # in the normal case.  POSIX doesn't require fractional times to
 
86403
     # work, so this might not work.
 
86404
     sleep 0.1
 
86405
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86406
     # Then wait up to 10 seconds.
 
86407
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86408
       sleep 1
 
86409
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86410
     done
 
86411
     exit 1"
 
86412
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:149"
 
86413
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86414
     # in the normal case.  POSIX doesn't require fractional times to
 
86415
     # work, so this might not work.
 
86416
     sleep 0.1
 
86417
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86418
     # Then wait up to 10 seconds.
 
86419
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86420
       sleep 1
 
86421
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86422
     done
 
86423
     exit 1
 
86424
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86425
at_status=$? at_failed=false
 
86426
$at_check_filter
 
86427
echo stderr:; cat "$at_stderr"
 
86428
echo stdout:; cat "$at_stdout"
 
86429
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86430
if $at_failed; then :
 
86431
  kill `cat savepid`
 
86432
fi
 
86433
$at_failed && at_fn_log_failure
 
86434
$at_traceon; }
 
86435
 
 
86436
fi
 
86437
$at_failed && at_fn_log_failure
 
86438
$at_traceon; }
 
86439
 
 
86440
 
 
86441
         { set +x
 
86442
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
86443
"
 
86444
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:149"
 
86445
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
86446
 
 
86447
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86448
at_status=$? at_failed=false
 
86449
$at_check_filter
 
86450
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86451
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
86452
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86453
if $at_failed; then :
 
86454
  cp pid savepid
 
86455
   { set +x
 
86456
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-appctl -t \$PWD/unixctl -e exit"
 
86457
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:149"
 
86458
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86459
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86460
at_status=$? at_failed=false
 
86461
$at_check_filter
 
86462
echo stderr:; cat "$at_stderr"
 
86463
echo stdout:; cat "$at_stdout"
 
86464
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86465
$at_failed && at_fn_log_failure
 
86466
$at_traceon; }
 
86467
 
 
86468
   { set +x
 
86469
$as_echo "$at_srcdir/ovs-vsctl.at:149: # First try a quick sleep, so that the test completes very quickly
 
86470
     # in the normal case.  POSIX doesn't require fractional times to
 
86471
     # work, so this might not work.
 
86472
     sleep 0.1
 
86473
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86474
     # Then wait up to 10 seconds.
 
86475
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86476
       sleep 1
 
86477
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86478
     done
 
86479
     exit 1"
 
86480
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:149"
 
86481
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86482
     # in the normal case.  POSIX doesn't require fractional times to
 
86483
     # work, so this might not work.
 
86484
     sleep 0.1
 
86485
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86486
     # Then wait up to 10 seconds.
 
86487
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86488
       sleep 1
 
86489
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86490
     done
 
86491
     exit 1
 
86492
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86493
at_status=$? at_failed=false
 
86494
$at_check_filter
 
86495
echo stderr:; cat "$at_stderr"
 
86496
echo stdout:; cat "$at_stdout"
 
86497
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86498
if $at_failed; then :
 
86499
  kill `cat savepid`
 
86500
fi
 
86501
$at_failed && at_fn_log_failure
 
86502
$at_traceon; }
 
86503
 
 
86504
fi
 
86505
$at_failed && at_fn_log_failure
 
86506
$at_traceon; }
 
86507
 
 
86508
   { set +x
 
86509
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
86510
"
 
86511
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:149"
 
86512
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
86513
 
 
86514
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86515
at_status=$? at_failed=false
 
86516
$at_check_filter
 
86517
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86518
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
86519
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86520
if $at_failed; then :
 
86521
  cp pid savepid
 
86522
   { set +x
 
86523
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-appctl -t \$PWD/unixctl -e exit"
 
86524
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:149"
 
86525
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86526
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86527
at_status=$? at_failed=false
 
86528
$at_check_filter
 
86529
echo stderr:; cat "$at_stderr"
 
86530
echo stdout:; cat "$at_stdout"
 
86531
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86532
$at_failed && at_fn_log_failure
 
86533
$at_traceon; }
 
86534
 
 
86535
   { set +x
 
86536
$as_echo "$at_srcdir/ovs-vsctl.at:149: # First try a quick sleep, so that the test completes very quickly
 
86537
     # in the normal case.  POSIX doesn't require fractional times to
 
86538
     # work, so this might not work.
 
86539
     sleep 0.1
 
86540
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86541
     # Then wait up to 10 seconds.
 
86542
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86543
       sleep 1
 
86544
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86545
     done
 
86546
     exit 1"
 
86547
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:149"
 
86548
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86549
     # in the normal case.  POSIX doesn't require fractional times to
 
86550
     # work, so this might not work.
 
86551
     sleep 0.1
 
86552
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86553
     # Then wait up to 10 seconds.
 
86554
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86555
       sleep 1
 
86556
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86557
     done
 
86558
     exit 1
 
86559
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86560
at_status=$? at_failed=false
 
86561
$at_check_filter
 
86562
echo stderr:; cat "$at_stderr"
 
86563
echo stdout:; cat "$at_stdout"
 
86564
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86565
if $at_failed; then :
 
86566
  kill `cat savepid`
 
86567
fi
 
86568
$at_failed && at_fn_log_failure
 
86569
$at_traceon; }
 
86570
 
 
86571
fi
 
86572
$at_failed && at_fn_log_failure
 
86573
$at_traceon; }
 
86574
 
 
86575
 
 
86576
      { set +x
 
86577
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
86578
"
 
86579
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:149"
 
86580
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
86581
 
 
86582
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86583
at_status=$? at_failed=false
 
86584
$at_check_filter
 
86585
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86586
echo >>"$at_stdout"; $as_echo "a
 
86587
" | \
 
86588
  $at_diff - "$at_stdout" || at_failed=:
 
86589
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86590
if $at_failed; then :
 
86591
  cp pid savepid
 
86592
   { set +x
 
86593
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-appctl -t \$PWD/unixctl -e exit"
 
86594
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:149"
 
86595
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86596
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86597
at_status=$? at_failed=false
 
86598
$at_check_filter
 
86599
echo stderr:; cat "$at_stderr"
 
86600
echo stdout:; cat "$at_stdout"
 
86601
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86602
$at_failed && at_fn_log_failure
 
86603
$at_traceon; }
 
86604
 
 
86605
   { set +x
 
86606
$as_echo "$at_srcdir/ovs-vsctl.at:149: # First try a quick sleep, so that the test completes very quickly
 
86607
     # in the normal case.  POSIX doesn't require fractional times to
 
86608
     # work, so this might not work.
 
86609
     sleep 0.1
 
86610
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86611
     # Then wait up to 10 seconds.
 
86612
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86613
       sleep 1
 
86614
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86615
     done
 
86616
     exit 1"
 
86617
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:149"
 
86618
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86619
     # in the normal case.  POSIX doesn't require fractional times to
 
86620
     # work, so this might not work.
 
86621
     sleep 0.1
 
86622
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86623
     # Then wait up to 10 seconds.
 
86624
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86625
       sleep 1
 
86626
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86627
     done
 
86628
     exit 1
 
86629
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86630
at_status=$? at_failed=false
 
86631
$at_check_filter
 
86632
echo stderr:; cat "$at_stderr"
 
86633
echo stdout:; cat "$at_stdout"
 
86634
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86635
if $at_failed; then :
 
86636
  kill `cat savepid`
 
86637
fi
 
86638
$at_failed && at_fn_log_failure
 
86639
$at_traceon; }
 
86640
 
 
86641
fi
 
86642
$at_failed && at_fn_log_failure
 
86643
$at_traceon; }
 
86644
 
 
86645
 
 
86646
   # Check br-to-vlan, without --oneline.
 
86647
   { set +x
 
86648
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
86649
"
 
86650
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:149"
 
86651
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
86652
 
 
86653
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86654
at_status=$? at_failed=false
 
86655
$at_check_filter
 
86656
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86657
echo >>"$at_stdout"; $as_echo "0
 
86658
" | \
 
86659
  $at_diff - "$at_stdout" || at_failed=:
 
86660
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86661
if $at_failed; then :
 
86662
  cp pid savepid
 
86663
   { set +x
 
86664
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-appctl -t \$PWD/unixctl -e exit"
 
86665
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:149"
 
86666
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86667
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86668
at_status=$? at_failed=false
 
86669
$at_check_filter
 
86670
echo stderr:; cat "$at_stderr"
 
86671
echo stdout:; cat "$at_stdout"
 
86672
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86673
$at_failed && at_fn_log_failure
 
86674
$at_traceon; }
 
86675
 
 
86676
   { set +x
 
86677
$as_echo "$at_srcdir/ovs-vsctl.at:149: # First try a quick sleep, so that the test completes very quickly
 
86678
     # in the normal case.  POSIX doesn't require fractional times to
 
86679
     # work, so this might not work.
 
86680
     sleep 0.1
 
86681
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86682
     # Then wait up to 10 seconds.
 
86683
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86684
       sleep 1
 
86685
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86686
     done
 
86687
     exit 1"
 
86688
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:149"
 
86689
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86690
     # in the normal case.  POSIX doesn't require fractional times to
 
86691
     # work, so this might not work.
 
86692
     sleep 0.1
 
86693
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86694
     # Then wait up to 10 seconds.
 
86695
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86696
       sleep 1
 
86697
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86698
     done
 
86699
     exit 1
 
86700
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86701
at_status=$? at_failed=false
 
86702
$at_check_filter
 
86703
echo stderr:; cat "$at_stderr"
 
86704
echo stdout:; cat "$at_stdout"
 
86705
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86706
if $at_failed; then :
 
86707
  kill `cat savepid`
 
86708
fi
 
86709
$at_failed && at_fn_log_failure
 
86710
$at_traceon; }
 
86711
 
 
86712
fi
 
86713
$at_failed && at_fn_log_failure
 
86714
$at_traceon; }
 
86715
 
 
86716
   # Check br-to-vlan, with --oneline.
 
86717
   # (This particular test is interesting with --oneline because it returns
 
86718
   # an integer instead of a string and that can cause type mismatches inside
 
86719
   # python if not done carefully.)
 
86720
   { set +x
 
86721
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
86722
"
 
86723
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:149"
 
86724
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
86725
 
 
86726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86727
at_status=$? at_failed=false
 
86728
$at_check_filter
 
86729
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86730
echo >>"$at_stdout"; $as_echo "0
 
86731
" | \
 
86732
  $at_diff - "$at_stdout" || at_failed=:
 
86733
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86734
if $at_failed; then :
 
86735
  cp pid savepid
 
86736
   { set +x
 
86737
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-appctl -t \$PWD/unixctl -e exit"
 
86738
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:149"
 
86739
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86740
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86741
at_status=$? at_failed=false
 
86742
$at_check_filter
 
86743
echo stderr:; cat "$at_stderr"
 
86744
echo stdout:; cat "$at_stdout"
 
86745
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86746
$at_failed && at_fn_log_failure
 
86747
$at_traceon; }
 
86748
 
 
86749
   { set +x
 
86750
$as_echo "$at_srcdir/ovs-vsctl.at:149: # First try a quick sleep, so that the test completes very quickly
 
86751
     # in the normal case.  POSIX doesn't require fractional times to
 
86752
     # work, so this might not work.
 
86753
     sleep 0.1
 
86754
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86755
     # Then wait up to 10 seconds.
 
86756
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86757
       sleep 1
 
86758
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86759
     done
 
86760
     exit 1"
 
86761
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:149"
 
86762
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86763
     # in the normal case.  POSIX doesn't require fractional times to
 
86764
     # work, so this might not work.
 
86765
     sleep 0.1
 
86766
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86767
     # Then wait up to 10 seconds.
 
86768
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86769
       sleep 1
 
86770
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86771
     done
 
86772
     exit 1
 
86773
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86774
at_status=$? at_failed=false
 
86775
$at_check_filter
 
86776
echo stderr:; cat "$at_stderr"
 
86777
echo stdout:; cat "$at_stdout"
 
86778
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86779
if $at_failed; then :
 
86780
  kill `cat savepid`
 
86781
fi
 
86782
$at_failed && at_fn_log_failure
 
86783
$at_traceon; }
 
86784
 
 
86785
fi
 
86786
$at_failed && at_fn_log_failure
 
86787
$at_traceon; }
 
86788
 
 
86789
 
 
86790
   # Check multiple queries in a single run.
 
86791
   { set +x
 
86792
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a"
 
86793
at_fn_check_prepare_trace "ovs-vsctl.at:149"
 
86794
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a
 
86795
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86796
at_status=$? at_failed=false
 
86797
$at_check_filter
 
86798
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86799
echo >>"$at_stdout"; $as_echo "a
 
86800
0
 
86801
" | \
 
86802
  $at_diff - "$at_stdout" || at_failed=:
 
86803
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86804
if $at_failed; then :
 
86805
  cp pid savepid
 
86806
   { set +x
 
86807
$as_echo "$at_srcdir/ovs-vsctl.at:149: ovs-appctl -t \$PWD/unixctl -e exit"
 
86808
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:149"
 
86809
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86810
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86811
at_status=$? at_failed=false
 
86812
$at_check_filter
 
86813
echo stderr:; cat "$at_stderr"
 
86814
echo stdout:; cat "$at_stdout"
 
86815
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86816
$at_failed && at_fn_log_failure
 
86817
$at_traceon; }
 
86818
 
 
86819
   { set +x
 
86820
$as_echo "$at_srcdir/ovs-vsctl.at:149: # First try a quick sleep, so that the test completes very quickly
 
86821
     # in the normal case.  POSIX doesn't require fractional times to
 
86822
     # work, so this might not work.
 
86823
     sleep 0.1
 
86824
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86825
     # Then wait up to 10 seconds.
 
86826
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86827
       sleep 1
 
86828
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86829
     done
 
86830
     exit 1"
 
86831
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:149"
 
86832
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86833
     # in the normal case.  POSIX doesn't require fractional times to
 
86834
     # work, so this might not work.
 
86835
     sleep 0.1
 
86836
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86837
     # Then wait up to 10 seconds.
 
86838
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86839
       sleep 1
 
86840
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86841
     done
 
86842
     exit 1
 
86843
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86844
at_status=$? at_failed=false
 
86845
$at_check_filter
 
86846
echo stderr:; cat "$at_stderr"
 
86847
echo stdout:; cat "$at_stdout"
 
86848
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:149"
 
86849
if $at_failed; then :
 
86850
  kill `cat savepid`
 
86851
fi
 
86852
$at_failed && at_fn_log_failure
 
86853
$at_traceon; }
 
86854
 
 
86855
fi
 
86856
$at_failed && at_fn_log_failure
 
86857
$at_traceon; }
 
86858
 
 
86859
   { set +x
 
86860
$as_echo "$at_srcdir/ovs-vsctl.at:150: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
86861
"
 
86862
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:150"
 
86863
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
86864
 
 
86865
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86866
at_status=$? at_failed=false
 
86867
$at_check_filter
 
86868
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86869
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
86870
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
86871
if $at_failed; then :
 
86872
  cp pid savepid
 
86873
   { set +x
 
86874
$as_echo "$at_srcdir/ovs-vsctl.at:150: ovs-appctl -t \$PWD/unixctl -e exit"
 
86875
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:150"
 
86876
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86877
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86878
at_status=$? at_failed=false
 
86879
$at_check_filter
 
86880
echo stderr:; cat "$at_stderr"
 
86881
echo stdout:; cat "$at_stdout"
 
86882
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
86883
$at_failed && at_fn_log_failure
 
86884
$at_traceon; }
 
86885
 
 
86886
   { set +x
 
86887
$as_echo "$at_srcdir/ovs-vsctl.at:150: # First try a quick sleep, so that the test completes very quickly
 
86888
     # in the normal case.  POSIX doesn't require fractional times to
 
86889
     # work, so this might not work.
 
86890
     sleep 0.1
 
86891
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86892
     # Then wait up to 10 seconds.
 
86893
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86894
       sleep 1
 
86895
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86896
     done
 
86897
     exit 1"
 
86898
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:150"
 
86899
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86900
     # in the normal case.  POSIX doesn't require fractional times to
 
86901
     # work, so this might not work.
 
86902
     sleep 0.1
 
86903
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86904
     # Then wait up to 10 seconds.
 
86905
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86906
       sleep 1
 
86907
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86908
     done
 
86909
     exit 1
 
86910
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86911
at_status=$? at_failed=false
 
86912
$at_check_filter
 
86913
echo stderr:; cat "$at_stderr"
 
86914
echo stdout:; cat "$at_stdout"
 
86915
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
86916
if $at_failed; then :
 
86917
  kill `cat savepid`
 
86918
fi
 
86919
$at_failed && at_fn_log_failure
 
86920
$at_traceon; }
 
86921
 
 
86922
fi
 
86923
$at_failed && at_fn_log_failure
 
86924
$at_traceon; }
 
86925
 
 
86926
 
 
86927
      { set +x
 
86928
$as_echo "$at_srcdir/ovs-vsctl.at:150: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
86929
"
 
86930
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:150"
 
86931
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
86932
 
 
86933
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86934
at_status=$? at_failed=false
 
86935
$at_check_filter
 
86936
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
86937
echo >>"$at_stdout"; $as_echo "
 
86938
" | \
 
86939
  $at_diff - "$at_stdout" || at_failed=:
 
86940
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
86941
if $at_failed; then :
 
86942
  cp pid savepid
 
86943
   { set +x
 
86944
$as_echo "$at_srcdir/ovs-vsctl.at:150: ovs-appctl -t \$PWD/unixctl -e exit"
 
86945
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:150"
 
86946
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
86947
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86948
at_status=$? at_failed=false
 
86949
$at_check_filter
 
86950
echo stderr:; cat "$at_stderr"
 
86951
echo stdout:; cat "$at_stdout"
 
86952
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
86953
$at_failed && at_fn_log_failure
 
86954
$at_traceon; }
 
86955
 
 
86956
   { set +x
 
86957
$as_echo "$at_srcdir/ovs-vsctl.at:150: # First try a quick sleep, so that the test completes very quickly
 
86958
     # in the normal case.  POSIX doesn't require fractional times to
 
86959
     # work, so this might not work.
 
86960
     sleep 0.1
 
86961
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86962
     # Then wait up to 10 seconds.
 
86963
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86964
       sleep 1
 
86965
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
86966
     done
 
86967
     exit 1"
 
86968
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:150"
 
86969
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
86970
     # in the normal case.  POSIX doesn't require fractional times to
 
86971
     # work, so this might not work.
 
86972
     sleep 0.1
 
86973
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
86974
     # Then wait up to 10 seconds.
 
86975
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
86976
       sleep 1
 
86977
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
86978
     done
 
86979
     exit 1
 
86980
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
86981
at_status=$? at_failed=false
 
86982
$at_check_filter
 
86983
echo stderr:; cat "$at_stderr"
 
86984
echo stdout:; cat "$at_stdout"
 
86985
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
86986
if $at_failed; then :
 
86987
  kill `cat savepid`
 
86988
fi
 
86989
$at_failed && at_fn_log_failure
 
86990
$at_traceon; }
 
86991
 
 
86992
fi
 
86993
$at_failed && at_fn_log_failure
 
86994
$at_traceon; }
 
86995
 
 
86996
   { set +x
 
86997
$as_echo "$at_srcdir/ovs-vsctl.at:150: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
86998
"
 
86999
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:150"
 
87000
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
87001
 
 
87002
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87003
at_status=$? at_failed=false
 
87004
$at_check_filter
 
87005
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named a
 
87006
" | \
 
87007
  $at_diff - "$at_stderr" || at_failed=:
 
87008
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87009
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
87010
if $at_failed; then :
 
87011
  cp pid savepid
 
87012
   { set +x
 
87013
$as_echo "$at_srcdir/ovs-vsctl.at:150: ovs-appctl -t \$PWD/unixctl -e exit"
 
87014
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:150"
 
87015
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87016
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87017
at_status=$? at_failed=false
 
87018
$at_check_filter
 
87019
echo stderr:; cat "$at_stderr"
 
87020
echo stdout:; cat "$at_stdout"
 
87021
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
87022
$at_failed && at_fn_log_failure
 
87023
$at_traceon; }
 
87024
 
 
87025
   { set +x
 
87026
$as_echo "$at_srcdir/ovs-vsctl.at:150: # First try a quick sleep, so that the test completes very quickly
 
87027
     # in the normal case.  POSIX doesn't require fractional times to
 
87028
     # work, so this might not work.
 
87029
     sleep 0.1
 
87030
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87031
     # Then wait up to 10 seconds.
 
87032
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87033
       sleep 1
 
87034
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87035
     done
 
87036
     exit 1"
 
87037
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:150"
 
87038
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87039
     # in the normal case.  POSIX doesn't require fractional times to
 
87040
     # work, so this might not work.
 
87041
     sleep 0.1
 
87042
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87043
     # Then wait up to 10 seconds.
 
87044
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87045
       sleep 1
 
87046
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87047
     done
 
87048
     exit 1
 
87049
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87050
at_status=$? at_failed=false
 
87051
$at_check_filter
 
87052
echo stderr:; cat "$at_stderr"
 
87053
echo stdout:; cat "$at_stdout"
 
87054
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:150"
 
87055
if $at_failed; then :
 
87056
  kill `cat savepid`
 
87057
fi
 
87058
$at_failed && at_fn_log_failure
 
87059
$at_traceon; }
 
87060
 
 
87061
fi
 
87062
$at_failed && at_fn_log_failure
 
87063
$at_traceon; }
 
87064
 
 
87065
 
 
87066
{ set +x
 
87067
$as_echo "$at_srcdir/ovs-vsctl.at:151: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
87068
"
 
87069
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:151"
 
87070
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
87071
 
 
87072
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87073
at_status=$? at_failed=false
 
87074
$at_check_filter
 
87075
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
87076
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87077
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:151"
 
87078
if $at_failed; then :
 
87079
  cp pid savepid
 
87080
   { set +x
 
87081
$as_echo "$at_srcdir/ovs-vsctl.at:151: ovs-appctl -t \$PWD/unixctl -e exit"
 
87082
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:151"
 
87083
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87084
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87085
at_status=$? at_failed=false
 
87086
$at_check_filter
 
87087
echo stderr:; cat "$at_stderr"
 
87088
echo stdout:; cat "$at_stdout"
 
87089
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:151"
 
87090
$at_failed && at_fn_log_failure
 
87091
$at_traceon; }
 
87092
 
 
87093
   { set +x
 
87094
$as_echo "$at_srcdir/ovs-vsctl.at:151: # First try a quick sleep, so that the test completes very quickly
 
87095
     # in the normal case.  POSIX doesn't require fractional times to
 
87096
     # work, so this might not work.
 
87097
     sleep 0.1
 
87098
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87099
     # Then wait up to 10 seconds.
 
87100
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87101
       sleep 1
 
87102
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87103
     done
 
87104
     exit 1"
 
87105
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:151"
 
87106
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87107
     # in the normal case.  POSIX doesn't require fractional times to
 
87108
     # work, so this might not work.
 
87109
     sleep 0.1
 
87110
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87111
     # Then wait up to 10 seconds.
 
87112
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87113
       sleep 1
 
87114
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87115
     done
 
87116
     exit 1
 
87117
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87118
at_status=$? at_failed=false
 
87119
$at_check_filter
 
87120
echo stderr:; cat "$at_stderr"
 
87121
echo stdout:; cat "$at_stdout"
 
87122
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:151"
 
87123
if $at_failed; then :
 
87124
  kill `cat savepid`
 
87125
fi
 
87126
$at_failed && at_fn_log_failure
 
87127
$at_traceon; }
 
87128
 
 
87129
fi
 
87130
$at_failed && at_fn_log_failure
 
87131
$at_traceon; }
 
87132
 
 
87133
   { set +x
 
87134
$as_echo "$at_srcdir/ovs-vsctl.at:151: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
87135
"
 
87136
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:151"
 
87137
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
87138
 
 
87139
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87140
at_status=$? at_failed=false
 
87141
$at_check_filter
 
87142
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named a
 
87143
" | \
 
87144
  $at_diff - "$at_stderr" || at_failed=:
 
87145
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87146
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:151"
 
87147
if $at_failed; then :
 
87148
  cp pid savepid
 
87149
   { set +x
 
87150
$as_echo "$at_srcdir/ovs-vsctl.at:151: ovs-appctl -t \$PWD/unixctl -e exit"
 
87151
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:151"
 
87152
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87153
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87154
at_status=$? at_failed=false
 
87155
$at_check_filter
 
87156
echo stderr:; cat "$at_stderr"
 
87157
echo stdout:; cat "$at_stdout"
 
87158
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:151"
 
87159
$at_failed && at_fn_log_failure
 
87160
$at_traceon; }
 
87161
 
 
87162
   { set +x
 
87163
$as_echo "$at_srcdir/ovs-vsctl.at:151: # First try a quick sleep, so that the test completes very quickly
 
87164
     # in the normal case.  POSIX doesn't require fractional times to
 
87165
     # work, so this might not work.
 
87166
     sleep 0.1
 
87167
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87168
     # Then wait up to 10 seconds.
 
87169
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87170
       sleep 1
 
87171
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87172
     done
 
87173
     exit 1"
 
87174
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:151"
 
87175
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87176
     # in the normal case.  POSIX doesn't require fractional times to
 
87177
     # work, so this might not work.
 
87178
     sleep 0.1
 
87179
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87180
     # Then wait up to 10 seconds.
 
87181
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87182
       sleep 1
 
87183
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87184
     done
 
87185
     exit 1
 
87186
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87187
at_status=$? at_failed=false
 
87188
$at_check_filter
 
87189
echo stderr:; cat "$at_stderr"
 
87190
echo stdout:; cat "$at_stdout"
 
87191
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:151"
 
87192
if $at_failed; then :
 
87193
  kill `cat savepid`
 
87194
fi
 
87195
$at_failed && at_fn_log_failure
 
87196
$at_traceon; }
 
87197
 
 
87198
fi
 
87199
$at_failed && at_fn_log_failure
 
87200
$at_traceon; }
 
87201
 
 
87202
 
 
87203
cp pid savepid
 
87204
   { set +x
 
87205
$as_echo "$at_srcdir/ovs-vsctl.at:152: ovs-appctl -t \$PWD/unixctl -e exit"
 
87206
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:152"
 
87207
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87208
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87209
at_status=$? at_failed=false
 
87210
$at_check_filter
 
87211
echo stderr:; cat "$at_stderr"
 
87212
echo stdout:; cat "$at_stdout"
 
87213
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:152"
 
87214
$at_failed && at_fn_log_failure
 
87215
$at_traceon; }
 
87216
 
 
87217
   { set +x
 
87218
$as_echo "$at_srcdir/ovs-vsctl.at:152: # First try a quick sleep, so that the test completes very quickly
 
87219
     # in the normal case.  POSIX doesn't require fractional times to
 
87220
     # work, so this might not work.
 
87221
     sleep 0.1
 
87222
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87223
     # Then wait up to 10 seconds.
 
87224
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87225
       sleep 1
 
87226
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87227
     done
 
87228
     exit 1"
 
87229
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:152"
 
87230
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87231
     # in the normal case.  POSIX doesn't require fractional times to
 
87232
     # work, so this might not work.
 
87233
     sleep 0.1
 
87234
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87235
     # Then wait up to 10 seconds.
 
87236
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87237
       sleep 1
 
87238
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87239
     done
 
87240
     exit 1
 
87241
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87242
at_status=$? at_failed=false
 
87243
$at_check_filter
 
87244
echo stderr:; cat "$at_stderr"
 
87245
echo stdout:; cat "$at_stdout"
 
87246
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:152"
 
87247
if $at_failed; then :
 
87248
  kill `cat savepid`
 
87249
fi
 
87250
$at_failed && at_fn_log_failure
 
87251
$at_traceon; }
 
87252
 
 
87253
  set +x
 
87254
  $at_times_p && times >"$at_times_file"
 
87255
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
87256
read at_status <"$at_status_file"
 
87257
#AT_STOP_943
 
87258
#AT_START_944
 
87259
at_fn_group_banner 944 'ovs-vsctl.at:155' \
 
87260
  "add-br a, add-br a" "                             " 65
 
87261
at_xfail=no
 
87262
(
 
87263
  $as_echo "944. $at_setup_line: testing $at_desc ..."
 
87264
  $at_traceon
 
87265
 
 
87266
 
 
87267
{ set +x
 
87268
$as_echo "$at_srcdir/ovs-vsctl.at:157: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
87269
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:157"
 
87270
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
87271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87272
at_status=$? at_failed=false
 
87273
$at_check_filter
 
87274
echo stderr:; cat "$at_stderr"
 
87275
echo stdout:; tee stdout <"$at_stdout"
 
87276
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:157"
 
87277
$at_failed && at_fn_log_failure
 
87278
$at_traceon; }
 
87279
 
 
87280
   { set +x
 
87281
$as_echo "$at_srcdir/ovs-vsctl.at:157: ovsdb-tool transact db \\
 
87282
        '[\"Open_vSwitch\",
 
87283
          {\"op\": \"insert\",
 
87284
           \"table\": \"Open_vSwitch\",
 
87285
           \"row\": {}}]'"
 
87286
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:157"
 
87287
( $at_check_trace; ovsdb-tool transact db \
 
87288
        '["Open_vSwitch",
 
87289
          {"op": "insert",
 
87290
           "table": "Open_vSwitch",
 
87291
           "row": {}}]'
 
87292
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87293
at_status=$? at_failed=false
 
87294
$at_check_filter
 
87295
echo stderr:; cat "$at_stderr"
 
87296
echo stdout:; cat "$at_stdout"
 
87297
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:157"
 
87298
$at_failed && at_fn_log_failure
 
87299
$at_traceon; }
 
87300
 
 
87301
   { set +x
 
87302
$as_echo "$at_srcdir/ovs-vsctl.at:157: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
87303
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:157"
 
87304
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
87305
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87306
at_status=$? at_failed=false
 
87307
$at_check_filter
 
87308
echo stderr:; cat "$at_stderr"
 
87309
echo stdout:; cat "$at_stdout"
 
87310
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:157"
 
87311
$at_failed && at_fn_log_failure
 
87312
$at_traceon; }
 
87313
 
 
87314
{ set +x
 
87315
$as_echo "$at_srcdir/ovs-vsctl.at:158: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
87316
"
 
87317
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:158"
 
87318
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
87319
 
 
87320
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87321
at_status=$? at_failed=false
 
87322
$at_check_filter
 
87323
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
87324
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87325
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:158"
 
87326
if $at_failed; then :
 
87327
  cp pid savepid
 
87328
   { set +x
 
87329
$as_echo "$at_srcdir/ovs-vsctl.at:158: ovs-appctl -t \$PWD/unixctl -e exit"
 
87330
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:158"
 
87331
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87332
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87333
at_status=$? at_failed=false
 
87334
$at_check_filter
 
87335
echo stderr:; cat "$at_stderr"
 
87336
echo stdout:; cat "$at_stdout"
 
87337
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:158"
 
87338
$at_failed && at_fn_log_failure
 
87339
$at_traceon; }
 
87340
 
 
87341
   { set +x
 
87342
$as_echo "$at_srcdir/ovs-vsctl.at:158: # First try a quick sleep, so that the test completes very quickly
 
87343
     # in the normal case.  POSIX doesn't require fractional times to
 
87344
     # work, so this might not work.
 
87345
     sleep 0.1
 
87346
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87347
     # Then wait up to 10 seconds.
 
87348
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87349
       sleep 1
 
87350
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87351
     done
 
87352
     exit 1"
 
87353
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:158"
 
87354
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87355
     # in the normal case.  POSIX doesn't require fractional times to
 
87356
     # work, so this might not work.
 
87357
     sleep 0.1
 
87358
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87359
     # Then wait up to 10 seconds.
 
87360
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87361
       sleep 1
 
87362
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87363
     done
 
87364
     exit 1
 
87365
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87366
at_status=$? at_failed=false
 
87367
$at_check_filter
 
87368
echo stderr:; cat "$at_stderr"
 
87369
echo stdout:; cat "$at_stdout"
 
87370
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:158"
 
87371
if $at_failed; then :
 
87372
  kill `cat savepid`
 
87373
fi
 
87374
$at_failed && at_fn_log_failure
 
87375
$at_traceon; }
 
87376
 
 
87377
fi
 
87378
$at_failed && at_fn_log_failure
 
87379
$at_traceon; }
 
87380
 
 
87381
{ set +x
 
87382
$as_echo "$at_srcdir/ovs-vsctl.at:159: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
87383
"
 
87384
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:159"
 
87385
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
87386
 
 
87387
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87388
at_status=$? at_failed=false
 
87389
$at_check_filter
 
87390
echo >>"$at_stderr"; $as_echo "ovs-vsctl: cannot create a bridge named a because a bridge named a already exists
 
87391
" | \
 
87392
  $at_diff - "$at_stderr" || at_failed=:
 
87393
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87394
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:159"
 
87395
if $at_failed; then :
 
87396
  cp pid savepid
 
87397
   { set +x
 
87398
$as_echo "$at_srcdir/ovs-vsctl.at:159: ovs-appctl -t \$PWD/unixctl -e exit"
 
87399
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:159"
 
87400
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87401
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87402
at_status=$? at_failed=false
 
87403
$at_check_filter
 
87404
echo stderr:; cat "$at_stderr"
 
87405
echo stdout:; cat "$at_stdout"
 
87406
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:159"
 
87407
$at_failed && at_fn_log_failure
 
87408
$at_traceon; }
 
87409
 
 
87410
   { set +x
 
87411
$as_echo "$at_srcdir/ovs-vsctl.at:159: # First try a quick sleep, so that the test completes very quickly
 
87412
     # in the normal case.  POSIX doesn't require fractional times to
 
87413
     # work, so this might not work.
 
87414
     sleep 0.1
 
87415
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87416
     # Then wait up to 10 seconds.
 
87417
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87418
       sleep 1
 
87419
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87420
     done
 
87421
     exit 1"
 
87422
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:159"
 
87423
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87424
     # in the normal case.  POSIX doesn't require fractional times to
 
87425
     # work, so this might not work.
 
87426
     sleep 0.1
 
87427
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87428
     # Then wait up to 10 seconds.
 
87429
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87430
       sleep 1
 
87431
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87432
     done
 
87433
     exit 1
 
87434
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87435
at_status=$? at_failed=false
 
87436
$at_check_filter
 
87437
echo stderr:; cat "$at_stderr"
 
87438
echo stdout:; cat "$at_stdout"
 
87439
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:159"
 
87440
if $at_failed; then :
 
87441
  kill `cat savepid`
 
87442
fi
 
87443
$at_failed && at_fn_log_failure
 
87444
$at_traceon; }
 
87445
 
 
87446
fi
 
87447
$at_failed && at_fn_log_failure
 
87448
$at_traceon; }
 
87449
 
 
87450
cp pid savepid
 
87451
   { set +x
 
87452
$as_echo "$at_srcdir/ovs-vsctl.at:162: ovs-appctl -t \$PWD/unixctl -e exit"
 
87453
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:162"
 
87454
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87456
at_status=$? at_failed=false
 
87457
$at_check_filter
 
87458
echo stderr:; cat "$at_stderr"
 
87459
echo stdout:; cat "$at_stdout"
 
87460
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:162"
 
87461
$at_failed && at_fn_log_failure
 
87462
$at_traceon; }
 
87463
 
 
87464
   { set +x
 
87465
$as_echo "$at_srcdir/ovs-vsctl.at:162: # First try a quick sleep, so that the test completes very quickly
 
87466
     # in the normal case.  POSIX doesn't require fractional times to
 
87467
     # work, so this might not work.
 
87468
     sleep 0.1
 
87469
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87470
     # Then wait up to 10 seconds.
 
87471
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87472
       sleep 1
 
87473
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87474
     done
 
87475
     exit 1"
 
87476
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:162"
 
87477
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87478
     # in the normal case.  POSIX doesn't require fractional times to
 
87479
     # work, so this might not work.
 
87480
     sleep 0.1
 
87481
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87482
     # Then wait up to 10 seconds.
 
87483
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87484
       sleep 1
 
87485
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87486
     done
 
87487
     exit 1
 
87488
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87489
at_status=$? at_failed=false
 
87490
$at_check_filter
 
87491
echo stderr:; cat "$at_stderr"
 
87492
echo stdout:; cat "$at_stdout"
 
87493
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:162"
 
87494
if $at_failed; then :
 
87495
  kill `cat savepid`
 
87496
fi
 
87497
$at_failed && at_fn_log_failure
 
87498
$at_traceon; }
 
87499
 
 
87500
  set +x
 
87501
  $at_times_p && times >"$at_times_file"
 
87502
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
87503
read at_status <"$at_status_file"
 
87504
#AT_STOP_944
 
87505
#AT_START_945
 
87506
at_fn_group_banner 945 'ovs-vsctl.at:165' \
 
87507
  "add-br a, add-br b" "                             " 65
 
87508
at_xfail=no
 
87509
(
 
87510
  $as_echo "945. $at_setup_line: testing $at_desc ..."
 
87511
  $at_traceon
 
87512
 
 
87513
 
 
87514
{ set +x
 
87515
$as_echo "$at_srcdir/ovs-vsctl.at:167: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
87516
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:167"
 
87517
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
87518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87519
at_status=$? at_failed=false
 
87520
$at_check_filter
 
87521
echo stderr:; cat "$at_stderr"
 
87522
echo stdout:; tee stdout <"$at_stdout"
 
87523
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:167"
 
87524
$at_failed && at_fn_log_failure
 
87525
$at_traceon; }
 
87526
 
 
87527
   { set +x
 
87528
$as_echo "$at_srcdir/ovs-vsctl.at:167: ovsdb-tool transact db \\
 
87529
        '[\"Open_vSwitch\",
 
87530
          {\"op\": \"insert\",
 
87531
           \"table\": \"Open_vSwitch\",
 
87532
           \"row\": {}}]'"
 
87533
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:167"
 
87534
( $at_check_trace; ovsdb-tool transact db \
 
87535
        '["Open_vSwitch",
 
87536
          {"op": "insert",
 
87537
           "table": "Open_vSwitch",
 
87538
           "row": {}}]'
 
87539
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87540
at_status=$? at_failed=false
 
87541
$at_check_filter
 
87542
echo stderr:; cat "$at_stderr"
 
87543
echo stdout:; cat "$at_stdout"
 
87544
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:167"
 
87545
$at_failed && at_fn_log_failure
 
87546
$at_traceon; }
 
87547
 
 
87548
   { set +x
 
87549
$as_echo "$at_srcdir/ovs-vsctl.at:167: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
87550
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:167"
 
87551
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
87552
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87553
at_status=$? at_failed=false
 
87554
$at_check_filter
 
87555
echo stderr:; cat "$at_stderr"
 
87556
echo stdout:; cat "$at_stdout"
 
87557
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:167"
 
87558
$at_failed && at_fn_log_failure
 
87559
$at_traceon; }
 
87560
 
 
87561
{ set +x
 
87562
$as_echo "$at_srcdir/ovs-vsctl.at:168: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
87563
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br b
 
87564
"
 
87565
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:168"
 
87566
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
87567
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br b
 
87568
 
 
87569
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87570
at_status=$? at_failed=false
 
87571
$at_check_filter
 
87572
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
87573
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87574
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:168"
 
87575
if $at_failed; then :
 
87576
  cp pid savepid
 
87577
   { set +x
 
87578
$as_echo "$at_srcdir/ovs-vsctl.at:168: ovs-appctl -t \$PWD/unixctl -e exit"
 
87579
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:168"
 
87580
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87581
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87582
at_status=$? at_failed=false
 
87583
$at_check_filter
 
87584
echo stderr:; cat "$at_stderr"
 
87585
echo stdout:; cat "$at_stdout"
 
87586
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:168"
 
87587
$at_failed && at_fn_log_failure
 
87588
$at_traceon; }
 
87589
 
 
87590
   { set +x
 
87591
$as_echo "$at_srcdir/ovs-vsctl.at:168: # First try a quick sleep, so that the test completes very quickly
 
87592
     # in the normal case.  POSIX doesn't require fractional times to
 
87593
     # work, so this might not work.
 
87594
     sleep 0.1
 
87595
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87596
     # Then wait up to 10 seconds.
 
87597
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87598
       sleep 1
 
87599
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87600
     done
 
87601
     exit 1"
 
87602
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:168"
 
87603
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87604
     # in the normal case.  POSIX doesn't require fractional times to
 
87605
     # work, so this might not work.
 
87606
     sleep 0.1
 
87607
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87608
     # Then wait up to 10 seconds.
 
87609
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87610
       sleep 1
 
87611
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87612
     done
 
87613
     exit 1
 
87614
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87615
at_status=$? at_failed=false
 
87616
$at_check_filter
 
87617
echo stderr:; cat "$at_stderr"
 
87618
echo stdout:; cat "$at_stdout"
 
87619
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:168"
 
87620
if $at_failed; then :
 
87621
  kill `cat savepid`
 
87622
fi
 
87623
$at_failed && at_fn_log_failure
 
87624
$at_traceon; }
 
87625
 
 
87626
fi
 
87627
$at_failed && at_fn_log_failure
 
87628
$at_traceon; }
 
87629
 
 
87630
{ set +x
 
87631
$as_echo "$at_srcdir/ovs-vsctl.at:170: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br a b 9
 
87632
"
 
87633
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:170"
 
87634
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br a b 9
 
87635
 
 
87636
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87637
at_status=$? at_failed=false
 
87638
$at_check_filter
 
87639
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-br a b 9\" but a is not a VLAN bridge
 
87640
" | \
 
87641
  $at_diff - "$at_stderr" || at_failed=:
 
87642
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87643
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:170"
 
87644
if $at_failed; then :
 
87645
  cp pid savepid
 
87646
   { set +x
 
87647
$as_echo "$at_srcdir/ovs-vsctl.at:170: ovs-appctl -t \$PWD/unixctl -e exit"
 
87648
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:170"
 
87649
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87650
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87651
at_status=$? at_failed=false
 
87652
$at_check_filter
 
87653
echo stderr:; cat "$at_stderr"
 
87654
echo stdout:; cat "$at_stdout"
 
87655
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:170"
 
87656
$at_failed && at_fn_log_failure
 
87657
$at_traceon; }
 
87658
 
 
87659
   { set +x
 
87660
$as_echo "$at_srcdir/ovs-vsctl.at:170: # First try a quick sleep, so that the test completes very quickly
 
87661
     # in the normal case.  POSIX doesn't require fractional times to
 
87662
     # work, so this might not work.
 
87663
     sleep 0.1
 
87664
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87665
     # Then wait up to 10 seconds.
 
87666
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87667
       sleep 1
 
87668
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87669
     done
 
87670
     exit 1"
 
87671
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:170"
 
87672
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87673
     # in the normal case.  POSIX doesn't require fractional times to
 
87674
     # work, so this might not work.
 
87675
     sleep 0.1
 
87676
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87677
     # Then wait up to 10 seconds.
 
87678
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87679
       sleep 1
 
87680
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87681
     done
 
87682
     exit 1
 
87683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87684
at_status=$? at_failed=false
 
87685
$at_check_filter
 
87686
echo stderr:; cat "$at_stderr"
 
87687
echo stdout:; cat "$at_stdout"
 
87688
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:170"
 
87689
if $at_failed; then :
 
87690
  kill `cat savepid`
 
87691
fi
 
87692
$at_failed && at_fn_log_failure
 
87693
$at_traceon; }
 
87694
 
 
87695
fi
 
87696
$at_failed && at_fn_log_failure
 
87697
$at_traceon; }
 
87698
 
 
87699
   { set +x
 
87700
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
87701
"
 
87702
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
87703
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
87704
 
 
87705
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87706
at_status=$? at_failed=false
 
87707
$at_check_filter
 
87708
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
87709
echo >>"$at_stdout"; $as_echo "a
 
87710
b
 
87711
" | \
 
87712
  $at_diff - "$at_stdout" || at_failed=:
 
87713
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87714
if $at_failed; then :
 
87715
  cp pid savepid
 
87716
   { set +x
 
87717
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
87718
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
87719
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87720
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87721
at_status=$? at_failed=false
 
87722
$at_check_filter
 
87723
echo stderr:; cat "$at_stderr"
 
87724
echo stdout:; cat "$at_stdout"
 
87725
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87726
$at_failed && at_fn_log_failure
 
87727
$at_traceon; }
 
87728
 
 
87729
   { set +x
 
87730
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
87731
     # in the normal case.  POSIX doesn't require fractional times to
 
87732
     # work, so this might not work.
 
87733
     sleep 0.1
 
87734
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87735
     # Then wait up to 10 seconds.
 
87736
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87737
       sleep 1
 
87738
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87739
     done
 
87740
     exit 1"
 
87741
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
87742
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87743
     # in the normal case.  POSIX doesn't require fractional times to
 
87744
     # work, so this might not work.
 
87745
     sleep 0.1
 
87746
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87747
     # Then wait up to 10 seconds.
 
87748
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87749
       sleep 1
 
87750
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87751
     done
 
87752
     exit 1
 
87753
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87754
at_status=$? at_failed=false
 
87755
$at_check_filter
 
87756
echo stderr:; cat "$at_stderr"
 
87757
echo stdout:; cat "$at_stdout"
 
87758
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87759
if $at_failed; then :
 
87760
  kill `cat savepid`
 
87761
fi
 
87762
$at_failed && at_fn_log_failure
 
87763
$at_traceon; }
 
87764
 
 
87765
fi
 
87766
$at_failed && at_fn_log_failure
 
87767
$at_traceon; }
 
87768
 
 
87769
 
 
87770
      { set +x
 
87771
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
87772
"
 
87773
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
87774
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
87775
 
 
87776
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87777
at_status=$? at_failed=false
 
87778
$at_check_filter
 
87779
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
87780
echo >>"$at_stdout"; $as_echo "a\\nb
 
87781
" | \
 
87782
  $at_diff - "$at_stdout" || at_failed=:
 
87783
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87784
if $at_failed; then :
 
87785
  cp pid savepid
 
87786
   { set +x
 
87787
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
87788
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
87789
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87790
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87791
at_status=$? at_failed=false
 
87792
$at_check_filter
 
87793
echo stderr:; cat "$at_stderr"
 
87794
echo stdout:; cat "$at_stdout"
 
87795
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87796
$at_failed && at_fn_log_failure
 
87797
$at_traceon; }
 
87798
 
 
87799
   { set +x
 
87800
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
87801
     # in the normal case.  POSIX doesn't require fractional times to
 
87802
     # work, so this might not work.
 
87803
     sleep 0.1
 
87804
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87805
     # Then wait up to 10 seconds.
 
87806
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87807
       sleep 1
 
87808
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87809
     done
 
87810
     exit 1"
 
87811
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
87812
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87813
     # in the normal case.  POSIX doesn't require fractional times to
 
87814
     # work, so this might not work.
 
87815
     sleep 0.1
 
87816
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87817
     # Then wait up to 10 seconds.
 
87818
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87819
       sleep 1
 
87820
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87821
     done
 
87822
     exit 1
 
87823
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87824
at_status=$? at_failed=false
 
87825
$at_check_filter
 
87826
echo stderr:; cat "$at_stderr"
 
87827
echo stdout:; cat "$at_stdout"
 
87828
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87829
if $at_failed; then :
 
87830
  kill `cat savepid`
 
87831
fi
 
87832
$at_failed && at_fn_log_failure
 
87833
$at_traceon; }
 
87834
 
 
87835
fi
 
87836
$at_failed && at_fn_log_failure
 
87837
$at_traceon; }
 
87838
 
 
87839
 
 
87840
         { set +x
 
87841
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
87842
"
 
87843
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
87844
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
87845
 
 
87846
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87847
at_status=$? at_failed=false
 
87848
$at_check_filter
 
87849
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
87850
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87851
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87852
if $at_failed; then :
 
87853
  cp pid savepid
 
87854
   { set +x
 
87855
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
87856
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
87857
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87858
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87859
at_status=$? at_failed=false
 
87860
$at_check_filter
 
87861
echo stderr:; cat "$at_stderr"
 
87862
echo stdout:; cat "$at_stdout"
 
87863
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87864
$at_failed && at_fn_log_failure
 
87865
$at_traceon; }
 
87866
 
 
87867
   { set +x
 
87868
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
87869
     # in the normal case.  POSIX doesn't require fractional times to
 
87870
     # work, so this might not work.
 
87871
     sleep 0.1
 
87872
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87873
     # Then wait up to 10 seconds.
 
87874
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87875
       sleep 1
 
87876
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87877
     done
 
87878
     exit 1"
 
87879
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
87880
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87881
     # in the normal case.  POSIX doesn't require fractional times to
 
87882
     # work, so this might not work.
 
87883
     sleep 0.1
 
87884
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87885
     # Then wait up to 10 seconds.
 
87886
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87887
       sleep 1
 
87888
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87889
     done
 
87890
     exit 1
 
87891
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87892
at_status=$? at_failed=false
 
87893
$at_check_filter
 
87894
echo stderr:; cat "$at_stderr"
 
87895
echo stdout:; cat "$at_stdout"
 
87896
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87897
if $at_failed; then :
 
87898
  kill `cat savepid`
 
87899
fi
 
87900
$at_failed && at_fn_log_failure
 
87901
$at_traceon; }
 
87902
 
 
87903
fi
 
87904
$at_failed && at_fn_log_failure
 
87905
$at_traceon; }
 
87906
{ set +x
 
87907
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists b
 
87908
"
 
87909
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
87910
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists b
 
87911
 
 
87912
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87913
at_status=$? at_failed=false
 
87914
$at_check_filter
 
87915
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
87916
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87917
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87918
if $at_failed; then :
 
87919
  cp pid savepid
 
87920
   { set +x
 
87921
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
87922
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
87923
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87924
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87925
at_status=$? at_failed=false
 
87926
$at_check_filter
 
87927
echo stderr:; cat "$at_stderr"
 
87928
echo stdout:; cat "$at_stdout"
 
87929
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87930
$at_failed && at_fn_log_failure
 
87931
$at_traceon; }
 
87932
 
 
87933
   { set +x
 
87934
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
87935
     # in the normal case.  POSIX doesn't require fractional times to
 
87936
     # work, so this might not work.
 
87937
     sleep 0.1
 
87938
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87939
     # Then wait up to 10 seconds.
 
87940
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87941
       sleep 1
 
87942
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
87943
     done
 
87944
     exit 1"
 
87945
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
87946
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
87947
     # in the normal case.  POSIX doesn't require fractional times to
 
87948
     # work, so this might not work.
 
87949
     sleep 0.1
 
87950
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
87951
     # Then wait up to 10 seconds.
 
87952
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
87953
       sleep 1
 
87954
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
87955
     done
 
87956
     exit 1
 
87957
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87958
at_status=$? at_failed=false
 
87959
$at_check_filter
 
87960
echo stderr:; cat "$at_stderr"
 
87961
echo stdout:; cat "$at_stdout"
 
87962
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87963
if $at_failed; then :
 
87964
  kill `cat savepid`
 
87965
fi
 
87966
$at_failed && at_fn_log_failure
 
87967
$at_traceon; }
 
87968
 
 
87969
fi
 
87970
$at_failed && at_fn_log_failure
 
87971
$at_traceon; }
 
87972
 
 
87973
   { set +x
 
87974
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
87975
"
 
87976
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
87977
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
87978
 
 
87979
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87980
at_status=$? at_failed=false
 
87981
$at_check_filter
 
87982
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
87983
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
87984
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87985
if $at_failed; then :
 
87986
  cp pid savepid
 
87987
   { set +x
 
87988
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
87989
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
87990
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
87991
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
87992
at_status=$? at_failed=false
 
87993
$at_check_filter
 
87994
echo stderr:; cat "$at_stderr"
 
87995
echo stdout:; cat "$at_stdout"
 
87996
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
87997
$at_failed && at_fn_log_failure
 
87998
$at_traceon; }
 
87999
 
 
88000
   { set +x
 
88001
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88002
     # in the normal case.  POSIX doesn't require fractional times to
 
88003
     # work, so this might not work.
 
88004
     sleep 0.1
 
88005
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88006
     # Then wait up to 10 seconds.
 
88007
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88008
       sleep 1
 
88009
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88010
     done
 
88011
     exit 1"
 
88012
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88013
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88014
     # in the normal case.  POSIX doesn't require fractional times to
 
88015
     # work, so this might not work.
 
88016
     sleep 0.1
 
88017
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88018
     # Then wait up to 10 seconds.
 
88019
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88020
       sleep 1
 
88021
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88022
     done
 
88023
     exit 1
 
88024
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88025
at_status=$? at_failed=false
 
88026
$at_check_filter
 
88027
echo stderr:; cat "$at_stderr"
 
88028
echo stdout:; cat "$at_stdout"
 
88029
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88030
if $at_failed; then :
 
88031
  kill `cat savepid`
 
88032
fi
 
88033
$at_failed && at_fn_log_failure
 
88034
$at_traceon; }
 
88035
 
 
88036
fi
 
88037
$at_failed && at_fn_log_failure
 
88038
$at_traceon; }
 
88039
 
 
88040
 
 
88041
      { set +x
 
88042
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
88043
"
 
88044
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
88045
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
88046
 
 
88047
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88048
at_status=$? at_failed=false
 
88049
$at_check_filter
 
88050
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88051
echo >>"$at_stdout"; $as_echo "a
 
88052
" | \
 
88053
  $at_diff - "$at_stdout" || at_failed=:
 
88054
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88055
if $at_failed; then :
 
88056
  cp pid savepid
 
88057
   { set +x
 
88058
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
88059
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
88060
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88061
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88062
at_status=$? at_failed=false
 
88063
$at_check_filter
 
88064
echo stderr:; cat "$at_stderr"
 
88065
echo stdout:; cat "$at_stdout"
 
88066
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88067
$at_failed && at_fn_log_failure
 
88068
$at_traceon; }
 
88069
 
 
88070
   { set +x
 
88071
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88072
     # in the normal case.  POSIX doesn't require fractional times to
 
88073
     # work, so this might not work.
 
88074
     sleep 0.1
 
88075
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88076
     # Then wait up to 10 seconds.
 
88077
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88078
       sleep 1
 
88079
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88080
     done
 
88081
     exit 1"
 
88082
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88083
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88084
     # in the normal case.  POSIX doesn't require fractional times to
 
88085
     # work, so this might not work.
 
88086
     sleep 0.1
 
88087
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88088
     # Then wait up to 10 seconds.
 
88089
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88090
       sleep 1
 
88091
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88092
     done
 
88093
     exit 1
 
88094
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88095
at_status=$? at_failed=false
 
88096
$at_check_filter
 
88097
echo stderr:; cat "$at_stderr"
 
88098
echo stdout:; cat "$at_stdout"
 
88099
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88100
if $at_failed; then :
 
88101
  kill `cat savepid`
 
88102
fi
 
88103
$at_failed && at_fn_log_failure
 
88104
$at_traceon; }
 
88105
 
 
88106
fi
 
88107
$at_failed && at_fn_log_failure
 
88108
$at_traceon; }
 
88109
 
 
88110
 
 
88111
   # Check br-to-vlan, without --oneline.
 
88112
   { set +x
 
88113
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
88114
"
 
88115
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
88116
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
88117
 
 
88118
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88119
at_status=$? at_failed=false
 
88120
$at_check_filter
 
88121
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88122
echo >>"$at_stdout"; $as_echo "0
 
88123
" | \
 
88124
  $at_diff - "$at_stdout" || at_failed=:
 
88125
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88126
if $at_failed; then :
 
88127
  cp pid savepid
 
88128
   { set +x
 
88129
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
88130
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
88131
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88132
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88133
at_status=$? at_failed=false
 
88134
$at_check_filter
 
88135
echo stderr:; cat "$at_stderr"
 
88136
echo stdout:; cat "$at_stdout"
 
88137
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88138
$at_failed && at_fn_log_failure
 
88139
$at_traceon; }
 
88140
 
 
88141
   { set +x
 
88142
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88143
     # in the normal case.  POSIX doesn't require fractional times to
 
88144
     # work, so this might not work.
 
88145
     sleep 0.1
 
88146
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88147
     # Then wait up to 10 seconds.
 
88148
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88149
       sleep 1
 
88150
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88151
     done
 
88152
     exit 1"
 
88153
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88154
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88155
     # in the normal case.  POSIX doesn't require fractional times to
 
88156
     # work, so this might not work.
 
88157
     sleep 0.1
 
88158
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88159
     # Then wait up to 10 seconds.
 
88160
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88161
       sleep 1
 
88162
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88163
     done
 
88164
     exit 1
 
88165
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88166
at_status=$? at_failed=false
 
88167
$at_check_filter
 
88168
echo stderr:; cat "$at_stderr"
 
88169
echo stdout:; cat "$at_stdout"
 
88170
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88171
if $at_failed; then :
 
88172
  kill `cat savepid`
 
88173
fi
 
88174
$at_failed && at_fn_log_failure
 
88175
$at_traceon; }
 
88176
 
 
88177
fi
 
88178
$at_failed && at_fn_log_failure
 
88179
$at_traceon; }
 
88180
 
 
88181
   # Check br-to-vlan, with --oneline.
 
88182
   # (This particular test is interesting with --oneline because it returns
 
88183
   # an integer instead of a string and that can cause type mismatches inside
 
88184
   # python if not done carefully.)
 
88185
   { set +x
 
88186
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
88187
"
 
88188
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
88189
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
88190
 
 
88191
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88192
at_status=$? at_failed=false
 
88193
$at_check_filter
 
88194
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88195
echo >>"$at_stdout"; $as_echo "0
 
88196
" | \
 
88197
  $at_diff - "$at_stdout" || at_failed=:
 
88198
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88199
if $at_failed; then :
 
88200
  cp pid savepid
 
88201
   { set +x
 
88202
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
88203
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
88204
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88205
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88206
at_status=$? at_failed=false
 
88207
$at_check_filter
 
88208
echo stderr:; cat "$at_stderr"
 
88209
echo stdout:; cat "$at_stdout"
 
88210
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88211
$at_failed && at_fn_log_failure
 
88212
$at_traceon; }
 
88213
 
 
88214
   { set +x
 
88215
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88216
     # in the normal case.  POSIX doesn't require fractional times to
 
88217
     # work, so this might not work.
 
88218
     sleep 0.1
 
88219
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88220
     # Then wait up to 10 seconds.
 
88221
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88222
       sleep 1
 
88223
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88224
     done
 
88225
     exit 1"
 
88226
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88227
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88228
     # in the normal case.  POSIX doesn't require fractional times to
 
88229
     # work, so this might not work.
 
88230
     sleep 0.1
 
88231
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88232
     # Then wait up to 10 seconds.
 
88233
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88234
       sleep 1
 
88235
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88236
     done
 
88237
     exit 1
 
88238
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88239
at_status=$? at_failed=false
 
88240
$at_check_filter
 
88241
echo stderr:; cat "$at_stderr"
 
88242
echo stdout:; cat "$at_stdout"
 
88243
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88244
if $at_failed; then :
 
88245
  kill `cat savepid`
 
88246
fi
 
88247
$at_failed && at_fn_log_failure
 
88248
$at_traceon; }
 
88249
 
 
88250
fi
 
88251
$at_failed && at_fn_log_failure
 
88252
$at_traceon; }
 
88253
 
 
88254
 
 
88255
   # Check multiple queries in a single run.
 
88256
   { set +x
 
88257
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a"
 
88258
at_fn_check_prepare_trace "ovs-vsctl.at:174"
 
88259
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a
 
88260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88261
at_status=$? at_failed=false
 
88262
$at_check_filter
 
88263
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88264
echo >>"$at_stdout"; $as_echo "a
 
88265
0
 
88266
" | \
 
88267
  $at_diff - "$at_stdout" || at_failed=:
 
88268
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88269
if $at_failed; then :
 
88270
  cp pid savepid
 
88271
   { set +x
 
88272
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
88273
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
88274
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88276
at_status=$? at_failed=false
 
88277
$at_check_filter
 
88278
echo stderr:; cat "$at_stderr"
 
88279
echo stdout:; cat "$at_stdout"
 
88280
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88281
$at_failed && at_fn_log_failure
 
88282
$at_traceon; }
 
88283
 
 
88284
   { set +x
 
88285
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88286
     # in the normal case.  POSIX doesn't require fractional times to
 
88287
     # work, so this might not work.
 
88288
     sleep 0.1
 
88289
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88290
     # Then wait up to 10 seconds.
 
88291
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88292
       sleep 1
 
88293
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88294
     done
 
88295
     exit 1"
 
88296
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88297
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88298
     # in the normal case.  POSIX doesn't require fractional times to
 
88299
     # work, so this might not work.
 
88300
     sleep 0.1
 
88301
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88302
     # Then wait up to 10 seconds.
 
88303
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88304
       sleep 1
 
88305
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88306
     done
 
88307
     exit 1
 
88308
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88309
at_status=$? at_failed=false
 
88310
$at_check_filter
 
88311
echo stderr:; cat "$at_stderr"
 
88312
echo stdout:; cat "$at_stdout"
 
88313
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88314
if $at_failed; then :
 
88315
  kill `cat savepid`
 
88316
fi
 
88317
$at_failed && at_fn_log_failure
 
88318
$at_traceon; }
 
88319
 
 
88320
fi
 
88321
$at_failed && at_fn_log_failure
 
88322
$at_traceon; }
 
88323
{ set +x
 
88324
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent b
 
88325
"
 
88326
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
88327
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent b
 
88328
 
 
88329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88330
at_status=$? at_failed=false
 
88331
$at_check_filter
 
88332
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88333
echo >>"$at_stdout"; $as_echo "b
 
88334
" | \
 
88335
  $at_diff - "$at_stdout" || at_failed=:
 
88336
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88337
if $at_failed; then :
 
88338
  cp pid savepid
 
88339
   { set +x
 
88340
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
88341
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
88342
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88343
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88344
at_status=$? at_failed=false
 
88345
$at_check_filter
 
88346
echo stderr:; cat "$at_stderr"
 
88347
echo stdout:; cat "$at_stdout"
 
88348
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88349
$at_failed && at_fn_log_failure
 
88350
$at_traceon; }
 
88351
 
 
88352
   { set +x
 
88353
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88354
     # in the normal case.  POSIX doesn't require fractional times to
 
88355
     # work, so this might not work.
 
88356
     sleep 0.1
 
88357
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88358
     # Then wait up to 10 seconds.
 
88359
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88360
       sleep 1
 
88361
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88362
     done
 
88363
     exit 1"
 
88364
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88365
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88366
     # in the normal case.  POSIX doesn't require fractional times to
 
88367
     # work, so this might not work.
 
88368
     sleep 0.1
 
88369
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88370
     # Then wait up to 10 seconds.
 
88371
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88372
       sleep 1
 
88373
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88374
     done
 
88375
     exit 1
 
88376
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88377
at_status=$? at_failed=false
 
88378
$at_check_filter
 
88379
echo stderr:; cat "$at_stderr"
 
88380
echo stdout:; cat "$at_stdout"
 
88381
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88382
if $at_failed; then :
 
88383
  kill `cat savepid`
 
88384
fi
 
88385
$at_failed && at_fn_log_failure
 
88386
$at_traceon; }
 
88387
 
 
88388
fi
 
88389
$at_failed && at_fn_log_failure
 
88390
$at_traceon; }
 
88391
 
 
88392
 
 
88393
   # Check br-to-vlan, without --oneline.
 
88394
   { set +x
 
88395
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan b
 
88396
"
 
88397
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
88398
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan b
 
88399
 
 
88400
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88401
at_status=$? at_failed=false
 
88402
$at_check_filter
 
88403
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88404
echo >>"$at_stdout"; $as_echo "0
 
88405
" | \
 
88406
  $at_diff - "$at_stdout" || at_failed=:
 
88407
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88408
if $at_failed; then :
 
88409
  cp pid savepid
 
88410
   { set +x
 
88411
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
88412
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
88413
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88414
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88415
at_status=$? at_failed=false
 
88416
$at_check_filter
 
88417
echo stderr:; cat "$at_stderr"
 
88418
echo stdout:; cat "$at_stdout"
 
88419
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88420
$at_failed && at_fn_log_failure
 
88421
$at_traceon; }
 
88422
 
 
88423
   { set +x
 
88424
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88425
     # in the normal case.  POSIX doesn't require fractional times to
 
88426
     # work, so this might not work.
 
88427
     sleep 0.1
 
88428
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88429
     # Then wait up to 10 seconds.
 
88430
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88431
       sleep 1
 
88432
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88433
     done
 
88434
     exit 1"
 
88435
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88436
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88437
     # in the normal case.  POSIX doesn't require fractional times to
 
88438
     # work, so this might not work.
 
88439
     sleep 0.1
 
88440
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88441
     # Then wait up to 10 seconds.
 
88442
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88443
       sleep 1
 
88444
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88445
     done
 
88446
     exit 1
 
88447
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88448
at_status=$? at_failed=false
 
88449
$at_check_filter
 
88450
echo stderr:; cat "$at_stderr"
 
88451
echo stdout:; cat "$at_stdout"
 
88452
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88453
if $at_failed; then :
 
88454
  kill `cat savepid`
 
88455
fi
 
88456
$at_failed && at_fn_log_failure
 
88457
$at_traceon; }
 
88458
 
 
88459
fi
 
88460
$at_failed && at_fn_log_failure
 
88461
$at_traceon; }
 
88462
 
 
88463
   # Check br-to-vlan, with --oneline.
 
88464
   # (This particular test is interesting with --oneline because it returns
 
88465
   # an integer instead of a string and that can cause type mismatches inside
 
88466
   # python if not done carefully.)
 
88467
   { set +x
 
88468
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan b
 
88469
"
 
88470
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:174"
 
88471
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan b
 
88472
 
 
88473
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88474
at_status=$? at_failed=false
 
88475
$at_check_filter
 
88476
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88477
echo >>"$at_stdout"; $as_echo "0
 
88478
" | \
 
88479
  $at_diff - "$at_stdout" || at_failed=:
 
88480
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88481
if $at_failed; then :
 
88482
  cp pid savepid
 
88483
   { set +x
 
88484
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
88485
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
88486
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88487
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88488
at_status=$? at_failed=false
 
88489
$at_check_filter
 
88490
echo stderr:; cat "$at_stderr"
 
88491
echo stdout:; cat "$at_stdout"
 
88492
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88493
$at_failed && at_fn_log_failure
 
88494
$at_traceon; }
 
88495
 
 
88496
   { set +x
 
88497
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88498
     # in the normal case.  POSIX doesn't require fractional times to
 
88499
     # work, so this might not work.
 
88500
     sleep 0.1
 
88501
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88502
     # Then wait up to 10 seconds.
 
88503
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88504
       sleep 1
 
88505
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88506
     done
 
88507
     exit 1"
 
88508
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88509
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88510
     # in the normal case.  POSIX doesn't require fractional times to
 
88511
     # work, so this might not work.
 
88512
     sleep 0.1
 
88513
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88514
     # Then wait up to 10 seconds.
 
88515
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88516
       sleep 1
 
88517
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88518
     done
 
88519
     exit 1
 
88520
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88521
at_status=$? at_failed=false
 
88522
$at_check_filter
 
88523
echo stderr:; cat "$at_stderr"
 
88524
echo stdout:; cat "$at_stdout"
 
88525
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88526
if $at_failed; then :
 
88527
  kill `cat savepid`
 
88528
fi
 
88529
$at_failed && at_fn_log_failure
 
88530
$at_traceon; }
 
88531
 
 
88532
fi
 
88533
$at_failed && at_fn_log_failure
 
88534
$at_traceon; }
 
88535
 
 
88536
 
 
88537
   # Check multiple queries in a single run.
 
88538
   { set +x
 
88539
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent b -- br-to-vlan b"
 
88540
at_fn_check_prepare_trace "ovs-vsctl.at:174"
 
88541
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent b -- br-to-vlan b
 
88542
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88543
at_status=$? at_failed=false
 
88544
$at_check_filter
 
88545
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88546
echo >>"$at_stdout"; $as_echo "b
 
88547
0
 
88548
" | \
 
88549
  $at_diff - "$at_stdout" || at_failed=:
 
88550
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88551
if $at_failed; then :
 
88552
  cp pid savepid
 
88553
   { set +x
 
88554
$as_echo "$at_srcdir/ovs-vsctl.at:174: ovs-appctl -t \$PWD/unixctl -e exit"
 
88555
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:174"
 
88556
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88557
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88558
at_status=$? at_failed=false
 
88559
$at_check_filter
 
88560
echo stderr:; cat "$at_stderr"
 
88561
echo stdout:; cat "$at_stdout"
 
88562
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88563
$at_failed && at_fn_log_failure
 
88564
$at_traceon; }
 
88565
 
 
88566
   { set +x
 
88567
$as_echo "$at_srcdir/ovs-vsctl.at:174: # First try a quick sleep, so that the test completes very quickly
 
88568
     # in the normal case.  POSIX doesn't require fractional times to
 
88569
     # work, so this might not work.
 
88570
     sleep 0.1
 
88571
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88572
     # Then wait up to 10 seconds.
 
88573
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88574
       sleep 1
 
88575
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88576
     done
 
88577
     exit 1"
 
88578
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:174"
 
88579
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88580
     # in the normal case.  POSIX doesn't require fractional times to
 
88581
     # work, so this might not work.
 
88582
     sleep 0.1
 
88583
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88584
     # Then wait up to 10 seconds.
 
88585
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88586
       sleep 1
 
88587
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88588
     done
 
88589
     exit 1
 
88590
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88591
at_status=$? at_failed=false
 
88592
$at_check_filter
 
88593
echo stderr:; cat "$at_stderr"
 
88594
echo stdout:; cat "$at_stdout"
 
88595
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:174"
 
88596
if $at_failed; then :
 
88597
  kill `cat savepid`
 
88598
fi
 
88599
$at_failed && at_fn_log_failure
 
88600
$at_traceon; }
 
88601
 
 
88602
fi
 
88603
$at_failed && at_fn_log_failure
 
88604
$at_traceon; }
 
88605
 
 
88606
   { set +x
 
88607
$as_echo "$at_srcdir/ovs-vsctl.at:175: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
88608
"
 
88609
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:175"
 
88610
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
88611
 
 
88612
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88613
at_status=$? at_failed=false
 
88614
$at_check_filter
 
88615
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88616
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
88617
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88618
if $at_failed; then :
 
88619
  cp pid savepid
 
88620
   { set +x
 
88621
$as_echo "$at_srcdir/ovs-vsctl.at:175: ovs-appctl -t \$PWD/unixctl -e exit"
 
88622
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:175"
 
88623
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88624
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88625
at_status=$? at_failed=false
 
88626
$at_check_filter
 
88627
echo stderr:; cat "$at_stderr"
 
88628
echo stdout:; cat "$at_stdout"
 
88629
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88630
$at_failed && at_fn_log_failure
 
88631
$at_traceon; }
 
88632
 
 
88633
   { set +x
 
88634
$as_echo "$at_srcdir/ovs-vsctl.at:175: # First try a quick sleep, so that the test completes very quickly
 
88635
     # in the normal case.  POSIX doesn't require fractional times to
 
88636
     # work, so this might not work.
 
88637
     sleep 0.1
 
88638
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88639
     # Then wait up to 10 seconds.
 
88640
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88641
       sleep 1
 
88642
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88643
     done
 
88644
     exit 1"
 
88645
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:175"
 
88646
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88647
     # in the normal case.  POSIX doesn't require fractional times to
 
88648
     # work, so this might not work.
 
88649
     sleep 0.1
 
88650
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88651
     # Then wait up to 10 seconds.
 
88652
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88653
       sleep 1
 
88654
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88655
     done
 
88656
     exit 1
 
88657
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88658
at_status=$? at_failed=false
 
88659
$at_check_filter
 
88660
echo stderr:; cat "$at_stderr"
 
88661
echo stdout:; cat "$at_stdout"
 
88662
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88663
if $at_failed; then :
 
88664
  kill `cat savepid`
 
88665
fi
 
88666
$at_failed && at_fn_log_failure
 
88667
$at_traceon; }
 
88668
 
 
88669
fi
 
88670
$at_failed && at_fn_log_failure
 
88671
$at_traceon; }
 
88672
 
 
88673
 
 
88674
      { set +x
 
88675
$as_echo "$at_srcdir/ovs-vsctl.at:175: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
88676
"
 
88677
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:175"
 
88678
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
88679
 
 
88680
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88681
at_status=$? at_failed=false
 
88682
$at_check_filter
 
88683
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88684
echo >>"$at_stdout"; $as_echo "
 
88685
" | \
 
88686
  $at_diff - "$at_stdout" || at_failed=:
 
88687
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88688
if $at_failed; then :
 
88689
  cp pid savepid
 
88690
   { set +x
 
88691
$as_echo "$at_srcdir/ovs-vsctl.at:175: ovs-appctl -t \$PWD/unixctl -e exit"
 
88692
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:175"
 
88693
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88694
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88695
at_status=$? at_failed=false
 
88696
$at_check_filter
 
88697
echo stderr:; cat "$at_stderr"
 
88698
echo stdout:; cat "$at_stdout"
 
88699
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88700
$at_failed && at_fn_log_failure
 
88701
$at_traceon; }
 
88702
 
 
88703
   { set +x
 
88704
$as_echo "$at_srcdir/ovs-vsctl.at:175: # First try a quick sleep, so that the test completes very quickly
 
88705
     # in the normal case.  POSIX doesn't require fractional times to
 
88706
     # work, so this might not work.
 
88707
     sleep 0.1
 
88708
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88709
     # Then wait up to 10 seconds.
 
88710
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88711
       sleep 1
 
88712
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88713
     done
 
88714
     exit 1"
 
88715
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:175"
 
88716
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88717
     # in the normal case.  POSIX doesn't require fractional times to
 
88718
     # work, so this might not work.
 
88719
     sleep 0.1
 
88720
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88721
     # Then wait up to 10 seconds.
 
88722
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88723
       sleep 1
 
88724
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88725
     done
 
88726
     exit 1
 
88727
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88728
at_status=$? at_failed=false
 
88729
$at_check_filter
 
88730
echo stderr:; cat "$at_stderr"
 
88731
echo stdout:; cat "$at_stdout"
 
88732
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88733
if $at_failed; then :
 
88734
  kill `cat savepid`
 
88735
fi
 
88736
$at_failed && at_fn_log_failure
 
88737
$at_traceon; }
 
88738
 
 
88739
fi
 
88740
$at_failed && at_fn_log_failure
 
88741
$at_traceon; }
 
88742
 
 
88743
   { set +x
 
88744
$as_echo "$at_srcdir/ovs-vsctl.at:175: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
88745
"
 
88746
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:175"
 
88747
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
88748
 
 
88749
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88750
at_status=$? at_failed=false
 
88751
$at_check_filter
 
88752
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named a
 
88753
" | \
 
88754
  $at_diff - "$at_stderr" || at_failed=:
 
88755
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
88756
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88757
if $at_failed; then :
 
88758
  cp pid savepid
 
88759
   { set +x
 
88760
$as_echo "$at_srcdir/ovs-vsctl.at:175: ovs-appctl -t \$PWD/unixctl -e exit"
 
88761
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:175"
 
88762
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88763
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88764
at_status=$? at_failed=false
 
88765
$at_check_filter
 
88766
echo stderr:; cat "$at_stderr"
 
88767
echo stdout:; cat "$at_stdout"
 
88768
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88769
$at_failed && at_fn_log_failure
 
88770
$at_traceon; }
 
88771
 
 
88772
   { set +x
 
88773
$as_echo "$at_srcdir/ovs-vsctl.at:175: # First try a quick sleep, so that the test completes very quickly
 
88774
     # in the normal case.  POSIX doesn't require fractional times to
 
88775
     # work, so this might not work.
 
88776
     sleep 0.1
 
88777
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88778
     # Then wait up to 10 seconds.
 
88779
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88780
       sleep 1
 
88781
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88782
     done
 
88783
     exit 1"
 
88784
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:175"
 
88785
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88786
     # in the normal case.  POSIX doesn't require fractional times to
 
88787
     # work, so this might not work.
 
88788
     sleep 0.1
 
88789
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88790
     # Then wait up to 10 seconds.
 
88791
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88792
       sleep 1
 
88793
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88794
     done
 
88795
     exit 1
 
88796
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88797
at_status=$? at_failed=false
 
88798
$at_check_filter
 
88799
echo stderr:; cat "$at_stderr"
 
88800
echo stdout:; cat "$at_stdout"
 
88801
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:175"
 
88802
if $at_failed; then :
 
88803
  kill `cat savepid`
 
88804
fi
 
88805
$at_failed && at_fn_log_failure
 
88806
$at_traceon; }
 
88807
 
 
88808
fi
 
88809
$at_failed && at_fn_log_failure
 
88810
$at_traceon; }
 
88811
 
 
88812
 
 
88813
{ set +x
 
88814
$as_echo "$at_srcdir/ovs-vsctl.at:176: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
88815
"
 
88816
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:176"
 
88817
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
88818
 
 
88819
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88820
at_status=$? at_failed=false
 
88821
$at_check_filter
 
88822
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88823
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
88824
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:176"
 
88825
if $at_failed; then :
 
88826
  cp pid savepid
 
88827
   { set +x
 
88828
$as_echo "$at_srcdir/ovs-vsctl.at:176: ovs-appctl -t \$PWD/unixctl -e exit"
 
88829
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:176"
 
88830
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88831
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88832
at_status=$? at_failed=false
 
88833
$at_check_filter
 
88834
echo stderr:; cat "$at_stderr"
 
88835
echo stdout:; cat "$at_stdout"
 
88836
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:176"
 
88837
$at_failed && at_fn_log_failure
 
88838
$at_traceon; }
 
88839
 
 
88840
   { set +x
 
88841
$as_echo "$at_srcdir/ovs-vsctl.at:176: # First try a quick sleep, so that the test completes very quickly
 
88842
     # in the normal case.  POSIX doesn't require fractional times to
 
88843
     # work, so this might not work.
 
88844
     sleep 0.1
 
88845
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88846
     # Then wait up to 10 seconds.
 
88847
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88848
       sleep 1
 
88849
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88850
     done
 
88851
     exit 1"
 
88852
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:176"
 
88853
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88854
     # in the normal case.  POSIX doesn't require fractional times to
 
88855
     # work, so this might not work.
 
88856
     sleep 0.1
 
88857
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88858
     # Then wait up to 10 seconds.
 
88859
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88860
       sleep 1
 
88861
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88862
     done
 
88863
     exit 1
 
88864
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88865
at_status=$? at_failed=false
 
88866
$at_check_filter
 
88867
echo stderr:; cat "$at_stderr"
 
88868
echo stdout:; cat "$at_stdout"
 
88869
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:176"
 
88870
if $at_failed; then :
 
88871
  kill `cat savepid`
 
88872
fi
 
88873
$at_failed && at_fn_log_failure
 
88874
$at_traceon; }
 
88875
 
 
88876
fi
 
88877
$at_failed && at_fn_log_failure
 
88878
$at_traceon; }
 
88879
 
 
88880
   { set +x
 
88881
$as_echo "$at_srcdir/ovs-vsctl.at:176: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
88882
"
 
88883
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:176"
 
88884
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
88885
 
 
88886
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88887
at_status=$? at_failed=false
 
88888
$at_check_filter
 
88889
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named a
 
88890
" | \
 
88891
  $at_diff - "$at_stderr" || at_failed=:
 
88892
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
88893
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:176"
 
88894
if $at_failed; then :
 
88895
  cp pid savepid
 
88896
   { set +x
 
88897
$as_echo "$at_srcdir/ovs-vsctl.at:176: ovs-appctl -t \$PWD/unixctl -e exit"
 
88898
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:176"
 
88899
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88900
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88901
at_status=$? at_failed=false
 
88902
$at_check_filter
 
88903
echo stderr:; cat "$at_stderr"
 
88904
echo stdout:; cat "$at_stdout"
 
88905
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:176"
 
88906
$at_failed && at_fn_log_failure
 
88907
$at_traceon; }
 
88908
 
 
88909
   { set +x
 
88910
$as_echo "$at_srcdir/ovs-vsctl.at:176: # First try a quick sleep, so that the test completes very quickly
 
88911
     # in the normal case.  POSIX doesn't require fractional times to
 
88912
     # work, so this might not work.
 
88913
     sleep 0.1
 
88914
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88915
     # Then wait up to 10 seconds.
 
88916
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88917
       sleep 1
 
88918
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88919
     done
 
88920
     exit 1"
 
88921
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:176"
 
88922
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88923
     # in the normal case.  POSIX doesn't require fractional times to
 
88924
     # work, so this might not work.
 
88925
     sleep 0.1
 
88926
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88927
     # Then wait up to 10 seconds.
 
88928
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88929
       sleep 1
 
88930
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88931
     done
 
88932
     exit 1
 
88933
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88934
at_status=$? at_failed=false
 
88935
$at_check_filter
 
88936
echo stderr:; cat "$at_stderr"
 
88937
echo stdout:; cat "$at_stdout"
 
88938
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:176"
 
88939
if $at_failed; then :
 
88940
  kill `cat savepid`
 
88941
fi
 
88942
$at_failed && at_fn_log_failure
 
88943
$at_traceon; }
 
88944
 
 
88945
fi
 
88946
$at_failed && at_fn_log_failure
 
88947
$at_traceon; }
 
88948
 
 
88949
 
 
88950
   { set +x
 
88951
$as_echo "$at_srcdir/ovs-vsctl.at:177: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports b
 
88952
"
 
88953
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:177"
 
88954
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports b
 
88955
 
 
88956
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88957
at_status=$? at_failed=false
 
88958
$at_check_filter
 
88959
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
88960
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
88961
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
88962
if $at_failed; then :
 
88963
  cp pid savepid
 
88964
   { set +x
 
88965
$as_echo "$at_srcdir/ovs-vsctl.at:177: ovs-appctl -t \$PWD/unixctl -e exit"
 
88966
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:177"
 
88967
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
88968
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
88969
at_status=$? at_failed=false
 
88970
$at_check_filter
 
88971
echo stderr:; cat "$at_stderr"
 
88972
echo stdout:; cat "$at_stdout"
 
88973
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
88974
$at_failed && at_fn_log_failure
 
88975
$at_traceon; }
 
88976
 
 
88977
   { set +x
 
88978
$as_echo "$at_srcdir/ovs-vsctl.at:177: # First try a quick sleep, so that the test completes very quickly
 
88979
     # in the normal case.  POSIX doesn't require fractional times to
 
88980
     # work, so this might not work.
 
88981
     sleep 0.1
 
88982
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88983
     # Then wait up to 10 seconds.
 
88984
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88985
       sleep 1
 
88986
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
88987
     done
 
88988
     exit 1"
 
88989
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:177"
 
88990
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
88991
     # in the normal case.  POSIX doesn't require fractional times to
 
88992
     # work, so this might not work.
 
88993
     sleep 0.1
 
88994
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
88995
     # Then wait up to 10 seconds.
 
88996
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
88997
       sleep 1
 
88998
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
88999
     done
 
89000
     exit 1
 
89001
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89002
at_status=$? at_failed=false
 
89003
$at_check_filter
 
89004
echo stderr:; cat "$at_stderr"
 
89005
echo stdout:; cat "$at_stdout"
 
89006
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
89007
if $at_failed; then :
 
89008
  kill `cat savepid`
 
89009
fi
 
89010
$at_failed && at_fn_log_failure
 
89011
$at_traceon; }
 
89012
 
 
89013
fi
 
89014
$at_failed && at_fn_log_failure
 
89015
$at_traceon; }
 
89016
 
 
89017
 
 
89018
      { set +x
 
89019
$as_echo "$at_srcdir/ovs-vsctl.at:177: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports b
 
89020
"
 
89021
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:177"
 
89022
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports b
 
89023
 
 
89024
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89025
at_status=$? at_failed=false
 
89026
$at_check_filter
 
89027
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89028
echo >>"$at_stdout"; $as_echo "
 
89029
" | \
 
89030
  $at_diff - "$at_stdout" || at_failed=:
 
89031
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
89032
if $at_failed; then :
 
89033
  cp pid savepid
 
89034
   { set +x
 
89035
$as_echo "$at_srcdir/ovs-vsctl.at:177: ovs-appctl -t \$PWD/unixctl -e exit"
 
89036
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:177"
 
89037
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89038
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89039
at_status=$? at_failed=false
 
89040
$at_check_filter
 
89041
echo stderr:; cat "$at_stderr"
 
89042
echo stdout:; cat "$at_stdout"
 
89043
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
89044
$at_failed && at_fn_log_failure
 
89045
$at_traceon; }
 
89046
 
 
89047
   { set +x
 
89048
$as_echo "$at_srcdir/ovs-vsctl.at:177: # First try a quick sleep, so that the test completes very quickly
 
89049
     # in the normal case.  POSIX doesn't require fractional times to
 
89050
     # work, so this might not work.
 
89051
     sleep 0.1
 
89052
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89053
     # Then wait up to 10 seconds.
 
89054
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89055
       sleep 1
 
89056
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89057
     done
 
89058
     exit 1"
 
89059
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:177"
 
89060
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89061
     # in the normal case.  POSIX doesn't require fractional times to
 
89062
     # work, so this might not work.
 
89063
     sleep 0.1
 
89064
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89065
     # Then wait up to 10 seconds.
 
89066
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89067
       sleep 1
 
89068
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89069
     done
 
89070
     exit 1
 
89071
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89072
at_status=$? at_failed=false
 
89073
$at_check_filter
 
89074
echo stderr:; cat "$at_stderr"
 
89075
echo stdout:; cat "$at_stdout"
 
89076
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
89077
if $at_failed; then :
 
89078
  kill `cat savepid`
 
89079
fi
 
89080
$at_failed && at_fn_log_failure
 
89081
$at_traceon; }
 
89082
 
 
89083
fi
 
89084
$at_failed && at_fn_log_failure
 
89085
$at_traceon; }
 
89086
 
 
89087
   { set +x
 
89088
$as_echo "$at_srcdir/ovs-vsctl.at:177: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b
 
89089
"
 
89090
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:177"
 
89091
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b
 
89092
 
 
89093
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89094
at_status=$? at_failed=false
 
89095
$at_check_filter
 
89096
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named b
 
89097
" | \
 
89098
  $at_diff - "$at_stderr" || at_failed=:
 
89099
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
89100
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
89101
if $at_failed; then :
 
89102
  cp pid savepid
 
89103
   { set +x
 
89104
$as_echo "$at_srcdir/ovs-vsctl.at:177: ovs-appctl -t \$PWD/unixctl -e exit"
 
89105
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:177"
 
89106
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89107
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89108
at_status=$? at_failed=false
 
89109
$at_check_filter
 
89110
echo stderr:; cat "$at_stderr"
 
89111
echo stdout:; cat "$at_stdout"
 
89112
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
89113
$at_failed && at_fn_log_failure
 
89114
$at_traceon; }
 
89115
 
 
89116
   { set +x
 
89117
$as_echo "$at_srcdir/ovs-vsctl.at:177: # First try a quick sleep, so that the test completes very quickly
 
89118
     # in the normal case.  POSIX doesn't require fractional times to
 
89119
     # work, so this might not work.
 
89120
     sleep 0.1
 
89121
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89122
     # Then wait up to 10 seconds.
 
89123
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89124
       sleep 1
 
89125
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89126
     done
 
89127
     exit 1"
 
89128
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:177"
 
89129
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89130
     # in the normal case.  POSIX doesn't require fractional times to
 
89131
     # work, so this might not work.
 
89132
     sleep 0.1
 
89133
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89134
     # Then wait up to 10 seconds.
 
89135
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89136
       sleep 1
 
89137
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89138
     done
 
89139
     exit 1
 
89140
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89141
at_status=$? at_failed=false
 
89142
$at_check_filter
 
89143
echo stderr:; cat "$at_stderr"
 
89144
echo stdout:; cat "$at_stdout"
 
89145
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:177"
 
89146
if $at_failed; then :
 
89147
  kill `cat savepid`
 
89148
fi
 
89149
$at_failed && at_fn_log_failure
 
89150
$at_traceon; }
 
89151
 
 
89152
fi
 
89153
$at_failed && at_fn_log_failure
 
89154
$at_traceon; }
 
89155
 
 
89156
 
 
89157
{ set +x
 
89158
$as_echo "$at_srcdir/ovs-vsctl.at:178: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces b
 
89159
"
 
89160
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:178"
 
89161
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces b
 
89162
 
 
89163
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89164
at_status=$? at_failed=false
 
89165
$at_check_filter
 
89166
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89167
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
89168
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:178"
 
89169
if $at_failed; then :
 
89170
  cp pid savepid
 
89171
   { set +x
 
89172
$as_echo "$at_srcdir/ovs-vsctl.at:178: ovs-appctl -t \$PWD/unixctl -e exit"
 
89173
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:178"
 
89174
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89175
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89176
at_status=$? at_failed=false
 
89177
$at_check_filter
 
89178
echo stderr:; cat "$at_stderr"
 
89179
echo stdout:; cat "$at_stdout"
 
89180
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:178"
 
89181
$at_failed && at_fn_log_failure
 
89182
$at_traceon; }
 
89183
 
 
89184
   { set +x
 
89185
$as_echo "$at_srcdir/ovs-vsctl.at:178: # First try a quick sleep, so that the test completes very quickly
 
89186
     # in the normal case.  POSIX doesn't require fractional times to
 
89187
     # work, so this might not work.
 
89188
     sleep 0.1
 
89189
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89190
     # Then wait up to 10 seconds.
 
89191
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89192
       sleep 1
 
89193
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89194
     done
 
89195
     exit 1"
 
89196
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:178"
 
89197
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89198
     # in the normal case.  POSIX doesn't require fractional times to
 
89199
     # work, so this might not work.
 
89200
     sleep 0.1
 
89201
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89202
     # Then wait up to 10 seconds.
 
89203
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89204
       sleep 1
 
89205
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89206
     done
 
89207
     exit 1
 
89208
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89209
at_status=$? at_failed=false
 
89210
$at_check_filter
 
89211
echo stderr:; cat "$at_stderr"
 
89212
echo stdout:; cat "$at_stdout"
 
89213
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:178"
 
89214
if $at_failed; then :
 
89215
  kill `cat savepid`
 
89216
fi
 
89217
$at_failed && at_fn_log_failure
 
89218
$at_traceon; }
 
89219
 
 
89220
fi
 
89221
$at_failed && at_fn_log_failure
 
89222
$at_traceon; }
 
89223
 
 
89224
   { set +x
 
89225
$as_echo "$at_srcdir/ovs-vsctl.at:178: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b
 
89226
"
 
89227
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:178"
 
89228
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b
 
89229
 
 
89230
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89231
at_status=$? at_failed=false
 
89232
$at_check_filter
 
89233
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named b
 
89234
" | \
 
89235
  $at_diff - "$at_stderr" || at_failed=:
 
89236
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
89237
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:178"
 
89238
if $at_failed; then :
 
89239
  cp pid savepid
 
89240
   { set +x
 
89241
$as_echo "$at_srcdir/ovs-vsctl.at:178: ovs-appctl -t \$PWD/unixctl -e exit"
 
89242
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:178"
 
89243
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89244
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89245
at_status=$? at_failed=false
 
89246
$at_check_filter
 
89247
echo stderr:; cat "$at_stderr"
 
89248
echo stdout:; cat "$at_stdout"
 
89249
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:178"
 
89250
$at_failed && at_fn_log_failure
 
89251
$at_traceon; }
 
89252
 
 
89253
   { set +x
 
89254
$as_echo "$at_srcdir/ovs-vsctl.at:178: # First try a quick sleep, so that the test completes very quickly
 
89255
     # in the normal case.  POSIX doesn't require fractional times to
 
89256
     # work, so this might not work.
 
89257
     sleep 0.1
 
89258
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89259
     # Then wait up to 10 seconds.
 
89260
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89261
       sleep 1
 
89262
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89263
     done
 
89264
     exit 1"
 
89265
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:178"
 
89266
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89267
     # in the normal case.  POSIX doesn't require fractional times to
 
89268
     # work, so this might not work.
 
89269
     sleep 0.1
 
89270
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89271
     # Then wait up to 10 seconds.
 
89272
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89273
       sleep 1
 
89274
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89275
     done
 
89276
     exit 1
 
89277
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89278
at_status=$? at_failed=false
 
89279
$at_check_filter
 
89280
echo stderr:; cat "$at_stderr"
 
89281
echo stdout:; cat "$at_stdout"
 
89282
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:178"
 
89283
if $at_failed; then :
 
89284
  kill `cat savepid`
 
89285
fi
 
89286
$at_failed && at_fn_log_failure
 
89287
$at_traceon; }
 
89288
 
 
89289
fi
 
89290
$at_failed && at_fn_log_failure
 
89291
$at_traceon; }
 
89292
 
 
89293
 
 
89294
cp pid savepid
 
89295
   { set +x
 
89296
$as_echo "$at_srcdir/ovs-vsctl.at:179: ovs-appctl -t \$PWD/unixctl -e exit"
 
89297
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:179"
 
89298
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89299
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89300
at_status=$? at_failed=false
 
89301
$at_check_filter
 
89302
echo stderr:; cat "$at_stderr"
 
89303
echo stdout:; cat "$at_stdout"
 
89304
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:179"
 
89305
$at_failed && at_fn_log_failure
 
89306
$at_traceon; }
 
89307
 
 
89308
   { set +x
 
89309
$as_echo "$at_srcdir/ovs-vsctl.at:179: # First try a quick sleep, so that the test completes very quickly
 
89310
     # in the normal case.  POSIX doesn't require fractional times to
 
89311
     # work, so this might not work.
 
89312
     sleep 0.1
 
89313
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89314
     # Then wait up to 10 seconds.
 
89315
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89316
       sleep 1
 
89317
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89318
     done
 
89319
     exit 1"
 
89320
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:179"
 
89321
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89322
     # in the normal case.  POSIX doesn't require fractional times to
 
89323
     # work, so this might not work.
 
89324
     sleep 0.1
 
89325
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89326
     # Then wait up to 10 seconds.
 
89327
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89328
       sleep 1
 
89329
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89330
     done
 
89331
     exit 1
 
89332
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89333
at_status=$? at_failed=false
 
89334
$at_check_filter
 
89335
echo stderr:; cat "$at_stderr"
 
89336
echo stdout:; cat "$at_stdout"
 
89337
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:179"
 
89338
if $at_failed; then :
 
89339
  kill `cat savepid`
 
89340
fi
 
89341
$at_failed && at_fn_log_failure
 
89342
$at_traceon; }
 
89343
 
 
89344
  set +x
 
89345
  $at_times_p && times >"$at_times_file"
 
89346
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
89347
read at_status <"$at_status_file"
 
89348
#AT_STOP_945
 
89349
#AT_START_946
 
89350
at_fn_group_banner 946 'ovs-vsctl.at:182' \
 
89351
  "add-br a, add-br b, del-br a" "                   " 65
 
89352
at_xfail=no
 
89353
(
 
89354
  $as_echo "946. $at_setup_line: testing $at_desc ..."
 
89355
  $at_traceon
 
89356
 
 
89357
 
 
89358
{ set +x
 
89359
$as_echo "$at_srcdir/ovs-vsctl.at:184: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
89360
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:184"
 
89361
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
89362
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89363
at_status=$? at_failed=false
 
89364
$at_check_filter
 
89365
echo stderr:; cat "$at_stderr"
 
89366
echo stdout:; tee stdout <"$at_stdout"
 
89367
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:184"
 
89368
$at_failed && at_fn_log_failure
 
89369
$at_traceon; }
 
89370
 
 
89371
   { set +x
 
89372
$as_echo "$at_srcdir/ovs-vsctl.at:184: ovsdb-tool transact db \\
 
89373
        '[\"Open_vSwitch\",
 
89374
          {\"op\": \"insert\",
 
89375
           \"table\": \"Open_vSwitch\",
 
89376
           \"row\": {}}]'"
 
89377
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:184"
 
89378
( $at_check_trace; ovsdb-tool transact db \
 
89379
        '["Open_vSwitch",
 
89380
          {"op": "insert",
 
89381
           "table": "Open_vSwitch",
 
89382
           "row": {}}]'
 
89383
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89384
at_status=$? at_failed=false
 
89385
$at_check_filter
 
89386
echo stderr:; cat "$at_stderr"
 
89387
echo stdout:; cat "$at_stdout"
 
89388
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:184"
 
89389
$at_failed && at_fn_log_failure
 
89390
$at_traceon; }
 
89391
 
 
89392
   { set +x
 
89393
$as_echo "$at_srcdir/ovs-vsctl.at:184: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
89394
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:184"
 
89395
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
89396
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89397
at_status=$? at_failed=false
 
89398
$at_check_filter
 
89399
echo stderr:; cat "$at_stderr"
 
89400
echo stdout:; cat "$at_stdout"
 
89401
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:184"
 
89402
$at_failed && at_fn_log_failure
 
89403
$at_traceon; }
 
89404
 
 
89405
{ set +x
 
89406
$as_echo "$at_srcdir/ovs-vsctl.at:185: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
89407
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br b
 
89408
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br a
 
89409
"
 
89410
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:185"
 
89411
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
89412
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br b
 
89413
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br a
 
89414
 
 
89415
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89416
at_status=$? at_failed=false
 
89417
$at_check_filter
 
89418
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89419
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
89420
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:185"
 
89421
if $at_failed; then :
 
89422
  cp pid savepid
 
89423
   { set +x
 
89424
$as_echo "$at_srcdir/ovs-vsctl.at:185: ovs-appctl -t \$PWD/unixctl -e exit"
 
89425
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:185"
 
89426
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89428
at_status=$? at_failed=false
 
89429
$at_check_filter
 
89430
echo stderr:; cat "$at_stderr"
 
89431
echo stdout:; cat "$at_stdout"
 
89432
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:185"
 
89433
$at_failed && at_fn_log_failure
 
89434
$at_traceon; }
 
89435
 
 
89436
   { set +x
 
89437
$as_echo "$at_srcdir/ovs-vsctl.at:185: # First try a quick sleep, so that the test completes very quickly
 
89438
     # in the normal case.  POSIX doesn't require fractional times to
 
89439
     # work, so this might not work.
 
89440
     sleep 0.1
 
89441
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89442
     # Then wait up to 10 seconds.
 
89443
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89444
       sleep 1
 
89445
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89446
     done
 
89447
     exit 1"
 
89448
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:185"
 
89449
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89450
     # in the normal case.  POSIX doesn't require fractional times to
 
89451
     # work, so this might not work.
 
89452
     sleep 0.1
 
89453
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89454
     # Then wait up to 10 seconds.
 
89455
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89456
       sleep 1
 
89457
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89458
     done
 
89459
     exit 1
 
89460
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89461
at_status=$? at_failed=false
 
89462
$at_check_filter
 
89463
echo stderr:; cat "$at_stderr"
 
89464
echo stdout:; cat "$at_stdout"
 
89465
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:185"
 
89466
if $at_failed; then :
 
89467
  kill `cat savepid`
 
89468
fi
 
89469
$at_failed && at_fn_log_failure
 
89470
$at_traceon; }
 
89471
 
 
89472
fi
 
89473
$at_failed && at_fn_log_failure
 
89474
$at_traceon; }
 
89475
 
 
89476
   { set +x
 
89477
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
89478
"
 
89479
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:187"
 
89480
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
89481
 
 
89482
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89483
at_status=$? at_failed=false
 
89484
$at_check_filter
 
89485
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89486
echo >>"$at_stdout"; $as_echo "b
 
89487
" | \
 
89488
  $at_diff - "$at_stdout" || at_failed=:
 
89489
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89490
if $at_failed; then :
 
89491
  cp pid savepid
 
89492
   { set +x
 
89493
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-appctl -t \$PWD/unixctl -e exit"
 
89494
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:187"
 
89495
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89496
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89497
at_status=$? at_failed=false
 
89498
$at_check_filter
 
89499
echo stderr:; cat "$at_stderr"
 
89500
echo stdout:; cat "$at_stdout"
 
89501
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89502
$at_failed && at_fn_log_failure
 
89503
$at_traceon; }
 
89504
 
 
89505
   { set +x
 
89506
$as_echo "$at_srcdir/ovs-vsctl.at:187: # First try a quick sleep, so that the test completes very quickly
 
89507
     # in the normal case.  POSIX doesn't require fractional times to
 
89508
     # work, so this might not work.
 
89509
     sleep 0.1
 
89510
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89511
     # Then wait up to 10 seconds.
 
89512
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89513
       sleep 1
 
89514
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89515
     done
 
89516
     exit 1"
 
89517
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:187"
 
89518
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89519
     # in the normal case.  POSIX doesn't require fractional times to
 
89520
     # work, so this might not work.
 
89521
     sleep 0.1
 
89522
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89523
     # Then wait up to 10 seconds.
 
89524
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89525
       sleep 1
 
89526
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89527
     done
 
89528
     exit 1
 
89529
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89530
at_status=$? at_failed=false
 
89531
$at_check_filter
 
89532
echo stderr:; cat "$at_stderr"
 
89533
echo stdout:; cat "$at_stdout"
 
89534
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89535
if $at_failed; then :
 
89536
  kill `cat savepid`
 
89537
fi
 
89538
$at_failed && at_fn_log_failure
 
89539
$at_traceon; }
 
89540
 
 
89541
fi
 
89542
$at_failed && at_fn_log_failure
 
89543
$at_traceon; }
 
89544
 
 
89545
 
 
89546
      { set +x
 
89547
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
89548
"
 
89549
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:187"
 
89550
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
89551
 
 
89552
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89553
at_status=$? at_failed=false
 
89554
$at_check_filter
 
89555
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89556
echo >>"$at_stdout"; $as_echo "b
 
89557
" | \
 
89558
  $at_diff - "$at_stdout" || at_failed=:
 
89559
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89560
if $at_failed; then :
 
89561
  cp pid savepid
 
89562
   { set +x
 
89563
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-appctl -t \$PWD/unixctl -e exit"
 
89564
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:187"
 
89565
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89566
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89567
at_status=$? at_failed=false
 
89568
$at_check_filter
 
89569
echo stderr:; cat "$at_stderr"
 
89570
echo stdout:; cat "$at_stdout"
 
89571
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89572
$at_failed && at_fn_log_failure
 
89573
$at_traceon; }
 
89574
 
 
89575
   { set +x
 
89576
$as_echo "$at_srcdir/ovs-vsctl.at:187: # First try a quick sleep, so that the test completes very quickly
 
89577
     # in the normal case.  POSIX doesn't require fractional times to
 
89578
     # work, so this might not work.
 
89579
     sleep 0.1
 
89580
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89581
     # Then wait up to 10 seconds.
 
89582
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89583
       sleep 1
 
89584
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89585
     done
 
89586
     exit 1"
 
89587
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:187"
 
89588
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89589
     # in the normal case.  POSIX doesn't require fractional times to
 
89590
     # work, so this might not work.
 
89591
     sleep 0.1
 
89592
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89593
     # Then wait up to 10 seconds.
 
89594
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89595
       sleep 1
 
89596
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89597
     done
 
89598
     exit 1
 
89599
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89600
at_status=$? at_failed=false
 
89601
$at_check_filter
 
89602
echo stderr:; cat "$at_stderr"
 
89603
echo stdout:; cat "$at_stdout"
 
89604
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89605
if $at_failed; then :
 
89606
  kill `cat savepid`
 
89607
fi
 
89608
$at_failed && at_fn_log_failure
 
89609
$at_traceon; }
 
89610
 
 
89611
fi
 
89612
$at_failed && at_fn_log_failure
 
89613
$at_traceon; }
 
89614
 
 
89615
 
 
89616
         { set +x
 
89617
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists b
 
89618
"
 
89619
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:187"
 
89620
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists b
 
89621
 
 
89622
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89623
at_status=$? at_failed=false
 
89624
$at_check_filter
 
89625
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89626
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
89627
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89628
if $at_failed; then :
 
89629
  cp pid savepid
 
89630
   { set +x
 
89631
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-appctl -t \$PWD/unixctl -e exit"
 
89632
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:187"
 
89633
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89634
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89635
at_status=$? at_failed=false
 
89636
$at_check_filter
 
89637
echo stderr:; cat "$at_stderr"
 
89638
echo stdout:; cat "$at_stdout"
 
89639
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89640
$at_failed && at_fn_log_failure
 
89641
$at_traceon; }
 
89642
 
 
89643
   { set +x
 
89644
$as_echo "$at_srcdir/ovs-vsctl.at:187: # First try a quick sleep, so that the test completes very quickly
 
89645
     # in the normal case.  POSIX doesn't require fractional times to
 
89646
     # work, so this might not work.
 
89647
     sleep 0.1
 
89648
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89649
     # Then wait up to 10 seconds.
 
89650
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89651
       sleep 1
 
89652
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89653
     done
 
89654
     exit 1"
 
89655
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:187"
 
89656
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89657
     # in the normal case.  POSIX doesn't require fractional times to
 
89658
     # work, so this might not work.
 
89659
     sleep 0.1
 
89660
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89661
     # Then wait up to 10 seconds.
 
89662
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89663
       sleep 1
 
89664
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89665
     done
 
89666
     exit 1
 
89667
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89668
at_status=$? at_failed=false
 
89669
$at_check_filter
 
89670
echo stderr:; cat "$at_stderr"
 
89671
echo stdout:; cat "$at_stdout"
 
89672
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89673
if $at_failed; then :
 
89674
  kill `cat savepid`
 
89675
fi
 
89676
$at_failed && at_fn_log_failure
 
89677
$at_traceon; }
 
89678
 
 
89679
fi
 
89680
$at_failed && at_fn_log_failure
 
89681
$at_traceon; }
 
89682
 
 
89683
   { set +x
 
89684
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
89685
"
 
89686
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:187"
 
89687
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
89688
 
 
89689
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89690
at_status=$? at_failed=false
 
89691
$at_check_filter
 
89692
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89693
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
89694
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89695
if $at_failed; then :
 
89696
  cp pid savepid
 
89697
   { set +x
 
89698
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-appctl -t \$PWD/unixctl -e exit"
 
89699
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:187"
 
89700
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89701
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89702
at_status=$? at_failed=false
 
89703
$at_check_filter
 
89704
echo stderr:; cat "$at_stderr"
 
89705
echo stdout:; cat "$at_stdout"
 
89706
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89707
$at_failed && at_fn_log_failure
 
89708
$at_traceon; }
 
89709
 
 
89710
   { set +x
 
89711
$as_echo "$at_srcdir/ovs-vsctl.at:187: # First try a quick sleep, so that the test completes very quickly
 
89712
     # in the normal case.  POSIX doesn't require fractional times to
 
89713
     # work, so this might not work.
 
89714
     sleep 0.1
 
89715
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89716
     # Then wait up to 10 seconds.
 
89717
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89718
       sleep 1
 
89719
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89720
     done
 
89721
     exit 1"
 
89722
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:187"
 
89723
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89724
     # in the normal case.  POSIX doesn't require fractional times to
 
89725
     # work, so this might not work.
 
89726
     sleep 0.1
 
89727
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89728
     # Then wait up to 10 seconds.
 
89729
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89730
       sleep 1
 
89731
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89732
     done
 
89733
     exit 1
 
89734
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89735
at_status=$? at_failed=false
 
89736
$at_check_filter
 
89737
echo stderr:; cat "$at_stderr"
 
89738
echo stdout:; cat "$at_stdout"
 
89739
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89740
if $at_failed; then :
 
89741
  kill `cat savepid`
 
89742
fi
 
89743
$at_failed && at_fn_log_failure
 
89744
$at_traceon; }
 
89745
 
 
89746
fi
 
89747
$at_failed && at_fn_log_failure
 
89748
$at_traceon; }
 
89749
 
 
89750
 
 
89751
      { set +x
 
89752
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent b
 
89753
"
 
89754
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:187"
 
89755
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent b
 
89756
 
 
89757
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89758
at_status=$? at_failed=false
 
89759
$at_check_filter
 
89760
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89761
echo >>"$at_stdout"; $as_echo "b
 
89762
" | \
 
89763
  $at_diff - "$at_stdout" || at_failed=:
 
89764
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89765
if $at_failed; then :
 
89766
  cp pid savepid
 
89767
   { set +x
 
89768
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-appctl -t \$PWD/unixctl -e exit"
 
89769
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:187"
 
89770
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89771
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89772
at_status=$? at_failed=false
 
89773
$at_check_filter
 
89774
echo stderr:; cat "$at_stderr"
 
89775
echo stdout:; cat "$at_stdout"
 
89776
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89777
$at_failed && at_fn_log_failure
 
89778
$at_traceon; }
 
89779
 
 
89780
   { set +x
 
89781
$as_echo "$at_srcdir/ovs-vsctl.at:187: # First try a quick sleep, so that the test completes very quickly
 
89782
     # in the normal case.  POSIX doesn't require fractional times to
 
89783
     # work, so this might not work.
 
89784
     sleep 0.1
 
89785
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89786
     # Then wait up to 10 seconds.
 
89787
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89788
       sleep 1
 
89789
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89790
     done
 
89791
     exit 1"
 
89792
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:187"
 
89793
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89794
     # in the normal case.  POSIX doesn't require fractional times to
 
89795
     # work, so this might not work.
 
89796
     sleep 0.1
 
89797
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89798
     # Then wait up to 10 seconds.
 
89799
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89800
       sleep 1
 
89801
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89802
     done
 
89803
     exit 1
 
89804
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89805
at_status=$? at_failed=false
 
89806
$at_check_filter
 
89807
echo stderr:; cat "$at_stderr"
 
89808
echo stdout:; cat "$at_stdout"
 
89809
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89810
if $at_failed; then :
 
89811
  kill `cat savepid`
 
89812
fi
 
89813
$at_failed && at_fn_log_failure
 
89814
$at_traceon; }
 
89815
 
 
89816
fi
 
89817
$at_failed && at_fn_log_failure
 
89818
$at_traceon; }
 
89819
 
 
89820
 
 
89821
   # Check br-to-vlan, without --oneline.
 
89822
   { set +x
 
89823
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan b
 
89824
"
 
89825
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:187"
 
89826
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan b
 
89827
 
 
89828
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89829
at_status=$? at_failed=false
 
89830
$at_check_filter
 
89831
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89832
echo >>"$at_stdout"; $as_echo "0
 
89833
" | \
 
89834
  $at_diff - "$at_stdout" || at_failed=:
 
89835
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89836
if $at_failed; then :
 
89837
  cp pid savepid
 
89838
   { set +x
 
89839
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-appctl -t \$PWD/unixctl -e exit"
 
89840
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:187"
 
89841
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89842
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89843
at_status=$? at_failed=false
 
89844
$at_check_filter
 
89845
echo stderr:; cat "$at_stderr"
 
89846
echo stdout:; cat "$at_stdout"
 
89847
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89848
$at_failed && at_fn_log_failure
 
89849
$at_traceon; }
 
89850
 
 
89851
   { set +x
 
89852
$as_echo "$at_srcdir/ovs-vsctl.at:187: # First try a quick sleep, so that the test completes very quickly
 
89853
     # in the normal case.  POSIX doesn't require fractional times to
 
89854
     # work, so this might not work.
 
89855
     sleep 0.1
 
89856
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89857
     # Then wait up to 10 seconds.
 
89858
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89859
       sleep 1
 
89860
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89861
     done
 
89862
     exit 1"
 
89863
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:187"
 
89864
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89865
     # in the normal case.  POSIX doesn't require fractional times to
 
89866
     # work, so this might not work.
 
89867
     sleep 0.1
 
89868
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89869
     # Then wait up to 10 seconds.
 
89870
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89871
       sleep 1
 
89872
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89873
     done
 
89874
     exit 1
 
89875
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89876
at_status=$? at_failed=false
 
89877
$at_check_filter
 
89878
echo stderr:; cat "$at_stderr"
 
89879
echo stdout:; cat "$at_stdout"
 
89880
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89881
if $at_failed; then :
 
89882
  kill `cat savepid`
 
89883
fi
 
89884
$at_failed && at_fn_log_failure
 
89885
$at_traceon; }
 
89886
 
 
89887
fi
 
89888
$at_failed && at_fn_log_failure
 
89889
$at_traceon; }
 
89890
 
 
89891
   # Check br-to-vlan, with --oneline.
 
89892
   # (This particular test is interesting with --oneline because it returns
 
89893
   # an integer instead of a string and that can cause type mismatches inside
 
89894
   # python if not done carefully.)
 
89895
   { set +x
 
89896
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan b
 
89897
"
 
89898
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:187"
 
89899
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan b
 
89900
 
 
89901
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89902
at_status=$? at_failed=false
 
89903
$at_check_filter
 
89904
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89905
echo >>"$at_stdout"; $as_echo "0
 
89906
" | \
 
89907
  $at_diff - "$at_stdout" || at_failed=:
 
89908
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89909
if $at_failed; then :
 
89910
  cp pid savepid
 
89911
   { set +x
 
89912
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-appctl -t \$PWD/unixctl -e exit"
 
89913
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:187"
 
89914
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89915
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89916
at_status=$? at_failed=false
 
89917
$at_check_filter
 
89918
echo stderr:; cat "$at_stderr"
 
89919
echo stdout:; cat "$at_stdout"
 
89920
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89921
$at_failed && at_fn_log_failure
 
89922
$at_traceon; }
 
89923
 
 
89924
   { set +x
 
89925
$as_echo "$at_srcdir/ovs-vsctl.at:187: # First try a quick sleep, so that the test completes very quickly
 
89926
     # in the normal case.  POSIX doesn't require fractional times to
 
89927
     # work, so this might not work.
 
89928
     sleep 0.1
 
89929
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89930
     # Then wait up to 10 seconds.
 
89931
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89932
       sleep 1
 
89933
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
89934
     done
 
89935
     exit 1"
 
89936
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:187"
 
89937
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
89938
     # in the normal case.  POSIX doesn't require fractional times to
 
89939
     # work, so this might not work.
 
89940
     sleep 0.1
 
89941
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
89942
     # Then wait up to 10 seconds.
 
89943
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
89944
       sleep 1
 
89945
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
89946
     done
 
89947
     exit 1
 
89948
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89949
at_status=$? at_failed=false
 
89950
$at_check_filter
 
89951
echo stderr:; cat "$at_stderr"
 
89952
echo stdout:; cat "$at_stdout"
 
89953
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89954
if $at_failed; then :
 
89955
  kill `cat savepid`
 
89956
fi
 
89957
$at_failed && at_fn_log_failure
 
89958
$at_traceon; }
 
89959
 
 
89960
fi
 
89961
$at_failed && at_fn_log_failure
 
89962
$at_traceon; }
 
89963
 
 
89964
 
 
89965
   # Check multiple queries in a single run.
 
89966
   { set +x
 
89967
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent b -- br-to-vlan b"
 
89968
at_fn_check_prepare_trace "ovs-vsctl.at:187"
 
89969
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent b -- br-to-vlan b
 
89970
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89971
at_status=$? at_failed=false
 
89972
$at_check_filter
 
89973
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
89974
echo >>"$at_stdout"; $as_echo "b
 
89975
0
 
89976
" | \
 
89977
  $at_diff - "$at_stdout" || at_failed=:
 
89978
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89979
if $at_failed; then :
 
89980
  cp pid savepid
 
89981
   { set +x
 
89982
$as_echo "$at_srcdir/ovs-vsctl.at:187: ovs-appctl -t \$PWD/unixctl -e exit"
 
89983
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:187"
 
89984
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
89985
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
89986
at_status=$? at_failed=false
 
89987
$at_check_filter
 
89988
echo stderr:; cat "$at_stderr"
 
89989
echo stdout:; cat "$at_stdout"
 
89990
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
89991
$at_failed && at_fn_log_failure
 
89992
$at_traceon; }
 
89993
 
 
89994
   { set +x
 
89995
$as_echo "$at_srcdir/ovs-vsctl.at:187: # First try a quick sleep, so that the test completes very quickly
 
89996
     # in the normal case.  POSIX doesn't require fractional times to
 
89997
     # work, so this might not work.
 
89998
     sleep 0.1
 
89999
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90000
     # Then wait up to 10 seconds.
 
90001
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90002
       sleep 1
 
90003
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90004
     done
 
90005
     exit 1"
 
90006
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:187"
 
90007
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90008
     # in the normal case.  POSIX doesn't require fractional times to
 
90009
     # work, so this might not work.
 
90010
     sleep 0.1
 
90011
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90012
     # Then wait up to 10 seconds.
 
90013
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90014
       sleep 1
 
90015
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90016
     done
 
90017
     exit 1
 
90018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90019
at_status=$? at_failed=false
 
90020
$at_check_filter
 
90021
echo stderr:; cat "$at_stderr"
 
90022
echo stdout:; cat "$at_stdout"
 
90023
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:187"
 
90024
if $at_failed; then :
 
90025
  kill `cat savepid`
 
90026
fi
 
90027
$at_failed && at_fn_log_failure
 
90028
$at_traceon; }
 
90029
 
 
90030
fi
 
90031
$at_failed && at_fn_log_failure
 
90032
$at_traceon; }
 
90033
 
 
90034
   { set +x
 
90035
$as_echo "$at_srcdir/ovs-vsctl.at:188: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports b
 
90036
"
 
90037
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:188"
 
90038
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports b
 
90039
 
 
90040
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90041
at_status=$? at_failed=false
 
90042
$at_check_filter
 
90043
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90044
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
90045
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90046
if $at_failed; then :
 
90047
  cp pid savepid
 
90048
   { set +x
 
90049
$as_echo "$at_srcdir/ovs-vsctl.at:188: ovs-appctl -t \$PWD/unixctl -e exit"
 
90050
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:188"
 
90051
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90052
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90053
at_status=$? at_failed=false
 
90054
$at_check_filter
 
90055
echo stderr:; cat "$at_stderr"
 
90056
echo stdout:; cat "$at_stdout"
 
90057
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90058
$at_failed && at_fn_log_failure
 
90059
$at_traceon; }
 
90060
 
 
90061
   { set +x
 
90062
$as_echo "$at_srcdir/ovs-vsctl.at:188: # First try a quick sleep, so that the test completes very quickly
 
90063
     # in the normal case.  POSIX doesn't require fractional times to
 
90064
     # work, so this might not work.
 
90065
     sleep 0.1
 
90066
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90067
     # Then wait up to 10 seconds.
 
90068
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90069
       sleep 1
 
90070
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90071
     done
 
90072
     exit 1"
 
90073
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:188"
 
90074
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90075
     # in the normal case.  POSIX doesn't require fractional times to
 
90076
     # work, so this might not work.
 
90077
     sleep 0.1
 
90078
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90079
     # Then wait up to 10 seconds.
 
90080
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90081
       sleep 1
 
90082
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90083
     done
 
90084
     exit 1
 
90085
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90086
at_status=$? at_failed=false
 
90087
$at_check_filter
 
90088
echo stderr:; cat "$at_stderr"
 
90089
echo stdout:; cat "$at_stdout"
 
90090
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90091
if $at_failed; then :
 
90092
  kill `cat savepid`
 
90093
fi
 
90094
$at_failed && at_fn_log_failure
 
90095
$at_traceon; }
 
90096
 
 
90097
fi
 
90098
$at_failed && at_fn_log_failure
 
90099
$at_traceon; }
 
90100
 
 
90101
 
 
90102
      { set +x
 
90103
$as_echo "$at_srcdir/ovs-vsctl.at:188: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports b
 
90104
"
 
90105
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:188"
 
90106
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports b
 
90107
 
 
90108
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90109
at_status=$? at_failed=false
 
90110
$at_check_filter
 
90111
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90112
echo >>"$at_stdout"; $as_echo "
 
90113
" | \
 
90114
  $at_diff - "$at_stdout" || at_failed=:
 
90115
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90116
if $at_failed; then :
 
90117
  cp pid savepid
 
90118
   { set +x
 
90119
$as_echo "$at_srcdir/ovs-vsctl.at:188: ovs-appctl -t \$PWD/unixctl -e exit"
 
90120
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:188"
 
90121
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90122
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90123
at_status=$? at_failed=false
 
90124
$at_check_filter
 
90125
echo stderr:; cat "$at_stderr"
 
90126
echo stdout:; cat "$at_stdout"
 
90127
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90128
$at_failed && at_fn_log_failure
 
90129
$at_traceon; }
 
90130
 
 
90131
   { set +x
 
90132
$as_echo "$at_srcdir/ovs-vsctl.at:188: # First try a quick sleep, so that the test completes very quickly
 
90133
     # in the normal case.  POSIX doesn't require fractional times to
 
90134
     # work, so this might not work.
 
90135
     sleep 0.1
 
90136
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90137
     # Then wait up to 10 seconds.
 
90138
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90139
       sleep 1
 
90140
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90141
     done
 
90142
     exit 1"
 
90143
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:188"
 
90144
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90145
     # in the normal case.  POSIX doesn't require fractional times to
 
90146
     # work, so this might not work.
 
90147
     sleep 0.1
 
90148
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90149
     # Then wait up to 10 seconds.
 
90150
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90151
       sleep 1
 
90152
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90153
     done
 
90154
     exit 1
 
90155
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90156
at_status=$? at_failed=false
 
90157
$at_check_filter
 
90158
echo stderr:; cat "$at_stderr"
 
90159
echo stdout:; cat "$at_stdout"
 
90160
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90161
if $at_failed; then :
 
90162
  kill `cat savepid`
 
90163
fi
 
90164
$at_failed && at_fn_log_failure
 
90165
$at_traceon; }
 
90166
 
 
90167
fi
 
90168
$at_failed && at_fn_log_failure
 
90169
$at_traceon; }
 
90170
 
 
90171
   { set +x
 
90172
$as_echo "$at_srcdir/ovs-vsctl.at:188: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b
 
90173
"
 
90174
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:188"
 
90175
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b
 
90176
 
 
90177
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90178
at_status=$? at_failed=false
 
90179
$at_check_filter
 
90180
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named b
 
90181
" | \
 
90182
  $at_diff - "$at_stderr" || at_failed=:
 
90183
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
90184
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90185
if $at_failed; then :
 
90186
  cp pid savepid
 
90187
   { set +x
 
90188
$as_echo "$at_srcdir/ovs-vsctl.at:188: ovs-appctl -t \$PWD/unixctl -e exit"
 
90189
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:188"
 
90190
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90191
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90192
at_status=$? at_failed=false
 
90193
$at_check_filter
 
90194
echo stderr:; cat "$at_stderr"
 
90195
echo stdout:; cat "$at_stdout"
 
90196
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90197
$at_failed && at_fn_log_failure
 
90198
$at_traceon; }
 
90199
 
 
90200
   { set +x
 
90201
$as_echo "$at_srcdir/ovs-vsctl.at:188: # First try a quick sleep, so that the test completes very quickly
 
90202
     # in the normal case.  POSIX doesn't require fractional times to
 
90203
     # work, so this might not work.
 
90204
     sleep 0.1
 
90205
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90206
     # Then wait up to 10 seconds.
 
90207
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90208
       sleep 1
 
90209
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90210
     done
 
90211
     exit 1"
 
90212
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:188"
 
90213
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90214
     # in the normal case.  POSIX doesn't require fractional times to
 
90215
     # work, so this might not work.
 
90216
     sleep 0.1
 
90217
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90218
     # Then wait up to 10 seconds.
 
90219
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90220
       sleep 1
 
90221
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90222
     done
 
90223
     exit 1
 
90224
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90225
at_status=$? at_failed=false
 
90226
$at_check_filter
 
90227
echo stderr:; cat "$at_stderr"
 
90228
echo stdout:; cat "$at_stdout"
 
90229
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:188"
 
90230
if $at_failed; then :
 
90231
  kill `cat savepid`
 
90232
fi
 
90233
$at_failed && at_fn_log_failure
 
90234
$at_traceon; }
 
90235
 
 
90236
fi
 
90237
$at_failed && at_fn_log_failure
 
90238
$at_traceon; }
 
90239
 
 
90240
 
 
90241
{ set +x
 
90242
$as_echo "$at_srcdir/ovs-vsctl.at:189: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces b
 
90243
"
 
90244
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:189"
 
90245
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces b
 
90246
 
 
90247
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90248
at_status=$? at_failed=false
 
90249
$at_check_filter
 
90250
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90251
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
90252
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:189"
 
90253
if $at_failed; then :
 
90254
  cp pid savepid
 
90255
   { set +x
 
90256
$as_echo "$at_srcdir/ovs-vsctl.at:189: ovs-appctl -t \$PWD/unixctl -e exit"
 
90257
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:189"
 
90258
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90259
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90260
at_status=$? at_failed=false
 
90261
$at_check_filter
 
90262
echo stderr:; cat "$at_stderr"
 
90263
echo stdout:; cat "$at_stdout"
 
90264
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:189"
 
90265
$at_failed && at_fn_log_failure
 
90266
$at_traceon; }
 
90267
 
 
90268
   { set +x
 
90269
$as_echo "$at_srcdir/ovs-vsctl.at:189: # First try a quick sleep, so that the test completes very quickly
 
90270
     # in the normal case.  POSIX doesn't require fractional times to
 
90271
     # work, so this might not work.
 
90272
     sleep 0.1
 
90273
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90274
     # Then wait up to 10 seconds.
 
90275
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90276
       sleep 1
 
90277
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90278
     done
 
90279
     exit 1"
 
90280
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:189"
 
90281
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90282
     # in the normal case.  POSIX doesn't require fractional times to
 
90283
     # work, so this might not work.
 
90284
     sleep 0.1
 
90285
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90286
     # Then wait up to 10 seconds.
 
90287
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90288
       sleep 1
 
90289
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90290
     done
 
90291
     exit 1
 
90292
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90293
at_status=$? at_failed=false
 
90294
$at_check_filter
 
90295
echo stderr:; cat "$at_stderr"
 
90296
echo stdout:; cat "$at_stdout"
 
90297
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:189"
 
90298
if $at_failed; then :
 
90299
  kill `cat savepid`
 
90300
fi
 
90301
$at_failed && at_fn_log_failure
 
90302
$at_traceon; }
 
90303
 
 
90304
fi
 
90305
$at_failed && at_fn_log_failure
 
90306
$at_traceon; }
 
90307
 
 
90308
   { set +x
 
90309
$as_echo "$at_srcdir/ovs-vsctl.at:189: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b
 
90310
"
 
90311
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:189"
 
90312
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b
 
90313
 
 
90314
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90315
at_status=$? at_failed=false
 
90316
$at_check_filter
 
90317
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named b
 
90318
" | \
 
90319
  $at_diff - "$at_stderr" || at_failed=:
 
90320
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
90321
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:189"
 
90322
if $at_failed; then :
 
90323
  cp pid savepid
 
90324
   { set +x
 
90325
$as_echo "$at_srcdir/ovs-vsctl.at:189: ovs-appctl -t \$PWD/unixctl -e exit"
 
90326
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:189"
 
90327
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90328
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90329
at_status=$? at_failed=false
 
90330
$at_check_filter
 
90331
echo stderr:; cat "$at_stderr"
 
90332
echo stdout:; cat "$at_stdout"
 
90333
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:189"
 
90334
$at_failed && at_fn_log_failure
 
90335
$at_traceon; }
 
90336
 
 
90337
   { set +x
 
90338
$as_echo "$at_srcdir/ovs-vsctl.at:189: # First try a quick sleep, so that the test completes very quickly
 
90339
     # in the normal case.  POSIX doesn't require fractional times to
 
90340
     # work, so this might not work.
 
90341
     sleep 0.1
 
90342
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90343
     # Then wait up to 10 seconds.
 
90344
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90345
       sleep 1
 
90346
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90347
     done
 
90348
     exit 1"
 
90349
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:189"
 
90350
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90351
     # in the normal case.  POSIX doesn't require fractional times to
 
90352
     # work, so this might not work.
 
90353
     sleep 0.1
 
90354
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90355
     # Then wait up to 10 seconds.
 
90356
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90357
       sleep 1
 
90358
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90359
     done
 
90360
     exit 1
 
90361
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90362
at_status=$? at_failed=false
 
90363
$at_check_filter
 
90364
echo stderr:; cat "$at_stderr"
 
90365
echo stdout:; cat "$at_stdout"
 
90366
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:189"
 
90367
if $at_failed; then :
 
90368
  kill `cat savepid`
 
90369
fi
 
90370
$at_failed && at_fn_log_failure
 
90371
$at_traceon; }
 
90372
 
 
90373
fi
 
90374
$at_failed && at_fn_log_failure
 
90375
$at_traceon; }
 
90376
 
 
90377
 
 
90378
cp pid savepid
 
90379
   { set +x
 
90380
$as_echo "$at_srcdir/ovs-vsctl.at:190: ovs-appctl -t \$PWD/unixctl -e exit"
 
90381
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:190"
 
90382
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90383
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90384
at_status=$? at_failed=false
 
90385
$at_check_filter
 
90386
echo stderr:; cat "$at_stderr"
 
90387
echo stdout:; cat "$at_stdout"
 
90388
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:190"
 
90389
$at_failed && at_fn_log_failure
 
90390
$at_traceon; }
 
90391
 
 
90392
   { set +x
 
90393
$as_echo "$at_srcdir/ovs-vsctl.at:190: # First try a quick sleep, so that the test completes very quickly
 
90394
     # in the normal case.  POSIX doesn't require fractional times to
 
90395
     # work, so this might not work.
 
90396
     sleep 0.1
 
90397
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90398
     # Then wait up to 10 seconds.
 
90399
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90400
       sleep 1
 
90401
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90402
     done
 
90403
     exit 1"
 
90404
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:190"
 
90405
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90406
     # in the normal case.  POSIX doesn't require fractional times to
 
90407
     # work, so this might not work.
 
90408
     sleep 0.1
 
90409
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90410
     # Then wait up to 10 seconds.
 
90411
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90412
       sleep 1
 
90413
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90414
     done
 
90415
     exit 1
 
90416
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90417
at_status=$? at_failed=false
 
90418
$at_check_filter
 
90419
echo stderr:; cat "$at_stderr"
 
90420
echo stdout:; cat "$at_stdout"
 
90421
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:190"
 
90422
if $at_failed; then :
 
90423
  kill `cat savepid`
 
90424
fi
 
90425
$at_failed && at_fn_log_failure
 
90426
$at_traceon; }
 
90427
 
 
90428
  set +x
 
90429
  $at_times_p && times >"$at_times_file"
 
90430
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
90431
read at_status <"$at_status_file"
 
90432
#AT_STOP_946
 
90433
#AT_START_947
 
90434
at_fn_group_banner 947 'ovs-vsctl.at:193' \
 
90435
  "add-br a, del-br a, add-br a" "                   " 65
 
90436
at_xfail=no
 
90437
(
 
90438
  $as_echo "947. $at_setup_line: testing $at_desc ..."
 
90439
  $at_traceon
 
90440
 
 
90441
 
 
90442
{ set +x
 
90443
$as_echo "$at_srcdir/ovs-vsctl.at:195: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
90444
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:195"
 
90445
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
90446
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90447
at_status=$? at_failed=false
 
90448
$at_check_filter
 
90449
echo stderr:; cat "$at_stderr"
 
90450
echo stdout:; tee stdout <"$at_stdout"
 
90451
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:195"
 
90452
$at_failed && at_fn_log_failure
 
90453
$at_traceon; }
 
90454
 
 
90455
   { set +x
 
90456
$as_echo "$at_srcdir/ovs-vsctl.at:195: ovsdb-tool transact db \\
 
90457
        '[\"Open_vSwitch\",
 
90458
          {\"op\": \"insert\",
 
90459
           \"table\": \"Open_vSwitch\",
 
90460
           \"row\": {}}]'"
 
90461
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:195"
 
90462
( $at_check_trace; ovsdb-tool transact db \
 
90463
        '["Open_vSwitch",
 
90464
          {"op": "insert",
 
90465
           "table": "Open_vSwitch",
 
90466
           "row": {}}]'
 
90467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90468
at_status=$? at_failed=false
 
90469
$at_check_filter
 
90470
echo stderr:; cat "$at_stderr"
 
90471
echo stdout:; cat "$at_stdout"
 
90472
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:195"
 
90473
$at_failed && at_fn_log_failure
 
90474
$at_traceon; }
 
90475
 
 
90476
   { set +x
 
90477
$as_echo "$at_srcdir/ovs-vsctl.at:195: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
90478
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:195"
 
90479
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
90480
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90481
at_status=$? at_failed=false
 
90482
$at_check_filter
 
90483
echo stderr:; cat "$at_stderr"
 
90484
echo stdout:; cat "$at_stdout"
 
90485
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:195"
 
90486
$at_failed && at_fn_log_failure
 
90487
$at_traceon; }
 
90488
 
 
90489
{ set +x
 
90490
$as_echo "$at_srcdir/ovs-vsctl.at:196: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- add-br a -- del-br a -- add-br a -- set Interface a other_config:key=value -- get Interface a other_config:key"
 
90491
at_fn_check_prepare_trace "ovs-vsctl.at:196"
 
90492
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- add-br a -- del-br a -- add-br a -- set Interface a other_config:key=value -- get Interface a other_config:key
 
90493
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90494
at_status=$? at_failed=false
 
90495
$at_check_filter
 
90496
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90497
echo >>"$at_stdout"; $as_echo "
 
90498
 
 
90499
 
 
90500
 
 
90501
value
 
90502
" | \
 
90503
  $at_diff - "$at_stdout" || at_failed=:
 
90504
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:196"
 
90505
if $at_failed; then :
 
90506
  cp pid savepid
 
90507
   { set +x
 
90508
$as_echo "$at_srcdir/ovs-vsctl.at:196: ovs-appctl -t \$PWD/unixctl -e exit"
 
90509
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:196"
 
90510
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90511
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90512
at_status=$? at_failed=false
 
90513
$at_check_filter
 
90514
echo stderr:; cat "$at_stderr"
 
90515
echo stdout:; cat "$at_stdout"
 
90516
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:196"
 
90517
$at_failed && at_fn_log_failure
 
90518
$at_traceon; }
 
90519
 
 
90520
   { set +x
 
90521
$as_echo "$at_srcdir/ovs-vsctl.at:196: # First try a quick sleep, so that the test completes very quickly
 
90522
     # in the normal case.  POSIX doesn't require fractional times to
 
90523
     # work, so this might not work.
 
90524
     sleep 0.1
 
90525
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90526
     # Then wait up to 10 seconds.
 
90527
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90528
       sleep 1
 
90529
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90530
     done
 
90531
     exit 1"
 
90532
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:196"
 
90533
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90534
     # in the normal case.  POSIX doesn't require fractional times to
 
90535
     # work, so this might not work.
 
90536
     sleep 0.1
 
90537
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90538
     # Then wait up to 10 seconds.
 
90539
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90540
       sleep 1
 
90541
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90542
     done
 
90543
     exit 1
 
90544
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90545
at_status=$? at_failed=false
 
90546
$at_check_filter
 
90547
echo stderr:; cat "$at_stderr"
 
90548
echo stdout:; cat "$at_stdout"
 
90549
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:196"
 
90550
if $at_failed; then :
 
90551
  kill `cat savepid`
 
90552
fi
 
90553
$at_failed && at_fn_log_failure
 
90554
$at_traceon; }
 
90555
 
 
90556
fi
 
90557
$at_failed && at_fn_log_failure
 
90558
$at_traceon; }
 
90559
 
 
90560
   { set +x
 
90561
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
90562
"
 
90563
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:207"
 
90564
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
90565
 
 
90566
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90567
at_status=$? at_failed=false
 
90568
$at_check_filter
 
90569
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90570
echo >>"$at_stdout"; $as_echo "a
 
90571
" | \
 
90572
  $at_diff - "$at_stdout" || at_failed=:
 
90573
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90574
if $at_failed; then :
 
90575
  cp pid savepid
 
90576
   { set +x
 
90577
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-appctl -t \$PWD/unixctl -e exit"
 
90578
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:207"
 
90579
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90580
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90581
at_status=$? at_failed=false
 
90582
$at_check_filter
 
90583
echo stderr:; cat "$at_stderr"
 
90584
echo stdout:; cat "$at_stdout"
 
90585
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90586
$at_failed && at_fn_log_failure
 
90587
$at_traceon; }
 
90588
 
 
90589
   { set +x
 
90590
$as_echo "$at_srcdir/ovs-vsctl.at:207: # First try a quick sleep, so that the test completes very quickly
 
90591
     # in the normal case.  POSIX doesn't require fractional times to
 
90592
     # work, so this might not work.
 
90593
     sleep 0.1
 
90594
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90595
     # Then wait up to 10 seconds.
 
90596
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90597
       sleep 1
 
90598
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90599
     done
 
90600
     exit 1"
 
90601
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:207"
 
90602
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90603
     # in the normal case.  POSIX doesn't require fractional times to
 
90604
     # work, so this might not work.
 
90605
     sleep 0.1
 
90606
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90607
     # Then wait up to 10 seconds.
 
90608
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90609
       sleep 1
 
90610
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90611
     done
 
90612
     exit 1
 
90613
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90614
at_status=$? at_failed=false
 
90615
$at_check_filter
 
90616
echo stderr:; cat "$at_stderr"
 
90617
echo stdout:; cat "$at_stdout"
 
90618
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90619
if $at_failed; then :
 
90620
  kill `cat savepid`
 
90621
fi
 
90622
$at_failed && at_fn_log_failure
 
90623
$at_traceon; }
 
90624
 
 
90625
fi
 
90626
$at_failed && at_fn_log_failure
 
90627
$at_traceon; }
 
90628
 
 
90629
 
 
90630
      { set +x
 
90631
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
90632
"
 
90633
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:207"
 
90634
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
90635
 
 
90636
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90637
at_status=$? at_failed=false
 
90638
$at_check_filter
 
90639
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90640
echo >>"$at_stdout"; $as_echo "a
 
90641
" | \
 
90642
  $at_diff - "$at_stdout" || at_failed=:
 
90643
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90644
if $at_failed; then :
 
90645
  cp pid savepid
 
90646
   { set +x
 
90647
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-appctl -t \$PWD/unixctl -e exit"
 
90648
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:207"
 
90649
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90650
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90651
at_status=$? at_failed=false
 
90652
$at_check_filter
 
90653
echo stderr:; cat "$at_stderr"
 
90654
echo stdout:; cat "$at_stdout"
 
90655
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90656
$at_failed && at_fn_log_failure
 
90657
$at_traceon; }
 
90658
 
 
90659
   { set +x
 
90660
$as_echo "$at_srcdir/ovs-vsctl.at:207: # First try a quick sleep, so that the test completes very quickly
 
90661
     # in the normal case.  POSIX doesn't require fractional times to
 
90662
     # work, so this might not work.
 
90663
     sleep 0.1
 
90664
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90665
     # Then wait up to 10 seconds.
 
90666
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90667
       sleep 1
 
90668
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90669
     done
 
90670
     exit 1"
 
90671
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:207"
 
90672
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90673
     # in the normal case.  POSIX doesn't require fractional times to
 
90674
     # work, so this might not work.
 
90675
     sleep 0.1
 
90676
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90677
     # Then wait up to 10 seconds.
 
90678
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90679
       sleep 1
 
90680
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90681
     done
 
90682
     exit 1
 
90683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90684
at_status=$? at_failed=false
 
90685
$at_check_filter
 
90686
echo stderr:; cat "$at_stderr"
 
90687
echo stdout:; cat "$at_stdout"
 
90688
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90689
if $at_failed; then :
 
90690
  kill `cat savepid`
 
90691
fi
 
90692
$at_failed && at_fn_log_failure
 
90693
$at_traceon; }
 
90694
 
 
90695
fi
 
90696
$at_failed && at_fn_log_failure
 
90697
$at_traceon; }
 
90698
 
 
90699
 
 
90700
         { set +x
 
90701
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
90702
"
 
90703
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:207"
 
90704
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
90705
 
 
90706
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90707
at_status=$? at_failed=false
 
90708
$at_check_filter
 
90709
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90710
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
90711
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90712
if $at_failed; then :
 
90713
  cp pid savepid
 
90714
   { set +x
 
90715
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-appctl -t \$PWD/unixctl -e exit"
 
90716
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:207"
 
90717
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90718
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90719
at_status=$? at_failed=false
 
90720
$at_check_filter
 
90721
echo stderr:; cat "$at_stderr"
 
90722
echo stdout:; cat "$at_stdout"
 
90723
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90724
$at_failed && at_fn_log_failure
 
90725
$at_traceon; }
 
90726
 
 
90727
   { set +x
 
90728
$as_echo "$at_srcdir/ovs-vsctl.at:207: # First try a quick sleep, so that the test completes very quickly
 
90729
     # in the normal case.  POSIX doesn't require fractional times to
 
90730
     # work, so this might not work.
 
90731
     sleep 0.1
 
90732
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90733
     # Then wait up to 10 seconds.
 
90734
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90735
       sleep 1
 
90736
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90737
     done
 
90738
     exit 1"
 
90739
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:207"
 
90740
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90741
     # in the normal case.  POSIX doesn't require fractional times to
 
90742
     # work, so this might not work.
 
90743
     sleep 0.1
 
90744
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90745
     # Then wait up to 10 seconds.
 
90746
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90747
       sleep 1
 
90748
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90749
     done
 
90750
     exit 1
 
90751
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90752
at_status=$? at_failed=false
 
90753
$at_check_filter
 
90754
echo stderr:; cat "$at_stderr"
 
90755
echo stdout:; cat "$at_stdout"
 
90756
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90757
if $at_failed; then :
 
90758
  kill `cat savepid`
 
90759
fi
 
90760
$at_failed && at_fn_log_failure
 
90761
$at_traceon; }
 
90762
 
 
90763
fi
 
90764
$at_failed && at_fn_log_failure
 
90765
$at_traceon; }
 
90766
 
 
90767
   { set +x
 
90768
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
90769
"
 
90770
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:207"
 
90771
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
90772
 
 
90773
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90774
at_status=$? at_failed=false
 
90775
$at_check_filter
 
90776
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90777
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
90778
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90779
if $at_failed; then :
 
90780
  cp pid savepid
 
90781
   { set +x
 
90782
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-appctl -t \$PWD/unixctl -e exit"
 
90783
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:207"
 
90784
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90785
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90786
at_status=$? at_failed=false
 
90787
$at_check_filter
 
90788
echo stderr:; cat "$at_stderr"
 
90789
echo stdout:; cat "$at_stdout"
 
90790
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90791
$at_failed && at_fn_log_failure
 
90792
$at_traceon; }
 
90793
 
 
90794
   { set +x
 
90795
$as_echo "$at_srcdir/ovs-vsctl.at:207: # First try a quick sleep, so that the test completes very quickly
 
90796
     # in the normal case.  POSIX doesn't require fractional times to
 
90797
     # work, so this might not work.
 
90798
     sleep 0.1
 
90799
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90800
     # Then wait up to 10 seconds.
 
90801
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90802
       sleep 1
 
90803
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90804
     done
 
90805
     exit 1"
 
90806
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:207"
 
90807
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90808
     # in the normal case.  POSIX doesn't require fractional times to
 
90809
     # work, so this might not work.
 
90810
     sleep 0.1
 
90811
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90812
     # Then wait up to 10 seconds.
 
90813
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90814
       sleep 1
 
90815
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90816
     done
 
90817
     exit 1
 
90818
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90819
at_status=$? at_failed=false
 
90820
$at_check_filter
 
90821
echo stderr:; cat "$at_stderr"
 
90822
echo stdout:; cat "$at_stdout"
 
90823
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90824
if $at_failed; then :
 
90825
  kill `cat savepid`
 
90826
fi
 
90827
$at_failed && at_fn_log_failure
 
90828
$at_traceon; }
 
90829
 
 
90830
fi
 
90831
$at_failed && at_fn_log_failure
 
90832
$at_traceon; }
 
90833
 
 
90834
 
 
90835
      { set +x
 
90836
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
90837
"
 
90838
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:207"
 
90839
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
90840
 
 
90841
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90842
at_status=$? at_failed=false
 
90843
$at_check_filter
 
90844
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90845
echo >>"$at_stdout"; $as_echo "a
 
90846
" | \
 
90847
  $at_diff - "$at_stdout" || at_failed=:
 
90848
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90849
if $at_failed; then :
 
90850
  cp pid savepid
 
90851
   { set +x
 
90852
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-appctl -t \$PWD/unixctl -e exit"
 
90853
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:207"
 
90854
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90855
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90856
at_status=$? at_failed=false
 
90857
$at_check_filter
 
90858
echo stderr:; cat "$at_stderr"
 
90859
echo stdout:; cat "$at_stdout"
 
90860
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90861
$at_failed && at_fn_log_failure
 
90862
$at_traceon; }
 
90863
 
 
90864
   { set +x
 
90865
$as_echo "$at_srcdir/ovs-vsctl.at:207: # First try a quick sleep, so that the test completes very quickly
 
90866
     # in the normal case.  POSIX doesn't require fractional times to
 
90867
     # work, so this might not work.
 
90868
     sleep 0.1
 
90869
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90870
     # Then wait up to 10 seconds.
 
90871
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90872
       sleep 1
 
90873
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90874
     done
 
90875
     exit 1"
 
90876
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:207"
 
90877
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90878
     # in the normal case.  POSIX doesn't require fractional times to
 
90879
     # work, so this might not work.
 
90880
     sleep 0.1
 
90881
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90882
     # Then wait up to 10 seconds.
 
90883
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90884
       sleep 1
 
90885
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90886
     done
 
90887
     exit 1
 
90888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90889
at_status=$? at_failed=false
 
90890
$at_check_filter
 
90891
echo stderr:; cat "$at_stderr"
 
90892
echo stdout:; cat "$at_stdout"
 
90893
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90894
if $at_failed; then :
 
90895
  kill `cat savepid`
 
90896
fi
 
90897
$at_failed && at_fn_log_failure
 
90898
$at_traceon; }
 
90899
 
 
90900
fi
 
90901
$at_failed && at_fn_log_failure
 
90902
$at_traceon; }
 
90903
 
 
90904
 
 
90905
   # Check br-to-vlan, without --oneline.
 
90906
   { set +x
 
90907
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
90908
"
 
90909
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:207"
 
90910
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
90911
 
 
90912
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90913
at_status=$? at_failed=false
 
90914
$at_check_filter
 
90915
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90916
echo >>"$at_stdout"; $as_echo "0
 
90917
" | \
 
90918
  $at_diff - "$at_stdout" || at_failed=:
 
90919
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90920
if $at_failed; then :
 
90921
  cp pid savepid
 
90922
   { set +x
 
90923
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-appctl -t \$PWD/unixctl -e exit"
 
90924
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:207"
 
90925
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90926
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90927
at_status=$? at_failed=false
 
90928
$at_check_filter
 
90929
echo stderr:; cat "$at_stderr"
 
90930
echo stdout:; cat "$at_stdout"
 
90931
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90932
$at_failed && at_fn_log_failure
 
90933
$at_traceon; }
 
90934
 
 
90935
   { set +x
 
90936
$as_echo "$at_srcdir/ovs-vsctl.at:207: # First try a quick sleep, so that the test completes very quickly
 
90937
     # in the normal case.  POSIX doesn't require fractional times to
 
90938
     # work, so this might not work.
 
90939
     sleep 0.1
 
90940
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90941
     # Then wait up to 10 seconds.
 
90942
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90943
       sleep 1
 
90944
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
90945
     done
 
90946
     exit 1"
 
90947
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:207"
 
90948
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
90949
     # in the normal case.  POSIX doesn't require fractional times to
 
90950
     # work, so this might not work.
 
90951
     sleep 0.1
 
90952
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
90953
     # Then wait up to 10 seconds.
 
90954
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
90955
       sleep 1
 
90956
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
90957
     done
 
90958
     exit 1
 
90959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90960
at_status=$? at_failed=false
 
90961
$at_check_filter
 
90962
echo stderr:; cat "$at_stderr"
 
90963
echo stdout:; cat "$at_stdout"
 
90964
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90965
if $at_failed; then :
 
90966
  kill `cat savepid`
 
90967
fi
 
90968
$at_failed && at_fn_log_failure
 
90969
$at_traceon; }
 
90970
 
 
90971
fi
 
90972
$at_failed && at_fn_log_failure
 
90973
$at_traceon; }
 
90974
 
 
90975
   # Check br-to-vlan, with --oneline.
 
90976
   # (This particular test is interesting with --oneline because it returns
 
90977
   # an integer instead of a string and that can cause type mismatches inside
 
90978
   # python if not done carefully.)
 
90979
   { set +x
 
90980
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
90981
"
 
90982
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:207"
 
90983
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
90984
 
 
90985
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
90986
at_status=$? at_failed=false
 
90987
$at_check_filter
 
90988
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
90989
echo >>"$at_stdout"; $as_echo "0
 
90990
" | \
 
90991
  $at_diff - "$at_stdout" || at_failed=:
 
90992
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
90993
if $at_failed; then :
 
90994
  cp pid savepid
 
90995
   { set +x
 
90996
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-appctl -t \$PWD/unixctl -e exit"
 
90997
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:207"
 
90998
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
90999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91000
at_status=$? at_failed=false
 
91001
$at_check_filter
 
91002
echo stderr:; cat "$at_stderr"
 
91003
echo stdout:; cat "$at_stdout"
 
91004
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
91005
$at_failed && at_fn_log_failure
 
91006
$at_traceon; }
 
91007
 
 
91008
   { set +x
 
91009
$as_echo "$at_srcdir/ovs-vsctl.at:207: # First try a quick sleep, so that the test completes very quickly
 
91010
     # in the normal case.  POSIX doesn't require fractional times to
 
91011
     # work, so this might not work.
 
91012
     sleep 0.1
 
91013
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91014
     # Then wait up to 10 seconds.
 
91015
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91016
       sleep 1
 
91017
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91018
     done
 
91019
     exit 1"
 
91020
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:207"
 
91021
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91022
     # in the normal case.  POSIX doesn't require fractional times to
 
91023
     # work, so this might not work.
 
91024
     sleep 0.1
 
91025
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91026
     # Then wait up to 10 seconds.
 
91027
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91028
       sleep 1
 
91029
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91030
     done
 
91031
     exit 1
 
91032
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91033
at_status=$? at_failed=false
 
91034
$at_check_filter
 
91035
echo stderr:; cat "$at_stderr"
 
91036
echo stdout:; cat "$at_stdout"
 
91037
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
91038
if $at_failed; then :
 
91039
  kill `cat savepid`
 
91040
fi
 
91041
$at_failed && at_fn_log_failure
 
91042
$at_traceon; }
 
91043
 
 
91044
fi
 
91045
$at_failed && at_fn_log_failure
 
91046
$at_traceon; }
 
91047
 
 
91048
 
 
91049
   # Check multiple queries in a single run.
 
91050
   { set +x
 
91051
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a"
 
91052
at_fn_check_prepare_trace "ovs-vsctl.at:207"
 
91053
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a
 
91054
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91055
at_status=$? at_failed=false
 
91056
$at_check_filter
 
91057
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91058
echo >>"$at_stdout"; $as_echo "a
 
91059
0
 
91060
" | \
 
91061
  $at_diff - "$at_stdout" || at_failed=:
 
91062
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
91063
if $at_failed; then :
 
91064
  cp pid savepid
 
91065
   { set +x
 
91066
$as_echo "$at_srcdir/ovs-vsctl.at:207: ovs-appctl -t \$PWD/unixctl -e exit"
 
91067
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:207"
 
91068
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91069
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91070
at_status=$? at_failed=false
 
91071
$at_check_filter
 
91072
echo stderr:; cat "$at_stderr"
 
91073
echo stdout:; cat "$at_stdout"
 
91074
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
91075
$at_failed && at_fn_log_failure
 
91076
$at_traceon; }
 
91077
 
 
91078
   { set +x
 
91079
$as_echo "$at_srcdir/ovs-vsctl.at:207: # First try a quick sleep, so that the test completes very quickly
 
91080
     # in the normal case.  POSIX doesn't require fractional times to
 
91081
     # work, so this might not work.
 
91082
     sleep 0.1
 
91083
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91084
     # Then wait up to 10 seconds.
 
91085
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91086
       sleep 1
 
91087
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91088
     done
 
91089
     exit 1"
 
91090
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:207"
 
91091
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91092
     # in the normal case.  POSIX doesn't require fractional times to
 
91093
     # work, so this might not work.
 
91094
     sleep 0.1
 
91095
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91096
     # Then wait up to 10 seconds.
 
91097
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91098
       sleep 1
 
91099
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91100
     done
 
91101
     exit 1
 
91102
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91103
at_status=$? at_failed=false
 
91104
$at_check_filter
 
91105
echo stderr:; cat "$at_stderr"
 
91106
echo stdout:; cat "$at_stdout"
 
91107
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:207"
 
91108
if $at_failed; then :
 
91109
  kill `cat savepid`
 
91110
fi
 
91111
$at_failed && at_fn_log_failure
 
91112
$at_traceon; }
 
91113
 
 
91114
fi
 
91115
$at_failed && at_fn_log_failure
 
91116
$at_traceon; }
 
91117
 
 
91118
   { set +x
 
91119
$as_echo "$at_srcdir/ovs-vsctl.at:208: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
91120
"
 
91121
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:208"
 
91122
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
91123
 
 
91124
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91125
at_status=$? at_failed=false
 
91126
$at_check_filter
 
91127
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91128
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
91129
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91130
if $at_failed; then :
 
91131
  cp pid savepid
 
91132
   { set +x
 
91133
$as_echo "$at_srcdir/ovs-vsctl.at:208: ovs-appctl -t \$PWD/unixctl -e exit"
 
91134
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:208"
 
91135
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91136
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91137
at_status=$? at_failed=false
 
91138
$at_check_filter
 
91139
echo stderr:; cat "$at_stderr"
 
91140
echo stdout:; cat "$at_stdout"
 
91141
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91142
$at_failed && at_fn_log_failure
 
91143
$at_traceon; }
 
91144
 
 
91145
   { set +x
 
91146
$as_echo "$at_srcdir/ovs-vsctl.at:208: # First try a quick sleep, so that the test completes very quickly
 
91147
     # in the normal case.  POSIX doesn't require fractional times to
 
91148
     # work, so this might not work.
 
91149
     sleep 0.1
 
91150
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91151
     # Then wait up to 10 seconds.
 
91152
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91153
       sleep 1
 
91154
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91155
     done
 
91156
     exit 1"
 
91157
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:208"
 
91158
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91159
     # in the normal case.  POSIX doesn't require fractional times to
 
91160
     # work, so this might not work.
 
91161
     sleep 0.1
 
91162
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91163
     # Then wait up to 10 seconds.
 
91164
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91165
       sleep 1
 
91166
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91167
     done
 
91168
     exit 1
 
91169
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91170
at_status=$? at_failed=false
 
91171
$at_check_filter
 
91172
echo stderr:; cat "$at_stderr"
 
91173
echo stdout:; cat "$at_stdout"
 
91174
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91175
if $at_failed; then :
 
91176
  kill `cat savepid`
 
91177
fi
 
91178
$at_failed && at_fn_log_failure
 
91179
$at_traceon; }
 
91180
 
 
91181
fi
 
91182
$at_failed && at_fn_log_failure
 
91183
$at_traceon; }
 
91184
 
 
91185
 
 
91186
      { set +x
 
91187
$as_echo "$at_srcdir/ovs-vsctl.at:208: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
91188
"
 
91189
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:208"
 
91190
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
91191
 
 
91192
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91193
at_status=$? at_failed=false
 
91194
$at_check_filter
 
91195
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91196
echo >>"$at_stdout"; $as_echo "
 
91197
" | \
 
91198
  $at_diff - "$at_stdout" || at_failed=:
 
91199
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91200
if $at_failed; then :
 
91201
  cp pid savepid
 
91202
   { set +x
 
91203
$as_echo "$at_srcdir/ovs-vsctl.at:208: ovs-appctl -t \$PWD/unixctl -e exit"
 
91204
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:208"
 
91205
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91206
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91207
at_status=$? at_failed=false
 
91208
$at_check_filter
 
91209
echo stderr:; cat "$at_stderr"
 
91210
echo stdout:; cat "$at_stdout"
 
91211
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91212
$at_failed && at_fn_log_failure
 
91213
$at_traceon; }
 
91214
 
 
91215
   { set +x
 
91216
$as_echo "$at_srcdir/ovs-vsctl.at:208: # First try a quick sleep, so that the test completes very quickly
 
91217
     # in the normal case.  POSIX doesn't require fractional times to
 
91218
     # work, so this might not work.
 
91219
     sleep 0.1
 
91220
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91221
     # Then wait up to 10 seconds.
 
91222
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91223
       sleep 1
 
91224
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91225
     done
 
91226
     exit 1"
 
91227
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:208"
 
91228
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91229
     # in the normal case.  POSIX doesn't require fractional times to
 
91230
     # work, so this might not work.
 
91231
     sleep 0.1
 
91232
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91233
     # Then wait up to 10 seconds.
 
91234
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91235
       sleep 1
 
91236
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91237
     done
 
91238
     exit 1
 
91239
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91240
at_status=$? at_failed=false
 
91241
$at_check_filter
 
91242
echo stderr:; cat "$at_stderr"
 
91243
echo stdout:; cat "$at_stdout"
 
91244
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91245
if $at_failed; then :
 
91246
  kill `cat savepid`
 
91247
fi
 
91248
$at_failed && at_fn_log_failure
 
91249
$at_traceon; }
 
91250
 
 
91251
fi
 
91252
$at_failed && at_fn_log_failure
 
91253
$at_traceon; }
 
91254
 
 
91255
   { set +x
 
91256
$as_echo "$at_srcdir/ovs-vsctl.at:208: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
91257
"
 
91258
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:208"
 
91259
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
91260
 
 
91261
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91262
at_status=$? at_failed=false
 
91263
$at_check_filter
 
91264
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named a
 
91265
" | \
 
91266
  $at_diff - "$at_stderr" || at_failed=:
 
91267
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
91268
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91269
if $at_failed; then :
 
91270
  cp pid savepid
 
91271
   { set +x
 
91272
$as_echo "$at_srcdir/ovs-vsctl.at:208: ovs-appctl -t \$PWD/unixctl -e exit"
 
91273
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:208"
 
91274
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91275
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91276
at_status=$? at_failed=false
 
91277
$at_check_filter
 
91278
echo stderr:; cat "$at_stderr"
 
91279
echo stdout:; cat "$at_stdout"
 
91280
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91281
$at_failed && at_fn_log_failure
 
91282
$at_traceon; }
 
91283
 
 
91284
   { set +x
 
91285
$as_echo "$at_srcdir/ovs-vsctl.at:208: # First try a quick sleep, so that the test completes very quickly
 
91286
     # in the normal case.  POSIX doesn't require fractional times to
 
91287
     # work, so this might not work.
 
91288
     sleep 0.1
 
91289
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91290
     # Then wait up to 10 seconds.
 
91291
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91292
       sleep 1
 
91293
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91294
     done
 
91295
     exit 1"
 
91296
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:208"
 
91297
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91298
     # in the normal case.  POSIX doesn't require fractional times to
 
91299
     # work, so this might not work.
 
91300
     sleep 0.1
 
91301
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91302
     # Then wait up to 10 seconds.
 
91303
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91304
       sleep 1
 
91305
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91306
     done
 
91307
     exit 1
 
91308
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91309
at_status=$? at_failed=false
 
91310
$at_check_filter
 
91311
echo stderr:; cat "$at_stderr"
 
91312
echo stdout:; cat "$at_stdout"
 
91313
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:208"
 
91314
if $at_failed; then :
 
91315
  kill `cat savepid`
 
91316
fi
 
91317
$at_failed && at_fn_log_failure
 
91318
$at_traceon; }
 
91319
 
 
91320
fi
 
91321
$at_failed && at_fn_log_failure
 
91322
$at_traceon; }
 
91323
 
 
91324
 
 
91325
{ set +x
 
91326
$as_echo "$at_srcdir/ovs-vsctl.at:209: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
91327
"
 
91328
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:209"
 
91329
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
91330
 
 
91331
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91332
at_status=$? at_failed=false
 
91333
$at_check_filter
 
91334
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91335
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
91336
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:209"
 
91337
if $at_failed; then :
 
91338
  cp pid savepid
 
91339
   { set +x
 
91340
$as_echo "$at_srcdir/ovs-vsctl.at:209: ovs-appctl -t \$PWD/unixctl -e exit"
 
91341
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:209"
 
91342
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91343
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91344
at_status=$? at_failed=false
 
91345
$at_check_filter
 
91346
echo stderr:; cat "$at_stderr"
 
91347
echo stdout:; cat "$at_stdout"
 
91348
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:209"
 
91349
$at_failed && at_fn_log_failure
 
91350
$at_traceon; }
 
91351
 
 
91352
   { set +x
 
91353
$as_echo "$at_srcdir/ovs-vsctl.at:209: # First try a quick sleep, so that the test completes very quickly
 
91354
     # in the normal case.  POSIX doesn't require fractional times to
 
91355
     # work, so this might not work.
 
91356
     sleep 0.1
 
91357
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91358
     # Then wait up to 10 seconds.
 
91359
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91360
       sleep 1
 
91361
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91362
     done
 
91363
     exit 1"
 
91364
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:209"
 
91365
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91366
     # in the normal case.  POSIX doesn't require fractional times to
 
91367
     # work, so this might not work.
 
91368
     sleep 0.1
 
91369
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91370
     # Then wait up to 10 seconds.
 
91371
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91372
       sleep 1
 
91373
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91374
     done
 
91375
     exit 1
 
91376
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91377
at_status=$? at_failed=false
 
91378
$at_check_filter
 
91379
echo stderr:; cat "$at_stderr"
 
91380
echo stdout:; cat "$at_stdout"
 
91381
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:209"
 
91382
if $at_failed; then :
 
91383
  kill `cat savepid`
 
91384
fi
 
91385
$at_failed && at_fn_log_failure
 
91386
$at_traceon; }
 
91387
 
 
91388
fi
 
91389
$at_failed && at_fn_log_failure
 
91390
$at_traceon; }
 
91391
 
 
91392
   { set +x
 
91393
$as_echo "$at_srcdir/ovs-vsctl.at:209: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
91394
"
 
91395
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:209"
 
91396
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
91397
 
 
91398
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91399
at_status=$? at_failed=false
 
91400
$at_check_filter
 
91401
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named a
 
91402
" | \
 
91403
  $at_diff - "$at_stderr" || at_failed=:
 
91404
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
91405
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:209"
 
91406
if $at_failed; then :
 
91407
  cp pid savepid
 
91408
   { set +x
 
91409
$as_echo "$at_srcdir/ovs-vsctl.at:209: ovs-appctl -t \$PWD/unixctl -e exit"
 
91410
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:209"
 
91411
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91412
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91413
at_status=$? at_failed=false
 
91414
$at_check_filter
 
91415
echo stderr:; cat "$at_stderr"
 
91416
echo stdout:; cat "$at_stdout"
 
91417
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:209"
 
91418
$at_failed && at_fn_log_failure
 
91419
$at_traceon; }
 
91420
 
 
91421
   { set +x
 
91422
$as_echo "$at_srcdir/ovs-vsctl.at:209: # First try a quick sleep, so that the test completes very quickly
 
91423
     # in the normal case.  POSIX doesn't require fractional times to
 
91424
     # work, so this might not work.
 
91425
     sleep 0.1
 
91426
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91427
     # Then wait up to 10 seconds.
 
91428
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91429
       sleep 1
 
91430
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91431
     done
 
91432
     exit 1"
 
91433
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:209"
 
91434
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91435
     # in the normal case.  POSIX doesn't require fractional times to
 
91436
     # work, so this might not work.
 
91437
     sleep 0.1
 
91438
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91439
     # Then wait up to 10 seconds.
 
91440
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91441
       sleep 1
 
91442
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91443
     done
 
91444
     exit 1
 
91445
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91446
at_status=$? at_failed=false
 
91447
$at_check_filter
 
91448
echo stderr:; cat "$at_stderr"
 
91449
echo stdout:; cat "$at_stdout"
 
91450
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:209"
 
91451
if $at_failed; then :
 
91452
  kill `cat savepid`
 
91453
fi
 
91454
$at_failed && at_fn_log_failure
 
91455
$at_traceon; }
 
91456
 
 
91457
fi
 
91458
$at_failed && at_fn_log_failure
 
91459
$at_traceon; }
 
91460
 
 
91461
 
 
91462
cp pid savepid
 
91463
   { set +x
 
91464
$as_echo "$at_srcdir/ovs-vsctl.at:210: ovs-appctl -t \$PWD/unixctl -e exit"
 
91465
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:210"
 
91466
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91467
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91468
at_status=$? at_failed=false
 
91469
$at_check_filter
 
91470
echo stderr:; cat "$at_stderr"
 
91471
echo stdout:; cat "$at_stdout"
 
91472
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:210"
 
91473
$at_failed && at_fn_log_failure
 
91474
$at_traceon; }
 
91475
 
 
91476
   { set +x
 
91477
$as_echo "$at_srcdir/ovs-vsctl.at:210: # First try a quick sleep, so that the test completes very quickly
 
91478
     # in the normal case.  POSIX doesn't require fractional times to
 
91479
     # work, so this might not work.
 
91480
     sleep 0.1
 
91481
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91482
     # Then wait up to 10 seconds.
 
91483
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91484
       sleep 1
 
91485
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91486
     done
 
91487
     exit 1"
 
91488
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:210"
 
91489
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91490
     # in the normal case.  POSIX doesn't require fractional times to
 
91491
     # work, so this might not work.
 
91492
     sleep 0.1
 
91493
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91494
     # Then wait up to 10 seconds.
 
91495
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91496
       sleep 1
 
91497
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91498
     done
 
91499
     exit 1
 
91500
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91501
at_status=$? at_failed=false
 
91502
$at_check_filter
 
91503
echo stderr:; cat "$at_stderr"
 
91504
echo stdout:; cat "$at_stdout"
 
91505
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:210"
 
91506
if $at_failed; then :
 
91507
  kill `cat savepid`
 
91508
fi
 
91509
$at_failed && at_fn_log_failure
 
91510
$at_traceon; }
 
91511
 
 
91512
  set +x
 
91513
  $at_times_p && times >"$at_times_file"
 
91514
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
91515
read at_status <"$at_status_file"
 
91516
#AT_STOP_947
 
91517
#AT_START_948
 
91518
at_fn_group_banner 948 'ovs-vsctl.at:213' \
 
91519
  "add-br a, add-port a a1, add-port a a2" "         " 65
 
91520
at_xfail=no
 
91521
(
 
91522
  $as_echo "948. $at_setup_line: testing $at_desc ..."
 
91523
  $at_traceon
 
91524
 
 
91525
 
 
91526
{ set +x
 
91527
$as_echo "$at_srcdir/ovs-vsctl.at:215: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
91528
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:215"
 
91529
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
91530
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91531
at_status=$? at_failed=false
 
91532
$at_check_filter
 
91533
echo stderr:; cat "$at_stderr"
 
91534
echo stdout:; tee stdout <"$at_stdout"
 
91535
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:215"
 
91536
$at_failed && at_fn_log_failure
 
91537
$at_traceon; }
 
91538
 
 
91539
   { set +x
 
91540
$as_echo "$at_srcdir/ovs-vsctl.at:215: ovsdb-tool transact db \\
 
91541
        '[\"Open_vSwitch\",
 
91542
          {\"op\": \"insert\",
 
91543
           \"table\": \"Open_vSwitch\",
 
91544
           \"row\": {}}]'"
 
91545
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:215"
 
91546
( $at_check_trace; ovsdb-tool transact db \
 
91547
        '["Open_vSwitch",
 
91548
          {"op": "insert",
 
91549
           "table": "Open_vSwitch",
 
91550
           "row": {}}]'
 
91551
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91552
at_status=$? at_failed=false
 
91553
$at_check_filter
 
91554
echo stderr:; cat "$at_stderr"
 
91555
echo stdout:; cat "$at_stdout"
 
91556
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:215"
 
91557
$at_failed && at_fn_log_failure
 
91558
$at_traceon; }
 
91559
 
 
91560
   { set +x
 
91561
$as_echo "$at_srcdir/ovs-vsctl.at:215: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
91562
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:215"
 
91563
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
91564
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91565
at_status=$? at_failed=false
 
91566
$at_check_filter
 
91567
echo stderr:; cat "$at_stderr"
 
91568
echo stdout:; cat "$at_stdout"
 
91569
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:215"
 
91570
$at_failed && at_fn_log_failure
 
91571
$at_traceon; }
 
91572
 
 
91573
{ set +x
 
91574
$as_echo "$at_srcdir/ovs-vsctl.at:216: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
91575
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --if-exists del-br b
 
91576
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a1
 
91577
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a2
 
91578
"
 
91579
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:216"
 
91580
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
91581
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --if-exists del-br b
 
91582
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a1
 
91583
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a2
 
91584
 
 
91585
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91586
at_status=$? at_failed=false
 
91587
$at_check_filter
 
91588
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91589
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
91590
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:216"
 
91591
if $at_failed; then :
 
91592
  cp pid savepid
 
91593
   { set +x
 
91594
$as_echo "$at_srcdir/ovs-vsctl.at:216: ovs-appctl -t \$PWD/unixctl -e exit"
 
91595
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:216"
 
91596
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91597
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91598
at_status=$? at_failed=false
 
91599
$at_check_filter
 
91600
echo stderr:; cat "$at_stderr"
 
91601
echo stdout:; cat "$at_stdout"
 
91602
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:216"
 
91603
$at_failed && at_fn_log_failure
 
91604
$at_traceon; }
 
91605
 
 
91606
   { set +x
 
91607
$as_echo "$at_srcdir/ovs-vsctl.at:216: # First try a quick sleep, so that the test completes very quickly
 
91608
     # in the normal case.  POSIX doesn't require fractional times to
 
91609
     # work, so this might not work.
 
91610
     sleep 0.1
 
91611
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91612
     # Then wait up to 10 seconds.
 
91613
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91614
       sleep 1
 
91615
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91616
     done
 
91617
     exit 1"
 
91618
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:216"
 
91619
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91620
     # in the normal case.  POSIX doesn't require fractional times to
 
91621
     # work, so this might not work.
 
91622
     sleep 0.1
 
91623
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91624
     # Then wait up to 10 seconds.
 
91625
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91626
       sleep 1
 
91627
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91628
     done
 
91629
     exit 1
 
91630
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91631
at_status=$? at_failed=false
 
91632
$at_check_filter
 
91633
echo stderr:; cat "$at_stderr"
 
91634
echo stdout:; cat "$at_stdout"
 
91635
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:216"
 
91636
if $at_failed; then :
 
91637
  kill `cat savepid`
 
91638
fi
 
91639
$at_failed && at_fn_log_failure
 
91640
$at_traceon; }
 
91641
 
 
91642
fi
 
91643
$at_failed && at_fn_log_failure
 
91644
$at_traceon; }
 
91645
 
 
91646
   { set +x
 
91647
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
91648
"
 
91649
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:221"
 
91650
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
91651
 
 
91652
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91653
at_status=$? at_failed=false
 
91654
$at_check_filter
 
91655
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91656
echo >>"$at_stdout"; $as_echo "a
 
91657
" | \
 
91658
  $at_diff - "$at_stdout" || at_failed=:
 
91659
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91660
if $at_failed; then :
 
91661
  cp pid savepid
 
91662
   { set +x
 
91663
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-appctl -t \$PWD/unixctl -e exit"
 
91664
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:221"
 
91665
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91666
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91667
at_status=$? at_failed=false
 
91668
$at_check_filter
 
91669
echo stderr:; cat "$at_stderr"
 
91670
echo stdout:; cat "$at_stdout"
 
91671
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91672
$at_failed && at_fn_log_failure
 
91673
$at_traceon; }
 
91674
 
 
91675
   { set +x
 
91676
$as_echo "$at_srcdir/ovs-vsctl.at:221: # First try a quick sleep, so that the test completes very quickly
 
91677
     # in the normal case.  POSIX doesn't require fractional times to
 
91678
     # work, so this might not work.
 
91679
     sleep 0.1
 
91680
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91681
     # Then wait up to 10 seconds.
 
91682
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91683
       sleep 1
 
91684
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91685
     done
 
91686
     exit 1"
 
91687
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:221"
 
91688
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91689
     # in the normal case.  POSIX doesn't require fractional times to
 
91690
     # work, so this might not work.
 
91691
     sleep 0.1
 
91692
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91693
     # Then wait up to 10 seconds.
 
91694
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91695
       sleep 1
 
91696
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91697
     done
 
91698
     exit 1
 
91699
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91700
at_status=$? at_failed=false
 
91701
$at_check_filter
 
91702
echo stderr:; cat "$at_stderr"
 
91703
echo stdout:; cat "$at_stdout"
 
91704
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91705
if $at_failed; then :
 
91706
  kill `cat savepid`
 
91707
fi
 
91708
$at_failed && at_fn_log_failure
 
91709
$at_traceon; }
 
91710
 
 
91711
fi
 
91712
$at_failed && at_fn_log_failure
 
91713
$at_traceon; }
 
91714
 
 
91715
 
 
91716
      { set +x
 
91717
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
91718
"
 
91719
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:221"
 
91720
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
91721
 
 
91722
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91723
at_status=$? at_failed=false
 
91724
$at_check_filter
 
91725
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91726
echo >>"$at_stdout"; $as_echo "a
 
91727
" | \
 
91728
  $at_diff - "$at_stdout" || at_failed=:
 
91729
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91730
if $at_failed; then :
 
91731
  cp pid savepid
 
91732
   { set +x
 
91733
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-appctl -t \$PWD/unixctl -e exit"
 
91734
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:221"
 
91735
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91736
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91737
at_status=$? at_failed=false
 
91738
$at_check_filter
 
91739
echo stderr:; cat "$at_stderr"
 
91740
echo stdout:; cat "$at_stdout"
 
91741
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91742
$at_failed && at_fn_log_failure
 
91743
$at_traceon; }
 
91744
 
 
91745
   { set +x
 
91746
$as_echo "$at_srcdir/ovs-vsctl.at:221: # First try a quick sleep, so that the test completes very quickly
 
91747
     # in the normal case.  POSIX doesn't require fractional times to
 
91748
     # work, so this might not work.
 
91749
     sleep 0.1
 
91750
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91751
     # Then wait up to 10 seconds.
 
91752
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91753
       sleep 1
 
91754
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91755
     done
 
91756
     exit 1"
 
91757
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:221"
 
91758
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91759
     # in the normal case.  POSIX doesn't require fractional times to
 
91760
     # work, so this might not work.
 
91761
     sleep 0.1
 
91762
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91763
     # Then wait up to 10 seconds.
 
91764
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91765
       sleep 1
 
91766
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91767
     done
 
91768
     exit 1
 
91769
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91770
at_status=$? at_failed=false
 
91771
$at_check_filter
 
91772
echo stderr:; cat "$at_stderr"
 
91773
echo stdout:; cat "$at_stdout"
 
91774
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91775
if $at_failed; then :
 
91776
  kill `cat savepid`
 
91777
fi
 
91778
$at_failed && at_fn_log_failure
 
91779
$at_traceon; }
 
91780
 
 
91781
fi
 
91782
$at_failed && at_fn_log_failure
 
91783
$at_traceon; }
 
91784
 
 
91785
 
 
91786
         { set +x
 
91787
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
91788
"
 
91789
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:221"
 
91790
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
91791
 
 
91792
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91793
at_status=$? at_failed=false
 
91794
$at_check_filter
 
91795
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91796
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
91797
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91798
if $at_failed; then :
 
91799
  cp pid savepid
 
91800
   { set +x
 
91801
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-appctl -t \$PWD/unixctl -e exit"
 
91802
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:221"
 
91803
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91804
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91805
at_status=$? at_failed=false
 
91806
$at_check_filter
 
91807
echo stderr:; cat "$at_stderr"
 
91808
echo stdout:; cat "$at_stdout"
 
91809
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91810
$at_failed && at_fn_log_failure
 
91811
$at_traceon; }
 
91812
 
 
91813
   { set +x
 
91814
$as_echo "$at_srcdir/ovs-vsctl.at:221: # First try a quick sleep, so that the test completes very quickly
 
91815
     # in the normal case.  POSIX doesn't require fractional times to
 
91816
     # work, so this might not work.
 
91817
     sleep 0.1
 
91818
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91819
     # Then wait up to 10 seconds.
 
91820
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91821
       sleep 1
 
91822
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91823
     done
 
91824
     exit 1"
 
91825
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:221"
 
91826
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91827
     # in the normal case.  POSIX doesn't require fractional times to
 
91828
     # work, so this might not work.
 
91829
     sleep 0.1
 
91830
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91831
     # Then wait up to 10 seconds.
 
91832
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91833
       sleep 1
 
91834
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91835
     done
 
91836
     exit 1
 
91837
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91838
at_status=$? at_failed=false
 
91839
$at_check_filter
 
91840
echo stderr:; cat "$at_stderr"
 
91841
echo stdout:; cat "$at_stdout"
 
91842
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91843
if $at_failed; then :
 
91844
  kill `cat savepid`
 
91845
fi
 
91846
$at_failed && at_fn_log_failure
 
91847
$at_traceon; }
 
91848
 
 
91849
fi
 
91850
$at_failed && at_fn_log_failure
 
91851
$at_traceon; }
 
91852
 
 
91853
   { set +x
 
91854
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
91855
"
 
91856
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:221"
 
91857
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
91858
 
 
91859
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91860
at_status=$? at_failed=false
 
91861
$at_check_filter
 
91862
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91863
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
91864
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91865
if $at_failed; then :
 
91866
  cp pid savepid
 
91867
   { set +x
 
91868
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-appctl -t \$PWD/unixctl -e exit"
 
91869
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:221"
 
91870
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91871
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91872
at_status=$? at_failed=false
 
91873
$at_check_filter
 
91874
echo stderr:; cat "$at_stderr"
 
91875
echo stdout:; cat "$at_stdout"
 
91876
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91877
$at_failed && at_fn_log_failure
 
91878
$at_traceon; }
 
91879
 
 
91880
   { set +x
 
91881
$as_echo "$at_srcdir/ovs-vsctl.at:221: # First try a quick sleep, so that the test completes very quickly
 
91882
     # in the normal case.  POSIX doesn't require fractional times to
 
91883
     # work, so this might not work.
 
91884
     sleep 0.1
 
91885
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91886
     # Then wait up to 10 seconds.
 
91887
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91888
       sleep 1
 
91889
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91890
     done
 
91891
     exit 1"
 
91892
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:221"
 
91893
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91894
     # in the normal case.  POSIX doesn't require fractional times to
 
91895
     # work, so this might not work.
 
91896
     sleep 0.1
 
91897
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91898
     # Then wait up to 10 seconds.
 
91899
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91900
       sleep 1
 
91901
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91902
     done
 
91903
     exit 1
 
91904
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91905
at_status=$? at_failed=false
 
91906
$at_check_filter
 
91907
echo stderr:; cat "$at_stderr"
 
91908
echo stdout:; cat "$at_stdout"
 
91909
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91910
if $at_failed; then :
 
91911
  kill `cat savepid`
 
91912
fi
 
91913
$at_failed && at_fn_log_failure
 
91914
$at_traceon; }
 
91915
 
 
91916
fi
 
91917
$at_failed && at_fn_log_failure
 
91918
$at_traceon; }
 
91919
 
 
91920
 
 
91921
      { set +x
 
91922
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
91923
"
 
91924
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:221"
 
91925
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
91926
 
 
91927
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91928
at_status=$? at_failed=false
 
91929
$at_check_filter
 
91930
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
91931
echo >>"$at_stdout"; $as_echo "a
 
91932
" | \
 
91933
  $at_diff - "$at_stdout" || at_failed=:
 
91934
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91935
if $at_failed; then :
 
91936
  cp pid savepid
 
91937
   { set +x
 
91938
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-appctl -t \$PWD/unixctl -e exit"
 
91939
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:221"
 
91940
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
91941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91942
at_status=$? at_failed=false
 
91943
$at_check_filter
 
91944
echo stderr:; cat "$at_stderr"
 
91945
echo stdout:; cat "$at_stdout"
 
91946
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91947
$at_failed && at_fn_log_failure
 
91948
$at_traceon; }
 
91949
 
 
91950
   { set +x
 
91951
$as_echo "$at_srcdir/ovs-vsctl.at:221: # First try a quick sleep, so that the test completes very quickly
 
91952
     # in the normal case.  POSIX doesn't require fractional times to
 
91953
     # work, so this might not work.
 
91954
     sleep 0.1
 
91955
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91956
     # Then wait up to 10 seconds.
 
91957
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91958
       sleep 1
 
91959
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
91960
     done
 
91961
     exit 1"
 
91962
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:221"
 
91963
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
91964
     # in the normal case.  POSIX doesn't require fractional times to
 
91965
     # work, so this might not work.
 
91966
     sleep 0.1
 
91967
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
91968
     # Then wait up to 10 seconds.
 
91969
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
91970
       sleep 1
 
91971
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
91972
     done
 
91973
     exit 1
 
91974
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91975
at_status=$? at_failed=false
 
91976
$at_check_filter
 
91977
echo stderr:; cat "$at_stderr"
 
91978
echo stdout:; cat "$at_stdout"
 
91979
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
91980
if $at_failed; then :
 
91981
  kill `cat savepid`
 
91982
fi
 
91983
$at_failed && at_fn_log_failure
 
91984
$at_traceon; }
 
91985
 
 
91986
fi
 
91987
$at_failed && at_fn_log_failure
 
91988
$at_traceon; }
 
91989
 
 
91990
 
 
91991
   # Check br-to-vlan, without --oneline.
 
91992
   { set +x
 
91993
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
91994
"
 
91995
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:221"
 
91996
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
91997
 
 
91998
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
91999
at_status=$? at_failed=false
 
92000
$at_check_filter
 
92001
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92002
echo >>"$at_stdout"; $as_echo "0
 
92003
" | \
 
92004
  $at_diff - "$at_stdout" || at_failed=:
 
92005
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92006
if $at_failed; then :
 
92007
  cp pid savepid
 
92008
   { set +x
 
92009
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-appctl -t \$PWD/unixctl -e exit"
 
92010
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:221"
 
92011
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92012
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92013
at_status=$? at_failed=false
 
92014
$at_check_filter
 
92015
echo stderr:; cat "$at_stderr"
 
92016
echo stdout:; cat "$at_stdout"
 
92017
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92018
$at_failed && at_fn_log_failure
 
92019
$at_traceon; }
 
92020
 
 
92021
   { set +x
 
92022
$as_echo "$at_srcdir/ovs-vsctl.at:221: # First try a quick sleep, so that the test completes very quickly
 
92023
     # in the normal case.  POSIX doesn't require fractional times to
 
92024
     # work, so this might not work.
 
92025
     sleep 0.1
 
92026
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92027
     # Then wait up to 10 seconds.
 
92028
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92029
       sleep 1
 
92030
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92031
     done
 
92032
     exit 1"
 
92033
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:221"
 
92034
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92035
     # in the normal case.  POSIX doesn't require fractional times to
 
92036
     # work, so this might not work.
 
92037
     sleep 0.1
 
92038
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92039
     # Then wait up to 10 seconds.
 
92040
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92041
       sleep 1
 
92042
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92043
     done
 
92044
     exit 1
 
92045
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92046
at_status=$? at_failed=false
 
92047
$at_check_filter
 
92048
echo stderr:; cat "$at_stderr"
 
92049
echo stdout:; cat "$at_stdout"
 
92050
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92051
if $at_failed; then :
 
92052
  kill `cat savepid`
 
92053
fi
 
92054
$at_failed && at_fn_log_failure
 
92055
$at_traceon; }
 
92056
 
 
92057
fi
 
92058
$at_failed && at_fn_log_failure
 
92059
$at_traceon; }
 
92060
 
 
92061
   # Check br-to-vlan, with --oneline.
 
92062
   # (This particular test is interesting with --oneline because it returns
 
92063
   # an integer instead of a string and that can cause type mismatches inside
 
92064
   # python if not done carefully.)
 
92065
   { set +x
 
92066
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
92067
"
 
92068
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:221"
 
92069
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
92070
 
 
92071
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92072
at_status=$? at_failed=false
 
92073
$at_check_filter
 
92074
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92075
echo >>"$at_stdout"; $as_echo "0
 
92076
" | \
 
92077
  $at_diff - "$at_stdout" || at_failed=:
 
92078
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92079
if $at_failed; then :
 
92080
  cp pid savepid
 
92081
   { set +x
 
92082
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-appctl -t \$PWD/unixctl -e exit"
 
92083
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:221"
 
92084
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92085
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92086
at_status=$? at_failed=false
 
92087
$at_check_filter
 
92088
echo stderr:; cat "$at_stderr"
 
92089
echo stdout:; cat "$at_stdout"
 
92090
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92091
$at_failed && at_fn_log_failure
 
92092
$at_traceon; }
 
92093
 
 
92094
   { set +x
 
92095
$as_echo "$at_srcdir/ovs-vsctl.at:221: # First try a quick sleep, so that the test completes very quickly
 
92096
     # in the normal case.  POSIX doesn't require fractional times to
 
92097
     # work, so this might not work.
 
92098
     sleep 0.1
 
92099
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92100
     # Then wait up to 10 seconds.
 
92101
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92102
       sleep 1
 
92103
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92104
     done
 
92105
     exit 1"
 
92106
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:221"
 
92107
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92108
     # in the normal case.  POSIX doesn't require fractional times to
 
92109
     # work, so this might not work.
 
92110
     sleep 0.1
 
92111
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92112
     # Then wait up to 10 seconds.
 
92113
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92114
       sleep 1
 
92115
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92116
     done
 
92117
     exit 1
 
92118
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92119
at_status=$? at_failed=false
 
92120
$at_check_filter
 
92121
echo stderr:; cat "$at_stderr"
 
92122
echo stdout:; cat "$at_stdout"
 
92123
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92124
if $at_failed; then :
 
92125
  kill `cat savepid`
 
92126
fi
 
92127
$at_failed && at_fn_log_failure
 
92128
$at_traceon; }
 
92129
 
 
92130
fi
 
92131
$at_failed && at_fn_log_failure
 
92132
$at_traceon; }
 
92133
 
 
92134
 
 
92135
   # Check multiple queries in a single run.
 
92136
   { set +x
 
92137
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a"
 
92138
at_fn_check_prepare_trace "ovs-vsctl.at:221"
 
92139
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a
 
92140
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92141
at_status=$? at_failed=false
 
92142
$at_check_filter
 
92143
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92144
echo >>"$at_stdout"; $as_echo "a
 
92145
0
 
92146
" | \
 
92147
  $at_diff - "$at_stdout" || at_failed=:
 
92148
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92149
if $at_failed; then :
 
92150
  cp pid savepid
 
92151
   { set +x
 
92152
$as_echo "$at_srcdir/ovs-vsctl.at:221: ovs-appctl -t \$PWD/unixctl -e exit"
 
92153
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:221"
 
92154
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92155
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92156
at_status=$? at_failed=false
 
92157
$at_check_filter
 
92158
echo stderr:; cat "$at_stderr"
 
92159
echo stdout:; cat "$at_stdout"
 
92160
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92161
$at_failed && at_fn_log_failure
 
92162
$at_traceon; }
 
92163
 
 
92164
   { set +x
 
92165
$as_echo "$at_srcdir/ovs-vsctl.at:221: # First try a quick sleep, so that the test completes very quickly
 
92166
     # in the normal case.  POSIX doesn't require fractional times to
 
92167
     # work, so this might not work.
 
92168
     sleep 0.1
 
92169
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92170
     # Then wait up to 10 seconds.
 
92171
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92172
       sleep 1
 
92173
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92174
     done
 
92175
     exit 1"
 
92176
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:221"
 
92177
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92178
     # in the normal case.  POSIX doesn't require fractional times to
 
92179
     # work, so this might not work.
 
92180
     sleep 0.1
 
92181
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92182
     # Then wait up to 10 seconds.
 
92183
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92184
       sleep 1
 
92185
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92186
     done
 
92187
     exit 1
 
92188
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92189
at_status=$? at_failed=false
 
92190
$at_check_filter
 
92191
echo stderr:; cat "$at_stderr"
 
92192
echo stdout:; cat "$at_stdout"
 
92193
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:221"
 
92194
if $at_failed; then :
 
92195
  kill `cat savepid`
 
92196
fi
 
92197
$at_failed && at_fn_log_failure
 
92198
$at_traceon; }
 
92199
 
 
92200
fi
 
92201
$at_failed && at_fn_log_failure
 
92202
$at_traceon; }
 
92203
 
 
92204
   { set +x
 
92205
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
92206
"
 
92207
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:222"
 
92208
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
92209
 
 
92210
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92211
at_status=$? at_failed=false
 
92212
$at_check_filter
 
92213
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92214
echo >>"$at_stdout"; $as_echo "a1
 
92215
a2
 
92216
" | \
 
92217
  $at_diff - "$at_stdout" || at_failed=:
 
92218
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92219
if $at_failed; then :
 
92220
  cp pid savepid
 
92221
   { set +x
 
92222
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-appctl -t \$PWD/unixctl -e exit"
 
92223
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:222"
 
92224
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92225
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92226
at_status=$? at_failed=false
 
92227
$at_check_filter
 
92228
echo stderr:; cat "$at_stderr"
 
92229
echo stdout:; cat "$at_stdout"
 
92230
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92231
$at_failed && at_fn_log_failure
 
92232
$at_traceon; }
 
92233
 
 
92234
   { set +x
 
92235
$as_echo "$at_srcdir/ovs-vsctl.at:222: # First try a quick sleep, so that the test completes very quickly
 
92236
     # in the normal case.  POSIX doesn't require fractional times to
 
92237
     # work, so this might not work.
 
92238
     sleep 0.1
 
92239
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92240
     # Then wait up to 10 seconds.
 
92241
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92242
       sleep 1
 
92243
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92244
     done
 
92245
     exit 1"
 
92246
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:222"
 
92247
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92248
     # in the normal case.  POSIX doesn't require fractional times to
 
92249
     # work, so this might not work.
 
92250
     sleep 0.1
 
92251
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92252
     # Then wait up to 10 seconds.
 
92253
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92254
       sleep 1
 
92255
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92256
     done
 
92257
     exit 1
 
92258
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92259
at_status=$? at_failed=false
 
92260
$at_check_filter
 
92261
echo stderr:; cat "$at_stderr"
 
92262
echo stdout:; cat "$at_stdout"
 
92263
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92264
if $at_failed; then :
 
92265
  kill `cat savepid`
 
92266
fi
 
92267
$at_failed && at_fn_log_failure
 
92268
$at_traceon; }
 
92269
 
 
92270
fi
 
92271
$at_failed && at_fn_log_failure
 
92272
$at_traceon; }
 
92273
 
 
92274
 
 
92275
      { set +x
 
92276
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
92277
"
 
92278
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:222"
 
92279
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
92280
 
 
92281
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92282
at_status=$? at_failed=false
 
92283
$at_check_filter
 
92284
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92285
echo >>"$at_stdout"; $as_echo "a1\\na2
 
92286
" | \
 
92287
  $at_diff - "$at_stdout" || at_failed=:
 
92288
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92289
if $at_failed; then :
 
92290
  cp pid savepid
 
92291
   { set +x
 
92292
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-appctl -t \$PWD/unixctl -e exit"
 
92293
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:222"
 
92294
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92295
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92296
at_status=$? at_failed=false
 
92297
$at_check_filter
 
92298
echo stderr:; cat "$at_stderr"
 
92299
echo stdout:; cat "$at_stdout"
 
92300
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92301
$at_failed && at_fn_log_failure
 
92302
$at_traceon; }
 
92303
 
 
92304
   { set +x
 
92305
$as_echo "$at_srcdir/ovs-vsctl.at:222: # First try a quick sleep, so that the test completes very quickly
 
92306
     # in the normal case.  POSIX doesn't require fractional times to
 
92307
     # work, so this might not work.
 
92308
     sleep 0.1
 
92309
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92310
     # Then wait up to 10 seconds.
 
92311
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92312
       sleep 1
 
92313
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92314
     done
 
92315
     exit 1"
 
92316
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:222"
 
92317
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92318
     # in the normal case.  POSIX doesn't require fractional times to
 
92319
     # work, so this might not work.
 
92320
     sleep 0.1
 
92321
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92322
     # Then wait up to 10 seconds.
 
92323
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92324
       sleep 1
 
92325
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92326
     done
 
92327
     exit 1
 
92328
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92329
at_status=$? at_failed=false
 
92330
$at_check_filter
 
92331
echo stderr:; cat "$at_stderr"
 
92332
echo stdout:; cat "$at_stdout"
 
92333
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92334
if $at_failed; then :
 
92335
  kill `cat savepid`
 
92336
fi
 
92337
$at_failed && at_fn_log_failure
 
92338
$at_traceon; }
 
92339
 
 
92340
fi
 
92341
$at_failed && at_fn_log_failure
 
92342
$at_traceon; }
 
92343
 
 
92344
   { set +x
 
92345
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
92346
"
 
92347
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:222"
 
92348
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
92349
 
 
92350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92351
at_status=$? at_failed=false
 
92352
$at_check_filter
 
92353
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named a
 
92354
" | \
 
92355
  $at_diff - "$at_stderr" || at_failed=:
 
92356
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
92357
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92358
if $at_failed; then :
 
92359
  cp pid savepid
 
92360
   { set +x
 
92361
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-appctl -t \$PWD/unixctl -e exit"
 
92362
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:222"
 
92363
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92364
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92365
at_status=$? at_failed=false
 
92366
$at_check_filter
 
92367
echo stderr:; cat "$at_stderr"
 
92368
echo stdout:; cat "$at_stdout"
 
92369
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92370
$at_failed && at_fn_log_failure
 
92371
$at_traceon; }
 
92372
 
 
92373
   { set +x
 
92374
$as_echo "$at_srcdir/ovs-vsctl.at:222: # First try a quick sleep, so that the test completes very quickly
 
92375
     # in the normal case.  POSIX doesn't require fractional times to
 
92376
     # work, so this might not work.
 
92377
     sleep 0.1
 
92378
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92379
     # Then wait up to 10 seconds.
 
92380
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92381
       sleep 1
 
92382
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92383
     done
 
92384
     exit 1"
 
92385
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:222"
 
92386
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92387
     # in the normal case.  POSIX doesn't require fractional times to
 
92388
     # work, so this might not work.
 
92389
     sleep 0.1
 
92390
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92391
     # Then wait up to 10 seconds.
 
92392
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92393
       sleep 1
 
92394
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92395
     done
 
92396
     exit 1
 
92397
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92398
at_status=$? at_failed=false
 
92399
$at_check_filter
 
92400
echo stderr:; cat "$at_stderr"
 
92401
echo stdout:; cat "$at_stdout"
 
92402
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92403
if $at_failed; then :
 
92404
  kill `cat savepid`
 
92405
fi
 
92406
$at_failed && at_fn_log_failure
 
92407
$at_traceon; }
 
92408
 
 
92409
fi
 
92410
$at_failed && at_fn_log_failure
 
92411
$at_traceon; }
 
92412
 
 
92413
   { set +x
 
92414
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a1
 
92415
"
 
92416
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:222"
 
92417
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a1
 
92418
 
 
92419
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92420
at_status=$? at_failed=false
 
92421
$at_check_filter
 
92422
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92423
echo >>"$at_stdout"; $as_echo "a
 
92424
" | \
 
92425
  $at_diff - "$at_stdout" || at_failed=:
 
92426
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92427
if $at_failed; then :
 
92428
  cp pid savepid
 
92429
   { set +x
 
92430
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-appctl -t \$PWD/unixctl -e exit"
 
92431
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:222"
 
92432
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92433
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92434
at_status=$? at_failed=false
 
92435
$at_check_filter
 
92436
echo stderr:; cat "$at_stderr"
 
92437
echo stdout:; cat "$at_stdout"
 
92438
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92439
$at_failed && at_fn_log_failure
 
92440
$at_traceon; }
 
92441
 
 
92442
   { set +x
 
92443
$as_echo "$at_srcdir/ovs-vsctl.at:222: # First try a quick sleep, so that the test completes very quickly
 
92444
     # in the normal case.  POSIX doesn't require fractional times to
 
92445
     # work, so this might not work.
 
92446
     sleep 0.1
 
92447
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92448
     # Then wait up to 10 seconds.
 
92449
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92450
       sleep 1
 
92451
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92452
     done
 
92453
     exit 1"
 
92454
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:222"
 
92455
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92456
     # in the normal case.  POSIX doesn't require fractional times to
 
92457
     # work, so this might not work.
 
92458
     sleep 0.1
 
92459
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92460
     # Then wait up to 10 seconds.
 
92461
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92462
       sleep 1
 
92463
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92464
     done
 
92465
     exit 1
 
92466
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92467
at_status=$? at_failed=false
 
92468
$at_check_filter
 
92469
echo stderr:; cat "$at_stderr"
 
92470
echo stdout:; cat "$at_stdout"
 
92471
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92472
if $at_failed; then :
 
92473
  kill `cat savepid`
 
92474
fi
 
92475
$at_failed && at_fn_log_failure
 
92476
$at_traceon; }
 
92477
 
 
92478
fi
 
92479
$at_failed && at_fn_log_failure
 
92480
$at_traceon; }
 
92481
{ set +x
 
92482
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a2
 
92483
"
 
92484
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:222"
 
92485
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a2
 
92486
 
 
92487
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92488
at_status=$? at_failed=false
 
92489
$at_check_filter
 
92490
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92491
echo >>"$at_stdout"; $as_echo "a
 
92492
" | \
 
92493
  $at_diff - "$at_stdout" || at_failed=:
 
92494
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92495
if $at_failed; then :
 
92496
  cp pid savepid
 
92497
   { set +x
 
92498
$as_echo "$at_srcdir/ovs-vsctl.at:222: ovs-appctl -t \$PWD/unixctl -e exit"
 
92499
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:222"
 
92500
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92501
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92502
at_status=$? at_failed=false
 
92503
$at_check_filter
 
92504
echo stderr:; cat "$at_stderr"
 
92505
echo stdout:; cat "$at_stdout"
 
92506
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92507
$at_failed && at_fn_log_failure
 
92508
$at_traceon; }
 
92509
 
 
92510
   { set +x
 
92511
$as_echo "$at_srcdir/ovs-vsctl.at:222: # First try a quick sleep, so that the test completes very quickly
 
92512
     # in the normal case.  POSIX doesn't require fractional times to
 
92513
     # work, so this might not work.
 
92514
     sleep 0.1
 
92515
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92516
     # Then wait up to 10 seconds.
 
92517
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92518
       sleep 1
 
92519
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92520
     done
 
92521
     exit 1"
 
92522
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:222"
 
92523
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92524
     # in the normal case.  POSIX doesn't require fractional times to
 
92525
     # work, so this might not work.
 
92526
     sleep 0.1
 
92527
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92528
     # Then wait up to 10 seconds.
 
92529
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92530
       sleep 1
 
92531
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92532
     done
 
92533
     exit 1
 
92534
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92535
at_status=$? at_failed=false
 
92536
$at_check_filter
 
92537
echo stderr:; cat "$at_stderr"
 
92538
echo stdout:; cat "$at_stdout"
 
92539
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:222"
 
92540
if $at_failed; then :
 
92541
  kill `cat savepid`
 
92542
fi
 
92543
$at_failed && at_fn_log_failure
 
92544
$at_traceon; }
 
92545
 
 
92546
fi
 
92547
$at_failed && at_fn_log_failure
 
92548
$at_traceon; }
 
92549
 
 
92550
{ set +x
 
92551
$as_echo "$at_srcdir/ovs-vsctl.at:223: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
92552
"
 
92553
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:223"
 
92554
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
92555
 
 
92556
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92557
at_status=$? at_failed=false
 
92558
$at_check_filter
 
92559
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92560
echo >>"$at_stdout"; $as_echo "a1
 
92561
a2
 
92562
" | \
 
92563
  $at_diff - "$at_stdout" || at_failed=:
 
92564
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92565
if $at_failed; then :
 
92566
  cp pid savepid
 
92567
   { set +x
 
92568
$as_echo "$at_srcdir/ovs-vsctl.at:223: ovs-appctl -t \$PWD/unixctl -e exit"
 
92569
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:223"
 
92570
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92571
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92572
at_status=$? at_failed=false
 
92573
$at_check_filter
 
92574
echo stderr:; cat "$at_stderr"
 
92575
echo stdout:; cat "$at_stdout"
 
92576
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92577
$at_failed && at_fn_log_failure
 
92578
$at_traceon; }
 
92579
 
 
92580
   { set +x
 
92581
$as_echo "$at_srcdir/ovs-vsctl.at:223: # First try a quick sleep, so that the test completes very quickly
 
92582
     # in the normal case.  POSIX doesn't require fractional times to
 
92583
     # work, so this might not work.
 
92584
     sleep 0.1
 
92585
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92586
     # Then wait up to 10 seconds.
 
92587
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92588
       sleep 1
 
92589
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92590
     done
 
92591
     exit 1"
 
92592
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:223"
 
92593
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92594
     # in the normal case.  POSIX doesn't require fractional times to
 
92595
     # work, so this might not work.
 
92596
     sleep 0.1
 
92597
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92598
     # Then wait up to 10 seconds.
 
92599
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92600
       sleep 1
 
92601
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92602
     done
 
92603
     exit 1
 
92604
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92605
at_status=$? at_failed=false
 
92606
$at_check_filter
 
92607
echo stderr:; cat "$at_stderr"
 
92608
echo stdout:; cat "$at_stdout"
 
92609
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92610
if $at_failed; then :
 
92611
  kill `cat savepid`
 
92612
fi
 
92613
$at_failed && at_fn_log_failure
 
92614
$at_traceon; }
 
92615
 
 
92616
fi
 
92617
$at_failed && at_fn_log_failure
 
92618
$at_traceon; }
 
92619
 
 
92620
   { set +x
 
92621
$as_echo "$at_srcdir/ovs-vsctl.at:223: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
92622
"
 
92623
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:223"
 
92624
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
92625
 
 
92626
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92627
at_status=$? at_failed=false
 
92628
$at_check_filter
 
92629
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named a
 
92630
" | \
 
92631
  $at_diff - "$at_stderr" || at_failed=:
 
92632
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
92633
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92634
if $at_failed; then :
 
92635
  cp pid savepid
 
92636
   { set +x
 
92637
$as_echo "$at_srcdir/ovs-vsctl.at:223: ovs-appctl -t \$PWD/unixctl -e exit"
 
92638
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:223"
 
92639
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92640
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92641
at_status=$? at_failed=false
 
92642
$at_check_filter
 
92643
echo stderr:; cat "$at_stderr"
 
92644
echo stdout:; cat "$at_stdout"
 
92645
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92646
$at_failed && at_fn_log_failure
 
92647
$at_traceon; }
 
92648
 
 
92649
   { set +x
 
92650
$as_echo "$at_srcdir/ovs-vsctl.at:223: # First try a quick sleep, so that the test completes very quickly
 
92651
     # in the normal case.  POSIX doesn't require fractional times to
 
92652
     # work, so this might not work.
 
92653
     sleep 0.1
 
92654
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92655
     # Then wait up to 10 seconds.
 
92656
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92657
       sleep 1
 
92658
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92659
     done
 
92660
     exit 1"
 
92661
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:223"
 
92662
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92663
     # in the normal case.  POSIX doesn't require fractional times to
 
92664
     # work, so this might not work.
 
92665
     sleep 0.1
 
92666
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92667
     # Then wait up to 10 seconds.
 
92668
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92669
       sleep 1
 
92670
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92671
     done
 
92672
     exit 1
 
92673
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92674
at_status=$? at_failed=false
 
92675
$at_check_filter
 
92676
echo stderr:; cat "$at_stderr"
 
92677
echo stdout:; cat "$at_stdout"
 
92678
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92679
if $at_failed; then :
 
92680
  kill `cat savepid`
 
92681
fi
 
92682
$at_failed && at_fn_log_failure
 
92683
$at_traceon; }
 
92684
 
 
92685
fi
 
92686
$at_failed && at_fn_log_failure
 
92687
$at_traceon; }
 
92688
 
 
92689
   { set +x
 
92690
$as_echo "$at_srcdir/ovs-vsctl.at:223: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a1
 
92691
"
 
92692
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:223"
 
92693
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a1
 
92694
 
 
92695
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92696
at_status=$? at_failed=false
 
92697
$at_check_filter
 
92698
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92699
echo >>"$at_stdout"; $as_echo "a
 
92700
" | \
 
92701
  $at_diff - "$at_stdout" || at_failed=:
 
92702
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92703
if $at_failed; then :
 
92704
  cp pid savepid
 
92705
   { set +x
 
92706
$as_echo "$at_srcdir/ovs-vsctl.at:223: ovs-appctl -t \$PWD/unixctl -e exit"
 
92707
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:223"
 
92708
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92709
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92710
at_status=$? at_failed=false
 
92711
$at_check_filter
 
92712
echo stderr:; cat "$at_stderr"
 
92713
echo stdout:; cat "$at_stdout"
 
92714
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92715
$at_failed && at_fn_log_failure
 
92716
$at_traceon; }
 
92717
 
 
92718
   { set +x
 
92719
$as_echo "$at_srcdir/ovs-vsctl.at:223: # First try a quick sleep, so that the test completes very quickly
 
92720
     # in the normal case.  POSIX doesn't require fractional times to
 
92721
     # work, so this might not work.
 
92722
     sleep 0.1
 
92723
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92724
     # Then wait up to 10 seconds.
 
92725
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92726
       sleep 1
 
92727
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92728
     done
 
92729
     exit 1"
 
92730
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:223"
 
92731
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92732
     # in the normal case.  POSIX doesn't require fractional times to
 
92733
     # work, so this might not work.
 
92734
     sleep 0.1
 
92735
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92736
     # Then wait up to 10 seconds.
 
92737
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92738
       sleep 1
 
92739
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92740
     done
 
92741
     exit 1
 
92742
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92743
at_status=$? at_failed=false
 
92744
$at_check_filter
 
92745
echo stderr:; cat "$at_stderr"
 
92746
echo stdout:; cat "$at_stdout"
 
92747
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92748
if $at_failed; then :
 
92749
  kill `cat savepid`
 
92750
fi
 
92751
$at_failed && at_fn_log_failure
 
92752
$at_traceon; }
 
92753
 
 
92754
fi
 
92755
$at_failed && at_fn_log_failure
 
92756
$at_traceon; }
 
92757
{ set +x
 
92758
$as_echo "$at_srcdir/ovs-vsctl.at:223: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a2
 
92759
"
 
92760
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:223"
 
92761
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a2
 
92762
 
 
92763
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92764
at_status=$? at_failed=false
 
92765
$at_check_filter
 
92766
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92767
echo >>"$at_stdout"; $as_echo "a
 
92768
" | \
 
92769
  $at_diff - "$at_stdout" || at_failed=:
 
92770
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92771
if $at_failed; then :
 
92772
  cp pid savepid
 
92773
   { set +x
 
92774
$as_echo "$at_srcdir/ovs-vsctl.at:223: ovs-appctl -t \$PWD/unixctl -e exit"
 
92775
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:223"
 
92776
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92777
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92778
at_status=$? at_failed=false
 
92779
$at_check_filter
 
92780
echo stderr:; cat "$at_stderr"
 
92781
echo stdout:; cat "$at_stdout"
 
92782
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92783
$at_failed && at_fn_log_failure
 
92784
$at_traceon; }
 
92785
 
 
92786
   { set +x
 
92787
$as_echo "$at_srcdir/ovs-vsctl.at:223: # First try a quick sleep, so that the test completes very quickly
 
92788
     # in the normal case.  POSIX doesn't require fractional times to
 
92789
     # work, so this might not work.
 
92790
     sleep 0.1
 
92791
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92792
     # Then wait up to 10 seconds.
 
92793
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92794
       sleep 1
 
92795
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92796
     done
 
92797
     exit 1"
 
92798
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:223"
 
92799
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92800
     # in the normal case.  POSIX doesn't require fractional times to
 
92801
     # work, so this might not work.
 
92802
     sleep 0.1
 
92803
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92804
     # Then wait up to 10 seconds.
 
92805
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92806
       sleep 1
 
92807
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92808
     done
 
92809
     exit 1
 
92810
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92811
at_status=$? at_failed=false
 
92812
$at_check_filter
 
92813
echo stderr:; cat "$at_stderr"
 
92814
echo stdout:; cat "$at_stdout"
 
92815
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:223"
 
92816
if $at_failed; then :
 
92817
  kill `cat savepid`
 
92818
fi
 
92819
$at_failed && at_fn_log_failure
 
92820
$at_traceon; }
 
92821
 
 
92822
fi
 
92823
$at_failed && at_fn_log_failure
 
92824
$at_traceon; }
 
92825
 
 
92826
cp pid savepid
 
92827
   { set +x
 
92828
$as_echo "$at_srcdir/ovs-vsctl.at:224: ovs-appctl -t \$PWD/unixctl -e exit"
 
92829
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:224"
 
92830
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92831
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92832
at_status=$? at_failed=false
 
92833
$at_check_filter
 
92834
echo stderr:; cat "$at_stderr"
 
92835
echo stdout:; cat "$at_stdout"
 
92836
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:224"
 
92837
$at_failed && at_fn_log_failure
 
92838
$at_traceon; }
 
92839
 
 
92840
   { set +x
 
92841
$as_echo "$at_srcdir/ovs-vsctl.at:224: # First try a quick sleep, so that the test completes very quickly
 
92842
     # in the normal case.  POSIX doesn't require fractional times to
 
92843
     # work, so this might not work.
 
92844
     sleep 0.1
 
92845
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92846
     # Then wait up to 10 seconds.
 
92847
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92848
       sleep 1
 
92849
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92850
     done
 
92851
     exit 1"
 
92852
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:224"
 
92853
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92854
     # in the normal case.  POSIX doesn't require fractional times to
 
92855
     # work, so this might not work.
 
92856
     sleep 0.1
 
92857
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92858
     # Then wait up to 10 seconds.
 
92859
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92860
       sleep 1
 
92861
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92862
     done
 
92863
     exit 1
 
92864
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92865
at_status=$? at_failed=false
 
92866
$at_check_filter
 
92867
echo stderr:; cat "$at_stderr"
 
92868
echo stdout:; cat "$at_stdout"
 
92869
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:224"
 
92870
if $at_failed; then :
 
92871
  kill `cat savepid`
 
92872
fi
 
92873
$at_failed && at_fn_log_failure
 
92874
$at_traceon; }
 
92875
 
 
92876
  set +x
 
92877
  $at_times_p && times >"$at_times_file"
 
92878
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
92879
read at_status <"$at_status_file"
 
92880
#AT_STOP_948
 
92881
#AT_START_949
 
92882
at_fn_group_banner 949 'ovs-vsctl.at:227' \
 
92883
  "add-br a, add-port a a1, add-port a a1" "         " 65
 
92884
at_xfail=no
 
92885
(
 
92886
  $as_echo "949. $at_setup_line: testing $at_desc ..."
 
92887
  $at_traceon
 
92888
 
 
92889
 
 
92890
{ set +x
 
92891
$as_echo "$at_srcdir/ovs-vsctl.at:229: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
92892
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:229"
 
92893
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
92894
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92895
at_status=$? at_failed=false
 
92896
$at_check_filter
 
92897
echo stderr:; cat "$at_stderr"
 
92898
echo stdout:; tee stdout <"$at_stdout"
 
92899
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:229"
 
92900
$at_failed && at_fn_log_failure
 
92901
$at_traceon; }
 
92902
 
 
92903
   { set +x
 
92904
$as_echo "$at_srcdir/ovs-vsctl.at:229: ovsdb-tool transact db \\
 
92905
        '[\"Open_vSwitch\",
 
92906
          {\"op\": \"insert\",
 
92907
           \"table\": \"Open_vSwitch\",
 
92908
           \"row\": {}}]'"
 
92909
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:229"
 
92910
( $at_check_trace; ovsdb-tool transact db \
 
92911
        '["Open_vSwitch",
 
92912
          {"op": "insert",
 
92913
           "table": "Open_vSwitch",
 
92914
           "row": {}}]'
 
92915
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92916
at_status=$? at_failed=false
 
92917
$at_check_filter
 
92918
echo stderr:; cat "$at_stderr"
 
92919
echo stdout:; cat "$at_stdout"
 
92920
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:229"
 
92921
$at_failed && at_fn_log_failure
 
92922
$at_traceon; }
 
92923
 
 
92924
   { set +x
 
92925
$as_echo "$at_srcdir/ovs-vsctl.at:229: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
92926
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:229"
 
92927
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
92928
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92929
at_status=$? at_failed=false
 
92930
$at_check_filter
 
92931
echo stderr:; cat "$at_stderr"
 
92932
echo stdout:; cat "$at_stdout"
 
92933
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:229"
 
92934
$at_failed && at_fn_log_failure
 
92935
$at_traceon; }
 
92936
 
 
92937
{ set +x
 
92938
$as_echo "$at_srcdir/ovs-vsctl.at:230: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
92939
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a1
 
92940
"
 
92941
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:230"
 
92942
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
92943
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a1
 
92944
 
 
92945
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92946
at_status=$? at_failed=false
 
92947
$at_check_filter
 
92948
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
92949
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
92950
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:230"
 
92951
if $at_failed; then :
 
92952
  cp pid savepid
 
92953
   { set +x
 
92954
$as_echo "$at_srcdir/ovs-vsctl.at:230: ovs-appctl -t \$PWD/unixctl -e exit"
 
92955
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:230"
 
92956
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
92957
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92958
at_status=$? at_failed=false
 
92959
$at_check_filter
 
92960
echo stderr:; cat "$at_stderr"
 
92961
echo stdout:; cat "$at_stdout"
 
92962
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:230"
 
92963
$at_failed && at_fn_log_failure
 
92964
$at_traceon; }
 
92965
 
 
92966
   { set +x
 
92967
$as_echo "$at_srcdir/ovs-vsctl.at:230: # First try a quick sleep, so that the test completes very quickly
 
92968
     # in the normal case.  POSIX doesn't require fractional times to
 
92969
     # work, so this might not work.
 
92970
     sleep 0.1
 
92971
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92972
     # Then wait up to 10 seconds.
 
92973
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92974
       sleep 1
 
92975
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
92976
     done
 
92977
     exit 1"
 
92978
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:230"
 
92979
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
92980
     # in the normal case.  POSIX doesn't require fractional times to
 
92981
     # work, so this might not work.
 
92982
     sleep 0.1
 
92983
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
92984
     # Then wait up to 10 seconds.
 
92985
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
92986
       sleep 1
 
92987
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
92988
     done
 
92989
     exit 1
 
92990
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
92991
at_status=$? at_failed=false
 
92992
$at_check_filter
 
92993
echo stderr:; cat "$at_stderr"
 
92994
echo stdout:; cat "$at_stdout"
 
92995
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:230"
 
92996
if $at_failed; then :
 
92997
  kill `cat savepid`
 
92998
fi
 
92999
$at_failed && at_fn_log_failure
 
93000
$at_traceon; }
 
93001
 
 
93002
fi
 
93003
$at_failed && at_fn_log_failure
 
93004
$at_traceon; }
 
93005
 
 
93006
{ set +x
 
93007
$as_echo "$at_srcdir/ovs-vsctl.at:233: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a1
 
93008
"
 
93009
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:233"
 
93010
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a1
 
93011
 
 
93012
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93013
at_status=$? at_failed=false
 
93014
$at_check_filter
 
93015
echo >>"$at_stderr"; $as_echo "ovs-vsctl: cannot create a port named a1 because a port named a1 already exists on bridge a
 
93016
" | \
 
93017
  $at_diff - "$at_stderr" || at_failed=:
 
93018
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
93019
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:233"
 
93020
if $at_failed; then :
 
93021
  cp pid savepid
 
93022
   { set +x
 
93023
$as_echo "$at_srcdir/ovs-vsctl.at:233: ovs-appctl -t \$PWD/unixctl -e exit"
 
93024
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:233"
 
93025
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93027
at_status=$? at_failed=false
 
93028
$at_check_filter
 
93029
echo stderr:; cat "$at_stderr"
 
93030
echo stdout:; cat "$at_stdout"
 
93031
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:233"
 
93032
$at_failed && at_fn_log_failure
 
93033
$at_traceon; }
 
93034
 
 
93035
   { set +x
 
93036
$as_echo "$at_srcdir/ovs-vsctl.at:233: # First try a quick sleep, so that the test completes very quickly
 
93037
     # in the normal case.  POSIX doesn't require fractional times to
 
93038
     # work, so this might not work.
 
93039
     sleep 0.1
 
93040
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93041
     # Then wait up to 10 seconds.
 
93042
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93043
       sleep 1
 
93044
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93045
     done
 
93046
     exit 1"
 
93047
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:233"
 
93048
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93049
     # in the normal case.  POSIX doesn't require fractional times to
 
93050
     # work, so this might not work.
 
93051
     sleep 0.1
 
93052
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93053
     # Then wait up to 10 seconds.
 
93054
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93055
       sleep 1
 
93056
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93057
     done
 
93058
     exit 1
 
93059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93060
at_status=$? at_failed=false
 
93061
$at_check_filter
 
93062
echo stderr:; cat "$at_stderr"
 
93063
echo stdout:; cat "$at_stdout"
 
93064
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:233"
 
93065
if $at_failed; then :
 
93066
  kill `cat savepid`
 
93067
fi
 
93068
$at_failed && at_fn_log_failure
 
93069
$at_traceon; }
 
93070
 
 
93071
fi
 
93072
$at_failed && at_fn_log_failure
 
93073
$at_traceon; }
 
93074
 
 
93075
cp pid savepid
 
93076
   { set +x
 
93077
$as_echo "$at_srcdir/ovs-vsctl.at:236: ovs-appctl -t \$PWD/unixctl -e exit"
 
93078
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:236"
 
93079
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93080
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93081
at_status=$? at_failed=false
 
93082
$at_check_filter
 
93083
echo stderr:; cat "$at_stderr"
 
93084
echo stdout:; cat "$at_stdout"
 
93085
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:236"
 
93086
$at_failed && at_fn_log_failure
 
93087
$at_traceon; }
 
93088
 
 
93089
   { set +x
 
93090
$as_echo "$at_srcdir/ovs-vsctl.at:236: # First try a quick sleep, so that the test completes very quickly
 
93091
     # in the normal case.  POSIX doesn't require fractional times to
 
93092
     # work, so this might not work.
 
93093
     sleep 0.1
 
93094
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93095
     # Then wait up to 10 seconds.
 
93096
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93097
       sleep 1
 
93098
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93099
     done
 
93100
     exit 1"
 
93101
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:236"
 
93102
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93103
     # in the normal case.  POSIX doesn't require fractional times to
 
93104
     # work, so this might not work.
 
93105
     sleep 0.1
 
93106
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93107
     # Then wait up to 10 seconds.
 
93108
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93109
       sleep 1
 
93110
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93111
     done
 
93112
     exit 1
 
93113
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93114
at_status=$? at_failed=false
 
93115
$at_check_filter
 
93116
echo stderr:; cat "$at_stderr"
 
93117
echo stdout:; cat "$at_stdout"
 
93118
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:236"
 
93119
if $at_failed; then :
 
93120
  kill `cat savepid`
 
93121
fi
 
93122
$at_failed && at_fn_log_failure
 
93123
$at_traceon; }
 
93124
 
 
93125
  set +x
 
93126
  $at_times_p && times >"$at_times_file"
 
93127
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
93128
read at_status <"$at_status_file"
 
93129
#AT_STOP_949
 
93130
#AT_START_950
 
93131
at_fn_group_banner 950 'ovs-vsctl.at:239' \
 
93132
  "add-br a b, add-port a a1, add-port b b1, del-br a" "" 65
 
93133
at_xfail=no
 
93134
(
 
93135
  $as_echo "950. $at_setup_line: testing $at_desc ..."
 
93136
  $at_traceon
 
93137
 
 
93138
 
 
93139
{ set +x
 
93140
$as_echo "$at_srcdir/ovs-vsctl.at:241: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
93141
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:241"
 
93142
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
93143
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93144
at_status=$? at_failed=false
 
93145
$at_check_filter
 
93146
echo stderr:; cat "$at_stderr"
 
93147
echo stdout:; tee stdout <"$at_stdout"
 
93148
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:241"
 
93149
$at_failed && at_fn_log_failure
 
93150
$at_traceon; }
 
93151
 
 
93152
   { set +x
 
93153
$as_echo "$at_srcdir/ovs-vsctl.at:241: ovsdb-tool transact db \\
 
93154
        '[\"Open_vSwitch\",
 
93155
          {\"op\": \"insert\",
 
93156
           \"table\": \"Open_vSwitch\",
 
93157
           \"row\": {}}]'"
 
93158
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:241"
 
93159
( $at_check_trace; ovsdb-tool transact db \
 
93160
        '["Open_vSwitch",
 
93161
          {"op": "insert",
 
93162
           "table": "Open_vSwitch",
 
93163
           "row": {}}]'
 
93164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93165
at_status=$? at_failed=false
 
93166
$at_check_filter
 
93167
echo stderr:; cat "$at_stderr"
 
93168
echo stdout:; cat "$at_stdout"
 
93169
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:241"
 
93170
$at_failed && at_fn_log_failure
 
93171
$at_traceon; }
 
93172
 
 
93173
   { set +x
 
93174
$as_echo "$at_srcdir/ovs-vsctl.at:241: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
93175
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:241"
 
93176
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
93177
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93178
at_status=$? at_failed=false
 
93179
$at_check_filter
 
93180
echo stderr:; cat "$at_stderr"
 
93181
echo stdout:; cat "$at_stdout"
 
93182
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:241"
 
93183
$at_failed && at_fn_log_failure
 
93184
$at_traceon; }
 
93185
 
 
93186
{ set +x
 
93187
$as_echo "$at_srcdir/ovs-vsctl.at:242: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- add-br a -- add-br b -- add-port a a1 -- add-port b b1 -- --if-exists del-port b b2 -- del-br a"
 
93188
at_fn_check_prepare_trace "ovs-vsctl.at:242"
 
93189
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- add-br a -- add-br b -- add-port a a1 -- add-port b b1 -- --if-exists del-port b b2 -- del-br a
 
93190
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93191
at_status=$? at_failed=false
 
93192
$at_check_filter
 
93193
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93194
echo >>"$at_stdout"; $as_echo "
 
93195
 
 
93196
 
 
93197
 
 
93198
 
 
93199
 
 
93200
" | \
 
93201
  $at_diff - "$at_stdout" || at_failed=:
 
93202
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:242"
 
93203
if $at_failed; then :
 
93204
  cp pid savepid
 
93205
   { set +x
 
93206
$as_echo "$at_srcdir/ovs-vsctl.at:242: ovs-appctl -t \$PWD/unixctl -e exit"
 
93207
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:242"
 
93208
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93209
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93210
at_status=$? at_failed=false
 
93211
$at_check_filter
 
93212
echo stderr:; cat "$at_stderr"
 
93213
echo stdout:; cat "$at_stdout"
 
93214
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:242"
 
93215
$at_failed && at_fn_log_failure
 
93216
$at_traceon; }
 
93217
 
 
93218
   { set +x
 
93219
$as_echo "$at_srcdir/ovs-vsctl.at:242: # First try a quick sleep, so that the test completes very quickly
 
93220
     # in the normal case.  POSIX doesn't require fractional times to
 
93221
     # work, so this might not work.
 
93222
     sleep 0.1
 
93223
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93224
     # Then wait up to 10 seconds.
 
93225
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93226
       sleep 1
 
93227
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93228
     done
 
93229
     exit 1"
 
93230
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:242"
 
93231
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93232
     # in the normal case.  POSIX doesn't require fractional times to
 
93233
     # work, so this might not work.
 
93234
     sleep 0.1
 
93235
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93236
     # Then wait up to 10 seconds.
 
93237
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93238
       sleep 1
 
93239
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93240
     done
 
93241
     exit 1
 
93242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93243
at_status=$? at_failed=false
 
93244
$at_check_filter
 
93245
echo stderr:; cat "$at_stderr"
 
93246
echo stdout:; cat "$at_stdout"
 
93247
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:242"
 
93248
if $at_failed; then :
 
93249
  kill `cat savepid`
 
93250
fi
 
93251
$at_failed && at_fn_log_failure
 
93252
$at_traceon; }
 
93253
 
 
93254
fi
 
93255
$at_failed && at_fn_log_failure
 
93256
$at_traceon; }
 
93257
 
 
93258
   { set +x
 
93259
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
93260
"
 
93261
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:255"
 
93262
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
93263
 
 
93264
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93265
at_status=$? at_failed=false
 
93266
$at_check_filter
 
93267
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93268
echo >>"$at_stdout"; $as_echo "b
 
93269
" | \
 
93270
  $at_diff - "$at_stdout" || at_failed=:
 
93271
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93272
if $at_failed; then :
 
93273
  cp pid savepid
 
93274
   { set +x
 
93275
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-appctl -t \$PWD/unixctl -e exit"
 
93276
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:255"
 
93277
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93278
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93279
at_status=$? at_failed=false
 
93280
$at_check_filter
 
93281
echo stderr:; cat "$at_stderr"
 
93282
echo stdout:; cat "$at_stdout"
 
93283
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93284
$at_failed && at_fn_log_failure
 
93285
$at_traceon; }
 
93286
 
 
93287
   { set +x
 
93288
$as_echo "$at_srcdir/ovs-vsctl.at:255: # First try a quick sleep, so that the test completes very quickly
 
93289
     # in the normal case.  POSIX doesn't require fractional times to
 
93290
     # work, so this might not work.
 
93291
     sleep 0.1
 
93292
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93293
     # Then wait up to 10 seconds.
 
93294
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93295
       sleep 1
 
93296
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93297
     done
 
93298
     exit 1"
 
93299
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:255"
 
93300
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93301
     # in the normal case.  POSIX doesn't require fractional times to
 
93302
     # work, so this might not work.
 
93303
     sleep 0.1
 
93304
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93305
     # Then wait up to 10 seconds.
 
93306
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93307
       sleep 1
 
93308
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93309
     done
 
93310
     exit 1
 
93311
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93312
at_status=$? at_failed=false
 
93313
$at_check_filter
 
93314
echo stderr:; cat "$at_stderr"
 
93315
echo stdout:; cat "$at_stdout"
 
93316
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93317
if $at_failed; then :
 
93318
  kill `cat savepid`
 
93319
fi
 
93320
$at_failed && at_fn_log_failure
 
93321
$at_traceon; }
 
93322
 
 
93323
fi
 
93324
$at_failed && at_fn_log_failure
 
93325
$at_traceon; }
 
93326
 
 
93327
 
 
93328
      { set +x
 
93329
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
93330
"
 
93331
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:255"
 
93332
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
93333
 
 
93334
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93335
at_status=$? at_failed=false
 
93336
$at_check_filter
 
93337
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93338
echo >>"$at_stdout"; $as_echo "b
 
93339
" | \
 
93340
  $at_diff - "$at_stdout" || at_failed=:
 
93341
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93342
if $at_failed; then :
 
93343
  cp pid savepid
 
93344
   { set +x
 
93345
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-appctl -t \$PWD/unixctl -e exit"
 
93346
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:255"
 
93347
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93348
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93349
at_status=$? at_failed=false
 
93350
$at_check_filter
 
93351
echo stderr:; cat "$at_stderr"
 
93352
echo stdout:; cat "$at_stdout"
 
93353
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93354
$at_failed && at_fn_log_failure
 
93355
$at_traceon; }
 
93356
 
 
93357
   { set +x
 
93358
$as_echo "$at_srcdir/ovs-vsctl.at:255: # First try a quick sleep, so that the test completes very quickly
 
93359
     # in the normal case.  POSIX doesn't require fractional times to
 
93360
     # work, so this might not work.
 
93361
     sleep 0.1
 
93362
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93363
     # Then wait up to 10 seconds.
 
93364
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93365
       sleep 1
 
93366
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93367
     done
 
93368
     exit 1"
 
93369
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:255"
 
93370
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93371
     # in the normal case.  POSIX doesn't require fractional times to
 
93372
     # work, so this might not work.
 
93373
     sleep 0.1
 
93374
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93375
     # Then wait up to 10 seconds.
 
93376
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93377
       sleep 1
 
93378
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93379
     done
 
93380
     exit 1
 
93381
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93382
at_status=$? at_failed=false
 
93383
$at_check_filter
 
93384
echo stderr:; cat "$at_stderr"
 
93385
echo stdout:; cat "$at_stdout"
 
93386
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93387
if $at_failed; then :
 
93388
  kill `cat savepid`
 
93389
fi
 
93390
$at_failed && at_fn_log_failure
 
93391
$at_traceon; }
 
93392
 
 
93393
fi
 
93394
$at_failed && at_fn_log_failure
 
93395
$at_traceon; }
 
93396
 
 
93397
 
 
93398
         { set +x
 
93399
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists b
 
93400
"
 
93401
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:255"
 
93402
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists b
 
93403
 
 
93404
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93405
at_status=$? at_failed=false
 
93406
$at_check_filter
 
93407
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93408
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
93409
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93410
if $at_failed; then :
 
93411
  cp pid savepid
 
93412
   { set +x
 
93413
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-appctl -t \$PWD/unixctl -e exit"
 
93414
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:255"
 
93415
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93416
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93417
at_status=$? at_failed=false
 
93418
$at_check_filter
 
93419
echo stderr:; cat "$at_stderr"
 
93420
echo stdout:; cat "$at_stdout"
 
93421
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93422
$at_failed && at_fn_log_failure
 
93423
$at_traceon; }
 
93424
 
 
93425
   { set +x
 
93426
$as_echo "$at_srcdir/ovs-vsctl.at:255: # First try a quick sleep, so that the test completes very quickly
 
93427
     # in the normal case.  POSIX doesn't require fractional times to
 
93428
     # work, so this might not work.
 
93429
     sleep 0.1
 
93430
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93431
     # Then wait up to 10 seconds.
 
93432
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93433
       sleep 1
 
93434
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93435
     done
 
93436
     exit 1"
 
93437
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:255"
 
93438
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93439
     # in the normal case.  POSIX doesn't require fractional times to
 
93440
     # work, so this might not work.
 
93441
     sleep 0.1
 
93442
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93443
     # Then wait up to 10 seconds.
 
93444
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93445
       sleep 1
 
93446
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93447
     done
 
93448
     exit 1
 
93449
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93450
at_status=$? at_failed=false
 
93451
$at_check_filter
 
93452
echo stderr:; cat "$at_stderr"
 
93453
echo stdout:; cat "$at_stdout"
 
93454
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93455
if $at_failed; then :
 
93456
  kill `cat savepid`
 
93457
fi
 
93458
$at_failed && at_fn_log_failure
 
93459
$at_traceon; }
 
93460
 
 
93461
fi
 
93462
$at_failed && at_fn_log_failure
 
93463
$at_traceon; }
 
93464
 
 
93465
   { set +x
 
93466
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
93467
"
 
93468
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:255"
 
93469
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
93470
 
 
93471
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93472
at_status=$? at_failed=false
 
93473
$at_check_filter
 
93474
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93475
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
93476
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93477
if $at_failed; then :
 
93478
  cp pid savepid
 
93479
   { set +x
 
93480
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-appctl -t \$PWD/unixctl -e exit"
 
93481
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:255"
 
93482
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93483
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93484
at_status=$? at_failed=false
 
93485
$at_check_filter
 
93486
echo stderr:; cat "$at_stderr"
 
93487
echo stdout:; cat "$at_stdout"
 
93488
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93489
$at_failed && at_fn_log_failure
 
93490
$at_traceon; }
 
93491
 
 
93492
   { set +x
 
93493
$as_echo "$at_srcdir/ovs-vsctl.at:255: # First try a quick sleep, so that the test completes very quickly
 
93494
     # in the normal case.  POSIX doesn't require fractional times to
 
93495
     # work, so this might not work.
 
93496
     sleep 0.1
 
93497
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93498
     # Then wait up to 10 seconds.
 
93499
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93500
       sleep 1
 
93501
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93502
     done
 
93503
     exit 1"
 
93504
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:255"
 
93505
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93506
     # in the normal case.  POSIX doesn't require fractional times to
 
93507
     # work, so this might not work.
 
93508
     sleep 0.1
 
93509
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93510
     # Then wait up to 10 seconds.
 
93511
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93512
       sleep 1
 
93513
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93514
     done
 
93515
     exit 1
 
93516
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93517
at_status=$? at_failed=false
 
93518
$at_check_filter
 
93519
echo stderr:; cat "$at_stderr"
 
93520
echo stdout:; cat "$at_stdout"
 
93521
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93522
if $at_failed; then :
 
93523
  kill `cat savepid`
 
93524
fi
 
93525
$at_failed && at_fn_log_failure
 
93526
$at_traceon; }
 
93527
 
 
93528
fi
 
93529
$at_failed && at_fn_log_failure
 
93530
$at_traceon; }
 
93531
 
 
93532
 
 
93533
      { set +x
 
93534
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent b
 
93535
"
 
93536
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:255"
 
93537
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent b
 
93538
 
 
93539
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93540
at_status=$? at_failed=false
 
93541
$at_check_filter
 
93542
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93543
echo >>"$at_stdout"; $as_echo "b
 
93544
" | \
 
93545
  $at_diff - "$at_stdout" || at_failed=:
 
93546
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93547
if $at_failed; then :
 
93548
  cp pid savepid
 
93549
   { set +x
 
93550
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-appctl -t \$PWD/unixctl -e exit"
 
93551
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:255"
 
93552
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93553
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93554
at_status=$? at_failed=false
 
93555
$at_check_filter
 
93556
echo stderr:; cat "$at_stderr"
 
93557
echo stdout:; cat "$at_stdout"
 
93558
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93559
$at_failed && at_fn_log_failure
 
93560
$at_traceon; }
 
93561
 
 
93562
   { set +x
 
93563
$as_echo "$at_srcdir/ovs-vsctl.at:255: # First try a quick sleep, so that the test completes very quickly
 
93564
     # in the normal case.  POSIX doesn't require fractional times to
 
93565
     # work, so this might not work.
 
93566
     sleep 0.1
 
93567
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93568
     # Then wait up to 10 seconds.
 
93569
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93570
       sleep 1
 
93571
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93572
     done
 
93573
     exit 1"
 
93574
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:255"
 
93575
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93576
     # in the normal case.  POSIX doesn't require fractional times to
 
93577
     # work, so this might not work.
 
93578
     sleep 0.1
 
93579
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93580
     # Then wait up to 10 seconds.
 
93581
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93582
       sleep 1
 
93583
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93584
     done
 
93585
     exit 1
 
93586
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93587
at_status=$? at_failed=false
 
93588
$at_check_filter
 
93589
echo stderr:; cat "$at_stderr"
 
93590
echo stdout:; cat "$at_stdout"
 
93591
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93592
if $at_failed; then :
 
93593
  kill `cat savepid`
 
93594
fi
 
93595
$at_failed && at_fn_log_failure
 
93596
$at_traceon; }
 
93597
 
 
93598
fi
 
93599
$at_failed && at_fn_log_failure
 
93600
$at_traceon; }
 
93601
 
 
93602
 
 
93603
   # Check br-to-vlan, without --oneline.
 
93604
   { set +x
 
93605
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan b
 
93606
"
 
93607
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:255"
 
93608
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan b
 
93609
 
 
93610
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93611
at_status=$? at_failed=false
 
93612
$at_check_filter
 
93613
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93614
echo >>"$at_stdout"; $as_echo "0
 
93615
" | \
 
93616
  $at_diff - "$at_stdout" || at_failed=:
 
93617
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93618
if $at_failed; then :
 
93619
  cp pid savepid
 
93620
   { set +x
 
93621
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-appctl -t \$PWD/unixctl -e exit"
 
93622
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:255"
 
93623
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93624
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93625
at_status=$? at_failed=false
 
93626
$at_check_filter
 
93627
echo stderr:; cat "$at_stderr"
 
93628
echo stdout:; cat "$at_stdout"
 
93629
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93630
$at_failed && at_fn_log_failure
 
93631
$at_traceon; }
 
93632
 
 
93633
   { set +x
 
93634
$as_echo "$at_srcdir/ovs-vsctl.at:255: # First try a quick sleep, so that the test completes very quickly
 
93635
     # in the normal case.  POSIX doesn't require fractional times to
 
93636
     # work, so this might not work.
 
93637
     sleep 0.1
 
93638
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93639
     # Then wait up to 10 seconds.
 
93640
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93641
       sleep 1
 
93642
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93643
     done
 
93644
     exit 1"
 
93645
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:255"
 
93646
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93647
     # in the normal case.  POSIX doesn't require fractional times to
 
93648
     # work, so this might not work.
 
93649
     sleep 0.1
 
93650
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93651
     # Then wait up to 10 seconds.
 
93652
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93653
       sleep 1
 
93654
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93655
     done
 
93656
     exit 1
 
93657
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93658
at_status=$? at_failed=false
 
93659
$at_check_filter
 
93660
echo stderr:; cat "$at_stderr"
 
93661
echo stdout:; cat "$at_stdout"
 
93662
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93663
if $at_failed; then :
 
93664
  kill `cat savepid`
 
93665
fi
 
93666
$at_failed && at_fn_log_failure
 
93667
$at_traceon; }
 
93668
 
 
93669
fi
 
93670
$at_failed && at_fn_log_failure
 
93671
$at_traceon; }
 
93672
 
 
93673
   # Check br-to-vlan, with --oneline.
 
93674
   # (This particular test is interesting with --oneline because it returns
 
93675
   # an integer instead of a string and that can cause type mismatches inside
 
93676
   # python if not done carefully.)
 
93677
   { set +x
 
93678
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan b
 
93679
"
 
93680
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:255"
 
93681
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan b
 
93682
 
 
93683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93684
at_status=$? at_failed=false
 
93685
$at_check_filter
 
93686
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93687
echo >>"$at_stdout"; $as_echo "0
 
93688
" | \
 
93689
  $at_diff - "$at_stdout" || at_failed=:
 
93690
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93691
if $at_failed; then :
 
93692
  cp pid savepid
 
93693
   { set +x
 
93694
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-appctl -t \$PWD/unixctl -e exit"
 
93695
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:255"
 
93696
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93697
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93698
at_status=$? at_failed=false
 
93699
$at_check_filter
 
93700
echo stderr:; cat "$at_stderr"
 
93701
echo stdout:; cat "$at_stdout"
 
93702
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93703
$at_failed && at_fn_log_failure
 
93704
$at_traceon; }
 
93705
 
 
93706
   { set +x
 
93707
$as_echo "$at_srcdir/ovs-vsctl.at:255: # First try a quick sleep, so that the test completes very quickly
 
93708
     # in the normal case.  POSIX doesn't require fractional times to
 
93709
     # work, so this might not work.
 
93710
     sleep 0.1
 
93711
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93712
     # Then wait up to 10 seconds.
 
93713
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93714
       sleep 1
 
93715
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93716
     done
 
93717
     exit 1"
 
93718
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:255"
 
93719
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93720
     # in the normal case.  POSIX doesn't require fractional times to
 
93721
     # work, so this might not work.
 
93722
     sleep 0.1
 
93723
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93724
     # Then wait up to 10 seconds.
 
93725
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93726
       sleep 1
 
93727
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93728
     done
 
93729
     exit 1
 
93730
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93731
at_status=$? at_failed=false
 
93732
$at_check_filter
 
93733
echo stderr:; cat "$at_stderr"
 
93734
echo stdout:; cat "$at_stdout"
 
93735
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93736
if $at_failed; then :
 
93737
  kill `cat savepid`
 
93738
fi
 
93739
$at_failed && at_fn_log_failure
 
93740
$at_traceon; }
 
93741
 
 
93742
fi
 
93743
$at_failed && at_fn_log_failure
 
93744
$at_traceon; }
 
93745
 
 
93746
 
 
93747
   # Check multiple queries in a single run.
 
93748
   { set +x
 
93749
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent b -- br-to-vlan b"
 
93750
at_fn_check_prepare_trace "ovs-vsctl.at:255"
 
93751
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent b -- br-to-vlan b
 
93752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93753
at_status=$? at_failed=false
 
93754
$at_check_filter
 
93755
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93756
echo >>"$at_stdout"; $as_echo "b
 
93757
0
 
93758
" | \
 
93759
  $at_diff - "$at_stdout" || at_failed=:
 
93760
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93761
if $at_failed; then :
 
93762
  cp pid savepid
 
93763
   { set +x
 
93764
$as_echo "$at_srcdir/ovs-vsctl.at:255: ovs-appctl -t \$PWD/unixctl -e exit"
 
93765
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:255"
 
93766
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93767
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93768
at_status=$? at_failed=false
 
93769
$at_check_filter
 
93770
echo stderr:; cat "$at_stderr"
 
93771
echo stdout:; cat "$at_stdout"
 
93772
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93773
$at_failed && at_fn_log_failure
 
93774
$at_traceon; }
 
93775
 
 
93776
   { set +x
 
93777
$as_echo "$at_srcdir/ovs-vsctl.at:255: # First try a quick sleep, so that the test completes very quickly
 
93778
     # in the normal case.  POSIX doesn't require fractional times to
 
93779
     # work, so this might not work.
 
93780
     sleep 0.1
 
93781
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93782
     # Then wait up to 10 seconds.
 
93783
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93784
       sleep 1
 
93785
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93786
     done
 
93787
     exit 1"
 
93788
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:255"
 
93789
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93790
     # in the normal case.  POSIX doesn't require fractional times to
 
93791
     # work, so this might not work.
 
93792
     sleep 0.1
 
93793
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93794
     # Then wait up to 10 seconds.
 
93795
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93796
       sleep 1
 
93797
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93798
     done
 
93799
     exit 1
 
93800
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93801
at_status=$? at_failed=false
 
93802
$at_check_filter
 
93803
echo stderr:; cat "$at_stderr"
 
93804
echo stdout:; cat "$at_stdout"
 
93805
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:255"
 
93806
if $at_failed; then :
 
93807
  kill `cat savepid`
 
93808
fi
 
93809
$at_failed && at_fn_log_failure
 
93810
$at_traceon; }
 
93811
 
 
93812
fi
 
93813
$at_failed && at_fn_log_failure
 
93814
$at_traceon; }
 
93815
 
 
93816
   { set +x
 
93817
$as_echo "$at_srcdir/ovs-vsctl.at:256: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports b
 
93818
"
 
93819
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:256"
 
93820
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports b
 
93821
 
 
93822
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93823
at_status=$? at_failed=false
 
93824
$at_check_filter
 
93825
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93826
echo >>"$at_stdout"; $as_echo "b1
 
93827
" | \
 
93828
  $at_diff - "$at_stdout" || at_failed=:
 
93829
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
93830
if $at_failed; then :
 
93831
  cp pid savepid
 
93832
   { set +x
 
93833
$as_echo "$at_srcdir/ovs-vsctl.at:256: ovs-appctl -t \$PWD/unixctl -e exit"
 
93834
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:256"
 
93835
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93836
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93837
at_status=$? at_failed=false
 
93838
$at_check_filter
 
93839
echo stderr:; cat "$at_stderr"
 
93840
echo stdout:; cat "$at_stdout"
 
93841
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
93842
$at_failed && at_fn_log_failure
 
93843
$at_traceon; }
 
93844
 
 
93845
   { set +x
 
93846
$as_echo "$at_srcdir/ovs-vsctl.at:256: # First try a quick sleep, so that the test completes very quickly
 
93847
     # in the normal case.  POSIX doesn't require fractional times to
 
93848
     # work, so this might not work.
 
93849
     sleep 0.1
 
93850
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93851
     # Then wait up to 10 seconds.
 
93852
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93853
       sleep 1
 
93854
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93855
     done
 
93856
     exit 1"
 
93857
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:256"
 
93858
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93859
     # in the normal case.  POSIX doesn't require fractional times to
 
93860
     # work, so this might not work.
 
93861
     sleep 0.1
 
93862
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93863
     # Then wait up to 10 seconds.
 
93864
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93865
       sleep 1
 
93866
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93867
     done
 
93868
     exit 1
 
93869
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93870
at_status=$? at_failed=false
 
93871
$at_check_filter
 
93872
echo stderr:; cat "$at_stderr"
 
93873
echo stdout:; cat "$at_stdout"
 
93874
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
93875
if $at_failed; then :
 
93876
  kill `cat savepid`
 
93877
fi
 
93878
$at_failed && at_fn_log_failure
 
93879
$at_traceon; }
 
93880
 
 
93881
fi
 
93882
$at_failed && at_fn_log_failure
 
93883
$at_traceon; }
 
93884
 
 
93885
 
 
93886
      { set +x
 
93887
$as_echo "$at_srcdir/ovs-vsctl.at:256: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports b
 
93888
"
 
93889
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:256"
 
93890
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports b
 
93891
 
 
93892
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93893
at_status=$? at_failed=false
 
93894
$at_check_filter
 
93895
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
93896
echo >>"$at_stdout"; $as_echo "b1
 
93897
" | \
 
93898
  $at_diff - "$at_stdout" || at_failed=:
 
93899
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
93900
if $at_failed; then :
 
93901
  cp pid savepid
 
93902
   { set +x
 
93903
$as_echo "$at_srcdir/ovs-vsctl.at:256: ovs-appctl -t \$PWD/unixctl -e exit"
 
93904
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:256"
 
93905
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93906
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93907
at_status=$? at_failed=false
 
93908
$at_check_filter
 
93909
echo stderr:; cat "$at_stderr"
 
93910
echo stdout:; cat "$at_stdout"
 
93911
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
93912
$at_failed && at_fn_log_failure
 
93913
$at_traceon; }
 
93914
 
 
93915
   { set +x
 
93916
$as_echo "$at_srcdir/ovs-vsctl.at:256: # First try a quick sleep, so that the test completes very quickly
 
93917
     # in the normal case.  POSIX doesn't require fractional times to
 
93918
     # work, so this might not work.
 
93919
     sleep 0.1
 
93920
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93921
     # Then wait up to 10 seconds.
 
93922
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93923
       sleep 1
 
93924
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93925
     done
 
93926
     exit 1"
 
93927
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:256"
 
93928
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93929
     # in the normal case.  POSIX doesn't require fractional times to
 
93930
     # work, so this might not work.
 
93931
     sleep 0.1
 
93932
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
93933
     # Then wait up to 10 seconds.
 
93934
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93935
       sleep 1
 
93936
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
93937
     done
 
93938
     exit 1
 
93939
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93940
at_status=$? at_failed=false
 
93941
$at_check_filter
 
93942
echo stderr:; cat "$at_stderr"
 
93943
echo stdout:; cat "$at_stdout"
 
93944
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
93945
if $at_failed; then :
 
93946
  kill `cat savepid`
 
93947
fi
 
93948
$at_failed && at_fn_log_failure
 
93949
$at_traceon; }
 
93950
 
 
93951
fi
 
93952
$at_failed && at_fn_log_failure
 
93953
$at_traceon; }
 
93954
 
 
93955
   { set +x
 
93956
$as_echo "$at_srcdir/ovs-vsctl.at:256: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b
 
93957
"
 
93958
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:256"
 
93959
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b
 
93960
 
 
93961
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93962
at_status=$? at_failed=false
 
93963
$at_check_filter
 
93964
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named b
 
93965
" | \
 
93966
  $at_diff - "$at_stderr" || at_failed=:
 
93967
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
93968
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
93969
if $at_failed; then :
 
93970
  cp pid savepid
 
93971
   { set +x
 
93972
$as_echo "$at_srcdir/ovs-vsctl.at:256: ovs-appctl -t \$PWD/unixctl -e exit"
 
93973
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:256"
 
93974
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
93975
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
93976
at_status=$? at_failed=false
 
93977
$at_check_filter
 
93978
echo stderr:; cat "$at_stderr"
 
93979
echo stdout:; cat "$at_stdout"
 
93980
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
93981
$at_failed && at_fn_log_failure
 
93982
$at_traceon; }
 
93983
 
 
93984
   { set +x
 
93985
$as_echo "$at_srcdir/ovs-vsctl.at:256: # First try a quick sleep, so that the test completes very quickly
 
93986
     # in the normal case.  POSIX doesn't require fractional times to
 
93987
     # work, so this might not work.
 
93988
     sleep 0.1
 
93989
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93990
     # Then wait up to 10 seconds.
 
93991
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
93992
       sleep 1
 
93993
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
93994
     done
 
93995
     exit 1"
 
93996
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:256"
 
93997
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
93998
     # in the normal case.  POSIX doesn't require fractional times to
 
93999
     # work, so this might not work.
 
94000
     sleep 0.1
 
94001
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94002
     # Then wait up to 10 seconds.
 
94003
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94004
       sleep 1
 
94005
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94006
     done
 
94007
     exit 1
 
94008
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94009
at_status=$? at_failed=false
 
94010
$at_check_filter
 
94011
echo stderr:; cat "$at_stderr"
 
94012
echo stdout:; cat "$at_stdout"
 
94013
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
94014
if $at_failed; then :
 
94015
  kill `cat savepid`
 
94016
fi
 
94017
$at_failed && at_fn_log_failure
 
94018
$at_traceon; }
 
94019
 
 
94020
fi
 
94021
$at_failed && at_fn_log_failure
 
94022
$at_traceon; }
 
94023
 
 
94024
   { set +x
 
94025
$as_echo "$at_srcdir/ovs-vsctl.at:256: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b1
 
94026
"
 
94027
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:256"
 
94028
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b1
 
94029
 
 
94030
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94031
at_status=$? at_failed=false
 
94032
$at_check_filter
 
94033
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94034
echo >>"$at_stdout"; $as_echo "b
 
94035
" | \
 
94036
  $at_diff - "$at_stdout" || at_failed=:
 
94037
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
94038
if $at_failed; then :
 
94039
  cp pid savepid
 
94040
   { set +x
 
94041
$as_echo "$at_srcdir/ovs-vsctl.at:256: ovs-appctl -t \$PWD/unixctl -e exit"
 
94042
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:256"
 
94043
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94044
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94045
at_status=$? at_failed=false
 
94046
$at_check_filter
 
94047
echo stderr:; cat "$at_stderr"
 
94048
echo stdout:; cat "$at_stdout"
 
94049
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
94050
$at_failed && at_fn_log_failure
 
94051
$at_traceon; }
 
94052
 
 
94053
   { set +x
 
94054
$as_echo "$at_srcdir/ovs-vsctl.at:256: # First try a quick sleep, so that the test completes very quickly
 
94055
     # in the normal case.  POSIX doesn't require fractional times to
 
94056
     # work, so this might not work.
 
94057
     sleep 0.1
 
94058
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94059
     # Then wait up to 10 seconds.
 
94060
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94061
       sleep 1
 
94062
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94063
     done
 
94064
     exit 1"
 
94065
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:256"
 
94066
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94067
     # in the normal case.  POSIX doesn't require fractional times to
 
94068
     # work, so this might not work.
 
94069
     sleep 0.1
 
94070
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94071
     # Then wait up to 10 seconds.
 
94072
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94073
       sleep 1
 
94074
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94075
     done
 
94076
     exit 1
 
94077
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94078
at_status=$? at_failed=false
 
94079
$at_check_filter
 
94080
echo stderr:; cat "$at_stderr"
 
94081
echo stdout:; cat "$at_stdout"
 
94082
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:256"
 
94083
if $at_failed; then :
 
94084
  kill `cat savepid`
 
94085
fi
 
94086
$at_failed && at_fn_log_failure
 
94087
$at_traceon; }
 
94088
 
 
94089
fi
 
94090
$at_failed && at_fn_log_failure
 
94091
$at_traceon; }
 
94092
 
 
94093
{ set +x
 
94094
$as_echo "$at_srcdir/ovs-vsctl.at:257: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces b
 
94095
"
 
94096
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:257"
 
94097
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces b
 
94098
 
 
94099
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94100
at_status=$? at_failed=false
 
94101
$at_check_filter
 
94102
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94103
echo >>"$at_stdout"; $as_echo "b1
 
94104
" | \
 
94105
  $at_diff - "$at_stdout" || at_failed=:
 
94106
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94107
if $at_failed; then :
 
94108
  cp pid savepid
 
94109
   { set +x
 
94110
$as_echo "$at_srcdir/ovs-vsctl.at:257: ovs-appctl -t \$PWD/unixctl -e exit"
 
94111
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:257"
 
94112
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94113
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94114
at_status=$? at_failed=false
 
94115
$at_check_filter
 
94116
echo stderr:; cat "$at_stderr"
 
94117
echo stdout:; cat "$at_stdout"
 
94118
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94119
$at_failed && at_fn_log_failure
 
94120
$at_traceon; }
 
94121
 
 
94122
   { set +x
 
94123
$as_echo "$at_srcdir/ovs-vsctl.at:257: # First try a quick sleep, so that the test completes very quickly
 
94124
     # in the normal case.  POSIX doesn't require fractional times to
 
94125
     # work, so this might not work.
 
94126
     sleep 0.1
 
94127
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94128
     # Then wait up to 10 seconds.
 
94129
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94130
       sleep 1
 
94131
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94132
     done
 
94133
     exit 1"
 
94134
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:257"
 
94135
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94136
     # in the normal case.  POSIX doesn't require fractional times to
 
94137
     # work, so this might not work.
 
94138
     sleep 0.1
 
94139
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94140
     # Then wait up to 10 seconds.
 
94141
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94142
       sleep 1
 
94143
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94144
     done
 
94145
     exit 1
 
94146
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94147
at_status=$? at_failed=false
 
94148
$at_check_filter
 
94149
echo stderr:; cat "$at_stderr"
 
94150
echo stdout:; cat "$at_stdout"
 
94151
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94152
if $at_failed; then :
 
94153
  kill `cat savepid`
 
94154
fi
 
94155
$at_failed && at_fn_log_failure
 
94156
$at_traceon; }
 
94157
 
 
94158
fi
 
94159
$at_failed && at_fn_log_failure
 
94160
$at_traceon; }
 
94161
 
 
94162
   { set +x
 
94163
$as_echo "$at_srcdir/ovs-vsctl.at:257: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b
 
94164
"
 
94165
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:257"
 
94166
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b
 
94167
 
 
94168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94169
at_status=$? at_failed=false
 
94170
$at_check_filter
 
94171
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named b
 
94172
" | \
 
94173
  $at_diff - "$at_stderr" || at_failed=:
 
94174
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
94175
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94176
if $at_failed; then :
 
94177
  cp pid savepid
 
94178
   { set +x
 
94179
$as_echo "$at_srcdir/ovs-vsctl.at:257: ovs-appctl -t \$PWD/unixctl -e exit"
 
94180
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:257"
 
94181
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94182
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94183
at_status=$? at_failed=false
 
94184
$at_check_filter
 
94185
echo stderr:; cat "$at_stderr"
 
94186
echo stdout:; cat "$at_stdout"
 
94187
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94188
$at_failed && at_fn_log_failure
 
94189
$at_traceon; }
 
94190
 
 
94191
   { set +x
 
94192
$as_echo "$at_srcdir/ovs-vsctl.at:257: # First try a quick sleep, so that the test completes very quickly
 
94193
     # in the normal case.  POSIX doesn't require fractional times to
 
94194
     # work, so this might not work.
 
94195
     sleep 0.1
 
94196
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94197
     # Then wait up to 10 seconds.
 
94198
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94199
       sleep 1
 
94200
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94201
     done
 
94202
     exit 1"
 
94203
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:257"
 
94204
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94205
     # in the normal case.  POSIX doesn't require fractional times to
 
94206
     # work, so this might not work.
 
94207
     sleep 0.1
 
94208
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94209
     # Then wait up to 10 seconds.
 
94210
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94211
       sleep 1
 
94212
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94213
     done
 
94214
     exit 1
 
94215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94216
at_status=$? at_failed=false
 
94217
$at_check_filter
 
94218
echo stderr:; cat "$at_stderr"
 
94219
echo stdout:; cat "$at_stdout"
 
94220
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94221
if $at_failed; then :
 
94222
  kill `cat savepid`
 
94223
fi
 
94224
$at_failed && at_fn_log_failure
 
94225
$at_traceon; }
 
94226
 
 
94227
fi
 
94228
$at_failed && at_fn_log_failure
 
94229
$at_traceon; }
 
94230
 
 
94231
   { set +x
 
94232
$as_echo "$at_srcdir/ovs-vsctl.at:257: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b1
 
94233
"
 
94234
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:257"
 
94235
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b1
 
94236
 
 
94237
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94238
at_status=$? at_failed=false
 
94239
$at_check_filter
 
94240
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94241
echo >>"$at_stdout"; $as_echo "b
 
94242
" | \
 
94243
  $at_diff - "$at_stdout" || at_failed=:
 
94244
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94245
if $at_failed; then :
 
94246
  cp pid savepid
 
94247
   { set +x
 
94248
$as_echo "$at_srcdir/ovs-vsctl.at:257: ovs-appctl -t \$PWD/unixctl -e exit"
 
94249
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:257"
 
94250
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94251
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94252
at_status=$? at_failed=false
 
94253
$at_check_filter
 
94254
echo stderr:; cat "$at_stderr"
 
94255
echo stdout:; cat "$at_stdout"
 
94256
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94257
$at_failed && at_fn_log_failure
 
94258
$at_traceon; }
 
94259
 
 
94260
   { set +x
 
94261
$as_echo "$at_srcdir/ovs-vsctl.at:257: # First try a quick sleep, so that the test completes very quickly
 
94262
     # in the normal case.  POSIX doesn't require fractional times to
 
94263
     # work, so this might not work.
 
94264
     sleep 0.1
 
94265
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94266
     # Then wait up to 10 seconds.
 
94267
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94268
       sleep 1
 
94269
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94270
     done
 
94271
     exit 1"
 
94272
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:257"
 
94273
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94274
     # in the normal case.  POSIX doesn't require fractional times to
 
94275
     # work, so this might not work.
 
94276
     sleep 0.1
 
94277
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94278
     # Then wait up to 10 seconds.
 
94279
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94280
       sleep 1
 
94281
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94282
     done
 
94283
     exit 1
 
94284
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94285
at_status=$? at_failed=false
 
94286
$at_check_filter
 
94287
echo stderr:; cat "$at_stderr"
 
94288
echo stdout:; cat "$at_stdout"
 
94289
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:257"
 
94290
if $at_failed; then :
 
94291
  kill `cat savepid`
 
94292
fi
 
94293
$at_failed && at_fn_log_failure
 
94294
$at_traceon; }
 
94295
 
 
94296
fi
 
94297
$at_failed && at_fn_log_failure
 
94298
$at_traceon; }
 
94299
 
 
94300
cp pid savepid
 
94301
   { set +x
 
94302
$as_echo "$at_srcdir/ovs-vsctl.at:258: ovs-appctl -t \$PWD/unixctl -e exit"
 
94303
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:258"
 
94304
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94305
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94306
at_status=$? at_failed=false
 
94307
$at_check_filter
 
94308
echo stderr:; cat "$at_stderr"
 
94309
echo stdout:; cat "$at_stdout"
 
94310
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:258"
 
94311
$at_failed && at_fn_log_failure
 
94312
$at_traceon; }
 
94313
 
 
94314
   { set +x
 
94315
$as_echo "$at_srcdir/ovs-vsctl.at:258: # First try a quick sleep, so that the test completes very quickly
 
94316
     # in the normal case.  POSIX doesn't require fractional times to
 
94317
     # work, so this might not work.
 
94318
     sleep 0.1
 
94319
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94320
     # Then wait up to 10 seconds.
 
94321
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94322
       sleep 1
 
94323
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94324
     done
 
94325
     exit 1"
 
94326
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:258"
 
94327
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94328
     # in the normal case.  POSIX doesn't require fractional times to
 
94329
     # work, so this might not work.
 
94330
     sleep 0.1
 
94331
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94332
     # Then wait up to 10 seconds.
 
94333
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94334
       sleep 1
 
94335
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94336
     done
 
94337
     exit 1
 
94338
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94339
at_status=$? at_failed=false
 
94340
$at_check_filter
 
94341
echo stderr:; cat "$at_stderr"
 
94342
echo stdout:; cat "$at_stdout"
 
94343
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:258"
 
94344
if $at_failed; then :
 
94345
  kill `cat savepid`
 
94346
fi
 
94347
$at_failed && at_fn_log_failure
 
94348
$at_traceon; }
 
94349
 
 
94350
  set +x
 
94351
  $at_times_p && times >"$at_times_file"
 
94352
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
94353
read at_status <"$at_status_file"
 
94354
#AT_STOP_950
 
94355
#AT_START_951
 
94356
at_fn_group_banner 951 'ovs-vsctl.at:261' \
 
94357
  "add-br a, add-bond a bond0 a1 a2 a3" "            " 65
 
94358
at_xfail=no
 
94359
(
 
94360
  $as_echo "951. $at_setup_line: testing $at_desc ..."
 
94361
  $at_traceon
 
94362
 
 
94363
 
 
94364
{ set +x
 
94365
$as_echo "$at_srcdir/ovs-vsctl.at:263: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
94366
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:263"
 
94367
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
94368
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94369
at_status=$? at_failed=false
 
94370
$at_check_filter
 
94371
echo stderr:; cat "$at_stderr"
 
94372
echo stdout:; tee stdout <"$at_stdout"
 
94373
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:263"
 
94374
$at_failed && at_fn_log_failure
 
94375
$at_traceon; }
 
94376
 
 
94377
   { set +x
 
94378
$as_echo "$at_srcdir/ovs-vsctl.at:263: ovsdb-tool transact db \\
 
94379
        '[\"Open_vSwitch\",
 
94380
          {\"op\": \"insert\",
 
94381
           \"table\": \"Open_vSwitch\",
 
94382
           \"row\": {}}]'"
 
94383
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:263"
 
94384
( $at_check_trace; ovsdb-tool transact db \
 
94385
        '["Open_vSwitch",
 
94386
          {"op": "insert",
 
94387
           "table": "Open_vSwitch",
 
94388
           "row": {}}]'
 
94389
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94390
at_status=$? at_failed=false
 
94391
$at_check_filter
 
94392
echo stderr:; cat "$at_stderr"
 
94393
echo stdout:; cat "$at_stdout"
 
94394
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:263"
 
94395
$at_failed && at_fn_log_failure
 
94396
$at_traceon; }
 
94397
 
 
94398
   { set +x
 
94399
$as_echo "$at_srcdir/ovs-vsctl.at:263: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
94400
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:263"
 
94401
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
94402
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94403
at_status=$? at_failed=false
 
94404
$at_check_filter
 
94405
echo stderr:; cat "$at_stderr"
 
94406
echo stdout:; cat "$at_stdout"
 
94407
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:263"
 
94408
$at_failed && at_fn_log_failure
 
94409
$at_traceon; }
 
94410
 
 
94411
{ set +x
 
94412
$as_echo "$at_srcdir/ovs-vsctl.at:264: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
94413
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond a bond0 a1 a2 a3
 
94414
"
 
94415
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:264"
 
94416
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
94417
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond a bond0 a1 a2 a3
 
94418
 
 
94419
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94420
at_status=$? at_failed=false
 
94421
$at_check_filter
 
94422
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94423
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
94424
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:264"
 
94425
if $at_failed; then :
 
94426
  cp pid savepid
 
94427
   { set +x
 
94428
$as_echo "$at_srcdir/ovs-vsctl.at:264: ovs-appctl -t \$PWD/unixctl -e exit"
 
94429
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:264"
 
94430
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94431
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94432
at_status=$? at_failed=false
 
94433
$at_check_filter
 
94434
echo stderr:; cat "$at_stderr"
 
94435
echo stdout:; cat "$at_stdout"
 
94436
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:264"
 
94437
$at_failed && at_fn_log_failure
 
94438
$at_traceon; }
 
94439
 
 
94440
   { set +x
 
94441
$as_echo "$at_srcdir/ovs-vsctl.at:264: # First try a quick sleep, so that the test completes very quickly
 
94442
     # in the normal case.  POSIX doesn't require fractional times to
 
94443
     # work, so this might not work.
 
94444
     sleep 0.1
 
94445
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94446
     # Then wait up to 10 seconds.
 
94447
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94448
       sleep 1
 
94449
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94450
     done
 
94451
     exit 1"
 
94452
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:264"
 
94453
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94454
     # in the normal case.  POSIX doesn't require fractional times to
 
94455
     # work, so this might not work.
 
94456
     sleep 0.1
 
94457
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94458
     # Then wait up to 10 seconds.
 
94459
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94460
       sleep 1
 
94461
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94462
     done
 
94463
     exit 1
 
94464
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94465
at_status=$? at_failed=false
 
94466
$at_check_filter
 
94467
echo stderr:; cat "$at_stderr"
 
94468
echo stdout:; cat "$at_stdout"
 
94469
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:264"
 
94470
if $at_failed; then :
 
94471
  kill `cat savepid`
 
94472
fi
 
94473
$at_failed && at_fn_log_failure
 
94474
$at_traceon; }
 
94475
 
 
94476
fi
 
94477
$at_failed && at_fn_log_failure
 
94478
$at_traceon; }
 
94479
 
 
94480
{ set +x
 
94481
$as_echo "$at_srcdir/ovs-vsctl.at:267: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-bond a bond0 a3 a1 a2
 
94482
"
 
94483
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:267"
 
94484
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-bond a bond0 a3 a1 a2
 
94485
 
 
94486
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94487
at_status=$? at_failed=false
 
94488
$at_check_filter
 
94489
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94490
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
94491
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:267"
 
94492
if $at_failed; then :
 
94493
  cp pid savepid
 
94494
   { set +x
 
94495
$as_echo "$at_srcdir/ovs-vsctl.at:267: ovs-appctl -t \$PWD/unixctl -e exit"
 
94496
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:267"
 
94497
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94498
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94499
at_status=$? at_failed=false
 
94500
$at_check_filter
 
94501
echo stderr:; cat "$at_stderr"
 
94502
echo stdout:; cat "$at_stdout"
 
94503
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:267"
 
94504
$at_failed && at_fn_log_failure
 
94505
$at_traceon; }
 
94506
 
 
94507
   { set +x
 
94508
$as_echo "$at_srcdir/ovs-vsctl.at:267: # First try a quick sleep, so that the test completes very quickly
 
94509
     # in the normal case.  POSIX doesn't require fractional times to
 
94510
     # work, so this might not work.
 
94511
     sleep 0.1
 
94512
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94513
     # Then wait up to 10 seconds.
 
94514
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94515
       sleep 1
 
94516
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94517
     done
 
94518
     exit 1"
 
94519
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:267"
 
94520
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94521
     # in the normal case.  POSIX doesn't require fractional times to
 
94522
     # work, so this might not work.
 
94523
     sleep 0.1
 
94524
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94525
     # Then wait up to 10 seconds.
 
94526
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94527
       sleep 1
 
94528
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94529
     done
 
94530
     exit 1
 
94531
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94532
at_status=$? at_failed=false
 
94533
$at_check_filter
 
94534
echo stderr:; cat "$at_stderr"
 
94535
echo stdout:; cat "$at_stdout"
 
94536
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:267"
 
94537
if $at_failed; then :
 
94538
  kill `cat savepid`
 
94539
fi
 
94540
$at_failed && at_fn_log_failure
 
94541
$at_traceon; }
 
94542
 
 
94543
fi
 
94544
$at_failed && at_fn_log_failure
 
94545
$at_traceon; }
 
94546
 
 
94547
{ set +x
 
94548
$as_echo "$at_srcdir/ovs-vsctl.at:269: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-bond a bond0 a2 a1
 
94549
"
 
94550
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:269"
 
94551
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-bond a bond0 a2 a1
 
94552
 
 
94553
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94554
at_status=$? at_failed=false
 
94555
$at_check_filter
 
94556
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-bond a bond0 a2 a1\" but bond0 actually has interface(s) a1, a2, a3
 
94557
" | \
 
94558
  $at_diff - "$at_stderr" || at_failed=:
 
94559
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
94560
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:269"
 
94561
if $at_failed; then :
 
94562
  cp pid savepid
 
94563
   { set +x
 
94564
$as_echo "$at_srcdir/ovs-vsctl.at:269: ovs-appctl -t \$PWD/unixctl -e exit"
 
94565
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:269"
 
94566
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94567
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94568
at_status=$? at_failed=false
 
94569
$at_check_filter
 
94570
echo stderr:; cat "$at_stderr"
 
94571
echo stdout:; cat "$at_stdout"
 
94572
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:269"
 
94573
$at_failed && at_fn_log_failure
 
94574
$at_traceon; }
 
94575
 
 
94576
   { set +x
 
94577
$as_echo "$at_srcdir/ovs-vsctl.at:269: # First try a quick sleep, so that the test completes very quickly
 
94578
     # in the normal case.  POSIX doesn't require fractional times to
 
94579
     # work, so this might not work.
 
94580
     sleep 0.1
 
94581
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94582
     # Then wait up to 10 seconds.
 
94583
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94584
       sleep 1
 
94585
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94586
     done
 
94587
     exit 1"
 
94588
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:269"
 
94589
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94590
     # in the normal case.  POSIX doesn't require fractional times to
 
94591
     # work, so this might not work.
 
94592
     sleep 0.1
 
94593
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94594
     # Then wait up to 10 seconds.
 
94595
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94596
       sleep 1
 
94597
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94598
     done
 
94599
     exit 1
 
94600
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94601
at_status=$? at_failed=false
 
94602
$at_check_filter
 
94603
echo stderr:; cat "$at_stderr"
 
94604
echo stdout:; cat "$at_stdout"
 
94605
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:269"
 
94606
if $at_failed; then :
 
94607
  kill `cat savepid`
 
94608
fi
 
94609
$at_failed && at_fn_log_failure
 
94610
$at_traceon; }
 
94611
 
 
94612
fi
 
94613
$at_failed && at_fn_log_failure
 
94614
$at_traceon; }
 
94615
 
 
94616
   { set +x
 
94617
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
94618
"
 
94619
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:273"
 
94620
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
94621
 
 
94622
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94623
at_status=$? at_failed=false
 
94624
$at_check_filter
 
94625
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94626
echo >>"$at_stdout"; $as_echo "a
 
94627
" | \
 
94628
  $at_diff - "$at_stdout" || at_failed=:
 
94629
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94630
if $at_failed; then :
 
94631
  cp pid savepid
 
94632
   { set +x
 
94633
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
94634
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:273"
 
94635
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94636
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94637
at_status=$? at_failed=false
 
94638
$at_check_filter
 
94639
echo stderr:; cat "$at_stderr"
 
94640
echo stdout:; cat "$at_stdout"
 
94641
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94642
$at_failed && at_fn_log_failure
 
94643
$at_traceon; }
 
94644
 
 
94645
   { set +x
 
94646
$as_echo "$at_srcdir/ovs-vsctl.at:273: # First try a quick sleep, so that the test completes very quickly
 
94647
     # in the normal case.  POSIX doesn't require fractional times to
 
94648
     # work, so this might not work.
 
94649
     sleep 0.1
 
94650
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94651
     # Then wait up to 10 seconds.
 
94652
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94653
       sleep 1
 
94654
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94655
     done
 
94656
     exit 1"
 
94657
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:273"
 
94658
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94659
     # in the normal case.  POSIX doesn't require fractional times to
 
94660
     # work, so this might not work.
 
94661
     sleep 0.1
 
94662
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94663
     # Then wait up to 10 seconds.
 
94664
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94665
       sleep 1
 
94666
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94667
     done
 
94668
     exit 1
 
94669
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94670
at_status=$? at_failed=false
 
94671
$at_check_filter
 
94672
echo stderr:; cat "$at_stderr"
 
94673
echo stdout:; cat "$at_stdout"
 
94674
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94675
if $at_failed; then :
 
94676
  kill `cat savepid`
 
94677
fi
 
94678
$at_failed && at_fn_log_failure
 
94679
$at_traceon; }
 
94680
 
 
94681
fi
 
94682
$at_failed && at_fn_log_failure
 
94683
$at_traceon; }
 
94684
 
 
94685
 
 
94686
      { set +x
 
94687
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
94688
"
 
94689
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:273"
 
94690
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
94691
 
 
94692
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94693
at_status=$? at_failed=false
 
94694
$at_check_filter
 
94695
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94696
echo >>"$at_stdout"; $as_echo "a
 
94697
" | \
 
94698
  $at_diff - "$at_stdout" || at_failed=:
 
94699
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94700
if $at_failed; then :
 
94701
  cp pid savepid
 
94702
   { set +x
 
94703
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
94704
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:273"
 
94705
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94706
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94707
at_status=$? at_failed=false
 
94708
$at_check_filter
 
94709
echo stderr:; cat "$at_stderr"
 
94710
echo stdout:; cat "$at_stdout"
 
94711
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94712
$at_failed && at_fn_log_failure
 
94713
$at_traceon; }
 
94714
 
 
94715
   { set +x
 
94716
$as_echo "$at_srcdir/ovs-vsctl.at:273: # First try a quick sleep, so that the test completes very quickly
 
94717
     # in the normal case.  POSIX doesn't require fractional times to
 
94718
     # work, so this might not work.
 
94719
     sleep 0.1
 
94720
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94721
     # Then wait up to 10 seconds.
 
94722
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94723
       sleep 1
 
94724
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94725
     done
 
94726
     exit 1"
 
94727
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:273"
 
94728
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94729
     # in the normal case.  POSIX doesn't require fractional times to
 
94730
     # work, so this might not work.
 
94731
     sleep 0.1
 
94732
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94733
     # Then wait up to 10 seconds.
 
94734
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94735
       sleep 1
 
94736
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94737
     done
 
94738
     exit 1
 
94739
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94740
at_status=$? at_failed=false
 
94741
$at_check_filter
 
94742
echo stderr:; cat "$at_stderr"
 
94743
echo stdout:; cat "$at_stdout"
 
94744
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94745
if $at_failed; then :
 
94746
  kill `cat savepid`
 
94747
fi
 
94748
$at_failed && at_fn_log_failure
 
94749
$at_traceon; }
 
94750
 
 
94751
fi
 
94752
$at_failed && at_fn_log_failure
 
94753
$at_traceon; }
 
94754
 
 
94755
 
 
94756
         { set +x
 
94757
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
94758
"
 
94759
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:273"
 
94760
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
94761
 
 
94762
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94763
at_status=$? at_failed=false
 
94764
$at_check_filter
 
94765
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94766
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
94767
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94768
if $at_failed; then :
 
94769
  cp pid savepid
 
94770
   { set +x
 
94771
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
94772
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:273"
 
94773
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94774
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94775
at_status=$? at_failed=false
 
94776
$at_check_filter
 
94777
echo stderr:; cat "$at_stderr"
 
94778
echo stdout:; cat "$at_stdout"
 
94779
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94780
$at_failed && at_fn_log_failure
 
94781
$at_traceon; }
 
94782
 
 
94783
   { set +x
 
94784
$as_echo "$at_srcdir/ovs-vsctl.at:273: # First try a quick sleep, so that the test completes very quickly
 
94785
     # in the normal case.  POSIX doesn't require fractional times to
 
94786
     # work, so this might not work.
 
94787
     sleep 0.1
 
94788
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94789
     # Then wait up to 10 seconds.
 
94790
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94791
       sleep 1
 
94792
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94793
     done
 
94794
     exit 1"
 
94795
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:273"
 
94796
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94797
     # in the normal case.  POSIX doesn't require fractional times to
 
94798
     # work, so this might not work.
 
94799
     sleep 0.1
 
94800
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94801
     # Then wait up to 10 seconds.
 
94802
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94803
       sleep 1
 
94804
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94805
     done
 
94806
     exit 1
 
94807
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94808
at_status=$? at_failed=false
 
94809
$at_check_filter
 
94810
echo stderr:; cat "$at_stderr"
 
94811
echo stdout:; cat "$at_stdout"
 
94812
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94813
if $at_failed; then :
 
94814
  kill `cat savepid`
 
94815
fi
 
94816
$at_failed && at_fn_log_failure
 
94817
$at_traceon; }
 
94818
 
 
94819
fi
 
94820
$at_failed && at_fn_log_failure
 
94821
$at_traceon; }
 
94822
 
 
94823
   { set +x
 
94824
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
94825
"
 
94826
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:273"
 
94827
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
94828
 
 
94829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94830
at_status=$? at_failed=false
 
94831
$at_check_filter
 
94832
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94833
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
94834
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94835
if $at_failed; then :
 
94836
  cp pid savepid
 
94837
   { set +x
 
94838
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
94839
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:273"
 
94840
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94841
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94842
at_status=$? at_failed=false
 
94843
$at_check_filter
 
94844
echo stderr:; cat "$at_stderr"
 
94845
echo stdout:; cat "$at_stdout"
 
94846
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94847
$at_failed && at_fn_log_failure
 
94848
$at_traceon; }
 
94849
 
 
94850
   { set +x
 
94851
$as_echo "$at_srcdir/ovs-vsctl.at:273: # First try a quick sleep, so that the test completes very quickly
 
94852
     # in the normal case.  POSIX doesn't require fractional times to
 
94853
     # work, so this might not work.
 
94854
     sleep 0.1
 
94855
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94856
     # Then wait up to 10 seconds.
 
94857
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94858
       sleep 1
 
94859
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94860
     done
 
94861
     exit 1"
 
94862
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:273"
 
94863
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94864
     # in the normal case.  POSIX doesn't require fractional times to
 
94865
     # work, so this might not work.
 
94866
     sleep 0.1
 
94867
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94868
     # Then wait up to 10 seconds.
 
94869
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94870
       sleep 1
 
94871
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94872
     done
 
94873
     exit 1
 
94874
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94875
at_status=$? at_failed=false
 
94876
$at_check_filter
 
94877
echo stderr:; cat "$at_stderr"
 
94878
echo stdout:; cat "$at_stdout"
 
94879
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94880
if $at_failed; then :
 
94881
  kill `cat savepid`
 
94882
fi
 
94883
$at_failed && at_fn_log_failure
 
94884
$at_traceon; }
 
94885
 
 
94886
fi
 
94887
$at_failed && at_fn_log_failure
 
94888
$at_traceon; }
 
94889
 
 
94890
 
 
94891
      { set +x
 
94892
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
94893
"
 
94894
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:273"
 
94895
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
94896
 
 
94897
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94898
at_status=$? at_failed=false
 
94899
$at_check_filter
 
94900
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94901
echo >>"$at_stdout"; $as_echo "a
 
94902
" | \
 
94903
  $at_diff - "$at_stdout" || at_failed=:
 
94904
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94905
if $at_failed; then :
 
94906
  cp pid savepid
 
94907
   { set +x
 
94908
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
94909
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:273"
 
94910
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94911
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94912
at_status=$? at_failed=false
 
94913
$at_check_filter
 
94914
echo stderr:; cat "$at_stderr"
 
94915
echo stdout:; cat "$at_stdout"
 
94916
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94917
$at_failed && at_fn_log_failure
 
94918
$at_traceon; }
 
94919
 
 
94920
   { set +x
 
94921
$as_echo "$at_srcdir/ovs-vsctl.at:273: # First try a quick sleep, so that the test completes very quickly
 
94922
     # in the normal case.  POSIX doesn't require fractional times to
 
94923
     # work, so this might not work.
 
94924
     sleep 0.1
 
94925
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94926
     # Then wait up to 10 seconds.
 
94927
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94928
       sleep 1
 
94929
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94930
     done
 
94931
     exit 1"
 
94932
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:273"
 
94933
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
94934
     # in the normal case.  POSIX doesn't require fractional times to
 
94935
     # work, so this might not work.
 
94936
     sleep 0.1
 
94937
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
94938
     # Then wait up to 10 seconds.
 
94939
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94940
       sleep 1
 
94941
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
94942
     done
 
94943
     exit 1
 
94944
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94945
at_status=$? at_failed=false
 
94946
$at_check_filter
 
94947
echo stderr:; cat "$at_stderr"
 
94948
echo stdout:; cat "$at_stdout"
 
94949
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94950
if $at_failed; then :
 
94951
  kill `cat savepid`
 
94952
fi
 
94953
$at_failed && at_fn_log_failure
 
94954
$at_traceon; }
 
94955
 
 
94956
fi
 
94957
$at_failed && at_fn_log_failure
 
94958
$at_traceon; }
 
94959
 
 
94960
 
 
94961
   # Check br-to-vlan, without --oneline.
 
94962
   { set +x
 
94963
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
94964
"
 
94965
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:273"
 
94966
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
94967
 
 
94968
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94969
at_status=$? at_failed=false
 
94970
$at_check_filter
 
94971
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
94972
echo >>"$at_stdout"; $as_echo "0
 
94973
" | \
 
94974
  $at_diff - "$at_stdout" || at_failed=:
 
94975
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94976
if $at_failed; then :
 
94977
  cp pid savepid
 
94978
   { set +x
 
94979
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
94980
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:273"
 
94981
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
94982
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
94983
at_status=$? at_failed=false
 
94984
$at_check_filter
 
94985
echo stderr:; cat "$at_stderr"
 
94986
echo stdout:; cat "$at_stdout"
 
94987
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
94988
$at_failed && at_fn_log_failure
 
94989
$at_traceon; }
 
94990
 
 
94991
   { set +x
 
94992
$as_echo "$at_srcdir/ovs-vsctl.at:273: # First try a quick sleep, so that the test completes very quickly
 
94993
     # in the normal case.  POSIX doesn't require fractional times to
 
94994
     # work, so this might not work.
 
94995
     sleep 0.1
 
94996
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
94997
     # Then wait up to 10 seconds.
 
94998
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
94999
       sleep 1
 
95000
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95001
     done
 
95002
     exit 1"
 
95003
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:273"
 
95004
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95005
     # in the normal case.  POSIX doesn't require fractional times to
 
95006
     # work, so this might not work.
 
95007
     sleep 0.1
 
95008
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95009
     # Then wait up to 10 seconds.
 
95010
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95011
       sleep 1
 
95012
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95013
     done
 
95014
     exit 1
 
95015
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95016
at_status=$? at_failed=false
 
95017
$at_check_filter
 
95018
echo stderr:; cat "$at_stderr"
 
95019
echo stdout:; cat "$at_stdout"
 
95020
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
95021
if $at_failed; then :
 
95022
  kill `cat savepid`
 
95023
fi
 
95024
$at_failed && at_fn_log_failure
 
95025
$at_traceon; }
 
95026
 
 
95027
fi
 
95028
$at_failed && at_fn_log_failure
 
95029
$at_traceon; }
 
95030
 
 
95031
   # Check br-to-vlan, with --oneline.
 
95032
   # (This particular test is interesting with --oneline because it returns
 
95033
   # an integer instead of a string and that can cause type mismatches inside
 
95034
   # python if not done carefully.)
 
95035
   { set +x
 
95036
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
95037
"
 
95038
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:273"
 
95039
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
95040
 
 
95041
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95042
at_status=$? at_failed=false
 
95043
$at_check_filter
 
95044
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95045
echo >>"$at_stdout"; $as_echo "0
 
95046
" | \
 
95047
  $at_diff - "$at_stdout" || at_failed=:
 
95048
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
95049
if $at_failed; then :
 
95050
  cp pid savepid
 
95051
   { set +x
 
95052
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
95053
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:273"
 
95054
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95055
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95056
at_status=$? at_failed=false
 
95057
$at_check_filter
 
95058
echo stderr:; cat "$at_stderr"
 
95059
echo stdout:; cat "$at_stdout"
 
95060
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
95061
$at_failed && at_fn_log_failure
 
95062
$at_traceon; }
 
95063
 
 
95064
   { set +x
 
95065
$as_echo "$at_srcdir/ovs-vsctl.at:273: # First try a quick sleep, so that the test completes very quickly
 
95066
     # in the normal case.  POSIX doesn't require fractional times to
 
95067
     # work, so this might not work.
 
95068
     sleep 0.1
 
95069
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95070
     # Then wait up to 10 seconds.
 
95071
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95072
       sleep 1
 
95073
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95074
     done
 
95075
     exit 1"
 
95076
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:273"
 
95077
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95078
     # in the normal case.  POSIX doesn't require fractional times to
 
95079
     # work, so this might not work.
 
95080
     sleep 0.1
 
95081
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95082
     # Then wait up to 10 seconds.
 
95083
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95084
       sleep 1
 
95085
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95086
     done
 
95087
     exit 1
 
95088
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95089
at_status=$? at_failed=false
 
95090
$at_check_filter
 
95091
echo stderr:; cat "$at_stderr"
 
95092
echo stdout:; cat "$at_stdout"
 
95093
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
95094
if $at_failed; then :
 
95095
  kill `cat savepid`
 
95096
fi
 
95097
$at_failed && at_fn_log_failure
 
95098
$at_traceon; }
 
95099
 
 
95100
fi
 
95101
$at_failed && at_fn_log_failure
 
95102
$at_traceon; }
 
95103
 
 
95104
 
 
95105
   # Check multiple queries in a single run.
 
95106
   { set +x
 
95107
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a"
 
95108
at_fn_check_prepare_trace "ovs-vsctl.at:273"
 
95109
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a
 
95110
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95111
at_status=$? at_failed=false
 
95112
$at_check_filter
 
95113
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95114
echo >>"$at_stdout"; $as_echo "a
 
95115
0
 
95116
" | \
 
95117
  $at_diff - "$at_stdout" || at_failed=:
 
95118
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
95119
if $at_failed; then :
 
95120
  cp pid savepid
 
95121
   { set +x
 
95122
$as_echo "$at_srcdir/ovs-vsctl.at:273: ovs-appctl -t \$PWD/unixctl -e exit"
 
95123
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:273"
 
95124
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95125
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95126
at_status=$? at_failed=false
 
95127
$at_check_filter
 
95128
echo stderr:; cat "$at_stderr"
 
95129
echo stdout:; cat "$at_stdout"
 
95130
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
95131
$at_failed && at_fn_log_failure
 
95132
$at_traceon; }
 
95133
 
 
95134
   { set +x
 
95135
$as_echo "$at_srcdir/ovs-vsctl.at:273: # First try a quick sleep, so that the test completes very quickly
 
95136
     # in the normal case.  POSIX doesn't require fractional times to
 
95137
     # work, so this might not work.
 
95138
     sleep 0.1
 
95139
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95140
     # Then wait up to 10 seconds.
 
95141
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95142
       sleep 1
 
95143
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95144
     done
 
95145
     exit 1"
 
95146
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:273"
 
95147
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95148
     # in the normal case.  POSIX doesn't require fractional times to
 
95149
     # work, so this might not work.
 
95150
     sleep 0.1
 
95151
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95152
     # Then wait up to 10 seconds.
 
95153
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95154
       sleep 1
 
95155
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95156
     done
 
95157
     exit 1
 
95158
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95159
at_status=$? at_failed=false
 
95160
$at_check_filter
 
95161
echo stderr:; cat "$at_stderr"
 
95162
echo stdout:; cat "$at_stdout"
 
95163
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:273"
 
95164
if $at_failed; then :
 
95165
  kill `cat savepid`
 
95166
fi
 
95167
$at_failed && at_fn_log_failure
 
95168
$at_traceon; }
 
95169
 
 
95170
fi
 
95171
$at_failed && at_fn_log_failure
 
95172
$at_traceon; }
 
95173
 
 
95174
   { set +x
 
95175
$as_echo "$at_srcdir/ovs-vsctl.at:274: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
95176
"
 
95177
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:274"
 
95178
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
95179
 
 
95180
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95181
at_status=$? at_failed=false
 
95182
$at_check_filter
 
95183
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95184
echo >>"$at_stdout"; $as_echo "bond0
 
95185
" | \
 
95186
  $at_diff - "$at_stdout" || at_failed=:
 
95187
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95188
if $at_failed; then :
 
95189
  cp pid savepid
 
95190
   { set +x
 
95191
$as_echo "$at_srcdir/ovs-vsctl.at:274: ovs-appctl -t \$PWD/unixctl -e exit"
 
95192
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:274"
 
95193
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95194
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95195
at_status=$? at_failed=false
 
95196
$at_check_filter
 
95197
echo stderr:; cat "$at_stderr"
 
95198
echo stdout:; cat "$at_stdout"
 
95199
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95200
$at_failed && at_fn_log_failure
 
95201
$at_traceon; }
 
95202
 
 
95203
   { set +x
 
95204
$as_echo "$at_srcdir/ovs-vsctl.at:274: # First try a quick sleep, so that the test completes very quickly
 
95205
     # in the normal case.  POSIX doesn't require fractional times to
 
95206
     # work, so this might not work.
 
95207
     sleep 0.1
 
95208
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95209
     # Then wait up to 10 seconds.
 
95210
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95211
       sleep 1
 
95212
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95213
     done
 
95214
     exit 1"
 
95215
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:274"
 
95216
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95217
     # in the normal case.  POSIX doesn't require fractional times to
 
95218
     # work, so this might not work.
 
95219
     sleep 0.1
 
95220
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95221
     # Then wait up to 10 seconds.
 
95222
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95223
       sleep 1
 
95224
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95225
     done
 
95226
     exit 1
 
95227
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95228
at_status=$? at_failed=false
 
95229
$at_check_filter
 
95230
echo stderr:; cat "$at_stderr"
 
95231
echo stdout:; cat "$at_stdout"
 
95232
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95233
if $at_failed; then :
 
95234
  kill `cat savepid`
 
95235
fi
 
95236
$at_failed && at_fn_log_failure
 
95237
$at_traceon; }
 
95238
 
 
95239
fi
 
95240
$at_failed && at_fn_log_failure
 
95241
$at_traceon; }
 
95242
 
 
95243
 
 
95244
      { set +x
 
95245
$as_echo "$at_srcdir/ovs-vsctl.at:274: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
95246
"
 
95247
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:274"
 
95248
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
95249
 
 
95250
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95251
at_status=$? at_failed=false
 
95252
$at_check_filter
 
95253
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95254
echo >>"$at_stdout"; $as_echo "bond0
 
95255
" | \
 
95256
  $at_diff - "$at_stdout" || at_failed=:
 
95257
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95258
if $at_failed; then :
 
95259
  cp pid savepid
 
95260
   { set +x
 
95261
$as_echo "$at_srcdir/ovs-vsctl.at:274: ovs-appctl -t \$PWD/unixctl -e exit"
 
95262
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:274"
 
95263
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95264
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95265
at_status=$? at_failed=false
 
95266
$at_check_filter
 
95267
echo stderr:; cat "$at_stderr"
 
95268
echo stdout:; cat "$at_stdout"
 
95269
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95270
$at_failed && at_fn_log_failure
 
95271
$at_traceon; }
 
95272
 
 
95273
   { set +x
 
95274
$as_echo "$at_srcdir/ovs-vsctl.at:274: # First try a quick sleep, so that the test completes very quickly
 
95275
     # in the normal case.  POSIX doesn't require fractional times to
 
95276
     # work, so this might not work.
 
95277
     sleep 0.1
 
95278
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95279
     # Then wait up to 10 seconds.
 
95280
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95281
       sleep 1
 
95282
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95283
     done
 
95284
     exit 1"
 
95285
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:274"
 
95286
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95287
     # in the normal case.  POSIX doesn't require fractional times to
 
95288
     # work, so this might not work.
 
95289
     sleep 0.1
 
95290
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95291
     # Then wait up to 10 seconds.
 
95292
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95293
       sleep 1
 
95294
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95295
     done
 
95296
     exit 1
 
95297
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95298
at_status=$? at_failed=false
 
95299
$at_check_filter
 
95300
echo stderr:; cat "$at_stderr"
 
95301
echo stdout:; cat "$at_stdout"
 
95302
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95303
if $at_failed; then :
 
95304
  kill `cat savepid`
 
95305
fi
 
95306
$at_failed && at_fn_log_failure
 
95307
$at_traceon; }
 
95308
 
 
95309
fi
 
95310
$at_failed && at_fn_log_failure
 
95311
$at_traceon; }
 
95312
 
 
95313
   { set +x
 
95314
$as_echo "$at_srcdir/ovs-vsctl.at:274: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
95315
"
 
95316
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:274"
 
95317
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
95318
 
 
95319
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95320
at_status=$? at_failed=false
 
95321
$at_check_filter
 
95322
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named a
 
95323
" | \
 
95324
  $at_diff - "$at_stderr" || at_failed=:
 
95325
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
95326
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95327
if $at_failed; then :
 
95328
  cp pid savepid
 
95329
   { set +x
 
95330
$as_echo "$at_srcdir/ovs-vsctl.at:274: ovs-appctl -t \$PWD/unixctl -e exit"
 
95331
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:274"
 
95332
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95333
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95334
at_status=$? at_failed=false
 
95335
$at_check_filter
 
95336
echo stderr:; cat "$at_stderr"
 
95337
echo stdout:; cat "$at_stdout"
 
95338
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95339
$at_failed && at_fn_log_failure
 
95340
$at_traceon; }
 
95341
 
 
95342
   { set +x
 
95343
$as_echo "$at_srcdir/ovs-vsctl.at:274: # First try a quick sleep, so that the test completes very quickly
 
95344
     # in the normal case.  POSIX doesn't require fractional times to
 
95345
     # work, so this might not work.
 
95346
     sleep 0.1
 
95347
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95348
     # Then wait up to 10 seconds.
 
95349
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95350
       sleep 1
 
95351
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95352
     done
 
95353
     exit 1"
 
95354
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:274"
 
95355
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95356
     # in the normal case.  POSIX doesn't require fractional times to
 
95357
     # work, so this might not work.
 
95358
     sleep 0.1
 
95359
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95360
     # Then wait up to 10 seconds.
 
95361
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95362
       sleep 1
 
95363
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95364
     done
 
95365
     exit 1
 
95366
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95367
at_status=$? at_failed=false
 
95368
$at_check_filter
 
95369
echo stderr:; cat "$at_stderr"
 
95370
echo stdout:; cat "$at_stdout"
 
95371
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95372
if $at_failed; then :
 
95373
  kill `cat savepid`
 
95374
fi
 
95375
$at_failed && at_fn_log_failure
 
95376
$at_traceon; }
 
95377
 
 
95378
fi
 
95379
$at_failed && at_fn_log_failure
 
95380
$at_traceon; }
 
95381
 
 
95382
   { set +x
 
95383
$as_echo "$at_srcdir/ovs-vsctl.at:274: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0
 
95384
"
 
95385
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:274"
 
95386
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0
 
95387
 
 
95388
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95389
at_status=$? at_failed=false
 
95390
$at_check_filter
 
95391
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95392
echo >>"$at_stdout"; $as_echo "a
 
95393
" | \
 
95394
  $at_diff - "$at_stdout" || at_failed=:
 
95395
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95396
if $at_failed; then :
 
95397
  cp pid savepid
 
95398
   { set +x
 
95399
$as_echo "$at_srcdir/ovs-vsctl.at:274: ovs-appctl -t \$PWD/unixctl -e exit"
 
95400
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:274"
 
95401
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95402
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95403
at_status=$? at_failed=false
 
95404
$at_check_filter
 
95405
echo stderr:; cat "$at_stderr"
 
95406
echo stdout:; cat "$at_stdout"
 
95407
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95408
$at_failed && at_fn_log_failure
 
95409
$at_traceon; }
 
95410
 
 
95411
   { set +x
 
95412
$as_echo "$at_srcdir/ovs-vsctl.at:274: # First try a quick sleep, so that the test completes very quickly
 
95413
     # in the normal case.  POSIX doesn't require fractional times to
 
95414
     # work, so this might not work.
 
95415
     sleep 0.1
 
95416
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95417
     # Then wait up to 10 seconds.
 
95418
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95419
       sleep 1
 
95420
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95421
     done
 
95422
     exit 1"
 
95423
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:274"
 
95424
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95425
     # in the normal case.  POSIX doesn't require fractional times to
 
95426
     # work, so this might not work.
 
95427
     sleep 0.1
 
95428
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95429
     # Then wait up to 10 seconds.
 
95430
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95431
       sleep 1
 
95432
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95433
     done
 
95434
     exit 1
 
95435
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95436
at_status=$? at_failed=false
 
95437
$at_check_filter
 
95438
echo stderr:; cat "$at_stderr"
 
95439
echo stdout:; cat "$at_stdout"
 
95440
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:274"
 
95441
if $at_failed; then :
 
95442
  kill `cat savepid`
 
95443
fi
 
95444
$at_failed && at_fn_log_failure
 
95445
$at_traceon; }
 
95446
 
 
95447
fi
 
95448
$at_failed && at_fn_log_failure
 
95449
$at_traceon; }
 
95450
 
 
95451
{ set +x
 
95452
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
95453
"
 
95454
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:275"
 
95455
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
95456
 
 
95457
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95458
at_status=$? at_failed=false
 
95459
$at_check_filter
 
95460
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95461
echo >>"$at_stdout"; $as_echo "a1
 
95462
a2
 
95463
a3
 
95464
" | \
 
95465
  $at_diff - "$at_stdout" || at_failed=:
 
95466
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95467
if $at_failed; then :
 
95468
  cp pid savepid
 
95469
   { set +x
 
95470
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-appctl -t \$PWD/unixctl -e exit"
 
95471
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:275"
 
95472
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95473
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95474
at_status=$? at_failed=false
 
95475
$at_check_filter
 
95476
echo stderr:; cat "$at_stderr"
 
95477
echo stdout:; cat "$at_stdout"
 
95478
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95479
$at_failed && at_fn_log_failure
 
95480
$at_traceon; }
 
95481
 
 
95482
   { set +x
 
95483
$as_echo "$at_srcdir/ovs-vsctl.at:275: # First try a quick sleep, so that the test completes very quickly
 
95484
     # in the normal case.  POSIX doesn't require fractional times to
 
95485
     # work, so this might not work.
 
95486
     sleep 0.1
 
95487
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95488
     # Then wait up to 10 seconds.
 
95489
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95490
       sleep 1
 
95491
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95492
     done
 
95493
     exit 1"
 
95494
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:275"
 
95495
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95496
     # in the normal case.  POSIX doesn't require fractional times to
 
95497
     # work, so this might not work.
 
95498
     sleep 0.1
 
95499
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95500
     # Then wait up to 10 seconds.
 
95501
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95502
       sleep 1
 
95503
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95504
     done
 
95505
     exit 1
 
95506
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95507
at_status=$? at_failed=false
 
95508
$at_check_filter
 
95509
echo stderr:; cat "$at_stderr"
 
95510
echo stdout:; cat "$at_stdout"
 
95511
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95512
if $at_failed; then :
 
95513
  kill `cat savepid`
 
95514
fi
 
95515
$at_failed && at_fn_log_failure
 
95516
$at_traceon; }
 
95517
 
 
95518
fi
 
95519
$at_failed && at_fn_log_failure
 
95520
$at_traceon; }
 
95521
 
 
95522
   { set +x
 
95523
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
95524
"
 
95525
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:275"
 
95526
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
95527
 
 
95528
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95529
at_status=$? at_failed=false
 
95530
$at_check_filter
 
95531
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named a
 
95532
" | \
 
95533
  $at_diff - "$at_stderr" || at_failed=:
 
95534
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
95535
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95536
if $at_failed; then :
 
95537
  cp pid savepid
 
95538
   { set +x
 
95539
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-appctl -t \$PWD/unixctl -e exit"
 
95540
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:275"
 
95541
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95542
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95543
at_status=$? at_failed=false
 
95544
$at_check_filter
 
95545
echo stderr:; cat "$at_stderr"
 
95546
echo stdout:; cat "$at_stdout"
 
95547
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95548
$at_failed && at_fn_log_failure
 
95549
$at_traceon; }
 
95550
 
 
95551
   { set +x
 
95552
$as_echo "$at_srcdir/ovs-vsctl.at:275: # First try a quick sleep, so that the test completes very quickly
 
95553
     # in the normal case.  POSIX doesn't require fractional times to
 
95554
     # work, so this might not work.
 
95555
     sleep 0.1
 
95556
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95557
     # Then wait up to 10 seconds.
 
95558
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95559
       sleep 1
 
95560
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95561
     done
 
95562
     exit 1"
 
95563
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:275"
 
95564
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95565
     # in the normal case.  POSIX doesn't require fractional times to
 
95566
     # work, so this might not work.
 
95567
     sleep 0.1
 
95568
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95569
     # Then wait up to 10 seconds.
 
95570
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95571
       sleep 1
 
95572
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95573
     done
 
95574
     exit 1
 
95575
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95576
at_status=$? at_failed=false
 
95577
$at_check_filter
 
95578
echo stderr:; cat "$at_stderr"
 
95579
echo stdout:; cat "$at_stdout"
 
95580
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95581
if $at_failed; then :
 
95582
  kill `cat savepid`
 
95583
fi
 
95584
$at_failed && at_fn_log_failure
 
95585
$at_traceon; }
 
95586
 
 
95587
fi
 
95588
$at_failed && at_fn_log_failure
 
95589
$at_traceon; }
 
95590
 
 
95591
   { set +x
 
95592
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a1
 
95593
"
 
95594
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:275"
 
95595
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a1
 
95596
 
 
95597
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95598
at_status=$? at_failed=false
 
95599
$at_check_filter
 
95600
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95601
echo >>"$at_stdout"; $as_echo "a
 
95602
" | \
 
95603
  $at_diff - "$at_stdout" || at_failed=:
 
95604
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95605
if $at_failed; then :
 
95606
  cp pid savepid
 
95607
   { set +x
 
95608
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-appctl -t \$PWD/unixctl -e exit"
 
95609
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:275"
 
95610
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95611
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95612
at_status=$? at_failed=false
 
95613
$at_check_filter
 
95614
echo stderr:; cat "$at_stderr"
 
95615
echo stdout:; cat "$at_stdout"
 
95616
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95617
$at_failed && at_fn_log_failure
 
95618
$at_traceon; }
 
95619
 
 
95620
   { set +x
 
95621
$as_echo "$at_srcdir/ovs-vsctl.at:275: # First try a quick sleep, so that the test completes very quickly
 
95622
     # in the normal case.  POSIX doesn't require fractional times to
 
95623
     # work, so this might not work.
 
95624
     sleep 0.1
 
95625
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95626
     # Then wait up to 10 seconds.
 
95627
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95628
       sleep 1
 
95629
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95630
     done
 
95631
     exit 1"
 
95632
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:275"
 
95633
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95634
     # in the normal case.  POSIX doesn't require fractional times to
 
95635
     # work, so this might not work.
 
95636
     sleep 0.1
 
95637
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95638
     # Then wait up to 10 seconds.
 
95639
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95640
       sleep 1
 
95641
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95642
     done
 
95643
     exit 1
 
95644
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95645
at_status=$? at_failed=false
 
95646
$at_check_filter
 
95647
echo stderr:; cat "$at_stderr"
 
95648
echo stdout:; cat "$at_stdout"
 
95649
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95650
if $at_failed; then :
 
95651
  kill `cat savepid`
 
95652
fi
 
95653
$at_failed && at_fn_log_failure
 
95654
$at_traceon; }
 
95655
 
 
95656
fi
 
95657
$at_failed && at_fn_log_failure
 
95658
$at_traceon; }
 
95659
{ set +x
 
95660
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a2
 
95661
"
 
95662
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:275"
 
95663
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a2
 
95664
 
 
95665
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95666
at_status=$? at_failed=false
 
95667
$at_check_filter
 
95668
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95669
echo >>"$at_stdout"; $as_echo "a
 
95670
" | \
 
95671
  $at_diff - "$at_stdout" || at_failed=:
 
95672
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95673
if $at_failed; then :
 
95674
  cp pid savepid
 
95675
   { set +x
 
95676
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-appctl -t \$PWD/unixctl -e exit"
 
95677
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:275"
 
95678
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95679
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95680
at_status=$? at_failed=false
 
95681
$at_check_filter
 
95682
echo stderr:; cat "$at_stderr"
 
95683
echo stdout:; cat "$at_stdout"
 
95684
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95685
$at_failed && at_fn_log_failure
 
95686
$at_traceon; }
 
95687
 
 
95688
   { set +x
 
95689
$as_echo "$at_srcdir/ovs-vsctl.at:275: # First try a quick sleep, so that the test completes very quickly
 
95690
     # in the normal case.  POSIX doesn't require fractional times to
 
95691
     # work, so this might not work.
 
95692
     sleep 0.1
 
95693
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95694
     # Then wait up to 10 seconds.
 
95695
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95696
       sleep 1
 
95697
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95698
     done
 
95699
     exit 1"
 
95700
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:275"
 
95701
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95702
     # in the normal case.  POSIX doesn't require fractional times to
 
95703
     # work, so this might not work.
 
95704
     sleep 0.1
 
95705
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95706
     # Then wait up to 10 seconds.
 
95707
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95708
       sleep 1
 
95709
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95710
     done
 
95711
     exit 1
 
95712
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95713
at_status=$? at_failed=false
 
95714
$at_check_filter
 
95715
echo stderr:; cat "$at_stderr"
 
95716
echo stdout:; cat "$at_stdout"
 
95717
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95718
if $at_failed; then :
 
95719
  kill `cat savepid`
 
95720
fi
 
95721
$at_failed && at_fn_log_failure
 
95722
$at_traceon; }
 
95723
 
 
95724
fi
 
95725
$at_failed && at_fn_log_failure
 
95726
$at_traceon; }
 
95727
{ set +x
 
95728
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a3
 
95729
"
 
95730
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:275"
 
95731
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a3
 
95732
 
 
95733
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95734
at_status=$? at_failed=false
 
95735
$at_check_filter
 
95736
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95737
echo >>"$at_stdout"; $as_echo "a
 
95738
" | \
 
95739
  $at_diff - "$at_stdout" || at_failed=:
 
95740
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95741
if $at_failed; then :
 
95742
  cp pid savepid
 
95743
   { set +x
 
95744
$as_echo "$at_srcdir/ovs-vsctl.at:275: ovs-appctl -t \$PWD/unixctl -e exit"
 
95745
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:275"
 
95746
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95747
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95748
at_status=$? at_failed=false
 
95749
$at_check_filter
 
95750
echo stderr:; cat "$at_stderr"
 
95751
echo stdout:; cat "$at_stdout"
 
95752
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95753
$at_failed && at_fn_log_failure
 
95754
$at_traceon; }
 
95755
 
 
95756
   { set +x
 
95757
$as_echo "$at_srcdir/ovs-vsctl.at:275: # First try a quick sleep, so that the test completes very quickly
 
95758
     # in the normal case.  POSIX doesn't require fractional times to
 
95759
     # work, so this might not work.
 
95760
     sleep 0.1
 
95761
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95762
     # Then wait up to 10 seconds.
 
95763
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95764
       sleep 1
 
95765
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95766
     done
 
95767
     exit 1"
 
95768
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:275"
 
95769
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95770
     # in the normal case.  POSIX doesn't require fractional times to
 
95771
     # work, so this might not work.
 
95772
     sleep 0.1
 
95773
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95774
     # Then wait up to 10 seconds.
 
95775
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95776
       sleep 1
 
95777
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95778
     done
 
95779
     exit 1
 
95780
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95781
at_status=$? at_failed=false
 
95782
$at_check_filter
 
95783
echo stderr:; cat "$at_stderr"
 
95784
echo stdout:; cat "$at_stdout"
 
95785
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:275"
 
95786
if $at_failed; then :
 
95787
  kill `cat savepid`
 
95788
fi
 
95789
$at_failed && at_fn_log_failure
 
95790
$at_traceon; }
 
95791
 
 
95792
fi
 
95793
$at_failed && at_fn_log_failure
 
95794
$at_traceon; }
 
95795
 
 
95796
cp pid savepid
 
95797
   { set +x
 
95798
$as_echo "$at_srcdir/ovs-vsctl.at:276: ovs-appctl -t \$PWD/unixctl -e exit"
 
95799
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:276"
 
95800
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95801
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95802
at_status=$? at_failed=false
 
95803
$at_check_filter
 
95804
echo stderr:; cat "$at_stderr"
 
95805
echo stdout:; cat "$at_stdout"
 
95806
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:276"
 
95807
$at_failed && at_fn_log_failure
 
95808
$at_traceon; }
 
95809
 
 
95810
   { set +x
 
95811
$as_echo "$at_srcdir/ovs-vsctl.at:276: # First try a quick sleep, so that the test completes very quickly
 
95812
     # in the normal case.  POSIX doesn't require fractional times to
 
95813
     # work, so this might not work.
 
95814
     sleep 0.1
 
95815
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95816
     # Then wait up to 10 seconds.
 
95817
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95818
       sleep 1
 
95819
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95820
     done
 
95821
     exit 1"
 
95822
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:276"
 
95823
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95824
     # in the normal case.  POSIX doesn't require fractional times to
 
95825
     # work, so this might not work.
 
95826
     sleep 0.1
 
95827
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95828
     # Then wait up to 10 seconds.
 
95829
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95830
       sleep 1
 
95831
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95832
     done
 
95833
     exit 1
 
95834
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95835
at_status=$? at_failed=false
 
95836
$at_check_filter
 
95837
echo stderr:; cat "$at_stderr"
 
95838
echo stdout:; cat "$at_stdout"
 
95839
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:276"
 
95840
if $at_failed; then :
 
95841
  kill `cat savepid`
 
95842
fi
 
95843
$at_failed && at_fn_log_failure
 
95844
$at_traceon; }
 
95845
 
 
95846
  set +x
 
95847
  $at_times_p && times >"$at_times_file"
 
95848
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
95849
read at_status <"$at_status_file"
 
95850
#AT_STOP_951
 
95851
#AT_START_952
 
95852
at_fn_group_banner 952 'ovs-vsctl.at:279' \
 
95853
  "add-br a b, add-port a a1, add-port b b1, del-port a a1" "" 65
 
95854
at_xfail=no
 
95855
(
 
95856
  $as_echo "952. $at_setup_line: testing $at_desc ..."
 
95857
  $at_traceon
 
95858
 
 
95859
 
 
95860
{ set +x
 
95861
$as_echo "$at_srcdir/ovs-vsctl.at:281: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
95862
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:281"
 
95863
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
95864
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95865
at_status=$? at_failed=false
 
95866
$at_check_filter
 
95867
echo stderr:; cat "$at_stderr"
 
95868
echo stdout:; tee stdout <"$at_stdout"
 
95869
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:281"
 
95870
$at_failed && at_fn_log_failure
 
95871
$at_traceon; }
 
95872
 
 
95873
   { set +x
 
95874
$as_echo "$at_srcdir/ovs-vsctl.at:281: ovsdb-tool transact db \\
 
95875
        '[\"Open_vSwitch\",
 
95876
          {\"op\": \"insert\",
 
95877
           \"table\": \"Open_vSwitch\",
 
95878
           \"row\": {}}]'"
 
95879
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:281"
 
95880
( $at_check_trace; ovsdb-tool transact db \
 
95881
        '["Open_vSwitch",
 
95882
          {"op": "insert",
 
95883
           "table": "Open_vSwitch",
 
95884
           "row": {}}]'
 
95885
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95886
at_status=$? at_failed=false
 
95887
$at_check_filter
 
95888
echo stderr:; cat "$at_stderr"
 
95889
echo stdout:; cat "$at_stdout"
 
95890
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:281"
 
95891
$at_failed && at_fn_log_failure
 
95892
$at_traceon; }
 
95893
 
 
95894
   { set +x
 
95895
$as_echo "$at_srcdir/ovs-vsctl.at:281: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
95896
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:281"
 
95897
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
95898
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95899
at_status=$? at_failed=false
 
95900
$at_check_filter
 
95901
echo stderr:; cat "$at_stderr"
 
95902
echo stdout:; cat "$at_stdout"
 
95903
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:281"
 
95904
$at_failed && at_fn_log_failure
 
95905
$at_traceon; }
 
95906
 
 
95907
{ set +x
 
95908
$as_echo "$at_srcdir/ovs-vsctl.at:282: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
95909
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br b
 
95910
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a1 tag=9
 
95911
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get port a1 tag
 
95912
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port b b1
 
95913
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-port a a1
 
95914
"
 
95915
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:282"
 
95916
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br a
 
95917
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br b
 
95918
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port a a1 tag=9
 
95919
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get port a1 tag
 
95920
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port b b1
 
95921
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-port a a1
 
95922
 
 
95923
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95924
at_status=$? at_failed=false
 
95925
$at_check_filter
 
95926
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95927
echo >>"$at_stdout"; $as_echo "9
 
95928
" | \
 
95929
  $at_diff - "$at_stdout" || at_failed=:
 
95930
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:282"
 
95931
if $at_failed; then :
 
95932
  cp pid savepid
 
95933
   { set +x
 
95934
$as_echo "$at_srcdir/ovs-vsctl.at:282: ovs-appctl -t \$PWD/unixctl -e exit"
 
95935
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:282"
 
95936
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
95937
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95938
at_status=$? at_failed=false
 
95939
$at_check_filter
 
95940
echo stderr:; cat "$at_stderr"
 
95941
echo stdout:; cat "$at_stdout"
 
95942
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:282"
 
95943
$at_failed && at_fn_log_failure
 
95944
$at_traceon; }
 
95945
 
 
95946
   { set +x
 
95947
$as_echo "$at_srcdir/ovs-vsctl.at:282: # First try a quick sleep, so that the test completes very quickly
 
95948
     # in the normal case.  POSIX doesn't require fractional times to
 
95949
     # work, so this might not work.
 
95950
     sleep 0.1
 
95951
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95952
     # Then wait up to 10 seconds.
 
95953
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95954
       sleep 1
 
95955
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
95956
     done
 
95957
     exit 1"
 
95958
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:282"
 
95959
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
95960
     # in the normal case.  POSIX doesn't require fractional times to
 
95961
     # work, so this might not work.
 
95962
     sleep 0.1
 
95963
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
95964
     # Then wait up to 10 seconds.
 
95965
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
95966
       sleep 1
 
95967
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
95968
     done
 
95969
     exit 1
 
95970
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95971
at_status=$? at_failed=false
 
95972
$at_check_filter
 
95973
echo stderr:; cat "$at_stderr"
 
95974
echo stdout:; cat "$at_stdout"
 
95975
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:282"
 
95976
if $at_failed; then :
 
95977
  kill `cat savepid`
 
95978
fi
 
95979
$at_failed && at_fn_log_failure
 
95980
$at_traceon; }
 
95981
 
 
95982
fi
 
95983
$at_failed && at_fn_log_failure
 
95984
$at_traceon; }
 
95985
 
 
95986
{ set +x
 
95987
$as_echo "$at_srcdir/ovs-vsctl.at:290: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port b b1
 
95988
"
 
95989
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:290"
 
95990
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port b b1
 
95991
 
 
95992
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
95993
at_status=$? at_failed=false
 
95994
$at_check_filter
 
95995
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
95996
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
95997
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:290"
 
95998
if $at_failed; then :
 
95999
  cp pid savepid
 
96000
   { set +x
 
96001
$as_echo "$at_srcdir/ovs-vsctl.at:290: ovs-appctl -t \$PWD/unixctl -e exit"
 
96002
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:290"
 
96003
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96004
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96005
at_status=$? at_failed=false
 
96006
$at_check_filter
 
96007
echo stderr:; cat "$at_stderr"
 
96008
echo stdout:; cat "$at_stdout"
 
96009
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:290"
 
96010
$at_failed && at_fn_log_failure
 
96011
$at_traceon; }
 
96012
 
 
96013
   { set +x
 
96014
$as_echo "$at_srcdir/ovs-vsctl.at:290: # First try a quick sleep, so that the test completes very quickly
 
96015
     # in the normal case.  POSIX doesn't require fractional times to
 
96016
     # work, so this might not work.
 
96017
     sleep 0.1
 
96018
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96019
     # Then wait up to 10 seconds.
 
96020
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96021
       sleep 1
 
96022
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96023
     done
 
96024
     exit 1"
 
96025
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:290"
 
96026
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96027
     # in the normal case.  POSIX doesn't require fractional times to
 
96028
     # work, so this might not work.
 
96029
     sleep 0.1
 
96030
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96031
     # Then wait up to 10 seconds.
 
96032
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96033
       sleep 1
 
96034
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96035
     done
 
96036
     exit 1
 
96037
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96038
at_status=$? at_failed=false
 
96039
$at_check_filter
 
96040
echo stderr:; cat "$at_stderr"
 
96041
echo stdout:; cat "$at_stdout"
 
96042
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:290"
 
96043
if $at_failed; then :
 
96044
  kill `cat savepid`
 
96045
fi
 
96046
$at_failed && at_fn_log_failure
 
96047
$at_traceon; }
 
96048
 
 
96049
fi
 
96050
$at_failed && at_fn_log_failure
 
96051
$at_traceon; }
 
96052
 
 
96053
{ set +x
 
96054
$as_echo "$at_srcdir/ovs-vsctl.at:292: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port a b1
 
96055
"
 
96056
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:292"
 
96057
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port a b1
 
96058
 
 
96059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96060
at_status=$? at_failed=false
 
96061
$at_check_filter
 
96062
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-port a b1\" but b1 is actually attached to bridge b
 
96063
" | \
 
96064
  $at_diff - "$at_stderr" || at_failed=:
 
96065
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
96066
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:292"
 
96067
if $at_failed; then :
 
96068
  cp pid savepid
 
96069
   { set +x
 
96070
$as_echo "$at_srcdir/ovs-vsctl.at:292: ovs-appctl -t \$PWD/unixctl -e exit"
 
96071
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:292"
 
96072
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96073
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96074
at_status=$? at_failed=false
 
96075
$at_check_filter
 
96076
echo stderr:; cat "$at_stderr"
 
96077
echo stdout:; cat "$at_stdout"
 
96078
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:292"
 
96079
$at_failed && at_fn_log_failure
 
96080
$at_traceon; }
 
96081
 
 
96082
   { set +x
 
96083
$as_echo "$at_srcdir/ovs-vsctl.at:292: # First try a quick sleep, so that the test completes very quickly
 
96084
     # in the normal case.  POSIX doesn't require fractional times to
 
96085
     # work, so this might not work.
 
96086
     sleep 0.1
 
96087
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96088
     # Then wait up to 10 seconds.
 
96089
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96090
       sleep 1
 
96091
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96092
     done
 
96093
     exit 1"
 
96094
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:292"
 
96095
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96096
     # in the normal case.  POSIX doesn't require fractional times to
 
96097
     # work, so this might not work.
 
96098
     sleep 0.1
 
96099
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96100
     # Then wait up to 10 seconds.
 
96101
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96102
       sleep 1
 
96103
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96104
     done
 
96105
     exit 1
 
96106
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96107
at_status=$? at_failed=false
 
96108
$at_check_filter
 
96109
echo stderr:; cat "$at_stderr"
 
96110
echo stdout:; cat "$at_stdout"
 
96111
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:292"
 
96112
if $at_failed; then :
 
96113
  kill `cat savepid`
 
96114
fi
 
96115
$at_failed && at_fn_log_failure
 
96116
$at_traceon; }
 
96117
 
 
96118
fi
 
96119
$at_failed && at_fn_log_failure
 
96120
$at_traceon; }
 
96121
 
 
96122
   { set +x
 
96123
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
96124
"
 
96125
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96126
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
96127
 
 
96128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96129
at_status=$? at_failed=false
 
96130
$at_check_filter
 
96131
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96132
echo >>"$at_stdout"; $as_echo "a
 
96133
b
 
96134
" | \
 
96135
  $at_diff - "$at_stdout" || at_failed=:
 
96136
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96137
if $at_failed; then :
 
96138
  cp pid savepid
 
96139
   { set +x
 
96140
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96141
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96142
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96143
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96144
at_status=$? at_failed=false
 
96145
$at_check_filter
 
96146
echo stderr:; cat "$at_stderr"
 
96147
echo stdout:; cat "$at_stdout"
 
96148
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96149
$at_failed && at_fn_log_failure
 
96150
$at_traceon; }
 
96151
 
 
96152
   { set +x
 
96153
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96154
     # in the normal case.  POSIX doesn't require fractional times to
 
96155
     # work, so this might not work.
 
96156
     sleep 0.1
 
96157
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96158
     # Then wait up to 10 seconds.
 
96159
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96160
       sleep 1
 
96161
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96162
     done
 
96163
     exit 1"
 
96164
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96165
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96166
     # in the normal case.  POSIX doesn't require fractional times to
 
96167
     # work, so this might not work.
 
96168
     sleep 0.1
 
96169
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96170
     # Then wait up to 10 seconds.
 
96171
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96172
       sleep 1
 
96173
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96174
     done
 
96175
     exit 1
 
96176
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96177
at_status=$? at_failed=false
 
96178
$at_check_filter
 
96179
echo stderr:; cat "$at_stderr"
 
96180
echo stdout:; cat "$at_stdout"
 
96181
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96182
if $at_failed; then :
 
96183
  kill `cat savepid`
 
96184
fi
 
96185
$at_failed && at_fn_log_failure
 
96186
$at_traceon; }
 
96187
 
 
96188
fi
 
96189
$at_failed && at_fn_log_failure
 
96190
$at_traceon; }
 
96191
 
 
96192
 
 
96193
      { set +x
 
96194
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
96195
"
 
96196
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96197
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
96198
 
 
96199
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96200
at_status=$? at_failed=false
 
96201
$at_check_filter
 
96202
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96203
echo >>"$at_stdout"; $as_echo "a\\nb
 
96204
" | \
 
96205
  $at_diff - "$at_stdout" || at_failed=:
 
96206
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96207
if $at_failed; then :
 
96208
  cp pid savepid
 
96209
   { set +x
 
96210
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96211
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96212
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96214
at_status=$? at_failed=false
 
96215
$at_check_filter
 
96216
echo stderr:; cat "$at_stderr"
 
96217
echo stdout:; cat "$at_stdout"
 
96218
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96219
$at_failed && at_fn_log_failure
 
96220
$at_traceon; }
 
96221
 
 
96222
   { set +x
 
96223
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96224
     # in the normal case.  POSIX doesn't require fractional times to
 
96225
     # work, so this might not work.
 
96226
     sleep 0.1
 
96227
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96228
     # Then wait up to 10 seconds.
 
96229
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96230
       sleep 1
 
96231
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96232
     done
 
96233
     exit 1"
 
96234
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96235
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96236
     # in the normal case.  POSIX doesn't require fractional times to
 
96237
     # work, so this might not work.
 
96238
     sleep 0.1
 
96239
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96240
     # Then wait up to 10 seconds.
 
96241
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96242
       sleep 1
 
96243
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96244
     done
 
96245
     exit 1
 
96246
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96247
at_status=$? at_failed=false
 
96248
$at_check_filter
 
96249
echo stderr:; cat "$at_stderr"
 
96250
echo stdout:; cat "$at_stdout"
 
96251
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96252
if $at_failed; then :
 
96253
  kill `cat savepid`
 
96254
fi
 
96255
$at_failed && at_fn_log_failure
 
96256
$at_traceon; }
 
96257
 
 
96258
fi
 
96259
$at_failed && at_fn_log_failure
 
96260
$at_traceon; }
 
96261
 
 
96262
 
 
96263
         { set +x
 
96264
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
96265
"
 
96266
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96267
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
96268
 
 
96269
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96270
at_status=$? at_failed=false
 
96271
$at_check_filter
 
96272
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96273
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
96274
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96275
if $at_failed; then :
 
96276
  cp pid savepid
 
96277
   { set +x
 
96278
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96279
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96280
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96281
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96282
at_status=$? at_failed=false
 
96283
$at_check_filter
 
96284
echo stderr:; cat "$at_stderr"
 
96285
echo stdout:; cat "$at_stdout"
 
96286
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96287
$at_failed && at_fn_log_failure
 
96288
$at_traceon; }
 
96289
 
 
96290
   { set +x
 
96291
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96292
     # in the normal case.  POSIX doesn't require fractional times to
 
96293
     # work, so this might not work.
 
96294
     sleep 0.1
 
96295
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96296
     # Then wait up to 10 seconds.
 
96297
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96298
       sleep 1
 
96299
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96300
     done
 
96301
     exit 1"
 
96302
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96303
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96304
     # in the normal case.  POSIX doesn't require fractional times to
 
96305
     # work, so this might not work.
 
96306
     sleep 0.1
 
96307
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96308
     # Then wait up to 10 seconds.
 
96309
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96310
       sleep 1
 
96311
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96312
     done
 
96313
     exit 1
 
96314
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96315
at_status=$? at_failed=false
 
96316
$at_check_filter
 
96317
echo stderr:; cat "$at_stderr"
 
96318
echo stdout:; cat "$at_stdout"
 
96319
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96320
if $at_failed; then :
 
96321
  kill `cat savepid`
 
96322
fi
 
96323
$at_failed && at_fn_log_failure
 
96324
$at_traceon; }
 
96325
 
 
96326
fi
 
96327
$at_failed && at_fn_log_failure
 
96328
$at_traceon; }
 
96329
{ set +x
 
96330
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists b
 
96331
"
 
96332
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96333
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists b
 
96334
 
 
96335
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96336
at_status=$? at_failed=false
 
96337
$at_check_filter
 
96338
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96339
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
96340
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96341
if $at_failed; then :
 
96342
  cp pid savepid
 
96343
   { set +x
 
96344
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96345
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96346
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96347
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96348
at_status=$? at_failed=false
 
96349
$at_check_filter
 
96350
echo stderr:; cat "$at_stderr"
 
96351
echo stdout:; cat "$at_stdout"
 
96352
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96353
$at_failed && at_fn_log_failure
 
96354
$at_traceon; }
 
96355
 
 
96356
   { set +x
 
96357
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96358
     # in the normal case.  POSIX doesn't require fractional times to
 
96359
     # work, so this might not work.
 
96360
     sleep 0.1
 
96361
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96362
     # Then wait up to 10 seconds.
 
96363
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96364
       sleep 1
 
96365
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96366
     done
 
96367
     exit 1"
 
96368
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96369
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96370
     # in the normal case.  POSIX doesn't require fractional times to
 
96371
     # work, so this might not work.
 
96372
     sleep 0.1
 
96373
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96374
     # Then wait up to 10 seconds.
 
96375
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96376
       sleep 1
 
96377
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96378
     done
 
96379
     exit 1
 
96380
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96381
at_status=$? at_failed=false
 
96382
$at_check_filter
 
96383
echo stderr:; cat "$at_stderr"
 
96384
echo stdout:; cat "$at_stdout"
 
96385
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96386
if $at_failed; then :
 
96387
  kill `cat savepid`
 
96388
fi
 
96389
$at_failed && at_fn_log_failure
 
96390
$at_traceon; }
 
96391
 
 
96392
fi
 
96393
$at_failed && at_fn_log_failure
 
96394
$at_traceon; }
 
96395
 
 
96396
   { set +x
 
96397
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
96398
"
 
96399
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96400
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
96401
 
 
96402
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96403
at_status=$? at_failed=false
 
96404
$at_check_filter
 
96405
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96406
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
96407
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96408
if $at_failed; then :
 
96409
  cp pid savepid
 
96410
   { set +x
 
96411
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96412
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96413
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96414
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96415
at_status=$? at_failed=false
 
96416
$at_check_filter
 
96417
echo stderr:; cat "$at_stderr"
 
96418
echo stdout:; cat "$at_stdout"
 
96419
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96420
$at_failed && at_fn_log_failure
 
96421
$at_traceon; }
 
96422
 
 
96423
   { set +x
 
96424
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96425
     # in the normal case.  POSIX doesn't require fractional times to
 
96426
     # work, so this might not work.
 
96427
     sleep 0.1
 
96428
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96429
     # Then wait up to 10 seconds.
 
96430
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96431
       sleep 1
 
96432
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96433
     done
 
96434
     exit 1"
 
96435
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96436
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96437
     # in the normal case.  POSIX doesn't require fractional times to
 
96438
     # work, so this might not work.
 
96439
     sleep 0.1
 
96440
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96441
     # Then wait up to 10 seconds.
 
96442
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96443
       sleep 1
 
96444
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96445
     done
 
96446
     exit 1
 
96447
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96448
at_status=$? at_failed=false
 
96449
$at_check_filter
 
96450
echo stderr:; cat "$at_stderr"
 
96451
echo stdout:; cat "$at_stdout"
 
96452
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96453
if $at_failed; then :
 
96454
  kill `cat savepid`
 
96455
fi
 
96456
$at_failed && at_fn_log_failure
 
96457
$at_traceon; }
 
96458
 
 
96459
fi
 
96460
$at_failed && at_fn_log_failure
 
96461
$at_traceon; }
 
96462
 
 
96463
 
 
96464
      { set +x
 
96465
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
96466
"
 
96467
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96468
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
96469
 
 
96470
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96471
at_status=$? at_failed=false
 
96472
$at_check_filter
 
96473
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96474
echo >>"$at_stdout"; $as_echo "a
 
96475
" | \
 
96476
  $at_diff - "$at_stdout" || at_failed=:
 
96477
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96478
if $at_failed; then :
 
96479
  cp pid savepid
 
96480
   { set +x
 
96481
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96482
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96483
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96484
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96485
at_status=$? at_failed=false
 
96486
$at_check_filter
 
96487
echo stderr:; cat "$at_stderr"
 
96488
echo stdout:; cat "$at_stdout"
 
96489
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96490
$at_failed && at_fn_log_failure
 
96491
$at_traceon; }
 
96492
 
 
96493
   { set +x
 
96494
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96495
     # in the normal case.  POSIX doesn't require fractional times to
 
96496
     # work, so this might not work.
 
96497
     sleep 0.1
 
96498
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96499
     # Then wait up to 10 seconds.
 
96500
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96501
       sleep 1
 
96502
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96503
     done
 
96504
     exit 1"
 
96505
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96506
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96507
     # in the normal case.  POSIX doesn't require fractional times to
 
96508
     # work, so this might not work.
 
96509
     sleep 0.1
 
96510
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96511
     # Then wait up to 10 seconds.
 
96512
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96513
       sleep 1
 
96514
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96515
     done
 
96516
     exit 1
 
96517
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96518
at_status=$? at_failed=false
 
96519
$at_check_filter
 
96520
echo stderr:; cat "$at_stderr"
 
96521
echo stdout:; cat "$at_stdout"
 
96522
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96523
if $at_failed; then :
 
96524
  kill `cat savepid`
 
96525
fi
 
96526
$at_failed && at_fn_log_failure
 
96527
$at_traceon; }
 
96528
 
 
96529
fi
 
96530
$at_failed && at_fn_log_failure
 
96531
$at_traceon; }
 
96532
 
 
96533
 
 
96534
   # Check br-to-vlan, without --oneline.
 
96535
   { set +x
 
96536
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
96537
"
 
96538
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96539
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
96540
 
 
96541
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96542
at_status=$? at_failed=false
 
96543
$at_check_filter
 
96544
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96545
echo >>"$at_stdout"; $as_echo "0
 
96546
" | \
 
96547
  $at_diff - "$at_stdout" || at_failed=:
 
96548
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96549
if $at_failed; then :
 
96550
  cp pid savepid
 
96551
   { set +x
 
96552
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96553
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96554
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96555
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96556
at_status=$? at_failed=false
 
96557
$at_check_filter
 
96558
echo stderr:; cat "$at_stderr"
 
96559
echo stdout:; cat "$at_stdout"
 
96560
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96561
$at_failed && at_fn_log_failure
 
96562
$at_traceon; }
 
96563
 
 
96564
   { set +x
 
96565
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96566
     # in the normal case.  POSIX doesn't require fractional times to
 
96567
     # work, so this might not work.
 
96568
     sleep 0.1
 
96569
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96570
     # Then wait up to 10 seconds.
 
96571
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96572
       sleep 1
 
96573
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96574
     done
 
96575
     exit 1"
 
96576
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96577
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96578
     # in the normal case.  POSIX doesn't require fractional times to
 
96579
     # work, so this might not work.
 
96580
     sleep 0.1
 
96581
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96582
     # Then wait up to 10 seconds.
 
96583
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96584
       sleep 1
 
96585
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96586
     done
 
96587
     exit 1
 
96588
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96589
at_status=$? at_failed=false
 
96590
$at_check_filter
 
96591
echo stderr:; cat "$at_stderr"
 
96592
echo stdout:; cat "$at_stdout"
 
96593
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96594
if $at_failed; then :
 
96595
  kill `cat savepid`
 
96596
fi
 
96597
$at_failed && at_fn_log_failure
 
96598
$at_traceon; }
 
96599
 
 
96600
fi
 
96601
$at_failed && at_fn_log_failure
 
96602
$at_traceon; }
 
96603
 
 
96604
   # Check br-to-vlan, with --oneline.
 
96605
   # (This particular test is interesting with --oneline because it returns
 
96606
   # an integer instead of a string and that can cause type mismatches inside
 
96607
   # python if not done carefully.)
 
96608
   { set +x
 
96609
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
96610
"
 
96611
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96612
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
96613
 
 
96614
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96615
at_status=$? at_failed=false
 
96616
$at_check_filter
 
96617
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96618
echo >>"$at_stdout"; $as_echo "0
 
96619
" | \
 
96620
  $at_diff - "$at_stdout" || at_failed=:
 
96621
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96622
if $at_failed; then :
 
96623
  cp pid savepid
 
96624
   { set +x
 
96625
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96626
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96627
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96628
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96629
at_status=$? at_failed=false
 
96630
$at_check_filter
 
96631
echo stderr:; cat "$at_stderr"
 
96632
echo stdout:; cat "$at_stdout"
 
96633
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96634
$at_failed && at_fn_log_failure
 
96635
$at_traceon; }
 
96636
 
 
96637
   { set +x
 
96638
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96639
     # in the normal case.  POSIX doesn't require fractional times to
 
96640
     # work, so this might not work.
 
96641
     sleep 0.1
 
96642
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96643
     # Then wait up to 10 seconds.
 
96644
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96645
       sleep 1
 
96646
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96647
     done
 
96648
     exit 1"
 
96649
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96650
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96651
     # in the normal case.  POSIX doesn't require fractional times to
 
96652
     # work, so this might not work.
 
96653
     sleep 0.1
 
96654
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96655
     # Then wait up to 10 seconds.
 
96656
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96657
       sleep 1
 
96658
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96659
     done
 
96660
     exit 1
 
96661
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96662
at_status=$? at_failed=false
 
96663
$at_check_filter
 
96664
echo stderr:; cat "$at_stderr"
 
96665
echo stdout:; cat "$at_stdout"
 
96666
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96667
if $at_failed; then :
 
96668
  kill `cat savepid`
 
96669
fi
 
96670
$at_failed && at_fn_log_failure
 
96671
$at_traceon; }
 
96672
 
 
96673
fi
 
96674
$at_failed && at_fn_log_failure
 
96675
$at_traceon; }
 
96676
 
 
96677
 
 
96678
   # Check multiple queries in a single run.
 
96679
   { set +x
 
96680
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a"
 
96681
at_fn_check_prepare_trace "ovs-vsctl.at:296"
 
96682
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a
 
96683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96684
at_status=$? at_failed=false
 
96685
$at_check_filter
 
96686
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96687
echo >>"$at_stdout"; $as_echo "a
 
96688
0
 
96689
" | \
 
96690
  $at_diff - "$at_stdout" || at_failed=:
 
96691
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96692
if $at_failed; then :
 
96693
  cp pid savepid
 
96694
   { set +x
 
96695
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96696
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96697
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96698
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96699
at_status=$? at_failed=false
 
96700
$at_check_filter
 
96701
echo stderr:; cat "$at_stderr"
 
96702
echo stdout:; cat "$at_stdout"
 
96703
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96704
$at_failed && at_fn_log_failure
 
96705
$at_traceon; }
 
96706
 
 
96707
   { set +x
 
96708
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96709
     # in the normal case.  POSIX doesn't require fractional times to
 
96710
     # work, so this might not work.
 
96711
     sleep 0.1
 
96712
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96713
     # Then wait up to 10 seconds.
 
96714
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96715
       sleep 1
 
96716
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96717
     done
 
96718
     exit 1"
 
96719
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96720
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96721
     # in the normal case.  POSIX doesn't require fractional times to
 
96722
     # work, so this might not work.
 
96723
     sleep 0.1
 
96724
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96725
     # Then wait up to 10 seconds.
 
96726
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96727
       sleep 1
 
96728
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96729
     done
 
96730
     exit 1
 
96731
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96732
at_status=$? at_failed=false
 
96733
$at_check_filter
 
96734
echo stderr:; cat "$at_stderr"
 
96735
echo stdout:; cat "$at_stdout"
 
96736
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96737
if $at_failed; then :
 
96738
  kill `cat savepid`
 
96739
fi
 
96740
$at_failed && at_fn_log_failure
 
96741
$at_traceon; }
 
96742
 
 
96743
fi
 
96744
$at_failed && at_fn_log_failure
 
96745
$at_traceon; }
 
96746
{ set +x
 
96747
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent b
 
96748
"
 
96749
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96750
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent b
 
96751
 
 
96752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96753
at_status=$? at_failed=false
 
96754
$at_check_filter
 
96755
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96756
echo >>"$at_stdout"; $as_echo "b
 
96757
" | \
 
96758
  $at_diff - "$at_stdout" || at_failed=:
 
96759
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96760
if $at_failed; then :
 
96761
  cp pid savepid
 
96762
   { set +x
 
96763
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96764
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96765
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96766
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96767
at_status=$? at_failed=false
 
96768
$at_check_filter
 
96769
echo stderr:; cat "$at_stderr"
 
96770
echo stdout:; cat "$at_stdout"
 
96771
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96772
$at_failed && at_fn_log_failure
 
96773
$at_traceon; }
 
96774
 
 
96775
   { set +x
 
96776
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96777
     # in the normal case.  POSIX doesn't require fractional times to
 
96778
     # work, so this might not work.
 
96779
     sleep 0.1
 
96780
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96781
     # Then wait up to 10 seconds.
 
96782
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96783
       sleep 1
 
96784
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96785
     done
 
96786
     exit 1"
 
96787
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96788
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96789
     # in the normal case.  POSIX doesn't require fractional times to
 
96790
     # work, so this might not work.
 
96791
     sleep 0.1
 
96792
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96793
     # Then wait up to 10 seconds.
 
96794
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96795
       sleep 1
 
96796
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96797
     done
 
96798
     exit 1
 
96799
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96800
at_status=$? at_failed=false
 
96801
$at_check_filter
 
96802
echo stderr:; cat "$at_stderr"
 
96803
echo stdout:; cat "$at_stdout"
 
96804
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96805
if $at_failed; then :
 
96806
  kill `cat savepid`
 
96807
fi
 
96808
$at_failed && at_fn_log_failure
 
96809
$at_traceon; }
 
96810
 
 
96811
fi
 
96812
$at_failed && at_fn_log_failure
 
96813
$at_traceon; }
 
96814
 
 
96815
 
 
96816
   # Check br-to-vlan, without --oneline.
 
96817
   { set +x
 
96818
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan b
 
96819
"
 
96820
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96821
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan b
 
96822
 
 
96823
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96824
at_status=$? at_failed=false
 
96825
$at_check_filter
 
96826
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96827
echo >>"$at_stdout"; $as_echo "0
 
96828
" | \
 
96829
  $at_diff - "$at_stdout" || at_failed=:
 
96830
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96831
if $at_failed; then :
 
96832
  cp pid savepid
 
96833
   { set +x
 
96834
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96835
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96836
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96837
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96838
at_status=$? at_failed=false
 
96839
$at_check_filter
 
96840
echo stderr:; cat "$at_stderr"
 
96841
echo stdout:; cat "$at_stdout"
 
96842
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96843
$at_failed && at_fn_log_failure
 
96844
$at_traceon; }
 
96845
 
 
96846
   { set +x
 
96847
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96848
     # in the normal case.  POSIX doesn't require fractional times to
 
96849
     # work, so this might not work.
 
96850
     sleep 0.1
 
96851
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96852
     # Then wait up to 10 seconds.
 
96853
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96854
       sleep 1
 
96855
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96856
     done
 
96857
     exit 1"
 
96858
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96859
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96860
     # in the normal case.  POSIX doesn't require fractional times to
 
96861
     # work, so this might not work.
 
96862
     sleep 0.1
 
96863
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96864
     # Then wait up to 10 seconds.
 
96865
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96866
       sleep 1
 
96867
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96868
     done
 
96869
     exit 1
 
96870
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96871
at_status=$? at_failed=false
 
96872
$at_check_filter
 
96873
echo stderr:; cat "$at_stderr"
 
96874
echo stdout:; cat "$at_stdout"
 
96875
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96876
if $at_failed; then :
 
96877
  kill `cat savepid`
 
96878
fi
 
96879
$at_failed && at_fn_log_failure
 
96880
$at_traceon; }
 
96881
 
 
96882
fi
 
96883
$at_failed && at_fn_log_failure
 
96884
$at_traceon; }
 
96885
 
 
96886
   # Check br-to-vlan, with --oneline.
 
96887
   # (This particular test is interesting with --oneline because it returns
 
96888
   # an integer instead of a string and that can cause type mismatches inside
 
96889
   # python if not done carefully.)
 
96890
   { set +x
 
96891
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan b
 
96892
"
 
96893
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:296"
 
96894
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan b
 
96895
 
 
96896
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96897
at_status=$? at_failed=false
 
96898
$at_check_filter
 
96899
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96900
echo >>"$at_stdout"; $as_echo "0
 
96901
" | \
 
96902
  $at_diff - "$at_stdout" || at_failed=:
 
96903
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96904
if $at_failed; then :
 
96905
  cp pid savepid
 
96906
   { set +x
 
96907
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96908
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96909
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96910
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96911
at_status=$? at_failed=false
 
96912
$at_check_filter
 
96913
echo stderr:; cat "$at_stderr"
 
96914
echo stdout:; cat "$at_stdout"
 
96915
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96916
$at_failed && at_fn_log_failure
 
96917
$at_traceon; }
 
96918
 
 
96919
   { set +x
 
96920
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96921
     # in the normal case.  POSIX doesn't require fractional times to
 
96922
     # work, so this might not work.
 
96923
     sleep 0.1
 
96924
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96925
     # Then wait up to 10 seconds.
 
96926
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96927
       sleep 1
 
96928
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96929
     done
 
96930
     exit 1"
 
96931
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
96932
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
96933
     # in the normal case.  POSIX doesn't require fractional times to
 
96934
     # work, so this might not work.
 
96935
     sleep 0.1
 
96936
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
96937
     # Then wait up to 10 seconds.
 
96938
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96939
       sleep 1
 
96940
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
96941
     done
 
96942
     exit 1
 
96943
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96944
at_status=$? at_failed=false
 
96945
$at_check_filter
 
96946
echo stderr:; cat "$at_stderr"
 
96947
echo stdout:; cat "$at_stdout"
 
96948
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96949
if $at_failed; then :
 
96950
  kill `cat savepid`
 
96951
fi
 
96952
$at_failed && at_fn_log_failure
 
96953
$at_traceon; }
 
96954
 
 
96955
fi
 
96956
$at_failed && at_fn_log_failure
 
96957
$at_traceon; }
 
96958
 
 
96959
 
 
96960
   # Check multiple queries in a single run.
 
96961
   { set +x
 
96962
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent b -- br-to-vlan b"
 
96963
at_fn_check_prepare_trace "ovs-vsctl.at:296"
 
96964
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent b -- br-to-vlan b
 
96965
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96966
at_status=$? at_failed=false
 
96967
$at_check_filter
 
96968
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
96969
echo >>"$at_stdout"; $as_echo "b
 
96970
0
 
96971
" | \
 
96972
  $at_diff - "$at_stdout" || at_failed=:
 
96973
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96974
if $at_failed; then :
 
96975
  cp pid savepid
 
96976
   { set +x
 
96977
$as_echo "$at_srcdir/ovs-vsctl.at:296: ovs-appctl -t \$PWD/unixctl -e exit"
 
96978
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:296"
 
96979
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
96980
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
96981
at_status=$? at_failed=false
 
96982
$at_check_filter
 
96983
echo stderr:; cat "$at_stderr"
 
96984
echo stdout:; cat "$at_stdout"
 
96985
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
96986
$at_failed && at_fn_log_failure
 
96987
$at_traceon; }
 
96988
 
 
96989
   { set +x
 
96990
$as_echo "$at_srcdir/ovs-vsctl.at:296: # First try a quick sleep, so that the test completes very quickly
 
96991
     # in the normal case.  POSIX doesn't require fractional times to
 
96992
     # work, so this might not work.
 
96993
     sleep 0.1
 
96994
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96995
     # Then wait up to 10 seconds.
 
96996
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
96997
       sleep 1
 
96998
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
96999
     done
 
97000
     exit 1"
 
97001
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:296"
 
97002
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97003
     # in the normal case.  POSIX doesn't require fractional times to
 
97004
     # work, so this might not work.
 
97005
     sleep 0.1
 
97006
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97007
     # Then wait up to 10 seconds.
 
97008
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97009
       sleep 1
 
97010
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97011
     done
 
97012
     exit 1
 
97013
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97014
at_status=$? at_failed=false
 
97015
$at_check_filter
 
97016
echo stderr:; cat "$at_stderr"
 
97017
echo stdout:; cat "$at_stdout"
 
97018
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:296"
 
97019
if $at_failed; then :
 
97020
  kill `cat savepid`
 
97021
fi
 
97022
$at_failed && at_fn_log_failure
 
97023
$at_traceon; }
 
97024
 
 
97025
fi
 
97026
$at_failed && at_fn_log_failure
 
97027
$at_traceon; }
 
97028
 
 
97029
   { set +x
 
97030
$as_echo "$at_srcdir/ovs-vsctl.at:297: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
97031
"
 
97032
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:297"
 
97033
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
97034
 
 
97035
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97036
at_status=$? at_failed=false
 
97037
$at_check_filter
 
97038
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97039
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
97040
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97041
if $at_failed; then :
 
97042
  cp pid savepid
 
97043
   { set +x
 
97044
$as_echo "$at_srcdir/ovs-vsctl.at:297: ovs-appctl -t \$PWD/unixctl -e exit"
 
97045
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:297"
 
97046
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97047
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97048
at_status=$? at_failed=false
 
97049
$at_check_filter
 
97050
echo stderr:; cat "$at_stderr"
 
97051
echo stdout:; cat "$at_stdout"
 
97052
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97053
$at_failed && at_fn_log_failure
 
97054
$at_traceon; }
 
97055
 
 
97056
   { set +x
 
97057
$as_echo "$at_srcdir/ovs-vsctl.at:297: # First try a quick sleep, so that the test completes very quickly
 
97058
     # in the normal case.  POSIX doesn't require fractional times to
 
97059
     # work, so this might not work.
 
97060
     sleep 0.1
 
97061
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97062
     # Then wait up to 10 seconds.
 
97063
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97064
       sleep 1
 
97065
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97066
     done
 
97067
     exit 1"
 
97068
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:297"
 
97069
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97070
     # in the normal case.  POSIX doesn't require fractional times to
 
97071
     # work, so this might not work.
 
97072
     sleep 0.1
 
97073
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97074
     # Then wait up to 10 seconds.
 
97075
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97076
       sleep 1
 
97077
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97078
     done
 
97079
     exit 1
 
97080
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97081
at_status=$? at_failed=false
 
97082
$at_check_filter
 
97083
echo stderr:; cat "$at_stderr"
 
97084
echo stdout:; cat "$at_stdout"
 
97085
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97086
if $at_failed; then :
 
97087
  kill `cat savepid`
 
97088
fi
 
97089
$at_failed && at_fn_log_failure
 
97090
$at_traceon; }
 
97091
 
 
97092
fi
 
97093
$at_failed && at_fn_log_failure
 
97094
$at_traceon; }
 
97095
 
 
97096
 
 
97097
      { set +x
 
97098
$as_echo "$at_srcdir/ovs-vsctl.at:297: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
97099
"
 
97100
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:297"
 
97101
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
97102
 
 
97103
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97104
at_status=$? at_failed=false
 
97105
$at_check_filter
 
97106
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97107
echo >>"$at_stdout"; $as_echo "
 
97108
" | \
 
97109
  $at_diff - "$at_stdout" || at_failed=:
 
97110
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97111
if $at_failed; then :
 
97112
  cp pid savepid
 
97113
   { set +x
 
97114
$as_echo "$at_srcdir/ovs-vsctl.at:297: ovs-appctl -t \$PWD/unixctl -e exit"
 
97115
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:297"
 
97116
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97117
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97118
at_status=$? at_failed=false
 
97119
$at_check_filter
 
97120
echo stderr:; cat "$at_stderr"
 
97121
echo stdout:; cat "$at_stdout"
 
97122
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97123
$at_failed && at_fn_log_failure
 
97124
$at_traceon; }
 
97125
 
 
97126
   { set +x
 
97127
$as_echo "$at_srcdir/ovs-vsctl.at:297: # First try a quick sleep, so that the test completes very quickly
 
97128
     # in the normal case.  POSIX doesn't require fractional times to
 
97129
     # work, so this might not work.
 
97130
     sleep 0.1
 
97131
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97132
     # Then wait up to 10 seconds.
 
97133
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97134
       sleep 1
 
97135
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97136
     done
 
97137
     exit 1"
 
97138
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:297"
 
97139
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97140
     # in the normal case.  POSIX doesn't require fractional times to
 
97141
     # work, so this might not work.
 
97142
     sleep 0.1
 
97143
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97144
     # Then wait up to 10 seconds.
 
97145
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97146
       sleep 1
 
97147
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97148
     done
 
97149
     exit 1
 
97150
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97151
at_status=$? at_failed=false
 
97152
$at_check_filter
 
97153
echo stderr:; cat "$at_stderr"
 
97154
echo stdout:; cat "$at_stdout"
 
97155
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97156
if $at_failed; then :
 
97157
  kill `cat savepid`
 
97158
fi
 
97159
$at_failed && at_fn_log_failure
 
97160
$at_traceon; }
 
97161
 
 
97162
fi
 
97163
$at_failed && at_fn_log_failure
 
97164
$at_traceon; }
 
97165
 
 
97166
   { set +x
 
97167
$as_echo "$at_srcdir/ovs-vsctl.at:297: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
97168
"
 
97169
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:297"
 
97170
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
97171
 
 
97172
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97173
at_status=$? at_failed=false
 
97174
$at_check_filter
 
97175
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named a
 
97176
" | \
 
97177
  $at_diff - "$at_stderr" || at_failed=:
 
97178
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
97179
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97180
if $at_failed; then :
 
97181
  cp pid savepid
 
97182
   { set +x
 
97183
$as_echo "$at_srcdir/ovs-vsctl.at:297: ovs-appctl -t \$PWD/unixctl -e exit"
 
97184
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:297"
 
97185
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97186
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97187
at_status=$? at_failed=false
 
97188
$at_check_filter
 
97189
echo stderr:; cat "$at_stderr"
 
97190
echo stdout:; cat "$at_stdout"
 
97191
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97192
$at_failed && at_fn_log_failure
 
97193
$at_traceon; }
 
97194
 
 
97195
   { set +x
 
97196
$as_echo "$at_srcdir/ovs-vsctl.at:297: # First try a quick sleep, so that the test completes very quickly
 
97197
     # in the normal case.  POSIX doesn't require fractional times to
 
97198
     # work, so this might not work.
 
97199
     sleep 0.1
 
97200
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97201
     # Then wait up to 10 seconds.
 
97202
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97203
       sleep 1
 
97204
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97205
     done
 
97206
     exit 1"
 
97207
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:297"
 
97208
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97209
     # in the normal case.  POSIX doesn't require fractional times to
 
97210
     # work, so this might not work.
 
97211
     sleep 0.1
 
97212
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97213
     # Then wait up to 10 seconds.
 
97214
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97215
       sleep 1
 
97216
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97217
     done
 
97218
     exit 1
 
97219
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97220
at_status=$? at_failed=false
 
97221
$at_check_filter
 
97222
echo stderr:; cat "$at_stderr"
 
97223
echo stdout:; cat "$at_stdout"
 
97224
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:297"
 
97225
if $at_failed; then :
 
97226
  kill `cat savepid`
 
97227
fi
 
97228
$at_failed && at_fn_log_failure
 
97229
$at_traceon; }
 
97230
 
 
97231
fi
 
97232
$at_failed && at_fn_log_failure
 
97233
$at_traceon; }
 
97234
 
 
97235
 
 
97236
{ set +x
 
97237
$as_echo "$at_srcdir/ovs-vsctl.at:298: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
97238
"
 
97239
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:298"
 
97240
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
97241
 
 
97242
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97243
at_status=$? at_failed=false
 
97244
$at_check_filter
 
97245
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97246
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
97247
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:298"
 
97248
if $at_failed; then :
 
97249
  cp pid savepid
 
97250
   { set +x
 
97251
$as_echo "$at_srcdir/ovs-vsctl.at:298: ovs-appctl -t \$PWD/unixctl -e exit"
 
97252
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:298"
 
97253
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97254
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97255
at_status=$? at_failed=false
 
97256
$at_check_filter
 
97257
echo stderr:; cat "$at_stderr"
 
97258
echo stdout:; cat "$at_stdout"
 
97259
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:298"
 
97260
$at_failed && at_fn_log_failure
 
97261
$at_traceon; }
 
97262
 
 
97263
   { set +x
 
97264
$as_echo "$at_srcdir/ovs-vsctl.at:298: # First try a quick sleep, so that the test completes very quickly
 
97265
     # in the normal case.  POSIX doesn't require fractional times to
 
97266
     # work, so this might not work.
 
97267
     sleep 0.1
 
97268
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97269
     # Then wait up to 10 seconds.
 
97270
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97271
       sleep 1
 
97272
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97273
     done
 
97274
     exit 1"
 
97275
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:298"
 
97276
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97277
     # in the normal case.  POSIX doesn't require fractional times to
 
97278
     # work, so this might not work.
 
97279
     sleep 0.1
 
97280
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97281
     # Then wait up to 10 seconds.
 
97282
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97283
       sleep 1
 
97284
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97285
     done
 
97286
     exit 1
 
97287
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97288
at_status=$? at_failed=false
 
97289
$at_check_filter
 
97290
echo stderr:; cat "$at_stderr"
 
97291
echo stdout:; cat "$at_stdout"
 
97292
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:298"
 
97293
if $at_failed; then :
 
97294
  kill `cat savepid`
 
97295
fi
 
97296
$at_failed && at_fn_log_failure
 
97297
$at_traceon; }
 
97298
 
 
97299
fi
 
97300
$at_failed && at_fn_log_failure
 
97301
$at_traceon; }
 
97302
 
 
97303
   { set +x
 
97304
$as_echo "$at_srcdir/ovs-vsctl.at:298: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
97305
"
 
97306
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:298"
 
97307
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
97308
 
 
97309
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97310
at_status=$? at_failed=false
 
97311
$at_check_filter
 
97312
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named a
 
97313
" | \
 
97314
  $at_diff - "$at_stderr" || at_failed=:
 
97315
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
97316
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:298"
 
97317
if $at_failed; then :
 
97318
  cp pid savepid
 
97319
   { set +x
 
97320
$as_echo "$at_srcdir/ovs-vsctl.at:298: ovs-appctl -t \$PWD/unixctl -e exit"
 
97321
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:298"
 
97322
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97323
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97324
at_status=$? at_failed=false
 
97325
$at_check_filter
 
97326
echo stderr:; cat "$at_stderr"
 
97327
echo stdout:; cat "$at_stdout"
 
97328
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:298"
 
97329
$at_failed && at_fn_log_failure
 
97330
$at_traceon; }
 
97331
 
 
97332
   { set +x
 
97333
$as_echo "$at_srcdir/ovs-vsctl.at:298: # First try a quick sleep, so that the test completes very quickly
 
97334
     # in the normal case.  POSIX doesn't require fractional times to
 
97335
     # work, so this might not work.
 
97336
     sleep 0.1
 
97337
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97338
     # Then wait up to 10 seconds.
 
97339
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97340
       sleep 1
 
97341
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97342
     done
 
97343
     exit 1"
 
97344
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:298"
 
97345
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97346
     # in the normal case.  POSIX doesn't require fractional times to
 
97347
     # work, so this might not work.
 
97348
     sleep 0.1
 
97349
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97350
     # Then wait up to 10 seconds.
 
97351
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97352
       sleep 1
 
97353
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97354
     done
 
97355
     exit 1
 
97356
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97357
at_status=$? at_failed=false
 
97358
$at_check_filter
 
97359
echo stderr:; cat "$at_stderr"
 
97360
echo stdout:; cat "$at_stdout"
 
97361
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:298"
 
97362
if $at_failed; then :
 
97363
  kill `cat savepid`
 
97364
fi
 
97365
$at_failed && at_fn_log_failure
 
97366
$at_traceon; }
 
97367
 
 
97368
fi
 
97369
$at_failed && at_fn_log_failure
 
97370
$at_traceon; }
 
97371
 
 
97372
 
 
97373
   { set +x
 
97374
$as_echo "$at_srcdir/ovs-vsctl.at:299: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports b
 
97375
"
 
97376
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:299"
 
97377
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports b
 
97378
 
 
97379
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97380
at_status=$? at_failed=false
 
97381
$at_check_filter
 
97382
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97383
echo >>"$at_stdout"; $as_echo "b1
 
97384
" | \
 
97385
  $at_diff - "$at_stdout" || at_failed=:
 
97386
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97387
if $at_failed; then :
 
97388
  cp pid savepid
 
97389
   { set +x
 
97390
$as_echo "$at_srcdir/ovs-vsctl.at:299: ovs-appctl -t \$PWD/unixctl -e exit"
 
97391
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:299"
 
97392
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97394
at_status=$? at_failed=false
 
97395
$at_check_filter
 
97396
echo stderr:; cat "$at_stderr"
 
97397
echo stdout:; cat "$at_stdout"
 
97398
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97399
$at_failed && at_fn_log_failure
 
97400
$at_traceon; }
 
97401
 
 
97402
   { set +x
 
97403
$as_echo "$at_srcdir/ovs-vsctl.at:299: # First try a quick sleep, so that the test completes very quickly
 
97404
     # in the normal case.  POSIX doesn't require fractional times to
 
97405
     # work, so this might not work.
 
97406
     sleep 0.1
 
97407
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97408
     # Then wait up to 10 seconds.
 
97409
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97410
       sleep 1
 
97411
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97412
     done
 
97413
     exit 1"
 
97414
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:299"
 
97415
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97416
     # in the normal case.  POSIX doesn't require fractional times to
 
97417
     # work, so this might not work.
 
97418
     sleep 0.1
 
97419
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97420
     # Then wait up to 10 seconds.
 
97421
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97422
       sleep 1
 
97423
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97424
     done
 
97425
     exit 1
 
97426
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97427
at_status=$? at_failed=false
 
97428
$at_check_filter
 
97429
echo stderr:; cat "$at_stderr"
 
97430
echo stdout:; cat "$at_stdout"
 
97431
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97432
if $at_failed; then :
 
97433
  kill `cat savepid`
 
97434
fi
 
97435
$at_failed && at_fn_log_failure
 
97436
$at_traceon; }
 
97437
 
 
97438
fi
 
97439
$at_failed && at_fn_log_failure
 
97440
$at_traceon; }
 
97441
 
 
97442
 
 
97443
      { set +x
 
97444
$as_echo "$at_srcdir/ovs-vsctl.at:299: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports b
 
97445
"
 
97446
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:299"
 
97447
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports b
 
97448
 
 
97449
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97450
at_status=$? at_failed=false
 
97451
$at_check_filter
 
97452
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97453
echo >>"$at_stdout"; $as_echo "b1
 
97454
" | \
 
97455
  $at_diff - "$at_stdout" || at_failed=:
 
97456
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97457
if $at_failed; then :
 
97458
  cp pid savepid
 
97459
   { set +x
 
97460
$as_echo "$at_srcdir/ovs-vsctl.at:299: ovs-appctl -t \$PWD/unixctl -e exit"
 
97461
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:299"
 
97462
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97463
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97464
at_status=$? at_failed=false
 
97465
$at_check_filter
 
97466
echo stderr:; cat "$at_stderr"
 
97467
echo stdout:; cat "$at_stdout"
 
97468
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97469
$at_failed && at_fn_log_failure
 
97470
$at_traceon; }
 
97471
 
 
97472
   { set +x
 
97473
$as_echo "$at_srcdir/ovs-vsctl.at:299: # First try a quick sleep, so that the test completes very quickly
 
97474
     # in the normal case.  POSIX doesn't require fractional times to
 
97475
     # work, so this might not work.
 
97476
     sleep 0.1
 
97477
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97478
     # Then wait up to 10 seconds.
 
97479
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97480
       sleep 1
 
97481
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97482
     done
 
97483
     exit 1"
 
97484
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:299"
 
97485
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97486
     # in the normal case.  POSIX doesn't require fractional times to
 
97487
     # work, so this might not work.
 
97488
     sleep 0.1
 
97489
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97490
     # Then wait up to 10 seconds.
 
97491
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97492
       sleep 1
 
97493
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97494
     done
 
97495
     exit 1
 
97496
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97497
at_status=$? at_failed=false
 
97498
$at_check_filter
 
97499
echo stderr:; cat "$at_stderr"
 
97500
echo stdout:; cat "$at_stdout"
 
97501
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97502
if $at_failed; then :
 
97503
  kill `cat savepid`
 
97504
fi
 
97505
$at_failed && at_fn_log_failure
 
97506
$at_traceon; }
 
97507
 
 
97508
fi
 
97509
$at_failed && at_fn_log_failure
 
97510
$at_traceon; }
 
97511
 
 
97512
   { set +x
 
97513
$as_echo "$at_srcdir/ovs-vsctl.at:299: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b
 
97514
"
 
97515
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:299"
 
97516
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b
 
97517
 
 
97518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97519
at_status=$? at_failed=false
 
97520
$at_check_filter
 
97521
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named b
 
97522
" | \
 
97523
  $at_diff - "$at_stderr" || at_failed=:
 
97524
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
97525
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97526
if $at_failed; then :
 
97527
  cp pid savepid
 
97528
   { set +x
 
97529
$as_echo "$at_srcdir/ovs-vsctl.at:299: ovs-appctl -t \$PWD/unixctl -e exit"
 
97530
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:299"
 
97531
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97532
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97533
at_status=$? at_failed=false
 
97534
$at_check_filter
 
97535
echo stderr:; cat "$at_stderr"
 
97536
echo stdout:; cat "$at_stdout"
 
97537
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97538
$at_failed && at_fn_log_failure
 
97539
$at_traceon; }
 
97540
 
 
97541
   { set +x
 
97542
$as_echo "$at_srcdir/ovs-vsctl.at:299: # First try a quick sleep, so that the test completes very quickly
 
97543
     # in the normal case.  POSIX doesn't require fractional times to
 
97544
     # work, so this might not work.
 
97545
     sleep 0.1
 
97546
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97547
     # Then wait up to 10 seconds.
 
97548
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97549
       sleep 1
 
97550
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97551
     done
 
97552
     exit 1"
 
97553
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:299"
 
97554
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97555
     # in the normal case.  POSIX doesn't require fractional times to
 
97556
     # work, so this might not work.
 
97557
     sleep 0.1
 
97558
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97559
     # Then wait up to 10 seconds.
 
97560
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97561
       sleep 1
 
97562
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97563
     done
 
97564
     exit 1
 
97565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97566
at_status=$? at_failed=false
 
97567
$at_check_filter
 
97568
echo stderr:; cat "$at_stderr"
 
97569
echo stdout:; cat "$at_stdout"
 
97570
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97571
if $at_failed; then :
 
97572
  kill `cat savepid`
 
97573
fi
 
97574
$at_failed && at_fn_log_failure
 
97575
$at_traceon; }
 
97576
 
 
97577
fi
 
97578
$at_failed && at_fn_log_failure
 
97579
$at_traceon; }
 
97580
 
 
97581
   { set +x
 
97582
$as_echo "$at_srcdir/ovs-vsctl.at:299: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b1
 
97583
"
 
97584
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:299"
 
97585
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br b1
 
97586
 
 
97587
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97588
at_status=$? at_failed=false
 
97589
$at_check_filter
 
97590
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97591
echo >>"$at_stdout"; $as_echo "b
 
97592
" | \
 
97593
  $at_diff - "$at_stdout" || at_failed=:
 
97594
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97595
if $at_failed; then :
 
97596
  cp pid savepid
 
97597
   { set +x
 
97598
$as_echo "$at_srcdir/ovs-vsctl.at:299: ovs-appctl -t \$PWD/unixctl -e exit"
 
97599
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:299"
 
97600
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97601
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97602
at_status=$? at_failed=false
 
97603
$at_check_filter
 
97604
echo stderr:; cat "$at_stderr"
 
97605
echo stdout:; cat "$at_stdout"
 
97606
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97607
$at_failed && at_fn_log_failure
 
97608
$at_traceon; }
 
97609
 
 
97610
   { set +x
 
97611
$as_echo "$at_srcdir/ovs-vsctl.at:299: # First try a quick sleep, so that the test completes very quickly
 
97612
     # in the normal case.  POSIX doesn't require fractional times to
 
97613
     # work, so this might not work.
 
97614
     sleep 0.1
 
97615
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97616
     # Then wait up to 10 seconds.
 
97617
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97618
       sleep 1
 
97619
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97620
     done
 
97621
     exit 1"
 
97622
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:299"
 
97623
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97624
     # in the normal case.  POSIX doesn't require fractional times to
 
97625
     # work, so this might not work.
 
97626
     sleep 0.1
 
97627
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97628
     # Then wait up to 10 seconds.
 
97629
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97630
       sleep 1
 
97631
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97632
     done
 
97633
     exit 1
 
97634
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97635
at_status=$? at_failed=false
 
97636
$at_check_filter
 
97637
echo stderr:; cat "$at_stderr"
 
97638
echo stdout:; cat "$at_stdout"
 
97639
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:299"
 
97640
if $at_failed; then :
 
97641
  kill `cat savepid`
 
97642
fi
 
97643
$at_failed && at_fn_log_failure
 
97644
$at_traceon; }
 
97645
 
 
97646
fi
 
97647
$at_failed && at_fn_log_failure
 
97648
$at_traceon; }
 
97649
 
 
97650
{ set +x
 
97651
$as_echo "$at_srcdir/ovs-vsctl.at:300: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces b
 
97652
"
 
97653
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:300"
 
97654
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces b
 
97655
 
 
97656
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97657
at_status=$? at_failed=false
 
97658
$at_check_filter
 
97659
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97660
echo >>"$at_stdout"; $as_echo "b1
 
97661
" | \
 
97662
  $at_diff - "$at_stdout" || at_failed=:
 
97663
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97664
if $at_failed; then :
 
97665
  cp pid savepid
 
97666
   { set +x
 
97667
$as_echo "$at_srcdir/ovs-vsctl.at:300: ovs-appctl -t \$PWD/unixctl -e exit"
 
97668
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:300"
 
97669
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97670
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97671
at_status=$? at_failed=false
 
97672
$at_check_filter
 
97673
echo stderr:; cat "$at_stderr"
 
97674
echo stdout:; cat "$at_stdout"
 
97675
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97676
$at_failed && at_fn_log_failure
 
97677
$at_traceon; }
 
97678
 
 
97679
   { set +x
 
97680
$as_echo "$at_srcdir/ovs-vsctl.at:300: # First try a quick sleep, so that the test completes very quickly
 
97681
     # in the normal case.  POSIX doesn't require fractional times to
 
97682
     # work, so this might not work.
 
97683
     sleep 0.1
 
97684
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97685
     # Then wait up to 10 seconds.
 
97686
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97687
       sleep 1
 
97688
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97689
     done
 
97690
     exit 1"
 
97691
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:300"
 
97692
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97693
     # in the normal case.  POSIX doesn't require fractional times to
 
97694
     # work, so this might not work.
 
97695
     sleep 0.1
 
97696
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97697
     # Then wait up to 10 seconds.
 
97698
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97699
       sleep 1
 
97700
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97701
     done
 
97702
     exit 1
 
97703
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97704
at_status=$? at_failed=false
 
97705
$at_check_filter
 
97706
echo stderr:; cat "$at_stderr"
 
97707
echo stdout:; cat "$at_stdout"
 
97708
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97709
if $at_failed; then :
 
97710
  kill `cat savepid`
 
97711
fi
 
97712
$at_failed && at_fn_log_failure
 
97713
$at_traceon; }
 
97714
 
 
97715
fi
 
97716
$at_failed && at_fn_log_failure
 
97717
$at_traceon; }
 
97718
 
 
97719
   { set +x
 
97720
$as_echo "$at_srcdir/ovs-vsctl.at:300: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b
 
97721
"
 
97722
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:300"
 
97723
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b
 
97724
 
 
97725
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97726
at_status=$? at_failed=false
 
97727
$at_check_filter
 
97728
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named b
 
97729
" | \
 
97730
  $at_diff - "$at_stderr" || at_failed=:
 
97731
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
97732
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97733
if $at_failed; then :
 
97734
  cp pid savepid
 
97735
   { set +x
 
97736
$as_echo "$at_srcdir/ovs-vsctl.at:300: ovs-appctl -t \$PWD/unixctl -e exit"
 
97737
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:300"
 
97738
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97739
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97740
at_status=$? at_failed=false
 
97741
$at_check_filter
 
97742
echo stderr:; cat "$at_stderr"
 
97743
echo stdout:; cat "$at_stdout"
 
97744
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97745
$at_failed && at_fn_log_failure
 
97746
$at_traceon; }
 
97747
 
 
97748
   { set +x
 
97749
$as_echo "$at_srcdir/ovs-vsctl.at:300: # First try a quick sleep, so that the test completes very quickly
 
97750
     # in the normal case.  POSIX doesn't require fractional times to
 
97751
     # work, so this might not work.
 
97752
     sleep 0.1
 
97753
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97754
     # Then wait up to 10 seconds.
 
97755
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97756
       sleep 1
 
97757
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97758
     done
 
97759
     exit 1"
 
97760
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:300"
 
97761
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97762
     # in the normal case.  POSIX doesn't require fractional times to
 
97763
     # work, so this might not work.
 
97764
     sleep 0.1
 
97765
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97766
     # Then wait up to 10 seconds.
 
97767
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97768
       sleep 1
 
97769
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97770
     done
 
97771
     exit 1
 
97772
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97773
at_status=$? at_failed=false
 
97774
$at_check_filter
 
97775
echo stderr:; cat "$at_stderr"
 
97776
echo stdout:; cat "$at_stdout"
 
97777
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97778
if $at_failed; then :
 
97779
  kill `cat savepid`
 
97780
fi
 
97781
$at_failed && at_fn_log_failure
 
97782
$at_traceon; }
 
97783
 
 
97784
fi
 
97785
$at_failed && at_fn_log_failure
 
97786
$at_traceon; }
 
97787
 
 
97788
   { set +x
 
97789
$as_echo "$at_srcdir/ovs-vsctl.at:300: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b1
 
97790
"
 
97791
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:300"
 
97792
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br b1
 
97793
 
 
97794
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97795
at_status=$? at_failed=false
 
97796
$at_check_filter
 
97797
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97798
echo >>"$at_stdout"; $as_echo "b
 
97799
" | \
 
97800
  $at_diff - "$at_stdout" || at_failed=:
 
97801
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97802
if $at_failed; then :
 
97803
  cp pid savepid
 
97804
   { set +x
 
97805
$as_echo "$at_srcdir/ovs-vsctl.at:300: ovs-appctl -t \$PWD/unixctl -e exit"
 
97806
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:300"
 
97807
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97809
at_status=$? at_failed=false
 
97810
$at_check_filter
 
97811
echo stderr:; cat "$at_stderr"
 
97812
echo stdout:; cat "$at_stdout"
 
97813
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97814
$at_failed && at_fn_log_failure
 
97815
$at_traceon; }
 
97816
 
 
97817
   { set +x
 
97818
$as_echo "$at_srcdir/ovs-vsctl.at:300: # First try a quick sleep, so that the test completes very quickly
 
97819
     # in the normal case.  POSIX doesn't require fractional times to
 
97820
     # work, so this might not work.
 
97821
     sleep 0.1
 
97822
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97823
     # Then wait up to 10 seconds.
 
97824
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97825
       sleep 1
 
97826
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97827
     done
 
97828
     exit 1"
 
97829
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:300"
 
97830
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97831
     # in the normal case.  POSIX doesn't require fractional times to
 
97832
     # work, so this might not work.
 
97833
     sleep 0.1
 
97834
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97835
     # Then wait up to 10 seconds.
 
97836
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97837
       sleep 1
 
97838
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97839
     done
 
97840
     exit 1
 
97841
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97842
at_status=$? at_failed=false
 
97843
$at_check_filter
 
97844
echo stderr:; cat "$at_stderr"
 
97845
echo stdout:; cat "$at_stdout"
 
97846
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:300"
 
97847
if $at_failed; then :
 
97848
  kill `cat savepid`
 
97849
fi
 
97850
$at_failed && at_fn_log_failure
 
97851
$at_traceon; }
 
97852
 
 
97853
fi
 
97854
$at_failed && at_fn_log_failure
 
97855
$at_traceon; }
 
97856
 
 
97857
cp pid savepid
 
97858
   { set +x
 
97859
$as_echo "$at_srcdir/ovs-vsctl.at:301: ovs-appctl -t \$PWD/unixctl -e exit"
 
97860
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:301"
 
97861
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97862
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97863
at_status=$? at_failed=false
 
97864
$at_check_filter
 
97865
echo stderr:; cat "$at_stderr"
 
97866
echo stdout:; cat "$at_stdout"
 
97867
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:301"
 
97868
$at_failed && at_fn_log_failure
 
97869
$at_traceon; }
 
97870
 
 
97871
   { set +x
 
97872
$as_echo "$at_srcdir/ovs-vsctl.at:301: # First try a quick sleep, so that the test completes very quickly
 
97873
     # in the normal case.  POSIX doesn't require fractional times to
 
97874
     # work, so this might not work.
 
97875
     sleep 0.1
 
97876
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97877
     # Then wait up to 10 seconds.
 
97878
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97879
       sleep 1
 
97880
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
97881
     done
 
97882
     exit 1"
 
97883
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:301"
 
97884
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
97885
     # in the normal case.  POSIX doesn't require fractional times to
 
97886
     # work, so this might not work.
 
97887
     sleep 0.1
 
97888
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
97889
     # Then wait up to 10 seconds.
 
97890
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
97891
       sleep 1
 
97892
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
97893
     done
 
97894
     exit 1
 
97895
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97896
at_status=$? at_failed=false
 
97897
$at_check_filter
 
97898
echo stderr:; cat "$at_stderr"
 
97899
echo stdout:; cat "$at_stdout"
 
97900
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:301"
 
97901
if $at_failed; then :
 
97902
  kill `cat savepid`
 
97903
fi
 
97904
$at_failed && at_fn_log_failure
 
97905
$at_traceon; }
 
97906
 
 
97907
  set +x
 
97908
  $at_times_p && times >"$at_times_file"
 
97909
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
97910
read at_status <"$at_status_file"
 
97911
#AT_STOP_952
 
97912
#AT_START_953
 
97913
at_fn_group_banner 953 'ovs-vsctl.at:304' \
 
97914
  "add-br a, add-bond a bond0 a1 a2 a3, del-port bond0" "" 65
 
97915
at_xfail=no
 
97916
(
 
97917
  $as_echo "953. $at_setup_line: testing $at_desc ..."
 
97918
  $at_traceon
 
97919
 
 
97920
 
 
97921
{ set +x
 
97922
$as_echo "$at_srcdir/ovs-vsctl.at:306: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
97923
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:306"
 
97924
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
97925
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97926
at_status=$? at_failed=false
 
97927
$at_check_filter
 
97928
echo stderr:; cat "$at_stderr"
 
97929
echo stdout:; tee stdout <"$at_stdout"
 
97930
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:306"
 
97931
$at_failed && at_fn_log_failure
 
97932
$at_traceon; }
 
97933
 
 
97934
   { set +x
 
97935
$as_echo "$at_srcdir/ovs-vsctl.at:306: ovsdb-tool transact db \\
 
97936
        '[\"Open_vSwitch\",
 
97937
          {\"op\": \"insert\",
 
97938
           \"table\": \"Open_vSwitch\",
 
97939
           \"row\": {}}]'"
 
97940
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:306"
 
97941
( $at_check_trace; ovsdb-tool transact db \
 
97942
        '["Open_vSwitch",
 
97943
          {"op": "insert",
 
97944
           "table": "Open_vSwitch",
 
97945
           "row": {}}]'
 
97946
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97947
at_status=$? at_failed=false
 
97948
$at_check_filter
 
97949
echo stderr:; cat "$at_stderr"
 
97950
echo stdout:; cat "$at_stdout"
 
97951
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:306"
 
97952
$at_failed && at_fn_log_failure
 
97953
$at_traceon; }
 
97954
 
 
97955
   { set +x
 
97956
$as_echo "$at_srcdir/ovs-vsctl.at:306: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
97957
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:306"
 
97958
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
97959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97960
at_status=$? at_failed=false
 
97961
$at_check_filter
 
97962
echo stderr:; cat "$at_stderr"
 
97963
echo stdout:; cat "$at_stdout"
 
97964
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:306"
 
97965
$at_failed && at_fn_log_failure
 
97966
$at_traceon; }
 
97967
 
 
97968
{ set +x
 
97969
$as_echo "$at_srcdir/ovs-vsctl.at:307: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- add-br a -- add-bond a bond0 a1 a2 a3 tag=9 -- get Port bond0 tag -- del-port bond0"
 
97970
at_fn_check_prepare_trace "ovs-vsctl.at:307"
 
97971
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- add-br a -- add-bond a bond0 a1 a2 a3 tag=9 -- get Port bond0 tag -- del-port bond0
 
97972
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97973
at_status=$? at_failed=false
 
97974
$at_check_filter
 
97975
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
97976
echo >>"$at_stdout"; $as_echo "
 
97977
 
 
97978
9
 
97979
 
 
97980
" | \
 
97981
  $at_diff - "$at_stdout" || at_failed=:
 
97982
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:307"
 
97983
if $at_failed; then :
 
97984
  cp pid savepid
 
97985
   { set +x
 
97986
$as_echo "$at_srcdir/ovs-vsctl.at:307: ovs-appctl -t \$PWD/unixctl -e exit"
 
97987
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:307"
 
97988
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
97989
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
97990
at_status=$? at_failed=false
 
97991
$at_check_filter
 
97992
echo stderr:; cat "$at_stderr"
 
97993
echo stdout:; cat "$at_stdout"
 
97994
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:307"
 
97995
$at_failed && at_fn_log_failure
 
97996
$at_traceon; }
 
97997
 
 
97998
   { set +x
 
97999
$as_echo "$at_srcdir/ovs-vsctl.at:307: # First try a quick sleep, so that the test completes very quickly
 
98000
     # in the normal case.  POSIX doesn't require fractional times to
 
98001
     # work, so this might not work.
 
98002
     sleep 0.1
 
98003
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98004
     # Then wait up to 10 seconds.
 
98005
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98006
       sleep 1
 
98007
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98008
     done
 
98009
     exit 1"
 
98010
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:307"
 
98011
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98012
     # in the normal case.  POSIX doesn't require fractional times to
 
98013
     # work, so this might not work.
 
98014
     sleep 0.1
 
98015
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98016
     # Then wait up to 10 seconds.
 
98017
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98018
       sleep 1
 
98019
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98020
     done
 
98021
     exit 1
 
98022
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98023
at_status=$? at_failed=false
 
98024
$at_check_filter
 
98025
echo stderr:; cat "$at_stderr"
 
98026
echo stdout:; cat "$at_stdout"
 
98027
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:307"
 
98028
if $at_failed; then :
 
98029
  kill `cat savepid`
 
98030
fi
 
98031
$at_failed && at_fn_log_failure
 
98032
$at_traceon; }
 
98033
 
 
98034
fi
 
98035
$at_failed && at_fn_log_failure
 
98036
$at_traceon; }
 
98037
 
 
98038
   { set +x
 
98039
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
98040
"
 
98041
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:316"
 
98042
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
98043
 
 
98044
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98045
at_status=$? at_failed=false
 
98046
$at_check_filter
 
98047
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98048
echo >>"$at_stdout"; $as_echo "a
 
98049
" | \
 
98050
  $at_diff - "$at_stdout" || at_failed=:
 
98051
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98052
if $at_failed; then :
 
98053
  cp pid savepid
 
98054
   { set +x
 
98055
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-appctl -t \$PWD/unixctl -e exit"
 
98056
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:316"
 
98057
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98058
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98059
at_status=$? at_failed=false
 
98060
$at_check_filter
 
98061
echo stderr:; cat "$at_stderr"
 
98062
echo stdout:; cat "$at_stdout"
 
98063
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98064
$at_failed && at_fn_log_failure
 
98065
$at_traceon; }
 
98066
 
 
98067
   { set +x
 
98068
$as_echo "$at_srcdir/ovs-vsctl.at:316: # First try a quick sleep, so that the test completes very quickly
 
98069
     # in the normal case.  POSIX doesn't require fractional times to
 
98070
     # work, so this might not work.
 
98071
     sleep 0.1
 
98072
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98073
     # Then wait up to 10 seconds.
 
98074
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98075
       sleep 1
 
98076
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98077
     done
 
98078
     exit 1"
 
98079
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:316"
 
98080
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98081
     # in the normal case.  POSIX doesn't require fractional times to
 
98082
     # work, so this might not work.
 
98083
     sleep 0.1
 
98084
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98085
     # Then wait up to 10 seconds.
 
98086
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98087
       sleep 1
 
98088
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98089
     done
 
98090
     exit 1
 
98091
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98092
at_status=$? at_failed=false
 
98093
$at_check_filter
 
98094
echo stderr:; cat "$at_stderr"
 
98095
echo stdout:; cat "$at_stdout"
 
98096
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98097
if $at_failed; then :
 
98098
  kill `cat savepid`
 
98099
fi
 
98100
$at_failed && at_fn_log_failure
 
98101
$at_traceon; }
 
98102
 
 
98103
fi
 
98104
$at_failed && at_fn_log_failure
 
98105
$at_traceon; }
 
98106
 
 
98107
 
 
98108
      { set +x
 
98109
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
98110
"
 
98111
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:316"
 
98112
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
98113
 
 
98114
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98115
at_status=$? at_failed=false
 
98116
$at_check_filter
 
98117
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98118
echo >>"$at_stdout"; $as_echo "a
 
98119
" | \
 
98120
  $at_diff - "$at_stdout" || at_failed=:
 
98121
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98122
if $at_failed; then :
 
98123
  cp pid savepid
 
98124
   { set +x
 
98125
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-appctl -t \$PWD/unixctl -e exit"
 
98126
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:316"
 
98127
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98129
at_status=$? at_failed=false
 
98130
$at_check_filter
 
98131
echo stderr:; cat "$at_stderr"
 
98132
echo stdout:; cat "$at_stdout"
 
98133
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98134
$at_failed && at_fn_log_failure
 
98135
$at_traceon; }
 
98136
 
 
98137
   { set +x
 
98138
$as_echo "$at_srcdir/ovs-vsctl.at:316: # First try a quick sleep, so that the test completes very quickly
 
98139
     # in the normal case.  POSIX doesn't require fractional times to
 
98140
     # work, so this might not work.
 
98141
     sleep 0.1
 
98142
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98143
     # Then wait up to 10 seconds.
 
98144
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98145
       sleep 1
 
98146
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98147
     done
 
98148
     exit 1"
 
98149
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:316"
 
98150
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98151
     # in the normal case.  POSIX doesn't require fractional times to
 
98152
     # work, so this might not work.
 
98153
     sleep 0.1
 
98154
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98155
     # Then wait up to 10 seconds.
 
98156
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98157
       sleep 1
 
98158
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98159
     done
 
98160
     exit 1
 
98161
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98162
at_status=$? at_failed=false
 
98163
$at_check_filter
 
98164
echo stderr:; cat "$at_stderr"
 
98165
echo stdout:; cat "$at_stdout"
 
98166
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98167
if $at_failed; then :
 
98168
  kill `cat savepid`
 
98169
fi
 
98170
$at_failed && at_fn_log_failure
 
98171
$at_traceon; }
 
98172
 
 
98173
fi
 
98174
$at_failed && at_fn_log_failure
 
98175
$at_traceon; }
 
98176
 
 
98177
 
 
98178
         { set +x
 
98179
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
98180
"
 
98181
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:316"
 
98182
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
98183
 
 
98184
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98185
at_status=$? at_failed=false
 
98186
$at_check_filter
 
98187
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98188
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
98189
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98190
if $at_failed; then :
 
98191
  cp pid savepid
 
98192
   { set +x
 
98193
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-appctl -t \$PWD/unixctl -e exit"
 
98194
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:316"
 
98195
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98196
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98197
at_status=$? at_failed=false
 
98198
$at_check_filter
 
98199
echo stderr:; cat "$at_stderr"
 
98200
echo stdout:; cat "$at_stdout"
 
98201
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98202
$at_failed && at_fn_log_failure
 
98203
$at_traceon; }
 
98204
 
 
98205
   { set +x
 
98206
$as_echo "$at_srcdir/ovs-vsctl.at:316: # First try a quick sleep, so that the test completes very quickly
 
98207
     # in the normal case.  POSIX doesn't require fractional times to
 
98208
     # work, so this might not work.
 
98209
     sleep 0.1
 
98210
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98211
     # Then wait up to 10 seconds.
 
98212
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98213
       sleep 1
 
98214
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98215
     done
 
98216
     exit 1"
 
98217
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:316"
 
98218
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98219
     # in the normal case.  POSIX doesn't require fractional times to
 
98220
     # work, so this might not work.
 
98221
     sleep 0.1
 
98222
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98223
     # Then wait up to 10 seconds.
 
98224
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98225
       sleep 1
 
98226
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98227
     done
 
98228
     exit 1
 
98229
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98230
at_status=$? at_failed=false
 
98231
$at_check_filter
 
98232
echo stderr:; cat "$at_stderr"
 
98233
echo stdout:; cat "$at_stdout"
 
98234
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98235
if $at_failed; then :
 
98236
  kill `cat savepid`
 
98237
fi
 
98238
$at_failed && at_fn_log_failure
 
98239
$at_traceon; }
 
98240
 
 
98241
fi
 
98242
$at_failed && at_fn_log_failure
 
98243
$at_traceon; }
 
98244
 
 
98245
   { set +x
 
98246
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
98247
"
 
98248
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:316"
 
98249
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
98250
 
 
98251
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98252
at_status=$? at_failed=false
 
98253
$at_check_filter
 
98254
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98255
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
98256
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98257
if $at_failed; then :
 
98258
  cp pid savepid
 
98259
   { set +x
 
98260
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-appctl -t \$PWD/unixctl -e exit"
 
98261
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:316"
 
98262
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98263
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98264
at_status=$? at_failed=false
 
98265
$at_check_filter
 
98266
echo stderr:; cat "$at_stderr"
 
98267
echo stdout:; cat "$at_stdout"
 
98268
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98269
$at_failed && at_fn_log_failure
 
98270
$at_traceon; }
 
98271
 
 
98272
   { set +x
 
98273
$as_echo "$at_srcdir/ovs-vsctl.at:316: # First try a quick sleep, so that the test completes very quickly
 
98274
     # in the normal case.  POSIX doesn't require fractional times to
 
98275
     # work, so this might not work.
 
98276
     sleep 0.1
 
98277
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98278
     # Then wait up to 10 seconds.
 
98279
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98280
       sleep 1
 
98281
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98282
     done
 
98283
     exit 1"
 
98284
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:316"
 
98285
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98286
     # in the normal case.  POSIX doesn't require fractional times to
 
98287
     # work, so this might not work.
 
98288
     sleep 0.1
 
98289
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98290
     # Then wait up to 10 seconds.
 
98291
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98292
       sleep 1
 
98293
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98294
     done
 
98295
     exit 1
 
98296
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98297
at_status=$? at_failed=false
 
98298
$at_check_filter
 
98299
echo stderr:; cat "$at_stderr"
 
98300
echo stdout:; cat "$at_stdout"
 
98301
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98302
if $at_failed; then :
 
98303
  kill `cat savepid`
 
98304
fi
 
98305
$at_failed && at_fn_log_failure
 
98306
$at_traceon; }
 
98307
 
 
98308
fi
 
98309
$at_failed && at_fn_log_failure
 
98310
$at_traceon; }
 
98311
 
 
98312
 
 
98313
      { set +x
 
98314
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
98315
"
 
98316
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:316"
 
98317
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
98318
 
 
98319
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98320
at_status=$? at_failed=false
 
98321
$at_check_filter
 
98322
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98323
echo >>"$at_stdout"; $as_echo "a
 
98324
" | \
 
98325
  $at_diff - "$at_stdout" || at_failed=:
 
98326
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98327
if $at_failed; then :
 
98328
  cp pid savepid
 
98329
   { set +x
 
98330
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-appctl -t \$PWD/unixctl -e exit"
 
98331
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:316"
 
98332
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98333
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98334
at_status=$? at_failed=false
 
98335
$at_check_filter
 
98336
echo stderr:; cat "$at_stderr"
 
98337
echo stdout:; cat "$at_stdout"
 
98338
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98339
$at_failed && at_fn_log_failure
 
98340
$at_traceon; }
 
98341
 
 
98342
   { set +x
 
98343
$as_echo "$at_srcdir/ovs-vsctl.at:316: # First try a quick sleep, so that the test completes very quickly
 
98344
     # in the normal case.  POSIX doesn't require fractional times to
 
98345
     # work, so this might not work.
 
98346
     sleep 0.1
 
98347
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98348
     # Then wait up to 10 seconds.
 
98349
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98350
       sleep 1
 
98351
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98352
     done
 
98353
     exit 1"
 
98354
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:316"
 
98355
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98356
     # in the normal case.  POSIX doesn't require fractional times to
 
98357
     # work, so this might not work.
 
98358
     sleep 0.1
 
98359
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98360
     # Then wait up to 10 seconds.
 
98361
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98362
       sleep 1
 
98363
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98364
     done
 
98365
     exit 1
 
98366
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98367
at_status=$? at_failed=false
 
98368
$at_check_filter
 
98369
echo stderr:; cat "$at_stderr"
 
98370
echo stdout:; cat "$at_stdout"
 
98371
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98372
if $at_failed; then :
 
98373
  kill `cat savepid`
 
98374
fi
 
98375
$at_failed && at_fn_log_failure
 
98376
$at_traceon; }
 
98377
 
 
98378
fi
 
98379
$at_failed && at_fn_log_failure
 
98380
$at_traceon; }
 
98381
 
 
98382
 
 
98383
   # Check br-to-vlan, without --oneline.
 
98384
   { set +x
 
98385
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
98386
"
 
98387
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:316"
 
98388
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
98389
 
 
98390
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98391
at_status=$? at_failed=false
 
98392
$at_check_filter
 
98393
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98394
echo >>"$at_stdout"; $as_echo "0
 
98395
" | \
 
98396
  $at_diff - "$at_stdout" || at_failed=:
 
98397
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98398
if $at_failed; then :
 
98399
  cp pid savepid
 
98400
   { set +x
 
98401
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-appctl -t \$PWD/unixctl -e exit"
 
98402
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:316"
 
98403
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98404
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98405
at_status=$? at_failed=false
 
98406
$at_check_filter
 
98407
echo stderr:; cat "$at_stderr"
 
98408
echo stdout:; cat "$at_stdout"
 
98409
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98410
$at_failed && at_fn_log_failure
 
98411
$at_traceon; }
 
98412
 
 
98413
   { set +x
 
98414
$as_echo "$at_srcdir/ovs-vsctl.at:316: # First try a quick sleep, so that the test completes very quickly
 
98415
     # in the normal case.  POSIX doesn't require fractional times to
 
98416
     # work, so this might not work.
 
98417
     sleep 0.1
 
98418
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98419
     # Then wait up to 10 seconds.
 
98420
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98421
       sleep 1
 
98422
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98423
     done
 
98424
     exit 1"
 
98425
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:316"
 
98426
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98427
     # in the normal case.  POSIX doesn't require fractional times to
 
98428
     # work, so this might not work.
 
98429
     sleep 0.1
 
98430
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98431
     # Then wait up to 10 seconds.
 
98432
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98433
       sleep 1
 
98434
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98435
     done
 
98436
     exit 1
 
98437
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98438
at_status=$? at_failed=false
 
98439
$at_check_filter
 
98440
echo stderr:; cat "$at_stderr"
 
98441
echo stdout:; cat "$at_stdout"
 
98442
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98443
if $at_failed; then :
 
98444
  kill `cat savepid`
 
98445
fi
 
98446
$at_failed && at_fn_log_failure
 
98447
$at_traceon; }
 
98448
 
 
98449
fi
 
98450
$at_failed && at_fn_log_failure
 
98451
$at_traceon; }
 
98452
 
 
98453
   # Check br-to-vlan, with --oneline.
 
98454
   # (This particular test is interesting with --oneline because it returns
 
98455
   # an integer instead of a string and that can cause type mismatches inside
 
98456
   # python if not done carefully.)
 
98457
   { set +x
 
98458
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
98459
"
 
98460
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:316"
 
98461
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
98462
 
 
98463
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98464
at_status=$? at_failed=false
 
98465
$at_check_filter
 
98466
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98467
echo >>"$at_stdout"; $as_echo "0
 
98468
" | \
 
98469
  $at_diff - "$at_stdout" || at_failed=:
 
98470
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98471
if $at_failed; then :
 
98472
  cp pid savepid
 
98473
   { set +x
 
98474
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-appctl -t \$PWD/unixctl -e exit"
 
98475
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:316"
 
98476
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98477
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98478
at_status=$? at_failed=false
 
98479
$at_check_filter
 
98480
echo stderr:; cat "$at_stderr"
 
98481
echo stdout:; cat "$at_stdout"
 
98482
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98483
$at_failed && at_fn_log_failure
 
98484
$at_traceon; }
 
98485
 
 
98486
   { set +x
 
98487
$as_echo "$at_srcdir/ovs-vsctl.at:316: # First try a quick sleep, so that the test completes very quickly
 
98488
     # in the normal case.  POSIX doesn't require fractional times to
 
98489
     # work, so this might not work.
 
98490
     sleep 0.1
 
98491
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98492
     # Then wait up to 10 seconds.
 
98493
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98494
       sleep 1
 
98495
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98496
     done
 
98497
     exit 1"
 
98498
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:316"
 
98499
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98500
     # in the normal case.  POSIX doesn't require fractional times to
 
98501
     # work, so this might not work.
 
98502
     sleep 0.1
 
98503
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98504
     # Then wait up to 10 seconds.
 
98505
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98506
       sleep 1
 
98507
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98508
     done
 
98509
     exit 1
 
98510
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98511
at_status=$? at_failed=false
 
98512
$at_check_filter
 
98513
echo stderr:; cat "$at_stderr"
 
98514
echo stdout:; cat "$at_stdout"
 
98515
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98516
if $at_failed; then :
 
98517
  kill `cat savepid`
 
98518
fi
 
98519
$at_failed && at_fn_log_failure
 
98520
$at_traceon; }
 
98521
 
 
98522
fi
 
98523
$at_failed && at_fn_log_failure
 
98524
$at_traceon; }
 
98525
 
 
98526
 
 
98527
   # Check multiple queries in a single run.
 
98528
   { set +x
 
98529
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a"
 
98530
at_fn_check_prepare_trace "ovs-vsctl.at:316"
 
98531
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a
 
98532
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98533
at_status=$? at_failed=false
 
98534
$at_check_filter
 
98535
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98536
echo >>"$at_stdout"; $as_echo "a
 
98537
0
 
98538
" | \
 
98539
  $at_diff - "$at_stdout" || at_failed=:
 
98540
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98541
if $at_failed; then :
 
98542
  cp pid savepid
 
98543
   { set +x
 
98544
$as_echo "$at_srcdir/ovs-vsctl.at:316: ovs-appctl -t \$PWD/unixctl -e exit"
 
98545
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:316"
 
98546
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98547
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98548
at_status=$? at_failed=false
 
98549
$at_check_filter
 
98550
echo stderr:; cat "$at_stderr"
 
98551
echo stdout:; cat "$at_stdout"
 
98552
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98553
$at_failed && at_fn_log_failure
 
98554
$at_traceon; }
 
98555
 
 
98556
   { set +x
 
98557
$as_echo "$at_srcdir/ovs-vsctl.at:316: # First try a quick sleep, so that the test completes very quickly
 
98558
     # in the normal case.  POSIX doesn't require fractional times to
 
98559
     # work, so this might not work.
 
98560
     sleep 0.1
 
98561
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98562
     # Then wait up to 10 seconds.
 
98563
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98564
       sleep 1
 
98565
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98566
     done
 
98567
     exit 1"
 
98568
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:316"
 
98569
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98570
     # in the normal case.  POSIX doesn't require fractional times to
 
98571
     # work, so this might not work.
 
98572
     sleep 0.1
 
98573
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98574
     # Then wait up to 10 seconds.
 
98575
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98576
       sleep 1
 
98577
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98578
     done
 
98579
     exit 1
 
98580
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98581
at_status=$? at_failed=false
 
98582
$at_check_filter
 
98583
echo stderr:; cat "$at_stderr"
 
98584
echo stdout:; cat "$at_stdout"
 
98585
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:316"
 
98586
if $at_failed; then :
 
98587
  kill `cat savepid`
 
98588
fi
 
98589
$at_failed && at_fn_log_failure
 
98590
$at_traceon; }
 
98591
 
 
98592
fi
 
98593
$at_failed && at_fn_log_failure
 
98594
$at_traceon; }
 
98595
 
 
98596
   { set +x
 
98597
$as_echo "$at_srcdir/ovs-vsctl.at:317: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
98598
"
 
98599
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:317"
 
98600
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
98601
 
 
98602
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98603
at_status=$? at_failed=false
 
98604
$at_check_filter
 
98605
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98606
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
98607
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98608
if $at_failed; then :
 
98609
  cp pid savepid
 
98610
   { set +x
 
98611
$as_echo "$at_srcdir/ovs-vsctl.at:317: ovs-appctl -t \$PWD/unixctl -e exit"
 
98612
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:317"
 
98613
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98614
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98615
at_status=$? at_failed=false
 
98616
$at_check_filter
 
98617
echo stderr:; cat "$at_stderr"
 
98618
echo stdout:; cat "$at_stdout"
 
98619
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98620
$at_failed && at_fn_log_failure
 
98621
$at_traceon; }
 
98622
 
 
98623
   { set +x
 
98624
$as_echo "$at_srcdir/ovs-vsctl.at:317: # First try a quick sleep, so that the test completes very quickly
 
98625
     # in the normal case.  POSIX doesn't require fractional times to
 
98626
     # work, so this might not work.
 
98627
     sleep 0.1
 
98628
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98629
     # Then wait up to 10 seconds.
 
98630
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98631
       sleep 1
 
98632
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98633
     done
 
98634
     exit 1"
 
98635
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:317"
 
98636
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98637
     # in the normal case.  POSIX doesn't require fractional times to
 
98638
     # work, so this might not work.
 
98639
     sleep 0.1
 
98640
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98641
     # Then wait up to 10 seconds.
 
98642
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98643
       sleep 1
 
98644
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98645
     done
 
98646
     exit 1
 
98647
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98648
at_status=$? at_failed=false
 
98649
$at_check_filter
 
98650
echo stderr:; cat "$at_stderr"
 
98651
echo stdout:; cat "$at_stdout"
 
98652
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98653
if $at_failed; then :
 
98654
  kill `cat savepid`
 
98655
fi
 
98656
$at_failed && at_fn_log_failure
 
98657
$at_traceon; }
 
98658
 
 
98659
fi
 
98660
$at_failed && at_fn_log_failure
 
98661
$at_traceon; }
 
98662
 
 
98663
 
 
98664
      { set +x
 
98665
$as_echo "$at_srcdir/ovs-vsctl.at:317: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
98666
"
 
98667
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:317"
 
98668
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
98669
 
 
98670
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98671
at_status=$? at_failed=false
 
98672
$at_check_filter
 
98673
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98674
echo >>"$at_stdout"; $as_echo "
 
98675
" | \
 
98676
  $at_diff - "$at_stdout" || at_failed=:
 
98677
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98678
if $at_failed; then :
 
98679
  cp pid savepid
 
98680
   { set +x
 
98681
$as_echo "$at_srcdir/ovs-vsctl.at:317: ovs-appctl -t \$PWD/unixctl -e exit"
 
98682
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:317"
 
98683
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98684
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98685
at_status=$? at_failed=false
 
98686
$at_check_filter
 
98687
echo stderr:; cat "$at_stderr"
 
98688
echo stdout:; cat "$at_stdout"
 
98689
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98690
$at_failed && at_fn_log_failure
 
98691
$at_traceon; }
 
98692
 
 
98693
   { set +x
 
98694
$as_echo "$at_srcdir/ovs-vsctl.at:317: # First try a quick sleep, so that the test completes very quickly
 
98695
     # in the normal case.  POSIX doesn't require fractional times to
 
98696
     # work, so this might not work.
 
98697
     sleep 0.1
 
98698
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98699
     # Then wait up to 10 seconds.
 
98700
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98701
       sleep 1
 
98702
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98703
     done
 
98704
     exit 1"
 
98705
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:317"
 
98706
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98707
     # in the normal case.  POSIX doesn't require fractional times to
 
98708
     # work, so this might not work.
 
98709
     sleep 0.1
 
98710
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98711
     # Then wait up to 10 seconds.
 
98712
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98713
       sleep 1
 
98714
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98715
     done
 
98716
     exit 1
 
98717
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98718
at_status=$? at_failed=false
 
98719
$at_check_filter
 
98720
echo stderr:; cat "$at_stderr"
 
98721
echo stdout:; cat "$at_stdout"
 
98722
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98723
if $at_failed; then :
 
98724
  kill `cat savepid`
 
98725
fi
 
98726
$at_failed && at_fn_log_failure
 
98727
$at_traceon; }
 
98728
 
 
98729
fi
 
98730
$at_failed && at_fn_log_failure
 
98731
$at_traceon; }
 
98732
 
 
98733
   { set +x
 
98734
$as_echo "$at_srcdir/ovs-vsctl.at:317: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
98735
"
 
98736
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:317"
 
98737
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
98738
 
 
98739
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98740
at_status=$? at_failed=false
 
98741
$at_check_filter
 
98742
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named a
 
98743
" | \
 
98744
  $at_diff - "$at_stderr" || at_failed=:
 
98745
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
98746
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98747
if $at_failed; then :
 
98748
  cp pid savepid
 
98749
   { set +x
 
98750
$as_echo "$at_srcdir/ovs-vsctl.at:317: ovs-appctl -t \$PWD/unixctl -e exit"
 
98751
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:317"
 
98752
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98753
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98754
at_status=$? at_failed=false
 
98755
$at_check_filter
 
98756
echo stderr:; cat "$at_stderr"
 
98757
echo stdout:; cat "$at_stdout"
 
98758
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98759
$at_failed && at_fn_log_failure
 
98760
$at_traceon; }
 
98761
 
 
98762
   { set +x
 
98763
$as_echo "$at_srcdir/ovs-vsctl.at:317: # First try a quick sleep, so that the test completes very quickly
 
98764
     # in the normal case.  POSIX doesn't require fractional times to
 
98765
     # work, so this might not work.
 
98766
     sleep 0.1
 
98767
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98768
     # Then wait up to 10 seconds.
 
98769
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98770
       sleep 1
 
98771
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98772
     done
 
98773
     exit 1"
 
98774
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:317"
 
98775
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98776
     # in the normal case.  POSIX doesn't require fractional times to
 
98777
     # work, so this might not work.
 
98778
     sleep 0.1
 
98779
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98780
     # Then wait up to 10 seconds.
 
98781
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98782
       sleep 1
 
98783
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98784
     done
 
98785
     exit 1
 
98786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98787
at_status=$? at_failed=false
 
98788
$at_check_filter
 
98789
echo stderr:; cat "$at_stderr"
 
98790
echo stdout:; cat "$at_stdout"
 
98791
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:317"
 
98792
if $at_failed; then :
 
98793
  kill `cat savepid`
 
98794
fi
 
98795
$at_failed && at_fn_log_failure
 
98796
$at_traceon; }
 
98797
 
 
98798
fi
 
98799
$at_failed && at_fn_log_failure
 
98800
$at_traceon; }
 
98801
 
 
98802
 
 
98803
cp pid savepid
 
98804
   { set +x
 
98805
$as_echo "$at_srcdir/ovs-vsctl.at:318: ovs-appctl -t \$PWD/unixctl -e exit"
 
98806
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:318"
 
98807
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98809
at_status=$? at_failed=false
 
98810
$at_check_filter
 
98811
echo stderr:; cat "$at_stderr"
 
98812
echo stdout:; cat "$at_stdout"
 
98813
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:318"
 
98814
$at_failed && at_fn_log_failure
 
98815
$at_traceon; }
 
98816
 
 
98817
   { set +x
 
98818
$as_echo "$at_srcdir/ovs-vsctl.at:318: # First try a quick sleep, so that the test completes very quickly
 
98819
     # in the normal case.  POSIX doesn't require fractional times to
 
98820
     # work, so this might not work.
 
98821
     sleep 0.1
 
98822
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98823
     # Then wait up to 10 seconds.
 
98824
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98825
       sleep 1
 
98826
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
98827
     done
 
98828
     exit 1"
 
98829
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:318"
 
98830
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
98831
     # in the normal case.  POSIX doesn't require fractional times to
 
98832
     # work, so this might not work.
 
98833
     sleep 0.1
 
98834
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
98835
     # Then wait up to 10 seconds.
 
98836
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
98837
       sleep 1
 
98838
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
98839
     done
 
98840
     exit 1
 
98841
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98842
at_status=$? at_failed=false
 
98843
$at_check_filter
 
98844
echo stderr:; cat "$at_stderr"
 
98845
echo stdout:; cat "$at_stdout"
 
98846
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:318"
 
98847
if $at_failed; then :
 
98848
  kill `cat savepid`
 
98849
fi
 
98850
$at_failed && at_fn_log_failure
 
98851
$at_traceon; }
 
98852
 
 
98853
  set +x
 
98854
  $at_times_p && times >"$at_times_file"
 
98855
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
98856
read at_status <"$at_status_file"
 
98857
#AT_STOP_953
 
98858
#AT_START_954
 
98859
at_fn_group_banner 954 'ovs-vsctl.at:321' \
 
98860
  "external IDs" "                                   " 65
 
98861
at_xfail=no
 
98862
(
 
98863
  $as_echo "954. $at_setup_line: testing $at_desc ..."
 
98864
  $at_traceon
 
98865
 
 
98866
 
 
98867
{ set +x
 
98868
$as_echo "$at_srcdir/ovs-vsctl.at:323: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
98869
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:323"
 
98870
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
98871
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98872
at_status=$? at_failed=false
 
98873
$at_check_filter
 
98874
echo stderr:; cat "$at_stderr"
 
98875
echo stdout:; tee stdout <"$at_stdout"
 
98876
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:323"
 
98877
$at_failed && at_fn_log_failure
 
98878
$at_traceon; }
 
98879
 
 
98880
   { set +x
 
98881
$as_echo "$at_srcdir/ovs-vsctl.at:323: ovsdb-tool transact db \\
 
98882
        '[\"Open_vSwitch\",
 
98883
          {\"op\": \"insert\",
 
98884
           \"table\": \"Open_vSwitch\",
 
98885
           \"row\": {}}]'"
 
98886
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:323"
 
98887
( $at_check_trace; ovsdb-tool transact db \
 
98888
        '["Open_vSwitch",
 
98889
          {"op": "insert",
 
98890
           "table": "Open_vSwitch",
 
98891
           "row": {}}]'
 
98892
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98893
at_status=$? at_failed=false
 
98894
$at_check_filter
 
98895
echo stderr:; cat "$at_stderr"
 
98896
echo stdout:; cat "$at_stdout"
 
98897
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:323"
 
98898
$at_failed && at_fn_log_failure
 
98899
$at_traceon; }
 
98900
 
 
98901
   { set +x
 
98902
$as_echo "$at_srcdir/ovs-vsctl.at:323: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
98903
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:323"
 
98904
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
98905
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98906
at_status=$? at_failed=false
 
98907
$at_check_filter
 
98908
echo stderr:; cat "$at_stderr"
 
98909
echo stdout:; cat "$at_stdout"
 
98910
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:323"
 
98911
$at_failed && at_fn_log_failure
 
98912
$at_traceon; }
 
98913
 
 
98914
{ set +x
 
98915
$as_echo "$at_srcdir/ovs-vsctl.at:324: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- add-br a
 
98916
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- add-port a a1
 
98917
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- add-bond a bond0 a2 a3
 
98918
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-set-external-id a key0 value0
 
98919
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- set port a1 external-ids:key1=value1
 
98920
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- set interface a2 external-ids:key2=value2
 
98921
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- set interface a2 external-ids:key3=value3
 
98922
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- set interface a3 external-ids:key4=value4
 
98923
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a
 
98924
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a key0
 
98925
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a key1
 
98926
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-set-external-id a key0 othervalue
 
98927
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a
 
98928
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-set-external-id a key0
 
98929
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a
 
98930
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- get port a1 external-ids
 
98931
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- get interface a2 external-ids
 
98932
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- get interface a3 external-ids
 
98933
"
 
98934
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:324"
 
98935
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- add-br a
 
98936
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- add-port a a1
 
98937
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- add-bond a bond0 a2 a3
 
98938
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-set-external-id a key0 value0
 
98939
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- set port a1 external-ids:key1=value1
 
98940
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- set interface a2 external-ids:key2=value2
 
98941
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- set interface a2 external-ids:key3=value3
 
98942
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- set interface a3 external-ids:key4=value4
 
98943
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a
 
98944
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a key0
 
98945
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a key1
 
98946
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-set-external-id a key0 othervalue
 
98947
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a
 
98948
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-set-external-id a key0
 
98949
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-get-external-id a
 
98950
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- get port a1 external-ids
 
98951
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- get interface a2 external-ids
 
98952
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- get interface a3 external-ids
 
98953
 
 
98954
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98955
at_status=$? at_failed=false
 
98956
$at_check_filter
 
98957
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
98958
echo >>"$at_stdout"; $as_echo "
 
98959
 
 
98960
 
 
98961
 
 
98962
 
 
98963
 
 
98964
 
 
98965
 
 
98966
key0=value0
 
98967
value0
 
98968
 
 
98969
 
 
98970
key0=othervalue
 
98971
 
 
98972
 
 
98973
{\"key1\"=\"value1\"}
 
98974
{\"key2\"=\"value2\", \"key3\"=\"value3\"}
 
98975
{\"key4\"=\"value4\"}
 
98976
" | \
 
98977
  $at_diff - "$at_stdout" || at_failed=:
 
98978
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:324"
 
98979
if $at_failed; then :
 
98980
  cp pid savepid
 
98981
   { set +x
 
98982
$as_echo "$at_srcdir/ovs-vsctl.at:324: ovs-appctl -t \$PWD/unixctl -e exit"
 
98983
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:324"
 
98984
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
98985
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
98986
at_status=$? at_failed=false
 
98987
$at_check_filter
 
98988
echo stderr:; cat "$at_stderr"
 
98989
echo stdout:; cat "$at_stdout"
 
98990
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:324"
 
98991
$at_failed && at_fn_log_failure
 
98992
$at_traceon; }
 
98993
 
 
98994
   { set +x
 
98995
$as_echo "$at_srcdir/ovs-vsctl.at:324: # First try a quick sleep, so that the test completes very quickly
 
98996
     # in the normal case.  POSIX doesn't require fractional times to
 
98997
     # work, so this might not work.
 
98998
     sleep 0.1
 
98999
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99000
     # Then wait up to 10 seconds.
 
99001
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99002
       sleep 1
 
99003
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99004
     done
 
99005
     exit 1"
 
99006
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:324"
 
99007
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99008
     # in the normal case.  POSIX doesn't require fractional times to
 
99009
     # work, so this might not work.
 
99010
     sleep 0.1
 
99011
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99012
     # Then wait up to 10 seconds.
 
99013
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99014
       sleep 1
 
99015
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99016
     done
 
99017
     exit 1
 
99018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99019
at_status=$? at_failed=false
 
99020
$at_check_filter
 
99021
echo stderr:; cat "$at_stderr"
 
99022
echo stdout:; cat "$at_stdout"
 
99023
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:324"
 
99024
if $at_failed; then :
 
99025
  kill `cat savepid`
 
99026
fi
 
99027
$at_failed && at_fn_log_failure
 
99028
$at_traceon; }
 
99029
 
 
99030
fi
 
99031
$at_failed && at_fn_log_failure
 
99032
$at_traceon; }
 
99033
 
 
99034
{ set +x
 
99035
$as_echo "$at_srcdir/ovs-vsctl.at:361: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-get-external-id a -- get port a1 external-ids -- get interface a2 external-ids -- get interface a3 external-ids"
 
99036
at_fn_check_prepare_trace "ovs-vsctl.at:361"
 
99037
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-get-external-id a -- get port a1 external-ids -- get interface a2 external-ids -- get interface a3 external-ids
 
99038
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99039
at_status=$? at_failed=false
 
99040
$at_check_filter
 
99041
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99042
echo >>"$at_stdout"; $as_echo "
 
99043
{\"key1\"=\"value1\"}
 
99044
{\"key2\"=\"value2\", \"key3\"=\"value3\"}
 
99045
{\"key4\"=\"value4\"}
 
99046
" | \
 
99047
  $at_diff - "$at_stdout" || at_failed=:
 
99048
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:361"
 
99049
if $at_failed; then :
 
99050
  cp pid savepid
 
99051
   { set +x
 
99052
$as_echo "$at_srcdir/ovs-vsctl.at:361: ovs-appctl -t \$PWD/unixctl -e exit"
 
99053
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:361"
 
99054
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99055
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99056
at_status=$? at_failed=false
 
99057
$at_check_filter
 
99058
echo stderr:; cat "$at_stderr"
 
99059
echo stdout:; cat "$at_stdout"
 
99060
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:361"
 
99061
$at_failed && at_fn_log_failure
 
99062
$at_traceon; }
 
99063
 
 
99064
   { set +x
 
99065
$as_echo "$at_srcdir/ovs-vsctl.at:361: # First try a quick sleep, so that the test completes very quickly
 
99066
     # in the normal case.  POSIX doesn't require fractional times to
 
99067
     # work, so this might not work.
 
99068
     sleep 0.1
 
99069
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99070
     # Then wait up to 10 seconds.
 
99071
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99072
       sleep 1
 
99073
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99074
     done
 
99075
     exit 1"
 
99076
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:361"
 
99077
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99078
     # in the normal case.  POSIX doesn't require fractional times to
 
99079
     # work, so this might not work.
 
99080
     sleep 0.1
 
99081
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99082
     # Then wait up to 10 seconds.
 
99083
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99084
       sleep 1
 
99085
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99086
     done
 
99087
     exit 1
 
99088
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99089
at_status=$? at_failed=false
 
99090
$at_check_filter
 
99091
echo stderr:; cat "$at_stderr"
 
99092
echo stdout:; cat "$at_stdout"
 
99093
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:361"
 
99094
if $at_failed; then :
 
99095
  kill `cat savepid`
 
99096
fi
 
99097
$at_failed && at_fn_log_failure
 
99098
$at_traceon; }
 
99099
 
 
99100
fi
 
99101
$at_failed && at_fn_log_failure
 
99102
$at_traceon; }
 
99103
 
 
99104
   { set +x
 
99105
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
99106
"
 
99107
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:371"
 
99108
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
99109
 
 
99110
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99111
at_status=$? at_failed=false
 
99112
$at_check_filter
 
99113
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99114
echo >>"$at_stdout"; $as_echo "a
 
99115
" | \
 
99116
  $at_diff - "$at_stdout" || at_failed=:
 
99117
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99118
if $at_failed; then :
 
99119
  cp pid savepid
 
99120
   { set +x
 
99121
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-appctl -t \$PWD/unixctl -e exit"
 
99122
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:371"
 
99123
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99124
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99125
at_status=$? at_failed=false
 
99126
$at_check_filter
 
99127
echo stderr:; cat "$at_stderr"
 
99128
echo stdout:; cat "$at_stdout"
 
99129
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99130
$at_failed && at_fn_log_failure
 
99131
$at_traceon; }
 
99132
 
 
99133
   { set +x
 
99134
$as_echo "$at_srcdir/ovs-vsctl.at:371: # First try a quick sleep, so that the test completes very quickly
 
99135
     # in the normal case.  POSIX doesn't require fractional times to
 
99136
     # work, so this might not work.
 
99137
     sleep 0.1
 
99138
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99139
     # Then wait up to 10 seconds.
 
99140
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99141
       sleep 1
 
99142
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99143
     done
 
99144
     exit 1"
 
99145
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:371"
 
99146
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99147
     # in the normal case.  POSIX doesn't require fractional times to
 
99148
     # work, so this might not work.
 
99149
     sleep 0.1
 
99150
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99151
     # Then wait up to 10 seconds.
 
99152
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99153
       sleep 1
 
99154
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99155
     done
 
99156
     exit 1
 
99157
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99158
at_status=$? at_failed=false
 
99159
$at_check_filter
 
99160
echo stderr:; cat "$at_stderr"
 
99161
echo stdout:; cat "$at_stdout"
 
99162
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99163
if $at_failed; then :
 
99164
  kill `cat savepid`
 
99165
fi
 
99166
$at_failed && at_fn_log_failure
 
99167
$at_traceon; }
 
99168
 
 
99169
fi
 
99170
$at_failed && at_fn_log_failure
 
99171
$at_traceon; }
 
99172
 
 
99173
 
 
99174
      { set +x
 
99175
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
99176
"
 
99177
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:371"
 
99178
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
99179
 
 
99180
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99181
at_status=$? at_failed=false
 
99182
$at_check_filter
 
99183
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99184
echo >>"$at_stdout"; $as_echo "a
 
99185
" | \
 
99186
  $at_diff - "$at_stdout" || at_failed=:
 
99187
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99188
if $at_failed; then :
 
99189
  cp pid savepid
 
99190
   { set +x
 
99191
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-appctl -t \$PWD/unixctl -e exit"
 
99192
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:371"
 
99193
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99194
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99195
at_status=$? at_failed=false
 
99196
$at_check_filter
 
99197
echo stderr:; cat "$at_stderr"
 
99198
echo stdout:; cat "$at_stdout"
 
99199
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99200
$at_failed && at_fn_log_failure
 
99201
$at_traceon; }
 
99202
 
 
99203
   { set +x
 
99204
$as_echo "$at_srcdir/ovs-vsctl.at:371: # First try a quick sleep, so that the test completes very quickly
 
99205
     # in the normal case.  POSIX doesn't require fractional times to
 
99206
     # work, so this might not work.
 
99207
     sleep 0.1
 
99208
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99209
     # Then wait up to 10 seconds.
 
99210
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99211
       sleep 1
 
99212
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99213
     done
 
99214
     exit 1"
 
99215
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:371"
 
99216
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99217
     # in the normal case.  POSIX doesn't require fractional times to
 
99218
     # work, so this might not work.
 
99219
     sleep 0.1
 
99220
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99221
     # Then wait up to 10 seconds.
 
99222
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99223
       sleep 1
 
99224
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99225
     done
 
99226
     exit 1
 
99227
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99228
at_status=$? at_failed=false
 
99229
$at_check_filter
 
99230
echo stderr:; cat "$at_stderr"
 
99231
echo stdout:; cat "$at_stdout"
 
99232
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99233
if $at_failed; then :
 
99234
  kill `cat savepid`
 
99235
fi
 
99236
$at_failed && at_fn_log_failure
 
99237
$at_traceon; }
 
99238
 
 
99239
fi
 
99240
$at_failed && at_fn_log_failure
 
99241
$at_traceon; }
 
99242
 
 
99243
 
 
99244
         { set +x
 
99245
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
99246
"
 
99247
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:371"
 
99248
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists a
 
99249
 
 
99250
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99251
at_status=$? at_failed=false
 
99252
$at_check_filter
 
99253
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99254
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
99255
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99256
if $at_failed; then :
 
99257
  cp pid savepid
 
99258
   { set +x
 
99259
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-appctl -t \$PWD/unixctl -e exit"
 
99260
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:371"
 
99261
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99262
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99263
at_status=$? at_failed=false
 
99264
$at_check_filter
 
99265
echo stderr:; cat "$at_stderr"
 
99266
echo stdout:; cat "$at_stdout"
 
99267
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99268
$at_failed && at_fn_log_failure
 
99269
$at_traceon; }
 
99270
 
 
99271
   { set +x
 
99272
$as_echo "$at_srcdir/ovs-vsctl.at:371: # First try a quick sleep, so that the test completes very quickly
 
99273
     # in the normal case.  POSIX doesn't require fractional times to
 
99274
     # work, so this might not work.
 
99275
     sleep 0.1
 
99276
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99277
     # Then wait up to 10 seconds.
 
99278
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99279
       sleep 1
 
99280
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99281
     done
 
99282
     exit 1"
 
99283
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:371"
 
99284
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99285
     # in the normal case.  POSIX doesn't require fractional times to
 
99286
     # work, so this might not work.
 
99287
     sleep 0.1
 
99288
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99289
     # Then wait up to 10 seconds.
 
99290
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99291
       sleep 1
 
99292
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99293
     done
 
99294
     exit 1
 
99295
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99296
at_status=$? at_failed=false
 
99297
$at_check_filter
 
99298
echo stderr:; cat "$at_stderr"
 
99299
echo stdout:; cat "$at_stdout"
 
99300
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99301
if $at_failed; then :
 
99302
  kill `cat savepid`
 
99303
fi
 
99304
$at_failed && at_fn_log_failure
 
99305
$at_traceon; }
 
99306
 
 
99307
fi
 
99308
$at_failed && at_fn_log_failure
 
99309
$at_traceon; }
 
99310
 
 
99311
   { set +x
 
99312
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
99313
"
 
99314
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:371"
 
99315
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
99316
 
 
99317
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99318
at_status=$? at_failed=false
 
99319
$at_check_filter
 
99320
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99321
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
99322
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99323
if $at_failed; then :
 
99324
  cp pid savepid
 
99325
   { set +x
 
99326
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-appctl -t \$PWD/unixctl -e exit"
 
99327
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:371"
 
99328
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99329
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99330
at_status=$? at_failed=false
 
99331
$at_check_filter
 
99332
echo stderr:; cat "$at_stderr"
 
99333
echo stdout:; cat "$at_stdout"
 
99334
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99335
$at_failed && at_fn_log_failure
 
99336
$at_traceon; }
 
99337
 
 
99338
   { set +x
 
99339
$as_echo "$at_srcdir/ovs-vsctl.at:371: # First try a quick sleep, so that the test completes very quickly
 
99340
     # in the normal case.  POSIX doesn't require fractional times to
 
99341
     # work, so this might not work.
 
99342
     sleep 0.1
 
99343
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99344
     # Then wait up to 10 seconds.
 
99345
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99346
       sleep 1
 
99347
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99348
     done
 
99349
     exit 1"
 
99350
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:371"
 
99351
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99352
     # in the normal case.  POSIX doesn't require fractional times to
 
99353
     # work, so this might not work.
 
99354
     sleep 0.1
 
99355
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99356
     # Then wait up to 10 seconds.
 
99357
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99358
       sleep 1
 
99359
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99360
     done
 
99361
     exit 1
 
99362
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99363
at_status=$? at_failed=false
 
99364
$at_check_filter
 
99365
echo stderr:; cat "$at_stderr"
 
99366
echo stdout:; cat "$at_stdout"
 
99367
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99368
if $at_failed; then :
 
99369
  kill `cat savepid`
 
99370
fi
 
99371
$at_failed && at_fn_log_failure
 
99372
$at_traceon; }
 
99373
 
 
99374
fi
 
99375
$at_failed && at_fn_log_failure
 
99376
$at_traceon; }
 
99377
 
 
99378
 
 
99379
      { set +x
 
99380
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
99381
"
 
99382
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:371"
 
99383
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent a
 
99384
 
 
99385
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99386
at_status=$? at_failed=false
 
99387
$at_check_filter
 
99388
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99389
echo >>"$at_stdout"; $as_echo "a
 
99390
" | \
 
99391
  $at_diff - "$at_stdout" || at_failed=:
 
99392
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99393
if $at_failed; then :
 
99394
  cp pid savepid
 
99395
   { set +x
 
99396
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-appctl -t \$PWD/unixctl -e exit"
 
99397
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:371"
 
99398
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99399
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99400
at_status=$? at_failed=false
 
99401
$at_check_filter
 
99402
echo stderr:; cat "$at_stderr"
 
99403
echo stdout:; cat "$at_stdout"
 
99404
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99405
$at_failed && at_fn_log_failure
 
99406
$at_traceon; }
 
99407
 
 
99408
   { set +x
 
99409
$as_echo "$at_srcdir/ovs-vsctl.at:371: # First try a quick sleep, so that the test completes very quickly
 
99410
     # in the normal case.  POSIX doesn't require fractional times to
 
99411
     # work, so this might not work.
 
99412
     sleep 0.1
 
99413
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99414
     # Then wait up to 10 seconds.
 
99415
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99416
       sleep 1
 
99417
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99418
     done
 
99419
     exit 1"
 
99420
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:371"
 
99421
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99422
     # in the normal case.  POSIX doesn't require fractional times to
 
99423
     # work, so this might not work.
 
99424
     sleep 0.1
 
99425
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99426
     # Then wait up to 10 seconds.
 
99427
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99428
       sleep 1
 
99429
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99430
     done
 
99431
     exit 1
 
99432
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99433
at_status=$? at_failed=false
 
99434
$at_check_filter
 
99435
echo stderr:; cat "$at_stderr"
 
99436
echo stdout:; cat "$at_stdout"
 
99437
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99438
if $at_failed; then :
 
99439
  kill `cat savepid`
 
99440
fi
 
99441
$at_failed && at_fn_log_failure
 
99442
$at_traceon; }
 
99443
 
 
99444
fi
 
99445
$at_failed && at_fn_log_failure
 
99446
$at_traceon; }
 
99447
 
 
99448
 
 
99449
   # Check br-to-vlan, without --oneline.
 
99450
   { set +x
 
99451
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
99452
"
 
99453
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:371"
 
99454
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan a
 
99455
 
 
99456
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99457
at_status=$? at_failed=false
 
99458
$at_check_filter
 
99459
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99460
echo >>"$at_stdout"; $as_echo "0
 
99461
" | \
 
99462
  $at_diff - "$at_stdout" || at_failed=:
 
99463
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99464
if $at_failed; then :
 
99465
  cp pid savepid
 
99466
   { set +x
 
99467
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-appctl -t \$PWD/unixctl -e exit"
 
99468
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:371"
 
99469
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99470
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99471
at_status=$? at_failed=false
 
99472
$at_check_filter
 
99473
echo stderr:; cat "$at_stderr"
 
99474
echo stdout:; cat "$at_stdout"
 
99475
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99476
$at_failed && at_fn_log_failure
 
99477
$at_traceon; }
 
99478
 
 
99479
   { set +x
 
99480
$as_echo "$at_srcdir/ovs-vsctl.at:371: # First try a quick sleep, so that the test completes very quickly
 
99481
     # in the normal case.  POSIX doesn't require fractional times to
 
99482
     # work, so this might not work.
 
99483
     sleep 0.1
 
99484
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99485
     # Then wait up to 10 seconds.
 
99486
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99487
       sleep 1
 
99488
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99489
     done
 
99490
     exit 1"
 
99491
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:371"
 
99492
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99493
     # in the normal case.  POSIX doesn't require fractional times to
 
99494
     # work, so this might not work.
 
99495
     sleep 0.1
 
99496
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99497
     # Then wait up to 10 seconds.
 
99498
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99499
       sleep 1
 
99500
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99501
     done
 
99502
     exit 1
 
99503
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99504
at_status=$? at_failed=false
 
99505
$at_check_filter
 
99506
echo stderr:; cat "$at_stderr"
 
99507
echo stdout:; cat "$at_stdout"
 
99508
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99509
if $at_failed; then :
 
99510
  kill `cat savepid`
 
99511
fi
 
99512
$at_failed && at_fn_log_failure
 
99513
$at_traceon; }
 
99514
 
 
99515
fi
 
99516
$at_failed && at_fn_log_failure
 
99517
$at_traceon; }
 
99518
 
 
99519
   # Check br-to-vlan, with --oneline.
 
99520
   # (This particular test is interesting with --oneline because it returns
 
99521
   # an integer instead of a string and that can cause type mismatches inside
 
99522
   # python if not done carefully.)
 
99523
   { set +x
 
99524
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
99525
"
 
99526
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:371"
 
99527
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan a
 
99528
 
 
99529
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99530
at_status=$? at_failed=false
 
99531
$at_check_filter
 
99532
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99533
echo >>"$at_stdout"; $as_echo "0
 
99534
" | \
 
99535
  $at_diff - "$at_stdout" || at_failed=:
 
99536
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99537
if $at_failed; then :
 
99538
  cp pid savepid
 
99539
   { set +x
 
99540
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-appctl -t \$PWD/unixctl -e exit"
 
99541
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:371"
 
99542
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99543
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99544
at_status=$? at_failed=false
 
99545
$at_check_filter
 
99546
echo stderr:; cat "$at_stderr"
 
99547
echo stdout:; cat "$at_stdout"
 
99548
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99549
$at_failed && at_fn_log_failure
 
99550
$at_traceon; }
 
99551
 
 
99552
   { set +x
 
99553
$as_echo "$at_srcdir/ovs-vsctl.at:371: # First try a quick sleep, so that the test completes very quickly
 
99554
     # in the normal case.  POSIX doesn't require fractional times to
 
99555
     # work, so this might not work.
 
99556
     sleep 0.1
 
99557
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99558
     # Then wait up to 10 seconds.
 
99559
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99560
       sleep 1
 
99561
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99562
     done
 
99563
     exit 1"
 
99564
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:371"
 
99565
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99566
     # in the normal case.  POSIX doesn't require fractional times to
 
99567
     # work, so this might not work.
 
99568
     sleep 0.1
 
99569
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99570
     # Then wait up to 10 seconds.
 
99571
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99572
       sleep 1
 
99573
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99574
     done
 
99575
     exit 1
 
99576
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99577
at_status=$? at_failed=false
 
99578
$at_check_filter
 
99579
echo stderr:; cat "$at_stderr"
 
99580
echo stdout:; cat "$at_stdout"
 
99581
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99582
if $at_failed; then :
 
99583
  kill `cat savepid`
 
99584
fi
 
99585
$at_failed && at_fn_log_failure
 
99586
$at_traceon; }
 
99587
 
 
99588
fi
 
99589
$at_failed && at_fn_log_failure
 
99590
$at_traceon; }
 
99591
 
 
99592
 
 
99593
   # Check multiple queries in a single run.
 
99594
   { set +x
 
99595
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a"
 
99596
at_fn_check_prepare_trace "ovs-vsctl.at:371"
 
99597
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent a -- br-to-vlan a
 
99598
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99599
at_status=$? at_failed=false
 
99600
$at_check_filter
 
99601
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99602
echo >>"$at_stdout"; $as_echo "a
 
99603
0
 
99604
" | \
 
99605
  $at_diff - "$at_stdout" || at_failed=:
 
99606
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99607
if $at_failed; then :
 
99608
  cp pid savepid
 
99609
   { set +x
 
99610
$as_echo "$at_srcdir/ovs-vsctl.at:371: ovs-appctl -t \$PWD/unixctl -e exit"
 
99611
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:371"
 
99612
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99613
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99614
at_status=$? at_failed=false
 
99615
$at_check_filter
 
99616
echo stderr:; cat "$at_stderr"
 
99617
echo stdout:; cat "$at_stdout"
 
99618
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99619
$at_failed && at_fn_log_failure
 
99620
$at_traceon; }
 
99621
 
 
99622
   { set +x
 
99623
$as_echo "$at_srcdir/ovs-vsctl.at:371: # First try a quick sleep, so that the test completes very quickly
 
99624
     # in the normal case.  POSIX doesn't require fractional times to
 
99625
     # work, so this might not work.
 
99626
     sleep 0.1
 
99627
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99628
     # Then wait up to 10 seconds.
 
99629
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99630
       sleep 1
 
99631
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99632
     done
 
99633
     exit 1"
 
99634
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:371"
 
99635
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99636
     # in the normal case.  POSIX doesn't require fractional times to
 
99637
     # work, so this might not work.
 
99638
     sleep 0.1
 
99639
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99640
     # Then wait up to 10 seconds.
 
99641
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99642
       sleep 1
 
99643
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99644
     done
 
99645
     exit 1
 
99646
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99647
at_status=$? at_failed=false
 
99648
$at_check_filter
 
99649
echo stderr:; cat "$at_stderr"
 
99650
echo stdout:; cat "$at_stdout"
 
99651
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:371"
 
99652
if $at_failed; then :
 
99653
  kill `cat savepid`
 
99654
fi
 
99655
$at_failed && at_fn_log_failure
 
99656
$at_traceon; }
 
99657
 
 
99658
fi
 
99659
$at_failed && at_fn_log_failure
 
99660
$at_traceon; }
 
99661
 
 
99662
   { set +x
 
99663
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
99664
"
 
99665
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:372"
 
99666
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports a
 
99667
 
 
99668
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99669
at_status=$? at_failed=false
 
99670
$at_check_filter
 
99671
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99672
echo >>"$at_stdout"; $as_echo "a1
 
99673
bond0
 
99674
" | \
 
99675
  $at_diff - "$at_stdout" || at_failed=:
 
99676
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99677
if $at_failed; then :
 
99678
  cp pid savepid
 
99679
   { set +x
 
99680
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-appctl -t \$PWD/unixctl -e exit"
 
99681
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:372"
 
99682
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99684
at_status=$? at_failed=false
 
99685
$at_check_filter
 
99686
echo stderr:; cat "$at_stderr"
 
99687
echo stdout:; cat "$at_stdout"
 
99688
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99689
$at_failed && at_fn_log_failure
 
99690
$at_traceon; }
 
99691
 
 
99692
   { set +x
 
99693
$as_echo "$at_srcdir/ovs-vsctl.at:372: # First try a quick sleep, so that the test completes very quickly
 
99694
     # in the normal case.  POSIX doesn't require fractional times to
 
99695
     # work, so this might not work.
 
99696
     sleep 0.1
 
99697
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99698
     # Then wait up to 10 seconds.
 
99699
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99700
       sleep 1
 
99701
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99702
     done
 
99703
     exit 1"
 
99704
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:372"
 
99705
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99706
     # in the normal case.  POSIX doesn't require fractional times to
 
99707
     # work, so this might not work.
 
99708
     sleep 0.1
 
99709
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99710
     # Then wait up to 10 seconds.
 
99711
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99712
       sleep 1
 
99713
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99714
     done
 
99715
     exit 1
 
99716
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99717
at_status=$? at_failed=false
 
99718
$at_check_filter
 
99719
echo stderr:; cat "$at_stderr"
 
99720
echo stdout:; cat "$at_stdout"
 
99721
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99722
if $at_failed; then :
 
99723
  kill `cat savepid`
 
99724
fi
 
99725
$at_failed && at_fn_log_failure
 
99726
$at_traceon; }
 
99727
 
 
99728
fi
 
99729
$at_failed && at_fn_log_failure
 
99730
$at_traceon; }
 
99731
 
 
99732
 
 
99733
      { set +x
 
99734
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
99735
"
 
99736
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:372"
 
99737
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports a
 
99738
 
 
99739
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99740
at_status=$? at_failed=false
 
99741
$at_check_filter
 
99742
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99743
echo >>"$at_stdout"; $as_echo "a1\\nbond0
 
99744
" | \
 
99745
  $at_diff - "$at_stdout" || at_failed=:
 
99746
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99747
if $at_failed; then :
 
99748
  cp pid savepid
 
99749
   { set +x
 
99750
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-appctl -t \$PWD/unixctl -e exit"
 
99751
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:372"
 
99752
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99753
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99754
at_status=$? at_failed=false
 
99755
$at_check_filter
 
99756
echo stderr:; cat "$at_stderr"
 
99757
echo stdout:; cat "$at_stdout"
 
99758
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99759
$at_failed && at_fn_log_failure
 
99760
$at_traceon; }
 
99761
 
 
99762
   { set +x
 
99763
$as_echo "$at_srcdir/ovs-vsctl.at:372: # First try a quick sleep, so that the test completes very quickly
 
99764
     # in the normal case.  POSIX doesn't require fractional times to
 
99765
     # work, so this might not work.
 
99766
     sleep 0.1
 
99767
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99768
     # Then wait up to 10 seconds.
 
99769
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99770
       sleep 1
 
99771
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99772
     done
 
99773
     exit 1"
 
99774
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:372"
 
99775
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99776
     # in the normal case.  POSIX doesn't require fractional times to
 
99777
     # work, so this might not work.
 
99778
     sleep 0.1
 
99779
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99780
     # Then wait up to 10 seconds.
 
99781
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99782
       sleep 1
 
99783
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99784
     done
 
99785
     exit 1
 
99786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99787
at_status=$? at_failed=false
 
99788
$at_check_filter
 
99789
echo stderr:; cat "$at_stderr"
 
99790
echo stdout:; cat "$at_stdout"
 
99791
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99792
if $at_failed; then :
 
99793
  kill `cat savepid`
 
99794
fi
 
99795
$at_failed && at_fn_log_failure
 
99796
$at_traceon; }
 
99797
 
 
99798
fi
 
99799
$at_failed && at_fn_log_failure
 
99800
$at_traceon; }
 
99801
 
 
99802
   { set +x
 
99803
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
99804
"
 
99805
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:372"
 
99806
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a
 
99807
 
 
99808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99809
at_status=$? at_failed=false
 
99810
$at_check_filter
 
99811
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named a
 
99812
" | \
 
99813
  $at_diff - "$at_stderr" || at_failed=:
 
99814
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
99815
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99816
if $at_failed; then :
 
99817
  cp pid savepid
 
99818
   { set +x
 
99819
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-appctl -t \$PWD/unixctl -e exit"
 
99820
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:372"
 
99821
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99822
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99823
at_status=$? at_failed=false
 
99824
$at_check_filter
 
99825
echo stderr:; cat "$at_stderr"
 
99826
echo stdout:; cat "$at_stdout"
 
99827
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99828
$at_failed && at_fn_log_failure
 
99829
$at_traceon; }
 
99830
 
 
99831
   { set +x
 
99832
$as_echo "$at_srcdir/ovs-vsctl.at:372: # First try a quick sleep, so that the test completes very quickly
 
99833
     # in the normal case.  POSIX doesn't require fractional times to
 
99834
     # work, so this might not work.
 
99835
     sleep 0.1
 
99836
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99837
     # Then wait up to 10 seconds.
 
99838
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99839
       sleep 1
 
99840
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99841
     done
 
99842
     exit 1"
 
99843
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:372"
 
99844
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99845
     # in the normal case.  POSIX doesn't require fractional times to
 
99846
     # work, so this might not work.
 
99847
     sleep 0.1
 
99848
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99849
     # Then wait up to 10 seconds.
 
99850
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99851
       sleep 1
 
99852
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99853
     done
 
99854
     exit 1
 
99855
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99856
at_status=$? at_failed=false
 
99857
$at_check_filter
 
99858
echo stderr:; cat "$at_stderr"
 
99859
echo stdout:; cat "$at_stdout"
 
99860
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99861
if $at_failed; then :
 
99862
  kill `cat savepid`
 
99863
fi
 
99864
$at_failed && at_fn_log_failure
 
99865
$at_traceon; }
 
99866
 
 
99867
fi
 
99868
$at_failed && at_fn_log_failure
 
99869
$at_traceon; }
 
99870
 
 
99871
   { set +x
 
99872
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a1
 
99873
"
 
99874
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:372"
 
99875
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br a1
 
99876
 
 
99877
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99878
at_status=$? at_failed=false
 
99879
$at_check_filter
 
99880
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99881
echo >>"$at_stdout"; $as_echo "a
 
99882
" | \
 
99883
  $at_diff - "$at_stdout" || at_failed=:
 
99884
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99885
if $at_failed; then :
 
99886
  cp pid savepid
 
99887
   { set +x
 
99888
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-appctl -t \$PWD/unixctl -e exit"
 
99889
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:372"
 
99890
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99891
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99892
at_status=$? at_failed=false
 
99893
$at_check_filter
 
99894
echo stderr:; cat "$at_stderr"
 
99895
echo stdout:; cat "$at_stdout"
 
99896
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99897
$at_failed && at_fn_log_failure
 
99898
$at_traceon; }
 
99899
 
 
99900
   { set +x
 
99901
$as_echo "$at_srcdir/ovs-vsctl.at:372: # First try a quick sleep, so that the test completes very quickly
 
99902
     # in the normal case.  POSIX doesn't require fractional times to
 
99903
     # work, so this might not work.
 
99904
     sleep 0.1
 
99905
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99906
     # Then wait up to 10 seconds.
 
99907
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99908
       sleep 1
 
99909
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99910
     done
 
99911
     exit 1"
 
99912
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:372"
 
99913
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99914
     # in the normal case.  POSIX doesn't require fractional times to
 
99915
     # work, so this might not work.
 
99916
     sleep 0.1
 
99917
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99918
     # Then wait up to 10 seconds.
 
99919
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99920
       sleep 1
 
99921
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99922
     done
 
99923
     exit 1
 
99924
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99925
at_status=$? at_failed=false
 
99926
$at_check_filter
 
99927
echo stderr:; cat "$at_stderr"
 
99928
echo stdout:; cat "$at_stdout"
 
99929
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99930
if $at_failed; then :
 
99931
  kill `cat savepid`
 
99932
fi
 
99933
$at_failed && at_fn_log_failure
 
99934
$at_traceon; }
 
99935
 
 
99936
fi
 
99937
$at_failed && at_fn_log_failure
 
99938
$at_traceon; }
 
99939
{ set +x
 
99940
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0
 
99941
"
 
99942
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:372"
 
99943
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0
 
99944
 
 
99945
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99946
at_status=$? at_failed=false
 
99947
$at_check_filter
 
99948
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
99949
echo >>"$at_stdout"; $as_echo "a
 
99950
" | \
 
99951
  $at_diff - "$at_stdout" || at_failed=:
 
99952
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99953
if $at_failed; then :
 
99954
  cp pid savepid
 
99955
   { set +x
 
99956
$as_echo "$at_srcdir/ovs-vsctl.at:372: ovs-appctl -t \$PWD/unixctl -e exit"
 
99957
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:372"
 
99958
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
99959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99960
at_status=$? at_failed=false
 
99961
$at_check_filter
 
99962
echo stderr:; cat "$at_stderr"
 
99963
echo stdout:; cat "$at_stdout"
 
99964
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99965
$at_failed && at_fn_log_failure
 
99966
$at_traceon; }
 
99967
 
 
99968
   { set +x
 
99969
$as_echo "$at_srcdir/ovs-vsctl.at:372: # First try a quick sleep, so that the test completes very quickly
 
99970
     # in the normal case.  POSIX doesn't require fractional times to
 
99971
     # work, so this might not work.
 
99972
     sleep 0.1
 
99973
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99974
     # Then wait up to 10 seconds.
 
99975
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99976
       sleep 1
 
99977
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
99978
     done
 
99979
     exit 1"
 
99980
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:372"
 
99981
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
99982
     # in the normal case.  POSIX doesn't require fractional times to
 
99983
     # work, so this might not work.
 
99984
     sleep 0.1
 
99985
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
99986
     # Then wait up to 10 seconds.
 
99987
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
99988
       sleep 1
 
99989
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
99990
     done
 
99991
     exit 1
 
99992
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
99993
at_status=$? at_failed=false
 
99994
$at_check_filter
 
99995
echo stderr:; cat "$at_stderr"
 
99996
echo stdout:; cat "$at_stdout"
 
99997
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:372"
 
99998
if $at_failed; then :
 
99999
  kill `cat savepid`
 
100000
fi
 
100001
$at_failed && at_fn_log_failure
 
100002
$at_traceon; }
 
100003
 
 
100004
fi
 
100005
$at_failed && at_fn_log_failure
 
100006
$at_traceon; }
 
100007
 
 
100008
{ set +x
 
100009
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
100010
"
 
100011
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:373"
 
100012
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces a
 
100013
 
 
100014
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100015
at_status=$? at_failed=false
 
100016
$at_check_filter
 
100017
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
100018
echo >>"$at_stdout"; $as_echo "a1
 
100019
a2
 
100020
a3
 
100021
" | \
 
100022
  $at_diff - "$at_stdout" || at_failed=:
 
100023
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100024
if $at_failed; then :
 
100025
  cp pid savepid
 
100026
   { set +x
 
100027
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-appctl -t \$PWD/unixctl -e exit"
 
100028
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:373"
 
100029
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100030
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100031
at_status=$? at_failed=false
 
100032
$at_check_filter
 
100033
echo stderr:; cat "$at_stderr"
 
100034
echo stdout:; cat "$at_stdout"
 
100035
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100036
$at_failed && at_fn_log_failure
 
100037
$at_traceon; }
 
100038
 
 
100039
   { set +x
 
100040
$as_echo "$at_srcdir/ovs-vsctl.at:373: # First try a quick sleep, so that the test completes very quickly
 
100041
     # in the normal case.  POSIX doesn't require fractional times to
 
100042
     # work, so this might not work.
 
100043
     sleep 0.1
 
100044
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100045
     # Then wait up to 10 seconds.
 
100046
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100047
       sleep 1
 
100048
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100049
     done
 
100050
     exit 1"
 
100051
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:373"
 
100052
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100053
     # in the normal case.  POSIX doesn't require fractional times to
 
100054
     # work, so this might not work.
 
100055
     sleep 0.1
 
100056
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100057
     # Then wait up to 10 seconds.
 
100058
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100059
       sleep 1
 
100060
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100061
     done
 
100062
     exit 1
 
100063
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100064
at_status=$? at_failed=false
 
100065
$at_check_filter
 
100066
echo stderr:; cat "$at_stderr"
 
100067
echo stdout:; cat "$at_stdout"
 
100068
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100069
if $at_failed; then :
 
100070
  kill `cat savepid`
 
100071
fi
 
100072
$at_failed && at_fn_log_failure
 
100073
$at_traceon; }
 
100074
 
 
100075
fi
 
100076
$at_failed && at_fn_log_failure
 
100077
$at_traceon; }
 
100078
 
 
100079
   { set +x
 
100080
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
100081
"
 
100082
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:373"
 
100083
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a
 
100084
 
 
100085
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100086
at_status=$? at_failed=false
 
100087
$at_check_filter
 
100088
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named a
 
100089
" | \
 
100090
  $at_diff - "$at_stderr" || at_failed=:
 
100091
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
100092
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100093
if $at_failed; then :
 
100094
  cp pid savepid
 
100095
   { set +x
 
100096
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-appctl -t \$PWD/unixctl -e exit"
 
100097
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:373"
 
100098
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100099
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100100
at_status=$? at_failed=false
 
100101
$at_check_filter
 
100102
echo stderr:; cat "$at_stderr"
 
100103
echo stdout:; cat "$at_stdout"
 
100104
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100105
$at_failed && at_fn_log_failure
 
100106
$at_traceon; }
 
100107
 
 
100108
   { set +x
 
100109
$as_echo "$at_srcdir/ovs-vsctl.at:373: # First try a quick sleep, so that the test completes very quickly
 
100110
     # in the normal case.  POSIX doesn't require fractional times to
 
100111
     # work, so this might not work.
 
100112
     sleep 0.1
 
100113
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100114
     # Then wait up to 10 seconds.
 
100115
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100116
       sleep 1
 
100117
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100118
     done
 
100119
     exit 1"
 
100120
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:373"
 
100121
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100122
     # in the normal case.  POSIX doesn't require fractional times to
 
100123
     # work, so this might not work.
 
100124
     sleep 0.1
 
100125
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100126
     # Then wait up to 10 seconds.
 
100127
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100128
       sleep 1
 
100129
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100130
     done
 
100131
     exit 1
 
100132
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100133
at_status=$? at_failed=false
 
100134
$at_check_filter
 
100135
echo stderr:; cat "$at_stderr"
 
100136
echo stdout:; cat "$at_stdout"
 
100137
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100138
if $at_failed; then :
 
100139
  kill `cat savepid`
 
100140
fi
 
100141
$at_failed && at_fn_log_failure
 
100142
$at_traceon; }
 
100143
 
 
100144
fi
 
100145
$at_failed && at_fn_log_failure
 
100146
$at_traceon; }
 
100147
 
 
100148
   { set +x
 
100149
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a1
 
100150
"
 
100151
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:373"
 
100152
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a1
 
100153
 
 
100154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100155
at_status=$? at_failed=false
 
100156
$at_check_filter
 
100157
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
100158
echo >>"$at_stdout"; $as_echo "a
 
100159
" | \
 
100160
  $at_diff - "$at_stdout" || at_failed=:
 
100161
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100162
if $at_failed; then :
 
100163
  cp pid savepid
 
100164
   { set +x
 
100165
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-appctl -t \$PWD/unixctl -e exit"
 
100166
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:373"
 
100167
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100169
at_status=$? at_failed=false
 
100170
$at_check_filter
 
100171
echo stderr:; cat "$at_stderr"
 
100172
echo stdout:; cat "$at_stdout"
 
100173
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100174
$at_failed && at_fn_log_failure
 
100175
$at_traceon; }
 
100176
 
 
100177
   { set +x
 
100178
$as_echo "$at_srcdir/ovs-vsctl.at:373: # First try a quick sleep, so that the test completes very quickly
 
100179
     # in the normal case.  POSIX doesn't require fractional times to
 
100180
     # work, so this might not work.
 
100181
     sleep 0.1
 
100182
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100183
     # Then wait up to 10 seconds.
 
100184
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100185
       sleep 1
 
100186
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100187
     done
 
100188
     exit 1"
 
100189
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:373"
 
100190
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100191
     # in the normal case.  POSIX doesn't require fractional times to
 
100192
     # work, so this might not work.
 
100193
     sleep 0.1
 
100194
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100195
     # Then wait up to 10 seconds.
 
100196
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100197
       sleep 1
 
100198
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100199
     done
 
100200
     exit 1
 
100201
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100202
at_status=$? at_failed=false
 
100203
$at_check_filter
 
100204
echo stderr:; cat "$at_stderr"
 
100205
echo stdout:; cat "$at_stdout"
 
100206
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100207
if $at_failed; then :
 
100208
  kill `cat savepid`
 
100209
fi
 
100210
$at_failed && at_fn_log_failure
 
100211
$at_traceon; }
 
100212
 
 
100213
fi
 
100214
$at_failed && at_fn_log_failure
 
100215
$at_traceon; }
 
100216
{ set +x
 
100217
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a2
 
100218
"
 
100219
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:373"
 
100220
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a2
 
100221
 
 
100222
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100223
at_status=$? at_failed=false
 
100224
$at_check_filter
 
100225
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
100226
echo >>"$at_stdout"; $as_echo "a
 
100227
" | \
 
100228
  $at_diff - "$at_stdout" || at_failed=:
 
100229
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100230
if $at_failed; then :
 
100231
  cp pid savepid
 
100232
   { set +x
 
100233
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-appctl -t \$PWD/unixctl -e exit"
 
100234
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:373"
 
100235
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100236
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100237
at_status=$? at_failed=false
 
100238
$at_check_filter
 
100239
echo stderr:; cat "$at_stderr"
 
100240
echo stdout:; cat "$at_stdout"
 
100241
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100242
$at_failed && at_fn_log_failure
 
100243
$at_traceon; }
 
100244
 
 
100245
   { set +x
 
100246
$as_echo "$at_srcdir/ovs-vsctl.at:373: # First try a quick sleep, so that the test completes very quickly
 
100247
     # in the normal case.  POSIX doesn't require fractional times to
 
100248
     # work, so this might not work.
 
100249
     sleep 0.1
 
100250
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100251
     # Then wait up to 10 seconds.
 
100252
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100253
       sleep 1
 
100254
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100255
     done
 
100256
     exit 1"
 
100257
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:373"
 
100258
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100259
     # in the normal case.  POSIX doesn't require fractional times to
 
100260
     # work, so this might not work.
 
100261
     sleep 0.1
 
100262
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100263
     # Then wait up to 10 seconds.
 
100264
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100265
       sleep 1
 
100266
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100267
     done
 
100268
     exit 1
 
100269
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100270
at_status=$? at_failed=false
 
100271
$at_check_filter
 
100272
echo stderr:; cat "$at_stderr"
 
100273
echo stdout:; cat "$at_stdout"
 
100274
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100275
if $at_failed; then :
 
100276
  kill `cat savepid`
 
100277
fi
 
100278
$at_failed && at_fn_log_failure
 
100279
$at_traceon; }
 
100280
 
 
100281
fi
 
100282
$at_failed && at_fn_log_failure
 
100283
$at_traceon; }
 
100284
{ set +x
 
100285
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a3
 
100286
"
 
100287
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:373"
 
100288
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br a3
 
100289
 
 
100290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100291
at_status=$? at_failed=false
 
100292
$at_check_filter
 
100293
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
100294
echo >>"$at_stdout"; $as_echo "a
 
100295
" | \
 
100296
  $at_diff - "$at_stdout" || at_failed=:
 
100297
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100298
if $at_failed; then :
 
100299
  cp pid savepid
 
100300
   { set +x
 
100301
$as_echo "$at_srcdir/ovs-vsctl.at:373: ovs-appctl -t \$PWD/unixctl -e exit"
 
100302
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:373"
 
100303
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100304
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100305
at_status=$? at_failed=false
 
100306
$at_check_filter
 
100307
echo stderr:; cat "$at_stderr"
 
100308
echo stdout:; cat "$at_stdout"
 
100309
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100310
$at_failed && at_fn_log_failure
 
100311
$at_traceon; }
 
100312
 
 
100313
   { set +x
 
100314
$as_echo "$at_srcdir/ovs-vsctl.at:373: # First try a quick sleep, so that the test completes very quickly
 
100315
     # in the normal case.  POSIX doesn't require fractional times to
 
100316
     # work, so this might not work.
 
100317
     sleep 0.1
 
100318
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100319
     # Then wait up to 10 seconds.
 
100320
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100321
       sleep 1
 
100322
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100323
     done
 
100324
     exit 1"
 
100325
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:373"
 
100326
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100327
     # in the normal case.  POSIX doesn't require fractional times to
 
100328
     # work, so this might not work.
 
100329
     sleep 0.1
 
100330
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100331
     # Then wait up to 10 seconds.
 
100332
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100333
       sleep 1
 
100334
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100335
     done
 
100336
     exit 1
 
100337
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100338
at_status=$? at_failed=false
 
100339
$at_check_filter
 
100340
echo stderr:; cat "$at_stderr"
 
100341
echo stdout:; cat "$at_stdout"
 
100342
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:373"
 
100343
if $at_failed; then :
 
100344
  kill `cat savepid`
 
100345
fi
 
100346
$at_failed && at_fn_log_failure
 
100347
$at_traceon; }
 
100348
 
 
100349
fi
 
100350
$at_failed && at_fn_log_failure
 
100351
$at_traceon; }
 
100352
 
 
100353
cp pid savepid
 
100354
   { set +x
 
100355
$as_echo "$at_srcdir/ovs-vsctl.at:374: ovs-appctl -t \$PWD/unixctl -e exit"
 
100356
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:374"
 
100357
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100358
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100359
at_status=$? at_failed=false
 
100360
$at_check_filter
 
100361
echo stderr:; cat "$at_stderr"
 
100362
echo stdout:; cat "$at_stdout"
 
100363
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:374"
 
100364
$at_failed && at_fn_log_failure
 
100365
$at_traceon; }
 
100366
 
 
100367
   { set +x
 
100368
$as_echo "$at_srcdir/ovs-vsctl.at:374: # First try a quick sleep, so that the test completes very quickly
 
100369
     # in the normal case.  POSIX doesn't require fractional times to
 
100370
     # work, so this might not work.
 
100371
     sleep 0.1
 
100372
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100373
     # Then wait up to 10 seconds.
 
100374
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100375
       sleep 1
 
100376
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100377
     done
 
100378
     exit 1"
 
100379
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:374"
 
100380
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100381
     # in the normal case.  POSIX doesn't require fractional times to
 
100382
     # work, so this might not work.
 
100383
     sleep 0.1
 
100384
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100385
     # Then wait up to 10 seconds.
 
100386
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100387
       sleep 1
 
100388
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100389
     done
 
100390
     exit 1
 
100391
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100392
at_status=$? at_failed=false
 
100393
$at_check_filter
 
100394
echo stderr:; cat "$at_stderr"
 
100395
echo stdout:; cat "$at_stdout"
 
100396
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:374"
 
100397
if $at_failed; then :
 
100398
  kill `cat savepid`
 
100399
fi
 
100400
$at_failed && at_fn_log_failure
 
100401
$at_traceon; }
 
100402
 
 
100403
  set +x
 
100404
  $at_times_p && times >"$at_times_file"
 
100405
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
100406
read at_status <"$at_status_file"
 
100407
#AT_STOP_954
 
100408
#AT_START_955
 
100409
at_fn_group_banner 955 'ovs-vsctl.at:377' \
 
100410
  "controllers" "                                    " 65
 
100411
at_xfail=no
 
100412
(
 
100413
  $as_echo "955. $at_setup_line: testing $at_desc ..."
 
100414
  $at_traceon
 
100415
 
 
100416
 
 
100417
{ set +x
 
100418
$as_echo "$at_srcdir/ovs-vsctl.at:379: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
100419
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:379"
 
100420
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
100421
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100422
at_status=$? at_failed=false
 
100423
$at_check_filter
 
100424
echo stderr:; cat "$at_stderr"
 
100425
echo stdout:; tee stdout <"$at_stdout"
 
100426
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:379"
 
100427
$at_failed && at_fn_log_failure
 
100428
$at_traceon; }
 
100429
 
 
100430
   { set +x
 
100431
$as_echo "$at_srcdir/ovs-vsctl.at:379: ovsdb-tool transact db \\
 
100432
        '[\"Open_vSwitch\",
 
100433
          {\"op\": \"insert\",
 
100434
           \"table\": \"Open_vSwitch\",
 
100435
           \"row\": {}}]'"
 
100436
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:379"
 
100437
( $at_check_trace; ovsdb-tool transact db \
 
100438
        '["Open_vSwitch",
 
100439
          {"op": "insert",
 
100440
           "table": "Open_vSwitch",
 
100441
           "row": {}}]'
 
100442
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100443
at_status=$? at_failed=false
 
100444
$at_check_filter
 
100445
echo stderr:; cat "$at_stderr"
 
100446
echo stdout:; cat "$at_stdout"
 
100447
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:379"
 
100448
$at_failed && at_fn_log_failure
 
100449
$at_traceon; }
 
100450
 
 
100451
   { set +x
 
100452
$as_echo "$at_srcdir/ovs-vsctl.at:379: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
100453
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:379"
 
100454
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
100455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100456
at_status=$? at_failed=false
 
100457
$at_check_filter
 
100458
echo stderr:; cat "$at_stderr"
 
100459
echo stdout:; cat "$at_stdout"
 
100460
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:379"
 
100461
$at_failed && at_fn_log_failure
 
100462
$at_traceon; }
 
100463
 
 
100464
{ set +x
 
100465
$as_echo "$at_srcdir/ovs-vsctl.at:380: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- add-br br0 -- get-controller br0 -- set-controller br0 tcp:4.5.6.7 -- get-controller br0 -- del-controller br0 -- get-controller br0 -- set-controller br0 tcp:8.9.10.11 tcp:5.4.3.2 -- get-controller br0"
 
100466
at_fn_check_prepare_trace "ovs-vsctl.at:380"
 
100467
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- add-br br0 -- get-controller br0 -- set-controller br0 tcp:4.5.6.7 -- get-controller br0 -- del-controller br0 -- get-controller br0 -- set-controller br0 tcp:8.9.10.11 tcp:5.4.3.2 -- get-controller br0
 
100468
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100469
at_status=$? at_failed=false
 
100470
$at_check_filter
 
100471
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
100472
echo >>"$at_stdout"; $as_echo "
 
100473
 
 
100474
 
 
100475
tcp:4.5.6.7
 
100476
 
 
100477
 
 
100478
 
 
100479
tcp:5.4.3.2\\ntcp:8.9.10.11
 
100480
" | \
 
100481
  $at_diff - "$at_stdout" || at_failed=:
 
100482
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:380"
 
100483
if $at_failed; then :
 
100484
  cp pid savepid
 
100485
   { set +x
 
100486
$as_echo "$at_srcdir/ovs-vsctl.at:380: ovs-appctl -t \$PWD/unixctl -e exit"
 
100487
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:380"
 
100488
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100489
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100490
at_status=$? at_failed=false
 
100491
$at_check_filter
 
100492
echo stderr:; cat "$at_stderr"
 
100493
echo stdout:; cat "$at_stdout"
 
100494
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:380"
 
100495
$at_failed && at_fn_log_failure
 
100496
$at_traceon; }
 
100497
 
 
100498
   { set +x
 
100499
$as_echo "$at_srcdir/ovs-vsctl.at:380: # First try a quick sleep, so that the test completes very quickly
 
100500
     # in the normal case.  POSIX doesn't require fractional times to
 
100501
     # work, so this might not work.
 
100502
     sleep 0.1
 
100503
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100504
     # Then wait up to 10 seconds.
 
100505
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100506
       sleep 1
 
100507
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100508
     done
 
100509
     exit 1"
 
100510
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:380"
 
100511
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100512
     # in the normal case.  POSIX doesn't require fractional times to
 
100513
     # work, so this might not work.
 
100514
     sleep 0.1
 
100515
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100516
     # Then wait up to 10 seconds.
 
100517
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100518
       sleep 1
 
100519
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100520
     done
 
100521
     exit 1
 
100522
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100523
at_status=$? at_failed=false
 
100524
$at_check_filter
 
100525
echo stderr:; cat "$at_stderr"
 
100526
echo stdout:; cat "$at_stdout"
 
100527
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:380"
 
100528
if $at_failed; then :
 
100529
  kill `cat savepid`
 
100530
fi
 
100531
$at_failed && at_fn_log_failure
 
100532
$at_traceon; }
 
100533
 
 
100534
fi
 
100535
$at_failed && at_fn_log_failure
 
100536
$at_traceon; }
 
100537
 
 
100538
cp pid savepid
 
100539
   { set +x
 
100540
$as_echo "$at_srcdir/ovs-vsctl.at:400: ovs-appctl -t \$PWD/unixctl -e exit"
 
100541
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:400"
 
100542
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100543
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100544
at_status=$? at_failed=false
 
100545
$at_check_filter
 
100546
echo stderr:; cat "$at_stderr"
 
100547
echo stdout:; cat "$at_stdout"
 
100548
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:400"
 
100549
$at_failed && at_fn_log_failure
 
100550
$at_traceon; }
 
100551
 
 
100552
   { set +x
 
100553
$as_echo "$at_srcdir/ovs-vsctl.at:400: # First try a quick sleep, so that the test completes very quickly
 
100554
     # in the normal case.  POSIX doesn't require fractional times to
 
100555
     # work, so this might not work.
 
100556
     sleep 0.1
 
100557
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100558
     # Then wait up to 10 seconds.
 
100559
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100560
       sleep 1
 
100561
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100562
     done
 
100563
     exit 1"
 
100564
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:400"
 
100565
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100566
     # in the normal case.  POSIX doesn't require fractional times to
 
100567
     # work, so this might not work.
 
100568
     sleep 0.1
 
100569
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100570
     # Then wait up to 10 seconds.
 
100571
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100572
       sleep 1
 
100573
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100574
     done
 
100575
     exit 1
 
100576
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100577
at_status=$? at_failed=false
 
100578
$at_check_filter
 
100579
echo stderr:; cat "$at_stderr"
 
100580
echo stdout:; cat "$at_stdout"
 
100581
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:400"
 
100582
if $at_failed; then :
 
100583
  kill `cat savepid`
 
100584
fi
 
100585
$at_failed && at_fn_log_failure
 
100586
$at_traceon; }
 
100587
 
 
100588
  set +x
 
100589
  $at_times_p && times >"$at_times_file"
 
100590
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
100591
read at_status <"$at_status_file"
 
100592
#AT_STOP_955
 
100593
#AT_START_956
 
100594
at_fn_group_banner 956 'ovs-vsctl.at:488' \
 
100595
  "simple fake bridge (VLAN 9)" "                    " 66
 
100596
at_xfail=no
 
100597
(
 
100598
  $as_echo "956. $at_setup_line: testing $at_desc ..."
 
100599
  $at_traceon
 
100600
 
 
100601
 
 
100602
{ set +x
 
100603
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
100604
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:488"
 
100605
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
100606
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100607
at_status=$? at_failed=false
 
100608
$at_check_filter
 
100609
echo stderr:; cat "$at_stderr"
 
100610
echo stdout:; tee stdout <"$at_stdout"
 
100611
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100612
$at_failed && at_fn_log_failure
 
100613
$at_traceon; }
 
100614
 
 
100615
   { set +x
 
100616
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-tool transact db \\
 
100617
        '[\"Open_vSwitch\",
 
100618
          {\"op\": \"insert\",
 
100619
           \"table\": \"Open_vSwitch\",
 
100620
           \"row\": {}}]'"
 
100621
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
100622
( $at_check_trace; ovsdb-tool transact db \
 
100623
        '["Open_vSwitch",
 
100624
          {"op": "insert",
 
100625
           "table": "Open_vSwitch",
 
100626
           "row": {}}]'
 
100627
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100628
at_status=$? at_failed=false
 
100629
$at_check_filter
 
100630
echo stderr:; cat "$at_stderr"
 
100631
echo stdout:; cat "$at_stdout"
 
100632
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100633
$at_failed && at_fn_log_failure
 
100634
$at_traceon; }
 
100635
 
 
100636
   { set +x
 
100637
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
100638
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:488"
 
100639
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
100640
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100641
at_status=$? at_failed=false
 
100642
$at_check_filter
 
100643
echo stderr:; cat "$at_stderr"
 
100644
echo stdout:; cat "$at_stdout"
 
100645
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100646
$at_failed && at_fn_log_failure
 
100647
$at_traceon; }
 
100648
 
 
100649
{ set +x
 
100650
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
100651
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
100652
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
100653
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
100654
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 9
 
100655
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 9
 
100656
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.9
 
100657
"
 
100658
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
100659
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
100660
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
100661
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
100662
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
100663
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 9
 
100664
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 9
 
100665
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.9
 
100666
 
 
100667
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100668
at_status=$? at_failed=false
 
100669
$at_check_filter
 
100670
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
100671
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
100672
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100673
if $at_failed; then :
 
100674
  cp pid savepid
 
100675
   { set +x
 
100676
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
100677
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
100678
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100679
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100680
at_status=$? at_failed=false
 
100681
$at_check_filter
 
100682
echo stderr:; cat "$at_stderr"
 
100683
echo stdout:; cat "$at_stdout"
 
100684
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100685
$at_failed && at_fn_log_failure
 
100686
$at_traceon; }
 
100687
 
 
100688
   { set +x
 
100689
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
100690
     # in the normal case.  POSIX doesn't require fractional times to
 
100691
     # work, so this might not work.
 
100692
     sleep 0.1
 
100693
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100694
     # Then wait up to 10 seconds.
 
100695
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100696
       sleep 1
 
100697
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100698
     done
 
100699
     exit 1"
 
100700
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
100701
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100702
     # in the normal case.  POSIX doesn't require fractional times to
 
100703
     # work, so this might not work.
 
100704
     sleep 0.1
 
100705
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100706
     # Then wait up to 10 seconds.
 
100707
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100708
       sleep 1
 
100709
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100710
     done
 
100711
     exit 1
 
100712
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100713
at_status=$? at_failed=false
 
100714
$at_check_filter
 
100715
echo stderr:; cat "$at_stderr"
 
100716
echo stdout:; cat "$at_stdout"
 
100717
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100718
if $at_failed; then :
 
100719
  kill `cat savepid`
 
100720
fi
 
100721
$at_failed && at_fn_log_failure
 
100722
$at_traceon; }
 
100723
 
 
100724
fi
 
100725
$at_failed && at_fn_log_failure
 
100726
$at_traceon; }
 
100727
 
 
100728
{ set +x
 
100729
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1
 
100730
"
 
100731
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
100732
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1
 
100733
 
 
100734
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100735
at_status=$? at_failed=false
 
100736
$at_check_filter
 
100737
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-br xapi1\" but xapi1 is a VLAN bridge for VLAN 9
 
100738
" | \
 
100739
  $at_diff - "$at_stderr" || at_failed=:
 
100740
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
100741
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100742
if $at_failed; then :
 
100743
  cp pid savepid
 
100744
   { set +x
 
100745
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
100746
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
100747
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100748
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100749
at_status=$? at_failed=false
 
100750
$at_check_filter
 
100751
echo stderr:; cat "$at_stderr"
 
100752
echo stdout:; cat "$at_stdout"
 
100753
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100754
$at_failed && at_fn_log_failure
 
100755
$at_traceon; }
 
100756
 
 
100757
   { set +x
 
100758
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
100759
     # in the normal case.  POSIX doesn't require fractional times to
 
100760
     # work, so this might not work.
 
100761
     sleep 0.1
 
100762
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100763
     # Then wait up to 10 seconds.
 
100764
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100765
       sleep 1
 
100766
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100767
     done
 
100768
     exit 1"
 
100769
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
100770
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100771
     # in the normal case.  POSIX doesn't require fractional times to
 
100772
     # work, so this might not work.
 
100773
     sleep 0.1
 
100774
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100775
     # Then wait up to 10 seconds.
 
100776
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100777
       sleep 1
 
100778
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100779
     done
 
100780
     exit 1
 
100781
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100782
at_status=$? at_failed=false
 
100783
$at_check_filter
 
100784
echo stderr:; cat "$at_stderr"
 
100785
echo stdout:; cat "$at_stdout"
 
100786
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100787
if $at_failed; then :
 
100788
  kill `cat savepid`
 
100789
fi
 
100790
$at_failed && at_fn_log_failure
 
100791
$at_traceon; }
 
100792
 
 
100793
fi
 
100794
$at_failed && at_fn_log_failure
 
100795
$at_traceon; }
 
100796
 
 
100797
{ set +x
 
100798
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xxx 9
 
100799
"
 
100800
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
100801
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xxx 9
 
100802
 
 
100803
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100804
at_status=$? at_failed=false
 
100805
$at_check_filter
 
100806
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-br xapi1 xxx 9\" but xapi1 has the wrong parent xenbr0
 
100807
" | \
 
100808
  $at_diff - "$at_stderr" || at_failed=:
 
100809
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
100810
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100811
if $at_failed; then :
 
100812
  cp pid savepid
 
100813
   { set +x
 
100814
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
100815
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
100816
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100817
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100818
at_status=$? at_failed=false
 
100819
$at_check_filter
 
100820
echo stderr:; cat "$at_stderr"
 
100821
echo stdout:; cat "$at_stdout"
 
100822
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100823
$at_failed && at_fn_log_failure
 
100824
$at_traceon; }
 
100825
 
 
100826
   { set +x
 
100827
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
100828
     # in the normal case.  POSIX doesn't require fractional times to
 
100829
     # work, so this might not work.
 
100830
     sleep 0.1
 
100831
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100832
     # Then wait up to 10 seconds.
 
100833
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100834
       sleep 1
 
100835
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100836
     done
 
100837
     exit 1"
 
100838
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
100839
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100840
     # in the normal case.  POSIX doesn't require fractional times to
 
100841
     # work, so this might not work.
 
100842
     sleep 0.1
 
100843
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100844
     # Then wait up to 10 seconds.
 
100845
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100846
       sleep 1
 
100847
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100848
     done
 
100849
     exit 1
 
100850
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100851
at_status=$? at_failed=false
 
100852
$at_check_filter
 
100853
echo stderr:; cat "$at_stderr"
 
100854
echo stdout:; cat "$at_stdout"
 
100855
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100856
if $at_failed; then :
 
100857
  kill `cat savepid`
 
100858
fi
 
100859
$at_failed && at_fn_log_failure
 
100860
$at_traceon; }
 
100861
 
 
100862
fi
 
100863
$at_failed && at_fn_log_failure
 
100864
$at_traceon; }
 
100865
 
 
100866
{ set +x
 
100867
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 10
 
100868
"
 
100869
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
100870
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 10
 
100871
 
 
100872
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100873
at_status=$? at_failed=false
 
100874
$at_check_filter
 
100875
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-br xapi1 xenbr0 10\" but xapi1 is a VLAN bridge for the wrong VLAN 9
 
100876
" | \
 
100877
  $at_diff - "$at_stderr" || at_failed=:
 
100878
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
100879
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100880
if $at_failed; then :
 
100881
  cp pid savepid
 
100882
   { set +x
 
100883
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
100884
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
100885
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100886
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100887
at_status=$? at_failed=false
 
100888
$at_check_filter
 
100889
echo stderr:; cat "$at_stderr"
 
100890
echo stdout:; cat "$at_stdout"
 
100891
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100892
$at_failed && at_fn_log_failure
 
100893
$at_traceon; }
 
100894
 
 
100895
   { set +x
 
100896
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
100897
     # in the normal case.  POSIX doesn't require fractional times to
 
100898
     # work, so this might not work.
 
100899
     sleep 0.1
 
100900
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100901
     # Then wait up to 10 seconds.
 
100902
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100903
       sleep 1
 
100904
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100905
     done
 
100906
     exit 1"
 
100907
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
100908
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100909
     # in the normal case.  POSIX doesn't require fractional times to
 
100910
     # work, so this might not work.
 
100911
     sleep 0.1
 
100912
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100913
     # Then wait up to 10 seconds.
 
100914
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100915
       sleep 1
 
100916
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100917
     done
 
100918
     exit 1
 
100919
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100920
at_status=$? at_failed=false
 
100921
$at_check_filter
 
100922
echo stderr:; cat "$at_stderr"
 
100923
echo stdout:; cat "$at_stdout"
 
100924
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100925
if $at_failed; then :
 
100926
  kill `cat savepid`
 
100927
fi
 
100928
$at_failed && at_fn_log_failure
 
100929
$at_traceon; }
 
100930
 
 
100931
fi
 
100932
$at_failed && at_fn_log_failure
 
100933
$at_traceon; }
 
100934
 
 
100935
   { set +x
 
100936
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
100937
"
 
100938
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
100939
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
100940
 
 
100941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100942
at_status=$? at_failed=false
 
100943
$at_check_filter
 
100944
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
100945
echo >>"$at_stdout"; $as_echo "xapi1
 
100946
xenbr0
 
100947
" | \
 
100948
  $at_diff - "$at_stdout" || at_failed=:
 
100949
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100950
if $at_failed; then :
 
100951
  cp pid savepid
 
100952
   { set +x
 
100953
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
100954
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
100955
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
100956
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100957
at_status=$? at_failed=false
 
100958
$at_check_filter
 
100959
echo stderr:; cat "$at_stderr"
 
100960
echo stdout:; cat "$at_stdout"
 
100961
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100962
$at_failed && at_fn_log_failure
 
100963
$at_traceon; }
 
100964
 
 
100965
   { set +x
 
100966
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
100967
     # in the normal case.  POSIX doesn't require fractional times to
 
100968
     # work, so this might not work.
 
100969
     sleep 0.1
 
100970
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100971
     # Then wait up to 10 seconds.
 
100972
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100973
       sleep 1
 
100974
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
100975
     done
 
100976
     exit 1"
 
100977
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
100978
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
100979
     # in the normal case.  POSIX doesn't require fractional times to
 
100980
     # work, so this might not work.
 
100981
     sleep 0.1
 
100982
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
100983
     # Then wait up to 10 seconds.
 
100984
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
100985
       sleep 1
 
100986
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
100987
     done
 
100988
     exit 1
 
100989
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
100990
at_status=$? at_failed=false
 
100991
$at_check_filter
 
100992
echo stderr:; cat "$at_stderr"
 
100993
echo stdout:; cat "$at_stdout"
 
100994
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
100995
if $at_failed; then :
 
100996
  kill `cat savepid`
 
100997
fi
 
100998
$at_failed && at_fn_log_failure
 
100999
$at_traceon; }
 
101000
 
 
101001
fi
 
101002
$at_failed && at_fn_log_failure
 
101003
$at_traceon; }
 
101004
 
 
101005
 
 
101006
      { set +x
 
101007
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
101008
"
 
101009
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101010
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
101011
 
 
101012
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101013
at_status=$? at_failed=false
 
101014
$at_check_filter
 
101015
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101016
echo >>"$at_stdout"; $as_echo "xapi1\\nxenbr0
 
101017
" | \
 
101018
  $at_diff - "$at_stdout" || at_failed=:
 
101019
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101020
if $at_failed; then :
 
101021
  cp pid savepid
 
101022
   { set +x
 
101023
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101024
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101025
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101027
at_status=$? at_failed=false
 
101028
$at_check_filter
 
101029
echo stderr:; cat "$at_stderr"
 
101030
echo stdout:; cat "$at_stdout"
 
101031
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101032
$at_failed && at_fn_log_failure
 
101033
$at_traceon; }
 
101034
 
 
101035
   { set +x
 
101036
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101037
     # in the normal case.  POSIX doesn't require fractional times to
 
101038
     # work, so this might not work.
 
101039
     sleep 0.1
 
101040
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101041
     # Then wait up to 10 seconds.
 
101042
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101043
       sleep 1
 
101044
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101045
     done
 
101046
     exit 1"
 
101047
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101048
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101049
     # in the normal case.  POSIX doesn't require fractional times to
 
101050
     # work, so this might not work.
 
101051
     sleep 0.1
 
101052
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101053
     # Then wait up to 10 seconds.
 
101054
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101055
       sleep 1
 
101056
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101057
     done
 
101058
     exit 1
 
101059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101060
at_status=$? at_failed=false
 
101061
$at_check_filter
 
101062
echo stderr:; cat "$at_stderr"
 
101063
echo stdout:; cat "$at_stdout"
 
101064
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101065
if $at_failed; then :
 
101066
  kill `cat savepid`
 
101067
fi
 
101068
$at_failed && at_fn_log_failure
 
101069
$at_traceon; }
 
101070
 
 
101071
fi
 
101072
$at_failed && at_fn_log_failure
 
101073
$at_traceon; }
 
101074
 
 
101075
 
 
101076
         { set +x
 
101077
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
101078
"
 
101079
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101080
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
101081
 
 
101082
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101083
at_status=$? at_failed=false
 
101084
$at_check_filter
 
101085
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101086
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
101087
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101088
if $at_failed; then :
 
101089
  cp pid savepid
 
101090
   { set +x
 
101091
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101092
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101093
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101094
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101095
at_status=$? at_failed=false
 
101096
$at_check_filter
 
101097
echo stderr:; cat "$at_stderr"
 
101098
echo stdout:; cat "$at_stdout"
 
101099
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101100
$at_failed && at_fn_log_failure
 
101101
$at_traceon; }
 
101102
 
 
101103
   { set +x
 
101104
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101105
     # in the normal case.  POSIX doesn't require fractional times to
 
101106
     # work, so this might not work.
 
101107
     sleep 0.1
 
101108
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101109
     # Then wait up to 10 seconds.
 
101110
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101111
       sleep 1
 
101112
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101113
     done
 
101114
     exit 1"
 
101115
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101116
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101117
     # in the normal case.  POSIX doesn't require fractional times to
 
101118
     # work, so this might not work.
 
101119
     sleep 0.1
 
101120
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101121
     # Then wait up to 10 seconds.
 
101122
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101123
       sleep 1
 
101124
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101125
     done
 
101126
     exit 1
 
101127
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101128
at_status=$? at_failed=false
 
101129
$at_check_filter
 
101130
echo stderr:; cat "$at_stderr"
 
101131
echo stdout:; cat "$at_stdout"
 
101132
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101133
if $at_failed; then :
 
101134
  kill `cat savepid`
 
101135
fi
 
101136
$at_failed && at_fn_log_failure
 
101137
$at_traceon; }
 
101138
 
 
101139
fi
 
101140
$at_failed && at_fn_log_failure
 
101141
$at_traceon; }
 
101142
{ set +x
 
101143
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
101144
"
 
101145
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101146
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
101147
 
 
101148
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101149
at_status=$? at_failed=false
 
101150
$at_check_filter
 
101151
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101152
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
101153
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101154
if $at_failed; then :
 
101155
  cp pid savepid
 
101156
   { set +x
 
101157
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101158
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101159
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101160
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101161
at_status=$? at_failed=false
 
101162
$at_check_filter
 
101163
echo stderr:; cat "$at_stderr"
 
101164
echo stdout:; cat "$at_stdout"
 
101165
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101166
$at_failed && at_fn_log_failure
 
101167
$at_traceon; }
 
101168
 
 
101169
   { set +x
 
101170
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101171
     # in the normal case.  POSIX doesn't require fractional times to
 
101172
     # work, so this might not work.
 
101173
     sleep 0.1
 
101174
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101175
     # Then wait up to 10 seconds.
 
101176
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101177
       sleep 1
 
101178
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101179
     done
 
101180
     exit 1"
 
101181
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101182
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101183
     # in the normal case.  POSIX doesn't require fractional times to
 
101184
     # work, so this might not work.
 
101185
     sleep 0.1
 
101186
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101187
     # Then wait up to 10 seconds.
 
101188
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101189
       sleep 1
 
101190
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101191
     done
 
101192
     exit 1
 
101193
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101194
at_status=$? at_failed=false
 
101195
$at_check_filter
 
101196
echo stderr:; cat "$at_stderr"
 
101197
echo stdout:; cat "$at_stdout"
 
101198
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101199
if $at_failed; then :
 
101200
  kill `cat savepid`
 
101201
fi
 
101202
$at_failed && at_fn_log_failure
 
101203
$at_traceon; }
 
101204
 
 
101205
fi
 
101206
$at_failed && at_fn_log_failure
 
101207
$at_traceon; }
 
101208
 
 
101209
   { set +x
 
101210
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
101211
"
 
101212
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101213
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
101214
 
 
101215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101216
at_status=$? at_failed=false
 
101217
$at_check_filter
 
101218
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101219
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
101220
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101221
if $at_failed; then :
 
101222
  cp pid savepid
 
101223
   { set +x
 
101224
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101225
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101226
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101227
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101228
at_status=$? at_failed=false
 
101229
$at_check_filter
 
101230
echo stderr:; cat "$at_stderr"
 
101231
echo stdout:; cat "$at_stdout"
 
101232
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101233
$at_failed && at_fn_log_failure
 
101234
$at_traceon; }
 
101235
 
 
101236
   { set +x
 
101237
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101238
     # in the normal case.  POSIX doesn't require fractional times to
 
101239
     # work, so this might not work.
 
101240
     sleep 0.1
 
101241
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101242
     # Then wait up to 10 seconds.
 
101243
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101244
       sleep 1
 
101245
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101246
     done
 
101247
     exit 1"
 
101248
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101249
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101250
     # in the normal case.  POSIX doesn't require fractional times to
 
101251
     # work, so this might not work.
 
101252
     sleep 0.1
 
101253
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101254
     # Then wait up to 10 seconds.
 
101255
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101256
       sleep 1
 
101257
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101258
     done
 
101259
     exit 1
 
101260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101261
at_status=$? at_failed=false
 
101262
$at_check_filter
 
101263
echo stderr:; cat "$at_stderr"
 
101264
echo stdout:; cat "$at_stdout"
 
101265
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101266
if $at_failed; then :
 
101267
  kill `cat savepid`
 
101268
fi
 
101269
$at_failed && at_fn_log_failure
 
101270
$at_traceon; }
 
101271
 
 
101272
fi
 
101273
$at_failed && at_fn_log_failure
 
101274
$at_traceon; }
 
101275
 
 
101276
 
 
101277
      { set +x
 
101278
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
101279
"
 
101280
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101281
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
101282
 
 
101283
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101284
at_status=$? at_failed=false
 
101285
$at_check_filter
 
101286
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101287
echo >>"$at_stdout"; $as_echo "xenbr0
 
101288
" | \
 
101289
  $at_diff - "$at_stdout" || at_failed=:
 
101290
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101291
if $at_failed; then :
 
101292
  cp pid savepid
 
101293
   { set +x
 
101294
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101295
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101296
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101297
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101298
at_status=$? at_failed=false
 
101299
$at_check_filter
 
101300
echo stderr:; cat "$at_stderr"
 
101301
echo stdout:; cat "$at_stdout"
 
101302
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101303
$at_failed && at_fn_log_failure
 
101304
$at_traceon; }
 
101305
 
 
101306
   { set +x
 
101307
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101308
     # in the normal case.  POSIX doesn't require fractional times to
 
101309
     # work, so this might not work.
 
101310
     sleep 0.1
 
101311
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101312
     # Then wait up to 10 seconds.
 
101313
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101314
       sleep 1
 
101315
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101316
     done
 
101317
     exit 1"
 
101318
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101319
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101320
     # in the normal case.  POSIX doesn't require fractional times to
 
101321
     # work, so this might not work.
 
101322
     sleep 0.1
 
101323
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101324
     # Then wait up to 10 seconds.
 
101325
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101326
       sleep 1
 
101327
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101328
     done
 
101329
     exit 1
 
101330
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101331
at_status=$? at_failed=false
 
101332
$at_check_filter
 
101333
echo stderr:; cat "$at_stderr"
 
101334
echo stdout:; cat "$at_stdout"
 
101335
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101336
if $at_failed; then :
 
101337
  kill `cat savepid`
 
101338
fi
 
101339
$at_failed && at_fn_log_failure
 
101340
$at_traceon; }
 
101341
 
 
101342
fi
 
101343
$at_failed && at_fn_log_failure
 
101344
$at_traceon; }
 
101345
 
 
101346
 
 
101347
   # Check br-to-vlan, without --oneline.
 
101348
   { set +x
 
101349
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
101350
"
 
101351
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101352
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
101353
 
 
101354
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101355
at_status=$? at_failed=false
 
101356
$at_check_filter
 
101357
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101358
echo >>"$at_stdout"; $as_echo "9
 
101359
" | \
 
101360
  $at_diff - "$at_stdout" || at_failed=:
 
101361
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101362
if $at_failed; then :
 
101363
  cp pid savepid
 
101364
   { set +x
 
101365
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101366
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101367
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101368
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101369
at_status=$? at_failed=false
 
101370
$at_check_filter
 
101371
echo stderr:; cat "$at_stderr"
 
101372
echo stdout:; cat "$at_stdout"
 
101373
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101374
$at_failed && at_fn_log_failure
 
101375
$at_traceon; }
 
101376
 
 
101377
   { set +x
 
101378
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101379
     # in the normal case.  POSIX doesn't require fractional times to
 
101380
     # work, so this might not work.
 
101381
     sleep 0.1
 
101382
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101383
     # Then wait up to 10 seconds.
 
101384
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101385
       sleep 1
 
101386
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101387
     done
 
101388
     exit 1"
 
101389
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101390
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101391
     # in the normal case.  POSIX doesn't require fractional times to
 
101392
     # work, so this might not work.
 
101393
     sleep 0.1
 
101394
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101395
     # Then wait up to 10 seconds.
 
101396
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101397
       sleep 1
 
101398
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101399
     done
 
101400
     exit 1
 
101401
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101402
at_status=$? at_failed=false
 
101403
$at_check_filter
 
101404
echo stderr:; cat "$at_stderr"
 
101405
echo stdout:; cat "$at_stdout"
 
101406
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101407
if $at_failed; then :
 
101408
  kill `cat savepid`
 
101409
fi
 
101410
$at_failed && at_fn_log_failure
 
101411
$at_traceon; }
 
101412
 
 
101413
fi
 
101414
$at_failed && at_fn_log_failure
 
101415
$at_traceon; }
 
101416
 
 
101417
   # Check br-to-vlan, with --oneline.
 
101418
   # (This particular test is interesting with --oneline because it returns
 
101419
   # an integer instead of a string and that can cause type mismatches inside
 
101420
   # python if not done carefully.)
 
101421
   { set +x
 
101422
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
101423
"
 
101424
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101425
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
101426
 
 
101427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101428
at_status=$? at_failed=false
 
101429
$at_check_filter
 
101430
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101431
echo >>"$at_stdout"; $as_echo "9
 
101432
" | \
 
101433
  $at_diff - "$at_stdout" || at_failed=:
 
101434
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101435
if $at_failed; then :
 
101436
  cp pid savepid
 
101437
   { set +x
 
101438
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101439
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101440
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101441
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101442
at_status=$? at_failed=false
 
101443
$at_check_filter
 
101444
echo stderr:; cat "$at_stderr"
 
101445
echo stdout:; cat "$at_stdout"
 
101446
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101447
$at_failed && at_fn_log_failure
 
101448
$at_traceon; }
 
101449
 
 
101450
   { set +x
 
101451
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101452
     # in the normal case.  POSIX doesn't require fractional times to
 
101453
     # work, so this might not work.
 
101454
     sleep 0.1
 
101455
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101456
     # Then wait up to 10 seconds.
 
101457
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101458
       sleep 1
 
101459
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101460
     done
 
101461
     exit 1"
 
101462
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101463
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101464
     # in the normal case.  POSIX doesn't require fractional times to
 
101465
     # work, so this might not work.
 
101466
     sleep 0.1
 
101467
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101468
     # Then wait up to 10 seconds.
 
101469
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101470
       sleep 1
 
101471
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101472
     done
 
101473
     exit 1
 
101474
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101475
at_status=$? at_failed=false
 
101476
$at_check_filter
 
101477
echo stderr:; cat "$at_stderr"
 
101478
echo stdout:; cat "$at_stdout"
 
101479
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101480
if $at_failed; then :
 
101481
  kill `cat savepid`
 
101482
fi
 
101483
$at_failed && at_fn_log_failure
 
101484
$at_traceon; }
 
101485
 
 
101486
fi
 
101487
$at_failed && at_fn_log_failure
 
101488
$at_traceon; }
 
101489
 
 
101490
 
 
101491
   # Check multiple queries in a single run.
 
101492
   { set +x
 
101493
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1"
 
101494
at_fn_check_prepare_trace "ovs-vsctl.at:488"
 
101495
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1
 
101496
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101497
at_status=$? at_failed=false
 
101498
$at_check_filter
 
101499
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101500
echo >>"$at_stdout"; $as_echo "xenbr0
 
101501
9
 
101502
" | \
 
101503
  $at_diff - "$at_stdout" || at_failed=:
 
101504
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101505
if $at_failed; then :
 
101506
  cp pid savepid
 
101507
   { set +x
 
101508
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101509
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101510
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101511
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101512
at_status=$? at_failed=false
 
101513
$at_check_filter
 
101514
echo stderr:; cat "$at_stderr"
 
101515
echo stdout:; cat "$at_stdout"
 
101516
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101517
$at_failed && at_fn_log_failure
 
101518
$at_traceon; }
 
101519
 
 
101520
   { set +x
 
101521
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101522
     # in the normal case.  POSIX doesn't require fractional times to
 
101523
     # work, so this might not work.
 
101524
     sleep 0.1
 
101525
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101526
     # Then wait up to 10 seconds.
 
101527
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101528
       sleep 1
 
101529
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101530
     done
 
101531
     exit 1"
 
101532
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101533
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101534
     # in the normal case.  POSIX doesn't require fractional times to
 
101535
     # work, so this might not work.
 
101536
     sleep 0.1
 
101537
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101538
     # Then wait up to 10 seconds.
 
101539
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101540
       sleep 1
 
101541
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101542
     done
 
101543
     exit 1
 
101544
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101545
at_status=$? at_failed=false
 
101546
$at_check_filter
 
101547
echo stderr:; cat "$at_stderr"
 
101548
echo stdout:; cat "$at_stdout"
 
101549
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101550
if $at_failed; then :
 
101551
  kill `cat savepid`
 
101552
fi
 
101553
$at_failed && at_fn_log_failure
 
101554
$at_traceon; }
 
101555
 
 
101556
fi
 
101557
$at_failed && at_fn_log_failure
 
101558
$at_traceon; }
 
101559
{ set +x
 
101560
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
101561
"
 
101562
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101563
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
101564
 
 
101565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101566
at_status=$? at_failed=false
 
101567
$at_check_filter
 
101568
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101569
echo >>"$at_stdout"; $as_echo "xenbr0
 
101570
" | \
 
101571
  $at_diff - "$at_stdout" || at_failed=:
 
101572
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101573
if $at_failed; then :
 
101574
  cp pid savepid
 
101575
   { set +x
 
101576
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101577
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101578
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101579
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101580
at_status=$? at_failed=false
 
101581
$at_check_filter
 
101582
echo stderr:; cat "$at_stderr"
 
101583
echo stdout:; cat "$at_stdout"
 
101584
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101585
$at_failed && at_fn_log_failure
 
101586
$at_traceon; }
 
101587
 
 
101588
   { set +x
 
101589
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101590
     # in the normal case.  POSIX doesn't require fractional times to
 
101591
     # work, so this might not work.
 
101592
     sleep 0.1
 
101593
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101594
     # Then wait up to 10 seconds.
 
101595
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101596
       sleep 1
 
101597
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101598
     done
 
101599
     exit 1"
 
101600
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101601
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101602
     # in the normal case.  POSIX doesn't require fractional times to
 
101603
     # work, so this might not work.
 
101604
     sleep 0.1
 
101605
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101606
     # Then wait up to 10 seconds.
 
101607
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101608
       sleep 1
 
101609
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101610
     done
 
101611
     exit 1
 
101612
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101613
at_status=$? at_failed=false
 
101614
$at_check_filter
 
101615
echo stderr:; cat "$at_stderr"
 
101616
echo stdout:; cat "$at_stdout"
 
101617
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101618
if $at_failed; then :
 
101619
  kill `cat savepid`
 
101620
fi
 
101621
$at_failed && at_fn_log_failure
 
101622
$at_traceon; }
 
101623
 
 
101624
fi
 
101625
$at_failed && at_fn_log_failure
 
101626
$at_traceon; }
 
101627
 
 
101628
 
 
101629
   # Check br-to-vlan, without --oneline.
 
101630
   { set +x
 
101631
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
101632
"
 
101633
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101634
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
101635
 
 
101636
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101637
at_status=$? at_failed=false
 
101638
$at_check_filter
 
101639
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101640
echo >>"$at_stdout"; $as_echo "0
 
101641
" | \
 
101642
  $at_diff - "$at_stdout" || at_failed=:
 
101643
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101644
if $at_failed; then :
 
101645
  cp pid savepid
 
101646
   { set +x
 
101647
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101648
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101649
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101650
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101651
at_status=$? at_failed=false
 
101652
$at_check_filter
 
101653
echo stderr:; cat "$at_stderr"
 
101654
echo stdout:; cat "$at_stdout"
 
101655
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101656
$at_failed && at_fn_log_failure
 
101657
$at_traceon; }
 
101658
 
 
101659
   { set +x
 
101660
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101661
     # in the normal case.  POSIX doesn't require fractional times to
 
101662
     # work, so this might not work.
 
101663
     sleep 0.1
 
101664
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101665
     # Then wait up to 10 seconds.
 
101666
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101667
       sleep 1
 
101668
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101669
     done
 
101670
     exit 1"
 
101671
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101672
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101673
     # in the normal case.  POSIX doesn't require fractional times to
 
101674
     # work, so this might not work.
 
101675
     sleep 0.1
 
101676
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101677
     # Then wait up to 10 seconds.
 
101678
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101679
       sleep 1
 
101680
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101681
     done
 
101682
     exit 1
 
101683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101684
at_status=$? at_failed=false
 
101685
$at_check_filter
 
101686
echo stderr:; cat "$at_stderr"
 
101687
echo stdout:; cat "$at_stdout"
 
101688
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101689
if $at_failed; then :
 
101690
  kill `cat savepid`
 
101691
fi
 
101692
$at_failed && at_fn_log_failure
 
101693
$at_traceon; }
 
101694
 
 
101695
fi
 
101696
$at_failed && at_fn_log_failure
 
101697
$at_traceon; }
 
101698
 
 
101699
   # Check br-to-vlan, with --oneline.
 
101700
   # (This particular test is interesting with --oneline because it returns
 
101701
   # an integer instead of a string and that can cause type mismatches inside
 
101702
   # python if not done carefully.)
 
101703
   { set +x
 
101704
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
101705
"
 
101706
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101707
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
101708
 
 
101709
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101710
at_status=$? at_failed=false
 
101711
$at_check_filter
 
101712
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101713
echo >>"$at_stdout"; $as_echo "0
 
101714
" | \
 
101715
  $at_diff - "$at_stdout" || at_failed=:
 
101716
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101717
if $at_failed; then :
 
101718
  cp pid savepid
 
101719
   { set +x
 
101720
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101721
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101722
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101723
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101724
at_status=$? at_failed=false
 
101725
$at_check_filter
 
101726
echo stderr:; cat "$at_stderr"
 
101727
echo stdout:; cat "$at_stdout"
 
101728
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101729
$at_failed && at_fn_log_failure
 
101730
$at_traceon; }
 
101731
 
 
101732
   { set +x
 
101733
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101734
     # in the normal case.  POSIX doesn't require fractional times to
 
101735
     # work, so this might not work.
 
101736
     sleep 0.1
 
101737
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101738
     # Then wait up to 10 seconds.
 
101739
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101740
       sleep 1
 
101741
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101742
     done
 
101743
     exit 1"
 
101744
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101745
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101746
     # in the normal case.  POSIX doesn't require fractional times to
 
101747
     # work, so this might not work.
 
101748
     sleep 0.1
 
101749
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101750
     # Then wait up to 10 seconds.
 
101751
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101752
       sleep 1
 
101753
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101754
     done
 
101755
     exit 1
 
101756
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101757
at_status=$? at_failed=false
 
101758
$at_check_filter
 
101759
echo stderr:; cat "$at_stderr"
 
101760
echo stdout:; cat "$at_stdout"
 
101761
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101762
if $at_failed; then :
 
101763
  kill `cat savepid`
 
101764
fi
 
101765
$at_failed && at_fn_log_failure
 
101766
$at_traceon; }
 
101767
 
 
101768
fi
 
101769
$at_failed && at_fn_log_failure
 
101770
$at_traceon; }
 
101771
 
 
101772
 
 
101773
   # Check multiple queries in a single run.
 
101774
   { set +x
 
101775
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0"
 
101776
at_fn_check_prepare_trace "ovs-vsctl.at:488"
 
101777
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0
 
101778
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101779
at_status=$? at_failed=false
 
101780
$at_check_filter
 
101781
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101782
echo >>"$at_stdout"; $as_echo "xenbr0
 
101783
0
 
101784
" | \
 
101785
  $at_diff - "$at_stdout" || at_failed=:
 
101786
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101787
if $at_failed; then :
 
101788
  cp pid savepid
 
101789
   { set +x
 
101790
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101791
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101792
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101793
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101794
at_status=$? at_failed=false
 
101795
$at_check_filter
 
101796
echo stderr:; cat "$at_stderr"
 
101797
echo stdout:; cat "$at_stdout"
 
101798
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101799
$at_failed && at_fn_log_failure
 
101800
$at_traceon; }
 
101801
 
 
101802
   { set +x
 
101803
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101804
     # in the normal case.  POSIX doesn't require fractional times to
 
101805
     # work, so this might not work.
 
101806
     sleep 0.1
 
101807
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101808
     # Then wait up to 10 seconds.
 
101809
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101810
       sleep 1
 
101811
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101812
     done
 
101813
     exit 1"
 
101814
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101815
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101816
     # in the normal case.  POSIX doesn't require fractional times to
 
101817
     # work, so this might not work.
 
101818
     sleep 0.1
 
101819
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101820
     # Then wait up to 10 seconds.
 
101821
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101822
       sleep 1
 
101823
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101824
     done
 
101825
     exit 1
 
101826
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101827
at_status=$? at_failed=false
 
101828
$at_check_filter
 
101829
echo stderr:; cat "$at_stderr"
 
101830
echo stdout:; cat "$at_stdout"
 
101831
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101832
if $at_failed; then :
 
101833
  kill `cat savepid`
 
101834
fi
 
101835
$at_failed && at_fn_log_failure
 
101836
$at_traceon; }
 
101837
 
 
101838
fi
 
101839
$at_failed && at_fn_log_failure
 
101840
$at_traceon; }
 
101841
 
 
101842
   { set +x
 
101843
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
101844
"
 
101845
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101846
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
101847
 
 
101848
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101849
at_status=$? at_failed=false
 
101850
$at_check_filter
 
101851
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101852
echo >>"$at_stdout"; $as_echo "eth0
 
101853
" | \
 
101854
  $at_diff - "$at_stdout" || at_failed=:
 
101855
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101856
if $at_failed; then :
 
101857
  cp pid savepid
 
101858
   { set +x
 
101859
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101860
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101861
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101862
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101863
at_status=$? at_failed=false
 
101864
$at_check_filter
 
101865
echo stderr:; cat "$at_stderr"
 
101866
echo stdout:; cat "$at_stdout"
 
101867
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101868
$at_failed && at_fn_log_failure
 
101869
$at_traceon; }
 
101870
 
 
101871
   { set +x
 
101872
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101873
     # in the normal case.  POSIX doesn't require fractional times to
 
101874
     # work, so this might not work.
 
101875
     sleep 0.1
 
101876
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101877
     # Then wait up to 10 seconds.
 
101878
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101879
       sleep 1
 
101880
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101881
     done
 
101882
     exit 1"
 
101883
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101884
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101885
     # in the normal case.  POSIX doesn't require fractional times to
 
101886
     # work, so this might not work.
 
101887
     sleep 0.1
 
101888
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101889
     # Then wait up to 10 seconds.
 
101890
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101891
       sleep 1
 
101892
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101893
     done
 
101894
     exit 1
 
101895
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101896
at_status=$? at_failed=false
 
101897
$at_check_filter
 
101898
echo stderr:; cat "$at_stderr"
 
101899
echo stdout:; cat "$at_stdout"
 
101900
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101901
if $at_failed; then :
 
101902
  kill `cat savepid`
 
101903
fi
 
101904
$at_failed && at_fn_log_failure
 
101905
$at_traceon; }
 
101906
 
 
101907
fi
 
101908
$at_failed && at_fn_log_failure
 
101909
$at_traceon; }
 
101910
 
 
101911
 
 
101912
      { set +x
 
101913
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
101914
"
 
101915
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101916
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
101917
 
 
101918
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101919
at_status=$? at_failed=false
 
101920
$at_check_filter
 
101921
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
101922
echo >>"$at_stdout"; $as_echo "eth0
 
101923
" | \
 
101924
  $at_diff - "$at_stdout" || at_failed=:
 
101925
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101926
if $at_failed; then :
 
101927
  cp pid savepid
 
101928
   { set +x
 
101929
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101930
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
101931
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
101932
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101933
at_status=$? at_failed=false
 
101934
$at_check_filter
 
101935
echo stderr:; cat "$at_stderr"
 
101936
echo stdout:; cat "$at_stdout"
 
101937
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101938
$at_failed && at_fn_log_failure
 
101939
$at_traceon; }
 
101940
 
 
101941
   { set +x
 
101942
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
101943
     # in the normal case.  POSIX doesn't require fractional times to
 
101944
     # work, so this might not work.
 
101945
     sleep 0.1
 
101946
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101947
     # Then wait up to 10 seconds.
 
101948
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101949
       sleep 1
 
101950
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
101951
     done
 
101952
     exit 1"
 
101953
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
101954
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
101955
     # in the normal case.  POSIX doesn't require fractional times to
 
101956
     # work, so this might not work.
 
101957
     sleep 0.1
 
101958
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
101959
     # Then wait up to 10 seconds.
 
101960
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
101961
       sleep 1
 
101962
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
101963
     done
 
101964
     exit 1
 
101965
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101966
at_status=$? at_failed=false
 
101967
$at_check_filter
 
101968
echo stderr:; cat "$at_stderr"
 
101969
echo stdout:; cat "$at_stdout"
 
101970
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101971
if $at_failed; then :
 
101972
  kill `cat savepid`
 
101973
fi
 
101974
$at_failed && at_fn_log_failure
 
101975
$at_traceon; }
 
101976
 
 
101977
fi
 
101978
$at_failed && at_fn_log_failure
 
101979
$at_traceon; }
 
101980
 
 
101981
   { set +x
 
101982
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
101983
"
 
101984
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
101985
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
101986
 
 
101987
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
101988
at_status=$? at_failed=false
 
101989
$at_check_filter
 
101990
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xenbr0
 
101991
" | \
 
101992
  $at_diff - "$at_stderr" || at_failed=:
 
101993
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
101994
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
101995
if $at_failed; then :
 
101996
  cp pid savepid
 
101997
   { set +x
 
101998
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
101999
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102000
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102001
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102002
at_status=$? at_failed=false
 
102003
$at_check_filter
 
102004
echo stderr:; cat "$at_stderr"
 
102005
echo stdout:; cat "$at_stdout"
 
102006
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102007
$at_failed && at_fn_log_failure
 
102008
$at_traceon; }
 
102009
 
 
102010
   { set +x
 
102011
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102012
     # in the normal case.  POSIX doesn't require fractional times to
 
102013
     # work, so this might not work.
 
102014
     sleep 0.1
 
102015
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102016
     # Then wait up to 10 seconds.
 
102017
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102018
       sleep 1
 
102019
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102020
     done
 
102021
     exit 1"
 
102022
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102023
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102024
     # in the normal case.  POSIX doesn't require fractional times to
 
102025
     # work, so this might not work.
 
102026
     sleep 0.1
 
102027
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102028
     # Then wait up to 10 seconds.
 
102029
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102030
       sleep 1
 
102031
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102032
     done
 
102033
     exit 1
 
102034
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102035
at_status=$? at_failed=false
 
102036
$at_check_filter
 
102037
echo stderr:; cat "$at_stderr"
 
102038
echo stdout:; cat "$at_stdout"
 
102039
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102040
if $at_failed; then :
 
102041
  kill `cat savepid`
 
102042
fi
 
102043
$at_failed && at_fn_log_failure
 
102044
$at_traceon; }
 
102045
 
 
102046
fi
 
102047
$at_failed && at_fn_log_failure
 
102048
$at_traceon; }
 
102049
 
 
102050
   { set +x
 
102051
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
102052
"
 
102053
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102054
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
102055
 
 
102056
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102057
at_status=$? at_failed=false
 
102058
$at_check_filter
 
102059
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102060
echo >>"$at_stdout"; $as_echo "xenbr0
 
102061
" | \
 
102062
  $at_diff - "$at_stdout" || at_failed=:
 
102063
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102064
if $at_failed; then :
 
102065
  cp pid savepid
 
102066
   { set +x
 
102067
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102068
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102069
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102070
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102071
at_status=$? at_failed=false
 
102072
$at_check_filter
 
102073
echo stderr:; cat "$at_stderr"
 
102074
echo stdout:; cat "$at_stdout"
 
102075
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102076
$at_failed && at_fn_log_failure
 
102077
$at_traceon; }
 
102078
 
 
102079
   { set +x
 
102080
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102081
     # in the normal case.  POSIX doesn't require fractional times to
 
102082
     # work, so this might not work.
 
102083
     sleep 0.1
 
102084
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102085
     # Then wait up to 10 seconds.
 
102086
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102087
       sleep 1
 
102088
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102089
     done
 
102090
     exit 1"
 
102091
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102092
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102093
     # in the normal case.  POSIX doesn't require fractional times to
 
102094
     # work, so this might not work.
 
102095
     sleep 0.1
 
102096
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102097
     # Then wait up to 10 seconds.
 
102098
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102099
       sleep 1
 
102100
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102101
     done
 
102102
     exit 1
 
102103
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102104
at_status=$? at_failed=false
 
102105
$at_check_filter
 
102106
echo stderr:; cat "$at_stderr"
 
102107
echo stdout:; cat "$at_stdout"
 
102108
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102109
if $at_failed; then :
 
102110
  kill `cat savepid`
 
102111
fi
 
102112
$at_failed && at_fn_log_failure
 
102113
$at_traceon; }
 
102114
 
 
102115
fi
 
102116
$at_failed && at_fn_log_failure
 
102117
$at_traceon; }
 
102118
 
 
102119
{ set +x
 
102120
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
102121
"
 
102122
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102123
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
102124
 
 
102125
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102126
at_status=$? at_failed=false
 
102127
$at_check_filter
 
102128
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102129
echo >>"$at_stdout"; $as_echo "eth0
 
102130
" | \
 
102131
  $at_diff - "$at_stdout" || at_failed=:
 
102132
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102133
if $at_failed; then :
 
102134
  cp pid savepid
 
102135
   { set +x
 
102136
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102137
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102138
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102139
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102140
at_status=$? at_failed=false
 
102141
$at_check_filter
 
102142
echo stderr:; cat "$at_stderr"
 
102143
echo stdout:; cat "$at_stdout"
 
102144
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102145
$at_failed && at_fn_log_failure
 
102146
$at_traceon; }
 
102147
 
 
102148
   { set +x
 
102149
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102150
     # in the normal case.  POSIX doesn't require fractional times to
 
102151
     # work, so this might not work.
 
102152
     sleep 0.1
 
102153
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102154
     # Then wait up to 10 seconds.
 
102155
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102156
       sleep 1
 
102157
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102158
     done
 
102159
     exit 1"
 
102160
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102161
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102162
     # in the normal case.  POSIX doesn't require fractional times to
 
102163
     # work, so this might not work.
 
102164
     sleep 0.1
 
102165
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102166
     # Then wait up to 10 seconds.
 
102167
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102168
       sleep 1
 
102169
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102170
     done
 
102171
     exit 1
 
102172
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102173
at_status=$? at_failed=false
 
102174
$at_check_filter
 
102175
echo stderr:; cat "$at_stderr"
 
102176
echo stdout:; cat "$at_stdout"
 
102177
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102178
if $at_failed; then :
 
102179
  kill `cat savepid`
 
102180
fi
 
102181
$at_failed && at_fn_log_failure
 
102182
$at_traceon; }
 
102183
 
 
102184
fi
 
102185
$at_failed && at_fn_log_failure
 
102186
$at_traceon; }
 
102187
 
 
102188
   { set +x
 
102189
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
102190
"
 
102191
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102192
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
102193
 
 
102194
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102195
at_status=$? at_failed=false
 
102196
$at_check_filter
 
102197
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xenbr0
 
102198
" | \
 
102199
  $at_diff - "$at_stderr" || at_failed=:
 
102200
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
102201
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102202
if $at_failed; then :
 
102203
  cp pid savepid
 
102204
   { set +x
 
102205
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102206
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102207
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102208
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102209
at_status=$? at_failed=false
 
102210
$at_check_filter
 
102211
echo stderr:; cat "$at_stderr"
 
102212
echo stdout:; cat "$at_stdout"
 
102213
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102214
$at_failed && at_fn_log_failure
 
102215
$at_traceon; }
 
102216
 
 
102217
   { set +x
 
102218
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102219
     # in the normal case.  POSIX doesn't require fractional times to
 
102220
     # work, so this might not work.
 
102221
     sleep 0.1
 
102222
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102223
     # Then wait up to 10 seconds.
 
102224
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102225
       sleep 1
 
102226
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102227
     done
 
102228
     exit 1"
 
102229
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102230
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102231
     # in the normal case.  POSIX doesn't require fractional times to
 
102232
     # work, so this might not work.
 
102233
     sleep 0.1
 
102234
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102235
     # Then wait up to 10 seconds.
 
102236
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102237
       sleep 1
 
102238
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102239
     done
 
102240
     exit 1
 
102241
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102242
at_status=$? at_failed=false
 
102243
$at_check_filter
 
102244
echo stderr:; cat "$at_stderr"
 
102245
echo stdout:; cat "$at_stdout"
 
102246
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102247
if $at_failed; then :
 
102248
  kill `cat savepid`
 
102249
fi
 
102250
$at_failed && at_fn_log_failure
 
102251
$at_traceon; }
 
102252
 
 
102253
fi
 
102254
$at_failed && at_fn_log_failure
 
102255
$at_traceon; }
 
102256
 
 
102257
   { set +x
 
102258
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
102259
"
 
102260
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102261
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
102262
 
 
102263
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102264
at_status=$? at_failed=false
 
102265
$at_check_filter
 
102266
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102267
echo >>"$at_stdout"; $as_echo "xenbr0
 
102268
" | \
 
102269
  $at_diff - "$at_stdout" || at_failed=:
 
102270
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102271
if $at_failed; then :
 
102272
  cp pid savepid
 
102273
   { set +x
 
102274
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102275
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102276
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102277
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102278
at_status=$? at_failed=false
 
102279
$at_check_filter
 
102280
echo stderr:; cat "$at_stderr"
 
102281
echo stdout:; cat "$at_stdout"
 
102282
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102283
$at_failed && at_fn_log_failure
 
102284
$at_traceon; }
 
102285
 
 
102286
   { set +x
 
102287
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102288
     # in the normal case.  POSIX doesn't require fractional times to
 
102289
     # work, so this might not work.
 
102290
     sleep 0.1
 
102291
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102292
     # Then wait up to 10 seconds.
 
102293
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102294
       sleep 1
 
102295
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102296
     done
 
102297
     exit 1"
 
102298
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102299
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102300
     # in the normal case.  POSIX doesn't require fractional times to
 
102301
     # work, so this might not work.
 
102302
     sleep 0.1
 
102303
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102304
     # Then wait up to 10 seconds.
 
102305
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102306
       sleep 1
 
102307
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102308
     done
 
102309
     exit 1
 
102310
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102311
at_status=$? at_failed=false
 
102312
$at_check_filter
 
102313
echo stderr:; cat "$at_stderr"
 
102314
echo stdout:; cat "$at_stdout"
 
102315
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102316
if $at_failed; then :
 
102317
  kill `cat savepid`
 
102318
fi
 
102319
$at_failed && at_fn_log_failure
 
102320
$at_traceon; }
 
102321
 
 
102322
fi
 
102323
$at_failed && at_fn_log_failure
 
102324
$at_traceon; }
 
102325
 
 
102326
   { set +x
 
102327
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
102328
"
 
102329
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102330
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
102331
 
 
102332
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102333
at_status=$? at_failed=false
 
102334
$at_check_filter
 
102335
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102336
echo >>"$at_stdout"; $as_echo "eth0.9
 
102337
" | \
 
102338
  $at_diff - "$at_stdout" || at_failed=:
 
102339
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102340
if $at_failed; then :
 
102341
  cp pid savepid
 
102342
   { set +x
 
102343
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102344
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102345
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102346
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102347
at_status=$? at_failed=false
 
102348
$at_check_filter
 
102349
echo stderr:; cat "$at_stderr"
 
102350
echo stdout:; cat "$at_stdout"
 
102351
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102352
$at_failed && at_fn_log_failure
 
102353
$at_traceon; }
 
102354
 
 
102355
   { set +x
 
102356
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102357
     # in the normal case.  POSIX doesn't require fractional times to
 
102358
     # work, so this might not work.
 
102359
     sleep 0.1
 
102360
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102361
     # Then wait up to 10 seconds.
 
102362
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102363
       sleep 1
 
102364
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102365
     done
 
102366
     exit 1"
 
102367
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102368
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102369
     # in the normal case.  POSIX doesn't require fractional times to
 
102370
     # work, so this might not work.
 
102371
     sleep 0.1
 
102372
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102373
     # Then wait up to 10 seconds.
 
102374
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102375
       sleep 1
 
102376
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102377
     done
 
102378
     exit 1
 
102379
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102380
at_status=$? at_failed=false
 
102381
$at_check_filter
 
102382
echo stderr:; cat "$at_stderr"
 
102383
echo stdout:; cat "$at_stdout"
 
102384
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102385
if $at_failed; then :
 
102386
  kill `cat savepid`
 
102387
fi
 
102388
$at_failed && at_fn_log_failure
 
102389
$at_traceon; }
 
102390
 
 
102391
fi
 
102392
$at_failed && at_fn_log_failure
 
102393
$at_traceon; }
 
102394
 
 
102395
 
 
102396
      { set +x
 
102397
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
102398
"
 
102399
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102400
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
102401
 
 
102402
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102403
at_status=$? at_failed=false
 
102404
$at_check_filter
 
102405
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102406
echo >>"$at_stdout"; $as_echo "eth0.9
 
102407
" | \
 
102408
  $at_diff - "$at_stdout" || at_failed=:
 
102409
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102410
if $at_failed; then :
 
102411
  cp pid savepid
 
102412
   { set +x
 
102413
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102414
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102415
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102416
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102417
at_status=$? at_failed=false
 
102418
$at_check_filter
 
102419
echo stderr:; cat "$at_stderr"
 
102420
echo stdout:; cat "$at_stdout"
 
102421
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102422
$at_failed && at_fn_log_failure
 
102423
$at_traceon; }
 
102424
 
 
102425
   { set +x
 
102426
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102427
     # in the normal case.  POSIX doesn't require fractional times to
 
102428
     # work, so this might not work.
 
102429
     sleep 0.1
 
102430
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102431
     # Then wait up to 10 seconds.
 
102432
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102433
       sleep 1
 
102434
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102435
     done
 
102436
     exit 1"
 
102437
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102438
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102439
     # in the normal case.  POSIX doesn't require fractional times to
 
102440
     # work, so this might not work.
 
102441
     sleep 0.1
 
102442
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102443
     # Then wait up to 10 seconds.
 
102444
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102445
       sleep 1
 
102446
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102447
     done
 
102448
     exit 1
 
102449
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102450
at_status=$? at_failed=false
 
102451
$at_check_filter
 
102452
echo stderr:; cat "$at_stderr"
 
102453
echo stdout:; cat "$at_stdout"
 
102454
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102455
if $at_failed; then :
 
102456
  kill `cat savepid`
 
102457
fi
 
102458
$at_failed && at_fn_log_failure
 
102459
$at_traceon; }
 
102460
 
 
102461
fi
 
102462
$at_failed && at_fn_log_failure
 
102463
$at_traceon; }
 
102464
 
 
102465
   { set +x
 
102466
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
102467
"
 
102468
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102469
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
102470
 
 
102471
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102472
at_status=$? at_failed=false
 
102473
$at_check_filter
 
102474
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xapi1
 
102475
" | \
 
102476
  $at_diff - "$at_stderr" || at_failed=:
 
102477
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
102478
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102479
if $at_failed; then :
 
102480
  cp pid savepid
 
102481
   { set +x
 
102482
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102483
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102484
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102485
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102486
at_status=$? at_failed=false
 
102487
$at_check_filter
 
102488
echo stderr:; cat "$at_stderr"
 
102489
echo stdout:; cat "$at_stdout"
 
102490
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102491
$at_failed && at_fn_log_failure
 
102492
$at_traceon; }
 
102493
 
 
102494
   { set +x
 
102495
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102496
     # in the normal case.  POSIX doesn't require fractional times to
 
102497
     # work, so this might not work.
 
102498
     sleep 0.1
 
102499
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102500
     # Then wait up to 10 seconds.
 
102501
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102502
       sleep 1
 
102503
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102504
     done
 
102505
     exit 1"
 
102506
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102507
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102508
     # in the normal case.  POSIX doesn't require fractional times to
 
102509
     # work, so this might not work.
 
102510
     sleep 0.1
 
102511
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102512
     # Then wait up to 10 seconds.
 
102513
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102514
       sleep 1
 
102515
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102516
     done
 
102517
     exit 1
 
102518
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102519
at_status=$? at_failed=false
 
102520
$at_check_filter
 
102521
echo stderr:; cat "$at_stderr"
 
102522
echo stdout:; cat "$at_stdout"
 
102523
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102524
if $at_failed; then :
 
102525
  kill `cat savepid`
 
102526
fi
 
102527
$at_failed && at_fn_log_failure
 
102528
$at_traceon; }
 
102529
 
 
102530
fi
 
102531
$at_failed && at_fn_log_failure
 
102532
$at_traceon; }
 
102533
 
 
102534
   { set +x
 
102535
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0.9
 
102536
"
 
102537
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102538
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0.9
 
102539
 
 
102540
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102541
at_status=$? at_failed=false
 
102542
$at_check_filter
 
102543
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102544
echo >>"$at_stdout"; $as_echo "xapi1
 
102545
" | \
 
102546
  $at_diff - "$at_stdout" || at_failed=:
 
102547
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102548
if $at_failed; then :
 
102549
  cp pid savepid
 
102550
   { set +x
 
102551
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102552
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102553
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102554
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102555
at_status=$? at_failed=false
 
102556
$at_check_filter
 
102557
echo stderr:; cat "$at_stderr"
 
102558
echo stdout:; cat "$at_stdout"
 
102559
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102560
$at_failed && at_fn_log_failure
 
102561
$at_traceon; }
 
102562
 
 
102563
   { set +x
 
102564
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102565
     # in the normal case.  POSIX doesn't require fractional times to
 
102566
     # work, so this might not work.
 
102567
     sleep 0.1
 
102568
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102569
     # Then wait up to 10 seconds.
 
102570
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102571
       sleep 1
 
102572
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102573
     done
 
102574
     exit 1"
 
102575
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102576
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102577
     # in the normal case.  POSIX doesn't require fractional times to
 
102578
     # work, so this might not work.
 
102579
     sleep 0.1
 
102580
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102581
     # Then wait up to 10 seconds.
 
102582
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102583
       sleep 1
 
102584
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102585
     done
 
102586
     exit 1
 
102587
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102588
at_status=$? at_failed=false
 
102589
$at_check_filter
 
102590
echo stderr:; cat "$at_stderr"
 
102591
echo stdout:; cat "$at_stdout"
 
102592
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102593
if $at_failed; then :
 
102594
  kill `cat savepid`
 
102595
fi
 
102596
$at_failed && at_fn_log_failure
 
102597
$at_traceon; }
 
102598
 
 
102599
fi
 
102600
$at_failed && at_fn_log_failure
 
102601
$at_traceon; }
 
102602
 
 
102603
{ set +x
 
102604
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
102605
"
 
102606
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102607
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
102608
 
 
102609
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102610
at_status=$? at_failed=false
 
102611
$at_check_filter
 
102612
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102613
echo >>"$at_stdout"; $as_echo "eth0.9
 
102614
" | \
 
102615
  $at_diff - "$at_stdout" || at_failed=:
 
102616
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102617
if $at_failed; then :
 
102618
  cp pid savepid
 
102619
   { set +x
 
102620
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102621
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102622
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102623
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102624
at_status=$? at_failed=false
 
102625
$at_check_filter
 
102626
echo stderr:; cat "$at_stderr"
 
102627
echo stdout:; cat "$at_stdout"
 
102628
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102629
$at_failed && at_fn_log_failure
 
102630
$at_traceon; }
 
102631
 
 
102632
   { set +x
 
102633
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102634
     # in the normal case.  POSIX doesn't require fractional times to
 
102635
     # work, so this might not work.
 
102636
     sleep 0.1
 
102637
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102638
     # Then wait up to 10 seconds.
 
102639
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102640
       sleep 1
 
102641
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102642
     done
 
102643
     exit 1"
 
102644
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102645
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102646
     # in the normal case.  POSIX doesn't require fractional times to
 
102647
     # work, so this might not work.
 
102648
     sleep 0.1
 
102649
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102650
     # Then wait up to 10 seconds.
 
102651
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102652
       sleep 1
 
102653
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102654
     done
 
102655
     exit 1
 
102656
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102657
at_status=$? at_failed=false
 
102658
$at_check_filter
 
102659
echo stderr:; cat "$at_stderr"
 
102660
echo stdout:; cat "$at_stdout"
 
102661
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102662
if $at_failed; then :
 
102663
  kill `cat savepid`
 
102664
fi
 
102665
$at_failed && at_fn_log_failure
 
102666
$at_traceon; }
 
102667
 
 
102668
fi
 
102669
$at_failed && at_fn_log_failure
 
102670
$at_traceon; }
 
102671
 
 
102672
   { set +x
 
102673
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
102674
"
 
102675
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102676
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
102677
 
 
102678
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102679
at_status=$? at_failed=false
 
102680
$at_check_filter
 
102681
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xapi1
 
102682
" | \
 
102683
  $at_diff - "$at_stderr" || at_failed=:
 
102684
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
102685
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102686
if $at_failed; then :
 
102687
  cp pid savepid
 
102688
   { set +x
 
102689
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102690
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102691
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102692
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102693
at_status=$? at_failed=false
 
102694
$at_check_filter
 
102695
echo stderr:; cat "$at_stderr"
 
102696
echo stdout:; cat "$at_stdout"
 
102697
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102698
$at_failed && at_fn_log_failure
 
102699
$at_traceon; }
 
102700
 
 
102701
   { set +x
 
102702
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102703
     # in the normal case.  POSIX doesn't require fractional times to
 
102704
     # work, so this might not work.
 
102705
     sleep 0.1
 
102706
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102707
     # Then wait up to 10 seconds.
 
102708
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102709
       sleep 1
 
102710
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102711
     done
 
102712
     exit 1"
 
102713
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102714
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102715
     # in the normal case.  POSIX doesn't require fractional times to
 
102716
     # work, so this might not work.
 
102717
     sleep 0.1
 
102718
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102719
     # Then wait up to 10 seconds.
 
102720
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102721
       sleep 1
 
102722
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102723
     done
 
102724
     exit 1
 
102725
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102726
at_status=$? at_failed=false
 
102727
$at_check_filter
 
102728
echo stderr:; cat "$at_stderr"
 
102729
echo stdout:; cat "$at_stdout"
 
102730
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102731
if $at_failed; then :
 
102732
  kill `cat savepid`
 
102733
fi
 
102734
$at_failed && at_fn_log_failure
 
102735
$at_traceon; }
 
102736
 
 
102737
fi
 
102738
$at_failed && at_fn_log_failure
 
102739
$at_traceon; }
 
102740
 
 
102741
   { set +x
 
102742
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0.9
 
102743
"
 
102744
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102745
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0.9
 
102746
 
 
102747
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102748
at_status=$? at_failed=false
 
102749
$at_check_filter
 
102750
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102751
echo >>"$at_stdout"; $as_echo "xapi1
 
102752
" | \
 
102753
  $at_diff - "$at_stdout" || at_failed=:
 
102754
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102755
if $at_failed; then :
 
102756
  cp pid savepid
 
102757
   { set +x
 
102758
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102759
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102760
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102761
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102762
at_status=$? at_failed=false
 
102763
$at_check_filter
 
102764
echo stderr:; cat "$at_stderr"
 
102765
echo stdout:; cat "$at_stdout"
 
102766
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102767
$at_failed && at_fn_log_failure
 
102768
$at_traceon; }
 
102769
 
 
102770
   { set +x
 
102771
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102772
     # in the normal case.  POSIX doesn't require fractional times to
 
102773
     # work, so this might not work.
 
102774
     sleep 0.1
 
102775
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102776
     # Then wait up to 10 seconds.
 
102777
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102778
       sleep 1
 
102779
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102780
     done
 
102781
     exit 1"
 
102782
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102783
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102784
     # in the normal case.  POSIX doesn't require fractional times to
 
102785
     # work, so this might not work.
 
102786
     sleep 0.1
 
102787
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102788
     # Then wait up to 10 seconds.
 
102789
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102790
       sleep 1
 
102791
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102792
     done
 
102793
     exit 1
 
102794
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102795
at_status=$? at_failed=false
 
102796
$at_check_filter
 
102797
echo stderr:; cat "$at_stderr"
 
102798
echo stdout:; cat "$at_stdout"
 
102799
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102800
if $at_failed; then :
 
102801
  kill `cat savepid`
 
102802
fi
 
102803
$at_failed && at_fn_log_failure
 
102804
$at_traceon; }
 
102805
 
 
102806
fi
 
102807
$at_failed && at_fn_log_failure
 
102808
$at_traceon; }
 
102809
 
 
102810
cp pid savepid
 
102811
   { set +x
 
102812
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102813
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102814
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102815
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102816
at_status=$? at_failed=false
 
102817
$at_check_filter
 
102818
echo stderr:; cat "$at_stderr"
 
102819
echo stdout:; cat "$at_stdout"
 
102820
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102821
$at_failed && at_fn_log_failure
 
102822
$at_traceon; }
 
102823
 
 
102824
   { set +x
 
102825
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102826
     # in the normal case.  POSIX doesn't require fractional times to
 
102827
     # work, so this might not work.
 
102828
     sleep 0.1
 
102829
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102830
     # Then wait up to 10 seconds.
 
102831
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102832
       sleep 1
 
102833
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102834
     done
 
102835
     exit 1"
 
102836
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102837
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102838
     # in the normal case.  POSIX doesn't require fractional times to
 
102839
     # work, so this might not work.
 
102840
     sleep 0.1
 
102841
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102842
     # Then wait up to 10 seconds.
 
102843
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102844
       sleep 1
 
102845
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102846
     done
 
102847
     exit 1
 
102848
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102849
at_status=$? at_failed=false
 
102850
$at_check_filter
 
102851
echo stderr:; cat "$at_stderr"
 
102852
echo stdout:; cat "$at_stdout"
 
102853
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102854
if $at_failed; then :
 
102855
  kill `cat savepid`
 
102856
fi
 
102857
$at_failed && at_fn_log_failure
 
102858
$at_traceon; }
 
102859
 
 
102860
  set +x
 
102861
  $at_times_p && times >"$at_times_file"
 
102862
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
102863
read at_status <"$at_status_file"
 
102864
#AT_STOP_956
 
102865
#AT_START_957
 
102866
at_fn_group_banner 957 'ovs-vsctl.at:488' \
 
102867
  "simple fake bridge + del-br fake bridge (VLAN 9)" "" 66
 
102868
at_xfail=no
 
102869
(
 
102870
  $as_echo "957. $at_setup_line: testing $at_desc ..."
 
102871
  $at_traceon
 
102872
 
 
102873
 
 
102874
{ set +x
 
102875
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
102876
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:488"
 
102877
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
102878
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102879
at_status=$? at_failed=false
 
102880
$at_check_filter
 
102881
echo stderr:; cat "$at_stderr"
 
102882
echo stdout:; tee stdout <"$at_stdout"
 
102883
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102884
$at_failed && at_fn_log_failure
 
102885
$at_traceon; }
 
102886
 
 
102887
   { set +x
 
102888
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-tool transact db \\
 
102889
        '[\"Open_vSwitch\",
 
102890
          {\"op\": \"insert\",
 
102891
           \"table\": \"Open_vSwitch\",
 
102892
           \"row\": {}}]'"
 
102893
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102894
( $at_check_trace; ovsdb-tool transact db \
 
102895
        '["Open_vSwitch",
 
102896
          {"op": "insert",
 
102897
           "table": "Open_vSwitch",
 
102898
           "row": {}}]'
 
102899
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102900
at_status=$? at_failed=false
 
102901
$at_check_filter
 
102902
echo stderr:; cat "$at_stderr"
 
102903
echo stdout:; cat "$at_stdout"
 
102904
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102905
$at_failed && at_fn_log_failure
 
102906
$at_traceon; }
 
102907
 
 
102908
   { set +x
 
102909
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
102910
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:488"
 
102911
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
102912
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102913
at_status=$? at_failed=false
 
102914
$at_check_filter
 
102915
echo stderr:; cat "$at_stderr"
 
102916
echo stdout:; cat "$at_stdout"
 
102917
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102918
$at_failed && at_fn_log_failure
 
102919
$at_traceon; }
 
102920
 
 
102921
{ set +x
 
102922
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
102923
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
102924
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
102925
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
102926
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 9
 
102927
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 9
 
102928
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.9
 
102929
"
 
102930
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
102931
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
102932
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
102933
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
102934
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
102935
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 9
 
102936
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 9
 
102937
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.9
 
102938
 
 
102939
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102940
at_status=$? at_failed=false
 
102941
$at_check_filter
 
102942
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
102943
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
102944
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102945
if $at_failed; then :
 
102946
  cp pid savepid
 
102947
   { set +x
 
102948
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
102949
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
102950
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
102951
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102952
at_status=$? at_failed=false
 
102953
$at_check_filter
 
102954
echo stderr:; cat "$at_stderr"
 
102955
echo stdout:; cat "$at_stdout"
 
102956
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102957
$at_failed && at_fn_log_failure
 
102958
$at_traceon; }
 
102959
 
 
102960
   { set +x
 
102961
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
102962
     # in the normal case.  POSIX doesn't require fractional times to
 
102963
     # work, so this might not work.
 
102964
     sleep 0.1
 
102965
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102966
     # Then wait up to 10 seconds.
 
102967
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102968
       sleep 1
 
102969
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
102970
     done
 
102971
     exit 1"
 
102972
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
102973
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
102974
     # in the normal case.  POSIX doesn't require fractional times to
 
102975
     # work, so this might not work.
 
102976
     sleep 0.1
 
102977
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
102978
     # Then wait up to 10 seconds.
 
102979
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
102980
       sleep 1
 
102981
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
102982
     done
 
102983
     exit 1
 
102984
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
102985
at_status=$? at_failed=false
 
102986
$at_check_filter
 
102987
echo stderr:; cat "$at_stderr"
 
102988
echo stdout:; cat "$at_stdout"
 
102989
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
102990
if $at_failed; then :
 
102991
  kill `cat savepid`
 
102992
fi
 
102993
$at_failed && at_fn_log_failure
 
102994
$at_traceon; }
 
102995
 
 
102996
fi
 
102997
$at_failed && at_fn_log_failure
 
102998
$at_traceon; }
 
102999
 
 
103000
{ set +x
 
103001
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xapi1
 
103002
"
 
103003
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103004
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xapi1
 
103005
 
 
103006
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103007
at_status=$? at_failed=false
 
103008
$at_check_filter
 
103009
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103010
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
103011
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103012
if $at_failed; then :
 
103013
  cp pid savepid
 
103014
   { set +x
 
103015
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103016
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103017
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103018
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103019
at_status=$? at_failed=false
 
103020
$at_check_filter
 
103021
echo stderr:; cat "$at_stderr"
 
103022
echo stdout:; cat "$at_stdout"
 
103023
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103024
$at_failed && at_fn_log_failure
 
103025
$at_traceon; }
 
103026
 
 
103027
   { set +x
 
103028
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103029
     # in the normal case.  POSIX doesn't require fractional times to
 
103030
     # work, so this might not work.
 
103031
     sleep 0.1
 
103032
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103033
     # Then wait up to 10 seconds.
 
103034
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103035
       sleep 1
 
103036
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103037
     done
 
103038
     exit 1"
 
103039
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103040
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103041
     # in the normal case.  POSIX doesn't require fractional times to
 
103042
     # work, so this might not work.
 
103043
     sleep 0.1
 
103044
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103045
     # Then wait up to 10 seconds.
 
103046
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103047
       sleep 1
 
103048
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103049
     done
 
103050
     exit 1
 
103051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103052
at_status=$? at_failed=false
 
103053
$at_check_filter
 
103054
echo stderr:; cat "$at_stderr"
 
103055
echo stdout:; cat "$at_stdout"
 
103056
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103057
if $at_failed; then :
 
103058
  kill `cat savepid`
 
103059
fi
 
103060
$at_failed && at_fn_log_failure
 
103061
$at_traceon; }
 
103062
 
 
103063
fi
 
103064
$at_failed && at_fn_log_failure
 
103065
$at_traceon; }
 
103066
 
 
103067
   { set +x
 
103068
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
103069
"
 
103070
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103071
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
103072
 
 
103073
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103074
at_status=$? at_failed=false
 
103075
$at_check_filter
 
103076
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103077
echo >>"$at_stdout"; $as_echo "xenbr0
 
103078
" | \
 
103079
  $at_diff - "$at_stdout" || at_failed=:
 
103080
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103081
if $at_failed; then :
 
103082
  cp pid savepid
 
103083
   { set +x
 
103084
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103085
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103086
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103087
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103088
at_status=$? at_failed=false
 
103089
$at_check_filter
 
103090
echo stderr:; cat "$at_stderr"
 
103091
echo stdout:; cat "$at_stdout"
 
103092
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103093
$at_failed && at_fn_log_failure
 
103094
$at_traceon; }
 
103095
 
 
103096
   { set +x
 
103097
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103098
     # in the normal case.  POSIX doesn't require fractional times to
 
103099
     # work, so this might not work.
 
103100
     sleep 0.1
 
103101
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103102
     # Then wait up to 10 seconds.
 
103103
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103104
       sleep 1
 
103105
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103106
     done
 
103107
     exit 1"
 
103108
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103109
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103110
     # in the normal case.  POSIX doesn't require fractional times to
 
103111
     # work, so this might not work.
 
103112
     sleep 0.1
 
103113
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103114
     # Then wait up to 10 seconds.
 
103115
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103116
       sleep 1
 
103117
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103118
     done
 
103119
     exit 1
 
103120
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103121
at_status=$? at_failed=false
 
103122
$at_check_filter
 
103123
echo stderr:; cat "$at_stderr"
 
103124
echo stdout:; cat "$at_stdout"
 
103125
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103126
if $at_failed; then :
 
103127
  kill `cat savepid`
 
103128
fi
 
103129
$at_failed && at_fn_log_failure
 
103130
$at_traceon; }
 
103131
 
 
103132
fi
 
103133
$at_failed && at_fn_log_failure
 
103134
$at_traceon; }
 
103135
 
 
103136
 
 
103137
      { set +x
 
103138
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
103139
"
 
103140
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103141
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
103142
 
 
103143
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103144
at_status=$? at_failed=false
 
103145
$at_check_filter
 
103146
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103147
echo >>"$at_stdout"; $as_echo "xenbr0
 
103148
" | \
 
103149
  $at_diff - "$at_stdout" || at_failed=:
 
103150
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103151
if $at_failed; then :
 
103152
  cp pid savepid
 
103153
   { set +x
 
103154
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103155
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103156
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103157
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103158
at_status=$? at_failed=false
 
103159
$at_check_filter
 
103160
echo stderr:; cat "$at_stderr"
 
103161
echo stdout:; cat "$at_stdout"
 
103162
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103163
$at_failed && at_fn_log_failure
 
103164
$at_traceon; }
 
103165
 
 
103166
   { set +x
 
103167
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103168
     # in the normal case.  POSIX doesn't require fractional times to
 
103169
     # work, so this might not work.
 
103170
     sleep 0.1
 
103171
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103172
     # Then wait up to 10 seconds.
 
103173
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103174
       sleep 1
 
103175
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103176
     done
 
103177
     exit 1"
 
103178
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103179
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103180
     # in the normal case.  POSIX doesn't require fractional times to
 
103181
     # work, so this might not work.
 
103182
     sleep 0.1
 
103183
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103184
     # Then wait up to 10 seconds.
 
103185
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103186
       sleep 1
 
103187
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103188
     done
 
103189
     exit 1
 
103190
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103191
at_status=$? at_failed=false
 
103192
$at_check_filter
 
103193
echo stderr:; cat "$at_stderr"
 
103194
echo stdout:; cat "$at_stdout"
 
103195
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103196
if $at_failed; then :
 
103197
  kill `cat savepid`
 
103198
fi
 
103199
$at_failed && at_fn_log_failure
 
103200
$at_traceon; }
 
103201
 
 
103202
fi
 
103203
$at_failed && at_fn_log_failure
 
103204
$at_traceon; }
 
103205
 
 
103206
 
 
103207
         { set +x
 
103208
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
103209
"
 
103210
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103211
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
103212
 
 
103213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103214
at_status=$? at_failed=false
 
103215
$at_check_filter
 
103216
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103217
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
103218
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103219
if $at_failed; then :
 
103220
  cp pid savepid
 
103221
   { set +x
 
103222
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103223
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103224
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103225
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103226
at_status=$? at_failed=false
 
103227
$at_check_filter
 
103228
echo stderr:; cat "$at_stderr"
 
103229
echo stdout:; cat "$at_stdout"
 
103230
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103231
$at_failed && at_fn_log_failure
 
103232
$at_traceon; }
 
103233
 
 
103234
   { set +x
 
103235
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103236
     # in the normal case.  POSIX doesn't require fractional times to
 
103237
     # work, so this might not work.
 
103238
     sleep 0.1
 
103239
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103240
     # Then wait up to 10 seconds.
 
103241
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103242
       sleep 1
 
103243
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103244
     done
 
103245
     exit 1"
 
103246
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103247
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103248
     # in the normal case.  POSIX doesn't require fractional times to
 
103249
     # work, so this might not work.
 
103250
     sleep 0.1
 
103251
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103252
     # Then wait up to 10 seconds.
 
103253
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103254
       sleep 1
 
103255
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103256
     done
 
103257
     exit 1
 
103258
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103259
at_status=$? at_failed=false
 
103260
$at_check_filter
 
103261
echo stderr:; cat "$at_stderr"
 
103262
echo stdout:; cat "$at_stdout"
 
103263
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103264
if $at_failed; then :
 
103265
  kill `cat savepid`
 
103266
fi
 
103267
$at_failed && at_fn_log_failure
 
103268
$at_traceon; }
 
103269
 
 
103270
fi
 
103271
$at_failed && at_fn_log_failure
 
103272
$at_traceon; }
 
103273
 
 
103274
   { set +x
 
103275
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
103276
"
 
103277
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103278
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
103279
 
 
103280
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103281
at_status=$? at_failed=false
 
103282
$at_check_filter
 
103283
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103284
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
103285
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103286
if $at_failed; then :
 
103287
  cp pid savepid
 
103288
   { set +x
 
103289
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103290
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103291
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103292
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103293
at_status=$? at_failed=false
 
103294
$at_check_filter
 
103295
echo stderr:; cat "$at_stderr"
 
103296
echo stdout:; cat "$at_stdout"
 
103297
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103298
$at_failed && at_fn_log_failure
 
103299
$at_traceon; }
 
103300
 
 
103301
   { set +x
 
103302
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103303
     # in the normal case.  POSIX doesn't require fractional times to
 
103304
     # work, so this might not work.
 
103305
     sleep 0.1
 
103306
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103307
     # Then wait up to 10 seconds.
 
103308
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103309
       sleep 1
 
103310
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103311
     done
 
103312
     exit 1"
 
103313
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103314
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103315
     # in the normal case.  POSIX doesn't require fractional times to
 
103316
     # work, so this might not work.
 
103317
     sleep 0.1
 
103318
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103319
     # Then wait up to 10 seconds.
 
103320
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103321
       sleep 1
 
103322
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103323
     done
 
103324
     exit 1
 
103325
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103326
at_status=$? at_failed=false
 
103327
$at_check_filter
 
103328
echo stderr:; cat "$at_stderr"
 
103329
echo stdout:; cat "$at_stdout"
 
103330
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103331
if $at_failed; then :
 
103332
  kill `cat savepid`
 
103333
fi
 
103334
$at_failed && at_fn_log_failure
 
103335
$at_traceon; }
 
103336
 
 
103337
fi
 
103338
$at_failed && at_fn_log_failure
 
103339
$at_traceon; }
 
103340
 
 
103341
 
 
103342
      { set +x
 
103343
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
103344
"
 
103345
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103346
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
103347
 
 
103348
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103349
at_status=$? at_failed=false
 
103350
$at_check_filter
 
103351
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103352
echo >>"$at_stdout"; $as_echo "xenbr0
 
103353
" | \
 
103354
  $at_diff - "$at_stdout" || at_failed=:
 
103355
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103356
if $at_failed; then :
 
103357
  cp pid savepid
 
103358
   { set +x
 
103359
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103360
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103361
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103362
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103363
at_status=$? at_failed=false
 
103364
$at_check_filter
 
103365
echo stderr:; cat "$at_stderr"
 
103366
echo stdout:; cat "$at_stdout"
 
103367
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103368
$at_failed && at_fn_log_failure
 
103369
$at_traceon; }
 
103370
 
 
103371
   { set +x
 
103372
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103373
     # in the normal case.  POSIX doesn't require fractional times to
 
103374
     # work, so this might not work.
 
103375
     sleep 0.1
 
103376
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103377
     # Then wait up to 10 seconds.
 
103378
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103379
       sleep 1
 
103380
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103381
     done
 
103382
     exit 1"
 
103383
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103384
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103385
     # in the normal case.  POSIX doesn't require fractional times to
 
103386
     # work, so this might not work.
 
103387
     sleep 0.1
 
103388
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103389
     # Then wait up to 10 seconds.
 
103390
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103391
       sleep 1
 
103392
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103393
     done
 
103394
     exit 1
 
103395
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103396
at_status=$? at_failed=false
 
103397
$at_check_filter
 
103398
echo stderr:; cat "$at_stderr"
 
103399
echo stdout:; cat "$at_stdout"
 
103400
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103401
if $at_failed; then :
 
103402
  kill `cat savepid`
 
103403
fi
 
103404
$at_failed && at_fn_log_failure
 
103405
$at_traceon; }
 
103406
 
 
103407
fi
 
103408
$at_failed && at_fn_log_failure
 
103409
$at_traceon; }
 
103410
 
 
103411
 
 
103412
   # Check br-to-vlan, without --oneline.
 
103413
   { set +x
 
103414
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
103415
"
 
103416
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103417
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
103418
 
 
103419
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103420
at_status=$? at_failed=false
 
103421
$at_check_filter
 
103422
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103423
echo >>"$at_stdout"; $as_echo "0
 
103424
" | \
 
103425
  $at_diff - "$at_stdout" || at_failed=:
 
103426
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103427
if $at_failed; then :
 
103428
  cp pid savepid
 
103429
   { set +x
 
103430
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103431
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103432
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103433
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103434
at_status=$? at_failed=false
 
103435
$at_check_filter
 
103436
echo stderr:; cat "$at_stderr"
 
103437
echo stdout:; cat "$at_stdout"
 
103438
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103439
$at_failed && at_fn_log_failure
 
103440
$at_traceon; }
 
103441
 
 
103442
   { set +x
 
103443
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103444
     # in the normal case.  POSIX doesn't require fractional times to
 
103445
     # work, so this might not work.
 
103446
     sleep 0.1
 
103447
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103448
     # Then wait up to 10 seconds.
 
103449
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103450
       sleep 1
 
103451
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103452
     done
 
103453
     exit 1"
 
103454
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103455
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103456
     # in the normal case.  POSIX doesn't require fractional times to
 
103457
     # work, so this might not work.
 
103458
     sleep 0.1
 
103459
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103460
     # Then wait up to 10 seconds.
 
103461
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103462
       sleep 1
 
103463
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103464
     done
 
103465
     exit 1
 
103466
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103467
at_status=$? at_failed=false
 
103468
$at_check_filter
 
103469
echo stderr:; cat "$at_stderr"
 
103470
echo stdout:; cat "$at_stdout"
 
103471
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103472
if $at_failed; then :
 
103473
  kill `cat savepid`
 
103474
fi
 
103475
$at_failed && at_fn_log_failure
 
103476
$at_traceon; }
 
103477
 
 
103478
fi
 
103479
$at_failed && at_fn_log_failure
 
103480
$at_traceon; }
 
103481
 
 
103482
   # Check br-to-vlan, with --oneline.
 
103483
   # (This particular test is interesting with --oneline because it returns
 
103484
   # an integer instead of a string and that can cause type mismatches inside
 
103485
   # python if not done carefully.)
 
103486
   { set +x
 
103487
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
103488
"
 
103489
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103490
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
103491
 
 
103492
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103493
at_status=$? at_failed=false
 
103494
$at_check_filter
 
103495
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103496
echo >>"$at_stdout"; $as_echo "0
 
103497
" | \
 
103498
  $at_diff - "$at_stdout" || at_failed=:
 
103499
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103500
if $at_failed; then :
 
103501
  cp pid savepid
 
103502
   { set +x
 
103503
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103504
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103505
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103506
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103507
at_status=$? at_failed=false
 
103508
$at_check_filter
 
103509
echo stderr:; cat "$at_stderr"
 
103510
echo stdout:; cat "$at_stdout"
 
103511
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103512
$at_failed && at_fn_log_failure
 
103513
$at_traceon; }
 
103514
 
 
103515
   { set +x
 
103516
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103517
     # in the normal case.  POSIX doesn't require fractional times to
 
103518
     # work, so this might not work.
 
103519
     sleep 0.1
 
103520
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103521
     # Then wait up to 10 seconds.
 
103522
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103523
       sleep 1
 
103524
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103525
     done
 
103526
     exit 1"
 
103527
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103528
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103529
     # in the normal case.  POSIX doesn't require fractional times to
 
103530
     # work, so this might not work.
 
103531
     sleep 0.1
 
103532
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103533
     # Then wait up to 10 seconds.
 
103534
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103535
       sleep 1
 
103536
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103537
     done
 
103538
     exit 1
 
103539
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103540
at_status=$? at_failed=false
 
103541
$at_check_filter
 
103542
echo stderr:; cat "$at_stderr"
 
103543
echo stdout:; cat "$at_stdout"
 
103544
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103545
if $at_failed; then :
 
103546
  kill `cat savepid`
 
103547
fi
 
103548
$at_failed && at_fn_log_failure
 
103549
$at_traceon; }
 
103550
 
 
103551
fi
 
103552
$at_failed && at_fn_log_failure
 
103553
$at_traceon; }
 
103554
 
 
103555
 
 
103556
   # Check multiple queries in a single run.
 
103557
   { set +x
 
103558
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0"
 
103559
at_fn_check_prepare_trace "ovs-vsctl.at:488"
 
103560
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0
 
103561
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103562
at_status=$? at_failed=false
 
103563
$at_check_filter
 
103564
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103565
echo >>"$at_stdout"; $as_echo "xenbr0
 
103566
0
 
103567
" | \
 
103568
  $at_diff - "$at_stdout" || at_failed=:
 
103569
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103570
if $at_failed; then :
 
103571
  cp pid savepid
 
103572
   { set +x
 
103573
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103574
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103575
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103576
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103577
at_status=$? at_failed=false
 
103578
$at_check_filter
 
103579
echo stderr:; cat "$at_stderr"
 
103580
echo stdout:; cat "$at_stdout"
 
103581
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103582
$at_failed && at_fn_log_failure
 
103583
$at_traceon; }
 
103584
 
 
103585
   { set +x
 
103586
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103587
     # in the normal case.  POSIX doesn't require fractional times to
 
103588
     # work, so this might not work.
 
103589
     sleep 0.1
 
103590
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103591
     # Then wait up to 10 seconds.
 
103592
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103593
       sleep 1
 
103594
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103595
     done
 
103596
     exit 1"
 
103597
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103598
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103599
     # in the normal case.  POSIX doesn't require fractional times to
 
103600
     # work, so this might not work.
 
103601
     sleep 0.1
 
103602
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103603
     # Then wait up to 10 seconds.
 
103604
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103605
       sleep 1
 
103606
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103607
     done
 
103608
     exit 1
 
103609
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103610
at_status=$? at_failed=false
 
103611
$at_check_filter
 
103612
echo stderr:; cat "$at_stderr"
 
103613
echo stdout:; cat "$at_stdout"
 
103614
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103615
if $at_failed; then :
 
103616
  kill `cat savepid`
 
103617
fi
 
103618
$at_failed && at_fn_log_failure
 
103619
$at_traceon; }
 
103620
 
 
103621
fi
 
103622
$at_failed && at_fn_log_failure
 
103623
$at_traceon; }
 
103624
 
 
103625
   { set +x
 
103626
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
103627
"
 
103628
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103629
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
103630
 
 
103631
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103632
at_status=$? at_failed=false
 
103633
$at_check_filter
 
103634
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103635
echo >>"$at_stdout"; $as_echo "eth0
 
103636
" | \
 
103637
  $at_diff - "$at_stdout" || at_failed=:
 
103638
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103639
if $at_failed; then :
 
103640
  cp pid savepid
 
103641
   { set +x
 
103642
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103643
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103644
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103645
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103646
at_status=$? at_failed=false
 
103647
$at_check_filter
 
103648
echo stderr:; cat "$at_stderr"
 
103649
echo stdout:; cat "$at_stdout"
 
103650
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103651
$at_failed && at_fn_log_failure
 
103652
$at_traceon; }
 
103653
 
 
103654
   { set +x
 
103655
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103656
     # in the normal case.  POSIX doesn't require fractional times to
 
103657
     # work, so this might not work.
 
103658
     sleep 0.1
 
103659
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103660
     # Then wait up to 10 seconds.
 
103661
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103662
       sleep 1
 
103663
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103664
     done
 
103665
     exit 1"
 
103666
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103667
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103668
     # in the normal case.  POSIX doesn't require fractional times to
 
103669
     # work, so this might not work.
 
103670
     sleep 0.1
 
103671
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103672
     # Then wait up to 10 seconds.
 
103673
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103674
       sleep 1
 
103675
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103676
     done
 
103677
     exit 1
 
103678
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103679
at_status=$? at_failed=false
 
103680
$at_check_filter
 
103681
echo stderr:; cat "$at_stderr"
 
103682
echo stdout:; cat "$at_stdout"
 
103683
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103684
if $at_failed; then :
 
103685
  kill `cat savepid`
 
103686
fi
 
103687
$at_failed && at_fn_log_failure
 
103688
$at_traceon; }
 
103689
 
 
103690
fi
 
103691
$at_failed && at_fn_log_failure
 
103692
$at_traceon; }
 
103693
 
 
103694
 
 
103695
      { set +x
 
103696
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
103697
"
 
103698
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103699
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
103700
 
 
103701
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103702
at_status=$? at_failed=false
 
103703
$at_check_filter
 
103704
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103705
echo >>"$at_stdout"; $as_echo "eth0
 
103706
" | \
 
103707
  $at_diff - "$at_stdout" || at_failed=:
 
103708
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103709
if $at_failed; then :
 
103710
  cp pid savepid
 
103711
   { set +x
 
103712
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103713
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103714
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103715
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103716
at_status=$? at_failed=false
 
103717
$at_check_filter
 
103718
echo stderr:; cat "$at_stderr"
 
103719
echo stdout:; cat "$at_stdout"
 
103720
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103721
$at_failed && at_fn_log_failure
 
103722
$at_traceon; }
 
103723
 
 
103724
   { set +x
 
103725
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103726
     # in the normal case.  POSIX doesn't require fractional times to
 
103727
     # work, so this might not work.
 
103728
     sleep 0.1
 
103729
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103730
     # Then wait up to 10 seconds.
 
103731
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103732
       sleep 1
 
103733
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103734
     done
 
103735
     exit 1"
 
103736
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103737
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103738
     # in the normal case.  POSIX doesn't require fractional times to
 
103739
     # work, so this might not work.
 
103740
     sleep 0.1
 
103741
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103742
     # Then wait up to 10 seconds.
 
103743
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103744
       sleep 1
 
103745
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103746
     done
 
103747
     exit 1
 
103748
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103749
at_status=$? at_failed=false
 
103750
$at_check_filter
 
103751
echo stderr:; cat "$at_stderr"
 
103752
echo stdout:; cat "$at_stdout"
 
103753
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103754
if $at_failed; then :
 
103755
  kill `cat savepid`
 
103756
fi
 
103757
$at_failed && at_fn_log_failure
 
103758
$at_traceon; }
 
103759
 
 
103760
fi
 
103761
$at_failed && at_fn_log_failure
 
103762
$at_traceon; }
 
103763
 
 
103764
   { set +x
 
103765
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
103766
"
 
103767
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103768
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
103769
 
 
103770
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103771
at_status=$? at_failed=false
 
103772
$at_check_filter
 
103773
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xenbr0
 
103774
" | \
 
103775
  $at_diff - "$at_stderr" || at_failed=:
 
103776
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
103777
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103778
if $at_failed; then :
 
103779
  cp pid savepid
 
103780
   { set +x
 
103781
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103782
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103783
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103784
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103785
at_status=$? at_failed=false
 
103786
$at_check_filter
 
103787
echo stderr:; cat "$at_stderr"
 
103788
echo stdout:; cat "$at_stdout"
 
103789
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103790
$at_failed && at_fn_log_failure
 
103791
$at_traceon; }
 
103792
 
 
103793
   { set +x
 
103794
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103795
     # in the normal case.  POSIX doesn't require fractional times to
 
103796
     # work, so this might not work.
 
103797
     sleep 0.1
 
103798
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103799
     # Then wait up to 10 seconds.
 
103800
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103801
       sleep 1
 
103802
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103803
     done
 
103804
     exit 1"
 
103805
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103806
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103807
     # in the normal case.  POSIX doesn't require fractional times to
 
103808
     # work, so this might not work.
 
103809
     sleep 0.1
 
103810
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103811
     # Then wait up to 10 seconds.
 
103812
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103813
       sleep 1
 
103814
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103815
     done
 
103816
     exit 1
 
103817
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103818
at_status=$? at_failed=false
 
103819
$at_check_filter
 
103820
echo stderr:; cat "$at_stderr"
 
103821
echo stdout:; cat "$at_stdout"
 
103822
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103823
if $at_failed; then :
 
103824
  kill `cat savepid`
 
103825
fi
 
103826
$at_failed && at_fn_log_failure
 
103827
$at_traceon; }
 
103828
 
 
103829
fi
 
103830
$at_failed && at_fn_log_failure
 
103831
$at_traceon; }
 
103832
 
 
103833
   { set +x
 
103834
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
103835
"
 
103836
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103837
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
103838
 
 
103839
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103840
at_status=$? at_failed=false
 
103841
$at_check_filter
 
103842
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103843
echo >>"$at_stdout"; $as_echo "xenbr0
 
103844
" | \
 
103845
  $at_diff - "$at_stdout" || at_failed=:
 
103846
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103847
if $at_failed; then :
 
103848
  cp pid savepid
 
103849
   { set +x
 
103850
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103851
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103852
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103853
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103854
at_status=$? at_failed=false
 
103855
$at_check_filter
 
103856
echo stderr:; cat "$at_stderr"
 
103857
echo stdout:; cat "$at_stdout"
 
103858
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103859
$at_failed && at_fn_log_failure
 
103860
$at_traceon; }
 
103861
 
 
103862
   { set +x
 
103863
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103864
     # in the normal case.  POSIX doesn't require fractional times to
 
103865
     # work, so this might not work.
 
103866
     sleep 0.1
 
103867
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103868
     # Then wait up to 10 seconds.
 
103869
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103870
       sleep 1
 
103871
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103872
     done
 
103873
     exit 1"
 
103874
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103875
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103876
     # in the normal case.  POSIX doesn't require fractional times to
 
103877
     # work, so this might not work.
 
103878
     sleep 0.1
 
103879
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103880
     # Then wait up to 10 seconds.
 
103881
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103882
       sleep 1
 
103883
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103884
     done
 
103885
     exit 1
 
103886
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103887
at_status=$? at_failed=false
 
103888
$at_check_filter
 
103889
echo stderr:; cat "$at_stderr"
 
103890
echo stdout:; cat "$at_stdout"
 
103891
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103892
if $at_failed; then :
 
103893
  kill `cat savepid`
 
103894
fi
 
103895
$at_failed && at_fn_log_failure
 
103896
$at_traceon; }
 
103897
 
 
103898
fi
 
103899
$at_failed && at_fn_log_failure
 
103900
$at_traceon; }
 
103901
 
 
103902
{ set +x
 
103903
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
103904
"
 
103905
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103906
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
103907
 
 
103908
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103909
at_status=$? at_failed=false
 
103910
$at_check_filter
 
103911
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
103912
echo >>"$at_stdout"; $as_echo "eth0
 
103913
" | \
 
103914
  $at_diff - "$at_stdout" || at_failed=:
 
103915
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103916
if $at_failed; then :
 
103917
  cp pid savepid
 
103918
   { set +x
 
103919
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103920
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103921
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103922
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103923
at_status=$? at_failed=false
 
103924
$at_check_filter
 
103925
echo stderr:; cat "$at_stderr"
 
103926
echo stdout:; cat "$at_stdout"
 
103927
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103928
$at_failed && at_fn_log_failure
 
103929
$at_traceon; }
 
103930
 
 
103931
   { set +x
 
103932
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
103933
     # in the normal case.  POSIX doesn't require fractional times to
 
103934
     # work, so this might not work.
 
103935
     sleep 0.1
 
103936
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103937
     # Then wait up to 10 seconds.
 
103938
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103939
       sleep 1
 
103940
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
103941
     done
 
103942
     exit 1"
 
103943
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
103944
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
103945
     # in the normal case.  POSIX doesn't require fractional times to
 
103946
     # work, so this might not work.
 
103947
     sleep 0.1
 
103948
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
103949
     # Then wait up to 10 seconds.
 
103950
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
103951
       sleep 1
 
103952
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
103953
     done
 
103954
     exit 1
 
103955
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103956
at_status=$? at_failed=false
 
103957
$at_check_filter
 
103958
echo stderr:; cat "$at_stderr"
 
103959
echo stdout:; cat "$at_stdout"
 
103960
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103961
if $at_failed; then :
 
103962
  kill `cat savepid`
 
103963
fi
 
103964
$at_failed && at_fn_log_failure
 
103965
$at_traceon; }
 
103966
 
 
103967
fi
 
103968
$at_failed && at_fn_log_failure
 
103969
$at_traceon; }
 
103970
 
 
103971
   { set +x
 
103972
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
103973
"
 
103974
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
103975
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
103976
 
 
103977
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103978
at_status=$? at_failed=false
 
103979
$at_check_filter
 
103980
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xenbr0
 
103981
" | \
 
103982
  $at_diff - "$at_stderr" || at_failed=:
 
103983
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
103984
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103985
if $at_failed; then :
 
103986
  cp pid savepid
 
103987
   { set +x
 
103988
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
103989
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
103990
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
103991
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
103992
at_status=$? at_failed=false
 
103993
$at_check_filter
 
103994
echo stderr:; cat "$at_stderr"
 
103995
echo stdout:; cat "$at_stdout"
 
103996
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
103997
$at_failed && at_fn_log_failure
 
103998
$at_traceon; }
 
103999
 
 
104000
   { set +x
 
104001
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104002
     # in the normal case.  POSIX doesn't require fractional times to
 
104003
     # work, so this might not work.
 
104004
     sleep 0.1
 
104005
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104006
     # Then wait up to 10 seconds.
 
104007
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104008
       sleep 1
 
104009
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104010
     done
 
104011
     exit 1"
 
104012
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104013
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104014
     # in the normal case.  POSIX doesn't require fractional times to
 
104015
     # work, so this might not work.
 
104016
     sleep 0.1
 
104017
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104018
     # Then wait up to 10 seconds.
 
104019
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104020
       sleep 1
 
104021
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104022
     done
 
104023
     exit 1
 
104024
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104025
at_status=$? at_failed=false
 
104026
$at_check_filter
 
104027
echo stderr:; cat "$at_stderr"
 
104028
echo stdout:; cat "$at_stdout"
 
104029
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104030
if $at_failed; then :
 
104031
  kill `cat savepid`
 
104032
fi
 
104033
$at_failed && at_fn_log_failure
 
104034
$at_traceon; }
 
104035
 
 
104036
fi
 
104037
$at_failed && at_fn_log_failure
 
104038
$at_traceon; }
 
104039
 
 
104040
   { set +x
 
104041
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
104042
"
 
104043
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104044
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
104045
 
 
104046
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104047
at_status=$? at_failed=false
 
104048
$at_check_filter
 
104049
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104050
echo >>"$at_stdout"; $as_echo "xenbr0
 
104051
" | \
 
104052
  $at_diff - "$at_stdout" || at_failed=:
 
104053
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104054
if $at_failed; then :
 
104055
  cp pid savepid
 
104056
   { set +x
 
104057
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104058
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104059
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104060
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104061
at_status=$? at_failed=false
 
104062
$at_check_filter
 
104063
echo stderr:; cat "$at_stderr"
 
104064
echo stdout:; cat "$at_stdout"
 
104065
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104066
$at_failed && at_fn_log_failure
 
104067
$at_traceon; }
 
104068
 
 
104069
   { set +x
 
104070
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104071
     # in the normal case.  POSIX doesn't require fractional times to
 
104072
     # work, so this might not work.
 
104073
     sleep 0.1
 
104074
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104075
     # Then wait up to 10 seconds.
 
104076
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104077
       sleep 1
 
104078
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104079
     done
 
104080
     exit 1"
 
104081
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104082
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104083
     # in the normal case.  POSIX doesn't require fractional times to
 
104084
     # work, so this might not work.
 
104085
     sleep 0.1
 
104086
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104087
     # Then wait up to 10 seconds.
 
104088
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104089
       sleep 1
 
104090
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104091
     done
 
104092
     exit 1
 
104093
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104094
at_status=$? at_failed=false
 
104095
$at_check_filter
 
104096
echo stderr:; cat "$at_stderr"
 
104097
echo stdout:; cat "$at_stdout"
 
104098
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104099
if $at_failed; then :
 
104100
  kill `cat savepid`
 
104101
fi
 
104102
$at_failed && at_fn_log_failure
 
104103
$at_traceon; }
 
104104
 
 
104105
fi
 
104106
$at_failed && at_fn_log_failure
 
104107
$at_traceon; }
 
104108
 
 
104109
cp pid savepid
 
104110
   { set +x
 
104111
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104112
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104113
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104114
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104115
at_status=$? at_failed=false
 
104116
$at_check_filter
 
104117
echo stderr:; cat "$at_stderr"
 
104118
echo stdout:; cat "$at_stdout"
 
104119
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104120
$at_failed && at_fn_log_failure
 
104121
$at_traceon; }
 
104122
 
 
104123
   { set +x
 
104124
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104125
     # in the normal case.  POSIX doesn't require fractional times to
 
104126
     # work, so this might not work.
 
104127
     sleep 0.1
 
104128
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104129
     # Then wait up to 10 seconds.
 
104130
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104131
       sleep 1
 
104132
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104133
     done
 
104134
     exit 1"
 
104135
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104136
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104137
     # in the normal case.  POSIX doesn't require fractional times to
 
104138
     # work, so this might not work.
 
104139
     sleep 0.1
 
104140
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104141
     # Then wait up to 10 seconds.
 
104142
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104143
       sleep 1
 
104144
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104145
     done
 
104146
     exit 1
 
104147
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104148
at_status=$? at_failed=false
 
104149
$at_check_filter
 
104150
echo stderr:; cat "$at_stderr"
 
104151
echo stdout:; cat "$at_stdout"
 
104152
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104153
if $at_failed; then :
 
104154
  kill `cat savepid`
 
104155
fi
 
104156
$at_failed && at_fn_log_failure
 
104157
$at_traceon; }
 
104158
 
 
104159
  set +x
 
104160
  $at_times_p && times >"$at_times_file"
 
104161
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
104162
read at_status <"$at_status_file"
 
104163
#AT_STOP_957
 
104164
#AT_START_958
 
104165
at_fn_group_banner 958 'ovs-vsctl.at:488' \
 
104166
  "simple fake bridge + del-br real bridge (VLAN 9)" "" 66
 
104167
at_xfail=no
 
104168
(
 
104169
  $as_echo "958. $at_setup_line: testing $at_desc ..."
 
104170
  $at_traceon
 
104171
 
 
104172
 
 
104173
{ set +x
 
104174
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
104175
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:488"
 
104176
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
104177
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104178
at_status=$? at_failed=false
 
104179
$at_check_filter
 
104180
echo stderr:; cat "$at_stderr"
 
104181
echo stdout:; tee stdout <"$at_stdout"
 
104182
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104183
$at_failed && at_fn_log_failure
 
104184
$at_traceon; }
 
104185
 
 
104186
   { set +x
 
104187
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-tool transact db \\
 
104188
        '[\"Open_vSwitch\",
 
104189
          {\"op\": \"insert\",
 
104190
           \"table\": \"Open_vSwitch\",
 
104191
           \"row\": {}}]'"
 
104192
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104193
( $at_check_trace; ovsdb-tool transact db \
 
104194
        '["Open_vSwitch",
 
104195
          {"op": "insert",
 
104196
           "table": "Open_vSwitch",
 
104197
           "row": {}}]'
 
104198
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104199
at_status=$? at_failed=false
 
104200
$at_check_filter
 
104201
echo stderr:; cat "$at_stderr"
 
104202
echo stdout:; cat "$at_stdout"
 
104203
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104204
$at_failed && at_fn_log_failure
 
104205
$at_traceon; }
 
104206
 
 
104207
   { set +x
 
104208
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
104209
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:488"
 
104210
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
104211
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104212
at_status=$? at_failed=false
 
104213
$at_check_filter
 
104214
echo stderr:; cat "$at_stderr"
 
104215
echo stdout:; cat "$at_stdout"
 
104216
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104217
$at_failed && at_fn_log_failure
 
104218
$at_traceon; }
 
104219
 
 
104220
{ set +x
 
104221
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
104222
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
104223
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
104224
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
104225
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 9
 
104226
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 9
 
104227
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.9
 
104228
"
 
104229
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104230
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
104231
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
104232
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
104233
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
104234
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 9
 
104235
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 9
 
104236
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.9
 
104237
 
 
104238
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104239
at_status=$? at_failed=false
 
104240
$at_check_filter
 
104241
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104242
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
104243
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104244
if $at_failed; then :
 
104245
  cp pid savepid
 
104246
   { set +x
 
104247
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104248
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104249
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104250
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104251
at_status=$? at_failed=false
 
104252
$at_check_filter
 
104253
echo stderr:; cat "$at_stderr"
 
104254
echo stdout:; cat "$at_stdout"
 
104255
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104256
$at_failed && at_fn_log_failure
 
104257
$at_traceon; }
 
104258
 
 
104259
   { set +x
 
104260
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104261
     # in the normal case.  POSIX doesn't require fractional times to
 
104262
     # work, so this might not work.
 
104263
     sleep 0.1
 
104264
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104265
     # Then wait up to 10 seconds.
 
104266
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104267
       sleep 1
 
104268
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104269
     done
 
104270
     exit 1"
 
104271
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104272
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104273
     # in the normal case.  POSIX doesn't require fractional times to
 
104274
     # work, so this might not work.
 
104275
     sleep 0.1
 
104276
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104277
     # Then wait up to 10 seconds.
 
104278
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104279
       sleep 1
 
104280
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104281
     done
 
104282
     exit 1
 
104283
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104284
at_status=$? at_failed=false
 
104285
$at_check_filter
 
104286
echo stderr:; cat "$at_stderr"
 
104287
echo stdout:; cat "$at_stdout"
 
104288
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104289
if $at_failed; then :
 
104290
  kill `cat savepid`
 
104291
fi
 
104292
$at_failed && at_fn_log_failure
 
104293
$at_traceon; }
 
104294
 
 
104295
fi
 
104296
$at_failed && at_fn_log_failure
 
104297
$at_traceon; }
 
104298
 
 
104299
{ set +x
 
104300
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xenbr0
 
104301
"
 
104302
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104303
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xenbr0
 
104304
 
 
104305
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104306
at_status=$? at_failed=false
 
104307
$at_check_filter
 
104308
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104309
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
104310
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104311
if $at_failed; then :
 
104312
  cp pid savepid
 
104313
   { set +x
 
104314
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104315
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104316
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104317
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104318
at_status=$? at_failed=false
 
104319
$at_check_filter
 
104320
echo stderr:; cat "$at_stderr"
 
104321
echo stdout:; cat "$at_stdout"
 
104322
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104323
$at_failed && at_fn_log_failure
 
104324
$at_traceon; }
 
104325
 
 
104326
   { set +x
 
104327
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104328
     # in the normal case.  POSIX doesn't require fractional times to
 
104329
     # work, so this might not work.
 
104330
     sleep 0.1
 
104331
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104332
     # Then wait up to 10 seconds.
 
104333
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104334
       sleep 1
 
104335
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104336
     done
 
104337
     exit 1"
 
104338
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104339
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104340
     # in the normal case.  POSIX doesn't require fractional times to
 
104341
     # work, so this might not work.
 
104342
     sleep 0.1
 
104343
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104344
     # Then wait up to 10 seconds.
 
104345
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104346
       sleep 1
 
104347
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104348
     done
 
104349
     exit 1
 
104350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104351
at_status=$? at_failed=false
 
104352
$at_check_filter
 
104353
echo stderr:; cat "$at_stderr"
 
104354
echo stdout:; cat "$at_stdout"
 
104355
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104356
if $at_failed; then :
 
104357
  kill `cat savepid`
 
104358
fi
 
104359
$at_failed && at_fn_log_failure
 
104360
$at_traceon; }
 
104361
 
 
104362
fi
 
104363
$at_failed && at_fn_log_failure
 
104364
$at_traceon; }
 
104365
 
 
104366
   { set +x
 
104367
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
104368
"
 
104369
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104370
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
104371
 
 
104372
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104373
at_status=$? at_failed=false
 
104374
$at_check_filter
 
104375
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104376
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
104377
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104378
if $at_failed; then :
 
104379
  cp pid savepid
 
104380
   { set +x
 
104381
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104382
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104383
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104384
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104385
at_status=$? at_failed=false
 
104386
$at_check_filter
 
104387
echo stderr:; cat "$at_stderr"
 
104388
echo stdout:; cat "$at_stdout"
 
104389
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104390
$at_failed && at_fn_log_failure
 
104391
$at_traceon; }
 
104392
 
 
104393
   { set +x
 
104394
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104395
     # in the normal case.  POSIX doesn't require fractional times to
 
104396
     # work, so this might not work.
 
104397
     sleep 0.1
 
104398
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104399
     # Then wait up to 10 seconds.
 
104400
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104401
       sleep 1
 
104402
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104403
     done
 
104404
     exit 1"
 
104405
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104406
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104407
     # in the normal case.  POSIX doesn't require fractional times to
 
104408
     # work, so this might not work.
 
104409
     sleep 0.1
 
104410
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104411
     # Then wait up to 10 seconds.
 
104412
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104413
       sleep 1
 
104414
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104415
     done
 
104416
     exit 1
 
104417
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104418
at_status=$? at_failed=false
 
104419
$at_check_filter
 
104420
echo stderr:; cat "$at_stderr"
 
104421
echo stdout:; cat "$at_stdout"
 
104422
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104423
if $at_failed; then :
 
104424
  kill `cat savepid`
 
104425
fi
 
104426
$at_failed && at_fn_log_failure
 
104427
$at_traceon; }
 
104428
 
 
104429
fi
 
104430
$at_failed && at_fn_log_failure
 
104431
$at_traceon; }
 
104432
 
 
104433
 
 
104434
      { set +x
 
104435
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
104436
"
 
104437
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104438
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
104439
 
 
104440
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104441
at_status=$? at_failed=false
 
104442
$at_check_filter
 
104443
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104444
echo >>"$at_stdout"; $as_echo "
 
104445
" | \
 
104446
  $at_diff - "$at_stdout" || at_failed=:
 
104447
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104448
if $at_failed; then :
 
104449
  cp pid savepid
 
104450
   { set +x
 
104451
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104452
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104453
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104454
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104455
at_status=$? at_failed=false
 
104456
$at_check_filter
 
104457
echo stderr:; cat "$at_stderr"
 
104458
echo stdout:; cat "$at_stdout"
 
104459
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104460
$at_failed && at_fn_log_failure
 
104461
$at_traceon; }
 
104462
 
 
104463
   { set +x
 
104464
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104465
     # in the normal case.  POSIX doesn't require fractional times to
 
104466
     # work, so this might not work.
 
104467
     sleep 0.1
 
104468
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104469
     # Then wait up to 10 seconds.
 
104470
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104471
       sleep 1
 
104472
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104473
     done
 
104474
     exit 1"
 
104475
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104476
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104477
     # in the normal case.  POSIX doesn't require fractional times to
 
104478
     # work, so this might not work.
 
104479
     sleep 0.1
 
104480
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104481
     # Then wait up to 10 seconds.
 
104482
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104483
       sleep 1
 
104484
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104485
     done
 
104486
     exit 1
 
104487
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104488
at_status=$? at_failed=false
 
104489
$at_check_filter
 
104490
echo stderr:; cat "$at_stderr"
 
104491
echo stdout:; cat "$at_stdout"
 
104492
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104493
if $at_failed; then :
 
104494
  kill `cat savepid`
 
104495
fi
 
104496
$at_failed && at_fn_log_failure
 
104497
$at_traceon; }
 
104498
 
 
104499
fi
 
104500
$at_failed && at_fn_log_failure
 
104501
$at_traceon; }
 
104502
 
 
104503
 
 
104504
 
 
104505
   { set +x
 
104506
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
104507
"
 
104508
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104509
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
104510
 
 
104511
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104512
at_status=$? at_failed=false
 
104513
$at_check_filter
 
104514
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104515
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
104516
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104517
if $at_failed; then :
 
104518
  cp pid savepid
 
104519
   { set +x
 
104520
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104521
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104522
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104524
at_status=$? at_failed=false
 
104525
$at_check_filter
 
104526
echo stderr:; cat "$at_stderr"
 
104527
echo stdout:; cat "$at_stdout"
 
104528
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104529
$at_failed && at_fn_log_failure
 
104530
$at_traceon; }
 
104531
 
 
104532
   { set +x
 
104533
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104534
     # in the normal case.  POSIX doesn't require fractional times to
 
104535
     # work, so this might not work.
 
104536
     sleep 0.1
 
104537
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104538
     # Then wait up to 10 seconds.
 
104539
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104540
       sleep 1
 
104541
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104542
     done
 
104543
     exit 1"
 
104544
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104545
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104546
     # in the normal case.  POSIX doesn't require fractional times to
 
104547
     # work, so this might not work.
 
104548
     sleep 0.1
 
104549
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104550
     # Then wait up to 10 seconds.
 
104551
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104552
       sleep 1
 
104553
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104554
     done
 
104555
     exit 1
 
104556
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104557
at_status=$? at_failed=false
 
104558
$at_check_filter
 
104559
echo stderr:; cat "$at_stderr"
 
104560
echo stdout:; cat "$at_stdout"
 
104561
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104562
if $at_failed; then :
 
104563
  kill `cat savepid`
 
104564
fi
 
104565
$at_failed && at_fn_log_failure
 
104566
$at_traceon; }
 
104567
 
 
104568
fi
 
104569
$at_failed && at_fn_log_failure
 
104570
$at_traceon; }
 
104571
 
 
104572
 
 
104573
 
 
104574
cp pid savepid
 
104575
   { set +x
 
104576
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104577
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104578
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104579
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104580
at_status=$? at_failed=false
 
104581
$at_check_filter
 
104582
echo stderr:; cat "$at_stderr"
 
104583
echo stdout:; cat "$at_stdout"
 
104584
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104585
$at_failed && at_fn_log_failure
 
104586
$at_traceon; }
 
104587
 
 
104588
   { set +x
 
104589
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104590
     # in the normal case.  POSIX doesn't require fractional times to
 
104591
     # work, so this might not work.
 
104592
     sleep 0.1
 
104593
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104594
     # Then wait up to 10 seconds.
 
104595
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104596
       sleep 1
 
104597
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104598
     done
 
104599
     exit 1"
 
104600
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104601
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104602
     # in the normal case.  POSIX doesn't require fractional times to
 
104603
     # work, so this might not work.
 
104604
     sleep 0.1
 
104605
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104606
     # Then wait up to 10 seconds.
 
104607
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104608
       sleep 1
 
104609
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104610
     done
 
104611
     exit 1
 
104612
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104613
at_status=$? at_failed=false
 
104614
$at_check_filter
 
104615
echo stderr:; cat "$at_stderr"
 
104616
echo stdout:; cat "$at_stdout"
 
104617
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104618
if $at_failed; then :
 
104619
  kill `cat savepid`
 
104620
fi
 
104621
$at_failed && at_fn_log_failure
 
104622
$at_traceon; }
 
104623
 
 
104624
  set +x
 
104625
  $at_times_p && times >"$at_times_file"
 
104626
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
104627
read at_status <"$at_status_file"
 
104628
#AT_STOP_958
 
104629
#AT_START_959
 
104630
at_fn_group_banner 959 'ovs-vsctl.at:488' \
 
104631
  "simple fake bridge + external IDs (VLAN 9)" "     " 66
 
104632
at_xfail=no
 
104633
(
 
104634
  $as_echo "959. $at_setup_line: testing $at_desc ..."
 
104635
  $at_traceon
 
104636
 
 
104637
 
 
104638
{ set +x
 
104639
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
104640
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:488"
 
104641
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
104642
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104643
at_status=$? at_failed=false
 
104644
$at_check_filter
 
104645
echo stderr:; cat "$at_stderr"
 
104646
echo stdout:; tee stdout <"$at_stdout"
 
104647
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104648
$at_failed && at_fn_log_failure
 
104649
$at_traceon; }
 
104650
 
 
104651
   { set +x
 
104652
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-tool transact db \\
 
104653
        '[\"Open_vSwitch\",
 
104654
          {\"op\": \"insert\",
 
104655
           \"table\": \"Open_vSwitch\",
 
104656
           \"row\": {}}]'"
 
104657
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104658
( $at_check_trace; ovsdb-tool transact db \
 
104659
        '["Open_vSwitch",
 
104660
          {"op": "insert",
 
104661
           "table": "Open_vSwitch",
 
104662
           "row": {}}]'
 
104663
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104664
at_status=$? at_failed=false
 
104665
$at_check_filter
 
104666
echo stderr:; cat "$at_stderr"
 
104667
echo stdout:; cat "$at_stdout"
 
104668
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104669
$at_failed && at_fn_log_failure
 
104670
$at_traceon; }
 
104671
 
 
104672
   { set +x
 
104673
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
104674
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:488"
 
104675
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
104676
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104677
at_status=$? at_failed=false
 
104678
$at_check_filter
 
104679
echo stderr:; cat "$at_stderr"
 
104680
echo stdout:; cat "$at_stdout"
 
104681
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104682
$at_failed && at_fn_log_failure
 
104683
$at_traceon; }
 
104684
 
 
104685
{ set +x
 
104686
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
104687
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
104688
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
104689
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
104690
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 9
 
104691
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 9
 
104692
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.9
 
104693
"
 
104694
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104695
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
104696
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
104697
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
104698
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
104699
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 9
 
104700
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 9
 
104701
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.9
 
104702
 
 
104703
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104704
at_status=$? at_failed=false
 
104705
$at_check_filter
 
104706
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104707
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
104708
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104709
if $at_failed; then :
 
104710
  cp pid savepid
 
104711
   { set +x
 
104712
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104713
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104714
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104715
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104716
at_status=$? at_failed=false
 
104717
$at_check_filter
 
104718
echo stderr:; cat "$at_stderr"
 
104719
echo stdout:; cat "$at_stdout"
 
104720
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104721
$at_failed && at_fn_log_failure
 
104722
$at_traceon; }
 
104723
 
 
104724
   { set +x
 
104725
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104726
     # in the normal case.  POSIX doesn't require fractional times to
 
104727
     # work, so this might not work.
 
104728
     sleep 0.1
 
104729
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104730
     # Then wait up to 10 seconds.
 
104731
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104732
       sleep 1
 
104733
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104734
     done
 
104735
     exit 1"
 
104736
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104737
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104738
     # in the normal case.  POSIX doesn't require fractional times to
 
104739
     # work, so this might not work.
 
104740
     sleep 0.1
 
104741
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104742
     # Then wait up to 10 seconds.
 
104743
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104744
       sleep 1
 
104745
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104746
     done
 
104747
     exit 1
 
104748
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104749
at_status=$? at_failed=false
 
104750
$at_check_filter
 
104751
echo stderr:; cat "$at_stderr"
 
104752
echo stdout:; cat "$at_stdout"
 
104753
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104754
if $at_failed; then :
 
104755
  kill `cat savepid`
 
104756
fi
 
104757
$at_failed && at_fn_log_failure
 
104758
$at_traceon; }
 
104759
 
 
104760
fi
 
104761
$at_failed && at_fn_log_failure
 
104762
$at_traceon; }
 
104763
 
 
104764
{ set +x
 
104765
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-set-external-id xenbr0 key0 value0 -- br-set-external-id xapi1 key1 value1 -- br-get-external-id xenbr0 -- br-get-external-id xenbr0 key0 -- br-get-external-id xapi1 -- br-get-external-id xapi1 key1"
 
104766
at_fn_check_prepare_trace "ovs-vsctl.at:488"
 
104767
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-set-external-id xenbr0 key0 value0 -- br-set-external-id xapi1 key1 value1 -- br-get-external-id xenbr0 -- br-get-external-id xenbr0 key0 -- br-get-external-id xapi1 -- br-get-external-id xapi1 key1
 
104768
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104769
at_status=$? at_failed=false
 
104770
$at_check_filter
 
104771
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104772
echo >>"$at_stdout"; $as_echo "
 
104773
 
 
104774
key0=value0
 
104775
value0
 
104776
key1=value1
 
104777
value1
 
104778
" | \
 
104779
  $at_diff - "$at_stdout" || at_failed=:
 
104780
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104781
if $at_failed; then :
 
104782
  cp pid savepid
 
104783
   { set +x
 
104784
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104785
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104786
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104787
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104788
at_status=$? at_failed=false
 
104789
$at_check_filter
 
104790
echo stderr:; cat "$at_stderr"
 
104791
echo stdout:; cat "$at_stdout"
 
104792
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104793
$at_failed && at_fn_log_failure
 
104794
$at_traceon; }
 
104795
 
 
104796
   { set +x
 
104797
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104798
     # in the normal case.  POSIX doesn't require fractional times to
 
104799
     # work, so this might not work.
 
104800
     sleep 0.1
 
104801
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104802
     # Then wait up to 10 seconds.
 
104803
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104804
       sleep 1
 
104805
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104806
     done
 
104807
     exit 1"
 
104808
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104809
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104810
     # in the normal case.  POSIX doesn't require fractional times to
 
104811
     # work, so this might not work.
 
104812
     sleep 0.1
 
104813
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104814
     # Then wait up to 10 seconds.
 
104815
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104816
       sleep 1
 
104817
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104818
     done
 
104819
     exit 1
 
104820
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104821
at_status=$? at_failed=false
 
104822
$at_check_filter
 
104823
echo stderr:; cat "$at_stderr"
 
104824
echo stdout:; cat "$at_stdout"
 
104825
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104826
if $at_failed; then :
 
104827
  kill `cat savepid`
 
104828
fi
 
104829
$at_failed && at_fn_log_failure
 
104830
$at_traceon; }
 
104831
 
 
104832
fi
 
104833
$at_failed && at_fn_log_failure
 
104834
$at_traceon; }
 
104835
 
 
104836
   { set +x
 
104837
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
104838
"
 
104839
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104840
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
104841
 
 
104842
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104843
at_status=$? at_failed=false
 
104844
$at_check_filter
 
104845
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104846
echo >>"$at_stdout"; $as_echo "xapi1
 
104847
xenbr0
 
104848
" | \
 
104849
  $at_diff - "$at_stdout" || at_failed=:
 
104850
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104851
if $at_failed; then :
 
104852
  cp pid savepid
 
104853
   { set +x
 
104854
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104855
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104856
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104857
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104858
at_status=$? at_failed=false
 
104859
$at_check_filter
 
104860
echo stderr:; cat "$at_stderr"
 
104861
echo stdout:; cat "$at_stdout"
 
104862
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104863
$at_failed && at_fn_log_failure
 
104864
$at_traceon; }
 
104865
 
 
104866
   { set +x
 
104867
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104868
     # in the normal case.  POSIX doesn't require fractional times to
 
104869
     # work, so this might not work.
 
104870
     sleep 0.1
 
104871
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104872
     # Then wait up to 10 seconds.
 
104873
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104874
       sleep 1
 
104875
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104876
     done
 
104877
     exit 1"
 
104878
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104879
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104880
     # in the normal case.  POSIX doesn't require fractional times to
 
104881
     # work, so this might not work.
 
104882
     sleep 0.1
 
104883
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104884
     # Then wait up to 10 seconds.
 
104885
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104886
       sleep 1
 
104887
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104888
     done
 
104889
     exit 1
 
104890
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104891
at_status=$? at_failed=false
 
104892
$at_check_filter
 
104893
echo stderr:; cat "$at_stderr"
 
104894
echo stdout:; cat "$at_stdout"
 
104895
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104896
if $at_failed; then :
 
104897
  kill `cat savepid`
 
104898
fi
 
104899
$at_failed && at_fn_log_failure
 
104900
$at_traceon; }
 
104901
 
 
104902
fi
 
104903
$at_failed && at_fn_log_failure
 
104904
$at_traceon; }
 
104905
 
 
104906
 
 
104907
      { set +x
 
104908
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
104909
"
 
104910
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104911
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
104912
 
 
104913
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104914
at_status=$? at_failed=false
 
104915
$at_check_filter
 
104916
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104917
echo >>"$at_stdout"; $as_echo "xapi1\\nxenbr0
 
104918
" | \
 
104919
  $at_diff - "$at_stdout" || at_failed=:
 
104920
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104921
if $at_failed; then :
 
104922
  cp pid savepid
 
104923
   { set +x
 
104924
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104925
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104926
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104927
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104928
at_status=$? at_failed=false
 
104929
$at_check_filter
 
104930
echo stderr:; cat "$at_stderr"
 
104931
echo stdout:; cat "$at_stdout"
 
104932
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104933
$at_failed && at_fn_log_failure
 
104934
$at_traceon; }
 
104935
 
 
104936
   { set +x
 
104937
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
104938
     # in the normal case.  POSIX doesn't require fractional times to
 
104939
     # work, so this might not work.
 
104940
     sleep 0.1
 
104941
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104942
     # Then wait up to 10 seconds.
 
104943
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104944
       sleep 1
 
104945
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
104946
     done
 
104947
     exit 1"
 
104948
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
104949
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
104950
     # in the normal case.  POSIX doesn't require fractional times to
 
104951
     # work, so this might not work.
 
104952
     sleep 0.1
 
104953
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
104954
     # Then wait up to 10 seconds.
 
104955
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
104956
       sleep 1
 
104957
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
104958
     done
 
104959
     exit 1
 
104960
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104961
at_status=$? at_failed=false
 
104962
$at_check_filter
 
104963
echo stderr:; cat "$at_stderr"
 
104964
echo stdout:; cat "$at_stdout"
 
104965
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104966
if $at_failed; then :
 
104967
  kill `cat savepid`
 
104968
fi
 
104969
$at_failed && at_fn_log_failure
 
104970
$at_traceon; }
 
104971
 
 
104972
fi
 
104973
$at_failed && at_fn_log_failure
 
104974
$at_traceon; }
 
104975
 
 
104976
 
 
104977
         { set +x
 
104978
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
104979
"
 
104980
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
104981
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
104982
 
 
104983
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104984
at_status=$? at_failed=false
 
104985
$at_check_filter
 
104986
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
104987
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
104988
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
104989
if $at_failed; then :
 
104990
  cp pid savepid
 
104991
   { set +x
 
104992
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
104993
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
104994
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
104995
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
104996
at_status=$? at_failed=false
 
104997
$at_check_filter
 
104998
echo stderr:; cat "$at_stderr"
 
104999
echo stdout:; cat "$at_stdout"
 
105000
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105001
$at_failed && at_fn_log_failure
 
105002
$at_traceon; }
 
105003
 
 
105004
   { set +x
 
105005
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105006
     # in the normal case.  POSIX doesn't require fractional times to
 
105007
     # work, so this might not work.
 
105008
     sleep 0.1
 
105009
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105010
     # Then wait up to 10 seconds.
 
105011
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105012
       sleep 1
 
105013
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105014
     done
 
105015
     exit 1"
 
105016
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105017
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105018
     # in the normal case.  POSIX doesn't require fractional times to
 
105019
     # work, so this might not work.
 
105020
     sleep 0.1
 
105021
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105022
     # Then wait up to 10 seconds.
 
105023
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105024
       sleep 1
 
105025
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105026
     done
 
105027
     exit 1
 
105028
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105029
at_status=$? at_failed=false
 
105030
$at_check_filter
 
105031
echo stderr:; cat "$at_stderr"
 
105032
echo stdout:; cat "$at_stdout"
 
105033
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105034
if $at_failed; then :
 
105035
  kill `cat savepid`
 
105036
fi
 
105037
$at_failed && at_fn_log_failure
 
105038
$at_traceon; }
 
105039
 
 
105040
fi
 
105041
$at_failed && at_fn_log_failure
 
105042
$at_traceon; }
 
105043
{ set +x
 
105044
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
105045
"
 
105046
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105047
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
105048
 
 
105049
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105050
at_status=$? at_failed=false
 
105051
$at_check_filter
 
105052
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105053
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
105054
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105055
if $at_failed; then :
 
105056
  cp pid savepid
 
105057
   { set +x
 
105058
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105059
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105060
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105061
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105062
at_status=$? at_failed=false
 
105063
$at_check_filter
 
105064
echo stderr:; cat "$at_stderr"
 
105065
echo stdout:; cat "$at_stdout"
 
105066
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105067
$at_failed && at_fn_log_failure
 
105068
$at_traceon; }
 
105069
 
 
105070
   { set +x
 
105071
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105072
     # in the normal case.  POSIX doesn't require fractional times to
 
105073
     # work, so this might not work.
 
105074
     sleep 0.1
 
105075
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105076
     # Then wait up to 10 seconds.
 
105077
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105078
       sleep 1
 
105079
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105080
     done
 
105081
     exit 1"
 
105082
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105083
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105084
     # in the normal case.  POSIX doesn't require fractional times to
 
105085
     # work, so this might not work.
 
105086
     sleep 0.1
 
105087
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105088
     # Then wait up to 10 seconds.
 
105089
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105090
       sleep 1
 
105091
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105092
     done
 
105093
     exit 1
 
105094
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105095
at_status=$? at_failed=false
 
105096
$at_check_filter
 
105097
echo stderr:; cat "$at_stderr"
 
105098
echo stdout:; cat "$at_stdout"
 
105099
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105100
if $at_failed; then :
 
105101
  kill `cat savepid`
 
105102
fi
 
105103
$at_failed && at_fn_log_failure
 
105104
$at_traceon; }
 
105105
 
 
105106
fi
 
105107
$at_failed && at_fn_log_failure
 
105108
$at_traceon; }
 
105109
 
 
105110
   { set +x
 
105111
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
105112
"
 
105113
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105114
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
105115
 
 
105116
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105117
at_status=$? at_failed=false
 
105118
$at_check_filter
 
105119
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105120
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
105121
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105122
if $at_failed; then :
 
105123
  cp pid savepid
 
105124
   { set +x
 
105125
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105126
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105127
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105129
at_status=$? at_failed=false
 
105130
$at_check_filter
 
105131
echo stderr:; cat "$at_stderr"
 
105132
echo stdout:; cat "$at_stdout"
 
105133
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105134
$at_failed && at_fn_log_failure
 
105135
$at_traceon; }
 
105136
 
 
105137
   { set +x
 
105138
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105139
     # in the normal case.  POSIX doesn't require fractional times to
 
105140
     # work, so this might not work.
 
105141
     sleep 0.1
 
105142
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105143
     # Then wait up to 10 seconds.
 
105144
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105145
       sleep 1
 
105146
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105147
     done
 
105148
     exit 1"
 
105149
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105150
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105151
     # in the normal case.  POSIX doesn't require fractional times to
 
105152
     # work, so this might not work.
 
105153
     sleep 0.1
 
105154
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105155
     # Then wait up to 10 seconds.
 
105156
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105157
       sleep 1
 
105158
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105159
     done
 
105160
     exit 1
 
105161
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105162
at_status=$? at_failed=false
 
105163
$at_check_filter
 
105164
echo stderr:; cat "$at_stderr"
 
105165
echo stdout:; cat "$at_stdout"
 
105166
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105167
if $at_failed; then :
 
105168
  kill `cat savepid`
 
105169
fi
 
105170
$at_failed && at_fn_log_failure
 
105171
$at_traceon; }
 
105172
 
 
105173
fi
 
105174
$at_failed && at_fn_log_failure
 
105175
$at_traceon; }
 
105176
 
 
105177
 
 
105178
      { set +x
 
105179
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
105180
"
 
105181
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105182
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
105183
 
 
105184
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105185
at_status=$? at_failed=false
 
105186
$at_check_filter
 
105187
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105188
echo >>"$at_stdout"; $as_echo "xenbr0
 
105189
" | \
 
105190
  $at_diff - "$at_stdout" || at_failed=:
 
105191
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105192
if $at_failed; then :
 
105193
  cp pid savepid
 
105194
   { set +x
 
105195
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105196
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105197
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105198
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105199
at_status=$? at_failed=false
 
105200
$at_check_filter
 
105201
echo stderr:; cat "$at_stderr"
 
105202
echo stdout:; cat "$at_stdout"
 
105203
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105204
$at_failed && at_fn_log_failure
 
105205
$at_traceon; }
 
105206
 
 
105207
   { set +x
 
105208
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105209
     # in the normal case.  POSIX doesn't require fractional times to
 
105210
     # work, so this might not work.
 
105211
     sleep 0.1
 
105212
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105213
     # Then wait up to 10 seconds.
 
105214
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105215
       sleep 1
 
105216
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105217
     done
 
105218
     exit 1"
 
105219
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105220
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105221
     # in the normal case.  POSIX doesn't require fractional times to
 
105222
     # work, so this might not work.
 
105223
     sleep 0.1
 
105224
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105225
     # Then wait up to 10 seconds.
 
105226
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105227
       sleep 1
 
105228
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105229
     done
 
105230
     exit 1
 
105231
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105232
at_status=$? at_failed=false
 
105233
$at_check_filter
 
105234
echo stderr:; cat "$at_stderr"
 
105235
echo stdout:; cat "$at_stdout"
 
105236
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105237
if $at_failed; then :
 
105238
  kill `cat savepid`
 
105239
fi
 
105240
$at_failed && at_fn_log_failure
 
105241
$at_traceon; }
 
105242
 
 
105243
fi
 
105244
$at_failed && at_fn_log_failure
 
105245
$at_traceon; }
 
105246
 
 
105247
 
 
105248
   # Check br-to-vlan, without --oneline.
 
105249
   { set +x
 
105250
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
105251
"
 
105252
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105253
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
105254
 
 
105255
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105256
at_status=$? at_failed=false
 
105257
$at_check_filter
 
105258
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105259
echo >>"$at_stdout"; $as_echo "9
 
105260
" | \
 
105261
  $at_diff - "$at_stdout" || at_failed=:
 
105262
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105263
if $at_failed; then :
 
105264
  cp pid savepid
 
105265
   { set +x
 
105266
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105267
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105268
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105269
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105270
at_status=$? at_failed=false
 
105271
$at_check_filter
 
105272
echo stderr:; cat "$at_stderr"
 
105273
echo stdout:; cat "$at_stdout"
 
105274
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105275
$at_failed && at_fn_log_failure
 
105276
$at_traceon; }
 
105277
 
 
105278
   { set +x
 
105279
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105280
     # in the normal case.  POSIX doesn't require fractional times to
 
105281
     # work, so this might not work.
 
105282
     sleep 0.1
 
105283
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105284
     # Then wait up to 10 seconds.
 
105285
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105286
       sleep 1
 
105287
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105288
     done
 
105289
     exit 1"
 
105290
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105291
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105292
     # in the normal case.  POSIX doesn't require fractional times to
 
105293
     # work, so this might not work.
 
105294
     sleep 0.1
 
105295
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105296
     # Then wait up to 10 seconds.
 
105297
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105298
       sleep 1
 
105299
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105300
     done
 
105301
     exit 1
 
105302
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105303
at_status=$? at_failed=false
 
105304
$at_check_filter
 
105305
echo stderr:; cat "$at_stderr"
 
105306
echo stdout:; cat "$at_stdout"
 
105307
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105308
if $at_failed; then :
 
105309
  kill `cat savepid`
 
105310
fi
 
105311
$at_failed && at_fn_log_failure
 
105312
$at_traceon; }
 
105313
 
 
105314
fi
 
105315
$at_failed && at_fn_log_failure
 
105316
$at_traceon; }
 
105317
 
 
105318
   # Check br-to-vlan, with --oneline.
 
105319
   # (This particular test is interesting with --oneline because it returns
 
105320
   # an integer instead of a string and that can cause type mismatches inside
 
105321
   # python if not done carefully.)
 
105322
   { set +x
 
105323
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
105324
"
 
105325
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105326
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
105327
 
 
105328
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105329
at_status=$? at_failed=false
 
105330
$at_check_filter
 
105331
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105332
echo >>"$at_stdout"; $as_echo "9
 
105333
" | \
 
105334
  $at_diff - "$at_stdout" || at_failed=:
 
105335
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105336
if $at_failed; then :
 
105337
  cp pid savepid
 
105338
   { set +x
 
105339
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105340
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105341
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105342
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105343
at_status=$? at_failed=false
 
105344
$at_check_filter
 
105345
echo stderr:; cat "$at_stderr"
 
105346
echo stdout:; cat "$at_stdout"
 
105347
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105348
$at_failed && at_fn_log_failure
 
105349
$at_traceon; }
 
105350
 
 
105351
   { set +x
 
105352
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105353
     # in the normal case.  POSIX doesn't require fractional times to
 
105354
     # work, so this might not work.
 
105355
     sleep 0.1
 
105356
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105357
     # Then wait up to 10 seconds.
 
105358
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105359
       sleep 1
 
105360
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105361
     done
 
105362
     exit 1"
 
105363
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105364
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105365
     # in the normal case.  POSIX doesn't require fractional times to
 
105366
     # work, so this might not work.
 
105367
     sleep 0.1
 
105368
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105369
     # Then wait up to 10 seconds.
 
105370
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105371
       sleep 1
 
105372
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105373
     done
 
105374
     exit 1
 
105375
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105376
at_status=$? at_failed=false
 
105377
$at_check_filter
 
105378
echo stderr:; cat "$at_stderr"
 
105379
echo stdout:; cat "$at_stdout"
 
105380
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105381
if $at_failed; then :
 
105382
  kill `cat savepid`
 
105383
fi
 
105384
$at_failed && at_fn_log_failure
 
105385
$at_traceon; }
 
105386
 
 
105387
fi
 
105388
$at_failed && at_fn_log_failure
 
105389
$at_traceon; }
 
105390
 
 
105391
 
 
105392
   # Check multiple queries in a single run.
 
105393
   { set +x
 
105394
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1"
 
105395
at_fn_check_prepare_trace "ovs-vsctl.at:488"
 
105396
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1
 
105397
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105398
at_status=$? at_failed=false
 
105399
$at_check_filter
 
105400
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105401
echo >>"$at_stdout"; $as_echo "xenbr0
 
105402
9
 
105403
" | \
 
105404
  $at_diff - "$at_stdout" || at_failed=:
 
105405
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105406
if $at_failed; then :
 
105407
  cp pid savepid
 
105408
   { set +x
 
105409
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105410
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105411
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105412
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105413
at_status=$? at_failed=false
 
105414
$at_check_filter
 
105415
echo stderr:; cat "$at_stderr"
 
105416
echo stdout:; cat "$at_stdout"
 
105417
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105418
$at_failed && at_fn_log_failure
 
105419
$at_traceon; }
 
105420
 
 
105421
   { set +x
 
105422
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105423
     # in the normal case.  POSIX doesn't require fractional times to
 
105424
     # work, so this might not work.
 
105425
     sleep 0.1
 
105426
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105427
     # Then wait up to 10 seconds.
 
105428
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105429
       sleep 1
 
105430
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105431
     done
 
105432
     exit 1"
 
105433
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105434
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105435
     # in the normal case.  POSIX doesn't require fractional times to
 
105436
     # work, so this might not work.
 
105437
     sleep 0.1
 
105438
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105439
     # Then wait up to 10 seconds.
 
105440
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105441
       sleep 1
 
105442
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105443
     done
 
105444
     exit 1
 
105445
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105446
at_status=$? at_failed=false
 
105447
$at_check_filter
 
105448
echo stderr:; cat "$at_stderr"
 
105449
echo stdout:; cat "$at_stdout"
 
105450
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105451
if $at_failed; then :
 
105452
  kill `cat savepid`
 
105453
fi
 
105454
$at_failed && at_fn_log_failure
 
105455
$at_traceon; }
 
105456
 
 
105457
fi
 
105458
$at_failed && at_fn_log_failure
 
105459
$at_traceon; }
 
105460
{ set +x
 
105461
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
105462
"
 
105463
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105464
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
105465
 
 
105466
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105467
at_status=$? at_failed=false
 
105468
$at_check_filter
 
105469
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105470
echo >>"$at_stdout"; $as_echo "xenbr0
 
105471
" | \
 
105472
  $at_diff - "$at_stdout" || at_failed=:
 
105473
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105474
if $at_failed; then :
 
105475
  cp pid savepid
 
105476
   { set +x
 
105477
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105478
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105479
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105480
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105481
at_status=$? at_failed=false
 
105482
$at_check_filter
 
105483
echo stderr:; cat "$at_stderr"
 
105484
echo stdout:; cat "$at_stdout"
 
105485
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105486
$at_failed && at_fn_log_failure
 
105487
$at_traceon; }
 
105488
 
 
105489
   { set +x
 
105490
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105491
     # in the normal case.  POSIX doesn't require fractional times to
 
105492
     # work, so this might not work.
 
105493
     sleep 0.1
 
105494
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105495
     # Then wait up to 10 seconds.
 
105496
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105497
       sleep 1
 
105498
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105499
     done
 
105500
     exit 1"
 
105501
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105502
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105503
     # in the normal case.  POSIX doesn't require fractional times to
 
105504
     # work, so this might not work.
 
105505
     sleep 0.1
 
105506
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105507
     # Then wait up to 10 seconds.
 
105508
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105509
       sleep 1
 
105510
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105511
     done
 
105512
     exit 1
 
105513
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105514
at_status=$? at_failed=false
 
105515
$at_check_filter
 
105516
echo stderr:; cat "$at_stderr"
 
105517
echo stdout:; cat "$at_stdout"
 
105518
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105519
if $at_failed; then :
 
105520
  kill `cat savepid`
 
105521
fi
 
105522
$at_failed && at_fn_log_failure
 
105523
$at_traceon; }
 
105524
 
 
105525
fi
 
105526
$at_failed && at_fn_log_failure
 
105527
$at_traceon; }
 
105528
 
 
105529
 
 
105530
   # Check br-to-vlan, without --oneline.
 
105531
   { set +x
 
105532
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
105533
"
 
105534
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105535
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
105536
 
 
105537
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105538
at_status=$? at_failed=false
 
105539
$at_check_filter
 
105540
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105541
echo >>"$at_stdout"; $as_echo "0
 
105542
" | \
 
105543
  $at_diff - "$at_stdout" || at_failed=:
 
105544
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105545
if $at_failed; then :
 
105546
  cp pid savepid
 
105547
   { set +x
 
105548
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105549
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105550
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105551
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105552
at_status=$? at_failed=false
 
105553
$at_check_filter
 
105554
echo stderr:; cat "$at_stderr"
 
105555
echo stdout:; cat "$at_stdout"
 
105556
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105557
$at_failed && at_fn_log_failure
 
105558
$at_traceon; }
 
105559
 
 
105560
   { set +x
 
105561
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105562
     # in the normal case.  POSIX doesn't require fractional times to
 
105563
     # work, so this might not work.
 
105564
     sleep 0.1
 
105565
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105566
     # Then wait up to 10 seconds.
 
105567
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105568
       sleep 1
 
105569
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105570
     done
 
105571
     exit 1"
 
105572
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105573
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105574
     # in the normal case.  POSIX doesn't require fractional times to
 
105575
     # work, so this might not work.
 
105576
     sleep 0.1
 
105577
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105578
     # Then wait up to 10 seconds.
 
105579
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105580
       sleep 1
 
105581
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105582
     done
 
105583
     exit 1
 
105584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105585
at_status=$? at_failed=false
 
105586
$at_check_filter
 
105587
echo stderr:; cat "$at_stderr"
 
105588
echo stdout:; cat "$at_stdout"
 
105589
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105590
if $at_failed; then :
 
105591
  kill `cat savepid`
 
105592
fi
 
105593
$at_failed && at_fn_log_failure
 
105594
$at_traceon; }
 
105595
 
 
105596
fi
 
105597
$at_failed && at_fn_log_failure
 
105598
$at_traceon; }
 
105599
 
 
105600
   # Check br-to-vlan, with --oneline.
 
105601
   # (This particular test is interesting with --oneline because it returns
 
105602
   # an integer instead of a string and that can cause type mismatches inside
 
105603
   # python if not done carefully.)
 
105604
   { set +x
 
105605
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
105606
"
 
105607
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105608
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
105609
 
 
105610
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105611
at_status=$? at_failed=false
 
105612
$at_check_filter
 
105613
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105614
echo >>"$at_stdout"; $as_echo "0
 
105615
" | \
 
105616
  $at_diff - "$at_stdout" || at_failed=:
 
105617
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105618
if $at_failed; then :
 
105619
  cp pid savepid
 
105620
   { set +x
 
105621
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105622
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105623
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105624
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105625
at_status=$? at_failed=false
 
105626
$at_check_filter
 
105627
echo stderr:; cat "$at_stderr"
 
105628
echo stdout:; cat "$at_stdout"
 
105629
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105630
$at_failed && at_fn_log_failure
 
105631
$at_traceon; }
 
105632
 
 
105633
   { set +x
 
105634
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105635
     # in the normal case.  POSIX doesn't require fractional times to
 
105636
     # work, so this might not work.
 
105637
     sleep 0.1
 
105638
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105639
     # Then wait up to 10 seconds.
 
105640
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105641
       sleep 1
 
105642
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105643
     done
 
105644
     exit 1"
 
105645
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105646
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105647
     # in the normal case.  POSIX doesn't require fractional times to
 
105648
     # work, so this might not work.
 
105649
     sleep 0.1
 
105650
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105651
     # Then wait up to 10 seconds.
 
105652
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105653
       sleep 1
 
105654
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105655
     done
 
105656
     exit 1
 
105657
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105658
at_status=$? at_failed=false
 
105659
$at_check_filter
 
105660
echo stderr:; cat "$at_stderr"
 
105661
echo stdout:; cat "$at_stdout"
 
105662
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105663
if $at_failed; then :
 
105664
  kill `cat savepid`
 
105665
fi
 
105666
$at_failed && at_fn_log_failure
 
105667
$at_traceon; }
 
105668
 
 
105669
fi
 
105670
$at_failed && at_fn_log_failure
 
105671
$at_traceon; }
 
105672
 
 
105673
 
 
105674
   # Check multiple queries in a single run.
 
105675
   { set +x
 
105676
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0"
 
105677
at_fn_check_prepare_trace "ovs-vsctl.at:488"
 
105678
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0
 
105679
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105680
at_status=$? at_failed=false
 
105681
$at_check_filter
 
105682
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105683
echo >>"$at_stdout"; $as_echo "xenbr0
 
105684
0
 
105685
" | \
 
105686
  $at_diff - "$at_stdout" || at_failed=:
 
105687
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105688
if $at_failed; then :
 
105689
  cp pid savepid
 
105690
   { set +x
 
105691
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105692
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105693
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105694
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105695
at_status=$? at_failed=false
 
105696
$at_check_filter
 
105697
echo stderr:; cat "$at_stderr"
 
105698
echo stdout:; cat "$at_stdout"
 
105699
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105700
$at_failed && at_fn_log_failure
 
105701
$at_traceon; }
 
105702
 
 
105703
   { set +x
 
105704
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105705
     # in the normal case.  POSIX doesn't require fractional times to
 
105706
     # work, so this might not work.
 
105707
     sleep 0.1
 
105708
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105709
     # Then wait up to 10 seconds.
 
105710
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105711
       sleep 1
 
105712
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105713
     done
 
105714
     exit 1"
 
105715
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105716
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105717
     # in the normal case.  POSIX doesn't require fractional times to
 
105718
     # work, so this might not work.
 
105719
     sleep 0.1
 
105720
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105721
     # Then wait up to 10 seconds.
 
105722
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105723
       sleep 1
 
105724
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105725
     done
 
105726
     exit 1
 
105727
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105728
at_status=$? at_failed=false
 
105729
$at_check_filter
 
105730
echo stderr:; cat "$at_stderr"
 
105731
echo stdout:; cat "$at_stdout"
 
105732
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105733
if $at_failed; then :
 
105734
  kill `cat savepid`
 
105735
fi
 
105736
$at_failed && at_fn_log_failure
 
105737
$at_traceon; }
 
105738
 
 
105739
fi
 
105740
$at_failed && at_fn_log_failure
 
105741
$at_traceon; }
 
105742
 
 
105743
   { set +x
 
105744
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
105745
"
 
105746
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105747
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
105748
 
 
105749
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105750
at_status=$? at_failed=false
 
105751
$at_check_filter
 
105752
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105753
echo >>"$at_stdout"; $as_echo "eth0
 
105754
" | \
 
105755
  $at_diff - "$at_stdout" || at_failed=:
 
105756
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105757
if $at_failed; then :
 
105758
  cp pid savepid
 
105759
   { set +x
 
105760
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105761
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105762
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105763
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105764
at_status=$? at_failed=false
 
105765
$at_check_filter
 
105766
echo stderr:; cat "$at_stderr"
 
105767
echo stdout:; cat "$at_stdout"
 
105768
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105769
$at_failed && at_fn_log_failure
 
105770
$at_traceon; }
 
105771
 
 
105772
   { set +x
 
105773
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105774
     # in the normal case.  POSIX doesn't require fractional times to
 
105775
     # work, so this might not work.
 
105776
     sleep 0.1
 
105777
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105778
     # Then wait up to 10 seconds.
 
105779
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105780
       sleep 1
 
105781
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105782
     done
 
105783
     exit 1"
 
105784
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105785
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105786
     # in the normal case.  POSIX doesn't require fractional times to
 
105787
     # work, so this might not work.
 
105788
     sleep 0.1
 
105789
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105790
     # Then wait up to 10 seconds.
 
105791
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105792
       sleep 1
 
105793
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105794
     done
 
105795
     exit 1
 
105796
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105797
at_status=$? at_failed=false
 
105798
$at_check_filter
 
105799
echo stderr:; cat "$at_stderr"
 
105800
echo stdout:; cat "$at_stdout"
 
105801
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105802
if $at_failed; then :
 
105803
  kill `cat savepid`
 
105804
fi
 
105805
$at_failed && at_fn_log_failure
 
105806
$at_traceon; }
 
105807
 
 
105808
fi
 
105809
$at_failed && at_fn_log_failure
 
105810
$at_traceon; }
 
105811
 
 
105812
 
 
105813
      { set +x
 
105814
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
105815
"
 
105816
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105817
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
105818
 
 
105819
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105820
at_status=$? at_failed=false
 
105821
$at_check_filter
 
105822
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105823
echo >>"$at_stdout"; $as_echo "eth0
 
105824
" | \
 
105825
  $at_diff - "$at_stdout" || at_failed=:
 
105826
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105827
if $at_failed; then :
 
105828
  cp pid savepid
 
105829
   { set +x
 
105830
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105831
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105832
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105833
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105834
at_status=$? at_failed=false
 
105835
$at_check_filter
 
105836
echo stderr:; cat "$at_stderr"
 
105837
echo stdout:; cat "$at_stdout"
 
105838
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105839
$at_failed && at_fn_log_failure
 
105840
$at_traceon; }
 
105841
 
 
105842
   { set +x
 
105843
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105844
     # in the normal case.  POSIX doesn't require fractional times to
 
105845
     # work, so this might not work.
 
105846
     sleep 0.1
 
105847
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105848
     # Then wait up to 10 seconds.
 
105849
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105850
       sleep 1
 
105851
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105852
     done
 
105853
     exit 1"
 
105854
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105855
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105856
     # in the normal case.  POSIX doesn't require fractional times to
 
105857
     # work, so this might not work.
 
105858
     sleep 0.1
 
105859
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105860
     # Then wait up to 10 seconds.
 
105861
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105862
       sleep 1
 
105863
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105864
     done
 
105865
     exit 1
 
105866
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105867
at_status=$? at_failed=false
 
105868
$at_check_filter
 
105869
echo stderr:; cat "$at_stderr"
 
105870
echo stdout:; cat "$at_stdout"
 
105871
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105872
if $at_failed; then :
 
105873
  kill `cat savepid`
 
105874
fi
 
105875
$at_failed && at_fn_log_failure
 
105876
$at_traceon; }
 
105877
 
 
105878
fi
 
105879
$at_failed && at_fn_log_failure
 
105880
$at_traceon; }
 
105881
 
 
105882
   { set +x
 
105883
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
105884
"
 
105885
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105886
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
105887
 
 
105888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105889
at_status=$? at_failed=false
 
105890
$at_check_filter
 
105891
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xenbr0
 
105892
" | \
 
105893
  $at_diff - "$at_stderr" || at_failed=:
 
105894
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
105895
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105896
if $at_failed; then :
 
105897
  cp pid savepid
 
105898
   { set +x
 
105899
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105900
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105901
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105902
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105903
at_status=$? at_failed=false
 
105904
$at_check_filter
 
105905
echo stderr:; cat "$at_stderr"
 
105906
echo stdout:; cat "$at_stdout"
 
105907
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105908
$at_failed && at_fn_log_failure
 
105909
$at_traceon; }
 
105910
 
 
105911
   { set +x
 
105912
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105913
     # in the normal case.  POSIX doesn't require fractional times to
 
105914
     # work, so this might not work.
 
105915
     sleep 0.1
 
105916
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105917
     # Then wait up to 10 seconds.
 
105918
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105919
       sleep 1
 
105920
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105921
     done
 
105922
     exit 1"
 
105923
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105924
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105925
     # in the normal case.  POSIX doesn't require fractional times to
 
105926
     # work, so this might not work.
 
105927
     sleep 0.1
 
105928
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105929
     # Then wait up to 10 seconds.
 
105930
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105931
       sleep 1
 
105932
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
105933
     done
 
105934
     exit 1
 
105935
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105936
at_status=$? at_failed=false
 
105937
$at_check_filter
 
105938
echo stderr:; cat "$at_stderr"
 
105939
echo stdout:; cat "$at_stdout"
 
105940
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105941
if $at_failed; then :
 
105942
  kill `cat savepid`
 
105943
fi
 
105944
$at_failed && at_fn_log_failure
 
105945
$at_traceon; }
 
105946
 
 
105947
fi
 
105948
$at_failed && at_fn_log_failure
 
105949
$at_traceon; }
 
105950
 
 
105951
   { set +x
 
105952
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
105953
"
 
105954
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
105955
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
105956
 
 
105957
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105958
at_status=$? at_failed=false
 
105959
$at_check_filter
 
105960
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
105961
echo >>"$at_stdout"; $as_echo "xenbr0
 
105962
" | \
 
105963
  $at_diff - "$at_stdout" || at_failed=:
 
105964
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105965
if $at_failed; then :
 
105966
  cp pid savepid
 
105967
   { set +x
 
105968
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
105969
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
105970
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
105971
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
105972
at_status=$? at_failed=false
 
105973
$at_check_filter
 
105974
echo stderr:; cat "$at_stderr"
 
105975
echo stdout:; cat "$at_stdout"
 
105976
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
105977
$at_failed && at_fn_log_failure
 
105978
$at_traceon; }
 
105979
 
 
105980
   { set +x
 
105981
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
105982
     # in the normal case.  POSIX doesn't require fractional times to
 
105983
     # work, so this might not work.
 
105984
     sleep 0.1
 
105985
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105986
     # Then wait up to 10 seconds.
 
105987
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
105988
       sleep 1
 
105989
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
105990
     done
 
105991
     exit 1"
 
105992
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
105993
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
105994
     # in the normal case.  POSIX doesn't require fractional times to
 
105995
     # work, so this might not work.
 
105996
     sleep 0.1
 
105997
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
105998
     # Then wait up to 10 seconds.
 
105999
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106000
       sleep 1
 
106001
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106002
     done
 
106003
     exit 1
 
106004
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106005
at_status=$? at_failed=false
 
106006
$at_check_filter
 
106007
echo stderr:; cat "$at_stderr"
 
106008
echo stdout:; cat "$at_stdout"
 
106009
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106010
if $at_failed; then :
 
106011
  kill `cat savepid`
 
106012
fi
 
106013
$at_failed && at_fn_log_failure
 
106014
$at_traceon; }
 
106015
 
 
106016
fi
 
106017
$at_failed && at_fn_log_failure
 
106018
$at_traceon; }
 
106019
 
 
106020
{ set +x
 
106021
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
106022
"
 
106023
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106024
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
106025
 
 
106026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106027
at_status=$? at_failed=false
 
106028
$at_check_filter
 
106029
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
106030
echo >>"$at_stdout"; $as_echo "eth0
 
106031
" | \
 
106032
  $at_diff - "$at_stdout" || at_failed=:
 
106033
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106034
if $at_failed; then :
 
106035
  cp pid savepid
 
106036
   { set +x
 
106037
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106038
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106039
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106040
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106041
at_status=$? at_failed=false
 
106042
$at_check_filter
 
106043
echo stderr:; cat "$at_stderr"
 
106044
echo stdout:; cat "$at_stdout"
 
106045
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106046
$at_failed && at_fn_log_failure
 
106047
$at_traceon; }
 
106048
 
 
106049
   { set +x
 
106050
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106051
     # in the normal case.  POSIX doesn't require fractional times to
 
106052
     # work, so this might not work.
 
106053
     sleep 0.1
 
106054
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106055
     # Then wait up to 10 seconds.
 
106056
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106057
       sleep 1
 
106058
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106059
     done
 
106060
     exit 1"
 
106061
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106062
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106063
     # in the normal case.  POSIX doesn't require fractional times to
 
106064
     # work, so this might not work.
 
106065
     sleep 0.1
 
106066
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106067
     # Then wait up to 10 seconds.
 
106068
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106069
       sleep 1
 
106070
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106071
     done
 
106072
     exit 1
 
106073
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106074
at_status=$? at_failed=false
 
106075
$at_check_filter
 
106076
echo stderr:; cat "$at_stderr"
 
106077
echo stdout:; cat "$at_stdout"
 
106078
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106079
if $at_failed; then :
 
106080
  kill `cat savepid`
 
106081
fi
 
106082
$at_failed && at_fn_log_failure
 
106083
$at_traceon; }
 
106084
 
 
106085
fi
 
106086
$at_failed && at_fn_log_failure
 
106087
$at_traceon; }
 
106088
 
 
106089
   { set +x
 
106090
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
106091
"
 
106092
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106093
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
106094
 
 
106095
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106096
at_status=$? at_failed=false
 
106097
$at_check_filter
 
106098
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xenbr0
 
106099
" | \
 
106100
  $at_diff - "$at_stderr" || at_failed=:
 
106101
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
106102
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106103
if $at_failed; then :
 
106104
  cp pid savepid
 
106105
   { set +x
 
106106
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106107
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106108
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106109
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106110
at_status=$? at_failed=false
 
106111
$at_check_filter
 
106112
echo stderr:; cat "$at_stderr"
 
106113
echo stdout:; cat "$at_stdout"
 
106114
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106115
$at_failed && at_fn_log_failure
 
106116
$at_traceon; }
 
106117
 
 
106118
   { set +x
 
106119
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106120
     # in the normal case.  POSIX doesn't require fractional times to
 
106121
     # work, so this might not work.
 
106122
     sleep 0.1
 
106123
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106124
     # Then wait up to 10 seconds.
 
106125
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106126
       sleep 1
 
106127
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106128
     done
 
106129
     exit 1"
 
106130
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106131
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106132
     # in the normal case.  POSIX doesn't require fractional times to
 
106133
     # work, so this might not work.
 
106134
     sleep 0.1
 
106135
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106136
     # Then wait up to 10 seconds.
 
106137
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106138
       sleep 1
 
106139
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106140
     done
 
106141
     exit 1
 
106142
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106143
at_status=$? at_failed=false
 
106144
$at_check_filter
 
106145
echo stderr:; cat "$at_stderr"
 
106146
echo stdout:; cat "$at_stdout"
 
106147
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106148
if $at_failed; then :
 
106149
  kill `cat savepid`
 
106150
fi
 
106151
$at_failed && at_fn_log_failure
 
106152
$at_traceon; }
 
106153
 
 
106154
fi
 
106155
$at_failed && at_fn_log_failure
 
106156
$at_traceon; }
 
106157
 
 
106158
   { set +x
 
106159
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
106160
"
 
106161
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106162
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
106163
 
 
106164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106165
at_status=$? at_failed=false
 
106166
$at_check_filter
 
106167
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
106168
echo >>"$at_stdout"; $as_echo "xenbr0
 
106169
" | \
 
106170
  $at_diff - "$at_stdout" || at_failed=:
 
106171
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106172
if $at_failed; then :
 
106173
  cp pid savepid
 
106174
   { set +x
 
106175
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106176
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106177
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106178
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106179
at_status=$? at_failed=false
 
106180
$at_check_filter
 
106181
echo stderr:; cat "$at_stderr"
 
106182
echo stdout:; cat "$at_stdout"
 
106183
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106184
$at_failed && at_fn_log_failure
 
106185
$at_traceon; }
 
106186
 
 
106187
   { set +x
 
106188
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106189
     # in the normal case.  POSIX doesn't require fractional times to
 
106190
     # work, so this might not work.
 
106191
     sleep 0.1
 
106192
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106193
     # Then wait up to 10 seconds.
 
106194
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106195
       sleep 1
 
106196
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106197
     done
 
106198
     exit 1"
 
106199
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106200
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106201
     # in the normal case.  POSIX doesn't require fractional times to
 
106202
     # work, so this might not work.
 
106203
     sleep 0.1
 
106204
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106205
     # Then wait up to 10 seconds.
 
106206
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106207
       sleep 1
 
106208
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106209
     done
 
106210
     exit 1
 
106211
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106212
at_status=$? at_failed=false
 
106213
$at_check_filter
 
106214
echo stderr:; cat "$at_stderr"
 
106215
echo stdout:; cat "$at_stdout"
 
106216
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106217
if $at_failed; then :
 
106218
  kill `cat savepid`
 
106219
fi
 
106220
$at_failed && at_fn_log_failure
 
106221
$at_traceon; }
 
106222
 
 
106223
fi
 
106224
$at_failed && at_fn_log_failure
 
106225
$at_traceon; }
 
106226
 
 
106227
   { set +x
 
106228
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
106229
"
 
106230
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106231
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
106232
 
 
106233
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106234
at_status=$? at_failed=false
 
106235
$at_check_filter
 
106236
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
106237
echo >>"$at_stdout"; $as_echo "eth0.9
 
106238
" | \
 
106239
  $at_diff - "$at_stdout" || at_failed=:
 
106240
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106241
if $at_failed; then :
 
106242
  cp pid savepid
 
106243
   { set +x
 
106244
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106245
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106246
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106247
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106248
at_status=$? at_failed=false
 
106249
$at_check_filter
 
106250
echo stderr:; cat "$at_stderr"
 
106251
echo stdout:; cat "$at_stdout"
 
106252
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106253
$at_failed && at_fn_log_failure
 
106254
$at_traceon; }
 
106255
 
 
106256
   { set +x
 
106257
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106258
     # in the normal case.  POSIX doesn't require fractional times to
 
106259
     # work, so this might not work.
 
106260
     sleep 0.1
 
106261
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106262
     # Then wait up to 10 seconds.
 
106263
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106264
       sleep 1
 
106265
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106266
     done
 
106267
     exit 1"
 
106268
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106269
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106270
     # in the normal case.  POSIX doesn't require fractional times to
 
106271
     # work, so this might not work.
 
106272
     sleep 0.1
 
106273
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106274
     # Then wait up to 10 seconds.
 
106275
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106276
       sleep 1
 
106277
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106278
     done
 
106279
     exit 1
 
106280
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106281
at_status=$? at_failed=false
 
106282
$at_check_filter
 
106283
echo stderr:; cat "$at_stderr"
 
106284
echo stdout:; cat "$at_stdout"
 
106285
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106286
if $at_failed; then :
 
106287
  kill `cat savepid`
 
106288
fi
 
106289
$at_failed && at_fn_log_failure
 
106290
$at_traceon; }
 
106291
 
 
106292
fi
 
106293
$at_failed && at_fn_log_failure
 
106294
$at_traceon; }
 
106295
 
 
106296
 
 
106297
      { set +x
 
106298
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
106299
"
 
106300
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106301
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
106302
 
 
106303
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106304
at_status=$? at_failed=false
 
106305
$at_check_filter
 
106306
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
106307
echo >>"$at_stdout"; $as_echo "eth0.9
 
106308
" | \
 
106309
  $at_diff - "$at_stdout" || at_failed=:
 
106310
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106311
if $at_failed; then :
 
106312
  cp pid savepid
 
106313
   { set +x
 
106314
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106315
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106316
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106317
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106318
at_status=$? at_failed=false
 
106319
$at_check_filter
 
106320
echo stderr:; cat "$at_stderr"
 
106321
echo stdout:; cat "$at_stdout"
 
106322
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106323
$at_failed && at_fn_log_failure
 
106324
$at_traceon; }
 
106325
 
 
106326
   { set +x
 
106327
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106328
     # in the normal case.  POSIX doesn't require fractional times to
 
106329
     # work, so this might not work.
 
106330
     sleep 0.1
 
106331
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106332
     # Then wait up to 10 seconds.
 
106333
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106334
       sleep 1
 
106335
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106336
     done
 
106337
     exit 1"
 
106338
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106339
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106340
     # in the normal case.  POSIX doesn't require fractional times to
 
106341
     # work, so this might not work.
 
106342
     sleep 0.1
 
106343
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106344
     # Then wait up to 10 seconds.
 
106345
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106346
       sleep 1
 
106347
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106348
     done
 
106349
     exit 1
 
106350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106351
at_status=$? at_failed=false
 
106352
$at_check_filter
 
106353
echo stderr:; cat "$at_stderr"
 
106354
echo stdout:; cat "$at_stdout"
 
106355
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106356
if $at_failed; then :
 
106357
  kill `cat savepid`
 
106358
fi
 
106359
$at_failed && at_fn_log_failure
 
106360
$at_traceon; }
 
106361
 
 
106362
fi
 
106363
$at_failed && at_fn_log_failure
 
106364
$at_traceon; }
 
106365
 
 
106366
   { set +x
 
106367
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
106368
"
 
106369
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106370
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
106371
 
 
106372
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106373
at_status=$? at_failed=false
 
106374
$at_check_filter
 
106375
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xapi1
 
106376
" | \
 
106377
  $at_diff - "$at_stderr" || at_failed=:
 
106378
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
106379
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106380
if $at_failed; then :
 
106381
  cp pid savepid
 
106382
   { set +x
 
106383
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106384
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106385
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106386
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106387
at_status=$? at_failed=false
 
106388
$at_check_filter
 
106389
echo stderr:; cat "$at_stderr"
 
106390
echo stdout:; cat "$at_stdout"
 
106391
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106392
$at_failed && at_fn_log_failure
 
106393
$at_traceon; }
 
106394
 
 
106395
   { set +x
 
106396
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106397
     # in the normal case.  POSIX doesn't require fractional times to
 
106398
     # work, so this might not work.
 
106399
     sleep 0.1
 
106400
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106401
     # Then wait up to 10 seconds.
 
106402
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106403
       sleep 1
 
106404
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106405
     done
 
106406
     exit 1"
 
106407
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106408
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106409
     # in the normal case.  POSIX doesn't require fractional times to
 
106410
     # work, so this might not work.
 
106411
     sleep 0.1
 
106412
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106413
     # Then wait up to 10 seconds.
 
106414
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106415
       sleep 1
 
106416
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106417
     done
 
106418
     exit 1
 
106419
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106420
at_status=$? at_failed=false
 
106421
$at_check_filter
 
106422
echo stderr:; cat "$at_stderr"
 
106423
echo stdout:; cat "$at_stdout"
 
106424
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106425
if $at_failed; then :
 
106426
  kill `cat savepid`
 
106427
fi
 
106428
$at_failed && at_fn_log_failure
 
106429
$at_traceon; }
 
106430
 
 
106431
fi
 
106432
$at_failed && at_fn_log_failure
 
106433
$at_traceon; }
 
106434
 
 
106435
   { set +x
 
106436
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0.9
 
106437
"
 
106438
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106439
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0.9
 
106440
 
 
106441
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106442
at_status=$? at_failed=false
 
106443
$at_check_filter
 
106444
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
106445
echo >>"$at_stdout"; $as_echo "xapi1
 
106446
" | \
 
106447
  $at_diff - "$at_stdout" || at_failed=:
 
106448
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106449
if $at_failed; then :
 
106450
  cp pid savepid
 
106451
   { set +x
 
106452
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106453
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106454
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106456
at_status=$? at_failed=false
 
106457
$at_check_filter
 
106458
echo stderr:; cat "$at_stderr"
 
106459
echo stdout:; cat "$at_stdout"
 
106460
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106461
$at_failed && at_fn_log_failure
 
106462
$at_traceon; }
 
106463
 
 
106464
   { set +x
 
106465
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106466
     # in the normal case.  POSIX doesn't require fractional times to
 
106467
     # work, so this might not work.
 
106468
     sleep 0.1
 
106469
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106470
     # Then wait up to 10 seconds.
 
106471
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106472
       sleep 1
 
106473
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106474
     done
 
106475
     exit 1"
 
106476
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106477
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106478
     # in the normal case.  POSIX doesn't require fractional times to
 
106479
     # work, so this might not work.
 
106480
     sleep 0.1
 
106481
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106482
     # Then wait up to 10 seconds.
 
106483
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106484
       sleep 1
 
106485
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106486
     done
 
106487
     exit 1
 
106488
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106489
at_status=$? at_failed=false
 
106490
$at_check_filter
 
106491
echo stderr:; cat "$at_stderr"
 
106492
echo stdout:; cat "$at_stdout"
 
106493
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106494
if $at_failed; then :
 
106495
  kill `cat savepid`
 
106496
fi
 
106497
$at_failed && at_fn_log_failure
 
106498
$at_traceon; }
 
106499
 
 
106500
fi
 
106501
$at_failed && at_fn_log_failure
 
106502
$at_traceon; }
 
106503
 
 
106504
{ set +x
 
106505
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
106506
"
 
106507
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106508
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
106509
 
 
106510
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106511
at_status=$? at_failed=false
 
106512
$at_check_filter
 
106513
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
106514
echo >>"$at_stdout"; $as_echo "eth0.9
 
106515
" | \
 
106516
  $at_diff - "$at_stdout" || at_failed=:
 
106517
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106518
if $at_failed; then :
 
106519
  cp pid savepid
 
106520
   { set +x
 
106521
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106522
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106523
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106524
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106525
at_status=$? at_failed=false
 
106526
$at_check_filter
 
106527
echo stderr:; cat "$at_stderr"
 
106528
echo stdout:; cat "$at_stdout"
 
106529
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106530
$at_failed && at_fn_log_failure
 
106531
$at_traceon; }
 
106532
 
 
106533
   { set +x
 
106534
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106535
     # in the normal case.  POSIX doesn't require fractional times to
 
106536
     # work, so this might not work.
 
106537
     sleep 0.1
 
106538
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106539
     # Then wait up to 10 seconds.
 
106540
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106541
       sleep 1
 
106542
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106543
     done
 
106544
     exit 1"
 
106545
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106546
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106547
     # in the normal case.  POSIX doesn't require fractional times to
 
106548
     # work, so this might not work.
 
106549
     sleep 0.1
 
106550
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106551
     # Then wait up to 10 seconds.
 
106552
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106553
       sleep 1
 
106554
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106555
     done
 
106556
     exit 1
 
106557
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106558
at_status=$? at_failed=false
 
106559
$at_check_filter
 
106560
echo stderr:; cat "$at_stderr"
 
106561
echo stdout:; cat "$at_stdout"
 
106562
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106563
if $at_failed; then :
 
106564
  kill `cat savepid`
 
106565
fi
 
106566
$at_failed && at_fn_log_failure
 
106567
$at_traceon; }
 
106568
 
 
106569
fi
 
106570
$at_failed && at_fn_log_failure
 
106571
$at_traceon; }
 
106572
 
 
106573
   { set +x
 
106574
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
106575
"
 
106576
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106577
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
106578
 
 
106579
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106580
at_status=$? at_failed=false
 
106581
$at_check_filter
 
106582
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xapi1
 
106583
" | \
 
106584
  $at_diff - "$at_stderr" || at_failed=:
 
106585
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
106586
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106587
if $at_failed; then :
 
106588
  cp pid savepid
 
106589
   { set +x
 
106590
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106591
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106592
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106593
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106594
at_status=$? at_failed=false
 
106595
$at_check_filter
 
106596
echo stderr:; cat "$at_stderr"
 
106597
echo stdout:; cat "$at_stdout"
 
106598
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106599
$at_failed && at_fn_log_failure
 
106600
$at_traceon; }
 
106601
 
 
106602
   { set +x
 
106603
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106604
     # in the normal case.  POSIX doesn't require fractional times to
 
106605
     # work, so this might not work.
 
106606
     sleep 0.1
 
106607
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106608
     # Then wait up to 10 seconds.
 
106609
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106610
       sleep 1
 
106611
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106612
     done
 
106613
     exit 1"
 
106614
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106615
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106616
     # in the normal case.  POSIX doesn't require fractional times to
 
106617
     # work, so this might not work.
 
106618
     sleep 0.1
 
106619
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106620
     # Then wait up to 10 seconds.
 
106621
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106622
       sleep 1
 
106623
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106624
     done
 
106625
     exit 1
 
106626
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106627
at_status=$? at_failed=false
 
106628
$at_check_filter
 
106629
echo stderr:; cat "$at_stderr"
 
106630
echo stdout:; cat "$at_stdout"
 
106631
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106632
if $at_failed; then :
 
106633
  kill `cat savepid`
 
106634
fi
 
106635
$at_failed && at_fn_log_failure
 
106636
$at_traceon; }
 
106637
 
 
106638
fi
 
106639
$at_failed && at_fn_log_failure
 
106640
$at_traceon; }
 
106641
 
 
106642
   { set +x
 
106643
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0.9
 
106644
"
 
106645
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:488"
 
106646
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0.9
 
106647
 
 
106648
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106649
at_status=$? at_failed=false
 
106650
$at_check_filter
 
106651
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
106652
echo >>"$at_stdout"; $as_echo "xapi1
 
106653
" | \
 
106654
  $at_diff - "$at_stdout" || at_failed=:
 
106655
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106656
if $at_failed; then :
 
106657
  cp pid savepid
 
106658
   { set +x
 
106659
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106660
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106661
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106662
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106663
at_status=$? at_failed=false
 
106664
$at_check_filter
 
106665
echo stderr:; cat "$at_stderr"
 
106666
echo stdout:; cat "$at_stdout"
 
106667
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106668
$at_failed && at_fn_log_failure
 
106669
$at_traceon; }
 
106670
 
 
106671
   { set +x
 
106672
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106673
     # in the normal case.  POSIX doesn't require fractional times to
 
106674
     # work, so this might not work.
 
106675
     sleep 0.1
 
106676
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106677
     # Then wait up to 10 seconds.
 
106678
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106679
       sleep 1
 
106680
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106681
     done
 
106682
     exit 1"
 
106683
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106684
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106685
     # in the normal case.  POSIX doesn't require fractional times to
 
106686
     # work, so this might not work.
 
106687
     sleep 0.1
 
106688
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106689
     # Then wait up to 10 seconds.
 
106690
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106691
       sleep 1
 
106692
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106693
     done
 
106694
     exit 1
 
106695
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106696
at_status=$? at_failed=false
 
106697
$at_check_filter
 
106698
echo stderr:; cat "$at_stderr"
 
106699
echo stdout:; cat "$at_stdout"
 
106700
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106701
if $at_failed; then :
 
106702
  kill `cat savepid`
 
106703
fi
 
106704
$at_failed && at_fn_log_failure
 
106705
$at_traceon; }
 
106706
 
 
106707
fi
 
106708
$at_failed && at_fn_log_failure
 
106709
$at_traceon; }
 
106710
 
 
106711
cp pid savepid
 
106712
   { set +x
 
106713
$as_echo "$at_srcdir/ovs-vsctl.at:488: ovs-appctl -t \$PWD/unixctl -e exit"
 
106714
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:488"
 
106715
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106716
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106717
at_status=$? at_failed=false
 
106718
$at_check_filter
 
106719
echo stderr:; cat "$at_stderr"
 
106720
echo stdout:; cat "$at_stdout"
 
106721
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106722
$at_failed && at_fn_log_failure
 
106723
$at_traceon; }
 
106724
 
 
106725
   { set +x
 
106726
$as_echo "$at_srcdir/ovs-vsctl.at:488: # First try a quick sleep, so that the test completes very quickly
 
106727
     # in the normal case.  POSIX doesn't require fractional times to
 
106728
     # work, so this might not work.
 
106729
     sleep 0.1
 
106730
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106731
     # Then wait up to 10 seconds.
 
106732
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106733
       sleep 1
 
106734
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106735
     done
 
106736
     exit 1"
 
106737
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:488"
 
106738
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106739
     # in the normal case.  POSIX doesn't require fractional times to
 
106740
     # work, so this might not work.
 
106741
     sleep 0.1
 
106742
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106743
     # Then wait up to 10 seconds.
 
106744
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106745
       sleep 1
 
106746
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106747
     done
 
106748
     exit 1
 
106749
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106750
at_status=$? at_failed=false
 
106751
$at_check_filter
 
106752
echo stderr:; cat "$at_stderr"
 
106753
echo stdout:; cat "$at_stdout"
 
106754
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:488"
 
106755
if $at_failed; then :
 
106756
  kill `cat savepid`
 
106757
fi
 
106758
$at_failed && at_fn_log_failure
 
106759
$at_traceon; }
 
106760
 
 
106761
  set +x
 
106762
  $at_times_p && times >"$at_times_file"
 
106763
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
106764
read at_status <"$at_status_file"
 
106765
#AT_STOP_959
 
106766
#AT_START_960
 
106767
at_fn_group_banner 960 'ovs-vsctl.at:489' \
 
106768
  "simple fake bridge (VLAN 0)" "                    " 67
 
106769
at_xfail=no
 
106770
(
 
106771
  $as_echo "960. $at_setup_line: testing $at_desc ..."
 
106772
  $at_traceon
 
106773
 
 
106774
 
 
106775
{ set +x
 
106776
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
106777
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:489"
 
106778
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
106779
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106780
at_status=$? at_failed=false
 
106781
$at_check_filter
 
106782
echo stderr:; cat "$at_stderr"
 
106783
echo stdout:; tee stdout <"$at_stdout"
 
106784
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106785
$at_failed && at_fn_log_failure
 
106786
$at_traceon; }
 
106787
 
 
106788
   { set +x
 
106789
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-tool transact db \\
 
106790
        '[\"Open_vSwitch\",
 
106791
          {\"op\": \"insert\",
 
106792
           \"table\": \"Open_vSwitch\",
 
106793
           \"row\": {}}]'"
 
106794
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
106795
( $at_check_trace; ovsdb-tool transact db \
 
106796
        '["Open_vSwitch",
 
106797
          {"op": "insert",
 
106798
           "table": "Open_vSwitch",
 
106799
           "row": {}}]'
 
106800
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106801
at_status=$? at_failed=false
 
106802
$at_check_filter
 
106803
echo stderr:; cat "$at_stderr"
 
106804
echo stdout:; cat "$at_stdout"
 
106805
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106806
$at_failed && at_fn_log_failure
 
106807
$at_traceon; }
 
106808
 
 
106809
   { set +x
 
106810
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
106811
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:489"
 
106812
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
106813
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106814
at_status=$? at_failed=false
 
106815
$at_check_filter
 
106816
echo stderr:; cat "$at_stderr"
 
106817
echo stdout:; cat "$at_stdout"
 
106818
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106819
$at_failed && at_fn_log_failure
 
106820
$at_traceon; }
 
106821
 
 
106822
{ set +x
 
106823
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
106824
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
106825
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
106826
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
106827
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 0
 
106828
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 0
 
106829
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.0
 
106830
"
 
106831
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
106832
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
106833
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
106834
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
106835
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
106836
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 0
 
106837
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 0
 
106838
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.0
 
106839
 
 
106840
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106841
at_status=$? at_failed=false
 
106842
$at_check_filter
 
106843
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
106844
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
106845
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106846
if $at_failed; then :
 
106847
  cp pid savepid
 
106848
   { set +x
 
106849
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
106850
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
106851
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106852
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106853
at_status=$? at_failed=false
 
106854
$at_check_filter
 
106855
echo stderr:; cat "$at_stderr"
 
106856
echo stdout:; cat "$at_stdout"
 
106857
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106858
$at_failed && at_fn_log_failure
 
106859
$at_traceon; }
 
106860
 
 
106861
   { set +x
 
106862
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
106863
     # in the normal case.  POSIX doesn't require fractional times to
 
106864
     # work, so this might not work.
 
106865
     sleep 0.1
 
106866
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106867
     # Then wait up to 10 seconds.
 
106868
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106869
       sleep 1
 
106870
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106871
     done
 
106872
     exit 1"
 
106873
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
106874
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106875
     # in the normal case.  POSIX doesn't require fractional times to
 
106876
     # work, so this might not work.
 
106877
     sleep 0.1
 
106878
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106879
     # Then wait up to 10 seconds.
 
106880
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106881
       sleep 1
 
106882
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106883
     done
 
106884
     exit 1
 
106885
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106886
at_status=$? at_failed=false
 
106887
$at_check_filter
 
106888
echo stderr:; cat "$at_stderr"
 
106889
echo stdout:; cat "$at_stdout"
 
106890
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106891
if $at_failed; then :
 
106892
  kill `cat savepid`
 
106893
fi
 
106894
$at_failed && at_fn_log_failure
 
106895
$at_traceon; }
 
106896
 
 
106897
fi
 
106898
$at_failed && at_fn_log_failure
 
106899
$at_traceon; }
 
106900
 
 
106901
{ set +x
 
106902
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1
 
106903
"
 
106904
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
106905
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1
 
106906
 
 
106907
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106908
at_status=$? at_failed=false
 
106909
$at_check_filter
 
106910
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-br xapi1\" but xapi1 is a VLAN bridge for VLAN 0
 
106911
" | \
 
106912
  $at_diff - "$at_stderr" || at_failed=:
 
106913
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
106914
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106915
if $at_failed; then :
 
106916
  cp pid savepid
 
106917
   { set +x
 
106918
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
106919
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
106920
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106921
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106922
at_status=$? at_failed=false
 
106923
$at_check_filter
 
106924
echo stderr:; cat "$at_stderr"
 
106925
echo stdout:; cat "$at_stdout"
 
106926
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106927
$at_failed && at_fn_log_failure
 
106928
$at_traceon; }
 
106929
 
 
106930
   { set +x
 
106931
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
106932
     # in the normal case.  POSIX doesn't require fractional times to
 
106933
     # work, so this might not work.
 
106934
     sleep 0.1
 
106935
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106936
     # Then wait up to 10 seconds.
 
106937
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106938
       sleep 1
 
106939
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
106940
     done
 
106941
     exit 1"
 
106942
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
106943
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
106944
     # in the normal case.  POSIX doesn't require fractional times to
 
106945
     # work, so this might not work.
 
106946
     sleep 0.1
 
106947
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
106948
     # Then wait up to 10 seconds.
 
106949
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
106950
       sleep 1
 
106951
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
106952
     done
 
106953
     exit 1
 
106954
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106955
at_status=$? at_failed=false
 
106956
$at_check_filter
 
106957
echo stderr:; cat "$at_stderr"
 
106958
echo stdout:; cat "$at_stdout"
 
106959
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106960
if $at_failed; then :
 
106961
  kill `cat savepid`
 
106962
fi
 
106963
$at_failed && at_fn_log_failure
 
106964
$at_traceon; }
 
106965
 
 
106966
fi
 
106967
$at_failed && at_fn_log_failure
 
106968
$at_traceon; }
 
106969
 
 
106970
{ set +x
 
106971
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xxx 0
 
106972
"
 
106973
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
106974
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xxx 0
 
106975
 
 
106976
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106977
at_status=$? at_failed=false
 
106978
$at_check_filter
 
106979
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-br xapi1 xxx 0\" but xapi1 has the wrong parent xenbr0
 
106980
" | \
 
106981
  $at_diff - "$at_stderr" || at_failed=:
 
106982
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
106983
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106984
if $at_failed; then :
 
106985
  cp pid savepid
 
106986
   { set +x
 
106987
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
106988
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
106989
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
106990
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
106991
at_status=$? at_failed=false
 
106992
$at_check_filter
 
106993
echo stderr:; cat "$at_stderr"
 
106994
echo stdout:; cat "$at_stdout"
 
106995
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
106996
$at_failed && at_fn_log_failure
 
106997
$at_traceon; }
 
106998
 
 
106999
   { set +x
 
107000
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107001
     # in the normal case.  POSIX doesn't require fractional times to
 
107002
     # work, so this might not work.
 
107003
     sleep 0.1
 
107004
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107005
     # Then wait up to 10 seconds.
 
107006
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107007
       sleep 1
 
107008
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107009
     done
 
107010
     exit 1"
 
107011
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107012
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107013
     # in the normal case.  POSIX doesn't require fractional times to
 
107014
     # work, so this might not work.
 
107015
     sleep 0.1
 
107016
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107017
     # Then wait up to 10 seconds.
 
107018
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107019
       sleep 1
 
107020
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107021
     done
 
107022
     exit 1
 
107023
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107024
at_status=$? at_failed=false
 
107025
$at_check_filter
 
107026
echo stderr:; cat "$at_stderr"
 
107027
echo stdout:; cat "$at_stdout"
 
107028
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107029
if $at_failed; then :
 
107030
  kill `cat savepid`
 
107031
fi
 
107032
$at_failed && at_fn_log_failure
 
107033
$at_traceon; }
 
107034
 
 
107035
fi
 
107036
$at_failed && at_fn_log_failure
 
107037
$at_traceon; }
 
107038
 
 
107039
{ set +x
 
107040
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 10
 
107041
"
 
107042
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107043
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 10
 
107044
 
 
107045
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107046
at_status=$? at_failed=false
 
107047
$at_check_filter
 
107048
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"--may-exist add-br xapi1 xenbr0 10\" but xapi1 is a VLAN bridge for the wrong VLAN 0
 
107049
" | \
 
107050
  $at_diff - "$at_stderr" || at_failed=:
 
107051
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
107052
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107053
if $at_failed; then :
 
107054
  cp pid savepid
 
107055
   { set +x
 
107056
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107057
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107058
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107060
at_status=$? at_failed=false
 
107061
$at_check_filter
 
107062
echo stderr:; cat "$at_stderr"
 
107063
echo stdout:; cat "$at_stdout"
 
107064
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107065
$at_failed && at_fn_log_failure
 
107066
$at_traceon; }
 
107067
 
 
107068
   { set +x
 
107069
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107070
     # in the normal case.  POSIX doesn't require fractional times to
 
107071
     # work, so this might not work.
 
107072
     sleep 0.1
 
107073
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107074
     # Then wait up to 10 seconds.
 
107075
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107076
       sleep 1
 
107077
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107078
     done
 
107079
     exit 1"
 
107080
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107081
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107082
     # in the normal case.  POSIX doesn't require fractional times to
 
107083
     # work, so this might not work.
 
107084
     sleep 0.1
 
107085
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107086
     # Then wait up to 10 seconds.
 
107087
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107088
       sleep 1
 
107089
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107090
     done
 
107091
     exit 1
 
107092
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107093
at_status=$? at_failed=false
 
107094
$at_check_filter
 
107095
echo stderr:; cat "$at_stderr"
 
107096
echo stdout:; cat "$at_stdout"
 
107097
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107098
if $at_failed; then :
 
107099
  kill `cat savepid`
 
107100
fi
 
107101
$at_failed && at_fn_log_failure
 
107102
$at_traceon; }
 
107103
 
 
107104
fi
 
107105
$at_failed && at_fn_log_failure
 
107106
$at_traceon; }
 
107107
 
 
107108
   { set +x
 
107109
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
107110
"
 
107111
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107112
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
107113
 
 
107114
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107115
at_status=$? at_failed=false
 
107116
$at_check_filter
 
107117
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107118
echo >>"$at_stdout"; $as_echo "xapi1
 
107119
xenbr0
 
107120
" | \
 
107121
  $at_diff - "$at_stdout" || at_failed=:
 
107122
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107123
if $at_failed; then :
 
107124
  cp pid savepid
 
107125
   { set +x
 
107126
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107127
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107128
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107129
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107130
at_status=$? at_failed=false
 
107131
$at_check_filter
 
107132
echo stderr:; cat "$at_stderr"
 
107133
echo stdout:; cat "$at_stdout"
 
107134
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107135
$at_failed && at_fn_log_failure
 
107136
$at_traceon; }
 
107137
 
 
107138
   { set +x
 
107139
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107140
     # in the normal case.  POSIX doesn't require fractional times to
 
107141
     # work, so this might not work.
 
107142
     sleep 0.1
 
107143
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107144
     # Then wait up to 10 seconds.
 
107145
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107146
       sleep 1
 
107147
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107148
     done
 
107149
     exit 1"
 
107150
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107151
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107152
     # in the normal case.  POSIX doesn't require fractional times to
 
107153
     # work, so this might not work.
 
107154
     sleep 0.1
 
107155
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107156
     # Then wait up to 10 seconds.
 
107157
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107158
       sleep 1
 
107159
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107160
     done
 
107161
     exit 1
 
107162
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107163
at_status=$? at_failed=false
 
107164
$at_check_filter
 
107165
echo stderr:; cat "$at_stderr"
 
107166
echo stdout:; cat "$at_stdout"
 
107167
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107168
if $at_failed; then :
 
107169
  kill `cat savepid`
 
107170
fi
 
107171
$at_failed && at_fn_log_failure
 
107172
$at_traceon; }
 
107173
 
 
107174
fi
 
107175
$at_failed && at_fn_log_failure
 
107176
$at_traceon; }
 
107177
 
 
107178
 
 
107179
      { set +x
 
107180
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
107181
"
 
107182
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107183
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
107184
 
 
107185
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107186
at_status=$? at_failed=false
 
107187
$at_check_filter
 
107188
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107189
echo >>"$at_stdout"; $as_echo "xapi1\\nxenbr0
 
107190
" | \
 
107191
  $at_diff - "$at_stdout" || at_failed=:
 
107192
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107193
if $at_failed; then :
 
107194
  cp pid savepid
 
107195
   { set +x
 
107196
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107197
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107198
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107199
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107200
at_status=$? at_failed=false
 
107201
$at_check_filter
 
107202
echo stderr:; cat "$at_stderr"
 
107203
echo stdout:; cat "$at_stdout"
 
107204
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107205
$at_failed && at_fn_log_failure
 
107206
$at_traceon; }
 
107207
 
 
107208
   { set +x
 
107209
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107210
     # in the normal case.  POSIX doesn't require fractional times to
 
107211
     # work, so this might not work.
 
107212
     sleep 0.1
 
107213
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107214
     # Then wait up to 10 seconds.
 
107215
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107216
       sleep 1
 
107217
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107218
     done
 
107219
     exit 1"
 
107220
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107221
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107222
     # in the normal case.  POSIX doesn't require fractional times to
 
107223
     # work, so this might not work.
 
107224
     sleep 0.1
 
107225
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107226
     # Then wait up to 10 seconds.
 
107227
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107228
       sleep 1
 
107229
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107230
     done
 
107231
     exit 1
 
107232
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107233
at_status=$? at_failed=false
 
107234
$at_check_filter
 
107235
echo stderr:; cat "$at_stderr"
 
107236
echo stdout:; cat "$at_stdout"
 
107237
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107238
if $at_failed; then :
 
107239
  kill `cat savepid`
 
107240
fi
 
107241
$at_failed && at_fn_log_failure
 
107242
$at_traceon; }
 
107243
 
 
107244
fi
 
107245
$at_failed && at_fn_log_failure
 
107246
$at_traceon; }
 
107247
 
 
107248
 
 
107249
         { set +x
 
107250
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
107251
"
 
107252
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107253
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
107254
 
 
107255
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107256
at_status=$? at_failed=false
 
107257
$at_check_filter
 
107258
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107259
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
107260
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107261
if $at_failed; then :
 
107262
  cp pid savepid
 
107263
   { set +x
 
107264
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107265
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107266
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107267
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107268
at_status=$? at_failed=false
 
107269
$at_check_filter
 
107270
echo stderr:; cat "$at_stderr"
 
107271
echo stdout:; cat "$at_stdout"
 
107272
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107273
$at_failed && at_fn_log_failure
 
107274
$at_traceon; }
 
107275
 
 
107276
   { set +x
 
107277
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107278
     # in the normal case.  POSIX doesn't require fractional times to
 
107279
     # work, so this might not work.
 
107280
     sleep 0.1
 
107281
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107282
     # Then wait up to 10 seconds.
 
107283
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107284
       sleep 1
 
107285
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107286
     done
 
107287
     exit 1"
 
107288
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107289
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107290
     # in the normal case.  POSIX doesn't require fractional times to
 
107291
     # work, so this might not work.
 
107292
     sleep 0.1
 
107293
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107294
     # Then wait up to 10 seconds.
 
107295
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107296
       sleep 1
 
107297
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107298
     done
 
107299
     exit 1
 
107300
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107301
at_status=$? at_failed=false
 
107302
$at_check_filter
 
107303
echo stderr:; cat "$at_stderr"
 
107304
echo stdout:; cat "$at_stdout"
 
107305
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107306
if $at_failed; then :
 
107307
  kill `cat savepid`
 
107308
fi
 
107309
$at_failed && at_fn_log_failure
 
107310
$at_traceon; }
 
107311
 
 
107312
fi
 
107313
$at_failed && at_fn_log_failure
 
107314
$at_traceon; }
 
107315
{ set +x
 
107316
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
107317
"
 
107318
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107319
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
107320
 
 
107321
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107322
at_status=$? at_failed=false
 
107323
$at_check_filter
 
107324
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107325
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
107326
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107327
if $at_failed; then :
 
107328
  cp pid savepid
 
107329
   { set +x
 
107330
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107331
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107332
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107333
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107334
at_status=$? at_failed=false
 
107335
$at_check_filter
 
107336
echo stderr:; cat "$at_stderr"
 
107337
echo stdout:; cat "$at_stdout"
 
107338
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107339
$at_failed && at_fn_log_failure
 
107340
$at_traceon; }
 
107341
 
 
107342
   { set +x
 
107343
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107344
     # in the normal case.  POSIX doesn't require fractional times to
 
107345
     # work, so this might not work.
 
107346
     sleep 0.1
 
107347
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107348
     # Then wait up to 10 seconds.
 
107349
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107350
       sleep 1
 
107351
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107352
     done
 
107353
     exit 1"
 
107354
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107355
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107356
     # in the normal case.  POSIX doesn't require fractional times to
 
107357
     # work, so this might not work.
 
107358
     sleep 0.1
 
107359
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107360
     # Then wait up to 10 seconds.
 
107361
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107362
       sleep 1
 
107363
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107364
     done
 
107365
     exit 1
 
107366
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107367
at_status=$? at_failed=false
 
107368
$at_check_filter
 
107369
echo stderr:; cat "$at_stderr"
 
107370
echo stdout:; cat "$at_stdout"
 
107371
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107372
if $at_failed; then :
 
107373
  kill `cat savepid`
 
107374
fi
 
107375
$at_failed && at_fn_log_failure
 
107376
$at_traceon; }
 
107377
 
 
107378
fi
 
107379
$at_failed && at_fn_log_failure
 
107380
$at_traceon; }
 
107381
 
 
107382
   { set +x
 
107383
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
107384
"
 
107385
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107386
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
107387
 
 
107388
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107389
at_status=$? at_failed=false
 
107390
$at_check_filter
 
107391
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107392
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
107393
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107394
if $at_failed; then :
 
107395
  cp pid savepid
 
107396
   { set +x
 
107397
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107398
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107399
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107400
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107401
at_status=$? at_failed=false
 
107402
$at_check_filter
 
107403
echo stderr:; cat "$at_stderr"
 
107404
echo stdout:; cat "$at_stdout"
 
107405
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107406
$at_failed && at_fn_log_failure
 
107407
$at_traceon; }
 
107408
 
 
107409
   { set +x
 
107410
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107411
     # in the normal case.  POSIX doesn't require fractional times to
 
107412
     # work, so this might not work.
 
107413
     sleep 0.1
 
107414
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107415
     # Then wait up to 10 seconds.
 
107416
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107417
       sleep 1
 
107418
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107419
     done
 
107420
     exit 1"
 
107421
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107422
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107423
     # in the normal case.  POSIX doesn't require fractional times to
 
107424
     # work, so this might not work.
 
107425
     sleep 0.1
 
107426
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107427
     # Then wait up to 10 seconds.
 
107428
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107429
       sleep 1
 
107430
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107431
     done
 
107432
     exit 1
 
107433
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107434
at_status=$? at_failed=false
 
107435
$at_check_filter
 
107436
echo stderr:; cat "$at_stderr"
 
107437
echo stdout:; cat "$at_stdout"
 
107438
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107439
if $at_failed; then :
 
107440
  kill `cat savepid`
 
107441
fi
 
107442
$at_failed && at_fn_log_failure
 
107443
$at_traceon; }
 
107444
 
 
107445
fi
 
107446
$at_failed && at_fn_log_failure
 
107447
$at_traceon; }
 
107448
 
 
107449
 
 
107450
      { set +x
 
107451
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
107452
"
 
107453
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107454
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
107455
 
 
107456
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107457
at_status=$? at_failed=false
 
107458
$at_check_filter
 
107459
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107460
echo >>"$at_stdout"; $as_echo "xenbr0
 
107461
" | \
 
107462
  $at_diff - "$at_stdout" || at_failed=:
 
107463
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107464
if $at_failed; then :
 
107465
  cp pid savepid
 
107466
   { set +x
 
107467
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107468
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107469
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107470
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107471
at_status=$? at_failed=false
 
107472
$at_check_filter
 
107473
echo stderr:; cat "$at_stderr"
 
107474
echo stdout:; cat "$at_stdout"
 
107475
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107476
$at_failed && at_fn_log_failure
 
107477
$at_traceon; }
 
107478
 
 
107479
   { set +x
 
107480
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107481
     # in the normal case.  POSIX doesn't require fractional times to
 
107482
     # work, so this might not work.
 
107483
     sleep 0.1
 
107484
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107485
     # Then wait up to 10 seconds.
 
107486
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107487
       sleep 1
 
107488
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107489
     done
 
107490
     exit 1"
 
107491
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107492
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107493
     # in the normal case.  POSIX doesn't require fractional times to
 
107494
     # work, so this might not work.
 
107495
     sleep 0.1
 
107496
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107497
     # Then wait up to 10 seconds.
 
107498
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107499
       sleep 1
 
107500
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107501
     done
 
107502
     exit 1
 
107503
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107504
at_status=$? at_failed=false
 
107505
$at_check_filter
 
107506
echo stderr:; cat "$at_stderr"
 
107507
echo stdout:; cat "$at_stdout"
 
107508
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107509
if $at_failed; then :
 
107510
  kill `cat savepid`
 
107511
fi
 
107512
$at_failed && at_fn_log_failure
 
107513
$at_traceon; }
 
107514
 
 
107515
fi
 
107516
$at_failed && at_fn_log_failure
 
107517
$at_traceon; }
 
107518
 
 
107519
 
 
107520
   # Check br-to-vlan, without --oneline.
 
107521
   { set +x
 
107522
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
107523
"
 
107524
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107525
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
107526
 
 
107527
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107528
at_status=$? at_failed=false
 
107529
$at_check_filter
 
107530
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107531
echo >>"$at_stdout"; $as_echo "0
 
107532
" | \
 
107533
  $at_diff - "$at_stdout" || at_failed=:
 
107534
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107535
if $at_failed; then :
 
107536
  cp pid savepid
 
107537
   { set +x
 
107538
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107539
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107540
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107541
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107542
at_status=$? at_failed=false
 
107543
$at_check_filter
 
107544
echo stderr:; cat "$at_stderr"
 
107545
echo stdout:; cat "$at_stdout"
 
107546
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107547
$at_failed && at_fn_log_failure
 
107548
$at_traceon; }
 
107549
 
 
107550
   { set +x
 
107551
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107552
     # in the normal case.  POSIX doesn't require fractional times to
 
107553
     # work, so this might not work.
 
107554
     sleep 0.1
 
107555
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107556
     # Then wait up to 10 seconds.
 
107557
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107558
       sleep 1
 
107559
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107560
     done
 
107561
     exit 1"
 
107562
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107563
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107564
     # in the normal case.  POSIX doesn't require fractional times to
 
107565
     # work, so this might not work.
 
107566
     sleep 0.1
 
107567
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107568
     # Then wait up to 10 seconds.
 
107569
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107570
       sleep 1
 
107571
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107572
     done
 
107573
     exit 1
 
107574
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107575
at_status=$? at_failed=false
 
107576
$at_check_filter
 
107577
echo stderr:; cat "$at_stderr"
 
107578
echo stdout:; cat "$at_stdout"
 
107579
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107580
if $at_failed; then :
 
107581
  kill `cat savepid`
 
107582
fi
 
107583
$at_failed && at_fn_log_failure
 
107584
$at_traceon; }
 
107585
 
 
107586
fi
 
107587
$at_failed && at_fn_log_failure
 
107588
$at_traceon; }
 
107589
 
 
107590
   # Check br-to-vlan, with --oneline.
 
107591
   # (This particular test is interesting with --oneline because it returns
 
107592
   # an integer instead of a string and that can cause type mismatches inside
 
107593
   # python if not done carefully.)
 
107594
   { set +x
 
107595
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
107596
"
 
107597
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107598
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
107599
 
 
107600
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107601
at_status=$? at_failed=false
 
107602
$at_check_filter
 
107603
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107604
echo >>"$at_stdout"; $as_echo "0
 
107605
" | \
 
107606
  $at_diff - "$at_stdout" || at_failed=:
 
107607
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107608
if $at_failed; then :
 
107609
  cp pid savepid
 
107610
   { set +x
 
107611
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107612
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107613
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107614
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107615
at_status=$? at_failed=false
 
107616
$at_check_filter
 
107617
echo stderr:; cat "$at_stderr"
 
107618
echo stdout:; cat "$at_stdout"
 
107619
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107620
$at_failed && at_fn_log_failure
 
107621
$at_traceon; }
 
107622
 
 
107623
   { set +x
 
107624
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107625
     # in the normal case.  POSIX doesn't require fractional times to
 
107626
     # work, so this might not work.
 
107627
     sleep 0.1
 
107628
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107629
     # Then wait up to 10 seconds.
 
107630
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107631
       sleep 1
 
107632
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107633
     done
 
107634
     exit 1"
 
107635
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107636
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107637
     # in the normal case.  POSIX doesn't require fractional times to
 
107638
     # work, so this might not work.
 
107639
     sleep 0.1
 
107640
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107641
     # Then wait up to 10 seconds.
 
107642
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107643
       sleep 1
 
107644
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107645
     done
 
107646
     exit 1
 
107647
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107648
at_status=$? at_failed=false
 
107649
$at_check_filter
 
107650
echo stderr:; cat "$at_stderr"
 
107651
echo stdout:; cat "$at_stdout"
 
107652
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107653
if $at_failed; then :
 
107654
  kill `cat savepid`
 
107655
fi
 
107656
$at_failed && at_fn_log_failure
 
107657
$at_traceon; }
 
107658
 
 
107659
fi
 
107660
$at_failed && at_fn_log_failure
 
107661
$at_traceon; }
 
107662
 
 
107663
 
 
107664
   # Check multiple queries in a single run.
 
107665
   { set +x
 
107666
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1"
 
107667
at_fn_check_prepare_trace "ovs-vsctl.at:489"
 
107668
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1
 
107669
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107670
at_status=$? at_failed=false
 
107671
$at_check_filter
 
107672
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107673
echo >>"$at_stdout"; $as_echo "xenbr0
 
107674
0
 
107675
" | \
 
107676
  $at_diff - "$at_stdout" || at_failed=:
 
107677
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107678
if $at_failed; then :
 
107679
  cp pid savepid
 
107680
   { set +x
 
107681
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107682
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107683
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107684
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107685
at_status=$? at_failed=false
 
107686
$at_check_filter
 
107687
echo stderr:; cat "$at_stderr"
 
107688
echo stdout:; cat "$at_stdout"
 
107689
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107690
$at_failed && at_fn_log_failure
 
107691
$at_traceon; }
 
107692
 
 
107693
   { set +x
 
107694
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107695
     # in the normal case.  POSIX doesn't require fractional times to
 
107696
     # work, so this might not work.
 
107697
     sleep 0.1
 
107698
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107699
     # Then wait up to 10 seconds.
 
107700
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107701
       sleep 1
 
107702
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107703
     done
 
107704
     exit 1"
 
107705
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107706
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107707
     # in the normal case.  POSIX doesn't require fractional times to
 
107708
     # work, so this might not work.
 
107709
     sleep 0.1
 
107710
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107711
     # Then wait up to 10 seconds.
 
107712
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107713
       sleep 1
 
107714
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107715
     done
 
107716
     exit 1
 
107717
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107718
at_status=$? at_failed=false
 
107719
$at_check_filter
 
107720
echo stderr:; cat "$at_stderr"
 
107721
echo stdout:; cat "$at_stdout"
 
107722
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107723
if $at_failed; then :
 
107724
  kill `cat savepid`
 
107725
fi
 
107726
$at_failed && at_fn_log_failure
 
107727
$at_traceon; }
 
107728
 
 
107729
fi
 
107730
$at_failed && at_fn_log_failure
 
107731
$at_traceon; }
 
107732
{ set +x
 
107733
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
107734
"
 
107735
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107736
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
107737
 
 
107738
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107739
at_status=$? at_failed=false
 
107740
$at_check_filter
 
107741
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107742
echo >>"$at_stdout"; $as_echo "xenbr0
 
107743
" | \
 
107744
  $at_diff - "$at_stdout" || at_failed=:
 
107745
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107746
if $at_failed; then :
 
107747
  cp pid savepid
 
107748
   { set +x
 
107749
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107750
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107751
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107753
at_status=$? at_failed=false
 
107754
$at_check_filter
 
107755
echo stderr:; cat "$at_stderr"
 
107756
echo stdout:; cat "$at_stdout"
 
107757
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107758
$at_failed && at_fn_log_failure
 
107759
$at_traceon; }
 
107760
 
 
107761
   { set +x
 
107762
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107763
     # in the normal case.  POSIX doesn't require fractional times to
 
107764
     # work, so this might not work.
 
107765
     sleep 0.1
 
107766
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107767
     # Then wait up to 10 seconds.
 
107768
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107769
       sleep 1
 
107770
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107771
     done
 
107772
     exit 1"
 
107773
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107774
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107775
     # in the normal case.  POSIX doesn't require fractional times to
 
107776
     # work, so this might not work.
 
107777
     sleep 0.1
 
107778
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107779
     # Then wait up to 10 seconds.
 
107780
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107781
       sleep 1
 
107782
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107783
     done
 
107784
     exit 1
 
107785
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107786
at_status=$? at_failed=false
 
107787
$at_check_filter
 
107788
echo stderr:; cat "$at_stderr"
 
107789
echo stdout:; cat "$at_stdout"
 
107790
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107791
if $at_failed; then :
 
107792
  kill `cat savepid`
 
107793
fi
 
107794
$at_failed && at_fn_log_failure
 
107795
$at_traceon; }
 
107796
 
 
107797
fi
 
107798
$at_failed && at_fn_log_failure
 
107799
$at_traceon; }
 
107800
 
 
107801
 
 
107802
   # Check br-to-vlan, without --oneline.
 
107803
   { set +x
 
107804
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
107805
"
 
107806
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107807
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
107808
 
 
107809
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107810
at_status=$? at_failed=false
 
107811
$at_check_filter
 
107812
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107813
echo >>"$at_stdout"; $as_echo "0
 
107814
" | \
 
107815
  $at_diff - "$at_stdout" || at_failed=:
 
107816
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107817
if $at_failed; then :
 
107818
  cp pid savepid
 
107819
   { set +x
 
107820
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107821
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107822
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107823
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107824
at_status=$? at_failed=false
 
107825
$at_check_filter
 
107826
echo stderr:; cat "$at_stderr"
 
107827
echo stdout:; cat "$at_stdout"
 
107828
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107829
$at_failed && at_fn_log_failure
 
107830
$at_traceon; }
 
107831
 
 
107832
   { set +x
 
107833
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107834
     # in the normal case.  POSIX doesn't require fractional times to
 
107835
     # work, so this might not work.
 
107836
     sleep 0.1
 
107837
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107838
     # Then wait up to 10 seconds.
 
107839
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107840
       sleep 1
 
107841
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107842
     done
 
107843
     exit 1"
 
107844
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107845
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107846
     # in the normal case.  POSIX doesn't require fractional times to
 
107847
     # work, so this might not work.
 
107848
     sleep 0.1
 
107849
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107850
     # Then wait up to 10 seconds.
 
107851
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107852
       sleep 1
 
107853
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107854
     done
 
107855
     exit 1
 
107856
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107857
at_status=$? at_failed=false
 
107858
$at_check_filter
 
107859
echo stderr:; cat "$at_stderr"
 
107860
echo stdout:; cat "$at_stdout"
 
107861
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107862
if $at_failed; then :
 
107863
  kill `cat savepid`
 
107864
fi
 
107865
$at_failed && at_fn_log_failure
 
107866
$at_traceon; }
 
107867
 
 
107868
fi
 
107869
$at_failed && at_fn_log_failure
 
107870
$at_traceon; }
 
107871
 
 
107872
   # Check br-to-vlan, with --oneline.
 
107873
   # (This particular test is interesting with --oneline because it returns
 
107874
   # an integer instead of a string and that can cause type mismatches inside
 
107875
   # python if not done carefully.)
 
107876
   { set +x
 
107877
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
107878
"
 
107879
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
107880
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
107881
 
 
107882
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107883
at_status=$? at_failed=false
 
107884
$at_check_filter
 
107885
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107886
echo >>"$at_stdout"; $as_echo "0
 
107887
" | \
 
107888
  $at_diff - "$at_stdout" || at_failed=:
 
107889
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107890
if $at_failed; then :
 
107891
  cp pid savepid
 
107892
   { set +x
 
107893
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107894
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107895
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107896
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107897
at_status=$? at_failed=false
 
107898
$at_check_filter
 
107899
echo stderr:; cat "$at_stderr"
 
107900
echo stdout:; cat "$at_stdout"
 
107901
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107902
$at_failed && at_fn_log_failure
 
107903
$at_traceon; }
 
107904
 
 
107905
   { set +x
 
107906
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107907
     # in the normal case.  POSIX doesn't require fractional times to
 
107908
     # work, so this might not work.
 
107909
     sleep 0.1
 
107910
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107911
     # Then wait up to 10 seconds.
 
107912
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107913
       sleep 1
 
107914
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107915
     done
 
107916
     exit 1"
 
107917
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107918
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107919
     # in the normal case.  POSIX doesn't require fractional times to
 
107920
     # work, so this might not work.
 
107921
     sleep 0.1
 
107922
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107923
     # Then wait up to 10 seconds.
 
107924
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107925
       sleep 1
 
107926
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107927
     done
 
107928
     exit 1
 
107929
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107930
at_status=$? at_failed=false
 
107931
$at_check_filter
 
107932
echo stderr:; cat "$at_stderr"
 
107933
echo stdout:; cat "$at_stdout"
 
107934
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107935
if $at_failed; then :
 
107936
  kill `cat savepid`
 
107937
fi
 
107938
$at_failed && at_fn_log_failure
 
107939
$at_traceon; }
 
107940
 
 
107941
fi
 
107942
$at_failed && at_fn_log_failure
 
107943
$at_traceon; }
 
107944
 
 
107945
 
 
107946
   # Check multiple queries in a single run.
 
107947
   { set +x
 
107948
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0"
 
107949
at_fn_check_prepare_trace "ovs-vsctl.at:489"
 
107950
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0
 
107951
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107952
at_status=$? at_failed=false
 
107953
$at_check_filter
 
107954
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
107955
echo >>"$at_stdout"; $as_echo "xenbr0
 
107956
0
 
107957
" | \
 
107958
  $at_diff - "$at_stdout" || at_failed=:
 
107959
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107960
if $at_failed; then :
 
107961
  cp pid savepid
 
107962
   { set +x
 
107963
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
107964
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
107965
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
107966
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
107967
at_status=$? at_failed=false
 
107968
$at_check_filter
 
107969
echo stderr:; cat "$at_stderr"
 
107970
echo stdout:; cat "$at_stdout"
 
107971
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
107972
$at_failed && at_fn_log_failure
 
107973
$at_traceon; }
 
107974
 
 
107975
   { set +x
 
107976
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
107977
     # in the normal case.  POSIX doesn't require fractional times to
 
107978
     # work, so this might not work.
 
107979
     sleep 0.1
 
107980
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107981
     # Then wait up to 10 seconds.
 
107982
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107983
       sleep 1
 
107984
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
107985
     done
 
107986
     exit 1"
 
107987
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
107988
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
107989
     # in the normal case.  POSIX doesn't require fractional times to
 
107990
     # work, so this might not work.
 
107991
     sleep 0.1
 
107992
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
107993
     # Then wait up to 10 seconds.
 
107994
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
107995
       sleep 1
 
107996
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
107997
     done
 
107998
     exit 1
 
107999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108000
at_status=$? at_failed=false
 
108001
$at_check_filter
 
108002
echo stderr:; cat "$at_stderr"
 
108003
echo stdout:; cat "$at_stdout"
 
108004
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108005
if $at_failed; then :
 
108006
  kill `cat savepid`
 
108007
fi
 
108008
$at_failed && at_fn_log_failure
 
108009
$at_traceon; }
 
108010
 
 
108011
fi
 
108012
$at_failed && at_fn_log_failure
 
108013
$at_traceon; }
 
108014
 
 
108015
   { set +x
 
108016
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
108017
"
 
108018
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108019
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
108020
 
 
108021
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108022
at_status=$? at_failed=false
 
108023
$at_check_filter
 
108024
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108025
echo >>"$at_stdout"; $as_echo "eth0
 
108026
" | \
 
108027
  $at_diff - "$at_stdout" || at_failed=:
 
108028
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108029
if $at_failed; then :
 
108030
  cp pid savepid
 
108031
   { set +x
 
108032
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108033
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108034
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108035
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108036
at_status=$? at_failed=false
 
108037
$at_check_filter
 
108038
echo stderr:; cat "$at_stderr"
 
108039
echo stdout:; cat "$at_stdout"
 
108040
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108041
$at_failed && at_fn_log_failure
 
108042
$at_traceon; }
 
108043
 
 
108044
   { set +x
 
108045
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108046
     # in the normal case.  POSIX doesn't require fractional times to
 
108047
     # work, so this might not work.
 
108048
     sleep 0.1
 
108049
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108050
     # Then wait up to 10 seconds.
 
108051
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108052
       sleep 1
 
108053
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108054
     done
 
108055
     exit 1"
 
108056
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108057
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108058
     # in the normal case.  POSIX doesn't require fractional times to
 
108059
     # work, so this might not work.
 
108060
     sleep 0.1
 
108061
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108062
     # Then wait up to 10 seconds.
 
108063
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108064
       sleep 1
 
108065
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108066
     done
 
108067
     exit 1
 
108068
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108069
at_status=$? at_failed=false
 
108070
$at_check_filter
 
108071
echo stderr:; cat "$at_stderr"
 
108072
echo stdout:; cat "$at_stdout"
 
108073
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108074
if $at_failed; then :
 
108075
  kill `cat savepid`
 
108076
fi
 
108077
$at_failed && at_fn_log_failure
 
108078
$at_traceon; }
 
108079
 
 
108080
fi
 
108081
$at_failed && at_fn_log_failure
 
108082
$at_traceon; }
 
108083
 
 
108084
 
 
108085
      { set +x
 
108086
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
108087
"
 
108088
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108089
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
108090
 
 
108091
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108092
at_status=$? at_failed=false
 
108093
$at_check_filter
 
108094
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108095
echo >>"$at_stdout"; $as_echo "eth0
 
108096
" | \
 
108097
  $at_diff - "$at_stdout" || at_failed=:
 
108098
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108099
if $at_failed; then :
 
108100
  cp pid savepid
 
108101
   { set +x
 
108102
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108103
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108104
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108105
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108106
at_status=$? at_failed=false
 
108107
$at_check_filter
 
108108
echo stderr:; cat "$at_stderr"
 
108109
echo stdout:; cat "$at_stdout"
 
108110
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108111
$at_failed && at_fn_log_failure
 
108112
$at_traceon; }
 
108113
 
 
108114
   { set +x
 
108115
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108116
     # in the normal case.  POSIX doesn't require fractional times to
 
108117
     # work, so this might not work.
 
108118
     sleep 0.1
 
108119
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108120
     # Then wait up to 10 seconds.
 
108121
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108122
       sleep 1
 
108123
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108124
     done
 
108125
     exit 1"
 
108126
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108127
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108128
     # in the normal case.  POSIX doesn't require fractional times to
 
108129
     # work, so this might not work.
 
108130
     sleep 0.1
 
108131
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108132
     # Then wait up to 10 seconds.
 
108133
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108134
       sleep 1
 
108135
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108136
     done
 
108137
     exit 1
 
108138
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108139
at_status=$? at_failed=false
 
108140
$at_check_filter
 
108141
echo stderr:; cat "$at_stderr"
 
108142
echo stdout:; cat "$at_stdout"
 
108143
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108144
if $at_failed; then :
 
108145
  kill `cat savepid`
 
108146
fi
 
108147
$at_failed && at_fn_log_failure
 
108148
$at_traceon; }
 
108149
 
 
108150
fi
 
108151
$at_failed && at_fn_log_failure
 
108152
$at_traceon; }
 
108153
 
 
108154
   { set +x
 
108155
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
108156
"
 
108157
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108158
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
108159
 
 
108160
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108161
at_status=$? at_failed=false
 
108162
$at_check_filter
 
108163
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xenbr0
 
108164
" | \
 
108165
  $at_diff - "$at_stderr" || at_failed=:
 
108166
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
108167
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108168
if $at_failed; then :
 
108169
  cp pid savepid
 
108170
   { set +x
 
108171
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108172
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108173
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108174
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108175
at_status=$? at_failed=false
 
108176
$at_check_filter
 
108177
echo stderr:; cat "$at_stderr"
 
108178
echo stdout:; cat "$at_stdout"
 
108179
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108180
$at_failed && at_fn_log_failure
 
108181
$at_traceon; }
 
108182
 
 
108183
   { set +x
 
108184
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108185
     # in the normal case.  POSIX doesn't require fractional times to
 
108186
     # work, so this might not work.
 
108187
     sleep 0.1
 
108188
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108189
     # Then wait up to 10 seconds.
 
108190
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108191
       sleep 1
 
108192
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108193
     done
 
108194
     exit 1"
 
108195
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108196
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108197
     # in the normal case.  POSIX doesn't require fractional times to
 
108198
     # work, so this might not work.
 
108199
     sleep 0.1
 
108200
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108201
     # Then wait up to 10 seconds.
 
108202
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108203
       sleep 1
 
108204
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108205
     done
 
108206
     exit 1
 
108207
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108208
at_status=$? at_failed=false
 
108209
$at_check_filter
 
108210
echo stderr:; cat "$at_stderr"
 
108211
echo stdout:; cat "$at_stdout"
 
108212
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108213
if $at_failed; then :
 
108214
  kill `cat savepid`
 
108215
fi
 
108216
$at_failed && at_fn_log_failure
 
108217
$at_traceon; }
 
108218
 
 
108219
fi
 
108220
$at_failed && at_fn_log_failure
 
108221
$at_traceon; }
 
108222
 
 
108223
   { set +x
 
108224
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
108225
"
 
108226
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108227
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
108228
 
 
108229
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108230
at_status=$? at_failed=false
 
108231
$at_check_filter
 
108232
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108233
echo >>"$at_stdout"; $as_echo "xenbr0
 
108234
" | \
 
108235
  $at_diff - "$at_stdout" || at_failed=:
 
108236
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108237
if $at_failed; then :
 
108238
  cp pid savepid
 
108239
   { set +x
 
108240
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108241
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108242
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108243
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108244
at_status=$? at_failed=false
 
108245
$at_check_filter
 
108246
echo stderr:; cat "$at_stderr"
 
108247
echo stdout:; cat "$at_stdout"
 
108248
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108249
$at_failed && at_fn_log_failure
 
108250
$at_traceon; }
 
108251
 
 
108252
   { set +x
 
108253
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108254
     # in the normal case.  POSIX doesn't require fractional times to
 
108255
     # work, so this might not work.
 
108256
     sleep 0.1
 
108257
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108258
     # Then wait up to 10 seconds.
 
108259
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108260
       sleep 1
 
108261
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108262
     done
 
108263
     exit 1"
 
108264
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108265
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108266
     # in the normal case.  POSIX doesn't require fractional times to
 
108267
     # work, so this might not work.
 
108268
     sleep 0.1
 
108269
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108270
     # Then wait up to 10 seconds.
 
108271
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108272
       sleep 1
 
108273
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108274
     done
 
108275
     exit 1
 
108276
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108277
at_status=$? at_failed=false
 
108278
$at_check_filter
 
108279
echo stderr:; cat "$at_stderr"
 
108280
echo stdout:; cat "$at_stdout"
 
108281
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108282
if $at_failed; then :
 
108283
  kill `cat savepid`
 
108284
fi
 
108285
$at_failed && at_fn_log_failure
 
108286
$at_traceon; }
 
108287
 
 
108288
fi
 
108289
$at_failed && at_fn_log_failure
 
108290
$at_traceon; }
 
108291
 
 
108292
{ set +x
 
108293
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
108294
"
 
108295
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108296
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
108297
 
 
108298
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108299
at_status=$? at_failed=false
 
108300
$at_check_filter
 
108301
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108302
echo >>"$at_stdout"; $as_echo "eth0
 
108303
" | \
 
108304
  $at_diff - "$at_stdout" || at_failed=:
 
108305
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108306
if $at_failed; then :
 
108307
  cp pid savepid
 
108308
   { set +x
 
108309
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108310
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108311
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108312
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108313
at_status=$? at_failed=false
 
108314
$at_check_filter
 
108315
echo stderr:; cat "$at_stderr"
 
108316
echo stdout:; cat "$at_stdout"
 
108317
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108318
$at_failed && at_fn_log_failure
 
108319
$at_traceon; }
 
108320
 
 
108321
   { set +x
 
108322
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108323
     # in the normal case.  POSIX doesn't require fractional times to
 
108324
     # work, so this might not work.
 
108325
     sleep 0.1
 
108326
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108327
     # Then wait up to 10 seconds.
 
108328
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108329
       sleep 1
 
108330
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108331
     done
 
108332
     exit 1"
 
108333
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108334
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108335
     # in the normal case.  POSIX doesn't require fractional times to
 
108336
     # work, so this might not work.
 
108337
     sleep 0.1
 
108338
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108339
     # Then wait up to 10 seconds.
 
108340
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108341
       sleep 1
 
108342
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108343
     done
 
108344
     exit 1
 
108345
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108346
at_status=$? at_failed=false
 
108347
$at_check_filter
 
108348
echo stderr:; cat "$at_stderr"
 
108349
echo stdout:; cat "$at_stdout"
 
108350
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108351
if $at_failed; then :
 
108352
  kill `cat savepid`
 
108353
fi
 
108354
$at_failed && at_fn_log_failure
 
108355
$at_traceon; }
 
108356
 
 
108357
fi
 
108358
$at_failed && at_fn_log_failure
 
108359
$at_traceon; }
 
108360
 
 
108361
   { set +x
 
108362
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
108363
"
 
108364
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108365
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
108366
 
 
108367
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108368
at_status=$? at_failed=false
 
108369
$at_check_filter
 
108370
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xenbr0
 
108371
" | \
 
108372
  $at_diff - "$at_stderr" || at_failed=:
 
108373
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
108374
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108375
if $at_failed; then :
 
108376
  cp pid savepid
 
108377
   { set +x
 
108378
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108379
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108380
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108381
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108382
at_status=$? at_failed=false
 
108383
$at_check_filter
 
108384
echo stderr:; cat "$at_stderr"
 
108385
echo stdout:; cat "$at_stdout"
 
108386
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108387
$at_failed && at_fn_log_failure
 
108388
$at_traceon; }
 
108389
 
 
108390
   { set +x
 
108391
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108392
     # in the normal case.  POSIX doesn't require fractional times to
 
108393
     # work, so this might not work.
 
108394
     sleep 0.1
 
108395
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108396
     # Then wait up to 10 seconds.
 
108397
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108398
       sleep 1
 
108399
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108400
     done
 
108401
     exit 1"
 
108402
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108403
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108404
     # in the normal case.  POSIX doesn't require fractional times to
 
108405
     # work, so this might not work.
 
108406
     sleep 0.1
 
108407
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108408
     # Then wait up to 10 seconds.
 
108409
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108410
       sleep 1
 
108411
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108412
     done
 
108413
     exit 1
 
108414
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108415
at_status=$? at_failed=false
 
108416
$at_check_filter
 
108417
echo stderr:; cat "$at_stderr"
 
108418
echo stdout:; cat "$at_stdout"
 
108419
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108420
if $at_failed; then :
 
108421
  kill `cat savepid`
 
108422
fi
 
108423
$at_failed && at_fn_log_failure
 
108424
$at_traceon; }
 
108425
 
 
108426
fi
 
108427
$at_failed && at_fn_log_failure
 
108428
$at_traceon; }
 
108429
 
 
108430
   { set +x
 
108431
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
108432
"
 
108433
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108434
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
108435
 
 
108436
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108437
at_status=$? at_failed=false
 
108438
$at_check_filter
 
108439
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108440
echo >>"$at_stdout"; $as_echo "xenbr0
 
108441
" | \
 
108442
  $at_diff - "$at_stdout" || at_failed=:
 
108443
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108444
if $at_failed; then :
 
108445
  cp pid savepid
 
108446
   { set +x
 
108447
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108448
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108449
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108450
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108451
at_status=$? at_failed=false
 
108452
$at_check_filter
 
108453
echo stderr:; cat "$at_stderr"
 
108454
echo stdout:; cat "$at_stdout"
 
108455
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108456
$at_failed && at_fn_log_failure
 
108457
$at_traceon; }
 
108458
 
 
108459
   { set +x
 
108460
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108461
     # in the normal case.  POSIX doesn't require fractional times to
 
108462
     # work, so this might not work.
 
108463
     sleep 0.1
 
108464
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108465
     # Then wait up to 10 seconds.
 
108466
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108467
       sleep 1
 
108468
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108469
     done
 
108470
     exit 1"
 
108471
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108472
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108473
     # in the normal case.  POSIX doesn't require fractional times to
 
108474
     # work, so this might not work.
 
108475
     sleep 0.1
 
108476
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108477
     # Then wait up to 10 seconds.
 
108478
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108479
       sleep 1
 
108480
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108481
     done
 
108482
     exit 1
 
108483
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108484
at_status=$? at_failed=false
 
108485
$at_check_filter
 
108486
echo stderr:; cat "$at_stderr"
 
108487
echo stdout:; cat "$at_stdout"
 
108488
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108489
if $at_failed; then :
 
108490
  kill `cat savepid`
 
108491
fi
 
108492
$at_failed && at_fn_log_failure
 
108493
$at_traceon; }
 
108494
 
 
108495
fi
 
108496
$at_failed && at_fn_log_failure
 
108497
$at_traceon; }
 
108498
 
 
108499
   { set +x
 
108500
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
108501
"
 
108502
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108503
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
108504
 
 
108505
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108506
at_status=$? at_failed=false
 
108507
$at_check_filter
 
108508
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108509
echo >>"$at_stdout"; $as_echo "eth0.0
 
108510
" | \
 
108511
  $at_diff - "$at_stdout" || at_failed=:
 
108512
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108513
if $at_failed; then :
 
108514
  cp pid savepid
 
108515
   { set +x
 
108516
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108517
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108518
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108519
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108520
at_status=$? at_failed=false
 
108521
$at_check_filter
 
108522
echo stderr:; cat "$at_stderr"
 
108523
echo stdout:; cat "$at_stdout"
 
108524
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108525
$at_failed && at_fn_log_failure
 
108526
$at_traceon; }
 
108527
 
 
108528
   { set +x
 
108529
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108530
     # in the normal case.  POSIX doesn't require fractional times to
 
108531
     # work, so this might not work.
 
108532
     sleep 0.1
 
108533
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108534
     # Then wait up to 10 seconds.
 
108535
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108536
       sleep 1
 
108537
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108538
     done
 
108539
     exit 1"
 
108540
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108541
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108542
     # in the normal case.  POSIX doesn't require fractional times to
 
108543
     # work, so this might not work.
 
108544
     sleep 0.1
 
108545
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108546
     # Then wait up to 10 seconds.
 
108547
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108548
       sleep 1
 
108549
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108550
     done
 
108551
     exit 1
 
108552
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108553
at_status=$? at_failed=false
 
108554
$at_check_filter
 
108555
echo stderr:; cat "$at_stderr"
 
108556
echo stdout:; cat "$at_stdout"
 
108557
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108558
if $at_failed; then :
 
108559
  kill `cat savepid`
 
108560
fi
 
108561
$at_failed && at_fn_log_failure
 
108562
$at_traceon; }
 
108563
 
 
108564
fi
 
108565
$at_failed && at_fn_log_failure
 
108566
$at_traceon; }
 
108567
 
 
108568
 
 
108569
      { set +x
 
108570
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
108571
"
 
108572
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108573
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
108574
 
 
108575
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108576
at_status=$? at_failed=false
 
108577
$at_check_filter
 
108578
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108579
echo >>"$at_stdout"; $as_echo "eth0.0
 
108580
" | \
 
108581
  $at_diff - "$at_stdout" || at_failed=:
 
108582
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108583
if $at_failed; then :
 
108584
  cp pid savepid
 
108585
   { set +x
 
108586
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108587
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108588
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108589
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108590
at_status=$? at_failed=false
 
108591
$at_check_filter
 
108592
echo stderr:; cat "$at_stderr"
 
108593
echo stdout:; cat "$at_stdout"
 
108594
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108595
$at_failed && at_fn_log_failure
 
108596
$at_traceon; }
 
108597
 
 
108598
   { set +x
 
108599
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108600
     # in the normal case.  POSIX doesn't require fractional times to
 
108601
     # work, so this might not work.
 
108602
     sleep 0.1
 
108603
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108604
     # Then wait up to 10 seconds.
 
108605
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108606
       sleep 1
 
108607
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108608
     done
 
108609
     exit 1"
 
108610
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108611
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108612
     # in the normal case.  POSIX doesn't require fractional times to
 
108613
     # work, so this might not work.
 
108614
     sleep 0.1
 
108615
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108616
     # Then wait up to 10 seconds.
 
108617
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108618
       sleep 1
 
108619
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108620
     done
 
108621
     exit 1
 
108622
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108623
at_status=$? at_failed=false
 
108624
$at_check_filter
 
108625
echo stderr:; cat "$at_stderr"
 
108626
echo stdout:; cat "$at_stdout"
 
108627
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108628
if $at_failed; then :
 
108629
  kill `cat savepid`
 
108630
fi
 
108631
$at_failed && at_fn_log_failure
 
108632
$at_traceon; }
 
108633
 
 
108634
fi
 
108635
$at_failed && at_fn_log_failure
 
108636
$at_traceon; }
 
108637
 
 
108638
   { set +x
 
108639
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
108640
"
 
108641
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108642
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
108643
 
 
108644
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108645
at_status=$? at_failed=false
 
108646
$at_check_filter
 
108647
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xapi1
 
108648
" | \
 
108649
  $at_diff - "$at_stderr" || at_failed=:
 
108650
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
108651
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108652
if $at_failed; then :
 
108653
  cp pid savepid
 
108654
   { set +x
 
108655
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108656
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108657
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108658
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108659
at_status=$? at_failed=false
 
108660
$at_check_filter
 
108661
echo stderr:; cat "$at_stderr"
 
108662
echo stdout:; cat "$at_stdout"
 
108663
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108664
$at_failed && at_fn_log_failure
 
108665
$at_traceon; }
 
108666
 
 
108667
   { set +x
 
108668
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108669
     # in the normal case.  POSIX doesn't require fractional times to
 
108670
     # work, so this might not work.
 
108671
     sleep 0.1
 
108672
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108673
     # Then wait up to 10 seconds.
 
108674
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108675
       sleep 1
 
108676
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108677
     done
 
108678
     exit 1"
 
108679
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108680
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108681
     # in the normal case.  POSIX doesn't require fractional times to
 
108682
     # work, so this might not work.
 
108683
     sleep 0.1
 
108684
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108685
     # Then wait up to 10 seconds.
 
108686
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108687
       sleep 1
 
108688
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108689
     done
 
108690
     exit 1
 
108691
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108692
at_status=$? at_failed=false
 
108693
$at_check_filter
 
108694
echo stderr:; cat "$at_stderr"
 
108695
echo stdout:; cat "$at_stdout"
 
108696
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108697
if $at_failed; then :
 
108698
  kill `cat savepid`
 
108699
fi
 
108700
$at_failed && at_fn_log_failure
 
108701
$at_traceon; }
 
108702
 
 
108703
fi
 
108704
$at_failed && at_fn_log_failure
 
108705
$at_traceon; }
 
108706
 
 
108707
   { set +x
 
108708
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0.0
 
108709
"
 
108710
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108711
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0.0
 
108712
 
 
108713
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108714
at_status=$? at_failed=false
 
108715
$at_check_filter
 
108716
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108717
echo >>"$at_stdout"; $as_echo "xapi1
 
108718
" | \
 
108719
  $at_diff - "$at_stdout" || at_failed=:
 
108720
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108721
if $at_failed; then :
 
108722
  cp pid savepid
 
108723
   { set +x
 
108724
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108725
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108726
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108727
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108728
at_status=$? at_failed=false
 
108729
$at_check_filter
 
108730
echo stderr:; cat "$at_stderr"
 
108731
echo stdout:; cat "$at_stdout"
 
108732
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108733
$at_failed && at_fn_log_failure
 
108734
$at_traceon; }
 
108735
 
 
108736
   { set +x
 
108737
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108738
     # in the normal case.  POSIX doesn't require fractional times to
 
108739
     # work, so this might not work.
 
108740
     sleep 0.1
 
108741
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108742
     # Then wait up to 10 seconds.
 
108743
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108744
       sleep 1
 
108745
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108746
     done
 
108747
     exit 1"
 
108748
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108749
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108750
     # in the normal case.  POSIX doesn't require fractional times to
 
108751
     # work, so this might not work.
 
108752
     sleep 0.1
 
108753
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108754
     # Then wait up to 10 seconds.
 
108755
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108756
       sleep 1
 
108757
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108758
     done
 
108759
     exit 1
 
108760
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108761
at_status=$? at_failed=false
 
108762
$at_check_filter
 
108763
echo stderr:; cat "$at_stderr"
 
108764
echo stdout:; cat "$at_stdout"
 
108765
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108766
if $at_failed; then :
 
108767
  kill `cat savepid`
 
108768
fi
 
108769
$at_failed && at_fn_log_failure
 
108770
$at_traceon; }
 
108771
 
 
108772
fi
 
108773
$at_failed && at_fn_log_failure
 
108774
$at_traceon; }
 
108775
 
 
108776
{ set +x
 
108777
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
108778
"
 
108779
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108780
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
108781
 
 
108782
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108783
at_status=$? at_failed=false
 
108784
$at_check_filter
 
108785
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108786
echo >>"$at_stdout"; $as_echo "eth0.0
 
108787
" | \
 
108788
  $at_diff - "$at_stdout" || at_failed=:
 
108789
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108790
if $at_failed; then :
 
108791
  cp pid savepid
 
108792
   { set +x
 
108793
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108794
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108795
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108796
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108797
at_status=$? at_failed=false
 
108798
$at_check_filter
 
108799
echo stderr:; cat "$at_stderr"
 
108800
echo stdout:; cat "$at_stdout"
 
108801
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108802
$at_failed && at_fn_log_failure
 
108803
$at_traceon; }
 
108804
 
 
108805
   { set +x
 
108806
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108807
     # in the normal case.  POSIX doesn't require fractional times to
 
108808
     # work, so this might not work.
 
108809
     sleep 0.1
 
108810
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108811
     # Then wait up to 10 seconds.
 
108812
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108813
       sleep 1
 
108814
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108815
     done
 
108816
     exit 1"
 
108817
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108818
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108819
     # in the normal case.  POSIX doesn't require fractional times to
 
108820
     # work, so this might not work.
 
108821
     sleep 0.1
 
108822
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108823
     # Then wait up to 10 seconds.
 
108824
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108825
       sleep 1
 
108826
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108827
     done
 
108828
     exit 1
 
108829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108830
at_status=$? at_failed=false
 
108831
$at_check_filter
 
108832
echo stderr:; cat "$at_stderr"
 
108833
echo stdout:; cat "$at_stdout"
 
108834
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108835
if $at_failed; then :
 
108836
  kill `cat savepid`
 
108837
fi
 
108838
$at_failed && at_fn_log_failure
 
108839
$at_traceon; }
 
108840
 
 
108841
fi
 
108842
$at_failed && at_fn_log_failure
 
108843
$at_traceon; }
 
108844
 
 
108845
   { set +x
 
108846
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
108847
"
 
108848
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108849
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
108850
 
 
108851
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108852
at_status=$? at_failed=false
 
108853
$at_check_filter
 
108854
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xapi1
 
108855
" | \
 
108856
  $at_diff - "$at_stderr" || at_failed=:
 
108857
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
108858
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108859
if $at_failed; then :
 
108860
  cp pid savepid
 
108861
   { set +x
 
108862
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108863
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108864
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108865
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108866
at_status=$? at_failed=false
 
108867
$at_check_filter
 
108868
echo stderr:; cat "$at_stderr"
 
108869
echo stdout:; cat "$at_stdout"
 
108870
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108871
$at_failed && at_fn_log_failure
 
108872
$at_traceon; }
 
108873
 
 
108874
   { set +x
 
108875
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108876
     # in the normal case.  POSIX doesn't require fractional times to
 
108877
     # work, so this might not work.
 
108878
     sleep 0.1
 
108879
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108880
     # Then wait up to 10 seconds.
 
108881
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108882
       sleep 1
 
108883
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108884
     done
 
108885
     exit 1"
 
108886
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108887
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108888
     # in the normal case.  POSIX doesn't require fractional times to
 
108889
     # work, so this might not work.
 
108890
     sleep 0.1
 
108891
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108892
     # Then wait up to 10 seconds.
 
108893
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108894
       sleep 1
 
108895
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108896
     done
 
108897
     exit 1
 
108898
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108899
at_status=$? at_failed=false
 
108900
$at_check_filter
 
108901
echo stderr:; cat "$at_stderr"
 
108902
echo stdout:; cat "$at_stdout"
 
108903
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108904
if $at_failed; then :
 
108905
  kill `cat savepid`
 
108906
fi
 
108907
$at_failed && at_fn_log_failure
 
108908
$at_traceon; }
 
108909
 
 
108910
fi
 
108911
$at_failed && at_fn_log_failure
 
108912
$at_traceon; }
 
108913
 
 
108914
   { set +x
 
108915
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0.0
 
108916
"
 
108917
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
108918
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0.0
 
108919
 
 
108920
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108921
at_status=$? at_failed=false
 
108922
$at_check_filter
 
108923
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
108924
echo >>"$at_stdout"; $as_echo "xapi1
 
108925
" | \
 
108926
  $at_diff - "$at_stdout" || at_failed=:
 
108927
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108928
if $at_failed; then :
 
108929
  cp pid savepid
 
108930
   { set +x
 
108931
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108932
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108933
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108934
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108935
at_status=$? at_failed=false
 
108936
$at_check_filter
 
108937
echo stderr:; cat "$at_stderr"
 
108938
echo stdout:; cat "$at_stdout"
 
108939
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108940
$at_failed && at_fn_log_failure
 
108941
$at_traceon; }
 
108942
 
 
108943
   { set +x
 
108944
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108945
     # in the normal case.  POSIX doesn't require fractional times to
 
108946
     # work, so this might not work.
 
108947
     sleep 0.1
 
108948
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108949
     # Then wait up to 10 seconds.
 
108950
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108951
       sleep 1
 
108952
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
108953
     done
 
108954
     exit 1"
 
108955
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
108956
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
108957
     # in the normal case.  POSIX doesn't require fractional times to
 
108958
     # work, so this might not work.
 
108959
     sleep 0.1
 
108960
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
108961
     # Then wait up to 10 seconds.
 
108962
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
108963
       sleep 1
 
108964
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
108965
     done
 
108966
     exit 1
 
108967
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108968
at_status=$? at_failed=false
 
108969
$at_check_filter
 
108970
echo stderr:; cat "$at_stderr"
 
108971
echo stdout:; cat "$at_stdout"
 
108972
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108973
if $at_failed; then :
 
108974
  kill `cat savepid`
 
108975
fi
 
108976
$at_failed && at_fn_log_failure
 
108977
$at_traceon; }
 
108978
 
 
108979
fi
 
108980
$at_failed && at_fn_log_failure
 
108981
$at_traceon; }
 
108982
 
 
108983
cp pid savepid
 
108984
   { set +x
 
108985
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
108986
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
108987
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
108988
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
108989
at_status=$? at_failed=false
 
108990
$at_check_filter
 
108991
echo stderr:; cat "$at_stderr"
 
108992
echo stdout:; cat "$at_stdout"
 
108993
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
108994
$at_failed && at_fn_log_failure
 
108995
$at_traceon; }
 
108996
 
 
108997
   { set +x
 
108998
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
108999
     # in the normal case.  POSIX doesn't require fractional times to
 
109000
     # work, so this might not work.
 
109001
     sleep 0.1
 
109002
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109003
     # Then wait up to 10 seconds.
 
109004
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109005
       sleep 1
 
109006
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109007
     done
 
109008
     exit 1"
 
109009
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109010
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109011
     # in the normal case.  POSIX doesn't require fractional times to
 
109012
     # work, so this might not work.
 
109013
     sleep 0.1
 
109014
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109015
     # Then wait up to 10 seconds.
 
109016
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109017
       sleep 1
 
109018
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109019
     done
 
109020
     exit 1
 
109021
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109022
at_status=$? at_failed=false
 
109023
$at_check_filter
 
109024
echo stderr:; cat "$at_stderr"
 
109025
echo stdout:; cat "$at_stdout"
 
109026
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109027
if $at_failed; then :
 
109028
  kill `cat savepid`
 
109029
fi
 
109030
$at_failed && at_fn_log_failure
 
109031
$at_traceon; }
 
109032
 
 
109033
  set +x
 
109034
  $at_times_p && times >"$at_times_file"
 
109035
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
109036
read at_status <"$at_status_file"
 
109037
#AT_STOP_960
 
109038
#AT_START_961
 
109039
at_fn_group_banner 961 'ovs-vsctl.at:489' \
 
109040
  "simple fake bridge + del-br fake bridge (VLAN 0)" "" 67
 
109041
at_xfail=no
 
109042
(
 
109043
  $as_echo "961. $at_setup_line: testing $at_desc ..."
 
109044
  $at_traceon
 
109045
 
 
109046
 
 
109047
{ set +x
 
109048
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
109049
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:489"
 
109050
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
109051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109052
at_status=$? at_failed=false
 
109053
$at_check_filter
 
109054
echo stderr:; cat "$at_stderr"
 
109055
echo stdout:; tee stdout <"$at_stdout"
 
109056
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109057
$at_failed && at_fn_log_failure
 
109058
$at_traceon; }
 
109059
 
 
109060
   { set +x
 
109061
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-tool transact db \\
 
109062
        '[\"Open_vSwitch\",
 
109063
          {\"op\": \"insert\",
 
109064
           \"table\": \"Open_vSwitch\",
 
109065
           \"row\": {}}]'"
 
109066
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109067
( $at_check_trace; ovsdb-tool transact db \
 
109068
        '["Open_vSwitch",
 
109069
          {"op": "insert",
 
109070
           "table": "Open_vSwitch",
 
109071
           "row": {}}]'
 
109072
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109073
at_status=$? at_failed=false
 
109074
$at_check_filter
 
109075
echo stderr:; cat "$at_stderr"
 
109076
echo stdout:; cat "$at_stdout"
 
109077
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109078
$at_failed && at_fn_log_failure
 
109079
$at_traceon; }
 
109080
 
 
109081
   { set +x
 
109082
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
109083
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:489"
 
109084
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
109085
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109086
at_status=$? at_failed=false
 
109087
$at_check_filter
 
109088
echo stderr:; cat "$at_stderr"
 
109089
echo stdout:; cat "$at_stdout"
 
109090
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109091
$at_failed && at_fn_log_failure
 
109092
$at_traceon; }
 
109093
 
 
109094
{ set +x
 
109095
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
109096
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
109097
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
109098
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
109099
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 0
 
109100
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 0
 
109101
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.0
 
109102
"
 
109103
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109104
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
109105
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
109106
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
109107
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
109108
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 0
 
109109
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 0
 
109110
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.0
 
109111
 
 
109112
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109113
at_status=$? at_failed=false
 
109114
$at_check_filter
 
109115
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109116
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
109117
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109118
if $at_failed; then :
 
109119
  cp pid savepid
 
109120
   { set +x
 
109121
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109122
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109123
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109124
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109125
at_status=$? at_failed=false
 
109126
$at_check_filter
 
109127
echo stderr:; cat "$at_stderr"
 
109128
echo stdout:; cat "$at_stdout"
 
109129
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109130
$at_failed && at_fn_log_failure
 
109131
$at_traceon; }
 
109132
 
 
109133
   { set +x
 
109134
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109135
     # in the normal case.  POSIX doesn't require fractional times to
 
109136
     # work, so this might not work.
 
109137
     sleep 0.1
 
109138
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109139
     # Then wait up to 10 seconds.
 
109140
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109141
       sleep 1
 
109142
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109143
     done
 
109144
     exit 1"
 
109145
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109146
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109147
     # in the normal case.  POSIX doesn't require fractional times to
 
109148
     # work, so this might not work.
 
109149
     sleep 0.1
 
109150
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109151
     # Then wait up to 10 seconds.
 
109152
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109153
       sleep 1
 
109154
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109155
     done
 
109156
     exit 1
 
109157
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109158
at_status=$? at_failed=false
 
109159
$at_check_filter
 
109160
echo stderr:; cat "$at_stderr"
 
109161
echo stdout:; cat "$at_stdout"
 
109162
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109163
if $at_failed; then :
 
109164
  kill `cat savepid`
 
109165
fi
 
109166
$at_failed && at_fn_log_failure
 
109167
$at_traceon; }
 
109168
 
 
109169
fi
 
109170
$at_failed && at_fn_log_failure
 
109171
$at_traceon; }
 
109172
 
 
109173
{ set +x
 
109174
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xapi1
 
109175
"
 
109176
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109177
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xapi1
 
109178
 
 
109179
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109180
at_status=$? at_failed=false
 
109181
$at_check_filter
 
109182
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109183
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
109184
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109185
if $at_failed; then :
 
109186
  cp pid savepid
 
109187
   { set +x
 
109188
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109189
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109190
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109191
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109192
at_status=$? at_failed=false
 
109193
$at_check_filter
 
109194
echo stderr:; cat "$at_stderr"
 
109195
echo stdout:; cat "$at_stdout"
 
109196
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109197
$at_failed && at_fn_log_failure
 
109198
$at_traceon; }
 
109199
 
 
109200
   { set +x
 
109201
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109202
     # in the normal case.  POSIX doesn't require fractional times to
 
109203
     # work, so this might not work.
 
109204
     sleep 0.1
 
109205
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109206
     # Then wait up to 10 seconds.
 
109207
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109208
       sleep 1
 
109209
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109210
     done
 
109211
     exit 1"
 
109212
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109213
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109214
     # in the normal case.  POSIX doesn't require fractional times to
 
109215
     # work, so this might not work.
 
109216
     sleep 0.1
 
109217
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109218
     # Then wait up to 10 seconds.
 
109219
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109220
       sleep 1
 
109221
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109222
     done
 
109223
     exit 1
 
109224
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109225
at_status=$? at_failed=false
 
109226
$at_check_filter
 
109227
echo stderr:; cat "$at_stderr"
 
109228
echo stdout:; cat "$at_stdout"
 
109229
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109230
if $at_failed; then :
 
109231
  kill `cat savepid`
 
109232
fi
 
109233
$at_failed && at_fn_log_failure
 
109234
$at_traceon; }
 
109235
 
 
109236
fi
 
109237
$at_failed && at_fn_log_failure
 
109238
$at_traceon; }
 
109239
 
 
109240
   { set +x
 
109241
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
109242
"
 
109243
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109244
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
109245
 
 
109246
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109247
at_status=$? at_failed=false
 
109248
$at_check_filter
 
109249
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109250
echo >>"$at_stdout"; $as_echo "xenbr0
 
109251
" | \
 
109252
  $at_diff - "$at_stdout" || at_failed=:
 
109253
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109254
if $at_failed; then :
 
109255
  cp pid savepid
 
109256
   { set +x
 
109257
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109258
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109259
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109261
at_status=$? at_failed=false
 
109262
$at_check_filter
 
109263
echo stderr:; cat "$at_stderr"
 
109264
echo stdout:; cat "$at_stdout"
 
109265
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109266
$at_failed && at_fn_log_failure
 
109267
$at_traceon; }
 
109268
 
 
109269
   { set +x
 
109270
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109271
     # in the normal case.  POSIX doesn't require fractional times to
 
109272
     # work, so this might not work.
 
109273
     sleep 0.1
 
109274
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109275
     # Then wait up to 10 seconds.
 
109276
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109277
       sleep 1
 
109278
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109279
     done
 
109280
     exit 1"
 
109281
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109282
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109283
     # in the normal case.  POSIX doesn't require fractional times to
 
109284
     # work, so this might not work.
 
109285
     sleep 0.1
 
109286
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109287
     # Then wait up to 10 seconds.
 
109288
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109289
       sleep 1
 
109290
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109291
     done
 
109292
     exit 1
 
109293
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109294
at_status=$? at_failed=false
 
109295
$at_check_filter
 
109296
echo stderr:; cat "$at_stderr"
 
109297
echo stdout:; cat "$at_stdout"
 
109298
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109299
if $at_failed; then :
 
109300
  kill `cat savepid`
 
109301
fi
 
109302
$at_failed && at_fn_log_failure
 
109303
$at_traceon; }
 
109304
 
 
109305
fi
 
109306
$at_failed && at_fn_log_failure
 
109307
$at_traceon; }
 
109308
 
 
109309
 
 
109310
      { set +x
 
109311
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
109312
"
 
109313
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109314
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
109315
 
 
109316
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109317
at_status=$? at_failed=false
 
109318
$at_check_filter
 
109319
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109320
echo >>"$at_stdout"; $as_echo "xenbr0
 
109321
" | \
 
109322
  $at_diff - "$at_stdout" || at_failed=:
 
109323
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109324
if $at_failed; then :
 
109325
  cp pid savepid
 
109326
   { set +x
 
109327
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109328
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109329
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109330
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109331
at_status=$? at_failed=false
 
109332
$at_check_filter
 
109333
echo stderr:; cat "$at_stderr"
 
109334
echo stdout:; cat "$at_stdout"
 
109335
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109336
$at_failed && at_fn_log_failure
 
109337
$at_traceon; }
 
109338
 
 
109339
   { set +x
 
109340
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109341
     # in the normal case.  POSIX doesn't require fractional times to
 
109342
     # work, so this might not work.
 
109343
     sleep 0.1
 
109344
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109345
     # Then wait up to 10 seconds.
 
109346
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109347
       sleep 1
 
109348
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109349
     done
 
109350
     exit 1"
 
109351
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109352
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109353
     # in the normal case.  POSIX doesn't require fractional times to
 
109354
     # work, so this might not work.
 
109355
     sleep 0.1
 
109356
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109357
     # Then wait up to 10 seconds.
 
109358
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109359
       sleep 1
 
109360
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109361
     done
 
109362
     exit 1
 
109363
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109364
at_status=$? at_failed=false
 
109365
$at_check_filter
 
109366
echo stderr:; cat "$at_stderr"
 
109367
echo stdout:; cat "$at_stdout"
 
109368
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109369
if $at_failed; then :
 
109370
  kill `cat savepid`
 
109371
fi
 
109372
$at_failed && at_fn_log_failure
 
109373
$at_traceon; }
 
109374
 
 
109375
fi
 
109376
$at_failed && at_fn_log_failure
 
109377
$at_traceon; }
 
109378
 
 
109379
 
 
109380
         { set +x
 
109381
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
109382
"
 
109383
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109384
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
109385
 
 
109386
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109387
at_status=$? at_failed=false
 
109388
$at_check_filter
 
109389
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109390
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
109391
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109392
if $at_failed; then :
 
109393
  cp pid savepid
 
109394
   { set +x
 
109395
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109396
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109397
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109398
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109399
at_status=$? at_failed=false
 
109400
$at_check_filter
 
109401
echo stderr:; cat "$at_stderr"
 
109402
echo stdout:; cat "$at_stdout"
 
109403
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109404
$at_failed && at_fn_log_failure
 
109405
$at_traceon; }
 
109406
 
 
109407
   { set +x
 
109408
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109409
     # in the normal case.  POSIX doesn't require fractional times to
 
109410
     # work, so this might not work.
 
109411
     sleep 0.1
 
109412
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109413
     # Then wait up to 10 seconds.
 
109414
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109415
       sleep 1
 
109416
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109417
     done
 
109418
     exit 1"
 
109419
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109420
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109421
     # in the normal case.  POSIX doesn't require fractional times to
 
109422
     # work, so this might not work.
 
109423
     sleep 0.1
 
109424
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109425
     # Then wait up to 10 seconds.
 
109426
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109427
       sleep 1
 
109428
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109429
     done
 
109430
     exit 1
 
109431
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109432
at_status=$? at_failed=false
 
109433
$at_check_filter
 
109434
echo stderr:; cat "$at_stderr"
 
109435
echo stdout:; cat "$at_stdout"
 
109436
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109437
if $at_failed; then :
 
109438
  kill `cat savepid`
 
109439
fi
 
109440
$at_failed && at_fn_log_failure
 
109441
$at_traceon; }
 
109442
 
 
109443
fi
 
109444
$at_failed && at_fn_log_failure
 
109445
$at_traceon; }
 
109446
 
 
109447
   { set +x
 
109448
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
109449
"
 
109450
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109451
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
109452
 
 
109453
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109454
at_status=$? at_failed=false
 
109455
$at_check_filter
 
109456
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109457
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
109458
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109459
if $at_failed; then :
 
109460
  cp pid savepid
 
109461
   { set +x
 
109462
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109463
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109464
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109465
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109466
at_status=$? at_failed=false
 
109467
$at_check_filter
 
109468
echo stderr:; cat "$at_stderr"
 
109469
echo stdout:; cat "$at_stdout"
 
109470
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109471
$at_failed && at_fn_log_failure
 
109472
$at_traceon; }
 
109473
 
 
109474
   { set +x
 
109475
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109476
     # in the normal case.  POSIX doesn't require fractional times to
 
109477
     # work, so this might not work.
 
109478
     sleep 0.1
 
109479
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109480
     # Then wait up to 10 seconds.
 
109481
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109482
       sleep 1
 
109483
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109484
     done
 
109485
     exit 1"
 
109486
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109487
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109488
     # in the normal case.  POSIX doesn't require fractional times to
 
109489
     # work, so this might not work.
 
109490
     sleep 0.1
 
109491
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109492
     # Then wait up to 10 seconds.
 
109493
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109494
       sleep 1
 
109495
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109496
     done
 
109497
     exit 1
 
109498
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109499
at_status=$? at_failed=false
 
109500
$at_check_filter
 
109501
echo stderr:; cat "$at_stderr"
 
109502
echo stdout:; cat "$at_stdout"
 
109503
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109504
if $at_failed; then :
 
109505
  kill `cat savepid`
 
109506
fi
 
109507
$at_failed && at_fn_log_failure
 
109508
$at_traceon; }
 
109509
 
 
109510
fi
 
109511
$at_failed && at_fn_log_failure
 
109512
$at_traceon; }
 
109513
 
 
109514
 
 
109515
      { set +x
 
109516
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
109517
"
 
109518
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109519
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
109520
 
 
109521
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109522
at_status=$? at_failed=false
 
109523
$at_check_filter
 
109524
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109525
echo >>"$at_stdout"; $as_echo "xenbr0
 
109526
" | \
 
109527
  $at_diff - "$at_stdout" || at_failed=:
 
109528
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109529
if $at_failed; then :
 
109530
  cp pid savepid
 
109531
   { set +x
 
109532
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109533
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109534
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109535
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109536
at_status=$? at_failed=false
 
109537
$at_check_filter
 
109538
echo stderr:; cat "$at_stderr"
 
109539
echo stdout:; cat "$at_stdout"
 
109540
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109541
$at_failed && at_fn_log_failure
 
109542
$at_traceon; }
 
109543
 
 
109544
   { set +x
 
109545
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109546
     # in the normal case.  POSIX doesn't require fractional times to
 
109547
     # work, so this might not work.
 
109548
     sleep 0.1
 
109549
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109550
     # Then wait up to 10 seconds.
 
109551
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109552
       sleep 1
 
109553
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109554
     done
 
109555
     exit 1"
 
109556
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109557
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109558
     # in the normal case.  POSIX doesn't require fractional times to
 
109559
     # work, so this might not work.
 
109560
     sleep 0.1
 
109561
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109562
     # Then wait up to 10 seconds.
 
109563
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109564
       sleep 1
 
109565
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109566
     done
 
109567
     exit 1
 
109568
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109569
at_status=$? at_failed=false
 
109570
$at_check_filter
 
109571
echo stderr:; cat "$at_stderr"
 
109572
echo stdout:; cat "$at_stdout"
 
109573
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109574
if $at_failed; then :
 
109575
  kill `cat savepid`
 
109576
fi
 
109577
$at_failed && at_fn_log_failure
 
109578
$at_traceon; }
 
109579
 
 
109580
fi
 
109581
$at_failed && at_fn_log_failure
 
109582
$at_traceon; }
 
109583
 
 
109584
 
 
109585
   # Check br-to-vlan, without --oneline.
 
109586
   { set +x
 
109587
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
109588
"
 
109589
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109590
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
109591
 
 
109592
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109593
at_status=$? at_failed=false
 
109594
$at_check_filter
 
109595
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109596
echo >>"$at_stdout"; $as_echo "0
 
109597
" | \
 
109598
  $at_diff - "$at_stdout" || at_failed=:
 
109599
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109600
if $at_failed; then :
 
109601
  cp pid savepid
 
109602
   { set +x
 
109603
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109604
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109605
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109606
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109607
at_status=$? at_failed=false
 
109608
$at_check_filter
 
109609
echo stderr:; cat "$at_stderr"
 
109610
echo stdout:; cat "$at_stdout"
 
109611
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109612
$at_failed && at_fn_log_failure
 
109613
$at_traceon; }
 
109614
 
 
109615
   { set +x
 
109616
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109617
     # in the normal case.  POSIX doesn't require fractional times to
 
109618
     # work, so this might not work.
 
109619
     sleep 0.1
 
109620
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109621
     # Then wait up to 10 seconds.
 
109622
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109623
       sleep 1
 
109624
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109625
     done
 
109626
     exit 1"
 
109627
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109628
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109629
     # in the normal case.  POSIX doesn't require fractional times to
 
109630
     # work, so this might not work.
 
109631
     sleep 0.1
 
109632
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109633
     # Then wait up to 10 seconds.
 
109634
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109635
       sleep 1
 
109636
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109637
     done
 
109638
     exit 1
 
109639
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109640
at_status=$? at_failed=false
 
109641
$at_check_filter
 
109642
echo stderr:; cat "$at_stderr"
 
109643
echo stdout:; cat "$at_stdout"
 
109644
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109645
if $at_failed; then :
 
109646
  kill `cat savepid`
 
109647
fi
 
109648
$at_failed && at_fn_log_failure
 
109649
$at_traceon; }
 
109650
 
 
109651
fi
 
109652
$at_failed && at_fn_log_failure
 
109653
$at_traceon; }
 
109654
 
 
109655
   # Check br-to-vlan, with --oneline.
 
109656
   # (This particular test is interesting with --oneline because it returns
 
109657
   # an integer instead of a string and that can cause type mismatches inside
 
109658
   # python if not done carefully.)
 
109659
   { set +x
 
109660
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
109661
"
 
109662
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109663
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
109664
 
 
109665
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109666
at_status=$? at_failed=false
 
109667
$at_check_filter
 
109668
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109669
echo >>"$at_stdout"; $as_echo "0
 
109670
" | \
 
109671
  $at_diff - "$at_stdout" || at_failed=:
 
109672
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109673
if $at_failed; then :
 
109674
  cp pid savepid
 
109675
   { set +x
 
109676
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109677
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109678
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109679
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109680
at_status=$? at_failed=false
 
109681
$at_check_filter
 
109682
echo stderr:; cat "$at_stderr"
 
109683
echo stdout:; cat "$at_stdout"
 
109684
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109685
$at_failed && at_fn_log_failure
 
109686
$at_traceon; }
 
109687
 
 
109688
   { set +x
 
109689
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109690
     # in the normal case.  POSIX doesn't require fractional times to
 
109691
     # work, so this might not work.
 
109692
     sleep 0.1
 
109693
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109694
     # Then wait up to 10 seconds.
 
109695
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109696
       sleep 1
 
109697
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109698
     done
 
109699
     exit 1"
 
109700
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109701
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109702
     # in the normal case.  POSIX doesn't require fractional times to
 
109703
     # work, so this might not work.
 
109704
     sleep 0.1
 
109705
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109706
     # Then wait up to 10 seconds.
 
109707
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109708
       sleep 1
 
109709
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109710
     done
 
109711
     exit 1
 
109712
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109713
at_status=$? at_failed=false
 
109714
$at_check_filter
 
109715
echo stderr:; cat "$at_stderr"
 
109716
echo stdout:; cat "$at_stdout"
 
109717
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109718
if $at_failed; then :
 
109719
  kill `cat savepid`
 
109720
fi
 
109721
$at_failed && at_fn_log_failure
 
109722
$at_traceon; }
 
109723
 
 
109724
fi
 
109725
$at_failed && at_fn_log_failure
 
109726
$at_traceon; }
 
109727
 
 
109728
 
 
109729
   # Check multiple queries in a single run.
 
109730
   { set +x
 
109731
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0"
 
109732
at_fn_check_prepare_trace "ovs-vsctl.at:489"
 
109733
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0
 
109734
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109735
at_status=$? at_failed=false
 
109736
$at_check_filter
 
109737
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109738
echo >>"$at_stdout"; $as_echo "xenbr0
 
109739
0
 
109740
" | \
 
109741
  $at_diff - "$at_stdout" || at_failed=:
 
109742
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109743
if $at_failed; then :
 
109744
  cp pid savepid
 
109745
   { set +x
 
109746
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109747
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109748
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109749
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109750
at_status=$? at_failed=false
 
109751
$at_check_filter
 
109752
echo stderr:; cat "$at_stderr"
 
109753
echo stdout:; cat "$at_stdout"
 
109754
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109755
$at_failed && at_fn_log_failure
 
109756
$at_traceon; }
 
109757
 
 
109758
   { set +x
 
109759
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109760
     # in the normal case.  POSIX doesn't require fractional times to
 
109761
     # work, so this might not work.
 
109762
     sleep 0.1
 
109763
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109764
     # Then wait up to 10 seconds.
 
109765
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109766
       sleep 1
 
109767
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109768
     done
 
109769
     exit 1"
 
109770
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109771
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109772
     # in the normal case.  POSIX doesn't require fractional times to
 
109773
     # work, so this might not work.
 
109774
     sleep 0.1
 
109775
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109776
     # Then wait up to 10 seconds.
 
109777
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109778
       sleep 1
 
109779
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109780
     done
 
109781
     exit 1
 
109782
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109783
at_status=$? at_failed=false
 
109784
$at_check_filter
 
109785
echo stderr:; cat "$at_stderr"
 
109786
echo stdout:; cat "$at_stdout"
 
109787
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109788
if $at_failed; then :
 
109789
  kill `cat savepid`
 
109790
fi
 
109791
$at_failed && at_fn_log_failure
 
109792
$at_traceon; }
 
109793
 
 
109794
fi
 
109795
$at_failed && at_fn_log_failure
 
109796
$at_traceon; }
 
109797
 
 
109798
   { set +x
 
109799
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
109800
"
 
109801
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109802
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
109803
 
 
109804
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109805
at_status=$? at_failed=false
 
109806
$at_check_filter
 
109807
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109808
echo >>"$at_stdout"; $as_echo "eth0
 
109809
" | \
 
109810
  $at_diff - "$at_stdout" || at_failed=:
 
109811
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109812
if $at_failed; then :
 
109813
  cp pid savepid
 
109814
   { set +x
 
109815
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109816
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109817
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109818
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109819
at_status=$? at_failed=false
 
109820
$at_check_filter
 
109821
echo stderr:; cat "$at_stderr"
 
109822
echo stdout:; cat "$at_stdout"
 
109823
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109824
$at_failed && at_fn_log_failure
 
109825
$at_traceon; }
 
109826
 
 
109827
   { set +x
 
109828
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109829
     # in the normal case.  POSIX doesn't require fractional times to
 
109830
     # work, so this might not work.
 
109831
     sleep 0.1
 
109832
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109833
     # Then wait up to 10 seconds.
 
109834
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109835
       sleep 1
 
109836
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109837
     done
 
109838
     exit 1"
 
109839
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109840
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109841
     # in the normal case.  POSIX doesn't require fractional times to
 
109842
     # work, so this might not work.
 
109843
     sleep 0.1
 
109844
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109845
     # Then wait up to 10 seconds.
 
109846
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109847
       sleep 1
 
109848
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109849
     done
 
109850
     exit 1
 
109851
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109852
at_status=$? at_failed=false
 
109853
$at_check_filter
 
109854
echo stderr:; cat "$at_stderr"
 
109855
echo stdout:; cat "$at_stdout"
 
109856
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109857
if $at_failed; then :
 
109858
  kill `cat savepid`
 
109859
fi
 
109860
$at_failed && at_fn_log_failure
 
109861
$at_traceon; }
 
109862
 
 
109863
fi
 
109864
$at_failed && at_fn_log_failure
 
109865
$at_traceon; }
 
109866
 
 
109867
 
 
109868
      { set +x
 
109869
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
109870
"
 
109871
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109872
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
109873
 
 
109874
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109875
at_status=$? at_failed=false
 
109876
$at_check_filter
 
109877
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
109878
echo >>"$at_stdout"; $as_echo "eth0
 
109879
" | \
 
109880
  $at_diff - "$at_stdout" || at_failed=:
 
109881
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109882
if $at_failed; then :
 
109883
  cp pid savepid
 
109884
   { set +x
 
109885
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109886
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109887
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109889
at_status=$? at_failed=false
 
109890
$at_check_filter
 
109891
echo stderr:; cat "$at_stderr"
 
109892
echo stdout:; cat "$at_stdout"
 
109893
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109894
$at_failed && at_fn_log_failure
 
109895
$at_traceon; }
 
109896
 
 
109897
   { set +x
 
109898
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109899
     # in the normal case.  POSIX doesn't require fractional times to
 
109900
     # work, so this might not work.
 
109901
     sleep 0.1
 
109902
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109903
     # Then wait up to 10 seconds.
 
109904
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109905
       sleep 1
 
109906
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109907
     done
 
109908
     exit 1"
 
109909
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109910
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109911
     # in the normal case.  POSIX doesn't require fractional times to
 
109912
     # work, so this might not work.
 
109913
     sleep 0.1
 
109914
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109915
     # Then wait up to 10 seconds.
 
109916
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109917
       sleep 1
 
109918
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109919
     done
 
109920
     exit 1
 
109921
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109922
at_status=$? at_failed=false
 
109923
$at_check_filter
 
109924
echo stderr:; cat "$at_stderr"
 
109925
echo stdout:; cat "$at_stdout"
 
109926
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109927
if $at_failed; then :
 
109928
  kill `cat savepid`
 
109929
fi
 
109930
$at_failed && at_fn_log_failure
 
109931
$at_traceon; }
 
109932
 
 
109933
fi
 
109934
$at_failed && at_fn_log_failure
 
109935
$at_traceon; }
 
109936
 
 
109937
   { set +x
 
109938
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
109939
"
 
109940
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
109941
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
109942
 
 
109943
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109944
at_status=$? at_failed=false
 
109945
$at_check_filter
 
109946
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xenbr0
 
109947
" | \
 
109948
  $at_diff - "$at_stderr" || at_failed=:
 
109949
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
109950
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109951
if $at_failed; then :
 
109952
  cp pid savepid
 
109953
   { set +x
 
109954
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
109955
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
109956
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
109957
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109958
at_status=$? at_failed=false
 
109959
$at_check_filter
 
109960
echo stderr:; cat "$at_stderr"
 
109961
echo stdout:; cat "$at_stdout"
 
109962
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109963
$at_failed && at_fn_log_failure
 
109964
$at_traceon; }
 
109965
 
 
109966
   { set +x
 
109967
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
109968
     # in the normal case.  POSIX doesn't require fractional times to
 
109969
     # work, so this might not work.
 
109970
     sleep 0.1
 
109971
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109972
     # Then wait up to 10 seconds.
 
109973
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109974
       sleep 1
 
109975
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
109976
     done
 
109977
     exit 1"
 
109978
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
109979
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
109980
     # in the normal case.  POSIX doesn't require fractional times to
 
109981
     # work, so this might not work.
 
109982
     sleep 0.1
 
109983
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
109984
     # Then wait up to 10 seconds.
 
109985
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
109986
       sleep 1
 
109987
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
109988
     done
 
109989
     exit 1
 
109990
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
109991
at_status=$? at_failed=false
 
109992
$at_check_filter
 
109993
echo stderr:; cat "$at_stderr"
 
109994
echo stdout:; cat "$at_stdout"
 
109995
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
109996
if $at_failed; then :
 
109997
  kill `cat savepid`
 
109998
fi
 
109999
$at_failed && at_fn_log_failure
 
110000
$at_traceon; }
 
110001
 
 
110002
fi
 
110003
$at_failed && at_fn_log_failure
 
110004
$at_traceon; }
 
110005
 
 
110006
   { set +x
 
110007
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
110008
"
 
110009
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110010
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
110011
 
 
110012
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110013
at_status=$? at_failed=false
 
110014
$at_check_filter
 
110015
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110016
echo >>"$at_stdout"; $as_echo "xenbr0
 
110017
" | \
 
110018
  $at_diff - "$at_stdout" || at_failed=:
 
110019
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110020
if $at_failed; then :
 
110021
  cp pid savepid
 
110022
   { set +x
 
110023
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110024
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110025
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110027
at_status=$? at_failed=false
 
110028
$at_check_filter
 
110029
echo stderr:; cat "$at_stderr"
 
110030
echo stdout:; cat "$at_stdout"
 
110031
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110032
$at_failed && at_fn_log_failure
 
110033
$at_traceon; }
 
110034
 
 
110035
   { set +x
 
110036
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110037
     # in the normal case.  POSIX doesn't require fractional times to
 
110038
     # work, so this might not work.
 
110039
     sleep 0.1
 
110040
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110041
     # Then wait up to 10 seconds.
 
110042
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110043
       sleep 1
 
110044
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110045
     done
 
110046
     exit 1"
 
110047
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110048
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110049
     # in the normal case.  POSIX doesn't require fractional times to
 
110050
     # work, so this might not work.
 
110051
     sleep 0.1
 
110052
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110053
     # Then wait up to 10 seconds.
 
110054
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110055
       sleep 1
 
110056
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110057
     done
 
110058
     exit 1
 
110059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110060
at_status=$? at_failed=false
 
110061
$at_check_filter
 
110062
echo stderr:; cat "$at_stderr"
 
110063
echo stdout:; cat "$at_stdout"
 
110064
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110065
if $at_failed; then :
 
110066
  kill `cat savepid`
 
110067
fi
 
110068
$at_failed && at_fn_log_failure
 
110069
$at_traceon; }
 
110070
 
 
110071
fi
 
110072
$at_failed && at_fn_log_failure
 
110073
$at_traceon; }
 
110074
 
 
110075
{ set +x
 
110076
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
110077
"
 
110078
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110079
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
110080
 
 
110081
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110082
at_status=$? at_failed=false
 
110083
$at_check_filter
 
110084
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110085
echo >>"$at_stdout"; $as_echo "eth0
 
110086
" | \
 
110087
  $at_diff - "$at_stdout" || at_failed=:
 
110088
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110089
if $at_failed; then :
 
110090
  cp pid savepid
 
110091
   { set +x
 
110092
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110093
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110094
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110095
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110096
at_status=$? at_failed=false
 
110097
$at_check_filter
 
110098
echo stderr:; cat "$at_stderr"
 
110099
echo stdout:; cat "$at_stdout"
 
110100
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110101
$at_failed && at_fn_log_failure
 
110102
$at_traceon; }
 
110103
 
 
110104
   { set +x
 
110105
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110106
     # in the normal case.  POSIX doesn't require fractional times to
 
110107
     # work, so this might not work.
 
110108
     sleep 0.1
 
110109
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110110
     # Then wait up to 10 seconds.
 
110111
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110112
       sleep 1
 
110113
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110114
     done
 
110115
     exit 1"
 
110116
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110117
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110118
     # in the normal case.  POSIX doesn't require fractional times to
 
110119
     # work, so this might not work.
 
110120
     sleep 0.1
 
110121
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110122
     # Then wait up to 10 seconds.
 
110123
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110124
       sleep 1
 
110125
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110126
     done
 
110127
     exit 1
 
110128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110129
at_status=$? at_failed=false
 
110130
$at_check_filter
 
110131
echo stderr:; cat "$at_stderr"
 
110132
echo stdout:; cat "$at_stdout"
 
110133
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110134
if $at_failed; then :
 
110135
  kill `cat savepid`
 
110136
fi
 
110137
$at_failed && at_fn_log_failure
 
110138
$at_traceon; }
 
110139
 
 
110140
fi
 
110141
$at_failed && at_fn_log_failure
 
110142
$at_traceon; }
 
110143
 
 
110144
   { set +x
 
110145
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
110146
"
 
110147
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110148
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
110149
 
 
110150
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110151
at_status=$? at_failed=false
 
110152
$at_check_filter
 
110153
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xenbr0
 
110154
" | \
 
110155
  $at_diff - "$at_stderr" || at_failed=:
 
110156
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
110157
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110158
if $at_failed; then :
 
110159
  cp pid savepid
 
110160
   { set +x
 
110161
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110162
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110163
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110165
at_status=$? at_failed=false
 
110166
$at_check_filter
 
110167
echo stderr:; cat "$at_stderr"
 
110168
echo stdout:; cat "$at_stdout"
 
110169
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110170
$at_failed && at_fn_log_failure
 
110171
$at_traceon; }
 
110172
 
 
110173
   { set +x
 
110174
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110175
     # in the normal case.  POSIX doesn't require fractional times to
 
110176
     # work, so this might not work.
 
110177
     sleep 0.1
 
110178
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110179
     # Then wait up to 10 seconds.
 
110180
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110181
       sleep 1
 
110182
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110183
     done
 
110184
     exit 1"
 
110185
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110186
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110187
     # in the normal case.  POSIX doesn't require fractional times to
 
110188
     # work, so this might not work.
 
110189
     sleep 0.1
 
110190
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110191
     # Then wait up to 10 seconds.
 
110192
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110193
       sleep 1
 
110194
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110195
     done
 
110196
     exit 1
 
110197
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110198
at_status=$? at_failed=false
 
110199
$at_check_filter
 
110200
echo stderr:; cat "$at_stderr"
 
110201
echo stdout:; cat "$at_stdout"
 
110202
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110203
if $at_failed; then :
 
110204
  kill `cat savepid`
 
110205
fi
 
110206
$at_failed && at_fn_log_failure
 
110207
$at_traceon; }
 
110208
 
 
110209
fi
 
110210
$at_failed && at_fn_log_failure
 
110211
$at_traceon; }
 
110212
 
 
110213
   { set +x
 
110214
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
110215
"
 
110216
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110217
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
110218
 
 
110219
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110220
at_status=$? at_failed=false
 
110221
$at_check_filter
 
110222
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110223
echo >>"$at_stdout"; $as_echo "xenbr0
 
110224
" | \
 
110225
  $at_diff - "$at_stdout" || at_failed=:
 
110226
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110227
if $at_failed; then :
 
110228
  cp pid savepid
 
110229
   { set +x
 
110230
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110231
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110232
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110233
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110234
at_status=$? at_failed=false
 
110235
$at_check_filter
 
110236
echo stderr:; cat "$at_stderr"
 
110237
echo stdout:; cat "$at_stdout"
 
110238
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110239
$at_failed && at_fn_log_failure
 
110240
$at_traceon; }
 
110241
 
 
110242
   { set +x
 
110243
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110244
     # in the normal case.  POSIX doesn't require fractional times to
 
110245
     # work, so this might not work.
 
110246
     sleep 0.1
 
110247
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110248
     # Then wait up to 10 seconds.
 
110249
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110250
       sleep 1
 
110251
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110252
     done
 
110253
     exit 1"
 
110254
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110255
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110256
     # in the normal case.  POSIX doesn't require fractional times to
 
110257
     # work, so this might not work.
 
110258
     sleep 0.1
 
110259
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110260
     # Then wait up to 10 seconds.
 
110261
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110262
       sleep 1
 
110263
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110264
     done
 
110265
     exit 1
 
110266
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110267
at_status=$? at_failed=false
 
110268
$at_check_filter
 
110269
echo stderr:; cat "$at_stderr"
 
110270
echo stdout:; cat "$at_stdout"
 
110271
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110272
if $at_failed; then :
 
110273
  kill `cat savepid`
 
110274
fi
 
110275
$at_failed && at_fn_log_failure
 
110276
$at_traceon; }
 
110277
 
 
110278
fi
 
110279
$at_failed && at_fn_log_failure
 
110280
$at_traceon; }
 
110281
 
 
110282
cp pid savepid
 
110283
   { set +x
 
110284
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110285
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110286
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110287
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110288
at_status=$? at_failed=false
 
110289
$at_check_filter
 
110290
echo stderr:; cat "$at_stderr"
 
110291
echo stdout:; cat "$at_stdout"
 
110292
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110293
$at_failed && at_fn_log_failure
 
110294
$at_traceon; }
 
110295
 
 
110296
   { set +x
 
110297
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110298
     # in the normal case.  POSIX doesn't require fractional times to
 
110299
     # work, so this might not work.
 
110300
     sleep 0.1
 
110301
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110302
     # Then wait up to 10 seconds.
 
110303
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110304
       sleep 1
 
110305
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110306
     done
 
110307
     exit 1"
 
110308
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110309
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110310
     # in the normal case.  POSIX doesn't require fractional times to
 
110311
     # work, so this might not work.
 
110312
     sleep 0.1
 
110313
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110314
     # Then wait up to 10 seconds.
 
110315
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110316
       sleep 1
 
110317
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110318
     done
 
110319
     exit 1
 
110320
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110321
at_status=$? at_failed=false
 
110322
$at_check_filter
 
110323
echo stderr:; cat "$at_stderr"
 
110324
echo stdout:; cat "$at_stdout"
 
110325
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110326
if $at_failed; then :
 
110327
  kill `cat savepid`
 
110328
fi
 
110329
$at_failed && at_fn_log_failure
 
110330
$at_traceon; }
 
110331
 
 
110332
  set +x
 
110333
  $at_times_p && times >"$at_times_file"
 
110334
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
110335
read at_status <"$at_status_file"
 
110336
#AT_STOP_961
 
110337
#AT_START_962
 
110338
at_fn_group_banner 962 'ovs-vsctl.at:489' \
 
110339
  "simple fake bridge + del-br real bridge (VLAN 0)" "" 67
 
110340
at_xfail=no
 
110341
(
 
110342
  $as_echo "962. $at_setup_line: testing $at_desc ..."
 
110343
  $at_traceon
 
110344
 
 
110345
 
 
110346
{ set +x
 
110347
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
110348
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:489"
 
110349
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
110350
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110351
at_status=$? at_failed=false
 
110352
$at_check_filter
 
110353
echo stderr:; cat "$at_stderr"
 
110354
echo stdout:; tee stdout <"$at_stdout"
 
110355
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110356
$at_failed && at_fn_log_failure
 
110357
$at_traceon; }
 
110358
 
 
110359
   { set +x
 
110360
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-tool transact db \\
 
110361
        '[\"Open_vSwitch\",
 
110362
          {\"op\": \"insert\",
 
110363
           \"table\": \"Open_vSwitch\",
 
110364
           \"row\": {}}]'"
 
110365
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110366
( $at_check_trace; ovsdb-tool transact db \
 
110367
        '["Open_vSwitch",
 
110368
          {"op": "insert",
 
110369
           "table": "Open_vSwitch",
 
110370
           "row": {}}]'
 
110371
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110372
at_status=$? at_failed=false
 
110373
$at_check_filter
 
110374
echo stderr:; cat "$at_stderr"
 
110375
echo stdout:; cat "$at_stdout"
 
110376
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110377
$at_failed && at_fn_log_failure
 
110378
$at_traceon; }
 
110379
 
 
110380
   { set +x
 
110381
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
110382
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:489"
 
110383
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
110384
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110385
at_status=$? at_failed=false
 
110386
$at_check_filter
 
110387
echo stderr:; cat "$at_stderr"
 
110388
echo stdout:; cat "$at_stdout"
 
110389
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110390
$at_failed && at_fn_log_failure
 
110391
$at_traceon; }
 
110392
 
 
110393
{ set +x
 
110394
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
110395
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
110396
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
110397
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
110398
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 0
 
110399
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 0
 
110400
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.0
 
110401
"
 
110402
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110403
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
110404
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
110405
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
110406
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
110407
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 0
 
110408
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 0
 
110409
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.0
 
110410
 
 
110411
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110412
at_status=$? at_failed=false
 
110413
$at_check_filter
 
110414
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110415
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
110416
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110417
if $at_failed; then :
 
110418
  cp pid savepid
 
110419
   { set +x
 
110420
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110421
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110422
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110424
at_status=$? at_failed=false
 
110425
$at_check_filter
 
110426
echo stderr:; cat "$at_stderr"
 
110427
echo stdout:; cat "$at_stdout"
 
110428
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110429
$at_failed && at_fn_log_failure
 
110430
$at_traceon; }
 
110431
 
 
110432
   { set +x
 
110433
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110434
     # in the normal case.  POSIX doesn't require fractional times to
 
110435
     # work, so this might not work.
 
110436
     sleep 0.1
 
110437
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110438
     # Then wait up to 10 seconds.
 
110439
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110440
       sleep 1
 
110441
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110442
     done
 
110443
     exit 1"
 
110444
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110445
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110446
     # in the normal case.  POSIX doesn't require fractional times to
 
110447
     # work, so this might not work.
 
110448
     sleep 0.1
 
110449
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110450
     # Then wait up to 10 seconds.
 
110451
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110452
       sleep 1
 
110453
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110454
     done
 
110455
     exit 1
 
110456
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110457
at_status=$? at_failed=false
 
110458
$at_check_filter
 
110459
echo stderr:; cat "$at_stderr"
 
110460
echo stdout:; cat "$at_stdout"
 
110461
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110462
if $at_failed; then :
 
110463
  kill `cat savepid`
 
110464
fi
 
110465
$at_failed && at_fn_log_failure
 
110466
$at_traceon; }
 
110467
 
 
110468
fi
 
110469
$at_failed && at_fn_log_failure
 
110470
$at_traceon; }
 
110471
 
 
110472
{ set +x
 
110473
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xenbr0
 
110474
"
 
110475
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110476
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xenbr0
 
110477
 
 
110478
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110479
at_status=$? at_failed=false
 
110480
$at_check_filter
 
110481
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110482
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
110483
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110484
if $at_failed; then :
 
110485
  cp pid savepid
 
110486
   { set +x
 
110487
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110488
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110489
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110491
at_status=$? at_failed=false
 
110492
$at_check_filter
 
110493
echo stderr:; cat "$at_stderr"
 
110494
echo stdout:; cat "$at_stdout"
 
110495
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110496
$at_failed && at_fn_log_failure
 
110497
$at_traceon; }
 
110498
 
 
110499
   { set +x
 
110500
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110501
     # in the normal case.  POSIX doesn't require fractional times to
 
110502
     # work, so this might not work.
 
110503
     sleep 0.1
 
110504
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110505
     # Then wait up to 10 seconds.
 
110506
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110507
       sleep 1
 
110508
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110509
     done
 
110510
     exit 1"
 
110511
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110512
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110513
     # in the normal case.  POSIX doesn't require fractional times to
 
110514
     # work, so this might not work.
 
110515
     sleep 0.1
 
110516
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110517
     # Then wait up to 10 seconds.
 
110518
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110519
       sleep 1
 
110520
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110521
     done
 
110522
     exit 1
 
110523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110524
at_status=$? at_failed=false
 
110525
$at_check_filter
 
110526
echo stderr:; cat "$at_stderr"
 
110527
echo stdout:; cat "$at_stdout"
 
110528
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110529
if $at_failed; then :
 
110530
  kill `cat savepid`
 
110531
fi
 
110532
$at_failed && at_fn_log_failure
 
110533
$at_traceon; }
 
110534
 
 
110535
fi
 
110536
$at_failed && at_fn_log_failure
 
110537
$at_traceon; }
 
110538
 
 
110539
   { set +x
 
110540
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
110541
"
 
110542
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110543
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
110544
 
 
110545
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110546
at_status=$? at_failed=false
 
110547
$at_check_filter
 
110548
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110549
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
110550
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110551
if $at_failed; then :
 
110552
  cp pid savepid
 
110553
   { set +x
 
110554
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110555
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110556
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110557
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110558
at_status=$? at_failed=false
 
110559
$at_check_filter
 
110560
echo stderr:; cat "$at_stderr"
 
110561
echo stdout:; cat "$at_stdout"
 
110562
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110563
$at_failed && at_fn_log_failure
 
110564
$at_traceon; }
 
110565
 
 
110566
   { set +x
 
110567
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110568
     # in the normal case.  POSIX doesn't require fractional times to
 
110569
     # work, so this might not work.
 
110570
     sleep 0.1
 
110571
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110572
     # Then wait up to 10 seconds.
 
110573
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110574
       sleep 1
 
110575
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110576
     done
 
110577
     exit 1"
 
110578
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110579
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110580
     # in the normal case.  POSIX doesn't require fractional times to
 
110581
     # work, so this might not work.
 
110582
     sleep 0.1
 
110583
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110584
     # Then wait up to 10 seconds.
 
110585
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110586
       sleep 1
 
110587
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110588
     done
 
110589
     exit 1
 
110590
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110591
at_status=$? at_failed=false
 
110592
$at_check_filter
 
110593
echo stderr:; cat "$at_stderr"
 
110594
echo stdout:; cat "$at_stdout"
 
110595
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110596
if $at_failed; then :
 
110597
  kill `cat savepid`
 
110598
fi
 
110599
$at_failed && at_fn_log_failure
 
110600
$at_traceon; }
 
110601
 
 
110602
fi
 
110603
$at_failed && at_fn_log_failure
 
110604
$at_traceon; }
 
110605
 
 
110606
 
 
110607
      { set +x
 
110608
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
110609
"
 
110610
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110611
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
110612
 
 
110613
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110614
at_status=$? at_failed=false
 
110615
$at_check_filter
 
110616
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110617
echo >>"$at_stdout"; $as_echo "
 
110618
" | \
 
110619
  $at_diff - "$at_stdout" || at_failed=:
 
110620
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110621
if $at_failed; then :
 
110622
  cp pid savepid
 
110623
   { set +x
 
110624
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110625
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110626
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110627
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110628
at_status=$? at_failed=false
 
110629
$at_check_filter
 
110630
echo stderr:; cat "$at_stderr"
 
110631
echo stdout:; cat "$at_stdout"
 
110632
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110633
$at_failed && at_fn_log_failure
 
110634
$at_traceon; }
 
110635
 
 
110636
   { set +x
 
110637
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110638
     # in the normal case.  POSIX doesn't require fractional times to
 
110639
     # work, so this might not work.
 
110640
     sleep 0.1
 
110641
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110642
     # Then wait up to 10 seconds.
 
110643
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110644
       sleep 1
 
110645
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110646
     done
 
110647
     exit 1"
 
110648
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110649
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110650
     # in the normal case.  POSIX doesn't require fractional times to
 
110651
     # work, so this might not work.
 
110652
     sleep 0.1
 
110653
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110654
     # Then wait up to 10 seconds.
 
110655
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110656
       sleep 1
 
110657
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110658
     done
 
110659
     exit 1
 
110660
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110661
at_status=$? at_failed=false
 
110662
$at_check_filter
 
110663
echo stderr:; cat "$at_stderr"
 
110664
echo stdout:; cat "$at_stdout"
 
110665
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110666
if $at_failed; then :
 
110667
  kill `cat savepid`
 
110668
fi
 
110669
$at_failed && at_fn_log_failure
 
110670
$at_traceon; }
 
110671
 
 
110672
fi
 
110673
$at_failed && at_fn_log_failure
 
110674
$at_traceon; }
 
110675
 
 
110676
 
 
110677
 
 
110678
   { set +x
 
110679
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
110680
"
 
110681
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110682
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
110683
 
 
110684
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110685
at_status=$? at_failed=false
 
110686
$at_check_filter
 
110687
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110688
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
110689
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110690
if $at_failed; then :
 
110691
  cp pid savepid
 
110692
   { set +x
 
110693
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110694
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110695
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110696
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110697
at_status=$? at_failed=false
 
110698
$at_check_filter
 
110699
echo stderr:; cat "$at_stderr"
 
110700
echo stdout:; cat "$at_stdout"
 
110701
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110702
$at_failed && at_fn_log_failure
 
110703
$at_traceon; }
 
110704
 
 
110705
   { set +x
 
110706
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110707
     # in the normal case.  POSIX doesn't require fractional times to
 
110708
     # work, so this might not work.
 
110709
     sleep 0.1
 
110710
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110711
     # Then wait up to 10 seconds.
 
110712
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110713
       sleep 1
 
110714
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110715
     done
 
110716
     exit 1"
 
110717
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110718
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110719
     # in the normal case.  POSIX doesn't require fractional times to
 
110720
     # work, so this might not work.
 
110721
     sleep 0.1
 
110722
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110723
     # Then wait up to 10 seconds.
 
110724
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110725
       sleep 1
 
110726
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110727
     done
 
110728
     exit 1
 
110729
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110730
at_status=$? at_failed=false
 
110731
$at_check_filter
 
110732
echo stderr:; cat "$at_stderr"
 
110733
echo stdout:; cat "$at_stdout"
 
110734
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110735
if $at_failed; then :
 
110736
  kill `cat savepid`
 
110737
fi
 
110738
$at_failed && at_fn_log_failure
 
110739
$at_traceon; }
 
110740
 
 
110741
fi
 
110742
$at_failed && at_fn_log_failure
 
110743
$at_traceon; }
 
110744
 
 
110745
 
 
110746
 
 
110747
cp pid savepid
 
110748
   { set +x
 
110749
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110750
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110751
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110753
at_status=$? at_failed=false
 
110754
$at_check_filter
 
110755
echo stderr:; cat "$at_stderr"
 
110756
echo stdout:; cat "$at_stdout"
 
110757
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110758
$at_failed && at_fn_log_failure
 
110759
$at_traceon; }
 
110760
 
 
110761
   { set +x
 
110762
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110763
     # in the normal case.  POSIX doesn't require fractional times to
 
110764
     # work, so this might not work.
 
110765
     sleep 0.1
 
110766
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110767
     # Then wait up to 10 seconds.
 
110768
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110769
       sleep 1
 
110770
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110771
     done
 
110772
     exit 1"
 
110773
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110774
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110775
     # in the normal case.  POSIX doesn't require fractional times to
 
110776
     # work, so this might not work.
 
110777
     sleep 0.1
 
110778
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110779
     # Then wait up to 10 seconds.
 
110780
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110781
       sleep 1
 
110782
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110783
     done
 
110784
     exit 1
 
110785
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110786
at_status=$? at_failed=false
 
110787
$at_check_filter
 
110788
echo stderr:; cat "$at_stderr"
 
110789
echo stdout:; cat "$at_stdout"
 
110790
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110791
if $at_failed; then :
 
110792
  kill `cat savepid`
 
110793
fi
 
110794
$at_failed && at_fn_log_failure
 
110795
$at_traceon; }
 
110796
 
 
110797
  set +x
 
110798
  $at_times_p && times >"$at_times_file"
 
110799
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
110800
read at_status <"$at_status_file"
 
110801
#AT_STOP_962
 
110802
#AT_START_963
 
110803
at_fn_group_banner 963 'ovs-vsctl.at:489' \
 
110804
  "simple fake bridge + external IDs (VLAN 0)" "     " 67
 
110805
at_xfail=no
 
110806
(
 
110807
  $as_echo "963. $at_setup_line: testing $at_desc ..."
 
110808
  $at_traceon
 
110809
 
 
110810
 
 
110811
{ set +x
 
110812
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
110813
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:489"
 
110814
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
110815
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110816
at_status=$? at_failed=false
 
110817
$at_check_filter
 
110818
echo stderr:; cat "$at_stderr"
 
110819
echo stdout:; tee stdout <"$at_stdout"
 
110820
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110821
$at_failed && at_fn_log_failure
 
110822
$at_traceon; }
 
110823
 
 
110824
   { set +x
 
110825
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-tool transact db \\
 
110826
        '[\"Open_vSwitch\",
 
110827
          {\"op\": \"insert\",
 
110828
           \"table\": \"Open_vSwitch\",
 
110829
           \"row\": {}}]'"
 
110830
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110831
( $at_check_trace; ovsdb-tool transact db \
 
110832
        '["Open_vSwitch",
 
110833
          {"op": "insert",
 
110834
           "table": "Open_vSwitch",
 
110835
           "row": {}}]'
 
110836
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110837
at_status=$? at_failed=false
 
110838
$at_check_filter
 
110839
echo stderr:; cat "$at_stderr"
 
110840
echo stdout:; cat "$at_stdout"
 
110841
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110842
$at_failed && at_fn_log_failure
 
110843
$at_traceon; }
 
110844
 
 
110845
   { set +x
 
110846
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
110847
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:489"
 
110848
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
110849
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110850
at_status=$? at_failed=false
 
110851
$at_check_filter
 
110852
echo stderr:; cat "$at_stderr"
 
110853
echo stdout:; cat "$at_stdout"
 
110854
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110855
$at_failed && at_fn_log_failure
 
110856
$at_traceon; }
 
110857
 
 
110858
{ set +x
 
110859
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
110860
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
110861
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
110862
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
110863
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 0
 
110864
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 0
 
110865
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.0
 
110866
"
 
110867
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
110868
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xenbr0
 
110869
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xenbr0
 
110870
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xenbr0 eth0
 
110871
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-port xenbr0 eth0
 
110872
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1 xenbr0 0
 
110873
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --may-exist add-br xapi1 xenbr0 0
 
110874
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi1 eth0.0
 
110875
 
 
110876
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110877
at_status=$? at_failed=false
 
110878
$at_check_filter
 
110879
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110880
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
110881
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110882
if $at_failed; then :
 
110883
  cp pid savepid
 
110884
   { set +x
 
110885
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110886
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110887
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110889
at_status=$? at_failed=false
 
110890
$at_check_filter
 
110891
echo stderr:; cat "$at_stderr"
 
110892
echo stdout:; cat "$at_stdout"
 
110893
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110894
$at_failed && at_fn_log_failure
 
110895
$at_traceon; }
 
110896
 
 
110897
   { set +x
 
110898
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110899
     # in the normal case.  POSIX doesn't require fractional times to
 
110900
     # work, so this might not work.
 
110901
     sleep 0.1
 
110902
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110903
     # Then wait up to 10 seconds.
 
110904
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110905
       sleep 1
 
110906
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110907
     done
 
110908
     exit 1"
 
110909
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110910
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110911
     # in the normal case.  POSIX doesn't require fractional times to
 
110912
     # work, so this might not work.
 
110913
     sleep 0.1
 
110914
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110915
     # Then wait up to 10 seconds.
 
110916
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110917
       sleep 1
 
110918
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110919
     done
 
110920
     exit 1
 
110921
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110922
at_status=$? at_failed=false
 
110923
$at_check_filter
 
110924
echo stderr:; cat "$at_stderr"
 
110925
echo stdout:; cat "$at_stdout"
 
110926
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110927
if $at_failed; then :
 
110928
  kill `cat savepid`
 
110929
fi
 
110930
$at_failed && at_fn_log_failure
 
110931
$at_traceon; }
 
110932
 
 
110933
fi
 
110934
$at_failed && at_fn_log_failure
 
110935
$at_traceon; }
 
110936
 
 
110937
{ set +x
 
110938
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-set-external-id xenbr0 key0 value0 -- br-set-external-id xapi1 key1 value1 -- br-get-external-id xenbr0 -- br-get-external-id xenbr0 key0 -- br-get-external-id xapi1 -- br-get-external-id xapi1 key1"
 
110939
at_fn_check_prepare_trace "ovs-vsctl.at:489"
 
110940
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-set-external-id xenbr0 key0 value0 -- br-set-external-id xapi1 key1 value1 -- br-get-external-id xenbr0 -- br-get-external-id xenbr0 key0 -- br-get-external-id xapi1 -- br-get-external-id xapi1 key1
 
110941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110942
at_status=$? at_failed=false
 
110943
$at_check_filter
 
110944
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
110945
echo >>"$at_stdout"; $as_echo "
 
110946
 
 
110947
key0=value0
 
110948
value0
 
110949
key1=value1
 
110950
value1
 
110951
" | \
 
110952
  $at_diff - "$at_stdout" || at_failed=:
 
110953
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110954
if $at_failed; then :
 
110955
  cp pid savepid
 
110956
   { set +x
 
110957
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
110958
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
110959
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
110960
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110961
at_status=$? at_failed=false
 
110962
$at_check_filter
 
110963
echo stderr:; cat "$at_stderr"
 
110964
echo stdout:; cat "$at_stdout"
 
110965
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110966
$at_failed && at_fn_log_failure
 
110967
$at_traceon; }
 
110968
 
 
110969
   { set +x
 
110970
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
110971
     # in the normal case.  POSIX doesn't require fractional times to
 
110972
     # work, so this might not work.
 
110973
     sleep 0.1
 
110974
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110975
     # Then wait up to 10 seconds.
 
110976
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110977
       sleep 1
 
110978
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
110979
     done
 
110980
     exit 1"
 
110981
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
110982
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
110983
     # in the normal case.  POSIX doesn't require fractional times to
 
110984
     # work, so this might not work.
 
110985
     sleep 0.1
 
110986
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
110987
     # Then wait up to 10 seconds.
 
110988
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
110989
       sleep 1
 
110990
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
110991
     done
 
110992
     exit 1
 
110993
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
110994
at_status=$? at_failed=false
 
110995
$at_check_filter
 
110996
echo stderr:; cat "$at_stderr"
 
110997
echo stdout:; cat "$at_stdout"
 
110998
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
110999
if $at_failed; then :
 
111000
  kill `cat savepid`
 
111001
fi
 
111002
$at_failed && at_fn_log_failure
 
111003
$at_traceon; }
 
111004
 
 
111005
fi
 
111006
$at_failed && at_fn_log_failure
 
111007
$at_traceon; }
 
111008
 
 
111009
   { set +x
 
111010
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
111011
"
 
111012
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111013
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
111014
 
 
111015
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111016
at_status=$? at_failed=false
 
111017
$at_check_filter
 
111018
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111019
echo >>"$at_stdout"; $as_echo "xapi1
 
111020
xenbr0
 
111021
" | \
 
111022
  $at_diff - "$at_stdout" || at_failed=:
 
111023
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111024
if $at_failed; then :
 
111025
  cp pid savepid
 
111026
   { set +x
 
111027
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111028
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111029
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111030
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111031
at_status=$? at_failed=false
 
111032
$at_check_filter
 
111033
echo stderr:; cat "$at_stderr"
 
111034
echo stdout:; cat "$at_stdout"
 
111035
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111036
$at_failed && at_fn_log_failure
 
111037
$at_traceon; }
 
111038
 
 
111039
   { set +x
 
111040
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111041
     # in the normal case.  POSIX doesn't require fractional times to
 
111042
     # work, so this might not work.
 
111043
     sleep 0.1
 
111044
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111045
     # Then wait up to 10 seconds.
 
111046
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111047
       sleep 1
 
111048
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111049
     done
 
111050
     exit 1"
 
111051
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111052
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111053
     # in the normal case.  POSIX doesn't require fractional times to
 
111054
     # work, so this might not work.
 
111055
     sleep 0.1
 
111056
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111057
     # Then wait up to 10 seconds.
 
111058
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111059
       sleep 1
 
111060
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111061
     done
 
111062
     exit 1
 
111063
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111064
at_status=$? at_failed=false
 
111065
$at_check_filter
 
111066
echo stderr:; cat "$at_stderr"
 
111067
echo stdout:; cat "$at_stdout"
 
111068
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111069
if $at_failed; then :
 
111070
  kill `cat savepid`
 
111071
fi
 
111072
$at_failed && at_fn_log_failure
 
111073
$at_traceon; }
 
111074
 
 
111075
fi
 
111076
$at_failed && at_fn_log_failure
 
111077
$at_traceon; }
 
111078
 
 
111079
 
 
111080
      { set +x
 
111081
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
111082
"
 
111083
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111084
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
111085
 
 
111086
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111087
at_status=$? at_failed=false
 
111088
$at_check_filter
 
111089
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111090
echo >>"$at_stdout"; $as_echo "xapi1\\nxenbr0
 
111091
" | \
 
111092
  $at_diff - "$at_stdout" || at_failed=:
 
111093
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111094
if $at_failed; then :
 
111095
  cp pid savepid
 
111096
   { set +x
 
111097
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111098
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111099
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111100
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111101
at_status=$? at_failed=false
 
111102
$at_check_filter
 
111103
echo stderr:; cat "$at_stderr"
 
111104
echo stdout:; cat "$at_stdout"
 
111105
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111106
$at_failed && at_fn_log_failure
 
111107
$at_traceon; }
 
111108
 
 
111109
   { set +x
 
111110
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111111
     # in the normal case.  POSIX doesn't require fractional times to
 
111112
     # work, so this might not work.
 
111113
     sleep 0.1
 
111114
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111115
     # Then wait up to 10 seconds.
 
111116
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111117
       sleep 1
 
111118
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111119
     done
 
111120
     exit 1"
 
111121
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111122
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111123
     # in the normal case.  POSIX doesn't require fractional times to
 
111124
     # work, so this might not work.
 
111125
     sleep 0.1
 
111126
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111127
     # Then wait up to 10 seconds.
 
111128
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111129
       sleep 1
 
111130
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111131
     done
 
111132
     exit 1
 
111133
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111134
at_status=$? at_failed=false
 
111135
$at_check_filter
 
111136
echo stderr:; cat "$at_stderr"
 
111137
echo stdout:; cat "$at_stdout"
 
111138
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111139
if $at_failed; then :
 
111140
  kill `cat savepid`
 
111141
fi
 
111142
$at_failed && at_fn_log_failure
 
111143
$at_traceon; }
 
111144
 
 
111145
fi
 
111146
$at_failed && at_fn_log_failure
 
111147
$at_traceon; }
 
111148
 
 
111149
 
 
111150
         { set +x
 
111151
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
111152
"
 
111153
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111154
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
111155
 
 
111156
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111157
at_status=$? at_failed=false
 
111158
$at_check_filter
 
111159
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111160
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
111161
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111162
if $at_failed; then :
 
111163
  cp pid savepid
 
111164
   { set +x
 
111165
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111166
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111167
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111168
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111169
at_status=$? at_failed=false
 
111170
$at_check_filter
 
111171
echo stderr:; cat "$at_stderr"
 
111172
echo stdout:; cat "$at_stdout"
 
111173
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111174
$at_failed && at_fn_log_failure
 
111175
$at_traceon; }
 
111176
 
 
111177
   { set +x
 
111178
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111179
     # in the normal case.  POSIX doesn't require fractional times to
 
111180
     # work, so this might not work.
 
111181
     sleep 0.1
 
111182
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111183
     # Then wait up to 10 seconds.
 
111184
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111185
       sleep 1
 
111186
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111187
     done
 
111188
     exit 1"
 
111189
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111190
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111191
     # in the normal case.  POSIX doesn't require fractional times to
 
111192
     # work, so this might not work.
 
111193
     sleep 0.1
 
111194
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111195
     # Then wait up to 10 seconds.
 
111196
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111197
       sleep 1
 
111198
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111199
     done
 
111200
     exit 1
 
111201
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111202
at_status=$? at_failed=false
 
111203
$at_check_filter
 
111204
echo stderr:; cat "$at_stderr"
 
111205
echo stdout:; cat "$at_stdout"
 
111206
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111207
if $at_failed; then :
 
111208
  kill `cat savepid`
 
111209
fi
 
111210
$at_failed && at_fn_log_failure
 
111211
$at_traceon; }
 
111212
 
 
111213
fi
 
111214
$at_failed && at_fn_log_failure
 
111215
$at_traceon; }
 
111216
{ set +x
 
111217
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
111218
"
 
111219
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111220
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xenbr0
 
111221
 
 
111222
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111223
at_status=$? at_failed=false
 
111224
$at_check_filter
 
111225
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111226
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
111227
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111228
if $at_failed; then :
 
111229
  cp pid savepid
 
111230
   { set +x
 
111231
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111232
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111233
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111234
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111235
at_status=$? at_failed=false
 
111236
$at_check_filter
 
111237
echo stderr:; cat "$at_stderr"
 
111238
echo stdout:; cat "$at_stdout"
 
111239
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111240
$at_failed && at_fn_log_failure
 
111241
$at_traceon; }
 
111242
 
 
111243
   { set +x
 
111244
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111245
     # in the normal case.  POSIX doesn't require fractional times to
 
111246
     # work, so this might not work.
 
111247
     sleep 0.1
 
111248
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111249
     # Then wait up to 10 seconds.
 
111250
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111251
       sleep 1
 
111252
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111253
     done
 
111254
     exit 1"
 
111255
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111256
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111257
     # in the normal case.  POSIX doesn't require fractional times to
 
111258
     # work, so this might not work.
 
111259
     sleep 0.1
 
111260
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111261
     # Then wait up to 10 seconds.
 
111262
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111263
       sleep 1
 
111264
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111265
     done
 
111266
     exit 1
 
111267
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111268
at_status=$? at_failed=false
 
111269
$at_check_filter
 
111270
echo stderr:; cat "$at_stderr"
 
111271
echo stdout:; cat "$at_stdout"
 
111272
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111273
if $at_failed; then :
 
111274
  kill `cat savepid`
 
111275
fi
 
111276
$at_failed && at_fn_log_failure
 
111277
$at_traceon; }
 
111278
 
 
111279
fi
 
111280
$at_failed && at_fn_log_failure
 
111281
$at_traceon; }
 
111282
 
 
111283
   { set +x
 
111284
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
111285
"
 
111286
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111287
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
111288
 
 
111289
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111290
at_status=$? at_failed=false
 
111291
$at_check_filter
 
111292
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111293
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
111294
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111295
if $at_failed; then :
 
111296
  cp pid savepid
 
111297
   { set +x
 
111298
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111299
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111300
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111301
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111302
at_status=$? at_failed=false
 
111303
$at_check_filter
 
111304
echo stderr:; cat "$at_stderr"
 
111305
echo stdout:; cat "$at_stdout"
 
111306
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111307
$at_failed && at_fn_log_failure
 
111308
$at_traceon; }
 
111309
 
 
111310
   { set +x
 
111311
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111312
     # in the normal case.  POSIX doesn't require fractional times to
 
111313
     # work, so this might not work.
 
111314
     sleep 0.1
 
111315
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111316
     # Then wait up to 10 seconds.
 
111317
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111318
       sleep 1
 
111319
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111320
     done
 
111321
     exit 1"
 
111322
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111323
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111324
     # in the normal case.  POSIX doesn't require fractional times to
 
111325
     # work, so this might not work.
 
111326
     sleep 0.1
 
111327
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111328
     # Then wait up to 10 seconds.
 
111329
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111330
       sleep 1
 
111331
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111332
     done
 
111333
     exit 1
 
111334
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111335
at_status=$? at_failed=false
 
111336
$at_check_filter
 
111337
echo stderr:; cat "$at_stderr"
 
111338
echo stdout:; cat "$at_stdout"
 
111339
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111340
if $at_failed; then :
 
111341
  kill `cat savepid`
 
111342
fi
 
111343
$at_failed && at_fn_log_failure
 
111344
$at_traceon; }
 
111345
 
 
111346
fi
 
111347
$at_failed && at_fn_log_failure
 
111348
$at_traceon; }
 
111349
 
 
111350
 
 
111351
      { set +x
 
111352
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
111353
"
 
111354
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111355
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
111356
 
 
111357
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111358
at_status=$? at_failed=false
 
111359
$at_check_filter
 
111360
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111361
echo >>"$at_stdout"; $as_echo "xenbr0
 
111362
" | \
 
111363
  $at_diff - "$at_stdout" || at_failed=:
 
111364
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111365
if $at_failed; then :
 
111366
  cp pid savepid
 
111367
   { set +x
 
111368
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111369
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111370
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111371
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111372
at_status=$? at_failed=false
 
111373
$at_check_filter
 
111374
echo stderr:; cat "$at_stderr"
 
111375
echo stdout:; cat "$at_stdout"
 
111376
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111377
$at_failed && at_fn_log_failure
 
111378
$at_traceon; }
 
111379
 
 
111380
   { set +x
 
111381
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111382
     # in the normal case.  POSIX doesn't require fractional times to
 
111383
     # work, so this might not work.
 
111384
     sleep 0.1
 
111385
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111386
     # Then wait up to 10 seconds.
 
111387
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111388
       sleep 1
 
111389
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111390
     done
 
111391
     exit 1"
 
111392
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111393
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111394
     # in the normal case.  POSIX doesn't require fractional times to
 
111395
     # work, so this might not work.
 
111396
     sleep 0.1
 
111397
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111398
     # Then wait up to 10 seconds.
 
111399
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111400
       sleep 1
 
111401
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111402
     done
 
111403
     exit 1
 
111404
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111405
at_status=$? at_failed=false
 
111406
$at_check_filter
 
111407
echo stderr:; cat "$at_stderr"
 
111408
echo stdout:; cat "$at_stdout"
 
111409
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111410
if $at_failed; then :
 
111411
  kill `cat savepid`
 
111412
fi
 
111413
$at_failed && at_fn_log_failure
 
111414
$at_traceon; }
 
111415
 
 
111416
fi
 
111417
$at_failed && at_fn_log_failure
 
111418
$at_traceon; }
 
111419
 
 
111420
 
 
111421
   # Check br-to-vlan, without --oneline.
 
111422
   { set +x
 
111423
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
111424
"
 
111425
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111426
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
111427
 
 
111428
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111429
at_status=$? at_failed=false
 
111430
$at_check_filter
 
111431
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111432
echo >>"$at_stdout"; $as_echo "0
 
111433
" | \
 
111434
  $at_diff - "$at_stdout" || at_failed=:
 
111435
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111436
if $at_failed; then :
 
111437
  cp pid savepid
 
111438
   { set +x
 
111439
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111440
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111441
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111442
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111443
at_status=$? at_failed=false
 
111444
$at_check_filter
 
111445
echo stderr:; cat "$at_stderr"
 
111446
echo stdout:; cat "$at_stdout"
 
111447
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111448
$at_failed && at_fn_log_failure
 
111449
$at_traceon; }
 
111450
 
 
111451
   { set +x
 
111452
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111453
     # in the normal case.  POSIX doesn't require fractional times to
 
111454
     # work, so this might not work.
 
111455
     sleep 0.1
 
111456
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111457
     # Then wait up to 10 seconds.
 
111458
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111459
       sleep 1
 
111460
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111461
     done
 
111462
     exit 1"
 
111463
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111464
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111465
     # in the normal case.  POSIX doesn't require fractional times to
 
111466
     # work, so this might not work.
 
111467
     sleep 0.1
 
111468
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111469
     # Then wait up to 10 seconds.
 
111470
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111471
       sleep 1
 
111472
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111473
     done
 
111474
     exit 1
 
111475
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111476
at_status=$? at_failed=false
 
111477
$at_check_filter
 
111478
echo stderr:; cat "$at_stderr"
 
111479
echo stdout:; cat "$at_stdout"
 
111480
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111481
if $at_failed; then :
 
111482
  kill `cat savepid`
 
111483
fi
 
111484
$at_failed && at_fn_log_failure
 
111485
$at_traceon; }
 
111486
 
 
111487
fi
 
111488
$at_failed && at_fn_log_failure
 
111489
$at_traceon; }
 
111490
 
 
111491
   # Check br-to-vlan, with --oneline.
 
111492
   # (This particular test is interesting with --oneline because it returns
 
111493
   # an integer instead of a string and that can cause type mismatches inside
 
111494
   # python if not done carefully.)
 
111495
   { set +x
 
111496
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
111497
"
 
111498
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111499
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
111500
 
 
111501
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111502
at_status=$? at_failed=false
 
111503
$at_check_filter
 
111504
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111505
echo >>"$at_stdout"; $as_echo "0
 
111506
" | \
 
111507
  $at_diff - "$at_stdout" || at_failed=:
 
111508
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111509
if $at_failed; then :
 
111510
  cp pid savepid
 
111511
   { set +x
 
111512
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111513
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111514
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111515
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111516
at_status=$? at_failed=false
 
111517
$at_check_filter
 
111518
echo stderr:; cat "$at_stderr"
 
111519
echo stdout:; cat "$at_stdout"
 
111520
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111521
$at_failed && at_fn_log_failure
 
111522
$at_traceon; }
 
111523
 
 
111524
   { set +x
 
111525
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111526
     # in the normal case.  POSIX doesn't require fractional times to
 
111527
     # work, so this might not work.
 
111528
     sleep 0.1
 
111529
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111530
     # Then wait up to 10 seconds.
 
111531
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111532
       sleep 1
 
111533
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111534
     done
 
111535
     exit 1"
 
111536
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111537
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111538
     # in the normal case.  POSIX doesn't require fractional times to
 
111539
     # work, so this might not work.
 
111540
     sleep 0.1
 
111541
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111542
     # Then wait up to 10 seconds.
 
111543
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111544
       sleep 1
 
111545
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111546
     done
 
111547
     exit 1
 
111548
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111549
at_status=$? at_failed=false
 
111550
$at_check_filter
 
111551
echo stderr:; cat "$at_stderr"
 
111552
echo stdout:; cat "$at_stdout"
 
111553
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111554
if $at_failed; then :
 
111555
  kill `cat savepid`
 
111556
fi
 
111557
$at_failed && at_fn_log_failure
 
111558
$at_traceon; }
 
111559
 
 
111560
fi
 
111561
$at_failed && at_fn_log_failure
 
111562
$at_traceon; }
 
111563
 
 
111564
 
 
111565
   # Check multiple queries in a single run.
 
111566
   { set +x
 
111567
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1"
 
111568
at_fn_check_prepare_trace "ovs-vsctl.at:489"
 
111569
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1
 
111570
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111571
at_status=$? at_failed=false
 
111572
$at_check_filter
 
111573
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111574
echo >>"$at_stdout"; $as_echo "xenbr0
 
111575
0
 
111576
" | \
 
111577
  $at_diff - "$at_stdout" || at_failed=:
 
111578
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111579
if $at_failed; then :
 
111580
  cp pid savepid
 
111581
   { set +x
 
111582
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111583
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111584
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111585
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111586
at_status=$? at_failed=false
 
111587
$at_check_filter
 
111588
echo stderr:; cat "$at_stderr"
 
111589
echo stdout:; cat "$at_stdout"
 
111590
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111591
$at_failed && at_fn_log_failure
 
111592
$at_traceon; }
 
111593
 
 
111594
   { set +x
 
111595
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111596
     # in the normal case.  POSIX doesn't require fractional times to
 
111597
     # work, so this might not work.
 
111598
     sleep 0.1
 
111599
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111600
     # Then wait up to 10 seconds.
 
111601
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111602
       sleep 1
 
111603
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111604
     done
 
111605
     exit 1"
 
111606
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111607
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111608
     # in the normal case.  POSIX doesn't require fractional times to
 
111609
     # work, so this might not work.
 
111610
     sleep 0.1
 
111611
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111612
     # Then wait up to 10 seconds.
 
111613
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111614
       sleep 1
 
111615
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111616
     done
 
111617
     exit 1
 
111618
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111619
at_status=$? at_failed=false
 
111620
$at_check_filter
 
111621
echo stderr:; cat "$at_stderr"
 
111622
echo stdout:; cat "$at_stdout"
 
111623
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111624
if $at_failed; then :
 
111625
  kill `cat savepid`
 
111626
fi
 
111627
$at_failed && at_fn_log_failure
 
111628
$at_traceon; }
 
111629
 
 
111630
fi
 
111631
$at_failed && at_fn_log_failure
 
111632
$at_traceon; }
 
111633
{ set +x
 
111634
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
111635
"
 
111636
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111637
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xenbr0
 
111638
 
 
111639
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111640
at_status=$? at_failed=false
 
111641
$at_check_filter
 
111642
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111643
echo >>"$at_stdout"; $as_echo "xenbr0
 
111644
" | \
 
111645
  $at_diff - "$at_stdout" || at_failed=:
 
111646
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111647
if $at_failed; then :
 
111648
  cp pid savepid
 
111649
   { set +x
 
111650
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111651
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111652
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111653
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111654
at_status=$? at_failed=false
 
111655
$at_check_filter
 
111656
echo stderr:; cat "$at_stderr"
 
111657
echo stdout:; cat "$at_stdout"
 
111658
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111659
$at_failed && at_fn_log_failure
 
111660
$at_traceon; }
 
111661
 
 
111662
   { set +x
 
111663
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111664
     # in the normal case.  POSIX doesn't require fractional times to
 
111665
     # work, so this might not work.
 
111666
     sleep 0.1
 
111667
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111668
     # Then wait up to 10 seconds.
 
111669
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111670
       sleep 1
 
111671
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111672
     done
 
111673
     exit 1"
 
111674
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111675
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111676
     # in the normal case.  POSIX doesn't require fractional times to
 
111677
     # work, so this might not work.
 
111678
     sleep 0.1
 
111679
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111680
     # Then wait up to 10 seconds.
 
111681
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111682
       sleep 1
 
111683
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111684
     done
 
111685
     exit 1
 
111686
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111687
at_status=$? at_failed=false
 
111688
$at_check_filter
 
111689
echo stderr:; cat "$at_stderr"
 
111690
echo stdout:; cat "$at_stdout"
 
111691
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111692
if $at_failed; then :
 
111693
  kill `cat savepid`
 
111694
fi
 
111695
$at_failed && at_fn_log_failure
 
111696
$at_traceon; }
 
111697
 
 
111698
fi
 
111699
$at_failed && at_fn_log_failure
 
111700
$at_traceon; }
 
111701
 
 
111702
 
 
111703
   # Check br-to-vlan, without --oneline.
 
111704
   { set +x
 
111705
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
111706
"
 
111707
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111708
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xenbr0
 
111709
 
 
111710
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111711
at_status=$? at_failed=false
 
111712
$at_check_filter
 
111713
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111714
echo >>"$at_stdout"; $as_echo "0
 
111715
" | \
 
111716
  $at_diff - "$at_stdout" || at_failed=:
 
111717
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111718
if $at_failed; then :
 
111719
  cp pid savepid
 
111720
   { set +x
 
111721
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111722
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111723
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111724
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111725
at_status=$? at_failed=false
 
111726
$at_check_filter
 
111727
echo stderr:; cat "$at_stderr"
 
111728
echo stdout:; cat "$at_stdout"
 
111729
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111730
$at_failed && at_fn_log_failure
 
111731
$at_traceon; }
 
111732
 
 
111733
   { set +x
 
111734
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111735
     # in the normal case.  POSIX doesn't require fractional times to
 
111736
     # work, so this might not work.
 
111737
     sleep 0.1
 
111738
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111739
     # Then wait up to 10 seconds.
 
111740
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111741
       sleep 1
 
111742
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111743
     done
 
111744
     exit 1"
 
111745
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111746
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111747
     # in the normal case.  POSIX doesn't require fractional times to
 
111748
     # work, so this might not work.
 
111749
     sleep 0.1
 
111750
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111751
     # Then wait up to 10 seconds.
 
111752
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111753
       sleep 1
 
111754
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111755
     done
 
111756
     exit 1
 
111757
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111758
at_status=$? at_failed=false
 
111759
$at_check_filter
 
111760
echo stderr:; cat "$at_stderr"
 
111761
echo stdout:; cat "$at_stdout"
 
111762
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111763
if $at_failed; then :
 
111764
  kill `cat savepid`
 
111765
fi
 
111766
$at_failed && at_fn_log_failure
 
111767
$at_traceon; }
 
111768
 
 
111769
fi
 
111770
$at_failed && at_fn_log_failure
 
111771
$at_traceon; }
 
111772
 
 
111773
   # Check br-to-vlan, with --oneline.
 
111774
   # (This particular test is interesting with --oneline because it returns
 
111775
   # an integer instead of a string and that can cause type mismatches inside
 
111776
   # python if not done carefully.)
 
111777
   { set +x
 
111778
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
111779
"
 
111780
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111781
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xenbr0
 
111782
 
 
111783
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111784
at_status=$? at_failed=false
 
111785
$at_check_filter
 
111786
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111787
echo >>"$at_stdout"; $as_echo "0
 
111788
" | \
 
111789
  $at_diff - "$at_stdout" || at_failed=:
 
111790
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111791
if $at_failed; then :
 
111792
  cp pid savepid
 
111793
   { set +x
 
111794
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111795
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111796
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111797
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111798
at_status=$? at_failed=false
 
111799
$at_check_filter
 
111800
echo stderr:; cat "$at_stderr"
 
111801
echo stdout:; cat "$at_stdout"
 
111802
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111803
$at_failed && at_fn_log_failure
 
111804
$at_traceon; }
 
111805
 
 
111806
   { set +x
 
111807
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111808
     # in the normal case.  POSIX doesn't require fractional times to
 
111809
     # work, so this might not work.
 
111810
     sleep 0.1
 
111811
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111812
     # Then wait up to 10 seconds.
 
111813
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111814
       sleep 1
 
111815
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111816
     done
 
111817
     exit 1"
 
111818
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111819
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111820
     # in the normal case.  POSIX doesn't require fractional times to
 
111821
     # work, so this might not work.
 
111822
     sleep 0.1
 
111823
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111824
     # Then wait up to 10 seconds.
 
111825
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111826
       sleep 1
 
111827
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111828
     done
 
111829
     exit 1
 
111830
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111831
at_status=$? at_failed=false
 
111832
$at_check_filter
 
111833
echo stderr:; cat "$at_stderr"
 
111834
echo stdout:; cat "$at_stdout"
 
111835
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111836
if $at_failed; then :
 
111837
  kill `cat savepid`
 
111838
fi
 
111839
$at_failed && at_fn_log_failure
 
111840
$at_traceon; }
 
111841
 
 
111842
fi
 
111843
$at_failed && at_fn_log_failure
 
111844
$at_traceon; }
 
111845
 
 
111846
 
 
111847
   # Check multiple queries in a single run.
 
111848
   { set +x
 
111849
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0"
 
111850
at_fn_check_prepare_trace "ovs-vsctl.at:489"
 
111851
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xenbr0 -- br-to-vlan xenbr0
 
111852
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111853
at_status=$? at_failed=false
 
111854
$at_check_filter
 
111855
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111856
echo >>"$at_stdout"; $as_echo "xenbr0
 
111857
0
 
111858
" | \
 
111859
  $at_diff - "$at_stdout" || at_failed=:
 
111860
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111861
if $at_failed; then :
 
111862
  cp pid savepid
 
111863
   { set +x
 
111864
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111865
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111866
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111867
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111868
at_status=$? at_failed=false
 
111869
$at_check_filter
 
111870
echo stderr:; cat "$at_stderr"
 
111871
echo stdout:; cat "$at_stdout"
 
111872
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111873
$at_failed && at_fn_log_failure
 
111874
$at_traceon; }
 
111875
 
 
111876
   { set +x
 
111877
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111878
     # in the normal case.  POSIX doesn't require fractional times to
 
111879
     # work, so this might not work.
 
111880
     sleep 0.1
 
111881
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111882
     # Then wait up to 10 seconds.
 
111883
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111884
       sleep 1
 
111885
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111886
     done
 
111887
     exit 1"
 
111888
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111889
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111890
     # in the normal case.  POSIX doesn't require fractional times to
 
111891
     # work, so this might not work.
 
111892
     sleep 0.1
 
111893
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111894
     # Then wait up to 10 seconds.
 
111895
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111896
       sleep 1
 
111897
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111898
     done
 
111899
     exit 1
 
111900
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111901
at_status=$? at_failed=false
 
111902
$at_check_filter
 
111903
echo stderr:; cat "$at_stderr"
 
111904
echo stdout:; cat "$at_stdout"
 
111905
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111906
if $at_failed; then :
 
111907
  kill `cat savepid`
 
111908
fi
 
111909
$at_failed && at_fn_log_failure
 
111910
$at_traceon; }
 
111911
 
 
111912
fi
 
111913
$at_failed && at_fn_log_failure
 
111914
$at_traceon; }
 
111915
 
 
111916
   { set +x
 
111917
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
111918
"
 
111919
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111920
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xenbr0
 
111921
 
 
111922
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111923
at_status=$? at_failed=false
 
111924
$at_check_filter
 
111925
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111926
echo >>"$at_stdout"; $as_echo "eth0
 
111927
" | \
 
111928
  $at_diff - "$at_stdout" || at_failed=:
 
111929
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111930
if $at_failed; then :
 
111931
  cp pid savepid
 
111932
   { set +x
 
111933
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
111934
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
111935
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
111936
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111937
at_status=$? at_failed=false
 
111938
$at_check_filter
 
111939
echo stderr:; cat "$at_stderr"
 
111940
echo stdout:; cat "$at_stdout"
 
111941
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111942
$at_failed && at_fn_log_failure
 
111943
$at_traceon; }
 
111944
 
 
111945
   { set +x
 
111946
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
111947
     # in the normal case.  POSIX doesn't require fractional times to
 
111948
     # work, so this might not work.
 
111949
     sleep 0.1
 
111950
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111951
     # Then wait up to 10 seconds.
 
111952
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111953
       sleep 1
 
111954
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
111955
     done
 
111956
     exit 1"
 
111957
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
111958
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
111959
     # in the normal case.  POSIX doesn't require fractional times to
 
111960
     # work, so this might not work.
 
111961
     sleep 0.1
 
111962
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
111963
     # Then wait up to 10 seconds.
 
111964
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
111965
       sleep 1
 
111966
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
111967
     done
 
111968
     exit 1
 
111969
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111970
at_status=$? at_failed=false
 
111971
$at_check_filter
 
111972
echo stderr:; cat "$at_stderr"
 
111973
echo stdout:; cat "$at_stdout"
 
111974
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
111975
if $at_failed; then :
 
111976
  kill `cat savepid`
 
111977
fi
 
111978
$at_failed && at_fn_log_failure
 
111979
$at_traceon; }
 
111980
 
 
111981
fi
 
111982
$at_failed && at_fn_log_failure
 
111983
$at_traceon; }
 
111984
 
 
111985
 
 
111986
      { set +x
 
111987
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
111988
"
 
111989
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
111990
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xenbr0
 
111991
 
 
111992
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
111993
at_status=$? at_failed=false
 
111994
$at_check_filter
 
111995
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
111996
echo >>"$at_stdout"; $as_echo "eth0
 
111997
" | \
 
111998
  $at_diff - "$at_stdout" || at_failed=:
 
111999
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112000
if $at_failed; then :
 
112001
  cp pid savepid
 
112002
   { set +x
 
112003
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112004
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112005
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112006
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112007
at_status=$? at_failed=false
 
112008
$at_check_filter
 
112009
echo stderr:; cat "$at_stderr"
 
112010
echo stdout:; cat "$at_stdout"
 
112011
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112012
$at_failed && at_fn_log_failure
 
112013
$at_traceon; }
 
112014
 
 
112015
   { set +x
 
112016
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112017
     # in the normal case.  POSIX doesn't require fractional times to
 
112018
     # work, so this might not work.
 
112019
     sleep 0.1
 
112020
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112021
     # Then wait up to 10 seconds.
 
112022
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112023
       sleep 1
 
112024
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112025
     done
 
112026
     exit 1"
 
112027
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112028
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112029
     # in the normal case.  POSIX doesn't require fractional times to
 
112030
     # work, so this might not work.
 
112031
     sleep 0.1
 
112032
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112033
     # Then wait up to 10 seconds.
 
112034
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112035
       sleep 1
 
112036
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112037
     done
 
112038
     exit 1
 
112039
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112040
at_status=$? at_failed=false
 
112041
$at_check_filter
 
112042
echo stderr:; cat "$at_stderr"
 
112043
echo stdout:; cat "$at_stdout"
 
112044
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112045
if $at_failed; then :
 
112046
  kill `cat savepid`
 
112047
fi
 
112048
$at_failed && at_fn_log_failure
 
112049
$at_traceon; }
 
112050
 
 
112051
fi
 
112052
$at_failed && at_fn_log_failure
 
112053
$at_traceon; }
 
112054
 
 
112055
   { set +x
 
112056
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
112057
"
 
112058
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112059
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xenbr0
 
112060
 
 
112061
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112062
at_status=$? at_failed=false
 
112063
$at_check_filter
 
112064
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xenbr0
 
112065
" | \
 
112066
  $at_diff - "$at_stderr" || at_failed=:
 
112067
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
112068
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112069
if $at_failed; then :
 
112070
  cp pid savepid
 
112071
   { set +x
 
112072
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112073
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112074
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112075
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112076
at_status=$? at_failed=false
 
112077
$at_check_filter
 
112078
echo stderr:; cat "$at_stderr"
 
112079
echo stdout:; cat "$at_stdout"
 
112080
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112081
$at_failed && at_fn_log_failure
 
112082
$at_traceon; }
 
112083
 
 
112084
   { set +x
 
112085
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112086
     # in the normal case.  POSIX doesn't require fractional times to
 
112087
     # work, so this might not work.
 
112088
     sleep 0.1
 
112089
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112090
     # Then wait up to 10 seconds.
 
112091
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112092
       sleep 1
 
112093
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112094
     done
 
112095
     exit 1"
 
112096
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112097
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112098
     # in the normal case.  POSIX doesn't require fractional times to
 
112099
     # work, so this might not work.
 
112100
     sleep 0.1
 
112101
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112102
     # Then wait up to 10 seconds.
 
112103
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112104
       sleep 1
 
112105
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112106
     done
 
112107
     exit 1
 
112108
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112109
at_status=$? at_failed=false
 
112110
$at_check_filter
 
112111
echo stderr:; cat "$at_stderr"
 
112112
echo stdout:; cat "$at_stdout"
 
112113
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112114
if $at_failed; then :
 
112115
  kill `cat savepid`
 
112116
fi
 
112117
$at_failed && at_fn_log_failure
 
112118
$at_traceon; }
 
112119
 
 
112120
fi
 
112121
$at_failed && at_fn_log_failure
 
112122
$at_traceon; }
 
112123
 
 
112124
   { set +x
 
112125
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
112126
"
 
112127
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112128
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0
 
112129
 
 
112130
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112131
at_status=$? at_failed=false
 
112132
$at_check_filter
 
112133
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
112134
echo >>"$at_stdout"; $as_echo "xenbr0
 
112135
" | \
 
112136
  $at_diff - "$at_stdout" || at_failed=:
 
112137
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112138
if $at_failed; then :
 
112139
  cp pid savepid
 
112140
   { set +x
 
112141
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112142
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112143
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112144
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112145
at_status=$? at_failed=false
 
112146
$at_check_filter
 
112147
echo stderr:; cat "$at_stderr"
 
112148
echo stdout:; cat "$at_stdout"
 
112149
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112150
$at_failed && at_fn_log_failure
 
112151
$at_traceon; }
 
112152
 
 
112153
   { set +x
 
112154
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112155
     # in the normal case.  POSIX doesn't require fractional times to
 
112156
     # work, so this might not work.
 
112157
     sleep 0.1
 
112158
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112159
     # Then wait up to 10 seconds.
 
112160
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112161
       sleep 1
 
112162
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112163
     done
 
112164
     exit 1"
 
112165
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112166
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112167
     # in the normal case.  POSIX doesn't require fractional times to
 
112168
     # work, so this might not work.
 
112169
     sleep 0.1
 
112170
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112171
     # Then wait up to 10 seconds.
 
112172
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112173
       sleep 1
 
112174
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112175
     done
 
112176
     exit 1
 
112177
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112178
at_status=$? at_failed=false
 
112179
$at_check_filter
 
112180
echo stderr:; cat "$at_stderr"
 
112181
echo stdout:; cat "$at_stdout"
 
112182
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112183
if $at_failed; then :
 
112184
  kill `cat savepid`
 
112185
fi
 
112186
$at_failed && at_fn_log_failure
 
112187
$at_traceon; }
 
112188
 
 
112189
fi
 
112190
$at_failed && at_fn_log_failure
 
112191
$at_traceon; }
 
112192
 
 
112193
{ set +x
 
112194
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
112195
"
 
112196
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112197
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xenbr0
 
112198
 
 
112199
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112200
at_status=$? at_failed=false
 
112201
$at_check_filter
 
112202
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
112203
echo >>"$at_stdout"; $as_echo "eth0
 
112204
" | \
 
112205
  $at_diff - "$at_stdout" || at_failed=:
 
112206
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112207
if $at_failed; then :
 
112208
  cp pid savepid
 
112209
   { set +x
 
112210
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112211
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112212
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112213
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112214
at_status=$? at_failed=false
 
112215
$at_check_filter
 
112216
echo stderr:; cat "$at_stderr"
 
112217
echo stdout:; cat "$at_stdout"
 
112218
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112219
$at_failed && at_fn_log_failure
 
112220
$at_traceon; }
 
112221
 
 
112222
   { set +x
 
112223
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112224
     # in the normal case.  POSIX doesn't require fractional times to
 
112225
     # work, so this might not work.
 
112226
     sleep 0.1
 
112227
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112228
     # Then wait up to 10 seconds.
 
112229
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112230
       sleep 1
 
112231
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112232
     done
 
112233
     exit 1"
 
112234
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112235
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112236
     # in the normal case.  POSIX doesn't require fractional times to
 
112237
     # work, so this might not work.
 
112238
     sleep 0.1
 
112239
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112240
     # Then wait up to 10 seconds.
 
112241
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112242
       sleep 1
 
112243
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112244
     done
 
112245
     exit 1
 
112246
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112247
at_status=$? at_failed=false
 
112248
$at_check_filter
 
112249
echo stderr:; cat "$at_stderr"
 
112250
echo stdout:; cat "$at_stdout"
 
112251
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112252
if $at_failed; then :
 
112253
  kill `cat savepid`
 
112254
fi
 
112255
$at_failed && at_fn_log_failure
 
112256
$at_traceon; }
 
112257
 
 
112258
fi
 
112259
$at_failed && at_fn_log_failure
 
112260
$at_traceon; }
 
112261
 
 
112262
   { set +x
 
112263
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
112264
"
 
112265
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112266
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xenbr0
 
112267
 
 
112268
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112269
at_status=$? at_failed=false
 
112270
$at_check_filter
 
112271
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xenbr0
 
112272
" | \
 
112273
  $at_diff - "$at_stderr" || at_failed=:
 
112274
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
112275
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112276
if $at_failed; then :
 
112277
  cp pid savepid
 
112278
   { set +x
 
112279
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112280
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112281
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112282
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112283
at_status=$? at_failed=false
 
112284
$at_check_filter
 
112285
echo stderr:; cat "$at_stderr"
 
112286
echo stdout:; cat "$at_stdout"
 
112287
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112288
$at_failed && at_fn_log_failure
 
112289
$at_traceon; }
 
112290
 
 
112291
   { set +x
 
112292
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112293
     # in the normal case.  POSIX doesn't require fractional times to
 
112294
     # work, so this might not work.
 
112295
     sleep 0.1
 
112296
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112297
     # Then wait up to 10 seconds.
 
112298
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112299
       sleep 1
 
112300
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112301
     done
 
112302
     exit 1"
 
112303
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112304
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112305
     # in the normal case.  POSIX doesn't require fractional times to
 
112306
     # work, so this might not work.
 
112307
     sleep 0.1
 
112308
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112309
     # Then wait up to 10 seconds.
 
112310
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112311
       sleep 1
 
112312
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112313
     done
 
112314
     exit 1
 
112315
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112316
at_status=$? at_failed=false
 
112317
$at_check_filter
 
112318
echo stderr:; cat "$at_stderr"
 
112319
echo stdout:; cat "$at_stdout"
 
112320
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112321
if $at_failed; then :
 
112322
  kill `cat savepid`
 
112323
fi
 
112324
$at_failed && at_fn_log_failure
 
112325
$at_traceon; }
 
112326
 
 
112327
fi
 
112328
$at_failed && at_fn_log_failure
 
112329
$at_traceon; }
 
112330
 
 
112331
   { set +x
 
112332
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
112333
"
 
112334
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112335
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
112336
 
 
112337
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112338
at_status=$? at_failed=false
 
112339
$at_check_filter
 
112340
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
112341
echo >>"$at_stdout"; $as_echo "xenbr0
 
112342
" | \
 
112343
  $at_diff - "$at_stdout" || at_failed=:
 
112344
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112345
if $at_failed; then :
 
112346
  cp pid savepid
 
112347
   { set +x
 
112348
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112349
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112350
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112351
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112352
at_status=$? at_failed=false
 
112353
$at_check_filter
 
112354
echo stderr:; cat "$at_stderr"
 
112355
echo stdout:; cat "$at_stdout"
 
112356
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112357
$at_failed && at_fn_log_failure
 
112358
$at_traceon; }
 
112359
 
 
112360
   { set +x
 
112361
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112362
     # in the normal case.  POSIX doesn't require fractional times to
 
112363
     # work, so this might not work.
 
112364
     sleep 0.1
 
112365
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112366
     # Then wait up to 10 seconds.
 
112367
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112368
       sleep 1
 
112369
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112370
     done
 
112371
     exit 1"
 
112372
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112373
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112374
     # in the normal case.  POSIX doesn't require fractional times to
 
112375
     # work, so this might not work.
 
112376
     sleep 0.1
 
112377
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112378
     # Then wait up to 10 seconds.
 
112379
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112380
       sleep 1
 
112381
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112382
     done
 
112383
     exit 1
 
112384
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112385
at_status=$? at_failed=false
 
112386
$at_check_filter
 
112387
echo stderr:; cat "$at_stderr"
 
112388
echo stdout:; cat "$at_stdout"
 
112389
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112390
if $at_failed; then :
 
112391
  kill `cat savepid`
 
112392
fi
 
112393
$at_failed && at_fn_log_failure
 
112394
$at_traceon; }
 
112395
 
 
112396
fi
 
112397
$at_failed && at_fn_log_failure
 
112398
$at_traceon; }
 
112399
 
 
112400
   { set +x
 
112401
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
112402
"
 
112403
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112404
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
112405
 
 
112406
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112407
at_status=$? at_failed=false
 
112408
$at_check_filter
 
112409
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
112410
echo >>"$at_stdout"; $as_echo "eth0.0
 
112411
" | \
 
112412
  $at_diff - "$at_stdout" || at_failed=:
 
112413
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112414
if $at_failed; then :
 
112415
  cp pid savepid
 
112416
   { set +x
 
112417
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112418
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112419
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112420
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112421
at_status=$? at_failed=false
 
112422
$at_check_filter
 
112423
echo stderr:; cat "$at_stderr"
 
112424
echo stdout:; cat "$at_stdout"
 
112425
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112426
$at_failed && at_fn_log_failure
 
112427
$at_traceon; }
 
112428
 
 
112429
   { set +x
 
112430
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112431
     # in the normal case.  POSIX doesn't require fractional times to
 
112432
     # work, so this might not work.
 
112433
     sleep 0.1
 
112434
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112435
     # Then wait up to 10 seconds.
 
112436
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112437
       sleep 1
 
112438
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112439
     done
 
112440
     exit 1"
 
112441
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112442
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112443
     # in the normal case.  POSIX doesn't require fractional times to
 
112444
     # work, so this might not work.
 
112445
     sleep 0.1
 
112446
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112447
     # Then wait up to 10 seconds.
 
112448
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112449
       sleep 1
 
112450
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112451
     done
 
112452
     exit 1
 
112453
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112454
at_status=$? at_failed=false
 
112455
$at_check_filter
 
112456
echo stderr:; cat "$at_stderr"
 
112457
echo stdout:; cat "$at_stdout"
 
112458
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112459
if $at_failed; then :
 
112460
  kill `cat savepid`
 
112461
fi
 
112462
$at_failed && at_fn_log_failure
 
112463
$at_traceon; }
 
112464
 
 
112465
fi
 
112466
$at_failed && at_fn_log_failure
 
112467
$at_traceon; }
 
112468
 
 
112469
 
 
112470
      { set +x
 
112471
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
112472
"
 
112473
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112474
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
112475
 
 
112476
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112477
at_status=$? at_failed=false
 
112478
$at_check_filter
 
112479
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
112480
echo >>"$at_stdout"; $as_echo "eth0.0
 
112481
" | \
 
112482
  $at_diff - "$at_stdout" || at_failed=:
 
112483
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112484
if $at_failed; then :
 
112485
  cp pid savepid
 
112486
   { set +x
 
112487
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112488
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112489
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112491
at_status=$? at_failed=false
 
112492
$at_check_filter
 
112493
echo stderr:; cat "$at_stderr"
 
112494
echo stdout:; cat "$at_stdout"
 
112495
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112496
$at_failed && at_fn_log_failure
 
112497
$at_traceon; }
 
112498
 
 
112499
   { set +x
 
112500
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112501
     # in the normal case.  POSIX doesn't require fractional times to
 
112502
     # work, so this might not work.
 
112503
     sleep 0.1
 
112504
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112505
     # Then wait up to 10 seconds.
 
112506
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112507
       sleep 1
 
112508
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112509
     done
 
112510
     exit 1"
 
112511
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112512
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112513
     # in the normal case.  POSIX doesn't require fractional times to
 
112514
     # work, so this might not work.
 
112515
     sleep 0.1
 
112516
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112517
     # Then wait up to 10 seconds.
 
112518
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112519
       sleep 1
 
112520
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112521
     done
 
112522
     exit 1
 
112523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112524
at_status=$? at_failed=false
 
112525
$at_check_filter
 
112526
echo stderr:; cat "$at_stderr"
 
112527
echo stdout:; cat "$at_stdout"
 
112528
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112529
if $at_failed; then :
 
112530
  kill `cat savepid`
 
112531
fi
 
112532
$at_failed && at_fn_log_failure
 
112533
$at_traceon; }
 
112534
 
 
112535
fi
 
112536
$at_failed && at_fn_log_failure
 
112537
$at_traceon; }
 
112538
 
 
112539
   { set +x
 
112540
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
112541
"
 
112542
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112543
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
112544
 
 
112545
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112546
at_status=$? at_failed=false
 
112547
$at_check_filter
 
112548
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xapi1
 
112549
" | \
 
112550
  $at_diff - "$at_stderr" || at_failed=:
 
112551
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
112552
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112553
if $at_failed; then :
 
112554
  cp pid savepid
 
112555
   { set +x
 
112556
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112557
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112558
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112559
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112560
at_status=$? at_failed=false
 
112561
$at_check_filter
 
112562
echo stderr:; cat "$at_stderr"
 
112563
echo stdout:; cat "$at_stdout"
 
112564
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112565
$at_failed && at_fn_log_failure
 
112566
$at_traceon; }
 
112567
 
 
112568
   { set +x
 
112569
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112570
     # in the normal case.  POSIX doesn't require fractional times to
 
112571
     # work, so this might not work.
 
112572
     sleep 0.1
 
112573
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112574
     # Then wait up to 10 seconds.
 
112575
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112576
       sleep 1
 
112577
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112578
     done
 
112579
     exit 1"
 
112580
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112581
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112582
     # in the normal case.  POSIX doesn't require fractional times to
 
112583
     # work, so this might not work.
 
112584
     sleep 0.1
 
112585
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112586
     # Then wait up to 10 seconds.
 
112587
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112588
       sleep 1
 
112589
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112590
     done
 
112591
     exit 1
 
112592
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112593
at_status=$? at_failed=false
 
112594
$at_check_filter
 
112595
echo stderr:; cat "$at_stderr"
 
112596
echo stdout:; cat "$at_stdout"
 
112597
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112598
if $at_failed; then :
 
112599
  kill `cat savepid`
 
112600
fi
 
112601
$at_failed && at_fn_log_failure
 
112602
$at_traceon; }
 
112603
 
 
112604
fi
 
112605
$at_failed && at_fn_log_failure
 
112606
$at_traceon; }
 
112607
 
 
112608
   { set +x
 
112609
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0.0
 
112610
"
 
112611
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112612
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br eth0.0
 
112613
 
 
112614
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112615
at_status=$? at_failed=false
 
112616
$at_check_filter
 
112617
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
112618
echo >>"$at_stdout"; $as_echo "xapi1
 
112619
" | \
 
112620
  $at_diff - "$at_stdout" || at_failed=:
 
112621
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112622
if $at_failed; then :
 
112623
  cp pid savepid
 
112624
   { set +x
 
112625
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112626
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112627
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112628
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112629
at_status=$? at_failed=false
 
112630
$at_check_filter
 
112631
echo stderr:; cat "$at_stderr"
 
112632
echo stdout:; cat "$at_stdout"
 
112633
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112634
$at_failed && at_fn_log_failure
 
112635
$at_traceon; }
 
112636
 
 
112637
   { set +x
 
112638
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112639
     # in the normal case.  POSIX doesn't require fractional times to
 
112640
     # work, so this might not work.
 
112641
     sleep 0.1
 
112642
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112643
     # Then wait up to 10 seconds.
 
112644
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112645
       sleep 1
 
112646
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112647
     done
 
112648
     exit 1"
 
112649
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112650
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112651
     # in the normal case.  POSIX doesn't require fractional times to
 
112652
     # work, so this might not work.
 
112653
     sleep 0.1
 
112654
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112655
     # Then wait up to 10 seconds.
 
112656
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112657
       sleep 1
 
112658
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112659
     done
 
112660
     exit 1
 
112661
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112662
at_status=$? at_failed=false
 
112663
$at_check_filter
 
112664
echo stderr:; cat "$at_stderr"
 
112665
echo stdout:; cat "$at_stdout"
 
112666
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112667
if $at_failed; then :
 
112668
  kill `cat savepid`
 
112669
fi
 
112670
$at_failed && at_fn_log_failure
 
112671
$at_traceon; }
 
112672
 
 
112673
fi
 
112674
$at_failed && at_fn_log_failure
 
112675
$at_traceon; }
 
112676
 
 
112677
{ set +x
 
112678
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
112679
"
 
112680
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112681
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
112682
 
 
112683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112684
at_status=$? at_failed=false
 
112685
$at_check_filter
 
112686
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
112687
echo >>"$at_stdout"; $as_echo "eth0.0
 
112688
" | \
 
112689
  $at_diff - "$at_stdout" || at_failed=:
 
112690
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112691
if $at_failed; then :
 
112692
  cp pid savepid
 
112693
   { set +x
 
112694
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112695
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112696
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112697
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112698
at_status=$? at_failed=false
 
112699
$at_check_filter
 
112700
echo stderr:; cat "$at_stderr"
 
112701
echo stdout:; cat "$at_stdout"
 
112702
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112703
$at_failed && at_fn_log_failure
 
112704
$at_traceon; }
 
112705
 
 
112706
   { set +x
 
112707
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112708
     # in the normal case.  POSIX doesn't require fractional times to
 
112709
     # work, so this might not work.
 
112710
     sleep 0.1
 
112711
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112712
     # Then wait up to 10 seconds.
 
112713
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112714
       sleep 1
 
112715
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112716
     done
 
112717
     exit 1"
 
112718
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112719
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112720
     # in the normal case.  POSIX doesn't require fractional times to
 
112721
     # work, so this might not work.
 
112722
     sleep 0.1
 
112723
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112724
     # Then wait up to 10 seconds.
 
112725
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112726
       sleep 1
 
112727
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112728
     done
 
112729
     exit 1
 
112730
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112731
at_status=$? at_failed=false
 
112732
$at_check_filter
 
112733
echo stderr:; cat "$at_stderr"
 
112734
echo stdout:; cat "$at_stdout"
 
112735
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112736
if $at_failed; then :
 
112737
  kill `cat savepid`
 
112738
fi
 
112739
$at_failed && at_fn_log_failure
 
112740
$at_traceon; }
 
112741
 
 
112742
fi
 
112743
$at_failed && at_fn_log_failure
 
112744
$at_traceon; }
 
112745
 
 
112746
   { set +x
 
112747
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
112748
"
 
112749
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112750
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
112751
 
 
112752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112753
at_status=$? at_failed=false
 
112754
$at_check_filter
 
112755
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xapi1
 
112756
" | \
 
112757
  $at_diff - "$at_stderr" || at_failed=:
 
112758
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
112759
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112760
if $at_failed; then :
 
112761
  cp pid savepid
 
112762
   { set +x
 
112763
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112764
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112765
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112766
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112767
at_status=$? at_failed=false
 
112768
$at_check_filter
 
112769
echo stderr:; cat "$at_stderr"
 
112770
echo stdout:; cat "$at_stdout"
 
112771
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112772
$at_failed && at_fn_log_failure
 
112773
$at_traceon; }
 
112774
 
 
112775
   { set +x
 
112776
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112777
     # in the normal case.  POSIX doesn't require fractional times to
 
112778
     # work, so this might not work.
 
112779
     sleep 0.1
 
112780
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112781
     # Then wait up to 10 seconds.
 
112782
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112783
       sleep 1
 
112784
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112785
     done
 
112786
     exit 1"
 
112787
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112788
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112789
     # in the normal case.  POSIX doesn't require fractional times to
 
112790
     # work, so this might not work.
 
112791
     sleep 0.1
 
112792
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112793
     # Then wait up to 10 seconds.
 
112794
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112795
       sleep 1
 
112796
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112797
     done
 
112798
     exit 1
 
112799
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112800
at_status=$? at_failed=false
 
112801
$at_check_filter
 
112802
echo stderr:; cat "$at_stderr"
 
112803
echo stdout:; cat "$at_stdout"
 
112804
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112805
if $at_failed; then :
 
112806
  kill `cat savepid`
 
112807
fi
 
112808
$at_failed && at_fn_log_failure
 
112809
$at_traceon; }
 
112810
 
 
112811
fi
 
112812
$at_failed && at_fn_log_failure
 
112813
$at_traceon; }
 
112814
 
 
112815
   { set +x
 
112816
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0.0
 
112817
"
 
112818
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:489"
 
112819
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0.0
 
112820
 
 
112821
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112822
at_status=$? at_failed=false
 
112823
$at_check_filter
 
112824
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
112825
echo >>"$at_stdout"; $as_echo "xapi1
 
112826
" | \
 
112827
  $at_diff - "$at_stdout" || at_failed=:
 
112828
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112829
if $at_failed; then :
 
112830
  cp pid savepid
 
112831
   { set +x
 
112832
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112833
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112834
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112835
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112836
at_status=$? at_failed=false
 
112837
$at_check_filter
 
112838
echo stderr:; cat "$at_stderr"
 
112839
echo stdout:; cat "$at_stdout"
 
112840
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112841
$at_failed && at_fn_log_failure
 
112842
$at_traceon; }
 
112843
 
 
112844
   { set +x
 
112845
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112846
     # in the normal case.  POSIX doesn't require fractional times to
 
112847
     # work, so this might not work.
 
112848
     sleep 0.1
 
112849
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112850
     # Then wait up to 10 seconds.
 
112851
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112852
       sleep 1
 
112853
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112854
     done
 
112855
     exit 1"
 
112856
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112857
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112858
     # in the normal case.  POSIX doesn't require fractional times to
 
112859
     # work, so this might not work.
 
112860
     sleep 0.1
 
112861
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112862
     # Then wait up to 10 seconds.
 
112863
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112864
       sleep 1
 
112865
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112866
     done
 
112867
     exit 1
 
112868
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112869
at_status=$? at_failed=false
 
112870
$at_check_filter
 
112871
echo stderr:; cat "$at_stderr"
 
112872
echo stdout:; cat "$at_stdout"
 
112873
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112874
if $at_failed; then :
 
112875
  kill `cat savepid`
 
112876
fi
 
112877
$at_failed && at_fn_log_failure
 
112878
$at_traceon; }
 
112879
 
 
112880
fi
 
112881
$at_failed && at_fn_log_failure
 
112882
$at_traceon; }
 
112883
 
 
112884
cp pid savepid
 
112885
   { set +x
 
112886
$as_echo "$at_srcdir/ovs-vsctl.at:489: ovs-appctl -t \$PWD/unixctl -e exit"
 
112887
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:489"
 
112888
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
112889
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112890
at_status=$? at_failed=false
 
112891
$at_check_filter
 
112892
echo stderr:; cat "$at_stderr"
 
112893
echo stdout:; cat "$at_stdout"
 
112894
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112895
$at_failed && at_fn_log_failure
 
112896
$at_traceon; }
 
112897
 
 
112898
   { set +x
 
112899
$as_echo "$at_srcdir/ovs-vsctl.at:489: # First try a quick sleep, so that the test completes very quickly
 
112900
     # in the normal case.  POSIX doesn't require fractional times to
 
112901
     # work, so this might not work.
 
112902
     sleep 0.1
 
112903
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112904
     # Then wait up to 10 seconds.
 
112905
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112906
       sleep 1
 
112907
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
112908
     done
 
112909
     exit 1"
 
112910
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:489"
 
112911
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
112912
     # in the normal case.  POSIX doesn't require fractional times to
 
112913
     # work, so this might not work.
 
112914
     sleep 0.1
 
112915
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
112916
     # Then wait up to 10 seconds.
 
112917
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
112918
       sleep 1
 
112919
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
112920
     done
 
112921
     exit 1
 
112922
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112923
at_status=$? at_failed=false
 
112924
$at_check_filter
 
112925
echo stderr:; cat "$at_stderr"
 
112926
echo stdout:; cat "$at_stdout"
 
112927
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:489"
 
112928
if $at_failed; then :
 
112929
  kill `cat savepid`
 
112930
fi
 
112931
$at_failed && at_fn_log_failure
 
112932
$at_traceon; }
 
112933
 
 
112934
  set +x
 
112935
  $at_times_p && times >"$at_times_file"
 
112936
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
112937
read at_status <"$at_status_file"
 
112938
#AT_STOP_963
 
112939
#AT_START_964
 
112940
at_fn_group_banner 964 'ovs-vsctl.at:501' \
 
112941
  "fake bridge on bond" "                            " 67
 
112942
at_xfail=no
 
112943
(
 
112944
  $as_echo "964. $at_setup_line: testing $at_desc ..."
 
112945
  $at_traceon
 
112946
 
 
112947
 
 
112948
{ set +x
 
112949
$as_echo "$at_srcdir/ovs-vsctl.at:503: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
112950
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:503"
 
112951
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
112952
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112953
at_status=$? at_failed=false
 
112954
$at_check_filter
 
112955
echo stderr:; cat "$at_stderr"
 
112956
echo stdout:; tee stdout <"$at_stdout"
 
112957
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:503"
 
112958
$at_failed && at_fn_log_failure
 
112959
$at_traceon; }
 
112960
 
 
112961
   { set +x
 
112962
$as_echo "$at_srcdir/ovs-vsctl.at:503: ovsdb-tool transact db \\
 
112963
        '[\"Open_vSwitch\",
 
112964
          {\"op\": \"insert\",
 
112965
           \"table\": \"Open_vSwitch\",
 
112966
           \"row\": {}}]'"
 
112967
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:503"
 
112968
( $at_check_trace; ovsdb-tool transact db \
 
112969
        '["Open_vSwitch",
 
112970
          {"op": "insert",
 
112971
           "table": "Open_vSwitch",
 
112972
           "row": {}}]'
 
112973
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112974
at_status=$? at_failed=false
 
112975
$at_check_filter
 
112976
echo stderr:; cat "$at_stderr"
 
112977
echo stdout:; cat "$at_stdout"
 
112978
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:503"
 
112979
$at_failed && at_fn_log_failure
 
112980
$at_traceon; }
 
112981
 
 
112982
   { set +x
 
112983
$as_echo "$at_srcdir/ovs-vsctl.at:503: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
112984
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:503"
 
112985
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
112986
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
112987
at_status=$? at_failed=false
 
112988
$at_check_filter
 
112989
echo stderr:; cat "$at_stderr"
 
112990
echo stdout:; cat "$at_stdout"
 
112991
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:503"
 
112992
$at_failed && at_fn_log_failure
 
112993
$at_traceon; }
 
112994
 
 
112995
{ set +x
 
112996
$as_echo "$at_srcdir/ovs-vsctl.at:504: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1
 
112997
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond xapi1 bond0 eth0 eth1
 
112998
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi2 xapi1 11
 
112999
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi2 bond0.11
 
113000
"
 
113001
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:504"
 
113002
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1
 
113003
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond xapi1 bond0 eth0 eth1
 
113004
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi2 xapi1 11
 
113005
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi2 bond0.11
 
113006
 
 
113007
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113008
at_status=$? at_failed=false
 
113009
$at_check_filter
 
113010
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113011
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
113012
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:504"
 
113013
if $at_failed; then :
 
113014
  cp pid savepid
 
113015
   { set +x
 
113016
$as_echo "$at_srcdir/ovs-vsctl.at:504: ovs-appctl -t \$PWD/unixctl -e exit"
 
113017
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:504"
 
113018
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113019
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113020
at_status=$? at_failed=false
 
113021
$at_check_filter
 
113022
echo stderr:; cat "$at_stderr"
 
113023
echo stdout:; cat "$at_stdout"
 
113024
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:504"
 
113025
$at_failed && at_fn_log_failure
 
113026
$at_traceon; }
 
113027
 
 
113028
   { set +x
 
113029
$as_echo "$at_srcdir/ovs-vsctl.at:504: # First try a quick sleep, so that the test completes very quickly
 
113030
     # in the normal case.  POSIX doesn't require fractional times to
 
113031
     # work, so this might not work.
 
113032
     sleep 0.1
 
113033
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113034
     # Then wait up to 10 seconds.
 
113035
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113036
       sleep 1
 
113037
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113038
     done
 
113039
     exit 1"
 
113040
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:504"
 
113041
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113042
     # in the normal case.  POSIX doesn't require fractional times to
 
113043
     # work, so this might not work.
 
113044
     sleep 0.1
 
113045
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113046
     # Then wait up to 10 seconds.
 
113047
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113048
       sleep 1
 
113049
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113050
     done
 
113051
     exit 1
 
113052
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113053
at_status=$? at_failed=false
 
113054
$at_check_filter
 
113055
echo stderr:; cat "$at_stderr"
 
113056
echo stdout:; cat "$at_stdout"
 
113057
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:504"
 
113058
if $at_failed; then :
 
113059
  kill `cat savepid`
 
113060
fi
 
113061
$at_failed && at_fn_log_failure
 
113062
$at_traceon; }
 
113063
 
 
113064
fi
 
113065
$at_failed && at_fn_log_failure
 
113066
$at_traceon; }
 
113067
 
 
113068
   { set +x
 
113069
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
113070
"
 
113071
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113072
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
113073
 
 
113074
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113075
at_status=$? at_failed=false
 
113076
$at_check_filter
 
113077
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113078
echo >>"$at_stdout"; $as_echo "xapi1
 
113079
xapi2
 
113080
" | \
 
113081
  $at_diff - "$at_stdout" || at_failed=:
 
113082
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113083
if $at_failed; then :
 
113084
  cp pid savepid
 
113085
   { set +x
 
113086
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113087
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113088
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113089
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113090
at_status=$? at_failed=false
 
113091
$at_check_filter
 
113092
echo stderr:; cat "$at_stderr"
 
113093
echo stdout:; cat "$at_stdout"
 
113094
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113095
$at_failed && at_fn_log_failure
 
113096
$at_traceon; }
 
113097
 
 
113098
   { set +x
 
113099
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113100
     # in the normal case.  POSIX doesn't require fractional times to
 
113101
     # work, so this might not work.
 
113102
     sleep 0.1
 
113103
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113104
     # Then wait up to 10 seconds.
 
113105
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113106
       sleep 1
 
113107
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113108
     done
 
113109
     exit 1"
 
113110
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113111
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113112
     # in the normal case.  POSIX doesn't require fractional times to
 
113113
     # work, so this might not work.
 
113114
     sleep 0.1
 
113115
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113116
     # Then wait up to 10 seconds.
 
113117
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113118
       sleep 1
 
113119
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113120
     done
 
113121
     exit 1
 
113122
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113123
at_status=$? at_failed=false
 
113124
$at_check_filter
 
113125
echo stderr:; cat "$at_stderr"
 
113126
echo stdout:; cat "$at_stdout"
 
113127
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113128
if $at_failed; then :
 
113129
  kill `cat savepid`
 
113130
fi
 
113131
$at_failed && at_fn_log_failure
 
113132
$at_traceon; }
 
113133
 
 
113134
fi
 
113135
$at_failed && at_fn_log_failure
 
113136
$at_traceon; }
 
113137
 
 
113138
 
 
113139
      { set +x
 
113140
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
113141
"
 
113142
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113143
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
113144
 
 
113145
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113146
at_status=$? at_failed=false
 
113147
$at_check_filter
 
113148
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113149
echo >>"$at_stdout"; $as_echo "xapi1\\nxapi2
 
113150
" | \
 
113151
  $at_diff - "$at_stdout" || at_failed=:
 
113152
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113153
if $at_failed; then :
 
113154
  cp pid savepid
 
113155
   { set +x
 
113156
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113157
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113158
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113159
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113160
at_status=$? at_failed=false
 
113161
$at_check_filter
 
113162
echo stderr:; cat "$at_stderr"
 
113163
echo stdout:; cat "$at_stdout"
 
113164
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113165
$at_failed && at_fn_log_failure
 
113166
$at_traceon; }
 
113167
 
 
113168
   { set +x
 
113169
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113170
     # in the normal case.  POSIX doesn't require fractional times to
 
113171
     # work, so this might not work.
 
113172
     sleep 0.1
 
113173
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113174
     # Then wait up to 10 seconds.
 
113175
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113176
       sleep 1
 
113177
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113178
     done
 
113179
     exit 1"
 
113180
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113181
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113182
     # in the normal case.  POSIX doesn't require fractional times to
 
113183
     # work, so this might not work.
 
113184
     sleep 0.1
 
113185
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113186
     # Then wait up to 10 seconds.
 
113187
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113188
       sleep 1
 
113189
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113190
     done
 
113191
     exit 1
 
113192
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113193
at_status=$? at_failed=false
 
113194
$at_check_filter
 
113195
echo stderr:; cat "$at_stderr"
 
113196
echo stdout:; cat "$at_stdout"
 
113197
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113198
if $at_failed; then :
 
113199
  kill `cat savepid`
 
113200
fi
 
113201
$at_failed && at_fn_log_failure
 
113202
$at_traceon; }
 
113203
 
 
113204
fi
 
113205
$at_failed && at_fn_log_failure
 
113206
$at_traceon; }
 
113207
 
 
113208
 
 
113209
         { set +x
 
113210
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
113211
"
 
113212
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113213
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
113214
 
 
113215
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113216
at_status=$? at_failed=false
 
113217
$at_check_filter
 
113218
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113219
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
113220
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113221
if $at_failed; then :
 
113222
  cp pid savepid
 
113223
   { set +x
 
113224
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113225
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113226
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113227
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113228
at_status=$? at_failed=false
 
113229
$at_check_filter
 
113230
echo stderr:; cat "$at_stderr"
 
113231
echo stdout:; cat "$at_stdout"
 
113232
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113233
$at_failed && at_fn_log_failure
 
113234
$at_traceon; }
 
113235
 
 
113236
   { set +x
 
113237
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113238
     # in the normal case.  POSIX doesn't require fractional times to
 
113239
     # work, so this might not work.
 
113240
     sleep 0.1
 
113241
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113242
     # Then wait up to 10 seconds.
 
113243
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113244
       sleep 1
 
113245
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113246
     done
 
113247
     exit 1"
 
113248
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113249
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113250
     # in the normal case.  POSIX doesn't require fractional times to
 
113251
     # work, so this might not work.
 
113252
     sleep 0.1
 
113253
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113254
     # Then wait up to 10 seconds.
 
113255
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113256
       sleep 1
 
113257
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113258
     done
 
113259
     exit 1
 
113260
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113261
at_status=$? at_failed=false
 
113262
$at_check_filter
 
113263
echo stderr:; cat "$at_stderr"
 
113264
echo stdout:; cat "$at_stdout"
 
113265
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113266
if $at_failed; then :
 
113267
  kill `cat savepid`
 
113268
fi
 
113269
$at_failed && at_fn_log_failure
 
113270
$at_traceon; }
 
113271
 
 
113272
fi
 
113273
$at_failed && at_fn_log_failure
 
113274
$at_traceon; }
 
113275
{ set +x
 
113276
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi2
 
113277
"
 
113278
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113279
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi2
 
113280
 
 
113281
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113282
at_status=$? at_failed=false
 
113283
$at_check_filter
 
113284
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113285
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
113286
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113287
if $at_failed; then :
 
113288
  cp pid savepid
 
113289
   { set +x
 
113290
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113291
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113292
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113293
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113294
at_status=$? at_failed=false
 
113295
$at_check_filter
 
113296
echo stderr:; cat "$at_stderr"
 
113297
echo stdout:; cat "$at_stdout"
 
113298
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113299
$at_failed && at_fn_log_failure
 
113300
$at_traceon; }
 
113301
 
 
113302
   { set +x
 
113303
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113304
     # in the normal case.  POSIX doesn't require fractional times to
 
113305
     # work, so this might not work.
 
113306
     sleep 0.1
 
113307
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113308
     # Then wait up to 10 seconds.
 
113309
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113310
       sleep 1
 
113311
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113312
     done
 
113313
     exit 1"
 
113314
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113315
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113316
     # in the normal case.  POSIX doesn't require fractional times to
 
113317
     # work, so this might not work.
 
113318
     sleep 0.1
 
113319
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113320
     # Then wait up to 10 seconds.
 
113321
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113322
       sleep 1
 
113323
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113324
     done
 
113325
     exit 1
 
113326
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113327
at_status=$? at_failed=false
 
113328
$at_check_filter
 
113329
echo stderr:; cat "$at_stderr"
 
113330
echo stdout:; cat "$at_stdout"
 
113331
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113332
if $at_failed; then :
 
113333
  kill `cat savepid`
 
113334
fi
 
113335
$at_failed && at_fn_log_failure
 
113336
$at_traceon; }
 
113337
 
 
113338
fi
 
113339
$at_failed && at_fn_log_failure
 
113340
$at_traceon; }
 
113341
 
 
113342
   { set +x
 
113343
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
113344
"
 
113345
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113346
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
113347
 
 
113348
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113349
at_status=$? at_failed=false
 
113350
$at_check_filter
 
113351
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113352
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
113353
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113354
if $at_failed; then :
 
113355
  cp pid savepid
 
113356
   { set +x
 
113357
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113358
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113359
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113360
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113361
at_status=$? at_failed=false
 
113362
$at_check_filter
 
113363
echo stderr:; cat "$at_stderr"
 
113364
echo stdout:; cat "$at_stdout"
 
113365
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113366
$at_failed && at_fn_log_failure
 
113367
$at_traceon; }
 
113368
 
 
113369
   { set +x
 
113370
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113371
     # in the normal case.  POSIX doesn't require fractional times to
 
113372
     # work, so this might not work.
 
113373
     sleep 0.1
 
113374
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113375
     # Then wait up to 10 seconds.
 
113376
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113377
       sleep 1
 
113378
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113379
     done
 
113380
     exit 1"
 
113381
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113382
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113383
     # in the normal case.  POSIX doesn't require fractional times to
 
113384
     # work, so this might not work.
 
113385
     sleep 0.1
 
113386
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113387
     # Then wait up to 10 seconds.
 
113388
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113389
       sleep 1
 
113390
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113391
     done
 
113392
     exit 1
 
113393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113394
at_status=$? at_failed=false
 
113395
$at_check_filter
 
113396
echo stderr:; cat "$at_stderr"
 
113397
echo stdout:; cat "$at_stdout"
 
113398
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113399
if $at_failed; then :
 
113400
  kill `cat savepid`
 
113401
fi
 
113402
$at_failed && at_fn_log_failure
 
113403
$at_traceon; }
 
113404
 
 
113405
fi
 
113406
$at_failed && at_fn_log_failure
 
113407
$at_traceon; }
 
113408
 
 
113409
 
 
113410
      { set +x
 
113411
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
113412
"
 
113413
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113414
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
113415
 
 
113416
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113417
at_status=$? at_failed=false
 
113418
$at_check_filter
 
113419
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113420
echo >>"$at_stdout"; $as_echo "xapi1
 
113421
" | \
 
113422
  $at_diff - "$at_stdout" || at_failed=:
 
113423
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113424
if $at_failed; then :
 
113425
  cp pid savepid
 
113426
   { set +x
 
113427
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113428
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113429
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113430
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113431
at_status=$? at_failed=false
 
113432
$at_check_filter
 
113433
echo stderr:; cat "$at_stderr"
 
113434
echo stdout:; cat "$at_stdout"
 
113435
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113436
$at_failed && at_fn_log_failure
 
113437
$at_traceon; }
 
113438
 
 
113439
   { set +x
 
113440
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113441
     # in the normal case.  POSIX doesn't require fractional times to
 
113442
     # work, so this might not work.
 
113443
     sleep 0.1
 
113444
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113445
     # Then wait up to 10 seconds.
 
113446
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113447
       sleep 1
 
113448
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113449
     done
 
113450
     exit 1"
 
113451
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113452
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113453
     # in the normal case.  POSIX doesn't require fractional times to
 
113454
     # work, so this might not work.
 
113455
     sleep 0.1
 
113456
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113457
     # Then wait up to 10 seconds.
 
113458
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113459
       sleep 1
 
113460
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113461
     done
 
113462
     exit 1
 
113463
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113464
at_status=$? at_failed=false
 
113465
$at_check_filter
 
113466
echo stderr:; cat "$at_stderr"
 
113467
echo stdout:; cat "$at_stdout"
 
113468
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113469
if $at_failed; then :
 
113470
  kill `cat savepid`
 
113471
fi
 
113472
$at_failed && at_fn_log_failure
 
113473
$at_traceon; }
 
113474
 
 
113475
fi
 
113476
$at_failed && at_fn_log_failure
 
113477
$at_traceon; }
 
113478
 
 
113479
 
 
113480
   # Check br-to-vlan, without --oneline.
 
113481
   { set +x
 
113482
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
113483
"
 
113484
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113485
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
113486
 
 
113487
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113488
at_status=$? at_failed=false
 
113489
$at_check_filter
 
113490
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113491
echo >>"$at_stdout"; $as_echo "0
 
113492
" | \
 
113493
  $at_diff - "$at_stdout" || at_failed=:
 
113494
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113495
if $at_failed; then :
 
113496
  cp pid savepid
 
113497
   { set +x
 
113498
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113499
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113500
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113501
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113502
at_status=$? at_failed=false
 
113503
$at_check_filter
 
113504
echo stderr:; cat "$at_stderr"
 
113505
echo stdout:; cat "$at_stdout"
 
113506
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113507
$at_failed && at_fn_log_failure
 
113508
$at_traceon; }
 
113509
 
 
113510
   { set +x
 
113511
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113512
     # in the normal case.  POSIX doesn't require fractional times to
 
113513
     # work, so this might not work.
 
113514
     sleep 0.1
 
113515
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113516
     # Then wait up to 10 seconds.
 
113517
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113518
       sleep 1
 
113519
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113520
     done
 
113521
     exit 1"
 
113522
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113523
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113524
     # in the normal case.  POSIX doesn't require fractional times to
 
113525
     # work, so this might not work.
 
113526
     sleep 0.1
 
113527
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113528
     # Then wait up to 10 seconds.
 
113529
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113530
       sleep 1
 
113531
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113532
     done
 
113533
     exit 1
 
113534
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113535
at_status=$? at_failed=false
 
113536
$at_check_filter
 
113537
echo stderr:; cat "$at_stderr"
 
113538
echo stdout:; cat "$at_stdout"
 
113539
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113540
if $at_failed; then :
 
113541
  kill `cat savepid`
 
113542
fi
 
113543
$at_failed && at_fn_log_failure
 
113544
$at_traceon; }
 
113545
 
 
113546
fi
 
113547
$at_failed && at_fn_log_failure
 
113548
$at_traceon; }
 
113549
 
 
113550
   # Check br-to-vlan, with --oneline.
 
113551
   # (This particular test is interesting with --oneline because it returns
 
113552
   # an integer instead of a string and that can cause type mismatches inside
 
113553
   # python if not done carefully.)
 
113554
   { set +x
 
113555
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
113556
"
 
113557
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113558
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
113559
 
 
113560
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113561
at_status=$? at_failed=false
 
113562
$at_check_filter
 
113563
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113564
echo >>"$at_stdout"; $as_echo "0
 
113565
" | \
 
113566
  $at_diff - "$at_stdout" || at_failed=:
 
113567
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113568
if $at_failed; then :
 
113569
  cp pid savepid
 
113570
   { set +x
 
113571
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113572
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113573
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113574
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113575
at_status=$? at_failed=false
 
113576
$at_check_filter
 
113577
echo stderr:; cat "$at_stderr"
 
113578
echo stdout:; cat "$at_stdout"
 
113579
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113580
$at_failed && at_fn_log_failure
 
113581
$at_traceon; }
 
113582
 
 
113583
   { set +x
 
113584
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113585
     # in the normal case.  POSIX doesn't require fractional times to
 
113586
     # work, so this might not work.
 
113587
     sleep 0.1
 
113588
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113589
     # Then wait up to 10 seconds.
 
113590
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113591
       sleep 1
 
113592
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113593
     done
 
113594
     exit 1"
 
113595
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113596
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113597
     # in the normal case.  POSIX doesn't require fractional times to
 
113598
     # work, so this might not work.
 
113599
     sleep 0.1
 
113600
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113601
     # Then wait up to 10 seconds.
 
113602
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113603
       sleep 1
 
113604
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113605
     done
 
113606
     exit 1
 
113607
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113608
at_status=$? at_failed=false
 
113609
$at_check_filter
 
113610
echo stderr:; cat "$at_stderr"
 
113611
echo stdout:; cat "$at_stdout"
 
113612
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113613
if $at_failed; then :
 
113614
  kill `cat savepid`
 
113615
fi
 
113616
$at_failed && at_fn_log_failure
 
113617
$at_traceon; }
 
113618
 
 
113619
fi
 
113620
$at_failed && at_fn_log_failure
 
113621
$at_traceon; }
 
113622
 
 
113623
 
 
113624
   # Check multiple queries in a single run.
 
113625
   { set +x
 
113626
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1"
 
113627
at_fn_check_prepare_trace "ovs-vsctl.at:505"
 
113628
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1
 
113629
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113630
at_status=$? at_failed=false
 
113631
$at_check_filter
 
113632
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113633
echo >>"$at_stdout"; $as_echo "xapi1
 
113634
0
 
113635
" | \
 
113636
  $at_diff - "$at_stdout" || at_failed=:
 
113637
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113638
if $at_failed; then :
 
113639
  cp pid savepid
 
113640
   { set +x
 
113641
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113642
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113643
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113644
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113645
at_status=$? at_failed=false
 
113646
$at_check_filter
 
113647
echo stderr:; cat "$at_stderr"
 
113648
echo stdout:; cat "$at_stdout"
 
113649
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113650
$at_failed && at_fn_log_failure
 
113651
$at_traceon; }
 
113652
 
 
113653
   { set +x
 
113654
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113655
     # in the normal case.  POSIX doesn't require fractional times to
 
113656
     # work, so this might not work.
 
113657
     sleep 0.1
 
113658
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113659
     # Then wait up to 10 seconds.
 
113660
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113661
       sleep 1
 
113662
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113663
     done
 
113664
     exit 1"
 
113665
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113666
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113667
     # in the normal case.  POSIX doesn't require fractional times to
 
113668
     # work, so this might not work.
 
113669
     sleep 0.1
 
113670
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113671
     # Then wait up to 10 seconds.
 
113672
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113673
       sleep 1
 
113674
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113675
     done
 
113676
     exit 1
 
113677
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113678
at_status=$? at_failed=false
 
113679
$at_check_filter
 
113680
echo stderr:; cat "$at_stderr"
 
113681
echo stdout:; cat "$at_stdout"
 
113682
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113683
if $at_failed; then :
 
113684
  kill `cat savepid`
 
113685
fi
 
113686
$at_failed && at_fn_log_failure
 
113687
$at_traceon; }
 
113688
 
 
113689
fi
 
113690
$at_failed && at_fn_log_failure
 
113691
$at_traceon; }
 
113692
{ set +x
 
113693
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi2
 
113694
"
 
113695
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113696
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi2
 
113697
 
 
113698
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113699
at_status=$? at_failed=false
 
113700
$at_check_filter
 
113701
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113702
echo >>"$at_stdout"; $as_echo "xapi1
 
113703
" | \
 
113704
  $at_diff - "$at_stdout" || at_failed=:
 
113705
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113706
if $at_failed; then :
 
113707
  cp pid savepid
 
113708
   { set +x
 
113709
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113710
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113711
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113712
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113713
at_status=$? at_failed=false
 
113714
$at_check_filter
 
113715
echo stderr:; cat "$at_stderr"
 
113716
echo stdout:; cat "$at_stdout"
 
113717
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113718
$at_failed && at_fn_log_failure
 
113719
$at_traceon; }
 
113720
 
 
113721
   { set +x
 
113722
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113723
     # in the normal case.  POSIX doesn't require fractional times to
 
113724
     # work, so this might not work.
 
113725
     sleep 0.1
 
113726
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113727
     # Then wait up to 10 seconds.
 
113728
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113729
       sleep 1
 
113730
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113731
     done
 
113732
     exit 1"
 
113733
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113734
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113735
     # in the normal case.  POSIX doesn't require fractional times to
 
113736
     # work, so this might not work.
 
113737
     sleep 0.1
 
113738
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113739
     # Then wait up to 10 seconds.
 
113740
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113741
       sleep 1
 
113742
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113743
     done
 
113744
     exit 1
 
113745
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113746
at_status=$? at_failed=false
 
113747
$at_check_filter
 
113748
echo stderr:; cat "$at_stderr"
 
113749
echo stdout:; cat "$at_stdout"
 
113750
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113751
if $at_failed; then :
 
113752
  kill `cat savepid`
 
113753
fi
 
113754
$at_failed && at_fn_log_failure
 
113755
$at_traceon; }
 
113756
 
 
113757
fi
 
113758
$at_failed && at_fn_log_failure
 
113759
$at_traceon; }
 
113760
 
 
113761
 
 
113762
   # Check br-to-vlan, without --oneline.
 
113763
   { set +x
 
113764
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi2
 
113765
"
 
113766
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113767
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi2
 
113768
 
 
113769
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113770
at_status=$? at_failed=false
 
113771
$at_check_filter
 
113772
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113773
echo >>"$at_stdout"; $as_echo "11
 
113774
" | \
 
113775
  $at_diff - "$at_stdout" || at_failed=:
 
113776
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113777
if $at_failed; then :
 
113778
  cp pid savepid
 
113779
   { set +x
 
113780
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113781
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113782
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113783
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113784
at_status=$? at_failed=false
 
113785
$at_check_filter
 
113786
echo stderr:; cat "$at_stderr"
 
113787
echo stdout:; cat "$at_stdout"
 
113788
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113789
$at_failed && at_fn_log_failure
 
113790
$at_traceon; }
 
113791
 
 
113792
   { set +x
 
113793
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113794
     # in the normal case.  POSIX doesn't require fractional times to
 
113795
     # work, so this might not work.
 
113796
     sleep 0.1
 
113797
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113798
     # Then wait up to 10 seconds.
 
113799
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113800
       sleep 1
 
113801
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113802
     done
 
113803
     exit 1"
 
113804
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113805
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113806
     # in the normal case.  POSIX doesn't require fractional times to
 
113807
     # work, so this might not work.
 
113808
     sleep 0.1
 
113809
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113810
     # Then wait up to 10 seconds.
 
113811
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113812
       sleep 1
 
113813
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113814
     done
 
113815
     exit 1
 
113816
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113817
at_status=$? at_failed=false
 
113818
$at_check_filter
 
113819
echo stderr:; cat "$at_stderr"
 
113820
echo stdout:; cat "$at_stdout"
 
113821
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113822
if $at_failed; then :
 
113823
  kill `cat savepid`
 
113824
fi
 
113825
$at_failed && at_fn_log_failure
 
113826
$at_traceon; }
 
113827
 
 
113828
fi
 
113829
$at_failed && at_fn_log_failure
 
113830
$at_traceon; }
 
113831
 
 
113832
   # Check br-to-vlan, with --oneline.
 
113833
   # (This particular test is interesting with --oneline because it returns
 
113834
   # an integer instead of a string and that can cause type mismatches inside
 
113835
   # python if not done carefully.)
 
113836
   { set +x
 
113837
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi2
 
113838
"
 
113839
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:505"
 
113840
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi2
 
113841
 
 
113842
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113843
at_status=$? at_failed=false
 
113844
$at_check_filter
 
113845
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113846
echo >>"$at_stdout"; $as_echo "11
 
113847
" | \
 
113848
  $at_diff - "$at_stdout" || at_failed=:
 
113849
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113850
if $at_failed; then :
 
113851
  cp pid savepid
 
113852
   { set +x
 
113853
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113854
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113855
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113856
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113857
at_status=$? at_failed=false
 
113858
$at_check_filter
 
113859
echo stderr:; cat "$at_stderr"
 
113860
echo stdout:; cat "$at_stdout"
 
113861
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113862
$at_failed && at_fn_log_failure
 
113863
$at_traceon; }
 
113864
 
 
113865
   { set +x
 
113866
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113867
     # in the normal case.  POSIX doesn't require fractional times to
 
113868
     # work, so this might not work.
 
113869
     sleep 0.1
 
113870
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113871
     # Then wait up to 10 seconds.
 
113872
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113873
       sleep 1
 
113874
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113875
     done
 
113876
     exit 1"
 
113877
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113878
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113879
     # in the normal case.  POSIX doesn't require fractional times to
 
113880
     # work, so this might not work.
 
113881
     sleep 0.1
 
113882
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113883
     # Then wait up to 10 seconds.
 
113884
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113885
       sleep 1
 
113886
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113887
     done
 
113888
     exit 1
 
113889
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113890
at_status=$? at_failed=false
 
113891
$at_check_filter
 
113892
echo stderr:; cat "$at_stderr"
 
113893
echo stdout:; cat "$at_stdout"
 
113894
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113895
if $at_failed; then :
 
113896
  kill `cat savepid`
 
113897
fi
 
113898
$at_failed && at_fn_log_failure
 
113899
$at_traceon; }
 
113900
 
 
113901
fi
 
113902
$at_failed && at_fn_log_failure
 
113903
$at_traceon; }
 
113904
 
 
113905
 
 
113906
   # Check multiple queries in a single run.
 
113907
   { set +x
 
113908
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi2 -- br-to-vlan xapi2"
 
113909
at_fn_check_prepare_trace "ovs-vsctl.at:505"
 
113910
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi2 -- br-to-vlan xapi2
 
113911
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113912
at_status=$? at_failed=false
 
113913
$at_check_filter
 
113914
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113915
echo >>"$at_stdout"; $as_echo "xapi1
 
113916
11
 
113917
" | \
 
113918
  $at_diff - "$at_stdout" || at_failed=:
 
113919
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113920
if $at_failed; then :
 
113921
  cp pid savepid
 
113922
   { set +x
 
113923
$as_echo "$at_srcdir/ovs-vsctl.at:505: ovs-appctl -t \$PWD/unixctl -e exit"
 
113924
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:505"
 
113925
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113926
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113927
at_status=$? at_failed=false
 
113928
$at_check_filter
 
113929
echo stderr:; cat "$at_stderr"
 
113930
echo stdout:; cat "$at_stdout"
 
113931
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113932
$at_failed && at_fn_log_failure
 
113933
$at_traceon; }
 
113934
 
 
113935
   { set +x
 
113936
$as_echo "$at_srcdir/ovs-vsctl.at:505: # First try a quick sleep, so that the test completes very quickly
 
113937
     # in the normal case.  POSIX doesn't require fractional times to
 
113938
     # work, so this might not work.
 
113939
     sleep 0.1
 
113940
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113941
     # Then wait up to 10 seconds.
 
113942
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113943
       sleep 1
 
113944
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
113945
     done
 
113946
     exit 1"
 
113947
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:505"
 
113948
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
113949
     # in the normal case.  POSIX doesn't require fractional times to
 
113950
     # work, so this might not work.
 
113951
     sleep 0.1
 
113952
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
113953
     # Then wait up to 10 seconds.
 
113954
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
113955
       sleep 1
 
113956
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
113957
     done
 
113958
     exit 1
 
113959
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113960
at_status=$? at_failed=false
 
113961
$at_check_filter
 
113962
echo stderr:; cat "$at_stderr"
 
113963
echo stdout:; cat "$at_stdout"
 
113964
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:505"
 
113965
if $at_failed; then :
 
113966
  kill `cat savepid`
 
113967
fi
 
113968
$at_failed && at_fn_log_failure
 
113969
$at_traceon; }
 
113970
 
 
113971
fi
 
113972
$at_failed && at_fn_log_failure
 
113973
$at_traceon; }
 
113974
 
 
113975
   { set +x
 
113976
$as_echo "$at_srcdir/ovs-vsctl.at:506: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
113977
"
 
113978
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:506"
 
113979
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
113980
 
 
113981
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113982
at_status=$? at_failed=false
 
113983
$at_check_filter
 
113984
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
113985
echo >>"$at_stdout"; $as_echo "bond0
 
113986
" | \
 
113987
  $at_diff - "$at_stdout" || at_failed=:
 
113988
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
113989
if $at_failed; then :
 
113990
  cp pid savepid
 
113991
   { set +x
 
113992
$as_echo "$at_srcdir/ovs-vsctl.at:506: ovs-appctl -t \$PWD/unixctl -e exit"
 
113993
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:506"
 
113994
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
113995
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
113996
at_status=$? at_failed=false
 
113997
$at_check_filter
 
113998
echo stderr:; cat "$at_stderr"
 
113999
echo stdout:; cat "$at_stdout"
 
114000
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114001
$at_failed && at_fn_log_failure
 
114002
$at_traceon; }
 
114003
 
 
114004
   { set +x
 
114005
$as_echo "$at_srcdir/ovs-vsctl.at:506: # First try a quick sleep, so that the test completes very quickly
 
114006
     # in the normal case.  POSIX doesn't require fractional times to
 
114007
     # work, so this might not work.
 
114008
     sleep 0.1
 
114009
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114010
     # Then wait up to 10 seconds.
 
114011
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114012
       sleep 1
 
114013
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114014
     done
 
114015
     exit 1"
 
114016
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:506"
 
114017
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114018
     # in the normal case.  POSIX doesn't require fractional times to
 
114019
     # work, so this might not work.
 
114020
     sleep 0.1
 
114021
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114022
     # Then wait up to 10 seconds.
 
114023
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114024
       sleep 1
 
114025
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114026
     done
 
114027
     exit 1
 
114028
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114029
at_status=$? at_failed=false
 
114030
$at_check_filter
 
114031
echo stderr:; cat "$at_stderr"
 
114032
echo stdout:; cat "$at_stdout"
 
114033
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114034
if $at_failed; then :
 
114035
  kill `cat savepid`
 
114036
fi
 
114037
$at_failed && at_fn_log_failure
 
114038
$at_traceon; }
 
114039
 
 
114040
fi
 
114041
$at_failed && at_fn_log_failure
 
114042
$at_traceon; }
 
114043
 
 
114044
 
 
114045
      { set +x
 
114046
$as_echo "$at_srcdir/ovs-vsctl.at:506: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
114047
"
 
114048
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:506"
 
114049
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
114050
 
 
114051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114052
at_status=$? at_failed=false
 
114053
$at_check_filter
 
114054
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114055
echo >>"$at_stdout"; $as_echo "bond0
 
114056
" | \
 
114057
  $at_diff - "$at_stdout" || at_failed=:
 
114058
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114059
if $at_failed; then :
 
114060
  cp pid savepid
 
114061
   { set +x
 
114062
$as_echo "$at_srcdir/ovs-vsctl.at:506: ovs-appctl -t \$PWD/unixctl -e exit"
 
114063
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:506"
 
114064
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114065
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114066
at_status=$? at_failed=false
 
114067
$at_check_filter
 
114068
echo stderr:; cat "$at_stderr"
 
114069
echo stdout:; cat "$at_stdout"
 
114070
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114071
$at_failed && at_fn_log_failure
 
114072
$at_traceon; }
 
114073
 
 
114074
   { set +x
 
114075
$as_echo "$at_srcdir/ovs-vsctl.at:506: # First try a quick sleep, so that the test completes very quickly
 
114076
     # in the normal case.  POSIX doesn't require fractional times to
 
114077
     # work, so this might not work.
 
114078
     sleep 0.1
 
114079
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114080
     # Then wait up to 10 seconds.
 
114081
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114082
       sleep 1
 
114083
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114084
     done
 
114085
     exit 1"
 
114086
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:506"
 
114087
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114088
     # in the normal case.  POSIX doesn't require fractional times to
 
114089
     # work, so this might not work.
 
114090
     sleep 0.1
 
114091
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114092
     # Then wait up to 10 seconds.
 
114093
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114094
       sleep 1
 
114095
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114096
     done
 
114097
     exit 1
 
114098
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114099
at_status=$? at_failed=false
 
114100
$at_check_filter
 
114101
echo stderr:; cat "$at_stderr"
 
114102
echo stdout:; cat "$at_stdout"
 
114103
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114104
if $at_failed; then :
 
114105
  kill `cat savepid`
 
114106
fi
 
114107
$at_failed && at_fn_log_failure
 
114108
$at_traceon; }
 
114109
 
 
114110
fi
 
114111
$at_failed && at_fn_log_failure
 
114112
$at_traceon; }
 
114113
 
 
114114
   { set +x
 
114115
$as_echo "$at_srcdir/ovs-vsctl.at:506: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
114116
"
 
114117
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:506"
 
114118
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
114119
 
 
114120
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114121
at_status=$? at_failed=false
 
114122
$at_check_filter
 
114123
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xapi1
 
114124
" | \
 
114125
  $at_diff - "$at_stderr" || at_failed=:
 
114126
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
114127
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114128
if $at_failed; then :
 
114129
  cp pid savepid
 
114130
   { set +x
 
114131
$as_echo "$at_srcdir/ovs-vsctl.at:506: ovs-appctl -t \$PWD/unixctl -e exit"
 
114132
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:506"
 
114133
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114134
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114135
at_status=$? at_failed=false
 
114136
$at_check_filter
 
114137
echo stderr:; cat "$at_stderr"
 
114138
echo stdout:; cat "$at_stdout"
 
114139
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114140
$at_failed && at_fn_log_failure
 
114141
$at_traceon; }
 
114142
 
 
114143
   { set +x
 
114144
$as_echo "$at_srcdir/ovs-vsctl.at:506: # First try a quick sleep, so that the test completes very quickly
 
114145
     # in the normal case.  POSIX doesn't require fractional times to
 
114146
     # work, so this might not work.
 
114147
     sleep 0.1
 
114148
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114149
     # Then wait up to 10 seconds.
 
114150
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114151
       sleep 1
 
114152
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114153
     done
 
114154
     exit 1"
 
114155
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:506"
 
114156
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114157
     # in the normal case.  POSIX doesn't require fractional times to
 
114158
     # work, so this might not work.
 
114159
     sleep 0.1
 
114160
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114161
     # Then wait up to 10 seconds.
 
114162
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114163
       sleep 1
 
114164
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114165
     done
 
114166
     exit 1
 
114167
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114168
at_status=$? at_failed=false
 
114169
$at_check_filter
 
114170
echo stderr:; cat "$at_stderr"
 
114171
echo stdout:; cat "$at_stdout"
 
114172
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114173
if $at_failed; then :
 
114174
  kill `cat savepid`
 
114175
fi
 
114176
$at_failed && at_fn_log_failure
 
114177
$at_traceon; }
 
114178
 
 
114179
fi
 
114180
$at_failed && at_fn_log_failure
 
114181
$at_traceon; }
 
114182
 
 
114183
   { set +x
 
114184
$as_echo "$at_srcdir/ovs-vsctl.at:506: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0
 
114185
"
 
114186
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:506"
 
114187
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0
 
114188
 
 
114189
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114190
at_status=$? at_failed=false
 
114191
$at_check_filter
 
114192
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114193
echo >>"$at_stdout"; $as_echo "xapi1
 
114194
" | \
 
114195
  $at_diff - "$at_stdout" || at_failed=:
 
114196
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114197
if $at_failed; then :
 
114198
  cp pid savepid
 
114199
   { set +x
 
114200
$as_echo "$at_srcdir/ovs-vsctl.at:506: ovs-appctl -t \$PWD/unixctl -e exit"
 
114201
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:506"
 
114202
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114203
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114204
at_status=$? at_failed=false
 
114205
$at_check_filter
 
114206
echo stderr:; cat "$at_stderr"
 
114207
echo stdout:; cat "$at_stdout"
 
114208
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114209
$at_failed && at_fn_log_failure
 
114210
$at_traceon; }
 
114211
 
 
114212
   { set +x
 
114213
$as_echo "$at_srcdir/ovs-vsctl.at:506: # First try a quick sleep, so that the test completes very quickly
 
114214
     # in the normal case.  POSIX doesn't require fractional times to
 
114215
     # work, so this might not work.
 
114216
     sleep 0.1
 
114217
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114218
     # Then wait up to 10 seconds.
 
114219
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114220
       sleep 1
 
114221
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114222
     done
 
114223
     exit 1"
 
114224
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:506"
 
114225
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114226
     # in the normal case.  POSIX doesn't require fractional times to
 
114227
     # work, so this might not work.
 
114228
     sleep 0.1
 
114229
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114230
     # Then wait up to 10 seconds.
 
114231
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114232
       sleep 1
 
114233
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114234
     done
 
114235
     exit 1
 
114236
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114237
at_status=$? at_failed=false
 
114238
$at_check_filter
 
114239
echo stderr:; cat "$at_stderr"
 
114240
echo stdout:; cat "$at_stdout"
 
114241
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:506"
 
114242
if $at_failed; then :
 
114243
  kill `cat savepid`
 
114244
fi
 
114245
$at_failed && at_fn_log_failure
 
114246
$at_traceon; }
 
114247
 
 
114248
fi
 
114249
$at_failed && at_fn_log_failure
 
114250
$at_traceon; }
 
114251
 
 
114252
{ set +x
 
114253
$as_echo "$at_srcdir/ovs-vsctl.at:507: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
114254
"
 
114255
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:507"
 
114256
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
114257
 
 
114258
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114259
at_status=$? at_failed=false
 
114260
$at_check_filter
 
114261
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114262
echo >>"$at_stdout"; $as_echo "eth0
 
114263
eth1
 
114264
" | \
 
114265
  $at_diff - "$at_stdout" || at_failed=:
 
114266
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114267
if $at_failed; then :
 
114268
  cp pid savepid
 
114269
   { set +x
 
114270
$as_echo "$at_srcdir/ovs-vsctl.at:507: ovs-appctl -t \$PWD/unixctl -e exit"
 
114271
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:507"
 
114272
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114273
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114274
at_status=$? at_failed=false
 
114275
$at_check_filter
 
114276
echo stderr:; cat "$at_stderr"
 
114277
echo stdout:; cat "$at_stdout"
 
114278
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114279
$at_failed && at_fn_log_failure
 
114280
$at_traceon; }
 
114281
 
 
114282
   { set +x
 
114283
$as_echo "$at_srcdir/ovs-vsctl.at:507: # First try a quick sleep, so that the test completes very quickly
 
114284
     # in the normal case.  POSIX doesn't require fractional times to
 
114285
     # work, so this might not work.
 
114286
     sleep 0.1
 
114287
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114288
     # Then wait up to 10 seconds.
 
114289
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114290
       sleep 1
 
114291
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114292
     done
 
114293
     exit 1"
 
114294
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:507"
 
114295
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114296
     # in the normal case.  POSIX doesn't require fractional times to
 
114297
     # work, so this might not work.
 
114298
     sleep 0.1
 
114299
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114300
     # Then wait up to 10 seconds.
 
114301
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114302
       sleep 1
 
114303
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114304
     done
 
114305
     exit 1
 
114306
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114307
at_status=$? at_failed=false
 
114308
$at_check_filter
 
114309
echo stderr:; cat "$at_stderr"
 
114310
echo stdout:; cat "$at_stdout"
 
114311
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114312
if $at_failed; then :
 
114313
  kill `cat savepid`
 
114314
fi
 
114315
$at_failed && at_fn_log_failure
 
114316
$at_traceon; }
 
114317
 
 
114318
fi
 
114319
$at_failed && at_fn_log_failure
 
114320
$at_traceon; }
 
114321
 
 
114322
   { set +x
 
114323
$as_echo "$at_srcdir/ovs-vsctl.at:507: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
114324
"
 
114325
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:507"
 
114326
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
114327
 
 
114328
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114329
at_status=$? at_failed=false
 
114330
$at_check_filter
 
114331
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xapi1
 
114332
" | \
 
114333
  $at_diff - "$at_stderr" || at_failed=:
 
114334
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
114335
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114336
if $at_failed; then :
 
114337
  cp pid savepid
 
114338
   { set +x
 
114339
$as_echo "$at_srcdir/ovs-vsctl.at:507: ovs-appctl -t \$PWD/unixctl -e exit"
 
114340
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:507"
 
114341
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114342
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114343
at_status=$? at_failed=false
 
114344
$at_check_filter
 
114345
echo stderr:; cat "$at_stderr"
 
114346
echo stdout:; cat "$at_stdout"
 
114347
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114348
$at_failed && at_fn_log_failure
 
114349
$at_traceon; }
 
114350
 
 
114351
   { set +x
 
114352
$as_echo "$at_srcdir/ovs-vsctl.at:507: # First try a quick sleep, so that the test completes very quickly
 
114353
     # in the normal case.  POSIX doesn't require fractional times to
 
114354
     # work, so this might not work.
 
114355
     sleep 0.1
 
114356
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114357
     # Then wait up to 10 seconds.
 
114358
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114359
       sleep 1
 
114360
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114361
     done
 
114362
     exit 1"
 
114363
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:507"
 
114364
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114365
     # in the normal case.  POSIX doesn't require fractional times to
 
114366
     # work, so this might not work.
 
114367
     sleep 0.1
 
114368
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114369
     # Then wait up to 10 seconds.
 
114370
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114371
       sleep 1
 
114372
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114373
     done
 
114374
     exit 1
 
114375
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114376
at_status=$? at_failed=false
 
114377
$at_check_filter
 
114378
echo stderr:; cat "$at_stderr"
 
114379
echo stdout:; cat "$at_stdout"
 
114380
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114381
if $at_failed; then :
 
114382
  kill `cat savepid`
 
114383
fi
 
114384
$at_failed && at_fn_log_failure
 
114385
$at_traceon; }
 
114386
 
 
114387
fi
 
114388
$at_failed && at_fn_log_failure
 
114389
$at_traceon; }
 
114390
 
 
114391
   { set +x
 
114392
$as_echo "$at_srcdir/ovs-vsctl.at:507: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
114393
"
 
114394
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:507"
 
114395
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
114396
 
 
114397
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114398
at_status=$? at_failed=false
 
114399
$at_check_filter
 
114400
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114401
echo >>"$at_stdout"; $as_echo "xapi1
 
114402
" | \
 
114403
  $at_diff - "$at_stdout" || at_failed=:
 
114404
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114405
if $at_failed; then :
 
114406
  cp pid savepid
 
114407
   { set +x
 
114408
$as_echo "$at_srcdir/ovs-vsctl.at:507: ovs-appctl -t \$PWD/unixctl -e exit"
 
114409
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:507"
 
114410
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114411
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114412
at_status=$? at_failed=false
 
114413
$at_check_filter
 
114414
echo stderr:; cat "$at_stderr"
 
114415
echo stdout:; cat "$at_stdout"
 
114416
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114417
$at_failed && at_fn_log_failure
 
114418
$at_traceon; }
 
114419
 
 
114420
   { set +x
 
114421
$as_echo "$at_srcdir/ovs-vsctl.at:507: # First try a quick sleep, so that the test completes very quickly
 
114422
     # in the normal case.  POSIX doesn't require fractional times to
 
114423
     # work, so this might not work.
 
114424
     sleep 0.1
 
114425
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114426
     # Then wait up to 10 seconds.
 
114427
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114428
       sleep 1
 
114429
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114430
     done
 
114431
     exit 1"
 
114432
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:507"
 
114433
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114434
     # in the normal case.  POSIX doesn't require fractional times to
 
114435
     # work, so this might not work.
 
114436
     sleep 0.1
 
114437
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114438
     # Then wait up to 10 seconds.
 
114439
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114440
       sleep 1
 
114441
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114442
     done
 
114443
     exit 1
 
114444
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114445
at_status=$? at_failed=false
 
114446
$at_check_filter
 
114447
echo stderr:; cat "$at_stderr"
 
114448
echo stdout:; cat "$at_stdout"
 
114449
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114450
if $at_failed; then :
 
114451
  kill `cat savepid`
 
114452
fi
 
114453
$at_failed && at_fn_log_failure
 
114454
$at_traceon; }
 
114455
 
 
114456
fi
 
114457
$at_failed && at_fn_log_failure
 
114458
$at_traceon; }
 
114459
{ set +x
 
114460
$as_echo "$at_srcdir/ovs-vsctl.at:507: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth1
 
114461
"
 
114462
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:507"
 
114463
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth1
 
114464
 
 
114465
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114466
at_status=$? at_failed=false
 
114467
$at_check_filter
 
114468
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114469
echo >>"$at_stdout"; $as_echo "xapi1
 
114470
" | \
 
114471
  $at_diff - "$at_stdout" || at_failed=:
 
114472
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114473
if $at_failed; then :
 
114474
  cp pid savepid
 
114475
   { set +x
 
114476
$as_echo "$at_srcdir/ovs-vsctl.at:507: ovs-appctl -t \$PWD/unixctl -e exit"
 
114477
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:507"
 
114478
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114479
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114480
at_status=$? at_failed=false
 
114481
$at_check_filter
 
114482
echo stderr:; cat "$at_stderr"
 
114483
echo stdout:; cat "$at_stdout"
 
114484
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114485
$at_failed && at_fn_log_failure
 
114486
$at_traceon; }
 
114487
 
 
114488
   { set +x
 
114489
$as_echo "$at_srcdir/ovs-vsctl.at:507: # First try a quick sleep, so that the test completes very quickly
 
114490
     # in the normal case.  POSIX doesn't require fractional times to
 
114491
     # work, so this might not work.
 
114492
     sleep 0.1
 
114493
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114494
     # Then wait up to 10 seconds.
 
114495
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114496
       sleep 1
 
114497
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114498
     done
 
114499
     exit 1"
 
114500
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:507"
 
114501
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114502
     # in the normal case.  POSIX doesn't require fractional times to
 
114503
     # work, so this might not work.
 
114504
     sleep 0.1
 
114505
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114506
     # Then wait up to 10 seconds.
 
114507
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114508
       sleep 1
 
114509
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114510
     done
 
114511
     exit 1
 
114512
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114513
at_status=$? at_failed=false
 
114514
$at_check_filter
 
114515
echo stderr:; cat "$at_stderr"
 
114516
echo stdout:; cat "$at_stdout"
 
114517
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:507"
 
114518
if $at_failed; then :
 
114519
  kill `cat savepid`
 
114520
fi
 
114521
$at_failed && at_fn_log_failure
 
114522
$at_traceon; }
 
114523
 
 
114524
fi
 
114525
$at_failed && at_fn_log_failure
 
114526
$at_traceon; }
 
114527
 
 
114528
   { set +x
 
114529
$as_echo "$at_srcdir/ovs-vsctl.at:508: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi2
 
114530
"
 
114531
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:508"
 
114532
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi2
 
114533
 
 
114534
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114535
at_status=$? at_failed=false
 
114536
$at_check_filter
 
114537
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114538
echo >>"$at_stdout"; $as_echo "bond0.11
 
114539
" | \
 
114540
  $at_diff - "$at_stdout" || at_failed=:
 
114541
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114542
if $at_failed; then :
 
114543
  cp pid savepid
 
114544
   { set +x
 
114545
$as_echo "$at_srcdir/ovs-vsctl.at:508: ovs-appctl -t \$PWD/unixctl -e exit"
 
114546
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:508"
 
114547
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114548
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114549
at_status=$? at_failed=false
 
114550
$at_check_filter
 
114551
echo stderr:; cat "$at_stderr"
 
114552
echo stdout:; cat "$at_stdout"
 
114553
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114554
$at_failed && at_fn_log_failure
 
114555
$at_traceon; }
 
114556
 
 
114557
   { set +x
 
114558
$as_echo "$at_srcdir/ovs-vsctl.at:508: # First try a quick sleep, so that the test completes very quickly
 
114559
     # in the normal case.  POSIX doesn't require fractional times to
 
114560
     # work, so this might not work.
 
114561
     sleep 0.1
 
114562
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114563
     # Then wait up to 10 seconds.
 
114564
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114565
       sleep 1
 
114566
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114567
     done
 
114568
     exit 1"
 
114569
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:508"
 
114570
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114571
     # in the normal case.  POSIX doesn't require fractional times to
 
114572
     # work, so this might not work.
 
114573
     sleep 0.1
 
114574
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114575
     # Then wait up to 10 seconds.
 
114576
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114577
       sleep 1
 
114578
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114579
     done
 
114580
     exit 1
 
114581
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114582
at_status=$? at_failed=false
 
114583
$at_check_filter
 
114584
echo stderr:; cat "$at_stderr"
 
114585
echo stdout:; cat "$at_stdout"
 
114586
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114587
if $at_failed; then :
 
114588
  kill `cat savepid`
 
114589
fi
 
114590
$at_failed && at_fn_log_failure
 
114591
$at_traceon; }
 
114592
 
 
114593
fi
 
114594
$at_failed && at_fn_log_failure
 
114595
$at_traceon; }
 
114596
 
 
114597
 
 
114598
      { set +x
 
114599
$as_echo "$at_srcdir/ovs-vsctl.at:508: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi2
 
114600
"
 
114601
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:508"
 
114602
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi2
 
114603
 
 
114604
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114605
at_status=$? at_failed=false
 
114606
$at_check_filter
 
114607
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114608
echo >>"$at_stdout"; $as_echo "bond0.11
 
114609
" | \
 
114610
  $at_diff - "$at_stdout" || at_failed=:
 
114611
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114612
if $at_failed; then :
 
114613
  cp pid savepid
 
114614
   { set +x
 
114615
$as_echo "$at_srcdir/ovs-vsctl.at:508: ovs-appctl -t \$PWD/unixctl -e exit"
 
114616
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:508"
 
114617
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114618
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114619
at_status=$? at_failed=false
 
114620
$at_check_filter
 
114621
echo stderr:; cat "$at_stderr"
 
114622
echo stdout:; cat "$at_stdout"
 
114623
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114624
$at_failed && at_fn_log_failure
 
114625
$at_traceon; }
 
114626
 
 
114627
   { set +x
 
114628
$as_echo "$at_srcdir/ovs-vsctl.at:508: # First try a quick sleep, so that the test completes very quickly
 
114629
     # in the normal case.  POSIX doesn't require fractional times to
 
114630
     # work, so this might not work.
 
114631
     sleep 0.1
 
114632
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114633
     # Then wait up to 10 seconds.
 
114634
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114635
       sleep 1
 
114636
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114637
     done
 
114638
     exit 1"
 
114639
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:508"
 
114640
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114641
     # in the normal case.  POSIX doesn't require fractional times to
 
114642
     # work, so this might not work.
 
114643
     sleep 0.1
 
114644
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114645
     # Then wait up to 10 seconds.
 
114646
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114647
       sleep 1
 
114648
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114649
     done
 
114650
     exit 1
 
114651
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114652
at_status=$? at_failed=false
 
114653
$at_check_filter
 
114654
echo stderr:; cat "$at_stderr"
 
114655
echo stdout:; cat "$at_stdout"
 
114656
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114657
if $at_failed; then :
 
114658
  kill `cat savepid`
 
114659
fi
 
114660
$at_failed && at_fn_log_failure
 
114661
$at_traceon; }
 
114662
 
 
114663
fi
 
114664
$at_failed && at_fn_log_failure
 
114665
$at_traceon; }
 
114666
 
 
114667
   { set +x
 
114668
$as_echo "$at_srcdir/ovs-vsctl.at:508: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi2
 
114669
"
 
114670
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:508"
 
114671
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi2
 
114672
 
 
114673
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114674
at_status=$? at_failed=false
 
114675
$at_check_filter
 
114676
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xapi2
 
114677
" | \
 
114678
  $at_diff - "$at_stderr" || at_failed=:
 
114679
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
114680
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114681
if $at_failed; then :
 
114682
  cp pid savepid
 
114683
   { set +x
 
114684
$as_echo "$at_srcdir/ovs-vsctl.at:508: ovs-appctl -t \$PWD/unixctl -e exit"
 
114685
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:508"
 
114686
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114687
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114688
at_status=$? at_failed=false
 
114689
$at_check_filter
 
114690
echo stderr:; cat "$at_stderr"
 
114691
echo stdout:; cat "$at_stdout"
 
114692
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114693
$at_failed && at_fn_log_failure
 
114694
$at_traceon; }
 
114695
 
 
114696
   { set +x
 
114697
$as_echo "$at_srcdir/ovs-vsctl.at:508: # First try a quick sleep, so that the test completes very quickly
 
114698
     # in the normal case.  POSIX doesn't require fractional times to
 
114699
     # work, so this might not work.
 
114700
     sleep 0.1
 
114701
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114702
     # Then wait up to 10 seconds.
 
114703
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114704
       sleep 1
 
114705
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114706
     done
 
114707
     exit 1"
 
114708
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:508"
 
114709
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114710
     # in the normal case.  POSIX doesn't require fractional times to
 
114711
     # work, so this might not work.
 
114712
     sleep 0.1
 
114713
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114714
     # Then wait up to 10 seconds.
 
114715
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114716
       sleep 1
 
114717
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114718
     done
 
114719
     exit 1
 
114720
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114721
at_status=$? at_failed=false
 
114722
$at_check_filter
 
114723
echo stderr:; cat "$at_stderr"
 
114724
echo stdout:; cat "$at_stdout"
 
114725
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114726
if $at_failed; then :
 
114727
  kill `cat savepid`
 
114728
fi
 
114729
$at_failed && at_fn_log_failure
 
114730
$at_traceon; }
 
114731
 
 
114732
fi
 
114733
$at_failed && at_fn_log_failure
 
114734
$at_traceon; }
 
114735
 
 
114736
   { set +x
 
114737
$as_echo "$at_srcdir/ovs-vsctl.at:508: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0.11
 
114738
"
 
114739
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:508"
 
114740
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0.11
 
114741
 
 
114742
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114743
at_status=$? at_failed=false
 
114744
$at_check_filter
 
114745
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114746
echo >>"$at_stdout"; $as_echo "xapi2
 
114747
" | \
 
114748
  $at_diff - "$at_stdout" || at_failed=:
 
114749
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114750
if $at_failed; then :
 
114751
  cp pid savepid
 
114752
   { set +x
 
114753
$as_echo "$at_srcdir/ovs-vsctl.at:508: ovs-appctl -t \$PWD/unixctl -e exit"
 
114754
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:508"
 
114755
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114756
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114757
at_status=$? at_failed=false
 
114758
$at_check_filter
 
114759
echo stderr:; cat "$at_stderr"
 
114760
echo stdout:; cat "$at_stdout"
 
114761
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114762
$at_failed && at_fn_log_failure
 
114763
$at_traceon; }
 
114764
 
 
114765
   { set +x
 
114766
$as_echo "$at_srcdir/ovs-vsctl.at:508: # First try a quick sleep, so that the test completes very quickly
 
114767
     # in the normal case.  POSIX doesn't require fractional times to
 
114768
     # work, so this might not work.
 
114769
     sleep 0.1
 
114770
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114771
     # Then wait up to 10 seconds.
 
114772
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114773
       sleep 1
 
114774
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114775
     done
 
114776
     exit 1"
 
114777
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:508"
 
114778
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114779
     # in the normal case.  POSIX doesn't require fractional times to
 
114780
     # work, so this might not work.
 
114781
     sleep 0.1
 
114782
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114783
     # Then wait up to 10 seconds.
 
114784
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114785
       sleep 1
 
114786
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114787
     done
 
114788
     exit 1
 
114789
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114790
at_status=$? at_failed=false
 
114791
$at_check_filter
 
114792
echo stderr:; cat "$at_stderr"
 
114793
echo stdout:; cat "$at_stdout"
 
114794
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:508"
 
114795
if $at_failed; then :
 
114796
  kill `cat savepid`
 
114797
fi
 
114798
$at_failed && at_fn_log_failure
 
114799
$at_traceon; }
 
114800
 
 
114801
fi
 
114802
$at_failed && at_fn_log_failure
 
114803
$at_traceon; }
 
114804
 
 
114805
{ set +x
 
114806
$as_echo "$at_srcdir/ovs-vsctl.at:509: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi2
 
114807
"
 
114808
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:509"
 
114809
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi2
 
114810
 
 
114811
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114812
at_status=$? at_failed=false
 
114813
$at_check_filter
 
114814
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114815
echo >>"$at_stdout"; $as_echo "bond0.11
 
114816
" | \
 
114817
  $at_diff - "$at_stdout" || at_failed=:
 
114818
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
114819
if $at_failed; then :
 
114820
  cp pid savepid
 
114821
   { set +x
 
114822
$as_echo "$at_srcdir/ovs-vsctl.at:509: ovs-appctl -t \$PWD/unixctl -e exit"
 
114823
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:509"
 
114824
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114825
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114826
at_status=$? at_failed=false
 
114827
$at_check_filter
 
114828
echo stderr:; cat "$at_stderr"
 
114829
echo stdout:; cat "$at_stdout"
 
114830
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
114831
$at_failed && at_fn_log_failure
 
114832
$at_traceon; }
 
114833
 
 
114834
   { set +x
 
114835
$as_echo "$at_srcdir/ovs-vsctl.at:509: # First try a quick sleep, so that the test completes very quickly
 
114836
     # in the normal case.  POSIX doesn't require fractional times to
 
114837
     # work, so this might not work.
 
114838
     sleep 0.1
 
114839
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114840
     # Then wait up to 10 seconds.
 
114841
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114842
       sleep 1
 
114843
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114844
     done
 
114845
     exit 1"
 
114846
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:509"
 
114847
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114848
     # in the normal case.  POSIX doesn't require fractional times to
 
114849
     # work, so this might not work.
 
114850
     sleep 0.1
 
114851
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114852
     # Then wait up to 10 seconds.
 
114853
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114854
       sleep 1
 
114855
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114856
     done
 
114857
     exit 1
 
114858
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114859
at_status=$? at_failed=false
 
114860
$at_check_filter
 
114861
echo stderr:; cat "$at_stderr"
 
114862
echo stdout:; cat "$at_stdout"
 
114863
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
114864
if $at_failed; then :
 
114865
  kill `cat savepid`
 
114866
fi
 
114867
$at_failed && at_fn_log_failure
 
114868
$at_traceon; }
 
114869
 
 
114870
fi
 
114871
$at_failed && at_fn_log_failure
 
114872
$at_traceon; }
 
114873
 
 
114874
   { set +x
 
114875
$as_echo "$at_srcdir/ovs-vsctl.at:509: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi2
 
114876
"
 
114877
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:509"
 
114878
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi2
 
114879
 
 
114880
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114881
at_status=$? at_failed=false
 
114882
$at_check_filter
 
114883
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xapi2
 
114884
" | \
 
114885
  $at_diff - "$at_stderr" || at_failed=:
 
114886
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
114887
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
114888
if $at_failed; then :
 
114889
  cp pid savepid
 
114890
   { set +x
 
114891
$as_echo "$at_srcdir/ovs-vsctl.at:509: ovs-appctl -t \$PWD/unixctl -e exit"
 
114892
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:509"
 
114893
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114894
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114895
at_status=$? at_failed=false
 
114896
$at_check_filter
 
114897
echo stderr:; cat "$at_stderr"
 
114898
echo stdout:; cat "$at_stdout"
 
114899
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
114900
$at_failed && at_fn_log_failure
 
114901
$at_traceon; }
 
114902
 
 
114903
   { set +x
 
114904
$as_echo "$at_srcdir/ovs-vsctl.at:509: # First try a quick sleep, so that the test completes very quickly
 
114905
     # in the normal case.  POSIX doesn't require fractional times to
 
114906
     # work, so this might not work.
 
114907
     sleep 0.1
 
114908
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114909
     # Then wait up to 10 seconds.
 
114910
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114911
       sleep 1
 
114912
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114913
     done
 
114914
     exit 1"
 
114915
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:509"
 
114916
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114917
     # in the normal case.  POSIX doesn't require fractional times to
 
114918
     # work, so this might not work.
 
114919
     sleep 0.1
 
114920
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114921
     # Then wait up to 10 seconds.
 
114922
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114923
       sleep 1
 
114924
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114925
     done
 
114926
     exit 1
 
114927
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114928
at_status=$? at_failed=false
 
114929
$at_check_filter
 
114930
echo stderr:; cat "$at_stderr"
 
114931
echo stdout:; cat "$at_stdout"
 
114932
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
114933
if $at_failed; then :
 
114934
  kill `cat savepid`
 
114935
fi
 
114936
$at_failed && at_fn_log_failure
 
114937
$at_traceon; }
 
114938
 
 
114939
fi
 
114940
$at_failed && at_fn_log_failure
 
114941
$at_traceon; }
 
114942
 
 
114943
   { set +x
 
114944
$as_echo "$at_srcdir/ovs-vsctl.at:509: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br bond0.11
 
114945
"
 
114946
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:509"
 
114947
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br bond0.11
 
114948
 
 
114949
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114950
at_status=$? at_failed=false
 
114951
$at_check_filter
 
114952
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
114953
echo >>"$at_stdout"; $as_echo "xapi2
 
114954
" | \
 
114955
  $at_diff - "$at_stdout" || at_failed=:
 
114956
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
114957
if $at_failed; then :
 
114958
  cp pid savepid
 
114959
   { set +x
 
114960
$as_echo "$at_srcdir/ovs-vsctl.at:509: ovs-appctl -t \$PWD/unixctl -e exit"
 
114961
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:509"
 
114962
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
114963
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114964
at_status=$? at_failed=false
 
114965
$at_check_filter
 
114966
echo stderr:; cat "$at_stderr"
 
114967
echo stdout:; cat "$at_stdout"
 
114968
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
114969
$at_failed && at_fn_log_failure
 
114970
$at_traceon; }
 
114971
 
 
114972
   { set +x
 
114973
$as_echo "$at_srcdir/ovs-vsctl.at:509: # First try a quick sleep, so that the test completes very quickly
 
114974
     # in the normal case.  POSIX doesn't require fractional times to
 
114975
     # work, so this might not work.
 
114976
     sleep 0.1
 
114977
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114978
     # Then wait up to 10 seconds.
 
114979
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114980
       sleep 1
 
114981
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
114982
     done
 
114983
     exit 1"
 
114984
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:509"
 
114985
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
114986
     # in the normal case.  POSIX doesn't require fractional times to
 
114987
     # work, so this might not work.
 
114988
     sleep 0.1
 
114989
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
114990
     # Then wait up to 10 seconds.
 
114991
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
114992
       sleep 1
 
114993
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
114994
     done
 
114995
     exit 1
 
114996
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
114997
at_status=$? at_failed=false
 
114998
$at_check_filter
 
114999
echo stderr:; cat "$at_stderr"
 
115000
echo stdout:; cat "$at_stdout"
 
115001
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:509"
 
115002
if $at_failed; then :
 
115003
  kill `cat savepid`
 
115004
fi
 
115005
$at_failed && at_fn_log_failure
 
115006
$at_traceon; }
 
115007
 
 
115008
fi
 
115009
$at_failed && at_fn_log_failure
 
115010
$at_traceon; }
 
115011
 
 
115012
cp pid savepid
 
115013
   { set +x
 
115014
$as_echo "$at_srcdir/ovs-vsctl.at:510: ovs-appctl -t \$PWD/unixctl -e exit"
 
115015
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:510"
 
115016
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115017
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115018
at_status=$? at_failed=false
 
115019
$at_check_filter
 
115020
echo stderr:; cat "$at_stderr"
 
115021
echo stdout:; cat "$at_stdout"
 
115022
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:510"
 
115023
$at_failed && at_fn_log_failure
 
115024
$at_traceon; }
 
115025
 
 
115026
   { set +x
 
115027
$as_echo "$at_srcdir/ovs-vsctl.at:510: # First try a quick sleep, so that the test completes very quickly
 
115028
     # in the normal case.  POSIX doesn't require fractional times to
 
115029
     # work, so this might not work.
 
115030
     sleep 0.1
 
115031
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115032
     # Then wait up to 10 seconds.
 
115033
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115034
       sleep 1
 
115035
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115036
     done
 
115037
     exit 1"
 
115038
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:510"
 
115039
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115040
     # in the normal case.  POSIX doesn't require fractional times to
 
115041
     # work, so this might not work.
 
115042
     sleep 0.1
 
115043
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115044
     # Then wait up to 10 seconds.
 
115045
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115046
       sleep 1
 
115047
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115048
     done
 
115049
     exit 1
 
115050
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115051
at_status=$? at_failed=false
 
115052
$at_check_filter
 
115053
echo stderr:; cat "$at_stderr"
 
115054
echo stdout:; cat "$at_stdout"
 
115055
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:510"
 
115056
if $at_failed; then :
 
115057
  kill `cat savepid`
 
115058
fi
 
115059
$at_failed && at_fn_log_failure
 
115060
$at_traceon; }
 
115061
 
 
115062
  set +x
 
115063
  $at_times_p && times >"$at_times_file"
 
115064
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
115065
read at_status <"$at_status_file"
 
115066
#AT_STOP_964
 
115067
#AT_START_965
 
115068
at_fn_group_banner 965 'ovs-vsctl.at:513' \
 
115069
  "fake bridge on bond + del-br fake bridge" "       " 67
 
115070
at_xfail=no
 
115071
(
 
115072
  $as_echo "965. $at_setup_line: testing $at_desc ..."
 
115073
  $at_traceon
 
115074
 
 
115075
 
 
115076
{ set +x
 
115077
$as_echo "$at_srcdir/ovs-vsctl.at:515: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
115078
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:515"
 
115079
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
115080
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115081
at_status=$? at_failed=false
 
115082
$at_check_filter
 
115083
echo stderr:; cat "$at_stderr"
 
115084
echo stdout:; tee stdout <"$at_stdout"
 
115085
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:515"
 
115086
$at_failed && at_fn_log_failure
 
115087
$at_traceon; }
 
115088
 
 
115089
   { set +x
 
115090
$as_echo "$at_srcdir/ovs-vsctl.at:515: ovsdb-tool transact db \\
 
115091
        '[\"Open_vSwitch\",
 
115092
          {\"op\": \"insert\",
 
115093
           \"table\": \"Open_vSwitch\",
 
115094
           \"row\": {}}]'"
 
115095
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:515"
 
115096
( $at_check_trace; ovsdb-tool transact db \
 
115097
        '["Open_vSwitch",
 
115098
          {"op": "insert",
 
115099
           "table": "Open_vSwitch",
 
115100
           "row": {}}]'
 
115101
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115102
at_status=$? at_failed=false
 
115103
$at_check_filter
 
115104
echo stderr:; cat "$at_stderr"
 
115105
echo stdout:; cat "$at_stdout"
 
115106
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:515"
 
115107
$at_failed && at_fn_log_failure
 
115108
$at_traceon; }
 
115109
 
 
115110
   { set +x
 
115111
$as_echo "$at_srcdir/ovs-vsctl.at:515: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
115112
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:515"
 
115113
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
115114
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115115
at_status=$? at_failed=false
 
115116
$at_check_filter
 
115117
echo stderr:; cat "$at_stderr"
 
115118
echo stdout:; cat "$at_stdout"
 
115119
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:515"
 
115120
$at_failed && at_fn_log_failure
 
115121
$at_traceon; }
 
115122
 
 
115123
{ set +x
 
115124
$as_echo "$at_srcdir/ovs-vsctl.at:516: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1
 
115125
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond xapi1 bond0 eth0 eth1
 
115126
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi2 xapi1 11
 
115127
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi2 bond0.11
 
115128
"
 
115129
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:516"
 
115130
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1
 
115131
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond xapi1 bond0 eth0 eth1
 
115132
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi2 xapi1 11
 
115133
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi2 bond0.11
 
115134
 
 
115135
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115136
at_status=$? at_failed=false
 
115137
$at_check_filter
 
115138
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115139
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
115140
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:516"
 
115141
if $at_failed; then :
 
115142
  cp pid savepid
 
115143
   { set +x
 
115144
$as_echo "$at_srcdir/ovs-vsctl.at:516: ovs-appctl -t \$PWD/unixctl -e exit"
 
115145
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:516"
 
115146
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115147
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115148
at_status=$? at_failed=false
 
115149
$at_check_filter
 
115150
echo stderr:; cat "$at_stderr"
 
115151
echo stdout:; cat "$at_stdout"
 
115152
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:516"
 
115153
$at_failed && at_fn_log_failure
 
115154
$at_traceon; }
 
115155
 
 
115156
   { set +x
 
115157
$as_echo "$at_srcdir/ovs-vsctl.at:516: # First try a quick sleep, so that the test completes very quickly
 
115158
     # in the normal case.  POSIX doesn't require fractional times to
 
115159
     # work, so this might not work.
 
115160
     sleep 0.1
 
115161
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115162
     # Then wait up to 10 seconds.
 
115163
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115164
       sleep 1
 
115165
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115166
     done
 
115167
     exit 1"
 
115168
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:516"
 
115169
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115170
     # in the normal case.  POSIX doesn't require fractional times to
 
115171
     # work, so this might not work.
 
115172
     sleep 0.1
 
115173
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115174
     # Then wait up to 10 seconds.
 
115175
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115176
       sleep 1
 
115177
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115178
     done
 
115179
     exit 1
 
115180
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115181
at_status=$? at_failed=false
 
115182
$at_check_filter
 
115183
echo stderr:; cat "$at_stderr"
 
115184
echo stdout:; cat "$at_stdout"
 
115185
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:516"
 
115186
if $at_failed; then :
 
115187
  kill `cat savepid`
 
115188
fi
 
115189
$at_failed && at_fn_log_failure
 
115190
$at_traceon; }
 
115191
 
 
115192
fi
 
115193
$at_failed && at_fn_log_failure
 
115194
$at_traceon; }
 
115195
 
 
115196
{ set +x
 
115197
$as_echo "$at_srcdir/ovs-vsctl.at:517: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- del-br xapi2
 
115198
"
 
115199
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:517"
 
115200
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- del-br xapi2
 
115201
 
 
115202
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115203
at_status=$? at_failed=false
 
115204
$at_check_filter
 
115205
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115206
echo >>"$at_stdout"; $as_echo "
 
115207
" | \
 
115208
  $at_diff - "$at_stdout" || at_failed=:
 
115209
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:517"
 
115210
if $at_failed; then :
 
115211
  cp pid savepid
 
115212
   { set +x
 
115213
$as_echo "$at_srcdir/ovs-vsctl.at:517: ovs-appctl -t \$PWD/unixctl -e exit"
 
115214
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:517"
 
115215
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115216
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115217
at_status=$? at_failed=false
 
115218
$at_check_filter
 
115219
echo stderr:; cat "$at_stderr"
 
115220
echo stdout:; cat "$at_stdout"
 
115221
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:517"
 
115222
$at_failed && at_fn_log_failure
 
115223
$at_traceon; }
 
115224
 
 
115225
   { set +x
 
115226
$as_echo "$at_srcdir/ovs-vsctl.at:517: # First try a quick sleep, so that the test completes very quickly
 
115227
     # in the normal case.  POSIX doesn't require fractional times to
 
115228
     # work, so this might not work.
 
115229
     sleep 0.1
 
115230
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115231
     # Then wait up to 10 seconds.
 
115232
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115233
       sleep 1
 
115234
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115235
     done
 
115236
     exit 1"
 
115237
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:517"
 
115238
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115239
     # in the normal case.  POSIX doesn't require fractional times to
 
115240
     # work, so this might not work.
 
115241
     sleep 0.1
 
115242
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115243
     # Then wait up to 10 seconds.
 
115244
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115245
       sleep 1
 
115246
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115247
     done
 
115248
     exit 1
 
115249
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115250
at_status=$? at_failed=false
 
115251
$at_check_filter
 
115252
echo stderr:; cat "$at_stderr"
 
115253
echo stdout:; cat "$at_stdout"
 
115254
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:517"
 
115255
if $at_failed; then :
 
115256
  kill `cat savepid`
 
115257
fi
 
115258
$at_failed && at_fn_log_failure
 
115259
$at_traceon; }
 
115260
 
 
115261
fi
 
115262
$at_failed && at_fn_log_failure
 
115263
$at_traceon; }
 
115264
 
 
115265
   { set +x
 
115266
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
115267
"
 
115268
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:519"
 
115269
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
115270
 
 
115271
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115272
at_status=$? at_failed=false
 
115273
$at_check_filter
 
115274
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115275
echo >>"$at_stdout"; $as_echo "xapi1
 
115276
" | \
 
115277
  $at_diff - "$at_stdout" || at_failed=:
 
115278
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115279
if $at_failed; then :
 
115280
  cp pid savepid
 
115281
   { set +x
 
115282
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-appctl -t \$PWD/unixctl -e exit"
 
115283
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:519"
 
115284
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115285
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115286
at_status=$? at_failed=false
 
115287
$at_check_filter
 
115288
echo stderr:; cat "$at_stderr"
 
115289
echo stdout:; cat "$at_stdout"
 
115290
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115291
$at_failed && at_fn_log_failure
 
115292
$at_traceon; }
 
115293
 
 
115294
   { set +x
 
115295
$as_echo "$at_srcdir/ovs-vsctl.at:519: # First try a quick sleep, so that the test completes very quickly
 
115296
     # in the normal case.  POSIX doesn't require fractional times to
 
115297
     # work, so this might not work.
 
115298
     sleep 0.1
 
115299
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115300
     # Then wait up to 10 seconds.
 
115301
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115302
       sleep 1
 
115303
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115304
     done
 
115305
     exit 1"
 
115306
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:519"
 
115307
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115308
     # in the normal case.  POSIX doesn't require fractional times to
 
115309
     # work, so this might not work.
 
115310
     sleep 0.1
 
115311
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115312
     # Then wait up to 10 seconds.
 
115313
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115314
       sleep 1
 
115315
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115316
     done
 
115317
     exit 1
 
115318
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115319
at_status=$? at_failed=false
 
115320
$at_check_filter
 
115321
echo stderr:; cat "$at_stderr"
 
115322
echo stdout:; cat "$at_stdout"
 
115323
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115324
if $at_failed; then :
 
115325
  kill `cat savepid`
 
115326
fi
 
115327
$at_failed && at_fn_log_failure
 
115328
$at_traceon; }
 
115329
 
 
115330
fi
 
115331
$at_failed && at_fn_log_failure
 
115332
$at_traceon; }
 
115333
 
 
115334
 
 
115335
      { set +x
 
115336
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
115337
"
 
115338
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:519"
 
115339
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
115340
 
 
115341
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115342
at_status=$? at_failed=false
 
115343
$at_check_filter
 
115344
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115345
echo >>"$at_stdout"; $as_echo "xapi1
 
115346
" | \
 
115347
  $at_diff - "$at_stdout" || at_failed=:
 
115348
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115349
if $at_failed; then :
 
115350
  cp pid savepid
 
115351
   { set +x
 
115352
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-appctl -t \$PWD/unixctl -e exit"
 
115353
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:519"
 
115354
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115355
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115356
at_status=$? at_failed=false
 
115357
$at_check_filter
 
115358
echo stderr:; cat "$at_stderr"
 
115359
echo stdout:; cat "$at_stdout"
 
115360
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115361
$at_failed && at_fn_log_failure
 
115362
$at_traceon; }
 
115363
 
 
115364
   { set +x
 
115365
$as_echo "$at_srcdir/ovs-vsctl.at:519: # First try a quick sleep, so that the test completes very quickly
 
115366
     # in the normal case.  POSIX doesn't require fractional times to
 
115367
     # work, so this might not work.
 
115368
     sleep 0.1
 
115369
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115370
     # Then wait up to 10 seconds.
 
115371
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115372
       sleep 1
 
115373
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115374
     done
 
115375
     exit 1"
 
115376
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:519"
 
115377
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115378
     # in the normal case.  POSIX doesn't require fractional times to
 
115379
     # work, so this might not work.
 
115380
     sleep 0.1
 
115381
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115382
     # Then wait up to 10 seconds.
 
115383
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115384
       sleep 1
 
115385
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115386
     done
 
115387
     exit 1
 
115388
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115389
at_status=$? at_failed=false
 
115390
$at_check_filter
 
115391
echo stderr:; cat "$at_stderr"
 
115392
echo stdout:; cat "$at_stdout"
 
115393
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115394
if $at_failed; then :
 
115395
  kill `cat savepid`
 
115396
fi
 
115397
$at_failed && at_fn_log_failure
 
115398
$at_traceon; }
 
115399
 
 
115400
fi
 
115401
$at_failed && at_fn_log_failure
 
115402
$at_traceon; }
 
115403
 
 
115404
 
 
115405
         { set +x
 
115406
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
115407
"
 
115408
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:519"
 
115409
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists xapi1
 
115410
 
 
115411
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115412
at_status=$? at_failed=false
 
115413
$at_check_filter
 
115414
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115415
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
115416
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115417
if $at_failed; then :
 
115418
  cp pid savepid
 
115419
   { set +x
 
115420
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-appctl -t \$PWD/unixctl -e exit"
 
115421
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:519"
 
115422
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115423
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115424
at_status=$? at_failed=false
 
115425
$at_check_filter
 
115426
echo stderr:; cat "$at_stderr"
 
115427
echo stdout:; cat "$at_stdout"
 
115428
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115429
$at_failed && at_fn_log_failure
 
115430
$at_traceon; }
 
115431
 
 
115432
   { set +x
 
115433
$as_echo "$at_srcdir/ovs-vsctl.at:519: # First try a quick sleep, so that the test completes very quickly
 
115434
     # in the normal case.  POSIX doesn't require fractional times to
 
115435
     # work, so this might not work.
 
115436
     sleep 0.1
 
115437
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115438
     # Then wait up to 10 seconds.
 
115439
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115440
       sleep 1
 
115441
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115442
     done
 
115443
     exit 1"
 
115444
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:519"
 
115445
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115446
     # in the normal case.  POSIX doesn't require fractional times to
 
115447
     # work, so this might not work.
 
115448
     sleep 0.1
 
115449
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115450
     # Then wait up to 10 seconds.
 
115451
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115452
       sleep 1
 
115453
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115454
     done
 
115455
     exit 1
 
115456
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115457
at_status=$? at_failed=false
 
115458
$at_check_filter
 
115459
echo stderr:; cat "$at_stderr"
 
115460
echo stdout:; cat "$at_stdout"
 
115461
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115462
if $at_failed; then :
 
115463
  kill `cat savepid`
 
115464
fi
 
115465
$at_failed && at_fn_log_failure
 
115466
$at_traceon; }
 
115467
 
 
115468
fi
 
115469
$at_failed && at_fn_log_failure
 
115470
$at_traceon; }
 
115471
 
 
115472
   { set +x
 
115473
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
115474
"
 
115475
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:519"
 
115476
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
115477
 
 
115478
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115479
at_status=$? at_failed=false
 
115480
$at_check_filter
 
115481
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115482
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
115483
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115484
if $at_failed; then :
 
115485
  cp pid savepid
 
115486
   { set +x
 
115487
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-appctl -t \$PWD/unixctl -e exit"
 
115488
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:519"
 
115489
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115491
at_status=$? at_failed=false
 
115492
$at_check_filter
 
115493
echo stderr:; cat "$at_stderr"
 
115494
echo stdout:; cat "$at_stdout"
 
115495
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115496
$at_failed && at_fn_log_failure
 
115497
$at_traceon; }
 
115498
 
 
115499
   { set +x
 
115500
$as_echo "$at_srcdir/ovs-vsctl.at:519: # First try a quick sleep, so that the test completes very quickly
 
115501
     # in the normal case.  POSIX doesn't require fractional times to
 
115502
     # work, so this might not work.
 
115503
     sleep 0.1
 
115504
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115505
     # Then wait up to 10 seconds.
 
115506
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115507
       sleep 1
 
115508
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115509
     done
 
115510
     exit 1"
 
115511
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:519"
 
115512
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115513
     # in the normal case.  POSIX doesn't require fractional times to
 
115514
     # work, so this might not work.
 
115515
     sleep 0.1
 
115516
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115517
     # Then wait up to 10 seconds.
 
115518
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115519
       sleep 1
 
115520
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115521
     done
 
115522
     exit 1
 
115523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115524
at_status=$? at_failed=false
 
115525
$at_check_filter
 
115526
echo stderr:; cat "$at_stderr"
 
115527
echo stdout:; cat "$at_stdout"
 
115528
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115529
if $at_failed; then :
 
115530
  kill `cat savepid`
 
115531
fi
 
115532
$at_failed && at_fn_log_failure
 
115533
$at_traceon; }
 
115534
 
 
115535
fi
 
115536
$at_failed && at_fn_log_failure
 
115537
$at_traceon; }
 
115538
 
 
115539
 
 
115540
      { set +x
 
115541
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
115542
"
 
115543
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:519"
 
115544
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-parent xapi1
 
115545
 
 
115546
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115547
at_status=$? at_failed=false
 
115548
$at_check_filter
 
115549
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115550
echo >>"$at_stdout"; $as_echo "xapi1
 
115551
" | \
 
115552
  $at_diff - "$at_stdout" || at_failed=:
 
115553
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115554
if $at_failed; then :
 
115555
  cp pid savepid
 
115556
   { set +x
 
115557
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-appctl -t \$PWD/unixctl -e exit"
 
115558
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:519"
 
115559
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115560
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115561
at_status=$? at_failed=false
 
115562
$at_check_filter
 
115563
echo stderr:; cat "$at_stderr"
 
115564
echo stdout:; cat "$at_stdout"
 
115565
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115566
$at_failed && at_fn_log_failure
 
115567
$at_traceon; }
 
115568
 
 
115569
   { set +x
 
115570
$as_echo "$at_srcdir/ovs-vsctl.at:519: # First try a quick sleep, so that the test completes very quickly
 
115571
     # in the normal case.  POSIX doesn't require fractional times to
 
115572
     # work, so this might not work.
 
115573
     sleep 0.1
 
115574
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115575
     # Then wait up to 10 seconds.
 
115576
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115577
       sleep 1
 
115578
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115579
     done
 
115580
     exit 1"
 
115581
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:519"
 
115582
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115583
     # in the normal case.  POSIX doesn't require fractional times to
 
115584
     # work, so this might not work.
 
115585
     sleep 0.1
 
115586
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115587
     # Then wait up to 10 seconds.
 
115588
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115589
       sleep 1
 
115590
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115591
     done
 
115592
     exit 1
 
115593
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115594
at_status=$? at_failed=false
 
115595
$at_check_filter
 
115596
echo stderr:; cat "$at_stderr"
 
115597
echo stdout:; cat "$at_stdout"
 
115598
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115599
if $at_failed; then :
 
115600
  kill `cat savepid`
 
115601
fi
 
115602
$at_failed && at_fn_log_failure
 
115603
$at_traceon; }
 
115604
 
 
115605
fi
 
115606
$at_failed && at_fn_log_failure
 
115607
$at_traceon; }
 
115608
 
 
115609
 
 
115610
   # Check br-to-vlan, without --oneline.
 
115611
   { set +x
 
115612
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
115613
"
 
115614
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:519"
 
115615
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-to-vlan xapi1
 
115616
 
 
115617
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115618
at_status=$? at_failed=false
 
115619
$at_check_filter
 
115620
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115621
echo >>"$at_stdout"; $as_echo "0
 
115622
" | \
 
115623
  $at_diff - "$at_stdout" || at_failed=:
 
115624
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115625
if $at_failed; then :
 
115626
  cp pid savepid
 
115627
   { set +x
 
115628
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-appctl -t \$PWD/unixctl -e exit"
 
115629
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:519"
 
115630
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115631
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115632
at_status=$? at_failed=false
 
115633
$at_check_filter
 
115634
echo stderr:; cat "$at_stderr"
 
115635
echo stdout:; cat "$at_stdout"
 
115636
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115637
$at_failed && at_fn_log_failure
 
115638
$at_traceon; }
 
115639
 
 
115640
   { set +x
 
115641
$as_echo "$at_srcdir/ovs-vsctl.at:519: # First try a quick sleep, so that the test completes very quickly
 
115642
     # in the normal case.  POSIX doesn't require fractional times to
 
115643
     # work, so this might not work.
 
115644
     sleep 0.1
 
115645
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115646
     # Then wait up to 10 seconds.
 
115647
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115648
       sleep 1
 
115649
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115650
     done
 
115651
     exit 1"
 
115652
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:519"
 
115653
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115654
     # in the normal case.  POSIX doesn't require fractional times to
 
115655
     # work, so this might not work.
 
115656
     sleep 0.1
 
115657
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115658
     # Then wait up to 10 seconds.
 
115659
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115660
       sleep 1
 
115661
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115662
     done
 
115663
     exit 1
 
115664
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115665
at_status=$? at_failed=false
 
115666
$at_check_filter
 
115667
echo stderr:; cat "$at_stderr"
 
115668
echo stdout:; cat "$at_stdout"
 
115669
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115670
if $at_failed; then :
 
115671
  kill `cat savepid`
 
115672
fi
 
115673
$at_failed && at_fn_log_failure
 
115674
$at_traceon; }
 
115675
 
 
115676
fi
 
115677
$at_failed && at_fn_log_failure
 
115678
$at_traceon; }
 
115679
 
 
115680
   # Check br-to-vlan, with --oneline.
 
115681
   # (This particular test is interesting with --oneline because it returns
 
115682
   # an integer instead of a string and that can cause type mismatches inside
 
115683
   # python if not done carefully.)
 
115684
   { set +x
 
115685
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
115686
"
 
115687
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:519"
 
115688
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- br-to-vlan xapi1
 
115689
 
 
115690
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115691
at_status=$? at_failed=false
 
115692
$at_check_filter
 
115693
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115694
echo >>"$at_stdout"; $as_echo "0
 
115695
" | \
 
115696
  $at_diff - "$at_stdout" || at_failed=:
 
115697
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115698
if $at_failed; then :
 
115699
  cp pid savepid
 
115700
   { set +x
 
115701
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-appctl -t \$PWD/unixctl -e exit"
 
115702
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:519"
 
115703
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115704
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115705
at_status=$? at_failed=false
 
115706
$at_check_filter
 
115707
echo stderr:; cat "$at_stderr"
 
115708
echo stdout:; cat "$at_stdout"
 
115709
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115710
$at_failed && at_fn_log_failure
 
115711
$at_traceon; }
 
115712
 
 
115713
   { set +x
 
115714
$as_echo "$at_srcdir/ovs-vsctl.at:519: # First try a quick sleep, so that the test completes very quickly
 
115715
     # in the normal case.  POSIX doesn't require fractional times to
 
115716
     # work, so this might not work.
 
115717
     sleep 0.1
 
115718
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115719
     # Then wait up to 10 seconds.
 
115720
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115721
       sleep 1
 
115722
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115723
     done
 
115724
     exit 1"
 
115725
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:519"
 
115726
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115727
     # in the normal case.  POSIX doesn't require fractional times to
 
115728
     # work, so this might not work.
 
115729
     sleep 0.1
 
115730
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115731
     # Then wait up to 10 seconds.
 
115732
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115733
       sleep 1
 
115734
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115735
     done
 
115736
     exit 1
 
115737
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115738
at_status=$? at_failed=false
 
115739
$at_check_filter
 
115740
echo stderr:; cat "$at_stderr"
 
115741
echo stdout:; cat "$at_stdout"
 
115742
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115743
if $at_failed; then :
 
115744
  kill `cat savepid`
 
115745
fi
 
115746
$at_failed && at_fn_log_failure
 
115747
$at_traceon; }
 
115748
 
 
115749
fi
 
115750
$at_failed && at_fn_log_failure
 
115751
$at_traceon; }
 
115752
 
 
115753
 
 
115754
   # Check multiple queries in a single run.
 
115755
   { set +x
 
115756
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1"
 
115757
at_fn_check_prepare_trace "ovs-vsctl.at:519"
 
115758
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- br-to-parent xapi1 -- br-to-vlan xapi1
 
115759
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115760
at_status=$? at_failed=false
 
115761
$at_check_filter
 
115762
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115763
echo >>"$at_stdout"; $as_echo "xapi1
 
115764
0
 
115765
" | \
 
115766
  $at_diff - "$at_stdout" || at_failed=:
 
115767
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115768
if $at_failed; then :
 
115769
  cp pid savepid
 
115770
   { set +x
 
115771
$as_echo "$at_srcdir/ovs-vsctl.at:519: ovs-appctl -t \$PWD/unixctl -e exit"
 
115772
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:519"
 
115773
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115774
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115775
at_status=$? at_failed=false
 
115776
$at_check_filter
 
115777
echo stderr:; cat "$at_stderr"
 
115778
echo stdout:; cat "$at_stdout"
 
115779
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115780
$at_failed && at_fn_log_failure
 
115781
$at_traceon; }
 
115782
 
 
115783
   { set +x
 
115784
$as_echo "$at_srcdir/ovs-vsctl.at:519: # First try a quick sleep, so that the test completes very quickly
 
115785
     # in the normal case.  POSIX doesn't require fractional times to
 
115786
     # work, so this might not work.
 
115787
     sleep 0.1
 
115788
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115789
     # Then wait up to 10 seconds.
 
115790
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115791
       sleep 1
 
115792
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115793
     done
 
115794
     exit 1"
 
115795
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:519"
 
115796
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115797
     # in the normal case.  POSIX doesn't require fractional times to
 
115798
     # work, so this might not work.
 
115799
     sleep 0.1
 
115800
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115801
     # Then wait up to 10 seconds.
 
115802
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115803
       sleep 1
 
115804
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115805
     done
 
115806
     exit 1
 
115807
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115808
at_status=$? at_failed=false
 
115809
$at_check_filter
 
115810
echo stderr:; cat "$at_stderr"
 
115811
echo stdout:; cat "$at_stdout"
 
115812
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:519"
 
115813
if $at_failed; then :
 
115814
  kill `cat savepid`
 
115815
fi
 
115816
$at_failed && at_fn_log_failure
 
115817
$at_traceon; }
 
115818
 
 
115819
fi
 
115820
$at_failed && at_fn_log_failure
 
115821
$at_traceon; }
 
115822
 
 
115823
   { set +x
 
115824
$as_echo "$at_srcdir/ovs-vsctl.at:520: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
115825
"
 
115826
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:520"
 
115827
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ports xapi1
 
115828
 
 
115829
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115830
at_status=$? at_failed=false
 
115831
$at_check_filter
 
115832
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115833
echo >>"$at_stdout"; $as_echo "bond0
 
115834
" | \
 
115835
  $at_diff - "$at_stdout" || at_failed=:
 
115836
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
115837
if $at_failed; then :
 
115838
  cp pid savepid
 
115839
   { set +x
 
115840
$as_echo "$at_srcdir/ovs-vsctl.at:520: ovs-appctl -t \$PWD/unixctl -e exit"
 
115841
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:520"
 
115842
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115843
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115844
at_status=$? at_failed=false
 
115845
$at_check_filter
 
115846
echo stderr:; cat "$at_stderr"
 
115847
echo stdout:; cat "$at_stdout"
 
115848
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
115849
$at_failed && at_fn_log_failure
 
115850
$at_traceon; }
 
115851
 
 
115852
   { set +x
 
115853
$as_echo "$at_srcdir/ovs-vsctl.at:520: # First try a quick sleep, so that the test completes very quickly
 
115854
     # in the normal case.  POSIX doesn't require fractional times to
 
115855
     # work, so this might not work.
 
115856
     sleep 0.1
 
115857
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115858
     # Then wait up to 10 seconds.
 
115859
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115860
       sleep 1
 
115861
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115862
     done
 
115863
     exit 1"
 
115864
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:520"
 
115865
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115866
     # in the normal case.  POSIX doesn't require fractional times to
 
115867
     # work, so this might not work.
 
115868
     sleep 0.1
 
115869
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115870
     # Then wait up to 10 seconds.
 
115871
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115872
       sleep 1
 
115873
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115874
     done
 
115875
     exit 1
 
115876
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115877
at_status=$? at_failed=false
 
115878
$at_check_filter
 
115879
echo stderr:; cat "$at_stderr"
 
115880
echo stdout:; cat "$at_stdout"
 
115881
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
115882
if $at_failed; then :
 
115883
  kill `cat savepid`
 
115884
fi
 
115885
$at_failed && at_fn_log_failure
 
115886
$at_traceon; }
 
115887
 
 
115888
fi
 
115889
$at_failed && at_fn_log_failure
 
115890
$at_traceon; }
 
115891
 
 
115892
 
 
115893
      { set +x
 
115894
$as_echo "$at_srcdir/ovs-vsctl.at:520: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
115895
"
 
115896
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:520"
 
115897
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-ports xapi1
 
115898
 
 
115899
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115900
at_status=$? at_failed=false
 
115901
$at_check_filter
 
115902
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
115903
echo >>"$at_stdout"; $as_echo "bond0
 
115904
" | \
 
115905
  $at_diff - "$at_stdout" || at_failed=:
 
115906
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
115907
if $at_failed; then :
 
115908
  cp pid savepid
 
115909
   { set +x
 
115910
$as_echo "$at_srcdir/ovs-vsctl.at:520: ovs-appctl -t \$PWD/unixctl -e exit"
 
115911
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:520"
 
115912
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115913
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115914
at_status=$? at_failed=false
 
115915
$at_check_filter
 
115916
echo stderr:; cat "$at_stderr"
 
115917
echo stdout:; cat "$at_stdout"
 
115918
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
115919
$at_failed && at_fn_log_failure
 
115920
$at_traceon; }
 
115921
 
 
115922
   { set +x
 
115923
$as_echo "$at_srcdir/ovs-vsctl.at:520: # First try a quick sleep, so that the test completes very quickly
 
115924
     # in the normal case.  POSIX doesn't require fractional times to
 
115925
     # work, so this might not work.
 
115926
     sleep 0.1
 
115927
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115928
     # Then wait up to 10 seconds.
 
115929
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115930
       sleep 1
 
115931
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115932
     done
 
115933
     exit 1"
 
115934
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:520"
 
115935
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
115936
     # in the normal case.  POSIX doesn't require fractional times to
 
115937
     # work, so this might not work.
 
115938
     sleep 0.1
 
115939
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
115940
     # Then wait up to 10 seconds.
 
115941
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115942
       sleep 1
 
115943
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
115944
     done
 
115945
     exit 1
 
115946
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115947
at_status=$? at_failed=false
 
115948
$at_check_filter
 
115949
echo stderr:; cat "$at_stderr"
 
115950
echo stdout:; cat "$at_stdout"
 
115951
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
115952
if $at_failed; then :
 
115953
  kill `cat savepid`
 
115954
fi
 
115955
$at_failed && at_fn_log_failure
 
115956
$at_traceon; }
 
115957
 
 
115958
fi
 
115959
$at_failed && at_fn_log_failure
 
115960
$at_traceon; }
 
115961
 
 
115962
   { set +x
 
115963
$as_echo "$at_srcdir/ovs-vsctl.at:520: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
115964
"
 
115965
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:520"
 
115966
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br xapi1
 
115967
 
 
115968
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115969
at_status=$? at_failed=false
 
115970
$at_check_filter
 
115971
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no port named xapi1
 
115972
" | \
 
115973
  $at_diff - "$at_stderr" || at_failed=:
 
115974
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
115975
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
115976
if $at_failed; then :
 
115977
  cp pid savepid
 
115978
   { set +x
 
115979
$as_echo "$at_srcdir/ovs-vsctl.at:520: ovs-appctl -t \$PWD/unixctl -e exit"
 
115980
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:520"
 
115981
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
115982
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
115983
at_status=$? at_failed=false
 
115984
$at_check_filter
 
115985
echo stderr:; cat "$at_stderr"
 
115986
echo stdout:; cat "$at_stdout"
 
115987
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
115988
$at_failed && at_fn_log_failure
 
115989
$at_traceon; }
 
115990
 
 
115991
   { set +x
 
115992
$as_echo "$at_srcdir/ovs-vsctl.at:520: # First try a quick sleep, so that the test completes very quickly
 
115993
     # in the normal case.  POSIX doesn't require fractional times to
 
115994
     # work, so this might not work.
 
115995
     sleep 0.1
 
115996
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
115997
     # Then wait up to 10 seconds.
 
115998
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
115999
       sleep 1
 
116000
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116001
     done
 
116002
     exit 1"
 
116003
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:520"
 
116004
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116005
     # in the normal case.  POSIX doesn't require fractional times to
 
116006
     # work, so this might not work.
 
116007
     sleep 0.1
 
116008
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116009
     # Then wait up to 10 seconds.
 
116010
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116011
       sleep 1
 
116012
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116013
     done
 
116014
     exit 1
 
116015
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116016
at_status=$? at_failed=false
 
116017
$at_check_filter
 
116018
echo stderr:; cat "$at_stderr"
 
116019
echo stdout:; cat "$at_stdout"
 
116020
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
116021
if $at_failed; then :
 
116022
  kill `cat savepid`
 
116023
fi
 
116024
$at_failed && at_fn_log_failure
 
116025
$at_traceon; }
 
116026
 
 
116027
fi
 
116028
$at_failed && at_fn_log_failure
 
116029
$at_traceon; }
 
116030
 
 
116031
   { set +x
 
116032
$as_echo "$at_srcdir/ovs-vsctl.at:520: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0
 
116033
"
 
116034
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:520"
 
116035
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- port-to-br bond0
 
116036
 
 
116037
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116038
at_status=$? at_failed=false
 
116039
$at_check_filter
 
116040
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116041
echo >>"$at_stdout"; $as_echo "xapi1
 
116042
" | \
 
116043
  $at_diff - "$at_stdout" || at_failed=:
 
116044
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
116045
if $at_failed; then :
 
116046
  cp pid savepid
 
116047
   { set +x
 
116048
$as_echo "$at_srcdir/ovs-vsctl.at:520: ovs-appctl -t \$PWD/unixctl -e exit"
 
116049
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:520"
 
116050
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116051
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116052
at_status=$? at_failed=false
 
116053
$at_check_filter
 
116054
echo stderr:; cat "$at_stderr"
 
116055
echo stdout:; cat "$at_stdout"
 
116056
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
116057
$at_failed && at_fn_log_failure
 
116058
$at_traceon; }
 
116059
 
 
116060
   { set +x
 
116061
$as_echo "$at_srcdir/ovs-vsctl.at:520: # First try a quick sleep, so that the test completes very quickly
 
116062
     # in the normal case.  POSIX doesn't require fractional times to
 
116063
     # work, so this might not work.
 
116064
     sleep 0.1
 
116065
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116066
     # Then wait up to 10 seconds.
 
116067
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116068
       sleep 1
 
116069
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116070
     done
 
116071
     exit 1"
 
116072
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:520"
 
116073
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116074
     # in the normal case.  POSIX doesn't require fractional times to
 
116075
     # work, so this might not work.
 
116076
     sleep 0.1
 
116077
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116078
     # Then wait up to 10 seconds.
 
116079
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116080
       sleep 1
 
116081
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116082
     done
 
116083
     exit 1
 
116084
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116085
at_status=$? at_failed=false
 
116086
$at_check_filter
 
116087
echo stderr:; cat "$at_stderr"
 
116088
echo stdout:; cat "$at_stdout"
 
116089
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:520"
 
116090
if $at_failed; then :
 
116091
  kill `cat savepid`
 
116092
fi
 
116093
$at_failed && at_fn_log_failure
 
116094
$at_traceon; }
 
116095
 
 
116096
fi
 
116097
$at_failed && at_fn_log_failure
 
116098
$at_traceon; }
 
116099
 
 
116100
{ set +x
 
116101
$as_echo "$at_srcdir/ovs-vsctl.at:521: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
116102
"
 
116103
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:521"
 
116104
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-ifaces xapi1
 
116105
 
 
116106
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116107
at_status=$? at_failed=false
 
116108
$at_check_filter
 
116109
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116110
echo >>"$at_stdout"; $as_echo "eth0
 
116111
eth1
 
116112
" | \
 
116113
  $at_diff - "$at_stdout" || at_failed=:
 
116114
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116115
if $at_failed; then :
 
116116
  cp pid savepid
 
116117
   { set +x
 
116118
$as_echo "$at_srcdir/ovs-vsctl.at:521: ovs-appctl -t \$PWD/unixctl -e exit"
 
116119
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:521"
 
116120
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116121
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116122
at_status=$? at_failed=false
 
116123
$at_check_filter
 
116124
echo stderr:; cat "$at_stderr"
 
116125
echo stdout:; cat "$at_stdout"
 
116126
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116127
$at_failed && at_fn_log_failure
 
116128
$at_traceon; }
 
116129
 
 
116130
   { set +x
 
116131
$as_echo "$at_srcdir/ovs-vsctl.at:521: # First try a quick sleep, so that the test completes very quickly
 
116132
     # in the normal case.  POSIX doesn't require fractional times to
 
116133
     # work, so this might not work.
 
116134
     sleep 0.1
 
116135
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116136
     # Then wait up to 10 seconds.
 
116137
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116138
       sleep 1
 
116139
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116140
     done
 
116141
     exit 1"
 
116142
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:521"
 
116143
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116144
     # in the normal case.  POSIX doesn't require fractional times to
 
116145
     # work, so this might not work.
 
116146
     sleep 0.1
 
116147
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116148
     # Then wait up to 10 seconds.
 
116149
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116150
       sleep 1
 
116151
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116152
     done
 
116153
     exit 1
 
116154
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116155
at_status=$? at_failed=false
 
116156
$at_check_filter
 
116157
echo stderr:; cat "$at_stderr"
 
116158
echo stdout:; cat "$at_stdout"
 
116159
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116160
if $at_failed; then :
 
116161
  kill `cat savepid`
 
116162
fi
 
116163
$at_failed && at_fn_log_failure
 
116164
$at_traceon; }
 
116165
 
 
116166
fi
 
116167
$at_failed && at_fn_log_failure
 
116168
$at_traceon; }
 
116169
 
 
116170
   { set +x
 
116171
$as_echo "$at_srcdir/ovs-vsctl.at:521: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
116172
"
 
116173
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:521"
 
116174
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br xapi1
 
116175
 
 
116176
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116177
at_status=$? at_failed=false
 
116178
$at_check_filter
 
116179
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no interface named xapi1
 
116180
" | \
 
116181
  $at_diff - "$at_stderr" || at_failed=:
 
116182
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
116183
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116184
if $at_failed; then :
 
116185
  cp pid savepid
 
116186
   { set +x
 
116187
$as_echo "$at_srcdir/ovs-vsctl.at:521: ovs-appctl -t \$PWD/unixctl -e exit"
 
116188
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:521"
 
116189
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116190
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116191
at_status=$? at_failed=false
 
116192
$at_check_filter
 
116193
echo stderr:; cat "$at_stderr"
 
116194
echo stdout:; cat "$at_stdout"
 
116195
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116196
$at_failed && at_fn_log_failure
 
116197
$at_traceon; }
 
116198
 
 
116199
   { set +x
 
116200
$as_echo "$at_srcdir/ovs-vsctl.at:521: # First try a quick sleep, so that the test completes very quickly
 
116201
     # in the normal case.  POSIX doesn't require fractional times to
 
116202
     # work, so this might not work.
 
116203
     sleep 0.1
 
116204
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116205
     # Then wait up to 10 seconds.
 
116206
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116207
       sleep 1
 
116208
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116209
     done
 
116210
     exit 1"
 
116211
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:521"
 
116212
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116213
     # in the normal case.  POSIX doesn't require fractional times to
 
116214
     # work, so this might not work.
 
116215
     sleep 0.1
 
116216
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116217
     # Then wait up to 10 seconds.
 
116218
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116219
       sleep 1
 
116220
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116221
     done
 
116222
     exit 1
 
116223
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116224
at_status=$? at_failed=false
 
116225
$at_check_filter
 
116226
echo stderr:; cat "$at_stderr"
 
116227
echo stdout:; cat "$at_stdout"
 
116228
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116229
if $at_failed; then :
 
116230
  kill `cat savepid`
 
116231
fi
 
116232
$at_failed && at_fn_log_failure
 
116233
$at_traceon; }
 
116234
 
 
116235
fi
 
116236
$at_failed && at_fn_log_failure
 
116237
$at_traceon; }
 
116238
 
 
116239
   { set +x
 
116240
$as_echo "$at_srcdir/ovs-vsctl.at:521: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
116241
"
 
116242
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:521"
 
116243
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth0
 
116244
 
 
116245
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116246
at_status=$? at_failed=false
 
116247
$at_check_filter
 
116248
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116249
echo >>"$at_stdout"; $as_echo "xapi1
 
116250
" | \
 
116251
  $at_diff - "$at_stdout" || at_failed=:
 
116252
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116253
if $at_failed; then :
 
116254
  cp pid savepid
 
116255
   { set +x
 
116256
$as_echo "$at_srcdir/ovs-vsctl.at:521: ovs-appctl -t \$PWD/unixctl -e exit"
 
116257
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:521"
 
116258
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116259
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116260
at_status=$? at_failed=false
 
116261
$at_check_filter
 
116262
echo stderr:; cat "$at_stderr"
 
116263
echo stdout:; cat "$at_stdout"
 
116264
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116265
$at_failed && at_fn_log_failure
 
116266
$at_traceon; }
 
116267
 
 
116268
   { set +x
 
116269
$as_echo "$at_srcdir/ovs-vsctl.at:521: # First try a quick sleep, so that the test completes very quickly
 
116270
     # in the normal case.  POSIX doesn't require fractional times to
 
116271
     # work, so this might not work.
 
116272
     sleep 0.1
 
116273
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116274
     # Then wait up to 10 seconds.
 
116275
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116276
       sleep 1
 
116277
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116278
     done
 
116279
     exit 1"
 
116280
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:521"
 
116281
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116282
     # in the normal case.  POSIX doesn't require fractional times to
 
116283
     # work, so this might not work.
 
116284
     sleep 0.1
 
116285
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116286
     # Then wait up to 10 seconds.
 
116287
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116288
       sleep 1
 
116289
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116290
     done
 
116291
     exit 1
 
116292
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116293
at_status=$? at_failed=false
 
116294
$at_check_filter
 
116295
echo stderr:; cat "$at_stderr"
 
116296
echo stdout:; cat "$at_stdout"
 
116297
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116298
if $at_failed; then :
 
116299
  kill `cat savepid`
 
116300
fi
 
116301
$at_failed && at_fn_log_failure
 
116302
$at_traceon; }
 
116303
 
 
116304
fi
 
116305
$at_failed && at_fn_log_failure
 
116306
$at_traceon; }
 
116307
{ set +x
 
116308
$as_echo "$at_srcdir/ovs-vsctl.at:521: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth1
 
116309
"
 
116310
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:521"
 
116311
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- iface-to-br eth1
 
116312
 
 
116313
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116314
at_status=$? at_failed=false
 
116315
$at_check_filter
 
116316
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116317
echo >>"$at_stdout"; $as_echo "xapi1
 
116318
" | \
 
116319
  $at_diff - "$at_stdout" || at_failed=:
 
116320
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116321
if $at_failed; then :
 
116322
  cp pid savepid
 
116323
   { set +x
 
116324
$as_echo "$at_srcdir/ovs-vsctl.at:521: ovs-appctl -t \$PWD/unixctl -e exit"
 
116325
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:521"
 
116326
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116327
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116328
at_status=$? at_failed=false
 
116329
$at_check_filter
 
116330
echo stderr:; cat "$at_stderr"
 
116331
echo stdout:; cat "$at_stdout"
 
116332
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116333
$at_failed && at_fn_log_failure
 
116334
$at_traceon; }
 
116335
 
 
116336
   { set +x
 
116337
$as_echo "$at_srcdir/ovs-vsctl.at:521: # First try a quick sleep, so that the test completes very quickly
 
116338
     # in the normal case.  POSIX doesn't require fractional times to
 
116339
     # work, so this might not work.
 
116340
     sleep 0.1
 
116341
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116342
     # Then wait up to 10 seconds.
 
116343
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116344
       sleep 1
 
116345
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116346
     done
 
116347
     exit 1"
 
116348
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:521"
 
116349
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116350
     # in the normal case.  POSIX doesn't require fractional times to
 
116351
     # work, so this might not work.
 
116352
     sleep 0.1
 
116353
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116354
     # Then wait up to 10 seconds.
 
116355
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116356
       sleep 1
 
116357
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116358
     done
 
116359
     exit 1
 
116360
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116361
at_status=$? at_failed=false
 
116362
$at_check_filter
 
116363
echo stderr:; cat "$at_stderr"
 
116364
echo stdout:; cat "$at_stdout"
 
116365
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:521"
 
116366
if $at_failed; then :
 
116367
  kill `cat savepid`
 
116368
fi
 
116369
$at_failed && at_fn_log_failure
 
116370
$at_traceon; }
 
116371
 
 
116372
fi
 
116373
$at_failed && at_fn_log_failure
 
116374
$at_traceon; }
 
116375
 
 
116376
cp pid savepid
 
116377
   { set +x
 
116378
$as_echo "$at_srcdir/ovs-vsctl.at:522: ovs-appctl -t \$PWD/unixctl -e exit"
 
116379
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:522"
 
116380
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116381
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116382
at_status=$? at_failed=false
 
116383
$at_check_filter
 
116384
echo stderr:; cat "$at_stderr"
 
116385
echo stdout:; cat "$at_stdout"
 
116386
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:522"
 
116387
$at_failed && at_fn_log_failure
 
116388
$at_traceon; }
 
116389
 
 
116390
   { set +x
 
116391
$as_echo "$at_srcdir/ovs-vsctl.at:522: # First try a quick sleep, so that the test completes very quickly
 
116392
     # in the normal case.  POSIX doesn't require fractional times to
 
116393
     # work, so this might not work.
 
116394
     sleep 0.1
 
116395
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116396
     # Then wait up to 10 seconds.
 
116397
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116398
       sleep 1
 
116399
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116400
     done
 
116401
     exit 1"
 
116402
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:522"
 
116403
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116404
     # in the normal case.  POSIX doesn't require fractional times to
 
116405
     # work, so this might not work.
 
116406
     sleep 0.1
 
116407
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116408
     # Then wait up to 10 seconds.
 
116409
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116410
       sleep 1
 
116411
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116412
     done
 
116413
     exit 1
 
116414
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116415
at_status=$? at_failed=false
 
116416
$at_check_filter
 
116417
echo stderr:; cat "$at_stderr"
 
116418
echo stdout:; cat "$at_stdout"
 
116419
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:522"
 
116420
if $at_failed; then :
 
116421
  kill `cat savepid`
 
116422
fi
 
116423
$at_failed && at_fn_log_failure
 
116424
$at_traceon; }
 
116425
 
 
116426
  set +x
 
116427
  $at_times_p && times >"$at_times_file"
 
116428
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
116429
read at_status <"$at_status_file"
 
116430
#AT_STOP_965
 
116431
#AT_START_966
 
116432
at_fn_group_banner 966 'ovs-vsctl.at:525' \
 
116433
  "fake bridge on bond + del-br real bridge" "       " 67
 
116434
at_xfail=no
 
116435
(
 
116436
  $as_echo "966. $at_setup_line: testing $at_desc ..."
 
116437
  $at_traceon
 
116438
 
 
116439
 
 
116440
{ set +x
 
116441
$as_echo "$at_srcdir/ovs-vsctl.at:527: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
116442
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:527"
 
116443
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
116444
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116445
at_status=$? at_failed=false
 
116446
$at_check_filter
 
116447
echo stderr:; cat "$at_stderr"
 
116448
echo stdout:; tee stdout <"$at_stdout"
 
116449
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:527"
 
116450
$at_failed && at_fn_log_failure
 
116451
$at_traceon; }
 
116452
 
 
116453
   { set +x
 
116454
$as_echo "$at_srcdir/ovs-vsctl.at:527: ovsdb-tool transact db \\
 
116455
        '[\"Open_vSwitch\",
 
116456
          {\"op\": \"insert\",
 
116457
           \"table\": \"Open_vSwitch\",
 
116458
           \"row\": {}}]'"
 
116459
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:527"
 
116460
( $at_check_trace; ovsdb-tool transact db \
 
116461
        '["Open_vSwitch",
 
116462
          {"op": "insert",
 
116463
           "table": "Open_vSwitch",
 
116464
           "row": {}}]'
 
116465
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116466
at_status=$? at_failed=false
 
116467
$at_check_filter
 
116468
echo stderr:; cat "$at_stderr"
 
116469
echo stdout:; cat "$at_stdout"
 
116470
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:527"
 
116471
$at_failed && at_fn_log_failure
 
116472
$at_traceon; }
 
116473
 
 
116474
   { set +x
 
116475
$as_echo "$at_srcdir/ovs-vsctl.at:527: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
116476
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:527"
 
116477
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
116478
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116479
at_status=$? at_failed=false
 
116480
$at_check_filter
 
116481
echo stderr:; cat "$at_stderr"
 
116482
echo stdout:; cat "$at_stdout"
 
116483
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:527"
 
116484
$at_failed && at_fn_log_failure
 
116485
$at_traceon; }
 
116486
 
 
116487
{ set +x
 
116488
$as_echo "$at_srcdir/ovs-vsctl.at:528: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1
 
116489
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond xapi1 bond0 eth0 eth1
 
116490
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi2 xapi1 11
 
116491
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi2 bond0.11
 
116492
"
 
116493
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:528"
 
116494
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi1
 
116495
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond xapi1 bond0 eth0 eth1
 
116496
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br xapi2 xapi1 11
 
116497
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port xapi2 bond0.11
 
116498
 
 
116499
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116500
at_status=$? at_failed=false
 
116501
$at_check_filter
 
116502
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116503
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
116504
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:528"
 
116505
if $at_failed; then :
 
116506
  cp pid savepid
 
116507
   { set +x
 
116508
$as_echo "$at_srcdir/ovs-vsctl.at:528: ovs-appctl -t \$PWD/unixctl -e exit"
 
116509
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:528"
 
116510
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116511
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116512
at_status=$? at_failed=false
 
116513
$at_check_filter
 
116514
echo stderr:; cat "$at_stderr"
 
116515
echo stdout:; cat "$at_stdout"
 
116516
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:528"
 
116517
$at_failed && at_fn_log_failure
 
116518
$at_traceon; }
 
116519
 
 
116520
   { set +x
 
116521
$as_echo "$at_srcdir/ovs-vsctl.at:528: # First try a quick sleep, so that the test completes very quickly
 
116522
     # in the normal case.  POSIX doesn't require fractional times to
 
116523
     # work, so this might not work.
 
116524
     sleep 0.1
 
116525
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116526
     # Then wait up to 10 seconds.
 
116527
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116528
       sleep 1
 
116529
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116530
     done
 
116531
     exit 1"
 
116532
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:528"
 
116533
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116534
     # in the normal case.  POSIX doesn't require fractional times to
 
116535
     # work, so this might not work.
 
116536
     sleep 0.1
 
116537
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116538
     # Then wait up to 10 seconds.
 
116539
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116540
       sleep 1
 
116541
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116542
     done
 
116543
     exit 1
 
116544
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116545
at_status=$? at_failed=false
 
116546
$at_check_filter
 
116547
echo stderr:; cat "$at_stderr"
 
116548
echo stdout:; cat "$at_stdout"
 
116549
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:528"
 
116550
if $at_failed; then :
 
116551
  kill `cat savepid`
 
116552
fi
 
116553
$at_failed && at_fn_log_failure
 
116554
$at_traceon; }
 
116555
 
 
116556
fi
 
116557
$at_failed && at_fn_log_failure
 
116558
$at_traceon; }
 
116559
 
 
116560
{ set +x
 
116561
$as_echo "$at_srcdir/ovs-vsctl.at:529: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xapi1
 
116562
"
 
116563
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:529"
 
116564
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- del-br xapi1
 
116565
 
 
116566
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116567
at_status=$? at_failed=false
 
116568
$at_check_filter
 
116569
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116570
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
116571
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:529"
 
116572
$at_failed && at_fn_log_failure
 
116573
$at_traceon; }
 
116574
 
 
116575
   { set +x
 
116576
$as_echo "$at_srcdir/ovs-vsctl.at:530: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
116577
"
 
116578
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:530"
 
116579
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list-br
 
116580
 
 
116581
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116582
at_status=$? at_failed=false
 
116583
$at_check_filter
 
116584
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116585
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
116586
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116587
if $at_failed; then :
 
116588
  cp pid savepid
 
116589
   { set +x
 
116590
$as_echo "$at_srcdir/ovs-vsctl.at:530: ovs-appctl -t \$PWD/unixctl -e exit"
 
116591
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:530"
 
116592
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116593
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116594
at_status=$? at_failed=false
 
116595
$at_check_filter
 
116596
echo stderr:; cat "$at_stderr"
 
116597
echo stdout:; cat "$at_stdout"
 
116598
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116599
$at_failed && at_fn_log_failure
 
116600
$at_traceon; }
 
116601
 
 
116602
   { set +x
 
116603
$as_echo "$at_srcdir/ovs-vsctl.at:530: # First try a quick sleep, so that the test completes very quickly
 
116604
     # in the normal case.  POSIX doesn't require fractional times to
 
116605
     # work, so this might not work.
 
116606
     sleep 0.1
 
116607
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116608
     # Then wait up to 10 seconds.
 
116609
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116610
       sleep 1
 
116611
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116612
     done
 
116613
     exit 1"
 
116614
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:530"
 
116615
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116616
     # in the normal case.  POSIX doesn't require fractional times to
 
116617
     # work, so this might not work.
 
116618
     sleep 0.1
 
116619
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116620
     # Then wait up to 10 seconds.
 
116621
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116622
       sleep 1
 
116623
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116624
     done
 
116625
     exit 1
 
116626
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116627
at_status=$? at_failed=false
 
116628
$at_check_filter
 
116629
echo stderr:; cat "$at_stderr"
 
116630
echo stdout:; cat "$at_stdout"
 
116631
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116632
if $at_failed; then :
 
116633
  kill `cat savepid`
 
116634
fi
 
116635
$at_failed && at_fn_log_failure
 
116636
$at_traceon; }
 
116637
 
 
116638
fi
 
116639
$at_failed && at_fn_log_failure
 
116640
$at_traceon; }
 
116641
 
 
116642
 
 
116643
      { set +x
 
116644
$as_echo "$at_srcdir/ovs-vsctl.at:530: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
116645
"
 
116646
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:530"
 
116647
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- list-br
 
116648
 
 
116649
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116650
at_status=$? at_failed=false
 
116651
$at_check_filter
 
116652
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116653
echo >>"$at_stdout"; $as_echo "
 
116654
" | \
 
116655
  $at_diff - "$at_stdout" || at_failed=:
 
116656
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116657
if $at_failed; then :
 
116658
  cp pid savepid
 
116659
   { set +x
 
116660
$as_echo "$at_srcdir/ovs-vsctl.at:530: ovs-appctl -t \$PWD/unixctl -e exit"
 
116661
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:530"
 
116662
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116663
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116664
at_status=$? at_failed=false
 
116665
$at_check_filter
 
116666
echo stderr:; cat "$at_stderr"
 
116667
echo stdout:; cat "$at_stdout"
 
116668
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116669
$at_failed && at_fn_log_failure
 
116670
$at_traceon; }
 
116671
 
 
116672
   { set +x
 
116673
$as_echo "$at_srcdir/ovs-vsctl.at:530: # First try a quick sleep, so that the test completes very quickly
 
116674
     # in the normal case.  POSIX doesn't require fractional times to
 
116675
     # work, so this might not work.
 
116676
     sleep 0.1
 
116677
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116678
     # Then wait up to 10 seconds.
 
116679
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116680
       sleep 1
 
116681
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116682
     done
 
116683
     exit 1"
 
116684
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:530"
 
116685
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116686
     # in the normal case.  POSIX doesn't require fractional times to
 
116687
     # work, so this might not work.
 
116688
     sleep 0.1
 
116689
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116690
     # Then wait up to 10 seconds.
 
116691
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116692
       sleep 1
 
116693
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116694
     done
 
116695
     exit 1
 
116696
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116697
at_status=$? at_failed=false
 
116698
$at_check_filter
 
116699
echo stderr:; cat "$at_stderr"
 
116700
echo stdout:; cat "$at_stdout"
 
116701
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116702
if $at_failed; then :
 
116703
  kill `cat savepid`
 
116704
fi
 
116705
$at_failed && at_fn_log_failure
 
116706
$at_traceon; }
 
116707
 
 
116708
fi
 
116709
$at_failed && at_fn_log_failure
 
116710
$at_traceon; }
 
116711
 
 
116712
 
 
116713
 
 
116714
   { set +x
 
116715
$as_echo "$at_srcdir/ovs-vsctl.at:530: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
116716
"
 
116717
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:530"
 
116718
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- br-exists nonexistent
 
116719
 
 
116720
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116721
at_status=$? at_failed=false
 
116722
$at_check_filter
 
116723
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116724
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
116725
at_fn_check_status 2 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116726
if $at_failed; then :
 
116727
  cp pid savepid
 
116728
   { set +x
 
116729
$as_echo "$at_srcdir/ovs-vsctl.at:530: ovs-appctl -t \$PWD/unixctl -e exit"
 
116730
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:530"
 
116731
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116732
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116733
at_status=$? at_failed=false
 
116734
$at_check_filter
 
116735
echo stderr:; cat "$at_stderr"
 
116736
echo stdout:; cat "$at_stdout"
 
116737
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116738
$at_failed && at_fn_log_failure
 
116739
$at_traceon; }
 
116740
 
 
116741
   { set +x
 
116742
$as_echo "$at_srcdir/ovs-vsctl.at:530: # First try a quick sleep, so that the test completes very quickly
 
116743
     # in the normal case.  POSIX doesn't require fractional times to
 
116744
     # work, so this might not work.
 
116745
     sleep 0.1
 
116746
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116747
     # Then wait up to 10 seconds.
 
116748
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116749
       sleep 1
 
116750
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116751
     done
 
116752
     exit 1"
 
116753
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:530"
 
116754
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116755
     # in the normal case.  POSIX doesn't require fractional times to
 
116756
     # work, so this might not work.
 
116757
     sleep 0.1
 
116758
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116759
     # Then wait up to 10 seconds.
 
116760
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116761
       sleep 1
 
116762
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116763
     done
 
116764
     exit 1
 
116765
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116766
at_status=$? at_failed=false
 
116767
$at_check_filter
 
116768
echo stderr:; cat "$at_stderr"
 
116769
echo stdout:; cat "$at_stdout"
 
116770
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:530"
 
116771
if $at_failed; then :
 
116772
  kill `cat savepid`
 
116773
fi
 
116774
$at_failed && at_fn_log_failure
 
116775
$at_traceon; }
 
116776
 
 
116777
fi
 
116778
$at_failed && at_fn_log_failure
 
116779
$at_traceon; }
 
116780
 
 
116781
 
 
116782
 
 
116783
cp pid savepid
 
116784
   { set +x
 
116785
$as_echo "$at_srcdir/ovs-vsctl.at:531: ovs-appctl -t \$PWD/unixctl -e exit"
 
116786
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:531"
 
116787
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116788
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116789
at_status=$? at_failed=false
 
116790
$at_check_filter
 
116791
echo stderr:; cat "$at_stderr"
 
116792
echo stdout:; cat "$at_stdout"
 
116793
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:531"
 
116794
$at_failed && at_fn_log_failure
 
116795
$at_traceon; }
 
116796
 
 
116797
   { set +x
 
116798
$as_echo "$at_srcdir/ovs-vsctl.at:531: # First try a quick sleep, so that the test completes very quickly
 
116799
     # in the normal case.  POSIX doesn't require fractional times to
 
116800
     # work, so this might not work.
 
116801
     sleep 0.1
 
116802
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116803
     # Then wait up to 10 seconds.
 
116804
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116805
       sleep 1
 
116806
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116807
     done
 
116808
     exit 1"
 
116809
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:531"
 
116810
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116811
     # in the normal case.  POSIX doesn't require fractional times to
 
116812
     # work, so this might not work.
 
116813
     sleep 0.1
 
116814
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116815
     # Then wait up to 10 seconds.
 
116816
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116817
       sleep 1
 
116818
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116819
     done
 
116820
     exit 1
 
116821
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116822
at_status=$? at_failed=false
 
116823
$at_check_filter
 
116824
echo stderr:; cat "$at_stderr"
 
116825
echo stdout:; cat "$at_stdout"
 
116826
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:531"
 
116827
if $at_failed; then :
 
116828
  kill `cat savepid`
 
116829
fi
 
116830
$at_failed && at_fn_log_failure
 
116831
$at_traceon; }
 
116832
 
 
116833
  set +x
 
116834
  $at_times_p && times >"$at_times_file"
 
116835
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
116836
read at_status <"$at_status_file"
 
116837
#AT_STOP_966
 
116838
#AT_START_967
 
116839
at_fn_group_banner 967 'ovs-vsctl.at:537' \
 
116840
  "managers" "                                       " 68
 
116841
at_xfail=no
 
116842
(
 
116843
  $as_echo "967. $at_setup_line: testing $at_desc ..."
 
116844
  $at_traceon
 
116845
 
 
116846
 
 
116847
{ set +x
 
116848
$as_echo "$at_srcdir/ovs-vsctl.at:539: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
116849
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:539"
 
116850
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
116851
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116852
at_status=$? at_failed=false
 
116853
$at_check_filter
 
116854
echo stderr:; cat "$at_stderr"
 
116855
echo stdout:; tee stdout <"$at_stdout"
 
116856
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:539"
 
116857
$at_failed && at_fn_log_failure
 
116858
$at_traceon; }
 
116859
 
 
116860
   { set +x
 
116861
$as_echo "$at_srcdir/ovs-vsctl.at:539: ovsdb-tool transact db \\
 
116862
        '[\"Open_vSwitch\",
 
116863
          {\"op\": \"insert\",
 
116864
           \"table\": \"Open_vSwitch\",
 
116865
           \"row\": {}}]'"
 
116866
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:539"
 
116867
( $at_check_trace; ovsdb-tool transact db \
 
116868
        '["Open_vSwitch",
 
116869
          {"op": "insert",
 
116870
           "table": "Open_vSwitch",
 
116871
           "row": {}}]'
 
116872
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116873
at_status=$? at_failed=false
 
116874
$at_check_filter
 
116875
echo stderr:; cat "$at_stderr"
 
116876
echo stdout:; cat "$at_stdout"
 
116877
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:539"
 
116878
$at_failed && at_fn_log_failure
 
116879
$at_traceon; }
 
116880
 
 
116881
   { set +x
 
116882
$as_echo "$at_srcdir/ovs-vsctl.at:539: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
116883
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:539"
 
116884
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
116885
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116886
at_status=$? at_failed=false
 
116887
$at_check_filter
 
116888
echo stderr:; cat "$at_stderr"
 
116889
echo stdout:; cat "$at_stdout"
 
116890
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:539"
 
116891
$at_failed && at_fn_log_failure
 
116892
$at_traceon; }
 
116893
 
 
116894
{ set +x
 
116895
$as_echo "$at_srcdir/ovs-vsctl.at:540: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- del-manager -- get-manager -- set-manager tcp:4.5.6.7 -- get-manager -- set-manager tcp:8.9.10.11 tcp:5.4.3.2 -- get-manager -- del-manager -- get-manager"
 
116896
at_fn_check_prepare_trace "ovs-vsctl.at:540"
 
116897
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- del-manager -- get-manager -- set-manager tcp:4.5.6.7 -- get-manager -- set-manager tcp:8.9.10.11 tcp:5.4.3.2 -- get-manager -- del-manager -- get-manager
 
116898
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116899
at_status=$? at_failed=false
 
116900
$at_check_filter
 
116901
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
116902
echo >>"$at_stdout"; $as_echo "
 
116903
 
 
116904
 
 
116905
tcp:4.5.6.7
 
116906
 
 
116907
tcp:5.4.3.2\\ntcp:8.9.10.11
 
116908
 
 
116909
 
 
116910
" | \
 
116911
  $at_diff - "$at_stdout" || at_failed=:
 
116912
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:540"
 
116913
if $at_failed; then :
 
116914
  cp pid savepid
 
116915
   { set +x
 
116916
$as_echo "$at_srcdir/ovs-vsctl.at:540: ovs-appctl -t \$PWD/unixctl -e exit"
 
116917
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:540"
 
116918
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116919
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116920
at_status=$? at_failed=false
 
116921
$at_check_filter
 
116922
echo stderr:; cat "$at_stderr"
 
116923
echo stdout:; cat "$at_stdout"
 
116924
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:540"
 
116925
$at_failed && at_fn_log_failure
 
116926
$at_traceon; }
 
116927
 
 
116928
   { set +x
 
116929
$as_echo "$at_srcdir/ovs-vsctl.at:540: # First try a quick sleep, so that the test completes very quickly
 
116930
     # in the normal case.  POSIX doesn't require fractional times to
 
116931
     # work, so this might not work.
 
116932
     sleep 0.1
 
116933
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116934
     # Then wait up to 10 seconds.
 
116935
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116936
       sleep 1
 
116937
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116938
     done
 
116939
     exit 1"
 
116940
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:540"
 
116941
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116942
     # in the normal case.  POSIX doesn't require fractional times to
 
116943
     # work, so this might not work.
 
116944
     sleep 0.1
 
116945
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
116946
     # Then wait up to 10 seconds.
 
116947
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116948
       sleep 1
 
116949
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
116950
     done
 
116951
     exit 1
 
116952
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116953
at_status=$? at_failed=false
 
116954
$at_check_filter
 
116955
echo stderr:; cat "$at_stderr"
 
116956
echo stdout:; cat "$at_stdout"
 
116957
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:540"
 
116958
if $at_failed; then :
 
116959
  kill `cat savepid`
 
116960
fi
 
116961
$at_failed && at_fn_log_failure
 
116962
$at_traceon; }
 
116963
 
 
116964
fi
 
116965
$at_failed && at_fn_log_failure
 
116966
$at_traceon; }
 
116967
 
 
116968
cp pid savepid
 
116969
   { set +x
 
116970
$as_echo "$at_srcdir/ovs-vsctl.at:557: ovs-appctl -t \$PWD/unixctl -e exit"
 
116971
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:557"
 
116972
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
116973
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
116974
at_status=$? at_failed=false
 
116975
$at_check_filter
 
116976
echo stderr:; cat "$at_stderr"
 
116977
echo stdout:; cat "$at_stdout"
 
116978
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:557"
 
116979
$at_failed && at_fn_log_failure
 
116980
$at_traceon; }
 
116981
 
 
116982
   { set +x
 
116983
$as_echo "$at_srcdir/ovs-vsctl.at:557: # First try a quick sleep, so that the test completes very quickly
 
116984
     # in the normal case.  POSIX doesn't require fractional times to
 
116985
     # work, so this might not work.
 
116986
     sleep 0.1
 
116987
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116988
     # Then wait up to 10 seconds.
 
116989
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
116990
       sleep 1
 
116991
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
116992
     done
 
116993
     exit 1"
 
116994
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:557"
 
116995
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
116996
     # in the normal case.  POSIX doesn't require fractional times to
 
116997
     # work, so this might not work.
 
116998
     sleep 0.1
 
116999
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117000
     # Then wait up to 10 seconds.
 
117001
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117002
       sleep 1
 
117003
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117004
     done
 
117005
     exit 1
 
117006
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117007
at_status=$? at_failed=false
 
117008
$at_check_filter
 
117009
echo stderr:; cat "$at_stderr"
 
117010
echo stdout:; cat "$at_stdout"
 
117011
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:557"
 
117012
if $at_failed; then :
 
117013
  kill `cat savepid`
 
117014
fi
 
117015
$at_failed && at_fn_log_failure
 
117016
$at_traceon; }
 
117017
 
 
117018
  set +x
 
117019
  $at_times_p && times >"$at_times_file"
 
117020
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
117021
read at_status <"$at_status_file"
 
117022
#AT_STOP_967
 
117023
#AT_START_968
 
117024
at_fn_group_banner 968 'ovs-vsctl.at:563' \
 
117025
  "database commands -- positive checks" "           " 69
 
117026
at_xfail=no
 
117027
(
 
117028
  $as_echo "968. $at_setup_line: testing $at_desc ..."
 
117029
  $at_traceon
 
117030
 
 
117031
 
 
117032
{ set +x
 
117033
$as_echo "$at_srcdir/ovs-vsctl.at:565: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
117034
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:565"
 
117035
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
117036
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117037
at_status=$? at_failed=false
 
117038
$at_check_filter
 
117039
echo stderr:; cat "$at_stderr"
 
117040
echo stdout:; tee stdout <"$at_stdout"
 
117041
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:565"
 
117042
$at_failed && at_fn_log_failure
 
117043
$at_traceon; }
 
117044
 
 
117045
   { set +x
 
117046
$as_echo "$at_srcdir/ovs-vsctl.at:565: ovsdb-tool transact db \\
 
117047
        '[\"Open_vSwitch\",
 
117048
          {\"op\": \"insert\",
 
117049
           \"table\": \"Open_vSwitch\",
 
117050
           \"row\": {}}]'"
 
117051
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:565"
 
117052
( $at_check_trace; ovsdb-tool transact db \
 
117053
        '["Open_vSwitch",
 
117054
          {"op": "insert",
 
117055
           "table": "Open_vSwitch",
 
117056
           "row": {}}]'
 
117057
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117058
at_status=$? at_failed=false
 
117059
$at_check_filter
 
117060
echo stderr:; cat "$at_stderr"
 
117061
echo stdout:; cat "$at_stdout"
 
117062
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:565"
 
117063
$at_failed && at_fn_log_failure
 
117064
$at_traceon; }
 
117065
 
 
117066
   { set +x
 
117067
$as_echo "$at_srcdir/ovs-vsctl.at:565: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
117068
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:565"
 
117069
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
117070
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117071
at_status=$? at_failed=false
 
117072
$at_check_filter
 
117073
echo stderr:; cat "$at_stderr"
 
117074
echo stdout:; cat "$at_stdout"
 
117075
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:565"
 
117076
$at_failed && at_fn_log_failure
 
117077
$at_traceon; }
 
117078
 
 
117079
{ set +x
 
117080
$as_echo "$at_srcdir/ovs-vsctl.at:566: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- --id=@br0 create b name=br0 -- set o . bridges=@br0"
 
117081
at_fn_check_prepare_trace "ovs-vsctl.at:566"
 
117082
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- --id=@br0 create b name=br0 -- set o . bridges=@br0
 
117083
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117084
at_status=$? at_failed=false
 
117085
$at_check_filter
 
117086
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117087
echo stdout:; tee stdout <"$at_stdout"
 
117088
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:566"
 
117089
if $at_failed; then :
 
117090
  cp pid savepid
 
117091
   { set +x
 
117092
$as_echo "$at_srcdir/ovs-vsctl.at:566: ovs-appctl -t \$PWD/unixctl -e exit"
 
117093
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:566"
 
117094
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117095
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117096
at_status=$? at_failed=false
 
117097
$at_check_filter
 
117098
echo stderr:; cat "$at_stderr"
 
117099
echo stdout:; cat "$at_stdout"
 
117100
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:566"
 
117101
$at_failed && at_fn_log_failure
 
117102
$at_traceon; }
 
117103
 
 
117104
   { set +x
 
117105
$as_echo "$at_srcdir/ovs-vsctl.at:566: # First try a quick sleep, so that the test completes very quickly
 
117106
     # in the normal case.  POSIX doesn't require fractional times to
 
117107
     # work, so this might not work.
 
117108
     sleep 0.1
 
117109
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117110
     # Then wait up to 10 seconds.
 
117111
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117112
       sleep 1
 
117113
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117114
     done
 
117115
     exit 1"
 
117116
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:566"
 
117117
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117118
     # in the normal case.  POSIX doesn't require fractional times to
 
117119
     # work, so this might not work.
 
117120
     sleep 0.1
 
117121
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117122
     # Then wait up to 10 seconds.
 
117123
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117124
       sleep 1
 
117125
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117126
     done
 
117127
     exit 1
 
117128
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117129
at_status=$? at_failed=false
 
117130
$at_check_filter
 
117131
echo stderr:; cat "$at_stderr"
 
117132
echo stdout:; cat "$at_stdout"
 
117133
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:566"
 
117134
if $at_failed; then :
 
117135
  kill `cat savepid`
 
117136
fi
 
117137
$at_failed && at_fn_log_failure
 
117138
$at_traceon; }
 
117139
 
 
117140
fi
 
117141
$at_failed && at_fn_log_failure
 
117142
$at_traceon; }
 
117143
 
 
117144
cp stdout out1
 
117145
{ set +x
 
117146
$as_echo "$at_srcdir/ovs-vsctl.at:571: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list b
 
117147
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 _uuid
 
117148
"
 
117149
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:571"
 
117150
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list b
 
117151
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 _uuid
 
117152
 
 
117153
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117154
at_status=$? at_failed=false
 
117155
$at_check_filter
 
117156
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117157
echo stdout:; tee stdout <"$at_stdout"
 
117158
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:571"
 
117159
if $at_failed; then :
 
117160
  cp pid savepid
 
117161
   { set +x
 
117162
$as_echo "$at_srcdir/ovs-vsctl.at:571: ovs-appctl -t \$PWD/unixctl -e exit"
 
117163
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:571"
 
117164
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117165
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117166
at_status=$? at_failed=false
 
117167
$at_check_filter
 
117168
echo stderr:; cat "$at_stderr"
 
117169
echo stdout:; cat "$at_stdout"
 
117170
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:571"
 
117171
$at_failed && at_fn_log_failure
 
117172
$at_traceon; }
 
117173
 
 
117174
   { set +x
 
117175
$as_echo "$at_srcdir/ovs-vsctl.at:571: # First try a quick sleep, so that the test completes very quickly
 
117176
     # in the normal case.  POSIX doesn't require fractional times to
 
117177
     # work, so this might not work.
 
117178
     sleep 0.1
 
117179
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117180
     # Then wait up to 10 seconds.
 
117181
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117182
       sleep 1
 
117183
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117184
     done
 
117185
     exit 1"
 
117186
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:571"
 
117187
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117188
     # in the normal case.  POSIX doesn't require fractional times to
 
117189
     # work, so this might not work.
 
117190
     sleep 0.1
 
117191
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117192
     # Then wait up to 10 seconds.
 
117193
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117194
       sleep 1
 
117195
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117196
     done
 
117197
     exit 1
 
117198
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117199
at_status=$? at_failed=false
 
117200
$at_check_filter
 
117201
echo stderr:; cat "$at_stderr"
 
117202
echo stdout:; cat "$at_stdout"
 
117203
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:571"
 
117204
if $at_failed; then :
 
117205
  kill `cat savepid`
 
117206
fi
 
117207
$at_failed && at_fn_log_failure
 
117208
$at_traceon; }
 
117209
 
 
117210
fi
 
117211
$at_failed && at_fn_log_failure
 
117212
$at_traceon; }
 
117213
 
 
117214
cp stdout out2
 
117215
{ set +x
 
117216
$as_echo "$at_srcdir/ovs-vsctl.at:574: perl \$srcdir/uuidfilt.pl out1 out2"
 
117217
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl out1 out2" "ovs-vsctl.at:574"
 
117218
( $at_check_trace; perl $srcdir/uuidfilt.pl out1 out2
 
117219
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117220
at_status=$? at_failed=false
 
117221
$at_check_filter
 
117222
echo stderr:; cat "$at_stderr"
 
117223
echo >>"$at_stdout"; $as_echo "<0>
 
117224
 
 
117225
_uuid               : <0>
 
117226
controller          : []
 
117227
datapath_id         : []
 
117228
datapath_type       : \"\"
 
117229
external_ids        : {}
 
117230
fail_mode           : []
 
117231
flood_vlans         : []
 
117232
mirrors             : []
 
117233
name                : \"br0\"
 
117234
netflow             : []
 
117235
other_config        : {}
 
117236
ports               : []
 
117237
sflow               : []
 
117238
status              : {}
 
117239
stp_enable          : false
 
117240
<0>
 
117241
" | \
 
117242
  $at_diff - "$at_stdout" || at_failed=:
 
117243
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:574"
 
117244
if $at_failed; then :
 
117245
  test ! -e pid || kill `cat pid`
 
117246
fi
 
117247
$at_failed && at_fn_log_failure
 
117248
$at_traceon; }
 
117249
 
 
117250
{ set +x
 
117251
$as_echo "$at_srcdir/ovs-vsctl.at:594: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --columns=fail_mode,name,datapath_type list b
 
117252
"
 
117253
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:594"
 
117254
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --columns=fail_mode,name,datapath_type list b
 
117255
 
 
117256
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117257
at_status=$? at_failed=false
 
117258
$at_check_filter
 
117259
echo stderr:; cat "$at_stderr"
 
117260
echo >>"$at_stdout"; $as_echo "fail_mode           : []
 
117261
name                : \"br0\"
 
117262
datapath_type       : \"\"
 
117263
" | \
 
117264
  $at_diff - "$at_stdout" || at_failed=:
 
117265
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:594"
 
117266
if $at_failed; then :
 
117267
  test ! -e pid || kill `cat pid`
 
117268
fi
 
117269
$at_failed && at_fn_log_failure
 
117270
$at_traceon; }
 
117271
 
 
117272
{ set +x
 
117273
$as_echo "$at_srcdir/ovs-vsctl.at:601: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --columns=fail_mode,name,datapath_type find b
 
117274
"
 
117275
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:601"
 
117276
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --columns=fail_mode,name,datapath_type find b
 
117277
 
 
117278
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117279
at_status=$? at_failed=false
 
117280
$at_check_filter
 
117281
echo stderr:; cat "$at_stderr"
 
117282
echo >>"$at_stdout"; $as_echo "fail_mode           : []
 
117283
name                : \"br0\"
 
117284
datapath_type       : \"\"
 
117285
" | \
 
117286
  $at_diff - "$at_stdout" || at_failed=:
 
117287
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:601"
 
117288
if $at_failed; then :
 
117289
  test ! -e pid || kill `cat pid`
 
117290
fi
 
117291
$at_failed && at_fn_log_failure
 
117292
$at_traceon; }
 
117293
 
 
117294
{ set +x
 
117295
$as_echo "$at_srcdir/ovs-vsctl.at:608:
 
117296
  ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- --id=@br1 create b name=br1 datapath_type=\"foo\" -- --id=@br2 create b name=br2 external-ids:bar=quux -- add o . bridges @br1 @br2"
 
117297
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:608"
 
117298
( $at_check_trace;
 
117299
  ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- --id=@br1 create b name=br1 datapath_type="foo" -- --id=@br2 create b name=br2 external-ids:bar=quux -- add o . bridges @br1 @br2
 
117300
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117301
at_status=$? at_failed=false
 
117302
$at_check_filter
 
117303
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117304
echo stdout:; tee stdout <"$at_stdout"
 
117305
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:608"
 
117306
if $at_failed; then :
 
117307
  cp pid savepid
 
117308
   { set +x
 
117309
$as_echo "$at_srcdir/ovs-vsctl.at:608: ovs-appctl -t \$PWD/unixctl -e exit"
 
117310
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:608"
 
117311
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117312
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117313
at_status=$? at_failed=false
 
117314
$at_check_filter
 
117315
echo stderr:; cat "$at_stderr"
 
117316
echo stdout:; cat "$at_stdout"
 
117317
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:608"
 
117318
$at_failed && at_fn_log_failure
 
117319
$at_traceon; }
 
117320
 
 
117321
   { set +x
 
117322
$as_echo "$at_srcdir/ovs-vsctl.at:608: # First try a quick sleep, so that the test completes very quickly
 
117323
     # in the normal case.  POSIX doesn't require fractional times to
 
117324
     # work, so this might not work.
 
117325
     sleep 0.1
 
117326
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117327
     # Then wait up to 10 seconds.
 
117328
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117329
       sleep 1
 
117330
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117331
     done
 
117332
     exit 1"
 
117333
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:608"
 
117334
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117335
     # in the normal case.  POSIX doesn't require fractional times to
 
117336
     # work, so this might not work.
 
117337
     sleep 0.1
 
117338
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117339
     # Then wait up to 10 seconds.
 
117340
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117341
       sleep 1
 
117342
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117343
     done
 
117344
     exit 1
 
117345
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117346
at_status=$? at_failed=false
 
117347
$at_check_filter
 
117348
echo stderr:; cat "$at_stderr"
 
117349
echo stdout:; cat "$at_stdout"
 
117350
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:608"
 
117351
if $at_failed; then :
 
117352
  kill `cat savepid`
 
117353
fi
 
117354
$at_failed && at_fn_log_failure
 
117355
$at_traceon; }
 
117356
 
 
117357
fi
 
117358
$at_failed && at_fn_log_failure
 
117359
$at_traceon; }
 
117360
 
 
117361
{ set +x
 
117362
$as_echo "$at_srcdir/ovs-vsctl.at:613: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --columns=name find b datapath_type!=foo
 
117363
"
 
117364
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:613"
 
117365
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --columns=name find b datapath_type!=foo
 
117366
 
 
117367
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117368
at_status=$? at_failed=false
 
117369
$at_check_filter
 
117370
echo stderr:; cat "$at_stderr"
 
117371
echo stdout:; tee stdout <"$at_stdout"
 
117372
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:613"
 
117373
if $at_failed; then :
 
117374
  test ! -e pid || kill `cat pid`
 
117375
fi
 
117376
$at_failed && at_fn_log_failure
 
117377
$at_traceon; }
 
117378
 
 
117379
{ set +x
 
117380
$as_echo "$at_srcdir/ovs-vsctl.at:616: sed -n '/./p' stdout | sort"
 
117381
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-vsctl.at:616"
 
117382
( $at_check_trace; sed -n '/./p' stdout | sort
 
117383
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117384
at_status=$? at_failed=false
 
117385
$at_check_filter
 
117386
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117387
echo >>"$at_stdout"; $as_echo "name                : \"br0\"
 
117388
name                : \"br2\"
 
117389
" | \
 
117390
  $at_diff - "$at_stdout" || at_failed=:
 
117391
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:616"
 
117392
$at_failed && at_fn_log_failure
 
117393
$at_traceon; }
 
117394
 
 
117395
{ set +x
 
117396
$as_echo "$at_srcdir/ovs-vsctl.at:620: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set bridge br0 \\
 
117397
      'other_config:datapath_id=\"0123456789ab\"' \\
 
117398
      'other_config:hwaddr=\"00:11:22:33:44:55\"' \\
 
117399
      'external-ids={\"uuids\"=\"9c45f225-a7cf-439d-976d-83db6271fda1\"}' -- \\
 
117400
     add bridge br0 external_ids '\"roles\"=\"local; remote; cloud\"'
 
117401
"
 
117402
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:620"
 
117403
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set bridge br0 \
 
117404
      'other_config:datapath_id="0123456789ab"' \
 
117405
      'other_config:hwaddr="00:11:22:33:44:55"' \
 
117406
      'external-ids={"uuids"="9c45f225-a7cf-439d-976d-83db6271fda1"}' -- \
 
117407
     add bridge br0 external_ids '"roles"="local; remote; cloud"'
 
117408
 
 
117409
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117410
at_status=$? at_failed=false
 
117411
$at_check_filter
 
117412
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117413
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
117414
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:620"
 
117415
if $at_failed; then :
 
117416
  cp pid savepid
 
117417
   { set +x
 
117418
$as_echo "$at_srcdir/ovs-vsctl.at:620: ovs-appctl -t \$PWD/unixctl -e exit"
 
117419
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:620"
 
117420
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117421
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117422
at_status=$? at_failed=false
 
117423
$at_check_filter
 
117424
echo stderr:; cat "$at_stderr"
 
117425
echo stdout:; cat "$at_stdout"
 
117426
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:620"
 
117427
$at_failed && at_fn_log_failure
 
117428
$at_traceon; }
 
117429
 
 
117430
   { set +x
 
117431
$as_echo "$at_srcdir/ovs-vsctl.at:620: # First try a quick sleep, so that the test completes very quickly
 
117432
     # in the normal case.  POSIX doesn't require fractional times to
 
117433
     # work, so this might not work.
 
117434
     sleep 0.1
 
117435
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117436
     # Then wait up to 10 seconds.
 
117437
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117438
       sleep 1
 
117439
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117440
     done
 
117441
     exit 1"
 
117442
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:620"
 
117443
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117444
     # in the normal case.  POSIX doesn't require fractional times to
 
117445
     # work, so this might not work.
 
117446
     sleep 0.1
 
117447
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117448
     # Then wait up to 10 seconds.
 
117449
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117450
       sleep 1
 
117451
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117452
     done
 
117453
     exit 1
 
117454
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117455
at_status=$? at_failed=false
 
117456
$at_check_filter
 
117457
echo stderr:; cat "$at_stderr"
 
117458
echo stdout:; cat "$at_stdout"
 
117459
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:620"
 
117460
if $at_failed; then :
 
117461
  kill `cat savepid`
 
117462
fi
 
117463
$at_failed && at_fn_log_failure
 
117464
$at_traceon; }
 
117465
 
 
117466
fi
 
117467
$at_failed && at_fn_log_failure
 
117468
$at_traceon; }
 
117469
 
 
117470
{ set +x
 
117471
$as_echo "$at_srcdir/ovs-vsctl.at:628: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- get bridge br0 other_config external-ids
 
117472
"
 
117473
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:628"
 
117474
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline -- get bridge br0 other_config external-ids
 
117475
 
 
117476
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117477
at_status=$? at_failed=false
 
117478
$at_check_filter
 
117479
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117480
echo >>"$at_stdout"; $as_echo "{datapath_id=\"0123456789ab\", hwaddr=\"00:11:22:33:44:55\"}\\n{roles=\"local; remote; cloud\", uuids=\"9c45f225-a7cf-439d-976d-83db6271fda1\"}
 
117481
" | \
 
117482
  $at_diff - "$at_stdout" || at_failed=:
 
117483
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:628"
 
117484
if $at_failed; then :
 
117485
  cp pid savepid
 
117486
   { set +x
 
117487
$as_echo "$at_srcdir/ovs-vsctl.at:628: ovs-appctl -t \$PWD/unixctl -e exit"
 
117488
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:628"
 
117489
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117491
at_status=$? at_failed=false
 
117492
$at_check_filter
 
117493
echo stderr:; cat "$at_stderr"
 
117494
echo stdout:; cat "$at_stdout"
 
117495
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:628"
 
117496
$at_failed && at_fn_log_failure
 
117497
$at_traceon; }
 
117498
 
 
117499
   { set +x
 
117500
$as_echo "$at_srcdir/ovs-vsctl.at:628: # First try a quick sleep, so that the test completes very quickly
 
117501
     # in the normal case.  POSIX doesn't require fractional times to
 
117502
     # work, so this might not work.
 
117503
     sleep 0.1
 
117504
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117505
     # Then wait up to 10 seconds.
 
117506
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117507
       sleep 1
 
117508
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117509
     done
 
117510
     exit 1"
 
117511
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:628"
 
117512
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117513
     # in the normal case.  POSIX doesn't require fractional times to
 
117514
     # work, so this might not work.
 
117515
     sleep 0.1
 
117516
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117517
     # Then wait up to 10 seconds.
 
117518
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117519
       sleep 1
 
117520
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117521
     done
 
117522
     exit 1
 
117523
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117524
at_status=$? at_failed=false
 
117525
$at_check_filter
 
117526
echo stderr:; cat "$at_stderr"
 
117527
echo stdout:; cat "$at_stdout"
 
117528
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:628"
 
117529
if $at_failed; then :
 
117530
  kill `cat savepid`
 
117531
fi
 
117532
$at_failed && at_fn_log_failure
 
117533
$at_traceon; }
 
117534
 
 
117535
fi
 
117536
$at_failed && at_fn_log_failure
 
117537
$at_traceon; }
 
117538
 
 
117539
{ set +x
 
117540
$as_echo "$at_srcdir/ovs-vsctl.at:631: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get bridge br0 other_config:hwaddr -- --if-exists get bridge br0 other-config:nonexistent
 
117541
"
 
117542
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:631"
 
117543
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get bridge br0 other_config:hwaddr -- --if-exists get bridge br0 other-config:nonexistent
 
117544
 
 
117545
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117546
at_status=$? at_failed=false
 
117547
$at_check_filter
 
117548
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117549
echo >>"$at_stdout"; $as_echo "\"00:11:22:33:44:55\"
 
117550
 
 
117551
" | \
 
117552
  $at_diff - "$at_stdout" || at_failed=:
 
117553
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:631"
 
117554
if $at_failed; then :
 
117555
  cp pid savepid
 
117556
   { set +x
 
117557
$as_echo "$at_srcdir/ovs-vsctl.at:631: ovs-appctl -t \$PWD/unixctl -e exit"
 
117558
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:631"
 
117559
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117560
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117561
at_status=$? at_failed=false
 
117562
$at_check_filter
 
117563
echo stderr:; cat "$at_stderr"
 
117564
echo stdout:; cat "$at_stdout"
 
117565
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:631"
 
117566
$at_failed && at_fn_log_failure
 
117567
$at_traceon; }
 
117568
 
 
117569
   { set +x
 
117570
$as_echo "$at_srcdir/ovs-vsctl.at:631: # First try a quick sleep, so that the test completes very quickly
 
117571
     # in the normal case.  POSIX doesn't require fractional times to
 
117572
     # work, so this might not work.
 
117573
     sleep 0.1
 
117574
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117575
     # Then wait up to 10 seconds.
 
117576
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117577
       sleep 1
 
117578
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117579
     done
 
117580
     exit 1"
 
117581
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:631"
 
117582
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117583
     # in the normal case.  POSIX doesn't require fractional times to
 
117584
     # work, so this might not work.
 
117585
     sleep 0.1
 
117586
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117587
     # Then wait up to 10 seconds.
 
117588
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117589
       sleep 1
 
117590
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117591
     done
 
117592
     exit 1
 
117593
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117594
at_status=$? at_failed=false
 
117595
$at_check_filter
 
117596
echo stderr:; cat "$at_stderr"
 
117597
echo stdout:; cat "$at_stdout"
 
117598
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:631"
 
117599
if $at_failed; then :
 
117600
  kill `cat savepid`
 
117601
fi
 
117602
$at_failed && at_fn_log_failure
 
117603
$at_traceon; }
 
117604
 
 
117605
fi
 
117606
$at_failed && at_fn_log_failure
 
117607
$at_traceon; }
 
117608
 
 
117609
{ set +x
 
117610
$as_echo "$at_srcdir/ovs-vsctl.at:635: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- remove br br0 other_config hwaddr 'datapath_id=\"\"' -- get br br0 other_config
 
117611
"
 
117612
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:635"
 
117613
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- remove br br0 other_config hwaddr 'datapath_id=""' -- get br br0 other_config
 
117614
 
 
117615
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117616
at_status=$? at_failed=false
 
117617
$at_check_filter
 
117618
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117619
echo >>"$at_stdout"; $as_echo "{datapath_id=\"0123456789ab\"}
 
117620
" | \
 
117621
  $at_diff - "$at_stdout" || at_failed=:
 
117622
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:635"
 
117623
if $at_failed; then :
 
117624
  cp pid savepid
 
117625
   { set +x
 
117626
$as_echo "$at_srcdir/ovs-vsctl.at:635: ovs-appctl -t \$PWD/unixctl -e exit"
 
117627
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:635"
 
117628
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117629
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117630
at_status=$? at_failed=false
 
117631
$at_check_filter
 
117632
echo stderr:; cat "$at_stderr"
 
117633
echo stdout:; cat "$at_stdout"
 
117634
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:635"
 
117635
$at_failed && at_fn_log_failure
 
117636
$at_traceon; }
 
117637
 
 
117638
   { set +x
 
117639
$as_echo "$at_srcdir/ovs-vsctl.at:635: # First try a quick sleep, so that the test completes very quickly
 
117640
     # in the normal case.  POSIX doesn't require fractional times to
 
117641
     # work, so this might not work.
 
117642
     sleep 0.1
 
117643
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117644
     # Then wait up to 10 seconds.
 
117645
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117646
       sleep 1
 
117647
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117648
     done
 
117649
     exit 1"
 
117650
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:635"
 
117651
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117652
     # in the normal case.  POSIX doesn't require fractional times to
 
117653
     # work, so this might not work.
 
117654
     sleep 0.1
 
117655
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117656
     # Then wait up to 10 seconds.
 
117657
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117658
       sleep 1
 
117659
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117660
     done
 
117661
     exit 1
 
117662
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117663
at_status=$? at_failed=false
 
117664
$at_check_filter
 
117665
echo stderr:; cat "$at_stderr"
 
117666
echo stdout:; cat "$at_stdout"
 
117667
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:635"
 
117668
if $at_failed; then :
 
117669
  kill `cat savepid`
 
117670
fi
 
117671
$at_failed && at_fn_log_failure
 
117672
$at_traceon; }
 
117673
 
 
117674
fi
 
117675
$at_failed && at_fn_log_failure
 
117676
$at_traceon; }
 
117677
 
 
117678
{ set +x
 
117679
$as_echo "$at_srcdir/ovs-vsctl.at:638: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- remove br br0 other_config 'datapath_id=\"0123456789ab\"' -- get br br0 other_config
 
117680
"
 
117681
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:638"
 
117682
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- remove br br0 other_config 'datapath_id="0123456789ab"' -- get br br0 other_config
 
117683
 
 
117684
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117685
at_status=$? at_failed=false
 
117686
$at_check_filter
 
117687
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117688
echo >>"$at_stdout"; $as_echo "{}
 
117689
" | \
 
117690
  $at_diff - "$at_stdout" || at_failed=:
 
117691
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:638"
 
117692
if $at_failed; then :
 
117693
  cp pid savepid
 
117694
   { set +x
 
117695
$as_echo "$at_srcdir/ovs-vsctl.at:638: ovs-appctl -t \$PWD/unixctl -e exit"
 
117696
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:638"
 
117697
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117698
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117699
at_status=$? at_failed=false
 
117700
$at_check_filter
 
117701
echo stderr:; cat "$at_stderr"
 
117702
echo stdout:; cat "$at_stdout"
 
117703
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:638"
 
117704
$at_failed && at_fn_log_failure
 
117705
$at_traceon; }
 
117706
 
 
117707
   { set +x
 
117708
$as_echo "$at_srcdir/ovs-vsctl.at:638: # First try a quick sleep, so that the test completes very quickly
 
117709
     # in the normal case.  POSIX doesn't require fractional times to
 
117710
     # work, so this might not work.
 
117711
     sleep 0.1
 
117712
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117713
     # Then wait up to 10 seconds.
 
117714
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117715
       sleep 1
 
117716
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117717
     done
 
117718
     exit 1"
 
117719
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:638"
 
117720
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117721
     # in the normal case.  POSIX doesn't require fractional times to
 
117722
     # work, so this might not work.
 
117723
     sleep 0.1
 
117724
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117725
     # Then wait up to 10 seconds.
 
117726
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117727
       sleep 1
 
117728
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117729
     done
 
117730
     exit 1
 
117731
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117732
at_status=$? at_failed=false
 
117733
$at_check_filter
 
117734
echo stderr:; cat "$at_stderr"
 
117735
echo stdout:; cat "$at_stdout"
 
117736
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:638"
 
117737
if $at_failed; then :
 
117738
  kill `cat savepid`
 
117739
fi
 
117740
$at_failed && at_fn_log_failure
 
117741
$at_traceon; }
 
117742
 
 
117743
fi
 
117744
$at_failed && at_fn_log_failure
 
117745
$at_traceon; }
 
117746
 
 
117747
{ set +x
 
117748
$as_echo "$at_srcdir/ovs-vsctl.at:641: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- clear br br0 external-ids -- get br br0 external_ids
 
117749
"
 
117750
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:641"
 
117751
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- clear br br0 external-ids -- get br br0 external_ids
 
117752
 
 
117753
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117754
at_status=$? at_failed=false
 
117755
$at_check_filter
 
117756
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117757
echo >>"$at_stdout"; $as_echo "{}
 
117758
" | \
 
117759
  $at_diff - "$at_stdout" || at_failed=:
 
117760
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:641"
 
117761
if $at_failed; then :
 
117762
  cp pid savepid
 
117763
   { set +x
 
117764
$as_echo "$at_srcdir/ovs-vsctl.at:641: ovs-appctl -t \$PWD/unixctl -e exit"
 
117765
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:641"
 
117766
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117767
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117768
at_status=$? at_failed=false
 
117769
$at_check_filter
 
117770
echo stderr:; cat "$at_stderr"
 
117771
echo stdout:; cat "$at_stdout"
 
117772
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:641"
 
117773
$at_failed && at_fn_log_failure
 
117774
$at_traceon; }
 
117775
 
 
117776
   { set +x
 
117777
$as_echo "$at_srcdir/ovs-vsctl.at:641: # First try a quick sleep, so that the test completes very quickly
 
117778
     # in the normal case.  POSIX doesn't require fractional times to
 
117779
     # work, so this might not work.
 
117780
     sleep 0.1
 
117781
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117782
     # Then wait up to 10 seconds.
 
117783
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117784
       sleep 1
 
117785
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117786
     done
 
117787
     exit 1"
 
117788
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:641"
 
117789
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117790
     # in the normal case.  POSIX doesn't require fractional times to
 
117791
     # work, so this might not work.
 
117792
     sleep 0.1
 
117793
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117794
     # Then wait up to 10 seconds.
 
117795
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117796
       sleep 1
 
117797
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117798
     done
 
117799
     exit 1
 
117800
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117801
at_status=$? at_failed=false
 
117802
$at_check_filter
 
117803
echo stderr:; cat "$at_stderr"
 
117804
echo stdout:; cat "$at_stdout"
 
117805
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:641"
 
117806
if $at_failed; then :
 
117807
  kill `cat savepid`
 
117808
fi
 
117809
$at_failed && at_fn_log_failure
 
117810
$at_traceon; }
 
117811
 
 
117812
fi
 
117813
$at_failed && at_fn_log_failure
 
117814
$at_traceon; }
 
117815
 
 
117816
{ set +x
 
117817
$as_echo "$at_srcdir/ovs-vsctl.at:644: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- destroy b br0 -- destroy b br1 -- destroy b br2 -- clear o . bridges"
 
117818
at_fn_check_prepare_trace "ovs-vsctl.at:644"
 
117819
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- destroy b br0 -- destroy b br1 -- destroy b br2 -- clear o . bridges
 
117820
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117821
at_status=$? at_failed=false
 
117822
$at_check_filter
 
117823
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117824
echo stdout:; tee stdout <"$at_stdout"
 
117825
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:644"
 
117826
if $at_failed; then :
 
117827
  cp pid savepid
 
117828
   { set +x
 
117829
$as_echo "$at_srcdir/ovs-vsctl.at:644: ovs-appctl -t \$PWD/unixctl -e exit"
 
117830
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:644"
 
117831
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117832
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117833
at_status=$? at_failed=false
 
117834
$at_check_filter
 
117835
echo stderr:; cat "$at_stderr"
 
117836
echo stdout:; cat "$at_stdout"
 
117837
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:644"
 
117838
$at_failed && at_fn_log_failure
 
117839
$at_traceon; }
 
117840
 
 
117841
   { set +x
 
117842
$as_echo "$at_srcdir/ovs-vsctl.at:644: # First try a quick sleep, so that the test completes very quickly
 
117843
     # in the normal case.  POSIX doesn't require fractional times to
 
117844
     # work, so this might not work.
 
117845
     sleep 0.1
 
117846
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117847
     # Then wait up to 10 seconds.
 
117848
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117849
       sleep 1
 
117850
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117851
     done
 
117852
     exit 1"
 
117853
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:644"
 
117854
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117855
     # in the normal case.  POSIX doesn't require fractional times to
 
117856
     # work, so this might not work.
 
117857
     sleep 0.1
 
117858
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117859
     # Then wait up to 10 seconds.
 
117860
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117861
       sleep 1
 
117862
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117863
     done
 
117864
     exit 1
 
117865
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117866
at_status=$? at_failed=false
 
117867
$at_check_filter
 
117868
echo stderr:; cat "$at_stderr"
 
117869
echo stdout:; cat "$at_stdout"
 
117870
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:644"
 
117871
if $at_failed; then :
 
117872
  kill `cat savepid`
 
117873
fi
 
117874
$at_failed && at_fn_log_failure
 
117875
$at_traceon; }
 
117876
 
 
117877
fi
 
117878
$at_failed && at_fn_log_failure
 
117879
$at_traceon; }
 
117880
 
 
117881
{ set +x
 
117882
$as_echo "$at_srcdir/ovs-vsctl.at:649: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list b
 
117883
"
 
117884
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:649"
 
117885
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list b
 
117886
 
 
117887
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117888
at_status=$? at_failed=false
 
117889
$at_check_filter
 
117890
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
117891
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
117892
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:649"
 
117893
if $at_failed; then :
 
117894
  cp pid savepid
 
117895
   { set +x
 
117896
$as_echo "$at_srcdir/ovs-vsctl.at:649: ovs-appctl -t \$PWD/unixctl -e exit"
 
117897
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:649"
 
117898
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117899
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117900
at_status=$? at_failed=false
 
117901
$at_check_filter
 
117902
echo stderr:; cat "$at_stderr"
 
117903
echo stdout:; cat "$at_stdout"
 
117904
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:649"
 
117905
$at_failed && at_fn_log_failure
 
117906
$at_traceon; }
 
117907
 
 
117908
   { set +x
 
117909
$as_echo "$at_srcdir/ovs-vsctl.at:649: # First try a quick sleep, so that the test completes very quickly
 
117910
     # in the normal case.  POSIX doesn't require fractional times to
 
117911
     # work, so this might not work.
 
117912
     sleep 0.1
 
117913
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117914
     # Then wait up to 10 seconds.
 
117915
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117916
       sleep 1
 
117917
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117918
     done
 
117919
     exit 1"
 
117920
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:649"
 
117921
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117922
     # in the normal case.  POSIX doesn't require fractional times to
 
117923
     # work, so this might not work.
 
117924
     sleep 0.1
 
117925
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117926
     # Then wait up to 10 seconds.
 
117927
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117928
       sleep 1
 
117929
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117930
     done
 
117931
     exit 1
 
117932
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117933
at_status=$? at_failed=false
 
117934
$at_check_filter
 
117935
echo stderr:; cat "$at_stderr"
 
117936
echo stdout:; cat "$at_stdout"
 
117937
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:649"
 
117938
if $at_failed; then :
 
117939
  kill `cat savepid`
 
117940
fi
 
117941
$at_failed && at_fn_log_failure
 
117942
$at_traceon; }
 
117943
 
 
117944
fi
 
117945
$at_failed && at_fn_log_failure
 
117946
$at_traceon; }
 
117947
 
 
117948
cp pid savepid
 
117949
   { set +x
 
117950
$as_echo "$at_srcdir/ovs-vsctl.at:651: ovs-appctl -t \$PWD/unixctl -e exit"
 
117951
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:651"
 
117952
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
117953
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117954
at_status=$? at_failed=false
 
117955
$at_check_filter
 
117956
echo stderr:; cat "$at_stderr"
 
117957
echo stdout:; cat "$at_stdout"
 
117958
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:651"
 
117959
$at_failed && at_fn_log_failure
 
117960
$at_traceon; }
 
117961
 
 
117962
   { set +x
 
117963
$as_echo "$at_srcdir/ovs-vsctl.at:651: # First try a quick sleep, so that the test completes very quickly
 
117964
     # in the normal case.  POSIX doesn't require fractional times to
 
117965
     # work, so this might not work.
 
117966
     sleep 0.1
 
117967
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117968
     # Then wait up to 10 seconds.
 
117969
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117970
       sleep 1
 
117971
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
117972
     done
 
117973
     exit 1"
 
117974
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:651"
 
117975
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
117976
     # in the normal case.  POSIX doesn't require fractional times to
 
117977
     # work, so this might not work.
 
117978
     sleep 0.1
 
117979
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
117980
     # Then wait up to 10 seconds.
 
117981
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
117982
       sleep 1
 
117983
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
117984
     done
 
117985
     exit 1
 
117986
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
117987
at_status=$? at_failed=false
 
117988
$at_check_filter
 
117989
echo stderr:; cat "$at_stderr"
 
117990
echo stdout:; cat "$at_stdout"
 
117991
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:651"
 
117992
if $at_failed; then :
 
117993
  kill `cat savepid`
 
117994
fi
 
117995
$at_failed && at_fn_log_failure
 
117996
$at_traceon; }
 
117997
 
 
117998
  set +x
 
117999
  $at_times_p && times >"$at_times_file"
 
118000
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
118001
read at_status <"$at_status_file"
 
118002
#AT_STOP_968
 
118003
#AT_START_969
 
118004
at_fn_group_banner 969 'ovs-vsctl.at:654' \
 
118005
  "database commands -- negative checks" "           " 69
 
118006
at_xfail=no
 
118007
(
 
118008
  $as_echo "969. $at_setup_line: testing $at_desc ..."
 
118009
  $at_traceon
 
118010
 
 
118011
 
 
118012
{ set +x
 
118013
$as_echo "$at_srcdir/ovs-vsctl.at:656: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
118014
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:656"
 
118015
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
118016
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118017
at_status=$? at_failed=false
 
118018
$at_check_filter
 
118019
echo stderr:; cat "$at_stderr"
 
118020
echo stdout:; tee stdout <"$at_stdout"
 
118021
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:656"
 
118022
$at_failed && at_fn_log_failure
 
118023
$at_traceon; }
 
118024
 
 
118025
   { set +x
 
118026
$as_echo "$at_srcdir/ovs-vsctl.at:656: ovsdb-tool transact db \\
 
118027
        '[\"Open_vSwitch\",
 
118028
          {\"op\": \"insert\",
 
118029
           \"table\": \"Open_vSwitch\",
 
118030
           \"row\": {}}]'"
 
118031
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:656"
 
118032
( $at_check_trace; ovsdb-tool transact db \
 
118033
        '["Open_vSwitch",
 
118034
          {"op": "insert",
 
118035
           "table": "Open_vSwitch",
 
118036
           "row": {}}]'
 
118037
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118038
at_status=$? at_failed=false
 
118039
$at_check_filter
 
118040
echo stderr:; cat "$at_stderr"
 
118041
echo stdout:; cat "$at_stdout"
 
118042
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:656"
 
118043
$at_failed && at_fn_log_failure
 
118044
$at_traceon; }
 
118045
 
 
118046
   { set +x
 
118047
$as_echo "$at_srcdir/ovs-vsctl.at:656: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
118048
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:656"
 
118049
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
118050
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118051
at_status=$? at_failed=false
 
118052
$at_check_filter
 
118053
echo stderr:; cat "$at_stderr"
 
118054
echo stdout:; cat "$at_stdout"
 
118055
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:656"
 
118056
$at_failed && at_fn_log_failure
 
118057
$at_traceon; }
 
118058
 
 
118059
{ set +x
 
118060
$as_echo "$at_srcdir/ovs-vsctl.at:657: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br0
 
118061
"
 
118062
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:657"
 
118063
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br0
 
118064
 
 
118065
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118066
at_status=$? at_failed=false
 
118067
$at_check_filter
 
118068
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
118069
echo stdout:; cat "$at_stdout"
 
118070
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:657"
 
118071
if $at_failed; then :
 
118072
  cp pid savepid
 
118073
   { set +x
 
118074
$as_echo "$at_srcdir/ovs-vsctl.at:657: ovs-appctl -t \$PWD/unixctl -e exit"
 
118075
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:657"
 
118076
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118077
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118078
at_status=$? at_failed=false
 
118079
$at_check_filter
 
118080
echo stderr:; cat "$at_stderr"
 
118081
echo stdout:; cat "$at_stdout"
 
118082
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:657"
 
118083
$at_failed && at_fn_log_failure
 
118084
$at_traceon; }
 
118085
 
 
118086
   { set +x
 
118087
$as_echo "$at_srcdir/ovs-vsctl.at:657: # First try a quick sleep, so that the test completes very quickly
 
118088
     # in the normal case.  POSIX doesn't require fractional times to
 
118089
     # work, so this might not work.
 
118090
     sleep 0.1
 
118091
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118092
     # Then wait up to 10 seconds.
 
118093
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118094
       sleep 1
 
118095
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118096
     done
 
118097
     exit 1"
 
118098
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:657"
 
118099
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118100
     # in the normal case.  POSIX doesn't require fractional times to
 
118101
     # work, so this might not work.
 
118102
     sleep 0.1
 
118103
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118104
     # Then wait up to 10 seconds.
 
118105
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118106
       sleep 1
 
118107
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118108
     done
 
118109
     exit 1
 
118110
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118111
at_status=$? at_failed=false
 
118112
$at_check_filter
 
118113
echo stderr:; cat "$at_stderr"
 
118114
echo stdout:; cat "$at_stdout"
 
118115
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:657"
 
118116
if $at_failed; then :
 
118117
  kill `cat savepid`
 
118118
fi
 
118119
$at_failed && at_fn_log_failure
 
118120
$at_traceon; }
 
118121
 
 
118122
fi
 
118123
$at_failed && at_fn_log_failure
 
118124
$at_traceon; }
 
118125
 
 
118126
{ set +x
 
118127
$as_echo "$at_srcdir/ovs-vsctl.at:659: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br1
 
118128
"
 
118129
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:659"
 
118130
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br1
 
118131
 
 
118132
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118133
at_status=$? at_failed=false
 
118134
$at_check_filter
 
118135
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
118136
echo stdout:; cat "$at_stdout"
 
118137
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:659"
 
118138
if $at_failed; then :
 
118139
  cp pid savepid
 
118140
   { set +x
 
118141
$as_echo "$at_srcdir/ovs-vsctl.at:659: ovs-appctl -t \$PWD/unixctl -e exit"
 
118142
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:659"
 
118143
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118144
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118145
at_status=$? at_failed=false
 
118146
$at_check_filter
 
118147
echo stderr:; cat "$at_stderr"
 
118148
echo stdout:; cat "$at_stdout"
 
118149
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:659"
 
118150
$at_failed && at_fn_log_failure
 
118151
$at_traceon; }
 
118152
 
 
118153
   { set +x
 
118154
$as_echo "$at_srcdir/ovs-vsctl.at:659: # First try a quick sleep, so that the test completes very quickly
 
118155
     # in the normal case.  POSIX doesn't require fractional times to
 
118156
     # work, so this might not work.
 
118157
     sleep 0.1
 
118158
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118159
     # Then wait up to 10 seconds.
 
118160
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118161
       sleep 1
 
118162
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118163
     done
 
118164
     exit 1"
 
118165
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:659"
 
118166
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118167
     # in the normal case.  POSIX doesn't require fractional times to
 
118168
     # work, so this might not work.
 
118169
     sleep 0.1
 
118170
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118171
     # Then wait up to 10 seconds.
 
118172
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118173
       sleep 1
 
118174
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118175
     done
 
118176
     exit 1
 
118177
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118178
at_status=$? at_failed=false
 
118179
$at_check_filter
 
118180
echo stderr:; cat "$at_stderr"
 
118181
echo stdout:; cat "$at_stdout"
 
118182
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:659"
 
118183
if $at_failed; then :
 
118184
  kill `cat savepid`
 
118185
fi
 
118186
$at_failed && at_fn_log_failure
 
118187
$at_traceon; }
 
118188
 
 
118189
fi
 
118190
$at_failed && at_fn_log_failure
 
118191
$at_traceon; }
 
118192
 
 
118193
{ set +x
 
118194
$as_echo "$at_srcdir/ovs-vsctl.at:661: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set-controller br1 tcp:127.0.0.1
 
118195
"
 
118196
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:661"
 
118197
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set-controller br1 tcp:127.0.0.1
 
118198
 
 
118199
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118200
at_status=$? at_failed=false
 
118201
$at_check_filter
 
118202
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
118203
echo stdout:; cat "$at_stdout"
 
118204
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:661"
 
118205
if $at_failed; then :
 
118206
  cp pid savepid
 
118207
   { set +x
 
118208
$as_echo "$at_srcdir/ovs-vsctl.at:661: ovs-appctl -t \$PWD/unixctl -e exit"
 
118209
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:661"
 
118210
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118211
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118212
at_status=$? at_failed=false
 
118213
$at_check_filter
 
118214
echo stderr:; cat "$at_stderr"
 
118215
echo stdout:; cat "$at_stdout"
 
118216
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:661"
 
118217
$at_failed && at_fn_log_failure
 
118218
$at_traceon; }
 
118219
 
 
118220
   { set +x
 
118221
$as_echo "$at_srcdir/ovs-vsctl.at:661: # First try a quick sleep, so that the test completes very quickly
 
118222
     # in the normal case.  POSIX doesn't require fractional times to
 
118223
     # work, so this might not work.
 
118224
     sleep 0.1
 
118225
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118226
     # Then wait up to 10 seconds.
 
118227
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118228
       sleep 1
 
118229
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118230
     done
 
118231
     exit 1"
 
118232
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:661"
 
118233
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118234
     # in the normal case.  POSIX doesn't require fractional times to
 
118235
     # work, so this might not work.
 
118236
     sleep 0.1
 
118237
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118238
     # Then wait up to 10 seconds.
 
118239
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118240
       sleep 1
 
118241
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118242
     done
 
118243
     exit 1
 
118244
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118245
at_status=$? at_failed=false
 
118246
$at_check_filter
 
118247
echo stderr:; cat "$at_stderr"
 
118248
echo stdout:; cat "$at_stdout"
 
118249
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:661"
 
118250
if $at_failed; then :
 
118251
  kill `cat savepid`
 
118252
fi
 
118253
$at_failed && at_fn_log_failure
 
118254
$at_traceon; }
 
118255
 
 
118256
fi
 
118257
$at_failed && at_fn_log_failure
 
118258
$at_traceon; }
 
118259
 
 
118260
{ set +x
 
118261
$as_echo "$at_srcdir/ovs-vsctl.at:663:
 
118262
    ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- --id=@n create n targets='\"1.2.3.4:567\"' -- set bridge br0 netflow=@n"
 
118263
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:663"
 
118264
( $at_check_trace;
 
118265
    ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- --id=@n create n targets='"1.2.3.4:567"' -- set bridge br0 netflow=@n
 
118266
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118267
at_status=$? at_failed=false
 
118268
$at_check_filter
 
118269
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
118270
echo stdout:; tee stdout <"$at_stdout"
 
118271
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:663"
 
118272
if $at_failed; then :
 
118273
  cp pid savepid
 
118274
   { set +x
 
118275
$as_echo "$at_srcdir/ovs-vsctl.at:663: ovs-appctl -t \$PWD/unixctl -e exit"
 
118276
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:663"
 
118277
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118278
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118279
at_status=$? at_failed=false
 
118280
$at_check_filter
 
118281
echo stderr:; cat "$at_stderr"
 
118282
echo stdout:; cat "$at_stdout"
 
118283
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:663"
 
118284
$at_failed && at_fn_log_failure
 
118285
$at_traceon; }
 
118286
 
 
118287
   { set +x
 
118288
$as_echo "$at_srcdir/ovs-vsctl.at:663: # First try a quick sleep, so that the test completes very quickly
 
118289
     # in the normal case.  POSIX doesn't require fractional times to
 
118290
     # work, so this might not work.
 
118291
     sleep 0.1
 
118292
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118293
     # Then wait up to 10 seconds.
 
118294
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118295
       sleep 1
 
118296
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118297
     done
 
118298
     exit 1"
 
118299
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:663"
 
118300
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118301
     # in the normal case.  POSIX doesn't require fractional times to
 
118302
     # work, so this might not work.
 
118303
     sleep 0.1
 
118304
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118305
     # Then wait up to 10 seconds.
 
118306
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118307
       sleep 1
 
118308
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118309
     done
 
118310
     exit 1
 
118311
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118312
at_status=$? at_failed=false
 
118313
$at_check_filter
 
118314
echo stderr:; cat "$at_stderr"
 
118315
echo stdout:; cat "$at_stdout"
 
118316
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:663"
 
118317
if $at_failed; then :
 
118318
  kill `cat savepid`
 
118319
fi
 
118320
$at_failed && at_fn_log_failure
 
118321
$at_traceon; }
 
118322
 
 
118323
fi
 
118324
$at_failed && at_fn_log_failure
 
118325
$at_traceon; }
 
118326
 
 
118327
cp stdout netflow-uuid
 
118328
{ set +x
 
118329
$as_echo "$at_srcdir/ovs-vsctl.at:668: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list n \`cat netflow-uuid\`
 
118330
"
 
118331
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:668"
 
118332
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list n `cat netflow-uuid`
 
118333
 
 
118334
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118335
at_status=$? at_failed=false
 
118336
$at_check_filter
 
118337
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
118338
echo stdout:; tee stdout <"$at_stdout"
 
118339
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:668"
 
118340
if $at_failed; then :
 
118341
  cp pid savepid
 
118342
   { set +x
 
118343
$as_echo "$at_srcdir/ovs-vsctl.at:668: ovs-appctl -t \$PWD/unixctl -e exit"
 
118344
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:668"
 
118345
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118346
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118347
at_status=$? at_failed=false
 
118348
$at_check_filter
 
118349
echo stderr:; cat "$at_stderr"
 
118350
echo stdout:; cat "$at_stdout"
 
118351
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:668"
 
118352
$at_failed && at_fn_log_failure
 
118353
$at_traceon; }
 
118354
 
 
118355
   { set +x
 
118356
$as_echo "$at_srcdir/ovs-vsctl.at:668: # First try a quick sleep, so that the test completes very quickly
 
118357
     # in the normal case.  POSIX doesn't require fractional times to
 
118358
     # work, so this might not work.
 
118359
     sleep 0.1
 
118360
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118361
     # Then wait up to 10 seconds.
 
118362
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118363
       sleep 1
 
118364
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118365
     done
 
118366
     exit 1"
 
118367
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:668"
 
118368
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118369
     # in the normal case.  POSIX doesn't require fractional times to
 
118370
     # work, so this might not work.
 
118371
     sleep 0.1
 
118372
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118373
     # Then wait up to 10 seconds.
 
118374
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118375
       sleep 1
 
118376
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118377
     done
 
118378
     exit 1
 
118379
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118380
at_status=$? at_failed=false
 
118381
$at_check_filter
 
118382
echo stderr:; cat "$at_stderr"
 
118383
echo stdout:; cat "$at_stdout"
 
118384
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:668"
 
118385
if $at_failed; then :
 
118386
  kill `cat savepid`
 
118387
fi
 
118388
$at_failed && at_fn_log_failure
 
118389
$at_traceon; }
 
118390
 
 
118391
fi
 
118392
$at_failed && at_fn_log_failure
 
118393
$at_traceon; }
 
118394
 
 
118395
{ set +x
 
118396
$as_echo "$at_srcdir/ovs-vsctl.at:670: perl \$srcdir/uuidfilt.pl netflow-uuid stdout"
 
118397
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl netflow-uuid stdout" "ovs-vsctl.at:670"
 
118398
( $at_check_trace; perl $srcdir/uuidfilt.pl netflow-uuid stdout
 
118399
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118400
at_status=$? at_failed=false
 
118401
$at_check_filter
 
118402
echo stderr:; cat "$at_stderr"
 
118403
echo >>"$at_stdout"; $as_echo "<0>
 
118404
 
 
118405
_uuid               : <0>
 
118406
active_timeout      : 0
 
118407
add_id_to_interface : false
 
118408
engine_id           : []
 
118409
engine_type         : []
 
118410
external_ids        : {}
 
118411
targets             : [\"1.2.3.4:567\"]
 
118412
" | \
 
118413
  $at_diff - "$at_stdout" || at_failed=:
 
118414
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:670"
 
118415
if $at_failed; then :
 
118416
  test ! -e pid || kill `cat pid`
 
118417
fi
 
118418
$at_failed && at_fn_log_failure
 
118419
$at_traceon; }
 
118420
 
 
118421
{ set +x
 
118422
$as_echo "$at_srcdir/ovs-vsctl.at:681: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list interx x
 
118423
"
 
118424
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:681"
 
118425
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list interx x
 
118426
 
 
118427
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118428
at_status=$? at_failed=false
 
118429
$at_check_filter
 
118430
echo >>"$at_stderr"; $as_echo "ovs-vsctl: unknown table \"interx\"
 
118431
" | \
 
118432
  $at_diff - "$at_stderr" || at_failed=:
 
118433
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118434
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:681"
 
118435
if $at_failed; then :
 
118436
  cp pid savepid
 
118437
   { set +x
 
118438
$as_echo "$at_srcdir/ovs-vsctl.at:681: ovs-appctl -t \$PWD/unixctl -e exit"
 
118439
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:681"
 
118440
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118441
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118442
at_status=$? at_failed=false
 
118443
$at_check_filter
 
118444
echo stderr:; cat "$at_stderr"
 
118445
echo stdout:; cat "$at_stdout"
 
118446
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:681"
 
118447
$at_failed && at_fn_log_failure
 
118448
$at_traceon; }
 
118449
 
 
118450
   { set +x
 
118451
$as_echo "$at_srcdir/ovs-vsctl.at:681: # First try a quick sleep, so that the test completes very quickly
 
118452
     # in the normal case.  POSIX doesn't require fractional times to
 
118453
     # work, so this might not work.
 
118454
     sleep 0.1
 
118455
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118456
     # Then wait up to 10 seconds.
 
118457
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118458
       sleep 1
 
118459
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118460
     done
 
118461
     exit 1"
 
118462
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:681"
 
118463
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118464
     # in the normal case.  POSIX doesn't require fractional times to
 
118465
     # work, so this might not work.
 
118466
     sleep 0.1
 
118467
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118468
     # Then wait up to 10 seconds.
 
118469
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118470
       sleep 1
 
118471
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118472
     done
 
118473
     exit 1
 
118474
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118475
at_status=$? at_failed=false
 
118476
$at_check_filter
 
118477
echo stderr:; cat "$at_stderr"
 
118478
echo stdout:; cat "$at_stdout"
 
118479
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:681"
 
118480
if $at_failed; then :
 
118481
  kill `cat savepid`
 
118482
fi
 
118483
$at_failed && at_fn_log_failure
 
118484
$at_traceon; }
 
118485
 
 
118486
fi
 
118487
$at_failed && at_fn_log_failure
 
118488
$at_traceon; }
 
118489
 
 
118490
{ set +x
 
118491
$as_echo "$at_srcdir/ovs-vsctl.at:684: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list b x
 
118492
"
 
118493
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:684"
 
118494
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list b x
 
118495
 
 
118496
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118497
at_status=$? at_failed=false
 
118498
$at_check_filter
 
118499
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no row \"x\" in table Bridge
 
118500
" | \
 
118501
  $at_diff - "$at_stderr" || at_failed=:
 
118502
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118503
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:684"
 
118504
if $at_failed; then :
 
118505
  cp pid savepid
 
118506
   { set +x
 
118507
$as_echo "$at_srcdir/ovs-vsctl.at:684: ovs-appctl -t \$PWD/unixctl -e exit"
 
118508
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:684"
 
118509
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118510
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118511
at_status=$? at_failed=false
 
118512
$at_check_filter
 
118513
echo stderr:; cat "$at_stderr"
 
118514
echo stdout:; cat "$at_stdout"
 
118515
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:684"
 
118516
$at_failed && at_fn_log_failure
 
118517
$at_traceon; }
 
118518
 
 
118519
   { set +x
 
118520
$as_echo "$at_srcdir/ovs-vsctl.at:684: # First try a quick sleep, so that the test completes very quickly
 
118521
     # in the normal case.  POSIX doesn't require fractional times to
 
118522
     # work, so this might not work.
 
118523
     sleep 0.1
 
118524
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118525
     # Then wait up to 10 seconds.
 
118526
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118527
       sleep 1
 
118528
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118529
     done
 
118530
     exit 1"
 
118531
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:684"
 
118532
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118533
     # in the normal case.  POSIX doesn't require fractional times to
 
118534
     # work, so this might not work.
 
118535
     sleep 0.1
 
118536
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118537
     # Then wait up to 10 seconds.
 
118538
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118539
       sleep 1
 
118540
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118541
     done
 
118542
     exit 1
 
118543
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118544
at_status=$? at_failed=false
 
118545
$at_check_filter
 
118546
echo stderr:; cat "$at_stderr"
 
118547
echo stdout:; cat "$at_stdout"
 
118548
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:684"
 
118549
if $at_failed; then :
 
118550
  kill `cat savepid`
 
118551
fi
 
118552
$at_failed && at_fn_log_failure
 
118553
$at_traceon; }
 
118554
 
 
118555
fi
 
118556
$at_failed && at_fn_log_failure
 
118557
$at_traceon; }
 
118558
 
 
118559
{ set +x
 
118560
$as_echo "$at_srcdir/ovs-vsctl.at:687: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 d
 
118561
"
 
118562
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:687"
 
118563
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 d
 
118564
 
 
118565
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118566
at_status=$? at_failed=false
 
118567
$at_check_filter
 
118568
echo >>"$at_stderr"; $as_echo "ovs-vsctl: Bridge contains more than one column whose name matches \"d\"
 
118569
" | \
 
118570
  $at_diff - "$at_stderr" || at_failed=:
 
118571
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118572
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:687"
 
118573
if $at_failed; then :
 
118574
  cp pid savepid
 
118575
   { set +x
 
118576
$as_echo "$at_srcdir/ovs-vsctl.at:687: ovs-appctl -t \$PWD/unixctl -e exit"
 
118577
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:687"
 
118578
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118579
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118580
at_status=$? at_failed=false
 
118581
$at_check_filter
 
118582
echo stderr:; cat "$at_stderr"
 
118583
echo stdout:; cat "$at_stdout"
 
118584
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:687"
 
118585
$at_failed && at_fn_log_failure
 
118586
$at_traceon; }
 
118587
 
 
118588
   { set +x
 
118589
$as_echo "$at_srcdir/ovs-vsctl.at:687: # First try a quick sleep, so that the test completes very quickly
 
118590
     # in the normal case.  POSIX doesn't require fractional times to
 
118591
     # work, so this might not work.
 
118592
     sleep 0.1
 
118593
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118594
     # Then wait up to 10 seconds.
 
118595
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118596
       sleep 1
 
118597
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118598
     done
 
118599
     exit 1"
 
118600
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:687"
 
118601
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118602
     # in the normal case.  POSIX doesn't require fractional times to
 
118603
     # work, so this might not work.
 
118604
     sleep 0.1
 
118605
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118606
     # Then wait up to 10 seconds.
 
118607
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118608
       sleep 1
 
118609
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118610
     done
 
118611
     exit 1
 
118612
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118613
at_status=$? at_failed=false
 
118614
$at_check_filter
 
118615
echo stderr:; cat "$at_stderr"
 
118616
echo stdout:; cat "$at_stdout"
 
118617
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:687"
 
118618
if $at_failed; then :
 
118619
  kill `cat savepid`
 
118620
fi
 
118621
$at_failed && at_fn_log_failure
 
118622
$at_traceon; }
 
118623
 
 
118624
fi
 
118625
$at_failed && at_fn_log_failure
 
118626
$at_traceon; }
 
118627
 
 
118628
{ set +x
 
118629
$as_echo "$at_srcdir/ovs-vsctl.at:690: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 x
 
118630
"
 
118631
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:690"
 
118632
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 x
 
118633
 
 
118634
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118635
at_status=$? at_failed=false
 
118636
$at_check_filter
 
118637
echo >>"$at_stderr"; $as_echo "ovs-vsctl: Bridge does not contain a column whose name matches \"x\"
 
118638
" | \
 
118639
  $at_diff - "$at_stderr" || at_failed=:
 
118640
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118641
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:690"
 
118642
if $at_failed; then :
 
118643
  cp pid savepid
 
118644
   { set +x
 
118645
$as_echo "$at_srcdir/ovs-vsctl.at:690: ovs-appctl -t \$PWD/unixctl -e exit"
 
118646
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:690"
 
118647
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118648
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118649
at_status=$? at_failed=false
 
118650
$at_check_filter
 
118651
echo stderr:; cat "$at_stderr"
 
118652
echo stdout:; cat "$at_stdout"
 
118653
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:690"
 
118654
$at_failed && at_fn_log_failure
 
118655
$at_traceon; }
 
118656
 
 
118657
   { set +x
 
118658
$as_echo "$at_srcdir/ovs-vsctl.at:690: # First try a quick sleep, so that the test completes very quickly
 
118659
     # in the normal case.  POSIX doesn't require fractional times to
 
118660
     # work, so this might not work.
 
118661
     sleep 0.1
 
118662
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118663
     # Then wait up to 10 seconds.
 
118664
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118665
       sleep 1
 
118666
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118667
     done
 
118668
     exit 1"
 
118669
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:690"
 
118670
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118671
     # in the normal case.  POSIX doesn't require fractional times to
 
118672
     # work, so this might not work.
 
118673
     sleep 0.1
 
118674
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118675
     # Then wait up to 10 seconds.
 
118676
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118677
       sleep 1
 
118678
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118679
     done
 
118680
     exit 1
 
118681
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118682
at_status=$? at_failed=false
 
118683
$at_check_filter
 
118684
echo stderr:; cat "$at_stderr"
 
118685
echo stdout:; cat "$at_stdout"
 
118686
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:690"
 
118687
if $at_failed; then :
 
118688
  kill `cat savepid`
 
118689
fi
 
118690
$at_failed && at_fn_log_failure
 
118691
$at_traceon; }
 
118692
 
 
118693
fi
 
118694
$at_failed && at_fn_log_failure
 
118695
$at_traceon; }
 
118696
 
 
118697
{ set +x
 
118698
$as_echo "$at_srcdir/ovs-vsctl.at:693: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 :y=z
 
118699
"
 
118700
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:693"
 
118701
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 :y=z
 
118702
 
 
118703
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118704
at_status=$? at_failed=false
 
118705
$at_check_filter
 
118706
echo >>"$at_stderr"; $as_echo "ovs-vsctl: :y=z: missing column name
 
118707
" | \
 
118708
  $at_diff - "$at_stderr" || at_failed=:
 
118709
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118710
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:693"
 
118711
if $at_failed; then :
 
118712
  cp pid savepid
 
118713
   { set +x
 
118714
$as_echo "$at_srcdir/ovs-vsctl.at:693: ovs-appctl -t \$PWD/unixctl -e exit"
 
118715
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:693"
 
118716
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118717
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118718
at_status=$? at_failed=false
 
118719
$at_check_filter
 
118720
echo stderr:; cat "$at_stderr"
 
118721
echo stdout:; cat "$at_stdout"
 
118722
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:693"
 
118723
$at_failed && at_fn_log_failure
 
118724
$at_traceon; }
 
118725
 
 
118726
   { set +x
 
118727
$as_echo "$at_srcdir/ovs-vsctl.at:693: # First try a quick sleep, so that the test completes very quickly
 
118728
     # in the normal case.  POSIX doesn't require fractional times to
 
118729
     # work, so this might not work.
 
118730
     sleep 0.1
 
118731
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118732
     # Then wait up to 10 seconds.
 
118733
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118734
       sleep 1
 
118735
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118736
     done
 
118737
     exit 1"
 
118738
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:693"
 
118739
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118740
     # in the normal case.  POSIX doesn't require fractional times to
 
118741
     # work, so this might not work.
 
118742
     sleep 0.1
 
118743
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118744
     # Then wait up to 10 seconds.
 
118745
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118746
       sleep 1
 
118747
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118748
     done
 
118749
     exit 1
 
118750
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118751
at_status=$? at_failed=false
 
118752
$at_check_filter
 
118753
echo stderr:; cat "$at_stderr"
 
118754
echo stdout:; cat "$at_stdout"
 
118755
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:693"
 
118756
if $at_failed; then :
 
118757
  kill `cat savepid`
 
118758
fi
 
118759
$at_failed && at_fn_log_failure
 
118760
$at_traceon; }
 
118761
 
 
118762
fi
 
118763
$at_failed && at_fn_log_failure
 
118764
$at_traceon; }
 
118765
 
 
118766
{ set +x
 
118767
$as_echo "$at_srcdir/ovs-vsctl.at:696: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 datapath_id:y=z
 
118768
"
 
118769
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:696"
 
118770
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 datapath_id:y=z
 
118771
 
 
118772
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118773
at_status=$? at_failed=false
 
118774
$at_check_filter
 
118775
echo >>"$at_stderr"; $as_echo "ovs-vsctl: datapath_id:y=z: trailing garbage \"=z\" in argument
 
118776
" | \
 
118777
  $at_diff - "$at_stderr" || at_failed=:
 
118778
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118779
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:696"
 
118780
if $at_failed; then :
 
118781
  cp pid savepid
 
118782
   { set +x
 
118783
$as_echo "$at_srcdir/ovs-vsctl.at:696: ovs-appctl -t \$PWD/unixctl -e exit"
 
118784
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:696"
 
118785
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118787
at_status=$? at_failed=false
 
118788
$at_check_filter
 
118789
echo stderr:; cat "$at_stderr"
 
118790
echo stdout:; cat "$at_stdout"
 
118791
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:696"
 
118792
$at_failed && at_fn_log_failure
 
118793
$at_traceon; }
 
118794
 
 
118795
   { set +x
 
118796
$as_echo "$at_srcdir/ovs-vsctl.at:696: # First try a quick sleep, so that the test completes very quickly
 
118797
     # in the normal case.  POSIX doesn't require fractional times to
 
118798
     # work, so this might not work.
 
118799
     sleep 0.1
 
118800
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118801
     # Then wait up to 10 seconds.
 
118802
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118803
       sleep 1
 
118804
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118805
     done
 
118806
     exit 1"
 
118807
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:696"
 
118808
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118809
     # in the normal case.  POSIX doesn't require fractional times to
 
118810
     # work, so this might not work.
 
118811
     sleep 0.1
 
118812
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118813
     # Then wait up to 10 seconds.
 
118814
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118815
       sleep 1
 
118816
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118817
     done
 
118818
     exit 1
 
118819
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118820
at_status=$? at_failed=false
 
118821
$at_check_filter
 
118822
echo stderr:; cat "$at_stderr"
 
118823
echo stdout:; cat "$at_stdout"
 
118824
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:696"
 
118825
if $at_failed; then :
 
118826
  kill `cat savepid`
 
118827
fi
 
118828
$at_failed && at_fn_log_failure
 
118829
$at_traceon; }
 
118830
 
 
118831
fi
 
118832
$at_failed && at_fn_log_failure
 
118833
$at_traceon; }
 
118834
 
 
118835
{ set +x
 
118836
$as_echo "$at_srcdir/ovs-vsctl.at:699: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set b br0 'datapath_id:y>=z'
 
118837
"
 
118838
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:699"
 
118839
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set b br0 'datapath_id:y>=z'
 
118840
 
 
118841
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118842
at_status=$? at_failed=false
 
118843
$at_check_filter
 
118844
echo >>"$at_stderr"; $as_echo "ovs-vsctl: datapath_id:y>=z: argument does not end in \"=\" followed by a value.
 
118845
" | \
 
118846
  $at_diff - "$at_stderr" || at_failed=:
 
118847
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118848
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:699"
 
118849
if $at_failed; then :
 
118850
  cp pid savepid
 
118851
   { set +x
 
118852
$as_echo "$at_srcdir/ovs-vsctl.at:699: ovs-appctl -t \$PWD/unixctl -e exit"
 
118853
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:699"
 
118854
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118855
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118856
at_status=$? at_failed=false
 
118857
$at_check_filter
 
118858
echo stderr:; cat "$at_stderr"
 
118859
echo stdout:; cat "$at_stdout"
 
118860
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:699"
 
118861
$at_failed && at_fn_log_failure
 
118862
$at_traceon; }
 
118863
 
 
118864
   { set +x
 
118865
$as_echo "$at_srcdir/ovs-vsctl.at:699: # First try a quick sleep, so that the test completes very quickly
 
118866
     # in the normal case.  POSIX doesn't require fractional times to
 
118867
     # work, so this might not work.
 
118868
     sleep 0.1
 
118869
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118870
     # Then wait up to 10 seconds.
 
118871
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118872
       sleep 1
 
118873
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118874
     done
 
118875
     exit 1"
 
118876
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:699"
 
118877
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118878
     # in the normal case.  POSIX doesn't require fractional times to
 
118879
     # work, so this might not work.
 
118880
     sleep 0.1
 
118881
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118882
     # Then wait up to 10 seconds.
 
118883
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118884
       sleep 1
 
118885
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118886
     done
 
118887
     exit 1
 
118888
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118889
at_status=$? at_failed=false
 
118890
$at_check_filter
 
118891
echo stderr:; cat "$at_stderr"
 
118892
echo stdout:; cat "$at_stdout"
 
118893
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:699"
 
118894
if $at_failed; then :
 
118895
  kill `cat savepid`
 
118896
fi
 
118897
$at_failed && at_fn_log_failure
 
118898
$at_traceon; }
 
118899
 
 
118900
fi
 
118901
$at_failed && at_fn_log_failure
 
118902
$at_traceon; }
 
118903
 
 
118904
{ set +x
 
118905
$as_echo "$at_srcdir/ovs-vsctl.at:702: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until b br0 datapath_id:y,z
 
118906
"
 
118907
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:702"
 
118908
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until b br0 datapath_id:y,z
 
118909
 
 
118910
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118911
at_status=$? at_failed=false
 
118912
$at_check_filter
 
118913
echo >>"$at_stderr"; $as_echo "ovs-vsctl: datapath_id:y,z: argument does not end in \"=\", \"!=\", \"<\", \">\", \"<=\", or \">=\" followed by a value.
 
118914
" | \
 
118915
  $at_diff - "$at_stderr" || at_failed=:
 
118916
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118917
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:702"
 
118918
if $at_failed; then :
 
118919
  cp pid savepid
 
118920
   { set +x
 
118921
$as_echo "$at_srcdir/ovs-vsctl.at:702: ovs-appctl -t \$PWD/unixctl -e exit"
 
118922
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:702"
 
118923
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118924
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118925
at_status=$? at_failed=false
 
118926
$at_check_filter
 
118927
echo stderr:; cat "$at_stderr"
 
118928
echo stdout:; cat "$at_stdout"
 
118929
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:702"
 
118930
$at_failed && at_fn_log_failure
 
118931
$at_traceon; }
 
118932
 
 
118933
   { set +x
 
118934
$as_echo "$at_srcdir/ovs-vsctl.at:702: # First try a quick sleep, so that the test completes very quickly
 
118935
     # in the normal case.  POSIX doesn't require fractional times to
 
118936
     # work, so this might not work.
 
118937
     sleep 0.1
 
118938
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118939
     # Then wait up to 10 seconds.
 
118940
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118941
       sleep 1
 
118942
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
118943
     done
 
118944
     exit 1"
 
118945
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:702"
 
118946
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
118947
     # in the normal case.  POSIX doesn't require fractional times to
 
118948
     # work, so this might not work.
 
118949
     sleep 0.1
 
118950
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
118951
     # Then wait up to 10 seconds.
 
118952
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
118953
       sleep 1
 
118954
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
118955
     done
 
118956
     exit 1
 
118957
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118958
at_status=$? at_failed=false
 
118959
$at_check_filter
 
118960
echo stderr:; cat "$at_stderr"
 
118961
echo stdout:; cat "$at_stdout"
 
118962
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:702"
 
118963
if $at_failed; then :
 
118964
  kill `cat savepid`
 
118965
fi
 
118966
$at_failed && at_fn_log_failure
 
118967
$at_traceon; }
 
118968
 
 
118969
fi
 
118970
$at_failed && at_fn_log_failure
 
118971
$at_traceon; }
 
118972
 
 
118973
{ set +x
 
118974
$as_echo "$at_srcdir/ovs-vsctl.at:705: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 datapath_id::
 
118975
"
 
118976
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:705"
 
118977
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 datapath_id::
 
118978
 
 
118979
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118980
at_status=$? at_failed=false
 
118981
$at_check_filter
 
118982
echo >>"$at_stderr"; $as_echo "ovs-vsctl: datapath_id::: trailing garbage \":\" in argument
 
118983
" | \
 
118984
  $at_diff - "$at_stderr" || at_failed=:
 
118985
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
118986
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:705"
 
118987
if $at_failed; then :
 
118988
  cp pid savepid
 
118989
   { set +x
 
118990
$as_echo "$at_srcdir/ovs-vsctl.at:705: ovs-appctl -t \$PWD/unixctl -e exit"
 
118991
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:705"
 
118992
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
118993
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
118994
at_status=$? at_failed=false
 
118995
$at_check_filter
 
118996
echo stderr:; cat "$at_stderr"
 
118997
echo stdout:; cat "$at_stdout"
 
118998
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:705"
 
118999
$at_failed && at_fn_log_failure
 
119000
$at_traceon; }
 
119001
 
 
119002
   { set +x
 
119003
$as_echo "$at_srcdir/ovs-vsctl.at:705: # First try a quick sleep, so that the test completes very quickly
 
119004
     # in the normal case.  POSIX doesn't require fractional times to
 
119005
     # work, so this might not work.
 
119006
     sleep 0.1
 
119007
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119008
     # Then wait up to 10 seconds.
 
119009
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119010
       sleep 1
 
119011
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119012
     done
 
119013
     exit 1"
 
119014
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:705"
 
119015
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119016
     # in the normal case.  POSIX doesn't require fractional times to
 
119017
     # work, so this might not work.
 
119018
     sleep 0.1
 
119019
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119020
     # Then wait up to 10 seconds.
 
119021
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119022
       sleep 1
 
119023
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119024
     done
 
119025
     exit 1
 
119026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119027
at_status=$? at_failed=false
 
119028
$at_check_filter
 
119029
echo stderr:; cat "$at_stderr"
 
119030
echo stdout:; cat "$at_stdout"
 
119031
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:705"
 
119032
if $at_failed; then :
 
119033
  kill `cat savepid`
 
119034
fi
 
119035
$at_failed && at_fn_log_failure
 
119036
$at_traceon; }
 
119037
 
 
119038
fi
 
119039
$at_failed && at_fn_log_failure
 
119040
$at_traceon; }
 
119041
 
 
119042
{ set +x
 
119043
$as_echo "$at_srcdir/ovs-vsctl.at:708: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 datapath_id:x
 
119044
"
 
119045
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:708"
 
119046
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 datapath_id:x
 
119047
 
 
119048
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119049
at_status=$? at_failed=false
 
119050
$at_check_filter
 
119051
echo >>"$at_stderr"; $as_echo "ovs-vsctl: cannot specify key to get for non-map column datapath_id
 
119052
" | \
 
119053
  $at_diff - "$at_stderr" || at_failed=:
 
119054
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119055
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:708"
 
119056
if $at_failed; then :
 
119057
  cp pid savepid
 
119058
   { set +x
 
119059
$as_echo "$at_srcdir/ovs-vsctl.at:708: ovs-appctl -t \$PWD/unixctl -e exit"
 
119060
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:708"
 
119061
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119062
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119063
at_status=$? at_failed=false
 
119064
$at_check_filter
 
119065
echo stderr:; cat "$at_stderr"
 
119066
echo stdout:; cat "$at_stdout"
 
119067
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:708"
 
119068
$at_failed && at_fn_log_failure
 
119069
$at_traceon; }
 
119070
 
 
119071
   { set +x
 
119072
$as_echo "$at_srcdir/ovs-vsctl.at:708: # First try a quick sleep, so that the test completes very quickly
 
119073
     # in the normal case.  POSIX doesn't require fractional times to
 
119074
     # work, so this might not work.
 
119075
     sleep 0.1
 
119076
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119077
     # Then wait up to 10 seconds.
 
119078
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119079
       sleep 1
 
119080
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119081
     done
 
119082
     exit 1"
 
119083
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:708"
 
119084
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119085
     # in the normal case.  POSIX doesn't require fractional times to
 
119086
     # work, so this might not work.
 
119087
     sleep 0.1
 
119088
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119089
     # Then wait up to 10 seconds.
 
119090
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119091
       sleep 1
 
119092
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119093
     done
 
119094
     exit 1
 
119095
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119096
at_status=$? at_failed=false
 
119097
$at_check_filter
 
119098
echo stderr:; cat "$at_stderr"
 
119099
echo stdout:; cat "$at_stdout"
 
119100
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:708"
 
119101
if $at_failed; then :
 
119102
  kill `cat savepid`
 
119103
fi
 
119104
$at_failed && at_fn_log_failure
 
119105
$at_traceon; }
 
119106
 
 
119107
fi
 
119108
$at_failed && at_fn_log_failure
 
119109
$at_traceon; }
 
119110
 
 
119111
{ set +x
 
119112
$as_echo "$at_srcdir/ovs-vsctl.at:711: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 external_ids:x
 
119113
"
 
119114
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:711"
 
119115
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- get b br0 external_ids:x
 
119116
 
 
119117
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119118
at_status=$? at_failed=false
 
119119
$at_check_filter
 
119120
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no key \"x\" in Bridge record \"br0\" column external_ids
 
119121
" | \
 
119122
  $at_diff - "$at_stderr" || at_failed=:
 
119123
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119124
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:711"
 
119125
if $at_failed; then :
 
119126
  cp pid savepid
 
119127
   { set +x
 
119128
$as_echo "$at_srcdir/ovs-vsctl.at:711: ovs-appctl -t \$PWD/unixctl -e exit"
 
119129
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:711"
 
119130
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119131
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119132
at_status=$? at_failed=false
 
119133
$at_check_filter
 
119134
echo stderr:; cat "$at_stderr"
 
119135
echo stdout:; cat "$at_stdout"
 
119136
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:711"
 
119137
$at_failed && at_fn_log_failure
 
119138
$at_traceon; }
 
119139
 
 
119140
   { set +x
 
119141
$as_echo "$at_srcdir/ovs-vsctl.at:711: # First try a quick sleep, so that the test completes very quickly
 
119142
     # in the normal case.  POSIX doesn't require fractional times to
 
119143
     # work, so this might not work.
 
119144
     sleep 0.1
 
119145
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119146
     # Then wait up to 10 seconds.
 
119147
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119148
       sleep 1
 
119149
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119150
     done
 
119151
     exit 1"
 
119152
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:711"
 
119153
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119154
     # in the normal case.  POSIX doesn't require fractional times to
 
119155
     # work, so this might not work.
 
119156
     sleep 0.1
 
119157
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119158
     # Then wait up to 10 seconds.
 
119159
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119160
       sleep 1
 
119161
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119162
     done
 
119163
     exit 1
 
119164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119165
at_status=$? at_failed=false
 
119166
$at_check_filter
 
119167
echo stderr:; cat "$at_stderr"
 
119168
echo stdout:; cat "$at_stdout"
 
119169
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:711"
 
119170
if $at_failed; then :
 
119171
  kill `cat savepid`
 
119172
fi
 
119173
$at_failed && at_fn_log_failure
 
119174
$at_traceon; }
 
119175
 
 
119176
fi
 
119177
$at_failed && at_fn_log_failure
 
119178
$at_traceon; }
 
119179
 
 
119180
{ set +x
 
119181
$as_echo "$at_srcdir/ovs-vsctl.at:714: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set b br0 flood_vlans=-1
 
119182
"
 
119183
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:714"
 
119184
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set b br0 flood_vlans=-1
 
119185
 
 
119186
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119187
at_status=$? at_failed=false
 
119188
$at_check_filter
 
119189
echo >>"$at_stderr"; $as_echo "ovs-vsctl: constraint violation: -1 is not in the valid range 0 to 4095 (inclusive)
 
119190
" | \
 
119191
  $at_diff - "$at_stderr" || at_failed=:
 
119192
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119193
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:714"
 
119194
if $at_failed; then :
 
119195
  cp pid savepid
 
119196
   { set +x
 
119197
$as_echo "$at_srcdir/ovs-vsctl.at:714: ovs-appctl -t \$PWD/unixctl -e exit"
 
119198
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:714"
 
119199
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119200
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119201
at_status=$? at_failed=false
 
119202
$at_check_filter
 
119203
echo stderr:; cat "$at_stderr"
 
119204
echo stdout:; cat "$at_stdout"
 
119205
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:714"
 
119206
$at_failed && at_fn_log_failure
 
119207
$at_traceon; }
 
119208
 
 
119209
   { set +x
 
119210
$as_echo "$at_srcdir/ovs-vsctl.at:714: # First try a quick sleep, so that the test completes very quickly
 
119211
     # in the normal case.  POSIX doesn't require fractional times to
 
119212
     # work, so this might not work.
 
119213
     sleep 0.1
 
119214
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119215
     # Then wait up to 10 seconds.
 
119216
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119217
       sleep 1
 
119218
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119219
     done
 
119220
     exit 1"
 
119221
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:714"
 
119222
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119223
     # in the normal case.  POSIX doesn't require fractional times to
 
119224
     # work, so this might not work.
 
119225
     sleep 0.1
 
119226
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119227
     # Then wait up to 10 seconds.
 
119228
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119229
       sleep 1
 
119230
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119231
     done
 
119232
     exit 1
 
119233
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119234
at_status=$? at_failed=false
 
119235
$at_check_filter
 
119236
echo stderr:; cat "$at_stderr"
 
119237
echo stdout:; cat "$at_stdout"
 
119238
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:714"
 
119239
if $at_failed; then :
 
119240
  kill `cat savepid`
 
119241
fi
 
119242
$at_failed && at_fn_log_failure
 
119243
$at_traceon; }
 
119244
 
 
119245
fi
 
119246
$at_failed && at_fn_log_failure
 
119247
$at_traceon; }
 
119248
 
 
119249
{ set +x
 
119250
$as_echo "$at_srcdir/ovs-vsctl.at:717: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set b br0 flood_vlans=4096
 
119251
"
 
119252
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:717"
 
119253
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set b br0 flood_vlans=4096
 
119254
 
 
119255
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119256
at_status=$? at_failed=false
 
119257
$at_check_filter
 
119258
echo >>"$at_stderr"; $as_echo "ovs-vsctl: constraint violation: 4096 is not in the valid range 0 to 4095 (inclusive)
 
119259
" | \
 
119260
  $at_diff - "$at_stderr" || at_failed=:
 
119261
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119262
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:717"
 
119263
if $at_failed; then :
 
119264
  cp pid savepid
 
119265
   { set +x
 
119266
$as_echo "$at_srcdir/ovs-vsctl.at:717: ovs-appctl -t \$PWD/unixctl -e exit"
 
119267
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:717"
 
119268
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119269
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119270
at_status=$? at_failed=false
 
119271
$at_check_filter
 
119272
echo stderr:; cat "$at_stderr"
 
119273
echo stdout:; cat "$at_stdout"
 
119274
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:717"
 
119275
$at_failed && at_fn_log_failure
 
119276
$at_traceon; }
 
119277
 
 
119278
   { set +x
 
119279
$as_echo "$at_srcdir/ovs-vsctl.at:717: # First try a quick sleep, so that the test completes very quickly
 
119280
     # in the normal case.  POSIX doesn't require fractional times to
 
119281
     # work, so this might not work.
 
119282
     sleep 0.1
 
119283
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119284
     # Then wait up to 10 seconds.
 
119285
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119286
       sleep 1
 
119287
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119288
     done
 
119289
     exit 1"
 
119290
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:717"
 
119291
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119292
     # in the normal case.  POSIX doesn't require fractional times to
 
119293
     # work, so this might not work.
 
119294
     sleep 0.1
 
119295
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119296
     # Then wait up to 10 seconds.
 
119297
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119298
       sleep 1
 
119299
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119300
     done
 
119301
     exit 1
 
119302
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119303
at_status=$? at_failed=false
 
119304
$at_check_filter
 
119305
echo stderr:; cat "$at_stderr"
 
119306
echo stdout:; cat "$at_stdout"
 
119307
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:717"
 
119308
if $at_failed; then :
 
119309
  kill `cat savepid`
 
119310
fi
 
119311
$at_failed && at_fn_log_failure
 
119312
$at_traceon; }
 
119313
 
 
119314
fi
 
119315
$at_failed && at_fn_log_failure
 
119316
$at_traceon; }
 
119317
 
 
119318
{ set +x
 
119319
$as_echo "$at_srcdir/ovs-vsctl.at:720: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set c br1 'connection-mode=xyz'
 
119320
"
 
119321
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:720"
 
119322
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set c br1 'connection-mode=xyz'
 
119323
 
 
119324
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119325
at_status=$? at_failed=false
 
119326
$at_check_filter
 
119327
echo >>"$at_stderr"; $as_echo "ovs-vsctl: constraint violation: xyz is not one of the allowed values ([in-band, out-of-band])
 
119328
" | \
 
119329
  $at_diff - "$at_stderr" || at_failed=:
 
119330
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119331
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:720"
 
119332
if $at_failed; then :
 
119333
  cp pid savepid
 
119334
   { set +x
 
119335
$as_echo "$at_srcdir/ovs-vsctl.at:720: ovs-appctl -t \$PWD/unixctl -e exit"
 
119336
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:720"
 
119337
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119338
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119339
at_status=$? at_failed=false
 
119340
$at_check_filter
 
119341
echo stderr:; cat "$at_stderr"
 
119342
echo stdout:; cat "$at_stdout"
 
119343
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:720"
 
119344
$at_failed && at_fn_log_failure
 
119345
$at_traceon; }
 
119346
 
 
119347
   { set +x
 
119348
$as_echo "$at_srcdir/ovs-vsctl.at:720: # First try a quick sleep, so that the test completes very quickly
 
119349
     # in the normal case.  POSIX doesn't require fractional times to
 
119350
     # work, so this might not work.
 
119351
     sleep 0.1
 
119352
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119353
     # Then wait up to 10 seconds.
 
119354
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119355
       sleep 1
 
119356
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119357
     done
 
119358
     exit 1"
 
119359
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:720"
 
119360
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119361
     # in the normal case.  POSIX doesn't require fractional times to
 
119362
     # work, so this might not work.
 
119363
     sleep 0.1
 
119364
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119365
     # Then wait up to 10 seconds.
 
119366
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119367
       sleep 1
 
119368
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119369
     done
 
119370
     exit 1
 
119371
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119372
at_status=$? at_failed=false
 
119373
$at_check_filter
 
119374
echo stderr:; cat "$at_stderr"
 
119375
echo stdout:; cat "$at_stdout"
 
119376
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:720"
 
119377
if $at_failed; then :
 
119378
  kill `cat savepid`
 
119379
fi
 
119380
$at_failed && at_fn_log_failure
 
119381
$at_traceon; }
 
119382
 
 
119383
fi
 
119384
$at_failed && at_fn_log_failure
 
119385
$at_traceon; }
 
119386
 
 
119387
{ set +x
 
119388
$as_echo "$at_srcdir/ovs-vsctl.at:723: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set c br1 connection-mode:x=y
 
119389
"
 
119390
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:723"
 
119391
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set c br1 connection-mode:x=y
 
119392
 
 
119393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119394
at_status=$? at_failed=false
 
119395
$at_check_filter
 
119396
echo >>"$at_stderr"; $as_echo "ovs-vsctl: cannot specify key to set for non-map column connection_mode
 
119397
" | \
 
119398
  $at_diff - "$at_stderr" || at_failed=:
 
119399
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119400
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:723"
 
119401
if $at_failed; then :
 
119402
  cp pid savepid
 
119403
   { set +x
 
119404
$as_echo "$at_srcdir/ovs-vsctl.at:723: ovs-appctl -t \$PWD/unixctl -e exit"
 
119405
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:723"
 
119406
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119407
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119408
at_status=$? at_failed=false
 
119409
$at_check_filter
 
119410
echo stderr:; cat "$at_stderr"
 
119411
echo stdout:; cat "$at_stdout"
 
119412
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:723"
 
119413
$at_failed && at_fn_log_failure
 
119414
$at_traceon; }
 
119415
 
 
119416
   { set +x
 
119417
$as_echo "$at_srcdir/ovs-vsctl.at:723: # First try a quick sleep, so that the test completes very quickly
 
119418
     # in the normal case.  POSIX doesn't require fractional times to
 
119419
     # work, so this might not work.
 
119420
     sleep 0.1
 
119421
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119422
     # Then wait up to 10 seconds.
 
119423
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119424
       sleep 1
 
119425
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119426
     done
 
119427
     exit 1"
 
119428
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:723"
 
119429
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119430
     # in the normal case.  POSIX doesn't require fractional times to
 
119431
     # work, so this might not work.
 
119432
     sleep 0.1
 
119433
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119434
     # Then wait up to 10 seconds.
 
119435
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119436
       sleep 1
 
119437
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119438
     done
 
119439
     exit 1
 
119440
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119441
at_status=$? at_failed=false
 
119442
$at_check_filter
 
119443
echo stderr:; cat "$at_stderr"
 
119444
echo stdout:; cat "$at_stdout"
 
119445
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:723"
 
119446
if $at_failed; then :
 
119447
  kill `cat savepid`
 
119448
fi
 
119449
$at_failed && at_fn_log_failure
 
119450
$at_traceon; }
 
119451
 
 
119452
fi
 
119453
$at_failed && at_fn_log_failure
 
119454
$at_traceon; }
 
119455
 
 
119456
{ set +x
 
119457
$as_echo "$at_srcdir/ovs-vsctl.at:726: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add b br1 datapath_id x y
 
119458
"
 
119459
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:726"
 
119460
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add b br1 datapath_id x y
 
119461
 
 
119462
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119463
at_status=$? at_failed=false
 
119464
$at_check_filter
 
119465
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"add\" operation would put 2 values in column datapath_id of table Bridge but the maximum number is 1
 
119466
" | \
 
119467
  $at_diff - "$at_stderr" || at_failed=:
 
119468
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119469
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:726"
 
119470
if $at_failed; then :
 
119471
  cp pid savepid
 
119472
   { set +x
 
119473
$as_echo "$at_srcdir/ovs-vsctl.at:726: ovs-appctl -t \$PWD/unixctl -e exit"
 
119474
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:726"
 
119475
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119476
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119477
at_status=$? at_failed=false
 
119478
$at_check_filter
 
119479
echo stderr:; cat "$at_stderr"
 
119480
echo stdout:; cat "$at_stdout"
 
119481
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:726"
 
119482
$at_failed && at_fn_log_failure
 
119483
$at_traceon; }
 
119484
 
 
119485
   { set +x
 
119486
$as_echo "$at_srcdir/ovs-vsctl.at:726: # First try a quick sleep, so that the test completes very quickly
 
119487
     # in the normal case.  POSIX doesn't require fractional times to
 
119488
     # work, so this might not work.
 
119489
     sleep 0.1
 
119490
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119491
     # Then wait up to 10 seconds.
 
119492
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119493
       sleep 1
 
119494
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119495
     done
 
119496
     exit 1"
 
119497
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:726"
 
119498
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119499
     # in the normal case.  POSIX doesn't require fractional times to
 
119500
     # work, so this might not work.
 
119501
     sleep 0.1
 
119502
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119503
     # Then wait up to 10 seconds.
 
119504
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119505
       sleep 1
 
119506
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119507
     done
 
119508
     exit 1
 
119509
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119510
at_status=$? at_failed=false
 
119511
$at_check_filter
 
119512
echo stderr:; cat "$at_stderr"
 
119513
echo stdout:; cat "$at_stdout"
 
119514
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:726"
 
119515
if $at_failed; then :
 
119516
  kill `cat savepid`
 
119517
fi
 
119518
$at_failed && at_fn_log_failure
 
119519
$at_traceon; }
 
119520
 
 
119521
fi
 
119522
$at_failed && at_fn_log_failure
 
119523
$at_traceon; }
 
119524
 
 
119525
{ set +x
 
119526
$as_echo "$at_srcdir/ovs-vsctl.at:729: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- remove n \`cat netflow-uuid\` targets '\"1.2.3.4:567\"'
 
119527
"
 
119528
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:729"
 
119529
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- remove n `cat netflow-uuid` targets '"1.2.3.4:567"'
 
119530
 
 
119531
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119532
at_status=$? at_failed=false
 
119533
$at_check_filter
 
119534
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"remove\" operation would put 0 values in column targets of table NetFlow but the minimum number is 1
 
119535
" | \
 
119536
  $at_diff - "$at_stderr" || at_failed=:
 
119537
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119538
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:729"
 
119539
if $at_failed; then :
 
119540
  cp pid savepid
 
119541
   { set +x
 
119542
$as_echo "$at_srcdir/ovs-vsctl.at:729: ovs-appctl -t \$PWD/unixctl -e exit"
 
119543
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:729"
 
119544
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119545
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119546
at_status=$? at_failed=false
 
119547
$at_check_filter
 
119548
echo stderr:; cat "$at_stderr"
 
119549
echo stdout:; cat "$at_stdout"
 
119550
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:729"
 
119551
$at_failed && at_fn_log_failure
 
119552
$at_traceon; }
 
119553
 
 
119554
   { set +x
 
119555
$as_echo "$at_srcdir/ovs-vsctl.at:729: # First try a quick sleep, so that the test completes very quickly
 
119556
     # in the normal case.  POSIX doesn't require fractional times to
 
119557
     # work, so this might not work.
 
119558
     sleep 0.1
 
119559
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119560
     # Then wait up to 10 seconds.
 
119561
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119562
       sleep 1
 
119563
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119564
     done
 
119565
     exit 1"
 
119566
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:729"
 
119567
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119568
     # in the normal case.  POSIX doesn't require fractional times to
 
119569
     # work, so this might not work.
 
119570
     sleep 0.1
 
119571
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119572
     # Then wait up to 10 seconds.
 
119573
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119574
       sleep 1
 
119575
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119576
     done
 
119577
     exit 1
 
119578
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119579
at_status=$? at_failed=false
 
119580
$at_check_filter
 
119581
echo stderr:; cat "$at_stderr"
 
119582
echo stdout:; cat "$at_stdout"
 
119583
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:729"
 
119584
if $at_failed; then :
 
119585
  kill `cat savepid`
 
119586
fi
 
119587
$at_failed && at_fn_log_failure
 
119588
$at_traceon; }
 
119589
 
 
119590
fi
 
119591
$at_failed && at_fn_log_failure
 
119592
$at_traceon; }
 
119593
 
 
119594
{ set +x
 
119595
$as_echo "$at_srcdir/ovs-vsctl.at:732: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- clear n \`cat netflow-uuid\` targets
 
119596
"
 
119597
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:732"
 
119598
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- clear n `cat netflow-uuid` targets
 
119599
 
 
119600
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119601
at_status=$? at_failed=false
 
119602
$at_check_filter
 
119603
echo >>"$at_stderr"; $as_echo "ovs-vsctl: \"clear\" operation cannot be applied to column targets of table NetFlow, which is not allowed to be empty
 
119604
" | \
 
119605
  $at_diff - "$at_stderr" || at_failed=:
 
119606
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119607
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:732"
 
119608
if $at_failed; then :
 
119609
  cp pid savepid
 
119610
   { set +x
 
119611
$as_echo "$at_srcdir/ovs-vsctl.at:732: ovs-appctl -t \$PWD/unixctl -e exit"
 
119612
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:732"
 
119613
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119614
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119615
at_status=$? at_failed=false
 
119616
$at_check_filter
 
119617
echo stderr:; cat "$at_stderr"
 
119618
echo stdout:; cat "$at_stdout"
 
119619
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:732"
 
119620
$at_failed && at_fn_log_failure
 
119621
$at_traceon; }
 
119622
 
 
119623
   { set +x
 
119624
$as_echo "$at_srcdir/ovs-vsctl.at:732: # First try a quick sleep, so that the test completes very quickly
 
119625
     # in the normal case.  POSIX doesn't require fractional times to
 
119626
     # work, so this might not work.
 
119627
     sleep 0.1
 
119628
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119629
     # Then wait up to 10 seconds.
 
119630
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119631
       sleep 1
 
119632
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119633
     done
 
119634
     exit 1"
 
119635
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:732"
 
119636
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119637
     # in the normal case.  POSIX doesn't require fractional times to
 
119638
     # work, so this might not work.
 
119639
     sleep 0.1
 
119640
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119641
     # Then wait up to 10 seconds.
 
119642
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119643
       sleep 1
 
119644
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119645
     done
 
119646
     exit 1
 
119647
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119648
at_status=$? at_failed=false
 
119649
$at_check_filter
 
119650
echo stderr:; cat "$at_stderr"
 
119651
echo stdout:; cat "$at_stdout"
 
119652
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:732"
 
119653
if $at_failed; then :
 
119654
  kill `cat savepid`
 
119655
fi
 
119656
$at_failed && at_fn_log_failure
 
119657
$at_traceon; }
 
119658
 
 
119659
fi
 
119660
$at_failed && at_fn_log_failure
 
119661
$at_traceon; }
 
119662
 
 
119663
{ set +x
 
119664
$as_echo "$at_srcdir/ovs-vsctl.at:735: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- destroy b br2
 
119665
"
 
119666
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:735"
 
119667
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- destroy b br2
 
119668
 
 
119669
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119670
at_status=$? at_failed=false
 
119671
$at_check_filter
 
119672
echo >>"$at_stderr"; $as_echo "ovs-vsctl: no row \"br2\" in table Bridge
 
119673
" | \
 
119674
  $at_diff - "$at_stderr" || at_failed=:
 
119675
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119676
at_fn_check_status 1 $at_status "$at_srcdir/ovs-vsctl.at:735"
 
119677
if $at_failed; then :
 
119678
  cp pid savepid
 
119679
   { set +x
 
119680
$as_echo "$at_srcdir/ovs-vsctl.at:735: ovs-appctl -t \$PWD/unixctl -e exit"
 
119681
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:735"
 
119682
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119683
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119684
at_status=$? at_failed=false
 
119685
$at_check_filter
 
119686
echo stderr:; cat "$at_stderr"
 
119687
echo stdout:; cat "$at_stdout"
 
119688
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:735"
 
119689
$at_failed && at_fn_log_failure
 
119690
$at_traceon; }
 
119691
 
 
119692
   { set +x
 
119693
$as_echo "$at_srcdir/ovs-vsctl.at:735: # First try a quick sleep, so that the test completes very quickly
 
119694
     # in the normal case.  POSIX doesn't require fractional times to
 
119695
     # work, so this might not work.
 
119696
     sleep 0.1
 
119697
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119698
     # Then wait up to 10 seconds.
 
119699
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119700
       sleep 1
 
119701
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119702
     done
 
119703
     exit 1"
 
119704
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:735"
 
119705
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119706
     # in the normal case.  POSIX doesn't require fractional times to
 
119707
     # work, so this might not work.
 
119708
     sleep 0.1
 
119709
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119710
     # Then wait up to 10 seconds.
 
119711
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119712
       sleep 1
 
119713
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119714
     done
 
119715
     exit 1
 
119716
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119717
at_status=$? at_failed=false
 
119718
$at_check_filter
 
119719
echo stderr:; cat "$at_stderr"
 
119720
echo stdout:; cat "$at_stdout"
 
119721
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:735"
 
119722
if $at_failed; then :
 
119723
  kill `cat savepid`
 
119724
fi
 
119725
$at_failed && at_fn_log_failure
 
119726
$at_traceon; }
 
119727
 
 
119728
fi
 
119729
$at_failed && at_fn_log_failure
 
119730
$at_traceon; }
 
119731
 
 
119732
cp pid savepid
 
119733
   { set +x
 
119734
$as_echo "$at_srcdir/ovs-vsctl.at:738: ovs-appctl -t \$PWD/unixctl -e exit"
 
119735
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:738"
 
119736
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119737
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119738
at_status=$? at_failed=false
 
119739
$at_check_filter
 
119740
echo stderr:; cat "$at_stderr"
 
119741
echo stdout:; cat "$at_stdout"
 
119742
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:738"
 
119743
$at_failed && at_fn_log_failure
 
119744
$at_traceon; }
 
119745
 
 
119746
   { set +x
 
119747
$as_echo "$at_srcdir/ovs-vsctl.at:738: # First try a quick sleep, so that the test completes very quickly
 
119748
     # in the normal case.  POSIX doesn't require fractional times to
 
119749
     # work, so this might not work.
 
119750
     sleep 0.1
 
119751
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119752
     # Then wait up to 10 seconds.
 
119753
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119754
       sleep 1
 
119755
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119756
     done
 
119757
     exit 1"
 
119758
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:738"
 
119759
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119760
     # in the normal case.  POSIX doesn't require fractional times to
 
119761
     # work, so this might not work.
 
119762
     sleep 0.1
 
119763
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119764
     # Then wait up to 10 seconds.
 
119765
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119766
       sleep 1
 
119767
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119768
     done
 
119769
     exit 1
 
119770
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119771
at_status=$? at_failed=false
 
119772
$at_check_filter
 
119773
echo stderr:; cat "$at_stderr"
 
119774
echo stdout:; cat "$at_stdout"
 
119775
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:738"
 
119776
if $at_failed; then :
 
119777
  kill `cat savepid`
 
119778
fi
 
119779
$at_failed && at_fn_log_failure
 
119780
$at_traceon; }
 
119781
 
 
119782
  set +x
 
119783
  $at_times_p && times >"$at_times_file"
 
119784
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
119785
read at_status <"$at_status_file"
 
119786
#AT_STOP_969
 
119787
#AT_START_970
 
119788
at_fn_group_banner 970 'ovs-vsctl.at:741' \
 
119789
  "database commands -- wait-until immediately true" "" 69
 
119790
at_xfail=no
 
119791
(
 
119792
  $as_echo "970. $at_setup_line: testing $at_desc ..."
 
119793
  $at_traceon
 
119794
 
 
119795
 
 
119796
{ set +x
 
119797
$as_echo "$at_srcdir/ovs-vsctl.at:743: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
119798
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:743"
 
119799
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
119800
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119801
at_status=$? at_failed=false
 
119802
$at_check_filter
 
119803
echo stderr:; cat "$at_stderr"
 
119804
echo stdout:; tee stdout <"$at_stdout"
 
119805
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:743"
 
119806
$at_failed && at_fn_log_failure
 
119807
$at_traceon; }
 
119808
 
 
119809
   { set +x
 
119810
$as_echo "$at_srcdir/ovs-vsctl.at:743: ovsdb-tool transact db \\
 
119811
        '[\"Open_vSwitch\",
 
119812
          {\"op\": \"insert\",
 
119813
           \"table\": \"Open_vSwitch\",
 
119814
           \"row\": {}}]'"
 
119815
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:743"
 
119816
( $at_check_trace; ovsdb-tool transact db \
 
119817
        '["Open_vSwitch",
 
119818
          {"op": "insert",
 
119819
           "table": "Open_vSwitch",
 
119820
           "row": {}}]'
 
119821
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119822
at_status=$? at_failed=false
 
119823
$at_check_filter
 
119824
echo stderr:; cat "$at_stderr"
 
119825
echo stdout:; cat "$at_stdout"
 
119826
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:743"
 
119827
$at_failed && at_fn_log_failure
 
119828
$at_traceon; }
 
119829
 
 
119830
   { set +x
 
119831
$as_echo "$at_srcdir/ovs-vsctl.at:743: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
119832
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:743"
 
119833
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
119834
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119835
at_status=$? at_failed=false
 
119836
$at_check_filter
 
119837
echo stderr:; cat "$at_stderr"
 
119838
echo stdout:; cat "$at_stdout"
 
119839
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:743"
 
119840
$at_failed && at_fn_log_failure
 
119841
$at_traceon; }
 
119842
 
 
119843
{ set +x
 
119844
$as_echo "$at_srcdir/ovs-vsctl.at:744: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br0
 
119845
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond br0 bond0 eth0 eth1
 
119846
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set port bond0 bond_updelay=500 other-config:abc=def
 
119847
"
 
119848
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:744"
 
119849
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br0
 
119850
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-bond br0 bond0 eth0 eth1
 
119851
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- set port bond0 bond_updelay=500 other-config:abc=def
 
119852
 
 
119853
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119854
at_status=$? at_failed=false
 
119855
$at_check_filter
 
119856
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
119857
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119858
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:744"
 
119859
if $at_failed; then :
 
119860
  cp pid savepid
 
119861
   { set +x
 
119862
$as_echo "$at_srcdir/ovs-vsctl.at:744: ovs-appctl -t \$PWD/unixctl -e exit"
 
119863
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:744"
 
119864
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119865
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119866
at_status=$? at_failed=false
 
119867
$at_check_filter
 
119868
echo stderr:; cat "$at_stderr"
 
119869
echo stdout:; cat "$at_stdout"
 
119870
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:744"
 
119871
$at_failed && at_fn_log_failure
 
119872
$at_traceon; }
 
119873
 
 
119874
   { set +x
 
119875
$as_echo "$at_srcdir/ovs-vsctl.at:744: # First try a quick sleep, so that the test completes very quickly
 
119876
     # in the normal case.  POSIX doesn't require fractional times to
 
119877
     # work, so this might not work.
 
119878
     sleep 0.1
 
119879
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119880
     # Then wait up to 10 seconds.
 
119881
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119882
       sleep 1
 
119883
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119884
     done
 
119885
     exit 1"
 
119886
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:744"
 
119887
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119888
     # in the normal case.  POSIX doesn't require fractional times to
 
119889
     # work, so this might not work.
 
119890
     sleep 0.1
 
119891
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119892
     # Then wait up to 10 seconds.
 
119893
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119894
       sleep 1
 
119895
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119896
     done
 
119897
     exit 1
 
119898
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119899
at_status=$? at_failed=false
 
119900
$at_check_filter
 
119901
echo stderr:; cat "$at_stderr"
 
119902
echo stdout:; cat "$at_stdout"
 
119903
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:744"
 
119904
if $at_failed; then :
 
119905
  kill `cat savepid`
 
119906
fi
 
119907
$at_failed && at_fn_log_failure
 
119908
$at_traceon; }
 
119909
 
 
119910
fi
 
119911
$at_failed && at_fn_log_failure
 
119912
$at_traceon; }
 
119913
 
 
119914
{ set +x
 
119915
$as_echo "$at_srcdir/ovs-vsctl.at:749: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until Open_vSwitch . manager_options=[]
 
119916
"
 
119917
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:749"
 
119918
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until Open_vSwitch . manager_options=[]
 
119919
 
 
119920
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119921
at_status=$? at_failed=false
 
119922
$at_check_filter
 
119923
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
119924
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119925
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:749"
 
119926
if $at_failed; then :
 
119927
  cp pid savepid
 
119928
   { set +x
 
119929
$as_echo "$at_srcdir/ovs-vsctl.at:749: ovs-appctl -t \$PWD/unixctl -e exit"
 
119930
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:749"
 
119931
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119932
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119933
at_status=$? at_failed=false
 
119934
$at_check_filter
 
119935
echo stderr:; cat "$at_stderr"
 
119936
echo stdout:; cat "$at_stdout"
 
119937
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:749"
 
119938
$at_failed && at_fn_log_failure
 
119939
$at_traceon; }
 
119940
 
 
119941
   { set +x
 
119942
$as_echo "$at_srcdir/ovs-vsctl.at:749: # First try a quick sleep, so that the test completes very quickly
 
119943
     # in the normal case.  POSIX doesn't require fractional times to
 
119944
     # work, so this might not work.
 
119945
     sleep 0.1
 
119946
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119947
     # Then wait up to 10 seconds.
 
119948
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119949
       sleep 1
 
119950
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
119951
     done
 
119952
     exit 1"
 
119953
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:749"
 
119954
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
119955
     # in the normal case.  POSIX doesn't require fractional times to
 
119956
     # work, so this might not work.
 
119957
     sleep 0.1
 
119958
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
119959
     # Then wait up to 10 seconds.
 
119960
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
119961
       sleep 1
 
119962
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
119963
     done
 
119964
     exit 1
 
119965
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119966
at_status=$? at_failed=false
 
119967
$at_check_filter
 
119968
echo stderr:; cat "$at_stderr"
 
119969
echo stdout:; cat "$at_stdout"
 
119970
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:749"
 
119971
if $at_failed; then :
 
119972
  kill `cat savepid`
 
119973
fi
 
119974
$at_failed && at_fn_log_failure
 
119975
$at_traceon; }
 
119976
 
 
119977
fi
 
119978
$at_failed && at_fn_log_failure
 
119979
$at_traceon; }
 
119980
 
 
119981
{ set +x
 
119982
$as_echo "$at_srcdir/ovs-vsctl.at:751: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until Open_vSwitch . bridges!=[]
 
119983
"
 
119984
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:751"
 
119985
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until Open_vSwitch . bridges!=[]
 
119986
 
 
119987
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
119988
at_status=$? at_failed=false
 
119989
$at_check_filter
 
119990
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
119991
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
119992
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:751"
 
119993
if $at_failed; then :
 
119994
  cp pid savepid
 
119995
   { set +x
 
119996
$as_echo "$at_srcdir/ovs-vsctl.at:751: ovs-appctl -t \$PWD/unixctl -e exit"
 
119997
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:751"
 
119998
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
119999
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120000
at_status=$? at_failed=false
 
120001
$at_check_filter
 
120002
echo stderr:; cat "$at_stderr"
 
120003
echo stdout:; cat "$at_stdout"
 
120004
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:751"
 
120005
$at_failed && at_fn_log_failure
 
120006
$at_traceon; }
 
120007
 
 
120008
   { set +x
 
120009
$as_echo "$at_srcdir/ovs-vsctl.at:751: # First try a quick sleep, so that the test completes very quickly
 
120010
     # in the normal case.  POSIX doesn't require fractional times to
 
120011
     # work, so this might not work.
 
120012
     sleep 0.1
 
120013
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120014
     # Then wait up to 10 seconds.
 
120015
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120016
       sleep 1
 
120017
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120018
     done
 
120019
     exit 1"
 
120020
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:751"
 
120021
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120022
     # in the normal case.  POSIX doesn't require fractional times to
 
120023
     # work, so this might not work.
 
120024
     sleep 0.1
 
120025
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120026
     # Then wait up to 10 seconds.
 
120027
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120028
       sleep 1
 
120029
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120030
     done
 
120031
     exit 1
 
120032
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120033
at_status=$? at_failed=false
 
120034
$at_check_filter
 
120035
echo stderr:; cat "$at_stderr"
 
120036
echo stdout:; cat "$at_stdout"
 
120037
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:751"
 
120038
if $at_failed; then :
 
120039
  kill `cat savepid`
 
120040
fi
 
120041
$at_failed && at_fn_log_failure
 
120042
$at_traceon; }
 
120043
 
 
120044
fi
 
120045
$at_failed && at_fn_log_failure
 
120046
$at_traceon; }
 
120047
 
 
120048
{ set +x
 
120049
$as_echo "$at_srcdir/ovs-vsctl.at:753: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until Port bond0 other-config:abc=def
 
120050
"
 
120051
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:753"
 
120052
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until Port bond0 other-config:abc=def
 
120053
 
 
120054
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120055
at_status=$? at_failed=false
 
120056
$at_check_filter
 
120057
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120058
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
120059
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:753"
 
120060
if $at_failed; then :
 
120061
  cp pid savepid
 
120062
   { set +x
 
120063
$as_echo "$at_srcdir/ovs-vsctl.at:753: ovs-appctl -t \$PWD/unixctl -e exit"
 
120064
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:753"
 
120065
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120066
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120067
at_status=$? at_failed=false
 
120068
$at_check_filter
 
120069
echo stderr:; cat "$at_stderr"
 
120070
echo stdout:; cat "$at_stdout"
 
120071
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:753"
 
120072
$at_failed && at_fn_log_failure
 
120073
$at_traceon; }
 
120074
 
 
120075
   { set +x
 
120076
$as_echo "$at_srcdir/ovs-vsctl.at:753: # First try a quick sleep, so that the test completes very quickly
 
120077
     # in the normal case.  POSIX doesn't require fractional times to
 
120078
     # work, so this might not work.
 
120079
     sleep 0.1
 
120080
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120081
     # Then wait up to 10 seconds.
 
120082
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120083
       sleep 1
 
120084
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120085
     done
 
120086
     exit 1"
 
120087
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:753"
 
120088
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120089
     # in the normal case.  POSIX doesn't require fractional times to
 
120090
     # work, so this might not work.
 
120091
     sleep 0.1
 
120092
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120093
     # Then wait up to 10 seconds.
 
120094
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120095
       sleep 1
 
120096
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120097
     done
 
120098
     exit 1
 
120099
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120100
at_status=$? at_failed=false
 
120101
$at_check_filter
 
120102
echo stderr:; cat "$at_stderr"
 
120103
echo stdout:; cat "$at_stdout"
 
120104
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:753"
 
120105
if $at_failed; then :
 
120106
  kill `cat savepid`
 
120107
fi
 
120108
$at_failed && at_fn_log_failure
 
120109
$at_traceon; }
 
120110
 
 
120111
fi
 
120112
$at_failed && at_fn_log_failure
 
120113
$at_traceon; }
 
120114
 
 
120115
{ set +x
 
120116
$as_echo "$at_srcdir/ovs-vsctl.at:755: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until port bond0 'bond_updelay>50' 'other-config:abc>d' 'other-config:abc<e'
 
120117
"
 
120118
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:755"
 
120119
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until port bond0 'bond_updelay>50' 'other-config:abc>d' 'other-config:abc<e'
 
120120
 
 
120121
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120122
at_status=$? at_failed=false
 
120123
$at_check_filter
 
120124
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120125
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
120126
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:755"
 
120127
if $at_failed; then :
 
120128
  cp pid savepid
 
120129
   { set +x
 
120130
$as_echo "$at_srcdir/ovs-vsctl.at:755: ovs-appctl -t \$PWD/unixctl -e exit"
 
120131
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:755"
 
120132
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120133
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120134
at_status=$? at_failed=false
 
120135
$at_check_filter
 
120136
echo stderr:; cat "$at_stderr"
 
120137
echo stdout:; cat "$at_stdout"
 
120138
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:755"
 
120139
$at_failed && at_fn_log_failure
 
120140
$at_traceon; }
 
120141
 
 
120142
   { set +x
 
120143
$as_echo "$at_srcdir/ovs-vsctl.at:755: # First try a quick sleep, so that the test completes very quickly
 
120144
     # in the normal case.  POSIX doesn't require fractional times to
 
120145
     # work, so this might not work.
 
120146
     sleep 0.1
 
120147
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120148
     # Then wait up to 10 seconds.
 
120149
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120150
       sleep 1
 
120151
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120152
     done
 
120153
     exit 1"
 
120154
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:755"
 
120155
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120156
     # in the normal case.  POSIX doesn't require fractional times to
 
120157
     # work, so this might not work.
 
120158
     sleep 0.1
 
120159
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120160
     # Then wait up to 10 seconds.
 
120161
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120162
       sleep 1
 
120163
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120164
     done
 
120165
     exit 1
 
120166
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120167
at_status=$? at_failed=false
 
120168
$at_check_filter
 
120169
echo stderr:; cat "$at_stderr"
 
120170
echo stdout:; cat "$at_stdout"
 
120171
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:755"
 
120172
if $at_failed; then :
 
120173
  kill `cat savepid`
 
120174
fi
 
120175
$at_failed && at_fn_log_failure
 
120176
$at_traceon; }
 
120177
 
 
120178
fi
 
120179
$at_failed && at_fn_log_failure
 
120180
$at_traceon; }
 
120181
 
 
120182
cp pid savepid
 
120183
   { set +x
 
120184
$as_echo "$at_srcdir/ovs-vsctl.at:757: ovs-appctl -t \$PWD/unixctl -e exit"
 
120185
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:757"
 
120186
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120187
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120188
at_status=$? at_failed=false
 
120189
$at_check_filter
 
120190
echo stderr:; cat "$at_stderr"
 
120191
echo stdout:; cat "$at_stdout"
 
120192
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:757"
 
120193
$at_failed && at_fn_log_failure
 
120194
$at_traceon; }
 
120195
 
 
120196
   { set +x
 
120197
$as_echo "$at_srcdir/ovs-vsctl.at:757: # First try a quick sleep, so that the test completes very quickly
 
120198
     # in the normal case.  POSIX doesn't require fractional times to
 
120199
     # work, so this might not work.
 
120200
     sleep 0.1
 
120201
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120202
     # Then wait up to 10 seconds.
 
120203
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120204
       sleep 1
 
120205
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120206
     done
 
120207
     exit 1"
 
120208
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:757"
 
120209
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120210
     # in the normal case.  POSIX doesn't require fractional times to
 
120211
     # work, so this might not work.
 
120212
     sleep 0.1
 
120213
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120214
     # Then wait up to 10 seconds.
 
120215
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120216
       sleep 1
 
120217
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120218
     done
 
120219
     exit 1
 
120220
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120221
at_status=$? at_failed=false
 
120222
$at_check_filter
 
120223
echo stderr:; cat "$at_stderr"
 
120224
echo stdout:; cat "$at_stdout"
 
120225
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:757"
 
120226
if $at_failed; then :
 
120227
  kill `cat savepid`
 
120228
fi
 
120229
$at_failed && at_fn_log_failure
 
120230
$at_traceon; }
 
120231
 
 
120232
  set +x
 
120233
  $at_times_p && times >"$at_times_file"
 
120234
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
120235
read at_status <"$at_status_file"
 
120236
#AT_STOP_970
 
120237
#AT_START_971
 
120238
at_fn_group_banner 971 'ovs-vsctl.at:760' \
 
120239
  "database commands -- wait-until must wait" "      " 69
 
120240
at_xfail=no
 
120241
(
 
120242
  $as_echo "971. $at_setup_line: testing $at_desc ..."
 
120243
  $at_traceon
 
120244
 
 
120245
 
 
120246
 
 
120247
# Disable lcov for this test.  All the programs running in parallel
 
120248
# race badly on access to profiling data.
 
120249
DISABLE_LCOV=true
 
120250
export DISABLE_LCOV
 
120251
 
 
120252
{ set +x
 
120253
$as_echo "$at_srcdir/ovs-vsctl.at:768: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
120254
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:768"
 
120255
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
120256
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120257
at_status=$? at_failed=false
 
120258
$at_check_filter
 
120259
echo stderr:; cat "$at_stderr"
 
120260
echo stdout:; tee stdout <"$at_stdout"
 
120261
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:768"
 
120262
$at_failed && at_fn_log_failure
 
120263
$at_traceon; }
 
120264
 
 
120265
   { set +x
 
120266
$as_echo "$at_srcdir/ovs-vsctl.at:768: ovsdb-tool transact db \\
 
120267
        '[\"Open_vSwitch\",
 
120268
          {\"op\": \"insert\",
 
120269
           \"table\": \"Open_vSwitch\",
 
120270
           \"row\": {}}]'"
 
120271
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:768"
 
120272
( $at_check_trace; ovsdb-tool transact db \
 
120273
        '["Open_vSwitch",
 
120274
          {"op": "insert",
 
120275
           "table": "Open_vSwitch",
 
120276
           "row": {}}]'
 
120277
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120278
at_status=$? at_failed=false
 
120279
$at_check_filter
 
120280
echo stderr:; cat "$at_stderr"
 
120281
echo stdout:; cat "$at_stdout"
 
120282
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:768"
 
120283
$at_failed && at_fn_log_failure
 
120284
$at_traceon; }
 
120285
 
 
120286
   { set +x
 
120287
$as_echo "$at_srcdir/ovs-vsctl.at:768: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
120288
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:768"
 
120289
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
120290
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120291
at_status=$? at_failed=false
 
120292
$at_check_filter
 
120293
echo stderr:; cat "$at_stderr"
 
120294
echo stdout:; cat "$at_stdout"
 
120295
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:768"
 
120296
$at_failed && at_fn_log_failure
 
120297
$at_traceon; }
 
120298
 
 
120299
 
 
120300
# Start ovs-vsctls in background.
 
120301
(ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until o . bridges!=[] -- get bridge br10 other-config:abc
 
120302
) > stdout1 &
 
120303
(ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until bridge br1 -- get bridge br1 other-config:abc
 
120304
) > stdout2 &
 
120305
(ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until b br1 other-config={abc=def} -- get bridge br1 other-config
 
120306
) > stdout3 &
 
120307
(ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- wait-until port bond0 'bond_updelay>50' -- get port bond0 bond-updelay
 
120308
) > stdout4 &
 
120309
 
 
120310
# Give the ovs-vsctls a chance to read the database
 
120311
sleep 1
 
120312
 
 
120313
{ set +x
 
120314
$as_echo "$at_srcdir/ovs-vsctl.at:779: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br10 -- set bridge br10 other-config:abc=quux
 
120315
 
 
120316
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br1 -- set bridge br1 other-config:abc=def -- add-bond br1 bond0 eth0 eth1 -- set port bond0 bond_updelay=500
 
120317
"
 
120318
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:779"
 
120319
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br10 -- set bridge br10 other-config:abc=quux
 
120320
 
 
120321
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br1 -- set bridge br1 other-config:abc=def -- add-bond br1 bond0 eth0 eth1 -- set port bond0 bond_updelay=500
 
120322
 
 
120323
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120324
at_status=$? at_failed=false
 
120325
$at_check_filter
 
120326
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120327
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
120328
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:779"
 
120329
if $at_failed; then :
 
120330
  cp pid savepid
 
120331
   { set +x
 
120332
$as_echo "$at_srcdir/ovs-vsctl.at:779: ovs-appctl -t \$PWD/unixctl -e exit"
 
120333
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:779"
 
120334
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120335
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120336
at_status=$? at_failed=false
 
120337
$at_check_filter
 
120338
echo stderr:; cat "$at_stderr"
 
120339
echo stdout:; cat "$at_stdout"
 
120340
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:779"
 
120341
$at_failed && at_fn_log_failure
 
120342
$at_traceon; }
 
120343
 
 
120344
   { set +x
 
120345
$as_echo "$at_srcdir/ovs-vsctl.at:779: # First try a quick sleep, so that the test completes very quickly
 
120346
     # in the normal case.  POSIX doesn't require fractional times to
 
120347
     # work, so this might not work.
 
120348
     sleep 0.1
 
120349
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120350
     # Then wait up to 10 seconds.
 
120351
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120352
       sleep 1
 
120353
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120354
     done
 
120355
     exit 1"
 
120356
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:779"
 
120357
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120358
     # in the normal case.  POSIX doesn't require fractional times to
 
120359
     # work, so this might not work.
 
120360
     sleep 0.1
 
120361
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120362
     # Then wait up to 10 seconds.
 
120363
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120364
       sleep 1
 
120365
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120366
     done
 
120367
     exit 1
 
120368
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120369
at_status=$? at_failed=false
 
120370
$at_check_filter
 
120371
echo stderr:; cat "$at_stderr"
 
120372
echo stdout:; cat "$at_stdout"
 
120373
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:779"
 
120374
if $at_failed; then :
 
120375
  kill `cat savepid`
 
120376
fi
 
120377
$at_failed && at_fn_log_failure
 
120378
$at_traceon; }
 
120379
 
 
120380
fi
 
120381
$at_failed && at_fn_log_failure
 
120382
$at_traceon; }
 
120383
 
 
120384
 
 
120385
# Wait for the ovs-vsctls to finish.
 
120386
wait
 
120387
 
 
120388
# Check output
 
120389
{ set +x
 
120390
$as_echo "$at_srcdir/ovs-vsctl.at:787: cat stdout1"
 
120391
at_fn_check_prepare_trace "ovs-vsctl.at:787"
 
120392
( $at_check_trace; cat stdout1
 
120393
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120394
at_status=$? at_failed=false
 
120395
$at_check_filter
 
120396
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120397
echo >>"$at_stdout"; $as_echo "quux
 
120398
" | \
 
120399
  $at_diff - "$at_stdout" || at_failed=:
 
120400
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:787"
 
120401
if $at_failed; then :
 
120402
  cp pid savepid
 
120403
   { set +x
 
120404
$as_echo "$at_srcdir/ovs-vsctl.at:787: ovs-appctl -t \$PWD/unixctl -e exit"
 
120405
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:787"
 
120406
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120407
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120408
at_status=$? at_failed=false
 
120409
$at_check_filter
 
120410
echo stderr:; cat "$at_stderr"
 
120411
echo stdout:; cat "$at_stdout"
 
120412
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:787"
 
120413
$at_failed && at_fn_log_failure
 
120414
$at_traceon; }
 
120415
 
 
120416
   { set +x
 
120417
$as_echo "$at_srcdir/ovs-vsctl.at:787: # First try a quick sleep, so that the test completes very quickly
 
120418
     # in the normal case.  POSIX doesn't require fractional times to
 
120419
     # work, so this might not work.
 
120420
     sleep 0.1
 
120421
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120422
     # Then wait up to 10 seconds.
 
120423
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120424
       sleep 1
 
120425
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120426
     done
 
120427
     exit 1"
 
120428
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:787"
 
120429
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120430
     # in the normal case.  POSIX doesn't require fractional times to
 
120431
     # work, so this might not work.
 
120432
     sleep 0.1
 
120433
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120434
     # Then wait up to 10 seconds.
 
120435
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120436
       sleep 1
 
120437
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120438
     done
 
120439
     exit 1
 
120440
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120441
at_status=$? at_failed=false
 
120442
$at_check_filter
 
120443
echo stderr:; cat "$at_stderr"
 
120444
echo stdout:; cat "$at_stdout"
 
120445
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:787"
 
120446
if $at_failed; then :
 
120447
  kill `cat savepid`
 
120448
fi
 
120449
$at_failed && at_fn_log_failure
 
120450
$at_traceon; }
 
120451
 
 
120452
fi
 
120453
$at_failed && at_fn_log_failure
 
120454
$at_traceon; }
 
120455
 
 
120456
{ set +x
 
120457
$as_echo "$at_srcdir/ovs-vsctl.at:789: cat stdout2"
 
120458
at_fn_check_prepare_trace "ovs-vsctl.at:789"
 
120459
( $at_check_trace; cat stdout2
 
120460
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120461
at_status=$? at_failed=false
 
120462
$at_check_filter
 
120463
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120464
echo >>"$at_stdout"; $as_echo "def
 
120465
" | \
 
120466
  $at_diff - "$at_stdout" || at_failed=:
 
120467
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:789"
 
120468
if $at_failed; then :
 
120469
  cp pid savepid
 
120470
   { set +x
 
120471
$as_echo "$at_srcdir/ovs-vsctl.at:789: ovs-appctl -t \$PWD/unixctl -e exit"
 
120472
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:789"
 
120473
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120474
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120475
at_status=$? at_failed=false
 
120476
$at_check_filter
 
120477
echo stderr:; cat "$at_stderr"
 
120478
echo stdout:; cat "$at_stdout"
 
120479
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:789"
 
120480
$at_failed && at_fn_log_failure
 
120481
$at_traceon; }
 
120482
 
 
120483
   { set +x
 
120484
$as_echo "$at_srcdir/ovs-vsctl.at:789: # First try a quick sleep, so that the test completes very quickly
 
120485
     # in the normal case.  POSIX doesn't require fractional times to
 
120486
     # work, so this might not work.
 
120487
     sleep 0.1
 
120488
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120489
     # Then wait up to 10 seconds.
 
120490
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120491
       sleep 1
 
120492
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120493
     done
 
120494
     exit 1"
 
120495
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:789"
 
120496
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120497
     # in the normal case.  POSIX doesn't require fractional times to
 
120498
     # work, so this might not work.
 
120499
     sleep 0.1
 
120500
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120501
     # Then wait up to 10 seconds.
 
120502
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120503
       sleep 1
 
120504
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120505
     done
 
120506
     exit 1
 
120507
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120508
at_status=$? at_failed=false
 
120509
$at_check_filter
 
120510
echo stderr:; cat "$at_stderr"
 
120511
echo stdout:; cat "$at_stdout"
 
120512
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:789"
 
120513
if $at_failed; then :
 
120514
  kill `cat savepid`
 
120515
fi
 
120516
$at_failed && at_fn_log_failure
 
120517
$at_traceon; }
 
120518
 
 
120519
fi
 
120520
$at_failed && at_fn_log_failure
 
120521
$at_traceon; }
 
120522
 
 
120523
{ set +x
 
120524
$as_echo "$at_srcdir/ovs-vsctl.at:791: cat stdout3"
 
120525
at_fn_check_prepare_trace "ovs-vsctl.at:791"
 
120526
( $at_check_trace; cat stdout3
 
120527
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120528
at_status=$? at_failed=false
 
120529
$at_check_filter
 
120530
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120531
echo >>"$at_stdout"; $as_echo "{abc=def}
 
120532
" | \
 
120533
  $at_diff - "$at_stdout" || at_failed=:
 
120534
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:791"
 
120535
if $at_failed; then :
 
120536
  cp pid savepid
 
120537
   { set +x
 
120538
$as_echo "$at_srcdir/ovs-vsctl.at:791: ovs-appctl -t \$PWD/unixctl -e exit"
 
120539
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:791"
 
120540
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120541
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120542
at_status=$? at_failed=false
 
120543
$at_check_filter
 
120544
echo stderr:; cat "$at_stderr"
 
120545
echo stdout:; cat "$at_stdout"
 
120546
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:791"
 
120547
$at_failed && at_fn_log_failure
 
120548
$at_traceon; }
 
120549
 
 
120550
   { set +x
 
120551
$as_echo "$at_srcdir/ovs-vsctl.at:791: # First try a quick sleep, so that the test completes very quickly
 
120552
     # in the normal case.  POSIX doesn't require fractional times to
 
120553
     # work, so this might not work.
 
120554
     sleep 0.1
 
120555
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120556
     # Then wait up to 10 seconds.
 
120557
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120558
       sleep 1
 
120559
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120560
     done
 
120561
     exit 1"
 
120562
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:791"
 
120563
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120564
     # in the normal case.  POSIX doesn't require fractional times to
 
120565
     # work, so this might not work.
 
120566
     sleep 0.1
 
120567
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120568
     # Then wait up to 10 seconds.
 
120569
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120570
       sleep 1
 
120571
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120572
     done
 
120573
     exit 1
 
120574
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120575
at_status=$? at_failed=false
 
120576
$at_check_filter
 
120577
echo stderr:; cat "$at_stderr"
 
120578
echo stdout:; cat "$at_stdout"
 
120579
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:791"
 
120580
if $at_failed; then :
 
120581
  kill `cat savepid`
 
120582
fi
 
120583
$at_failed && at_fn_log_failure
 
120584
$at_traceon; }
 
120585
 
 
120586
fi
 
120587
$at_failed && at_fn_log_failure
 
120588
$at_traceon; }
 
120589
 
 
120590
{ set +x
 
120591
$as_echo "$at_srcdir/ovs-vsctl.at:793: cat stdout4"
 
120592
at_fn_check_prepare_trace "ovs-vsctl.at:793"
 
120593
( $at_check_trace; cat stdout4
 
120594
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120595
at_status=$? at_failed=false
 
120596
$at_check_filter
 
120597
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120598
echo >>"$at_stdout"; $as_echo "500
 
120599
" | \
 
120600
  $at_diff - "$at_stdout" || at_failed=:
 
120601
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:793"
 
120602
if $at_failed; then :
 
120603
  cp pid savepid
 
120604
   { set +x
 
120605
$as_echo "$at_srcdir/ovs-vsctl.at:793: ovs-appctl -t \$PWD/unixctl -e exit"
 
120606
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:793"
 
120607
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120608
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120609
at_status=$? at_failed=false
 
120610
$at_check_filter
 
120611
echo stderr:; cat "$at_stderr"
 
120612
echo stdout:; cat "$at_stdout"
 
120613
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:793"
 
120614
$at_failed && at_fn_log_failure
 
120615
$at_traceon; }
 
120616
 
 
120617
   { set +x
 
120618
$as_echo "$at_srcdir/ovs-vsctl.at:793: # First try a quick sleep, so that the test completes very quickly
 
120619
     # in the normal case.  POSIX doesn't require fractional times to
 
120620
     # work, so this might not work.
 
120621
     sleep 0.1
 
120622
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120623
     # Then wait up to 10 seconds.
 
120624
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120625
       sleep 1
 
120626
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120627
     done
 
120628
     exit 1"
 
120629
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:793"
 
120630
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120631
     # in the normal case.  POSIX doesn't require fractional times to
 
120632
     # work, so this might not work.
 
120633
     sleep 0.1
 
120634
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120635
     # Then wait up to 10 seconds.
 
120636
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120637
       sleep 1
 
120638
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120639
     done
 
120640
     exit 1
 
120641
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120642
at_status=$? at_failed=false
 
120643
$at_check_filter
 
120644
echo stderr:; cat "$at_stderr"
 
120645
echo stdout:; cat "$at_stdout"
 
120646
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:793"
 
120647
if $at_failed; then :
 
120648
  kill `cat savepid`
 
120649
fi
 
120650
$at_failed && at_fn_log_failure
 
120651
$at_traceon; }
 
120652
 
 
120653
fi
 
120654
$at_failed && at_fn_log_failure
 
120655
$at_traceon; }
 
120656
 
 
120657
 
 
120658
cp pid savepid
 
120659
   { set +x
 
120660
$as_echo "$at_srcdir/ovs-vsctl.at:796: ovs-appctl -t \$PWD/unixctl -e exit"
 
120661
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:796"
 
120662
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120663
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120664
at_status=$? at_failed=false
 
120665
$at_check_filter
 
120666
echo stderr:; cat "$at_stderr"
 
120667
echo stdout:; cat "$at_stdout"
 
120668
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:796"
 
120669
$at_failed && at_fn_log_failure
 
120670
$at_traceon; }
 
120671
 
 
120672
   { set +x
 
120673
$as_echo "$at_srcdir/ovs-vsctl.at:796: # First try a quick sleep, so that the test completes very quickly
 
120674
     # in the normal case.  POSIX doesn't require fractional times to
 
120675
     # work, so this might not work.
 
120676
     sleep 0.1
 
120677
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120678
     # Then wait up to 10 seconds.
 
120679
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120680
       sleep 1
 
120681
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120682
     done
 
120683
     exit 1"
 
120684
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:796"
 
120685
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120686
     # in the normal case.  POSIX doesn't require fractional times to
 
120687
     # work, so this might not work.
 
120688
     sleep 0.1
 
120689
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120690
     # Then wait up to 10 seconds.
 
120691
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120692
       sleep 1
 
120693
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120694
     done
 
120695
     exit 1
 
120696
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120697
at_status=$? at_failed=false
 
120698
$at_check_filter
 
120699
echo stderr:; cat "$at_stderr"
 
120700
echo stdout:; cat "$at_stdout"
 
120701
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:796"
 
120702
if $at_failed; then :
 
120703
  kill `cat savepid`
 
120704
fi
 
120705
$at_failed && at_fn_log_failure
 
120706
$at_traceon; }
 
120707
 
 
120708
  set +x
 
120709
  $at_times_p && times >"$at_times_file"
 
120710
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
120711
read at_status <"$at_status_file"
 
120712
#AT_STOP_971
 
120713
#AT_START_972
 
120714
at_fn_group_banner 972 'ovs-vsctl.at:799' \
 
120715
  "--id option on create, get commands" "            " 69
 
120716
at_xfail=no
 
120717
(
 
120718
  $as_echo "972. $at_setup_line: testing $at_desc ..."
 
120719
  $at_traceon
 
120720
 
 
120721
 
 
120722
{ set +x
 
120723
$as_echo "$at_srcdir/ovs-vsctl.at:801: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
120724
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:801"
 
120725
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
120726
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120727
at_status=$? at_failed=false
 
120728
$at_check_filter
 
120729
echo stderr:; cat "$at_stderr"
 
120730
echo stdout:; tee stdout <"$at_stdout"
 
120731
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:801"
 
120732
$at_failed && at_fn_log_failure
 
120733
$at_traceon; }
 
120734
 
 
120735
   { set +x
 
120736
$as_echo "$at_srcdir/ovs-vsctl.at:801: ovsdb-tool transact db \\
 
120737
        '[\"Open_vSwitch\",
 
120738
          {\"op\": \"insert\",
 
120739
           \"table\": \"Open_vSwitch\",
 
120740
           \"row\": {}}]'"
 
120741
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:801"
 
120742
( $at_check_trace; ovsdb-tool transact db \
 
120743
        '["Open_vSwitch",
 
120744
          {"op": "insert",
 
120745
           "table": "Open_vSwitch",
 
120746
           "row": {}}]'
 
120747
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120748
at_status=$? at_failed=false
 
120749
$at_check_filter
 
120750
echo stderr:; cat "$at_stderr"
 
120751
echo stdout:; cat "$at_stdout"
 
120752
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:801"
 
120753
$at_failed && at_fn_log_failure
 
120754
$at_traceon; }
 
120755
 
 
120756
   { set +x
 
120757
$as_echo "$at_srcdir/ovs-vsctl.at:801: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
120758
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:801"
 
120759
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
120760
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120761
at_status=$? at_failed=false
 
120762
$at_check_filter
 
120763
echo stderr:; cat "$at_stderr"
 
120764
echo stdout:; cat "$at_stdout"
 
120765
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:801"
 
120766
$at_failed && at_fn_log_failure
 
120767
$at_traceon; }
 
120768
 
 
120769
{ set +x
 
120770
$as_echo "$at_srcdir/ovs-vsctl.at:802: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br0
 
120771
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port br0 eth0
 
120772
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port br0 eth1
 
120773
"
 
120774
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:802"
 
120775
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-br br0
 
120776
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port br0 eth0
 
120777
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- add-port br0 eth1
 
120778
 
 
120779
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120780
at_status=$? at_failed=false
 
120781
$at_check_filter
 
120782
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120783
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
120784
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:802"
 
120785
$at_failed && at_fn_log_failure
 
120786
$at_traceon; }
 
120787
 
 
120788
{ set +x
 
120789
$as_echo "$at_srcdir/ovs-vsctl.at:805: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- set bridge br0 mirrors=@m -- --id=@eth0 get port eth0 -- --id=@eth1 get port eth1 -- --id=@m create mirror name=mymirror select-dst-port=@eth0 select-src-port=@eth0 output-port=@eth1"
 
120790
at_fn_check_prepare_trace "ovs-vsctl.at:805"
 
120791
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket --oneline  -- set bridge br0 mirrors=@m -- --id=@eth0 get port eth0 -- --id=@eth1 get port eth1 -- --id=@m create mirror name=mymirror select-dst-port=@eth0 select-src-port=@eth0 output-port=@eth1
 
120792
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120793
at_status=$? at_failed=false
 
120794
$at_check_filter
 
120795
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120796
echo stdout:; tee stdout <"$at_stdout"
 
120797
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:805"
 
120798
if $at_failed; then :
 
120799
  cp pid savepid
 
120800
   { set +x
 
120801
$as_echo "$at_srcdir/ovs-vsctl.at:805: ovs-appctl -t \$PWD/unixctl -e exit"
 
120802
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:805"
 
120803
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120804
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120805
at_status=$? at_failed=false
 
120806
$at_check_filter
 
120807
echo stderr:; cat "$at_stderr"
 
120808
echo stdout:; cat "$at_stdout"
 
120809
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:805"
 
120810
$at_failed && at_fn_log_failure
 
120811
$at_traceon; }
 
120812
 
 
120813
   { set +x
 
120814
$as_echo "$at_srcdir/ovs-vsctl.at:805: # First try a quick sleep, so that the test completes very quickly
 
120815
     # in the normal case.  POSIX doesn't require fractional times to
 
120816
     # work, so this might not work.
 
120817
     sleep 0.1
 
120818
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120819
     # Then wait up to 10 seconds.
 
120820
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120821
       sleep 1
 
120822
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120823
     done
 
120824
     exit 1"
 
120825
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:805"
 
120826
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120827
     # in the normal case.  POSIX doesn't require fractional times to
 
120828
     # work, so this might not work.
 
120829
     sleep 0.1
 
120830
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120831
     # Then wait up to 10 seconds.
 
120832
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120833
       sleep 1
 
120834
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120835
     done
 
120836
     exit 1
 
120837
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120838
at_status=$? at_failed=false
 
120839
$at_check_filter
 
120840
echo stderr:; cat "$at_stderr"
 
120841
echo stdout:; cat "$at_stdout"
 
120842
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:805"
 
120843
if $at_failed; then :
 
120844
  kill `cat savepid`
 
120845
fi
 
120846
$at_failed && at_fn_log_failure
 
120847
$at_traceon; }
 
120848
 
 
120849
fi
 
120850
$at_failed && at_fn_log_failure
 
120851
$at_traceon; }
 
120852
 
 
120853
{ set +x
 
120854
$as_echo "$at_srcdir/ovs-vsctl.at:812: perl \$srcdir/uuidfilt.pl stdout"
 
120855
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovs-vsctl.at:812"
 
120856
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
120857
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120858
at_status=$? at_failed=false
 
120859
$at_check_filter
 
120860
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120861
echo >>"$at_stdout"; $as_echo "
 
120862
 
 
120863
 
 
120864
<0>
 
120865
" | \
 
120866
  $at_diff - "$at_stdout" || at_failed=:
 
120867
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:812"
 
120868
if $at_failed; then :
 
120869
  cp pid savepid
 
120870
   { set +x
 
120871
$as_echo "$at_srcdir/ovs-vsctl.at:812: ovs-appctl -t \$PWD/unixctl -e exit"
 
120872
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:812"
 
120873
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120874
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120875
at_status=$? at_failed=false
 
120876
$at_check_filter
 
120877
echo stderr:; cat "$at_stderr"
 
120878
echo stdout:; cat "$at_stdout"
 
120879
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:812"
 
120880
$at_failed && at_fn_log_failure
 
120881
$at_traceon; }
 
120882
 
 
120883
   { set +x
 
120884
$as_echo "$at_srcdir/ovs-vsctl.at:812: # First try a quick sleep, so that the test completes very quickly
 
120885
     # in the normal case.  POSIX doesn't require fractional times to
 
120886
     # work, so this might not work.
 
120887
     sleep 0.1
 
120888
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120889
     # Then wait up to 10 seconds.
 
120890
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120891
       sleep 1
 
120892
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120893
     done
 
120894
     exit 1"
 
120895
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:812"
 
120896
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120897
     # in the normal case.  POSIX doesn't require fractional times to
 
120898
     # work, so this might not work.
 
120899
     sleep 0.1
 
120900
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120901
     # Then wait up to 10 seconds.
 
120902
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120903
       sleep 1
 
120904
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120905
     done
 
120906
     exit 1
 
120907
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120908
at_status=$? at_failed=false
 
120909
$at_check_filter
 
120910
echo stderr:; cat "$at_stderr"
 
120911
echo stdout:; cat "$at_stdout"
 
120912
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:812"
 
120913
if $at_failed; then :
 
120914
  kill `cat savepid`
 
120915
fi
 
120916
$at_failed && at_fn_log_failure
 
120917
$at_traceon; }
 
120918
 
 
120919
fi
 
120920
$at_failed && at_fn_log_failure
 
120921
$at_traceon; }
 
120922
 
 
120923
{ set +x
 
120924
$as_echo "$at_srcdir/ovs-vsctl.at:820: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list port eth0 eth1
 
120925
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list mirror
 
120926
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list bridge br0
 
120927
"
 
120928
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:820"
 
120929
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list port eth0 eth1
 
120930
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list mirror
 
120931
ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- list bridge br0
 
120932
 
 
120933
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120934
at_status=$? at_failed=false
 
120935
$at_check_filter
 
120936
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
120937
echo stdout:; tee stdout <"$at_stdout"
 
120938
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:820"
 
120939
if $at_failed; then :
 
120940
  cp pid savepid
 
120941
   { set +x
 
120942
$as_echo "$at_srcdir/ovs-vsctl.at:820: ovs-appctl -t \$PWD/unixctl -e exit"
 
120943
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:820"
 
120944
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
120945
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120946
at_status=$? at_failed=false
 
120947
$at_check_filter
 
120948
echo stderr:; cat "$at_stderr"
 
120949
echo stdout:; cat "$at_stdout"
 
120950
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:820"
 
120951
$at_failed && at_fn_log_failure
 
120952
$at_traceon; }
 
120953
 
 
120954
   { set +x
 
120955
$as_echo "$at_srcdir/ovs-vsctl.at:820: # First try a quick sleep, so that the test completes very quickly
 
120956
     # in the normal case.  POSIX doesn't require fractional times to
 
120957
     # work, so this might not work.
 
120958
     sleep 0.1
 
120959
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120960
     # Then wait up to 10 seconds.
 
120961
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120962
       sleep 1
 
120963
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
120964
     done
 
120965
     exit 1"
 
120966
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:820"
 
120967
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
120968
     # in the normal case.  POSIX doesn't require fractional times to
 
120969
     # work, so this might not work.
 
120970
     sleep 0.1
 
120971
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
120972
     # Then wait up to 10 seconds.
 
120973
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
120974
       sleep 1
 
120975
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
120976
     done
 
120977
     exit 1
 
120978
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120979
at_status=$? at_failed=false
 
120980
$at_check_filter
 
120981
echo stderr:; cat "$at_stderr"
 
120982
echo stdout:; cat "$at_stdout"
 
120983
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:820"
 
120984
if $at_failed; then :
 
120985
  kill `cat savepid`
 
120986
fi
 
120987
$at_failed && at_fn_log_failure
 
120988
$at_traceon; }
 
120989
 
 
120990
fi
 
120991
$at_failed && at_fn_log_failure
 
120992
$at_traceon; }
 
120993
 
 
120994
{ set +x
 
120995
$as_echo "$at_srcdir/ovs-vsctl.at:826: sed -n -e '/uuid/p' -e '/name/p' -e '/mirrors/p' -e '/select/p' -e '/output/p' < stdout | \$srcdir/uuidfilt.pl"
 
120996
at_fn_check_prepare_notrace 'a shell pipeline' "ovs-vsctl.at:826"
 
120997
( $at_check_trace; sed -n -e '/uuid/p' -e '/name/p' -e '/mirrors/p' -e '/select/p' -e '/output/p' < stdout | $srcdir/uuidfilt.pl
 
120998
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
120999
at_status=$? at_failed=false
 
121000
$at_check_filter
 
121001
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
121002
echo >>"$at_stdout"; $as_echo "_uuid               : <0>
 
121003
name                : \"eth0\"
 
121004
_uuid               : <1>
 
121005
name                : \"eth1\"
 
121006
_uuid               : <2>
 
121007
name                : mymirror
 
121008
output_port         : <1>
 
121009
output_vlan         : []
 
121010
select_all          : false
 
121011
select_dst_port     : [<0>]
 
121012
select_src_port     : [<0>]
 
121013
select_vlan         : []
 
121014
_uuid               : <3>
 
121015
mirrors             : [<2>]
 
121016
name                : \"br0\"
 
121017
" | \
 
121018
  $at_diff - "$at_stdout" || at_failed=:
 
121019
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:826"
 
121020
if $at_failed; then :
 
121021
  cp pid savepid
 
121022
   { set +x
 
121023
$as_echo "$at_srcdir/ovs-vsctl.at:826: ovs-appctl -t \$PWD/unixctl -e exit"
 
121024
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:826"
 
121025
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
121026
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121027
at_status=$? at_failed=false
 
121028
$at_check_filter
 
121029
echo stderr:; cat "$at_stderr"
 
121030
echo stdout:; cat "$at_stdout"
 
121031
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:826"
 
121032
$at_failed && at_fn_log_failure
 
121033
$at_traceon; }
 
121034
 
 
121035
   { set +x
 
121036
$as_echo "$at_srcdir/ovs-vsctl.at:826: # First try a quick sleep, so that the test completes very quickly
 
121037
     # in the normal case.  POSIX doesn't require fractional times to
 
121038
     # work, so this might not work.
 
121039
     sleep 0.1
 
121040
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121041
     # Then wait up to 10 seconds.
 
121042
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121043
       sleep 1
 
121044
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121045
     done
 
121046
     exit 1"
 
121047
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:826"
 
121048
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121049
     # in the normal case.  POSIX doesn't require fractional times to
 
121050
     # work, so this might not work.
 
121051
     sleep 0.1
 
121052
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
121053
     # Then wait up to 10 seconds.
 
121054
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121055
       sleep 1
 
121056
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
121057
     done
 
121058
     exit 1
 
121059
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121060
at_status=$? at_failed=false
 
121061
$at_check_filter
 
121062
echo stderr:; cat "$at_stderr"
 
121063
echo stdout:; cat "$at_stdout"
 
121064
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:826"
 
121065
if $at_failed; then :
 
121066
  kill `cat savepid`
 
121067
fi
 
121068
$at_failed && at_fn_log_failure
 
121069
$at_traceon; }
 
121070
 
 
121071
fi
 
121072
$at_failed && at_fn_log_failure
 
121073
$at_traceon; }
 
121074
 
 
121075
cp pid savepid
 
121076
   { set +x
 
121077
$as_echo "$at_srcdir/ovs-vsctl.at:845: ovs-appctl -t \$PWD/unixctl -e exit"
 
121078
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:845"
 
121079
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
121080
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121081
at_status=$? at_failed=false
 
121082
$at_check_filter
 
121083
echo stderr:; cat "$at_stderr"
 
121084
echo stdout:; cat "$at_stdout"
 
121085
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:845"
 
121086
$at_failed && at_fn_log_failure
 
121087
$at_traceon; }
 
121088
 
 
121089
   { set +x
 
121090
$as_echo "$at_srcdir/ovs-vsctl.at:845: # First try a quick sleep, so that the test completes very quickly
 
121091
     # in the normal case.  POSIX doesn't require fractional times to
 
121092
     # work, so this might not work.
 
121093
     sleep 0.1
 
121094
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121095
     # Then wait up to 10 seconds.
 
121096
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121097
       sleep 1
 
121098
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121099
     done
 
121100
     exit 1"
 
121101
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:845"
 
121102
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121103
     # in the normal case.  POSIX doesn't require fractional times to
 
121104
     # work, so this might not work.
 
121105
     sleep 0.1
 
121106
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
121107
     # Then wait up to 10 seconds.
 
121108
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121109
       sleep 1
 
121110
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
121111
     done
 
121112
     exit 1
 
121113
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121114
at_status=$? at_failed=false
 
121115
$at_check_filter
 
121116
echo stderr:; cat "$at_stderr"
 
121117
echo stdout:; cat "$at_stdout"
 
121118
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:845"
 
121119
if $at_failed; then :
 
121120
  kill `cat savepid`
 
121121
fi
 
121122
$at_failed && at_fn_log_failure
 
121123
$at_traceon; }
 
121124
 
 
121125
  set +x
 
121126
  $at_times_p && times >"$at_times_file"
 
121127
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
121128
read at_status <"$at_status_file"
 
121129
#AT_STOP_972
 
121130
#AT_START_973
 
121131
at_fn_group_banner 973 'ovs-vsctl.at:848' \
 
121132
  "unreferenced record warnings" "                   " 69
 
121133
at_xfail=no
 
121134
(
 
121135
  $as_echo "973. $at_setup_line: testing $at_desc ..."
 
121136
  $at_traceon
 
121137
 
 
121138
 
 
121139
{ set +x
 
121140
$as_echo "$at_srcdir/ovs-vsctl.at:850: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
121141
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:850"
 
121142
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
121143
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121144
at_status=$? at_failed=false
 
121145
$at_check_filter
 
121146
echo stderr:; cat "$at_stderr"
 
121147
echo stdout:; tee stdout <"$at_stdout"
 
121148
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:850"
 
121149
$at_failed && at_fn_log_failure
 
121150
$at_traceon; }
 
121151
 
 
121152
   { set +x
 
121153
$as_echo "$at_srcdir/ovs-vsctl.at:850: ovsdb-tool transact db \\
 
121154
        '[\"Open_vSwitch\",
 
121155
          {\"op\": \"insert\",
 
121156
           \"table\": \"Open_vSwitch\",
 
121157
           \"row\": {}}]'"
 
121158
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:850"
 
121159
( $at_check_trace; ovsdb-tool transact db \
 
121160
        '["Open_vSwitch",
 
121161
          {"op": "insert",
 
121162
           "table": "Open_vSwitch",
 
121163
           "row": {}}]'
 
121164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121165
at_status=$? at_failed=false
 
121166
$at_check_filter
 
121167
echo stderr:; cat "$at_stderr"
 
121168
echo stdout:; cat "$at_stdout"
 
121169
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:850"
 
121170
$at_failed && at_fn_log_failure
 
121171
$at_traceon; }
 
121172
 
 
121173
   { set +x
 
121174
$as_echo "$at_srcdir/ovs-vsctl.at:850: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
121175
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:850"
 
121176
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
121177
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121178
at_status=$? at_failed=false
 
121179
$at_check_filter
 
121180
echo stderr:; cat "$at_stderr"
 
121181
echo stdout:; cat "$at_stdout"
 
121182
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:850"
 
121183
$at_failed && at_fn_log_failure
 
121184
$at_traceon; }
 
121185
 
 
121186
{ set +x
 
121187
$as_echo "$at_srcdir/ovs-vsctl.at:851: ovs-vsctl -vPATTERN:console:'%c|%p|%m' --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket \\
 
121188
     -- create Bridge name=br0 | \$srcdir/uuidfilt.pl"
 
121189
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:851"
 
121190
( $at_check_trace; ovs-vsctl -vPATTERN:console:'%c|%p|%m' --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket \
 
121191
     -- create Bridge name=br0 | $srcdir/uuidfilt.pl
 
121192
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121193
at_status=$? at_failed=false
 
121194
$at_check_filter
 
121195
echo >>"$at_stderr"; $as_echo "vsctl|WARN|applying \"create\" command to table Bridge without --id option will have no effect
 
121196
" | \
 
121197
  $at_diff - "$at_stderr" || at_failed=:
 
121198
echo >>"$at_stdout"; $as_echo "<0>
 
121199
" | \
 
121200
  $at_diff - "$at_stdout" || at_failed=:
 
121201
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:851"
 
121202
if $at_failed; then :
 
121203
  cp pid savepid
 
121204
   { set +x
 
121205
$as_echo "$at_srcdir/ovs-vsctl.at:851: ovs-appctl -t \$PWD/unixctl -e exit"
 
121206
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:851"
 
121207
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
121208
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121209
at_status=$? at_failed=false
 
121210
$at_check_filter
 
121211
echo stderr:; cat "$at_stderr"
 
121212
echo stdout:; cat "$at_stdout"
 
121213
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:851"
 
121214
$at_failed && at_fn_log_failure
 
121215
$at_traceon; }
 
121216
 
 
121217
   { set +x
 
121218
$as_echo "$at_srcdir/ovs-vsctl.at:851: # First try a quick sleep, so that the test completes very quickly
 
121219
     # in the normal case.  POSIX doesn't require fractional times to
 
121220
     # work, so this might not work.
 
121221
     sleep 0.1
 
121222
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121223
     # Then wait up to 10 seconds.
 
121224
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121225
       sleep 1
 
121226
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121227
     done
 
121228
     exit 1"
 
121229
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:851"
 
121230
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121231
     # in the normal case.  POSIX doesn't require fractional times to
 
121232
     # work, so this might not work.
 
121233
     sleep 0.1
 
121234
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
121235
     # Then wait up to 10 seconds.
 
121236
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121237
       sleep 1
 
121238
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
121239
     done
 
121240
     exit 1
 
121241
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121242
at_status=$? at_failed=false
 
121243
$at_check_filter
 
121244
echo stderr:; cat "$at_stderr"
 
121245
echo stdout:; cat "$at_stdout"
 
121246
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:851"
 
121247
if $at_failed; then :
 
121248
  kill `cat savepid`
 
121249
fi
 
121250
$at_failed && at_fn_log_failure
 
121251
$at_traceon; }
 
121252
 
 
121253
fi
 
121254
$at_failed && at_fn_log_failure
 
121255
$at_traceon; }
 
121256
 
 
121257
{ set +x
 
121258
$as_echo "$at_srcdir/ovs-vsctl.at:857: ovs-vsctl -vPATTERN:console:'%c|%p|%m' --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket \\
 
121259
     -- --id=@br0 create Bridge name=br0 | \$srcdir/uuidfilt.pl"
 
121260
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:857"
 
121261
( $at_check_trace; ovs-vsctl -vPATTERN:console:'%c|%p|%m' --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket \
 
121262
     -- --id=@br0 create Bridge name=br0 | $srcdir/uuidfilt.pl
 
121263
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121264
at_status=$? at_failed=false
 
121265
$at_check_filter
 
121266
echo >>"$at_stderr"; $as_echo "vsctl|WARN|row id \"@br0\" was created but no reference to it was inserted, so it will not actually appear in the database
 
121267
" | \
 
121268
  $at_diff - "$at_stderr" || at_failed=:
 
121269
echo >>"$at_stdout"; $as_echo "<0>
 
121270
" | \
 
121271
  $at_diff - "$at_stdout" || at_failed=:
 
121272
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:857"
 
121273
if $at_failed; then :
 
121274
  cp pid savepid
 
121275
   { set +x
 
121276
$as_echo "$at_srcdir/ovs-vsctl.at:857: ovs-appctl -t \$PWD/unixctl -e exit"
 
121277
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:857"
 
121278
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
121279
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121280
at_status=$? at_failed=false
 
121281
$at_check_filter
 
121282
echo stderr:; cat "$at_stderr"
 
121283
echo stdout:; cat "$at_stdout"
 
121284
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:857"
 
121285
$at_failed && at_fn_log_failure
 
121286
$at_traceon; }
 
121287
 
 
121288
   { set +x
 
121289
$as_echo "$at_srcdir/ovs-vsctl.at:857: # First try a quick sleep, so that the test completes very quickly
 
121290
     # in the normal case.  POSIX doesn't require fractional times to
 
121291
     # work, so this might not work.
 
121292
     sleep 0.1
 
121293
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121294
     # Then wait up to 10 seconds.
 
121295
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121296
       sleep 1
 
121297
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121298
     done
 
121299
     exit 1"
 
121300
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:857"
 
121301
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121302
     # in the normal case.  POSIX doesn't require fractional times to
 
121303
     # work, so this might not work.
 
121304
     sleep 0.1
 
121305
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
121306
     # Then wait up to 10 seconds.
 
121307
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121308
       sleep 1
 
121309
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
121310
     done
 
121311
     exit 1
 
121312
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121313
at_status=$? at_failed=false
 
121314
$at_check_filter
 
121315
echo stderr:; cat "$at_stderr"
 
121316
echo stdout:; cat "$at_stdout"
 
121317
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:857"
 
121318
if $at_failed; then :
 
121319
  kill `cat savepid`
 
121320
fi
 
121321
$at_failed && at_fn_log_failure
 
121322
$at_traceon; }
 
121323
 
 
121324
fi
 
121325
$at_failed && at_fn_log_failure
 
121326
$at_traceon; }
 
121327
 
 
121328
{ set +x
 
121329
$as_echo "$at_srcdir/ovs-vsctl.at:863: ovs-vsctl -vPATTERN:console:'%c|%p|%m' --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket \\
 
121330
     -- --id=@eth0_iface create Interface name=eth0 \\
 
121331
     -- --id=@eth0 create Port name=eth0 interfaces=@eth0_iface \\
 
121332
     -- --id=@m0 create Mirror name=m0 output_port=@eth0 \\
 
121333
     -- --id=@br0 create Bridge name=br0 mirrors=@m0 \\
 
121334
     -- set Open_vSwitch . bridges=@br0 | \$srcdir/uuidfilt.pl"
 
121335
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:863"
 
121336
( $at_check_trace; ovs-vsctl -vPATTERN:console:'%c|%p|%m' --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket \
 
121337
     -- --id=@eth0_iface create Interface name=eth0 \
 
121338
     -- --id=@eth0 create Port name=eth0 interfaces=@eth0_iface \
 
121339
     -- --id=@m0 create Mirror name=m0 output_port=@eth0 \
 
121340
     -- --id=@br0 create Bridge name=br0 mirrors=@m0 \
 
121341
     -- set Open_vSwitch . bridges=@br0 | $srcdir/uuidfilt.pl
 
121342
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121343
at_status=$? at_failed=false
 
121344
$at_check_filter
 
121345
echo >>"$at_stderr"; $as_echo "vsctl|WARN|row id \"@eth0\" was created but only a weak reference to it was inserted, so it will not actually appear in the database
 
121346
" | \
 
121347
  $at_diff - "$at_stderr" || at_failed=:
 
121348
echo >>"$at_stdout"; $as_echo "<0>
 
121349
<1>
 
121350
<2>
 
121351
<3>
 
121352
" | \
 
121353
  $at_diff - "$at_stdout" || at_failed=:
 
121354
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:863"
 
121355
if $at_failed; then :
 
121356
  cp pid savepid
 
121357
   { set +x
 
121358
$as_echo "$at_srcdir/ovs-vsctl.at:863: ovs-appctl -t \$PWD/unixctl -e exit"
 
121359
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:863"
 
121360
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
121361
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121362
at_status=$? at_failed=false
 
121363
$at_check_filter
 
121364
echo stderr:; cat "$at_stderr"
 
121365
echo stdout:; cat "$at_stdout"
 
121366
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:863"
 
121367
$at_failed && at_fn_log_failure
 
121368
$at_traceon; }
 
121369
 
 
121370
   { set +x
 
121371
$as_echo "$at_srcdir/ovs-vsctl.at:863: # First try a quick sleep, so that the test completes very quickly
 
121372
     # in the normal case.  POSIX doesn't require fractional times to
 
121373
     # work, so this might not work.
 
121374
     sleep 0.1
 
121375
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121376
     # Then wait up to 10 seconds.
 
121377
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121378
       sleep 1
 
121379
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121380
     done
 
121381
     exit 1"
 
121382
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:863"
 
121383
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121384
     # in the normal case.  POSIX doesn't require fractional times to
 
121385
     # work, so this might not work.
 
121386
     sleep 0.1
 
121387
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
121388
     # Then wait up to 10 seconds.
 
121389
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121390
       sleep 1
 
121391
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
121392
     done
 
121393
     exit 1
 
121394
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121395
at_status=$? at_failed=false
 
121396
$at_check_filter
 
121397
echo stderr:; cat "$at_stderr"
 
121398
echo stdout:; cat "$at_stdout"
 
121399
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:863"
 
121400
if $at_failed; then :
 
121401
  kill `cat savepid`
 
121402
fi
 
121403
$at_failed && at_fn_log_failure
 
121404
$at_traceon; }
 
121405
 
 
121406
fi
 
121407
$at_failed && at_fn_log_failure
 
121408
$at_traceon; }
 
121409
 
 
121410
cp pid savepid
 
121411
   { set +x
 
121412
$as_echo "$at_srcdir/ovs-vsctl.at:876: ovs-appctl -t \$PWD/unixctl -e exit"
 
121413
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:876"
 
121414
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
121415
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121416
at_status=$? at_failed=false
 
121417
$at_check_filter
 
121418
echo stderr:; cat "$at_stderr"
 
121419
echo stdout:; cat "$at_stdout"
 
121420
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:876"
 
121421
$at_failed && at_fn_log_failure
 
121422
$at_traceon; }
 
121423
 
 
121424
   { set +x
 
121425
$as_echo "$at_srcdir/ovs-vsctl.at:876: # First try a quick sleep, so that the test completes very quickly
 
121426
     # in the normal case.  POSIX doesn't require fractional times to
 
121427
     # work, so this might not work.
 
121428
     sleep 0.1
 
121429
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121430
     # Then wait up to 10 seconds.
 
121431
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121432
       sleep 1
 
121433
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121434
     done
 
121435
     exit 1"
 
121436
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:876"
 
121437
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121438
     # in the normal case.  POSIX doesn't require fractional times to
 
121439
     # work, so this might not work.
 
121440
     sleep 0.1
 
121441
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
121442
     # Then wait up to 10 seconds.
 
121443
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121444
       sleep 1
 
121445
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
121446
     done
 
121447
     exit 1
 
121448
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121449
at_status=$? at_failed=false
 
121450
$at_check_filter
 
121451
echo stderr:; cat "$at_stderr"
 
121452
echo stdout:; cat "$at_stdout"
 
121453
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:876"
 
121454
if $at_failed; then :
 
121455
  kill `cat savepid`
 
121456
fi
 
121457
$at_failed && at_fn_log_failure
 
121458
$at_traceon; }
 
121459
 
 
121460
  set +x
 
121461
  $at_times_p && times >"$at_times_file"
 
121462
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
121463
read at_status <"$at_status_file"
 
121464
#AT_STOP_973
 
121465
#AT_START_974
 
121466
at_fn_group_banner 974 'ovs-vsctl.at:882' \
 
121467
  "created row UUID is wrong in same execution" "    " 69
 
121468
at_xfail=no
 
121469
(
 
121470
  $as_echo "974. $at_setup_line: testing $at_desc ..."
 
121471
  $at_traceon
 
121472
 
 
121473
 
 
121474
{ set +x
 
121475
$as_echo "$at_srcdir/ovs-vsctl.at:884: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
121476
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-vsctl.at:884"
 
121477
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
121478
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121479
at_status=$? at_failed=false
 
121480
$at_check_filter
 
121481
echo stderr:; cat "$at_stderr"
 
121482
echo stdout:; tee stdout <"$at_stdout"
 
121483
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:884"
 
121484
$at_failed && at_fn_log_failure
 
121485
$at_traceon; }
 
121486
 
 
121487
   { set +x
 
121488
$as_echo "$at_srcdir/ovs-vsctl.at:884: ovsdb-tool transact db \\
 
121489
        '[\"Open_vSwitch\",
 
121490
          {\"op\": \"insert\",
 
121491
           \"table\": \"Open_vSwitch\",
 
121492
           \"row\": {}}]'"
 
121493
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:884"
 
121494
( $at_check_trace; ovsdb-tool transact db \
 
121495
        '["Open_vSwitch",
 
121496
          {"op": "insert",
 
121497
           "table": "Open_vSwitch",
 
121498
           "row": {}}]'
 
121499
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121500
at_status=$? at_failed=false
 
121501
$at_check_filter
 
121502
echo stderr:; cat "$at_stderr"
 
121503
echo stdout:; cat "$at_stdout"
 
121504
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:884"
 
121505
$at_failed && at_fn_log_failure
 
121506
$at_traceon; }
 
121507
 
 
121508
   { set +x
 
121509
$as_echo "$at_srcdir/ovs-vsctl.at:884: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
121510
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-vsctl.at:884"
 
121511
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
121512
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121513
at_status=$? at_failed=false
 
121514
$at_check_filter
 
121515
echo stderr:; cat "$at_stderr"
 
121516
echo stdout:; cat "$at_stdout"
 
121517
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:884"
 
121518
$at_failed && at_fn_log_failure
 
121519
$at_traceon; }
 
121520
 
 
121521
{ set +x
 
121522
$as_echo "$at_srcdir/ovs-vsctl.at:885: ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --id=@br0 create Bridge name=br0 -- add Open_vSwitch . bridges @br0 -- list b
 
121523
"
 
121524
at_fn_check_prepare_notrace 'an embedded newline' "ovs-vsctl.at:885"
 
121525
( $at_check_trace; ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket -- --id=@br0 create Bridge name=br0 -- add Open_vSwitch . bridges @br0 -- list b
 
121526
 
 
121527
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121528
at_status=$? at_failed=false
 
121529
$at_check_filter
 
121530
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
121531
echo stdout:; tee stdout <"$at_stdout"
 
121532
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:885"
 
121533
if $at_failed; then :
 
121534
  cp pid savepid
 
121535
   { set +x
 
121536
$as_echo "$at_srcdir/ovs-vsctl.at:885: ovs-appctl -t \$PWD/unixctl -e exit"
 
121537
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:885"
 
121538
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
121539
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121540
at_status=$? at_failed=false
 
121541
$at_check_filter
 
121542
echo stderr:; cat "$at_stderr"
 
121543
echo stdout:; cat "$at_stdout"
 
121544
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:885"
 
121545
$at_failed && at_fn_log_failure
 
121546
$at_traceon; }
 
121547
 
 
121548
   { set +x
 
121549
$as_echo "$at_srcdir/ovs-vsctl.at:885: # First try a quick sleep, so that the test completes very quickly
 
121550
     # in the normal case.  POSIX doesn't require fractional times to
 
121551
     # work, so this might not work.
 
121552
     sleep 0.1
 
121553
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121554
     # Then wait up to 10 seconds.
 
121555
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121556
       sleep 1
 
121557
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121558
     done
 
121559
     exit 1"
 
121560
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:885"
 
121561
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121562
     # in the normal case.  POSIX doesn't require fractional times to
 
121563
     # work, so this might not work.
 
121564
     sleep 0.1
 
121565
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
121566
     # Then wait up to 10 seconds.
 
121567
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121568
       sleep 1
 
121569
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
121570
     done
 
121571
     exit 1
 
121572
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121573
at_status=$? at_failed=false
 
121574
$at_check_filter
 
121575
echo stderr:; cat "$at_stderr"
 
121576
echo stdout:; cat "$at_stdout"
 
121577
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:885"
 
121578
if $at_failed; then :
 
121579
  kill `cat savepid`
 
121580
fi
 
121581
$at_failed && at_fn_log_failure
 
121582
$at_traceon; }
 
121583
 
 
121584
fi
 
121585
$at_failed && at_fn_log_failure
 
121586
$at_traceon; }
 
121587
 
 
121588
{ set +x
 
121589
$as_echo "$at_srcdir/ovs-vsctl.at:887: perl \$srcdir/uuidfilt.pl stdout"
 
121590
at_fn_check_prepare_dynamic "perl $srcdir/uuidfilt.pl stdout" "ovs-vsctl.at:887"
 
121591
( $at_check_trace; perl $srcdir/uuidfilt.pl stdout
 
121592
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121593
at_status=$? at_failed=false
 
121594
$at_check_filter
 
121595
echo stderr:; cat "$at_stderr"
 
121596
echo >>"$at_stdout"; $as_echo "<0>
 
121597
_uuid               : <1>
 
121598
controller          : []
 
121599
datapath_id         : []
 
121600
datapath_type       : \"\"
 
121601
external_ids        : {}
 
121602
fail_mode           : []
 
121603
flood_vlans         : []
 
121604
mirrors             : []
 
121605
name                : \"br0\"
 
121606
netflow             : []
 
121607
other_config        : {}
 
121608
ports               : []
 
121609
sflow               : []
 
121610
status              : {}
 
121611
stp_enable          : false
 
121612
" | \
 
121613
  $at_diff - "$at_stdout" || at_failed=:
 
121614
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:887"
 
121615
if $at_failed; then :
 
121616
  test ! -e pid || kill `cat pid`
 
121617
fi
 
121618
$at_failed && at_fn_log_failure
 
121619
$at_traceon; }
 
121620
 
 
121621
cp pid savepid
 
121622
   { set +x
 
121623
$as_echo "$at_srcdir/ovs-vsctl.at:905: ovs-appctl -t \$PWD/unixctl -e exit"
 
121624
at_fn_check_prepare_dynamic "ovs-appctl -t $PWD/unixctl -e exit" "ovs-vsctl.at:905"
 
121625
( $at_check_trace; ovs-appctl -t $PWD/unixctl -e exit
 
121626
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121627
at_status=$? at_failed=false
 
121628
$at_check_filter
 
121629
echo stderr:; cat "$at_stderr"
 
121630
echo stdout:; cat "$at_stdout"
 
121631
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:905"
 
121632
$at_failed && at_fn_log_failure
 
121633
$at_traceon; }
 
121634
 
 
121635
   { set +x
 
121636
$as_echo "$at_srcdir/ovs-vsctl.at:905: # First try a quick sleep, so that the test completes very quickly
 
121637
     # in the normal case.  POSIX doesn't require fractional times to
 
121638
     # work, so this might not work.
 
121639
     sleep 0.1
 
121640
     if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121641
     # Then wait up to 10 seconds.
 
121642
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121643
       sleep 1
 
121644
       if kill -0 \`cat savepid\`; then :; else exit 0; fi
 
121645
     done
 
121646
     exit 1"
 
121647
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-vsctl.at:905"
 
121648
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121649
     # in the normal case.  POSIX doesn't require fractional times to
 
121650
     # work, so this might not work.
 
121651
     sleep 0.1
 
121652
     if kill -0 `cat savepid`; then :; else exit 0; fi
 
121653
     # Then wait up to 10 seconds.
 
121654
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121655
       sleep 1
 
121656
       if kill -0 `cat savepid`; then :; else exit 0; fi
 
121657
     done
 
121658
     exit 1
 
121659
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121660
at_status=$? at_failed=false
 
121661
$at_check_filter
 
121662
echo stderr:; cat "$at_stderr"
 
121663
echo stdout:; cat "$at_stdout"
 
121664
at_fn_check_status 0 $at_status "$at_srcdir/ovs-vsctl.at:905"
 
121665
if $at_failed; then :
 
121666
  kill `cat savepid`
 
121667
fi
 
121668
$at_failed && at_fn_log_failure
 
121669
$at_traceon; }
 
121670
 
 
121671
  set +x
 
121672
  $at_times_p && times >"$at_times_file"
 
121673
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
121674
read at_status <"$at_status_file"
 
121675
#AT_STOP_974
 
121676
#AT_START_975
 
121677
at_fn_group_banner 975 'ovs-monitor-ipsec.at:3' \
 
121678
  "ovs-monitor-ipsec" "                              " 70
 
121679
at_xfail=no
 
121680
(
 
121681
  $as_echo "975. $at_setup_line: testing $at_desc ..."
 
121682
  $at_traceon
 
121683
 
 
121684
$as_echo "ovs-monitor-ipsec.at:4" >"$at_check_line_file"
 
121685
(test $HAVE_PYTHON = no) \
 
121686
  && at_fn_check_skip 77 "$at_srcdir/ovs-monitor-ipsec.at:4"
 
121687
 
 
121688
OVS_PKGDATADIR=`pwd`; export OVS_PKGDATADIR
 
121689
cp "$top_srcdir/vswitchd/vswitch.ovsschema" .
 
121690
 
 
121691
trap 'kill `cat pid ovs-monitor-ipsec.pid`' 0
 
121692
 
 
121693
mkdir etc etc/init.d etc/racoon etc/racoon/certs
 
121694
mkdir usr usr/sbin
 
121695
 
 
121696
cat >etc/init.d/racoon <<'_ATEOF'
 
121697
#! /bin/sh
 
121698
echo "racoon: $@" >&3
 
121699
exit 0
 
121700
_ATEOF
 
121701
 
 
121702
chmod +x etc/init.d/racoon
 
121703
 
 
121704
cat >usr/sbin/setkey <<'_ATEOF'
 
121705
#! /bin/sh
 
121706
exec >&3
 
121707
echo "setkey:"
 
121708
while read line; do
 
121709
      echo "> $line"
 
121710
done
 
121711
_ATEOF
 
121712
 
 
121713
chmod +x usr/sbin/setkey
 
121714
 
 
121715
touch etc/racoon/certs/ovs-stale.pem
 
121716
 
 
121717
ovs_vsctl () {
 
121718
    ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket "$@"
 
121719
}
 
121720
trim () {  # Removes blank lines and lines starting with # from input.
 
121721
    sed -e '/^#/d' -e '/^[       ]*$/d' "$@"
 
121722
}
 
121723
 
 
121724
###
 
121725
### Start ovsdb-server.
 
121726
###
 
121727
{ set +x
 
121728
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:43: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
121729
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-monitor-ipsec.at:43"
 
121730
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
121731
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121732
at_status=$? at_failed=false
 
121733
$at_check_filter
 
121734
echo stderr:; cat "$at_stderr"
 
121735
echo stdout:; tee stdout <"$at_stdout"
 
121736
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:43"
 
121737
$at_failed && at_fn_log_failure
 
121738
$at_traceon; }
 
121739
 
 
121740
   { set +x
 
121741
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:43: ovsdb-tool transact db \\
 
121742
        '[\"Open_vSwitch\",
 
121743
          {\"op\": \"insert\",
 
121744
           \"table\": \"Open_vSwitch\",
 
121745
           \"row\": {}}]'"
 
121746
at_fn_check_prepare_notrace 'an embedded newline' "ovs-monitor-ipsec.at:43"
 
121747
( $at_check_trace; ovsdb-tool transact db \
 
121748
        '["Open_vSwitch",
 
121749
          {"op": "insert",
 
121750
           "table": "Open_vSwitch",
 
121751
           "row": {}}]'
 
121752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121753
at_status=$? at_failed=false
 
121754
$at_check_filter
 
121755
echo stderr:; cat "$at_stderr"
 
121756
echo stdout:; cat "$at_stdout"
 
121757
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:43"
 
121758
$at_failed && at_fn_log_failure
 
121759
$at_traceon; }
 
121760
 
 
121761
   { set +x
 
121762
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:43: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
121763
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-monitor-ipsec.at:43"
 
121764
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
121765
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121766
at_status=$? at_failed=false
 
121767
$at_check_filter
 
121768
echo stderr:; cat "$at_stderr"
 
121769
echo stdout:; cat "$at_stdout"
 
121770
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:43"
 
121771
$at_failed && at_fn_log_failure
 
121772
$at_traceon; }
 
121773
 
 
121774
 
 
121775
###
 
121776
### Start ovs-monitor-ipsec and wait for it to delete the stale cert.
 
121777
###
 
121778
{ set +x
 
121779
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:48: \$PYTHON \$top_srcdir/debian/ovs-monitor-ipsec \"--root-prefix=\`pwd\`\" \\
 
121780
        \"--pidfile=\`pwd\`/ovs-monitor-ipsec.pid\" \\
 
121781
        unix:socket 2>log 3>actions &"
 
121782
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-monitor-ipsec.at:48"
 
121783
( $at_check_trace; $PYTHON $top_srcdir/debian/ovs-monitor-ipsec "--root-prefix=`pwd`" \
 
121784
        "--pidfile=`pwd`/ovs-monitor-ipsec.pid" \
 
121785
        unix:socket 2>log 3>actions &
 
121786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121787
at_status=$? at_failed=false
 
121788
$at_check_filter
 
121789
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
121790
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
121791
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:48"
 
121792
$at_failed && at_fn_log_failure
 
121793
$at_traceon; }
 
121794
 
 
121795
 
 
121796
 
 
121797
{ set +x
 
121798
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:54: # First try a quick sleep, so that the test completes very quickly
 
121799
     # in the normal case.  POSIX doesn't require fractional times to
 
121800
     # work, so this might not work.
 
121801
     sleep 0.1
 
121802
     if test ! -f etc/racoon/certs/ovs-stale.pem; then exit 0; fi
 
121803
     # Then wait up to 10 seconds.
 
121804
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121805
       sleep 1
 
121806
       if test ! -f etc/racoon/certs/ovs-stale.pem; then exit 0; fi
 
121807
     done
 
121808
     exit 1"
 
121809
at_fn_check_prepare_notrace 'an embedded newline' "ovs-monitor-ipsec.at:54"
 
121810
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121811
     # in the normal case.  POSIX doesn't require fractional times to
 
121812
     # work, so this might not work.
 
121813
     sleep 0.1
 
121814
     if test ! -f etc/racoon/certs/ovs-stale.pem; then exit 0; fi
 
121815
     # Then wait up to 10 seconds.
 
121816
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121817
       sleep 1
 
121818
       if test ! -f etc/racoon/certs/ovs-stale.pem; then exit 0; fi
 
121819
     done
 
121820
     exit 1
 
121821
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121822
at_status=$? at_failed=false
 
121823
$at_check_filter
 
121824
echo stderr:; cat "$at_stderr"
 
121825
echo stdout:; cat "$at_stdout"
 
121826
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:54"
 
121827
$at_failed && at_fn_log_failure  \
 
121828
"log" \
 
121829
"actions"
 
121830
$at_traceon; }
 
121831
 
 
121832
 
 
121833
###
 
121834
### Add an ipsec_gre psk interface and check what ovs-monitor-ipsec does
 
121835
###
 
121836
{ set +x
 
121837
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:59: ovs_vsctl \\
 
121838
              -- add-br br0 \\
 
121839
              -- add-port br0 gre0 \\
 
121840
              -- set interface gre0 type=ipsec_gre \\
 
121841
                                    options:remote_ip=1.2.3.4 \\
 
121842
                                    options:psk=swordfish"
 
121843
at_fn_check_prepare_notrace 'an embedded newline' "ovs-monitor-ipsec.at:59"
 
121844
( $at_check_trace; ovs_vsctl \
 
121845
              -- add-br br0 \
 
121846
              -- add-port br0 gre0 \
 
121847
              -- set interface gre0 type=ipsec_gre \
 
121848
                                    options:remote_ip=1.2.3.4 \
 
121849
                                    options:psk=swordfish
 
121850
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121851
at_status=$? at_failed=false
 
121852
$at_check_filter
 
121853
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
121854
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
121855
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:59"
 
121856
$at_failed && at_fn_log_failure  \
 
121857
"log" \
 
121858
"actions"
 
121859
$at_traceon; }
 
121860
 
 
121861
{ set +x
 
121862
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:65: # First try a quick sleep, so that the test completes very quickly
 
121863
     # in the normal case.  POSIX doesn't require fractional times to
 
121864
     # work, so this might not work.
 
121865
     sleep 0.1
 
121866
     if test -f actions && grep 'spdadd 1.2.3.4' actions >/dev/null; then exit 0; fi
 
121867
     # Then wait up to 10 seconds.
 
121868
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121869
       sleep 1
 
121870
       if test -f actions && grep 'spdadd 1.2.3.4' actions >/dev/null; then exit 0; fi
 
121871
     done
 
121872
     exit 1"
 
121873
at_fn_check_prepare_notrace 'an embedded newline' "ovs-monitor-ipsec.at:65"
 
121874
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
121875
     # in the normal case.  POSIX doesn't require fractional times to
 
121876
     # work, so this might not work.
 
121877
     sleep 0.1
 
121878
     if test -f actions && grep 'spdadd 1.2.3.4' actions >/dev/null; then exit 0; fi
 
121879
     # Then wait up to 10 seconds.
 
121880
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
121881
       sleep 1
 
121882
       if test -f actions && grep 'spdadd 1.2.3.4' actions >/dev/null; then exit 0; fi
 
121883
     done
 
121884
     exit 1
 
121885
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121886
at_status=$? at_failed=false
 
121887
$at_check_filter
 
121888
echo stderr:; cat "$at_stderr"
 
121889
echo stdout:; cat "$at_stdout"
 
121890
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:65"
 
121891
$at_failed && at_fn_log_failure  \
 
121892
"log" \
 
121893
"actions"
 
121894
$at_traceon; }
 
121895
 
 
121896
{ set +x
 
121897
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:66: cat actions"
 
121898
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:66"
 
121899
( $at_check_trace; cat actions
 
121900
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121901
at_status=$? at_failed=false
 
121902
$at_check_filter
 
121903
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
121904
echo >>"$at_stdout"; $as_echo "setkey:
 
121905
> flush;
 
121906
setkey:
 
121907
> spdflush;
 
121908
racoon: reload
 
121909
racoon: reload
 
121910
setkey:
 
121911
> spdadd 0.0.0.0/0 1.2.3.4 gre -P out ipsec esp/transport//require;
 
121912
> spdadd 1.2.3.4 0.0.0.0/0 gre -P in ipsec esp/transport//require;
 
121913
" | \
 
121914
  $at_diff - "$at_stdout" || at_failed=:
 
121915
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:66"
 
121916
$at_failed && at_fn_log_failure  \
 
121917
"log" \
 
121918
"actions"
 
121919
$at_traceon; }
 
121920
 
 
121921
{ set +x
 
121922
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:77: trim etc/racoon/psk.txt"
 
121923
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:77"
 
121924
( $at_check_trace; trim etc/racoon/psk.txt
 
121925
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121926
at_status=$? at_failed=false
 
121927
$at_check_filter
 
121928
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
121929
echo >>"$at_stdout"; $as_echo "1.2.3.4   swordfish
 
121930
" | \
 
121931
  $at_diff - "$at_stdout" || at_failed=:
 
121932
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:77"
 
121933
$at_failed && at_fn_log_failure  \
 
121934
"log" \
 
121935
"actions"
 
121936
$at_traceon; }
 
121937
 
 
121938
{ set +x
 
121939
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:79: trim etc/racoon/racoon.conf"
 
121940
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:79"
 
121941
( $at_check_trace; trim etc/racoon/racoon.conf
 
121942
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121943
at_status=$? at_failed=false
 
121944
$at_check_filter
 
121945
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
121946
echo >>"$at_stdout"; $as_echo "path pre_shared_key \"/etc/racoon/psk.txt\";
 
121947
path certificate \"/etc/racoon/certs\";
 
121948
remote 1.2.3.4 {
 
121949
        exchange_mode main;
 
121950
        nat_traversal on;
 
121951
        proposal {
 
121952
                encryption_algorithm aes;
 
121953
                hash_algorithm sha1;
 
121954
                authentication_method pre_shared_key;
 
121955
                dh_group 2;
 
121956
        }
 
121957
}
 
121958
sainfo anonymous {
 
121959
        pfs_group 2;
 
121960
        lifetime time 1 hour;
 
121961
        encryption_algorithm aes;
 
121962
        authentication_algorithm hmac_sha1, hmac_md5;
 
121963
        compression_algorithm deflate;
 
121964
}
 
121965
" | \
 
121966
  $at_diff - "$at_stdout" || at_failed=:
 
121967
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:79"
 
121968
$at_failed && at_fn_log_failure  \
 
121969
"log" \
 
121970
"actions"
 
121971
$at_traceon; }
 
121972
 
 
121973
 
 
121974
###
 
121975
### Delete the ipsec_gre interface and check what ovs-monitor-ipsec does
 
121976
###
 
121977
{ set +x
 
121978
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:104: ovs_vsctl del-port gre0"
 
121979
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:104"
 
121980
( $at_check_trace; ovs_vsctl del-port gre0
 
121981
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
121982
at_status=$? at_failed=false
 
121983
$at_check_filter
 
121984
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
121985
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
121986
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:104"
 
121987
$at_failed && at_fn_log_failure  \
 
121988
"log" \
 
121989
"actions"
 
121990
$at_traceon; }
 
121991
 
 
121992
{ set +x
 
121993
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:105: # First try a quick sleep, so that the test completes very quickly
 
121994
     # in the normal case.  POSIX doesn't require fractional times to
 
121995
     # work, so this might not work.
 
121996
     sleep 0.1
 
121997
     if test \`wc -l < actions\` -ge 17; then exit 0; fi
 
121998
     # Then wait up to 10 seconds.
 
121999
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122000
       sleep 1
 
122001
       if test \`wc -l < actions\` -ge 17; then exit 0; fi
 
122002
     done
 
122003
     exit 1"
 
122004
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-monitor-ipsec.at:105"
 
122005
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
122006
     # in the normal case.  POSIX doesn't require fractional times to
 
122007
     # work, so this might not work.
 
122008
     sleep 0.1
 
122009
     if test `wc -l < actions` -ge 17; then exit 0; fi
 
122010
     # Then wait up to 10 seconds.
 
122011
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122012
       sleep 1
 
122013
       if test `wc -l < actions` -ge 17; then exit 0; fi
 
122014
     done
 
122015
     exit 1
 
122016
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122017
at_status=$? at_failed=false
 
122018
$at_check_filter
 
122019
echo stderr:; cat "$at_stderr"
 
122020
echo stdout:; cat "$at_stdout"
 
122021
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:105"
 
122022
$at_failed && at_fn_log_failure  \
 
122023
"log" \
 
122024
"actions"
 
122025
$at_traceon; }
 
122026
 
 
122027
{ set +x
 
122028
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:106: sed '1,9d' actions"
 
122029
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:106"
 
122030
( $at_check_trace; sed '1,9d' actions
 
122031
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122032
at_status=$? at_failed=false
 
122033
$at_check_filter
 
122034
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122035
echo >>"$at_stdout"; $as_echo "racoon: reload
 
122036
setkey:
 
122037
> spddelete 0.0.0.0/0 1.2.3.4 gre -P out;
 
122038
> spddelete 1.2.3.4 0.0.0.0/0 gre -P in;
 
122039
setkey:
 
122040
> dump ;
 
122041
setkey:
 
122042
> dump ;
 
122043
" | \
 
122044
  $at_diff - "$at_stdout" || at_failed=:
 
122045
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:106"
 
122046
$at_failed && at_fn_log_failure  \
 
122047
"log" \
 
122048
"actions"
 
122049
$at_traceon; }
 
122050
 
 
122051
{ set +x
 
122052
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:116: trim etc/racoon/psk.txt"
 
122053
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:116"
 
122054
( $at_check_trace; trim etc/racoon/psk.txt
 
122055
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122056
at_status=$? at_failed=false
 
122057
$at_check_filter
 
122058
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122059
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122060
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:116"
 
122061
$at_failed && at_fn_log_failure  \
 
122062
"log" \
 
122063
"actions"
 
122064
$at_traceon; }
 
122065
 
 
122066
{ set +x
 
122067
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:117: trim etc/racoon/racoon.conf"
 
122068
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:117"
 
122069
( $at_check_trace; trim etc/racoon/racoon.conf
 
122070
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122071
at_status=$? at_failed=false
 
122072
$at_check_filter
 
122073
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122074
echo >>"$at_stdout"; $as_echo "path pre_shared_key \"/etc/racoon/psk.txt\";
 
122075
path certificate \"/etc/racoon/certs\";
 
122076
sainfo anonymous {
 
122077
        pfs_group 2;
 
122078
        lifetime time 1 hour;
 
122079
        encryption_algorithm aes;
 
122080
        authentication_algorithm hmac_sha1, hmac_md5;
 
122081
        compression_algorithm deflate;
 
122082
}
 
122083
" | \
 
122084
  $at_diff - "$at_stdout" || at_failed=:
 
122085
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:117"
 
122086
$at_failed && at_fn_log_failure  \
 
122087
"log" \
 
122088
"actions"
 
122089
$at_traceon; }
 
122090
 
 
122091
 
 
122092
###
 
122093
### Add ipsec_gre certificate interface and check what ovs-monitor-ipsec does
 
122094
###
 
122095
cat >cert.pem <<'_ATEOF'
 
122096
-----BEGIN CERTIFICATE-----
 
122097
(not a real certificate)
 
122098
-----END CERTIFICATE-----
 
122099
_ATEOF
 
122100
 
 
122101
cat >key.pem <<'_ATEOF'
 
122102
-----BEGIN RSA PRIVATE KEY-----
 
122103
(not a real private key)
 
122104
-----END RSA PRIVATE KEY-----
 
122105
_ATEOF
 
122106
 
 
122107
{ set +x
 
122108
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:142: ovs_vsctl \\
 
122109
              -- add-port br0 gre1 \\
 
122110
              -- set Interface gre1 type=ipsec_gre \\
 
122111
                 options:remote_ip=2.3.4.5 \\
 
122112
                 options:peer_cert='\"-----BEGIN CERTIFICATE-----
 
122113
(not a real peer certificate)
 
122114
-----END CERTIFICATE-----
 
122115
\"' \\
 
122116
                 options:certificate='\"/cert.pem\"' \\
 
122117
                 options:private_key='\"/key.pem\"'"
 
122118
at_fn_check_prepare_notrace 'an embedded newline' "ovs-monitor-ipsec.at:142"
 
122119
( $at_check_trace; ovs_vsctl \
 
122120
              -- add-port br0 gre1 \
 
122121
              -- set Interface gre1 type=ipsec_gre \
 
122122
                 options:remote_ip=2.3.4.5 \
 
122123
                 options:peer_cert='"-----BEGIN CERTIFICATE-----
 
122124
(not a real peer certificate)
 
122125
-----END CERTIFICATE-----
 
122126
"' \
 
122127
                 options:certificate='"/cert.pem"' \
 
122128
                 options:private_key='"/key.pem"'
 
122129
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122130
at_status=$? at_failed=false
 
122131
$at_check_filter
 
122132
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122133
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122134
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:142"
 
122135
$at_failed && at_fn_log_failure  \
 
122136
"log" \
 
122137
"actions"
 
122138
$at_traceon; }
 
122139
 
 
122140
{ set +x
 
122141
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:152: # First try a quick sleep, so that the test completes very quickly
 
122142
     # in the normal case.  POSIX doesn't require fractional times to
 
122143
     # work, so this might not work.
 
122144
     sleep 0.1
 
122145
     if test \`wc -l < actions\` -ge 21; then exit 0; fi
 
122146
     # Then wait up to 10 seconds.
 
122147
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122148
       sleep 1
 
122149
       if test \`wc -l < actions\` -ge 21; then exit 0; fi
 
122150
     done
 
122151
     exit 1"
 
122152
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-monitor-ipsec.at:152"
 
122153
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
122154
     # in the normal case.  POSIX doesn't require fractional times to
 
122155
     # work, so this might not work.
 
122156
     sleep 0.1
 
122157
     if test `wc -l < actions` -ge 21; then exit 0; fi
 
122158
     # Then wait up to 10 seconds.
 
122159
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122160
       sleep 1
 
122161
       if test `wc -l < actions` -ge 21; then exit 0; fi
 
122162
     done
 
122163
     exit 1
 
122164
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122165
at_status=$? at_failed=false
 
122166
$at_check_filter
 
122167
echo stderr:; cat "$at_stderr"
 
122168
echo stdout:; cat "$at_stdout"
 
122169
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:152"
 
122170
$at_failed && at_fn_log_failure  \
 
122171
"log" \
 
122172
"actions"
 
122173
$at_traceon; }
 
122174
 
 
122175
{ set +x
 
122176
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:153: sed '1,17d' actions"
 
122177
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:153"
 
122178
( $at_check_trace; sed '1,17d' actions
 
122179
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122180
at_status=$? at_failed=false
 
122181
$at_check_filter
 
122182
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122183
echo >>"$at_stdout"; $as_echo "racoon: reload
 
122184
setkey:
 
122185
> spdadd 0.0.0.0/0 2.3.4.5 gre -P out ipsec esp/transport//require;
 
122186
> spdadd 2.3.4.5 0.0.0.0/0 gre -P in ipsec esp/transport//require;
 
122187
" | \
 
122188
  $at_diff - "$at_stdout" || at_failed=:
 
122189
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:153"
 
122190
$at_failed && at_fn_log_failure  \
 
122191
"log" \
 
122192
"actions"
 
122193
$at_traceon; }
 
122194
 
 
122195
{ set +x
 
122196
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:159: trim etc/racoon/psk.txt"
 
122197
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:159"
 
122198
( $at_check_trace; trim etc/racoon/psk.txt
 
122199
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122200
at_status=$? at_failed=false
 
122201
$at_check_filter
 
122202
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122203
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122204
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:159"
 
122205
$at_failed && at_fn_log_failure  \
 
122206
"log" \
 
122207
"actions"
 
122208
$at_traceon; }
 
122209
 
 
122210
{ set +x
 
122211
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:160: trim etc/racoon/racoon.conf"
 
122212
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:160"
 
122213
( $at_check_trace; trim etc/racoon/racoon.conf
 
122214
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122215
at_status=$? at_failed=false
 
122216
$at_check_filter
 
122217
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122218
echo >>"$at_stdout"; $as_echo "path pre_shared_key \"/etc/racoon/psk.txt\";
 
122219
path certificate \"/etc/racoon/certs\";
 
122220
remote 2.3.4.5 {
 
122221
        exchange_mode main;
 
122222
        nat_traversal on;
 
122223
        ike_frag on;
 
122224
        certificate_type x509 \"/cert.pem\" \"/key.pem\";
 
122225
        my_identifier asn1dn;
 
122226
        peers_identifier asn1dn;
 
122227
        peers_certfile x509 \"/etc/racoon/certs/ovs-2.3.4.5.pem\";
 
122228
        verify_identifier on;
 
122229
        proposal {
 
122230
                encryption_algorithm aes;
 
122231
                hash_algorithm sha1;
 
122232
                authentication_method rsasig;
 
122233
                dh_group 2;
 
122234
        }
 
122235
}
 
122236
sainfo anonymous {
 
122237
        pfs_group 2;
 
122238
        lifetime time 1 hour;
 
122239
        encryption_algorithm aes;
 
122240
        authentication_algorithm hmac_sha1, hmac_md5;
 
122241
        compression_algorithm deflate;
 
122242
}
 
122243
" | \
 
122244
  $at_diff - "$at_stdout" || at_failed=:
 
122245
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:160"
 
122246
$at_failed && at_fn_log_failure  \
 
122247
"log" \
 
122248
"actions"
 
122249
$at_traceon; }
 
122250
 
 
122251
{ set +x
 
122252
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:187: cat etc/racoon/certs/ovs-2.3.4.5.pem"
 
122253
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:187"
 
122254
( $at_check_trace; cat etc/racoon/certs/ovs-2.3.4.5.pem
 
122255
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122256
at_status=$? at_failed=false
 
122257
$at_check_filter
 
122258
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122259
echo >>"$at_stdout"; $as_echo "-----BEGIN CERTIFICATE-----
 
122260
(not a real peer certificate)
 
122261
-----END CERTIFICATE-----
 
122262
" | \
 
122263
  $at_diff - "$at_stdout" || at_failed=:
 
122264
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:187"
 
122265
$at_failed && at_fn_log_failure  \
 
122266
"log" \
 
122267
"actions"
 
122268
$at_traceon; }
 
122269
 
 
122270
 
 
122271
###
 
122272
### Delete the ipsec_gre certificate interface.
 
122273
###
 
122274
{ set +x
 
122275
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:196: ovs_vsctl del-port gre1"
 
122276
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:196"
 
122277
( $at_check_trace; ovs_vsctl del-port gre1
 
122278
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122279
at_status=$? at_failed=false
 
122280
$at_check_filter
 
122281
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122282
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122283
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:196"
 
122284
$at_failed && at_fn_log_failure  \
 
122285
"log" \
 
122286
"actions"
 
122287
$at_traceon; }
 
122288
 
 
122289
{ set +x
 
122290
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:197: # First try a quick sleep, so that the test completes very quickly
 
122291
     # in the normal case.  POSIX doesn't require fractional times to
 
122292
     # work, so this might not work.
 
122293
     sleep 0.1
 
122294
     if test \`wc -l < actions\` -ge 29; then exit 0; fi
 
122295
     # Then wait up to 10 seconds.
 
122296
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122297
       sleep 1
 
122298
       if test \`wc -l < actions\` -ge 29; then exit 0; fi
 
122299
     done
 
122300
     exit 1"
 
122301
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-monitor-ipsec.at:197"
 
122302
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
122303
     # in the normal case.  POSIX doesn't require fractional times to
 
122304
     # work, so this might not work.
 
122305
     sleep 0.1
 
122306
     if test `wc -l < actions` -ge 29; then exit 0; fi
 
122307
     # Then wait up to 10 seconds.
 
122308
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122309
       sleep 1
 
122310
       if test `wc -l < actions` -ge 29; then exit 0; fi
 
122311
     done
 
122312
     exit 1
 
122313
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122314
at_status=$? at_failed=false
 
122315
$at_check_filter
 
122316
echo stderr:; cat "$at_stderr"
 
122317
echo stdout:; cat "$at_stdout"
 
122318
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:197"
 
122319
$at_failed && at_fn_log_failure  \
 
122320
"log" \
 
122321
"actions"
 
122322
$at_traceon; }
 
122323
 
 
122324
{ set +x
 
122325
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:198: sed '1,21d' actions"
 
122326
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:198"
 
122327
( $at_check_trace; sed '1,21d' actions
 
122328
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122329
at_status=$? at_failed=false
 
122330
$at_check_filter
 
122331
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122332
echo >>"$at_stdout"; $as_echo "racoon: reload
 
122333
setkey:
 
122334
> spddelete 0.0.0.0/0 2.3.4.5 gre -P out;
 
122335
> spddelete 2.3.4.5 0.0.0.0/0 gre -P in;
 
122336
setkey:
 
122337
> dump ;
 
122338
setkey:
 
122339
> dump ;
 
122340
" | \
 
122341
  $at_diff - "$at_stdout" || at_failed=:
 
122342
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:198"
 
122343
$at_failed && at_fn_log_failure  \
 
122344
"log" \
 
122345
"actions"
 
122346
$at_traceon; }
 
122347
 
 
122348
{ set +x
 
122349
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:208: trim etc/racoon/psk.txt"
 
122350
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:208"
 
122351
( $at_check_trace; trim etc/racoon/psk.txt
 
122352
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122353
at_status=$? at_failed=false
 
122354
$at_check_filter
 
122355
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122356
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122357
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:208"
 
122358
$at_failed && at_fn_log_failure  \
 
122359
"log" \
 
122360
"actions"
 
122361
$at_traceon; }
 
122362
 
 
122363
{ set +x
 
122364
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:209: trim etc/racoon/racoon.conf"
 
122365
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:209"
 
122366
( $at_check_trace; trim etc/racoon/racoon.conf
 
122367
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122368
at_status=$? at_failed=false
 
122369
$at_check_filter
 
122370
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122371
echo >>"$at_stdout"; $as_echo "path pre_shared_key \"/etc/racoon/psk.txt\";
 
122372
path certificate \"/etc/racoon/certs\";
 
122373
sainfo anonymous {
 
122374
        pfs_group 2;
 
122375
        lifetime time 1 hour;
 
122376
        encryption_algorithm aes;
 
122377
        authentication_algorithm hmac_sha1, hmac_md5;
 
122378
        compression_algorithm deflate;
 
122379
}
 
122380
" | \
 
122381
  $at_diff - "$at_stdout" || at_failed=:
 
122382
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:209"
 
122383
$at_failed && at_fn_log_failure  \
 
122384
"log" \
 
122385
"actions"
 
122386
$at_traceon; }
 
122387
 
 
122388
{ set +x
 
122389
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:220: test ! -f etc/racoon/certs/ovs-2.3.4.5.pem"
 
122390
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:220"
 
122391
( $at_check_trace; test ! -f etc/racoon/certs/ovs-2.3.4.5.pem
 
122392
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122393
at_status=$? at_failed=false
 
122394
$at_check_filter
 
122395
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122396
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122397
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:220"
 
122398
$at_failed && at_fn_log_failure  \
 
122399
"log" \
 
122400
"actions"
 
122401
$at_traceon; }
 
122402
 
 
122403
 
 
122404
###
 
122405
### Add an SSL certificate interface.
 
122406
###
 
122407
cp cert.pem ssl-cert.pem
 
122408
cp key.pem ssl-key.pem
 
122409
cat >ssl-cacert.pem <<'_ATEOF'
 
122410
-----BEGIN CERTIFICATE-----
 
122411
(not a real CA certificate)
 
122412
-----END CERTIFICATE-----
 
122413
_ATEOF
 
122414
 
 
122415
{ set +x
 
122416
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:232: ovs_vsctl set-ssl /ssl-key.pem /ssl-cert.pem /ssl-cacert.pem \\
 
122417
              -- add-port br0 gre2 \\
 
122418
              -- set Interface gre2 type=ipsec_gre \\
 
122419
                 options:remote_ip=3.4.5.6 \\
 
122420
                 options:peer_cert='\"-----BEGIN CERTIFICATE-----
 
122421
(not a real peer certificate)
 
122422
-----END CERTIFICATE-----
 
122423
\"' \\
 
122424
                 options:use_ssl_cert='\"true\"'"
 
122425
at_fn_check_prepare_notrace 'an embedded newline' "ovs-monitor-ipsec.at:232"
 
122426
( $at_check_trace; ovs_vsctl set-ssl /ssl-key.pem /ssl-cert.pem /ssl-cacert.pem \
 
122427
              -- add-port br0 gre2 \
 
122428
              -- set Interface gre2 type=ipsec_gre \
 
122429
                 options:remote_ip=3.4.5.6 \
 
122430
                 options:peer_cert='"-----BEGIN CERTIFICATE-----
 
122431
(not a real peer certificate)
 
122432
-----END CERTIFICATE-----
 
122433
"' \
 
122434
                 options:use_ssl_cert='"true"'
 
122435
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122436
at_status=$? at_failed=false
 
122437
$at_check_filter
 
122438
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122439
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122440
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:232"
 
122441
$at_failed && at_fn_log_failure  \
 
122442
"log" \
 
122443
"actions"
 
122444
$at_traceon; }
 
122445
 
 
122446
{ set +x
 
122447
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:241: # First try a quick sleep, so that the test completes very quickly
 
122448
     # in the normal case.  POSIX doesn't require fractional times to
 
122449
     # work, so this might not work.
 
122450
     sleep 0.1
 
122451
     if test \`wc -l < actions\` -ge 33; then exit 0; fi
 
122452
     # Then wait up to 10 seconds.
 
122453
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122454
       sleep 1
 
122455
       if test \`wc -l < actions\` -ge 33; then exit 0; fi
 
122456
     done
 
122457
     exit 1"
 
122458
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-monitor-ipsec.at:241"
 
122459
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
122460
     # in the normal case.  POSIX doesn't require fractional times to
 
122461
     # work, so this might not work.
 
122462
     sleep 0.1
 
122463
     if test `wc -l < actions` -ge 33; then exit 0; fi
 
122464
     # Then wait up to 10 seconds.
 
122465
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122466
       sleep 1
 
122467
       if test `wc -l < actions` -ge 33; then exit 0; fi
 
122468
     done
 
122469
     exit 1
 
122470
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122471
at_status=$? at_failed=false
 
122472
$at_check_filter
 
122473
echo stderr:; cat "$at_stderr"
 
122474
echo stdout:; cat "$at_stdout"
 
122475
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:241"
 
122476
$at_failed && at_fn_log_failure  \
 
122477
"log" \
 
122478
"actions"
 
122479
$at_traceon; }
 
122480
 
 
122481
{ set +x
 
122482
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:242: sed '1,29d' actions"
 
122483
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:242"
 
122484
( $at_check_trace; sed '1,29d' actions
 
122485
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122486
at_status=$? at_failed=false
 
122487
$at_check_filter
 
122488
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122489
echo >>"$at_stdout"; $as_echo "racoon: reload
 
122490
setkey:
 
122491
> spdadd 0.0.0.0/0 3.4.5.6 gre -P out ipsec esp/transport//require;
 
122492
> spdadd 3.4.5.6 0.0.0.0/0 gre -P in ipsec esp/transport//require;
 
122493
" | \
 
122494
  $at_diff - "$at_stdout" || at_failed=:
 
122495
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:242"
 
122496
$at_failed && at_fn_log_failure  \
 
122497
"log" \
 
122498
"actions"
 
122499
$at_traceon; }
 
122500
 
 
122501
{ set +x
 
122502
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:248: trim etc/racoon/psk.txt"
 
122503
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:248"
 
122504
( $at_check_trace; trim etc/racoon/psk.txt
 
122505
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122506
at_status=$? at_failed=false
 
122507
$at_check_filter
 
122508
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122509
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122510
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:248"
 
122511
$at_failed && at_fn_log_failure  \
 
122512
"log" \
 
122513
"actions"
 
122514
$at_traceon; }
 
122515
 
 
122516
{ set +x
 
122517
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:249: trim etc/racoon/racoon.conf"
 
122518
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:249"
 
122519
( $at_check_trace; trim etc/racoon/racoon.conf
 
122520
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122521
at_status=$? at_failed=false
 
122522
$at_check_filter
 
122523
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122524
echo >>"$at_stdout"; $as_echo "path pre_shared_key \"/etc/racoon/psk.txt\";
 
122525
path certificate \"/etc/racoon/certs\";
 
122526
remote 3.4.5.6 {
 
122527
        exchange_mode main;
 
122528
        nat_traversal on;
 
122529
        ike_frag on;
 
122530
        certificate_type x509 \"/ssl-cert.pem\" \"/ssl-key.pem\";
 
122531
        my_identifier asn1dn;
 
122532
        peers_identifier asn1dn;
 
122533
        peers_certfile x509 \"/etc/racoon/certs/ovs-3.4.5.6.pem\";
 
122534
        verify_identifier on;
 
122535
        proposal {
 
122536
                encryption_algorithm aes;
 
122537
                hash_algorithm sha1;
 
122538
                authentication_method rsasig;
 
122539
                dh_group 2;
 
122540
        }
 
122541
}
 
122542
sainfo anonymous {
 
122543
        pfs_group 2;
 
122544
        lifetime time 1 hour;
 
122545
        encryption_algorithm aes;
 
122546
        authentication_algorithm hmac_sha1, hmac_md5;
 
122547
        compression_algorithm deflate;
 
122548
}
 
122549
" | \
 
122550
  $at_diff - "$at_stdout" || at_failed=:
 
122551
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:249"
 
122552
$at_failed && at_fn_log_failure  \
 
122553
"log" \
 
122554
"actions"
 
122555
$at_traceon; }
 
122556
 
 
122557
{ set +x
 
122558
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:276: cat etc/racoon/certs/ovs-3.4.5.6.pem"
 
122559
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:276"
 
122560
( $at_check_trace; cat etc/racoon/certs/ovs-3.4.5.6.pem
 
122561
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122562
at_status=$? at_failed=false
 
122563
$at_check_filter
 
122564
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122565
echo >>"$at_stdout"; $as_echo "-----BEGIN CERTIFICATE-----
 
122566
(not a real peer certificate)
 
122567
-----END CERTIFICATE-----
 
122568
" | \
 
122569
  $at_diff - "$at_stdout" || at_failed=:
 
122570
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:276"
 
122571
$at_failed && at_fn_log_failure  \
 
122572
"log" \
 
122573
"actions"
 
122574
$at_traceon; }
 
122575
 
 
122576
 
 
122577
###
 
122578
### Delete the SSL certificate interface.
 
122579
###
 
122580
{ set +x
 
122581
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:285: ovs_vsctl del-port gre2"
 
122582
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:285"
 
122583
( $at_check_trace; ovs_vsctl del-port gre2
 
122584
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122585
at_status=$? at_failed=false
 
122586
$at_check_filter
 
122587
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122588
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122589
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:285"
 
122590
$at_failed && at_fn_log_failure  \
 
122591
"log" \
 
122592
"actions"
 
122593
$at_traceon; }
 
122594
 
 
122595
{ set +x
 
122596
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:286: # First try a quick sleep, so that the test completes very quickly
 
122597
     # in the normal case.  POSIX doesn't require fractional times to
 
122598
     # work, so this might not work.
 
122599
     sleep 0.1
 
122600
     if test \`wc -l < actions\` -ge 41; then exit 0; fi
 
122601
     # Then wait up to 10 seconds.
 
122602
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122603
       sleep 1
 
122604
       if test \`wc -l < actions\` -ge 41; then exit 0; fi
 
122605
     done
 
122606
     exit 1"
 
122607
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-monitor-ipsec.at:286"
 
122608
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
122609
     # in the normal case.  POSIX doesn't require fractional times to
 
122610
     # work, so this might not work.
 
122611
     sleep 0.1
 
122612
     if test `wc -l < actions` -ge 41; then exit 0; fi
 
122613
     # Then wait up to 10 seconds.
 
122614
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122615
       sleep 1
 
122616
       if test `wc -l < actions` -ge 41; then exit 0; fi
 
122617
     done
 
122618
     exit 1
 
122619
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122620
at_status=$? at_failed=false
 
122621
$at_check_filter
 
122622
echo stderr:; cat "$at_stderr"
 
122623
echo stdout:; cat "$at_stdout"
 
122624
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:286"
 
122625
$at_failed && at_fn_log_failure  \
 
122626
"log" \
 
122627
"actions"
 
122628
$at_traceon; }
 
122629
 
 
122630
{ set +x
 
122631
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:287: sed '1,33d' actions"
 
122632
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:287"
 
122633
( $at_check_trace; sed '1,33d' actions
 
122634
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122635
at_status=$? at_failed=false
 
122636
$at_check_filter
 
122637
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122638
echo >>"$at_stdout"; $as_echo "racoon: reload
 
122639
setkey:
 
122640
> spddelete 0.0.0.0/0 3.4.5.6 gre -P out;
 
122641
> spddelete 3.4.5.6 0.0.0.0/0 gre -P in;
 
122642
setkey:
 
122643
> dump ;
 
122644
setkey:
 
122645
> dump ;
 
122646
" | \
 
122647
  $at_diff - "$at_stdout" || at_failed=:
 
122648
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:287"
 
122649
$at_failed && at_fn_log_failure  \
 
122650
"log" \
 
122651
"actions"
 
122652
$at_traceon; }
 
122653
 
 
122654
{ set +x
 
122655
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:297: trim etc/racoon/psk.txt"
 
122656
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:297"
 
122657
( $at_check_trace; trim etc/racoon/psk.txt
 
122658
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122659
at_status=$? at_failed=false
 
122660
$at_check_filter
 
122661
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122662
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122663
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:297"
 
122664
$at_failed && at_fn_log_failure  \
 
122665
"log" \
 
122666
"actions"
 
122667
$at_traceon; }
 
122668
 
 
122669
{ set +x
 
122670
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:298: trim etc/racoon/racoon.conf"
 
122671
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:298"
 
122672
( $at_check_trace; trim etc/racoon/racoon.conf
 
122673
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122674
at_status=$? at_failed=false
 
122675
$at_check_filter
 
122676
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122677
echo >>"$at_stdout"; $as_echo "path pre_shared_key \"/etc/racoon/psk.txt\";
 
122678
path certificate \"/etc/racoon/certs\";
 
122679
sainfo anonymous {
 
122680
        pfs_group 2;
 
122681
        lifetime time 1 hour;
 
122682
        encryption_algorithm aes;
 
122683
        authentication_algorithm hmac_sha1, hmac_md5;
 
122684
        compression_algorithm deflate;
 
122685
}
 
122686
" | \
 
122687
  $at_diff - "$at_stdout" || at_failed=:
 
122688
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:298"
 
122689
$at_failed && at_fn_log_failure  \
 
122690
"log" \
 
122691
"actions"
 
122692
$at_traceon; }
 
122693
 
 
122694
{ set +x
 
122695
$as_echo "$at_srcdir/ovs-monitor-ipsec.at:309: test ! -f etc/racoon/certs/ovs-3.4.5.6.pem"
 
122696
at_fn_check_prepare_trace "ovs-monitor-ipsec.at:309"
 
122697
( $at_check_trace; test ! -f etc/racoon/certs/ovs-3.4.5.6.pem
 
122698
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122699
at_status=$? at_failed=false
 
122700
$at_check_filter
 
122701
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122702
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122703
at_fn_check_status 0 $at_status "$at_srcdir/ovs-monitor-ipsec.at:309"
 
122704
$at_failed && at_fn_log_failure  \
 
122705
"log" \
 
122706
"actions"
 
122707
$at_traceon; }
 
122708
 
 
122709
 
 
122710
  set +x
 
122711
  $at_times_p && times >"$at_times_file"
 
122712
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
122713
read at_status <"$at_status_file"
 
122714
#AT_STOP_975
 
122715
#AT_START_976
 
122716
at_fn_group_banner 976 'ovs-xapi-sync.at:3' \
 
122717
  "ovs-xapi-sync" "                                  " 71
 
122718
at_xfail=no
 
122719
(
 
122720
  $as_echo "976. $at_setup_line: testing $at_desc ..."
 
122721
  $at_traceon
 
122722
 
 
122723
$as_echo "ovs-xapi-sync.at:4" >"$at_check_line_file"
 
122724
(test $HAVE_PYTHON = no) \
 
122725
  && at_fn_check_skip 77 "$at_srcdir/ovs-xapi-sync.at:4"
 
122726
 
 
122727
# Mock up the XenAPI.
 
122728
cp "$top_srcdir/tests/MockXenAPI.py" XenAPI.py
 
122729
PYTHONPATH=`pwd`:$PYTHONPATH
 
122730
export PYTHONPATH
 
122731
 
 
122732
OVS_PKGDATADIR=`pwd`; export OVS_PKGDATADIR
 
122733
cp "$top_srcdir/vswitchd/vswitch.ovsschema" .
 
122734
 
 
122735
cp "$top_srcdir/xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync" \
 
122736
   ovs-xapi-sync
 
122737
 
 
122738
trap 'kill `cat pid ovs-xapi-sync.pid`' 0
 
122739
 
 
122740
mkdir var var/run
 
122741
touch var/run/xapi_init_complete.cookie
 
122742
 
 
122743
ovs_vsctl () {
 
122744
    ovs-vsctl --timeout=5 --no-wait -vreconnect:ANY:emer --db=unix:socket "$@"
 
122745
}
 
122746
 
 
122747
# Start ovsdb-server.
 
122748
{ set +x
 
122749
$as_echo "$at_srcdir/ovs-xapi-sync.at:27: ovsdb-tool create db \$abs_top_srcdir/vswitchd/vswitch.ovsschema"
 
122750
at_fn_check_prepare_dynamic "ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema" "ovs-xapi-sync.at:27"
 
122751
( $at_check_trace; ovsdb-tool create db $abs_top_srcdir/vswitchd/vswitch.ovsschema
 
122752
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122753
at_status=$? at_failed=false
 
122754
$at_check_filter
 
122755
echo stderr:; cat "$at_stderr"
 
122756
echo stdout:; tee stdout <"$at_stdout"
 
122757
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:27"
 
122758
$at_failed && at_fn_log_failure
 
122759
$at_traceon; }
 
122760
 
 
122761
   { set +x
 
122762
$as_echo "$at_srcdir/ovs-xapi-sync.at:27: ovsdb-tool transact db \\
 
122763
        '[\"Open_vSwitch\",
 
122764
          {\"op\": \"insert\",
 
122765
           \"table\": \"Open_vSwitch\",
 
122766
           \"row\": {}}]'"
 
122767
at_fn_check_prepare_notrace 'an embedded newline' "ovs-xapi-sync.at:27"
 
122768
( $at_check_trace; ovsdb-tool transact db \
 
122769
        '["Open_vSwitch",
 
122770
          {"op": "insert",
 
122771
           "table": "Open_vSwitch",
 
122772
           "row": {}}]'
 
122773
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122774
at_status=$? at_failed=false
 
122775
$at_check_filter
 
122776
echo stderr:; cat "$at_stderr"
 
122777
echo stdout:; cat "$at_stdout"
 
122778
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:27"
 
122779
$at_failed && at_fn_log_failure
 
122780
$at_traceon; }
 
122781
 
 
122782
   { set +x
 
122783
$as_echo "$at_srcdir/ovs-xapi-sync.at:27: ovsdb-server --detach --pidfile=\$PWD/pid --remote=punix:socket --unixctl=\$PWD/unixctl db >/dev/null 2>&1"
 
122784
at_fn_check_prepare_dynamic "ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1" "ovs-xapi-sync.at:27"
 
122785
( $at_check_trace; ovsdb-server --detach --pidfile=$PWD/pid --remote=punix:socket --unixctl=$PWD/unixctl db >/dev/null 2>&1
 
122786
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122787
at_status=$? at_failed=false
 
122788
$at_check_filter
 
122789
echo stderr:; cat "$at_stderr"
 
122790
echo stdout:; cat "$at_stdout"
 
122791
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:27"
 
122792
$at_failed && at_fn_log_failure
 
122793
$at_traceon; }
 
122794
 
 
122795
 
 
122796
# Start ovs-xapi-sync.
 
122797
{ set +x
 
122798
$as_echo "$at_srcdir/ovs-xapi-sync.at:30: \$PYTHON ./ovs-xapi-sync \"--pidfile=\`pwd\`/ovs-xapi-sync.pid\" \\
 
122799
                  \"--root-prefix=\`pwd\`\" unix:socket >log 2>&1 &"
 
122800
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-xapi-sync.at:30"
 
122801
( $at_check_trace; $PYTHON ./ovs-xapi-sync "--pidfile=`pwd`/ovs-xapi-sync.pid" \
 
122802
                  "--root-prefix=`pwd`" unix:socket >log 2>&1 &
 
122803
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122804
at_status=$? at_failed=false
 
122805
$at_check_filter
 
122806
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122807
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122808
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:30"
 
122809
$at_failed && at_fn_log_failure
 
122810
$at_traceon; }
 
122811
 
 
122812
 
 
122813
 
 
122814
# Add bridges and check ovs-xapi-sync's work.
 
122815
{ set +x
 
122816
$as_echo "$at_srcdir/ovs-xapi-sync.at:35: ovs_vsctl -- add-br xenbr0 -- add-br xenbr1"
 
122817
at_fn_check_prepare_trace "ovs-xapi-sync.at:35"
 
122818
( $at_check_trace; ovs_vsctl -- add-br xenbr0 -- add-br xenbr1
 
122819
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122820
at_status=$? at_failed=false
 
122821
$at_check_filter
 
122822
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122823
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122824
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:35"
 
122825
$at_failed && at_fn_log_failure  \
 
122826
"log"
 
122827
$at_traceon; }
 
122828
 
 
122829
{ set +x
 
122830
$as_echo "$at_srcdir/ovs-xapi-sync.at:36: # First try a quick sleep, so that the test completes very quickly
 
122831
     # in the normal case.  POSIX doesn't require fractional times to
 
122832
     # work, so this might not work.
 
122833
     sleep 0.1
 
122834
     if test \"X\`ovs_vsctl get bridge xenbr0 fail-mode\`\" != \"X[]\"; then exit 0; fi
 
122835
     # Then wait up to 10 seconds.
 
122836
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122837
       sleep 1
 
122838
       if test \"X\`ovs_vsctl get bridge xenbr0 fail-mode\`\" != \"X[]\"; then exit 0; fi
 
122839
     done
 
122840
     exit 1"
 
122841
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-xapi-sync.at:36"
 
122842
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
122843
     # in the normal case.  POSIX doesn't require fractional times to
 
122844
     # work, so this might not work.
 
122845
     sleep 0.1
 
122846
     if test "X`ovs_vsctl get bridge xenbr0 fail-mode`" != "X[]"; then exit 0; fi
 
122847
     # Then wait up to 10 seconds.
 
122848
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122849
       sleep 1
 
122850
       if test "X`ovs_vsctl get bridge xenbr0 fail-mode`" != "X[]"; then exit 0; fi
 
122851
     done
 
122852
     exit 1
 
122853
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122854
at_status=$? at_failed=false
 
122855
$at_check_filter
 
122856
echo stderr:; cat "$at_stderr"
 
122857
echo stdout:; cat "$at_stdout"
 
122858
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:36"
 
122859
$at_failed && at_fn_log_failure  \
 
122860
"log"
 
122861
$at_traceon; }
 
122862
 
 
122863
{ set +x
 
122864
$as_echo "$at_srcdir/ovs-xapi-sync.at:37: ovs_vsctl \\
 
122865
                -- get bridge xenbr0 fail-mode other-config external-ids \\
 
122866
                -- get bridge xenbr1 fail-mode other-config external-ids"
 
122867
at_fn_check_prepare_notrace 'an embedded newline' "ovs-xapi-sync.at:37"
 
122868
( $at_check_trace; ovs_vsctl \
 
122869
                -- get bridge xenbr0 fail-mode other-config external-ids \
 
122870
                -- get bridge xenbr1 fail-mode other-config external-ids
 
122871
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122872
at_status=$? at_failed=false
 
122873
$at_check_filter
 
122874
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122875
echo >>"$at_stdout"; $as_echo "secure
 
122876
{}
 
122877
{bridge-id=\"custom bridge ID\"}
 
122878
secure
 
122879
{disable-in-band=\"true\"}
 
122880
{}
 
122881
" | \
 
122882
  $at_diff - "$at_stdout" || at_failed=:
 
122883
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:37"
 
122884
$at_failed && at_fn_log_failure  \
 
122885
"log"
 
122886
$at_traceon; }
 
122887
 
 
122888
 
 
122889
# Add vif and check daemon's work.
 
122890
{ set +x
 
122891
$as_echo "$at_srcdir/ovs-xapi-sync.at:49: ovs_vsctl \\
 
122892
                -- add-port xenbr0 vif1.0 \\
 
122893
                -- set Interface vif1.0 'external-ids={attached-mac=\"00:11:22:33:44:55\", xs-network-uuid=\"9b66c68b-a74e-4d34-89a5-20a8ab352d1e\", xs-vif-uuid=\"6ab1b260-398e-49ba-827b-c7696108964c\", xs-vm-uuid=\"fcb8a3f6-dc04-41d2-8b8a-55afd2b755b8\"'}"
 
122894
at_fn_check_prepare_notrace 'an embedded newline' "ovs-xapi-sync.at:49"
 
122895
( $at_check_trace; ovs_vsctl \
 
122896
                -- add-port xenbr0 vif1.0 \
 
122897
                -- set Interface vif1.0 'external-ids={attached-mac="00:11:22:33:44:55", xs-network-uuid="9b66c68b-a74e-4d34-89a5-20a8ab352d1e", xs-vif-uuid="6ab1b260-398e-49ba-827b-c7696108964c", xs-vm-uuid="fcb8a3f6-dc04-41d2-8b8a-55afd2b755b8"'}
 
122898
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122899
at_status=$? at_failed=false
 
122900
$at_check_filter
 
122901
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122902
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122903
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:49"
 
122904
$at_failed && at_fn_log_failure  \
 
122905
"log"
 
122906
$at_traceon; }
 
122907
 
 
122908
{ set +x
 
122909
$as_echo "$at_srcdir/ovs-xapi-sync.at:52: # First try a quick sleep, so that the test completes very quickly
 
122910
     # in the normal case.  POSIX doesn't require fractional times to
 
122911
     # work, so this might not work.
 
122912
     sleep 0.1
 
122913
     if ovs_vsctl get interface vif1.0 external-ids:iface-id >/dev/null 2>&1; then exit 0; fi
 
122914
     # Then wait up to 10 seconds.
 
122915
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122916
       sleep 1
 
122917
       if ovs_vsctl get interface vif1.0 external-ids:iface-id >/dev/null 2>&1; then exit 0; fi
 
122918
     done
 
122919
     exit 1"
 
122920
at_fn_check_prepare_notrace 'an embedded newline' "ovs-xapi-sync.at:52"
 
122921
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
122922
     # in the normal case.  POSIX doesn't require fractional times to
 
122923
     # work, so this might not work.
 
122924
     sleep 0.1
 
122925
     if ovs_vsctl get interface vif1.0 external-ids:iface-id >/dev/null 2>&1; then exit 0; fi
 
122926
     # Then wait up to 10 seconds.
 
122927
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122928
       sleep 1
 
122929
       if ovs_vsctl get interface vif1.0 external-ids:iface-id >/dev/null 2>&1; then exit 0; fi
 
122930
     done
 
122931
     exit 1
 
122932
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122933
at_status=$? at_failed=false
 
122934
$at_check_filter
 
122935
echo stderr:; cat "$at_stderr"
 
122936
echo stdout:; cat "$at_stdout"
 
122937
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:52"
 
122938
$at_failed && at_fn_log_failure  \
 
122939
"log"
 
122940
$at_traceon; }
 
122941
 
 
122942
{ set +x
 
122943
$as_echo "$at_srcdir/ovs-xapi-sync.at:53: ovs_vsctl get interface vif1.0 external-ids"
 
122944
at_fn_check_prepare_trace "ovs-xapi-sync.at:53"
 
122945
( $at_check_trace; ovs_vsctl get interface vif1.0 external-ids
 
122946
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122947
at_status=$? at_failed=false
 
122948
$at_check_filter
 
122949
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122950
echo >>"$at_stdout"; $as_echo "{attached-mac=\"00:11:22:33:44:55\", iface-id=\"custom iface ID\", iface-status=active, xs-network-uuid=\"9b66c68b-a74e-4d34-89a5-20a8ab352d1e\", xs-vif-uuid=\"6ab1b260-398e-49ba-827b-c7696108964c\", xs-vm-uuid=\"fcb8a3f6-dc04-41d2-8b8a-55afd2b755b8\"}
 
122951
" | \
 
122952
  $at_diff - "$at_stdout" || at_failed=:
 
122953
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:53"
 
122954
$at_failed && at_fn_log_failure  \
 
122955
"log"
 
122956
$at_traceon; }
 
122957
 
 
122958
 
 
122959
# Add corresponding tap and check daemon's work.
 
122960
{ set +x
 
122961
$as_echo "$at_srcdir/ovs-xapi-sync.at:58: ovs_vsctl add-port xenbr0 tap1.0"
 
122962
at_fn_check_prepare_trace "ovs-xapi-sync.at:58"
 
122963
( $at_check_trace; ovs_vsctl add-port xenbr0 tap1.0
 
122964
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122965
at_status=$? at_failed=false
 
122966
$at_check_filter
 
122967
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
122968
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
122969
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:58"
 
122970
$at_failed && at_fn_log_failure  \
 
122971
"log"
 
122972
$at_traceon; }
 
122973
 
 
122974
{ set +x
 
122975
$as_echo "$at_srcdir/ovs-xapi-sync.at:59: # First try a quick sleep, so that the test completes very quickly
 
122976
     # in the normal case.  POSIX doesn't require fractional times to
 
122977
     # work, so this might not work.
 
122978
     sleep 0.1
 
122979
     if ovs_vsctl get interface tap1.0 external-ids:iface-id >/dev/null 2>&1; then exit 0; fi
 
122980
     # Then wait up to 10 seconds.
 
122981
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122982
       sleep 1
 
122983
       if ovs_vsctl get interface tap1.0 external-ids:iface-id >/dev/null 2>&1; then exit 0; fi
 
122984
     done
 
122985
     exit 1"
 
122986
at_fn_check_prepare_notrace 'an embedded newline' "ovs-xapi-sync.at:59"
 
122987
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
122988
     # in the normal case.  POSIX doesn't require fractional times to
 
122989
     # work, so this might not work.
 
122990
     sleep 0.1
 
122991
     if ovs_vsctl get interface tap1.0 external-ids:iface-id >/dev/null 2>&1; then exit 0; fi
 
122992
     # Then wait up to 10 seconds.
 
122993
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
122994
       sleep 1
 
122995
       if ovs_vsctl get interface tap1.0 external-ids:iface-id >/dev/null 2>&1; then exit 0; fi
 
122996
     done
 
122997
     exit 1
 
122998
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
122999
at_status=$? at_failed=false
 
123000
$at_check_filter
 
123001
echo stderr:; cat "$at_stderr"
 
123002
echo stdout:; cat "$at_stdout"
 
123003
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:59"
 
123004
$at_failed && at_fn_log_failure  \
 
123005
"log"
 
123006
$at_traceon; }
 
123007
 
 
123008
{ set +x
 
123009
$as_echo "$at_srcdir/ovs-xapi-sync.at:60: ovs_vsctl \\
 
123010
                -- get interface vif1.0 external-ids \\
 
123011
                -- get interface tap1.0 external-ids"
 
123012
at_fn_check_prepare_notrace 'an embedded newline' "ovs-xapi-sync.at:60"
 
123013
( $at_check_trace; ovs_vsctl \
 
123014
                -- get interface vif1.0 external-ids \
 
123015
                -- get interface tap1.0 external-ids
 
123016
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123017
at_status=$? at_failed=false
 
123018
$at_check_filter
 
123019
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
123020
echo >>"$at_stdout"; $as_echo "{attached-mac=\"00:11:22:33:44:55\", iface-id=\"custom iface ID\", iface-status=inactive, xs-network-uuid=\"9b66c68b-a74e-4d34-89a5-20a8ab352d1e\", xs-vif-uuid=\"6ab1b260-398e-49ba-827b-c7696108964c\", xs-vm-uuid=\"fcb8a3f6-dc04-41d2-8b8a-55afd2b755b8\"}
 
123021
{attached-mac=\"00:11:22:33:44:55\", iface-id=\"custom iface ID\", iface-status=active, xs-network-uuid=\"9b66c68b-a74e-4d34-89a5-20a8ab352d1e\", xs-vif-uuid=\"6ab1b260-398e-49ba-827b-c7696108964c\", xs-vm-uuid=\"fcb8a3f6-dc04-41d2-8b8a-55afd2b755b8\"}
 
123022
" | \
 
123023
  $at_diff - "$at_stdout" || at_failed=:
 
123024
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:60"
 
123025
$at_failed && at_fn_log_failure  \
 
123026
"log"
 
123027
$at_traceon; }
 
123028
 
 
123029
 
 
123030
# Remove corresponding tap and check daemon's work.
 
123031
{ set +x
 
123032
$as_echo "$at_srcdir/ovs-xapi-sync.at:68: ovs_vsctl del-port tap1.0"
 
123033
at_fn_check_prepare_trace "ovs-xapi-sync.at:68"
 
123034
( $at_check_trace; ovs_vsctl del-port tap1.0
 
123035
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123036
at_status=$? at_failed=false
 
123037
$at_check_filter
 
123038
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
123039
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
123040
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:68"
 
123041
$at_failed && at_fn_log_failure  \
 
123042
"log"
 
123043
$at_traceon; }
 
123044
 
 
123045
{ set +x
 
123046
$as_echo "$at_srcdir/ovs-xapi-sync.at:69: # First try a quick sleep, so that the test completes very quickly
 
123047
     # in the normal case.  POSIX doesn't require fractional times to
 
123048
     # work, so this might not work.
 
123049
     sleep 0.1
 
123050
     if test \`ovs_vsctl get interface vif1.0 external-ids:iface-status\` = active; then exit 0; fi
 
123051
     # Then wait up to 10 seconds.
 
123052
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
123053
       sleep 1
 
123054
       if test \`ovs_vsctl get interface vif1.0 external-ids:iface-status\` = active; then exit 0; fi
 
123055
     done
 
123056
     exit 1"
 
123057
at_fn_check_prepare_notrace 'a `...` command substitution' "ovs-xapi-sync.at:69"
 
123058
( $at_check_trace; # First try a quick sleep, so that the test completes very quickly
 
123059
     # in the normal case.  POSIX doesn't require fractional times to
 
123060
     # work, so this might not work.
 
123061
     sleep 0.1
 
123062
     if test `ovs_vsctl get interface vif1.0 external-ids:iface-status` = active; then exit 0; fi
 
123063
     # Then wait up to 10 seconds.
 
123064
     for d in 0 1 2 3 4 5 6 7 8 9; do
 
123065
       sleep 1
 
123066
       if test `ovs_vsctl get interface vif1.0 external-ids:iface-status` = active; then exit 0; fi
 
123067
     done
 
123068
     exit 1
 
123069
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123070
at_status=$? at_failed=false
 
123071
$at_check_filter
 
123072
echo stderr:; cat "$at_stderr"
 
123073
echo stdout:; cat "$at_stdout"
 
123074
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:69"
 
123075
$at_failed && at_fn_log_failure  \
 
123076
"log"
 
123077
$at_traceon; }
 
123078
 
 
123079
{ set +x
 
123080
$as_echo "$at_srcdir/ovs-xapi-sync.at:70: ovs_vsctl get interface vif1.0 external-ids"
 
123081
at_fn_check_prepare_trace "ovs-xapi-sync.at:70"
 
123082
( $at_check_trace; ovs_vsctl get interface vif1.0 external-ids
 
123083
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123084
at_status=$? at_failed=false
 
123085
$at_check_filter
 
123086
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
123087
echo >>"$at_stdout"; $as_echo "{attached-mac=\"00:11:22:33:44:55\", iface-id=\"custom iface ID\", iface-status=active, xs-network-uuid=\"9b66c68b-a74e-4d34-89a5-20a8ab352d1e\", xs-vif-uuid=\"6ab1b260-398e-49ba-827b-c7696108964c\", xs-vm-uuid=\"fcb8a3f6-dc04-41d2-8b8a-55afd2b755b8\"}
 
123088
" | \
 
123089
  $at_diff - "$at_stdout" || at_failed=:
 
123090
at_fn_check_status 0 $at_status "$at_srcdir/ovs-xapi-sync.at:70"
 
123091
$at_failed && at_fn_log_failure  \
 
123092
"log"
 
123093
$at_traceon; }
 
123094
 
 
123095
 
 
123096
  set +x
 
123097
  $at_times_p && times >"$at_times_file"
 
123098
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
123099
read at_status <"$at_status_file"
 
123100
#AT_STOP_976
 
123101
#AT_START_977
 
123102
at_fn_group_banner 977 'interface-reconfigure.at:691' \
 
123103
  "non-VLAN, non-bond" "                             " 72
 
123104
at_xfail=no
 
123105
(
 
123106
  $as_echo "977. $at_setup_line: testing $at_desc ..."
 
123107
  $at_traceon
 
123108
 
 
123109
 
 
123110
for script in \
 
123111
        interface-reconfigure \
 
123112
        InterfaceReconfigure.py \
 
123113
        InterfaceReconfigureBridge.py \
 
123114
        InterfaceReconfigureVswitch.py
 
123115
    do
 
123116
        cp $top_srcdir/xenserver/opt_xensource_libexec_$script $script
 
123117
    done
 
123118
 
 
123119
    mkdir -p etc
 
123120
    cat > etc/xensource-inventory <<EOF
 
123121
PRODUCT_BRAND='XenServer'
 
123122
PRODUCT_NAME='xenenterprise'
 
123123
PRODUCT_VERSION='5.5.0'
 
123124
BUILD_NUMBER='24648p'
 
123125
KERNEL_VERSION='2.6.18-128.1.6.el5.xs5.5.0.505.1024xen'
 
123126
XEN_VERSION='3.3.1'
 
123127
INSTALLATION_DATE='2010-02-10 16:45:28.748345'
 
123128
PRIMARY_DISK='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c'
 
123129
BACKUP_PARTITION='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c-part2'
 
123130
INSTALLATION_UUID='852ee692-71b4-439e-abfb-0eba72dc85f0'
 
123131
CONTROL_DOMAIN_UUID='44e6b66e-3074-4a3c-bbcd-756d845a3b56'
 
123132
DEFAULT_SR_PHYSDEVS='/dev/sda3'
 
123133
DOM0_MEM='752'
 
123134
MANAGEMENT_INTERFACE='xenbr2'
 
123135
EOF
 
123136
 
 
123137
    mkdir -p etc/xensource
 
123138
    echo vswitch > etc/xensource/network.conf
 
123139
 
 
123140
    for utility in \
 
123141
        sbin/ethtool \
 
123142
        sbin/ifconfig \
 
123143
        sbin/ifdown \
 
123144
        sbin/ifup \
 
123145
        sbin/ip \
 
123146
        sbin/update-issue \
 
123147
        sbin/vconfig \
 
123148
        usr/sbin/brctl \
 
123149
        usr/sbin/ovs-vlan-bug-workaround
 
123150
    do
 
123151
        mkdir -p `dirname $utility`
 
123152
        cat > $utility <<'EOF'
 
123153
#! /bin/sh
 
123154
echo ${0} ${*} >&2
 
123155
EOF
 
123156
        chmod +x $utility
 
123157
    done
 
123158
 
 
123159
    mkdir -p usr/bin
 
123160
    cat > usr/bin/ovs-vsctl <<'EOF'
 
123161
#! /bin/sh
 
123162
echo ${0} ${*} >&2
 
123163
 
 
123164
while test ${#} -ge 4; do
 
123165
    if test X"${1}" = Xget && \
 
123166
       test X"${2}" = Xinterface && \
 
123167
       test X"${4}" = Xofport; then
 
123168
          if test X"${3}" = Xeth2; then
 
123169
              echo 5
 
123170
          else
 
123171
              echo -1
 
123172
          fi
 
123173
    fi
 
123174
 
 
123175
    shift
 
123176
done
 
123177
EOF
 
123178
    chmod +x usr/bin/ovs-vsctl
 
123179
 
 
123180
    cat > usr/bin/ovs-ofctl <<'EOF'
 
123181
#! /bin/sh
 
123182
echo ${0} ${*} >&2
 
123183
 
 
123184
# Check that the flow is properly formed.
 
123185
ovs-ofctl parse-flow "${3}" >/dev/null
 
123186
EOF
 
123187
    chmod +x usr/bin/ovs-ofctl
 
123188
 
 
123189
    mkdir -p etc/sysconfig/network-scripts
 
123190
    configure_netdev () {
 
123191
        mkdir -p sys/class/net/${1}
 
123192
        echo ${2} > sys/class/net/${1}/address
 
123193
        echo ${3} > sys/class/net/${1}/tx_queue_len
 
123194
        if test ${1} = eth1; then
 
123195
            # No VLAN acceleration.
 
123196
            echo 0x829 > sys/class/net/${1}/features
 
123197
        else
 
123198
            # Supports VLAN acceleration.
 
123199
            echo 0x10b89 > sys/class/net/${1}/features
 
123200
        fi
 
123201
        mkdir sys/class/net/${1}/device
 
123202
        ln -s ../../../bus/pci/drivers/e1000 sys/class/net/${1}/device/driver
 
123203
 
 
123204
        : >> etc/sysconfig/network-scripts/ifcfg-${1}
 
123205
    }
 
123206
 
 
123207
    configure_netdev lo   00:00:00:00:00:00 0
 
123208
    configure_netdev eth0 00:22:19:22:4b:af 1000
 
123209
    configure_netdev eth1 00:22:19:22:4b:b1 1000
 
123210
    configure_netdev eth2 00:15:17:a0:29:80 1000
 
123211
    configure_netdev eth3 00:15:17:a0:29:81 1000
 
123212
    configure_netdev eth4 00:1b:21:29:ce:51 1000
 
123213
 
 
123214
    mkdir -p var/xapi
 
123215
    cat > var/xapi/network.dbcache <<'EOF'
 
123216
<?xml version="1.0" ?>
 
123217
<xenserver-network-configuration>
 
123218
        <pif ref="OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6">
 
123219
                <VLAN_slave_of/>
 
123220
                <tunnel_access_PIF_of/>
 
123221
                <management>
 
123222
                        False
 
123223
                </management>
 
123224
                <bond_slave_of>
 
123225
                        OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
123226
                </bond_slave_of>
 
123227
                <uuid>
 
123228
                        bd62a141-091f-3909-e334-0334f67ff3be
 
123229
                </uuid>
 
123230
                <IP>
 
123231
 
 
123232
                </IP>
 
123233
                <VLAN_master_of>
 
123234
                        OpaqueRef:NULL
 
123235
                </VLAN_master_of>
 
123236
                <VLAN>
 
123237
                        -1
 
123238
                </VLAN>
 
123239
                <netmask>
 
123240
 
 
123241
                </netmask>
 
123242
                <other_config/>
 
123243
                <MAC>
 
123244
                        00:22:19:22:4b:af
 
123245
                </MAC>
 
123246
                <ip_configuration_mode>
 
123247
                        None
 
123248
                </ip_configuration_mode>
 
123249
                <DNS>
 
123250
 
 
123251
                </DNS>
 
123252
                <device>
 
123253
                        eth0
 
123254
                </device>
 
123255
                <bond_master_of/>
 
123256
                <currently_attached>
 
123257
                        False
 
123258
                </currently_attached>
 
123259
                <gateway>
 
123260
 
 
123261
                </gateway>
 
123262
                <network>
 
123263
                        OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5
 
123264
                </network>
 
123265
        </pif>
 
123266
        <pif ref="OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806">
 
123267
                <VLAN_slave_of/>
 
123268
                <tunnel_access_PIF_of/>
 
123269
                <management>
 
123270
                        False
 
123271
                </management>
 
123272
                <bond_slave_of>
 
123273
                        OpaqueRef:NULL
 
123274
                </bond_slave_of>
 
123275
                <uuid>
 
123276
                        df8d35c2-cc3a-a623-7065-d987a29feb75
 
123277
                </uuid>
 
123278
                <IP>
 
123279
 
 
123280
                </IP>
 
123281
                <VLAN_master_of>
 
123282
                        OpaqueRef:NULL
 
123283
                </VLAN_master_of>
 
123284
                <VLAN>
 
123285
                        -1
 
123286
                </VLAN>
 
123287
                <netmask>
 
123288
 
 
123289
                </netmask>
 
123290
                <other_config/>
 
123291
                <MAC>
 
123292
                        00:1b:21:29:ce:51
 
123293
                </MAC>
 
123294
                <ip_configuration_mode>
 
123295
                        None
 
123296
                </ip_configuration_mode>
 
123297
                <DNS>
 
123298
 
 
123299
                </DNS>
 
123300
                <device>
 
123301
                        eth4
 
123302
                </device>
 
123303
                <bond_master_of/>
 
123304
                <currently_attached>
 
123305
                        False
 
123306
                </currently_attached>
 
123307
                <gateway>
 
123308
 
 
123309
                </gateway>
 
123310
                <network>
 
123311
                        OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531
 
123312
                </network>
 
123313
        </pif>
 
123314
        <pif ref="OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768">
 
123315
                <VLAN_slave_of/>
 
123316
                <tunnel_access_PIF_of/>
 
123317
                <management>
 
123318
                        False
 
123319
                </management>
 
123320
                <bond_slave_of>
 
123321
                        OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
123322
                </bond_slave_of>
 
123323
                <uuid>
 
123324
                        2f87fc95-5ab4-571a-2487-3f4ac1985663
 
123325
                </uuid>
 
123326
                <IP>
 
123327
 
 
123328
                </IP>
 
123329
                <VLAN_master_of>
 
123330
                        OpaqueRef:NULL
 
123331
                </VLAN_master_of>
 
123332
                <VLAN>
 
123333
                        -1
 
123334
                </VLAN>
 
123335
                <netmask>
 
123336
 
 
123337
                </netmask>
 
123338
                <other_config/>
 
123339
                <MAC>
 
123340
                        00:22:19:22:4b:b1
 
123341
                </MAC>
 
123342
                <ip_configuration_mode>
 
123343
                        None
 
123344
                </ip_configuration_mode>
 
123345
                <DNS>
 
123346
 
 
123347
                </DNS>
 
123348
                <device>
 
123349
                        eth1
 
123350
                </device>
 
123351
                <bond_master_of/>
 
123352
                <currently_attached>
 
123353
                        False
 
123354
                </currently_attached>
 
123355
                <gateway>
 
123356
 
 
123357
                </gateway>
 
123358
                <network>
 
123359
                        OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d
 
123360
                </network>
 
123361
        </pif>
 
123362
        <pif ref="OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e">
 
123363
                <VLAN_slave_of/>
 
123364
                <tunnel_access_PIF_of/>
 
123365
                <management>
 
123366
                        False
 
123367
                </management>
 
123368
                <bond_slave_of>
 
123369
                        OpaqueRef:NULL
 
123370
                </bond_slave_of>
 
123371
                <uuid>
 
123372
                        d2dfdab3-daf4-afea-f055-a25a0d24d714
 
123373
                </uuid>
 
123374
                <IP>
 
123375
 
 
123376
                </IP>
 
123377
                <VLAN_master_of>
 
123378
                        OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
 
123379
                </VLAN_master_of>
 
123380
                <VLAN>
 
123381
                        4
 
123382
                </VLAN>
 
123383
                <netmask>
 
123384
 
 
123385
                </netmask>
 
123386
                <other_config/>
 
123387
                <MAC>
 
123388
                        fe:ff:ff:ff:ff:ff
 
123389
                </MAC>
 
123390
                <ip_configuration_mode>
 
123391
                        None
 
123392
                </ip_configuration_mode>
 
123393
                <DNS>
 
123394
 
 
123395
                </DNS>
 
123396
                <device>
 
123397
                        bond0
 
123398
                </device>
 
123399
                <bond_master_of/>
 
123400
                <currently_attached>
 
123401
                        True
 
123402
                </currently_attached>
 
123403
                <gateway>
 
123404
 
 
123405
                </gateway>
 
123406
                <network>
 
123407
                        OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47
 
123408
                </network>
 
123409
        </pif>
 
123410
        <pif ref="OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc">
 
123411
                <VLAN_slave_of>
 
123412
                        <master>
 
123413
                                OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
 
123414
                        </master>
 
123415
                </VLAN_slave_of>
 
123416
                <tunnel_access_PIF_of/>
 
123417
                <management>
 
123418
                        False
 
123419
                </management>
 
123420
                <bond_slave_of>
 
123421
                        OpaqueRef:NULL
 
123422
                </bond_slave_of>
 
123423
                <uuid>
 
123424
                        f4ba396e-a993-a592-5fbc-a1d566afb59e
 
123425
                </uuid>
 
123426
                <IP>
 
123427
                        10.0.0.188
 
123428
                </IP>
 
123429
                <VLAN_master_of>
 
123430
                        OpaqueRef:NULL
 
123431
                </VLAN_master_of>
 
123432
                <VLAN>
 
123433
                        -1
 
123434
                </VLAN>
 
123435
                <netmask>
 
123436
                        255.0.0.0
 
123437
                </netmask>
 
123438
                <other_config/>
 
123439
                <MAC>
 
123440
                        00:15:17:a0:29:81
 
123441
                </MAC>
 
123442
                <ip_configuration_mode>
 
123443
                        Static
 
123444
                </ip_configuration_mode>
 
123445
                <DNS>
 
123446
 
 
123447
                </DNS>
 
123448
                <device>
 
123449
                        eth3
 
123450
                </device>
 
123451
                <bond_master_of/>
 
123452
                <currently_attached>
 
123453
                        True
 
123454
                </currently_attached>
 
123455
                <gateway>
 
123456
 
 
123457
                </gateway>
 
123458
                <network>
 
123459
                        OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32
 
123460
                </network>
 
123461
        </pif>
 
123462
        <pif ref="OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15">
 
123463
                <VLAN_slave_of/>
 
123464
                <tunnel_access_PIF_of/>
 
123465
                <management>
 
123466
                        True
 
123467
                </management>
 
123468
                <bond_slave_of>
 
123469
                        OpaqueRef:NULL
 
123470
                </bond_slave_of>
 
123471
                <uuid>
 
123472
                        646ca9a1-36ad-e2f9-3ecc-1e5622c201c2
 
123473
                </uuid>
 
123474
                <IP>
 
123475
                        172.18.3.188
 
123476
                </IP>
 
123477
                <VLAN_master_of>
 
123478
                        OpaqueRef:NULL
 
123479
                </VLAN_master_of>
 
123480
                <VLAN>
 
123481
                        -1
 
123482
                </VLAN>
 
123483
                <netmask>
 
123484
                        255.255.0.0
 
123485
                </netmask>
 
123486
                <other_config/>
 
123487
                <MAC>
 
123488
                        00:15:17:a0:29:80
 
123489
                </MAC>
 
123490
                <ip_configuration_mode>
 
123491
                        DHCP
 
123492
                </ip_configuration_mode>
 
123493
                <DNS>
 
123494
 
 
123495
                </DNS>
 
123496
                <device>
 
123497
                        eth2
 
123498
                </device>
 
123499
                <bond_master_of/>
 
123500
                <currently_attached>
 
123501
                        True
 
123502
                </currently_attached>
 
123503
                <gateway>
 
123504
 
 
123505
                </gateway>
 
123506
                <network>
 
123507
                        OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe
 
123508
                </network>
 
123509
        </pif>
 
123510
        <pif ref="OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3">
 
123511
                <VLAN_slave_of/>
 
123512
                <tunnel_access_PIF_of/>
 
123513
                <management>
 
123514
                        False
 
123515
                </management>
 
123516
                <bond_slave_of>
 
123517
                        OpaqueRef:NULL
 
123518
                </bond_slave_of>
 
123519
                <uuid>
 
123520
                        3941edd2-865b-8dd8-61f0-199f5e1fa652
 
123521
                </uuid>
 
123522
                <IP>
 
123523
 
 
123524
                </IP>
 
123525
                <VLAN_master_of>
 
123526
                        OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
 
123527
                </VLAN_master_of>
 
123528
                <VLAN>
 
123529
                        123
 
123530
                </VLAN>
 
123531
                <netmask>
 
123532
 
 
123533
                </netmask>
 
123534
                <other_config/>
 
123535
                <MAC>
 
123536
                        fe:ff:ff:ff:ff:ff
 
123537
                </MAC>
 
123538
                <ip_configuration_mode>
 
123539
                        None
 
123540
                </ip_configuration_mode>
 
123541
                <DNS>
 
123542
 
 
123543
                </DNS>
 
123544
                <device>
 
123545
                        eth3
 
123546
                </device>
 
123547
                <bond_master_of/>
 
123548
                <currently_attached>
 
123549
                        True
 
123550
                </currently_attached>
 
123551
                <gateway>
 
123552
 
 
123553
                </gateway>
 
123554
                <network>
 
123555
                        OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17
 
123556
                </network>
 
123557
        </pif>
 
123558
        <pif ref="OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11">
 
123559
                <VLAN_slave_of>
 
123560
                        <master>
 
123561
                                OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
 
123562
                        </master>
 
123563
                </VLAN_slave_of>
 
123564
                <tunnel_access_PIF_of/>
 
123565
                <management>
 
123566
                        False
 
123567
                </management>
 
123568
                <bond_slave_of>
 
123569
                        OpaqueRef:NULL
 
123570
                </bond_slave_of>
 
123571
                <uuid>
 
123572
                        6c0327a9-afa3-fc19-6798-a1bfe20095ed
 
123573
                </uuid>
 
123574
                <IP>
 
123575
 
 
123576
                </IP>
 
123577
                <VLAN_master_of>
 
123578
                        OpaqueRef:NULL
 
123579
                </VLAN_master_of>
 
123580
                <VLAN>
 
123581
                        -1
 
123582
                </VLAN>
 
123583
                <netmask>
 
123584
 
 
123585
                </netmask>
 
123586
                <other_config/>
 
123587
                <MAC>
 
123588
                        00:22:19:22:4b:af
 
123589
                </MAC>
 
123590
                <ip_configuration_mode>
 
123591
                        None
 
123592
                </ip_configuration_mode>
 
123593
                <DNS>
 
123594
 
 
123595
                </DNS>
 
123596
                <device>
 
123597
                        bond0
 
123598
                </device>
 
123599
                <bond_master_of>
 
123600
                        <slave>
 
123601
                                OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
123602
                        </slave>
 
123603
                </bond_master_of>
 
123604
                <currently_attached>
 
123605
                        True
 
123606
                </currently_attached>
 
123607
                <gateway>
 
123608
 
 
123609
                </gateway>
 
123610
                <network>
 
123611
                        OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a
 
123612
                </network>
 
123613
        </pif>
 
123614
        <bond ref="OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e">
 
123615
                <master>
 
123616
                        OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
123617
                </master>
 
123618
                <uuid>
 
123619
                        dad825f1-6d81-386e-849c-5589281e53e1
 
123620
                </uuid>
 
123621
                <slaves>
 
123622
                        <slave>
 
123623
                                OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
 
123624
                        </slave>
 
123625
                        <slave>
 
123626
                                OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
 
123627
                        </slave>
 
123628
                </slaves>
 
123629
        </bond>
 
123630
        <vlan ref="OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c">
 
123631
                <tagged_PIF>
 
123632
                        OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
123633
                </tagged_PIF>
 
123634
                <uuid>
 
123635
                        841814da-d0d2-9da4-0b2e-b6143480bbfb
 
123636
                </uuid>
 
123637
                <untagged_PIF>
 
123638
                        OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
 
123639
                </untagged_PIF>
 
123640
        </vlan>
 
123641
        <vlan ref="OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297">
 
123642
                <tagged_PIF>
 
123643
                        OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
 
123644
                </tagged_PIF>
 
123645
                <uuid>
 
123646
                        399279a2-5ccd-5368-9af3-8622a1f1ac82
 
123647
                </uuid>
 
123648
                <untagged_PIF>
 
123649
                        OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
 
123650
                </untagged_PIF>
 
123651
        </vlan>
 
123652
        <network ref="OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47">
 
123653
                <PIFs>
 
123654
                        <PIF>
 
123655
                                OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
 
123656
                        </PIF>
 
123657
                </PIFs>
 
123658
                <bridge>
 
123659
                        xapi2
 
123660
                </bridge>
 
123661
                <other_config/>
 
123662
                <uuid>
 
123663
                        99be2da4-6c33-6f8e-49ea-3bc592fe3c85
 
123664
                </uuid>
 
123665
        </network>
 
123666
        <network ref="OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32">
 
123667
                <PIFs>
 
123668
                        <PIF>
 
123669
                                OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
 
123670
                        </PIF>
 
123671
                </PIFs>
 
123672
                <bridge>
 
123673
                        xenbr3
 
123674
                </bridge>
 
123675
                <other_config/>
 
123676
                <uuid>
 
123677
                        2902ae1b-8013-897a-b697-0b200ea3aaa5
 
123678
                </uuid>
 
123679
        </network>
 
123680
        <network ref="OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a">
 
123681
                <PIFs>
 
123682
                        <PIF>
 
123683
                                OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
123684
                        </PIF>
 
123685
                </PIFs>
 
123686
                <bridge>
 
123687
                        xapi1
 
123688
                </bridge>
 
123689
                <other_config/>
 
123690
                <uuid>
 
123691
                        45cbbb43-113d-a712-3231-c6463f253cef
 
123692
                </uuid>
 
123693
        </network>
 
123694
        <network ref="OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d">
 
123695
                <PIFs>
 
123696
                        <PIF>
 
123697
                                OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
 
123698
                        </PIF>
 
123699
                </PIFs>
 
123700
                <bridge>
 
123701
                        xenbr1
 
123702
                </bridge>
 
123703
                <other_config/>
 
123704
                <uuid>
 
123705
                        99f8771a-645a-26a3-e06c-30a401f1d009
 
123706
                </uuid>
 
123707
        </network>
 
123708
        <network ref="OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe">
 
123709
                <PIFs>
 
123710
                        <PIF>
 
123711
                                OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15
 
123712
                        </PIF>
 
123713
                </PIFs>
 
123714
                <bridge>
 
123715
                        xenbr2
 
123716
                </bridge>
 
123717
                <other_config/>
 
123718
                <uuid>
 
123719
                        d08c8749-0c8f-9e8d-ce25-fd364661ee99
 
123720
                </uuid>
 
123721
        </network>
 
123722
        <network ref="OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5">
 
123723
                <PIFs>
 
123724
                        <PIF>
 
123725
                                OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
 
123726
                        </PIF>
 
123727
                </PIFs>
 
123728
                <bridge>
 
123729
                        xenbr0
 
123730
                </bridge>
 
123731
                <other_config>
 
123732
                        <vswitch-disable-in-band>
 
123733
                                true
 
123734
                        </vswitch-disable-in-band>
 
123735
                </other_config>
 
123736
                <uuid>
 
123737
                        c9eecb03-560d-61de-b6a8-56dfc766f67e
 
123738
                </uuid>
 
123739
        </network>
 
123740
        <network ref="OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531">
 
123741
                <PIFs>
 
123742
                        <PIF>
 
123743
                                OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806
 
123744
                        </PIF>
 
123745
                </PIFs>
 
123746
                <bridge>
 
123747
                        xenbr4
 
123748
                </bridge>
 
123749
                <other_config/>
 
123750
                <uuid>
 
123751
                        d2c14c89-29cc-51d4-7664-633eff02b2ad
 
123752
                </uuid>
 
123753
        </network>
 
123754
        <network ref="OpaqueRef:0b7354a4-8f4b-aa08-2f16-a22c117e4211">
 
123755
                <PIFs/>
 
123756
                <bridge>
 
123757
                        xapi0
 
123758
                </bridge>
 
123759
                <other_config/>
 
123760
                <uuid>
 
123761
                        dc0f0632-c2aa-1b78-2fea-0d3a23c51740
 
123762
                </uuid>
 
123763
        </network>
 
123764
        <network ref="OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17">
 
123765
                <PIFs>
 
123766
                        <PIF>
 
123767
                                OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
 
123768
                        </PIF>
 
123769
                </PIFs>
 
123770
                <bridge>
 
123771
                        xapi3
 
123772
                </bridge>
 
123773
                <other_config/>
 
123774
                <uuid>
 
123775
                        db7bdc03-074d-42ae-fc73-9b06de1d57f6
 
123776
                </uuid>
 
123777
        </network>
 
123778
        <pool ref="OpaqueRef:a765d06c-fc82-cc67-8f6c-fd8db45f6a84">
 
123779
                <other_config>
 
123780
                        <vswitch-controller-fail-mode>
 
123781
                                secure
 
123782
                        </vswitch-controller-fail-mode>
 
123783
                </other_config>
 
123784
        </pool>
 
123785
</xenserver-network-configuration>
 
123786
EOF
 
123787
 
 
123788
 
 
123789
{ set +x
 
123790
$as_echo "$at_srcdir/interface-reconfigure.at:695: ./interface-reconfigure --root-prefix=\$PWD --no-syslog --force xenbr2 up"
 
123791
at_fn_check_prepare_dynamic "./interface-reconfigure --root-prefix=$PWD --no-syslog --force xenbr2 up" "interface-reconfigure.at:695"
 
123792
( $at_check_trace; ./interface-reconfigure --root-prefix=$PWD --no-syslog --force xenbr2 up
 
123793
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123794
at_status=$? at_failed=false
 
123795
$at_check_filter
 
123796
echo stderr:; tee stderr <"$at_stderr"
 
123797
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
123798
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:695"
 
123799
$at_failed && at_fn_log_failure
 
123800
$at_traceon; }
 
123801
 
 
123802
{ set +x
 
123803
$as_echo "$at_srcdir/interface-reconfigure.at:696: sed -n -e \"s,\$PWD,,g\" -e 's/ -- /\\
 
123804
    /g' -e '/^Running command:/!p' stderr"
 
123805
at_fn_check_prepare_notrace 'an embedded newline' "interface-reconfigure.at:696"
 
123806
( $at_check_trace; sed -n -e "s,$PWD,,g" -e 's/ -- /\
 
123807
    /g' -e '/^Running command:/!p' stderr
 
123808
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123809
at_status=$? at_failed=false
 
123810
$at_check_filter
 
123811
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
123812
echo >>"$at_stdout"; $as_echo "Force interface xenbr2 up
 
123813
Loading xapi database cache from /var/xapi/network.dbcache
 
123814
Configured for Vswitch datapath
 
123815
action_up: xenbr2
 
123816
Writing network configuration for xenbr2
 
123817
Configuring xenbr2 using DHCP configuration
 
123818
configure_datapath: bridge      - xenbr2
 
123819
configure_datapath: physical    - [u'eth2']
 
123820
configure_datapath: extra ports - []
 
123821
configure_datapath: extra bonds - []
 
123822
/usr/bin/ovs-vsctl --timeout=5 -vANY:console:off get-fail-mode xenbr2
 
123823
Applying changes to /etc/sysconfig/network-scripts/route-xenbr2 configuration
 
123824
Applying changes to /etc/sysconfig/network configuration
 
123825
Applying changes to /etc/sysconfig/network-scripts/ifcfg-xenbr2 configuration
 
123826
/sbin/ifconfig eth2 up mtu 1500
 
123827
/sbin/ethtool -K eth2 gro off lro off
 
123828
/usr/sbin/ovs-vlan-bug-workaround eth2 on
 
123829
/usr/bin/ovs-vsctl --timeout=20
 
123830
    --with-iface --if-exists del-port eth2
 
123831
    --may-exist add-br xenbr2
 
123832
    --may-exist add-port xenbr2 eth2
 
123833
    set Bridge xenbr2 other-config:hwaddr=\"00:15:17:a0:29:80\"
 
123834
    set Bridge xenbr2 fail_mode=secure
 
123835
    remove Bridge xenbr2 other_config disable-in-band
 
123836
    br-set-external-id xenbr2 xs-network-uuids d08c8749-0c8f-9e8d-ce25-fd364661ee99
 
123837
/usr/bin/ovs-vsctl --timeout=5 -vANY:console:off get interface eth2 ofport
 
123838
/usr/bin/ovs-ofctl add-flow xenbr2 idle_timeout=0,priority=0,in_port=5,arp,nw_proto=1,actions=local
 
123839
/usr/bin/ovs-ofctl add-flow xenbr2 idle_timeout=0,priority=0,in_port=local,arp,dl_src=00:15:17:a0:29:80,actions=5
 
123840
/usr/bin/ovs-ofctl add-flow xenbr2 idle_timeout=0,priority=0,in_port=5,dl_dst=00:15:17:a0:29:80,actions=local
 
123841
/usr/bin/ovs-ofctl add-flow xenbr2 idle_timeout=0,priority=0,in_port=local,dl_src=00:15:17:a0:29:80,actions=5
 
123842
/sbin/ifup xenbr2
 
123843
/sbin/update-issue
 
123844
Committing changes to /etc/sysconfig/network-scripts/route-xenbr2 configuration
 
123845
Committing changes to /etc/sysconfig/network configuration
 
123846
Committing changes to /etc/sysconfig/network-scripts/ifcfg-xenbr2 configuration
 
123847
" | \
 
123848
  $at_diff - "$at_stdout" || at_failed=:
 
123849
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:696"
 
123850
$at_failed && at_fn_log_failure
 
123851
$at_traceon; }
 
123852
 
 
123853
 
 
123854
{ set +x
 
123855
$as_echo "$at_srcdir/interface-reconfigure.at:733: cat etc/sysconfig/network-scripts/ifcfg-xenbr2"
 
123856
at_fn_check_prepare_trace "interface-reconfigure.at:733"
 
123857
( $at_check_trace; cat etc/sysconfig/network-scripts/ifcfg-xenbr2
 
123858
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123859
at_status=$? at_failed=false
 
123860
$at_check_filter
 
123861
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
123862
echo >>"$at_stdout"; $as_echo "# DO NOT EDIT: This file (ifcfg-xenbr2) was autogenerated by interface-reconfigure
 
123863
XEMANAGED=yes
 
123864
DEVICE=xenbr2
 
123865
ONBOOT=no
 
123866
NOZEROCONF=yes
 
123867
TYPE=Ethernet
 
123868
BOOTPROTO=dhcp
 
123869
PERSISTENT_DHCLIENT=yes
 
123870
MTU=1500
 
123871
" | \
 
123872
  $at_diff - "$at_stdout" || at_failed=:
 
123873
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:733"
 
123874
$at_failed && at_fn_log_failure
 
123875
$at_traceon; }
 
123876
 
 
123877
 
 
123878
# Simulate interface-reconfigure creating xenbr2, so that we can tell
 
123879
# interface-reconfigure to take it back down.
 
123880
{ set +x
 
123881
$as_echo "$at_srcdir/interface-reconfigure.at:747: configure_netdev xenbr2 00:15:17:a0:29:80 0"
 
123882
at_fn_check_prepare_trace "interface-reconfigure.at:747"
 
123883
( $at_check_trace; configure_netdev xenbr2 00:15:17:a0:29:80 0
 
123884
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123885
at_status=$? at_failed=false
 
123886
$at_check_filter
 
123887
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
123888
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
123889
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:747"
 
123890
$at_failed && at_fn_log_failure
 
123891
$at_traceon; }
 
123892
 
 
123893
 
 
123894
{ set +x
 
123895
$as_echo "$at_srcdir/interface-reconfigure.at:749: ./interface-reconfigure --root-prefix=\$PWD --no-syslog --force xenbr2 down"
 
123896
at_fn_check_prepare_dynamic "./interface-reconfigure --root-prefix=$PWD --no-syslog --force xenbr2 down" "interface-reconfigure.at:749"
 
123897
( $at_check_trace; ./interface-reconfigure --root-prefix=$PWD --no-syslog --force xenbr2 down
 
123898
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123899
at_status=$? at_failed=false
 
123900
$at_check_filter
 
123901
echo stderr:; tee stderr <"$at_stderr"
 
123902
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
123903
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:749"
 
123904
$at_failed && at_fn_log_failure
 
123905
$at_traceon; }
 
123906
 
 
123907
{ set +x
 
123908
$as_echo "$at_srcdir/interface-reconfigure.at:750: sed -n -e \"s,\$PWD,,g\" -e 's/ -- /\\
 
123909
    /g' -e '/^Running command:/!p' stderr"
 
123910
at_fn_check_prepare_notrace 'an embedded newline' "interface-reconfigure.at:750"
 
123911
( $at_check_trace; sed -n -e "s,$PWD,,g" -e 's/ -- /\
 
123912
    /g' -e '/^Running command:/!p' stderr
 
123913
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
123914
at_status=$? at_failed=false
 
123915
$at_check_filter
 
123916
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
123917
echo >>"$at_stdout"; $as_echo "Force interface xenbr2 down
 
123918
Loading xapi database cache from /var/xapi/network.dbcache
 
123919
Configured for Vswitch datapath
 
123920
action_down: xenbr2
 
123921
/sbin/ifdown xenbr2
 
123922
deconfigure ipdev xenbr2 on xenbr2
 
123923
deconfigure_bridge: bridge           - xenbr2
 
123924
action_down: bring down physical devices - [u'eth2']
 
123925
/sbin/ifconfig eth2 down
 
123926
/usr/bin/ovs-vsctl --timeout=20
 
123927
    --with-iface --if-exists del-port xenbr2
 
123928
    --if-exists del-br xenbr2
 
123929
" | \
 
123930
  $at_diff - "$at_stdout" || at_failed=:
 
123931
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:750"
 
123932
$at_failed && at_fn_log_failure
 
123933
$at_traceon; }
 
123934
 
 
123935
 
 
123936
  set +x
 
123937
  $at_times_p && times >"$at_times_file"
 
123938
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
123939
read at_status <"$at_status_file"
 
123940
#AT_STOP_977
 
123941
#AT_START_978
 
123942
at_fn_group_banner 978 'interface-reconfigure.at:766' \
 
123943
  "VLAN, non-bond" "                                 " 72
 
123944
at_xfail=no
 
123945
(
 
123946
  $as_echo "978. $at_setup_line: testing $at_desc ..."
 
123947
  $at_traceon
 
123948
 
 
123949
 
 
123950
for script in \
 
123951
        interface-reconfigure \
 
123952
        InterfaceReconfigure.py \
 
123953
        InterfaceReconfigureBridge.py \
 
123954
        InterfaceReconfigureVswitch.py
 
123955
    do
 
123956
        cp $top_srcdir/xenserver/opt_xensource_libexec_$script $script
 
123957
    done
 
123958
 
 
123959
    mkdir -p etc
 
123960
    cat > etc/xensource-inventory <<EOF
 
123961
PRODUCT_BRAND='XenServer'
 
123962
PRODUCT_NAME='xenenterprise'
 
123963
PRODUCT_VERSION='5.5.0'
 
123964
BUILD_NUMBER='24648p'
 
123965
KERNEL_VERSION='2.6.18-128.1.6.el5.xs5.5.0.505.1024xen'
 
123966
XEN_VERSION='3.3.1'
 
123967
INSTALLATION_DATE='2010-02-10 16:45:28.748345'
 
123968
PRIMARY_DISK='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c'
 
123969
BACKUP_PARTITION='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c-part2'
 
123970
INSTALLATION_UUID='852ee692-71b4-439e-abfb-0eba72dc85f0'
 
123971
CONTROL_DOMAIN_UUID='44e6b66e-3074-4a3c-bbcd-756d845a3b56'
 
123972
DEFAULT_SR_PHYSDEVS='/dev/sda3'
 
123973
DOM0_MEM='752'
 
123974
MANAGEMENT_INTERFACE='xenbr2'
 
123975
EOF
 
123976
 
 
123977
    mkdir -p etc/xensource
 
123978
    echo vswitch > etc/xensource/network.conf
 
123979
 
 
123980
    for utility in \
 
123981
        sbin/ethtool \
 
123982
        sbin/ifconfig \
 
123983
        sbin/ifdown \
 
123984
        sbin/ifup \
 
123985
        sbin/ip \
 
123986
        sbin/update-issue \
 
123987
        sbin/vconfig \
 
123988
        usr/sbin/brctl \
 
123989
        usr/sbin/ovs-vlan-bug-workaround
 
123990
    do
 
123991
        mkdir -p `dirname $utility`
 
123992
        cat > $utility <<'EOF'
 
123993
#! /bin/sh
 
123994
echo ${0} ${*} >&2
 
123995
EOF
 
123996
        chmod +x $utility
 
123997
    done
 
123998
 
 
123999
    mkdir -p usr/bin
 
124000
    cat > usr/bin/ovs-vsctl <<'EOF'
 
124001
#! /bin/sh
 
124002
echo ${0} ${*} >&2
 
124003
 
 
124004
while test ${#} -ge 4; do
 
124005
    if test X"${1}" = Xget && \
 
124006
       test X"${2}" = Xinterface && \
 
124007
       test X"${4}" = Xofport; then
 
124008
          if test X"${3}" = Xeth2; then
 
124009
              echo 5
 
124010
          else
 
124011
              echo -1
 
124012
          fi
 
124013
    fi
 
124014
 
 
124015
    shift
 
124016
done
 
124017
EOF
 
124018
    chmod +x usr/bin/ovs-vsctl
 
124019
 
 
124020
    cat > usr/bin/ovs-ofctl <<'EOF'
 
124021
#! /bin/sh
 
124022
echo ${0} ${*} >&2
 
124023
 
 
124024
# Check that the flow is properly formed.
 
124025
ovs-ofctl parse-flow "${3}" >/dev/null
 
124026
EOF
 
124027
    chmod +x usr/bin/ovs-ofctl
 
124028
 
 
124029
    mkdir -p etc/sysconfig/network-scripts
 
124030
    configure_netdev () {
 
124031
        mkdir -p sys/class/net/${1}
 
124032
        echo ${2} > sys/class/net/${1}/address
 
124033
        echo ${3} > sys/class/net/${1}/tx_queue_len
 
124034
        if test ${1} = eth1; then
 
124035
            # No VLAN acceleration.
 
124036
            echo 0x829 > sys/class/net/${1}/features
 
124037
        else
 
124038
            # Supports VLAN acceleration.
 
124039
            echo 0x10b89 > sys/class/net/${1}/features
 
124040
        fi
 
124041
        mkdir sys/class/net/${1}/device
 
124042
        ln -s ../../../bus/pci/drivers/e1000 sys/class/net/${1}/device/driver
 
124043
 
 
124044
        : >> etc/sysconfig/network-scripts/ifcfg-${1}
 
124045
    }
 
124046
 
 
124047
    configure_netdev lo   00:00:00:00:00:00 0
 
124048
    configure_netdev eth0 00:22:19:22:4b:af 1000
 
124049
    configure_netdev eth1 00:22:19:22:4b:b1 1000
 
124050
    configure_netdev eth2 00:15:17:a0:29:80 1000
 
124051
    configure_netdev eth3 00:15:17:a0:29:81 1000
 
124052
    configure_netdev eth4 00:1b:21:29:ce:51 1000
 
124053
 
 
124054
    mkdir -p var/xapi
 
124055
    cat > var/xapi/network.dbcache <<'EOF'
 
124056
<?xml version="1.0" ?>
 
124057
<xenserver-network-configuration>
 
124058
        <pif ref="OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6">
 
124059
                <VLAN_slave_of/>
 
124060
                <tunnel_access_PIF_of/>
 
124061
                <management>
 
124062
                        False
 
124063
                </management>
 
124064
                <bond_slave_of>
 
124065
                        OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
124066
                </bond_slave_of>
 
124067
                <uuid>
 
124068
                        bd62a141-091f-3909-e334-0334f67ff3be
 
124069
                </uuid>
 
124070
                <IP>
 
124071
 
 
124072
                </IP>
 
124073
                <VLAN_master_of>
 
124074
                        OpaqueRef:NULL
 
124075
                </VLAN_master_of>
 
124076
                <VLAN>
 
124077
                        -1
 
124078
                </VLAN>
 
124079
                <netmask>
 
124080
 
 
124081
                </netmask>
 
124082
                <other_config/>
 
124083
                <MAC>
 
124084
                        00:22:19:22:4b:af
 
124085
                </MAC>
 
124086
                <ip_configuration_mode>
 
124087
                        None
 
124088
                </ip_configuration_mode>
 
124089
                <DNS>
 
124090
 
 
124091
                </DNS>
 
124092
                <device>
 
124093
                        eth0
 
124094
                </device>
 
124095
                <bond_master_of/>
 
124096
                <currently_attached>
 
124097
                        False
 
124098
                </currently_attached>
 
124099
                <gateway>
 
124100
 
 
124101
                </gateway>
 
124102
                <network>
 
124103
                        OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5
 
124104
                </network>
 
124105
        </pif>
 
124106
        <pif ref="OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806">
 
124107
                <VLAN_slave_of/>
 
124108
                <tunnel_access_PIF_of/>
 
124109
                <management>
 
124110
                        False
 
124111
                </management>
 
124112
                <bond_slave_of>
 
124113
                        OpaqueRef:NULL
 
124114
                </bond_slave_of>
 
124115
                <uuid>
 
124116
                        df8d35c2-cc3a-a623-7065-d987a29feb75
 
124117
                </uuid>
 
124118
                <IP>
 
124119
 
 
124120
                </IP>
 
124121
                <VLAN_master_of>
 
124122
                        OpaqueRef:NULL
 
124123
                </VLAN_master_of>
 
124124
                <VLAN>
 
124125
                        -1
 
124126
                </VLAN>
 
124127
                <netmask>
 
124128
 
 
124129
                </netmask>
 
124130
                <other_config/>
 
124131
                <MAC>
 
124132
                        00:1b:21:29:ce:51
 
124133
                </MAC>
 
124134
                <ip_configuration_mode>
 
124135
                        None
 
124136
                </ip_configuration_mode>
 
124137
                <DNS>
 
124138
 
 
124139
                </DNS>
 
124140
                <device>
 
124141
                        eth4
 
124142
                </device>
 
124143
                <bond_master_of/>
 
124144
                <currently_attached>
 
124145
                        False
 
124146
                </currently_attached>
 
124147
                <gateway>
 
124148
 
 
124149
                </gateway>
 
124150
                <network>
 
124151
                        OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531
 
124152
                </network>
 
124153
        </pif>
 
124154
        <pif ref="OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768">
 
124155
                <VLAN_slave_of/>
 
124156
                <tunnel_access_PIF_of/>
 
124157
                <management>
 
124158
                        False
 
124159
                </management>
 
124160
                <bond_slave_of>
 
124161
                        OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
124162
                </bond_slave_of>
 
124163
                <uuid>
 
124164
                        2f87fc95-5ab4-571a-2487-3f4ac1985663
 
124165
                </uuid>
 
124166
                <IP>
 
124167
 
 
124168
                </IP>
 
124169
                <VLAN_master_of>
 
124170
                        OpaqueRef:NULL
 
124171
                </VLAN_master_of>
 
124172
                <VLAN>
 
124173
                        -1
 
124174
                </VLAN>
 
124175
                <netmask>
 
124176
 
 
124177
                </netmask>
 
124178
                <other_config/>
 
124179
                <MAC>
 
124180
                        00:22:19:22:4b:b1
 
124181
                </MAC>
 
124182
                <ip_configuration_mode>
 
124183
                        None
 
124184
                </ip_configuration_mode>
 
124185
                <DNS>
 
124186
 
 
124187
                </DNS>
 
124188
                <device>
 
124189
                        eth1
 
124190
                </device>
 
124191
                <bond_master_of/>
 
124192
                <currently_attached>
 
124193
                        False
 
124194
                </currently_attached>
 
124195
                <gateway>
 
124196
 
 
124197
                </gateway>
 
124198
                <network>
 
124199
                        OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d
 
124200
                </network>
 
124201
        </pif>
 
124202
        <pif ref="OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e">
 
124203
                <VLAN_slave_of/>
 
124204
                <tunnel_access_PIF_of/>
 
124205
                <management>
 
124206
                        False
 
124207
                </management>
 
124208
                <bond_slave_of>
 
124209
                        OpaqueRef:NULL
 
124210
                </bond_slave_of>
 
124211
                <uuid>
 
124212
                        d2dfdab3-daf4-afea-f055-a25a0d24d714
 
124213
                </uuid>
 
124214
                <IP>
 
124215
 
 
124216
                </IP>
 
124217
                <VLAN_master_of>
 
124218
                        OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
 
124219
                </VLAN_master_of>
 
124220
                <VLAN>
 
124221
                        4
 
124222
                </VLAN>
 
124223
                <netmask>
 
124224
 
 
124225
                </netmask>
 
124226
                <other_config/>
 
124227
                <MAC>
 
124228
                        fe:ff:ff:ff:ff:ff
 
124229
                </MAC>
 
124230
                <ip_configuration_mode>
 
124231
                        None
 
124232
                </ip_configuration_mode>
 
124233
                <DNS>
 
124234
 
 
124235
                </DNS>
 
124236
                <device>
 
124237
                        bond0
 
124238
                </device>
 
124239
                <bond_master_of/>
 
124240
                <currently_attached>
 
124241
                        True
 
124242
                </currently_attached>
 
124243
                <gateway>
 
124244
 
 
124245
                </gateway>
 
124246
                <network>
 
124247
                        OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47
 
124248
                </network>
 
124249
        </pif>
 
124250
        <pif ref="OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc">
 
124251
                <VLAN_slave_of>
 
124252
                        <master>
 
124253
                                OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
 
124254
                        </master>
 
124255
                </VLAN_slave_of>
 
124256
                <tunnel_access_PIF_of/>
 
124257
                <management>
 
124258
                        False
 
124259
                </management>
 
124260
                <bond_slave_of>
 
124261
                        OpaqueRef:NULL
 
124262
                </bond_slave_of>
 
124263
                <uuid>
 
124264
                        f4ba396e-a993-a592-5fbc-a1d566afb59e
 
124265
                </uuid>
 
124266
                <IP>
 
124267
                        10.0.0.188
 
124268
                </IP>
 
124269
                <VLAN_master_of>
 
124270
                        OpaqueRef:NULL
 
124271
                </VLAN_master_of>
 
124272
                <VLAN>
 
124273
                        -1
 
124274
                </VLAN>
 
124275
                <netmask>
 
124276
                        255.0.0.0
 
124277
                </netmask>
 
124278
                <other_config/>
 
124279
                <MAC>
 
124280
                        00:15:17:a0:29:81
 
124281
                </MAC>
 
124282
                <ip_configuration_mode>
 
124283
                        Static
 
124284
                </ip_configuration_mode>
 
124285
                <DNS>
 
124286
 
 
124287
                </DNS>
 
124288
                <device>
 
124289
                        eth3
 
124290
                </device>
 
124291
                <bond_master_of/>
 
124292
                <currently_attached>
 
124293
                        True
 
124294
                </currently_attached>
 
124295
                <gateway>
 
124296
 
 
124297
                </gateway>
 
124298
                <network>
 
124299
                        OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32
 
124300
                </network>
 
124301
        </pif>
 
124302
        <pif ref="OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15">
 
124303
                <VLAN_slave_of/>
 
124304
                <tunnel_access_PIF_of/>
 
124305
                <management>
 
124306
                        True
 
124307
                </management>
 
124308
                <bond_slave_of>
 
124309
                        OpaqueRef:NULL
 
124310
                </bond_slave_of>
 
124311
                <uuid>
 
124312
                        646ca9a1-36ad-e2f9-3ecc-1e5622c201c2
 
124313
                </uuid>
 
124314
                <IP>
 
124315
                        172.18.3.188
 
124316
                </IP>
 
124317
                <VLAN_master_of>
 
124318
                        OpaqueRef:NULL
 
124319
                </VLAN_master_of>
 
124320
                <VLAN>
 
124321
                        -1
 
124322
                </VLAN>
 
124323
                <netmask>
 
124324
                        255.255.0.0
 
124325
                </netmask>
 
124326
                <other_config/>
 
124327
                <MAC>
 
124328
                        00:15:17:a0:29:80
 
124329
                </MAC>
 
124330
                <ip_configuration_mode>
 
124331
                        DHCP
 
124332
                </ip_configuration_mode>
 
124333
                <DNS>
 
124334
 
 
124335
                </DNS>
 
124336
                <device>
 
124337
                        eth2
 
124338
                </device>
 
124339
                <bond_master_of/>
 
124340
                <currently_attached>
 
124341
                        True
 
124342
                </currently_attached>
 
124343
                <gateway>
 
124344
 
 
124345
                </gateway>
 
124346
                <network>
 
124347
                        OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe
 
124348
                </network>
 
124349
        </pif>
 
124350
        <pif ref="OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3">
 
124351
                <VLAN_slave_of/>
 
124352
                <tunnel_access_PIF_of/>
 
124353
                <management>
 
124354
                        False
 
124355
                </management>
 
124356
                <bond_slave_of>
 
124357
                        OpaqueRef:NULL
 
124358
                </bond_slave_of>
 
124359
                <uuid>
 
124360
                        3941edd2-865b-8dd8-61f0-199f5e1fa652
 
124361
                </uuid>
 
124362
                <IP>
 
124363
 
 
124364
                </IP>
 
124365
                <VLAN_master_of>
 
124366
                        OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
 
124367
                </VLAN_master_of>
 
124368
                <VLAN>
 
124369
                        123
 
124370
                </VLAN>
 
124371
                <netmask>
 
124372
 
 
124373
                </netmask>
 
124374
                <other_config/>
 
124375
                <MAC>
 
124376
                        fe:ff:ff:ff:ff:ff
 
124377
                </MAC>
 
124378
                <ip_configuration_mode>
 
124379
                        None
 
124380
                </ip_configuration_mode>
 
124381
                <DNS>
 
124382
 
 
124383
                </DNS>
 
124384
                <device>
 
124385
                        eth3
 
124386
                </device>
 
124387
                <bond_master_of/>
 
124388
                <currently_attached>
 
124389
                        True
 
124390
                </currently_attached>
 
124391
                <gateway>
 
124392
 
 
124393
                </gateway>
 
124394
                <network>
 
124395
                        OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17
 
124396
                </network>
 
124397
        </pif>
 
124398
        <pif ref="OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11">
 
124399
                <VLAN_slave_of>
 
124400
                        <master>
 
124401
                                OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
 
124402
                        </master>
 
124403
                </VLAN_slave_of>
 
124404
                <tunnel_access_PIF_of/>
 
124405
                <management>
 
124406
                        False
 
124407
                </management>
 
124408
                <bond_slave_of>
 
124409
                        OpaqueRef:NULL
 
124410
                </bond_slave_of>
 
124411
                <uuid>
 
124412
                        6c0327a9-afa3-fc19-6798-a1bfe20095ed
 
124413
                </uuid>
 
124414
                <IP>
 
124415
 
 
124416
                </IP>
 
124417
                <VLAN_master_of>
 
124418
                        OpaqueRef:NULL
 
124419
                </VLAN_master_of>
 
124420
                <VLAN>
 
124421
                        -1
 
124422
                </VLAN>
 
124423
                <netmask>
 
124424
 
 
124425
                </netmask>
 
124426
                <other_config/>
 
124427
                <MAC>
 
124428
                        00:22:19:22:4b:af
 
124429
                </MAC>
 
124430
                <ip_configuration_mode>
 
124431
                        None
 
124432
                </ip_configuration_mode>
 
124433
                <DNS>
 
124434
 
 
124435
                </DNS>
 
124436
                <device>
 
124437
                        bond0
 
124438
                </device>
 
124439
                <bond_master_of>
 
124440
                        <slave>
 
124441
                                OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
124442
                        </slave>
 
124443
                </bond_master_of>
 
124444
                <currently_attached>
 
124445
                        True
 
124446
                </currently_attached>
 
124447
                <gateway>
 
124448
 
 
124449
                </gateway>
 
124450
                <network>
 
124451
                        OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a
 
124452
                </network>
 
124453
        </pif>
 
124454
        <bond ref="OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e">
 
124455
                <master>
 
124456
                        OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
124457
                </master>
 
124458
                <uuid>
 
124459
                        dad825f1-6d81-386e-849c-5589281e53e1
 
124460
                </uuid>
 
124461
                <slaves>
 
124462
                        <slave>
 
124463
                                OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
 
124464
                        </slave>
 
124465
                        <slave>
 
124466
                                OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
 
124467
                        </slave>
 
124468
                </slaves>
 
124469
        </bond>
 
124470
        <vlan ref="OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c">
 
124471
                <tagged_PIF>
 
124472
                        OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
124473
                </tagged_PIF>
 
124474
                <uuid>
 
124475
                        841814da-d0d2-9da4-0b2e-b6143480bbfb
 
124476
                </uuid>
 
124477
                <untagged_PIF>
 
124478
                        OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
 
124479
                </untagged_PIF>
 
124480
        </vlan>
 
124481
        <vlan ref="OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297">
 
124482
                <tagged_PIF>
 
124483
                        OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
 
124484
                </tagged_PIF>
 
124485
                <uuid>
 
124486
                        399279a2-5ccd-5368-9af3-8622a1f1ac82
 
124487
                </uuid>
 
124488
                <untagged_PIF>
 
124489
                        OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
 
124490
                </untagged_PIF>
 
124491
        </vlan>
 
124492
        <network ref="OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47">
 
124493
                <PIFs>
 
124494
                        <PIF>
 
124495
                                OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
 
124496
                        </PIF>
 
124497
                </PIFs>
 
124498
                <bridge>
 
124499
                        xapi2
 
124500
                </bridge>
 
124501
                <other_config/>
 
124502
                <uuid>
 
124503
                        99be2da4-6c33-6f8e-49ea-3bc592fe3c85
 
124504
                </uuid>
 
124505
        </network>
 
124506
        <network ref="OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32">
 
124507
                <PIFs>
 
124508
                        <PIF>
 
124509
                                OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
 
124510
                        </PIF>
 
124511
                </PIFs>
 
124512
                <bridge>
 
124513
                        xenbr3
 
124514
                </bridge>
 
124515
                <other_config/>
 
124516
                <uuid>
 
124517
                        2902ae1b-8013-897a-b697-0b200ea3aaa5
 
124518
                </uuid>
 
124519
        </network>
 
124520
        <network ref="OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a">
 
124521
                <PIFs>
 
124522
                        <PIF>
 
124523
                                OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
124524
                        </PIF>
 
124525
                </PIFs>
 
124526
                <bridge>
 
124527
                        xapi1
 
124528
                </bridge>
 
124529
                <other_config/>
 
124530
                <uuid>
 
124531
                        45cbbb43-113d-a712-3231-c6463f253cef
 
124532
                </uuid>
 
124533
        </network>
 
124534
        <network ref="OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d">
 
124535
                <PIFs>
 
124536
                        <PIF>
 
124537
                                OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
 
124538
                        </PIF>
 
124539
                </PIFs>
 
124540
                <bridge>
 
124541
                        xenbr1
 
124542
                </bridge>
 
124543
                <other_config/>
 
124544
                <uuid>
 
124545
                        99f8771a-645a-26a3-e06c-30a401f1d009
 
124546
                </uuid>
 
124547
        </network>
 
124548
        <network ref="OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe">
 
124549
                <PIFs>
 
124550
                        <PIF>
 
124551
                                OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15
 
124552
                        </PIF>
 
124553
                </PIFs>
 
124554
                <bridge>
 
124555
                        xenbr2
 
124556
                </bridge>
 
124557
                <other_config/>
 
124558
                <uuid>
 
124559
                        d08c8749-0c8f-9e8d-ce25-fd364661ee99
 
124560
                </uuid>
 
124561
        </network>
 
124562
        <network ref="OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5">
 
124563
                <PIFs>
 
124564
                        <PIF>
 
124565
                                OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
 
124566
                        </PIF>
 
124567
                </PIFs>
 
124568
                <bridge>
 
124569
                        xenbr0
 
124570
                </bridge>
 
124571
                <other_config>
 
124572
                        <vswitch-disable-in-band>
 
124573
                                true
 
124574
                        </vswitch-disable-in-band>
 
124575
                </other_config>
 
124576
                <uuid>
 
124577
                        c9eecb03-560d-61de-b6a8-56dfc766f67e
 
124578
                </uuid>
 
124579
        </network>
 
124580
        <network ref="OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531">
 
124581
                <PIFs>
 
124582
                        <PIF>
 
124583
                                OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806
 
124584
                        </PIF>
 
124585
                </PIFs>
 
124586
                <bridge>
 
124587
                        xenbr4
 
124588
                </bridge>
 
124589
                <other_config/>
 
124590
                <uuid>
 
124591
                        d2c14c89-29cc-51d4-7664-633eff02b2ad
 
124592
                </uuid>
 
124593
        </network>
 
124594
        <network ref="OpaqueRef:0b7354a4-8f4b-aa08-2f16-a22c117e4211">
 
124595
                <PIFs/>
 
124596
                <bridge>
 
124597
                        xapi0
 
124598
                </bridge>
 
124599
                <other_config/>
 
124600
                <uuid>
 
124601
                        dc0f0632-c2aa-1b78-2fea-0d3a23c51740
 
124602
                </uuid>
 
124603
        </network>
 
124604
        <network ref="OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17">
 
124605
                <PIFs>
 
124606
                        <PIF>
 
124607
                                OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
 
124608
                        </PIF>
 
124609
                </PIFs>
 
124610
                <bridge>
 
124611
                        xapi3
 
124612
                </bridge>
 
124613
                <other_config/>
 
124614
                <uuid>
 
124615
                        db7bdc03-074d-42ae-fc73-9b06de1d57f6
 
124616
                </uuid>
 
124617
        </network>
 
124618
        <pool ref="OpaqueRef:a765d06c-fc82-cc67-8f6c-fd8db45f6a84">
 
124619
                <other_config>
 
124620
                        <vswitch-controller-fail-mode>
 
124621
                                secure
 
124622
                        </vswitch-controller-fail-mode>
 
124623
                </other_config>
 
124624
        </pool>
 
124625
</xenserver-network-configuration>
 
124626
EOF
 
124627
 
 
124628
 
 
124629
{ set +x
 
124630
$as_echo "$at_srcdir/interface-reconfigure.at:770: ./interface-reconfigure --root-prefix=\$PWD --no-syslog --force xapi3 up"
 
124631
at_fn_check_prepare_dynamic "./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi3 up" "interface-reconfigure.at:770"
 
124632
( $at_check_trace; ./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi3 up
 
124633
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
124634
at_status=$? at_failed=false
 
124635
$at_check_filter
 
124636
echo stderr:; tee stderr <"$at_stderr"
 
124637
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
124638
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:770"
 
124639
$at_failed && at_fn_log_failure
 
124640
$at_traceon; }
 
124641
 
 
124642
{ set +x
 
124643
$as_echo "$at_srcdir/interface-reconfigure.at:771: sed -n -e \"s,\$PWD,,g\" -e 's/ -- /\\
 
124644
    /g' -e '/^Running command:/!p' stderr"
 
124645
at_fn_check_prepare_notrace 'an embedded newline' "interface-reconfigure.at:771"
 
124646
( $at_check_trace; sed -n -e "s,$PWD,,g" -e 's/ -- /\
 
124647
    /g' -e '/^Running command:/!p' stderr
 
124648
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
124649
at_status=$? at_failed=false
 
124650
$at_check_filter
 
124651
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
124652
echo >>"$at_stdout"; $as_echo "Force interface xapi3 up
 
124653
Loading xapi database cache from /var/xapi/network.dbcache
 
124654
Configured for Vswitch datapath
 
124655
action_up: xapi3
 
124656
Writing network configuration for xapi3
 
124657
Configuring xapi3 using None configuration
 
124658
configure_datapath: bridge      - xenbr3
 
124659
configure_datapath: physical    - [u'eth3']
 
124660
configure_datapath: extra ports - []
 
124661
configure_datapath: extra bonds - []
 
124662
Applying changes to /etc/sysconfig/network-scripts/route-xapi3 configuration
 
124663
Applying changes to /etc/sysconfig/network-scripts/ifcfg-xapi3 configuration
 
124664
/sbin/ifconfig eth3 up mtu 1500
 
124665
/sbin/ethtool -K eth3 gro off lro off
 
124666
/usr/sbin/ovs-vlan-bug-workaround eth3 on
 
124667
/usr/bin/ovs-vsctl --timeout=20
 
124668
    --with-iface --if-exists del-port eth3
 
124669
    --may-exist add-br xenbr3
 
124670
    --may-exist add-port xenbr3 eth3
 
124671
    set Bridge xenbr3 other-config:hwaddr=\"00:15:17:a0:29:81\"
 
124672
    set Bridge xenbr3 fail_mode=secure
 
124673
    remove Bridge xenbr3 other_config disable-in-band
 
124674
    br-set-external-id xenbr3 xs-network-uuids 2902ae1b-8013-897a-b697-0b200ea3aaa5;db7bdc03-074d-42ae-fc73-9b06de1d57f6
 
124675
    --if-exists del-br xapi3
 
124676
    --may-exist add-br xapi3 xenbr3 123
 
124677
    br-set-external-id xapi3 xs-network-uuids 2902ae1b-8013-897a-b697-0b200ea3aaa5;db7bdc03-074d-42ae-fc73-9b06de1d57f6
 
124678
    set Interface xapi3 MAC=\"00:15:17:a0:29:81\"
 
124679
/sbin/ifup xapi3
 
124680
/sbin/update-issue
 
124681
Committing changes to /etc/sysconfig/network-scripts/route-xapi3 configuration
 
124682
Committing changes to /etc/sysconfig/network-scripts/ifcfg-xapi3 configuration
 
124683
" | \
 
124684
  $at_diff - "$at_stdout" || at_failed=:
 
124685
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:771"
 
124686
$at_failed && at_fn_log_failure
 
124687
$at_traceon; }
 
124688
 
 
124689
 
 
124690
{ set +x
 
124691
$as_echo "$at_srcdir/interface-reconfigure.at:804: cat etc/sysconfig/network-scripts/ifcfg-xapi3"
 
124692
at_fn_check_prepare_trace "interface-reconfigure.at:804"
 
124693
( $at_check_trace; cat etc/sysconfig/network-scripts/ifcfg-xapi3
 
124694
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
124695
at_status=$? at_failed=false
 
124696
$at_check_filter
 
124697
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
124698
echo >>"$at_stdout"; $as_echo "# DO NOT EDIT: This file (ifcfg-xapi3) was autogenerated by interface-reconfigure
 
124699
XEMANAGED=yes
 
124700
DEVICE=xapi3
 
124701
ONBOOT=no
 
124702
NOZEROCONF=yes
 
124703
TYPE=Ethernet
 
124704
BOOTPROTO=none
 
124705
MTU=1500
 
124706
" | \
 
124707
  $at_diff - "$at_stdout" || at_failed=:
 
124708
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:804"
 
124709
$at_failed && at_fn_log_failure
 
124710
$at_traceon; }
 
124711
 
 
124712
 
 
124713
# Simulate interface-reconfigure creating xapi3, so that we can tell
 
124714
# interface-reconfigure to take it back down.
 
124715
{ set +x
 
124716
$as_echo "$at_srcdir/interface-reconfigure.at:817: configure_netdev xapi3 00:23:20:AC:AF:02 0"
 
124717
at_fn_check_prepare_trace "interface-reconfigure.at:817"
 
124718
( $at_check_trace; configure_netdev xapi3 00:23:20:AC:AF:02 0
 
124719
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
124720
at_status=$? at_failed=false
 
124721
$at_check_filter
 
124722
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
124723
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
124724
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:817"
 
124725
$at_failed && at_fn_log_failure
 
124726
$at_traceon; }
 
124727
 
 
124728
 
 
124729
{ set +x
 
124730
$as_echo "$at_srcdir/interface-reconfigure.at:819: ./interface-reconfigure --root-prefix=\$PWD --no-syslog --force xapi3 down"
 
124731
at_fn_check_prepare_dynamic "./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi3 down" "interface-reconfigure.at:819"
 
124732
( $at_check_trace; ./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi3 down
 
124733
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
124734
at_status=$? at_failed=false
 
124735
$at_check_filter
 
124736
echo stderr:; tee stderr <"$at_stderr"
 
124737
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
124738
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:819"
 
124739
$at_failed && at_fn_log_failure
 
124740
$at_traceon; }
 
124741
 
 
124742
{ set +x
 
124743
$as_echo "$at_srcdir/interface-reconfigure.at:820: sed -n -e \"s,\$PWD,,g\" -e 's/ -- /\\
 
124744
    /g' -e '/^Running command:/!p' stderr"
 
124745
at_fn_check_prepare_notrace 'an embedded newline' "interface-reconfigure.at:820"
 
124746
( $at_check_trace; sed -n -e "s,$PWD,,g" -e 's/ -- /\
 
124747
    /g' -e '/^Running command:/!p' stderr
 
124748
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
124749
at_status=$? at_failed=false
 
124750
$at_check_filter
 
124751
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
124752
echo >>"$at_stdout"; $as_echo "Force interface xapi3 down
 
124753
Loading xapi database cache from /var/xapi/network.dbcache
 
124754
Configured for Vswitch datapath
 
124755
action_down: xapi3
 
124756
/sbin/ifdown xapi3
 
124757
deconfigure ipdev xapi3 on xenbr3
 
124758
deconfigure_bridge: bridge           - xapi3
 
124759
action_down: no more masters, bring down slave xenbr3
 
124760
deconfigure_bridge: bridge           - xenbr3
 
124761
action_down: bring down physical devices - [u'eth3']
 
124762
/sbin/ifconfig eth3 down
 
124763
/usr/bin/ovs-vsctl --timeout=20
 
124764
    --with-iface --if-exists del-port xapi3
 
124765
    --if-exists del-br xapi3
 
124766
    --if-exists del-br xenbr3
 
124767
" | \
 
124768
  $at_diff - "$at_stdout" || at_failed=:
 
124769
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:820"
 
124770
$at_failed && at_fn_log_failure
 
124771
$at_traceon; }
 
124772
 
 
124773
 
 
124774
  set +x
 
124775
  $at_times_p && times >"$at_times_file"
 
124776
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
124777
read at_status <"$at_status_file"
 
124778
#AT_STOP_978
 
124779
#AT_START_979
 
124780
at_fn_group_banner 979 'interface-reconfigure.at:839' \
 
124781
  "Bond, non-VLAN" "                                 " 72
 
124782
at_xfail=no
 
124783
(
 
124784
  $as_echo "979. $at_setup_line: testing $at_desc ..."
 
124785
  $at_traceon
 
124786
 
 
124787
 
 
124788
for script in \
 
124789
        interface-reconfigure \
 
124790
        InterfaceReconfigure.py \
 
124791
        InterfaceReconfigureBridge.py \
 
124792
        InterfaceReconfigureVswitch.py
 
124793
    do
 
124794
        cp $top_srcdir/xenserver/opt_xensource_libexec_$script $script
 
124795
    done
 
124796
 
 
124797
    mkdir -p etc
 
124798
    cat > etc/xensource-inventory <<EOF
 
124799
PRODUCT_BRAND='XenServer'
 
124800
PRODUCT_NAME='xenenterprise'
 
124801
PRODUCT_VERSION='5.5.0'
 
124802
BUILD_NUMBER='24648p'
 
124803
KERNEL_VERSION='2.6.18-128.1.6.el5.xs5.5.0.505.1024xen'
 
124804
XEN_VERSION='3.3.1'
 
124805
INSTALLATION_DATE='2010-02-10 16:45:28.748345'
 
124806
PRIMARY_DISK='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c'
 
124807
BACKUP_PARTITION='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c-part2'
 
124808
INSTALLATION_UUID='852ee692-71b4-439e-abfb-0eba72dc85f0'
 
124809
CONTROL_DOMAIN_UUID='44e6b66e-3074-4a3c-bbcd-756d845a3b56'
 
124810
DEFAULT_SR_PHYSDEVS='/dev/sda3'
 
124811
DOM0_MEM='752'
 
124812
MANAGEMENT_INTERFACE='xenbr2'
 
124813
EOF
 
124814
 
 
124815
    mkdir -p etc/xensource
 
124816
    echo vswitch > etc/xensource/network.conf
 
124817
 
 
124818
    for utility in \
 
124819
        sbin/ethtool \
 
124820
        sbin/ifconfig \
 
124821
        sbin/ifdown \
 
124822
        sbin/ifup \
 
124823
        sbin/ip \
 
124824
        sbin/update-issue \
 
124825
        sbin/vconfig \
 
124826
        usr/sbin/brctl \
 
124827
        usr/sbin/ovs-vlan-bug-workaround
 
124828
    do
 
124829
        mkdir -p `dirname $utility`
 
124830
        cat > $utility <<'EOF'
 
124831
#! /bin/sh
 
124832
echo ${0} ${*} >&2
 
124833
EOF
 
124834
        chmod +x $utility
 
124835
    done
 
124836
 
 
124837
    mkdir -p usr/bin
 
124838
    cat > usr/bin/ovs-vsctl <<'EOF'
 
124839
#! /bin/sh
 
124840
echo ${0} ${*} >&2
 
124841
 
 
124842
while test ${#} -ge 4; do
 
124843
    if test X"${1}" = Xget && \
 
124844
       test X"${2}" = Xinterface && \
 
124845
       test X"${4}" = Xofport; then
 
124846
          if test X"${3}" = Xeth2; then
 
124847
              echo 5
 
124848
          else
 
124849
              echo -1
 
124850
          fi
 
124851
    fi
 
124852
 
 
124853
    shift
 
124854
done
 
124855
EOF
 
124856
    chmod +x usr/bin/ovs-vsctl
 
124857
 
 
124858
    cat > usr/bin/ovs-ofctl <<'EOF'
 
124859
#! /bin/sh
 
124860
echo ${0} ${*} >&2
 
124861
 
 
124862
# Check that the flow is properly formed.
 
124863
ovs-ofctl parse-flow "${3}" >/dev/null
 
124864
EOF
 
124865
    chmod +x usr/bin/ovs-ofctl
 
124866
 
 
124867
    mkdir -p etc/sysconfig/network-scripts
 
124868
    configure_netdev () {
 
124869
        mkdir -p sys/class/net/${1}
 
124870
        echo ${2} > sys/class/net/${1}/address
 
124871
        echo ${3} > sys/class/net/${1}/tx_queue_len
 
124872
        if test ${1} = eth1; then
 
124873
            # No VLAN acceleration.
 
124874
            echo 0x829 > sys/class/net/${1}/features
 
124875
        else
 
124876
            # Supports VLAN acceleration.
 
124877
            echo 0x10b89 > sys/class/net/${1}/features
 
124878
        fi
 
124879
        mkdir sys/class/net/${1}/device
 
124880
        ln -s ../../../bus/pci/drivers/e1000 sys/class/net/${1}/device/driver
 
124881
 
 
124882
        : >> etc/sysconfig/network-scripts/ifcfg-${1}
 
124883
    }
 
124884
 
 
124885
    configure_netdev lo   00:00:00:00:00:00 0
 
124886
    configure_netdev eth0 00:22:19:22:4b:af 1000
 
124887
    configure_netdev eth1 00:22:19:22:4b:b1 1000
 
124888
    configure_netdev eth2 00:15:17:a0:29:80 1000
 
124889
    configure_netdev eth3 00:15:17:a0:29:81 1000
 
124890
    configure_netdev eth4 00:1b:21:29:ce:51 1000
 
124891
 
 
124892
    mkdir -p var/xapi
 
124893
    cat > var/xapi/network.dbcache <<'EOF'
 
124894
<?xml version="1.0" ?>
 
124895
<xenserver-network-configuration>
 
124896
        <pif ref="OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6">
 
124897
                <VLAN_slave_of/>
 
124898
                <tunnel_access_PIF_of/>
 
124899
                <management>
 
124900
                        False
 
124901
                </management>
 
124902
                <bond_slave_of>
 
124903
                        OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
124904
                </bond_slave_of>
 
124905
                <uuid>
 
124906
                        bd62a141-091f-3909-e334-0334f67ff3be
 
124907
                </uuid>
 
124908
                <IP>
 
124909
 
 
124910
                </IP>
 
124911
                <VLAN_master_of>
 
124912
                        OpaqueRef:NULL
 
124913
                </VLAN_master_of>
 
124914
                <VLAN>
 
124915
                        -1
 
124916
                </VLAN>
 
124917
                <netmask>
 
124918
 
 
124919
                </netmask>
 
124920
                <other_config/>
 
124921
                <MAC>
 
124922
                        00:22:19:22:4b:af
 
124923
                </MAC>
 
124924
                <ip_configuration_mode>
 
124925
                        None
 
124926
                </ip_configuration_mode>
 
124927
                <DNS>
 
124928
 
 
124929
                </DNS>
 
124930
                <device>
 
124931
                        eth0
 
124932
                </device>
 
124933
                <bond_master_of/>
 
124934
                <currently_attached>
 
124935
                        False
 
124936
                </currently_attached>
 
124937
                <gateway>
 
124938
 
 
124939
                </gateway>
 
124940
                <network>
 
124941
                        OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5
 
124942
                </network>
 
124943
        </pif>
 
124944
        <pif ref="OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806">
 
124945
                <VLAN_slave_of/>
 
124946
                <tunnel_access_PIF_of/>
 
124947
                <management>
 
124948
                        False
 
124949
                </management>
 
124950
                <bond_slave_of>
 
124951
                        OpaqueRef:NULL
 
124952
                </bond_slave_of>
 
124953
                <uuid>
 
124954
                        df8d35c2-cc3a-a623-7065-d987a29feb75
 
124955
                </uuid>
 
124956
                <IP>
 
124957
 
 
124958
                </IP>
 
124959
                <VLAN_master_of>
 
124960
                        OpaqueRef:NULL
 
124961
                </VLAN_master_of>
 
124962
                <VLAN>
 
124963
                        -1
 
124964
                </VLAN>
 
124965
                <netmask>
 
124966
 
 
124967
                </netmask>
 
124968
                <other_config/>
 
124969
                <MAC>
 
124970
                        00:1b:21:29:ce:51
 
124971
                </MAC>
 
124972
                <ip_configuration_mode>
 
124973
                        None
 
124974
                </ip_configuration_mode>
 
124975
                <DNS>
 
124976
 
 
124977
                </DNS>
 
124978
                <device>
 
124979
                        eth4
 
124980
                </device>
 
124981
                <bond_master_of/>
 
124982
                <currently_attached>
 
124983
                        False
 
124984
                </currently_attached>
 
124985
                <gateway>
 
124986
 
 
124987
                </gateway>
 
124988
                <network>
 
124989
                        OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531
 
124990
                </network>
 
124991
        </pif>
 
124992
        <pif ref="OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768">
 
124993
                <VLAN_slave_of/>
 
124994
                <tunnel_access_PIF_of/>
 
124995
                <management>
 
124996
                        False
 
124997
                </management>
 
124998
                <bond_slave_of>
 
124999
                        OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
125000
                </bond_slave_of>
 
125001
                <uuid>
 
125002
                        2f87fc95-5ab4-571a-2487-3f4ac1985663
 
125003
                </uuid>
 
125004
                <IP>
 
125005
 
 
125006
                </IP>
 
125007
                <VLAN_master_of>
 
125008
                        OpaqueRef:NULL
 
125009
                </VLAN_master_of>
 
125010
                <VLAN>
 
125011
                        -1
 
125012
                </VLAN>
 
125013
                <netmask>
 
125014
 
 
125015
                </netmask>
 
125016
                <other_config/>
 
125017
                <MAC>
 
125018
                        00:22:19:22:4b:b1
 
125019
                </MAC>
 
125020
                <ip_configuration_mode>
 
125021
                        None
 
125022
                </ip_configuration_mode>
 
125023
                <DNS>
 
125024
 
 
125025
                </DNS>
 
125026
                <device>
 
125027
                        eth1
 
125028
                </device>
 
125029
                <bond_master_of/>
 
125030
                <currently_attached>
 
125031
                        False
 
125032
                </currently_attached>
 
125033
                <gateway>
 
125034
 
 
125035
                </gateway>
 
125036
                <network>
 
125037
                        OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d
 
125038
                </network>
 
125039
        </pif>
 
125040
        <pif ref="OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e">
 
125041
                <VLAN_slave_of/>
 
125042
                <tunnel_access_PIF_of/>
 
125043
                <management>
 
125044
                        False
 
125045
                </management>
 
125046
                <bond_slave_of>
 
125047
                        OpaqueRef:NULL
 
125048
                </bond_slave_of>
 
125049
                <uuid>
 
125050
                        d2dfdab3-daf4-afea-f055-a25a0d24d714
 
125051
                </uuid>
 
125052
                <IP>
 
125053
 
 
125054
                </IP>
 
125055
                <VLAN_master_of>
 
125056
                        OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
 
125057
                </VLAN_master_of>
 
125058
                <VLAN>
 
125059
                        4
 
125060
                </VLAN>
 
125061
                <netmask>
 
125062
 
 
125063
                </netmask>
 
125064
                <other_config/>
 
125065
                <MAC>
 
125066
                        fe:ff:ff:ff:ff:ff
 
125067
                </MAC>
 
125068
                <ip_configuration_mode>
 
125069
                        None
 
125070
                </ip_configuration_mode>
 
125071
                <DNS>
 
125072
 
 
125073
                </DNS>
 
125074
                <device>
 
125075
                        bond0
 
125076
                </device>
 
125077
                <bond_master_of/>
 
125078
                <currently_attached>
 
125079
                        True
 
125080
                </currently_attached>
 
125081
                <gateway>
 
125082
 
 
125083
                </gateway>
 
125084
                <network>
 
125085
                        OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47
 
125086
                </network>
 
125087
        </pif>
 
125088
        <pif ref="OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc">
 
125089
                <VLAN_slave_of>
 
125090
                        <master>
 
125091
                                OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
 
125092
                        </master>
 
125093
                </VLAN_slave_of>
 
125094
                <tunnel_access_PIF_of/>
 
125095
                <management>
 
125096
                        False
 
125097
                </management>
 
125098
                <bond_slave_of>
 
125099
                        OpaqueRef:NULL
 
125100
                </bond_slave_of>
 
125101
                <uuid>
 
125102
                        f4ba396e-a993-a592-5fbc-a1d566afb59e
 
125103
                </uuid>
 
125104
                <IP>
 
125105
                        10.0.0.188
 
125106
                </IP>
 
125107
                <VLAN_master_of>
 
125108
                        OpaqueRef:NULL
 
125109
                </VLAN_master_of>
 
125110
                <VLAN>
 
125111
                        -1
 
125112
                </VLAN>
 
125113
                <netmask>
 
125114
                        255.0.0.0
 
125115
                </netmask>
 
125116
                <other_config/>
 
125117
                <MAC>
 
125118
                        00:15:17:a0:29:81
 
125119
                </MAC>
 
125120
                <ip_configuration_mode>
 
125121
                        Static
 
125122
                </ip_configuration_mode>
 
125123
                <DNS>
 
125124
 
 
125125
                </DNS>
 
125126
                <device>
 
125127
                        eth3
 
125128
                </device>
 
125129
                <bond_master_of/>
 
125130
                <currently_attached>
 
125131
                        True
 
125132
                </currently_attached>
 
125133
                <gateway>
 
125134
 
 
125135
                </gateway>
 
125136
                <network>
 
125137
                        OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32
 
125138
                </network>
 
125139
        </pif>
 
125140
        <pif ref="OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15">
 
125141
                <VLAN_slave_of/>
 
125142
                <tunnel_access_PIF_of/>
 
125143
                <management>
 
125144
                        True
 
125145
                </management>
 
125146
                <bond_slave_of>
 
125147
                        OpaqueRef:NULL
 
125148
                </bond_slave_of>
 
125149
                <uuid>
 
125150
                        646ca9a1-36ad-e2f9-3ecc-1e5622c201c2
 
125151
                </uuid>
 
125152
                <IP>
 
125153
                        172.18.3.188
 
125154
                </IP>
 
125155
                <VLAN_master_of>
 
125156
                        OpaqueRef:NULL
 
125157
                </VLAN_master_of>
 
125158
                <VLAN>
 
125159
                        -1
 
125160
                </VLAN>
 
125161
                <netmask>
 
125162
                        255.255.0.0
 
125163
                </netmask>
 
125164
                <other_config/>
 
125165
                <MAC>
 
125166
                        00:15:17:a0:29:80
 
125167
                </MAC>
 
125168
                <ip_configuration_mode>
 
125169
                        DHCP
 
125170
                </ip_configuration_mode>
 
125171
                <DNS>
 
125172
 
 
125173
                </DNS>
 
125174
                <device>
 
125175
                        eth2
 
125176
                </device>
 
125177
                <bond_master_of/>
 
125178
                <currently_attached>
 
125179
                        True
 
125180
                </currently_attached>
 
125181
                <gateway>
 
125182
 
 
125183
                </gateway>
 
125184
                <network>
 
125185
                        OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe
 
125186
                </network>
 
125187
        </pif>
 
125188
        <pif ref="OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3">
 
125189
                <VLAN_slave_of/>
 
125190
                <tunnel_access_PIF_of/>
 
125191
                <management>
 
125192
                        False
 
125193
                </management>
 
125194
                <bond_slave_of>
 
125195
                        OpaqueRef:NULL
 
125196
                </bond_slave_of>
 
125197
                <uuid>
 
125198
                        3941edd2-865b-8dd8-61f0-199f5e1fa652
 
125199
                </uuid>
 
125200
                <IP>
 
125201
 
 
125202
                </IP>
 
125203
                <VLAN_master_of>
 
125204
                        OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
 
125205
                </VLAN_master_of>
 
125206
                <VLAN>
 
125207
                        123
 
125208
                </VLAN>
 
125209
                <netmask>
 
125210
 
 
125211
                </netmask>
 
125212
                <other_config/>
 
125213
                <MAC>
 
125214
                        fe:ff:ff:ff:ff:ff
 
125215
                </MAC>
 
125216
                <ip_configuration_mode>
 
125217
                        None
 
125218
                </ip_configuration_mode>
 
125219
                <DNS>
 
125220
 
 
125221
                </DNS>
 
125222
                <device>
 
125223
                        eth3
 
125224
                </device>
 
125225
                <bond_master_of/>
 
125226
                <currently_attached>
 
125227
                        True
 
125228
                </currently_attached>
 
125229
                <gateway>
 
125230
 
 
125231
                </gateway>
 
125232
                <network>
 
125233
                        OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17
 
125234
                </network>
 
125235
        </pif>
 
125236
        <pif ref="OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11">
 
125237
                <VLAN_slave_of>
 
125238
                        <master>
 
125239
                                OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
 
125240
                        </master>
 
125241
                </VLAN_slave_of>
 
125242
                <tunnel_access_PIF_of/>
 
125243
                <management>
 
125244
                        False
 
125245
                </management>
 
125246
                <bond_slave_of>
 
125247
                        OpaqueRef:NULL
 
125248
                </bond_slave_of>
 
125249
                <uuid>
 
125250
                        6c0327a9-afa3-fc19-6798-a1bfe20095ed
 
125251
                </uuid>
 
125252
                <IP>
 
125253
 
 
125254
                </IP>
 
125255
                <VLAN_master_of>
 
125256
                        OpaqueRef:NULL
 
125257
                </VLAN_master_of>
 
125258
                <VLAN>
 
125259
                        -1
 
125260
                </VLAN>
 
125261
                <netmask>
 
125262
 
 
125263
                </netmask>
 
125264
                <other_config/>
 
125265
                <MAC>
 
125266
                        00:22:19:22:4b:af
 
125267
                </MAC>
 
125268
                <ip_configuration_mode>
 
125269
                        None
 
125270
                </ip_configuration_mode>
 
125271
                <DNS>
 
125272
 
 
125273
                </DNS>
 
125274
                <device>
 
125275
                        bond0
 
125276
                </device>
 
125277
                <bond_master_of>
 
125278
                        <slave>
 
125279
                                OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
125280
                        </slave>
 
125281
                </bond_master_of>
 
125282
                <currently_attached>
 
125283
                        True
 
125284
                </currently_attached>
 
125285
                <gateway>
 
125286
 
 
125287
                </gateway>
 
125288
                <network>
 
125289
                        OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a
 
125290
                </network>
 
125291
        </pif>
 
125292
        <bond ref="OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e">
 
125293
                <master>
 
125294
                        OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
125295
                </master>
 
125296
                <uuid>
 
125297
                        dad825f1-6d81-386e-849c-5589281e53e1
 
125298
                </uuid>
 
125299
                <slaves>
 
125300
                        <slave>
 
125301
                                OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
 
125302
                        </slave>
 
125303
                        <slave>
 
125304
                                OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
 
125305
                        </slave>
 
125306
                </slaves>
 
125307
        </bond>
 
125308
        <vlan ref="OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c">
 
125309
                <tagged_PIF>
 
125310
                        OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
125311
                </tagged_PIF>
 
125312
                <uuid>
 
125313
                        841814da-d0d2-9da4-0b2e-b6143480bbfb
 
125314
                </uuid>
 
125315
                <untagged_PIF>
 
125316
                        OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
 
125317
                </untagged_PIF>
 
125318
        </vlan>
 
125319
        <vlan ref="OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297">
 
125320
                <tagged_PIF>
 
125321
                        OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
 
125322
                </tagged_PIF>
 
125323
                <uuid>
 
125324
                        399279a2-5ccd-5368-9af3-8622a1f1ac82
 
125325
                </uuid>
 
125326
                <untagged_PIF>
 
125327
                        OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
 
125328
                </untagged_PIF>
 
125329
        </vlan>
 
125330
        <network ref="OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47">
 
125331
                <PIFs>
 
125332
                        <PIF>
 
125333
                                OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
 
125334
                        </PIF>
 
125335
                </PIFs>
 
125336
                <bridge>
 
125337
                        xapi2
 
125338
                </bridge>
 
125339
                <other_config/>
 
125340
                <uuid>
 
125341
                        99be2da4-6c33-6f8e-49ea-3bc592fe3c85
 
125342
                </uuid>
 
125343
        </network>
 
125344
        <network ref="OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32">
 
125345
                <PIFs>
 
125346
                        <PIF>
 
125347
                                OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
 
125348
                        </PIF>
 
125349
                </PIFs>
 
125350
                <bridge>
 
125351
                        xenbr3
 
125352
                </bridge>
 
125353
                <other_config/>
 
125354
                <uuid>
 
125355
                        2902ae1b-8013-897a-b697-0b200ea3aaa5
 
125356
                </uuid>
 
125357
        </network>
 
125358
        <network ref="OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a">
 
125359
                <PIFs>
 
125360
                        <PIF>
 
125361
                                OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
125362
                        </PIF>
 
125363
                </PIFs>
 
125364
                <bridge>
 
125365
                        xapi1
 
125366
                </bridge>
 
125367
                <other_config/>
 
125368
                <uuid>
 
125369
                        45cbbb43-113d-a712-3231-c6463f253cef
 
125370
                </uuid>
 
125371
        </network>
 
125372
        <network ref="OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d">
 
125373
                <PIFs>
 
125374
                        <PIF>
 
125375
                                OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
 
125376
                        </PIF>
 
125377
                </PIFs>
 
125378
                <bridge>
 
125379
                        xenbr1
 
125380
                </bridge>
 
125381
                <other_config/>
 
125382
                <uuid>
 
125383
                        99f8771a-645a-26a3-e06c-30a401f1d009
 
125384
                </uuid>
 
125385
        </network>
 
125386
        <network ref="OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe">
 
125387
                <PIFs>
 
125388
                        <PIF>
 
125389
                                OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15
 
125390
                        </PIF>
 
125391
                </PIFs>
 
125392
                <bridge>
 
125393
                        xenbr2
 
125394
                </bridge>
 
125395
                <other_config/>
 
125396
                <uuid>
 
125397
                        d08c8749-0c8f-9e8d-ce25-fd364661ee99
 
125398
                </uuid>
 
125399
        </network>
 
125400
        <network ref="OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5">
 
125401
                <PIFs>
 
125402
                        <PIF>
 
125403
                                OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
 
125404
                        </PIF>
 
125405
                </PIFs>
 
125406
                <bridge>
 
125407
                        xenbr0
 
125408
                </bridge>
 
125409
                <other_config>
 
125410
                        <vswitch-disable-in-band>
 
125411
                                true
 
125412
                        </vswitch-disable-in-band>
 
125413
                </other_config>
 
125414
                <uuid>
 
125415
                        c9eecb03-560d-61de-b6a8-56dfc766f67e
 
125416
                </uuid>
 
125417
        </network>
 
125418
        <network ref="OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531">
 
125419
                <PIFs>
 
125420
                        <PIF>
 
125421
                                OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806
 
125422
                        </PIF>
 
125423
                </PIFs>
 
125424
                <bridge>
 
125425
                        xenbr4
 
125426
                </bridge>
 
125427
                <other_config/>
 
125428
                <uuid>
 
125429
                        d2c14c89-29cc-51d4-7664-633eff02b2ad
 
125430
                </uuid>
 
125431
        </network>
 
125432
        <network ref="OpaqueRef:0b7354a4-8f4b-aa08-2f16-a22c117e4211">
 
125433
                <PIFs/>
 
125434
                <bridge>
 
125435
                        xapi0
 
125436
                </bridge>
 
125437
                <other_config/>
 
125438
                <uuid>
 
125439
                        dc0f0632-c2aa-1b78-2fea-0d3a23c51740
 
125440
                </uuid>
 
125441
        </network>
 
125442
        <network ref="OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17">
 
125443
                <PIFs>
 
125444
                        <PIF>
 
125445
                                OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
 
125446
                        </PIF>
 
125447
                </PIFs>
 
125448
                <bridge>
 
125449
                        xapi3
 
125450
                </bridge>
 
125451
                <other_config/>
 
125452
                <uuid>
 
125453
                        db7bdc03-074d-42ae-fc73-9b06de1d57f6
 
125454
                </uuid>
 
125455
        </network>
 
125456
        <pool ref="OpaqueRef:a765d06c-fc82-cc67-8f6c-fd8db45f6a84">
 
125457
                <other_config>
 
125458
                        <vswitch-controller-fail-mode>
 
125459
                                secure
 
125460
                        </vswitch-controller-fail-mode>
 
125461
                </other_config>
 
125462
        </pool>
 
125463
</xenserver-network-configuration>
 
125464
EOF
 
125465
 
 
125466
 
 
125467
# Pretend that bond0 exists, even though it would really be created by
 
125468
# a "create-bond" call in an ovs-vsctl invocation within
 
125469
# interface-reconfigure, because otherwise interface-reconfigure will
 
125470
# die with "failed to apply changes: netdev: up: device bond0 does not
 
125471
# exist" after it thinks it created bond0.
 
125472
{ set +x
 
125473
$as_echo "$at_srcdir/interface-reconfigure.at:848: configure_netdev bond0 00:23:20:e6:39:75 0"
 
125474
at_fn_check_prepare_trace "interface-reconfigure.at:848"
 
125475
( $at_check_trace; configure_netdev bond0 00:23:20:e6:39:75 0
 
125476
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
125477
at_status=$? at_failed=false
 
125478
$at_check_filter
 
125479
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
125480
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
125481
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:848"
 
125482
$at_failed && at_fn_log_failure
 
125483
$at_traceon; }
 
125484
 
 
125485
 
 
125486
{ set +x
 
125487
$as_echo "$at_srcdir/interface-reconfigure.at:850: ./interface-reconfigure --root-prefix=\$PWD --no-syslog --force xapi1 up"
 
125488
at_fn_check_prepare_dynamic "./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi1 up" "interface-reconfigure.at:850"
 
125489
( $at_check_trace; ./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi1 up
 
125490
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
125491
at_status=$? at_failed=false
 
125492
$at_check_filter
 
125493
echo stderr:; tee stderr <"$at_stderr"
 
125494
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
125495
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:850"
 
125496
$at_failed && at_fn_log_failure
 
125497
$at_traceon; }
 
125498
 
 
125499
{ set +x
 
125500
$as_echo "$at_srcdir/interface-reconfigure.at:851: sed -n -e \"s,\$PWD,,g\" -e 's/ -- /\\
 
125501
    /g' -e '/^Running command:/!p' stderr"
 
125502
at_fn_check_prepare_notrace 'an embedded newline' "interface-reconfigure.at:851"
 
125503
( $at_check_trace; sed -n -e "s,$PWD,,g" -e 's/ -- /\
 
125504
    /g' -e '/^Running command:/!p' stderr
 
125505
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
125506
at_status=$? at_failed=false
 
125507
$at_check_filter
 
125508
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
125509
echo >>"$at_stdout"; $as_echo "Force interface xapi1 up
 
125510
Loading xapi database cache from /var/xapi/network.dbcache
 
125511
Configured for Vswitch datapath
 
125512
action_up: xapi1
 
125513
Writing network configuration for xapi1
 
125514
Configuring xapi1 using None configuration
 
125515
configure_datapath: leaving bond bond0 up
 
125516
configure_datapath: leaving bond bond0 up
 
125517
configure_datapath: bridge      - xapi1
 
125518
configure_datapath: physical    - [u'eth0', u'eth1']
 
125519
configure_datapath: extra ports - []
 
125520
configure_datapath: extra bonds - []
 
125521
netdev: down: device xenbr0 does not exist, ignoring
 
125522
netdev: down: device xenbr1 does not exist, ignoring
 
125523
Applying changes to /etc/sysconfig/network-scripts/route-xapi1 configuration
 
125524
Applying changes to /etc/sysconfig/network-scripts/ifcfg-xapi1 configuration
 
125525
/sbin/ifconfig eth0 up mtu 1500
 
125526
/sbin/ethtool -K eth0 gro off lro off
 
125527
/usr/sbin/ovs-vlan-bug-workaround eth0 on
 
125528
/sbin/ifconfig eth1 up mtu 1500
 
125529
/sbin/ethtool -K eth1 gro off lro off
 
125530
/usr/sbin/ovs-vlan-bug-workaround eth1 off
 
125531
/usr/bin/ovs-vsctl --timeout=20
 
125532
    --if-exists del-br xenbr0
 
125533
    --if-exists del-br xenbr1
 
125534
    --with-iface --if-exists del-port eth0
 
125535
    --with-iface --if-exists del-port eth1
 
125536
    --may-exist add-br xapi1
 
125537
    --with-iface --if-exists del-port bond0
 
125538
    --fake-iface add-bond xapi1 bond0 eth0 eth1
 
125539
    set Port bond0 MAC=\"00:22:19:22:4b:af\" other-config:bond-miimon-interval=100 bond_downdelay=200 bond_updelay=31000 other-config:bond-detect-mode=carrier lacp=off bond_mode=balance-slb
 
125540
    set Bridge xapi1 other-config:hwaddr=\"00:22:19:22:4b:af\"
 
125541
    set Bridge xapi1 fail_mode=secure
 
125542
    remove Bridge xapi1 other_config disable-in-band
 
125543
    br-set-external-id xapi1 xs-network-uuids 45cbbb43-113d-a712-3231-c6463f253cef;99be2da4-6c33-6f8e-49ea-3bc592fe3c85
 
125544
/sbin/ifup xapi1
 
125545
action_up: bring up bond0
 
125546
/sbin/ifconfig bond0 up
 
125547
/sbin/update-issue
 
125548
Committing changes to /etc/sysconfig/network-scripts/route-xapi1 configuration
 
125549
Committing changes to /etc/sysconfig/network-scripts/ifcfg-xapi1 configuration
 
125550
" | \
 
125551
  $at_diff - "$at_stdout" || at_failed=:
 
125552
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:851"
 
125553
$at_failed && at_fn_log_failure
 
125554
$at_traceon; }
 
125555
 
 
125556
 
 
125557
{ set +x
 
125558
$as_echo "$at_srcdir/interface-reconfigure.at:894: cat etc/sysconfig/network-scripts/ifcfg-xapi1"
 
125559
at_fn_check_prepare_trace "interface-reconfigure.at:894"
 
125560
( $at_check_trace; cat etc/sysconfig/network-scripts/ifcfg-xapi1
 
125561
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
125562
at_status=$? at_failed=false
 
125563
$at_check_filter
 
125564
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
125565
echo >>"$at_stdout"; $as_echo "# DO NOT EDIT: This file (ifcfg-xapi1) was autogenerated by interface-reconfigure
 
125566
XEMANAGED=yes
 
125567
DEVICE=xapi1
 
125568
ONBOOT=no
 
125569
NOZEROCONF=yes
 
125570
TYPE=Ethernet
 
125571
BOOTPROTO=none
 
125572
MTU=1500
 
125573
" | \
 
125574
  $at_diff - "$at_stdout" || at_failed=:
 
125575
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:894"
 
125576
$at_failed && at_fn_log_failure
 
125577
$at_traceon; }
 
125578
 
 
125579
 
 
125580
# Simulate interface-reconfigure creating xapi1, so that we can tell
 
125581
# interface-reconfigure to take it back down.
 
125582
{ set +x
 
125583
$as_echo "$at_srcdir/interface-reconfigure.at:907: configure_netdev xapi1 00:22:19:22:4B:AF 0"
 
125584
at_fn_check_prepare_trace "interface-reconfigure.at:907"
 
125585
( $at_check_trace; configure_netdev xapi1 00:22:19:22:4B:AF 0
 
125586
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
125587
at_status=$? at_failed=false
 
125588
$at_check_filter
 
125589
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
125590
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
125591
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:907"
 
125592
$at_failed && at_fn_log_failure
 
125593
$at_traceon; }
 
125594
 
 
125595
 
 
125596
{ set +x
 
125597
$as_echo "$at_srcdir/interface-reconfigure.at:909: ./interface-reconfigure --root-prefix=\$PWD --no-syslog --force xapi1 down"
 
125598
at_fn_check_prepare_dynamic "./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi1 down" "interface-reconfigure.at:909"
 
125599
( $at_check_trace; ./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi1 down
 
125600
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
125601
at_status=$? at_failed=false
 
125602
$at_check_filter
 
125603
echo stderr:; tee stderr <"$at_stderr"
 
125604
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
125605
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:909"
 
125606
$at_failed && at_fn_log_failure
 
125607
$at_traceon; }
 
125608
 
 
125609
{ set +x
 
125610
$as_echo "$at_srcdir/interface-reconfigure.at:910: sed -n -e \"s,\$PWD,,g\" -e 's/ -- /\\
 
125611
    /g' -e '/^Running command:/!p' stderr"
 
125612
at_fn_check_prepare_notrace 'an embedded newline' "interface-reconfigure.at:910"
 
125613
( $at_check_trace; sed -n -e "s,$PWD,,g" -e 's/ -- /\
 
125614
    /g' -e '/^Running command:/!p' stderr
 
125615
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
125616
at_status=$? at_failed=false
 
125617
$at_check_filter
 
125618
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
125619
echo >>"$at_stdout"; $as_echo "Force interface xapi1 down
 
125620
Loading xapi database cache from /var/xapi/network.dbcache
 
125621
Configured for Vswitch datapath
 
125622
action_down: xapi1
 
125623
/sbin/ifdown xapi1
 
125624
deconfigure ipdev xapi1 on xapi1
 
125625
deconfigure_bridge: bridge           - xapi1
 
125626
action_down: bring down physical devices - [u'eth0', u'eth1']
 
125627
/sbin/ifconfig eth0 down
 
125628
/sbin/ifconfig eth1 down
 
125629
/usr/bin/ovs-vsctl --timeout=20
 
125630
    --with-iface --if-exists del-port xapi1
 
125631
    --if-exists del-br xapi1
 
125632
" | \
 
125633
  $at_diff - "$at_stdout" || at_failed=:
 
125634
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:910"
 
125635
$at_failed && at_fn_log_failure
 
125636
$at_traceon; }
 
125637
 
 
125638
 
 
125639
  set +x
 
125640
  $at_times_p && times >"$at_times_file"
 
125641
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
125642
read at_status <"$at_status_file"
 
125643
#AT_STOP_979
 
125644
#AT_START_980
 
125645
at_fn_group_banner 980 'interface-reconfigure.at:927' \
 
125646
  "VLAN on bond" "                                   " 72
 
125647
at_xfail=no
 
125648
(
 
125649
  $as_echo "980. $at_setup_line: testing $at_desc ..."
 
125650
  $at_traceon
 
125651
 
 
125652
 
 
125653
for script in \
 
125654
        interface-reconfigure \
 
125655
        InterfaceReconfigure.py \
 
125656
        InterfaceReconfigureBridge.py \
 
125657
        InterfaceReconfigureVswitch.py
 
125658
    do
 
125659
        cp $top_srcdir/xenserver/opt_xensource_libexec_$script $script
 
125660
    done
 
125661
 
 
125662
    mkdir -p etc
 
125663
    cat > etc/xensource-inventory <<EOF
 
125664
PRODUCT_BRAND='XenServer'
 
125665
PRODUCT_NAME='xenenterprise'
 
125666
PRODUCT_VERSION='5.5.0'
 
125667
BUILD_NUMBER='24648p'
 
125668
KERNEL_VERSION='2.6.18-128.1.6.el5.xs5.5.0.505.1024xen'
 
125669
XEN_VERSION='3.3.1'
 
125670
INSTALLATION_DATE='2010-02-10 16:45:28.748345'
 
125671
PRIMARY_DISK='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c'
 
125672
BACKUP_PARTITION='/dev/disk/by-id/scsi-360022190add7fc001241a14e0ee3e85c-part2'
 
125673
INSTALLATION_UUID='852ee692-71b4-439e-abfb-0eba72dc85f0'
 
125674
CONTROL_DOMAIN_UUID='44e6b66e-3074-4a3c-bbcd-756d845a3b56'
 
125675
DEFAULT_SR_PHYSDEVS='/dev/sda3'
 
125676
DOM0_MEM='752'
 
125677
MANAGEMENT_INTERFACE='xenbr2'
 
125678
EOF
 
125679
 
 
125680
    mkdir -p etc/xensource
 
125681
    echo vswitch > etc/xensource/network.conf
 
125682
 
 
125683
    for utility in \
 
125684
        sbin/ethtool \
 
125685
        sbin/ifconfig \
 
125686
        sbin/ifdown \
 
125687
        sbin/ifup \
 
125688
        sbin/ip \
 
125689
        sbin/update-issue \
 
125690
        sbin/vconfig \
 
125691
        usr/sbin/brctl \
 
125692
        usr/sbin/ovs-vlan-bug-workaround
 
125693
    do
 
125694
        mkdir -p `dirname $utility`
 
125695
        cat > $utility <<'EOF'
 
125696
#! /bin/sh
 
125697
echo ${0} ${*} >&2
 
125698
EOF
 
125699
        chmod +x $utility
 
125700
    done
 
125701
 
 
125702
    mkdir -p usr/bin
 
125703
    cat > usr/bin/ovs-vsctl <<'EOF'
 
125704
#! /bin/sh
 
125705
echo ${0} ${*} >&2
 
125706
 
 
125707
while test ${#} -ge 4; do
 
125708
    if test X"${1}" = Xget && \
 
125709
       test X"${2}" = Xinterface && \
 
125710
       test X"${4}" = Xofport; then
 
125711
          if test X"${3}" = Xeth2; then
 
125712
              echo 5
 
125713
          else
 
125714
              echo -1
 
125715
          fi
 
125716
    fi
 
125717
 
 
125718
    shift
 
125719
done
 
125720
EOF
 
125721
    chmod +x usr/bin/ovs-vsctl
 
125722
 
 
125723
    cat > usr/bin/ovs-ofctl <<'EOF'
 
125724
#! /bin/sh
 
125725
echo ${0} ${*} >&2
 
125726
 
 
125727
# Check that the flow is properly formed.
 
125728
ovs-ofctl parse-flow "${3}" >/dev/null
 
125729
EOF
 
125730
    chmod +x usr/bin/ovs-ofctl
 
125731
 
 
125732
    mkdir -p etc/sysconfig/network-scripts
 
125733
    configure_netdev () {
 
125734
        mkdir -p sys/class/net/${1}
 
125735
        echo ${2} > sys/class/net/${1}/address
 
125736
        echo ${3} > sys/class/net/${1}/tx_queue_len
 
125737
        if test ${1} = eth1; then
 
125738
            # No VLAN acceleration.
 
125739
            echo 0x829 > sys/class/net/${1}/features
 
125740
        else
 
125741
            # Supports VLAN acceleration.
 
125742
            echo 0x10b89 > sys/class/net/${1}/features
 
125743
        fi
 
125744
        mkdir sys/class/net/${1}/device
 
125745
        ln -s ../../../bus/pci/drivers/e1000 sys/class/net/${1}/device/driver
 
125746
 
 
125747
        : >> etc/sysconfig/network-scripts/ifcfg-${1}
 
125748
    }
 
125749
 
 
125750
    configure_netdev lo   00:00:00:00:00:00 0
 
125751
    configure_netdev eth0 00:22:19:22:4b:af 1000
 
125752
    configure_netdev eth1 00:22:19:22:4b:b1 1000
 
125753
    configure_netdev eth2 00:15:17:a0:29:80 1000
 
125754
    configure_netdev eth3 00:15:17:a0:29:81 1000
 
125755
    configure_netdev eth4 00:1b:21:29:ce:51 1000
 
125756
 
 
125757
    mkdir -p var/xapi
 
125758
    cat > var/xapi/network.dbcache <<'EOF'
 
125759
<?xml version="1.0" ?>
 
125760
<xenserver-network-configuration>
 
125761
        <pif ref="OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6">
 
125762
                <VLAN_slave_of/>
 
125763
                <tunnel_access_PIF_of/>
 
125764
                <management>
 
125765
                        False
 
125766
                </management>
 
125767
                <bond_slave_of>
 
125768
                        OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
125769
                </bond_slave_of>
 
125770
                <uuid>
 
125771
                        bd62a141-091f-3909-e334-0334f67ff3be
 
125772
                </uuid>
 
125773
                <IP>
 
125774
 
 
125775
                </IP>
 
125776
                <VLAN_master_of>
 
125777
                        OpaqueRef:NULL
 
125778
                </VLAN_master_of>
 
125779
                <VLAN>
 
125780
                        -1
 
125781
                </VLAN>
 
125782
                <netmask>
 
125783
 
 
125784
                </netmask>
 
125785
                <other_config/>
 
125786
                <MAC>
 
125787
                        00:22:19:22:4b:af
 
125788
                </MAC>
 
125789
                <ip_configuration_mode>
 
125790
                        None
 
125791
                </ip_configuration_mode>
 
125792
                <DNS>
 
125793
 
 
125794
                </DNS>
 
125795
                <device>
 
125796
                        eth0
 
125797
                </device>
 
125798
                <bond_master_of/>
 
125799
                <currently_attached>
 
125800
                        False
 
125801
                </currently_attached>
 
125802
                <gateway>
 
125803
 
 
125804
                </gateway>
 
125805
                <network>
 
125806
                        OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5
 
125807
                </network>
 
125808
        </pif>
 
125809
        <pif ref="OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806">
 
125810
                <VLAN_slave_of/>
 
125811
                <tunnel_access_PIF_of/>
 
125812
                <management>
 
125813
                        False
 
125814
                </management>
 
125815
                <bond_slave_of>
 
125816
                        OpaqueRef:NULL
 
125817
                </bond_slave_of>
 
125818
                <uuid>
 
125819
                        df8d35c2-cc3a-a623-7065-d987a29feb75
 
125820
                </uuid>
 
125821
                <IP>
 
125822
 
 
125823
                </IP>
 
125824
                <VLAN_master_of>
 
125825
                        OpaqueRef:NULL
 
125826
                </VLAN_master_of>
 
125827
                <VLAN>
 
125828
                        -1
 
125829
                </VLAN>
 
125830
                <netmask>
 
125831
 
 
125832
                </netmask>
 
125833
                <other_config/>
 
125834
                <MAC>
 
125835
                        00:1b:21:29:ce:51
 
125836
                </MAC>
 
125837
                <ip_configuration_mode>
 
125838
                        None
 
125839
                </ip_configuration_mode>
 
125840
                <DNS>
 
125841
 
 
125842
                </DNS>
 
125843
                <device>
 
125844
                        eth4
 
125845
                </device>
 
125846
                <bond_master_of/>
 
125847
                <currently_attached>
 
125848
                        False
 
125849
                </currently_attached>
 
125850
                <gateway>
 
125851
 
 
125852
                </gateway>
 
125853
                <network>
 
125854
                        OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531
 
125855
                </network>
 
125856
        </pif>
 
125857
        <pif ref="OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768">
 
125858
                <VLAN_slave_of/>
 
125859
                <tunnel_access_PIF_of/>
 
125860
                <management>
 
125861
                        False
 
125862
                </management>
 
125863
                <bond_slave_of>
 
125864
                        OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
125865
                </bond_slave_of>
 
125866
                <uuid>
 
125867
                        2f87fc95-5ab4-571a-2487-3f4ac1985663
 
125868
                </uuid>
 
125869
                <IP>
 
125870
 
 
125871
                </IP>
 
125872
                <VLAN_master_of>
 
125873
                        OpaqueRef:NULL
 
125874
                </VLAN_master_of>
 
125875
                <VLAN>
 
125876
                        -1
 
125877
                </VLAN>
 
125878
                <netmask>
 
125879
 
 
125880
                </netmask>
 
125881
                <other_config/>
 
125882
                <MAC>
 
125883
                        00:22:19:22:4b:b1
 
125884
                </MAC>
 
125885
                <ip_configuration_mode>
 
125886
                        None
 
125887
                </ip_configuration_mode>
 
125888
                <DNS>
 
125889
 
 
125890
                </DNS>
 
125891
                <device>
 
125892
                        eth1
 
125893
                </device>
 
125894
                <bond_master_of/>
 
125895
                <currently_attached>
 
125896
                        False
 
125897
                </currently_attached>
 
125898
                <gateway>
 
125899
 
 
125900
                </gateway>
 
125901
                <network>
 
125902
                        OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d
 
125903
                </network>
 
125904
        </pif>
 
125905
        <pif ref="OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e">
 
125906
                <VLAN_slave_of/>
 
125907
                <tunnel_access_PIF_of/>
 
125908
                <management>
 
125909
                        False
 
125910
                </management>
 
125911
                <bond_slave_of>
 
125912
                        OpaqueRef:NULL
 
125913
                </bond_slave_of>
 
125914
                <uuid>
 
125915
                        d2dfdab3-daf4-afea-f055-a25a0d24d714
 
125916
                </uuid>
 
125917
                <IP>
 
125918
 
 
125919
                </IP>
 
125920
                <VLAN_master_of>
 
125921
                        OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
 
125922
                </VLAN_master_of>
 
125923
                <VLAN>
 
125924
                        4
 
125925
                </VLAN>
 
125926
                <netmask>
 
125927
 
 
125928
                </netmask>
 
125929
                <other_config/>
 
125930
                <MAC>
 
125931
                        fe:ff:ff:ff:ff:ff
 
125932
                </MAC>
 
125933
                <ip_configuration_mode>
 
125934
                        None
 
125935
                </ip_configuration_mode>
 
125936
                <DNS>
 
125937
 
 
125938
                </DNS>
 
125939
                <device>
 
125940
                        bond0
 
125941
                </device>
 
125942
                <bond_master_of/>
 
125943
                <currently_attached>
 
125944
                        True
 
125945
                </currently_attached>
 
125946
                <gateway>
 
125947
 
 
125948
                </gateway>
 
125949
                <network>
 
125950
                        OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47
 
125951
                </network>
 
125952
        </pif>
 
125953
        <pif ref="OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc">
 
125954
                <VLAN_slave_of>
 
125955
                        <master>
 
125956
                                OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
 
125957
                        </master>
 
125958
                </VLAN_slave_of>
 
125959
                <tunnel_access_PIF_of/>
 
125960
                <management>
 
125961
                        False
 
125962
                </management>
 
125963
                <bond_slave_of>
 
125964
                        OpaqueRef:NULL
 
125965
                </bond_slave_of>
 
125966
                <uuid>
 
125967
                        f4ba396e-a993-a592-5fbc-a1d566afb59e
 
125968
                </uuid>
 
125969
                <IP>
 
125970
                        10.0.0.188
 
125971
                </IP>
 
125972
                <VLAN_master_of>
 
125973
                        OpaqueRef:NULL
 
125974
                </VLAN_master_of>
 
125975
                <VLAN>
 
125976
                        -1
 
125977
                </VLAN>
 
125978
                <netmask>
 
125979
                        255.0.0.0
 
125980
                </netmask>
 
125981
                <other_config/>
 
125982
                <MAC>
 
125983
                        00:15:17:a0:29:81
 
125984
                </MAC>
 
125985
                <ip_configuration_mode>
 
125986
                        Static
 
125987
                </ip_configuration_mode>
 
125988
                <DNS>
 
125989
 
 
125990
                </DNS>
 
125991
                <device>
 
125992
                        eth3
 
125993
                </device>
 
125994
                <bond_master_of/>
 
125995
                <currently_attached>
 
125996
                        True
 
125997
                </currently_attached>
 
125998
                <gateway>
 
125999
 
 
126000
                </gateway>
 
126001
                <network>
 
126002
                        OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32
 
126003
                </network>
 
126004
        </pif>
 
126005
        <pif ref="OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15">
 
126006
                <VLAN_slave_of/>
 
126007
                <tunnel_access_PIF_of/>
 
126008
                <management>
 
126009
                        True
 
126010
                </management>
 
126011
                <bond_slave_of>
 
126012
                        OpaqueRef:NULL
 
126013
                </bond_slave_of>
 
126014
                <uuid>
 
126015
                        646ca9a1-36ad-e2f9-3ecc-1e5622c201c2
 
126016
                </uuid>
 
126017
                <IP>
 
126018
                        172.18.3.188
 
126019
                </IP>
 
126020
                <VLAN_master_of>
 
126021
                        OpaqueRef:NULL
 
126022
                </VLAN_master_of>
 
126023
                <VLAN>
 
126024
                        -1
 
126025
                </VLAN>
 
126026
                <netmask>
 
126027
                        255.255.0.0
 
126028
                </netmask>
 
126029
                <other_config/>
 
126030
                <MAC>
 
126031
                        00:15:17:a0:29:80
 
126032
                </MAC>
 
126033
                <ip_configuration_mode>
 
126034
                        DHCP
 
126035
                </ip_configuration_mode>
 
126036
                <DNS>
 
126037
 
 
126038
                </DNS>
 
126039
                <device>
 
126040
                        eth2
 
126041
                </device>
 
126042
                <bond_master_of/>
 
126043
                <currently_attached>
 
126044
                        True
 
126045
                </currently_attached>
 
126046
                <gateway>
 
126047
 
 
126048
                </gateway>
 
126049
                <network>
 
126050
                        OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe
 
126051
                </network>
 
126052
        </pif>
 
126053
        <pif ref="OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3">
 
126054
                <VLAN_slave_of/>
 
126055
                <tunnel_access_PIF_of/>
 
126056
                <management>
 
126057
                        False
 
126058
                </management>
 
126059
                <bond_slave_of>
 
126060
                        OpaqueRef:NULL
 
126061
                </bond_slave_of>
 
126062
                <uuid>
 
126063
                        3941edd2-865b-8dd8-61f0-199f5e1fa652
 
126064
                </uuid>
 
126065
                <IP>
 
126066
 
 
126067
                </IP>
 
126068
                <VLAN_master_of>
 
126069
                        OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297
 
126070
                </VLAN_master_of>
 
126071
                <VLAN>
 
126072
                        123
 
126073
                </VLAN>
 
126074
                <netmask>
 
126075
 
 
126076
                </netmask>
 
126077
                <other_config/>
 
126078
                <MAC>
 
126079
                        fe:ff:ff:ff:ff:ff
 
126080
                </MAC>
 
126081
                <ip_configuration_mode>
 
126082
                        None
 
126083
                </ip_configuration_mode>
 
126084
                <DNS>
 
126085
 
 
126086
                </DNS>
 
126087
                <device>
 
126088
                        eth3
 
126089
                </device>
 
126090
                <bond_master_of/>
 
126091
                <currently_attached>
 
126092
                        True
 
126093
                </currently_attached>
 
126094
                <gateway>
 
126095
 
 
126096
                </gateway>
 
126097
                <network>
 
126098
                        OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17
 
126099
                </network>
 
126100
        </pif>
 
126101
        <pif ref="OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11">
 
126102
                <VLAN_slave_of>
 
126103
                        <master>
 
126104
                                OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c
 
126105
                        </master>
 
126106
                </VLAN_slave_of>
 
126107
                <tunnel_access_PIF_of/>
 
126108
                <management>
 
126109
                        False
 
126110
                </management>
 
126111
                <bond_slave_of>
 
126112
                        OpaqueRef:NULL
 
126113
                </bond_slave_of>
 
126114
                <uuid>
 
126115
                        6c0327a9-afa3-fc19-6798-a1bfe20095ed
 
126116
                </uuid>
 
126117
                <IP>
 
126118
 
 
126119
                </IP>
 
126120
                <VLAN_master_of>
 
126121
                        OpaqueRef:NULL
 
126122
                </VLAN_master_of>
 
126123
                <VLAN>
 
126124
                        -1
 
126125
                </VLAN>
 
126126
                <netmask>
 
126127
 
 
126128
                </netmask>
 
126129
                <other_config/>
 
126130
                <MAC>
 
126131
                        00:22:19:22:4b:af
 
126132
                </MAC>
 
126133
                <ip_configuration_mode>
 
126134
                        None
 
126135
                </ip_configuration_mode>
 
126136
                <DNS>
 
126137
 
 
126138
                </DNS>
 
126139
                <device>
 
126140
                        bond0
 
126141
                </device>
 
126142
                <bond_master_of>
 
126143
                        <slave>
 
126144
                                OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e
 
126145
                        </slave>
 
126146
                </bond_master_of>
 
126147
                <currently_attached>
 
126148
                        True
 
126149
                </currently_attached>
 
126150
                <gateway>
 
126151
 
 
126152
                </gateway>
 
126153
                <network>
 
126154
                        OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a
 
126155
                </network>
 
126156
        </pif>
 
126157
        <bond ref="OpaqueRef:86d81bcf-0d25-90b2-cb11-af2007bd586e">
 
126158
                <master>
 
126159
                        OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
126160
                </master>
 
126161
                <uuid>
 
126162
                        dad825f1-6d81-386e-849c-5589281e53e1
 
126163
                </uuid>
 
126164
                <slaves>
 
126165
                        <slave>
 
126166
                                OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
 
126167
                        </slave>
 
126168
                        <slave>
 
126169
                                OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
 
126170
                        </slave>
 
126171
                </slaves>
 
126172
        </bond>
 
126173
        <vlan ref="OpaqueRef:4c0eb823-4d96-da1d-e75f-411b85badb0c">
 
126174
                <tagged_PIF>
 
126175
                        OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
126176
                </tagged_PIF>
 
126177
                <uuid>
 
126178
                        841814da-d0d2-9da4-0b2e-b6143480bbfb
 
126179
                </uuid>
 
126180
                <untagged_PIF>
 
126181
                        OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
 
126182
                </untagged_PIF>
 
126183
        </vlan>
 
126184
        <vlan ref="OpaqueRef:e623e1d6-cd02-be8d-820d-49d65c710297">
 
126185
                <tagged_PIF>
 
126186
                        OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
 
126187
                </tagged_PIF>
 
126188
                <uuid>
 
126189
                        399279a2-5ccd-5368-9af3-8622a1f1ac82
 
126190
                </uuid>
 
126191
                <untagged_PIF>
 
126192
                        OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
 
126193
                </untagged_PIF>
 
126194
        </vlan>
 
126195
        <network ref="OpaqueRef:a63afad0-fb4c-b4a4-3696-cbb3d88afc47">
 
126196
                <PIFs>
 
126197
                        <PIF>
 
126198
                                OpaqueRef:d2d1e51e-4da9-3163-8f57-bb683429335e
 
126199
                        </PIF>
 
126200
                </PIFs>
 
126201
                <bridge>
 
126202
                        xapi2
 
126203
                </bridge>
 
126204
                <other_config/>
 
126205
                <uuid>
 
126206
                        99be2da4-6c33-6f8e-49ea-3bc592fe3c85
 
126207
                </uuid>
 
126208
        </network>
 
126209
        <network ref="OpaqueRef:d9189da2-d00b-61ba-8a6d-ac42cc868e32">
 
126210
                <PIFs>
 
126211
                        <PIF>
 
126212
                                OpaqueRef:2bc0fab5-523a-4125-609d-212391f5f6fc
 
126213
                        </PIF>
 
126214
                </PIFs>
 
126215
                <bridge>
 
126216
                        xenbr3
 
126217
                </bridge>
 
126218
                <other_config/>
 
126219
                <uuid>
 
126220
                        2902ae1b-8013-897a-b697-0b200ea3aaa5
 
126221
                </uuid>
 
126222
        </network>
 
126223
        <network ref="OpaqueRef:ec1e5037-60ea-97e5-54b8-39bdb43c071a">
 
126224
                <PIFs>
 
126225
                        <PIF>
 
126226
                                OpaqueRef:69c904bb-8da9-3424-485b-8b47c2d3ef11
 
126227
                        </PIF>
 
126228
                </PIFs>
 
126229
                <bridge>
 
126230
                        xapi1
 
126231
                </bridge>
 
126232
                <other_config/>
 
126233
                <uuid>
 
126234
                        45cbbb43-113d-a712-3231-c6463f253cef
 
126235
                </uuid>
 
126236
        </network>
 
126237
        <network ref="OpaqueRef:92b41bf6-aa21-45d3-1c86-c87a5fa98f7d">
 
126238
                <PIFs>
 
126239
                        <PIF>
 
126240
                                OpaqueRef:2956e6c8-487e-981c-85ff-c84796418768
 
126241
                        </PIF>
 
126242
                </PIFs>
 
126243
                <bridge>
 
126244
                        xenbr1
 
126245
                </bridge>
 
126246
                <other_config/>
 
126247
                <uuid>
 
126248
                        99f8771a-645a-26a3-e06c-30a401f1d009
 
126249
                </uuid>
 
126250
        </network>
 
126251
        <network ref="OpaqueRef:6e7c6e81-6b5e-b91f-e1f9-9e028567bdfe">
 
126252
                <PIFs>
 
126253
                        <PIF>
 
126254
                                OpaqueRef:205d1186-2cd1-d5e6-45e4-ea1698ea6e15
 
126255
                        </PIF>
 
126256
                </PIFs>
 
126257
                <bridge>
 
126258
                        xenbr2
 
126259
                </bridge>
 
126260
                <other_config/>
 
126261
                <uuid>
 
126262
                        d08c8749-0c8f-9e8d-ce25-fd364661ee99
 
126263
                </uuid>
 
126264
        </network>
 
126265
        <network ref="OpaqueRef:83e4a934-aeb5-e6f0-a743-d1c7ef7364c5">
 
126266
                <PIFs>
 
126267
                        <PIF>
 
126268
                                OpaqueRef:e0955887-571f-17fc-a971-61c1ec7d81b6
 
126269
                        </PIF>
 
126270
                </PIFs>
 
126271
                <bridge>
 
126272
                        xenbr0
 
126273
                </bridge>
 
126274
                <other_config>
 
126275
                        <vswitch-disable-in-band>
 
126276
                                true
 
126277
                        </vswitch-disable-in-band>
 
126278
                </other_config>
 
126279
                <uuid>
 
126280
                        c9eecb03-560d-61de-b6a8-56dfc766f67e
 
126281
                </uuid>
 
126282
        </network>
 
126283
        <network ref="OpaqueRef:bf51b4d3-7bdc-ea55-ba21-539b150b0531">
 
126284
                <PIFs>
 
126285
                        <PIF>
 
126286
                                OpaqueRef:eea8da94-a5e6-18fc-34a7-5e9b5a235806
 
126287
                        </PIF>
 
126288
                </PIFs>
 
126289
                <bridge>
 
126290
                        xenbr4
 
126291
                </bridge>
 
126292
                <other_config/>
 
126293
                <uuid>
 
126294
                        d2c14c89-29cc-51d4-7664-633eff02b2ad
 
126295
                </uuid>
 
126296
        </network>
 
126297
        <network ref="OpaqueRef:0b7354a4-8f4b-aa08-2f16-a22c117e4211">
 
126298
                <PIFs/>
 
126299
                <bridge>
 
126300
                        xapi0
 
126301
                </bridge>
 
126302
                <other_config/>
 
126303
                <uuid>
 
126304
                        dc0f0632-c2aa-1b78-2fea-0d3a23c51740
 
126305
                </uuid>
 
126306
        </network>
 
126307
        <network ref="OpaqueRef:240fb5f8-addc-6ea3-f921-2a42b42acd17">
 
126308
                <PIFs>
 
126309
                        <PIF>
 
126310
                                OpaqueRef:8e3e37e6-ebb9-087e-0201-f6a56bf554c3
 
126311
                        </PIF>
 
126312
                </PIFs>
 
126313
                <bridge>
 
126314
                        xapi3
 
126315
                </bridge>
 
126316
                <other_config/>
 
126317
                <uuid>
 
126318
                        db7bdc03-074d-42ae-fc73-9b06de1d57f6
 
126319
                </uuid>
 
126320
        </network>
 
126321
        <pool ref="OpaqueRef:a765d06c-fc82-cc67-8f6c-fd8db45f6a84">
 
126322
                <other_config>
 
126323
                        <vswitch-controller-fail-mode>
 
126324
                                secure
 
126325
                        </vswitch-controller-fail-mode>
 
126326
                </other_config>
 
126327
        </pool>
 
126328
</xenserver-network-configuration>
 
126329
EOF
 
126330
 
 
126331
 
 
126332
# Pretend that bond0 exists, even though it would really be created by
 
126333
# a "create-bond" call in an ovs-vsctl invocation within
 
126334
# interface-reconfigure, because otherwise interface-reconfigure will
 
126335
# die with "failed to apply changes: netdev: up: device bond0 does not
 
126336
# exist" after it thinks it created bond0.
 
126337
{ set +x
 
126338
$as_echo "$at_srcdir/interface-reconfigure.at:936: configure_netdev bond0 00:23:20:e6:39:75 0"
 
126339
at_fn_check_prepare_trace "interface-reconfigure.at:936"
 
126340
( $at_check_trace; configure_netdev bond0 00:23:20:e6:39:75 0
 
126341
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126342
at_status=$? at_failed=false
 
126343
$at_check_filter
 
126344
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126345
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126346
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:936"
 
126347
$at_failed && at_fn_log_failure
 
126348
$at_traceon; }
 
126349
 
 
126350
 
 
126351
{ set +x
 
126352
$as_echo "$at_srcdir/interface-reconfigure.at:938: ./interface-reconfigure --root-prefix=\$PWD --no-syslog --force xapi2 up"
 
126353
at_fn_check_prepare_dynamic "./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi2 up" "interface-reconfigure.at:938"
 
126354
( $at_check_trace; ./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi2 up
 
126355
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126356
at_status=$? at_failed=false
 
126357
$at_check_filter
 
126358
echo stderr:; tee stderr <"$at_stderr"
 
126359
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126360
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:938"
 
126361
$at_failed && at_fn_log_failure
 
126362
$at_traceon; }
 
126363
 
 
126364
{ set +x
 
126365
$as_echo "$at_srcdir/interface-reconfigure.at:939: sed -n -e \"s,\$PWD,,g\" -e 's/ -- /\\
 
126366
    /g' -e '/^Running command:/!p' stderr"
 
126367
at_fn_check_prepare_notrace 'an embedded newline' "interface-reconfigure.at:939"
 
126368
( $at_check_trace; sed -n -e "s,$PWD,,g" -e 's/ -- /\
 
126369
    /g' -e '/^Running command:/!p' stderr
 
126370
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126371
at_status=$? at_failed=false
 
126372
$at_check_filter
 
126373
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126374
echo >>"$at_stdout"; $as_echo "Force interface xapi2 up
 
126375
Loading xapi database cache from /var/xapi/network.dbcache
 
126376
Configured for Vswitch datapath
 
126377
action_up: xapi2
 
126378
Writing network configuration for xapi2
 
126379
Configuring xapi2 using None configuration
 
126380
configure_datapath: leaving bond bond0 up
 
126381
configure_datapath: leaving bond bond0 up
 
126382
configure_datapath: bridge      - xapi1
 
126383
configure_datapath: physical    - [u'eth0', u'eth1']
 
126384
configure_datapath: extra ports - []
 
126385
configure_datapath: extra bonds - []
 
126386
netdev: down: device xenbr0 does not exist, ignoring
 
126387
netdev: down: device xenbr1 does not exist, ignoring
 
126388
Applying changes to /etc/sysconfig/network-scripts/route-xapi2 configuration
 
126389
Applying changes to /etc/sysconfig/network-scripts/ifcfg-xapi2 configuration
 
126390
/sbin/ifconfig eth0 up mtu 1500
 
126391
/sbin/ethtool -K eth0 gro off lro off
 
126392
/usr/sbin/ovs-vlan-bug-workaround eth0 on
 
126393
/sbin/ifconfig eth1 up mtu 1500
 
126394
/sbin/ethtool -K eth1 gro off lro off
 
126395
/usr/sbin/ovs-vlan-bug-workaround eth1 off
 
126396
/usr/bin/ovs-vsctl --timeout=20
 
126397
    --if-exists del-br xenbr0
 
126398
    --if-exists del-br xenbr1
 
126399
    --with-iface --if-exists del-port eth0
 
126400
    --with-iface --if-exists del-port eth1
 
126401
    --may-exist add-br xapi1
 
126402
    --with-iface --if-exists del-port bond0
 
126403
    --fake-iface add-bond xapi1 bond0 eth0 eth1
 
126404
    set Port bond0 MAC=\"00:22:19:22:4b:af\" other-config:bond-miimon-interval=100 bond_downdelay=200 bond_updelay=31000 other-config:bond-detect-mode=carrier lacp=off bond_mode=balance-slb
 
126405
    set Bridge xapi1 other-config:hwaddr=\"00:22:19:22:4b:af\"
 
126406
    set Bridge xapi1 fail_mode=secure
 
126407
    remove Bridge xapi1 other_config disable-in-band
 
126408
    br-set-external-id xapi1 xs-network-uuids 45cbbb43-113d-a712-3231-c6463f253cef;99be2da4-6c33-6f8e-49ea-3bc592fe3c85
 
126409
    --if-exists del-br xapi2
 
126410
    --may-exist add-br xapi2 xapi1 4
 
126411
    br-set-external-id xapi2 xs-network-uuids 45cbbb43-113d-a712-3231-c6463f253cef;99be2da4-6c33-6f8e-49ea-3bc592fe3c85
 
126412
    set Interface xapi2 MAC=\"00:22:19:22:4b:af\"
 
126413
/sbin/ifup xapi2
 
126414
action_up: bring up bond0
 
126415
/sbin/ifconfig bond0 up
 
126416
/sbin/update-issue
 
126417
Committing changes to /etc/sysconfig/network-scripts/route-xapi2 configuration
 
126418
Committing changes to /etc/sysconfig/network-scripts/ifcfg-xapi2 configuration
 
126419
" | \
 
126420
  $at_diff - "$at_stdout" || at_failed=:
 
126421
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:939"
 
126422
$at_failed && at_fn_log_failure
 
126423
$at_traceon; }
 
126424
 
 
126425
 
 
126426
{ set +x
 
126427
$as_echo "$at_srcdir/interface-reconfigure.at:986: cat etc/sysconfig/network-scripts/ifcfg-xapi2"
 
126428
at_fn_check_prepare_trace "interface-reconfigure.at:986"
 
126429
( $at_check_trace; cat etc/sysconfig/network-scripts/ifcfg-xapi2
 
126430
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126431
at_status=$? at_failed=false
 
126432
$at_check_filter
 
126433
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126434
echo >>"$at_stdout"; $as_echo "# DO NOT EDIT: This file (ifcfg-xapi2) was autogenerated by interface-reconfigure
 
126435
XEMANAGED=yes
 
126436
DEVICE=xapi2
 
126437
ONBOOT=no
 
126438
NOZEROCONF=yes
 
126439
TYPE=Ethernet
 
126440
BOOTPROTO=none
 
126441
MTU=1500
 
126442
" | \
 
126443
  $at_diff - "$at_stdout" || at_failed=:
 
126444
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:986"
 
126445
$at_failed && at_fn_log_failure
 
126446
$at_traceon; }
 
126447
 
 
126448
 
 
126449
# Simulate interface-reconfigure creating xapi2, so that we can tell
 
126450
# interface-reconfigure to take it back down.
 
126451
{ set +x
 
126452
$as_echo "$at_srcdir/interface-reconfigure.at:999: configure_netdev xapi2 00:23:20:A4:71:C2 0"
 
126453
at_fn_check_prepare_trace "interface-reconfigure.at:999"
 
126454
( $at_check_trace; configure_netdev xapi2 00:23:20:A4:71:C2 0
 
126455
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126456
at_status=$? at_failed=false
 
126457
$at_check_filter
 
126458
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126459
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126460
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:999"
 
126461
$at_failed && at_fn_log_failure
 
126462
$at_traceon; }
 
126463
 
 
126464
 
 
126465
{ set +x
 
126466
$as_echo "$at_srcdir/interface-reconfigure.at:1001: ./interface-reconfigure --root-prefix=\$PWD --no-syslog --force xapi2 down"
 
126467
at_fn_check_prepare_dynamic "./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi2 down" "interface-reconfigure.at:1001"
 
126468
( $at_check_trace; ./interface-reconfigure --root-prefix=$PWD --no-syslog --force xapi2 down
 
126469
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126470
at_status=$? at_failed=false
 
126471
$at_check_filter
 
126472
echo stderr:; tee stderr <"$at_stderr"
 
126473
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126474
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:1001"
 
126475
$at_failed && at_fn_log_failure
 
126476
$at_traceon; }
 
126477
 
 
126478
{ set +x
 
126479
$as_echo "$at_srcdir/interface-reconfigure.at:1002: sed -n -e \"s,\$PWD,,g\" -e 's/ -- /\\
 
126480
    /g' -e '/^Running command:/!p' stderr"
 
126481
at_fn_check_prepare_notrace 'an embedded newline' "interface-reconfigure.at:1002"
 
126482
( $at_check_trace; sed -n -e "s,$PWD,,g" -e 's/ -- /\
 
126483
    /g' -e '/^Running command:/!p' stderr
 
126484
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126485
at_status=$? at_failed=false
 
126486
$at_check_filter
 
126487
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126488
echo >>"$at_stdout"; $as_echo "Force interface xapi2 down
 
126489
Loading xapi database cache from /var/xapi/network.dbcache
 
126490
Configured for Vswitch datapath
 
126491
action_down: xapi2
 
126492
/sbin/ifdown xapi2
 
126493
deconfigure ipdev xapi2 on xapi1
 
126494
deconfigure_bridge: bridge           - xapi2
 
126495
action_down: no more masters, bring down slave xapi1
 
126496
deconfigure_bridge: bridge           - xapi1
 
126497
action_down: bring down physical devices - [u'eth0', u'eth1']
 
126498
/sbin/ifconfig eth0 down
 
126499
/sbin/ifconfig eth1 down
 
126500
/usr/bin/ovs-vsctl --timeout=20
 
126501
    --with-iface --if-exists del-port xapi2
 
126502
    --if-exists del-br xapi2
 
126503
    --if-exists del-br xapi1
 
126504
" | \
 
126505
  $at_diff - "$at_stdout" || at_failed=:
 
126506
at_fn_check_status 0 $at_status "$at_srcdir/interface-reconfigure.at:1002"
 
126507
$at_failed && at_fn_log_failure
 
126508
$at_traceon; }
 
126509
 
 
126510
 
 
126511
  set +x
 
126512
  $at_times_p && times >"$at_times_file"
 
126513
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126514
read at_status <"$at_status_file"
 
126515
#AT_STOP_980
 
126516
#AT_START_981
 
126517
at_fn_group_banner 981 'stp.at:3' \
 
126518
  "STP example from IEEE 802.1D-1998" "              " 73
 
126519
at_xfail=no
 
126520
(
 
126521
  $as_echo "981. $at_setup_line: testing $at_desc ..."
 
126522
  $at_traceon
 
126523
 
 
126524
 
 
126525
cat >test-stp-ieee802.1d-1998 <<'_ATEOF'
 
126526
bridge 0 0x42 = a b
 
126527
bridge 1 0x97 = c:5 a d:5
 
126528
bridge 2 0x45 = b e
 
126529
bridge 3 0x57 = b:5 e:5
 
126530
bridge 4 0x83 = a:5 e:5
 
126531
run 1000
 
126532
check 0 = root
 
126533
check 1 = F F:10 F
 
126534
check 2 = F:10 B
 
126535
check 3 = F:5 F
 
126536
check 4 = F:5 B
 
126537
_ATEOF
 
126538
 
 
126539
{ set +x
 
126540
$as_echo "$at_srcdir/stp.at:18: test-stp test-stp-ieee802.1d-1998"
 
126541
at_fn_check_prepare_trace "stp.at:18"
 
126542
( $at_check_trace; test-stp test-stp-ieee802.1d-1998
 
126543
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126544
at_status=$? at_failed=false
 
126545
$at_check_filter
 
126546
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126547
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126548
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:18"
 
126549
$at_failed && at_fn_log_failure
 
126550
$at_traceon; }
 
126551
 
 
126552
  set +x
 
126553
  $at_times_p && times >"$at_times_file"
 
126554
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126555
read at_status <"$at_status_file"
 
126556
#AT_STOP_981
 
126557
#AT_START_982
 
126558
at_fn_group_banner 982 'stp.at:21' \
 
126559
  "STP example from IEEE 802.1D-2004 figures 17.4 and 17.5" "" 73
 
126560
at_xfail=no
 
126561
(
 
126562
  $as_echo "982. $at_setup_line: testing $at_desc ..."
 
126563
  $at_traceon
 
126564
 
 
126565
 
 
126566
cat >test-stp-ieee802.1d-2004-fig17.4 <<'_ATEOF'
 
126567
bridge 0 0x111 = a b e c
 
126568
bridge 1 0x222 = a b d f
 
126569
bridge 2 0x333 = c d l j h g
 
126570
bridge 3 0x444 = e f n m k i
 
126571
bridge 4 0x555 = g i 0 0
 
126572
bridge 5 0x666 = h k 0 0
 
126573
bridge 6 0x777 = j m 0 0
 
126574
bridge 7 0x888 = l n 0 0
 
126575
run 1000
 
126576
check 0 = root
 
126577
check 1 = F:10 B F F
 
126578
check 2 = F:10 B F F F F
 
126579
check 3 = F:10 B F F F F
 
126580
check 4 = F:20 B F F
 
126581
check 5 = F:20 B F F
 
126582
check 6 = F:20 B F F
 
126583
check 7 = F:20 B F F
 
126584
 
 
126585
# Now connect two ports of bridge 7 to the same LAN.
 
126586
bridge 7 = l n o o
 
126587
# Same results except for bridge 7:
 
126588
run 1000
 
126589
check 0 = root
 
126590
check 1 = F:10 B F F
 
126591
check 2 = F:10 B F F F F
 
126592
check 3 = F:10 B F F F F
 
126593
check 4 = F:20 B F F
 
126594
check 5 = F:20 B F F
 
126595
check 6 = F:20 B F F
 
126596
check 7 = F:20 B F B
 
126597
_ATEOF
 
126598
 
 
126599
{ set +x
 
126600
$as_echo "$at_srcdir/stp.at:55: test-stp test-stp-ieee802.1d-2004-fig17.4"
 
126601
at_fn_check_prepare_trace "stp.at:55"
 
126602
( $at_check_trace; test-stp test-stp-ieee802.1d-2004-fig17.4
 
126603
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126604
at_status=$? at_failed=false
 
126605
$at_check_filter
 
126606
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126607
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126608
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:55"
 
126609
$at_failed && at_fn_log_failure
 
126610
$at_traceon; }
 
126611
 
 
126612
  set +x
 
126613
  $at_times_p && times >"$at_times_file"
 
126614
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126615
read at_status <"$at_status_file"
 
126616
#AT_STOP_982
 
126617
#AT_START_983
 
126618
at_fn_group_banner 983 'stp.at:58' \
 
126619
  "STP example from IEEE 802.1D-2004 figure 17.6" "  " 73
 
126620
at_xfail=no
 
126621
(
 
126622
  $as_echo "983. $at_setup_line: testing $at_desc ..."
 
126623
  $at_traceon
 
126624
 
 
126625
 
 
126626
cat >test-stp-ieee802.1d-2004-fig17.6 <<'_ATEOF'
 
126627
bridge 0 0x111 = a b l
 
126628
bridge 1 0x222 = b c d
 
126629
bridge 2 0x333 = d e f
 
126630
bridge 3 0x444 = f g h
 
126631
bridge 4 0x555 = j h i
 
126632
bridge 5 0x666 = l j k
 
126633
run 1000
 
126634
check 0 = root
 
126635
check 1 = F:10 F F
 
126636
check 2 = F:20 F F
 
126637
check 3 = F:30 F B
 
126638
check 4 = F:20 F F
 
126639
check 5 = F:10 F F
 
126640
_ATEOF
 
126641
 
 
126642
{ set +x
 
126643
$as_echo "$at_srcdir/stp.at:75: test-stp test-stp-ieee802.1d-2004-fig17.6"
 
126644
at_fn_check_prepare_trace "stp.at:75"
 
126645
( $at_check_trace; test-stp test-stp-ieee802.1d-2004-fig17.6
 
126646
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126647
at_status=$? at_failed=false
 
126648
$at_check_filter
 
126649
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126650
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126651
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:75"
 
126652
$at_failed && at_fn_log_failure
 
126653
$at_traceon; }
 
126654
 
 
126655
  set +x
 
126656
  $at_times_p && times >"$at_times_file"
 
126657
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126658
read at_status <"$at_status_file"
 
126659
#AT_STOP_983
 
126660
#AT_START_984
 
126661
at_fn_group_banner 984 'stp.at:78' \
 
126662
  "STP example from IEEE 802.1D-2004 figure 17.7" "  " 73
 
126663
at_xfail=no
 
126664
(
 
126665
  $as_echo "984. $at_setup_line: testing $at_desc ..."
 
126666
  $at_traceon
 
126667
 
 
126668
 
 
126669
cat >test-stp-ieee802.1d-2004-fig17.7 <<'_ATEOF'
 
126670
bridge 0 0xaa = b
 
126671
bridge 1 0x111 = a b d f h g e c
 
126672
bridge 2 0x222 = g h j l n m k i
 
126673
run 1000
 
126674
check 0 = root
 
126675
check 1 = F F:10 F F F F F F
 
126676
check 2 = B F:20 F F F F F F
 
126677
 
 
126678
# This is not the port priority change described in that figure,
 
126679
# but I don't understand what port priority change would cause
 
126680
# that change.
 
126681
bridge 2 = g X j l n m k i
 
126682
run 1000
 
126683
check 0 = root
 
126684
check 1 = F F:10 F F F F F F
 
126685
check 2 = F:20 D F F F F F F
 
126686
_ATEOF
 
126687
 
 
126688
{ set +x
 
126689
$as_echo "$at_srcdir/stp.at:98: test-stp test-stp-ieee802.1d-2004-fig17.7"
 
126690
at_fn_check_prepare_trace "stp.at:98"
 
126691
( $at_check_trace; test-stp test-stp-ieee802.1d-2004-fig17.7
 
126692
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126693
at_status=$? at_failed=false
 
126694
$at_check_filter
 
126695
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126696
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126697
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:98"
 
126698
$at_failed && at_fn_log_failure
 
126699
$at_traceon; }
 
126700
 
 
126701
  set +x
 
126702
  $at_times_p && times >"$at_times_file"
 
126703
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126704
read at_status <"$at_status_file"
 
126705
#AT_STOP_984
 
126706
#AT_START_985
 
126707
at_fn_group_banner 985 'stp.at:101' \
 
126708
  "STP.io.1.1: Link Failure" "                       " 73
 
126709
at_xfail=no
 
126710
(
 
126711
  $as_echo "985. $at_setup_line: testing $at_desc ..."
 
126712
  $at_traceon
 
126713
 
 
126714
 
 
126715
cat >test-stp-iol-io-1.1 <<'_ATEOF'
 
126716
# This test file approximates the following test from "Bridge
 
126717
# Functions Consortium Spanning Tree Interoperability Test Suite
 
126718
# Version 1.5":
 
126719
#
 
126720
# STP.io.1.1: Link Failure
 
126721
bridge 0 0x111 = a b c
 
126722
bridge 1 0x222 = a b c
 
126723
run 1000
 
126724
check 0 = root
 
126725
check 1 = F:10 B B
 
126726
bridge 1 = 0 _ _
 
126727
run 1000
 
126728
check 0 = root
 
126729
check 1 = F F:10 B
 
126730
bridge 1 = X _ _
 
126731
run 1000
 
126732
check 0 = root
 
126733
check 1 = D F:10 B
 
126734
bridge 1 = _ 0 _
 
126735
run 1000
 
126736
check 0 = root
 
126737
check 1 = D F F:10
 
126738
bridge 1 = _ X _
 
126739
run 1000
 
126740
check 0 = root
 
126741
check 1 = D D F:10
 
126742
_ATEOF
 
126743
 
 
126744
{ set +x
 
126745
$as_echo "$at_srcdir/stp.at:131: test-stp test-stp-iol-io-1.1"
 
126746
at_fn_check_prepare_trace "stp.at:131"
 
126747
( $at_check_trace; test-stp test-stp-iol-io-1.1
 
126748
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126749
at_status=$? at_failed=false
 
126750
$at_check_filter
 
126751
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126752
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126753
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:131"
 
126754
$at_failed && at_fn_log_failure
 
126755
$at_traceon; }
 
126756
 
 
126757
  set +x
 
126758
  $at_times_p && times >"$at_times_file"
 
126759
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126760
read at_status <"$at_status_file"
 
126761
#AT_STOP_985
 
126762
#AT_START_986
 
126763
at_fn_group_banner 986 'stp.at:134' \
 
126764
  "STP.io.1.2: Repeated Network" "                   " 73
 
126765
at_xfail=no
 
126766
(
 
126767
  $as_echo "986. $at_setup_line: testing $at_desc ..."
 
126768
  $at_traceon
 
126769
 
 
126770
 
 
126771
cat >test-stp-iol-io-1.2 <<'_ATEOF'
 
126772
# This test file approximates the following test from "Bridge
 
126773
# Functions Consortium Spanning Tree Interoperability Test Suite
 
126774
# Version 1.5":
 
126775
# STP.io.1.2: Repeated Network
 
126776
bridge 0 0x111 = a a
 
126777
bridge 1 0x222 = a a
 
126778
run 1000
 
126779
check 0 = rootid:0x111 F B
 
126780
check 1 = rootid:0x111 F:10 B
 
126781
bridge 1 = a^0x90 _
 
126782
run 1000
 
126783
check 0 = rootid:0x111 F B
 
126784
check 1 = rootid:0x111 B F:10
 
126785
_ATEOF
 
126786
 
 
126787
{ set +x
 
126788
$as_echo "$at_srcdir/stp.at:151: test-stp test-stp-iol-io-1.2"
 
126789
at_fn_check_prepare_trace "stp.at:151"
 
126790
( $at_check_trace; test-stp test-stp-iol-io-1.2
 
126791
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126792
at_status=$? at_failed=false
 
126793
$at_check_filter
 
126794
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126795
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126796
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:151"
 
126797
$at_failed && at_fn_log_failure
 
126798
$at_traceon; }
 
126799
 
 
126800
  set +x
 
126801
  $at_times_p && times >"$at_times_file"
 
126802
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126803
read at_status <"$at_status_file"
 
126804
#AT_STOP_986
 
126805
#AT_START_987
 
126806
at_fn_group_banner 987 'stp.at:154' \
 
126807
  "STP.io.1.4: Network Initialization" "             " 73
 
126808
at_xfail=no
 
126809
(
 
126810
  $as_echo "987. $at_setup_line: testing $at_desc ..."
 
126811
  $at_traceon
 
126812
 
 
126813
 
 
126814
cat >test-stp-iol-io-1.4 <<'_ATEOF'
 
126815
# This test file approximates the following test from "Bridge
 
126816
# Functions Consortium Spanning Tree Interoperability Test Suite
 
126817
# Version 1.5":
 
126818
# STP.io.1.4: Network Initialization
 
126819
bridge 0 0x111 = a b c
 
126820
bridge 1 0x222 = b d e
 
126821
bridge 2 0x333 = a d f
 
126822
bridge 3 0x444 = c e f
 
126823
run 1000
 
126824
check 0 = root
 
126825
check 1 = F:10 F F
 
126826
check 2 = F:10 B F
 
126827
check 3 = F:10 B B
 
126828
_ATEOF
 
126829
 
 
126830
{ set +x
 
126831
$as_echo "$at_srcdir/stp.at:171: test-stp test-stp-iol-io-1.4"
 
126832
at_fn_check_prepare_trace "stp.at:171"
 
126833
( $at_check_trace; test-stp test-stp-iol-io-1.4
 
126834
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126835
at_status=$? at_failed=false
 
126836
$at_check_filter
 
126837
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126838
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126839
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:171"
 
126840
$at_failed && at_fn_log_failure
 
126841
$at_traceon; }
 
126842
 
 
126843
  set +x
 
126844
  $at_times_p && times >"$at_times_file"
 
126845
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126846
read at_status <"$at_status_file"
 
126847
#AT_STOP_987
 
126848
#AT_START_988
 
126849
at_fn_group_banner 988 'stp.at:174' \
 
126850
  "STP.io.1.5: Topology Change" "                    " 73
 
126851
at_xfail=no
 
126852
(
 
126853
  $as_echo "988. $at_setup_line: testing $at_desc ..."
 
126854
  $at_traceon
 
126855
 
 
126856
 
 
126857
cat >test-stp-iol-io-1.5 <<'_ATEOF'
 
126858
# This test file approximates the following test from "Bridge
 
126859
# Functions Consortium Spanning Tree Interoperability Test Suite
 
126860
# Version 1.5":
 
126861
# STP.io.1.5: Topology Change
 
126862
bridge 0 0x111 = a b d c
 
126863
bridge 1 0x222 = a b f e
 
126864
bridge 2 0x333 = c d g h
 
126865
bridge 3 0x444 = e f g h
 
126866
run 1000
 
126867
check 0 = root
 
126868
check 1 = F:10 B F F
 
126869
check 2 = B F:10 F F
 
126870
check 3 = B F:20 B B
 
126871
bridge 1^0x7000
 
126872
run 1000
 
126873
check 0 = F:10 B F F
 
126874
check 1 = root
 
126875
check 2 = B F:20 B B
 
126876
check 3 = B F:10 F F
 
126877
bridge 2^0x6000
 
126878
run 1000
 
126879
check 0 = F F B F:10
 
126880
check 1 = F:20 B B B
 
126881
check 2 = root
 
126882
check 3 = F F F:10 B
 
126883
bridge 3^0x5000
 
126884
run 1000
 
126885
check 0 = B B B F:20
 
126886
check 1 = F F B F:10
 
126887
check 2 = F F F:10 B
 
126888
check 3 = root
 
126889
bridge 0^0x4000
 
126890
bridge 1^0x4001
 
126891
bridge 2^0x4002
 
126892
bridge 3^0x4003
 
126893
run 1000
 
126894
check 0 = root
 
126895
check 1 = F:10 B F F
 
126896
check 2 = B F:10 F F
 
126897
check 3 = B F:20 B B
 
126898
_ATEOF
 
126899
 
 
126900
{ set +x
 
126901
$as_echo "$at_srcdir/stp.at:218: test-stp test-stp-iol-io-1.5"
 
126902
at_fn_check_prepare_trace "stp.at:218"
 
126903
( $at_check_trace; test-stp test-stp-iol-io-1.5
 
126904
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126905
at_status=$? at_failed=false
 
126906
$at_check_filter
 
126907
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126908
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126909
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:218"
 
126910
$at_failed && at_fn_log_failure
 
126911
$at_traceon; }
 
126912
 
 
126913
  set +x
 
126914
  $at_times_p && times >"$at_times_file"
 
126915
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126916
read at_status <"$at_status_file"
 
126917
#AT_STOP_988
 
126918
#AT_START_989
 
126919
at_fn_group_banner 989 'stp.at:221' \
 
126920
  "STP.op.1.1 and STP.op.1.2" "                      " 73
 
126921
at_xfail=no
 
126922
(
 
126923
  $as_echo "989. $at_setup_line: testing $at_desc ..."
 
126924
  $at_traceon
 
126925
 
 
126926
 
 
126927
cat >test-stp-iol-op-1.1 <<'_ATEOF'
 
126928
# This test file approximates the following tests from "Bridge
 
126929
# Functions Consortium Spanning Tree Protocol Operations Test Suite
 
126930
# Version 2.3":
 
126931
# Test STP.op.1.1: Root ID Initialized to Bridge ID
 
126932
# Test STP.op.1.2: Root Path Cost Initialized to Zero
 
126933
bridge 0 0x123 =
 
126934
check 0 = root
 
126935
_ATEOF
 
126936
 
 
126937
{ set +x
 
126938
$as_echo "$at_srcdir/stp.at:232: test-stp test-stp-iol-op-1.1"
 
126939
at_fn_check_prepare_trace "stp.at:232"
 
126940
( $at_check_trace; test-stp test-stp-iol-op-1.1
 
126941
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126942
at_status=$? at_failed=false
 
126943
$at_check_filter
 
126944
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126945
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126946
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:232"
 
126947
$at_failed && at_fn_log_failure
 
126948
$at_traceon; }
 
126949
 
 
126950
  set +x
 
126951
  $at_times_p && times >"$at_times_file"
 
126952
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126953
read at_status <"$at_status_file"
 
126954
#AT_STOP_989
 
126955
#AT_START_990
 
126956
at_fn_group_banner 990 'stp.at:235' \
 
126957
  "STP.op.1.4: All Ports Initialized to Designated Ports" "" 73
 
126958
at_xfail=no
 
126959
(
 
126960
  $as_echo "990. $at_setup_line: testing $at_desc ..."
 
126961
  $at_traceon
 
126962
 
 
126963
 
 
126964
cat >test-stp-iol-op-1.4 <<'_ATEOF'
 
126965
# This test file approximates the following test from "Bridge
 
126966
# Functions Consortium Spanning Tree Protocol Operations Test Suite
 
126967
# Version 2.3":
 
126968
# Test STP.op.1.4: All Ports Initialized to Designated Ports
 
126969
bridge 0 0x123 = a b c d e f
 
126970
check 0 = Li Li Li Li Li Li
 
126971
run 1000
 
126972
check 0 = F F F F F F
 
126973
_ATEOF
 
126974
 
 
126975
{ set +x
 
126976
$as_echo "$at_srcdir/stp.at:247: test-stp test-stp-iol-op-1.4"
 
126977
at_fn_check_prepare_trace "stp.at:247"
 
126978
( $at_check_trace; test-stp test-stp-iol-op-1.4
 
126979
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
126980
at_status=$? at_failed=false
 
126981
$at_check_filter
 
126982
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
126983
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
126984
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:247"
 
126985
$at_failed && at_fn_log_failure
 
126986
$at_traceon; }
 
126987
 
 
126988
  set +x
 
126989
  $at_times_p && times >"$at_times_file"
 
126990
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
126991
read at_status <"$at_status_file"
 
126992
#AT_STOP_990
 
126993
#AT_START_991
 
126994
at_fn_group_banner 991 'stp.at:250' \
 
126995
  "STP.op.3.1: Root Bridge Selection: Root ID Values" "" 73
 
126996
at_xfail=no
 
126997
(
 
126998
  $as_echo "991. $at_setup_line: testing $at_desc ..."
 
126999
  $at_traceon
 
127000
 
 
127001
 
 
127002
cat >test-stp-iol-op-3.1 <<'_ATEOF'
 
127003
# This test file approximates the following test from "Bridge
 
127004
# Functions Consortium Spanning Tree Protocol Operations Test Suite
 
127005
# Version 2.3":
 
127006
# Test STP.op.3.1: Root Bridge Selection: Root ID Values
 
127007
bridge 0 0x111 = a
 
127008
bridge 1 0x222 = a
 
127009
check 0 = rootid:0x111 Li
 
127010
check 1 = rootid:0x222 Li
 
127011
run 1000
 
127012
check 0 = rootid:0x111 root
 
127013
check 1 = rootid:0x111 F:10
 
127014
_ATEOF
 
127015
 
 
127016
{ set +x
 
127017
$as_echo "$at_srcdir/stp.at:265: test-stp test-stp-iol-op-3.1"
 
127018
at_fn_check_prepare_trace "stp.at:265"
 
127019
( $at_check_trace; test-stp test-stp-iol-op-3.1
 
127020
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
127021
at_status=$? at_failed=false
 
127022
$at_check_filter
 
127023
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
127024
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
127025
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:265"
 
127026
$at_failed && at_fn_log_failure
 
127027
$at_traceon; }
 
127028
 
 
127029
  set +x
 
127030
  $at_times_p && times >"$at_times_file"
 
127031
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
127032
read at_status <"$at_status_file"
 
127033
#AT_STOP_991
 
127034
#AT_START_992
 
127035
at_fn_group_banner 992 'stp.at:268' \
 
127036
  "STP.op.3.3: Root Bridge Selection: Bridge ID Values" "" 73
 
127037
at_xfail=no
 
127038
(
 
127039
  $as_echo "992. $at_setup_line: testing $at_desc ..."
 
127040
  $at_traceon
 
127041
 
 
127042
 
 
127043
cat >test-stp-iol-op-3.3 <<'_ATEOF'
 
127044
# This test file approximates the following test from "Bridge
 
127045
# Functions Consortium Spanning Tree Protocol Operations Test Suite
 
127046
# Version 2.3":
 
127047
# Test STP.op.3.3: Root Bridge Selection: Bridge ID Values
 
127048
bridge 0 0x333^0x6000 = a
 
127049
bridge 1 0x222^0x7000 = b
 
127050
bridge 2 0x111 = a b
 
127051
run 1000
 
127052
check 0 = rootid:0x333^0x6000 root
 
127053
check 1 = rootid:0x333^0x6000 F:20
 
127054
check 2 = rootid:0x333^0x6000 F:10 F
 
127055
_ATEOF
 
127056
 
 
127057
{ set +x
 
127058
$as_echo "$at_srcdir/stp.at:283: test-stp test-stp-iol-op-3.3"
 
127059
at_fn_check_prepare_trace "stp.at:283"
 
127060
( $at_check_trace; test-stp test-stp-iol-op-3.3
 
127061
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
127062
at_status=$? at_failed=false
 
127063
$at_check_filter
 
127064
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
127065
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
127066
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:283"
 
127067
$at_failed && at_fn_log_failure
 
127068
$at_traceon; }
 
127069
 
 
127070
  set +x
 
127071
  $at_times_p && times >"$at_times_file"
 
127072
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
127073
read at_status <"$at_status_file"
 
127074
#AT_STOP_992
 
127075
#AT_START_993
 
127076
at_fn_group_banner 993 'stp.at:286' \
 
127077
  "STP.op.3.3: Root Bridge Selection: Bridge ID Values" "" 73
 
127078
at_xfail=no
 
127079
(
 
127080
  $as_echo "993. $at_setup_line: testing $at_desc ..."
 
127081
  $at_traceon
 
127082
 
 
127083
 
 
127084
cat >test-stp-iol-op-3.4 <<'_ATEOF'
 
127085
# This test file approximates the following test from "Bridge
 
127086
# Functions Consortium Spanning Tree Protocol Operations Test Suite
 
127087
# Version 2.3":
 
127088
# Test STP.op.3.3: Root Bridge Selection: Bridge ID Values
 
127089
bridge 0 0x333^0x6000 = a
 
127090
bridge 1 0x222^0x7000 = b
 
127091
bridge 2 0x111 = a b
 
127092
run 1000
 
127093
check 0 = rootid:0x333^0x6000 root
 
127094
check 1 = rootid:0x333^0x6000 F:20
 
127095
check 2 = rootid:0x333^0x6000 F:10 F
 
127096
_ATEOF
 
127097
 
 
127098
{ set +x
 
127099
$as_echo "$at_srcdir/stp.at:301: test-stp test-stp-iol-op-3.4"
 
127100
at_fn_check_prepare_trace "stp.at:301"
 
127101
( $at_check_trace; test-stp test-stp-iol-op-3.4
 
127102
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
127103
at_status=$? at_failed=false
 
127104
$at_check_filter
 
127105
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
127106
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
127107
at_fn_check_status 0 $at_status "$at_srcdir/stp.at:301"
 
127108
$at_failed && at_fn_log_failure
 
127109
$at_traceon; }
 
127110
 
 
127111
  set +x
 
127112
  $at_times_p && times >"$at_times_file"
 
127113
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
127114
read at_status <"$at_status_file"
 
127115
#AT_STOP_993
 
127116
#AT_START_994
 
127117
at_fn_group_banner 994 'vlog.at:3' \
 
127118
  "vlog - Python" "                                  " 74
 
127119
at_xfail=no
 
127120
(
 
127121
  $as_echo "994. $at_setup_line: testing $at_desc ..."
 
127122
  $at_traceon
 
127123
 
 
127124
$as_echo "vlog.at:4" >"$at_check_line_file"
 
127125
(test $HAVE_PYTHON = no) \
 
127126
  && at_fn_check_skip 77 "$at_srcdir/vlog.at:4"
 
127127
{ set +x
 
127128
$as_echo "$at_srcdir/vlog.at:5: \$PYTHON \$srcdir/test-vlog.py --log-file log_file \\
 
127129
-v ANY:ANY:dbg module_1:ANY:info module_2:ANY:warn ANY:syslog:off \\
 
127130
2>stderr_log"
 
127131
at_fn_check_prepare_notrace 'an embedded newline' "vlog.at:5"
 
127132
( $at_check_trace; $PYTHON $srcdir/test-vlog.py --log-file log_file \
 
127133
-v ANY:ANY:dbg module_1:ANY:info module_2:ANY:warn ANY:syslog:off \
 
127134
2>stderr_log
 
127135
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
127136
at_status=$? at_failed=false
 
127137
$at_check_filter
 
127138
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
127139
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
127140
at_fn_check_status 0 $at_status "$at_srcdir/vlog.at:5"
 
127141
$at_failed && at_fn_log_failure
 
127142
$at_traceon; }
 
127143
 
 
127144
 
 
127145
 
 
127146
 
 
127147
{ set +x
 
127148
$as_echo "$at_srcdir/vlog.at:11: diff log_file stderr_log"
 
127149
at_fn_check_prepare_trace "vlog.at:11"
 
127150
( $at_check_trace; diff log_file stderr_log
 
127151
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
127152
at_status=$? at_failed=false
 
127153
$at_check_filter
 
127154
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
127155
at_fn_diff_devnull "$at_stdout" || at_failed=:
 
127156
at_fn_check_status 0 $at_status "$at_srcdir/vlog.at:11"
 
127157
$at_failed && at_fn_log_failure  \
 
127158
"log_file" \
 
127159
"stderr_log"
 
127160
$at_traceon; }
 
127161
 
 
127162
 
 
127163
{ set +x
 
127164
$as_echo "$at_srcdir/vlog.at:13: sed -e 's/.* .* ..:..:..|//' \\
 
127165
-e 's/File \"[^\"]*\", line [0-9][0-9]*,/File <name>, line <number>,/' \\
 
127166
stderr_log"
 
127167
at_fn_check_prepare_notrace 'an embedded newline' "vlog.at:13"
 
127168
( $at_check_trace; sed -e 's/.* .* ..:..:..|//' \
 
127169
-e 's/File "[^"]*", line [0-9][0-9]*,/File <name>, line <number>,/' \
 
127170
stderr_log
 
127171
) >>"$at_stdout" 2>>"$at_stderr" 5>&-
 
127172
at_status=$? at_failed=false
 
127173
$at_check_filter
 
127174
at_fn_diff_devnull "$at_stderr" || at_failed=:
 
127175
echo >>"$at_stdout"; $as_echo "0|module_0|EMER|emergency
 
127176
1|module_0|ERR|error
 
127177
2|module_0|WARN|warning
 
127178
3|module_0|INFO|information
 
127179
4|module_0|DBG|debug
 
127180
5|module_0|EMER|emergency exception
 
127181
Traceback (most recent call last):
 
127182
  File <name>, line <number>, in main
 
127183
    assert fail
 
127184
AssertionError
 
127185
6|module_0|ERR|error exception
 
127186
Traceback (most recent call last):
 
127187
  File <name>, line <number>, in main
 
127188
    assert fail
 
127189
AssertionError
 
127190
7|module_0|WARN|warn exception
 
127191
Traceback (most recent call last):
 
127192
  File <name>, line <number>, in main
 
127193
    assert fail
 
127194
AssertionError
 
127195
8|module_0|INFO|information exception
 
127196
Traceback (most recent call last):
 
127197
  File <name>, line <number>, in main
 
127198
    assert fail
 
127199
AssertionError
 
127200
9|module_0|DBG|debug exception
 
127201
Traceback (most recent call last):
 
127202
  File <name>, line <number>, in main
 
127203
    assert fail
 
127204
AssertionError
 
127205
10|module_0|ERR|exception
 
127206
Traceback (most recent call last):
 
127207
  File <name>, line <number>, in main
 
127208
    assert fail
 
127209
AssertionError
 
127210
11|module_1|EMER|emergency
 
127211
12|module_1|ERR|error
 
127212
13|module_1|WARN|warning
 
127213
14|module_1|INFO|information
 
127214
16|module_1|EMER|emergency exception
 
127215
Traceback (most recent call last):
 
127216
  File <name>, line <number>, in main
 
127217
    assert fail
 
127218
AssertionError
 
127219
17|module_1|ERR|error exception
 
127220
Traceback (most recent call last):
 
127221
  File <name>, line <number>, in main
 
127222
    assert fail
 
127223
AssertionError
 
127224
18|module_1|WARN|warn exception
 
127225
Traceback (most recent call last):
 
127226
  File <name>, line <number>, in main
 
127227
    assert fail
 
127228
AssertionError
 
127229
19|module_1|INFO|information exception
 
127230
Traceback (most recent call last):
 
127231
  File <name>, line <number>, in main
 
127232
    assert fail
 
127233
AssertionError
 
127234
21|module_1|ERR|exception
 
127235
Traceback (most recent call last):
 
127236
  File <name>, line <number>, in main
 
127237
    assert fail
 
127238
AssertionError
 
127239
22|module_2|EMER|emergency
 
127240
23|module_2|ERR|error
 
127241
24|module_2|WARN|warning
 
127242
27|module_2|EMER|emergency exception
 
127243
Traceback (most recent call last):
 
127244
  File <name>, line <number>, in main
 
127245
    assert fail
 
127246
AssertionError
 
127247
28|module_2|ERR|error exception
 
127248
Traceback (most recent call last):
 
127249
  File <name>, line <number>, in main
 
127250
    assert fail
 
127251
AssertionError
 
127252
29|module_2|WARN|warn exception
 
127253
Traceback (most recent call last):
 
127254
  File <name>, line <number>, in main
 
127255
    assert fail
 
127256
AssertionError
 
127257
32|module_2|ERR|exception
 
127258
Traceback (most recent call last):
 
127259
  File <name>, line <number>, in main
 
127260
    assert fail
 
127261
AssertionError
 
127262
" | \
 
127263
  $at_diff - "$at_stdout" || at_failed=:
 
127264
at_fn_check_status 0 $at_status "$at_srcdir/vlog.at:13"
 
127265
$at_failed && at_fn_log_failure  \
 
127266
"log_file" \
 
127267
"stderr_log"
 
127268
$at_traceon; }
 
127269
 
 
127270
 
 
127271
  set +x
 
127272
  $at_times_p && times >"$at_times_file"
 
127273
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
 
127274
read at_status <"$at_status_file"
 
127275
#AT_STOP_994