| 1 | #! /bin/sh |
| 2 | # Generated from testsuite.at by GNU Autoconf 2.72. |
| 3 | # |
| 4 | # Copyright (C) 2009-2017, 2020-2023 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 | ## M4sh Initialization. ## |
| 10 | ## -------------------- ## |
| 11 | |
| 12 | # Be more Bourne compatible |
| 13 | DUALCASE=1; export DUALCASE # for MKS sh |
| 14 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 15 | then : |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
| 21 | setopt NO_GLOB_SUBST |
| 22 | else case e in #( |
| 23 | e) case `(set -o) 2>/dev/null` in #( |
| 24 | *posix*) : |
| 25 | set -o posix ;; #( |
| 26 | *) : |
| 27 | ;; |
| 28 | esac ;; |
| 29 | esac |
| 30 | fi |
| 31 | |
| 32 | |
| 33 | |
| 34 | # Reset variables that may have inherited troublesome values from |
| 35 | # the environment. |
| 36 | |
| 37 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 38 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 39 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 40 | # Quoting is to prevent editors from complaining about space-tab. |
| 41 | as_nl=' |
| 42 | ' |
| 43 | export as_nl |
| 44 | IFS=" "" $as_nl" |
| 45 | |
| 46 | PS1='$ ' |
| 47 | PS2='> ' |
| 48 | PS4='+ ' |
| 49 | |
| 50 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 51 | LC_ALL=C |
| 52 | export LC_ALL |
| 53 | LANGUAGE=C |
| 54 | export LANGUAGE |
| 55 | |
| 56 | # We cannot yet rely on "unset" to work, but we need these variables |
| 57 | # to be unset--not just set to an empty or harmless value--now, to |
| 58 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 59 | # also avoids known problems related to "unset" and subshell syntax |
| 60 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 61 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 62 | do eval test \${$as_var+y} \ |
| 63 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 64 | done |
| 65 | |
| 66 | # Ensure that fds 0, 1, and 2 are open. |
| 67 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 68 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 69 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 70 | |
| 71 | # The user is always right. |
| 72 | if ${PATH_SEPARATOR+false} :; then |
| 73 | PATH_SEPARATOR=: |
| 74 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 75 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 76 | PATH_SEPARATOR=';' |
| 77 | } |
| 78 | fi |
| 79 | |
| 80 | |
| 81 | # Find who we are. Look in the path if we contain no directory separator. |
| 82 | as_myself= |
| 83 | case $0 in #(( |
| 84 | *[\\/]* ) as_myself=$0 ;; |
| 85 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 86 | for as_dir in $PATH |
| 87 | do |
| 88 | IFS=$as_save_IFS |
| 89 | case $as_dir in #((( |
| 90 | '') as_dir=./ ;; |
| 91 | */) ;; |
| 92 | *) as_dir=$as_dir/ ;; |
| 93 | esac |
| 94 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 95 | done |
| 96 | IFS=$as_save_IFS |
| 97 | |
| 98 | ;; |
| 99 | esac |
| 100 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 101 | # in which case we are not to be found in the path. |
| 102 | if test "x$as_myself" = x; then |
| 103 | as_myself=$0 |
| 104 | fi |
| 105 | if test ! -f "$as_myself"; then |
| 106 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 107 | exit 1 |
| 108 | fi |
| 109 | |
| 110 | |
| 111 | if test "x$CONFIG_SHELL" = x; then |
| 112 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 113 | then : |
| 114 | emulate sh |
| 115 | NULLCMD=: |
| 116 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 117 | # is contrary to our usage. Disable this feature. |
| 118 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 119 | setopt NO_GLOB_SUBST |
| 120 | else case e in #( |
| 121 | e) case \`(set -o) 2>/dev/null\` in #( |
| 122 | *posix*) : |
| 123 | set -o posix ;; #( |
| 124 | *) : |
| 125 | ;; |
| 126 | esac ;; |
| 127 | esac |
| 128 | fi |
| 129 | " |
| 130 | as_required="as_fn_return () { (exit \$1); } |
| 131 | as_fn_success () { as_fn_return 0; } |
| 132 | as_fn_failure () { as_fn_return 1; } |
| 133 | as_fn_ret_success () { return 0; } |
| 134 | as_fn_ret_failure () { return 1; } |
| 135 | |
| 136 | exitcode=0 |
| 137 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 138 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 139 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 140 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 141 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 142 | then : |
| 143 | |
| 144 | else case e in #( |
| 145 | e) exitcode=1; echo positional parameters were not saved. ;; |
| 146 | esac |
| 147 | fi |
| 148 | test x\$exitcode = x0 || exit 1 |
| 149 | blah=\$(echo \$(echo blah)) |
| 150 | test x\"\$blah\" = xblah || exit 1 |
| 151 | test -x / || exit 1" |
| 152 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 153 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 154 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 155 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 156 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 157 | if (eval "$as_required") 2>/dev/null |
| 158 | then : |
| 159 | as_have_required=yes |
| 160 | else case e in #( |
| 161 | e) as_have_required=no ;; |
| 162 | esac |
| 163 | fi |
| 164 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 165 | then : |
| 166 | |
| 167 | else case e in #( |
| 168 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 169 | as_found=false |
| 170 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 171 | do |
| 172 | IFS=$as_save_IFS |
| 173 | case $as_dir in #((( |
| 174 | '') as_dir=./ ;; |
| 175 | */) ;; |
| 176 | *) as_dir=$as_dir/ ;; |
| 177 | esac |
| 178 | as_found=: |
| 179 | case $as_dir in #( |
| 180 | /*) |
| 181 | for as_base in sh bash ksh sh5; do |
| 182 | # Try only shells that exist, to save several forks. |
| 183 | as_shell=$as_dir$as_base |
| 184 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 185 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 186 | then : |
| 187 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 188 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 189 | then : |
| 190 | break 2 |
| 191 | fi |
| 192 | fi |
| 193 | done;; |
| 194 | esac |
| 195 | as_found=false |
| 196 | done |
| 197 | IFS=$as_save_IFS |
| 198 | if $as_found |
| 199 | then : |
| 200 | |
| 201 | else case e in #( |
| 202 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 203 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 204 | then : |
| 205 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 206 | fi ;; |
| 207 | esac |
| 208 | fi |
| 209 | |
| 210 | |
| 211 | if test "x$CONFIG_SHELL" != x |
| 212 | then : |
| 213 | export CONFIG_SHELL |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | # Preserve -v and -x to the replacement shell. |
| 218 | BASH_ENV=/dev/null |
| 219 | ENV=/dev/null |
| 220 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 221 | case $- in # (((( |
| 222 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 223 | *v* ) as_opts=-v ;; |
| 224 | *x* ) as_opts=-x ;; |
| 225 | * ) as_opts= ;; |
| 226 | esac |
| 227 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 228 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 229 | # out after a failed 'exec'. |
| 230 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 231 | exit 255 |
| 232 | fi |
| 233 | |
| 234 | if test x$as_have_required = xno |
| 235 | then : |
| 236 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 237 | printf "%s\n" "$0: the shells that I found on your system." |
| 238 | if test ${ZSH_VERSION+y} ; then |
| 239 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 240 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 241 | else |
| 242 | printf "%s\n" "$0: Please tell [email protected] about your system, |
| 243 | $0: including any error possibly output before this |
| 244 | $0: message. Then install a modern shell, or manually run |
| 245 | $0: the script under such a shell if you do have one." |
| 246 | fi |
| 247 | exit 1 |
| 248 | fi ;; |
| 249 | esac |
| 250 | fi |
| 251 | fi |
| 252 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 253 | export SHELL |
| 254 | # Unset more variables known to interfere with behavior of common tools. |
| 255 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 256 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 257 | |
| 258 | ## --------------------- ## |
| 259 | ## M4sh Shell Functions. ## |
| 260 | ## --------------------- ## |
| 261 | # as_fn_unset VAR |
| 262 | # --------------- |
| 263 | # Portably unset VAR. |
| 264 | as_fn_unset () |
| 265 | { |
| 266 | { eval $1=; unset $1;} |
| 267 | } |
| 268 | as_unset=as_fn_unset |
| 269 | |
| 270 | |
| 271 | # as_fn_set_status STATUS |
| 272 | # ----------------------- |
| 273 | # Set $? to STATUS, without forking. |
| 274 | as_fn_set_status () |
| 275 | { |
| 276 | return $1 |
| 277 | } # as_fn_set_status |
| 278 | |
| 279 | # as_fn_exit STATUS |
| 280 | # ----------------- |
| 281 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 282 | as_fn_exit () |
| 283 | { |
| 284 | set +e |
| 285 | as_fn_set_status $1 |
| 286 | exit $1 |
| 287 | } # as_fn_exit |
| 288 | |
| 289 | # as_fn_mkdir_p |
| 290 | # ------------- |
| 291 | # Create "$as_dir" as a directory, including parents if necessary. |
| 292 | as_fn_mkdir_p () |
| 293 | { |
| 294 | |
| 295 | case $as_dir in #( |
| 296 | -*) as_dir=./$as_dir;; |
| 297 | esac |
| 298 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 299 | as_dirs= |
| 300 | while :; do |
| 301 | case $as_dir in #( |
| 302 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 303 | *) as_qdir=$as_dir;; |
| 304 | esac |
| 305 | as_dirs="'$as_qdir' $as_dirs" |
| 306 | as_dir=`$as_dirname -- "$as_dir" || |
| 307 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 308 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 309 | X"$as_dir" : 'X\(//\)$' \| \ |
| 310 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 311 | printf "%s\n" X"$as_dir" | |
| 312 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 313 | s//\1/ |
| 314 | q |
| 315 | } |
| 316 | /^X\(\/\/\)[^/].*/{ |
| 317 | s//\1/ |
| 318 | q |
| 319 | } |
| 320 | /^X\(\/\/\)$/{ |
| 321 | s//\1/ |
| 322 | q |
| 323 | } |
| 324 | /^X\(\/\).*/{ |
| 325 | s//\1/ |
| 326 | q |
| 327 | } |
| 328 | s/.*/./; q'` |
| 329 | test -d "$as_dir" && break |
| 330 | done |
| 331 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 332 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" "$LINENO" 5 |
| 333 | |
| 334 | |
| 335 | } # as_fn_mkdir_p |
| 336 | |
| 337 | # as_fn_executable_p FILE |
| 338 | # ----------------------- |
| 339 | # Test if FILE is an executable regular file. |
| 340 | as_fn_executable_p () |
| 341 | { |
| 342 | test -f "$1" && test -x "$1" |
| 343 | } # as_fn_executable_p |
| 344 | # as_fn_append VAR VALUE |
| 345 | # ---------------------- |
| 346 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 347 | # advantage of any shell optimizations that allow amortized linear growth over |
| 348 | # repeated appends, instead of the typical quadratic growth present in naive |
| 349 | # implementations. |
| 350 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 351 | then : |
| 352 | eval 'as_fn_append () |
| 353 | { |
| 354 | eval $1+=\$2 |
| 355 | }' |
| 356 | else case e in #( |
| 357 | e) as_fn_append () |
| 358 | { |
| 359 | eval $1=\$$1\$2 |
| 360 | } ;; |
| 361 | esac |
| 362 | fi # as_fn_append |
| 363 | |
| 364 | # as_fn_arith ARG... |
| 365 | # ------------------ |
| 366 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 367 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 368 | # must be portable across $(()) and expr. |
| 369 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 370 | then : |
| 371 | eval 'as_fn_arith () |
| 372 | { |
| 373 | as_val=$(( $* )) |
| 374 | }' |
| 375 | else case e in #( |
| 376 | e) as_fn_arith () |
| 377 | { |
| 378 | as_val=`expr "$@" || test $? -eq 1` |
| 379 | } ;; |
| 380 | esac |
| 381 | fi # as_fn_arith |
| 382 | |
| 383 | |
| 384 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 385 | # ---------------------------------------- |
| 386 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 387 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 388 | # script with STATUS, using 1 if that was 0. |
| 389 | as_fn_error () |
| 390 | { |
| 391 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 392 | if test "$4"; then |
| 393 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 394 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 395 | fi |
| 396 | printf "%s\n" "$as_me: error: $2" >&2 |
| 397 | as_fn_exit $as_status |
| 398 | } # as_fn_error |
| 399 | |
| 400 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 401 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 402 | as_expr=expr |
| 403 | else |
| 404 | as_expr=false |
| 405 | fi |
| 406 | |
| 407 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 408 | as_basename=basename |
| 409 | else |
| 410 | as_basename=false |
| 411 | fi |
| 412 | |
| 413 | as_me=`$as_basename -- "$0" || |
| 414 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 415 | X"$0" : 'X\(//\)$' \| \ |
| 416 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 417 | printf "%s\n" X/"$0" | |
| 418 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 419 | s//\1/ |
| 420 | q |
| 421 | } |
| 422 | /^X\/\(\/\/\)$/{ |
| 423 | s//\1/ |
| 424 | q |
| 425 | } |
| 426 | /^X\/\(\/\).*/{ |
| 427 | s//\1/ |
| 428 | q |
| 429 | } |
| 430 | s/.*/./; q'` |
| 431 | |
| 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
| 437 | |
| 438 | # Avoid depending upon Character Ranges. |
| 439 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 440 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 441 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 442 | as_cr_digits='0123456789' |
| 443 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 444 | |
| 445 | |
| 446 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 447 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 448 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 449 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 450 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 451 | sed -n ' |
| 452 | p |
| 453 | /[$]LINENO/= |
| 454 | ' <$as_myself | |
| 455 | sed ' |
| 456 | t clear |
| 457 | :clear |
| 458 | s/[$]LINENO.*/&-/ |
| 459 | t lineno |
| 460 | b |
| 461 | :lineno |
| 462 | N |
| 463 | :loop |
| 464 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 465 | t loop |
| 466 | s/-\n.*// |
| 467 | ' >$as_me.lineno && |
| 468 | chmod +x "$as_me.lineno" || |
| 469 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 470 | |
| 471 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 472 | # already done that, so ensure we don't try to do so again and fall |
| 473 | # in an infinite loop. This has already happened in practice. |
| 474 | _as_can_reexec=no; export _as_can_reexec |
| 475 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 476 | # (the dirname of $[0] is not the place where we might find the |
| 477 | # original and so on. Autoconf is especially sensitive to this). |
| 478 | . "./$as_me.lineno" |
| 479 | # Exit status is that of the last command. |
| 480 | exit |
| 481 | } |
| 482 | |
| 483 | |
| 484 | # Determine whether it's possible to make 'echo' print without a newline. |
| 485 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 486 | # for compatibility with existing Makefiles. |
| 487 | ECHO_C= ECHO_N= ECHO_T= |
| 488 | case `echo -n x` in #((((( |
| 489 | -n*) |
| 490 | case `echo 'xy\c'` in |
| 491 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 492 | xy) ECHO_C='\c';; |
| 493 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 494 | ECHO_T=' ';; |
| 495 | esac;; |
| 496 | *) |
| 497 | ECHO_N='-n';; |
| 498 | esac |
| 499 | |
| 500 | # For backward compatibility with old third-party macros, we provide |
| 501 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 502 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 503 | as_echo='printf %s\n' |
| 504 | as_echo_n='printf %s' |
| 505 | |
| 506 | rm -f conf$$ conf$$.exe conf$$.file |
| 507 | if test -d conf$$.dir; then |
| 508 | rm -f conf$$.dir/conf$$.file |
| 509 | else |
| 510 | rm -f conf$$.dir |
| 511 | mkdir conf$$.dir 2>/dev/null |
| 512 | fi |
| 513 | if (echo >conf$$.file) 2>/dev/null; then |
| 514 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 515 | as_ln_s='ln -s' |
| 516 | # ... but there are two gotchas: |
| 517 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 518 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 519 | # In both cases, we have to default to 'cp -pR'. |
| 520 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 521 | as_ln_s='cp -pR' |
| 522 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 523 | as_ln_s=ln |
| 524 | else |
| 525 | as_ln_s='cp -pR' |
| 526 | fi |
| 527 | else |
| 528 | as_ln_s='cp -pR' |
| 529 | fi |
| 530 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 531 | rmdir conf$$.dir 2>/dev/null |
| 532 | |
| 533 | if mkdir -p . 2>/dev/null; then |
| 534 | as_mkdir_p='mkdir -p "$as_dir"' |
| 535 | else |
| 536 | test -d ./-p && rmdir ./-p |
| 537 | as_mkdir_p=false |
| 538 | fi |
| 539 | |
| 540 | as_test_x='test -x' |
| 541 | as_executable_p=as_fn_executable_p |
| 542 | |
| 543 | # Sed expression to map a string onto a valid CPP name. |
| 544 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 545 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
| 548 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 549 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 550 | |
| 551 | |
| 552 | |
| 553 | |
| 554 | |
| 555 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 556 | |
| 557 | # How were we run? |
| 558 | at_cli_args="$@" |
| 559 | |
| 560 | |
| 561 | # Not all shells have the 'times' builtin; the subshell is needed to make |
| 562 | # sure we discard the 'times: not found' message from the shell. |
| 563 | at_times_p=false |
| 564 | (times) >/dev/null 2>&1 && at_times_p=: |
| 565 | |
| 566 | # CLI Arguments to pass to the debugging scripts. |
| 567 | at_debug_args= |
| 568 | # -e sets to true |
| 569 | at_errexit_p=false |
| 570 | # Shall we be verbose? ':' means no, empty means yes. |
| 571 | at_verbose=: |
| 572 | at_quiet= |
| 573 | # Running several jobs in parallel, 0 means as many as test groups. |
| 574 | at_jobs=1 |
| 575 | at_traceon=: |
| 576 | at_trace_echo=: |
| 577 | at_check_filter_trace=: |
| 578 | |
| 579 | # Shall we keep the debug scripts? Must be ':' when the suite is |
| 580 | # run by a debug script, so that the script doesn't remove itself. |
| 581 | at_debug_p=false |
| 582 | # Display help message? |
| 583 | at_help_p=false |
| 584 | # Display the version message? |
| 585 | at_version_p=false |
| 586 | # List test groups? |
| 587 | at_list_p=false |
| 588 | # --clean |
| 589 | at_clean=false |
| 590 | # Test groups to run |
| 591 | at_groups= |
| 592 | # Whether to rerun failed tests. |
| 593 | at_recheck= |
| 594 | # Whether a write failure occurred |
| 595 | at_write_fail=0 |
| 596 | |
| 597 | # The directory we run the suite in. Default to . if no -C option. |
| 598 | at_dir=`pwd` |
| 599 | # An absolute reference to this testsuite script. |
| 600 | case $as_myself in |
| 601 | [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;; |
| 602 | * ) at_myself=$at_dir/$as_myself ;; |
| 603 | esac |
| 604 | # Whether -C is in effect. |
| 605 | at_change_dir=false |
| 606 | |
| 607 | # Whether to enable colored test results. |
| 608 | at_color=auto |
| 609 | # As many question marks as there are digits in the last test group number. |
| 610 | # Used to normalize the test group numbers so that 'ls' lists them in |
| 611 | # numerical order. |
| 612 | at_format='??' |
| 613 | # Description of all the test groups. |
| 614 | at_help_all="1;deb-format.at:1;dpkg-deb options;dpkg-deb command-line; |
| 615 | 2;deb-format.at:10;dpkg-deb .deb format 0.93x;dpkg-deb deb-old; |
| 616 | 3;deb-format.at:109;dpkg-deb .deb format 2.x (core);dpkg-deb deb; |
| 617 | 4;deb-format.at:407;dpkg-deb .deb format 2.x (xz);dpkg-deb deb; |
| 618 | 5;deb-format.at:458;dpkg-deb .deb format 2.x (zstd);dpkg-deb deb; |
| 619 | 6;deb-format.at:509;dpkg-deb .deb format 2.x (bzip2);dpkg-deb deb; |
| 620 | 7;deb-format.at:537;dpkg-deb .deb format 2.x (lzma);dpkg-deb deb; |
| 621 | 8;deb-content.at:1;dpkg-deb .deb conffiles;dpkg-deb deb conffiles; |
| 622 | 9;deb-content.at:131;dpkg-deb .deb extraction cleanup;dpkg-deb deb extraction; |
| 623 | 10;deb-fields.at:1;dpkg-deb .deb fields;dpkg-deb deb fields; |
| 624 | 11;deb-split.at:1;dpkg-split options;dpkg-split command-line; |
| 625 | 12;deb-split.at:9;dpkg-split .deb format;dpkg-split deb-split; |
| 626 | 13;realpath.at:1;dpkg-realpath options;dpkg-realpath command-line; |
| 627 | 14;realpath.at:9;dpkg-realpath path resolving;dpkg-realpath canonicalize; |
| 628 | 15;divert.at:1;dpkg-divert options;dpkg-divert command-line; |
| 629 | 16;divert.at:83;dpkg-divert query (empty db);dpkg-divert query; |
| 630 | 17;divert.at:94;dpkg-divert query (list);dpkg-divert query; |
| 631 | 18;divert.at:134;dpkg-divert query (listpackage + truename);dpkg-divert query; |
| 632 | 19;divert.at:160;dpkg-divert add (local rename);dpkg-divert add; |
| 633 | 20;divert.at:178;dpkg-divert add (local no-rename);dpkg-divert add; |
| 634 | 21;divert.at:196;dpkg-divert add (rename quiet);dpkg-divert add; |
| 635 | 22;divert.at:213;dpkg-divert add (test rename quiet);dpkg-divert add; |
| 636 | 23;divert.at:226;dpkg-divert add (rename missing quiet);dpkg-divert add; |
| 637 | 24;divert.at:243;dpkg-divert add (local rename quiet);dpkg-divert add; |
| 638 | 25;divert.at:260;dpkg-divert add (package rename quiet);dpkg-divert add; |
| 639 | 26;divert.at:274;dpkg-divert add (rename self-link);dpkg-divert add; |
| 640 | 27;divert.at:292;dpkg-divert add (rename other-file);dpkg-divert add; |
| 641 | 28;divert.at:305;dpkg-divert add (rename missing dir);dpkg-divert add; |
| 642 | 29;divert.at:319;dpkg-divert add (rename read-only dir);dpkg-divert fsys; |
| 643 | 30;divert.at:343;dpkg-divert add (rename no-access dir);dpkg-divert fsys; |
| 644 | 31;divert.at:367;dpkg-divert add second diversion;dpkg-divert add; |
| 645 | 32;divert.at:401;dpkg-divert add third diversion;dpkg-divert add; |
| 646 | 33;divert.at:420;dpkg-divert add (file owned by --package);dpkg-divert add; |
| 647 | 34;divert.at:447;dpkg-divert remove (missing);dpkg-divert remove; |
| 648 | 35;divert.at:459;dpkg-divert remove (divert-to);dpkg-divert remove; |
| 649 | 36;divert.at:494;dpkg-divert remove (plain);dpkg-divert remove; |
| 650 | 37;divert.at:517;dpkg-divert remove (by-package);dpkg-divert remove; |
| 651 | 38;divert.at:539;dpkg-divert remove (test);dpkg-divert remove; |
| 652 | 39;divert.at:564;dpkg-divert db (no-access);dpkg-divert db; |
| 653 | 40;divert.at:580;dpkg-divert db (truncated);dpkg-divert db; |
| 654 | 41;divert.at:598;dpkg-divert db (read-only dir);dpkg-divert db; |
| 655 | 42;divert.at:613;dpkg-divert db (disk full);dpkg-divert db; |
| 656 | 43;divert.at:628;dpkg-divert db (pathname is dir);dpkg-divert db; |
| 657 | 44;trigger.at:6;dpkg trigger no-act;dpkg trigger; |
| 658 | 45;chdir.at:5;dpkg chdir opts normalize;dpkg command-line chdir; |
| 659 | 46;chdir.at:5;dpkg chdir opts;dpkg command-line chdir; |
| 660 | 47;chdir.at:5;dpkg chdir env;dpkg command-line chdir; |
| 661 | 48;chdir.at:5;dpkg chdir env+opt admindir;dpkg command-line chdir; |
| 662 | 49;chdir.at:5;dpkg chdir env+opt root;dpkg command-line chdir; |
| 663 | 50;chdir.at:5;dpkg chdir env+opt root+admindir;dpkg command-line chdir; |
| 664 | 51;chdir.at:5;dpkg-divert chdir opts normalize;dpkg-divert command-line chdir; |
| 665 | 52;chdir.at:5;dpkg-divert chdir opts;dpkg-divert command-line chdir; |
| 666 | 53;chdir.at:5;dpkg-divert chdir env;dpkg-divert command-line chdir; |
| 667 | 54;chdir.at:5;dpkg-divert chdir env+opt admindir;dpkg-divert command-line chdir; |
| 668 | 55;chdir.at:5;dpkg-divert chdir env+opt root;dpkg-divert command-line chdir; |
| 669 | 56;chdir.at:5;dpkg-divert chdir env+opt root+admindir;dpkg-divert command-line chdir; |
| 670 | 57;chdir.at:5;dpkg-statoverride chdir opts normalize;dpkg-statoverride command-line chdir; |
| 671 | 58;chdir.at:5;dpkg-statoverride chdir opts;dpkg-statoverride command-line chdir; |
| 672 | 59;chdir.at:5;dpkg-statoverride chdir env;dpkg-statoverride command-line chdir; |
| 673 | 60;chdir.at:5;dpkg-statoverride chdir env+opt admindir;dpkg-statoverride command-line chdir; |
| 674 | 61;chdir.at:5;dpkg-statoverride chdir env+opt root;dpkg-statoverride command-line chdir; |
| 675 | 62;chdir.at:5;dpkg-statoverride chdir env+opt root+admindir;dpkg-statoverride command-line chdir; |
| 676 | 63;chdir.at:349;dpkg-split chdir opts;dpkg-split command-line chdir; |
| 677 | 64;chdir.at:349;dpkg-split chdir env;dpkg-split command-line chdir; |
| 678 | 65;chdir.at:349;dpkg-split chdir env+opt admindir;dpkg-split command-line chdir; |
| 679 | 66;chdir.at:349;dpkg-split chdir env+opt root;dpkg-split command-line chdir; |
| 680 | 67;chdir.at:349;dpkg-split chdir env+opt root+admindir;dpkg-split command-line chdir; |
| 681 | 68;chdir.at:349;dpkg-query chdir opts;dpkg-query command-line chdir; |
| 682 | 69;chdir.at:349;dpkg-query chdir env;dpkg-query command-line chdir; |
| 683 | 70;chdir.at:349;dpkg-query chdir env+opt admindir;dpkg-query command-line chdir; |
| 684 | 71;chdir.at:349;dpkg-query chdir env+opt root;dpkg-query command-line chdir; |
| 685 | 72;chdir.at:349;dpkg-query chdir env+opt root+admindir;dpkg-query command-line chdir; |
| 686 | 73;chdir.at:349;dpkg-trigger chdir opts;dpkg-trigger command-line chdir; |
| 687 | 74;chdir.at:349;dpkg-trigger chdir env;dpkg-trigger command-line chdir; |
| 688 | 75;chdir.at:349;dpkg-trigger chdir env+opt admindir;dpkg-trigger command-line chdir; |
| 689 | 76;chdir.at:349;dpkg-trigger chdir env+opt root;dpkg-trigger command-line chdir; |
| 690 | 77;chdir.at:349;dpkg-trigger chdir env+opt root+admindir;dpkg-trigger command-line chdir; |
| 691 | 78;dpkg-arch.at:5;dpkg native architecture support;dpkg native arch; |
| 692 | 79;dpkg-arch.at:18;dpkg foreign architecture support;dpkg foreign arch; |
| 693 | " |
| 694 | # List of the all the test groups. |
| 695 | at_groups_all=`printf "%s\n" "$at_help_all" | sed 's/;.*//'` |
| 696 | |
| 697 | # at_fn_validate_ranges NAME... |
| 698 | # ----------------------------- |
| 699 | # Validate and normalize the test group number contained in each variable |
| 700 | # NAME. Leading zeroes are treated as decimal. |
| 701 | at_fn_validate_ranges () |
| 702 | { |
| 703 | for at_grp |
| 704 | do |
| 705 | eval at_value=\$$at_grp |
| 706 | if test $at_value -lt 1 || test $at_value -gt 79; then |
| 707 | printf "%s\n" "invalid test group: $at_value" >&2 |
| 708 | exit 1 |
| 709 | fi |
| 710 | case $at_value in |
| 711 | 0*) # We want to treat leading 0 as decimal, like expr and test, but |
| 712 | # AS_VAR_ARITH treats it as octal if it uses $(( )). |
| 713 | # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the |
| 714 | # expr fork, but it is not worth the effort to determine if the |
| 715 | # shell supports XSI when the user can just avoid leading 0. |
| 716 | eval $at_grp='`expr $at_value + 0`' ;; |
| 717 | esac |
| 718 | done |
| 719 | } |
| 720 | # List of the tested programs. |
| 721 | at_tested='"dpkg-deb" |
| 722 | "dpkg-split" |
| 723 | "dpkg-realpath" |
| 724 | "dpkg-divert" |
| 725 | "dpkg-trigger" |
| 726 | "dpkg"' |
| 727 | |
| 728 | |
| 729 | at_prev= |
| 730 | for at_option |
| 731 | do |
| 732 | # If the previous option needs an argument, assign it. |
| 733 | if test -n "$at_prev"; then |
| 734 | at_option=$at_prev=$at_option |
| 735 | at_prev= |
| 736 | fi |
| 737 | |
| 738 | case $at_option in |
| 739 | *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;; |
| 740 | *) at_optarg= ;; |
| 741 | esac |
| 742 | |
| 743 | case $at_option in |
| 744 | --help | -h ) |
| 745 | at_help_p=: |
| 746 | ;; |
| 747 | |
| 748 | --list | -l ) |
| 749 | at_list_p=: |
| 750 | ;; |
| 751 | |
| 752 | --version | -V ) |
| 753 | at_version_p=: |
| 754 | ;; |
| 755 | |
| 756 | --clean | -c ) |
| 757 | at_clean=: |
| 758 | ;; |
| 759 | |
| 760 | --color ) |
| 761 | at_color=always |
| 762 | ;; |
| 763 | --color=* ) |
| 764 | case $at_optarg in |
| 765 | no | never | none) at_color=never ;; |
| 766 | auto | tty | if-tty) at_color=auto ;; |
| 767 | always | yes | force) at_color=always ;; |
| 768 | *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'` |
| 769 | as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" "$LINENO" 5 ;; |
| 770 | esac |
| 771 | ;; |
| 772 | |
| 773 | --debug | -d ) |
| 774 | at_debug_p=: |
| 775 | ;; |
| 776 | |
| 777 | --errexit | -e ) |
| 778 | at_debug_p=: |
| 779 | at_errexit_p=: |
| 780 | ;; |
| 781 | |
| 782 | --verbose | -v ) |
| 783 | at_verbose=; at_quiet=: |
| 784 | ;; |
| 785 | |
| 786 | --trace | -x ) |
| 787 | at_traceon='set -x' |
| 788 | at_trace_echo=echo |
| 789 | at_check_filter_trace=at_fn_filter_trace |
| 790 | ;; |
| 791 | |
| 792 | [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9]) |
| 793 | at_fn_validate_ranges at_option |
| 794 | as_fn_append at_groups "$at_option$as_nl" |
| 795 | ;; |
| 796 | |
| 797 | # Ranges |
| 798 | [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-) |
| 799 | at_range_start=`echo $at_option |tr -d X-` |
| 800 | at_fn_validate_ranges at_range_start |
| 801 | at_range=`printf "%s\n" "$at_groups_all" | \ |
| 802 | sed -ne '/^'$at_range_start'$/,$p'` |
| 803 | as_fn_append at_groups "$at_range$as_nl" |
| 804 | ;; |
| 805 | |
| 806 | -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9]) |
| 807 | at_range_end=`echo $at_option |tr -d X-` |
| 808 | at_fn_validate_ranges at_range_end |
| 809 | at_range=`printf "%s\n" "$at_groups_all" | \ |
| 810 | sed -ne '1,/^'$at_range_end'$/p'` |
| 811 | as_fn_append at_groups "$at_range$as_nl" |
| 812 | ;; |
| 813 | |
| 814 | [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \ |
| 815 | [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \ |
| 816 | [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \ |
| 817 | [0-9][0-9][0-9]-[0-9][0-9][0-9] | \ |
| 818 | [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \ |
| 819 | [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] ) |
| 820 | at_range_start=`expr $at_option : '\(.*\)-'` |
| 821 | at_range_end=`expr $at_option : '.*-\(.*\)'` |
| 822 | if test $at_range_start -gt $at_range_end; then |
| 823 | at_tmp=$at_range_end |
| 824 | at_range_end=$at_range_start |
| 825 | at_range_start=$at_tmp |
| 826 | fi |
| 827 | at_fn_validate_ranges at_range_start at_range_end |
| 828 | at_range=`printf "%s\n" "$at_groups_all" | \ |
| 829 | sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'` |
| 830 | as_fn_append at_groups "$at_range$as_nl" |
| 831 | ;; |
| 832 | |
| 833 | # Directory selection. |
| 834 | --directory | -C ) |
| 835 | at_prev=--directory |
| 836 | ;; |
| 837 | --directory=* ) |
| 838 | at_change_dir=: |
| 839 | at_dir=$at_optarg |
| 840 | if test x- = "x$at_dir" ; then |
| 841 | at_dir=./- |
| 842 | fi |
| 843 | ;; |
| 844 | |
| 845 | # Parallel execution. |
| 846 | --jobs | -j ) |
| 847 | at_jobs=0 |
| 848 | ;; |
| 849 | --jobs=* | -j[0-9]* ) |
| 850 | if test -n "$at_optarg"; then |
| 851 | at_jobs=$at_optarg |
| 852 | else |
| 853 | at_jobs=`expr X$at_option : 'X-j\(.*\)'` |
| 854 | fi |
| 855 | case $at_jobs in *[!0-9]*) |
| 856 | at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'` |
| 857 | as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" "$LINENO" 5 ;; |
| 858 | esac |
| 859 | ;; |
| 860 | |
| 861 | # Keywords. |
| 862 | --keywords | -k ) |
| 863 | at_prev=--keywords |
| 864 | ;; |
| 865 | --keywords=* ) |
| 866 | at_groups_selected=$at_help_all |
| 867 | at_save_IFS=$IFS |
| 868 | IFS=, |
| 869 | set X $at_optarg |
| 870 | shift |
| 871 | IFS=$at_save_IFS |
| 872 | for at_keyword |
| 873 | do |
| 874 | at_invert= |
| 875 | case $at_keyword in |
| 876 | '!'*) |
| 877 | at_invert="-v" |
| 878 | at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'` |
| 879 | ;; |
| 880 | esac |
| 881 | # It is on purpose that we match the test group titles too. |
| 882 | at_groups_selected=`printf "%s\n" "$at_groups_selected" | |
| 883 | grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"` |
| 884 | done |
| 885 | # Smash the keywords. |
| 886 | at_groups_selected=`printf "%s\n" "$at_groups_selected" | sed 's/;.*//'` |
| 887 | as_fn_append at_groups "$at_groups_selected$as_nl" |
| 888 | ;; |
| 889 | --recheck) |
| 890 | at_recheck=: |
| 891 | ;; |
| 892 | |
| 893 | *=*) |
| 894 | at_envvar=`expr "x$at_option" : 'x\([^=]*\)='` |
| 895 | # Reject names that are not valid shell variable names. |
| 896 | case $at_envvar in |
| 897 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 898 | as_fn_error $? "invalid variable name: '$at_envvar'" "$LINENO" 5 ;; |
| 899 | esac |
| 900 | at_value=`printf "%s\n" "$at_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 901 | # Export now, but save eval for later and for debug scripts. |
| 902 | export $at_envvar |
| 903 | as_fn_append at_debug_args " $at_envvar='$at_value'" |
| 904 | ;; |
| 905 | |
| 906 | *) printf "%s\n" "$as_me: invalid option: $at_option" >&2 |
| 907 | printf "%s\n" "Try '$0 --help' for more information." >&2 |
| 908 | exit 1 |
| 909 | ;; |
| 910 | esac |
| 911 | done |
| 912 | |
| 913 | # Verify our last option didn't require an argument |
| 914 | if test -n "$at_prev" |
| 915 | then : |
| 916 | as_fn_error $? "'$at_prev' requires an argument" "$LINENO" 5 |
| 917 | fi |
| 918 | |
| 919 | # The file containing the suite. |
| 920 | at_suite_log=$at_dir/$as_me.log |
| 921 | |
| 922 | # Selected test groups. |
| 923 | if test -z "$at_groups$at_recheck"; then |
| 924 | at_groups=$at_groups_all |
| 925 | else |
| 926 | if test -n "$at_recheck" && test -r "$at_suite_log"; then |
| 927 | at_oldfails=`sed -n ' |
| 928 | /^Failed tests:$/,/^Skipped tests:$/{ |
| 929 | s/^[ ]*\([1-9][0-9]*\):.*/\1/p |
| 930 | } |
| 931 | /^Unexpected passes:$/,/^## Detailed failed tests/{ |
| 932 | s/^[ ]*\([1-9][0-9]*\):.*/\1/p |
| 933 | } |
| 934 | /^## Detailed failed tests/q |
| 935 | ' "$at_suite_log"` |
| 936 | as_fn_append at_groups "$at_oldfails$as_nl" |
| 937 | fi |
| 938 | # Sort the tests, removing duplicates. |
| 939 | at_groups=`printf "%s\n" "$at_groups" | sort -nu | sed '/^$/d'` |
| 940 | fi |
| 941 | |
| 942 | if test x"$at_color" = xalways \ |
| 943 | || { test x"$at_color" = xauto && test -t 1; }; then |
| 944 | at_red=`printf '\033[0;31m'` |
| 945 | at_grn=`printf '\033[0;32m'` |
| 946 | at_lgn=`printf '\033[1;32m'` |
| 947 | at_blu=`printf '\033[1;34m'` |
| 948 | at_std=`printf '\033[m'` |
| 949 | else |
| 950 | at_red= at_grn= at_lgn= at_blu= at_std= |
| 951 | fi |
| 952 | |
| 953 | # Help message. |
| 954 | if $at_help_p; then |
| 955 | cat <<_ATEOF || at_write_fail=1 |
| 956 | Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS] |
| 957 | |
| 958 | Run all the tests, or the selected TESTS, given by numeric ranges, and |
| 959 | save a detailed log file. Upon failure, create debugging scripts. |
| 960 | |
| 961 | Do not change environment variables directly. Instead, set them via |
| 962 | command line arguments. Set 'AUTOTEST_PATH' to select the executables |
| 963 | to exercise. Each relative directory is expanded as build and source |
| 964 | directories relative to the top level of this distribution. |
| 965 | E.g., from within the build directory /tmp/foo-1.0, invoking this: |
| 966 | |
| 967 | $ $0 AUTOTEST_PATH=bin |
| 968 | |
| 969 | is equivalent to the following, assuming the source directory is /src/foo-1.0: |
| 970 | |
| 971 | PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0 |
| 972 | _ATEOF |
| 973 | cat <<_ATEOF || at_write_fail=1 |
| 974 | |
| 975 | Operation modes: |
| 976 | -h, --help print the help message, then exit |
| 977 | -V, --version print version number, then exit |
| 978 | -c, --clean remove all the files this test suite might create and exit |
| 979 | -l, --list describes all the tests, or the selected TESTS |
| 980 | _ATEOF |
| 981 | cat <<_ATEOF || at_write_fail=1 |
| 982 | |
| 983 | Execution tuning: |
| 984 | -C, --directory=DIR |
| 985 | change to directory DIR before starting |
| 986 | --color[=never|auto|always] |
| 987 | disable colored test results, or enable even without terminal |
| 988 | -j, --jobs[=N] |
| 989 | Allow N jobs at once; infinite jobs with no arg (default 1) |
| 990 | -k, --keywords=KEYWORDS |
| 991 | select the tests matching all the comma-separated KEYWORDS |
| 992 | multiple '-k' accumulate; prefixed '!' negates a KEYWORD |
| 993 | --recheck select all tests that failed or passed unexpectedly last time |
| 994 | -e, --errexit abort as soon as a test fails; implies --debug |
| 995 | -v, --verbose force more detailed output |
| 996 | default for debugging scripts |
| 997 | -d, --debug inhibit clean up and top-level logging |
| 998 | default for debugging scripts |
| 999 | -x, --trace enable tests shell tracing |
| 1000 | _ATEOF |
| 1001 | cat <<_ATEOF || at_write_fail=1 |
| 1002 | |
| 1003 | Report bugs to <[email protected]>. |
| 1004 | dpkg home page: <https://wiki.debian.org/Teams/Dpkg>. |
| 1005 | _ATEOF |
| 1006 | exit $at_write_fail |
| 1007 | fi |
| 1008 | |
| 1009 | # List of tests. |
| 1010 | if $at_list_p; then |
| 1011 | cat <<_ATEOF || at_write_fail=1 |
| 1012 | dpkg 1.23.7 test suite: dpkg tools functional test suite test groups: |
| 1013 | |
| 1014 | NUM: FILE-NAME:LINE TEST-GROUP-NAME |
| 1015 | KEYWORDS |
| 1016 | |
| 1017 | _ATEOF |
| 1018 | # Pass an empty line as separator between selected groups and help. |
| 1019 | printf "%s\n" "$at_groups$as_nl$as_nl$at_help_all" | |
| 1020 | awk 'NF == 1 && FS != ";" { |
| 1021 | selected[$ 1] = 1 |
| 1022 | next |
| 1023 | } |
| 1024 | /^$/ { FS = ";" } |
| 1025 | NF > 0 { |
| 1026 | if (selected[$ 1]) { |
| 1027 | printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3 |
| 1028 | if ($ 4) { |
| 1029 | lmax = 79 |
| 1030 | indent = " " |
| 1031 | line = indent |
| 1032 | len = length (line) |
| 1033 | n = split ($ 4, a, " ") |
| 1034 | for (i = 1; i <= n; i++) { |
| 1035 | l = length (a[i]) + 1 |
| 1036 | if (i > 1 && len + l > lmax) { |
| 1037 | print line |
| 1038 | line = indent " " a[i] |
| 1039 | len = length (line) |
| 1040 | } else { |
| 1041 | line = line " " a[i] |
| 1042 | len += l |
| 1043 | } |
| 1044 | } |
| 1045 | if (n) |
| 1046 | print line |
| 1047 | } |
| 1048 | } |
| 1049 | }' || at_write_fail=1 |
| 1050 | exit $at_write_fail |
| 1051 | fi |
| 1052 | if $at_version_p; then |
| 1053 | printf "%s\n" "$as_me (dpkg 1.23.7)" && |
| 1054 | cat <<\_ATEOF || at_write_fail=1 |
| 1055 | |
| 1056 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 1057 | This test suite is free software; the Free Software Foundation gives |
| 1058 | unlimited permission to copy, distribute and modify it. |
| 1059 | _ATEOF |
| 1060 | exit $at_write_fail |
| 1061 | fi |
| 1062 | |
| 1063 | # Should we print banners? Yes if more than one test is run. |
| 1064 | case $at_groups in #( |
| 1065 | *$as_nl* ) |
| 1066 | at_print_banners=: ;; #( |
| 1067 | * ) at_print_banners=false ;; |
| 1068 | esac |
| 1069 | # Text for banner N, set to a single space once printed. |
| 1070 | # Banner 1. testsuite.at:5 |
| 1071 | # Category starts at test group 1. |
| 1072 | at_banner_text_1="Binary .deb packages" |
| 1073 | # Banner 2. testsuite.at:11 |
| 1074 | # Category starts at test group 11. |
| 1075 | at_banner_text_2="Split .deb packages" |
| 1076 | # Banner 3. testsuite.at:15 |
| 1077 | # Category starts at test group 13. |
| 1078 | at_banner_text_3="Resolve pathnames" |
| 1079 | # Banner 4. testsuite.at:19 |
| 1080 | # Category starts at test group 15. |
| 1081 | at_banner_text_4="Diversions" |
| 1082 | # Banner 5. testsuite.at:23 |
| 1083 | # Category starts at test group 44. |
| 1084 | at_banner_text_5="Triggers" |
| 1085 | # Banner 6. testsuite.at:27 |
| 1086 | # Category starts at test group 45. |
| 1087 | at_banner_text_6="Change directory options" |
| 1088 | # Banner 7. testsuite.at:29 |
| 1089 | # Category starts at test group 78. |
| 1090 | at_banner_text_7="Architecture support" |
| 1091 | |
| 1092 | # Take any -C into account. |
| 1093 | if $at_change_dir ; then |
| 1094 | test x != "x$at_dir" && cd "$at_dir" \ |
| 1095 | || as_fn_error $? "unable to change directory" "$LINENO" 5 |
| 1096 | at_dir=`pwd` |
| 1097 | fi |
| 1098 | |
| 1099 | # Load the config files for any default variable assignments. |
| 1100 | for at_file in atconfig atlocal |
| 1101 | do |
| 1102 | test -r $at_file || continue |
| 1103 | . ./$at_file || as_fn_error $? "invalid content: $at_file" "$LINENO" 5 |
| 1104 | done |
| 1105 | |
| 1106 | # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix: |
| 1107 | : "${at_top_build_prefix=$at_top_builddir}" |
| 1108 | |
| 1109 | # Perform any assignments requested during argument parsing. |
| 1110 | eval "$at_debug_args" |
| 1111 | |
| 1112 | # atconfig delivers names relative to the directory the test suite is |
| 1113 | # in, but the groups themselves are run in testsuite-dir/group-dir. |
| 1114 | if test -n "$at_top_srcdir"; then |
| 1115 | builddir=../.. |
| 1116 | for at_dir_var in srcdir top_srcdir top_build_prefix |
| 1117 | do |
| 1118 | eval at_val=\$at_$at_dir_var |
| 1119 | case $at_val in |
| 1120 | [\\/$]* | ?:[\\/]* ) at_prefix= ;; |
| 1121 | *) at_prefix=../../ ;; |
| 1122 | esac |
| 1123 | eval "$at_dir_var=\$at_prefix\$at_val" |
| 1124 | done |
| 1125 | fi |
| 1126 | |
| 1127 | ## -------------------- ## |
| 1128 | ## Directory structure. ## |
| 1129 | ## -------------------- ## |
| 1130 | |
| 1131 | # This is the set of directories and files used by this script |
| 1132 | # (non-literals are capitalized): |
| 1133 | # |
| 1134 | # TESTSUITE - the testsuite |
| 1135 | # TESTSUITE.log - summarizes the complete testsuite run |
| 1136 | # TESTSUITE.dir/ - created during a run, remains after -d or failed test |
| 1137 | # + at-groups/ - during a run: status of all groups in run |
| 1138 | # | + NNN/ - during a run: meta-data about test group NNN |
| 1139 | # | | + check-line - location (source file and line) of current AT_CHECK |
| 1140 | # | | + status - exit status of current AT_CHECK |
| 1141 | # | | + stdout - stdout of current AT_CHECK |
| 1142 | # | | + stder1 - stderr, including trace |
| 1143 | # | | + stderr - stderr, with trace filtered out |
| 1144 | # | | + test-source - portion of testsuite that defines group |
| 1145 | # | | + times - timestamps for computing duration |
| 1146 | # | | + pass - created if group passed |
| 1147 | # | | + xpass - created if group xpassed |
| 1148 | # | | + fail - created if group failed |
| 1149 | # | | + xfail - created if group xfailed |
| 1150 | # | | + skip - created if group skipped |
| 1151 | # + at-stop - during a run: end the run if this file exists |
| 1152 | # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction |
| 1153 | # + 0..NNN/ - created for each group NNN, remains after -d or failed test |
| 1154 | # | + TESTSUITE.log - summarizes the group results |
| 1155 | # | + ... - files created during the group |
| 1156 | |
| 1157 | # The directory the whole suite works in. |
| 1158 | # Should be absolute to let the user 'cd' at will. |
| 1159 | at_suite_dir=$at_dir/$as_me.dir |
| 1160 | # The file containing the suite ($at_dir might have changed since earlier). |
| 1161 | at_suite_log=$at_dir/$as_me.log |
| 1162 | # The directory containing helper files per test group. |
| 1163 | at_helper_dir=$at_suite_dir/at-groups |
| 1164 | # Stop file: if it exists, do not start new jobs. |
| 1165 | at_stop_file=$at_suite_dir/at-stop |
| 1166 | # The fifo used for the job dispatcher. |
| 1167 | at_job_fifo=$at_suite_dir/at-job-fifo |
| 1168 | |
| 1169 | if $at_clean; then |
| 1170 | test -d "$at_suite_dir" && |
| 1171 | find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \; |
| 1172 | rm -f -r "$at_suite_dir" "$at_suite_log" |
| 1173 | exit $? |
| 1174 | fi |
| 1175 | |
| 1176 | # Don't take risks: use only absolute directories in PATH. |
| 1177 | # |
| 1178 | # For stand-alone test suites (ie. atconfig was not found), |
| 1179 | # AUTOTEST_PATH is relative to '.'. |
| 1180 | # |
| 1181 | # For embedded test suites, AUTOTEST_PATH is relative to the top level |
| 1182 | # of the package. Then expand it into build/src parts, since users |
| 1183 | # may create executables in both places. |
| 1184 | AUTOTEST_PATH=`printf "%s\n" "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"` |
| 1185 | at_path= |
| 1186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1187 | for as_dir in $AUTOTEST_PATH $PATH |
| 1188 | do |
| 1189 | IFS=$as_save_IFS |
| 1190 | case $as_dir in #((( |
| 1191 | '') as_dir=./ ;; |
| 1192 | */) ;; |
| 1193 | *) as_dir=$as_dir/ ;; |
| 1194 | esac |
| 1195 | test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR |
| 1196 | case $as_dir in |
| 1197 | [\\/]* | ?:[\\/]* ) |
| 1198 | as_fn_append at_path "$as_dir" |
| 1199 | ;; |
| 1200 | * ) |
| 1201 | if test -z "$at_top_build_prefix"; then |
| 1202 | # Stand-alone test suite. |
| 1203 | as_fn_append at_path "$as_dir" |
| 1204 | else |
| 1205 | # Embedded test suite. |
| 1206 | as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR" |
| 1207 | as_fn_append at_path "$at_top_srcdir/$as_dir" |
| 1208 | fi |
| 1209 | ;; |
| 1210 | esac |
| 1211 | done |
| 1212 | IFS=$as_save_IFS |
| 1213 | |
| 1214 | |
| 1215 | # Now build and simplify PATH. |
| 1216 | # |
| 1217 | # There might be directories that don't exist, but don't redirect |
| 1218 | # builtins' (eg., cd) stderr directly: Ultrix's sh hates that. |
| 1219 | at_new_path= |
| 1220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1221 | for as_dir in $at_path |
| 1222 | do |
| 1223 | IFS=$as_save_IFS |
| 1224 | case $as_dir in #((( |
| 1225 | '') as_dir=./ ;; |
| 1226 | */) ;; |
| 1227 | *) as_dir=$as_dir/ ;; |
| 1228 | esac |
| 1229 | test -d "$as_dir" || continue |
| 1230 | case $as_dir in |
| 1231 | [\\/]* | ?:[\\/]* ) ;; |
| 1232 | * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;; |
| 1233 | esac |
| 1234 | case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in |
| 1235 | *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;; |
| 1236 | $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;; |
| 1237 | *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;; |
| 1238 | esac |
| 1239 | done |
| 1240 | IFS=$as_save_IFS |
| 1241 | |
| 1242 | PATH=$at_new_path |
| 1243 | export PATH |
| 1244 | |
| 1245 | # Setting up the FDs. |
| 1246 | # 5 is the log file. Not to be overwritten if '-d'. |
| 1247 | if $at_debug_p; then |
| 1248 | at_suite_log=/dev/null |
| 1249 | else |
| 1250 | : >"$at_suite_log" |
| 1251 | fi |
| 1252 | exec 5>>"$at_suite_log" |
| 1253 | |
| 1254 | # Banners and logs. |
| 1255 | printf "%s\n" "## --------------------------------------------------------- ## |
| 1256 | ## dpkg 1.23.7 test suite: dpkg tools functional test suite. ## |
| 1257 | ## --------------------------------------------------------- ##" |
| 1258 | { |
| 1259 | printf "%s\n" "## --------------------------------------------------------- ## |
| 1260 | ## dpkg 1.23.7 test suite: dpkg tools functional test suite. ## |
| 1261 | ## --------------------------------------------------------- ##" |
| 1262 | echo |
| 1263 | |
| 1264 | printf "%s\n" "$as_me: command line was:" |
| 1265 | printf "%s\n" " \$ $0 $at_cli_args" |
| 1266 | echo |
| 1267 | |
| 1268 | # If ChangeLog exists, list a few lines in case it might help determining |
| 1269 | # the exact version. |
| 1270 | if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then |
| 1271 | printf "%s\n" "## ---------- ## |
| 1272 | ## ChangeLog. ## |
| 1273 | ## ---------- ##" |
| 1274 | echo |
| 1275 | sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog" |
| 1276 | echo |
| 1277 | fi |
| 1278 | |
| 1279 | { |
| 1280 | cat <<_ASUNAME |
| 1281 | ## --------- ## |
| 1282 | ## Platform. ## |
| 1283 | ## --------- ## |
| 1284 | |
| 1285 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1286 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1287 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1288 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1289 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1290 | |
| 1291 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1292 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1293 | |
| 1294 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1295 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1296 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1297 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1298 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1299 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1300 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1301 | |
| 1302 | _ASUNAME |
| 1303 | |
| 1304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1305 | for as_dir in $PATH |
| 1306 | do |
| 1307 | IFS=$as_save_IFS |
| 1308 | case $as_dir in #((( |
| 1309 | '') as_dir=./ ;; |
| 1310 | */) ;; |
| 1311 | *) as_dir=$as_dir/ ;; |
| 1312 | esac |
| 1313 | printf "%s\n" "PATH: $as_dir" |
| 1314 | done |
| 1315 | IFS=$as_save_IFS |
| 1316 | |
| 1317 | } |
| 1318 | echo |
| 1319 | |
| 1320 | # Contents of the config files. |
| 1321 | for at_file in atconfig atlocal |
| 1322 | do |
| 1323 | test -r $at_file || continue |
| 1324 | printf "%s\n" "$as_me: $at_file:" |
| 1325 | sed 's/^/| /' $at_file |
| 1326 | echo |
| 1327 | done |
| 1328 | } >&5 |
| 1329 | |
| 1330 | |
| 1331 | ## ------------------------- ## |
| 1332 | ## Autotest shell functions. ## |
| 1333 | ## ------------------------- ## |
| 1334 | |
| 1335 | # at_fn_banner NUMBER |
| 1336 | # ------------------- |
| 1337 | # Output banner NUMBER, provided the testsuite is running multiple groups and |
| 1338 | # this particular banner has not yet been printed. |
| 1339 | at_fn_banner () |
| 1340 | { |
| 1341 | $at_print_banners || return 0 |
| 1342 | eval at_banner_text=\$at_banner_text_$1 |
| 1343 | test "x$at_banner_text" = "x " && return 0 |
| 1344 | eval "at_banner_text_$1=\" \"" |
| 1345 | if test -z "$at_banner_text"; then |
| 1346 | $at_first || echo |
| 1347 | else |
| 1348 | printf "%s\n" "$as_nl$at_banner_text$as_nl" |
| 1349 | fi |
| 1350 | } # at_fn_banner |
| 1351 | |
| 1352 | # at_fn_check_prepare_notrace REASON LINE |
| 1353 | # --------------------------------------- |
| 1354 | # Perform AT_CHECK preparations for the command at LINE for an untraceable |
| 1355 | # command; REASON is the reason for disabling tracing. |
| 1356 | at_fn_check_prepare_notrace () |
| 1357 | { |
| 1358 | $at_trace_echo "Not enabling shell tracing (command contains $1)" |
| 1359 | printf "%s\n" "$2" >"$at_check_line_file" |
| 1360 | at_check_trace=: at_check_filter=: |
| 1361 | : >"$at_stdout"; : >"$at_stderr" |
| 1362 | } |
| 1363 | |
| 1364 | # at_fn_check_prepare_trace LINE |
| 1365 | # ------------------------------ |
| 1366 | # Perform AT_CHECK preparations for the command at LINE for a traceable |
| 1367 | # command. |
| 1368 | at_fn_check_prepare_trace () |
| 1369 | { |
| 1370 | printf "%s\n" "$1" >"$at_check_line_file" |
| 1371 | at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace |
| 1372 | : >"$at_stdout"; : >"$at_stderr" |
| 1373 | } |
| 1374 | |
| 1375 | # at_fn_check_prepare_dynamic COMMAND LINE |
| 1376 | # ---------------------------------------- |
| 1377 | # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate |
| 1378 | # preparation function. |
| 1379 | at_fn_check_prepare_dynamic () |
| 1380 | { |
| 1381 | case $1 in |
| 1382 | *$as_nl*) |
| 1383 | at_fn_check_prepare_notrace 'an embedded newline' "$2" ;; |
| 1384 | *) |
| 1385 | at_fn_check_prepare_trace "$2" ;; |
| 1386 | esac |
| 1387 | } |
| 1388 | |
| 1389 | # at_fn_filter_trace |
| 1390 | # ------------------ |
| 1391 | # Remove the lines in the file "$at_stderr" generated by "set -x" and print |
| 1392 | # them to stderr. |
| 1393 | at_fn_filter_trace () |
| 1394 | { |
| 1395 | mv "$at_stderr" "$at_stder1" |
| 1396 | grep '^ *+' "$at_stder1" >&2 |
| 1397 | grep -v '^ *+' "$at_stder1" >"$at_stderr" |
| 1398 | } |
| 1399 | |
| 1400 | # at_fn_log_failure FILE-LIST |
| 1401 | # --------------------------- |
| 1402 | # Copy the files in the list on stdout with a "> " prefix, and exit the shell |
| 1403 | # with a failure exit code. |
| 1404 | at_fn_log_failure () |
| 1405 | { |
| 1406 | for file |
| 1407 | do printf "%s\n" "$file:"; sed 's/^/> /' "$file"; done |
| 1408 | echo 1 > "$at_status_file" |
| 1409 | exit 1 |
| 1410 | } |
| 1411 | |
| 1412 | # at_fn_check_skip EXIT-CODE LINE |
| 1413 | # ------------------------------- |
| 1414 | # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit |
| 1415 | # the test group subshell with that same exit code. Use LINE in any report |
| 1416 | # about test failure. |
| 1417 | at_fn_check_skip () |
| 1418 | { |
| 1419 | case $1 in |
| 1420 | 99) echo 99 > "$at_status_file"; at_failed=: |
| 1421 | printf "%s\n" "$2: hard failure"; exit 99;; |
| 1422 | 77) echo 77 > "$at_status_file"; exit 77;; |
| 1423 | esac |
| 1424 | } |
| 1425 | |
| 1426 | # at_fn_check_status EXPECTED EXIT-CODE LINE |
| 1427 | # ------------------------------------------ |
| 1428 | # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing. |
| 1429 | # Otherwise, if it is 77 or 99, exit the test group subshell with that same |
| 1430 | # exit code; if it is anything else print an error message referring to LINE, |
| 1431 | # and fail the test. |
| 1432 | at_fn_check_status () |
| 1433 | { |
| 1434 | case $2 in |
| 1435 | $1 ) ;; |
| 1436 | 77) echo 77 > "$at_status_file"; exit 77;; |
| 1437 | 99) echo 99 > "$at_status_file"; at_failed=: |
| 1438 | printf "%s\n" "$3: hard failure"; exit 99;; |
| 1439 | *) printf "%s\n" "$3: exit code was $2, expected $1" |
| 1440 | at_failed=:;; |
| 1441 | esac |
| 1442 | } |
| 1443 | |
| 1444 | # at_fn_diff_devnull FILE |
| 1445 | # ----------------------- |
| 1446 | # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff |
| 1447 | # invocations. |
| 1448 | at_fn_diff_devnull () |
| 1449 | { |
| 1450 | test -s "$1" || return 0 |
| 1451 | $at_diff "$at_devnull" "$1" |
| 1452 | } |
| 1453 | |
| 1454 | # at_fn_test NUMBER |
| 1455 | # ----------------- |
| 1456 | # Parse out test NUMBER from the tail of this file. |
| 1457 | at_fn_test () |
| 1458 | { |
| 1459 | eval at_sed=\$at_sed$1 |
| 1460 | sed "$at_sed" "$at_myself" > "$at_test_source" |
| 1461 | } |
| 1462 | |
| 1463 | # at_fn_create_debugging_script |
| 1464 | # ----------------------------- |
| 1465 | # Create the debugging script $at_group_dir/run which will reproduce the |
| 1466 | # current test group. |
| 1467 | at_fn_create_debugging_script () |
| 1468 | { |
| 1469 | { |
| 1470 | echo "#! /bin/sh" && |
| 1471 | echo 'test ${ZSH_VERSION+y} && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' && |
| 1472 | printf "%s\n" "cd '$at_dir'" && |
| 1473 | printf "%s\n" "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" && |
| 1474 | echo 'exit 1' |
| 1475 | } >"$at_group_dir/run" && |
| 1476 | chmod +x "$at_group_dir/run" |
| 1477 | } |
| 1478 | |
| 1479 | ## -------------------------------- ## |
| 1480 | ## End of autotest shell functions. ## |
| 1481 | ## -------------------------------- ## |
| 1482 | { |
| 1483 | printf "%s\n" "## ---------------- ## |
| 1484 | ## Tested programs. ## |
| 1485 | ## ---------------- ##" |
| 1486 | echo |
| 1487 | } >&5 |
| 1488 | |
| 1489 | # Report what programs are being tested. |
| 1490 | for at_program in : `eval echo $at_tested` |
| 1491 | do |
| 1492 | case $at_program in #( |
| 1493 | :) : |
| 1494 | continue ;; #( |
| 1495 | [\\/]* | ?:[\\/]*) : |
| 1496 | at_program_=$at_program ;; #( |
| 1497 | *) : |
| 1498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1499 | for as_dir in $PATH |
| 1500 | do |
| 1501 | IFS=$as_save_IFS |
| 1502 | case $as_dir in #((( |
| 1503 | '') as_dir=./ ;; |
| 1504 | */) ;; |
| 1505 | *) as_dir=$as_dir/ ;; |
| 1506 | esac |
| 1507 | test -f "$as_dir$at_program" && break |
| 1508 | done |
| 1509 | IFS=$as_save_IFS |
| 1510 | |
| 1511 | at_program_=$as_dir$at_program ;; |
| 1512 | esac |
| 1513 | |
| 1514 | if test -f "$at_program_"; then |
| 1515 | { |
| 1516 | printf "%s\n" "$at_srcdir/testsuite.at:1: $at_program_ --version" |
| 1517 | "$at_program_" --version </dev/null |
| 1518 | echo |
| 1519 | } >&5 2>&1 |
| 1520 | else |
| 1521 | as_fn_error $? "cannot find $at_program" "$LINENO" 5 |
| 1522 | fi |
| 1523 | done |
| 1524 | |
| 1525 | { |
| 1526 | printf "%s\n" "## ------------------ ## |
| 1527 | ## Running the tests. ## |
| 1528 | ## ------------------ ##" |
| 1529 | } >&5 |
| 1530 | |
| 1531 | at_start_date=`date` |
| 1532 | at_start_time=`date +%s 2>/dev/null` |
| 1533 | printf "%s\n" "$as_me: starting at: $at_start_date" >&5 |
| 1534 | |
| 1535 | # Create the master directory if it doesn't already exist. |
| 1536 | as_dir="$at_suite_dir"; as_fn_mkdir_p || |
| 1537 | as_fn_error $? "cannot create '$at_suite_dir'" "$LINENO" 5 |
| 1538 | |
| 1539 | # Can we diff with '/dev/null'? DU 5.0 refuses. |
| 1540 | if diff /dev/null /dev/null >/dev/null 2>&1; then |
| 1541 | at_devnull=/dev/null |
| 1542 | else |
| 1543 | at_devnull=$at_suite_dir/devnull |
| 1544 | >"$at_devnull" |
| 1545 | fi |
| 1546 | |
| 1547 | # Use 'diff -u' when possible. |
| 1548 | if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff" |
| 1549 | then |
| 1550 | at_diff='diff -u' |
| 1551 | else |
| 1552 | at_diff=diff |
| 1553 | fi |
| 1554 | |
| 1555 | # Get the last needed group. |
| 1556 | for at_group in : $at_groups; do :; done |
| 1557 | |
| 1558 | # Extract the start and end lines of each test group at the tail |
| 1559 | # of this file |
| 1560 | awk ' |
| 1561 | BEGIN { FS="" } |
| 1562 | /^#AT_START_/ { |
| 1563 | start = NR |
| 1564 | } |
| 1565 | /^#AT_STOP_/ { |
| 1566 | test = substr ($ 0, 10) |
| 1567 | print "at_sed" test "=\"1," start "d;" (NR-1) "q\"" |
| 1568 | if (test == "'"$at_group"'") exit |
| 1569 | }' "$at_myself" > "$at_suite_dir/at-source-lines" && |
| 1570 | . "$at_suite_dir/at-source-lines" || |
| 1571 | as_fn_error $? "cannot create test line number cache" "$LINENO" 5 |
| 1572 | rm -f "$at_suite_dir/at-source-lines" |
| 1573 | |
| 1574 | # Set number of jobs for '-j'; avoid more jobs than test groups. |
| 1575 | set X $at_groups; shift; at_max_jobs=$# |
| 1576 | if test $at_max_jobs -eq 0; then |
| 1577 | at_jobs=1 |
| 1578 | fi |
| 1579 | if test $at_jobs -ne 1 && |
| 1580 | { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then |
| 1581 | at_jobs=$at_max_jobs |
| 1582 | fi |
| 1583 | |
| 1584 | # If parallel mode, don't output banners, don't split summary lines. |
| 1585 | if test $at_jobs -ne 1; then |
| 1586 | at_print_banners=false |
| 1587 | at_quiet=: |
| 1588 | fi |
| 1589 | |
| 1590 | # Set up helper dirs. |
| 1591 | rm -rf "$at_helper_dir" && |
| 1592 | mkdir "$at_helper_dir" && |
| 1593 | cd "$at_helper_dir" && |
| 1594 | { test -z "$at_groups" || mkdir $at_groups; } || |
| 1595 | as_fn_error $? "testsuite directory setup failed" "$LINENO" 5 |
| 1596 | |
| 1597 | # Functions for running a test group. We leave the actual |
| 1598 | # test group execution outside of a shell function in order |
| 1599 | # to avoid hitting zsh 4.x exit status bugs. |
| 1600 | |
| 1601 | # at_fn_group_prepare |
| 1602 | # ------------------- |
| 1603 | # Prepare for running a test group. |
| 1604 | at_fn_group_prepare () |
| 1605 | { |
| 1606 | # The directory for additional per-group helper files. |
| 1607 | at_job_dir=$at_helper_dir/$at_group |
| 1608 | # The file containing the location of the last AT_CHECK. |
| 1609 | at_check_line_file=$at_job_dir/check-line |
| 1610 | # The file containing the exit status of the last command. |
| 1611 | at_status_file=$at_job_dir/status |
| 1612 | # The files containing the output of the tested commands. |
| 1613 | at_stdout=$at_job_dir/stdout |
| 1614 | at_stder1=$at_job_dir/stder1 |
| 1615 | at_stderr=$at_job_dir/stderr |
| 1616 | # The file containing the code for a test group. |
| 1617 | at_test_source=$at_job_dir/test-source |
| 1618 | # The file containing dates. |
| 1619 | at_times_file=$at_job_dir/times |
| 1620 | |
| 1621 | # Be sure to come back to the top test directory. |
| 1622 | cd "$at_suite_dir" |
| 1623 | |
| 1624 | # Clearly separate the test groups when verbose. |
| 1625 | $at_first || $at_verbose echo |
| 1626 | |
| 1627 | at_group_normalized=$at_group |
| 1628 | |
| 1629 | eval 'while :; do |
| 1630 | case $at_group_normalized in #( |
| 1631 | '"$at_format"'*) break;; |
| 1632 | esac |
| 1633 | at_group_normalized=0$at_group_normalized |
| 1634 | done' |
| 1635 | |
| 1636 | |
| 1637 | # Create a fresh directory for the next test group, and enter. |
| 1638 | # If one already exists, the user may have invoked ./run from |
| 1639 | # within that directory; we remove the contents, but not the |
| 1640 | # directory itself, so that we aren't pulling the rug out from |
| 1641 | # under the shell's notion of the current directory. |
| 1642 | at_group_dir=$at_suite_dir/$at_group_normalized |
| 1643 | at_group_log=$at_group_dir/$as_me.log |
| 1644 | if test -d "$at_group_dir" |
| 1645 | then |
| 1646 | find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \; |
| 1647 | rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??* |
| 1648 | fi || |
| 1649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5 |
| 1650 | printf "%s\n" "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;} |
| 1651 | # Be tolerant if the above 'rm' was not able to remove the directory. |
| 1652 | as_dir="$at_group_dir"; as_fn_mkdir_p |
| 1653 | |
| 1654 | echo 0 > "$at_status_file" |
| 1655 | |
| 1656 | # In verbose mode, append to the log file *and* show on |
| 1657 | # the standard output; in quiet mode only write to the log. |
| 1658 | if test -z "$at_verbose"; then |
| 1659 | at_tee_pipe='tee -a "$at_group_log"' |
| 1660 | else |
| 1661 | at_tee_pipe='cat >> "$at_group_log"' |
| 1662 | fi |
| 1663 | } |
| 1664 | |
| 1665 | # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER] |
| 1666 | # ------------------------------------------------- |
| 1667 | # Declare the test group ORDINAL, located at LINE with group description DESC, |
| 1668 | # and residing under BANNER. Use PAD to align the status column. |
| 1669 | at_fn_group_banner () |
| 1670 | { |
| 1671 | at_setup_line="$2" |
| 1672 | test -n "$5" && at_fn_banner $5 |
| 1673 | at_desc="$3" |
| 1674 | case $1 in |
| 1675 | [0-9]) at_desc_line=" $1: ";; |
| 1676 | [0-9][0-9]) at_desc_line=" $1: " ;; |
| 1677 | *) at_desc_line="$1: " ;; |
| 1678 | esac |
| 1679 | as_fn_append at_desc_line "$3$4" |
| 1680 | $at_quiet printf %s "$at_desc_line" |
| 1681 | echo "# -*- compilation -*-" >> "$at_group_log" |
| 1682 | } |
| 1683 | |
| 1684 | # at_fn_group_postprocess |
| 1685 | # ----------------------- |
| 1686 | # Perform cleanup after running a test group. |
| 1687 | at_fn_group_postprocess () |
| 1688 | { |
| 1689 | # Be sure to come back to the suite directory, in particular |
| 1690 | # since below we might 'rm' the group directory we are in currently. |
| 1691 | cd "$at_suite_dir" |
| 1692 | |
| 1693 | if test ! -f "$at_check_line_file"; then |
| 1694 | sed "s/^ */$as_me: WARNING: /" <<_ATEOF |
| 1695 | A failure happened in a test group before any test could be |
| 1696 | run. This means that test suite is improperly designed. Please |
| 1697 | report this failure to <[email protected]>. |
| 1698 | _ATEOF |
| 1699 | printf "%s\n" "$at_setup_line" >"$at_check_line_file" |
| 1700 | at_status=99 |
| 1701 | fi |
| 1702 | $at_verbose printf %s "$at_group. $at_setup_line: " |
| 1703 | printf %s "$at_group. $at_setup_line: " >> "$at_group_log" |
| 1704 | case $at_xfail:$at_status in |
| 1705 | yes:0) |
| 1706 | at_msg="UNEXPECTED PASS" |
| 1707 | at_res=xpass |
| 1708 | at_errexit=$at_errexit_p |
| 1709 | at_color=$at_red |
| 1710 | ;; |
| 1711 | no:0) |
| 1712 | at_msg="ok" |
| 1713 | at_res=pass |
| 1714 | at_errexit=false |
| 1715 | at_color=$at_grn |
| 1716 | ;; |
| 1717 | *:77) |
| 1718 | at_msg='skipped ('`cat "$at_check_line_file"`')' |
| 1719 | at_res=skip |
| 1720 | at_errexit=false |
| 1721 | at_color=$at_blu |
| 1722 | ;; |
| 1723 | no:* | *:99) |
| 1724 | at_msg='FAILED ('`cat "$at_check_line_file"`')' |
| 1725 | at_res=fail |
| 1726 | at_errexit=$at_errexit_p |
| 1727 | at_color=$at_red |
| 1728 | ;; |
| 1729 | yes:*) |
| 1730 | at_msg='expected failure ('`cat "$at_check_line_file"`')' |
| 1731 | at_res=xfail |
| 1732 | at_errexit=false |
| 1733 | at_color=$at_lgn |
| 1734 | ;; |
| 1735 | esac |
| 1736 | echo "$at_res" > "$at_job_dir/$at_res" |
| 1737 | # In parallel mode, output the summary line only afterwards. |
| 1738 | if test $at_jobs -ne 1 && test -n "$at_verbose"; then |
| 1739 | printf "%s\n" "$at_desc_line $at_color$at_msg$at_std" |
| 1740 | else |
| 1741 | # Make sure there is a separator even with long titles. |
| 1742 | printf "%s\n" " $at_color$at_msg$at_std" |
| 1743 | fi |
| 1744 | at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg" |
| 1745 | case $at_status in |
| 1746 | 0|77) |
| 1747 | # $at_times_file is only available if the group succeeded. |
| 1748 | # We're not including the group log, so the success message |
| 1749 | # is written in the global log separately. But we also |
| 1750 | # write to the group log in case they're using -d. |
| 1751 | if test -f "$at_times_file"; then |
| 1752 | at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')' |
| 1753 | rm -f "$at_times_file" |
| 1754 | fi |
| 1755 | printf "%s\n" "$at_log_msg" >> "$at_group_log" |
| 1756 | printf "%s\n" "$at_log_msg" >&5 |
| 1757 | |
| 1758 | # Cleanup the group directory, unless the user wants the files |
| 1759 | # or the success was unexpected. |
| 1760 | if $at_debug_p || test $at_res = xpass; then |
| 1761 | at_fn_create_debugging_script |
| 1762 | if test $at_res = xpass && $at_errexit; then |
| 1763 | echo stop > "$at_stop_file" |
| 1764 | fi |
| 1765 | else |
| 1766 | if test -d "$at_group_dir"; then |
| 1767 | find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \; |
| 1768 | rm -fr "$at_group_dir" |
| 1769 | fi |
| 1770 | rm -f "$at_test_source" |
| 1771 | fi |
| 1772 | ;; |
| 1773 | *) |
| 1774 | # Upon failure, include the log into the testsuite's global |
| 1775 | # log. The failure message is written in the group log. It |
| 1776 | # is later included in the global log. |
| 1777 | printf "%s\n" "$at_log_msg" >> "$at_group_log" |
| 1778 | |
| 1779 | # Upon failure, keep the group directory for autopsy, and create |
| 1780 | # the debugging script. With -e, do not start any further tests. |
| 1781 | at_fn_create_debugging_script |
| 1782 | if $at_errexit; then |
| 1783 | echo stop > "$at_stop_file" |
| 1784 | fi |
| 1785 | ;; |
| 1786 | esac |
| 1787 | } |
| 1788 | |
| 1789 | |
| 1790 | ## ------------ ## |
| 1791 | ## Driver loop. ## |
| 1792 | ## ------------ ## |
| 1793 | |
| 1794 | |
| 1795 | if (set -m && set +m && set +b) >/dev/null 2>&1; then |
| 1796 | set +b |
| 1797 | at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=- |
| 1798 | else |
| 1799 | at_job_control_on=: at_job_control_off=: at_job_group= |
| 1800 | fi |
| 1801 | |
| 1802 | for at_signal in 1 2 15; do |
| 1803 | trap 'set +x; set +e |
| 1804 | $at_job_control_off |
| 1805 | at_signal='"$at_signal"' |
| 1806 | echo stop > "$at_stop_file" |
| 1807 | trap "" $at_signal |
| 1808 | at_pgids= |
| 1809 | for at_pgid in `jobs -p 2>/dev/null`; do |
| 1810 | at_pgids="$at_pgids $at_job_group$at_pgid" |
| 1811 | done |
| 1812 | test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null |
| 1813 | wait |
| 1814 | if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then |
| 1815 | echo >&2 |
| 1816 | fi |
| 1817 | at_signame=`kill -l $at_signal 2>&1 || echo $at_signal` |
| 1818 | set x $at_signame |
| 1819 | test 1 -gt 2 && at_signame=$at_signal |
| 1820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5 |
| 1821 | printf "%s\n" "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;} |
| 1822 | as_fn_arith 128 + $at_signal && exit_status=$as_val |
| 1823 | as_fn_exit $exit_status' $at_signal |
| 1824 | done |
| 1825 | |
| 1826 | rm -f "$at_stop_file" |
| 1827 | at_first=: |
| 1828 | |
| 1829 | if test $at_jobs -ne 1 && |
| 1830 | rm -f "$at_job_fifo" && |
| 1831 | test -n "$at_job_group" && |
| 1832 | ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null |
| 1833 | then |
| 1834 | # FIFO job dispatcher. |
| 1835 | |
| 1836 | trap 'at_pids= |
| 1837 | for at_pid in `jobs -p`; do |
| 1838 | at_pids="$at_pids $at_job_group$at_pid" |
| 1839 | done |
| 1840 | if test -n "$at_pids"; then |
| 1841 | at_sig=TSTP |
| 1842 | test ${TMOUT+y} && at_sig=STOP |
| 1843 | kill -$at_sig $at_pids 2>/dev/null |
| 1844 | fi |
| 1845 | kill -STOP $$ |
| 1846 | test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP |
| 1847 | |
| 1848 | echo |
| 1849 | # Turn jobs into a list of numbers, starting from 1. |
| 1850 | at_joblist=`printf "%s\n" "$at_groups" | sed -n 1,${at_jobs}p` |
| 1851 | |
| 1852 | set X $at_joblist |
| 1853 | shift |
| 1854 | for at_group in $at_groups; do |
| 1855 | $at_job_control_on 2>/dev/null |
| 1856 | ( |
| 1857 | # Start one test group. |
| 1858 | $at_job_control_off |
| 1859 | if $at_first; then |
| 1860 | exec 7>"$at_job_fifo" |
| 1861 | else |
| 1862 | exec 6<&- |
| 1863 | fi |
| 1864 | trap 'set +x; set +e |
| 1865 | trap "" PIPE |
| 1866 | echo stop > "$at_stop_file" |
| 1867 | echo >&7 |
| 1868 | as_fn_exit 141' PIPE |
| 1869 | at_fn_group_prepare |
| 1870 | if cd "$at_group_dir" && |
| 1871 | at_fn_test $at_group && |
| 1872 | . "$at_test_source" |
| 1873 | then :; else |
| 1874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5 |
| 1875 | printf "%s\n" "$as_me: WARNING: unable to parse test group: $at_group" >&2;} |
| 1876 | at_failed=: |
| 1877 | fi |
| 1878 | at_fn_group_postprocess |
| 1879 | echo >&7 |
| 1880 | ) & |
| 1881 | $at_job_control_off |
| 1882 | if $at_first; then |
| 1883 | at_first=false |
| 1884 | exec 6<"$at_job_fifo" 7>"$at_job_fifo" |
| 1885 | fi |
| 1886 | shift # Consume one token. |
| 1887 | if test $# -gt 0; then :; else |
| 1888 | read at_token <&6 || break |
| 1889 | set x $* |
| 1890 | fi |
| 1891 | test -f "$at_stop_file" && break |
| 1892 | done |
| 1893 | exec 7>&- |
| 1894 | # Read back the remaining ($at_jobs - 1) tokens. |
| 1895 | set X $at_joblist |
| 1896 | shift |
| 1897 | if test $# -gt 0; then |
| 1898 | shift |
| 1899 | for at_job |
| 1900 | do |
| 1901 | read at_token |
| 1902 | done <&6 |
| 1903 | fi |
| 1904 | exec 6<&- |
| 1905 | wait |
| 1906 | else |
| 1907 | # Run serially, avoid forks and other potential surprises. |
| 1908 | for at_group in $at_groups; do |
| 1909 | at_fn_group_prepare |
| 1910 | if cd "$at_group_dir" && |
| 1911 | at_fn_test $at_group && |
| 1912 | . "$at_test_source"; then :; else |
| 1913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5 |
| 1914 | printf "%s\n" "$as_me: WARNING: unable to parse test group: $at_group" >&2;} |
| 1915 | at_failed=: |
| 1916 | fi |
| 1917 | at_fn_group_postprocess |
| 1918 | test -f "$at_stop_file" && break |
| 1919 | at_first=false |
| 1920 | done |
| 1921 | fi |
| 1922 | |
| 1923 | # Wrap up the test suite with summary statistics. |
| 1924 | cd "$at_helper_dir" |
| 1925 | |
| 1926 | # Use ?..???? when the list must remain sorted, the faster * otherwise. |
| 1927 | at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'` |
| 1928 | at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'` |
| 1929 | at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'` |
| 1930 | at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do |
| 1931 | echo $f; done | sed '/?/d; s,/xpass,,'` |
| 1932 | at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do |
| 1933 | echo $f; done | sed '/?/d; s,/fail,,'` |
| 1934 | |
| 1935 | set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list |
| 1936 | shift; at_group_count=$# |
| 1937 | set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$* |
| 1938 | set X $at_xfail_list; shift; at_xfail_count=$# |
| 1939 | set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$* |
| 1940 | set X $at_skip_list; shift; at_skip_count=$# |
| 1941 | |
| 1942 | as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val |
| 1943 | as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val |
| 1944 | as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val |
| 1945 | |
| 1946 | # Back to the top directory. |
| 1947 | cd "$at_dir" |
| 1948 | rm -rf "$at_helper_dir" |
| 1949 | |
| 1950 | # Compute the duration of the suite. |
| 1951 | at_stop_date=`date` |
| 1952 | at_stop_time=`date +%s 2>/dev/null` |
| 1953 | printf "%s\n" "$as_me: ending at: $at_stop_date" >&5 |
| 1954 | case $at_start_time,$at_stop_time in |
| 1955 | [0-9]*,[0-9]*) |
| 1956 | as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val |
| 1957 | as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val |
| 1958 | as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val |
| 1959 | as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val |
| 1960 | as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val |
| 1961 | at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s" |
| 1962 | printf "%s\n" "$as_me: test suite duration: $at_duration" >&5 |
| 1963 | ;; |
| 1964 | esac |
| 1965 | |
| 1966 | echo |
| 1967 | printf "%s\n" "## ------------- ## |
| 1968 | ## Test results. ## |
| 1969 | ## ------------- ##" |
| 1970 | echo |
| 1971 | { |
| 1972 | echo |
| 1973 | printf "%s\n" "## ------------- ## |
| 1974 | ## Test results. ## |
| 1975 | ## ------------- ##" |
| 1976 | echo |
| 1977 | } >&5 |
| 1978 | |
| 1979 | if test $at_run_count = 1; then |
| 1980 | at_result="1 test" |
| 1981 | at_were=was |
| 1982 | else |
| 1983 | at_result="$at_run_count tests" |
| 1984 | at_were=were |
| 1985 | fi |
| 1986 | if $at_errexit_p && test $at_unexpected_count != 0; then |
| 1987 | if test $at_xpass_count = 1; then |
| 1988 | at_result="$at_result $at_were run, one passed" |
| 1989 | else |
| 1990 | at_result="$at_result $at_were run, one failed" |
| 1991 | fi |
| 1992 | at_result="$at_result unexpectedly and inhibited subsequent tests." |
| 1993 | at_color=$at_red |
| 1994 | else |
| 1995 | # Don't you just love exponential explosion of the number of cases? |
| 1996 | at_color=$at_red |
| 1997 | case $at_xpass_count:$at_fail_count:$at_xfail_count in |
| 1998 | # So far, so good. |
| 1999 | 0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;; |
| 2000 | 0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;; |
| 2001 | |
| 2002 | # Some unexpected failures |
| 2003 | 0:*:0) at_result="$at_result $at_were run, |
| 2004 | $at_fail_count failed unexpectedly." ;; |
| 2005 | |
| 2006 | # Some failures, both expected and unexpected |
| 2007 | 0:*:1) at_result="$at_result $at_were run, |
| 2008 | $at_total_fail_count failed ($at_xfail_count expected failure)." ;; |
| 2009 | 0:*:*) at_result="$at_result $at_were run, |
| 2010 | $at_total_fail_count failed ($at_xfail_count expected failures)." ;; |
| 2011 | |
| 2012 | # No unexpected failures, but some xpasses |
| 2013 | *:0:*) at_result="$at_result $at_were run, |
| 2014 | $at_xpass_count passed unexpectedly." ;; |
| 2015 | |
| 2016 | # No expected failures, but failures and xpasses |
| 2017 | *:1:0) at_result="$at_result $at_were run, |
| 2018 | $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;; |
| 2019 | *:*:0) at_result="$at_result $at_were run, |
| 2020 | $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;; |
| 2021 | |
| 2022 | # All of them. |
| 2023 | *:*:1) at_result="$at_result $at_were run, |
| 2024 | $at_xpass_count passed unexpectedly, |
| 2025 | $at_total_fail_count failed ($at_xfail_count expected failure)." ;; |
| 2026 | *:*:*) at_result="$at_result $at_were run, |
| 2027 | $at_xpass_count passed unexpectedly, |
| 2028 | $at_total_fail_count failed ($at_xfail_count expected failures)." ;; |
| 2029 | esac |
| 2030 | |
| 2031 | if test $at_skip_count = 0 && test $at_run_count -gt 1; then |
| 2032 | at_result="All $at_result" |
| 2033 | fi |
| 2034 | fi |
| 2035 | |
| 2036 | # Now put skips in the mix. |
| 2037 | case $at_skip_count in |
| 2038 | 0) ;; |
| 2039 | 1) at_result="$at_result |
| 2040 | 1 test was skipped." ;; |
| 2041 | *) at_result="$at_result |
| 2042 | $at_skip_count tests were skipped." ;; |
| 2043 | esac |
| 2044 | |
| 2045 | if test $at_unexpected_count = 0; then |
| 2046 | echo "$at_color$at_result$at_std" |
| 2047 | echo "$at_result" >&5 |
| 2048 | else |
| 2049 | echo "${at_color}ERROR: $at_result$at_std" >&2 |
| 2050 | echo "ERROR: $at_result" >&5 |
| 2051 | { |
| 2052 | echo |
| 2053 | printf "%s\n" "## ------------------------ ## |
| 2054 | ## Summary of the failures. ## |
| 2055 | ## ------------------------ ##" |
| 2056 | |
| 2057 | # Summary of failed and skipped tests. |
| 2058 | if test $at_fail_count != 0; then |
| 2059 | echo "Failed tests:" |
| 2060 | $SHELL "$at_myself" $at_fail_list --list |
| 2061 | echo |
| 2062 | fi |
| 2063 | if test $at_skip_count != 0; then |
| 2064 | echo "Skipped tests:" |
| 2065 | $SHELL "$at_myself" $at_skip_list --list |
| 2066 | echo |
| 2067 | fi |
| 2068 | if test $at_xpass_count != 0; then |
| 2069 | echo "Unexpected passes:" |
| 2070 | $SHELL "$at_myself" $at_xpass_list --list |
| 2071 | echo |
| 2072 | fi |
| 2073 | if test $at_fail_count != 0; then |
| 2074 | printf "%s\n" "## ---------------------- ## |
| 2075 | ## Detailed failed tests. ## |
| 2076 | ## ---------------------- ##" |
| 2077 | echo |
| 2078 | for at_group in $at_fail_list |
| 2079 | do |
| 2080 | at_group_normalized=$at_group |
| 2081 | |
| 2082 | eval 'while :; do |
| 2083 | case $at_group_normalized in #( |
| 2084 | '"$at_format"'*) break;; |
| 2085 | esac |
| 2086 | at_group_normalized=0$at_group_normalized |
| 2087 | done' |
| 2088 | |
| 2089 | cat "$at_suite_dir/$at_group_normalized/$as_me.log" |
| 2090 | echo |
| 2091 | done |
| 2092 | echo |
| 2093 | fi |
| 2094 | if test -n "$at_top_srcdir"; then |
| 2095 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 2096 | ## ${at_top_build_prefix}config.log ## |
| 2097 | _ASBOX |
| 2098 | sed 's/^/| /' ${at_top_build_prefix}config.log |
| 2099 | echo |
| 2100 | fi |
| 2101 | } >&5 |
| 2102 | |
| 2103 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 2104 | ## $as_me.log was created. ## |
| 2105 | _ASBOX |
| 2106 | |
| 2107 | echo |
| 2108 | if $at_debug_p; then |
| 2109 | at_msg='per-test log files' |
| 2110 | else |
| 2111 | at_msg="'${at_testdir+${at_testdir}/}$as_me.log'" |
| 2112 | fi |
| 2113 | at_msg1a=${at_xpass_list:+', '} |
| 2114 | at_msg1=$at_fail_list${at_fail_list:+" failed$at_msg1a"} |
| 2115 | at_msg2=$at_xpass_list${at_xpass_list:+" passed unexpectedly"} |
| 2116 | |
| 2117 | printf "%s\n" "Please send $at_msg and all information you think might help: |
| 2118 | |
| 2119 | To: <[email protected]> |
| 2120 | Subject: [dpkg 1.23.7] $as_me: $at_msg1$at_msg2 |
| 2121 | |
| 2122 | You may investigate any problem if you feel able to do so, in which |
| 2123 | case the test suite provides a good starting point. Its output may |
| 2124 | be found below '${at_testdir+${at_testdir}/}$as_me.dir'. |
| 2125 | " |
| 2126 | exit 1 |
| 2127 | fi |
| 2128 | |
| 2129 | exit 0 |
| 2130 | |
| 2131 | ## ------------- ## |
| 2132 | ## Actual tests. ## |
| 2133 | ## ------------- ## |
| 2134 | #AT_START_1 |
| 2135 | at_fn_group_banner 1 'deb-format.at:1' \ |
| 2136 | "dpkg-deb options" " " 1 |
| 2137 | at_xfail=no |
| 2138 | ( |
| 2139 | printf "%s\n" "1. $at_setup_line: testing $at_desc ..." |
| 2140 | $at_traceon |
| 2141 | |
| 2142 | |
| 2143 | |
| 2144 | { set +x |
| 2145 | printf "%s\n" "$at_srcdir/deb-format.at:4: dpkg-deb --version" |
| 2146 | at_fn_check_prepare_trace "deb-format.at:4" |
| 2147 | ( $at_check_trace; dpkg-deb --version |
| 2148 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2149 | at_status=$? at_failed=false |
| 2150 | $at_check_filter |
| 2151 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2152 | echo stdout:; cat "$at_stdout" |
| 2153 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:4" |
| 2154 | $at_failed && at_fn_log_failure |
| 2155 | $at_traceon; } |
| 2156 | |
| 2157 | { set +x |
| 2158 | printf "%s\n" "$at_srcdir/deb-format.at:5: dpkg-deb --help" |
| 2159 | at_fn_check_prepare_trace "deb-format.at:5" |
| 2160 | ( $at_check_trace; dpkg-deb --help |
| 2161 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2162 | at_status=$? at_failed=false |
| 2163 | $at_check_filter |
| 2164 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2165 | echo stdout:; cat "$at_stdout" |
| 2166 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:5" |
| 2167 | $at_failed && at_fn_log_failure |
| 2168 | $at_traceon; } |
| 2169 | |
| 2170 | |
| 2171 | set +x |
| 2172 | $at_times_p && times >"$at_times_file" |
| 2173 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2174 | read at_status <"$at_status_file" |
| 2175 | #AT_STOP_1 |
| 2176 | #AT_START_2 |
| 2177 | at_fn_group_banner 2 'deb-format.at:10' \ |
| 2178 | "dpkg-deb .deb format 0.93x" " " 1 |
| 2179 | at_xfail=no |
| 2180 | ( |
| 2181 | printf "%s\n" "2. $at_setup_line: testing $at_desc ..." |
| 2182 | $at_traceon |
| 2183 | |
| 2184 | |
| 2185 | |
| 2186 | printf "%s\n" "deb-format.at:13" >"$at_check_line_file" |
| 2187 | (! command -v gzip >/dev/null) \ |
| 2188 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:13" |
| 2189 | |
| 2190 | cat >pkg-deb-old-bogus-only-version.deb <<'_ATEOF' |
| 2191 | 0.939000 |
| 2192 | _ATEOF |
| 2193 | |
| 2194 | { set +x |
| 2195 | printf "%s\n" "$at_srcdir/deb-format.at:17: |
| 2196 | # Check truncated old deb w/ only version magic |
| 2197 | dpkg-deb --info pkg-deb-old-bogus-only-version.deb |
| 2198 | " |
| 2199 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:17" |
| 2200 | ( $at_check_trace; |
| 2201 | # Check truncated old deb w/ only version magic |
| 2202 | dpkg-deb --info pkg-deb-old-bogus-only-version.deb |
| 2203 | |
| 2204 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2205 | at_status=$? at_failed=false |
| 2206 | $at_check_filter |
| 2207 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: unexpected end of file in archive control member size in pkg-deb-old-bogus-only-version.deb |
| 2208 | " | \ |
| 2209 | $at_diff - "$at_stderr" || at_failed=: |
| 2210 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2211 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:17" |
| 2212 | $at_failed && at_fn_log_failure |
| 2213 | $at_traceon; } |
| 2214 | |
| 2215 | |
| 2216 | cat >pkg-deb-old-unsupported-version.deb <<'_ATEOF' |
| 2217 | 0.938000 |
| 2218 | _ATEOF |
| 2219 | |
| 2220 | { set +x |
| 2221 | printf "%s\n" "$at_srcdir/deb-format.at:25: |
| 2222 | # Check unsupported old deb version |
| 2223 | dpkg-deb --info pkg-deb-old-unsupported-version.deb |
| 2224 | " |
| 2225 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:25" |
| 2226 | ( $at_check_trace; |
| 2227 | # Check unsupported old deb version |
| 2228 | dpkg-deb --info pkg-deb-old-unsupported-version.deb |
| 2229 | |
| 2230 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2231 | at_status=$? at_failed=false |
| 2232 | $at_check_filter |
| 2233 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: archive 'pkg-deb-old-unsupported-version.deb' has unsupported format version: 0.938000 |
| 2234 | " | \ |
| 2235 | $at_diff - "$at_stderr" || at_failed=: |
| 2236 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2237 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:25" |
| 2238 | $at_failed && at_fn_log_failure |
| 2239 | $at_traceon; } |
| 2240 | |
| 2241 | |
| 2242 | |
| 2243 | |
| 2244 | mkdir -p 'pkg-deb-old-format/DEBIAN' |
| 2245 | |
| 2246 | cat >'pkg-deb-old-format/DEBIAN/control' <<CTRL_TEMPL |
| 2247 | Package: pkg-deb-old-format |
| 2248 | Version: 0.0-1 |
| 2249 | Section: test |
| 2250 | Priority: extra |
| 2251 | Maintainer: Dpkg Developers <[email protected]> |
| 2252 | Architecture: all |
| 2253 | Description: test package |
| 2254 | CTRL_TEMPL |
| 2255 | |
| 2256 | |
| 2257 | |
| 2258 | $PERL -p -i -E 's/^Description:.*$/$& - deb old format support/' 'pkg-deb-old-format/DEBIAN/control' |
| 2259 | |
| 2260 | cat >pkg-deb-old-format/file-templ <<'_ATEOF' |
| 2261 | test |
| 2262 | _ATEOF |
| 2263 | |
| 2264 | { set +x |
| 2265 | printf "%s\n" "$at_srcdir/deb-format.at:36: |
| 2266 | # Initialize the template package |
| 2267 | mv pkg-deb-old-format pkg-old-templ |
| 2268 | cp \$top_srcdir/ChangeLog.old pkg-old-templ/ |
| 2269 | chmod 0644 pkg-old-templ/ChangeLog.old |
| 2270 | chmod -R u+w pkg-old-templ |
| 2271 | find pkg-old-templ | xargs touch -t 197001010100.00 |
| 2272 | dpkg-deb --deb-format=0.939000 --root-owner-group -b pkg-old-templ >/dev/null |
| 2273 | |
| 2274 | dpkg-deb --ctrl-tarfile pkg-old-templ.deb >ctrl.tar |
| 2275 | dpkg-deb --fsys-tarfile pkg-old-templ.deb >fsys.tar |
| 2276 | gzip -n ctrl.tar |
| 2277 | gzip -n fsys.tar |
| 2278 | |
| 2279 | # Create deb-old 0.939 |
| 2280 | echo '0.939000' >pkg-old.deb |
| 2281 | |
| 2282 | \$PERL -E 'say -s shift' \"ctrl.tar.gz\" >>pkg-old.deb |
| 2283 | cat ctrl.tar.gz >>pkg-old.deb |
| 2284 | cat fsys.tar.gz >>pkg-old.deb |
| 2285 | " |
| 2286 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:36" |
| 2287 | ( $at_check_trace; |
| 2288 | # Initialize the template package |
| 2289 | mv pkg-deb-old-format pkg-old-templ |
| 2290 | cp $top_srcdir/ChangeLog.old pkg-old-templ/ |
| 2291 | chmod 0644 pkg-old-templ/ChangeLog.old |
| 2292 | chmod -R u+w pkg-old-templ |
| 2293 | find pkg-old-templ | xargs touch -t 197001010100.00 |
| 2294 | dpkg-deb --deb-format=0.939000 --root-owner-group -b pkg-old-templ >/dev/null |
| 2295 | |
| 2296 | dpkg-deb --ctrl-tarfile pkg-old-templ.deb >ctrl.tar |
| 2297 | dpkg-deb --fsys-tarfile pkg-old-templ.deb >fsys.tar |
| 2298 | gzip -n ctrl.tar |
| 2299 | gzip -n fsys.tar |
| 2300 | |
| 2301 | # Create deb-old 0.939 |
| 2302 | echo '0.939000' >pkg-old.deb |
| 2303 | |
| 2304 | $PERL -E 'say -s shift' "ctrl.tar.gz" >>pkg-old.deb |
| 2305 | cat ctrl.tar.gz >>pkg-old.deb |
| 2306 | cat fsys.tar.gz >>pkg-old.deb |
| 2307 | |
| 2308 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2309 | at_status=$? at_failed=false |
| 2310 | $at_check_filter |
| 2311 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2312 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2313 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:36" |
| 2314 | $at_failed && at_fn_log_failure |
| 2315 | $at_traceon; } |
| 2316 | |
| 2317 | |
| 2318 | DEB_OLD_CTRL_SIZE=$( |
| 2319 | $PERL -E 'say -s shift' "ctrl.tar.gz" ) |
| 2320 | DEB_OLD_FSYS_SIZE=$( |
| 2321 | $PERL -E 'say -s shift' "fsys.tar.gz" ) |
| 2322 | DEB_OLD_SIZE=$( |
| 2323 | $PERL -E 'say -s shift' "pkg-old.deb" ) |
| 2324 | |
| 2325 | { set +x |
| 2326 | printf "%s\n" "$at_srcdir/deb-format.at:61: |
| 2327 | # Check old package metadata |
| 2328 | dpkg-deb -I pkg-old.deb |
| 2329 | " |
| 2330 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:61" |
| 2331 | ( $at_check_trace; |
| 2332 | # Check old package metadata |
| 2333 | dpkg-deb -I pkg-old.deb |
| 2334 | |
| 2335 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2336 | at_status=$? at_failed=false |
| 2337 | $at_check_filter |
| 2338 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2339 | echo >>"$at_stdout"; printf "%s\n" " old Debian package, version 0.939000. |
| 2340 | size $DEB_OLD_SIZE bytes: control archive=$DEB_OLD_CTRL_SIZE, main archive=$DEB_OLD_FSYS_SIZE. |
| 2341 | 201 bytes, 7 lines control |
| 2342 | Package: pkg-deb-old-format |
| 2343 | Version: 0.0-1 |
| 2344 | Section: test |
| 2345 | Priority: extra |
| 2346 | Maintainer: Dpkg Developers <[email protected]> |
| 2347 | Architecture: all |
| 2348 | Description: test package - deb old format support |
| 2349 | " | \ |
| 2350 | $at_diff - "$at_stdout" || at_failed=: |
| 2351 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:61" |
| 2352 | $at_failed && at_fn_log_failure |
| 2353 | $at_traceon; } |
| 2354 | |
| 2355 | |
| 2356 | { set +x |
| 2357 | printf "%s\n" "$at_srcdir/deb-format.at:76: |
| 2358 | # Check old package contents |
| 2359 | dpkg-deb -c pkg-old.deb |
| 2360 | " |
| 2361 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:76" |
| 2362 | ( $at_check_trace; |
| 2363 | # Check old package contents |
| 2364 | dpkg-deb -c pkg-old.deb |
| 2365 | |
| 2366 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2367 | at_status=$? at_failed=false |
| 2368 | $at_check_filter |
| 2369 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2370 | echo >>"$at_stdout"; printf "%s\n" "drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 2371 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 2372 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 2373 | " | \ |
| 2374 | $at_diff - "$at_stdout" || at_failed=: |
| 2375 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:76" |
| 2376 | $at_failed && at_fn_log_failure |
| 2377 | $at_traceon; } |
| 2378 | |
| 2379 | |
| 2380 | set +x |
| 2381 | $at_times_p && times >"$at_times_file" |
| 2382 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 2383 | read at_status <"$at_status_file" |
| 2384 | #AT_STOP_2 |
| 2385 | #AT_START_3 |
| 2386 | at_fn_group_banner 3 'deb-format.at:109' \ |
| 2387 | "dpkg-deb .deb format 2.x (core)" " " 1 |
| 2388 | at_xfail=no |
| 2389 | ( |
| 2390 | printf "%s\n" "3. $at_setup_line: testing $at_desc ..." |
| 2391 | $at_traceon |
| 2392 | |
| 2393 | |
| 2394 | |
| 2395 | printf "%s\n" "deb-format.at:112" >"$at_check_line_file" |
| 2396 | (! command -v gzip >/dev/null) \ |
| 2397 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:112" |
| 2398 | |
| 2399 | : >pkg-deb-bogus-empty.deb |
| 2400 | { set +x |
| 2401 | printf "%s\n" "$at_srcdir/deb-format.at:115: |
| 2402 | # Check truncated deb w/ 0 size |
| 2403 | dpkg-deb --info pkg-deb-bogus-empty.deb |
| 2404 | " |
| 2405 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:115" |
| 2406 | ( $at_check_trace; |
| 2407 | # Check truncated deb w/ 0 size |
| 2408 | dpkg-deb --info pkg-deb-bogus-empty.deb |
| 2409 | |
| 2410 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2411 | at_status=$? at_failed=false |
| 2412 | $at_check_filter |
| 2413 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: unexpected end of file in archive magic version number in pkg-deb-bogus-empty.deb |
| 2414 | " | \ |
| 2415 | $at_diff - "$at_stderr" || at_failed=: |
| 2416 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2417 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:115" |
| 2418 | $at_failed && at_fn_log_failure |
| 2419 | $at_traceon; } |
| 2420 | |
| 2421 | |
| 2422 | : >unknown |
| 2423 | |
| 2424 | |
| 2425 | |
| 2426 | |
| 2427 | mkdir -p 'pkg-deb-format/DEBIAN' |
| 2428 | |
| 2429 | cat >'pkg-deb-format/DEBIAN/control' <<CTRL_TEMPL |
| 2430 | Package: pkg-deb-format |
| 2431 | Version: 0.0-1 |
| 2432 | Section: test |
| 2433 | Priority: extra |
| 2434 | Maintainer: Dpkg Developers <[email protected]> |
| 2435 | Architecture: all |
| 2436 | Description: test package |
| 2437 | CTRL_TEMPL |
| 2438 | |
| 2439 | |
| 2440 | |
| 2441 | $PERL -p -i -E 's/^Description:.*$/$& - deb format support/' 'pkg-deb-format/DEBIAN/control' |
| 2442 | |
| 2443 | cat >pkg-deb-format/file-templ <<'_ATEOF' |
| 2444 | test |
| 2445 | _ATEOF |
| 2446 | |
| 2447 | { set +x |
| 2448 | printf "%s\n" "$at_srcdir/deb-format.at:123: |
| 2449 | # Initialize the template package |
| 2450 | mv pkg-deb-format pkg-templ |
| 2451 | cp \$top_srcdir/ChangeLog.old pkg-templ/ |
| 2452 | chmod 0644 pkg-templ/ChangeLog.old |
| 2453 | chmod -R u+w pkg-templ |
| 2454 | find pkg-templ | xargs touch -t 197001010100.00 |
| 2455 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 2456 | |
| 2457 | # Extract the base members |
| 2458 | |
| 2459 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 2460 | |
| 2461 | gzip -cn control.tar >control.tar.gz |
| 2462 | gzip -cn data.tar >data.tar.gz |
| 2463 | " |
| 2464 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:123" |
| 2465 | ( $at_check_trace; |
| 2466 | # Initialize the template package |
| 2467 | mv pkg-deb-format pkg-templ |
| 2468 | cp $top_srcdir/ChangeLog.old pkg-templ/ |
| 2469 | chmod 0644 pkg-templ/ChangeLog.old |
| 2470 | chmod -R u+w pkg-templ |
| 2471 | find pkg-templ | xargs touch -t 197001010100.00 |
| 2472 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 2473 | |
| 2474 | # Extract the base members |
| 2475 | |
| 2476 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 2477 | |
| 2478 | gzip -cn control.tar >control.tar.gz |
| 2479 | gzip -cn data.tar >data.tar.gz |
| 2480 | |
| 2481 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2482 | at_status=$? at_failed=false |
| 2483 | $at_check_filter |
| 2484 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2485 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 2486 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:123" |
| 2487 | $at_failed && at_fn_log_failure |
| 2488 | $at_traceon; } |
| 2489 | |
| 2490 | |
| 2491 | |
| 2492 | { set +x |
| 2493 | printf "%s\n" "$at_srcdir/deb-format.at:125: |
| 2494 | # Test debian-binary with 2.x versions |
| 2495 | echo 2.999 >debian-binary |
| 2496 | |
| 2497 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-version-2x.deb debian-binary control.tar data.tar |
| 2498 | |
| 2499 | |
| 2500 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-version-2x.deb |
| 2501 | |
| 2502 | |
| 2503 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-templ.deb debian-binary |
| 2504 | |
| 2505 | dpkg-deb -I pkg-version-2x.deb |
| 2506 | " |
| 2507 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:125" |
| 2508 | ( $at_check_trace; |
| 2509 | # Test debian-binary with 2.x versions |
| 2510 | echo 2.999 >debian-binary |
| 2511 | |
| 2512 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-version-2x.deb debian-binary control.tar data.tar |
| 2513 | |
| 2514 | |
| 2515 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-version-2x.deb |
| 2516 | |
| 2517 | |
| 2518 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-templ.deb debian-binary |
| 2519 | |
| 2520 | dpkg-deb -I pkg-version-2x.deb |
| 2521 | |
| 2522 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2523 | at_status=$? at_failed=false |
| 2524 | $at_check_filter |
| 2525 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2526 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2527 | control.tar |
| 2528 | data.tar |
| 2529 | new Debian package, version 2.999. |
| 2530 | size 655554 bytes: control archive=10240 bytes. |
| 2531 | 193 bytes, 7 lines control |
| 2532 | Package: pkg-deb-format |
| 2533 | Version: 0.0-1 |
| 2534 | Section: test |
| 2535 | Priority: extra |
| 2536 | Maintainer: Dpkg Developers <[email protected]> |
| 2537 | Architecture: all |
| 2538 | Description: test package - deb format support |
| 2539 | " | \ |
| 2540 | $at_diff - "$at_stdout" || at_failed=: |
| 2541 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:125" |
| 2542 | $at_failed && at_fn_log_failure |
| 2543 | $at_traceon; } |
| 2544 | |
| 2545 | |
| 2546 | { set +x |
| 2547 | printf "%s\n" "$at_srcdir/deb-format.at:147: |
| 2548 | # Test debian-binary with extra lines |
| 2549 | echo \"extra line\" >>debian-binary |
| 2550 | |
| 2551 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-magic-extra.deb debian-binary control.tar data.tar |
| 2552 | |
| 2553 | |
| 2554 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-magic-extra.deb |
| 2555 | |
| 2556 | |
| 2557 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-templ.deb debian-binary |
| 2558 | |
| 2559 | dpkg-deb -I pkg-magic-extra.deb |
| 2560 | " |
| 2561 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:147" |
| 2562 | ( $at_check_trace; |
| 2563 | # Test debian-binary with extra lines |
| 2564 | echo "extra line" >>debian-binary |
| 2565 | |
| 2566 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-magic-extra.deb debian-binary control.tar data.tar |
| 2567 | |
| 2568 | |
| 2569 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-magic-extra.deb |
| 2570 | |
| 2571 | |
| 2572 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-templ.deb debian-binary |
| 2573 | |
| 2574 | dpkg-deb -I pkg-magic-extra.deb |
| 2575 | |
| 2576 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2577 | at_status=$? at_failed=false |
| 2578 | $at_check_filter |
| 2579 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2580 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2581 | control.tar |
| 2582 | data.tar |
| 2583 | new Debian package, version 2.0. |
| 2584 | size 655564 bytes: control archive=10240 bytes. |
| 2585 | 193 bytes, 7 lines control |
| 2586 | Package: pkg-deb-format |
| 2587 | Version: 0.0-1 |
| 2588 | Section: test |
| 2589 | Priority: extra |
| 2590 | Maintainer: Dpkg Developers <[email protected]> |
| 2591 | Architecture: all |
| 2592 | Description: test package - deb format support |
| 2593 | " | \ |
| 2594 | $at_diff - "$at_stdout" || at_failed=: |
| 2595 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:147" |
| 2596 | $at_failed && at_fn_log_failure |
| 2597 | $at_traceon; } |
| 2598 | |
| 2599 | |
| 2600 | { set +x |
| 2601 | printf "%s\n" "$at_srcdir/deb-format.at:169: |
| 2602 | # Test missing debian-binary member |
| 2603 | |
| 2604 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-missing-magic.deb control.tar data.tar |
| 2605 | |
| 2606 | |
| 2607 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-missing-magic.deb |
| 2608 | |
| 2609 | dpkg-deb -I pkg-missing-magic.deb |
| 2610 | " |
| 2611 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:169" |
| 2612 | ( $at_check_trace; |
| 2613 | # Test missing debian-binary member |
| 2614 | |
| 2615 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-missing-magic.deb control.tar data.tar |
| 2616 | |
| 2617 | |
| 2618 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-missing-magic.deb |
| 2619 | |
| 2620 | dpkg-deb -I pkg-missing-magic.deb |
| 2621 | |
| 2622 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2623 | at_status=$? at_failed=false |
| 2624 | $at_check_filter |
| 2625 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: file 'pkg-missing-magic.deb' is not a Debian binary archive (try dpkg-split?) |
| 2626 | " | \ |
| 2627 | $at_diff - "$at_stderr" || at_failed=: |
| 2628 | echo >>"$at_stdout"; printf "%s\n" "control.tar |
| 2629 | data.tar |
| 2630 | " | \ |
| 2631 | $at_diff - "$at_stdout" || at_failed=: |
| 2632 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:169" |
| 2633 | $at_failed && at_fn_log_failure |
| 2634 | $at_traceon; } |
| 2635 | |
| 2636 | |
| 2637 | { set +x |
| 2638 | printf "%s\n" "$at_srcdir/deb-format.at:179: |
| 2639 | # Test missing control member |
| 2640 | |
| 2641 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-missing-control.deb debian-binary data.tar |
| 2642 | |
| 2643 | |
| 2644 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-missing-control.deb |
| 2645 | |
| 2646 | dpkg-deb -I pkg-missing-control.deb |
| 2647 | " |
| 2648 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:179" |
| 2649 | ( $at_check_trace; |
| 2650 | # Test missing control member |
| 2651 | |
| 2652 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-missing-control.deb debian-binary data.tar |
| 2653 | |
| 2654 | |
| 2655 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-missing-control.deb |
| 2656 | |
| 2657 | dpkg-deb -I pkg-missing-control.deb |
| 2658 | |
| 2659 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2660 | at_status=$? at_failed=false |
| 2661 | $at_check_filter |
| 2662 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: archive 'pkg-missing-control.deb' has premature member 'data.tar' before 'control.tar', giving up |
| 2663 | " | \ |
| 2664 | $at_diff - "$at_stderr" || at_failed=: |
| 2665 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2666 | data.tar |
| 2667 | " | \ |
| 2668 | $at_diff - "$at_stdout" || at_failed=: |
| 2669 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:179" |
| 2670 | $at_failed && at_fn_log_failure |
| 2671 | $at_traceon; } |
| 2672 | |
| 2673 | |
| 2674 | { set +x |
| 2675 | printf "%s\n" "$at_srcdir/deb-format.at:189: |
| 2676 | # Test missing data member |
| 2677 | |
| 2678 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-missing-data.deb debian-binary control.tar |
| 2679 | |
| 2680 | |
| 2681 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-missing-data.deb |
| 2682 | |
| 2683 | dpkg-deb -c pkg-missing-data.deb |
| 2684 | " |
| 2685 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:189" |
| 2686 | ( $at_check_trace; |
| 2687 | # Test missing data member |
| 2688 | |
| 2689 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-missing-data.deb debian-binary control.tar |
| 2690 | |
| 2691 | |
| 2692 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-missing-data.deb |
| 2693 | |
| 2694 | dpkg-deb -c pkg-missing-data.deb |
| 2695 | |
| 2696 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2697 | at_status=$? at_failed=false |
| 2698 | $at_check_filter |
| 2699 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: unexpected end of file in archive member header in pkg-missing-data.deb |
| 2700 | " | \ |
| 2701 | $at_diff - "$at_stderr" || at_failed=: |
| 2702 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2703 | control.tar |
| 2704 | " | \ |
| 2705 | $at_diff - "$at_stdout" || at_failed=: |
| 2706 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:189" |
| 2707 | $at_failed && at_fn_log_failure |
| 2708 | $at_traceon; } |
| 2709 | |
| 2710 | |
| 2711 | { set +x |
| 2712 | printf "%s\n" "$at_srcdir/deb-format.at:199: |
| 2713 | # Test duplicate debian-binary member |
| 2714 | |
| 2715 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-duplicate-magic.deb debian-binary debian-binary control.tar data.tar |
| 2716 | |
| 2717 | |
| 2718 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-duplicate-magic.deb |
| 2719 | |
| 2720 | dpkg-deb -I pkg-duplicate-magic.deb |
| 2721 | " |
| 2722 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:199" |
| 2723 | ( $at_check_trace; |
| 2724 | # Test duplicate debian-binary member |
| 2725 | |
| 2726 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-duplicate-magic.deb debian-binary debian-binary control.tar data.tar |
| 2727 | |
| 2728 | |
| 2729 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-duplicate-magic.deb |
| 2730 | |
| 2731 | dpkg-deb -I pkg-duplicate-magic.deb |
| 2732 | |
| 2733 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2734 | at_status=$? at_failed=false |
| 2735 | $at_check_filter |
| 2736 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: archive 'pkg-duplicate-magic.deb' has premature member 'debian-binary' before 'control.tar', giving up |
| 2737 | " | \ |
| 2738 | $at_diff - "$at_stderr" || at_failed=: |
| 2739 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2740 | debian-binary |
| 2741 | control.tar |
| 2742 | data.tar |
| 2743 | " | \ |
| 2744 | $at_diff - "$at_stdout" || at_failed=: |
| 2745 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:199" |
| 2746 | $at_failed && at_fn_log_failure |
| 2747 | $at_traceon; } |
| 2748 | |
| 2749 | |
| 2750 | { set +x |
| 2751 | printf "%s\n" "$at_srcdir/deb-format.at:211: |
| 2752 | # Test duplicate control member |
| 2753 | |
| 2754 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-duplicate-control.deb debian-binary control.tar control.tar data.tar |
| 2755 | |
| 2756 | |
| 2757 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-duplicate-control.deb |
| 2758 | |
| 2759 | dpkg-deb -c pkg-duplicate-control.deb |
| 2760 | " |
| 2761 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:211" |
| 2762 | ( $at_check_trace; |
| 2763 | # Test duplicate control member |
| 2764 | |
| 2765 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-duplicate-control.deb debian-binary control.tar control.tar data.tar |
| 2766 | |
| 2767 | |
| 2768 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-duplicate-control.deb |
| 2769 | |
| 2770 | dpkg-deb -c pkg-duplicate-control.deb |
| 2771 | |
| 2772 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2773 | at_status=$? at_failed=false |
| 2774 | $at_check_filter |
| 2775 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: archive 'pkg-duplicate-control.deb' contains two control members, giving up |
| 2776 | " | \ |
| 2777 | $at_diff - "$at_stderr" || at_failed=: |
| 2778 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2779 | control.tar |
| 2780 | control.tar |
| 2781 | data.tar |
| 2782 | " | \ |
| 2783 | $at_diff - "$at_stdout" || at_failed=: |
| 2784 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:211" |
| 2785 | $at_failed && at_fn_log_failure |
| 2786 | $at_traceon; } |
| 2787 | |
| 2788 | |
| 2789 | { set +x |
| 2790 | printf "%s\n" "$at_srcdir/deb-format.at:223: |
| 2791 | # Test mixed member (index 1) |
| 2792 | |
| 2793 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-mixed-1-member.deb debian-binary unknown control.tar data.tar |
| 2794 | |
| 2795 | |
| 2796 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-mixed-1-member.deb |
| 2797 | |
| 2798 | dpkg-deb -I pkg-mixed-1-member.deb |
| 2799 | " |
| 2800 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:223" |
| 2801 | ( $at_check_trace; |
| 2802 | # Test mixed member (index 1) |
| 2803 | |
| 2804 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-mixed-1-member.deb debian-binary unknown control.tar data.tar |
| 2805 | |
| 2806 | |
| 2807 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-mixed-1-member.deb |
| 2808 | |
| 2809 | dpkg-deb -I pkg-mixed-1-member.deb |
| 2810 | |
| 2811 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2812 | at_status=$? at_failed=false |
| 2813 | $at_check_filter |
| 2814 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: archive 'pkg-mixed-1-member.deb' has premature member 'unknown' before 'control.tar', giving up |
| 2815 | " | \ |
| 2816 | $at_diff - "$at_stderr" || at_failed=: |
| 2817 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2818 | unknown |
| 2819 | control.tar |
| 2820 | data.tar |
| 2821 | " | \ |
| 2822 | $at_diff - "$at_stdout" || at_failed=: |
| 2823 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:223" |
| 2824 | $at_failed && at_fn_log_failure |
| 2825 | $at_traceon; } |
| 2826 | |
| 2827 | |
| 2828 | { set +x |
| 2829 | printf "%s\n" "$at_srcdir/deb-format.at:235: |
| 2830 | # Test mixed member (index 2) |
| 2831 | |
| 2832 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-mixed-2-member.deb debian-binary control.tar unknown data.tar |
| 2833 | |
| 2834 | |
| 2835 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-mixed-2-member.deb |
| 2836 | |
| 2837 | dpkg-deb -c pkg-mixed-2-member.deb |
| 2838 | " |
| 2839 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:235" |
| 2840 | ( $at_check_trace; |
| 2841 | # Test mixed member (index 2) |
| 2842 | |
| 2843 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-mixed-2-member.deb debian-binary control.tar unknown data.tar |
| 2844 | |
| 2845 | |
| 2846 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-mixed-2-member.deb |
| 2847 | |
| 2848 | dpkg-deb -c pkg-mixed-2-member.deb |
| 2849 | |
| 2850 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2851 | at_status=$? at_failed=false |
| 2852 | $at_check_filter |
| 2853 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: archive 'pkg-mixed-2-member.deb' has premature member 'unknown' before 'data.tar', giving up |
| 2854 | " | \ |
| 2855 | $at_diff - "$at_stderr" || at_failed=: |
| 2856 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2857 | control.tar |
| 2858 | unknown |
| 2859 | data.tar |
| 2860 | " | \ |
| 2861 | $at_diff - "$at_stdout" || at_failed=: |
| 2862 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:235" |
| 2863 | $at_failed && at_fn_log_failure |
| 2864 | $at_traceon; } |
| 2865 | |
| 2866 | |
| 2867 | { set +x |
| 2868 | printf "%s\n" "$at_srcdir/deb-format.at:247: |
| 2869 | # Test swapped control and data members |
| 2870 | |
| 2871 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-swap-members.deb debian-binary data.tar control.tar |
| 2872 | |
| 2873 | |
| 2874 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-swap-members.deb |
| 2875 | |
| 2876 | dpkg-deb -I pkg-swap-members.deb |
| 2877 | " |
| 2878 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:247" |
| 2879 | ( $at_check_trace; |
| 2880 | # Test swapped control and data members |
| 2881 | |
| 2882 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-swap-members.deb debian-binary data.tar control.tar |
| 2883 | |
| 2884 | |
| 2885 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-swap-members.deb |
| 2886 | |
| 2887 | dpkg-deb -I pkg-swap-members.deb |
| 2888 | |
| 2889 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2890 | at_status=$? at_failed=false |
| 2891 | $at_check_filter |
| 2892 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: archive 'pkg-swap-members.deb' has premature member 'data.tar' before 'control.tar', giving up |
| 2893 | " | \ |
| 2894 | $at_diff - "$at_stderr" || at_failed=: |
| 2895 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2896 | data.tar |
| 2897 | control.tar |
| 2898 | " | \ |
| 2899 | $at_diff - "$at_stdout" || at_failed=: |
| 2900 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:247" |
| 2901 | $at_failed && at_fn_log_failure |
| 2902 | $at_traceon; } |
| 2903 | |
| 2904 | |
| 2905 | { set +x |
| 2906 | printf "%s\n" "$at_srcdir/deb-format.at:258: |
| 2907 | # Test extra member |
| 2908 | |
| 2909 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-extra-member.deb debian-binary control.tar data.tar unknown |
| 2910 | |
| 2911 | |
| 2912 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-extra-member.deb |
| 2913 | |
| 2914 | dpkg-deb -I pkg-extra-member.deb |
| 2915 | " |
| 2916 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:258" |
| 2917 | ( $at_check_trace; |
| 2918 | # Test extra member |
| 2919 | |
| 2920 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-extra-member.deb debian-binary control.tar data.tar unknown |
| 2921 | |
| 2922 | |
| 2923 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-extra-member.deb |
| 2924 | |
| 2925 | dpkg-deb -I pkg-extra-member.deb |
| 2926 | |
| 2927 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2928 | at_status=$? at_failed=false |
| 2929 | $at_check_filter |
| 2930 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2931 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2932 | control.tar |
| 2933 | data.tar |
| 2934 | unknown |
| 2935 | new Debian package, version 2.0. |
| 2936 | size 655612 bytes: control archive=10240 bytes. |
| 2937 | 193 bytes, 7 lines control |
| 2938 | Package: pkg-deb-format |
| 2939 | Version: 0.0-1 |
| 2940 | Section: test |
| 2941 | Priority: extra |
| 2942 | Maintainer: Dpkg Developers <[email protected]> |
| 2943 | Architecture: all |
| 2944 | Description: test package - deb format support |
| 2945 | " | \ |
| 2946 | $at_diff - "$at_stdout" || at_failed=: |
| 2947 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:258" |
| 2948 | $at_failed && at_fn_log_failure |
| 2949 | $at_traceon; } |
| 2950 | |
| 2951 | |
| 2952 | : >_ignore |
| 2953 | { set +x |
| 2954 | printf "%s\n" "$at_srcdir/deb-format.at:280: |
| 2955 | # Test _ member |
| 2956 | |
| 2957 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-under-member.deb debian-binary _ignore control.tar data.tar |
| 2958 | |
| 2959 | |
| 2960 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-under-member.deb |
| 2961 | |
| 2962 | dpkg-deb -I pkg-under-member.deb |
| 2963 | " |
| 2964 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:280" |
| 2965 | ( $at_check_trace; |
| 2966 | # Test _ member |
| 2967 | |
| 2968 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-under-member.deb debian-binary _ignore control.tar data.tar |
| 2969 | |
| 2970 | |
| 2971 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-under-member.deb |
| 2972 | |
| 2973 | dpkg-deb -I pkg-under-member.deb |
| 2974 | |
| 2975 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 2976 | at_status=$? at_failed=false |
| 2977 | $at_check_filter |
| 2978 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 2979 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 2980 | _ignore |
| 2981 | control.tar |
| 2982 | data.tar |
| 2983 | new Debian package, version 2.0. |
| 2984 | size 655612 bytes: control archive=10240 bytes. |
| 2985 | 193 bytes, 7 lines control |
| 2986 | Package: pkg-deb-format |
| 2987 | Version: 0.0-1 |
| 2988 | Section: test |
| 2989 | Priority: extra |
| 2990 | Maintainer: Dpkg Developers <[email protected]> |
| 2991 | Architecture: all |
| 2992 | Description: test package - deb format support |
| 2993 | " | \ |
| 2994 | $at_diff - "$at_stdout" || at_failed=: |
| 2995 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:280" |
| 2996 | $at_failed && at_fn_log_failure |
| 2997 | $at_traceon; } |
| 2998 | |
| 2999 | |
| 3000 | { set +x |
| 3001 | printf "%s\n" "$at_srcdir/deb-format.at:301: |
| 3002 | # Test data.tar.bad member |
| 3003 | \$PERL -E 'print \"\\0\" x 4096' >data.tar.bad |
| 3004 | |
| 3005 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-data-bad.deb debian-binary control.tar.gz data.tar.bad |
| 3006 | |
| 3007 | |
| 3008 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-data-bad.deb |
| 3009 | |
| 3010 | dpkg-deb -c pkg-data-bad.deb |
| 3011 | " |
| 3012 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:301" |
| 3013 | ( $at_check_trace; |
| 3014 | # Test data.tar.bad member |
| 3015 | $PERL -E 'print "\0" x 4096' >data.tar.bad |
| 3016 | |
| 3017 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-data-bad.deb debian-binary control.tar.gz data.tar.bad |
| 3018 | |
| 3019 | |
| 3020 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-data-bad.deb |
| 3021 | |
| 3022 | dpkg-deb -c pkg-data-bad.deb |
| 3023 | |
| 3024 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3025 | at_status=$? at_failed=false |
| 3026 | $at_check_filter |
| 3027 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: archive 'pkg-data-bad.deb' uses unknown compression for member 'data.tar.bad', giving up |
| 3028 | " | \ |
| 3029 | $at_diff - "$at_stderr" || at_failed=: |
| 3030 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3031 | control.tar.gz |
| 3032 | data.tar.bad |
| 3033 | " | \ |
| 3034 | $at_diff - "$at_stdout" || at_failed=: |
| 3035 | at_fn_check_status 2 $at_status "$at_srcdir/deb-format.at:301" |
| 3036 | $at_failed && at_fn_log_failure |
| 3037 | $at_traceon; } |
| 3038 | |
| 3039 | |
| 3040 | { set +x |
| 3041 | printf "%s\n" "$at_srcdir/deb-format.at:313: |
| 3042 | # Test control.tar member |
| 3043 | |
| 3044 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-control-none.deb debian-binary control.tar data.tar |
| 3045 | |
| 3046 | |
| 3047 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-control-none.deb |
| 3048 | |
| 3049 | dpkg-deb -I pkg-control-none.deb |
| 3050 | " |
| 3051 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:313" |
| 3052 | ( $at_check_trace; |
| 3053 | # Test control.tar member |
| 3054 | |
| 3055 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-control-none.deb debian-binary control.tar data.tar |
| 3056 | |
| 3057 | |
| 3058 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-control-none.deb |
| 3059 | |
| 3060 | dpkg-deb -I pkg-control-none.deb |
| 3061 | |
| 3062 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3063 | at_status=$? at_failed=false |
| 3064 | $at_check_filter |
| 3065 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3066 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3067 | control.tar |
| 3068 | data.tar |
| 3069 | new Debian package, version 2.0. |
| 3070 | size 655552 bytes: control archive=10240 bytes. |
| 3071 | 193 bytes, 7 lines control |
| 3072 | Package: pkg-deb-format |
| 3073 | Version: 0.0-1 |
| 3074 | Section: test |
| 3075 | Priority: extra |
| 3076 | Maintainer: Dpkg Developers <[email protected]> |
| 3077 | Architecture: all |
| 3078 | Description: test package - deb format support |
| 3079 | " | \ |
| 3080 | $at_diff - "$at_stdout" || at_failed=: |
| 3081 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:313" |
| 3082 | $at_failed && at_fn_log_failure |
| 3083 | $at_traceon; } |
| 3084 | |
| 3085 | |
| 3086 | { set +x |
| 3087 | printf "%s\n" "$at_srcdir/deb-format.at:333: |
| 3088 | # Test data.tar member |
| 3089 | |
| 3090 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-data-none.deb debian-binary control.tar.gz data.tar |
| 3091 | |
| 3092 | |
| 3093 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-data-none.deb |
| 3094 | |
| 3095 | dpkg-deb -c pkg-data-none.deb |
| 3096 | " |
| 3097 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:333" |
| 3098 | ( $at_check_trace; |
| 3099 | # Test data.tar member |
| 3100 | |
| 3101 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-data-none.deb debian-binary control.tar.gz data.tar |
| 3102 | |
| 3103 | |
| 3104 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-data-none.deb |
| 3105 | |
| 3106 | dpkg-deb -c pkg-data-none.deb |
| 3107 | |
| 3108 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3109 | at_status=$? at_failed=false |
| 3110 | $at_check_filter |
| 3111 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3112 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3113 | control.tar.gz |
| 3114 | data.tar |
| 3115 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3116 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3117 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3118 | " | \ |
| 3119 | $at_diff - "$at_stdout" || at_failed=: |
| 3120 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:333" |
| 3121 | $at_failed && at_fn_log_failure |
| 3122 | $at_traceon; } |
| 3123 | |
| 3124 | |
| 3125 | { set +x |
| 3126 | printf "%s\n" "$at_srcdir/deb-format.at:346: |
| 3127 | # Test data.tar.gz member |
| 3128 | |
| 3129 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-data-gz.deb debian-binary control.tar.gz data.tar.gz |
| 3130 | |
| 3131 | |
| 3132 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-data-gz.deb |
| 3133 | |
| 3134 | dpkg-deb -c pkg-data-gz.deb |
| 3135 | " |
| 3136 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:346" |
| 3137 | ( $at_check_trace; |
| 3138 | # Test data.tar.gz member |
| 3139 | |
| 3140 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-data-gz.deb debian-binary control.tar.gz data.tar.gz |
| 3141 | |
| 3142 | |
| 3143 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-data-gz.deb |
| 3144 | |
| 3145 | dpkg-deb -c pkg-data-gz.deb |
| 3146 | |
| 3147 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3148 | at_status=$? at_failed=false |
| 3149 | $at_check_filter |
| 3150 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3151 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3152 | control.tar.gz |
| 3153 | data.tar.gz |
| 3154 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3155 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3156 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3157 | " | \ |
| 3158 | $at_diff - "$at_stdout" || at_failed=: |
| 3159 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:346" |
| 3160 | $at_failed && at_fn_log_failure |
| 3161 | $at_traceon; } |
| 3162 | |
| 3163 | |
| 3164 | # Create .deb with non-uniform data.tar/control.tar member compression |
| 3165 | |
| 3166 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-mixed-comp.deb debian-binary control.tar data.tar.gz |
| 3167 | |
| 3168 | DEB_MIXED_COMP_SIZE=$( |
| 3169 | $PERL -E 'say -s shift' "pkg-mixed-comp.deb" ) |
| 3170 | |
| 3171 | { set +x |
| 3172 | printf "%s\n" "$at_srcdir/deb-format.at:363: |
| 3173 | # Test non-uniform data.tar/control.tar member compression |
| 3174 | |
| 3175 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-mixed-comp.deb |
| 3176 | |
| 3177 | dpkg-deb -I pkg-mixed-comp.deb |
| 3178 | dpkg-deb -c pkg-mixed-comp.deb |
| 3179 | " |
| 3180 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:363" |
| 3181 | ( $at_check_trace; |
| 3182 | # Test non-uniform data.tar/control.tar member compression |
| 3183 | |
| 3184 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-mixed-comp.deb |
| 3185 | |
| 3186 | dpkg-deb -I pkg-mixed-comp.deb |
| 3187 | dpkg-deb -c pkg-mixed-comp.deb |
| 3188 | |
| 3189 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3190 | at_status=$? at_failed=false |
| 3191 | $at_check_filter |
| 3192 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3193 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3194 | control.tar |
| 3195 | data.tar.gz |
| 3196 | new Debian package, version 2.0. |
| 3197 | size $DEB_MIXED_COMP_SIZE bytes: control archive=10240 bytes. |
| 3198 | 193 bytes, 7 lines control |
| 3199 | Package: pkg-deb-format |
| 3200 | Version: 0.0-1 |
| 3201 | Section: test |
| 3202 | Priority: extra |
| 3203 | Maintainer: Dpkg Developers <[email protected]> |
| 3204 | Architecture: all |
| 3205 | Description: test package - deb format support |
| 3206 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3207 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3208 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3209 | " | \ |
| 3210 | $at_diff - "$at_stdout" || at_failed=: |
| 3211 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:363" |
| 3212 | $at_failed && at_fn_log_failure |
| 3213 | $at_traceon; } |
| 3214 | |
| 3215 | |
| 3216 | { set +x |
| 3217 | printf "%s\n" "$at_srcdir/deb-format.at:386: |
| 3218 | # Test building and extracting none compressed archive |
| 3219 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ pkg-comp-none.deb >/dev/null |
| 3220 | dpkg-deb --ctrl-tarfile pkg-comp-none.deb >ctrl-none.tar |
| 3221 | dpkg-deb --fsys-tarfile pkg-comp-none.deb >fsys-none.tar |
| 3222 | cmp ctrl-none.tar control.tar |
| 3223 | cmp fsys-none.tar data.tar |
| 3224 | " |
| 3225 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:386" |
| 3226 | ( $at_check_trace; |
| 3227 | # Test building and extracting none compressed archive |
| 3228 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ pkg-comp-none.deb >/dev/null |
| 3229 | dpkg-deb --ctrl-tarfile pkg-comp-none.deb >ctrl-none.tar |
| 3230 | dpkg-deb --fsys-tarfile pkg-comp-none.deb >fsys-none.tar |
| 3231 | cmp ctrl-none.tar control.tar |
| 3232 | cmp fsys-none.tar data.tar |
| 3233 | |
| 3234 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3235 | at_status=$? at_failed=false |
| 3236 | $at_check_filter |
| 3237 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3238 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3239 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:386" |
| 3240 | $at_failed && at_fn_log_failure |
| 3241 | $at_traceon; } |
| 3242 | |
| 3243 | |
| 3244 | { set +x |
| 3245 | printf "%s\n" "$at_srcdir/deb-format.at:395: |
| 3246 | # Test building and extracting gzip compressed archive |
| 3247 | dpkg-deb --uniform-compression --root-owner-group -Zgzip -b pkg-templ pkg-comp-gzip.deb >/dev/null |
| 3248 | dpkg-deb --ctrl-tarfile pkg-comp-gzip.deb >ctrl-gzip.tar |
| 3249 | dpkg-deb --fsys-tarfile pkg-comp-gzip.deb >fsys-gzip.tar |
| 3250 | cmp ctrl-gzip.tar control.tar |
| 3251 | cmp fsys-gzip.tar data.tar |
| 3252 | " |
| 3253 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:395" |
| 3254 | ( $at_check_trace; |
| 3255 | # Test building and extracting gzip compressed archive |
| 3256 | dpkg-deb --uniform-compression --root-owner-group -Zgzip -b pkg-templ pkg-comp-gzip.deb >/dev/null |
| 3257 | dpkg-deb --ctrl-tarfile pkg-comp-gzip.deb >ctrl-gzip.tar |
| 3258 | dpkg-deb --fsys-tarfile pkg-comp-gzip.deb >fsys-gzip.tar |
| 3259 | cmp ctrl-gzip.tar control.tar |
| 3260 | cmp fsys-gzip.tar data.tar |
| 3261 | |
| 3262 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3263 | at_status=$? at_failed=false |
| 3264 | $at_check_filter |
| 3265 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3266 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3267 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:395" |
| 3268 | $at_failed && at_fn_log_failure |
| 3269 | $at_traceon; } |
| 3270 | |
| 3271 | |
| 3272 | set +x |
| 3273 | $at_times_p && times >"$at_times_file" |
| 3274 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3275 | read at_status <"$at_status_file" |
| 3276 | #AT_STOP_3 |
| 3277 | #AT_START_4 |
| 3278 | at_fn_group_banner 4 'deb-format.at:407' \ |
| 3279 | "dpkg-deb .deb format 2.x (xz)" " " 1 |
| 3280 | at_xfail=no |
| 3281 | ( |
| 3282 | printf "%s\n" "4. $at_setup_line: testing $at_desc ..." |
| 3283 | $at_traceon |
| 3284 | |
| 3285 | |
| 3286 | |
| 3287 | printf "%s\n" "deb-format.at:410" >"$at_check_line_file" |
| 3288 | (! command -v gzip >/dev/null) \ |
| 3289 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:410" |
| 3290 | printf "%s\n" "deb-format.at:411" >"$at_check_line_file" |
| 3291 | (! command -v xz >/dev/null) \ |
| 3292 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:411" |
| 3293 | |
| 3294 | |
| 3295 | |
| 3296 | |
| 3297 | mkdir -p 'pkg-deb-format/DEBIAN' |
| 3298 | |
| 3299 | cat >'pkg-deb-format/DEBIAN/control' <<CTRL_TEMPL |
| 3300 | Package: pkg-deb-format |
| 3301 | Version: 0.0-1 |
| 3302 | Section: test |
| 3303 | Priority: extra |
| 3304 | Maintainer: Dpkg Developers <[email protected]> |
| 3305 | Architecture: all |
| 3306 | Description: test package |
| 3307 | CTRL_TEMPL |
| 3308 | |
| 3309 | |
| 3310 | |
| 3311 | $PERL -p -i -E 's/^Description:.*$/$& - deb format support/' 'pkg-deb-format/DEBIAN/control' |
| 3312 | |
| 3313 | cat >pkg-deb-format/file-templ <<'_ATEOF' |
| 3314 | test |
| 3315 | _ATEOF |
| 3316 | |
| 3317 | { set +x |
| 3318 | printf "%s\n" "$at_srcdir/deb-format.at:413: |
| 3319 | # Initialize the template package |
| 3320 | mv pkg-deb-format pkg-templ |
| 3321 | cp \$top_srcdir/ChangeLog.old pkg-templ/ |
| 3322 | chmod 0644 pkg-templ/ChangeLog.old |
| 3323 | chmod -R u+w pkg-templ |
| 3324 | find pkg-templ | xargs touch -t 197001010100.00 |
| 3325 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 3326 | |
| 3327 | # Extract the base members |
| 3328 | |
| 3329 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 3330 | |
| 3331 | gzip -cn control.tar >control.tar.gz |
| 3332 | gzip -cn data.tar >data.tar.gz |
| 3333 | " |
| 3334 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:413" |
| 3335 | ( $at_check_trace; |
| 3336 | # Initialize the template package |
| 3337 | mv pkg-deb-format pkg-templ |
| 3338 | cp $top_srcdir/ChangeLog.old pkg-templ/ |
| 3339 | chmod 0644 pkg-templ/ChangeLog.old |
| 3340 | chmod -R u+w pkg-templ |
| 3341 | find pkg-templ | xargs touch -t 197001010100.00 |
| 3342 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 3343 | |
| 3344 | # Extract the base members |
| 3345 | |
| 3346 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 3347 | |
| 3348 | gzip -cn control.tar >control.tar.gz |
| 3349 | gzip -cn data.tar >data.tar.gz |
| 3350 | |
| 3351 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3352 | at_status=$? at_failed=false |
| 3353 | $at_check_filter |
| 3354 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3355 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3356 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:413" |
| 3357 | $at_failed && at_fn_log_failure |
| 3358 | $at_traceon; } |
| 3359 | |
| 3360 | |
| 3361 | { set +x |
| 3362 | printf "%s\n" "$at_srcdir/deb-format.at:414: |
| 3363 | # Extract the base members |
| 3364 | xz -c control.tar >control.tar.xz |
| 3365 | xz -c data.tar >data.tar.xz |
| 3366 | " |
| 3367 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:414" |
| 3368 | ( $at_check_trace; |
| 3369 | # Extract the base members |
| 3370 | xz -c control.tar >control.tar.xz |
| 3371 | xz -c data.tar >data.tar.xz |
| 3372 | |
| 3373 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3374 | at_status=$? at_failed=false |
| 3375 | $at_check_filter |
| 3376 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3377 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3378 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:414" |
| 3379 | $at_failed && at_fn_log_failure |
| 3380 | $at_traceon; } |
| 3381 | |
| 3382 | |
| 3383 | { set +x |
| 3384 | printf "%s\n" "$at_srcdir/deb-format.at:420: |
| 3385 | # Test control.tar.xz member |
| 3386 | |
| 3387 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-control-xz.deb debian-binary control.tar.xz data.tar.xz |
| 3388 | |
| 3389 | |
| 3390 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-control-xz.deb |
| 3391 | |
| 3392 | dpkg-deb -c pkg-control-xz.deb |
| 3393 | " |
| 3394 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:420" |
| 3395 | ( $at_check_trace; |
| 3396 | # Test control.tar.xz member |
| 3397 | |
| 3398 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-control-xz.deb debian-binary control.tar.xz data.tar.xz |
| 3399 | |
| 3400 | |
| 3401 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-control-xz.deb |
| 3402 | |
| 3403 | dpkg-deb -c pkg-control-xz.deb |
| 3404 | |
| 3405 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3406 | at_status=$? at_failed=false |
| 3407 | $at_check_filter |
| 3408 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3409 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3410 | control.tar.xz |
| 3411 | data.tar.xz |
| 3412 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3413 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3414 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3415 | " | \ |
| 3416 | $at_diff - "$at_stdout" || at_failed=: |
| 3417 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:420" |
| 3418 | $at_failed && at_fn_log_failure |
| 3419 | $at_traceon; } |
| 3420 | |
| 3421 | |
| 3422 | { set +x |
| 3423 | printf "%s\n" "$at_srcdir/deb-format.at:433: |
| 3424 | # Test data.tar.xz member |
| 3425 | |
| 3426 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-data-xz.deb debian-binary control.tar.gz data.tar.xz |
| 3427 | |
| 3428 | |
| 3429 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-data-xz.deb |
| 3430 | |
| 3431 | dpkg-deb -c pkg-data-xz.deb |
| 3432 | " |
| 3433 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:433" |
| 3434 | ( $at_check_trace; |
| 3435 | # Test data.tar.xz member |
| 3436 | |
| 3437 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-data-xz.deb debian-binary control.tar.gz data.tar.xz |
| 3438 | |
| 3439 | |
| 3440 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-data-xz.deb |
| 3441 | |
| 3442 | dpkg-deb -c pkg-data-xz.deb |
| 3443 | |
| 3444 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3445 | at_status=$? at_failed=false |
| 3446 | $at_check_filter |
| 3447 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3448 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3449 | control.tar.gz |
| 3450 | data.tar.xz |
| 3451 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3452 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3453 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3454 | " | \ |
| 3455 | $at_diff - "$at_stdout" || at_failed=: |
| 3456 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:433" |
| 3457 | $at_failed && at_fn_log_failure |
| 3458 | $at_traceon; } |
| 3459 | |
| 3460 | |
| 3461 | { set +x |
| 3462 | printf "%s\n" "$at_srcdir/deb-format.at:446: |
| 3463 | # Test building and extracting xz compressed archive |
| 3464 | dpkg-deb --uniform-compression --root-owner-group -Zxz -b pkg-templ pkg-comp-xz.deb >/dev/null |
| 3465 | dpkg-deb --ctrl-tarfile pkg-comp-xz.deb >ctrl-xz.tar |
| 3466 | dpkg-deb --fsys-tarfile pkg-comp-xz.deb >fsys-xz.tar |
| 3467 | cmp ctrl-xz.tar control.tar |
| 3468 | cmp fsys-xz.tar data.tar |
| 3469 | " |
| 3470 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:446" |
| 3471 | ( $at_check_trace; |
| 3472 | # Test building and extracting xz compressed archive |
| 3473 | dpkg-deb --uniform-compression --root-owner-group -Zxz -b pkg-templ pkg-comp-xz.deb >/dev/null |
| 3474 | dpkg-deb --ctrl-tarfile pkg-comp-xz.deb >ctrl-xz.tar |
| 3475 | dpkg-deb --fsys-tarfile pkg-comp-xz.deb >fsys-xz.tar |
| 3476 | cmp ctrl-xz.tar control.tar |
| 3477 | cmp fsys-xz.tar data.tar |
| 3478 | |
| 3479 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3480 | at_status=$? at_failed=false |
| 3481 | $at_check_filter |
| 3482 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3483 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3484 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:446" |
| 3485 | $at_failed && at_fn_log_failure |
| 3486 | $at_traceon; } |
| 3487 | |
| 3488 | |
| 3489 | set +x |
| 3490 | $at_times_p && times >"$at_times_file" |
| 3491 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3492 | read at_status <"$at_status_file" |
| 3493 | #AT_STOP_4 |
| 3494 | #AT_START_5 |
| 3495 | at_fn_group_banner 5 'deb-format.at:458' \ |
| 3496 | "dpkg-deb .deb format 2.x (zstd)" " " 1 |
| 3497 | at_xfail=no |
| 3498 | ( |
| 3499 | printf "%s\n" "5. $at_setup_line: testing $at_desc ..." |
| 3500 | $at_traceon |
| 3501 | |
| 3502 | |
| 3503 | |
| 3504 | printf "%s\n" "deb-format.at:461" >"$at_check_line_file" |
| 3505 | (! command -v gzip >/dev/null) \ |
| 3506 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:461" |
| 3507 | printf "%s\n" "deb-format.at:462" >"$at_check_line_file" |
| 3508 | (! command -v zstd >/dev/null) \ |
| 3509 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:462" |
| 3510 | |
| 3511 | |
| 3512 | |
| 3513 | |
| 3514 | mkdir -p 'pkg-deb-format/DEBIAN' |
| 3515 | |
| 3516 | cat >'pkg-deb-format/DEBIAN/control' <<CTRL_TEMPL |
| 3517 | Package: pkg-deb-format |
| 3518 | Version: 0.0-1 |
| 3519 | Section: test |
| 3520 | Priority: extra |
| 3521 | Maintainer: Dpkg Developers <[email protected]> |
| 3522 | Architecture: all |
| 3523 | Description: test package |
| 3524 | CTRL_TEMPL |
| 3525 | |
| 3526 | |
| 3527 | |
| 3528 | $PERL -p -i -E 's/^Description:.*$/$& - deb format support/' 'pkg-deb-format/DEBIAN/control' |
| 3529 | |
| 3530 | cat >pkg-deb-format/file-templ <<'_ATEOF' |
| 3531 | test |
| 3532 | _ATEOF |
| 3533 | |
| 3534 | { set +x |
| 3535 | printf "%s\n" "$at_srcdir/deb-format.at:464: |
| 3536 | # Initialize the template package |
| 3537 | mv pkg-deb-format pkg-templ |
| 3538 | cp \$top_srcdir/ChangeLog.old pkg-templ/ |
| 3539 | chmod 0644 pkg-templ/ChangeLog.old |
| 3540 | chmod -R u+w pkg-templ |
| 3541 | find pkg-templ | xargs touch -t 197001010100.00 |
| 3542 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 3543 | |
| 3544 | # Extract the base members |
| 3545 | |
| 3546 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 3547 | |
| 3548 | gzip -cn control.tar >control.tar.gz |
| 3549 | gzip -cn data.tar >data.tar.gz |
| 3550 | " |
| 3551 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:464" |
| 3552 | ( $at_check_trace; |
| 3553 | # Initialize the template package |
| 3554 | mv pkg-deb-format pkg-templ |
| 3555 | cp $top_srcdir/ChangeLog.old pkg-templ/ |
| 3556 | chmod 0644 pkg-templ/ChangeLog.old |
| 3557 | chmod -R u+w pkg-templ |
| 3558 | find pkg-templ | xargs touch -t 197001010100.00 |
| 3559 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 3560 | |
| 3561 | # Extract the base members |
| 3562 | |
| 3563 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 3564 | |
| 3565 | gzip -cn control.tar >control.tar.gz |
| 3566 | gzip -cn data.tar >data.tar.gz |
| 3567 | |
| 3568 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3569 | at_status=$? at_failed=false |
| 3570 | $at_check_filter |
| 3571 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3572 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3573 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:464" |
| 3574 | $at_failed && at_fn_log_failure |
| 3575 | $at_traceon; } |
| 3576 | |
| 3577 | |
| 3578 | { set +x |
| 3579 | printf "%s\n" "$at_srcdir/deb-format.at:465: |
| 3580 | # Extract the base members |
| 3581 | zstd -c control.tar >control.tar.zst |
| 3582 | zstd -c data.tar >data.tar.zst |
| 3583 | " |
| 3584 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:465" |
| 3585 | ( $at_check_trace; |
| 3586 | # Extract the base members |
| 3587 | zstd -c control.tar >control.tar.zst |
| 3588 | zstd -c data.tar >data.tar.zst |
| 3589 | |
| 3590 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3591 | at_status=$? at_failed=false |
| 3592 | $at_check_filter |
| 3593 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3594 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3595 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:465" |
| 3596 | $at_failed && at_fn_log_failure |
| 3597 | $at_traceon; } |
| 3598 | |
| 3599 | |
| 3600 | { set +x |
| 3601 | printf "%s\n" "$at_srcdir/deb-format.at:471: |
| 3602 | # Test control.tar.zst member |
| 3603 | |
| 3604 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-control-zst.deb debian-binary control.tar.zst data.tar.zst |
| 3605 | |
| 3606 | |
| 3607 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-control-zst.deb |
| 3608 | |
| 3609 | dpkg-deb -c pkg-control-zst.deb |
| 3610 | " |
| 3611 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:471" |
| 3612 | ( $at_check_trace; |
| 3613 | # Test control.tar.zst member |
| 3614 | |
| 3615 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-control-zst.deb debian-binary control.tar.zst data.tar.zst |
| 3616 | |
| 3617 | |
| 3618 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-control-zst.deb |
| 3619 | |
| 3620 | dpkg-deb -c pkg-control-zst.deb |
| 3621 | |
| 3622 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3623 | at_status=$? at_failed=false |
| 3624 | $at_check_filter |
| 3625 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3626 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3627 | control.tar.zst |
| 3628 | data.tar.zst |
| 3629 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3630 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3631 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3632 | " | \ |
| 3633 | $at_diff - "$at_stdout" || at_failed=: |
| 3634 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:471" |
| 3635 | $at_failed && at_fn_log_failure |
| 3636 | $at_traceon; } |
| 3637 | |
| 3638 | |
| 3639 | { set +x |
| 3640 | printf "%s\n" "$at_srcdir/deb-format.at:484: |
| 3641 | # Test data.tar.zst member |
| 3642 | |
| 3643 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-data-zst.deb debian-binary control.tar.gz data.tar.zst |
| 3644 | |
| 3645 | |
| 3646 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-data-zst.deb |
| 3647 | |
| 3648 | dpkg-deb -c pkg-data-zst.deb |
| 3649 | " |
| 3650 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:484" |
| 3651 | ( $at_check_trace; |
| 3652 | # Test data.tar.zst member |
| 3653 | |
| 3654 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-data-zst.deb debian-binary control.tar.gz data.tar.zst |
| 3655 | |
| 3656 | |
| 3657 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-data-zst.deb |
| 3658 | |
| 3659 | dpkg-deb -c pkg-data-zst.deb |
| 3660 | |
| 3661 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3662 | at_status=$? at_failed=false |
| 3663 | $at_check_filter |
| 3664 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3665 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3666 | control.tar.gz |
| 3667 | data.tar.zst |
| 3668 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3669 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3670 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3671 | " | \ |
| 3672 | $at_diff - "$at_stdout" || at_failed=: |
| 3673 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:484" |
| 3674 | $at_failed && at_fn_log_failure |
| 3675 | $at_traceon; } |
| 3676 | |
| 3677 | |
| 3678 | { set +x |
| 3679 | printf "%s\n" "$at_srcdir/deb-format.at:497: |
| 3680 | # Test building and extracting zstd compressed archive |
| 3681 | dpkg-deb --uniform-compression --root-owner-group -Zzstd -b pkg-templ pkg-comp-zstd.deb >/dev/null |
| 3682 | dpkg-deb --ctrl-tarfile pkg-comp-zstd.deb >ctrl-zstd.tar |
| 3683 | dpkg-deb --fsys-tarfile pkg-comp-zstd.deb >fsys-zstd.tar |
| 3684 | cmp ctrl-zstd.tar control.tar |
| 3685 | cmp fsys-zstd.tar data.tar |
| 3686 | " |
| 3687 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:497" |
| 3688 | ( $at_check_trace; |
| 3689 | # Test building and extracting zstd compressed archive |
| 3690 | dpkg-deb --uniform-compression --root-owner-group -Zzstd -b pkg-templ pkg-comp-zstd.deb >/dev/null |
| 3691 | dpkg-deb --ctrl-tarfile pkg-comp-zstd.deb >ctrl-zstd.tar |
| 3692 | dpkg-deb --fsys-tarfile pkg-comp-zstd.deb >fsys-zstd.tar |
| 3693 | cmp ctrl-zstd.tar control.tar |
| 3694 | cmp fsys-zstd.tar data.tar |
| 3695 | |
| 3696 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3697 | at_status=$? at_failed=false |
| 3698 | $at_check_filter |
| 3699 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3700 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3701 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:497" |
| 3702 | $at_failed && at_fn_log_failure |
| 3703 | $at_traceon; } |
| 3704 | |
| 3705 | |
| 3706 | set +x |
| 3707 | $at_times_p && times >"$at_times_file" |
| 3708 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3709 | read at_status <"$at_status_file" |
| 3710 | #AT_STOP_5 |
| 3711 | #AT_START_6 |
| 3712 | at_fn_group_banner 6 'deb-format.at:509' \ |
| 3713 | "dpkg-deb .deb format 2.x (bzip2)" " " 1 |
| 3714 | at_xfail=no |
| 3715 | ( |
| 3716 | printf "%s\n" "6. $at_setup_line: testing $at_desc ..." |
| 3717 | $at_traceon |
| 3718 | |
| 3719 | |
| 3720 | |
| 3721 | printf "%s\n" "deb-format.at:512" >"$at_check_line_file" |
| 3722 | (! command -v gzip >/dev/null) \ |
| 3723 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:512" |
| 3724 | printf "%s\n" "deb-format.at:513" >"$at_check_line_file" |
| 3725 | (! command -v bzip2 >/dev/null) \ |
| 3726 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:513" |
| 3727 | |
| 3728 | |
| 3729 | |
| 3730 | |
| 3731 | mkdir -p 'pkg-deb-format/DEBIAN' |
| 3732 | |
| 3733 | cat >'pkg-deb-format/DEBIAN/control' <<CTRL_TEMPL |
| 3734 | Package: pkg-deb-format |
| 3735 | Version: 0.0-1 |
| 3736 | Section: test |
| 3737 | Priority: extra |
| 3738 | Maintainer: Dpkg Developers <[email protected]> |
| 3739 | Architecture: all |
| 3740 | Description: test package |
| 3741 | CTRL_TEMPL |
| 3742 | |
| 3743 | |
| 3744 | |
| 3745 | $PERL -p -i -E 's/^Description:.*$/$& - deb format support/' 'pkg-deb-format/DEBIAN/control' |
| 3746 | |
| 3747 | cat >pkg-deb-format/file-templ <<'_ATEOF' |
| 3748 | test |
| 3749 | _ATEOF |
| 3750 | |
| 3751 | { set +x |
| 3752 | printf "%s\n" "$at_srcdir/deb-format.at:515: |
| 3753 | # Initialize the template package |
| 3754 | mv pkg-deb-format pkg-templ |
| 3755 | cp \$top_srcdir/ChangeLog.old pkg-templ/ |
| 3756 | chmod 0644 pkg-templ/ChangeLog.old |
| 3757 | chmod -R u+w pkg-templ |
| 3758 | find pkg-templ | xargs touch -t 197001010100.00 |
| 3759 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 3760 | |
| 3761 | # Extract the base members |
| 3762 | |
| 3763 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 3764 | |
| 3765 | gzip -cn control.tar >control.tar.gz |
| 3766 | gzip -cn data.tar >data.tar.gz |
| 3767 | " |
| 3768 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:515" |
| 3769 | ( $at_check_trace; |
| 3770 | # Initialize the template package |
| 3771 | mv pkg-deb-format pkg-templ |
| 3772 | cp $top_srcdir/ChangeLog.old pkg-templ/ |
| 3773 | chmod 0644 pkg-templ/ChangeLog.old |
| 3774 | chmod -R u+w pkg-templ |
| 3775 | find pkg-templ | xargs touch -t 197001010100.00 |
| 3776 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 3777 | |
| 3778 | # Extract the base members |
| 3779 | |
| 3780 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 3781 | |
| 3782 | gzip -cn control.tar >control.tar.gz |
| 3783 | gzip -cn data.tar >data.tar.gz |
| 3784 | |
| 3785 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3786 | at_status=$? at_failed=false |
| 3787 | $at_check_filter |
| 3788 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3789 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3790 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:515" |
| 3791 | $at_failed && at_fn_log_failure |
| 3792 | $at_traceon; } |
| 3793 | |
| 3794 | |
| 3795 | { set +x |
| 3796 | printf "%s\n" "$at_srcdir/deb-format.at:516: |
| 3797 | # Extract the base members |
| 3798 | bzip2 -c data.tar >data.tar.bz2 |
| 3799 | " |
| 3800 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:516" |
| 3801 | ( $at_check_trace; |
| 3802 | # Extract the base members |
| 3803 | bzip2 -c data.tar >data.tar.bz2 |
| 3804 | |
| 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/deb-format.at:516" |
| 3811 | $at_failed && at_fn_log_failure |
| 3812 | $at_traceon; } |
| 3813 | |
| 3814 | |
| 3815 | { set +x |
| 3816 | printf "%s\n" "$at_srcdir/deb-format.at:521: |
| 3817 | # Test data.tar.bz2 member |
| 3818 | |
| 3819 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-data-bz2.deb debian-binary control.tar.gz data.tar.bz2 |
| 3820 | |
| 3821 | |
| 3822 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-data-bz2.deb |
| 3823 | |
| 3824 | dpkg-deb -c pkg-data-bz2.deb |
| 3825 | " |
| 3826 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:521" |
| 3827 | ( $at_check_trace; |
| 3828 | # Test data.tar.bz2 member |
| 3829 | |
| 3830 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-data-bz2.deb debian-binary control.tar.gz data.tar.bz2 |
| 3831 | |
| 3832 | |
| 3833 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-data-bz2.deb |
| 3834 | |
| 3835 | dpkg-deb -c pkg-data-bz2.deb |
| 3836 | |
| 3837 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3838 | at_status=$? at_failed=false |
| 3839 | $at_check_filter |
| 3840 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3841 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3842 | control.tar.gz |
| 3843 | data.tar.bz2 |
| 3844 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3845 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3846 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3847 | " | \ |
| 3848 | $at_diff - "$at_stdout" || at_failed=: |
| 3849 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:521" |
| 3850 | $at_failed && at_fn_log_failure |
| 3851 | $at_traceon; } |
| 3852 | |
| 3853 | |
| 3854 | set +x |
| 3855 | $at_times_p && times >"$at_times_file" |
| 3856 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 3857 | read at_status <"$at_status_file" |
| 3858 | #AT_STOP_6 |
| 3859 | #AT_START_7 |
| 3860 | at_fn_group_banner 7 'deb-format.at:537' \ |
| 3861 | "dpkg-deb .deb format 2.x (lzma)" " " 1 |
| 3862 | at_xfail=no |
| 3863 | ( |
| 3864 | printf "%s\n" "7. $at_setup_line: testing $at_desc ..." |
| 3865 | $at_traceon |
| 3866 | |
| 3867 | |
| 3868 | |
| 3869 | printf "%s\n" "deb-format.at:540" >"$at_check_line_file" |
| 3870 | (! command -v gzip >/dev/null) \ |
| 3871 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:540" |
| 3872 | printf "%s\n" "deb-format.at:541" >"$at_check_line_file" |
| 3873 | (! command -v lzma >/dev/null) \ |
| 3874 | && at_fn_check_skip 77 "$at_srcdir/deb-format.at:541" |
| 3875 | |
| 3876 | |
| 3877 | |
| 3878 | |
| 3879 | mkdir -p 'pkg-deb-format/DEBIAN' |
| 3880 | |
| 3881 | cat >'pkg-deb-format/DEBIAN/control' <<CTRL_TEMPL |
| 3882 | Package: pkg-deb-format |
| 3883 | Version: 0.0-1 |
| 3884 | Section: test |
| 3885 | Priority: extra |
| 3886 | Maintainer: Dpkg Developers <[email protected]> |
| 3887 | Architecture: all |
| 3888 | Description: test package |
| 3889 | CTRL_TEMPL |
| 3890 | |
| 3891 | |
| 3892 | |
| 3893 | $PERL -p -i -E 's/^Description:.*$/$& - deb format support/' 'pkg-deb-format/DEBIAN/control' |
| 3894 | |
| 3895 | cat >pkg-deb-format/file-templ <<'_ATEOF' |
| 3896 | test |
| 3897 | _ATEOF |
| 3898 | |
| 3899 | { set +x |
| 3900 | printf "%s\n" "$at_srcdir/deb-format.at:543: |
| 3901 | # Initialize the template package |
| 3902 | mv pkg-deb-format pkg-templ |
| 3903 | cp \$top_srcdir/ChangeLog.old pkg-templ/ |
| 3904 | chmod 0644 pkg-templ/ChangeLog.old |
| 3905 | chmod -R u+w pkg-templ |
| 3906 | find pkg-templ | xargs touch -t 197001010100.00 |
| 3907 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 3908 | |
| 3909 | # Extract the base members |
| 3910 | |
| 3911 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 3912 | |
| 3913 | gzip -cn control.tar >control.tar.gz |
| 3914 | gzip -cn data.tar >data.tar.gz |
| 3915 | " |
| 3916 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:543" |
| 3917 | ( $at_check_trace; |
| 3918 | # Initialize the template package |
| 3919 | mv pkg-deb-format pkg-templ |
| 3920 | cp $top_srcdir/ChangeLog.old pkg-templ/ |
| 3921 | chmod 0644 pkg-templ/ChangeLog.old |
| 3922 | chmod -R u+w pkg-templ |
| 3923 | find pkg-templ | xargs touch -t 197001010100.00 |
| 3924 | dpkg-deb --uniform-compression --root-owner-group -Znone -b pkg-templ >/dev/null |
| 3925 | |
| 3926 | # Extract the base members |
| 3927 | |
| 3928 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-templ.deb |
| 3929 | |
| 3930 | gzip -cn control.tar >control.tar.gz |
| 3931 | gzip -cn data.tar >data.tar.gz |
| 3932 | |
| 3933 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3934 | at_status=$? at_failed=false |
| 3935 | $at_check_filter |
| 3936 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3937 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3938 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:543" |
| 3939 | $at_failed && at_fn_log_failure |
| 3940 | $at_traceon; } |
| 3941 | |
| 3942 | |
| 3943 | { set +x |
| 3944 | printf "%s\n" "$at_srcdir/deb-format.at:544: |
| 3945 | # Extract the base members |
| 3946 | lzma -c data.tar >data.tar.lzma |
| 3947 | " |
| 3948 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:544" |
| 3949 | ( $at_check_trace; |
| 3950 | # Extract the base members |
| 3951 | lzma -c data.tar >data.tar.lzma |
| 3952 | |
| 3953 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3954 | at_status=$? at_failed=false |
| 3955 | $at_check_filter |
| 3956 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3957 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 3958 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:544" |
| 3959 | $at_failed && at_fn_log_failure |
| 3960 | $at_traceon; } |
| 3961 | |
| 3962 | |
| 3963 | { set +x |
| 3964 | printf "%s\n" "$at_srcdir/deb-format.at:549: |
| 3965 | # Test data.tar.lzma member |
| 3966 | |
| 3967 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-data-lzma.deb debian-binary control.tar.gz data.tar.lzma |
| 3968 | |
| 3969 | |
| 3970 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-data-lzma.deb |
| 3971 | |
| 3972 | dpkg-deb -c pkg-data-lzma.deb |
| 3973 | " |
| 3974 | at_fn_check_prepare_notrace 'an embedded newline' "deb-format.at:549" |
| 3975 | ( $at_check_trace; |
| 3976 | # Test data.tar.lzma member |
| 3977 | |
| 3978 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-data-lzma.deb debian-binary control.tar.gz data.tar.lzma |
| 3979 | |
| 3980 | |
| 3981 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-data-lzma.deb |
| 3982 | |
| 3983 | dpkg-deb -c pkg-data-lzma.deb |
| 3984 | |
| 3985 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 3986 | at_status=$? at_failed=false |
| 3987 | $at_check_filter |
| 3988 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 3989 | echo >>"$at_stdout"; printf "%s\n" "debian-binary |
| 3990 | control.tar.gz |
| 3991 | data.tar.lzma |
| 3992 | drwxr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 3993 | -rw-r--r-- root/root 641344 1970-01-01 00:00 ./ChangeLog.old |
| 3994 | -rw-r--r-- root/root 5 1970-01-01 00:00 ./file-templ |
| 3995 | " | \ |
| 3996 | $at_diff - "$at_stdout" || at_failed=: |
| 3997 | at_fn_check_status 0 $at_status "$at_srcdir/deb-format.at:549" |
| 3998 | $at_failed && at_fn_log_failure |
| 3999 | $at_traceon; } |
| 4000 | |
| 4001 | |
| 4002 | set +x |
| 4003 | $at_times_p && times >"$at_times_file" |
| 4004 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4005 | read at_status <"$at_status_file" |
| 4006 | #AT_STOP_7 |
| 4007 | #AT_START_8 |
| 4008 | at_fn_group_banner 8 'deb-content.at:1' \ |
| 4009 | "dpkg-deb .deb conffiles" " " 1 |
| 4010 | at_xfail=no |
| 4011 | ( |
| 4012 | printf "%s\n" "8. $at_setup_line: testing $at_desc ..." |
| 4013 | $at_traceon |
| 4014 | |
| 4015 | |
| 4016 | |
| 4017 | |
| 4018 | |
| 4019 | mkdir -p 'pkg-conff-duped/DEBIAN' |
| 4020 | |
| 4021 | cat >'pkg-conff-duped/DEBIAN/control' <<CTRL_TEMPL |
| 4022 | Package: pkg-conff-duped |
| 4023 | Version: 0.0-1 |
| 4024 | Section: test |
| 4025 | Priority: extra |
| 4026 | Maintainer: Dpkg Developers <[email protected]> |
| 4027 | Architecture: all |
| 4028 | Description: test package |
| 4029 | CTRL_TEMPL |
| 4030 | |
| 4031 | |
| 4032 | |
| 4033 | mkdir -p 'pkg-conff-duped/DEBIAN' |
| 4034 | |
| 4035 | cat >'pkg-conff-duped/DEBIAN/conffiles' <<CTRL_TEMPL |
| 4036 | /test-conffile-1 |
| 4037 | /test-conffile-2 |
| 4038 | /test-conffile-1 |
| 4039 | CTRL_TEMPL |
| 4040 | |
| 4041 | cat >pkg-conff-duped/test-conffile-1 <<'_ATEOF' |
| 4042 | test init |
| 4043 | _ATEOF |
| 4044 | |
| 4045 | cat >pkg-conff-duped/test-conffile-2 <<'_ATEOF' |
| 4046 | test init |
| 4047 | _ATEOF |
| 4048 | |
| 4049 | { set +x |
| 4050 | printf "%s\n" "$at_srcdir/deb-content.at:12: |
| 4051 | # Duplicate conffile entries should produce a warning. |
| 4052 | dpkg-deb --root-owner-group -b pkg-conff-duped |
| 4053 | " |
| 4054 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:12" |
| 4055 | ( $at_check_trace; |
| 4056 | # Duplicate conffile entries should produce a warning. |
| 4057 | dpkg-deb --root-owner-group -b pkg-conff-duped |
| 4058 | |
| 4059 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4060 | at_status=$? at_failed=false |
| 4061 | $at_check_filter |
| 4062 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: warning: conffile name '/test-conffile-1' is duplicated |
| 4063 | dpkg-deb: warning: ignoring 1 warning about the control file(s) |
| 4064 | " | \ |
| 4065 | $at_diff - "$at_stderr" || at_failed=: |
| 4066 | echo stdout:; cat "$at_stdout" |
| 4067 | at_fn_check_status 0 $at_status "$at_srcdir/deb-content.at:12" |
| 4068 | $at_failed && at_fn_log_failure |
| 4069 | $at_traceon; } |
| 4070 | |
| 4071 | |
| 4072 | |
| 4073 | |
| 4074 | mkdir -p 'pkg-conff-noeol/DEBIAN' |
| 4075 | |
| 4076 | cat >'pkg-conff-noeol/DEBIAN/control' <<CTRL_TEMPL |
| 4077 | Package: pkg-conff-noeol |
| 4078 | Version: 0.0-1 |
| 4079 | Section: test |
| 4080 | Priority: extra |
| 4081 | Maintainer: Dpkg Developers <[email protected]> |
| 4082 | Architecture: all |
| 4083 | Description: test package |
| 4084 | CTRL_TEMPL |
| 4085 | |
| 4086 | |
| 4087 | printf "/test-conffile-1" >"pkg-conff-noeol/DEBIAN/conffiles" |
| 4088 | cat >pkg-conff-noeol/test-conffile-1 <<'_ATEOF' |
| 4089 | test init |
| 4090 | _ATEOF |
| 4091 | |
| 4092 | { set +x |
| 4093 | printf "%s\n" "$at_srcdir/deb-content.at:23: |
| 4094 | # Conffiles need a final newline to guarantee there's been no accidental |
| 4095 | # file truncation. |
| 4096 | dpkg-deb --root-owner-group -b pkg-conff-noeol pkg-conff-noeol.deb |
| 4097 | " |
| 4098 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:23" |
| 4099 | ( $at_check_trace; |
| 4100 | # Conffiles need a final newline to guarantee there's been no accidental |
| 4101 | # file truncation. |
| 4102 | dpkg-deb --root-owner-group -b pkg-conff-noeol pkg-conff-noeol.deb |
| 4103 | |
| 4104 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4105 | at_status=$? at_failed=false |
| 4106 | $at_check_filter |
| 4107 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: conffile name '/test-conffile-1' is too long, or missing final newline |
| 4108 | " | \ |
| 4109 | $at_diff - "$at_stderr" || at_failed=: |
| 4110 | echo stdout:; cat "$at_stdout" |
| 4111 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:23" |
| 4112 | $at_failed && at_fn_log_failure |
| 4113 | $at_traceon; } |
| 4114 | |
| 4115 | |
| 4116 | |
| 4117 | |
| 4118 | mkdir -p 'pkg-conff-noabs/DEBIAN' |
| 4119 | |
| 4120 | cat >'pkg-conff-noabs/DEBIAN/control' <<CTRL_TEMPL |
| 4121 | Package: pkg-conff-noabs |
| 4122 | Version: 0.0-1 |
| 4123 | Section: test |
| 4124 | Priority: extra |
| 4125 | Maintainer: Dpkg Developers <[email protected]> |
| 4126 | Architecture: all |
| 4127 | Description: test package |
| 4128 | CTRL_TEMPL |
| 4129 | |
| 4130 | |
| 4131 | |
| 4132 | mkdir -p 'pkg-conff-noabs/DEBIAN' |
| 4133 | |
| 4134 | cat >'pkg-conff-noabs/DEBIAN/conffiles' <<CTRL_TEMPL |
| 4135 | test-conffile-rel |
| 4136 | CTRL_TEMPL |
| 4137 | |
| 4138 | cat >pkg-conff-noabs/test-conffile-rel <<'_ATEOF' |
| 4139 | test init |
| 4140 | _ATEOF |
| 4141 | |
| 4142 | { set +x |
| 4143 | printf "%s\n" "$at_srcdir/deb-content.at:34: |
| 4144 | # Conffiles must use absolute pathnames. |
| 4145 | dpkg-deb --root-owner-group -b pkg-conff-noabs pkg-conff-noabs.deb |
| 4146 | " |
| 4147 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:34" |
| 4148 | ( $at_check_trace; |
| 4149 | # Conffiles must use absolute pathnames. |
| 4150 | dpkg-deb --root-owner-group -b pkg-conff-noabs pkg-conff-noabs.deb |
| 4151 | |
| 4152 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4153 | at_status=$? at_failed=false |
| 4154 | $at_check_filter |
| 4155 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: conffile name 'test-conffile-rel' is not an absolute pathname |
| 4156 | " | \ |
| 4157 | $at_diff - "$at_stderr" || at_failed=: |
| 4158 | echo stdout:; cat "$at_stdout" |
| 4159 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:34" |
| 4160 | $at_failed && at_fn_log_failure |
| 4161 | $at_traceon; } |
| 4162 | |
| 4163 | |
| 4164 | |
| 4165 | |
| 4166 | mkdir -p 'pkg-conff-empty/DEBIAN' |
| 4167 | |
| 4168 | cat >'pkg-conff-empty/DEBIAN/control' <<CTRL_TEMPL |
| 4169 | Package: pkg-conff-empty |
| 4170 | Version: 0.0-1 |
| 4171 | Section: test |
| 4172 | Priority: extra |
| 4173 | Maintainer: Dpkg Developers <[email protected]> |
| 4174 | Architecture: all |
| 4175 | Description: test package |
| 4176 | CTRL_TEMPL |
| 4177 | |
| 4178 | |
| 4179 | printf " \n" >"pkg-conff-empty/DEBIAN/conffiles" |
| 4180 | { set +x |
| 4181 | printf "%s\n" "$at_srcdir/deb-content.at:42: |
| 4182 | # Conffiles must not contain empty lines. |
| 4183 | dpkg-deb --root-owner-group -b pkg-conff-empty pkg-conff-empty.deb |
| 4184 | " |
| 4185 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:42" |
| 4186 | ( $at_check_trace; |
| 4187 | # Conffiles must not contain empty lines. |
| 4188 | dpkg-deb --root-owner-group -b pkg-conff-empty pkg-conff-empty.deb |
| 4189 | |
| 4190 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4191 | at_status=$? at_failed=false |
| 4192 | $at_check_filter |
| 4193 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: empty and whitespace-only lines are not allowed in conffiles |
| 4194 | " | \ |
| 4195 | $at_diff - "$at_stderr" || at_failed=: |
| 4196 | echo stdout:; cat "$at_stdout" |
| 4197 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:42" |
| 4198 | $at_failed && at_fn_log_failure |
| 4199 | $at_traceon; } |
| 4200 | |
| 4201 | |
| 4202 | |
| 4203 | |
| 4204 | mkdir -p 'pkg-conff-space-prefix/DEBIAN' |
| 4205 | |
| 4206 | cat >'pkg-conff-space-prefix/DEBIAN/control' <<CTRL_TEMPL |
| 4207 | Package: pkg-conff-space-prefix |
| 4208 | Version: 0.0-1 |
| 4209 | Section: test |
| 4210 | Priority: extra |
| 4211 | Maintainer: Dpkg Developers <[email protected]> |
| 4212 | Architecture: all |
| 4213 | Description: test package |
| 4214 | CTRL_TEMPL |
| 4215 | |
| 4216 | |
| 4217 | |
| 4218 | mkdir -p 'pkg-conff-space-prefix/DEBIAN' |
| 4219 | |
| 4220 | cat >'pkg-conff-space-prefix/DEBIAN/conffiles' <<CTRL_TEMPL |
| 4221 | /test-conffile |
| 4222 | CTRL_TEMPL |
| 4223 | |
| 4224 | { set +x |
| 4225 | printf "%s\n" "$at_srcdir/deb-content.at:50: |
| 4226 | # Conffiles must not contain prefixed spaces. |
| 4227 | dpkg-deb --root-owner-group -b pkg-conff-space-prefix pkg-conff-space-prefix.deb |
| 4228 | " |
| 4229 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:50" |
| 4230 | ( $at_check_trace; |
| 4231 | # Conffiles must not contain prefixed spaces. |
| 4232 | dpkg-deb --root-owner-group -b pkg-conff-space-prefix pkg-conff-space-prefix.deb |
| 4233 | |
| 4234 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4235 | at_status=$? at_failed=false |
| 4236 | $at_check_filter |
| 4237 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: line with conffile filename '/test-conffile' has leading white spaces |
| 4238 | " | \ |
| 4239 | $at_diff - "$at_stderr" || at_failed=: |
| 4240 | echo stdout:; cat "$at_stdout" |
| 4241 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:50" |
| 4242 | $at_failed && at_fn_log_failure |
| 4243 | $at_traceon; } |
| 4244 | |
| 4245 | |
| 4246 | |
| 4247 | |
| 4248 | mkdir -p 'pkg-conff-unknown-flag/DEBIAN' |
| 4249 | |
| 4250 | cat >'pkg-conff-unknown-flag/DEBIAN/control' <<CTRL_TEMPL |
| 4251 | Package: pkg-conff-unknown-flag |
| 4252 | Version: 0.0-1 |
| 4253 | Section: test |
| 4254 | Priority: extra |
| 4255 | Maintainer: Dpkg Developers <[email protected]> |
| 4256 | Architecture: all |
| 4257 | Description: test package |
| 4258 | CTRL_TEMPL |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | mkdir -p 'pkg-conff-unknown-flag/DEBIAN' |
| 4263 | |
| 4264 | cat >'pkg-conff-unknown-flag/DEBIAN/conffiles' <<CTRL_TEMPL |
| 4265 | unknown-flag /test-conffile |
| 4266 | CTRL_TEMPL |
| 4267 | |
| 4268 | { set +x |
| 4269 | printf "%s\n" "$at_srcdir/deb-content.at:58: |
| 4270 | # Conffiles marked with an unknown flag. |
| 4271 | dpkg-deb --root-owner-group -b pkg-conff-unknown-flag pkg-conff-unknown-flag.deb |
| 4272 | " |
| 4273 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:58" |
| 4274 | ( $at_check_trace; |
| 4275 | # Conffiles marked with an unknown flag. |
| 4276 | dpkg-deb --root-owner-group -b pkg-conff-unknown-flag pkg-conff-unknown-flag.deb |
| 4277 | |
| 4278 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4279 | at_status=$? at_failed=false |
| 4280 | $at_check_filter |
| 4281 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: unknown flag 'unknown-flag' for conffile '/test-conffile' |
| 4282 | " | \ |
| 4283 | $at_diff - "$at_stderr" || at_failed=: |
| 4284 | echo stdout:; cat "$at_stdout" |
| 4285 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:58" |
| 4286 | $at_failed && at_fn_log_failure |
| 4287 | $at_traceon; } |
| 4288 | |
| 4289 | |
| 4290 | |
| 4291 | |
| 4292 | mkdir -p 'pkg-conff-missing-pathname/DEBIAN' |
| 4293 | |
| 4294 | cat >'pkg-conff-missing-pathname/DEBIAN/control' <<CTRL_TEMPL |
| 4295 | Package: pkg-conff-missing-pathname |
| 4296 | Version: 0.0-1 |
| 4297 | Section: test |
| 4298 | Priority: extra |
| 4299 | Maintainer: Dpkg Developers <[email protected]> |
| 4300 | Architecture: all |
| 4301 | Description: test package |
| 4302 | CTRL_TEMPL |
| 4303 | |
| 4304 | |
| 4305 | printf "unknown-flag \n" >"pkg-conff-missing-pathname/DEBIAN/conffiles" |
| 4306 | { set +x |
| 4307 | printf "%s\n" "$at_srcdir/deb-content.at:66: |
| 4308 | # Conffiles need a pathname, in addition to a flag. |
| 4309 | dpkg-deb --root-owner-group -b pkg-conff-missing-pathname pkg-conff-missing-pathname.deb |
| 4310 | " |
| 4311 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:66" |
| 4312 | ( $at_check_trace; |
| 4313 | # Conffiles need a pathname, in addition to a flag. |
| 4314 | dpkg-deb --root-owner-group -b pkg-conff-missing-pathname pkg-conff-missing-pathname.deb |
| 4315 | |
| 4316 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4317 | at_status=$? at_failed=false |
| 4318 | $at_check_filter |
| 4319 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: conffile name missing after flag 'unknown-flag' |
| 4320 | " | \ |
| 4321 | $at_diff - "$at_stderr" || at_failed=: |
| 4322 | echo stdout:; cat "$at_stdout" |
| 4323 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:66" |
| 4324 | $at_failed && at_fn_log_failure |
| 4325 | $at_traceon; } |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | |
| 4330 | mkdir -p 'pkg-conff-removed-missing/DEBIAN' |
| 4331 | |
| 4332 | cat >'pkg-conff-removed-missing/DEBIAN/control' <<CTRL_TEMPL |
| 4333 | Package: pkg-conff-removed-missing |
| 4334 | Version: 0.0-1 |
| 4335 | Section: test |
| 4336 | Priority: extra |
| 4337 | Maintainer: Dpkg Developers <[email protected]> |
| 4338 | Architecture: all |
| 4339 | Description: test package |
| 4340 | CTRL_TEMPL |
| 4341 | |
| 4342 | |
| 4343 | |
| 4344 | mkdir -p 'pkg-conff-removed-missing/DEBIAN' |
| 4345 | |
| 4346 | cat >'pkg-conff-removed-missing/DEBIAN/conffiles' <<CTRL_TEMPL |
| 4347 | remove-on-upgrade /test-conffile-missing |
| 4348 | CTRL_TEMPL |
| 4349 | |
| 4350 | { set +x |
| 4351 | printf "%s\n" "$at_srcdir/deb-content.at:74: |
| 4352 | # Conffiles marked for removal must not be present. |
| 4353 | dpkg-deb --root-owner-group -b pkg-conff-removed-missing pkg-conff-removed-missing.deb |
| 4354 | " |
| 4355 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:74" |
| 4356 | ( $at_check_trace; |
| 4357 | # Conffiles marked for removal must not be present. |
| 4358 | dpkg-deb --root-owner-group -b pkg-conff-removed-missing pkg-conff-removed-missing.deb |
| 4359 | |
| 4360 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4361 | at_status=$? at_failed=false |
| 4362 | $at_check_filter |
| 4363 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4364 | echo stdout:; cat "$at_stdout" |
| 4365 | at_fn_check_status 0 $at_status "$at_srcdir/deb-content.at:74" |
| 4366 | $at_failed && at_fn_log_failure |
| 4367 | $at_traceon; } |
| 4368 | |
| 4369 | |
| 4370 | |
| 4371 | |
| 4372 | mkdir -p 'pkg-conff-removed-duped/DEBIAN' |
| 4373 | |
| 4374 | cat >'pkg-conff-removed-duped/DEBIAN/control' <<CTRL_TEMPL |
| 4375 | Package: pkg-conff-removed-duped |
| 4376 | Version: 0.0-1 |
| 4377 | Section: test |
| 4378 | Priority: extra |
| 4379 | Maintainer: Dpkg Developers <[email protected]> |
| 4380 | Architecture: all |
| 4381 | Description: test package |
| 4382 | CTRL_TEMPL |
| 4383 | |
| 4384 | |
| 4385 | |
| 4386 | mkdir -p 'pkg-conff-removed-duped/DEBIAN' |
| 4387 | |
| 4388 | cat >'pkg-conff-removed-duped/DEBIAN/conffiles' <<CTRL_TEMPL |
| 4389 | remove-on-upgrade /test-conffile-1 |
| 4390 | remove-on-upgrade /test-conffile-2 |
| 4391 | remove-on-upgrade /test-conffile-1 |
| 4392 | CTRL_TEMPL |
| 4393 | |
| 4394 | { set +x |
| 4395 | printf "%s\n" "$at_srcdir/deb-content.at:83: |
| 4396 | # Duplicate conffile entries should produce a warning. |
| 4397 | dpkg-deb --root-owner-group -b pkg-conff-removed-duped |
| 4398 | " |
| 4399 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:83" |
| 4400 | ( $at_check_trace; |
| 4401 | # Duplicate conffile entries should produce a warning. |
| 4402 | dpkg-deb --root-owner-group -b pkg-conff-removed-duped |
| 4403 | |
| 4404 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4405 | at_status=$? at_failed=false |
| 4406 | $at_check_filter |
| 4407 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: warning: conffile name '/test-conffile-1' is duplicated |
| 4408 | dpkg-deb: warning: ignoring 1 warning about the control file(s) |
| 4409 | " | \ |
| 4410 | $at_diff - "$at_stderr" || at_failed=: |
| 4411 | echo stdout:; cat "$at_stdout" |
| 4412 | at_fn_check_status 0 $at_status "$at_srcdir/deb-content.at:83" |
| 4413 | $at_failed && at_fn_log_failure |
| 4414 | $at_traceon; } |
| 4415 | |
| 4416 | |
| 4417 | |
| 4418 | |
| 4419 | mkdir -p 'pkg-conff-removed-noeol/DEBIAN' |
| 4420 | |
| 4421 | cat >'pkg-conff-removed-noeol/DEBIAN/control' <<CTRL_TEMPL |
| 4422 | Package: pkg-conff-removed-noeol |
| 4423 | Version: 0.0-1 |
| 4424 | Section: test |
| 4425 | Priority: extra |
| 4426 | Maintainer: Dpkg Developers <[email protected]> |
| 4427 | Architecture: all |
| 4428 | Description: test package |
| 4429 | CTRL_TEMPL |
| 4430 | |
| 4431 | |
| 4432 | printf "remove-on-upgrade /test-conffile-1" >"pkg-conff-removed-noeol/DEBIAN/conffiles" |
| 4433 | { set +x |
| 4434 | printf "%s\n" "$at_srcdir/deb-content.at:92: |
| 4435 | # Conffiles need a final newline to guarantee there has been no accidental |
| 4436 | # file truncation. |
| 4437 | dpkg-deb --root-owner-group -b pkg-conff-removed-noeol pkg-conff-removed-noeol.deb |
| 4438 | " |
| 4439 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:92" |
| 4440 | ( $at_check_trace; |
| 4441 | # Conffiles need a final newline to guarantee there has been no accidental |
| 4442 | # file truncation. |
| 4443 | dpkg-deb --root-owner-group -b pkg-conff-removed-noeol pkg-conff-removed-noeol.deb |
| 4444 | |
| 4445 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4446 | at_status=$? at_failed=false |
| 4447 | $at_check_filter |
| 4448 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: conffile name 'remove-on-upgrade /test-conffile-1' is too long, or missing final newline |
| 4449 | " | \ |
| 4450 | $at_diff - "$at_stderr" || at_failed=: |
| 4451 | echo stdout:; cat "$at_stdout" |
| 4452 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:92" |
| 4453 | $at_failed && at_fn_log_failure |
| 4454 | $at_traceon; } |
| 4455 | |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | mkdir -p 'pkg-conff-removed-noabs/DEBIAN' |
| 4460 | |
| 4461 | cat >'pkg-conff-removed-noabs/DEBIAN/control' <<CTRL_TEMPL |
| 4462 | Package: pkg-conff-removed-noabs |
| 4463 | Version: 0.0-1 |
| 4464 | Section: test |
| 4465 | Priority: extra |
| 4466 | Maintainer: Dpkg Developers <[email protected]> |
| 4467 | Architecture: all |
| 4468 | Description: test package |
| 4469 | CTRL_TEMPL |
| 4470 | |
| 4471 | |
| 4472 | |
| 4473 | mkdir -p 'pkg-conff-removed-noabs/DEBIAN' |
| 4474 | |
| 4475 | cat >'pkg-conff-removed-noabs/DEBIAN/conffiles' <<CTRL_TEMPL |
| 4476 | remove-on-upgrade test-conffile-rel |
| 4477 | CTRL_TEMPL |
| 4478 | |
| 4479 | cat >pkg-conff-removed-noabs/test-conffile-rel <<'_ATEOF' |
| 4480 | test init |
| 4481 | _ATEOF |
| 4482 | |
| 4483 | { set +x |
| 4484 | printf "%s\n" "$at_srcdir/deb-content.at:103: |
| 4485 | # Conffiles must use absolute pathnames. |
| 4486 | dpkg-deb --root-owner-group -b pkg-conff-removed-noabs pkg-conff-removed-noabs.deb |
| 4487 | " |
| 4488 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:103" |
| 4489 | ( $at_check_trace; |
| 4490 | # Conffiles must use absolute pathnames. |
| 4491 | dpkg-deb --root-owner-group -b pkg-conff-removed-noabs pkg-conff-removed-noabs.deb |
| 4492 | |
| 4493 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4494 | at_status=$? at_failed=false |
| 4495 | $at_check_filter |
| 4496 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: conffile name 'test-conffile-rel' is not an absolute pathname |
| 4497 | " | \ |
| 4498 | $at_diff - "$at_stderr" || at_failed=: |
| 4499 | echo stdout:; cat "$at_stdout" |
| 4500 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:103" |
| 4501 | $at_failed && at_fn_log_failure |
| 4502 | $at_traceon; } |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | mkdir -p 'pkg-conff-removed-present/DEBIAN' |
| 4508 | |
| 4509 | cat >'pkg-conff-removed-present/DEBIAN/control' <<CTRL_TEMPL |
| 4510 | Package: pkg-conff-removed-present |
| 4511 | Version: 0.0-1 |
| 4512 | Section: test |
| 4513 | Priority: extra |
| 4514 | Maintainer: Dpkg Developers <[email protected]> |
| 4515 | Architecture: all |
| 4516 | Description: test package |
| 4517 | CTRL_TEMPL |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | mkdir -p 'pkg-conff-removed-present/DEBIAN' |
| 4522 | |
| 4523 | cat >'pkg-conff-removed-present/DEBIAN/conffiles' <<CTRL_TEMPL |
| 4524 | remove-on-upgrade /test-conffile-present |
| 4525 | CTRL_TEMPL |
| 4526 | |
| 4527 | cat >pkg-conff-removed-present/test-conffile-present <<'_ATEOF' |
| 4528 | test init |
| 4529 | _ATEOF |
| 4530 | |
| 4531 | { set +x |
| 4532 | printf "%s\n" "$at_srcdir/deb-content.at:113: |
| 4533 | # Conffiles marked for removal must not be present. |
| 4534 | dpkg-deb --root-owner-group -b pkg-conff-removed-present pkg-conff-removed-present.deb |
| 4535 | " |
| 4536 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:113" |
| 4537 | ( $at_check_trace; |
| 4538 | # Conffiles marked for removal must not be present. |
| 4539 | dpkg-deb --root-owner-group -b pkg-conff-removed-present pkg-conff-removed-present.deb |
| 4540 | |
| 4541 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4542 | at_status=$? at_failed=false |
| 4543 | $at_check_filter |
| 4544 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: conffile '/test-conffile-present' is present but is requested to be removed |
| 4545 | " | \ |
| 4546 | $at_diff - "$at_stderr" || at_failed=: |
| 4547 | echo stdout:; cat "$at_stdout" |
| 4548 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:113" |
| 4549 | $at_failed && at_fn_log_failure |
| 4550 | $at_traceon; } |
| 4551 | |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | mkdir -p 'pkg-deb-newline/DEBIAN' |
| 4556 | |
| 4557 | cat >'pkg-deb-newline/DEBIAN/control' <<CTRL_TEMPL |
| 4558 | Package: pkg-deb-newline |
| 4559 | Version: 0.0-1 |
| 4560 | Section: test |
| 4561 | Priority: extra |
| 4562 | Maintainer: Dpkg Developers <[email protected]> |
| 4563 | Architecture: all |
| 4564 | Description: test package |
| 4565 | CTRL_TEMPL |
| 4566 | |
| 4567 | |
| 4568 | touch 'pkg-deb-newline/file |
| 4569 | newline' |
| 4570 | { set +x |
| 4571 | printf "%s\n" "$at_srcdir/deb-content.at:122: |
| 4572 | # Cannot create package with newlines in filenames. |
| 4573 | dpkg-deb --root-owner-group -b pkg-deb-newline |
| 4574 | " |
| 4575 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:122" |
| 4576 | ( $at_check_trace; |
| 4577 | # Cannot create package with newlines in filenames. |
| 4578 | dpkg-deb --root-owner-group -b pkg-deb-newline |
| 4579 | |
| 4580 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4581 | at_status=$? at_failed=false |
| 4582 | $at_check_filter |
| 4583 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: error: newline not allowed in pathname './file |
| 4584 | newline' |
| 4585 | " | \ |
| 4586 | $at_diff - "$at_stderr" || at_failed=: |
| 4587 | echo stdout:; cat "$at_stdout" |
| 4588 | at_fn_check_status 2 $at_status "$at_srcdir/deb-content.at:122" |
| 4589 | $at_failed && at_fn_log_failure |
| 4590 | $at_traceon; } |
| 4591 | |
| 4592 | |
| 4593 | set +x |
| 4594 | $at_times_p && times >"$at_times_file" |
| 4595 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4596 | read at_status <"$at_status_file" |
| 4597 | #AT_STOP_8 |
| 4598 | #AT_START_9 |
| 4599 | at_fn_group_banner 9 'deb-content.at:131' \ |
| 4600 | "dpkg-deb .deb extraction cleanup" " " 1 |
| 4601 | at_xfail=no |
| 4602 | ( |
| 4603 | printf "%s\n" "9. $at_setup_line: testing $at_desc ..." |
| 4604 | $at_traceon |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
| 4610 | mkdir -p 'pkg-ctrl-dir-perms/DEBIAN' |
| 4611 | |
| 4612 | cat >'pkg-ctrl-dir-perms/DEBIAN/control' <<CTRL_TEMPL |
| 4613 | Package: pkg-ctrl-dir-perms |
| 4614 | Version: 0.0-1 |
| 4615 | Section: test |
| 4616 | Priority: extra |
| 4617 | Maintainer: Dpkg Developers <[email protected]> |
| 4618 | Architecture: all |
| 4619 | Description: test package |
| 4620 | CTRL_TEMPL |
| 4621 | |
| 4622 | |
| 4623 | { set +x |
| 4624 | printf "%s\n" "$at_srcdir/deb-content.at:135: |
| 4625 | dpkg-deb --root-owner-group -Znone -b pkg-ctrl-dir-perms |
| 4626 | |
| 4627 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-ctrl-dir-perms.deb |
| 4628 | |
| 4629 | dpkg-deb -R pkg-ctrl-dir-perms.deb pkg-ctrl-dir-perms-bad |
| 4630 | mkdir -p pkg-ctrl-dir-perms-bad/DEBIAN/rx-subdir/inner |
| 4631 | touch pkg-ctrl-dir-perms-bad/DEBIAN/rx-subdir/inner/file |
| 4632 | chmod 0555 pkg-ctrl-dir-perms-bad/DEBIAN |
| 4633 | chmod 0555 pkg-ctrl-dir-perms-bad/DEBIAN/rx-subdir |
| 4634 | chmod 0555 pkg-ctrl-dir-perms-bad/DEBIAN/rx-subdir/inner |
| 4635 | \$TAR cf control.tar --format=gnu --sort=name --mtime @0 --clamp-mtime --owner root:0 --group root:0 -C pkg-ctrl-dir-perms-bad/DEBIAN . |
| 4636 | |
| 4637 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-ctrl-dir-perms.deb debian-binary control.tar data.tar |
| 4638 | |
| 4639 | " |
| 4640 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:135" |
| 4641 | ( $at_check_trace; |
| 4642 | dpkg-deb --root-owner-group -Znone -b pkg-ctrl-dir-perms |
| 4643 | |
| 4644 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-ctrl-dir-perms.deb |
| 4645 | |
| 4646 | dpkg-deb -R pkg-ctrl-dir-perms.deb pkg-ctrl-dir-perms-bad |
| 4647 | mkdir -p pkg-ctrl-dir-perms-bad/DEBIAN/rx-subdir/inner |
| 4648 | touch pkg-ctrl-dir-perms-bad/DEBIAN/rx-subdir/inner/file |
| 4649 | chmod 0555 pkg-ctrl-dir-perms-bad/DEBIAN |
| 4650 | chmod 0555 pkg-ctrl-dir-perms-bad/DEBIAN/rx-subdir |
| 4651 | chmod 0555 pkg-ctrl-dir-perms-bad/DEBIAN/rx-subdir/inner |
| 4652 | $TAR cf control.tar --format=gnu --sort=name --mtime @0 --clamp-mtime --owner root:0 --group root:0 -C pkg-ctrl-dir-perms-bad/DEBIAN . |
| 4653 | |
| 4654 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-ctrl-dir-perms.deb debian-binary control.tar data.tar |
| 4655 | |
| 4656 | |
| 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 | echo >>"$at_stdout"; printf "%s\n" "dpkg-deb: building package 'pkg-ctrl-dir-perms' in 'pkg-ctrl-dir-perms.deb'. |
| 4662 | " | \ |
| 4663 | $at_diff - "$at_stdout" || at_failed=: |
| 4664 | at_fn_check_status 0 $at_status "$at_srcdir/deb-content.at:135" |
| 4665 | $at_failed && at_fn_log_failure |
| 4666 | $at_traceon; } |
| 4667 | |
| 4668 | { set +x |
| 4669 | printf "%s\n" "$at_srcdir/deb-content.at:148: |
| 4670 | dpkg-deb --ctrl-tarfile pkg-ctrl-dir-perms.deb | \$TAR tvf - |
| 4671 | " |
| 4672 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:148" |
| 4673 | ( $at_check_trace; |
| 4674 | dpkg-deb --ctrl-tarfile pkg-ctrl-dir-perms.deb | $TAR tvf - |
| 4675 | |
| 4676 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4677 | at_status=$? at_failed=false |
| 4678 | $at_check_filter |
| 4679 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4680 | echo >>"$at_stdout"; printf "%s\n" "dr-xr-xr-x root/root 0 1970-01-01 00:00 ./ |
| 4681 | -rw-r--r-- root/root 176 1970-01-01 00:00 ./control |
| 4682 | dr-xr-xr-x root/root 0 1970-01-01 00:00 ./rx-subdir/ |
| 4683 | dr-xr-xr-x root/root 0 1970-01-01 00:00 ./rx-subdir/inner/ |
| 4684 | -rw-r--r-- root/root 0 1970-01-01 00:00 ./rx-subdir/inner/file |
| 4685 | " | \ |
| 4686 | $at_diff - "$at_stdout" || at_failed=: |
| 4687 | at_fn_check_status 0 $at_status "$at_srcdir/deb-content.at:148" |
| 4688 | $at_failed && at_fn_log_failure |
| 4689 | $at_traceon; } |
| 4690 | |
| 4691 | # Check that we can cleanup the temporarily extracted control.tar member. |
| 4692 | { set +x |
| 4693 | printf "%s\n" "$at_srcdir/deb-content.at:157: |
| 4694 | dpkg-deb -I pkg-ctrl-dir-perms.deb |
| 4695 | " |
| 4696 | at_fn_check_prepare_notrace 'an embedded newline' "deb-content.at:157" |
| 4697 | ( $at_check_trace; |
| 4698 | dpkg-deb -I pkg-ctrl-dir-perms.deb |
| 4699 | |
| 4700 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4701 | at_status=$? at_failed=false |
| 4702 | $at_check_filter |
| 4703 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4704 | echo stdout:; cat "$at_stdout" |
| 4705 | at_fn_check_status 0 $at_status "$at_srcdir/deb-content.at:157" |
| 4706 | $at_failed && at_fn_log_failure |
| 4707 | $at_traceon; } |
| 4708 | |
| 4709 | |
| 4710 | set +x |
| 4711 | $at_times_p && times >"$at_times_file" |
| 4712 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4713 | read at_status <"$at_status_file" |
| 4714 | #AT_STOP_9 |
| 4715 | #AT_START_10 |
| 4716 | at_fn_group_banner 10 'deb-fields.at:1' \ |
| 4717 | "dpkg-deb .deb fields" " " 1 |
| 4718 | at_xfail=no |
| 4719 | ( |
| 4720 | printf "%s\n" "10. $at_setup_line: testing $at_desc ..." |
| 4721 | $at_traceon |
| 4722 | |
| 4723 | |
| 4724 | |
| 4725 | |
| 4726 | |
| 4727 | mkdir -p 'pkg-package-type-void/DEBIAN' |
| 4728 | |
| 4729 | cat >'pkg-package-type-void/DEBIAN/control' <<CTRL_TEMPL |
| 4730 | Package: pkg-package-type-void |
| 4731 | Version: 0.0-1 |
| 4732 | Section: test |
| 4733 | Priority: extra |
| 4734 | Maintainer: Dpkg Developers <[email protected]> |
| 4735 | Architecture: all |
| 4736 | Description: test package |
| 4737 | CTRL_TEMPL |
| 4738 | |
| 4739 | |
| 4740 | { set +x |
| 4741 | printf "%s\n" "$at_srcdir/deb-fields.at:5: |
| 4742 | dpkg-deb --root-owner-group -b pkg-package-type-void |
| 4743 | # Test absence of Package-Type field. |
| 4744 | test -z \"\$(dpkg-deb -f pkg-package-type-void.deb Package-Type)\" |
| 4745 | " |
| 4746 | at_fn_check_prepare_notrace 'a $(...) command substitution' "deb-fields.at:5" |
| 4747 | ( $at_check_trace; |
| 4748 | dpkg-deb --root-owner-group -b pkg-package-type-void |
| 4749 | # Test absence of Package-Type field. |
| 4750 | test -z "$(dpkg-deb -f pkg-package-type-void.deb Package-Type)" |
| 4751 | |
| 4752 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4753 | at_status=$? at_failed=false |
| 4754 | $at_check_filter |
| 4755 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4756 | echo stdout:; cat "$at_stdout" |
| 4757 | at_fn_check_status 0 $at_status "$at_srcdir/deb-fields.at:5" |
| 4758 | $at_failed && at_fn_log_failure |
| 4759 | $at_traceon; } |
| 4760 | |
| 4761 | |
| 4762 | |
| 4763 | |
| 4764 | mkdir -p 'pkg-package-type-use/DEBIAN' |
| 4765 | |
| 4766 | cat >'pkg-package-type-use/DEBIAN/control' <<CTRL_TEMPL |
| 4767 | Package: pkg-package-type-use |
| 4768 | Version: 0.0-1 |
| 4769 | Section: test |
| 4770 | Priority: extra |
| 4771 | Maintainer: Dpkg Developers <[email protected]> |
| 4772 | Architecture: all |
| 4773 | Description: test package |
| 4774 | CTRL_TEMPL |
| 4775 | |
| 4776 | |
| 4777 | |
| 4778 | $PERL -p -i -E 's/^Package: .*$/$&\nPackage-Type: udeb/' 'pkg-package-type-use/DEBIAN/control' |
| 4779 | |
| 4780 | { set +x |
| 4781 | printf "%s\n" "$at_srcdir/deb-fields.at:14: |
| 4782 | dpkg-deb --root-owner-group -b pkg-package-type-use |
| 4783 | # Test presence of Package-Type field. |
| 4784 | test -n \"\$(dpkg-deb -f pkg-package-type-use.deb Package-Type)\" |
| 4785 | " |
| 4786 | at_fn_check_prepare_notrace 'a $(...) command substitution' "deb-fields.at:14" |
| 4787 | ( $at_check_trace; |
| 4788 | dpkg-deb --root-owner-group -b pkg-package-type-use |
| 4789 | # Test presence of Package-Type field. |
| 4790 | test -n "$(dpkg-deb -f pkg-package-type-use.deb Package-Type)" |
| 4791 | |
| 4792 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4793 | at_status=$? at_failed=false |
| 4794 | $at_check_filter |
| 4795 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4796 | echo stdout:; cat "$at_stdout" |
| 4797 | at_fn_check_status 0 $at_status "$at_srcdir/deb-fields.at:14" |
| 4798 | $at_failed && at_fn_log_failure |
| 4799 | $at_traceon; } |
| 4800 | |
| 4801 | |
| 4802 | |
| 4803 | |
| 4804 | mkdir -p 'pkg-obsolete-fields/DEBIAN' |
| 4805 | |
| 4806 | cat >'pkg-obsolete-fields/DEBIAN/control' <<CTRL_TEMPL |
| 4807 | Package: pkg-obsolete-fields |
| 4808 | Version: 0.0-1 |
| 4809 | Section: test |
| 4810 | Priority: extra |
| 4811 | Maintainer: Dpkg Developers <[email protected]> |
| 4812 | Architecture: all |
| 4813 | Description: test package |
| 4814 | CTRL_TEMPL |
| 4815 | |
| 4816 | |
| 4817 | |
| 4818 | $PERL -p -i -E 's/^Priority:/Class:/' 'pkg-obsolete-fields/DEBIAN/control' |
| 4819 | |
| 4820 | |
| 4821 | $PERL -p -i -E 's/^Version: 0.0-1$/Version: 0.0/' 'pkg-obsolete-fields/DEBIAN/control' |
| 4822 | |
| 4823 | |
| 4824 | $PERL -p -i -E 's/^Version:.*$/$&\nRevision: 1/' 'pkg-obsolete-fields/DEBIAN/control' |
| 4825 | |
| 4826 | |
| 4827 | $PERL -p -i -E 's/^Package:.*$/$&\nOptional: suggests/' 'pkg-obsolete-fields/DEBIAN/control' |
| 4828 | |
| 4829 | |
| 4830 | $PERL -p -i -E 's/^Package:.*$/$&\nRecommended: recommends/' 'pkg-obsolete-fields/DEBIAN/control' |
| 4831 | |
| 4832 | { set +x |
| 4833 | printf "%s\n" "$at_srcdir/deb-fields.at:31: |
| 4834 | dpkg-deb --root-owner-group -b pkg-obsolete-fields |
| 4835 | " |
| 4836 | at_fn_check_prepare_notrace 'an embedded newline' "deb-fields.at:31" |
| 4837 | ( $at_check_trace; |
| 4838 | dpkg-deb --root-owner-group -b pkg-obsolete-fields |
| 4839 | |
| 4840 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4841 | at_status=$? at_failed=false |
| 4842 | $at_check_filter |
| 4843 | echo >>"$at_stderr"; printf "%s\n" "dpkg-deb: warning: parsing file 'pkg-obsolete-fields/DEBIAN/control' near line 2 package 'pkg-obsolete-fields': |
| 4844 | obsolete 'Recommended' field used |
| 4845 | dpkg-deb: warning: parsing file 'pkg-obsolete-fields/DEBIAN/control' near line 3 package 'pkg-obsolete-fields': |
| 4846 | obsolete 'Optional' field used |
| 4847 | dpkg-deb: warning: parsing file 'pkg-obsolete-fields/DEBIAN/control' near line 5 package 'pkg-obsolete-fields': |
| 4848 | obsolete 'Revision' field used |
| 4849 | dpkg-deb: warning: parsing file 'pkg-obsolete-fields/DEBIAN/control' near line 7 package 'pkg-obsolete-fields': |
| 4850 | obsolete 'Class' field used |
| 4851 | dpkg-deb: warning: ignoring 4 warnings about the control file(s) |
| 4852 | " | \ |
| 4853 | $at_diff - "$at_stderr" || at_failed=: |
| 4854 | echo stdout:; cat "$at_stdout" |
| 4855 | at_fn_check_status 0 $at_status "$at_srcdir/deb-fields.at:31" |
| 4856 | $at_failed && at_fn_log_failure |
| 4857 | $at_traceon; } |
| 4858 | |
| 4859 | { set +x |
| 4860 | printf "%s\n" "$at_srcdir/deb-fields.at:44: |
| 4861 | dpkg-deb -f pkg-obsolete-fields.deb \\ |
| 4862 | Version Recommends Suggests Priority 2>/dev/null |
| 4863 | " |
| 4864 | at_fn_check_prepare_notrace 'an embedded newline' "deb-fields.at:44" |
| 4865 | ( $at_check_trace; |
| 4866 | dpkg-deb -f pkg-obsolete-fields.deb \ |
| 4867 | Version Recommends Suggests Priority 2>/dev/null |
| 4868 | |
| 4869 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4870 | at_status=$? at_failed=false |
| 4871 | $at_check_filter |
| 4872 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4873 | echo >>"$at_stdout"; printf "%s\n" "Version: 0.0-1 |
| 4874 | Recommends: recommends |
| 4875 | Suggests: suggests |
| 4876 | Priority: extra |
| 4877 | " | \ |
| 4878 | $at_diff - "$at_stdout" || at_failed=: |
| 4879 | at_fn_check_status 0 $at_status "$at_srcdir/deb-fields.at:44" |
| 4880 | $at_failed && at_fn_log_failure |
| 4881 | $at_traceon; } |
| 4882 | |
| 4883 | |
| 4884 | set +x |
| 4885 | $at_times_p && times >"$at_times_file" |
| 4886 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4887 | read at_status <"$at_status_file" |
| 4888 | #AT_STOP_10 |
| 4889 | #AT_START_11 |
| 4890 | at_fn_group_banner 11 'deb-split.at:1' \ |
| 4891 | "dpkg-split options" " " 2 |
| 4892 | at_xfail=no |
| 4893 | ( |
| 4894 | printf "%s\n" "11. $at_setup_line: testing $at_desc ..." |
| 4895 | $at_traceon |
| 4896 | |
| 4897 | |
| 4898 | |
| 4899 | { set +x |
| 4900 | printf "%s\n" "$at_srcdir/deb-split.at:4: dpkg-split --version" |
| 4901 | at_fn_check_prepare_trace "deb-split.at:4" |
| 4902 | ( $at_check_trace; dpkg-split --version |
| 4903 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4904 | at_status=$? at_failed=false |
| 4905 | $at_check_filter |
| 4906 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4907 | echo stdout:; cat "$at_stdout" |
| 4908 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:4" |
| 4909 | $at_failed && at_fn_log_failure |
| 4910 | $at_traceon; } |
| 4911 | |
| 4912 | { set +x |
| 4913 | printf "%s\n" "$at_srcdir/deb-split.at:5: dpkg-split --help" |
| 4914 | at_fn_check_prepare_trace "deb-split.at:5" |
| 4915 | ( $at_check_trace; dpkg-split --help |
| 4916 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4917 | at_status=$? at_failed=false |
| 4918 | $at_check_filter |
| 4919 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4920 | echo stdout:; cat "$at_stdout" |
| 4921 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:5" |
| 4922 | $at_failed && at_fn_log_failure |
| 4923 | $at_traceon; } |
| 4924 | |
| 4925 | |
| 4926 | set +x |
| 4927 | $at_times_p && times >"$at_times_file" |
| 4928 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 4929 | read at_status <"$at_status_file" |
| 4930 | #AT_STOP_11 |
| 4931 | #AT_START_12 |
| 4932 | at_fn_group_banner 12 'deb-split.at:9' \ |
| 4933 | "dpkg-split .deb format" " " 2 |
| 4934 | at_xfail=no |
| 4935 | ( |
| 4936 | printf "%s\n" "12. $at_setup_line: testing $at_desc ..." |
| 4937 | $at_traceon |
| 4938 | |
| 4939 | |
| 4940 | |
| 4941 | |
| 4942 | |
| 4943 | mkdir -p 'pkg-split/DEBIAN' |
| 4944 | |
| 4945 | cat >'pkg-split/DEBIAN/control' <<CTRL_TEMPL |
| 4946 | Package: pkg-split |
| 4947 | Version: 0.0-1 |
| 4948 | Section: test |
| 4949 | Priority: extra |
| 4950 | Maintainer: Dpkg Developers <[email protected]> |
| 4951 | Architecture: all |
| 4952 | Description: test package |
| 4953 | CTRL_TEMPL |
| 4954 | |
| 4955 | |
| 4956 | |
| 4957 | $PERL -p -i -E 's/^Description:.*$/$& - normal package to be split/' 'pkg-split/DEBIAN/control' |
| 4958 | |
| 4959 | { set +x |
| 4960 | printf "%s\n" "$at_srcdir/deb-split.at:15: |
| 4961 | # Initialize the template package |
| 4962 | chmod -R u+w pkg-split |
| 4963 | \$PERL -E 'print \"fade\" foreach 1 .. 1024 * 512' >pkg-split/data-file |
| 4964 | find pkg-split | xargs touch -t 197001010100.00 |
| 4965 | dpkg-deb --root-owner-group -Znone -b pkg-split >/dev/null |
| 4966 | " |
| 4967 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:15" |
| 4968 | ( $at_check_trace; |
| 4969 | # Initialize the template package |
| 4970 | chmod -R u+w pkg-split |
| 4971 | $PERL -E 'print "fade" foreach 1 .. 1024 * 512' >pkg-split/data-file |
| 4972 | find pkg-split | xargs touch -t 197001010100.00 |
| 4973 | dpkg-deb --root-owner-group -Znone -b pkg-split >/dev/null |
| 4974 | |
| 4975 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 4976 | at_status=$? at_failed=false |
| 4977 | $at_check_filter |
| 4978 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 4979 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 4980 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:15" |
| 4981 | $at_failed && at_fn_log_failure |
| 4982 | $at_traceon; } |
| 4983 | |
| 4984 | |
| 4985 | { set +x |
| 4986 | printf "%s\n" "$at_srcdir/deb-split.at:23: |
| 4987 | # Test splitting a package (in 10 parts: 9 * 210 KiB B + 158 KiB) |
| 4988 | dpkg-split -S 210 -s pkg-split.deb pkg-split-part |
| 4989 | for p in 1 2 3 4 5 6 7 8 9 10 ; do |
| 4990 | test -f pkg-split-part.\${p}of10.deb |
| 4991 | done |
| 4992 | |
| 4993 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb data.1 |
| 4994 | |
| 4995 | " |
| 4996 | at_fn_check_prepare_notrace 'a ${...} parameter expansion' "deb-split.at:23" |
| 4997 | ( $at_check_trace; |
| 4998 | # Test splitting a package (in 10 parts: 9 * 210 KiB B + 158 KiB) |
| 4999 | dpkg-split -S 210 -s pkg-split.deb pkg-split-part |
| 5000 | for p in 1 2 3 4 5 6 7 8 9 10 ; do |
| 5001 | test -f pkg-split-part.${p}of10.deb |
| 5002 | done |
| 5003 | |
| 5004 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb data.1 |
| 5005 | |
| 5006 | |
| 5007 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5008 | at_status=$? at_failed=false |
| 5009 | $at_check_filter |
| 5010 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5011 | echo >>"$at_stdout"; printf "%s\n" "Splitting package pkg-split into 10 parts: 1 2 3 4 5 6 7 8 9 10 done |
| 5012 | " | \ |
| 5013 | $at_diff - "$at_stdout" || at_failed=: |
| 5014 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:23" |
| 5015 | $at_failed && at_fn_log_failure |
| 5016 | $at_traceon; } |
| 5017 | |
| 5018 | |
| 5019 | DEB_SPLIT_MD5SUM=1684b6cdb72bf035ccafd653f307d3da |
| 5020 | DEB_SPLIT_LENGTH=2109632 |
| 5021 | DEB_SPLIT_PART_LENGTH=214016 |
| 5022 | DEB_SPLIT_PART_SIZE=214222 |
| 5023 | DEB_SPLIT_LAST_LENGTH=183488 |
| 5024 | DEB_SPLIT_LAST_SIZE=183694 |
| 5025 | |
| 5026 | DEB_SPLIT_PART_SIZE_VERSION=$((DEB_SPLIT_PART_SIZE + 2)) |
| 5027 | |
| 5028 | { set +x |
| 5029 | printf "%s\n" "$at_srcdir/deb-split.at:42: |
| 5030 | # Test debian-split with 2.x version |
| 5031 | |
| 5032 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb debian-split |
| 5033 | |
| 5034 | \$PERL -p -i -E 's/.*/2.999/ if \$. == 1' debian-split |
| 5035 | |
| 5036 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-split-part-version-2x.deb debian-split data.1 |
| 5037 | |
| 5038 | |
| 5039 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-split-part-version-2x.deb |
| 5040 | |
| 5041 | dpkg-split -I pkg-split-part-version-2x.deb |
| 5042 | " |
| 5043 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:42" |
| 5044 | ( $at_check_trace; |
| 5045 | # Test debian-split with 2.x version |
| 5046 | |
| 5047 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb debian-split |
| 5048 | |
| 5049 | $PERL -p -i -E 's/.*/2.999/ if $. == 1' debian-split |
| 5050 | |
| 5051 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-split-part-version-2x.deb debian-split data.1 |
| 5052 | |
| 5053 | |
| 5054 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-split-part-version-2x.deb |
| 5055 | |
| 5056 | dpkg-split -I pkg-split-part-version-2x.deb |
| 5057 | |
| 5058 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5059 | at_status=$? at_failed=false |
| 5060 | $at_check_filter |
| 5061 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5062 | echo >>"$at_stdout"; printf "%s\n" "debian-split |
| 5063 | data.1 |
| 5064 | pkg-split-part-version-2x.deb: |
| 5065 | Part format version: 2.999 |
| 5066 | Part of package: pkg-split |
| 5067 | ... version: 0.0-1 |
| 5068 | ... architecture: all |
| 5069 | ... MD5 checksum: $DEB_SPLIT_MD5SUM |
| 5070 | ... length: $DEB_SPLIT_LENGTH bytes |
| 5071 | ... split every: $DEB_SPLIT_PART_LENGTH bytes |
| 5072 | Part number: 1/10 |
| 5073 | Part length: $DEB_SPLIT_PART_LENGTH bytes |
| 5074 | Part offset: 0 bytes |
| 5075 | Part file size (used portion): $DEB_SPLIT_PART_SIZE_VERSION bytes |
| 5076 | |
| 5077 | " | \ |
| 5078 | $at_diff - "$at_stdout" || at_failed=: |
| 5079 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:42" |
| 5080 | $at_failed && at_fn_log_failure |
| 5081 | $at_traceon; } |
| 5082 | |
| 5083 | |
| 5084 | DEB_SPLIT_PART_SIZE_MAGIC_EXTRA=$((DEB_SPLIT_PART_SIZE + 10)) |
| 5085 | |
| 5086 | { set +x |
| 5087 | printf "%s\n" "$at_srcdir/deb-split.at:68: |
| 5088 | # Test debian-split with extra lines |
| 5089 | |
| 5090 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb debian-split |
| 5091 | |
| 5092 | echo \"extra line\" >>debian-split |
| 5093 | |
| 5094 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-split-part-magic-extra.deb debian-split data.1 |
| 5095 | |
| 5096 | |
| 5097 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-split-part-magic-extra.deb |
| 5098 | |
| 5099 | dpkg-split -I pkg-split-part-magic-extra.deb |
| 5100 | " |
| 5101 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:68" |
| 5102 | ( $at_check_trace; |
| 5103 | # Test debian-split with extra lines |
| 5104 | |
| 5105 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb debian-split |
| 5106 | |
| 5107 | echo "extra line" >>debian-split |
| 5108 | |
| 5109 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-split-part-magic-extra.deb debian-split data.1 |
| 5110 | |
| 5111 | |
| 5112 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-split-part-magic-extra.deb |
| 5113 | |
| 5114 | dpkg-split -I pkg-split-part-magic-extra.deb |
| 5115 | |
| 5116 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5117 | at_status=$? at_failed=false |
| 5118 | $at_check_filter |
| 5119 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5120 | echo >>"$at_stdout"; printf "%s\n" "debian-split |
| 5121 | data.1 |
| 5122 | pkg-split-part-magic-extra.deb: |
| 5123 | Part format version: 2.1 |
| 5124 | Part of package: pkg-split |
| 5125 | ... version: 0.0-1 |
| 5126 | ... architecture: all |
| 5127 | ... MD5 checksum: $DEB_SPLIT_MD5SUM |
| 5128 | ... length: $DEB_SPLIT_LENGTH bytes |
| 5129 | ... split every: $DEB_SPLIT_PART_LENGTH bytes |
| 5130 | Part number: 1/10 |
| 5131 | Part length: $DEB_SPLIT_PART_LENGTH bytes |
| 5132 | Part offset: 0 bytes |
| 5133 | Part file size (used portion): $DEB_SPLIT_PART_SIZE_MAGIC_EXTRA bytes |
| 5134 | |
| 5135 | " | \ |
| 5136 | $at_diff - "$at_stdout" || at_failed=: |
| 5137 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:68" |
| 5138 | $at_failed && at_fn_log_failure |
| 5139 | $at_traceon; } |
| 5140 | |
| 5141 | |
| 5142 | { set +x |
| 5143 | printf "%s\n" "$at_srcdir/deb-split.at:92: |
| 5144 | # Test missing debian-split |
| 5145 | |
| 5146 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb |
| 5147 | |
| 5148 | |
| 5149 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-split-part-missing-magic.deb data.1 |
| 5150 | |
| 5151 | |
| 5152 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-split-part-missing-magic.deb |
| 5153 | |
| 5154 | dpkg-split -I pkg-split-part-missing-magic.deb |
| 5155 | " |
| 5156 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:92" |
| 5157 | ( $at_check_trace; |
| 5158 | # Test missing debian-split |
| 5159 | |
| 5160 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb |
| 5161 | |
| 5162 | |
| 5163 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-split-part-missing-magic.deb data.1 |
| 5164 | |
| 5165 | |
| 5166 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-split-part-missing-magic.deb |
| 5167 | |
| 5168 | dpkg-split -I pkg-split-part-missing-magic.deb |
| 5169 | |
| 5170 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5171 | at_status=$? at_failed=false |
| 5172 | $at_check_filter |
| 5173 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5174 | echo >>"$at_stdout"; printf "%s\n" "data.1 |
| 5175 | file 'pkg-split-part-missing-magic.deb' is not an archive part |
| 5176 | " | \ |
| 5177 | $at_diff - "$at_stdout" || at_failed=: |
| 5178 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:92" |
| 5179 | $at_failed && at_fn_log_failure |
| 5180 | $at_traceon; } |
| 5181 | |
| 5182 | |
| 5183 | { set +x |
| 5184 | printf "%s\n" "$at_srcdir/deb-split.at:102: |
| 5185 | # Test missing data part member |
| 5186 | |
| 5187 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb |
| 5188 | |
| 5189 | |
| 5190 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-split-part-missing-data.deb debian-split |
| 5191 | |
| 5192 | |
| 5193 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-split-part-missing-data.deb |
| 5194 | |
| 5195 | dpkg-split -I pkg-split-part-missing-data.deb |
| 5196 | " |
| 5197 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:102" |
| 5198 | ( $at_check_trace; |
| 5199 | # Test missing data part member |
| 5200 | |
| 5201 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb |
| 5202 | |
| 5203 | |
| 5204 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-split-part-missing-data.deb debian-split |
| 5205 | |
| 5206 | |
| 5207 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-split-part-missing-data.deb |
| 5208 | |
| 5209 | dpkg-split -I pkg-split-part-missing-data.deb |
| 5210 | |
| 5211 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5212 | at_status=$? at_failed=false |
| 5213 | $at_check_filter |
| 5214 | echo >>"$at_stderr"; printf "%s\n" "dpkg-split: error: unexpected end of file in reading data part member ar header in pkg-split-part-missing-data.deb |
| 5215 | " | \ |
| 5216 | $at_diff - "$at_stderr" || at_failed=: |
| 5217 | echo >>"$at_stdout"; printf "%s\n" "debian-split |
| 5218 | " | \ |
| 5219 | $at_diff - "$at_stdout" || at_failed=: |
| 5220 | at_fn_check_status 2 $at_status "$at_srcdir/deb-split.at:102" |
| 5221 | $at_failed && at_fn_log_failure |
| 5222 | $at_traceon; } |
| 5223 | |
| 5224 | |
| 5225 | { set +x |
| 5226 | printf "%s\n" "$at_srcdir/deb-split.at:112: |
| 5227 | # Test duplicate debian-split member |
| 5228 | |
| 5229 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb debian-split data.1 |
| 5230 | |
| 5231 | |
| 5232 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-split-part-duplicate-magic.deb debian-split debian-split data.1 |
| 5233 | |
| 5234 | |
| 5235 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-split-part-duplicate-magic.deb |
| 5236 | |
| 5237 | dpkg-split -I pkg-split-part-duplicate-magic.deb |
| 5238 | " |
| 5239 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:112" |
| 5240 | ( $at_check_trace; |
| 5241 | # Test duplicate debian-split member |
| 5242 | |
| 5243 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --extract pkg-split-part.1of10.deb debian-split data.1 |
| 5244 | |
| 5245 | |
| 5246 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-split-part-duplicate-magic.deb debian-split debian-split data.1 |
| 5247 | |
| 5248 | |
| 5249 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-split-part-duplicate-magic.deb |
| 5250 | |
| 5251 | dpkg-split -I pkg-split-part-duplicate-magic.deb |
| 5252 | |
| 5253 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5254 | at_status=$? at_failed=false |
| 5255 | $at_check_filter |
| 5256 | echo >>"$at_stderr"; printf "%s\n" "dpkg-split: error: file 'pkg-split-part-duplicate-magic.deb' is corrupt - second member is not data member |
| 5257 | " | \ |
| 5258 | $at_diff - "$at_stderr" || at_failed=: |
| 5259 | echo >>"$at_stdout"; printf "%s\n" "debian-split |
| 5260 | debian-split |
| 5261 | data.1 |
| 5262 | " | \ |
| 5263 | $at_diff - "$at_stdout" || at_failed=: |
| 5264 | at_fn_check_status 2 $at_status "$at_srcdir/deb-split.at:112" |
| 5265 | $at_failed && at_fn_log_failure |
| 5266 | $at_traceon; } |
| 5267 | |
| 5268 | |
| 5269 | { set +x |
| 5270 | printf "%s\n" "$at_srcdir/deb-split.at:124: |
| 5271 | # Test unknown extra member |
| 5272 | echo \"some content\" >unknown |
| 5273 | |
| 5274 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --create pkg-split-part-extra-member.deb debian-split data.1 unknown |
| 5275 | |
| 5276 | |
| 5277 | \"\$top_srcdir/build-aux/run-script\" scripts/dpkg-ar.pl --list pkg-split-part-extra-member.deb |
| 5278 | |
| 5279 | dpkg-split -I pkg-split-part-extra-member.deb |
| 5280 | " |
| 5281 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:124" |
| 5282 | ( $at_check_trace; |
| 5283 | # Test unknown extra member |
| 5284 | echo "some content" >unknown |
| 5285 | |
| 5286 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --create pkg-split-part-extra-member.deb debian-split data.1 unknown |
| 5287 | |
| 5288 | |
| 5289 | "$top_srcdir/build-aux/run-script" scripts/dpkg-ar.pl --list pkg-split-part-extra-member.deb |
| 5290 | |
| 5291 | dpkg-split -I pkg-split-part-extra-member.deb |
| 5292 | |
| 5293 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5294 | at_status=$? at_failed=false |
| 5295 | $at_check_filter |
| 5296 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5297 | echo >>"$at_stdout"; printf "%s\n" "debian-split |
| 5298 | data.1 |
| 5299 | unknown |
| 5300 | pkg-split-part-extra-member.deb: |
| 5301 | Part format version: 2.1 |
| 5302 | Part of package: pkg-split |
| 5303 | ... version: 0.0-1 |
| 5304 | ... architecture: all |
| 5305 | ... MD5 checksum: $DEB_SPLIT_MD5SUM |
| 5306 | ... length: $DEB_SPLIT_LENGTH bytes |
| 5307 | ... split every: $DEB_SPLIT_PART_LENGTH bytes |
| 5308 | Part number: 1/10 |
| 5309 | Part length: $DEB_SPLIT_PART_LENGTH bytes |
| 5310 | Part offset: 0 bytes |
| 5311 | Part file size (used portion): $DEB_SPLIT_PART_SIZE bytes |
| 5312 | |
| 5313 | " | \ |
| 5314 | $at_diff - "$at_stdout" || at_failed=: |
| 5315 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:124" |
| 5316 | $at_failed && at_fn_log_failure |
| 5317 | $at_traceon; } |
| 5318 | |
| 5319 | |
| 5320 | { set +x |
| 5321 | printf "%s\n" "$at_srcdir/deb-split.at:148: |
| 5322 | # Test getting information about the split parts (parsing verification) |
| 5323 | dpkg-split -I pkg-split-part.1of10.deb |
| 5324 | " |
| 5325 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:148" |
| 5326 | ( $at_check_trace; |
| 5327 | # Test getting information about the split parts (parsing verification) |
| 5328 | dpkg-split -I pkg-split-part.1of10.deb |
| 5329 | |
| 5330 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5331 | at_status=$? at_failed=false |
| 5332 | $at_check_filter |
| 5333 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5334 | echo >>"$at_stdout"; printf "%s\n" "pkg-split-part.1of10.deb: |
| 5335 | Part format version: 2.1 |
| 5336 | Part of package: pkg-split |
| 5337 | ... version: 0.0-1 |
| 5338 | ... architecture: all |
| 5339 | ... MD5 checksum: $DEB_SPLIT_MD5SUM |
| 5340 | ... length: $DEB_SPLIT_LENGTH bytes |
| 5341 | ... split every: $DEB_SPLIT_PART_LENGTH bytes |
| 5342 | Part number: 1/10 |
| 5343 | Part length: $DEB_SPLIT_PART_LENGTH bytes |
| 5344 | Part offset: 0 bytes |
| 5345 | Part file size (used portion): $DEB_SPLIT_PART_SIZE bytes |
| 5346 | |
| 5347 | " | \ |
| 5348 | $at_diff - "$at_stdout" || at_failed=: |
| 5349 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:148" |
| 5350 | $at_failed && at_fn_log_failure |
| 5351 | $at_traceon; } |
| 5352 | |
| 5353 | { set +x |
| 5354 | printf "%s\n" "$at_srcdir/deb-split.at:165: |
| 5355 | # Test getting information about the split parts (parsing verification) |
| 5356 | dpkg-split -I pkg-split-part.2of10.deb |
| 5357 | " |
| 5358 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:165" |
| 5359 | ( $at_check_trace; |
| 5360 | # Test getting information about the split parts (parsing verification) |
| 5361 | dpkg-split -I pkg-split-part.2of10.deb |
| 5362 | |
| 5363 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5364 | at_status=$? at_failed=false |
| 5365 | $at_check_filter |
| 5366 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5367 | echo >>"$at_stdout"; printf "%s\n" "pkg-split-part.2of10.deb: |
| 5368 | Part format version: 2.1 |
| 5369 | Part of package: pkg-split |
| 5370 | ... version: 0.0-1 |
| 5371 | ... architecture: all |
| 5372 | ... MD5 checksum: $DEB_SPLIT_MD5SUM |
| 5373 | ... length: $DEB_SPLIT_LENGTH bytes |
| 5374 | ... split every: $DEB_SPLIT_PART_LENGTH bytes |
| 5375 | Part number: 2/10 |
| 5376 | Part length: $DEB_SPLIT_PART_LENGTH bytes |
| 5377 | Part offset: 214016 bytes |
| 5378 | Part file size (used portion): $DEB_SPLIT_PART_SIZE bytes |
| 5379 | |
| 5380 | " | \ |
| 5381 | $at_diff - "$at_stdout" || at_failed=: |
| 5382 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:165" |
| 5383 | $at_failed && at_fn_log_failure |
| 5384 | $at_traceon; } |
| 5385 | |
| 5386 | { set +x |
| 5387 | printf "%s\n" "$at_srcdir/deb-split.at:182: |
| 5388 | # Test getting information about the split parts (parsing verification) |
| 5389 | dpkg-split -I pkg-split-part.9of10.deb |
| 5390 | " |
| 5391 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:182" |
| 5392 | ( $at_check_trace; |
| 5393 | # Test getting information about the split parts (parsing verification) |
| 5394 | dpkg-split -I pkg-split-part.9of10.deb |
| 5395 | |
| 5396 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5397 | at_status=$? at_failed=false |
| 5398 | $at_check_filter |
| 5399 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5400 | echo >>"$at_stdout"; printf "%s\n" "pkg-split-part.9of10.deb: |
| 5401 | Part format version: 2.1 |
| 5402 | Part of package: pkg-split |
| 5403 | ... version: 0.0-1 |
| 5404 | ... architecture: all |
| 5405 | ... MD5 checksum: $DEB_SPLIT_MD5SUM |
| 5406 | ... length: $DEB_SPLIT_LENGTH bytes |
| 5407 | ... split every: $DEB_SPLIT_PART_LENGTH bytes |
| 5408 | Part number: 9/10 |
| 5409 | Part length: $DEB_SPLIT_PART_LENGTH bytes |
| 5410 | Part offset: 1712128 bytes |
| 5411 | Part file size (used portion): $DEB_SPLIT_PART_SIZE bytes |
| 5412 | |
| 5413 | " | \ |
| 5414 | $at_diff - "$at_stdout" || at_failed=: |
| 5415 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:182" |
| 5416 | $at_failed && at_fn_log_failure |
| 5417 | $at_traceon; } |
| 5418 | |
| 5419 | { set +x |
| 5420 | printf "%s\n" "$at_srcdir/deb-split.at:199: |
| 5421 | # Test getting information about the split parts (parsing verification) |
| 5422 | dpkg-split -I pkg-split-part.10of10.deb |
| 5423 | " |
| 5424 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:199" |
| 5425 | ( $at_check_trace; |
| 5426 | # Test getting information about the split parts (parsing verification) |
| 5427 | dpkg-split -I pkg-split-part.10of10.deb |
| 5428 | |
| 5429 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5430 | at_status=$? at_failed=false |
| 5431 | $at_check_filter |
| 5432 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5433 | echo >>"$at_stdout"; printf "%s\n" "pkg-split-part.10of10.deb: |
| 5434 | Part format version: 2.1 |
| 5435 | Part of package: pkg-split |
| 5436 | ... version: 0.0-1 |
| 5437 | ... architecture: all |
| 5438 | ... MD5 checksum: $DEB_SPLIT_MD5SUM |
| 5439 | ... length: $DEB_SPLIT_LENGTH bytes |
| 5440 | ... split every: $DEB_SPLIT_PART_LENGTH bytes |
| 5441 | Part number: 10/10 |
| 5442 | Part length: $DEB_SPLIT_LAST_LENGTH bytes |
| 5443 | Part offset: 1926144 bytes |
| 5444 | Part file size (used portion): $DEB_SPLIT_LAST_SIZE bytes |
| 5445 | |
| 5446 | " | \ |
| 5447 | $at_diff - "$at_stdout" || at_failed=: |
| 5448 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:199" |
| 5449 | $at_failed && at_fn_log_failure |
| 5450 | $at_traceon; } |
| 5451 | |
| 5452 | |
| 5453 | { set +x |
| 5454 | printf "%s\n" "$at_srcdir/deb-split.at:217: |
| 5455 | # Test joining the split parts back together |
| 5456 | dpkg-split -o pkg-joined.deb -j pkg-split-part.*.deb |
| 5457 | cmp pkg-split.deb pkg-joined.deb |
| 5458 | " |
| 5459 | at_fn_check_prepare_notrace 'an embedded newline' "deb-split.at:217" |
| 5460 | ( $at_check_trace; |
| 5461 | # Test joining the split parts back together |
| 5462 | dpkg-split -o pkg-joined.deb -j pkg-split-part.*.deb |
| 5463 | cmp pkg-split.deb pkg-joined.deb |
| 5464 | |
| 5465 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5466 | at_status=$? at_failed=false |
| 5467 | $at_check_filter |
| 5468 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5469 | echo >>"$at_stdout"; printf "%s\n" "Putting package pkg-split together from 10 parts: 1 2 3 4 5 6 7 8 9 10 done |
| 5470 | " | \ |
| 5471 | $at_diff - "$at_stdout" || at_failed=: |
| 5472 | at_fn_check_status 0 $at_status "$at_srcdir/deb-split.at:217" |
| 5473 | $at_failed && at_fn_log_failure |
| 5474 | $at_traceon; } |
| 5475 | |
| 5476 | |
| 5477 | set +x |
| 5478 | $at_times_p && times >"$at_times_file" |
| 5479 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5480 | read at_status <"$at_status_file" |
| 5481 | #AT_STOP_12 |
| 5482 | #AT_START_13 |
| 5483 | at_fn_group_banner 13 'realpath.at:1' \ |
| 5484 | "dpkg-realpath options" " " 3 |
| 5485 | at_xfail=no |
| 5486 | ( |
| 5487 | printf "%s\n" "13. $at_setup_line: testing $at_desc ..." |
| 5488 | $at_traceon |
| 5489 | |
| 5490 | |
| 5491 | |
| 5492 | { set +x |
| 5493 | printf "%s\n" "$at_srcdir/realpath.at:4: dpkg-realpath --version" |
| 5494 | at_fn_check_prepare_trace "realpath.at:4" |
| 5495 | ( $at_check_trace; dpkg-realpath --version |
| 5496 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5497 | at_status=$? at_failed=false |
| 5498 | $at_check_filter |
| 5499 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5500 | echo stdout:; cat "$at_stdout" |
| 5501 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:4" |
| 5502 | $at_failed && at_fn_log_failure |
| 5503 | $at_traceon; } |
| 5504 | |
| 5505 | { set +x |
| 5506 | printf "%s\n" "$at_srcdir/realpath.at:5: dpkg-realpath --help" |
| 5507 | at_fn_check_prepare_trace "realpath.at:5" |
| 5508 | ( $at_check_trace; dpkg-realpath --help |
| 5509 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5510 | at_status=$? at_failed=false |
| 5511 | $at_check_filter |
| 5512 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5513 | echo stdout:; cat "$at_stdout" |
| 5514 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:5" |
| 5515 | $at_failed && at_fn_log_failure |
| 5516 | $at_traceon; } |
| 5517 | |
| 5518 | |
| 5519 | set +x |
| 5520 | $at_times_p && times >"$at_times_file" |
| 5521 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5522 | read at_status <"$at_status_file" |
| 5523 | #AT_STOP_13 |
| 5524 | #AT_START_14 |
| 5525 | at_fn_group_banner 14 'realpath.at:9' \ |
| 5526 | "dpkg-realpath path resolving" " " 3 |
| 5527 | at_xfail=no |
| 5528 | ( |
| 5529 | printf "%s\n" "14. $at_setup_line: testing $at_desc ..." |
| 5530 | $at_traceon |
| 5531 | |
| 5532 | |
| 5533 | |
| 5534 | mkdir -p aa/bb/cc |
| 5535 | mkdir -p zz/yy/xx |
| 5536 | mkdir -p usr/bin |
| 5537 | : >aa/bb/cc/file |
| 5538 | ln -sf aa/bb/cc/file zz/yy/xx/symlink-rel |
| 5539 | ln -sf /aa/bb/cc/file zz/yy/xx/symlink-abs |
| 5540 | : >usr/bin/a-shell |
| 5541 | ln -sf /usr/bin/a-shell usr/bin/sh |
| 5542 | |
| 5543 | tmpdir="$( $PERL -MCwd=realpath,getcwd -E 'say realpath(getcwd())')" |
| 5544 | export DPKG_ROOT= |
| 5545 | |
| 5546 | # Relative paths |
| 5547 | { set +x |
| 5548 | printf "%s\n" "$at_srcdir/realpath.at:25: dpkg-realpath aa/bb/cc" |
| 5549 | at_fn_check_prepare_trace "realpath.at:25" |
| 5550 | ( $at_check_trace; dpkg-realpath aa/bb/cc |
| 5551 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5552 | at_status=$? at_failed=false |
| 5553 | $at_check_filter |
| 5554 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5555 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/aa/bb/cc |
| 5556 | " | \ |
| 5557 | $at_diff - "$at_stdout" || at_failed=: |
| 5558 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:25" |
| 5559 | $at_failed && at_fn_log_failure |
| 5560 | $at_traceon; } |
| 5561 | |
| 5562 | { set +x |
| 5563 | printf "%s\n" "$at_srcdir/realpath.at:28: dpkg-realpath zz/yy/xx" |
| 5564 | at_fn_check_prepare_trace "realpath.at:28" |
| 5565 | ( $at_check_trace; dpkg-realpath zz/yy/xx |
| 5566 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5567 | at_status=$? at_failed=false |
| 5568 | $at_check_filter |
| 5569 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5570 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/zz/yy/xx |
| 5571 | " | \ |
| 5572 | $at_diff - "$at_stdout" || at_failed=: |
| 5573 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:28" |
| 5574 | $at_failed && at_fn_log_failure |
| 5575 | $at_traceon; } |
| 5576 | |
| 5577 | { set +x |
| 5578 | printf "%s\n" "$at_srcdir/realpath.at:30: dpkg-realpath usr/bin" |
| 5579 | at_fn_check_prepare_trace "realpath.at:30" |
| 5580 | ( $at_check_trace; dpkg-realpath usr/bin |
| 5581 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5582 | at_status=$? at_failed=false |
| 5583 | $at_check_filter |
| 5584 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5585 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/usr/bin |
| 5586 | " | \ |
| 5587 | $at_diff - "$at_stdout" || at_failed=: |
| 5588 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:30" |
| 5589 | $at_failed && at_fn_log_failure |
| 5590 | $at_traceon; } |
| 5591 | |
| 5592 | { set +x |
| 5593 | printf "%s\n" "$at_srcdir/realpath.at:32: dpkg-realpath aa/bb/cc/file" |
| 5594 | at_fn_check_prepare_trace "realpath.at:32" |
| 5595 | ( $at_check_trace; dpkg-realpath aa/bb/cc/file |
| 5596 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5597 | at_status=$? at_failed=false |
| 5598 | $at_check_filter |
| 5599 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5600 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/aa/bb/cc/file |
| 5601 | " | \ |
| 5602 | $at_diff - "$at_stdout" || at_failed=: |
| 5603 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:32" |
| 5604 | $at_failed && at_fn_log_failure |
| 5605 | $at_traceon; } |
| 5606 | |
| 5607 | { set +x |
| 5608 | printf "%s\n" "$at_srcdir/realpath.at:34: dpkg-realpath zz/yy/xx/symlink-rel" |
| 5609 | at_fn_check_prepare_trace "realpath.at:34" |
| 5610 | ( $at_check_trace; dpkg-realpath zz/yy/xx/symlink-rel |
| 5611 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5612 | at_status=$? at_failed=false |
| 5613 | $at_check_filter |
| 5614 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5615 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/zz/yy/xx/aa/bb/cc/file |
| 5616 | " | \ |
| 5617 | $at_diff - "$at_stdout" || at_failed=: |
| 5618 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:34" |
| 5619 | $at_failed && at_fn_log_failure |
| 5620 | $at_traceon; } |
| 5621 | |
| 5622 | { set +x |
| 5623 | printf "%s\n" "$at_srcdir/realpath.at:37: dpkg-realpath zz/yy/xx/symlink-abs" |
| 5624 | at_fn_check_prepare_trace "realpath.at:37" |
| 5625 | ( $at_check_trace; dpkg-realpath zz/yy/xx/symlink-abs |
| 5626 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5627 | at_status=$? at_failed=false |
| 5628 | $at_check_filter |
| 5629 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5630 | echo >>"$at_stdout"; printf "%s\n" "/aa/bb/cc/file |
| 5631 | " | \ |
| 5632 | $at_diff - "$at_stdout" || at_failed=: |
| 5633 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:37" |
| 5634 | $at_failed && at_fn_log_failure |
| 5635 | $at_traceon; } |
| 5636 | |
| 5637 | { set +x |
| 5638 | printf "%s\n" "$at_srcdir/realpath.at:39: dpkg-realpath usr/bin/a-shell" |
| 5639 | at_fn_check_prepare_trace "realpath.at:39" |
| 5640 | ( $at_check_trace; dpkg-realpath usr/bin/a-shell |
| 5641 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5642 | at_status=$? at_failed=false |
| 5643 | $at_check_filter |
| 5644 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5645 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/usr/bin/a-shell |
| 5646 | " | \ |
| 5647 | $at_diff - "$at_stdout" || at_failed=: |
| 5648 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:39" |
| 5649 | $at_failed && at_fn_log_failure |
| 5650 | $at_traceon; } |
| 5651 | |
| 5652 | { set +x |
| 5653 | printf "%s\n" "$at_srcdir/realpath.at:42: dpkg-realpath usr/bin/sh" |
| 5654 | at_fn_check_prepare_trace "realpath.at:42" |
| 5655 | ( $at_check_trace; dpkg-realpath usr/bin/sh |
| 5656 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5657 | at_status=$? at_failed=false |
| 5658 | $at_check_filter |
| 5659 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5660 | echo >>"$at_stdout"; printf "%s\n" "/usr/bin/a-shell |
| 5661 | " | \ |
| 5662 | $at_diff - "$at_stdout" || at_failed=: |
| 5663 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:42" |
| 5664 | $at_failed && at_fn_log_failure |
| 5665 | $at_traceon; } |
| 5666 | |
| 5667 | |
| 5668 | # Absolute paths |
| 5669 | cd / |
| 5670 | { set +x |
| 5671 | printf "%s\n" "$at_srcdir/realpath.at:47: dpkg-realpath \"\$tmpdir/aa/bb/cc\"" |
| 5672 | at_fn_check_prepare_dynamic "dpkg-realpath \"$tmpdir/aa/bb/cc\"" "realpath.at:47" |
| 5673 | ( $at_check_trace; dpkg-realpath "$tmpdir/aa/bb/cc" |
| 5674 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5675 | at_status=$? at_failed=false |
| 5676 | $at_check_filter |
| 5677 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5678 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/aa/bb/cc |
| 5679 | " | \ |
| 5680 | $at_diff - "$at_stdout" || at_failed=: |
| 5681 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:47" |
| 5682 | $at_failed && at_fn_log_failure |
| 5683 | $at_traceon; } |
| 5684 | |
| 5685 | { set +x |
| 5686 | printf "%s\n" "$at_srcdir/realpath.at:49: dpkg-realpath \"\$tmpdir/zz/yy/xx\"" |
| 5687 | at_fn_check_prepare_dynamic "dpkg-realpath \"$tmpdir/zz/yy/xx\"" "realpath.at:49" |
| 5688 | ( $at_check_trace; dpkg-realpath "$tmpdir/zz/yy/xx" |
| 5689 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5690 | at_status=$? at_failed=false |
| 5691 | $at_check_filter |
| 5692 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5693 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/zz/yy/xx |
| 5694 | " | \ |
| 5695 | $at_diff - "$at_stdout" || at_failed=: |
| 5696 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:49" |
| 5697 | $at_failed && at_fn_log_failure |
| 5698 | $at_traceon; } |
| 5699 | |
| 5700 | { set +x |
| 5701 | printf "%s\n" "$at_srcdir/realpath.at:51: dpkg-realpath \"\$tmpdir/usr/bin\"" |
| 5702 | at_fn_check_prepare_dynamic "dpkg-realpath \"$tmpdir/usr/bin\"" "realpath.at:51" |
| 5703 | ( $at_check_trace; dpkg-realpath "$tmpdir/usr/bin" |
| 5704 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5705 | at_status=$? at_failed=false |
| 5706 | $at_check_filter |
| 5707 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5708 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/usr/bin |
| 5709 | " | \ |
| 5710 | $at_diff - "$at_stdout" || at_failed=: |
| 5711 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:51" |
| 5712 | $at_failed && at_fn_log_failure |
| 5713 | $at_traceon; } |
| 5714 | |
| 5715 | { set +x |
| 5716 | printf "%s\n" "$at_srcdir/realpath.at:53: dpkg-realpath \"\$tmpdir/aa/bb/cc/file\"" |
| 5717 | at_fn_check_prepare_dynamic "dpkg-realpath \"$tmpdir/aa/bb/cc/file\"" "realpath.at:53" |
| 5718 | ( $at_check_trace; dpkg-realpath "$tmpdir/aa/bb/cc/file" |
| 5719 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5720 | at_status=$? at_failed=false |
| 5721 | $at_check_filter |
| 5722 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5723 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/aa/bb/cc/file |
| 5724 | " | \ |
| 5725 | $at_diff - "$at_stdout" || at_failed=: |
| 5726 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:53" |
| 5727 | $at_failed && at_fn_log_failure |
| 5728 | $at_traceon; } |
| 5729 | |
| 5730 | { set +x |
| 5731 | printf "%s\n" "$at_srcdir/realpath.at:56: dpkg-realpath \"\$tmpdir/zz/yy/xx/symlink-rel\"" |
| 5732 | at_fn_check_prepare_dynamic "dpkg-realpath \"$tmpdir/zz/yy/xx/symlink-rel\"" "realpath.at:56" |
| 5733 | ( $at_check_trace; dpkg-realpath "$tmpdir/zz/yy/xx/symlink-rel" |
| 5734 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5735 | at_status=$? at_failed=false |
| 5736 | $at_check_filter |
| 5737 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5738 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/zz/yy/xx/aa/bb/cc/file |
| 5739 | " | \ |
| 5740 | $at_diff - "$at_stdout" || at_failed=: |
| 5741 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:56" |
| 5742 | $at_failed && at_fn_log_failure |
| 5743 | $at_traceon; } |
| 5744 | |
| 5745 | { set +x |
| 5746 | printf "%s\n" "$at_srcdir/realpath.at:59: dpkg-realpath \"\$tmpdir/zz/yy/xx/symlink-abs\"" |
| 5747 | at_fn_check_prepare_dynamic "dpkg-realpath \"$tmpdir/zz/yy/xx/symlink-abs\"" "realpath.at:59" |
| 5748 | ( $at_check_trace; dpkg-realpath "$tmpdir/zz/yy/xx/symlink-abs" |
| 5749 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5750 | at_status=$? at_failed=false |
| 5751 | $at_check_filter |
| 5752 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5753 | echo >>"$at_stdout"; printf "%s\n" "/aa/bb/cc/file |
| 5754 | " | \ |
| 5755 | $at_diff - "$at_stdout" || at_failed=: |
| 5756 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:59" |
| 5757 | $at_failed && at_fn_log_failure |
| 5758 | $at_traceon; } |
| 5759 | |
| 5760 | { set +x |
| 5761 | printf "%s\n" "$at_srcdir/realpath.at:61: dpkg-realpath \"\$tmpdir/usr/bin/a-shell\"" |
| 5762 | at_fn_check_prepare_dynamic "dpkg-realpath \"$tmpdir/usr/bin/a-shell\"" "realpath.at:61" |
| 5763 | ( $at_check_trace; dpkg-realpath "$tmpdir/usr/bin/a-shell" |
| 5764 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5765 | at_status=$? at_failed=false |
| 5766 | $at_check_filter |
| 5767 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5768 | echo >>"$at_stdout"; printf "%s\n" "$tmpdir/usr/bin/a-shell |
| 5769 | " | \ |
| 5770 | $at_diff - "$at_stdout" || at_failed=: |
| 5771 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:61" |
| 5772 | $at_failed && at_fn_log_failure |
| 5773 | $at_traceon; } |
| 5774 | |
| 5775 | { set +x |
| 5776 | printf "%s\n" "$at_srcdir/realpath.at:64: dpkg-realpath \"\$tmpdir/usr/bin/sh\"" |
| 5777 | at_fn_check_prepare_dynamic "dpkg-realpath \"$tmpdir/usr/bin/sh\"" "realpath.at:64" |
| 5778 | ( $at_check_trace; dpkg-realpath "$tmpdir/usr/bin/sh" |
| 5779 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5780 | at_status=$? at_failed=false |
| 5781 | $at_check_filter |
| 5782 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5783 | echo >>"$at_stdout"; printf "%s\n" "/usr/bin/a-shell |
| 5784 | " | \ |
| 5785 | $at_diff - "$at_stdout" || at_failed=: |
| 5786 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:64" |
| 5787 | $at_failed && at_fn_log_failure |
| 5788 | $at_traceon; } |
| 5789 | |
| 5790 | |
| 5791 | # Chrooted paths |
| 5792 | DPKG_ROOT="$tmpdir" |
| 5793 | { set +x |
| 5794 | printf "%s\n" "$at_srcdir/realpath.at:69: dpkg-realpath /aa/bb/cc" |
| 5795 | at_fn_check_prepare_trace "realpath.at:69" |
| 5796 | ( $at_check_trace; dpkg-realpath /aa/bb/cc |
| 5797 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5798 | at_status=$? at_failed=false |
| 5799 | $at_check_filter |
| 5800 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5801 | echo >>"$at_stdout"; printf "%s\n" "/aa/bb/cc |
| 5802 | " | \ |
| 5803 | $at_diff - "$at_stdout" || at_failed=: |
| 5804 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:69" |
| 5805 | $at_failed && at_fn_log_failure |
| 5806 | $at_traceon; } |
| 5807 | |
| 5808 | { set +x |
| 5809 | printf "%s\n" "$at_srcdir/realpath.at:71: dpkg-realpath /zz/yy/xx" |
| 5810 | at_fn_check_prepare_trace "realpath.at:71" |
| 5811 | ( $at_check_trace; dpkg-realpath /zz/yy/xx |
| 5812 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5813 | at_status=$? at_failed=false |
| 5814 | $at_check_filter |
| 5815 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5816 | echo >>"$at_stdout"; printf "%s\n" "/zz/yy/xx |
| 5817 | " | \ |
| 5818 | $at_diff - "$at_stdout" || at_failed=: |
| 5819 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:71" |
| 5820 | $at_failed && at_fn_log_failure |
| 5821 | $at_traceon; } |
| 5822 | |
| 5823 | { set +x |
| 5824 | printf "%s\n" "$at_srcdir/realpath.at:73: dpkg-realpath /usr/bin" |
| 5825 | at_fn_check_prepare_trace "realpath.at:73" |
| 5826 | ( $at_check_trace; dpkg-realpath /usr/bin |
| 5827 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5828 | at_status=$? at_failed=false |
| 5829 | $at_check_filter |
| 5830 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5831 | echo >>"$at_stdout"; printf "%s\n" "/usr/bin |
| 5832 | " | \ |
| 5833 | $at_diff - "$at_stdout" || at_failed=: |
| 5834 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:73" |
| 5835 | $at_failed && at_fn_log_failure |
| 5836 | $at_traceon; } |
| 5837 | |
| 5838 | { set +x |
| 5839 | printf "%s\n" "$at_srcdir/realpath.at:75: dpkg-realpath /aa/bb/cc/file" |
| 5840 | at_fn_check_prepare_trace "realpath.at:75" |
| 5841 | ( $at_check_trace; dpkg-realpath /aa/bb/cc/file |
| 5842 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5843 | at_status=$? at_failed=false |
| 5844 | $at_check_filter |
| 5845 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5846 | echo >>"$at_stdout"; printf "%s\n" "/aa/bb/cc/file |
| 5847 | " | \ |
| 5848 | $at_diff - "$at_stdout" || at_failed=: |
| 5849 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:75" |
| 5850 | $at_failed && at_fn_log_failure |
| 5851 | $at_traceon; } |
| 5852 | |
| 5853 | { set +x |
| 5854 | printf "%s\n" "$at_srcdir/realpath.at:77: dpkg-realpath /zz/yy/xx/symlink-rel" |
| 5855 | at_fn_check_prepare_trace "realpath.at:77" |
| 5856 | ( $at_check_trace; dpkg-realpath /zz/yy/xx/symlink-rel |
| 5857 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5858 | at_status=$? at_failed=false |
| 5859 | $at_check_filter |
| 5860 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5861 | echo >>"$at_stdout"; printf "%s\n" "/zz/yy/xx/aa/bb/cc/file |
| 5862 | " | \ |
| 5863 | $at_diff - "$at_stdout" || at_failed=: |
| 5864 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:77" |
| 5865 | $at_failed && at_fn_log_failure |
| 5866 | $at_traceon; } |
| 5867 | |
| 5868 | { set +x |
| 5869 | printf "%s\n" "$at_srcdir/realpath.at:79: dpkg-realpath /zz/yy/xx/symlink-abs" |
| 5870 | at_fn_check_prepare_trace "realpath.at:79" |
| 5871 | ( $at_check_trace; dpkg-realpath /zz/yy/xx/symlink-abs |
| 5872 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5873 | at_status=$? at_failed=false |
| 5874 | $at_check_filter |
| 5875 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5876 | echo >>"$at_stdout"; printf "%s\n" "/aa/bb/cc/file |
| 5877 | " | \ |
| 5878 | $at_diff - "$at_stdout" || at_failed=: |
| 5879 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:79" |
| 5880 | $at_failed && at_fn_log_failure |
| 5881 | $at_traceon; } |
| 5882 | |
| 5883 | { set +x |
| 5884 | printf "%s\n" "$at_srcdir/realpath.at:81: dpkg-realpath /usr/bin/a-shell" |
| 5885 | at_fn_check_prepare_trace "realpath.at:81" |
| 5886 | ( $at_check_trace; dpkg-realpath /usr/bin/a-shell |
| 5887 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5888 | at_status=$? at_failed=false |
| 5889 | $at_check_filter |
| 5890 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5891 | echo >>"$at_stdout"; printf "%s\n" "/usr/bin/a-shell |
| 5892 | " | \ |
| 5893 | $at_diff - "$at_stdout" || at_failed=: |
| 5894 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:81" |
| 5895 | $at_failed && at_fn_log_failure |
| 5896 | $at_traceon; } |
| 5897 | |
| 5898 | { set +x |
| 5899 | printf "%s\n" "$at_srcdir/realpath.at:83: dpkg-realpath /usr/bin/sh" |
| 5900 | at_fn_check_prepare_trace "realpath.at:83" |
| 5901 | ( $at_check_trace; dpkg-realpath /usr/bin/sh |
| 5902 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5903 | at_status=$? at_failed=false |
| 5904 | $at_check_filter |
| 5905 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5906 | echo >>"$at_stdout"; printf "%s\n" "/usr/bin/a-shell |
| 5907 | " | \ |
| 5908 | $at_diff - "$at_stdout" || at_failed=: |
| 5909 | at_fn_check_status 0 $at_status "$at_srcdir/realpath.at:83" |
| 5910 | $at_failed && at_fn_log_failure |
| 5911 | $at_traceon; } |
| 5912 | |
| 5913 | |
| 5914 | set +x |
| 5915 | $at_times_p && times >"$at_times_file" |
| 5916 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 5917 | read at_status <"$at_status_file" |
| 5918 | #AT_STOP_14 |
| 5919 | #AT_START_15 |
| 5920 | at_fn_group_banner 15 'divert.at:1' \ |
| 5921 | "dpkg-divert options" " " 4 |
| 5922 | at_xfail=no |
| 5923 | ( |
| 5924 | printf "%s\n" "15. $at_setup_line: testing $at_desc ..." |
| 5925 | $at_traceon |
| 5926 | |
| 5927 | |
| 5928 | |
| 5929 | |
| 5930 | mkdir -p "dpkginst//testdir" |
| 5931 | |
| 5932 | |
| 5933 | { set +x |
| 5934 | printf "%s\n" "$at_srcdir/divert.at:6: dpkg-divert --version" |
| 5935 | at_fn_check_prepare_trace "divert.at:6" |
| 5936 | ( $at_check_trace; dpkg-divert --version |
| 5937 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5938 | at_status=$? at_failed=false |
| 5939 | $at_check_filter |
| 5940 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5941 | echo stdout:; cat "$at_stdout" |
| 5942 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:6" |
| 5943 | $at_failed && at_fn_log_failure |
| 5944 | $at_traceon; } |
| 5945 | |
| 5946 | { set +x |
| 5947 | printf "%s\n" "$at_srcdir/divert.at:7: dpkg-divert --help" |
| 5948 | at_fn_check_prepare_trace "divert.at:7" |
| 5949 | ( $at_check_trace; dpkg-divert --help |
| 5950 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5951 | at_status=$? at_failed=false |
| 5952 | $at_check_filter |
| 5953 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5954 | echo stdout:; cat "$at_stdout" |
| 5955 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:7" |
| 5956 | $at_failed && at_fn_log_failure |
| 5957 | $at_traceon; } |
| 5958 | |
| 5959 | |
| 5960 | { set +x |
| 5961 | printf "%s\n" "$at_srcdir/divert.at:9: dpkg-divert --admindir" |
| 5962 | at_fn_check_prepare_trace "divert.at:9" |
| 5963 | ( $at_check_trace; dpkg-divert --admindir |
| 5964 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5965 | at_status=$? at_failed=false |
| 5966 | $at_check_filter |
| 5967 | echo stderr:; tee stderr <"$at_stderr" |
| 5968 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5969 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:9" |
| 5970 | $at_failed && at_fn_log_failure |
| 5971 | $at_traceon; } |
| 5972 | |
| 5973 | { set +x |
| 5974 | printf "%s\n" "$at_srcdir/divert.at:10: \$EGREP -q '(takes a value|needs.*argument)' stderr" |
| 5975 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:10" |
| 5976 | ( $at_check_trace; $EGREP -q '(takes a value|needs.*argument)' stderr |
| 5977 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5978 | at_status=$? at_failed=false |
| 5979 | $at_check_filter |
| 5980 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 5981 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5982 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:10" |
| 5983 | $at_failed && at_fn_log_failure |
| 5984 | $at_traceon; } |
| 5985 | |
| 5986 | |
| 5987 | { set +x |
| 5988 | printf "%s\n" "$at_srcdir/divert.at:12: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --jachsmitbju" |
| 5989 | at_fn_check_prepare_trace "divert.at:12" |
| 5990 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --jachsmitbju |
| 5991 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 5992 | at_status=$? at_failed=false |
| 5993 | $at_check_filter |
| 5994 | echo stderr:; tee stderr <"$at_stderr" |
| 5995 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 5996 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:12" |
| 5997 | $at_failed && at_fn_log_failure |
| 5998 | $at_traceon; } |
| 5999 | |
| 6000 | { set +x |
| 6001 | printf "%s\n" "$at_srcdir/divert.at:13: \$GREP -q 'unknown option' stderr" |
| 6002 | at_fn_check_prepare_dynamic "$GREP -q 'unknown option' stderr" "divert.at:13" |
| 6003 | ( $at_check_trace; $GREP -q 'unknown option' stderr |
| 6004 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6005 | at_status=$? at_failed=false |
| 6006 | $at_check_filter |
| 6007 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6008 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6009 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:13" |
| 6010 | $at_failed && at_fn_log_failure |
| 6011 | $at_traceon; } |
| 6012 | |
| 6013 | |
| 6014 | { set +x |
| 6015 | printf "%s\n" "$at_srcdir/divert.at:15: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add --remove" |
| 6016 | at_fn_check_prepare_trace "divert.at:15" |
| 6017 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add --remove |
| 6018 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6019 | at_status=$? at_failed=false |
| 6020 | $at_check_filter |
| 6021 | echo stderr:; tee stderr <"$at_stderr" |
| 6022 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6023 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:15" |
| 6024 | $at_failed && at_fn_log_failure |
| 6025 | $at_traceon; } |
| 6026 | |
| 6027 | { set +x |
| 6028 | printf "%s\n" "$at_srcdir/divert.at:16: \$EGREP -q '(conflicting|two).*remove.*add.*' stderr" |
| 6029 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:16" |
| 6030 | ( $at_check_trace; $EGREP -q '(conflicting|two).*remove.*add.*' stderr |
| 6031 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6032 | at_status=$? at_failed=false |
| 6033 | $at_check_filter |
| 6034 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6035 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6036 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:16" |
| 6037 | $at_failed && at_fn_log_failure |
| 6038 | $at_traceon; } |
| 6039 | |
| 6040 | |
| 6041 | { set +x |
| 6042 | printf "%s\n" "$at_srcdir/divert.at:18: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert" |
| 6043 | at_fn_check_prepare_trace "divert.at:18" |
| 6044 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert |
| 6045 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6046 | at_status=$? at_failed=false |
| 6047 | $at_check_filter |
| 6048 | echo stderr:; tee stderr <"$at_stderr" |
| 6049 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6050 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:18" |
| 6051 | $at_failed && at_fn_log_failure |
| 6052 | $at_traceon; } |
| 6053 | |
| 6054 | { set +x |
| 6055 | printf "%s\n" "$at_srcdir/divert.at:19: \$EGREP -q '(takes a value|needs.*argument)' stderr" |
| 6056 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:19" |
| 6057 | ( $at_check_trace; $EGREP -q '(takes a value|needs.*argument)' stderr |
| 6058 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6059 | at_status=$? at_failed=false |
| 6060 | $at_check_filter |
| 6061 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6062 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6063 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:19" |
| 6064 | $at_failed && at_fn_log_failure |
| 6065 | $at_traceon; } |
| 6066 | |
| 6067 | |
| 6068 | { set +x |
| 6069 | printf "%s\n" "$at_srcdir/divert.at:21: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert foo" |
| 6070 | at_fn_check_prepare_trace "divert.at:21" |
| 6071 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert foo |
| 6072 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6073 | at_status=$? at_failed=false |
| 6074 | $at_check_filter |
| 6075 | echo stderr:; tee stderr <"$at_stderr" |
| 6076 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6077 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:21" |
| 6078 | $at_failed && at_fn_log_failure |
| 6079 | $at_traceon; } |
| 6080 | |
| 6081 | { set +x |
| 6082 | printf "%s\n" "$at_srcdir/divert.at:22: \$GREP -q 'absolute' stderr" |
| 6083 | at_fn_check_prepare_dynamic "$GREP -q 'absolute' stderr" "divert.at:22" |
| 6084 | ( $at_check_trace; $GREP -q 'absolute' stderr |
| 6085 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6086 | at_status=$? at_failed=false |
| 6087 | $at_check_filter |
| 6088 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6089 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6090 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:22" |
| 6091 | $at_failed && at_fn_log_failure |
| 6092 | $at_traceon; } |
| 6093 | |
| 6094 | |
| 6095 | { set +x |
| 6096 | printf "%s\n" "$at_srcdir/divert.at:24: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert \"/foo |
| 6097 | bar\"" |
| 6098 | at_fn_check_prepare_notrace 'an embedded newline' "divert.at:24" |
| 6099 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert "/foo |
| 6100 | bar" |
| 6101 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6102 | at_status=$? at_failed=false |
| 6103 | $at_check_filter |
| 6104 | echo stderr:; tee stderr <"$at_stderr" |
| 6105 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6106 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:24" |
| 6107 | $at_failed && at_fn_log_failure |
| 6108 | $at_traceon; } |
| 6109 | |
| 6110 | { set +x |
| 6111 | printf "%s\n" "$at_srcdir/divert.at:26: \$GREP -q 'newline' stderr" |
| 6112 | at_fn_check_prepare_dynamic "$GREP -q 'newline' stderr" "divert.at:26" |
| 6113 | ( $at_check_trace; $GREP -q 'newline' stderr |
| 6114 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6115 | at_status=$? at_failed=false |
| 6116 | $at_check_filter |
| 6117 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6118 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6119 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:26" |
| 6120 | $at_failed && at_fn_log_failure |
| 6121 | $at_traceon; } |
| 6122 | |
| 6123 | |
| 6124 | { set +x |
| 6125 | printf "%s\n" "$at_srcdir/divert.at:28: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package" |
| 6126 | at_fn_check_prepare_trace "divert.at:28" |
| 6127 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package |
| 6128 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6129 | at_status=$? at_failed=false |
| 6130 | $at_check_filter |
| 6131 | echo stderr:; tee stderr <"$at_stderr" |
| 6132 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6133 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:28" |
| 6134 | $at_failed && at_fn_log_failure |
| 6135 | $at_traceon; } |
| 6136 | |
| 6137 | { set +x |
| 6138 | printf "%s\n" "$at_srcdir/divert.at:29: \$EGREP -q '(takes a value|needs.*argument)' stderr" |
| 6139 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:29" |
| 6140 | ( $at_check_trace; $EGREP -q '(takes a value|needs.*argument)' stderr |
| 6141 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6142 | at_status=$? at_failed=false |
| 6143 | $at_check_filter |
| 6144 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6145 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6146 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:29" |
| 6147 | $at_failed && at_fn_log_failure |
| 6148 | $at_traceon; } |
| 6149 | |
| 6150 | |
| 6151 | { set +x |
| 6152 | printf "%s\n" "$at_srcdir/divert.at:31: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package \"foo |
| 6153 | bar\"" |
| 6154 | at_fn_check_prepare_notrace 'an embedded newline' "divert.at:31" |
| 6155 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package "foo |
| 6156 | bar" |
| 6157 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6158 | at_status=$? at_failed=false |
| 6159 | $at_check_filter |
| 6160 | echo stderr:; tee stderr <"$at_stderr" |
| 6161 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6162 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:31" |
| 6163 | $at_failed && at_fn_log_failure |
| 6164 | $at_traceon; } |
| 6165 | |
| 6166 | { set +x |
| 6167 | printf "%s\n" "$at_srcdir/divert.at:33: \$GREP -q 'newline' stderr" |
| 6168 | at_fn_check_prepare_dynamic "$GREP -q 'newline' stderr" "divert.at:33" |
| 6169 | ( $at_check_trace; $GREP -q 'newline' stderr |
| 6170 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6171 | at_status=$? at_failed=false |
| 6172 | $at_check_filter |
| 6173 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6174 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6175 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:33" |
| 6176 | $at_failed && at_fn_log_failure |
| 6177 | $at_traceon; } |
| 6178 | |
| 6179 | |
| 6180 | { set +x |
| 6181 | printf "%s\n" "$at_srcdir/divert.at:35: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add" |
| 6182 | at_fn_check_prepare_trace "divert.at:35" |
| 6183 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add |
| 6184 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6185 | at_status=$? at_failed=false |
| 6186 | $at_check_filter |
| 6187 | echo stderr:; tee stderr <"$at_stderr" |
| 6188 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6189 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:35" |
| 6190 | $at_failed && at_fn_log_failure |
| 6191 | $at_traceon; } |
| 6192 | |
| 6193 | { set +x |
| 6194 | printf "%s\n" "$at_srcdir/divert.at:36: \$GREP -q 'needs a single argument' stderr" |
| 6195 | at_fn_check_prepare_dynamic "$GREP -q 'needs a single argument' stderr" "divert.at:36" |
| 6196 | ( $at_check_trace; $GREP -q 'needs a single argument' stderr |
| 6197 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6198 | at_status=$? at_failed=false |
| 6199 | $at_check_filter |
| 6200 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6201 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6202 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:36" |
| 6203 | $at_failed && at_fn_log_failure |
| 6204 | $at_traceon; } |
| 6205 | |
| 6206 | |
| 6207 | { set +x |
| 6208 | printf "%s\n" "$at_srcdir/divert.at:38: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add foo" |
| 6209 | at_fn_check_prepare_trace "divert.at:38" |
| 6210 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add foo |
| 6211 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6212 | at_status=$? at_failed=false |
| 6213 | $at_check_filter |
| 6214 | echo stderr:; tee stderr <"$at_stderr" |
| 6215 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6216 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:38" |
| 6217 | $at_failed && at_fn_log_failure |
| 6218 | $at_traceon; } |
| 6219 | |
| 6220 | { set +x |
| 6221 | printf "%s\n" "$at_srcdir/divert.at:39: \$GREP -q 'absolute' stderr" |
| 6222 | at_fn_check_prepare_dynamic "$GREP -q 'absolute' stderr" "divert.at:39" |
| 6223 | ( $at_check_trace; $GREP -q 'absolute' stderr |
| 6224 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6225 | at_status=$? at_failed=false |
| 6226 | $at_check_filter |
| 6227 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6228 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6229 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:39" |
| 6230 | $at_failed && at_fn_log_failure |
| 6231 | $at_traceon; } |
| 6232 | |
| 6233 | |
| 6234 | { set +x |
| 6235 | printf "%s\n" "$at_srcdir/divert.at:41: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add \"/foo |
| 6236 | bar\"" |
| 6237 | at_fn_check_prepare_notrace 'an embedded newline' "divert.at:41" |
| 6238 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add "/foo |
| 6239 | bar" |
| 6240 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6241 | at_status=$? at_failed=false |
| 6242 | $at_check_filter |
| 6243 | echo stderr:; tee stderr <"$at_stderr" |
| 6244 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6245 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:41" |
| 6246 | $at_failed && at_fn_log_failure |
| 6247 | $at_traceon; } |
| 6248 | |
| 6249 | { set +x |
| 6250 | printf "%s\n" "$at_srcdir/divert.at:43: \$GREP -q 'newline' stderr" |
| 6251 | at_fn_check_prepare_dynamic "$GREP -q 'newline' stderr" "divert.at:43" |
| 6252 | ( $at_check_trace; $GREP -q 'newline' stderr |
| 6253 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6254 | at_status=$? at_failed=false |
| 6255 | $at_check_filter |
| 6256 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6257 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6258 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:43" |
| 6259 | $at_failed && at_fn_log_failure |
| 6260 | $at_traceon; } |
| 6261 | |
| 6262 | |
| 6263 | { set +x |
| 6264 | printf "%s\n" "$at_srcdir/divert.at:45: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add \"/testdir\"" |
| 6265 | at_fn_check_prepare_trace "divert.at:45" |
| 6266 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add "/testdir" |
| 6267 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6268 | at_status=$? at_failed=false |
| 6269 | $at_check_filter |
| 6270 | echo stderr:; tee stderr <"$at_stderr" |
| 6271 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6272 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:45" |
| 6273 | $at_failed && at_fn_log_failure |
| 6274 | $at_traceon; } |
| 6275 | |
| 6276 | { set +x |
| 6277 | printf "%s\n" "$at_srcdir/divert.at:46: \$EGREP -q 'director(y|ies)' stderr" |
| 6278 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:46" |
| 6279 | ( $at_check_trace; $EGREP -q 'director(y|ies)' stderr |
| 6280 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6281 | at_status=$? at_failed=false |
| 6282 | $at_check_filter |
| 6283 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6284 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6285 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:46" |
| 6286 | $at_failed && at_fn_log_failure |
| 6287 | $at_traceon; } |
| 6288 | |
| 6289 | |
| 6290 | { set +x |
| 6291 | printf "%s\n" "$at_srcdir/divert.at:48: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add --divert bar /foo/bar" |
| 6292 | at_fn_check_prepare_trace "divert.at:48" |
| 6293 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --add --divert bar /foo/bar |
| 6294 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6295 | at_status=$? at_failed=false |
| 6296 | $at_check_filter |
| 6297 | echo stderr:; tee stderr <"$at_stderr" |
| 6298 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6299 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:48" |
| 6300 | $at_failed && at_fn_log_failure |
| 6301 | $at_traceon; } |
| 6302 | |
| 6303 | { set +x |
| 6304 | printf "%s\n" "$at_srcdir/divert.at:49: \$GREP -q 'absolute' stderr" |
| 6305 | at_fn_check_prepare_dynamic "$GREP -q 'absolute' stderr" "divert.at:49" |
| 6306 | ( $at_check_trace; $GREP -q 'absolute' stderr |
| 6307 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6308 | at_status=$? at_failed=false |
| 6309 | $at_check_filter |
| 6310 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6311 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6312 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:49" |
| 6313 | $at_failed && at_fn_log_failure |
| 6314 | $at_traceon; } |
| 6315 | |
| 6316 | |
| 6317 | { set +x |
| 6318 | printf "%s\n" "$at_srcdir/divert.at:51: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --remove" |
| 6319 | at_fn_check_prepare_trace "divert.at:51" |
| 6320 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --remove |
| 6321 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6322 | at_status=$? at_failed=false |
| 6323 | $at_check_filter |
| 6324 | echo stderr:; tee stderr <"$at_stderr" |
| 6325 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6326 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:51" |
| 6327 | $at_failed && at_fn_log_failure |
| 6328 | $at_traceon; } |
| 6329 | |
| 6330 | { set +x |
| 6331 | printf "%s\n" "$at_srcdir/divert.at:52: \$GREP -q 'needs a single argument' stderr" |
| 6332 | at_fn_check_prepare_dynamic "$GREP -q 'needs a single argument' stderr" "divert.at:52" |
| 6333 | ( $at_check_trace; $GREP -q 'needs a single argument' stderr |
| 6334 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6335 | at_status=$? at_failed=false |
| 6336 | $at_check_filter |
| 6337 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6338 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6339 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:52" |
| 6340 | $at_failed && at_fn_log_failure |
| 6341 | $at_traceon; } |
| 6342 | |
| 6343 | |
| 6344 | { set +x |
| 6345 | printf "%s\n" "$at_srcdir/divert.at:54: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --remove foo" |
| 6346 | at_fn_check_prepare_trace "divert.at:54" |
| 6347 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --remove foo |
| 6348 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6349 | at_status=$? at_failed=false |
| 6350 | $at_check_filter |
| 6351 | echo stderr:; tee stderr <"$at_stderr" |
| 6352 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6353 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:54" |
| 6354 | $at_failed && at_fn_log_failure |
| 6355 | $at_traceon; } |
| 6356 | |
| 6357 | { set +x |
| 6358 | printf "%s\n" "$at_srcdir/divert.at:55: \$GREP -q 'absolute' stderr" |
| 6359 | at_fn_check_prepare_dynamic "$GREP -q 'absolute' stderr" "divert.at:55" |
| 6360 | ( $at_check_trace; $GREP -q 'absolute' stderr |
| 6361 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6362 | at_status=$? at_failed=false |
| 6363 | $at_check_filter |
| 6364 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6365 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6366 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:55" |
| 6367 | $at_failed && at_fn_log_failure |
| 6368 | $at_traceon; } |
| 6369 | |
| 6370 | |
| 6371 | { set +x |
| 6372 | printf "%s\n" "$at_srcdir/divert.at:57: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --remove \"/foo |
| 6373 | bar\"" |
| 6374 | at_fn_check_prepare_notrace 'an embedded newline' "divert.at:57" |
| 6375 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --remove "/foo |
| 6376 | bar" |
| 6377 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6378 | at_status=$? at_failed=false |
| 6379 | $at_check_filter |
| 6380 | echo stderr:; tee stderr <"$at_stderr" |
| 6381 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6382 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:57" |
| 6383 | $at_failed && at_fn_log_failure |
| 6384 | $at_traceon; } |
| 6385 | |
| 6386 | { set +x |
| 6387 | printf "%s\n" "$at_srcdir/divert.at:59: \$GREP -q 'newline' stderr" |
| 6388 | at_fn_check_prepare_dynamic "$GREP -q 'newline' stderr" "divert.at:59" |
| 6389 | ( $at_check_trace; $GREP -q 'newline' stderr |
| 6390 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6391 | at_status=$? at_failed=false |
| 6392 | $at_check_filter |
| 6393 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6394 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6395 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:59" |
| 6396 | $at_failed && at_fn_log_failure |
| 6397 | $at_traceon; } |
| 6398 | |
| 6399 | |
| 6400 | { set +x |
| 6401 | printf "%s\n" "$at_srcdir/divert.at:61: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage" |
| 6402 | at_fn_check_prepare_trace "divert.at:61" |
| 6403 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage |
| 6404 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6405 | at_status=$? at_failed=false |
| 6406 | $at_check_filter |
| 6407 | echo stderr:; tee stderr <"$at_stderr" |
| 6408 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6409 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:61" |
| 6410 | $at_failed && at_fn_log_failure |
| 6411 | $at_traceon; } |
| 6412 | |
| 6413 | { set +x |
| 6414 | printf "%s\n" "$at_srcdir/divert.at:62: \$GREP -q 'needs a single argument' stderr" |
| 6415 | at_fn_check_prepare_dynamic "$GREP -q 'needs a single argument' stderr" "divert.at:62" |
| 6416 | ( $at_check_trace; $GREP -q 'needs a single argument' stderr |
| 6417 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6418 | at_status=$? at_failed=false |
| 6419 | $at_check_filter |
| 6420 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6421 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6422 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:62" |
| 6423 | $at_failed && at_fn_log_failure |
| 6424 | $at_traceon; } |
| 6425 | |
| 6426 | |
| 6427 | { set +x |
| 6428 | printf "%s\n" "$at_srcdir/divert.at:64: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage foo" |
| 6429 | at_fn_check_prepare_trace "divert.at:64" |
| 6430 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage foo |
| 6431 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6432 | at_status=$? at_failed=false |
| 6433 | $at_check_filter |
| 6434 | echo stderr:; tee stderr <"$at_stderr" |
| 6435 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6436 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:64" |
| 6437 | $at_failed && at_fn_log_failure |
| 6438 | $at_traceon; } |
| 6439 | |
| 6440 | { set +x |
| 6441 | printf "%s\n" "$at_srcdir/divert.at:65: \$GREP -q 'absolute' stderr" |
| 6442 | at_fn_check_prepare_dynamic "$GREP -q 'absolute' stderr" "divert.at:65" |
| 6443 | ( $at_check_trace; $GREP -q 'absolute' stderr |
| 6444 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6445 | at_status=$? at_failed=false |
| 6446 | $at_check_filter |
| 6447 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6448 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6449 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:65" |
| 6450 | $at_failed && at_fn_log_failure |
| 6451 | $at_traceon; } |
| 6452 | |
| 6453 | |
| 6454 | { set +x |
| 6455 | printf "%s\n" "$at_srcdir/divert.at:67: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage \"/foo |
| 6456 | bar\"" |
| 6457 | at_fn_check_prepare_notrace 'an embedded newline' "divert.at:67" |
| 6458 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage "/foo |
| 6459 | bar" |
| 6460 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6461 | at_status=$? at_failed=false |
| 6462 | $at_check_filter |
| 6463 | echo stderr:; tee stderr <"$at_stderr" |
| 6464 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6465 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:67" |
| 6466 | $at_failed && at_fn_log_failure |
| 6467 | $at_traceon; } |
| 6468 | |
| 6469 | { set +x |
| 6470 | printf "%s\n" "$at_srcdir/divert.at:69: \$GREP -q 'newline' stderr" |
| 6471 | at_fn_check_prepare_dynamic "$GREP -q 'newline' stderr" "divert.at:69" |
| 6472 | ( $at_check_trace; $GREP -q 'newline' stderr |
| 6473 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6474 | at_status=$? at_failed=false |
| 6475 | $at_check_filter |
| 6476 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6477 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6478 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:69" |
| 6479 | $at_failed && at_fn_log_failure |
| 6480 | $at_traceon; } |
| 6481 | |
| 6482 | |
| 6483 | { set +x |
| 6484 | printf "%s\n" "$at_srcdir/divert.at:71: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename" |
| 6485 | at_fn_check_prepare_trace "divert.at:71" |
| 6486 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename |
| 6487 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6488 | at_status=$? at_failed=false |
| 6489 | $at_check_filter |
| 6490 | echo stderr:; tee stderr <"$at_stderr" |
| 6491 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6492 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:71" |
| 6493 | $at_failed && at_fn_log_failure |
| 6494 | $at_traceon; } |
| 6495 | |
| 6496 | { set +x |
| 6497 | printf "%s\n" "$at_srcdir/divert.at:72: \$GREP -q 'needs a single argument' stderr" |
| 6498 | at_fn_check_prepare_dynamic "$GREP -q 'needs a single argument' stderr" "divert.at:72" |
| 6499 | ( $at_check_trace; $GREP -q 'needs a single argument' stderr |
| 6500 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6501 | at_status=$? at_failed=false |
| 6502 | $at_check_filter |
| 6503 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6504 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6505 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:72" |
| 6506 | $at_failed && at_fn_log_failure |
| 6507 | $at_traceon; } |
| 6508 | |
| 6509 | |
| 6510 | { set +x |
| 6511 | printf "%s\n" "$at_srcdir/divert.at:74: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename foo" |
| 6512 | at_fn_check_prepare_trace "divert.at:74" |
| 6513 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename foo |
| 6514 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6515 | at_status=$? at_failed=false |
| 6516 | $at_check_filter |
| 6517 | echo stderr:; tee stderr <"$at_stderr" |
| 6518 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6519 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:74" |
| 6520 | $at_failed && at_fn_log_failure |
| 6521 | $at_traceon; } |
| 6522 | |
| 6523 | { set +x |
| 6524 | printf "%s\n" "$at_srcdir/divert.at:75: \$GREP -q 'absolute' stderr" |
| 6525 | at_fn_check_prepare_dynamic "$GREP -q 'absolute' stderr" "divert.at:75" |
| 6526 | ( $at_check_trace; $GREP -q 'absolute' stderr |
| 6527 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6528 | at_status=$? at_failed=false |
| 6529 | $at_check_filter |
| 6530 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6531 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6532 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:75" |
| 6533 | $at_failed && at_fn_log_failure |
| 6534 | $at_traceon; } |
| 6535 | |
| 6536 | |
| 6537 | { set +x |
| 6538 | printf "%s\n" "$at_srcdir/divert.at:77: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename \"/foo |
| 6539 | bar\"" |
| 6540 | at_fn_check_prepare_notrace 'an embedded newline' "divert.at:77" |
| 6541 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename "/foo |
| 6542 | bar" |
| 6543 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6544 | at_status=$? at_failed=false |
| 6545 | $at_check_filter |
| 6546 | echo stderr:; tee stderr <"$at_stderr" |
| 6547 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6548 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:77" |
| 6549 | $at_failed && at_fn_log_failure |
| 6550 | $at_traceon; } |
| 6551 | |
| 6552 | { set +x |
| 6553 | printf "%s\n" "$at_srcdir/divert.at:79: \$GREP -q 'newline' stderr" |
| 6554 | at_fn_check_prepare_dynamic "$GREP -q 'newline' stderr" "divert.at:79" |
| 6555 | ( $at_check_trace; $GREP -q 'newline' stderr |
| 6556 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6557 | at_status=$? at_failed=false |
| 6558 | $at_check_filter |
| 6559 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6560 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6561 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:79" |
| 6562 | $at_failed && at_fn_log_failure |
| 6563 | $at_traceon; } |
| 6564 | |
| 6565 | |
| 6566 | set +x |
| 6567 | $at_times_p && times >"$at_times_file" |
| 6568 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6569 | read at_status <"$at_status_file" |
| 6570 | #AT_STOP_15 |
| 6571 | #AT_START_16 |
| 6572 | at_fn_group_banner 16 'divert.at:83' \ |
| 6573 | "dpkg-divert query (empty db)" " " 4 |
| 6574 | at_xfail=no |
| 6575 | ( |
| 6576 | printf "%s\n" "16. $at_setup_line: testing $at_desc ..." |
| 6577 | $at_traceon |
| 6578 | |
| 6579 | |
| 6580 | |
| 6581 | |
| 6582 | |
| 6583 | mkdir -p "dpkgdb" |
| 6584 | : >dpkgdb/diversions |
| 6585 | |
| 6586 | |
| 6587 | |
| 6588 | { set +x |
| 6589 | printf "%s\n" "$at_srcdir/divert.at:88: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list" |
| 6590 | at_fn_check_prepare_trace "divert.at:88" |
| 6591 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list |
| 6592 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6593 | at_status=$? at_failed=false |
| 6594 | $at_check_filter |
| 6595 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6596 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6597 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:88" |
| 6598 | $at_failed && at_fn_log_failure |
| 6599 | $at_traceon; } |
| 6600 | |
| 6601 | { set +x |
| 6602 | printf "%s\n" "$at_srcdir/divert.at:89: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '*'" |
| 6603 | at_fn_check_prepare_trace "divert.at:89" |
| 6604 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '*' |
| 6605 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6606 | at_status=$? at_failed=false |
| 6607 | $at_check_filter |
| 6608 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6609 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6610 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:89" |
| 6611 | $at_failed && at_fn_log_failure |
| 6612 | $at_traceon; } |
| 6613 | |
| 6614 | { set +x |
| 6615 | printf "%s\n" "$at_srcdir/divert.at:90: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list 'baz'" |
| 6616 | at_fn_check_prepare_trace "divert.at:90" |
| 6617 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list 'baz' |
| 6618 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6619 | at_status=$? at_failed=false |
| 6620 | $at_check_filter |
| 6621 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6622 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6623 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:90" |
| 6624 | $at_failed && at_fn_log_failure |
| 6625 | $at_traceon; } |
| 6626 | |
| 6627 | |
| 6628 | set +x |
| 6629 | $at_times_p && times >"$at_times_file" |
| 6630 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6631 | read at_status <"$at_status_file" |
| 6632 | #AT_STOP_16 |
| 6633 | #AT_START_17 |
| 6634 | at_fn_group_banner 17 'divert.at:94' \ |
| 6635 | "dpkg-divert query (list)" " " 4 |
| 6636 | at_xfail=no |
| 6637 | ( |
| 6638 | printf "%s\n" "17. $at_setup_line: testing $at_desc ..." |
| 6639 | $at_traceon |
| 6640 | |
| 6641 | |
| 6642 | |
| 6643 | |
| 6644 | |
| 6645 | mkdir -p "dpkgdb" |
| 6646 | cat >dpkgdb/diversions <<'_ATEOF' |
| 6647 | /bin/sh |
| 6648 | /bin/sh.distrib |
| 6649 | dash |
| 6650 | /usr/share/man/man1/sh.1.gz |
| 6651 | /usr/share/man/man1/sh.distrib.1.gz |
| 6652 | dash |
| 6653 | /usr/bin/nm |
| 6654 | /usr/bin/nm.single |
| 6655 | binutils-multiarch |
| 6656 | _ATEOF |
| 6657 | |
| 6658 | |
| 6659 | |
| 6660 | |
| 6661 | |
| 6662 | |
| 6663 | |
| 6664 | |
| 6665 | |
| 6666 | { set +x |
| 6667 | printf "%s\n" "$at_srcdir/divert.at:118: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list" |
| 6668 | at_fn_check_prepare_trace "divert.at:118" |
| 6669 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list |
| 6670 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6671 | at_status=$? at_failed=false |
| 6672 | $at_check_filter |
| 6673 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6674 | echo >>"$at_stdout"; printf "%s\n" "diversion of /usr/bin/nm to /usr/bin/nm.single by binutils-multiarch |
| 6675 | diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash |
| 6676 | diversion of /bin/sh to /bin/sh.distrib by dash |
| 6677 | " | \ |
| 6678 | $at_diff - "$at_stdout" || at_failed=: |
| 6679 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:118" |
| 6680 | $at_failed && at_fn_log_failure |
| 6681 | $at_traceon; } |
| 6682 | |
| 6683 | { set +x |
| 6684 | printf "%s\n" "$at_srcdir/divert.at:119: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '*'" |
| 6685 | at_fn_check_prepare_trace "divert.at:119" |
| 6686 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '*' |
| 6687 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6688 | at_status=$? at_failed=false |
| 6689 | $at_check_filter |
| 6690 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6691 | echo >>"$at_stdout"; printf "%s\n" "diversion of /usr/bin/nm to /usr/bin/nm.single by binutils-multiarch |
| 6692 | diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash |
| 6693 | diversion of /bin/sh to /bin/sh.distrib by dash |
| 6694 | " | \ |
| 6695 | $at_diff - "$at_stdout" || at_failed=: |
| 6696 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:119" |
| 6697 | $at_failed && at_fn_log_failure |
| 6698 | $at_traceon; } |
| 6699 | |
| 6700 | { set +x |
| 6701 | printf "%s\n" "$at_srcdir/divert.at:120: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list ''" |
| 6702 | at_fn_check_prepare_trace "divert.at:120" |
| 6703 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '' |
| 6704 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6705 | at_status=$? at_failed=false |
| 6706 | $at_check_filter |
| 6707 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6708 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6709 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:120" |
| 6710 | $at_failed && at_fn_log_failure |
| 6711 | $at_traceon; } |
| 6712 | |
| 6713 | |
| 6714 | { set +x |
| 6715 | printf "%s\n" "$at_srcdir/divert.at:122: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '???????'" |
| 6716 | at_fn_check_prepare_trace "divert.at:122" |
| 6717 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '???????' |
| 6718 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6719 | at_status=$? at_failed=false |
| 6720 | $at_check_filter |
| 6721 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6722 | echo >>"$at_stdout"; printf "%s\n" "diversion of /bin/sh to /bin/sh.distrib by dash |
| 6723 | " | \ |
| 6724 | $at_diff - "$at_stdout" || at_failed=: |
| 6725 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:122" |
| 6726 | $at_failed && at_fn_log_failure |
| 6727 | $at_traceon; } |
| 6728 | |
| 6729 | { set +x |
| 6730 | printf "%s\n" "$at_srcdir/divert.at:123: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '*/sh'" |
| 6731 | at_fn_check_prepare_trace "divert.at:123" |
| 6732 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '*/sh' |
| 6733 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6734 | at_status=$? at_failed=false |
| 6735 | $at_check_filter |
| 6736 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6737 | echo >>"$at_stdout"; printf "%s\n" "diversion of /bin/sh to /bin/sh.distrib by dash |
| 6738 | " | \ |
| 6739 | $at_diff - "$at_stdout" || at_failed=: |
| 6740 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:123" |
| 6741 | $at_failed && at_fn_log_failure |
| 6742 | $at_traceon; } |
| 6743 | |
| 6744 | { set +x |
| 6745 | printf "%s\n" "$at_srcdir/divert.at:124: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '/bin/*'" |
| 6746 | at_fn_check_prepare_trace "divert.at:124" |
| 6747 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list '/bin/*' |
| 6748 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6749 | at_status=$? at_failed=false |
| 6750 | $at_check_filter |
| 6751 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6752 | echo >>"$at_stdout"; printf "%s\n" "diversion of /bin/sh to /bin/sh.distrib by dash |
| 6753 | " | \ |
| 6754 | $at_diff - "$at_stdout" || at_failed=: |
| 6755 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:124" |
| 6756 | $at_failed && at_fn_log_failure |
| 6757 | $at_traceon; } |
| 6758 | |
| 6759 | { set +x |
| 6760 | printf "%s\n" "$at_srcdir/divert.at:125: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list binutils-multiarch" |
| 6761 | at_fn_check_prepare_trace "divert.at:125" |
| 6762 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list binutils-multiarch |
| 6763 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6764 | at_status=$? at_failed=false |
| 6765 | $at_check_filter |
| 6766 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6767 | echo >>"$at_stdout"; printf "%s\n" "diversion of /usr/bin/nm to /usr/bin/nm.single by binutils-multiarch |
| 6768 | " | \ |
| 6769 | $at_diff - "$at_stdout" || at_failed=: |
| 6770 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:125" |
| 6771 | $at_failed && at_fn_log_failure |
| 6772 | $at_traceon; } |
| 6773 | |
| 6774 | { set +x |
| 6775 | printf "%s\n" "$at_srcdir/divert.at:126: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list /bin/sh" |
| 6776 | at_fn_check_prepare_trace "divert.at:126" |
| 6777 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list /bin/sh |
| 6778 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6779 | at_status=$? at_failed=false |
| 6780 | $at_check_filter |
| 6781 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6782 | echo >>"$at_stdout"; printf "%s\n" "diversion of /bin/sh to /bin/sh.distrib by dash |
| 6783 | " | \ |
| 6784 | $at_diff - "$at_stdout" || at_failed=: |
| 6785 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:126" |
| 6786 | $at_failed && at_fn_log_failure |
| 6787 | $at_traceon; } |
| 6788 | |
| 6789 | { set +x |
| 6790 | printf "%s\n" "$at_srcdir/divert.at:127: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list -- /bin/sh" |
| 6791 | at_fn_check_prepare_trace "divert.at:127" |
| 6792 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list -- /bin/sh |
| 6793 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6794 | at_status=$? at_failed=false |
| 6795 | $at_check_filter |
| 6796 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6797 | echo >>"$at_stdout"; printf "%s\n" "diversion of /bin/sh to /bin/sh.distrib by dash |
| 6798 | " | \ |
| 6799 | $at_diff - "$at_stdout" || at_failed=: |
| 6800 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:127" |
| 6801 | $at_failed && at_fn_log_failure |
| 6802 | $at_traceon; } |
| 6803 | |
| 6804 | { set +x |
| 6805 | printf "%s\n" "$at_srcdir/divert.at:128: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list /usr/bin/nm.single" |
| 6806 | at_fn_check_prepare_trace "divert.at:128" |
| 6807 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list /usr/bin/nm.single |
| 6808 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6809 | at_status=$? at_failed=false |
| 6810 | $at_check_filter |
| 6811 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6812 | echo >>"$at_stdout"; printf "%s\n" "diversion of /usr/bin/nm to /usr/bin/nm.single by binutils-multiarch |
| 6813 | " | \ |
| 6814 | $at_diff - "$at_stdout" || at_failed=: |
| 6815 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:128" |
| 6816 | $at_failed && at_fn_log_failure |
| 6817 | $at_traceon; } |
| 6818 | |
| 6819 | { set +x |
| 6820 | printf "%s\n" "$at_srcdir/divert.at:129: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list /bin/sh /usr/share/man/man1/sh.1.gz" |
| 6821 | at_fn_check_prepare_trace "divert.at:129" |
| 6822 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list /bin/sh /usr/share/man/man1/sh.1.gz |
| 6823 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6824 | at_status=$? at_failed=false |
| 6825 | $at_check_filter |
| 6826 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6827 | echo >>"$at_stdout"; printf "%s\n" "diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash |
| 6828 | diversion of /bin/sh to /bin/sh.distrib by dash |
| 6829 | " | \ |
| 6830 | $at_diff - "$at_stdout" || at_failed=: |
| 6831 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:129" |
| 6832 | $at_failed && at_fn_log_failure |
| 6833 | $at_traceon; } |
| 6834 | |
| 6835 | |
| 6836 | set +x |
| 6837 | $at_times_p && times >"$at_times_file" |
| 6838 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6839 | read at_status <"$at_status_file" |
| 6840 | #AT_STOP_17 |
| 6841 | #AT_START_18 |
| 6842 | at_fn_group_banner 18 'divert.at:134' \ |
| 6843 | "dpkg-divert query (listpackage + truename)" " " 4 |
| 6844 | at_xfail=no |
| 6845 | ( |
| 6846 | printf "%s\n" "18. $at_setup_line: testing $at_desc ..." |
| 6847 | $at_traceon |
| 6848 | |
| 6849 | |
| 6850 | |
| 6851 | |
| 6852 | |
| 6853 | mkdir -p "dpkgdb" |
| 6854 | cat >dpkgdb/diversions <<'_ATEOF' |
| 6855 | /bin/sh |
| 6856 | /bin/sh.distrib |
| 6857 | dash |
| 6858 | /bin/true |
| 6859 | /bin/true.coreutils |
| 6860 | : |
| 6861 | _ATEOF |
| 6862 | |
| 6863 | |
| 6864 | |
| 6865 | |
| 6866 | { set +x |
| 6867 | printf "%s\n" "$at_srcdir/divert.at:145: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage /bin/sh" |
| 6868 | at_fn_check_prepare_trace "divert.at:145" |
| 6869 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage /bin/sh |
| 6870 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6871 | at_status=$? at_failed=false |
| 6872 | $at_check_filter |
| 6873 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6874 | echo >>"$at_stdout"; printf "%s\n" "dash |
| 6875 | " | \ |
| 6876 | $at_diff - "$at_stdout" || at_failed=: |
| 6877 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:145" |
| 6878 | $at_failed && at_fn_log_failure |
| 6879 | $at_traceon; } |
| 6880 | |
| 6881 | { set +x |
| 6882 | printf "%s\n" "$at_srcdir/divert.at:147: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage /bin/true" |
| 6883 | at_fn_check_prepare_trace "divert.at:147" |
| 6884 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage /bin/true |
| 6885 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6886 | at_status=$? at_failed=false |
| 6887 | $at_check_filter |
| 6888 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6889 | echo >>"$at_stdout"; printf "%s\n" "LOCAL |
| 6890 | " | \ |
| 6891 | $at_diff - "$at_stdout" || at_failed=: |
| 6892 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:147" |
| 6893 | $at_failed && at_fn_log_failure |
| 6894 | $at_traceon; } |
| 6895 | |
| 6896 | { set +x |
| 6897 | printf "%s\n" "$at_srcdir/divert.at:149: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage /bin/false" |
| 6898 | at_fn_check_prepare_trace "divert.at:149" |
| 6899 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --listpackage /bin/false |
| 6900 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6901 | at_status=$? at_failed=false |
| 6902 | $at_check_filter |
| 6903 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6904 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 6905 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:149" |
| 6906 | $at_failed && at_fn_log_failure |
| 6907 | $at_traceon; } |
| 6908 | |
| 6909 | |
| 6910 | { set +x |
| 6911 | printf "%s\n" "$at_srcdir/divert.at:151: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename /bin/sh" |
| 6912 | at_fn_check_prepare_trace "divert.at:151" |
| 6913 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename /bin/sh |
| 6914 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6915 | at_status=$? at_failed=false |
| 6916 | $at_check_filter |
| 6917 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6918 | echo >>"$at_stdout"; printf "%s\n" "/bin/sh.distrib |
| 6919 | " | \ |
| 6920 | $at_diff - "$at_stdout" || at_failed=: |
| 6921 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:151" |
| 6922 | $at_failed && at_fn_log_failure |
| 6923 | $at_traceon; } |
| 6924 | |
| 6925 | { set +x |
| 6926 | printf "%s\n" "$at_srcdir/divert.at:153: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename /bin/sh.distrib" |
| 6927 | at_fn_check_prepare_trace "divert.at:153" |
| 6928 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename /bin/sh.distrib |
| 6929 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6930 | at_status=$? at_failed=false |
| 6931 | $at_check_filter |
| 6932 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6933 | echo >>"$at_stdout"; printf "%s\n" "/bin/sh.distrib |
| 6934 | " | \ |
| 6935 | $at_diff - "$at_stdout" || at_failed=: |
| 6936 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:153" |
| 6937 | $at_failed && at_fn_log_failure |
| 6938 | $at_traceon; } |
| 6939 | |
| 6940 | { set +x |
| 6941 | printf "%s\n" "$at_srcdir/divert.at:155: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename /bin/something" |
| 6942 | at_fn_check_prepare_trace "divert.at:155" |
| 6943 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --truename /bin/something |
| 6944 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6945 | at_status=$? at_failed=false |
| 6946 | $at_check_filter |
| 6947 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6948 | echo >>"$at_stdout"; printf "%s\n" "/bin/something |
| 6949 | " | \ |
| 6950 | $at_diff - "$at_stdout" || at_failed=: |
| 6951 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:155" |
| 6952 | $at_failed && at_fn_log_failure |
| 6953 | $at_traceon; } |
| 6954 | |
| 6955 | |
| 6956 | set +x |
| 6957 | $at_times_p && times >"$at_times_file" |
| 6958 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 6959 | read at_status <"$at_status_file" |
| 6960 | #AT_STOP_18 |
| 6961 | #AT_START_19 |
| 6962 | at_fn_group_banner 19 'divert.at:160' \ |
| 6963 | "dpkg-divert add (local rename)" " " 4 |
| 6964 | at_xfail=no |
| 6965 | ( |
| 6966 | printf "%s\n" "19. $at_setup_line: testing $at_desc ..." |
| 6967 | $at_traceon |
| 6968 | |
| 6969 | |
| 6970 | |
| 6971 | |
| 6972 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 6973 | : >dpkginst//testdir/foo |
| 6974 | |
| 6975 | |
| 6976 | |
| 6977 | mkdir -p "dpkgdb" |
| 6978 | : >dpkgdb/diversions |
| 6979 | |
| 6980 | |
| 6981 | cat >ref-diversions <<'_ATEOF' |
| 6982 | /testdir/foo |
| 6983 | /testdir/foo.distrib |
| 6984 | : |
| 6985 | _ATEOF |
| 6986 | |
| 6987 | |
| 6988 | { set +x |
| 6989 | printf "%s\n" "$at_srcdir/divert.at:170: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 6990 | at_fn_check_prepare_trace "divert.at:170" |
| 6991 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 6992 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 6993 | at_status=$? at_failed=false |
| 6994 | $at_check_filter |
| 6995 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 6996 | echo stdout:; tee stdout <"$at_stdout" |
| 6997 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:170" |
| 6998 | $at_failed && at_fn_log_failure |
| 6999 | $at_traceon; } |
| 7000 | |
| 7001 | { set +x |
| 7002 | printf "%s\n" "$at_srcdir/divert.at:171: \$GREP -q \"Adding.*local.*diversion.* /testdir/foo.* /testdir/foo.distrib\" stdout" |
| 7003 | at_fn_check_prepare_dynamic "$GREP -q \"Adding.*local.*diversion.* /testdir/foo.* /testdir/foo.distrib\" stdout" "divert.at:171" |
| 7004 | ( $at_check_trace; $GREP -q "Adding.*local.*diversion.* /testdir/foo.* /testdir/foo.distrib" stdout |
| 7005 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7006 | at_status=$? at_failed=false |
| 7007 | $at_check_filter |
| 7008 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7009 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7010 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:171" |
| 7011 | $at_failed && at_fn_log_failure |
| 7012 | $at_traceon; } |
| 7013 | |
| 7014 | |
| 7015 | { set +x |
| 7016 | printf "%s\n" "$at_srcdir/divert.at:172: test -e \"dpkginst//testdir/foo\"" |
| 7017 | at_fn_check_prepare_trace "divert.at:172" |
| 7018 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 7019 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7020 | at_status=$? at_failed=false |
| 7021 | $at_check_filter |
| 7022 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7023 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7024 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:172" |
| 7025 | $at_failed && at_fn_log_failure |
| 7026 | $at_traceon; } |
| 7027 | |
| 7028 | |
| 7029 | |
| 7030 | { set +x |
| 7031 | printf "%s\n" "$at_srcdir/divert.at:173: test -e \"dpkginst//testdir/foo.distrib\"" |
| 7032 | at_fn_check_prepare_trace "divert.at:173" |
| 7033 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 7034 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7035 | at_status=$? at_failed=false |
| 7036 | $at_check_filter |
| 7037 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7038 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7039 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:173" |
| 7040 | $at_failed && at_fn_log_failure |
| 7041 | $at_traceon; } |
| 7042 | |
| 7043 | |
| 7044 | |
| 7045 | cp "ref-diversions" expout |
| 7046 | { set +x |
| 7047 | printf "%s\n" "$at_srcdir/divert.at:174: cat \"dpkgdb/diversions\"" |
| 7048 | at_fn_check_prepare_trace "divert.at:174" |
| 7049 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 7050 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7051 | at_status=$? at_failed=false |
| 7052 | $at_check_filter |
| 7053 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7054 | $at_diff expout "$at_stdout" || at_failed=: |
| 7055 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:174" |
| 7056 | $at_failed && at_fn_log_failure |
| 7057 | $at_traceon; } |
| 7058 | |
| 7059 | |
| 7060 | |
| 7061 | set +x |
| 7062 | $at_times_p && times >"$at_times_file" |
| 7063 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7064 | read at_status <"$at_status_file" |
| 7065 | #AT_STOP_19 |
| 7066 | #AT_START_20 |
| 7067 | at_fn_group_banner 20 'divert.at:178' \ |
| 7068 | "dpkg-divert add (local no-rename)" " " 4 |
| 7069 | at_xfail=no |
| 7070 | ( |
| 7071 | printf "%s\n" "20. $at_setup_line: testing $at_desc ..." |
| 7072 | $at_traceon |
| 7073 | |
| 7074 | |
| 7075 | |
| 7076 | |
| 7077 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 7078 | : >dpkginst//testdir/foo |
| 7079 | |
| 7080 | |
| 7081 | |
| 7082 | mkdir -p "dpkgdb" |
| 7083 | : >dpkgdb/diversions |
| 7084 | |
| 7085 | |
| 7086 | cat >ref-diversions <<'_ATEOF' |
| 7087 | /testdir/foo |
| 7088 | /testdir/foo.distrib |
| 7089 | : |
| 7090 | _ATEOF |
| 7091 | |
| 7092 | |
| 7093 | { set +x |
| 7094 | printf "%s\n" "$at_srcdir/divert.at:188: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --no-rename --add /testdir/foo" |
| 7095 | at_fn_check_prepare_trace "divert.at:188" |
| 7096 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --no-rename --add /testdir/foo |
| 7097 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7098 | at_status=$? at_failed=false |
| 7099 | $at_check_filter |
| 7100 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7101 | echo stdout:; tee stdout <"$at_stdout" |
| 7102 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:188" |
| 7103 | $at_failed && at_fn_log_failure |
| 7104 | $at_traceon; } |
| 7105 | |
| 7106 | { set +x |
| 7107 | printf "%s\n" "$at_srcdir/divert.at:189: \$GREP -q \"Adding.*local.*diversion.* /testdir/foo.* /testdir/foo.distrib\" stdout" |
| 7108 | at_fn_check_prepare_dynamic "$GREP -q \"Adding.*local.*diversion.* /testdir/foo.* /testdir/foo.distrib\" stdout" "divert.at:189" |
| 7109 | ( $at_check_trace; $GREP -q "Adding.*local.*diversion.* /testdir/foo.* /testdir/foo.distrib" stdout |
| 7110 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7111 | at_status=$? at_failed=false |
| 7112 | $at_check_filter |
| 7113 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7114 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7115 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:189" |
| 7116 | $at_failed && at_fn_log_failure |
| 7117 | $at_traceon; } |
| 7118 | |
| 7119 | |
| 7120 | { set +x |
| 7121 | printf "%s\n" "$at_srcdir/divert.at:190: test -e \"dpkginst//testdir/foo\"" |
| 7122 | at_fn_check_prepare_trace "divert.at:190" |
| 7123 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 7124 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7125 | at_status=$? at_failed=false |
| 7126 | $at_check_filter |
| 7127 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7128 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7129 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:190" |
| 7130 | $at_failed && at_fn_log_failure |
| 7131 | $at_traceon; } |
| 7132 | |
| 7133 | |
| 7134 | |
| 7135 | { set +x |
| 7136 | printf "%s\n" "$at_srcdir/divert.at:191: test -e \"dpkginst//testdir/foo.distrib\"" |
| 7137 | at_fn_check_prepare_trace "divert.at:191" |
| 7138 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 7139 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7140 | at_status=$? at_failed=false |
| 7141 | $at_check_filter |
| 7142 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7143 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7144 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:191" |
| 7145 | $at_failed && at_fn_log_failure |
| 7146 | $at_traceon; } |
| 7147 | |
| 7148 | |
| 7149 | |
| 7150 | cp "ref-diversions" expout |
| 7151 | { set +x |
| 7152 | printf "%s\n" "$at_srcdir/divert.at:192: cat \"dpkgdb/diversions\"" |
| 7153 | at_fn_check_prepare_trace "divert.at:192" |
| 7154 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 7155 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7156 | at_status=$? at_failed=false |
| 7157 | $at_check_filter |
| 7158 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7159 | $at_diff expout "$at_stdout" || at_failed=: |
| 7160 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:192" |
| 7161 | $at_failed && at_fn_log_failure |
| 7162 | $at_traceon; } |
| 7163 | |
| 7164 | |
| 7165 | |
| 7166 | set +x |
| 7167 | $at_times_p && times >"$at_times_file" |
| 7168 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7169 | read at_status <"$at_status_file" |
| 7170 | #AT_STOP_20 |
| 7171 | #AT_START_21 |
| 7172 | at_fn_group_banner 21 'divert.at:196' \ |
| 7173 | "dpkg-divert add (rename quiet)" " " 4 |
| 7174 | at_xfail=no |
| 7175 | ( |
| 7176 | printf "%s\n" "21. $at_setup_line: testing $at_desc ..." |
| 7177 | $at_traceon |
| 7178 | |
| 7179 | |
| 7180 | |
| 7181 | |
| 7182 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 7183 | : >dpkginst//testdir/foo |
| 7184 | |
| 7185 | |
| 7186 | |
| 7187 | mkdir -p "dpkgdb" |
| 7188 | : >dpkgdb/diversions |
| 7189 | |
| 7190 | |
| 7191 | cat >ref-diversions <<'_ATEOF' |
| 7192 | /testdir/foo |
| 7193 | /testdir/foo.distrib |
| 7194 | : |
| 7195 | _ATEOF |
| 7196 | |
| 7197 | |
| 7198 | { set +x |
| 7199 | printf "%s\n" "$at_srcdir/divert.at:206: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --add /testdir/foo" |
| 7200 | at_fn_check_prepare_trace "divert.at:206" |
| 7201 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --add /testdir/foo |
| 7202 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7203 | at_status=$? at_failed=false |
| 7204 | $at_check_filter |
| 7205 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7206 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7207 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:206" |
| 7208 | $at_failed && at_fn_log_failure |
| 7209 | $at_traceon; } |
| 7210 | |
| 7211 | |
| 7212 | { set +x |
| 7213 | printf "%s\n" "$at_srcdir/divert.at:207: test -e \"dpkginst//testdir/foo\"" |
| 7214 | at_fn_check_prepare_trace "divert.at:207" |
| 7215 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 7216 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7217 | at_status=$? at_failed=false |
| 7218 | $at_check_filter |
| 7219 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7220 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7221 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:207" |
| 7222 | $at_failed && at_fn_log_failure |
| 7223 | $at_traceon; } |
| 7224 | |
| 7225 | |
| 7226 | |
| 7227 | { set +x |
| 7228 | printf "%s\n" "$at_srcdir/divert.at:208: test -e \"dpkginst//testdir/foo.distrib\"" |
| 7229 | at_fn_check_prepare_trace "divert.at:208" |
| 7230 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 7231 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7232 | at_status=$? at_failed=false |
| 7233 | $at_check_filter |
| 7234 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7235 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7236 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:208" |
| 7237 | $at_failed && at_fn_log_failure |
| 7238 | $at_traceon; } |
| 7239 | |
| 7240 | |
| 7241 | |
| 7242 | cp "ref-diversions" expout |
| 7243 | { set +x |
| 7244 | printf "%s\n" "$at_srcdir/divert.at:209: cat \"dpkgdb/diversions\"" |
| 7245 | at_fn_check_prepare_trace "divert.at:209" |
| 7246 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 7247 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7248 | at_status=$? at_failed=false |
| 7249 | $at_check_filter |
| 7250 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7251 | $at_diff expout "$at_stdout" || at_failed=: |
| 7252 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:209" |
| 7253 | $at_failed && at_fn_log_failure |
| 7254 | $at_traceon; } |
| 7255 | |
| 7256 | |
| 7257 | |
| 7258 | set +x |
| 7259 | $at_times_p && times >"$at_times_file" |
| 7260 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7261 | read at_status <"$at_status_file" |
| 7262 | #AT_STOP_21 |
| 7263 | #AT_START_22 |
| 7264 | at_fn_group_banner 22 'divert.at:213' \ |
| 7265 | "dpkg-divert add (test rename quiet)" " " 4 |
| 7266 | at_xfail=no |
| 7267 | ( |
| 7268 | printf "%s\n" "22. $at_setup_line: testing $at_desc ..." |
| 7269 | $at_traceon |
| 7270 | |
| 7271 | |
| 7272 | |
| 7273 | |
| 7274 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 7275 | : >dpkginst//testdir/foo |
| 7276 | |
| 7277 | |
| 7278 | |
| 7279 | mkdir -p "dpkgdb" |
| 7280 | : >dpkgdb/diversions |
| 7281 | |
| 7282 | |
| 7283 | |
| 7284 | { set +x |
| 7285 | printf "%s\n" "$at_srcdir/divert.at:219: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --test /testdir/foo" |
| 7286 | at_fn_check_prepare_trace "divert.at:219" |
| 7287 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --test /testdir/foo |
| 7288 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7289 | at_status=$? at_failed=false |
| 7290 | $at_check_filter |
| 7291 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7292 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7293 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:219" |
| 7294 | $at_failed && at_fn_log_failure |
| 7295 | $at_traceon; } |
| 7296 | |
| 7297 | |
| 7298 | { set +x |
| 7299 | printf "%s\n" "$at_srcdir/divert.at:220: test -e \"dpkginst//testdir/foo\"" |
| 7300 | at_fn_check_prepare_trace "divert.at:220" |
| 7301 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 7302 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7303 | at_status=$? at_failed=false |
| 7304 | $at_check_filter |
| 7305 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7306 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7307 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:220" |
| 7308 | $at_failed && at_fn_log_failure |
| 7309 | $at_traceon; } |
| 7310 | |
| 7311 | |
| 7312 | |
| 7313 | { set +x |
| 7314 | printf "%s\n" "$at_srcdir/divert.at:221: test -e \"dpkginst//testdir/foo.distrib\"" |
| 7315 | at_fn_check_prepare_trace "divert.at:221" |
| 7316 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 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 1 $at_status "$at_srcdir/divert.at:221" |
| 7323 | $at_failed && at_fn_log_failure |
| 7324 | $at_traceon; } |
| 7325 | |
| 7326 | |
| 7327 | { set +x |
| 7328 | printf "%s\n" "$at_srcdir/divert.at:222: cat dpkgdb/diversions" |
| 7329 | at_fn_check_prepare_trace "divert.at:222" |
| 7330 | ( $at_check_trace; cat dpkgdb/diversions |
| 7331 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7332 | at_status=$? at_failed=false |
| 7333 | $at_check_filter |
| 7334 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7335 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7336 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:222" |
| 7337 | $at_failed && at_fn_log_failure |
| 7338 | $at_traceon; } |
| 7339 | |
| 7340 | |
| 7341 | set +x |
| 7342 | $at_times_p && times >"$at_times_file" |
| 7343 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7344 | read at_status <"$at_status_file" |
| 7345 | #AT_STOP_22 |
| 7346 | #AT_START_23 |
| 7347 | at_fn_group_banner 23 'divert.at:226' \ |
| 7348 | "dpkg-divert add (rename missing quiet)" " " 4 |
| 7349 | at_xfail=no |
| 7350 | ( |
| 7351 | printf "%s\n" "23. $at_setup_line: testing $at_desc ..." |
| 7352 | $at_traceon |
| 7353 | |
| 7354 | |
| 7355 | |
| 7356 | |
| 7357 | mkdir -p "dpkginst//testdir" |
| 7358 | |
| 7359 | |
| 7360 | |
| 7361 | mkdir -p "dpkgdb" |
| 7362 | : >dpkgdb/diversions |
| 7363 | |
| 7364 | |
| 7365 | cat >ref-diversions <<'_ATEOF' |
| 7366 | /testdir/foo |
| 7367 | /testdir/foo.distrib |
| 7368 | : |
| 7369 | _ATEOF |
| 7370 | |
| 7371 | |
| 7372 | { set +x |
| 7373 | printf "%s\n" "$at_srcdir/divert.at:236: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename /testdir/foo" |
| 7374 | at_fn_check_prepare_trace "divert.at:236" |
| 7375 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename /testdir/foo |
| 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/divert.at:236" |
| 7382 | $at_failed && at_fn_log_failure |
| 7383 | $at_traceon; } |
| 7384 | |
| 7385 | |
| 7386 | { set +x |
| 7387 | printf "%s\n" "$at_srcdir/divert.at:237: test -e \"dpkginst//testdir/foo\"" |
| 7388 | at_fn_check_prepare_trace "divert.at:237" |
| 7389 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 7390 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7391 | at_status=$? at_failed=false |
| 7392 | $at_check_filter |
| 7393 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7394 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7395 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:237" |
| 7396 | $at_failed && at_fn_log_failure |
| 7397 | $at_traceon; } |
| 7398 | |
| 7399 | |
| 7400 | |
| 7401 | { set +x |
| 7402 | printf "%s\n" "$at_srcdir/divert.at:238: test -e \"dpkginst//testdir/foo.distrib\"" |
| 7403 | at_fn_check_prepare_trace "divert.at:238" |
| 7404 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 7405 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7406 | at_status=$? at_failed=false |
| 7407 | $at_check_filter |
| 7408 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7409 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7410 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:238" |
| 7411 | $at_failed && at_fn_log_failure |
| 7412 | $at_traceon; } |
| 7413 | |
| 7414 | |
| 7415 | |
| 7416 | cp "ref-diversions" expout |
| 7417 | { set +x |
| 7418 | printf "%s\n" "$at_srcdir/divert.at:239: cat \"dpkgdb/diversions\"" |
| 7419 | at_fn_check_prepare_trace "divert.at:239" |
| 7420 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 7421 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7422 | at_status=$? at_failed=false |
| 7423 | $at_check_filter |
| 7424 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7425 | $at_diff expout "$at_stdout" || at_failed=: |
| 7426 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:239" |
| 7427 | $at_failed && at_fn_log_failure |
| 7428 | $at_traceon; } |
| 7429 | |
| 7430 | |
| 7431 | |
| 7432 | set +x |
| 7433 | $at_times_p && times >"$at_times_file" |
| 7434 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7435 | read at_status <"$at_status_file" |
| 7436 | #AT_STOP_23 |
| 7437 | #AT_START_24 |
| 7438 | at_fn_group_banner 24 'divert.at:243' \ |
| 7439 | "dpkg-divert add (local rename quiet)" " " 4 |
| 7440 | at_xfail=no |
| 7441 | ( |
| 7442 | printf "%s\n" "24. $at_setup_line: testing $at_desc ..." |
| 7443 | $at_traceon |
| 7444 | |
| 7445 | |
| 7446 | |
| 7447 | |
| 7448 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 7449 | : >dpkginst//testdir/foo |
| 7450 | |
| 7451 | |
| 7452 | |
| 7453 | mkdir -p "dpkgdb" |
| 7454 | : >dpkgdb/diversions |
| 7455 | |
| 7456 | |
| 7457 | cat >ref-diversions <<'_ATEOF' |
| 7458 | /testdir/foo |
| 7459 | /testdir/foo.distrib |
| 7460 | : |
| 7461 | _ATEOF |
| 7462 | |
| 7463 | |
| 7464 | { set +x |
| 7465 | printf "%s\n" "$at_srcdir/divert.at:253: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --local --rename /testdir/foo" |
| 7466 | at_fn_check_prepare_trace "divert.at:253" |
| 7467 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --local --rename /testdir/foo |
| 7468 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7469 | at_status=$? at_failed=false |
| 7470 | $at_check_filter |
| 7471 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7472 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7473 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:253" |
| 7474 | $at_failed && at_fn_log_failure |
| 7475 | $at_traceon; } |
| 7476 | |
| 7477 | |
| 7478 | { set +x |
| 7479 | printf "%s\n" "$at_srcdir/divert.at:254: test -e \"dpkginst//testdir/foo\"" |
| 7480 | at_fn_check_prepare_trace "divert.at:254" |
| 7481 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 7482 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7483 | at_status=$? at_failed=false |
| 7484 | $at_check_filter |
| 7485 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7486 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7487 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:254" |
| 7488 | $at_failed && at_fn_log_failure |
| 7489 | $at_traceon; } |
| 7490 | |
| 7491 | |
| 7492 | |
| 7493 | { set +x |
| 7494 | printf "%s\n" "$at_srcdir/divert.at:255: test -e \"dpkginst//testdir/foo.distrib\"" |
| 7495 | at_fn_check_prepare_trace "divert.at:255" |
| 7496 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 7497 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7498 | at_status=$? at_failed=false |
| 7499 | $at_check_filter |
| 7500 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7501 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7502 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:255" |
| 7503 | $at_failed && at_fn_log_failure |
| 7504 | $at_traceon; } |
| 7505 | |
| 7506 | |
| 7507 | |
| 7508 | cp "ref-diversions" expout |
| 7509 | { set +x |
| 7510 | printf "%s\n" "$at_srcdir/divert.at:256: cat \"dpkgdb/diversions\"" |
| 7511 | at_fn_check_prepare_trace "divert.at:256" |
| 7512 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 7513 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7514 | at_status=$? at_failed=false |
| 7515 | $at_check_filter |
| 7516 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7517 | $at_diff expout "$at_stdout" || at_failed=: |
| 7518 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:256" |
| 7519 | $at_failed && at_fn_log_failure |
| 7520 | $at_traceon; } |
| 7521 | |
| 7522 | |
| 7523 | |
| 7524 | set +x |
| 7525 | $at_times_p && times >"$at_times_file" |
| 7526 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7527 | read at_status <"$at_status_file" |
| 7528 | #AT_STOP_24 |
| 7529 | #AT_START_25 |
| 7530 | at_fn_group_banner 25 'divert.at:260' \ |
| 7531 | "dpkg-divert add (package rename quiet)" " " 4 |
| 7532 | at_xfail=no |
| 7533 | ( |
| 7534 | printf "%s\n" "25. $at_setup_line: testing $at_desc ..." |
| 7535 | $at_traceon |
| 7536 | |
| 7537 | |
| 7538 | |
| 7539 | |
| 7540 | |
| 7541 | mkdir -p "dpkgdb" |
| 7542 | : >dpkgdb/diversions |
| 7543 | |
| 7544 | |
| 7545 | cat >ref-diversions <<'_ATEOF' |
| 7546 | /testdir/foo |
| 7547 | /testdir/foo.distrib |
| 7548 | bash |
| 7549 | _ATEOF |
| 7550 | |
| 7551 | |
| 7552 | { set +x |
| 7553 | printf "%s\n" "$at_srcdir/divert.at:269: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --package bash /testdir/foo" |
| 7554 | at_fn_check_prepare_trace "divert.at:269" |
| 7555 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --package bash /testdir/foo |
| 7556 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7557 | at_status=$? at_failed=false |
| 7558 | $at_check_filter |
| 7559 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7560 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7561 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:269" |
| 7562 | $at_failed && at_fn_log_failure |
| 7563 | $at_traceon; } |
| 7564 | |
| 7565 | |
| 7566 | cp "ref-diversions" expout |
| 7567 | { set +x |
| 7568 | printf "%s\n" "$at_srcdir/divert.at:270: cat \"dpkgdb/diversions\"" |
| 7569 | at_fn_check_prepare_trace "divert.at:270" |
| 7570 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 7571 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7572 | at_status=$? at_failed=false |
| 7573 | $at_check_filter |
| 7574 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7575 | $at_diff expout "$at_stdout" || at_failed=: |
| 7576 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:270" |
| 7577 | $at_failed && at_fn_log_failure |
| 7578 | $at_traceon; } |
| 7579 | |
| 7580 | |
| 7581 | |
| 7582 | set +x |
| 7583 | $at_times_p && times >"$at_times_file" |
| 7584 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7585 | read at_status <"$at_status_file" |
| 7586 | #AT_STOP_25 |
| 7587 | #AT_START_26 |
| 7588 | at_fn_group_banner 26 'divert.at:274' \ |
| 7589 | "dpkg-divert add (rename self-link)" " " 4 |
| 7590 | at_xfail=no |
| 7591 | ( |
| 7592 | printf "%s\n" "26. $at_setup_line: testing $at_desc ..." |
| 7593 | $at_traceon |
| 7594 | |
| 7595 | |
| 7596 | |
| 7597 | |
| 7598 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 7599 | : >dpkginst//testdir/foo |
| 7600 | |
| 7601 | |
| 7602 | ln "dpkginst//testdir/foo" "dpkginst//testdir/foo.distrib" |
| 7603 | |
| 7604 | |
| 7605 | |
| 7606 | mkdir -p "dpkgdb" |
| 7607 | : >dpkgdb/diversions |
| 7608 | |
| 7609 | |
| 7610 | cat >ref-diversions <<'_ATEOF' |
| 7611 | /testdir/foo |
| 7612 | /testdir/foo.distrib |
| 7613 | : |
| 7614 | _ATEOF |
| 7615 | |
| 7616 | |
| 7617 | { set +x |
| 7618 | printf "%s\n" "$at_srcdir/divert.at:285: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename /testdir/foo" |
| 7619 | at_fn_check_prepare_trace "divert.at:285" |
| 7620 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename /testdir/foo |
| 7621 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7622 | at_status=$? at_failed=false |
| 7623 | $at_check_filter |
| 7624 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7625 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7626 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:285" |
| 7627 | $at_failed && at_fn_log_failure |
| 7628 | $at_traceon; } |
| 7629 | |
| 7630 | |
| 7631 | { set +x |
| 7632 | printf "%s\n" "$at_srcdir/divert.at:286: test -e \"dpkginst//testdir/foo\"" |
| 7633 | at_fn_check_prepare_trace "divert.at:286" |
| 7634 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 7635 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7636 | at_status=$? at_failed=false |
| 7637 | $at_check_filter |
| 7638 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7639 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7640 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:286" |
| 7641 | $at_failed && at_fn_log_failure |
| 7642 | $at_traceon; } |
| 7643 | |
| 7644 | |
| 7645 | |
| 7646 | { set +x |
| 7647 | printf "%s\n" "$at_srcdir/divert.at:287: test -e \"dpkginst//testdir/foo.distrib\"" |
| 7648 | at_fn_check_prepare_trace "divert.at:287" |
| 7649 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 7650 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7651 | at_status=$? at_failed=false |
| 7652 | $at_check_filter |
| 7653 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7654 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7655 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:287" |
| 7656 | $at_failed && at_fn_log_failure |
| 7657 | $at_traceon; } |
| 7658 | |
| 7659 | |
| 7660 | |
| 7661 | cp "ref-diversions" expout |
| 7662 | { set +x |
| 7663 | printf "%s\n" "$at_srcdir/divert.at:288: cat \"dpkgdb/diversions\"" |
| 7664 | at_fn_check_prepare_trace "divert.at:288" |
| 7665 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 7666 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7667 | at_status=$? at_failed=false |
| 7668 | $at_check_filter |
| 7669 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7670 | $at_diff expout "$at_stdout" || at_failed=: |
| 7671 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:288" |
| 7672 | $at_failed && at_fn_log_failure |
| 7673 | $at_traceon; } |
| 7674 | |
| 7675 | |
| 7676 | |
| 7677 | set +x |
| 7678 | $at_times_p && times >"$at_times_file" |
| 7679 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7680 | read at_status <"$at_status_file" |
| 7681 | #AT_STOP_26 |
| 7682 | #AT_START_27 |
| 7683 | at_fn_group_banner 27 'divert.at:292' \ |
| 7684 | "dpkg-divert add (rename other-file)" " " 4 |
| 7685 | at_xfail=no |
| 7686 | ( |
| 7687 | printf "%s\n" "27. $at_setup_line: testing $at_desc ..." |
| 7688 | $at_traceon |
| 7689 | |
| 7690 | |
| 7691 | |
| 7692 | |
| 7693 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 7694 | : >dpkginst//testdir/foo |
| 7695 | |
| 7696 | |
| 7697 | mkdir -p "dpkginst/$(dirname '/testdir/foo.distrib')" |
| 7698 | : >dpkginst//testdir/foo.distrib |
| 7699 | |
| 7700 | |
| 7701 | |
| 7702 | mkdir -p "dpkgdb" |
| 7703 | : >dpkgdb/diversions |
| 7704 | |
| 7705 | |
| 7706 | |
| 7707 | { set +x |
| 7708 | printf "%s\n" "$at_srcdir/divert.at:299: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename /testdir/foo" |
| 7709 | at_fn_check_prepare_trace "divert.at:299" |
| 7710 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename /testdir/foo |
| 7711 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7712 | at_status=$? at_failed=false |
| 7713 | $at_check_filter |
| 7714 | echo stderr:; tee stderr <"$at_stderr" |
| 7715 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7716 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:299" |
| 7717 | $at_failed && at_fn_log_failure |
| 7718 | $at_traceon; } |
| 7719 | |
| 7720 | { set +x |
| 7721 | printf "%s\n" "$at_srcdir/divert.at:300: \$GREP -q 'error: rename involves overwriting' stderr" |
| 7722 | at_fn_check_prepare_dynamic "$GREP -q 'error: rename involves overwriting' stderr" "divert.at:300" |
| 7723 | ( $at_check_trace; $GREP -q 'error: rename involves overwriting' stderr |
| 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/divert.at:300" |
| 7730 | $at_failed && at_fn_log_failure |
| 7731 | $at_traceon; } |
| 7732 | |
| 7733 | { set +x |
| 7734 | printf "%s\n" "$at_srcdir/divert.at:301: cat dpkgdb/diversions" |
| 7735 | at_fn_check_prepare_trace "divert.at:301" |
| 7736 | ( $at_check_trace; cat dpkgdb/diversions |
| 7737 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7738 | at_status=$? at_failed=false |
| 7739 | $at_check_filter |
| 7740 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7741 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7742 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:301" |
| 7743 | $at_failed && at_fn_log_failure |
| 7744 | $at_traceon; } |
| 7745 | |
| 7746 | |
| 7747 | set +x |
| 7748 | $at_times_p && times >"$at_times_file" |
| 7749 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7750 | read at_status <"$at_status_file" |
| 7751 | #AT_STOP_27 |
| 7752 | #AT_START_28 |
| 7753 | at_fn_group_banner 28 'divert.at:305' \ |
| 7754 | "dpkg-divert add (rename missing dir)" " " 4 |
| 7755 | at_xfail=no |
| 7756 | ( |
| 7757 | printf "%s\n" "28. $at_setup_line: testing $at_desc ..." |
| 7758 | $at_traceon |
| 7759 | |
| 7760 | |
| 7761 | |
| 7762 | |
| 7763 | |
| 7764 | mkdir -p "dpkgdb" |
| 7765 | : >dpkgdb/diversions |
| 7766 | |
| 7767 | |
| 7768 | cat >ref-diversions <<'_ATEOF' |
| 7769 | /testdir/zoo/foo |
| 7770 | /testdir/zoo/foo.distrib |
| 7771 | : |
| 7772 | _ATEOF |
| 7773 | |
| 7774 | |
| 7775 | { set +x |
| 7776 | printf "%s\n" "$at_srcdir/divert.at:314: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --add /testdir/zoo/foo" |
| 7777 | at_fn_check_prepare_trace "divert.at:314" |
| 7778 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --add /testdir/zoo/foo |
| 7779 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7780 | at_status=$? at_failed=false |
| 7781 | $at_check_filter |
| 7782 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7783 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7784 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:314" |
| 7785 | $at_failed && at_fn_log_failure |
| 7786 | $at_traceon; } |
| 7787 | |
| 7788 | |
| 7789 | cp "ref-diversions" expout |
| 7790 | { set +x |
| 7791 | printf "%s\n" "$at_srcdir/divert.at:315: cat \"dpkgdb/diversions\"" |
| 7792 | at_fn_check_prepare_trace "divert.at:315" |
| 7793 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 7794 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7795 | at_status=$? at_failed=false |
| 7796 | $at_check_filter |
| 7797 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7798 | $at_diff expout "$at_stdout" || at_failed=: |
| 7799 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:315" |
| 7800 | $at_failed && at_fn_log_failure |
| 7801 | $at_traceon; } |
| 7802 | |
| 7803 | |
| 7804 | |
| 7805 | set +x |
| 7806 | $at_times_p && times >"$at_times_file" |
| 7807 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7808 | read at_status <"$at_status_file" |
| 7809 | #AT_STOP_28 |
| 7810 | #AT_START_29 |
| 7811 | at_fn_group_banner 29 'divert.at:319' \ |
| 7812 | "dpkg-divert add (rename read-only dir)" " " 4 |
| 7813 | at_xfail=no |
| 7814 | ( |
| 7815 | printf "%s\n" "29. $at_setup_line: testing $at_desc ..." |
| 7816 | $at_traceon |
| 7817 | |
| 7818 | |
| 7819 | |
| 7820 | printf "%s\n" "divert.at:322" >"$at_check_line_file" |
| 7821 | (test -n "$FAKEROOTKEY" || test "$(id -u)" = 0) \ |
| 7822 | && at_fn_check_skip 77 "$at_srcdir/divert.at:322" |
| 7823 | |
| 7824 | |
| 7825 | mkdir -p "dpkginst//testdir/rodir" |
| 7826 | |
| 7827 | |
| 7828 | mkdir -p "dpkginst/$(dirname '/testdir/rodir/foo')" |
| 7829 | : >dpkginst//testdir/rodir/foo |
| 7830 | |
| 7831 | |
| 7832 | mkdir -p "dpkginst/$(dirname '/testdir/bar')" |
| 7833 | : >dpkginst//testdir/bar |
| 7834 | |
| 7835 | |
| 7836 | chmod 500 "dpkginst//testdir/rodir" |
| 7837 | |
| 7838 | |
| 7839 | |
| 7840 | mkdir -p "dpkgdb" |
| 7841 | : >dpkgdb/diversions |
| 7842 | |
| 7843 | |
| 7844 | |
| 7845 | { set +x |
| 7846 | printf "%s\n" "$at_srcdir/divert.at:330: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --add /testdir/rodir/foo" |
| 7847 | at_fn_check_prepare_trace "divert.at:330" |
| 7848 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --add /testdir/rodir/foo |
| 7849 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7850 | at_status=$? at_failed=false |
| 7851 | $at_check_filter |
| 7852 | echo stderr:; tee stderr <"$at_stderr" |
| 7853 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7854 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:330" |
| 7855 | $at_failed && at_fn_log_failure |
| 7856 | $at_traceon; } |
| 7857 | |
| 7858 | { set +x |
| 7859 | printf "%s\n" "$at_srcdir/divert.at:332: \$GREP -q 'error: .* Permission denied' stderr" |
| 7860 | at_fn_check_prepare_dynamic "$GREP -q 'error: .* Permission denied' stderr" "divert.at:332" |
| 7861 | ( $at_check_trace; $GREP -q 'error: .* Permission denied' stderr |
| 7862 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7863 | at_status=$? at_failed=false |
| 7864 | $at_check_filter |
| 7865 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7866 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7867 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:332" |
| 7868 | $at_failed && at_fn_log_failure |
| 7869 | $at_traceon; } |
| 7870 | |
| 7871 | |
| 7872 | { set +x |
| 7873 | printf "%s\n" "$at_srcdir/divert.at:334: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --divert /testdir/rodir/bar --add /testdir/bar" |
| 7874 | at_fn_check_prepare_trace "divert.at:334" |
| 7875 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --divert /testdir/rodir/bar --add /testdir/bar |
| 7876 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7877 | at_status=$? at_failed=false |
| 7878 | $at_check_filter |
| 7879 | echo stderr:; tee stderr <"$at_stderr" |
| 7880 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7881 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:334" |
| 7882 | $at_failed && at_fn_log_failure |
| 7883 | $at_traceon; } |
| 7884 | |
| 7885 | { set +x |
| 7886 | printf "%s\n" "$at_srcdir/divert.at:336: \$GREP -q 'error: .* Permission denied' stderr" |
| 7887 | at_fn_check_prepare_dynamic "$GREP -q 'error: .* Permission denied' stderr" "divert.at:336" |
| 7888 | ( $at_check_trace; $GREP -q 'error: .* Permission denied' stderr |
| 7889 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7890 | at_status=$? at_failed=false |
| 7891 | $at_check_filter |
| 7892 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7893 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7894 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:336" |
| 7895 | $at_failed && at_fn_log_failure |
| 7896 | $at_traceon; } |
| 7897 | |
| 7898 | |
| 7899 | { set +x |
| 7900 | printf "%s\n" "$at_srcdir/divert.at:338: cat dpkgdb/diversions" |
| 7901 | at_fn_check_prepare_trace "divert.at:338" |
| 7902 | ( $at_check_trace; cat dpkgdb/diversions |
| 7903 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7904 | at_status=$? at_failed=false |
| 7905 | $at_check_filter |
| 7906 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7907 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7908 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:338" |
| 7909 | $at_failed && at_fn_log_failure |
| 7910 | $at_traceon; } |
| 7911 | |
| 7912 | |
| 7913 | |
| 7914 | chmod 755 "dpkginst//testdir/rodir" |
| 7915 | |
| 7916 | set +x |
| 7917 | $at_times_p && times >"$at_times_file" |
| 7918 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 7919 | read at_status <"$at_status_file" |
| 7920 | #AT_STOP_29 |
| 7921 | #AT_START_30 |
| 7922 | at_fn_group_banner 30 'divert.at:343' \ |
| 7923 | "dpkg-divert add (rename no-access dir)" " " 4 |
| 7924 | at_xfail=no |
| 7925 | ( |
| 7926 | printf "%s\n" "30. $at_setup_line: testing $at_desc ..." |
| 7927 | $at_traceon |
| 7928 | |
| 7929 | |
| 7930 | |
| 7931 | printf "%s\n" "divert.at:346" >"$at_check_line_file" |
| 7932 | (test -n "$FAKEROOTKEY" || test "$(id -u)" = 0) \ |
| 7933 | && at_fn_check_skip 77 "$at_srcdir/divert.at:346" |
| 7934 | |
| 7935 | |
| 7936 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 7937 | : >dpkginst//testdir/foo |
| 7938 | |
| 7939 | |
| 7940 | mkdir -p "dpkginst//testdir/nadir" |
| 7941 | |
| 7942 | |
| 7943 | chmod 000 "dpkginst//testdir/nadir" |
| 7944 | |
| 7945 | |
| 7946 | |
| 7947 | mkdir -p "dpkgdb" |
| 7948 | : >dpkgdb/diversions |
| 7949 | |
| 7950 | |
| 7951 | |
| 7952 | { set +x |
| 7953 | printf "%s\n" "$at_srcdir/divert.at:353: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/nadir/foo" |
| 7954 | at_fn_check_prepare_trace "divert.at:353" |
| 7955 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/nadir/foo |
| 7956 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7957 | at_status=$? at_failed=false |
| 7958 | $at_check_filter |
| 7959 | echo stderr:; tee stderr <"$at_stderr" |
| 7960 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7961 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:353" |
| 7962 | $at_failed && at_fn_log_failure |
| 7963 | $at_traceon; } |
| 7964 | |
| 7965 | { set +x |
| 7966 | printf "%s\n" "$at_srcdir/divert.at:354: \$GREP -q 'error: .* Permission denied' stderr" |
| 7967 | at_fn_check_prepare_dynamic "$GREP -q 'error: .* Permission denied' stderr" "divert.at:354" |
| 7968 | ( $at_check_trace; $GREP -q 'error: .* Permission denied' stderr |
| 7969 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7970 | at_status=$? at_failed=false |
| 7971 | $at_check_filter |
| 7972 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 7973 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7974 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:354" |
| 7975 | $at_failed && at_fn_log_failure |
| 7976 | $at_traceon; } |
| 7977 | |
| 7978 | |
| 7979 | { set +x |
| 7980 | printf "%s\n" "$at_srcdir/divert.at:356: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --divert /testdir/nadir/foo --add /testdir/foo" |
| 7981 | at_fn_check_prepare_trace "divert.at:356" |
| 7982 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --divert /testdir/nadir/foo --add /testdir/foo |
| 7983 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7984 | at_status=$? at_failed=false |
| 7985 | $at_check_filter |
| 7986 | echo stderr:; tee stderr <"$at_stderr" |
| 7987 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 7988 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:356" |
| 7989 | $at_failed && at_fn_log_failure |
| 7990 | $at_traceon; } |
| 7991 | |
| 7992 | { set +x |
| 7993 | printf "%s\n" "$at_srcdir/divert.at:358: \$GREP -q 'error: .* Permission denied' stderr" |
| 7994 | at_fn_check_prepare_dynamic "$GREP -q 'error: .* Permission denied' stderr" "divert.at:358" |
| 7995 | ( $at_check_trace; $GREP -q 'error: .* Permission denied' stderr |
| 7996 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 7997 | at_status=$? at_failed=false |
| 7998 | $at_check_filter |
| 7999 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8000 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8001 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:358" |
| 8002 | $at_failed && at_fn_log_failure |
| 8003 | $at_traceon; } |
| 8004 | |
| 8005 | |
| 8006 | { set +x |
| 8007 | printf "%s\n" "$at_srcdir/divert.at:360: cat dpkgdb/diversions" |
| 8008 | at_fn_check_prepare_trace "divert.at:360" |
| 8009 | ( $at_check_trace; cat dpkgdb/diversions |
| 8010 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8011 | at_status=$? at_failed=false |
| 8012 | $at_check_filter |
| 8013 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8014 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8015 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:360" |
| 8016 | $at_failed && at_fn_log_failure |
| 8017 | $at_traceon; } |
| 8018 | |
| 8019 | |
| 8020 | # On FreeBSD «rm -rf» cannot traverse a directory with mode 000. |
| 8021 | rmdir dpkginst/testdir/nadir |
| 8022 | |
| 8023 | set +x |
| 8024 | $at_times_p && times >"$at_times_file" |
| 8025 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8026 | read at_status <"$at_status_file" |
| 8027 | #AT_STOP_30 |
| 8028 | #AT_START_31 |
| 8029 | at_fn_group_banner 31 'divert.at:367' \ |
| 8030 | "dpkg-divert add second diversion" " " 4 |
| 8031 | at_xfail=no |
| 8032 | ( |
| 8033 | printf "%s\n" "31. $at_setup_line: testing $at_desc ..." |
| 8034 | $at_traceon |
| 8035 | |
| 8036 | |
| 8037 | |
| 8038 | |
| 8039 | mkdir -p "dpkginst//testdir" |
| 8040 | |
| 8041 | |
| 8042 | |
| 8043 | mkdir -p "dpkgdb" |
| 8044 | : >dpkgdb/diversions |
| 8045 | |
| 8046 | |
| 8047 | |
| 8048 | { set +x |
| 8049 | printf "%s\n" "$at_srcdir/divert.at:373: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 8050 | at_fn_check_prepare_trace "divert.at:373" |
| 8051 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 8052 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8053 | at_status=$? at_failed=false |
| 8054 | $at_check_filter |
| 8055 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8056 | echo stdout:; tee stdout <"$at_stdout" |
| 8057 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:373" |
| 8058 | $at_failed && at_fn_log_failure |
| 8059 | $at_traceon; } |
| 8060 | |
| 8061 | { set +x |
| 8062 | printf "%s\n" "$at_srcdir/divert.at:374: \$GREP -q 'Adding' stdout" |
| 8063 | at_fn_check_prepare_dynamic "$GREP -q 'Adding' stdout" "divert.at:374" |
| 8064 | ( $at_check_trace; $GREP -q 'Adding' stdout |
| 8065 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8066 | at_status=$? at_failed=false |
| 8067 | $at_check_filter |
| 8068 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8069 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8070 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:374" |
| 8071 | $at_failed && at_fn_log_failure |
| 8072 | $at_traceon; } |
| 8073 | |
| 8074 | |
| 8075 | { set +x |
| 8076 | printf "%s\n" "$at_srcdir/divert.at:376: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 8077 | at_fn_check_prepare_trace "divert.at:376" |
| 8078 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 8079 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8080 | at_status=$? at_failed=false |
| 8081 | $at_check_filter |
| 8082 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8083 | echo stdout:; tee stdout <"$at_stdout" |
| 8084 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:376" |
| 8085 | $at_failed && at_fn_log_failure |
| 8086 | $at_traceon; } |
| 8087 | |
| 8088 | { set +x |
| 8089 | printf "%s\n" "$at_srcdir/divert.at:377: \$GREP -q 'Leaving' stdout" |
| 8090 | at_fn_check_prepare_dynamic "$GREP -q 'Leaving' stdout" "divert.at:377" |
| 8091 | ( $at_check_trace; $GREP -q 'Leaving' stdout |
| 8092 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8093 | at_status=$? at_failed=false |
| 8094 | $at_check_filter |
| 8095 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8096 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8097 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:377" |
| 8098 | $at_failed && at_fn_log_failure |
| 8099 | $at_traceon; } |
| 8100 | |
| 8101 | |
| 8102 | { set +x |
| 8103 | printf "%s\n" "$at_srcdir/divert.at:379: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 8104 | at_fn_check_prepare_trace "divert.at:379" |
| 8105 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 8106 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8107 | at_status=$? at_failed=false |
| 8108 | $at_check_filter |
| 8109 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8110 | echo stdout:; tee stdout <"$at_stdout" |
| 8111 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:379" |
| 8112 | $at_failed && at_fn_log_failure |
| 8113 | $at_traceon; } |
| 8114 | |
| 8115 | { set +x |
| 8116 | printf "%s\n" "$at_srcdir/divert.at:380: \$GREP -q 'Leaving' stdout" |
| 8117 | at_fn_check_prepare_dynamic "$GREP -q 'Leaving' stdout" "divert.at:380" |
| 8118 | ( $at_check_trace; $GREP -q 'Leaving' stdout |
| 8119 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8120 | at_status=$? at_failed=false |
| 8121 | $at_check_filter |
| 8122 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8123 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8124 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:380" |
| 8125 | $at_failed && at_fn_log_failure |
| 8126 | $at_traceon; } |
| 8127 | |
| 8128 | |
| 8129 | { set +x |
| 8130 | printf "%s\n" "$at_srcdir/divert.at:382: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert /testdir/foo.bar /testdir/foo" |
| 8131 | at_fn_check_prepare_trace "divert.at:382" |
| 8132 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert /testdir/foo.bar /testdir/foo |
| 8133 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8134 | at_status=$? at_failed=false |
| 8135 | $at_check_filter |
| 8136 | echo stderr:; tee stderr <"$at_stderr" |
| 8137 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8138 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:382" |
| 8139 | $at_failed && at_fn_log_failure |
| 8140 | $at_traceon; } |
| 8141 | |
| 8142 | { set +x |
| 8143 | printf "%s\n" "$at_srcdir/divert.at:384: \$GREP -q 'clashes' stderr" |
| 8144 | at_fn_check_prepare_dynamic "$GREP -q 'clashes' stderr" "divert.at:384" |
| 8145 | ( $at_check_trace; $GREP -q 'clashes' stderr |
| 8146 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8147 | at_status=$? at_failed=false |
| 8148 | $at_check_filter |
| 8149 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8150 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8151 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:384" |
| 8152 | $at_failed && at_fn_log_failure |
| 8153 | $at_traceon; } |
| 8154 | |
| 8155 | |
| 8156 | { set +x |
| 8157 | printf "%s\n" "$at_srcdir/divert.at:386: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package foobar /testdir/foo" |
| 8158 | at_fn_check_prepare_trace "divert.at:386" |
| 8159 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package foobar /testdir/foo |
| 8160 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8161 | at_status=$? at_failed=false |
| 8162 | $at_check_filter |
| 8163 | echo stderr:; tee stderr <"$at_stderr" |
| 8164 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8165 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:386" |
| 8166 | $at_failed && at_fn_log_failure |
| 8167 | $at_traceon; } |
| 8168 | |
| 8169 | { set +x |
| 8170 | printf "%s\n" "$at_srcdir/divert.at:387: \$GREP -q 'clashes' stderr" |
| 8171 | at_fn_check_prepare_dynamic "$GREP -q 'clashes' stderr" "divert.at:387" |
| 8172 | ( $at_check_trace; $GREP -q 'clashes' stderr |
| 8173 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8174 | at_status=$? at_failed=false |
| 8175 | $at_check_filter |
| 8176 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8177 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8178 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:387" |
| 8179 | $at_failed && at_fn_log_failure |
| 8180 | $at_traceon; } |
| 8181 | |
| 8182 | |
| 8183 | { set +x |
| 8184 | printf "%s\n" "$at_srcdir/divert.at:389: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert /testdir/foo.distrib /testdir/bar" |
| 8185 | at_fn_check_prepare_trace "divert.at:389" |
| 8186 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert /testdir/foo.distrib /testdir/bar |
| 8187 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8188 | at_status=$? at_failed=false |
| 8189 | $at_check_filter |
| 8190 | echo stderr:; tee stderr <"$at_stderr" |
| 8191 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8192 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:389" |
| 8193 | $at_failed && at_fn_log_failure |
| 8194 | $at_traceon; } |
| 8195 | |
| 8196 | { set +x |
| 8197 | printf "%s\n" "$at_srcdir/divert.at:391: \$GREP -q 'clashes' stderr" |
| 8198 | at_fn_check_prepare_dynamic "$GREP -q 'clashes' stderr" "divert.at:391" |
| 8199 | ( $at_check_trace; $GREP -q 'clashes' stderr |
| 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/divert.at:391" |
| 8206 | $at_failed && at_fn_log_failure |
| 8207 | $at_traceon; } |
| 8208 | |
| 8209 | |
| 8210 | { set +x |
| 8211 | printf "%s\n" "$at_srcdir/divert.at:393: dpkg-divert --admindir=dpkgdb --instdir=dpkginst /testdir/foo.distrib" |
| 8212 | at_fn_check_prepare_trace "divert.at:393" |
| 8213 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst /testdir/foo.distrib |
| 8214 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8215 | at_status=$? at_failed=false |
| 8216 | $at_check_filter |
| 8217 | echo stderr:; tee stderr <"$at_stderr" |
| 8218 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8219 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:393" |
| 8220 | $at_failed && at_fn_log_failure |
| 8221 | $at_traceon; } |
| 8222 | |
| 8223 | { set +x |
| 8224 | printf "%s\n" "$at_srcdir/divert.at:394: \$GREP -q 'clashes' stderr" |
| 8225 | at_fn_check_prepare_dynamic "$GREP -q 'clashes' stderr" "divert.at:394" |
| 8226 | ( $at_check_trace; $GREP -q 'clashes' stderr |
| 8227 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8228 | at_status=$? at_failed=false |
| 8229 | $at_check_filter |
| 8230 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8231 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8232 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:394" |
| 8233 | $at_failed && at_fn_log_failure |
| 8234 | $at_traceon; } |
| 8235 | |
| 8236 | |
| 8237 | { set +x |
| 8238 | printf "%s\n" "$at_srcdir/divert.at:396: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert /testdir/foo /testdir/bar" |
| 8239 | at_fn_check_prepare_trace "divert.at:396" |
| 8240 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert /testdir/foo /testdir/bar |
| 8241 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8242 | at_status=$? at_failed=false |
| 8243 | $at_check_filter |
| 8244 | echo stderr:; tee stderr <"$at_stderr" |
| 8245 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8246 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:396" |
| 8247 | $at_failed && at_fn_log_failure |
| 8248 | $at_traceon; } |
| 8249 | |
| 8250 | { set +x |
| 8251 | printf "%s\n" "$at_srcdir/divert.at:397: \$GREP -q 'clashes' stderr" |
| 8252 | at_fn_check_prepare_dynamic "$GREP -q 'clashes' stderr" "divert.at:397" |
| 8253 | ( $at_check_trace; $GREP -q 'clashes' stderr |
| 8254 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8255 | at_status=$? at_failed=false |
| 8256 | $at_check_filter |
| 8257 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8258 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8259 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:397" |
| 8260 | $at_failed && at_fn_log_failure |
| 8261 | $at_traceon; } |
| 8262 | |
| 8263 | |
| 8264 | set +x |
| 8265 | $at_times_p && times >"$at_times_file" |
| 8266 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8267 | read at_status <"$at_status_file" |
| 8268 | #AT_STOP_31 |
| 8269 | #AT_START_32 |
| 8270 | at_fn_group_banner 32 'divert.at:401' \ |
| 8271 | "dpkg-divert add third diversion" " " 4 |
| 8272 | at_xfail=no |
| 8273 | ( |
| 8274 | printf "%s\n" "32. $at_setup_line: testing $at_desc ..." |
| 8275 | $at_traceon |
| 8276 | |
| 8277 | |
| 8278 | |
| 8279 | |
| 8280 | mkdir -p "dpkginst//testdir" |
| 8281 | |
| 8282 | |
| 8283 | |
| 8284 | mkdir -p "dpkgdb" |
| 8285 | : >dpkgdb/diversions |
| 8286 | |
| 8287 | |
| 8288 | |
| 8289 | { set +x |
| 8290 | printf "%s\n" "$at_srcdir/divert.at:407: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 8291 | at_fn_check_prepare_trace "divert.at:407" |
| 8292 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 8293 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8294 | at_status=$? at_failed=false |
| 8295 | $at_check_filter |
| 8296 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8297 | echo stdout:; tee stdout <"$at_stdout" |
| 8298 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:407" |
| 8299 | $at_failed && at_fn_log_failure |
| 8300 | $at_traceon; } |
| 8301 | |
| 8302 | { set +x |
| 8303 | printf "%s\n" "$at_srcdir/divert.at:408: \$GREP -q 'Adding' stdout" |
| 8304 | at_fn_check_prepare_dynamic "$GREP -q 'Adding' stdout" "divert.at:408" |
| 8305 | ( $at_check_trace; $GREP -q 'Adding' stdout |
| 8306 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8307 | at_status=$? at_failed=false |
| 8308 | $at_check_filter |
| 8309 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8310 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8311 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:408" |
| 8312 | $at_failed && at_fn_log_failure |
| 8313 | $at_traceon; } |
| 8314 | |
| 8315 | { set +x |
| 8316 | printf "%s\n" "$at_srcdir/divert.at:409: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/bar" |
| 8317 | at_fn_check_prepare_trace "divert.at:409" |
| 8318 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/bar |
| 8319 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8320 | at_status=$? at_failed=false |
| 8321 | $at_check_filter |
| 8322 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8323 | echo stdout:; tee stdout <"$at_stdout" |
| 8324 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:409" |
| 8325 | $at_failed && at_fn_log_failure |
| 8326 | $at_traceon; } |
| 8327 | |
| 8328 | { set +x |
| 8329 | printf "%s\n" "$at_srcdir/divert.at:410: \$GREP -q 'Adding' stdout" |
| 8330 | at_fn_check_prepare_dynamic "$GREP -q 'Adding' stdout" "divert.at:410" |
| 8331 | ( $at_check_trace; $GREP -q 'Adding' stdout |
| 8332 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8333 | at_status=$? at_failed=false |
| 8334 | $at_check_filter |
| 8335 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8336 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8337 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:410" |
| 8338 | $at_failed && at_fn_log_failure |
| 8339 | $at_traceon; } |
| 8340 | |
| 8341 | |
| 8342 | { set +x |
| 8343 | printf "%s\n" "$at_srcdir/divert.at:412: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 8344 | at_fn_check_prepare_trace "divert.at:412" |
| 8345 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 8346 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8347 | at_status=$? at_failed=false |
| 8348 | $at_check_filter |
| 8349 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8350 | echo stdout:; tee stdout <"$at_stdout" |
| 8351 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:412" |
| 8352 | $at_failed && at_fn_log_failure |
| 8353 | $at_traceon; } |
| 8354 | |
| 8355 | { set +x |
| 8356 | printf "%s\n" "$at_srcdir/divert.at:413: \$GREP -q 'Leaving' stdout" |
| 8357 | at_fn_check_prepare_dynamic "$GREP -q 'Leaving' stdout" "divert.at:413" |
| 8358 | ( $at_check_trace; $GREP -q 'Leaving' stdout |
| 8359 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8360 | at_status=$? at_failed=false |
| 8361 | $at_check_filter |
| 8362 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8363 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8364 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:413" |
| 8365 | $at_failed && at_fn_log_failure |
| 8366 | $at_traceon; } |
| 8367 | |
| 8368 | { set +x |
| 8369 | printf "%s\n" "$at_srcdir/divert.at:414: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --package foobar --add /testdir/bar" |
| 8370 | at_fn_check_prepare_trace "divert.at:414" |
| 8371 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --package foobar --add /testdir/bar |
| 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 2 $at_status "$at_srcdir/divert.at:414" |
| 8378 | $at_failed && at_fn_log_failure |
| 8379 | $at_traceon; } |
| 8380 | |
| 8381 | { set +x |
| 8382 | printf "%s\n" "$at_srcdir/divert.at:416: \$GREP -q 'clashes' stderr" |
| 8383 | at_fn_check_prepare_dynamic "$GREP -q 'clashes' stderr" "divert.at:416" |
| 8384 | ( $at_check_trace; $GREP -q 'clashes' stderr |
| 8385 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8386 | at_status=$? at_failed=false |
| 8387 | $at_check_filter |
| 8388 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8389 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8390 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:416" |
| 8391 | $at_failed && at_fn_log_failure |
| 8392 | $at_traceon; } |
| 8393 | |
| 8394 | |
| 8395 | set +x |
| 8396 | $at_times_p && times >"$at_times_file" |
| 8397 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8398 | read at_status <"$at_status_file" |
| 8399 | #AT_STOP_32 |
| 8400 | #AT_START_33 |
| 8401 | at_fn_group_banner 33 'divert.at:420' \ |
| 8402 | "dpkg-divert add (file owned by --package)" " " 4 |
| 8403 | at_xfail=no |
| 8404 | ( |
| 8405 | printf "%s\n" "33. $at_setup_line: testing $at_desc ..." |
| 8406 | $at_traceon |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 8412 | : >dpkginst//testdir/foo |
| 8413 | |
| 8414 | # Only installed packages have their files list considered. |
| 8415 | |
| 8416 | |
| 8417 | mkdir -p "dpkgdb" |
| 8418 | cat >dpkgdb/status <<'_ATEOF' |
| 8419 | Package: coreutils |
| 8420 | Status: install ok installed |
| 8421 | Version: 0 |
| 8422 | Architecture: i386 |
| 8423 | Maintainer: dummy |
| 8424 | Description: dummy |
| 8425 | _ATEOF |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | mkdir -p "dpkgdb/info" |
| 8431 | cat >dpkgdb/info/coreutils.list <<'_ATEOF' |
| 8432 | /testdir/foo |
| 8433 | _ATEOF |
| 8434 | |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | mkdir -p "dpkgdb" |
| 8439 | : >dpkgdb/diversions |
| 8440 | |
| 8441 | |
| 8442 | cat >ref-diversions <<'_ATEOF' |
| 8443 | /testdir/foo |
| 8444 | /testdir/foo.distrib |
| 8445 | coreutils |
| 8446 | _ATEOF |
| 8447 | |
| 8448 | |
| 8449 | { set +x |
| 8450 | printf "%s\n" "$at_srcdir/divert.at:440: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --package coreutils --add /testdir/foo" |
| 8451 | at_fn_check_prepare_trace "divert.at:440" |
| 8452 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --package coreutils --add /testdir/foo |
| 8453 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8454 | at_status=$? at_failed=false |
| 8455 | $at_check_filter |
| 8456 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8457 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8458 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:440" |
| 8459 | $at_failed && at_fn_log_failure |
| 8460 | $at_traceon; } |
| 8461 | |
| 8462 | |
| 8463 | { set +x |
| 8464 | printf "%s\n" "$at_srcdir/divert.at:441: test -e \"dpkginst//testdir/foo\"" |
| 8465 | at_fn_check_prepare_trace "divert.at:441" |
| 8466 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 8467 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8468 | at_status=$? at_failed=false |
| 8469 | $at_check_filter |
| 8470 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8471 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8472 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:441" |
| 8473 | $at_failed && at_fn_log_failure |
| 8474 | $at_traceon; } |
| 8475 | |
| 8476 | |
| 8477 | |
| 8478 | { set +x |
| 8479 | printf "%s\n" "$at_srcdir/divert.at:442: test -e \"dpkginst//testdir/foo.distrib\"" |
| 8480 | at_fn_check_prepare_trace "divert.at:442" |
| 8481 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 8482 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8483 | at_status=$? at_failed=false |
| 8484 | $at_check_filter |
| 8485 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8486 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8487 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:442" |
| 8488 | $at_failed && at_fn_log_failure |
| 8489 | $at_traceon; } |
| 8490 | |
| 8491 | |
| 8492 | |
| 8493 | cp "ref-diversions" expout |
| 8494 | { set +x |
| 8495 | printf "%s\n" "$at_srcdir/divert.at:443: cat \"dpkgdb/diversions\"" |
| 8496 | at_fn_check_prepare_trace "divert.at:443" |
| 8497 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 8498 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8499 | at_status=$? at_failed=false |
| 8500 | $at_check_filter |
| 8501 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8502 | $at_diff expout "$at_stdout" || at_failed=: |
| 8503 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:443" |
| 8504 | $at_failed && at_fn_log_failure |
| 8505 | $at_traceon; } |
| 8506 | |
| 8507 | |
| 8508 | |
| 8509 | set +x |
| 8510 | $at_times_p && times >"$at_times_file" |
| 8511 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8512 | read at_status <"$at_status_file" |
| 8513 | #AT_STOP_33 |
| 8514 | #AT_START_34 |
| 8515 | at_fn_group_banner 34 'divert.at:447' \ |
| 8516 | "dpkg-divert remove (missing)" " " 4 |
| 8517 | at_xfail=no |
| 8518 | ( |
| 8519 | printf "%s\n" "34. $at_setup_line: testing $at_desc ..." |
| 8520 | $at_traceon |
| 8521 | |
| 8522 | |
| 8523 | |
| 8524 | |
| 8525 | |
| 8526 | mkdir -p "dpkgdb" |
| 8527 | : >dpkgdb/diversions |
| 8528 | |
| 8529 | |
| 8530 | |
| 8531 | { set +x |
| 8532 | printf "%s\n" "$at_srcdir/divert.at:452: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --no-rename --remove /bin/sh" |
| 8533 | at_fn_check_prepare_trace "divert.at:452" |
| 8534 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --no-rename --remove /bin/sh |
| 8535 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8536 | at_status=$? at_failed=false |
| 8537 | $at_check_filter |
| 8538 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8539 | echo stdout:; tee stdout <"$at_stdout" |
| 8540 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:452" |
| 8541 | $at_failed && at_fn_log_failure |
| 8542 | $at_traceon; } |
| 8543 | |
| 8544 | { set +x |
| 8545 | printf "%s\n" "$at_srcdir/divert.at:453: \$GREP -q 'No diversion' stdout" |
| 8546 | at_fn_check_prepare_dynamic "$GREP -q 'No diversion' stdout" "divert.at:453" |
| 8547 | ( $at_check_trace; $GREP -q 'No diversion' stdout |
| 8548 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8549 | at_status=$? at_failed=false |
| 8550 | $at_check_filter |
| 8551 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8552 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8553 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:453" |
| 8554 | $at_failed && at_fn_log_failure |
| 8555 | $at_traceon; } |
| 8556 | |
| 8557 | |
| 8558 | { set +x |
| 8559 | printf "%s\n" "$at_srcdir/divert.at:455: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --remove /bin/sh" |
| 8560 | at_fn_check_prepare_trace "divert.at:455" |
| 8561 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --remove /bin/sh |
| 8562 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8563 | at_status=$? at_failed=false |
| 8564 | $at_check_filter |
| 8565 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8566 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8567 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:455" |
| 8568 | $at_failed && at_fn_log_failure |
| 8569 | $at_traceon; } |
| 8570 | |
| 8571 | |
| 8572 | set +x |
| 8573 | $at_times_p && times >"$at_times_file" |
| 8574 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8575 | read at_status <"$at_status_file" |
| 8576 | #AT_STOP_34 |
| 8577 | #AT_START_35 |
| 8578 | at_fn_group_banner 35 'divert.at:459' \ |
| 8579 | "dpkg-divert remove (divert-to)" " " 4 |
| 8580 | at_xfail=no |
| 8581 | ( |
| 8582 | printf "%s\n" "35. $at_setup_line: testing $at_desc ..." |
| 8583 | $at_traceon |
| 8584 | |
| 8585 | |
| 8586 | |
| 8587 | |
| 8588 | |
| 8589 | mkdir -p "dpkgdb" |
| 8590 | : >dpkgdb/diversions |
| 8591 | |
| 8592 | |
| 8593 | cat >ref-diversions <<'_ATEOF' |
| 8594 | /testdir/bar |
| 8595 | /testdir/bar.distrib |
| 8596 | : |
| 8597 | /testdir/baz |
| 8598 | /testdir/baz.distrib |
| 8599 | : |
| 8600 | _ATEOF |
| 8601 | |
| 8602 | |
| 8603 | { set +x |
| 8604 | printf "%s\n" "$at_srcdir/divert.at:471: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/foo" |
| 8605 | at_fn_check_prepare_trace "divert.at:471" |
| 8606 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/foo |
| 8607 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8608 | at_status=$? at_failed=false |
| 8609 | $at_check_filter |
| 8610 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8611 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8612 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:471" |
| 8613 | $at_failed && at_fn_log_failure |
| 8614 | $at_traceon; } |
| 8615 | |
| 8616 | { set +x |
| 8617 | printf "%s\n" "$at_srcdir/divert.at:472: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/bar" |
| 8618 | at_fn_check_prepare_trace "divert.at:472" |
| 8619 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/bar |
| 8620 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8621 | at_status=$? at_failed=false |
| 8622 | $at_check_filter |
| 8623 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8624 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8625 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:472" |
| 8626 | $at_failed && at_fn_log_failure |
| 8627 | $at_traceon; } |
| 8628 | |
| 8629 | { set +x |
| 8630 | printf "%s\n" "$at_srcdir/divert.at:473: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/baz" |
| 8631 | at_fn_check_prepare_trace "divert.at:473" |
| 8632 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/baz |
| 8633 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8634 | at_status=$? at_failed=false |
| 8635 | $at_check_filter |
| 8636 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8637 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8638 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:473" |
| 8639 | $at_failed && at_fn_log_failure |
| 8640 | $at_traceon; } |
| 8641 | |
| 8642 | |
| 8643 | { set +x |
| 8644 | printf "%s\n" "$at_srcdir/divert.at:475: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert /testdir/foo.my --remove /testdir/foo" |
| 8645 | at_fn_check_prepare_trace "divert.at:475" |
| 8646 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --divert /testdir/foo.my --remove /testdir/foo |
| 8647 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8648 | at_status=$? at_failed=false |
| 8649 | $at_check_filter |
| 8650 | echo stderr:; tee stderr <"$at_stderr" |
| 8651 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8652 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:475" |
| 8653 | $at_failed && at_fn_log_failure |
| 8654 | $at_traceon; } |
| 8655 | |
| 8656 | { set +x |
| 8657 | printf "%s\n" "$at_srcdir/divert.at:477: \$GREP -q 'mismatch on divert-to' stderr" |
| 8658 | at_fn_check_prepare_dynamic "$GREP -q 'mismatch on divert-to' stderr" "divert.at:477" |
| 8659 | ( $at_check_trace; $GREP -q 'mismatch on divert-to' stderr |
| 8660 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8661 | at_status=$? at_failed=false |
| 8662 | $at_check_filter |
| 8663 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8664 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8665 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:477" |
| 8666 | $at_failed && at_fn_log_failure |
| 8667 | $at_traceon; } |
| 8668 | |
| 8669 | |
| 8670 | { set +x |
| 8671 | printf "%s\n" "$at_srcdir/divert.at:479: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package baz --remove /testdir/foo" |
| 8672 | at_fn_check_prepare_trace "divert.at:479" |
| 8673 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package baz --remove /testdir/foo |
| 8674 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8675 | at_status=$? at_failed=false |
| 8676 | $at_check_filter |
| 8677 | echo stderr:; tee stderr <"$at_stderr" |
| 8678 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8679 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:479" |
| 8680 | $at_failed && at_fn_log_failure |
| 8681 | $at_traceon; } |
| 8682 | |
| 8683 | { set +x |
| 8684 | printf "%s\n" "$at_srcdir/divert.at:480: \$GREP -q 'mismatch on package' stderr" |
| 8685 | at_fn_check_prepare_dynamic "$GREP -q 'mismatch on package' stderr" "divert.at:480" |
| 8686 | ( $at_check_trace; $GREP -q 'mismatch on package' stderr |
| 8687 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8688 | at_status=$? at_failed=false |
| 8689 | $at_check_filter |
| 8690 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8691 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8692 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:480" |
| 8693 | $at_failed && at_fn_log_failure |
| 8694 | $at_traceon; } |
| 8695 | |
| 8696 | |
| 8697 | { set +x |
| 8698 | printf "%s\n" "$at_srcdir/divert.at:482: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package baz --divert /testdir/foo.my --remove /testdir/foo" |
| 8699 | at_fn_check_prepare_trace "divert.at:482" |
| 8700 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --package baz --divert /testdir/foo.my --remove /testdir/foo |
| 8701 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8702 | at_status=$? at_failed=false |
| 8703 | $at_check_filter |
| 8704 | echo stderr:; tee stderr <"$at_stderr" |
| 8705 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8706 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:482" |
| 8707 | $at_failed && at_fn_log_failure |
| 8708 | $at_traceon; } |
| 8709 | |
| 8710 | { set +x |
| 8711 | printf "%s\n" "$at_srcdir/divert.at:484: \$EGREP -q 'mismatch on (package|divert-to)' stderr" |
| 8712 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:484" |
| 8713 | ( $at_check_trace; $EGREP -q 'mismatch on (package|divert-to)' stderr |
| 8714 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8715 | at_status=$? at_failed=false |
| 8716 | $at_check_filter |
| 8717 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8718 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8719 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:484" |
| 8720 | $at_failed && at_fn_log_failure |
| 8721 | $at_traceon; } |
| 8722 | |
| 8723 | |
| 8724 | { set +x |
| 8725 | printf "%s\n" "$at_srcdir/divert.at:486: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --divert /testdir/foo.distrib --remove /testdir/foo" |
| 8726 | at_fn_check_prepare_trace "divert.at:486" |
| 8727 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --divert /testdir/foo.distrib --remove /testdir/foo |
| 8728 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8729 | at_status=$? at_failed=false |
| 8730 | $at_check_filter |
| 8731 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8732 | echo stdout:; tee stdout <"$at_stdout" |
| 8733 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:486" |
| 8734 | $at_failed && at_fn_log_failure |
| 8735 | $at_traceon; } |
| 8736 | |
| 8737 | { set +x |
| 8738 | printf "%s\n" "$at_srcdir/divert.at:488: \$EGREP -q 'Removing .*/testdir/foo' stdout" |
| 8739 | at_fn_check_prepare_dynamic "$EGREP -q 'Removing .*/testdir/foo' stdout" "divert.at:488" |
| 8740 | ( $at_check_trace; $EGREP -q 'Removing .*/testdir/foo' stdout |
| 8741 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8742 | at_status=$? at_failed=false |
| 8743 | $at_check_filter |
| 8744 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8745 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8746 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:488" |
| 8747 | $at_failed && at_fn_log_failure |
| 8748 | $at_traceon; } |
| 8749 | |
| 8750 | |
| 8751 | |
| 8752 | cp "ref-diversions" expout |
| 8753 | { set +x |
| 8754 | printf "%s\n" "$at_srcdir/divert.at:490: cat \"dpkgdb/diversions\"" |
| 8755 | at_fn_check_prepare_trace "divert.at:490" |
| 8756 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 8757 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8758 | at_status=$? at_failed=false |
| 8759 | $at_check_filter |
| 8760 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8761 | $at_diff expout "$at_stdout" || at_failed=: |
| 8762 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:490" |
| 8763 | $at_failed && at_fn_log_failure |
| 8764 | $at_traceon; } |
| 8765 | |
| 8766 | |
| 8767 | |
| 8768 | set +x |
| 8769 | $at_times_p && times >"$at_times_file" |
| 8770 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8771 | read at_status <"$at_status_file" |
| 8772 | #AT_STOP_35 |
| 8773 | #AT_START_36 |
| 8774 | at_fn_group_banner 36 'divert.at:494' \ |
| 8775 | "dpkg-divert remove (plain)" " " 4 |
| 8776 | at_xfail=no |
| 8777 | ( |
| 8778 | printf "%s\n" "36. $at_setup_line: testing $at_desc ..." |
| 8779 | $at_traceon |
| 8780 | |
| 8781 | |
| 8782 | |
| 8783 | |
| 8784 | |
| 8785 | mkdir -p "dpkgdb" |
| 8786 | : >dpkgdb/diversions |
| 8787 | |
| 8788 | |
| 8789 | cat >ref-diversions <<'_ATEOF' |
| 8790 | /testdir/foo |
| 8791 | /testdir/foo.distrib |
| 8792 | : |
| 8793 | /testdir/baz |
| 8794 | /testdir/baz.distrib |
| 8795 | : |
| 8796 | _ATEOF |
| 8797 | |
| 8798 | |
| 8799 | { set +x |
| 8800 | printf "%s\n" "$at_srcdir/divert.at:506: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/foo" |
| 8801 | at_fn_check_prepare_trace "divert.at:506" |
| 8802 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/foo |
| 8803 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8804 | at_status=$? at_failed=false |
| 8805 | $at_check_filter |
| 8806 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8807 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8808 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:506" |
| 8809 | $at_failed && at_fn_log_failure |
| 8810 | $at_traceon; } |
| 8811 | |
| 8812 | { set +x |
| 8813 | printf "%s\n" "$at_srcdir/divert.at:507: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/bar" |
| 8814 | at_fn_check_prepare_trace "divert.at:507" |
| 8815 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/bar |
| 8816 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8817 | at_status=$? at_failed=false |
| 8818 | $at_check_filter |
| 8819 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8820 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8821 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:507" |
| 8822 | $at_failed && at_fn_log_failure |
| 8823 | $at_traceon; } |
| 8824 | |
| 8825 | { set +x |
| 8826 | printf "%s\n" "$at_srcdir/divert.at:508: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/baz" |
| 8827 | at_fn_check_prepare_trace "divert.at:508" |
| 8828 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --add /testdir/baz |
| 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 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8834 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:508" |
| 8835 | $at_failed && at_fn_log_failure |
| 8836 | $at_traceon; } |
| 8837 | |
| 8838 | |
| 8839 | { set +x |
| 8840 | printf "%s\n" "$at_srcdir/divert.at:510: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --no-rename --remove /testdir/bar" |
| 8841 | at_fn_check_prepare_trace "divert.at:510" |
| 8842 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --no-rename --remove /testdir/bar |
| 8843 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8844 | at_status=$? at_failed=false |
| 8845 | $at_check_filter |
| 8846 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8847 | echo stdout:; tee stdout <"$at_stdout" |
| 8848 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:510" |
| 8849 | $at_failed && at_fn_log_failure |
| 8850 | $at_traceon; } |
| 8851 | |
| 8852 | { set +x |
| 8853 | printf "%s\n" "$at_srcdir/divert.at:511: \$EGREP -q 'Removing .* /testdir/bar' stdout" |
| 8854 | at_fn_check_prepare_dynamic "$EGREP -q 'Removing .* /testdir/bar' stdout" "divert.at:511" |
| 8855 | ( $at_check_trace; $EGREP -q 'Removing .* /testdir/bar' stdout |
| 8856 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8857 | at_status=$? at_failed=false |
| 8858 | $at_check_filter |
| 8859 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8860 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8861 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:511" |
| 8862 | $at_failed && at_fn_log_failure |
| 8863 | $at_traceon; } |
| 8864 | |
| 8865 | |
| 8866 | |
| 8867 | cp "ref-diversions" expout |
| 8868 | { set +x |
| 8869 | printf "%s\n" "$at_srcdir/divert.at:513: cat \"dpkgdb/diversions\"" |
| 8870 | at_fn_check_prepare_trace "divert.at:513" |
| 8871 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 8872 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8873 | at_status=$? at_failed=false |
| 8874 | $at_check_filter |
| 8875 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8876 | $at_diff expout "$at_stdout" || at_failed=: |
| 8877 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:513" |
| 8878 | $at_failed && at_fn_log_failure |
| 8879 | $at_traceon; } |
| 8880 | |
| 8881 | |
| 8882 | |
| 8883 | set +x |
| 8884 | $at_times_p && times >"$at_times_file" |
| 8885 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8886 | read at_status <"$at_status_file" |
| 8887 | #AT_STOP_36 |
| 8888 | #AT_START_37 |
| 8889 | at_fn_group_banner 37 'divert.at:517' \ |
| 8890 | "dpkg-divert remove (by-package)" " " 4 |
| 8891 | at_xfail=no |
| 8892 | ( |
| 8893 | printf "%s\n" "37. $at_setup_line: testing $at_desc ..." |
| 8894 | $at_traceon |
| 8895 | |
| 8896 | |
| 8897 | |
| 8898 | |
| 8899 | |
| 8900 | mkdir -p "dpkgdb" |
| 8901 | : >dpkgdb/diversions |
| 8902 | |
| 8903 | |
| 8904 | cat >ref-diversions <<'_ATEOF' |
| 8905 | /testdir/bar |
| 8906 | /testdir/bar.distrib |
| 8907 | : |
| 8908 | /testdir/foo |
| 8909 | /testdir/foo.distrib |
| 8910 | : |
| 8911 | _ATEOF |
| 8912 | |
| 8913 | |
| 8914 | { set +x |
| 8915 | printf "%s\n" "$at_srcdir/divert.at:529: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename /testdir/foo" |
| 8916 | at_fn_check_prepare_trace "divert.at:529" |
| 8917 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename /testdir/foo |
| 8918 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8919 | at_status=$? at_failed=false |
| 8920 | $at_check_filter |
| 8921 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8922 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8923 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:529" |
| 8924 | $at_failed && at_fn_log_failure |
| 8925 | $at_traceon; } |
| 8926 | |
| 8927 | { set +x |
| 8928 | printf "%s\n" "$at_srcdir/divert.at:530: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename /testdir/bar" |
| 8929 | at_fn_check_prepare_trace "divert.at:530" |
| 8930 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename /testdir/bar |
| 8931 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8932 | at_status=$? at_failed=false |
| 8933 | $at_check_filter |
| 8934 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8935 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8936 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:530" |
| 8937 | $at_failed && at_fn_log_failure |
| 8938 | $at_traceon; } |
| 8939 | |
| 8940 | { set +x |
| 8941 | printf "%s\n" "$at_srcdir/divert.at:531: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --package bash /testdir/baz" |
| 8942 | at_fn_check_prepare_trace "divert.at:531" |
| 8943 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --no-rename --package bash /testdir/baz |
| 8944 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8945 | at_status=$? at_failed=false |
| 8946 | $at_check_filter |
| 8947 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8948 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8949 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:531" |
| 8950 | $at_failed && at_fn_log_failure |
| 8951 | $at_traceon; } |
| 8952 | |
| 8953 | |
| 8954 | { set +x |
| 8955 | printf "%s\n" "$at_srcdir/divert.at:533: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --no-rename --quiet --package bash --remove /testdir/baz" |
| 8956 | at_fn_check_prepare_trace "divert.at:533" |
| 8957 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --no-rename --quiet --package bash --remove /testdir/baz |
| 8958 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8959 | at_status=$? at_failed=false |
| 8960 | $at_check_filter |
| 8961 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8962 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 8963 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:533" |
| 8964 | $at_failed && at_fn_log_failure |
| 8965 | $at_traceon; } |
| 8966 | |
| 8967 | |
| 8968 | |
| 8969 | cp "ref-diversions" expout |
| 8970 | { set +x |
| 8971 | printf "%s\n" "$at_srcdir/divert.at:535: cat \"dpkgdb/diversions\"" |
| 8972 | at_fn_check_prepare_trace "divert.at:535" |
| 8973 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 8974 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 8975 | at_status=$? at_failed=false |
| 8976 | $at_check_filter |
| 8977 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 8978 | $at_diff expout "$at_stdout" || at_failed=: |
| 8979 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:535" |
| 8980 | $at_failed && at_fn_log_failure |
| 8981 | $at_traceon; } |
| 8982 | |
| 8983 | |
| 8984 | |
| 8985 | set +x |
| 8986 | $at_times_p && times >"$at_times_file" |
| 8987 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 8988 | read at_status <"$at_status_file" |
| 8989 | #AT_STOP_37 |
| 8990 | #AT_START_38 |
| 8991 | at_fn_group_banner 38 'divert.at:539' \ |
| 8992 | "dpkg-divert remove (test)" " " 4 |
| 8993 | at_xfail=no |
| 8994 | ( |
| 8995 | printf "%s\n" "38. $at_setup_line: testing $at_desc ..." |
| 8996 | $at_traceon |
| 8997 | |
| 8998 | |
| 8999 | |
| 9000 | |
| 9001 | mkdir -p "dpkginst/$(dirname '/testdir/foo')" |
| 9002 | : >dpkginst//testdir/foo |
| 9003 | |
| 9004 | |
| 9005 | |
| 9006 | mkdir -p "dpkgdb" |
| 9007 | : >dpkgdb/diversions |
| 9008 | |
| 9009 | |
| 9010 | cat >ref-diversions <<'_ATEOF' |
| 9011 | /testdir/foo |
| 9012 | /testdir/foo.distrib |
| 9013 | : |
| 9014 | _ATEOF |
| 9015 | |
| 9016 | |
| 9017 | { set +x |
| 9018 | printf "%s\n" "$at_srcdir/divert.at:549: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename /testdir/foo" |
| 9019 | at_fn_check_prepare_trace "divert.at:549" |
| 9020 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename /testdir/foo |
| 9021 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9022 | at_status=$? at_failed=false |
| 9023 | $at_check_filter |
| 9024 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9025 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9026 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:549" |
| 9027 | $at_failed && at_fn_log_failure |
| 9028 | $at_traceon; } |
| 9029 | |
| 9030 | |
| 9031 | { set +x |
| 9032 | printf "%s\n" "$at_srcdir/divert.at:551: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --test --rename --remove /testdir/foo" |
| 9033 | at_fn_check_prepare_trace "divert.at:551" |
| 9034 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --test --rename --remove /testdir/foo |
| 9035 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9036 | at_status=$? at_failed=false |
| 9037 | $at_check_filter |
| 9038 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9039 | echo stdout:; tee stdout <"$at_stdout" |
| 9040 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:551" |
| 9041 | $at_failed && at_fn_log_failure |
| 9042 | $at_traceon; } |
| 9043 | |
| 9044 | { set +x |
| 9045 | printf "%s\n" "$at_srcdir/divert.at:552: \$GREP -q 'Removing .*/testdir/foo' stdout" |
| 9046 | at_fn_check_prepare_dynamic "$GREP -q 'Removing .*/testdir/foo' stdout" "divert.at:552" |
| 9047 | ( $at_check_trace; $GREP -q 'Removing .*/testdir/foo' stdout |
| 9048 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9049 | at_status=$? at_failed=false |
| 9050 | $at_check_filter |
| 9051 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9052 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9053 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:552" |
| 9054 | $at_failed && at_fn_log_failure |
| 9055 | $at_traceon; } |
| 9056 | |
| 9057 | |
| 9058 | { set +x |
| 9059 | printf "%s\n" "$at_srcdir/divert.at:553: test -e \"dpkginst//testdir/foo\"" |
| 9060 | at_fn_check_prepare_trace "divert.at:553" |
| 9061 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 9062 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9063 | at_status=$? at_failed=false |
| 9064 | $at_check_filter |
| 9065 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9066 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9067 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:553" |
| 9068 | $at_failed && at_fn_log_failure |
| 9069 | $at_traceon; } |
| 9070 | |
| 9071 | |
| 9072 | |
| 9073 | { set +x |
| 9074 | printf "%s\n" "$at_srcdir/divert.at:554: test -e \"dpkginst//testdir/foo.distrib\"" |
| 9075 | at_fn_check_prepare_trace "divert.at:554" |
| 9076 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 9077 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9078 | at_status=$? at_failed=false |
| 9079 | $at_check_filter |
| 9080 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9081 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9082 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:554" |
| 9083 | $at_failed && at_fn_log_failure |
| 9084 | $at_traceon; } |
| 9085 | |
| 9086 | |
| 9087 | |
| 9088 | cp "ref-diversions" expout |
| 9089 | { set +x |
| 9090 | printf "%s\n" "$at_srcdir/divert.at:555: cat \"dpkgdb/diversions\"" |
| 9091 | at_fn_check_prepare_trace "divert.at:555" |
| 9092 | ( $at_check_trace; cat "dpkgdb/diversions" |
| 9093 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9094 | at_status=$? at_failed=false |
| 9095 | $at_check_filter |
| 9096 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9097 | $at_diff expout "$at_stdout" || at_failed=: |
| 9098 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:555" |
| 9099 | $at_failed && at_fn_log_failure |
| 9100 | $at_traceon; } |
| 9101 | |
| 9102 | |
| 9103 | |
| 9104 | { set +x |
| 9105 | printf "%s\n" "$at_srcdir/divert.at:557: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --remove /testdir/foo" |
| 9106 | at_fn_check_prepare_trace "divert.at:557" |
| 9107 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --quiet --rename --remove /testdir/foo |
| 9108 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9109 | at_status=$? at_failed=false |
| 9110 | $at_check_filter |
| 9111 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9112 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9113 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:557" |
| 9114 | $at_failed && at_fn_log_failure |
| 9115 | $at_traceon; } |
| 9116 | |
| 9117 | |
| 9118 | { set +x |
| 9119 | printf "%s\n" "$at_srcdir/divert.at:558: test -e \"dpkginst//testdir/foo\"" |
| 9120 | at_fn_check_prepare_trace "divert.at:558" |
| 9121 | ( $at_check_trace; test -e "dpkginst//testdir/foo" |
| 9122 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9123 | at_status=$? at_failed=false |
| 9124 | $at_check_filter |
| 9125 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9126 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9127 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:558" |
| 9128 | $at_failed && at_fn_log_failure |
| 9129 | $at_traceon; } |
| 9130 | |
| 9131 | |
| 9132 | |
| 9133 | { set +x |
| 9134 | printf "%s\n" "$at_srcdir/divert.at:559: test -e \"dpkginst//testdir/foo.distrib\"" |
| 9135 | at_fn_check_prepare_trace "divert.at:559" |
| 9136 | ( $at_check_trace; test -e "dpkginst//testdir/foo.distrib" |
| 9137 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9138 | at_status=$? at_failed=false |
| 9139 | $at_check_filter |
| 9140 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9141 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9142 | at_fn_check_status 1 $at_status "$at_srcdir/divert.at:559" |
| 9143 | $at_failed && at_fn_log_failure |
| 9144 | $at_traceon; } |
| 9145 | |
| 9146 | |
| 9147 | { set +x |
| 9148 | printf "%s\n" "$at_srcdir/divert.at:560: cat dpkgdb/diversions" |
| 9149 | at_fn_check_prepare_trace "divert.at:560" |
| 9150 | ( $at_check_trace; cat dpkgdb/diversions |
| 9151 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9152 | at_status=$? at_failed=false |
| 9153 | $at_check_filter |
| 9154 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9155 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9156 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:560" |
| 9157 | $at_failed && at_fn_log_failure |
| 9158 | $at_traceon; } |
| 9159 | |
| 9160 | |
| 9161 | set +x |
| 9162 | $at_times_p && times >"$at_times_file" |
| 9163 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9164 | read at_status <"$at_status_file" |
| 9165 | #AT_STOP_38 |
| 9166 | #AT_START_39 |
| 9167 | at_fn_group_banner 39 'divert.at:564' \ |
| 9168 | "dpkg-divert db (no-access)" " " 4 |
| 9169 | at_xfail=no |
| 9170 | ( |
| 9171 | printf "%s\n" "39. $at_setup_line: testing $at_desc ..." |
| 9172 | $at_traceon |
| 9173 | |
| 9174 | |
| 9175 | |
| 9176 | printf "%s\n" "divert.at:567" >"$at_check_line_file" |
| 9177 | (test -n "$FAKEROOTKEY" || test "$(id -u)" = 0) \ |
| 9178 | && at_fn_check_skip 77 "$at_srcdir/divert.at:567" |
| 9179 | |
| 9180 | # An inexistent diversions db file should not be considered a failure, |
| 9181 | # but a failure to open it should be. |
| 9182 | |
| 9183 | |
| 9184 | mkdir -p "dpkgdb" |
| 9185 | : >dpkgdb/diversions |
| 9186 | |
| 9187 | |
| 9188 | |
| 9189 | chmod 000 "dpkgdb/diversions" |
| 9190 | |
| 9191 | |
| 9192 | { set +x |
| 9193 | printf "%s\n" "$at_srcdir/divert.at:574: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list" |
| 9194 | at_fn_check_prepare_trace "divert.at:574" |
| 9195 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list |
| 9196 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9197 | at_status=$? at_failed=false |
| 9198 | $at_check_filter |
| 9199 | echo stderr:; tee stderr <"$at_stderr" |
| 9200 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9201 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:574" |
| 9202 | $at_failed && at_fn_log_failure |
| 9203 | $at_traceon; } |
| 9204 | |
| 9205 | { set +x |
| 9206 | printf "%s\n" "$at_srcdir/divert.at:575: \$EGREP -q '(cannot|failed).*open' stderr" |
| 9207 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:575" |
| 9208 | ( $at_check_trace; $EGREP -q '(cannot|failed).*open' stderr |
| 9209 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9210 | at_status=$? at_failed=false |
| 9211 | $at_check_filter |
| 9212 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9213 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9214 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:575" |
| 9215 | $at_failed && at_fn_log_failure |
| 9216 | $at_traceon; } |
| 9217 | |
| 9218 | |
| 9219 | |
| 9220 | chmod 644 "dpkgdb/diversions" |
| 9221 | |
| 9222 | set +x |
| 9223 | $at_times_p && times >"$at_times_file" |
| 9224 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9225 | read at_status <"$at_status_file" |
| 9226 | #AT_STOP_39 |
| 9227 | #AT_START_40 |
| 9228 | at_fn_group_banner 40 'divert.at:580' \ |
| 9229 | "dpkg-divert db (truncated)" " " 4 |
| 9230 | at_xfail=no |
| 9231 | ( |
| 9232 | printf "%s\n" "40. $at_setup_line: testing $at_desc ..." |
| 9233 | $at_traceon |
| 9234 | |
| 9235 | |
| 9236 | |
| 9237 | |
| 9238 | |
| 9239 | mkdir -p "dpkgdb" |
| 9240 | cat >dpkgdb/diversions <<'_ATEOF' |
| 9241 | /bin/sh |
| 9242 | _ATEOF |
| 9243 | |
| 9244 | |
| 9245 | |
| 9246 | |
| 9247 | { set +x |
| 9248 | printf "%s\n" "$at_srcdir/divert.at:586: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list" |
| 9249 | at_fn_check_prepare_trace "divert.at:586" |
| 9250 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list |
| 9251 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9252 | at_status=$? at_failed=false |
| 9253 | $at_check_filter |
| 9254 | echo stderr:; tee stderr <"$at_stderr" |
| 9255 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9256 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:586" |
| 9257 | $at_failed && at_fn_log_failure |
| 9258 | $at_traceon; } |
| 9259 | |
| 9260 | { set +x |
| 9261 | printf "%s\n" "$at_srcdir/divert.at:587: \$EGREP -q '(corrupt|unexpected end of file)' stderr" |
| 9262 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:587" |
| 9263 | ( $at_check_trace; $EGREP -q '(corrupt|unexpected end of file)' stderr |
| 9264 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9265 | at_status=$? at_failed=false |
| 9266 | $at_check_filter |
| 9267 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9268 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9269 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:587" |
| 9270 | $at_failed && at_fn_log_failure |
| 9271 | $at_traceon; } |
| 9272 | |
| 9273 | |
| 9274 | |
| 9275 | |
| 9276 | mkdir -p "dpkgdb" |
| 9277 | cat >dpkgdb/diversions <<'_ATEOF' |
| 9278 | /bin/sh |
| 9279 | bash |
| 9280 | _ATEOF |
| 9281 | |
| 9282 | |
| 9283 | |
| 9284 | |
| 9285 | { set +x |
| 9286 | printf "%s\n" "$at_srcdir/divert.at:593: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list" |
| 9287 | at_fn_check_prepare_trace "divert.at:593" |
| 9288 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --list |
| 9289 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9290 | at_status=$? at_failed=false |
| 9291 | $at_check_filter |
| 9292 | echo stderr:; tee stderr <"$at_stderr" |
| 9293 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9294 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:593" |
| 9295 | $at_failed && at_fn_log_failure |
| 9296 | $at_traceon; } |
| 9297 | |
| 9298 | { set +x |
| 9299 | printf "%s\n" "$at_srcdir/divert.at:594: \$EGREP -q '(corrupt|unexpected end of file)' stderr" |
| 9300 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:594" |
| 9301 | ( $at_check_trace; $EGREP -q '(corrupt|unexpected end of file)' stderr |
| 9302 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9303 | at_status=$? at_failed=false |
| 9304 | $at_check_filter |
| 9305 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9306 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9307 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:594" |
| 9308 | $at_failed && at_fn_log_failure |
| 9309 | $at_traceon; } |
| 9310 | |
| 9311 | |
| 9312 | set +x |
| 9313 | $at_times_p && times >"$at_times_file" |
| 9314 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9315 | read at_status <"$at_status_file" |
| 9316 | #AT_STOP_40 |
| 9317 | #AT_START_41 |
| 9318 | at_fn_group_banner 41 'divert.at:598' \ |
| 9319 | "dpkg-divert db (read-only dir)" " " 4 |
| 9320 | at_xfail=no |
| 9321 | ( |
| 9322 | printf "%s\n" "41. $at_setup_line: testing $at_desc ..." |
| 9323 | $at_traceon |
| 9324 | |
| 9325 | |
| 9326 | |
| 9327 | printf "%s\n" "divert.at:601" >"$at_check_line_file" |
| 9328 | (test -n "$FAKEROOTKEY" || test "$(id -u)" = 0) \ |
| 9329 | && at_fn_check_skip 77 "$at_srcdir/divert.at:601" |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | mkdir -p "dpkgdb" |
| 9334 | : >dpkgdb/diversions |
| 9335 | |
| 9336 | |
| 9337 | |
| 9338 | chmod 500 "dpkgdb/" |
| 9339 | |
| 9340 | |
| 9341 | { set +x |
| 9342 | printf "%s\n" "$at_srcdir/divert.at:606: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 9343 | at_fn_check_prepare_trace "divert.at:606" |
| 9344 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 9345 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9346 | at_status=$? at_failed=false |
| 9347 | $at_check_filter |
| 9348 | echo stderr:; tee stderr <"$at_stderr" |
| 9349 | echo stdout:; tee stdout <"$at_stdout" |
| 9350 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:606" |
| 9351 | $at_failed && at_fn_log_failure |
| 9352 | $at_traceon; } |
| 9353 | |
| 9354 | { set +x |
| 9355 | printf "%s\n" "$at_srcdir/divert.at:607: \$GREP -q 'Adding' stdout" |
| 9356 | at_fn_check_prepare_dynamic "$GREP -q 'Adding' stdout" "divert.at:607" |
| 9357 | ( $at_check_trace; $GREP -q 'Adding' stdout |
| 9358 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9359 | at_status=$? at_failed=false |
| 9360 | $at_check_filter |
| 9361 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9362 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9363 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:607" |
| 9364 | $at_failed && at_fn_log_failure |
| 9365 | $at_traceon; } |
| 9366 | |
| 9367 | { set +x |
| 9368 | printf "%s\n" "$at_srcdir/divert.at:608: \$GREP -q 'create.*new' stderr" |
| 9369 | at_fn_check_prepare_dynamic "$GREP -q 'create.*new' stderr" "divert.at:608" |
| 9370 | ( $at_check_trace; $GREP -q 'create.*new' stderr |
| 9371 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9372 | at_status=$? at_failed=false |
| 9373 | $at_check_filter |
| 9374 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9375 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9376 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:608" |
| 9377 | $at_failed && at_fn_log_failure |
| 9378 | $at_traceon; } |
| 9379 | |
| 9380 | |
| 9381 | |
| 9382 | chmod 755 "dpkgdb/" |
| 9383 | |
| 9384 | set +x |
| 9385 | $at_times_p && times >"$at_times_file" |
| 9386 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9387 | read at_status <"$at_status_file" |
| 9388 | #AT_STOP_41 |
| 9389 | #AT_START_42 |
| 9390 | at_fn_group_banner 42 'divert.at:613' \ |
| 9391 | "dpkg-divert db (disk full)" " " 4 |
| 9392 | at_xfail=no |
| 9393 | ( |
| 9394 | printf "%s\n" "42. $at_setup_line: testing $at_desc ..." |
| 9395 | $at_traceon |
| 9396 | |
| 9397 | |
| 9398 | |
| 9399 | printf "%s\n" "divert.at:616" >"$at_check_line_file" |
| 9400 | (test -n "$FAKEROOTKEY" || test "$(id -u)" = 0) \ |
| 9401 | && at_fn_check_skip 77 "$at_srcdir/divert.at:616" |
| 9402 | printf "%s\n" "divert.at:617" >"$at_check_line_file" |
| 9403 | (! test -c /dev/full) \ |
| 9404 | && at_fn_check_skip 77 "$at_srcdir/divert.at:617" |
| 9405 | |
| 9406 | |
| 9407 | |
| 9408 | mkdir -p "dpkgdb" |
| 9409 | : >dpkgdb/diversions |
| 9410 | |
| 9411 | |
| 9412 | ln -s /dev/full dpkgdb/diversions-new |
| 9413 | |
| 9414 | { set +x |
| 9415 | printf "%s\n" "$at_srcdir/divert.at:622: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 9416 | at_fn_check_prepare_trace "divert.at:622" |
| 9417 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 9418 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9419 | at_status=$? at_failed=false |
| 9420 | $at_check_filter |
| 9421 | echo stderr:; tee stderr <"$at_stderr" |
| 9422 | echo stdout:; tee stdout <"$at_stdout" |
| 9423 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:622" |
| 9424 | $at_failed && at_fn_log_failure |
| 9425 | $at_traceon; } |
| 9426 | |
| 9427 | { set +x |
| 9428 | printf "%s\n" "$at_srcdir/divert.at:623: \$GREP -q 'Adding' stdout" |
| 9429 | at_fn_check_prepare_dynamic "$GREP -q 'Adding' stdout" "divert.at:623" |
| 9430 | ( $at_check_trace; $GREP -q 'Adding' stdout |
| 9431 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9432 | at_status=$? at_failed=false |
| 9433 | $at_check_filter |
| 9434 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9435 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9436 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:623" |
| 9437 | $at_failed && at_fn_log_failure |
| 9438 | $at_traceon; } |
| 9439 | |
| 9440 | { set +x |
| 9441 | printf "%s\n" "$at_srcdir/divert.at:624: \$EGREP -q '(write|flush|close).*new' stderr" |
| 9442 | at_fn_check_prepare_notrace 'a shell pipeline' "divert.at:624" |
| 9443 | ( $at_check_trace; $EGREP -q '(write|flush|close).*new' stderr |
| 9444 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9445 | at_status=$? at_failed=false |
| 9446 | $at_check_filter |
| 9447 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9448 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9449 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:624" |
| 9450 | $at_failed && at_fn_log_failure |
| 9451 | $at_traceon; } |
| 9452 | |
| 9453 | |
| 9454 | set +x |
| 9455 | $at_times_p && times >"$at_times_file" |
| 9456 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9457 | read at_status <"$at_status_file" |
| 9458 | #AT_STOP_42 |
| 9459 | #AT_START_43 |
| 9460 | at_fn_group_banner 43 'divert.at:628' \ |
| 9461 | "dpkg-divert db (pathname is dir)" " " 4 |
| 9462 | at_xfail=no |
| 9463 | ( |
| 9464 | printf "%s\n" "43. $at_setup_line: testing $at_desc ..." |
| 9465 | $at_traceon |
| 9466 | |
| 9467 | |
| 9468 | |
| 9469 | |
| 9470 | |
| 9471 | mkdir -p "dpkgdb" |
| 9472 | : >dpkgdb/diversions |
| 9473 | |
| 9474 | |
| 9475 | rm -f dpkgdb/diversions-new |
| 9476 | mkdir dpkgdb/diversions-old |
| 9477 | |
| 9478 | { set +x |
| 9479 | printf "%s\n" "$at_srcdir/divert.at:635: dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo" |
| 9480 | at_fn_check_prepare_trace "divert.at:635" |
| 9481 | ( $at_check_trace; dpkg-divert --admindir=dpkgdb --instdir=dpkginst --rename --add /testdir/foo |
| 9482 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9483 | at_status=$? at_failed=false |
| 9484 | $at_check_filter |
| 9485 | echo stderr:; tee stderr <"$at_stderr" |
| 9486 | echo stdout:; tee stdout <"$at_stdout" |
| 9487 | at_fn_check_status 2 $at_status "$at_srcdir/divert.at:635" |
| 9488 | $at_failed && at_fn_log_failure |
| 9489 | $at_traceon; } |
| 9490 | |
| 9491 | { set +x |
| 9492 | printf "%s\n" "$at_srcdir/divert.at:636: \$GREP -q 'Adding' stdout" |
| 9493 | at_fn_check_prepare_dynamic "$GREP -q 'Adding' stdout" "divert.at:636" |
| 9494 | ( $at_check_trace; $GREP -q 'Adding' stdout |
| 9495 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9496 | at_status=$? at_failed=false |
| 9497 | $at_check_filter |
| 9498 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9499 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9500 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:636" |
| 9501 | $at_failed && at_fn_log_failure |
| 9502 | $at_traceon; } |
| 9503 | |
| 9504 | { set +x |
| 9505 | printf "%s\n" "$at_srcdir/divert.at:637: \$GREP -q 'remov.*old' stderr" |
| 9506 | at_fn_check_prepare_dynamic "$GREP -q 'remov.*old' stderr" "divert.at:637" |
| 9507 | ( $at_check_trace; $GREP -q 'remov.*old' stderr |
| 9508 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9509 | at_status=$? at_failed=false |
| 9510 | $at_check_filter |
| 9511 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9512 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9513 | at_fn_check_status 0 $at_status "$at_srcdir/divert.at:637" |
| 9514 | $at_failed && at_fn_log_failure |
| 9515 | $at_traceon; } |
| 9516 | |
| 9517 | |
| 9518 | set +x |
| 9519 | $at_times_p && times >"$at_times_file" |
| 9520 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9521 | read at_status <"$at_status_file" |
| 9522 | #AT_STOP_43 |
| 9523 | #AT_START_44 |
| 9524 | at_fn_group_banner 44 'trigger.at:6' \ |
| 9525 | "dpkg trigger no-act" " " 5 |
| 9526 | at_xfail=no |
| 9527 | ( |
| 9528 | printf "%s\n" "44. $at_setup_line: testing $at_desc ..." |
| 9529 | $at_traceon |
| 9530 | |
| 9531 | |
| 9532 | |
| 9533 | cat >ref-deferred <<'_ATEOF' |
| 9534 | synthetic-trigger synthetic-package |
| 9535 | _ATEOF |
| 9536 | |
| 9537 | |
| 9538 | |
| 9539 | mkdir -p "dpkgdb/triggers" |
| 9540 | : >dpkgdb/triggers/Lock |
| 9541 | |
| 9542 | |
| 9543 | mkdir -p "dpkgdb/triggers" |
| 9544 | : >dpkgdb/triggers/Unincorp |
| 9545 | |
| 9546 | |
| 9547 | { set +x |
| 9548 | printf "%s\n" "$at_srcdir/trigger.at:15: dpkg-trigger --admindir=dpkgdb --by-package synthetic-package synthetic-trigger" |
| 9549 | at_fn_check_prepare_trace "trigger.at:15" |
| 9550 | ( $at_check_trace; dpkg-trigger --admindir=dpkgdb --by-package synthetic-package synthetic-trigger |
| 9551 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9552 | at_status=$? at_failed=false |
| 9553 | $at_check_filter |
| 9554 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9555 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9556 | at_fn_check_status 0 $at_status "$at_srcdir/trigger.at:15" |
| 9557 | $at_failed && at_fn_log_failure |
| 9558 | $at_traceon; } |
| 9559 | |
| 9560 | |
| 9561 | cp "ref-deferred" expout |
| 9562 | { set +x |
| 9563 | printf "%s\n" "$at_srcdir/trigger.at:16: cat \"dpkgdb/triggers/Unincorp\"" |
| 9564 | at_fn_check_prepare_trace "trigger.at:16" |
| 9565 | ( $at_check_trace; cat "dpkgdb/triggers/Unincorp" |
| 9566 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9567 | at_status=$? at_failed=false |
| 9568 | $at_check_filter |
| 9569 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9570 | $at_diff expout "$at_stdout" || at_failed=: |
| 9571 | at_fn_check_status 0 $at_status "$at_srcdir/trigger.at:16" |
| 9572 | $at_failed && at_fn_log_failure |
| 9573 | $at_traceon; } |
| 9574 | |
| 9575 | |
| 9576 | |
| 9577 | # Check whether we are really doing nothing. |
| 9578 | { set +x |
| 9579 | printf "%s\n" "$at_srcdir/trigger.at:19: dpkg-trigger --admindir=dpkgdb --by-package synthetic-package --no-act synthetic-trigger" |
| 9580 | at_fn_check_prepare_trace "trigger.at:19" |
| 9581 | ( $at_check_trace; dpkg-trigger --admindir=dpkgdb --by-package synthetic-package --no-act synthetic-trigger |
| 9582 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9583 | at_status=$? at_failed=false |
| 9584 | $at_check_filter |
| 9585 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9586 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 9587 | at_fn_check_status 0 $at_status "$at_srcdir/trigger.at:19" |
| 9588 | $at_failed && at_fn_log_failure |
| 9589 | $at_traceon; } |
| 9590 | |
| 9591 | |
| 9592 | cp "ref-deferred" expout |
| 9593 | { set +x |
| 9594 | printf "%s\n" "$at_srcdir/trigger.at:20: cat \"dpkgdb/triggers/Unincorp\"" |
| 9595 | at_fn_check_prepare_trace "trigger.at:20" |
| 9596 | ( $at_check_trace; cat "dpkgdb/triggers/Unincorp" |
| 9597 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9598 | at_status=$? at_failed=false |
| 9599 | $at_check_filter |
| 9600 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 9601 | $at_diff expout "$at_stdout" || at_failed=: |
| 9602 | at_fn_check_status 0 $at_status "$at_srcdir/trigger.at:20" |
| 9603 | $at_failed && at_fn_log_failure |
| 9604 | $at_traceon; } |
| 9605 | |
| 9606 | |
| 9607 | |
| 9608 | set +x |
| 9609 | $at_times_p && times >"$at_times_file" |
| 9610 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9611 | read at_status <"$at_status_file" |
| 9612 | #AT_STOP_44 |
| 9613 | #AT_START_45 |
| 9614 | at_fn_group_banner 45 'chdir.at:5' \ |
| 9615 | "dpkg chdir opts normalize" " " 6 |
| 9616 | at_xfail=no |
| 9617 | ( |
| 9618 | printf "%s\n" "45. $at_setup_line: testing $at_desc ..." |
| 9619 | $at_traceon |
| 9620 | |
| 9621 | |
| 9622 | |
| 9623 | DPKG_ROOT= |
| 9624 | DPKG_ADMINDIR= |
| 9625 | |
| 9626 | { set +x |
| 9627 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --root=/" |
| 9628 | at_fn_check_prepare_trace "chdir.at:5" |
| 9629 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --root=/ |
| 9630 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9631 | at_status=$? at_failed=false |
| 9632 | $at_check_filter |
| 9633 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=$DEFAULT_ADMINDIR |
| 9634 | " | \ |
| 9635 | $at_diff - "$at_stderr" || at_failed=: |
| 9636 | echo stdout:; cat "$at_stdout" |
| 9637 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9638 | $at_failed && at_fn_log_failure |
| 9639 | $at_traceon; } |
| 9640 | |
| 9641 | |
| 9642 | { set +x |
| 9643 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --root=//./..///../././..///" |
| 9644 | at_fn_check_prepare_trace "chdir.at:5" |
| 9645 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --root=//./..///../././../// |
| 9646 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9647 | at_status=$? at_failed=false |
| 9648 | $at_check_filter |
| 9649 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=$DEFAULT_ADMINDIR |
| 9650 | " | \ |
| 9651 | $at_diff - "$at_stderr" || at_failed=: |
| 9652 | echo stdout:; cat "$at_stdout" |
| 9653 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9654 | $at_failed && at_fn_log_failure |
| 9655 | $at_traceon; } |
| 9656 | |
| 9657 | |
| 9658 | set +x |
| 9659 | $at_times_p && times >"$at_times_file" |
| 9660 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9661 | read at_status <"$at_status_file" |
| 9662 | #AT_STOP_45 |
| 9663 | #AT_START_46 |
| 9664 | at_fn_group_banner 46 'chdir.at:5' \ |
| 9665 | "dpkg chdir opts" " " 6 |
| 9666 | at_xfail=no |
| 9667 | ( |
| 9668 | printf "%s\n" "46. $at_setup_line: testing $at_desc ..." |
| 9669 | $at_traceon |
| 9670 | |
| 9671 | |
| 9672 | |
| 9673 | DPKG_ROOT= |
| 9674 | DPKG_ADMINDIR= |
| 9675 | |
| 9676 | { set +x |
| 9677 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt" |
| 9678 | at_fn_check_prepare_trace "chdir.at:5" |
| 9679 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt |
| 9680 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9681 | at_status=$? at_failed=false |
| 9682 | $at_check_filter |
| 9683 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 9684 | " | \ |
| 9685 | $at_diff - "$at_stderr" || at_failed=: |
| 9686 | echo stdout:; cat "$at_stdout" |
| 9687 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9688 | $at_failed && at_fn_log_failure |
| 9689 | $at_traceon; } |
| 9690 | |
| 9691 | { set +x |
| 9692 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt" |
| 9693 | at_fn_check_prepare_trace "chdir.at:5" |
| 9694 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt |
| 9695 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9696 | at_status=$? at_failed=false |
| 9697 | $at_check_filter |
| 9698 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 9699 | " | \ |
| 9700 | $at_diff - "$at_stderr" || at_failed=: |
| 9701 | echo stdout:; cat "$at_stdout" |
| 9702 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9703 | $at_failed && at_fn_log_failure |
| 9704 | $at_traceon; } |
| 9705 | |
| 9706 | { set +x |
| 9707 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt" |
| 9708 | at_fn_check_prepare_trace "chdir.at:5" |
| 9709 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt |
| 9710 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9711 | at_status=$? at_failed=false |
| 9712 | $at_check_filter |
| 9713 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=$DEFAULT_ADMINDIR |
| 9714 | " | \ |
| 9715 | $at_diff - "$at_stderr" || at_failed=: |
| 9716 | echo stdout:; cat "$at_stdout" |
| 9717 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9718 | $at_failed && at_fn_log_failure |
| 9719 | $at_traceon; } |
| 9720 | |
| 9721 | { set +x |
| 9722 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 9723 | at_fn_check_prepare_trace "chdir.at:5" |
| 9724 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt |
| 9725 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9726 | at_status=$? at_failed=false |
| 9727 | $at_check_filter |
| 9728 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 9729 | " | \ |
| 9730 | $at_diff - "$at_stderr" || at_failed=: |
| 9731 | echo stdout:; cat "$at_stdout" |
| 9732 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9733 | $at_failed && at_fn_log_failure |
| 9734 | $at_traceon; } |
| 9735 | |
| 9736 | { set +x |
| 9737 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 9738 | at_fn_check_prepare_trace "chdir.at:5" |
| 9739 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --root=/rootdir_opt |
| 9740 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9741 | at_status=$? at_failed=false |
| 9742 | $at_check_filter |
| 9743 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 9744 | " | \ |
| 9745 | $at_diff - "$at_stderr" || at_failed=: |
| 9746 | echo stdout:; cat "$at_stdout" |
| 9747 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9748 | $at_failed && at_fn_log_failure |
| 9749 | $at_traceon; } |
| 9750 | |
| 9751 | { set +x |
| 9752 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 9753 | at_fn_check_prepare_trace "chdir.at:5" |
| 9754 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --instdir=/instdir_opt |
| 9755 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9756 | at_status=$? at_failed=false |
| 9757 | $at_check_filter |
| 9758 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 9759 | " | \ |
| 9760 | $at_diff - "$at_stderr" || at_failed=: |
| 9761 | echo stdout:; cat "$at_stdout" |
| 9762 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9763 | $at_failed && at_fn_log_failure |
| 9764 | $at_traceon; } |
| 9765 | |
| 9766 | { set +x |
| 9767 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 9768 | at_fn_check_prepare_trace "chdir.at:5" |
| 9769 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --root=/rootdir_opt |
| 9770 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9771 | at_status=$? at_failed=false |
| 9772 | $at_check_filter |
| 9773 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 9774 | " | \ |
| 9775 | $at_diff - "$at_stderr" || at_failed=: |
| 9776 | echo stdout:; cat "$at_stdout" |
| 9777 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9778 | $at_failed && at_fn_log_failure |
| 9779 | $at_traceon; } |
| 9780 | |
| 9781 | { set +x |
| 9782 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 9783 | at_fn_check_prepare_trace "chdir.at:5" |
| 9784 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 9785 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9786 | at_status=$? at_failed=false |
| 9787 | $at_check_filter |
| 9788 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 9789 | " | \ |
| 9790 | $at_diff - "$at_stderr" || at_failed=: |
| 9791 | echo stdout:; cat "$at_stdout" |
| 9792 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9793 | $at_failed && at_fn_log_failure |
| 9794 | $at_traceon; } |
| 9795 | |
| 9796 | { set +x |
| 9797 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 9798 | at_fn_check_prepare_trace "chdir.at:5" |
| 9799 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 9800 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9801 | at_status=$? at_failed=false |
| 9802 | $at_check_filter |
| 9803 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 9804 | " | \ |
| 9805 | $at_diff - "$at_stderr" || at_failed=: |
| 9806 | echo stdout:; cat "$at_stdout" |
| 9807 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9808 | $at_failed && at_fn_log_failure |
| 9809 | $at_traceon; } |
| 9810 | |
| 9811 | { set +x |
| 9812 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 9813 | at_fn_check_prepare_trace "chdir.at:5" |
| 9814 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 9815 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9816 | at_status=$? at_failed=false |
| 9817 | $at_check_filter |
| 9818 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 9819 | " | \ |
| 9820 | $at_diff - "$at_stderr" || at_failed=: |
| 9821 | echo stdout:; cat "$at_stdout" |
| 9822 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9823 | $at_failed && at_fn_log_failure |
| 9824 | $at_traceon; } |
| 9825 | |
| 9826 | { set +x |
| 9827 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 9828 | at_fn_check_prepare_trace "chdir.at:5" |
| 9829 | ( $at_check_trace; DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 9830 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9831 | at_status=$? at_failed=false |
| 9832 | $at_check_filter |
| 9833 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 9834 | " | \ |
| 9835 | $at_diff - "$at_stderr" || at_failed=: |
| 9836 | echo stdout:; cat "$at_stdout" |
| 9837 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9838 | $at_failed && at_fn_log_failure |
| 9839 | $at_traceon; } |
| 9840 | |
| 9841 | |
| 9842 | set +x |
| 9843 | $at_times_p && times >"$at_times_file" |
| 9844 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9845 | read at_status <"$at_status_file" |
| 9846 | #AT_STOP_46 |
| 9847 | #AT_START_47 |
| 9848 | at_fn_group_banner 47 'chdir.at:5' \ |
| 9849 | "dpkg chdir env" " " 6 |
| 9850 | at_xfail=no |
| 9851 | ( |
| 9852 | printf "%s\n" "47. $at_setup_line: testing $at_desc ..." |
| 9853 | $at_traceon |
| 9854 | |
| 9855 | |
| 9856 | |
| 9857 | DPKG_ROOT= |
| 9858 | DPKG_ADMINDIR= |
| 9859 | |
| 9860 | { set +x |
| 9861 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 9862 | DPKG_DEBUG=1 dpkg --version" |
| 9863 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 9864 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 9865 | DPKG_DEBUG=1 dpkg --version |
| 9866 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9867 | at_status=$? at_failed=false |
| 9868 | $at_check_filter |
| 9869 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_env |
| 9870 | " | \ |
| 9871 | $at_diff - "$at_stderr" || at_failed=: |
| 9872 | echo stdout:; cat "$at_stdout" |
| 9873 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9874 | $at_failed && at_fn_log_failure |
| 9875 | $at_traceon; } |
| 9876 | |
| 9877 | { set +x |
| 9878 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 9879 | DPKG_DEBUG=1 dpkg --version" |
| 9880 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 9881 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 9882 | DPKG_DEBUG=1 dpkg --version |
| 9883 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9884 | at_status=$? at_failed=false |
| 9885 | $at_check_filter |
| 9886 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 9887 | " | \ |
| 9888 | $at_diff - "$at_stderr" || at_failed=: |
| 9889 | echo stdout:; cat "$at_stdout" |
| 9890 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9891 | $at_failed && at_fn_log_failure |
| 9892 | $at_traceon; } |
| 9893 | |
| 9894 | { set +x |
| 9895 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 9896 | DPKG_DEBUG=1 dpkg --version" |
| 9897 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 9898 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 9899 | DPKG_DEBUG=1 dpkg --version |
| 9900 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9901 | at_status=$? at_failed=false |
| 9902 | $at_check_filter |
| 9903 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_env |
| 9904 | " | \ |
| 9905 | $at_diff - "$at_stderr" || at_failed=: |
| 9906 | echo stdout:; cat "$at_stdout" |
| 9907 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9908 | $at_failed && at_fn_log_failure |
| 9909 | $at_traceon; } |
| 9910 | |
| 9911 | |
| 9912 | set +x |
| 9913 | $at_times_p && times >"$at_times_file" |
| 9914 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 9915 | read at_status <"$at_status_file" |
| 9916 | #AT_STOP_47 |
| 9917 | #AT_START_48 |
| 9918 | at_fn_group_banner 48 'chdir.at:5' \ |
| 9919 | "dpkg chdir env+opt admindir" " " 6 |
| 9920 | at_xfail=no |
| 9921 | ( |
| 9922 | printf "%s\n" "48. $at_setup_line: testing $at_desc ..." |
| 9923 | $at_traceon |
| 9924 | |
| 9925 | |
| 9926 | |
| 9927 | DPKG_ROOT= |
| 9928 | DPKG_ADMINDIR= |
| 9929 | |
| 9930 | { set +x |
| 9931 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 9932 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt" |
| 9933 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 9934 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 9935 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt |
| 9936 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9937 | at_status=$? at_failed=false |
| 9938 | $at_check_filter |
| 9939 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 9940 | " | \ |
| 9941 | $at_diff - "$at_stderr" || at_failed=: |
| 9942 | echo stdout:; cat "$at_stdout" |
| 9943 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9944 | $at_failed && at_fn_log_failure |
| 9945 | $at_traceon; } |
| 9946 | |
| 9947 | { set +x |
| 9948 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 9949 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt" |
| 9950 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 9951 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 9952 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt |
| 9953 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9954 | at_status=$? at_failed=false |
| 9955 | $at_check_filter |
| 9956 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 9957 | " | \ |
| 9958 | $at_diff - "$at_stderr" || at_failed=: |
| 9959 | echo stdout:; cat "$at_stdout" |
| 9960 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9961 | $at_failed && at_fn_log_failure |
| 9962 | $at_traceon; } |
| 9963 | |
| 9964 | { set +x |
| 9965 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 9966 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt" |
| 9967 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 9968 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 9969 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt |
| 9970 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9971 | at_status=$? at_failed=false |
| 9972 | $at_check_filter |
| 9973 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_env |
| 9974 | " | \ |
| 9975 | $at_diff - "$at_stderr" || at_failed=: |
| 9976 | echo stdout:; cat "$at_stdout" |
| 9977 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9978 | $at_failed && at_fn_log_failure |
| 9979 | $at_traceon; } |
| 9980 | |
| 9981 | { set +x |
| 9982 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 9983 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 9984 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 9985 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 9986 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt |
| 9987 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 9988 | at_status=$? at_failed=false |
| 9989 | $at_check_filter |
| 9990 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 9991 | " | \ |
| 9992 | $at_diff - "$at_stderr" || at_failed=: |
| 9993 | echo stdout:; cat "$at_stdout" |
| 9994 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 9995 | $at_failed && at_fn_log_failure |
| 9996 | $at_traceon; } |
| 9997 | |
| 9998 | { set +x |
| 9999 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10000 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 10001 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10002 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10003 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --root=/rootdir_opt |
| 10004 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10005 | at_status=$? at_failed=false |
| 10006 | $at_check_filter |
| 10007 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10008 | " | \ |
| 10009 | $at_diff - "$at_stderr" || at_failed=: |
| 10010 | echo stdout:; cat "$at_stdout" |
| 10011 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10012 | $at_failed && at_fn_log_failure |
| 10013 | $at_traceon; } |
| 10014 | |
| 10015 | { set +x |
| 10016 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10017 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 10018 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10019 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10020 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --instdir=/instdir_opt |
| 10021 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10022 | at_status=$? at_failed=false |
| 10023 | $at_check_filter |
| 10024 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10025 | " | \ |
| 10026 | $at_diff - "$at_stderr" || at_failed=: |
| 10027 | echo stdout:; cat "$at_stdout" |
| 10028 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10029 | $at_failed && at_fn_log_failure |
| 10030 | $at_traceon; } |
| 10031 | |
| 10032 | { set +x |
| 10033 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10034 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 10035 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10036 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10037 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --root=/rootdir_opt |
| 10038 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10039 | at_status=$? at_failed=false |
| 10040 | $at_check_filter |
| 10041 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10042 | " | \ |
| 10043 | $at_diff - "$at_stderr" || at_failed=: |
| 10044 | echo stdout:; cat "$at_stdout" |
| 10045 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10046 | $at_failed && at_fn_log_failure |
| 10047 | $at_traceon; } |
| 10048 | |
| 10049 | { set +x |
| 10050 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10051 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 10052 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10053 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10054 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 10055 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10056 | at_status=$? at_failed=false |
| 10057 | $at_check_filter |
| 10058 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10059 | " | \ |
| 10060 | $at_diff - "$at_stderr" || at_failed=: |
| 10061 | echo stdout:; cat "$at_stdout" |
| 10062 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10063 | $at_failed && at_fn_log_failure |
| 10064 | $at_traceon; } |
| 10065 | |
| 10066 | { set +x |
| 10067 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10068 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10069 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10070 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10071 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 10072 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10073 | at_status=$? at_failed=false |
| 10074 | $at_check_filter |
| 10075 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10076 | " | \ |
| 10077 | $at_diff - "$at_stderr" || at_failed=: |
| 10078 | echo stdout:; cat "$at_stdout" |
| 10079 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10080 | $at_failed && at_fn_log_failure |
| 10081 | $at_traceon; } |
| 10082 | |
| 10083 | { set +x |
| 10084 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10085 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10086 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10087 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10088 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 10089 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10090 | at_status=$? at_failed=false |
| 10091 | $at_check_filter |
| 10092 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10093 | " | \ |
| 10094 | $at_diff - "$at_stderr" || at_failed=: |
| 10095 | echo stdout:; cat "$at_stdout" |
| 10096 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10097 | $at_failed && at_fn_log_failure |
| 10098 | $at_traceon; } |
| 10099 | |
| 10100 | { set +x |
| 10101 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10102 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 10103 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10104 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10105 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 10106 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10107 | at_status=$? at_failed=false |
| 10108 | $at_check_filter |
| 10109 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10110 | " | \ |
| 10111 | $at_diff - "$at_stderr" || at_failed=: |
| 10112 | echo stdout:; cat "$at_stdout" |
| 10113 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10114 | $at_failed && at_fn_log_failure |
| 10115 | $at_traceon; } |
| 10116 | |
| 10117 | |
| 10118 | set +x |
| 10119 | $at_times_p && times >"$at_times_file" |
| 10120 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 10121 | read at_status <"$at_status_file" |
| 10122 | #AT_STOP_48 |
| 10123 | #AT_START_49 |
| 10124 | at_fn_group_banner 49 'chdir.at:5' \ |
| 10125 | "dpkg chdir env+opt root" " " 6 |
| 10126 | at_xfail=no |
| 10127 | ( |
| 10128 | printf "%s\n" "49. $at_setup_line: testing $at_desc ..." |
| 10129 | $at_traceon |
| 10130 | |
| 10131 | |
| 10132 | |
| 10133 | DPKG_ROOT= |
| 10134 | DPKG_ADMINDIR= |
| 10135 | |
| 10136 | { set +x |
| 10137 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10138 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt" |
| 10139 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10140 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10141 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt |
| 10142 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10143 | at_status=$? at_failed=false |
| 10144 | $at_check_filter |
| 10145 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10146 | " | \ |
| 10147 | $at_diff - "$at_stderr" || at_failed=: |
| 10148 | echo stdout:; cat "$at_stdout" |
| 10149 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10150 | $at_failed && at_fn_log_failure |
| 10151 | $at_traceon; } |
| 10152 | |
| 10153 | { set +x |
| 10154 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10155 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt" |
| 10156 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10157 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10158 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt |
| 10159 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10160 | at_status=$? at_failed=false |
| 10161 | $at_check_filter |
| 10162 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 10163 | " | \ |
| 10164 | $at_diff - "$at_stderr" || at_failed=: |
| 10165 | echo stdout:; cat "$at_stdout" |
| 10166 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10167 | $at_failed && at_fn_log_failure |
| 10168 | $at_traceon; } |
| 10169 | |
| 10170 | { set +x |
| 10171 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10172 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt" |
| 10173 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10174 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10175 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt |
| 10176 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10177 | at_status=$? at_failed=false |
| 10178 | $at_check_filter |
| 10179 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 10180 | " | \ |
| 10181 | $at_diff - "$at_stderr" || at_failed=: |
| 10182 | echo stdout:; cat "$at_stdout" |
| 10183 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10184 | $at_failed && at_fn_log_failure |
| 10185 | $at_traceon; } |
| 10186 | |
| 10187 | { set +x |
| 10188 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10189 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 10190 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10191 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10192 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt |
| 10193 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10194 | at_status=$? at_failed=false |
| 10195 | $at_check_filter |
| 10196 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 10197 | " | \ |
| 10198 | $at_diff - "$at_stderr" || at_failed=: |
| 10199 | echo stdout:; cat "$at_stdout" |
| 10200 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10201 | $at_failed && at_fn_log_failure |
| 10202 | $at_traceon; } |
| 10203 | |
| 10204 | { set +x |
| 10205 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10206 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 10207 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10208 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10209 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --root=/rootdir_opt |
| 10210 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10211 | at_status=$? at_failed=false |
| 10212 | $at_check_filter |
| 10213 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10214 | " | \ |
| 10215 | $at_diff - "$at_stderr" || at_failed=: |
| 10216 | echo stdout:; cat "$at_stdout" |
| 10217 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10218 | $at_failed && at_fn_log_failure |
| 10219 | $at_traceon; } |
| 10220 | |
| 10221 | { set +x |
| 10222 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10223 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 10224 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10225 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10226 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --instdir=/instdir_opt |
| 10227 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10228 | at_status=$? at_failed=false |
| 10229 | $at_check_filter |
| 10230 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10231 | " | \ |
| 10232 | $at_diff - "$at_stderr" || at_failed=: |
| 10233 | echo stdout:; cat "$at_stdout" |
| 10234 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10235 | $at_failed && at_fn_log_failure |
| 10236 | $at_traceon; } |
| 10237 | |
| 10238 | { set +x |
| 10239 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10240 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 10241 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10242 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10243 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --root=/rootdir_opt |
| 10244 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10245 | at_status=$? at_failed=false |
| 10246 | $at_check_filter |
| 10247 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10248 | " | \ |
| 10249 | $at_diff - "$at_stderr" || at_failed=: |
| 10250 | echo stdout:; cat "$at_stdout" |
| 10251 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10252 | $at_failed && at_fn_log_failure |
| 10253 | $at_traceon; } |
| 10254 | |
| 10255 | { set +x |
| 10256 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10257 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 10258 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10259 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10260 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 10261 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10262 | at_status=$? at_failed=false |
| 10263 | $at_check_filter |
| 10264 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10265 | " | \ |
| 10266 | $at_diff - "$at_stderr" || at_failed=: |
| 10267 | echo stdout:; cat "$at_stdout" |
| 10268 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10269 | $at_failed && at_fn_log_failure |
| 10270 | $at_traceon; } |
| 10271 | |
| 10272 | { set +x |
| 10273 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10274 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10275 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10276 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10277 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 10278 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10279 | at_status=$? at_failed=false |
| 10280 | $at_check_filter |
| 10281 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10282 | " | \ |
| 10283 | $at_diff - "$at_stderr" || at_failed=: |
| 10284 | echo stdout:; cat "$at_stdout" |
| 10285 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10286 | $at_failed && at_fn_log_failure |
| 10287 | $at_traceon; } |
| 10288 | |
| 10289 | { set +x |
| 10290 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10291 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10292 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10293 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10294 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 10295 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10296 | at_status=$? at_failed=false |
| 10297 | $at_check_filter |
| 10298 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10299 | " | \ |
| 10300 | $at_diff - "$at_stderr" || at_failed=: |
| 10301 | echo stdout:; cat "$at_stdout" |
| 10302 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10303 | $at_failed && at_fn_log_failure |
| 10304 | $at_traceon; } |
| 10305 | |
| 10306 | { set +x |
| 10307 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10308 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 10309 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10310 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10311 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 10312 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10313 | at_status=$? at_failed=false |
| 10314 | $at_check_filter |
| 10315 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10316 | " | \ |
| 10317 | $at_diff - "$at_stderr" || at_failed=: |
| 10318 | echo stdout:; cat "$at_stdout" |
| 10319 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10320 | $at_failed && at_fn_log_failure |
| 10321 | $at_traceon; } |
| 10322 | |
| 10323 | |
| 10324 | set +x |
| 10325 | $at_times_p && times >"$at_times_file" |
| 10326 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 10327 | read at_status <"$at_status_file" |
| 10328 | #AT_STOP_49 |
| 10329 | #AT_START_50 |
| 10330 | at_fn_group_banner 50 'chdir.at:5' \ |
| 10331 | "dpkg chdir env+opt root+admindir" " " 6 |
| 10332 | at_xfail=no |
| 10333 | ( |
| 10334 | printf "%s\n" "50. $at_setup_line: testing $at_desc ..." |
| 10335 | $at_traceon |
| 10336 | |
| 10337 | |
| 10338 | |
| 10339 | DPKG_ROOT= |
| 10340 | DPKG_ADMINDIR= |
| 10341 | |
| 10342 | { set +x |
| 10343 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10344 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt" |
| 10345 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10346 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10347 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt |
| 10348 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10349 | at_status=$? at_failed=false |
| 10350 | $at_check_filter |
| 10351 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10352 | " | \ |
| 10353 | $at_diff - "$at_stderr" || at_failed=: |
| 10354 | echo stdout:; cat "$at_stdout" |
| 10355 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10356 | $at_failed && at_fn_log_failure |
| 10357 | $at_traceon; } |
| 10358 | |
| 10359 | { set +x |
| 10360 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10361 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt" |
| 10362 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10363 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10364 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt |
| 10365 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10366 | at_status=$? at_failed=false |
| 10367 | $at_check_filter |
| 10368 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 10369 | " | \ |
| 10370 | $at_diff - "$at_stderr" || at_failed=: |
| 10371 | echo stdout:; cat "$at_stdout" |
| 10372 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10373 | $at_failed && at_fn_log_failure |
| 10374 | $at_traceon; } |
| 10375 | |
| 10376 | { set +x |
| 10377 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10378 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt" |
| 10379 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10380 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10381 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt |
| 10382 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10383 | at_status=$? at_failed=false |
| 10384 | $at_check_filter |
| 10385 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_env |
| 10386 | " | \ |
| 10387 | $at_diff - "$at_stderr" || at_failed=: |
| 10388 | echo stdout:; cat "$at_stdout" |
| 10389 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10390 | $at_failed && at_fn_log_failure |
| 10391 | $at_traceon; } |
| 10392 | |
| 10393 | { set +x |
| 10394 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10395 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 10396 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10397 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10398 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt |
| 10399 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10400 | at_status=$? at_failed=false |
| 10401 | $at_check_filter |
| 10402 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 10403 | " | \ |
| 10404 | $at_diff - "$at_stderr" || at_failed=: |
| 10405 | echo stdout:; cat "$at_stdout" |
| 10406 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10407 | $at_failed && at_fn_log_failure |
| 10408 | $at_traceon; } |
| 10409 | |
| 10410 | { set +x |
| 10411 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10412 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 10413 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10414 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10415 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --root=/rootdir_opt |
| 10416 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10417 | at_status=$? at_failed=false |
| 10418 | $at_check_filter |
| 10419 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10420 | " | \ |
| 10421 | $at_diff - "$at_stderr" || at_failed=: |
| 10422 | echo stdout:; cat "$at_stdout" |
| 10423 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10424 | $at_failed && at_fn_log_failure |
| 10425 | $at_traceon; } |
| 10426 | |
| 10427 | { set +x |
| 10428 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10429 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 10430 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10431 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10432 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --instdir=/instdir_opt |
| 10433 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10434 | at_status=$? at_failed=false |
| 10435 | $at_check_filter |
| 10436 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10437 | " | \ |
| 10438 | $at_diff - "$at_stderr" || at_failed=: |
| 10439 | echo stdout:; cat "$at_stdout" |
| 10440 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10441 | $at_failed && at_fn_log_failure |
| 10442 | $at_traceon; } |
| 10443 | |
| 10444 | { set +x |
| 10445 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10446 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 10447 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10448 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10449 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --root=/rootdir_opt |
| 10450 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10451 | at_status=$? at_failed=false |
| 10452 | $at_check_filter |
| 10453 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10454 | " | \ |
| 10455 | $at_diff - "$at_stderr" || at_failed=: |
| 10456 | echo stdout:; cat "$at_stdout" |
| 10457 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10458 | $at_failed && at_fn_log_failure |
| 10459 | $at_traceon; } |
| 10460 | |
| 10461 | { set +x |
| 10462 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10463 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 10464 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10465 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10466 | DPKG_DEBUG=1 dpkg --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 10467 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10468 | at_status=$? at_failed=false |
| 10469 | $at_check_filter |
| 10470 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10471 | " | \ |
| 10472 | $at_diff - "$at_stderr" || at_failed=: |
| 10473 | echo stdout:; cat "$at_stdout" |
| 10474 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10475 | $at_failed && at_fn_log_failure |
| 10476 | $at_traceon; } |
| 10477 | |
| 10478 | { set +x |
| 10479 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10480 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10481 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10482 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10483 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 10484 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10485 | at_status=$? at_failed=false |
| 10486 | $at_check_filter |
| 10487 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10488 | " | \ |
| 10489 | $at_diff - "$at_stderr" || at_failed=: |
| 10490 | echo stdout:; cat "$at_stdout" |
| 10491 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10492 | $at_failed && at_fn_log_failure |
| 10493 | $at_traceon; } |
| 10494 | |
| 10495 | { set +x |
| 10496 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10497 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10498 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10499 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10500 | DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 10501 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10502 | at_status=$? at_failed=false |
| 10503 | $at_check_filter |
| 10504 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10505 | " | \ |
| 10506 | $at_diff - "$at_stderr" || at_failed=: |
| 10507 | echo stdout:; cat "$at_stdout" |
| 10508 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10509 | $at_failed && at_fn_log_failure |
| 10510 | $at_traceon; } |
| 10511 | |
| 10512 | { set +x |
| 10513 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10514 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 10515 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10516 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10517 | DPKG_DEBUG=1 dpkg --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 10518 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10519 | at_status=$? at_failed=false |
| 10520 | $at_check_filter |
| 10521 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10522 | " | \ |
| 10523 | $at_diff - "$at_stderr" || at_failed=: |
| 10524 | echo stdout:; cat "$at_stdout" |
| 10525 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10526 | $at_failed && at_fn_log_failure |
| 10527 | $at_traceon; } |
| 10528 | |
| 10529 | |
| 10530 | set +x |
| 10531 | $at_times_p && times >"$at_times_file" |
| 10532 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 10533 | read at_status <"$at_status_file" |
| 10534 | #AT_STOP_50 |
| 10535 | #AT_START_51 |
| 10536 | at_fn_group_banner 51 'chdir.at:5' \ |
| 10537 | "dpkg-divert chdir opts normalize" " " 6 |
| 10538 | at_xfail=no |
| 10539 | ( |
| 10540 | printf "%s\n" "51. $at_setup_line: testing $at_desc ..." |
| 10541 | $at_traceon |
| 10542 | |
| 10543 | |
| 10544 | |
| 10545 | DPKG_ROOT= |
| 10546 | DPKG_ADMINDIR= |
| 10547 | |
| 10548 | { set +x |
| 10549 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --root=/" |
| 10550 | at_fn_check_prepare_trace "chdir.at:5" |
| 10551 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --root=/ |
| 10552 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10553 | at_status=$? at_failed=false |
| 10554 | $at_check_filter |
| 10555 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=$DEFAULT_ADMINDIR |
| 10556 | " | \ |
| 10557 | $at_diff - "$at_stderr" || at_failed=: |
| 10558 | echo stdout:; cat "$at_stdout" |
| 10559 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10560 | $at_failed && at_fn_log_failure |
| 10561 | $at_traceon; } |
| 10562 | |
| 10563 | |
| 10564 | { set +x |
| 10565 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --root=//./..///../././..///" |
| 10566 | at_fn_check_prepare_trace "chdir.at:5" |
| 10567 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --root=//./..///../././../// |
| 10568 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10569 | at_status=$? at_failed=false |
| 10570 | $at_check_filter |
| 10571 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=$DEFAULT_ADMINDIR |
| 10572 | " | \ |
| 10573 | $at_diff - "$at_stderr" || at_failed=: |
| 10574 | echo stdout:; cat "$at_stdout" |
| 10575 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10576 | $at_failed && at_fn_log_failure |
| 10577 | $at_traceon; } |
| 10578 | |
| 10579 | |
| 10580 | set +x |
| 10581 | $at_times_p && times >"$at_times_file" |
| 10582 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 10583 | read at_status <"$at_status_file" |
| 10584 | #AT_STOP_51 |
| 10585 | #AT_START_52 |
| 10586 | at_fn_group_banner 52 'chdir.at:5' \ |
| 10587 | "dpkg-divert chdir opts" " " 6 |
| 10588 | at_xfail=no |
| 10589 | ( |
| 10590 | printf "%s\n" "52. $at_setup_line: testing $at_desc ..." |
| 10591 | $at_traceon |
| 10592 | |
| 10593 | |
| 10594 | |
| 10595 | DPKG_ROOT= |
| 10596 | DPKG_ADMINDIR= |
| 10597 | |
| 10598 | { set +x |
| 10599 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt" |
| 10600 | at_fn_check_prepare_trace "chdir.at:5" |
| 10601 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt |
| 10602 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10603 | at_status=$? at_failed=false |
| 10604 | $at_check_filter |
| 10605 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10606 | " | \ |
| 10607 | $at_diff - "$at_stderr" || at_failed=: |
| 10608 | echo stdout:; cat "$at_stdout" |
| 10609 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10610 | $at_failed && at_fn_log_failure |
| 10611 | $at_traceon; } |
| 10612 | |
| 10613 | { set +x |
| 10614 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt" |
| 10615 | at_fn_check_prepare_trace "chdir.at:5" |
| 10616 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt |
| 10617 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10618 | at_status=$? at_failed=false |
| 10619 | $at_check_filter |
| 10620 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 10621 | " | \ |
| 10622 | $at_diff - "$at_stderr" || at_failed=: |
| 10623 | echo stdout:; cat "$at_stdout" |
| 10624 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10625 | $at_failed && at_fn_log_failure |
| 10626 | $at_traceon; } |
| 10627 | |
| 10628 | { set +x |
| 10629 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt" |
| 10630 | at_fn_check_prepare_trace "chdir.at:5" |
| 10631 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt |
| 10632 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10633 | at_status=$? at_failed=false |
| 10634 | $at_check_filter |
| 10635 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=$DEFAULT_ADMINDIR |
| 10636 | " | \ |
| 10637 | $at_diff - "$at_stderr" || at_failed=: |
| 10638 | echo stdout:; cat "$at_stdout" |
| 10639 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10640 | $at_failed && at_fn_log_failure |
| 10641 | $at_traceon; } |
| 10642 | |
| 10643 | { set +x |
| 10644 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 10645 | at_fn_check_prepare_trace "chdir.at:5" |
| 10646 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt |
| 10647 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10648 | at_status=$? at_failed=false |
| 10649 | $at_check_filter |
| 10650 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 10651 | " | \ |
| 10652 | $at_diff - "$at_stderr" || at_failed=: |
| 10653 | echo stdout:; cat "$at_stdout" |
| 10654 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10655 | $at_failed && at_fn_log_failure |
| 10656 | $at_traceon; } |
| 10657 | |
| 10658 | { set +x |
| 10659 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 10660 | at_fn_check_prepare_trace "chdir.at:5" |
| 10661 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --root=/rootdir_opt |
| 10662 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10663 | at_status=$? at_failed=false |
| 10664 | $at_check_filter |
| 10665 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10666 | " | \ |
| 10667 | $at_diff - "$at_stderr" || at_failed=: |
| 10668 | echo stdout:; cat "$at_stdout" |
| 10669 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10670 | $at_failed && at_fn_log_failure |
| 10671 | $at_traceon; } |
| 10672 | |
| 10673 | { set +x |
| 10674 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 10675 | at_fn_check_prepare_trace "chdir.at:5" |
| 10676 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --instdir=/instdir_opt |
| 10677 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10678 | at_status=$? at_failed=false |
| 10679 | $at_check_filter |
| 10680 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10681 | " | \ |
| 10682 | $at_diff - "$at_stderr" || at_failed=: |
| 10683 | echo stdout:; cat "$at_stdout" |
| 10684 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10685 | $at_failed && at_fn_log_failure |
| 10686 | $at_traceon; } |
| 10687 | |
| 10688 | { set +x |
| 10689 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 10690 | at_fn_check_prepare_trace "chdir.at:5" |
| 10691 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --root=/rootdir_opt |
| 10692 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10693 | at_status=$? at_failed=false |
| 10694 | $at_check_filter |
| 10695 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10696 | " | \ |
| 10697 | $at_diff - "$at_stderr" || at_failed=: |
| 10698 | echo stdout:; cat "$at_stdout" |
| 10699 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10700 | $at_failed && at_fn_log_failure |
| 10701 | $at_traceon; } |
| 10702 | |
| 10703 | { set +x |
| 10704 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 10705 | at_fn_check_prepare_trace "chdir.at:5" |
| 10706 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 10707 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10708 | at_status=$? at_failed=false |
| 10709 | $at_check_filter |
| 10710 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10711 | " | \ |
| 10712 | $at_diff - "$at_stderr" || at_failed=: |
| 10713 | echo stdout:; cat "$at_stdout" |
| 10714 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10715 | $at_failed && at_fn_log_failure |
| 10716 | $at_traceon; } |
| 10717 | |
| 10718 | { set +x |
| 10719 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10720 | at_fn_check_prepare_trace "chdir.at:5" |
| 10721 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 10722 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10723 | at_status=$? at_failed=false |
| 10724 | $at_check_filter |
| 10725 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10726 | " | \ |
| 10727 | $at_diff - "$at_stderr" || at_failed=: |
| 10728 | echo stdout:; cat "$at_stdout" |
| 10729 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10730 | $at_failed && at_fn_log_failure |
| 10731 | $at_traceon; } |
| 10732 | |
| 10733 | { set +x |
| 10734 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10735 | at_fn_check_prepare_trace "chdir.at:5" |
| 10736 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 10737 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10738 | at_status=$? at_failed=false |
| 10739 | $at_check_filter |
| 10740 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10741 | " | \ |
| 10742 | $at_diff - "$at_stderr" || at_failed=: |
| 10743 | echo stdout:; cat "$at_stdout" |
| 10744 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10745 | $at_failed && at_fn_log_failure |
| 10746 | $at_traceon; } |
| 10747 | |
| 10748 | { set +x |
| 10749 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 10750 | at_fn_check_prepare_trace "chdir.at:5" |
| 10751 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 10752 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10753 | at_status=$? at_failed=false |
| 10754 | $at_check_filter |
| 10755 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10756 | " | \ |
| 10757 | $at_diff - "$at_stderr" || at_failed=: |
| 10758 | echo stdout:; cat "$at_stdout" |
| 10759 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10760 | $at_failed && at_fn_log_failure |
| 10761 | $at_traceon; } |
| 10762 | |
| 10763 | |
| 10764 | set +x |
| 10765 | $at_times_p && times >"$at_times_file" |
| 10766 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 10767 | read at_status <"$at_status_file" |
| 10768 | #AT_STOP_52 |
| 10769 | #AT_START_53 |
| 10770 | at_fn_group_banner 53 'chdir.at:5' \ |
| 10771 | "dpkg-divert chdir env" " " 6 |
| 10772 | at_xfail=no |
| 10773 | ( |
| 10774 | printf "%s\n" "53. $at_setup_line: testing $at_desc ..." |
| 10775 | $at_traceon |
| 10776 | |
| 10777 | |
| 10778 | |
| 10779 | DPKG_ROOT= |
| 10780 | DPKG_ADMINDIR= |
| 10781 | |
| 10782 | { set +x |
| 10783 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10784 | DPKG_DEBUG=1 dpkg-divert --version" |
| 10785 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10786 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10787 | DPKG_DEBUG=1 dpkg-divert --version |
| 10788 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10789 | at_status=$? at_failed=false |
| 10790 | $at_check_filter |
| 10791 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_env |
| 10792 | " | \ |
| 10793 | $at_diff - "$at_stderr" || at_failed=: |
| 10794 | echo stdout:; cat "$at_stdout" |
| 10795 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10796 | $at_failed && at_fn_log_failure |
| 10797 | $at_traceon; } |
| 10798 | |
| 10799 | { set +x |
| 10800 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 10801 | DPKG_DEBUG=1 dpkg-divert --version" |
| 10802 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10803 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 10804 | DPKG_DEBUG=1 dpkg-divert --version |
| 10805 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10806 | at_status=$? at_failed=false |
| 10807 | $at_check_filter |
| 10808 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 10809 | " | \ |
| 10810 | $at_diff - "$at_stderr" || at_failed=: |
| 10811 | echo stdout:; cat "$at_stdout" |
| 10812 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10813 | $at_failed && at_fn_log_failure |
| 10814 | $at_traceon; } |
| 10815 | |
| 10816 | { set +x |
| 10817 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 10818 | DPKG_DEBUG=1 dpkg-divert --version" |
| 10819 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10820 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 10821 | DPKG_DEBUG=1 dpkg-divert --version |
| 10822 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10823 | at_status=$? at_failed=false |
| 10824 | $at_check_filter |
| 10825 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_env |
| 10826 | " | \ |
| 10827 | $at_diff - "$at_stderr" || at_failed=: |
| 10828 | echo stdout:; cat "$at_stdout" |
| 10829 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10830 | $at_failed && at_fn_log_failure |
| 10831 | $at_traceon; } |
| 10832 | |
| 10833 | |
| 10834 | set +x |
| 10835 | $at_times_p && times >"$at_times_file" |
| 10836 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 10837 | read at_status <"$at_status_file" |
| 10838 | #AT_STOP_53 |
| 10839 | #AT_START_54 |
| 10840 | at_fn_group_banner 54 'chdir.at:5' \ |
| 10841 | "dpkg-divert chdir env+opt admindir" " " 6 |
| 10842 | at_xfail=no |
| 10843 | ( |
| 10844 | printf "%s\n" "54. $at_setup_line: testing $at_desc ..." |
| 10845 | $at_traceon |
| 10846 | |
| 10847 | |
| 10848 | |
| 10849 | DPKG_ROOT= |
| 10850 | DPKG_ADMINDIR= |
| 10851 | |
| 10852 | { set +x |
| 10853 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10854 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt" |
| 10855 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10856 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10857 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt |
| 10858 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10859 | at_status=$? at_failed=false |
| 10860 | $at_check_filter |
| 10861 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10862 | " | \ |
| 10863 | $at_diff - "$at_stderr" || at_failed=: |
| 10864 | echo stdout:; cat "$at_stdout" |
| 10865 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10866 | $at_failed && at_fn_log_failure |
| 10867 | $at_traceon; } |
| 10868 | |
| 10869 | { set +x |
| 10870 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10871 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt" |
| 10872 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10873 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10874 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt |
| 10875 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10876 | at_status=$? at_failed=false |
| 10877 | $at_check_filter |
| 10878 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 10879 | " | \ |
| 10880 | $at_diff - "$at_stderr" || at_failed=: |
| 10881 | echo stdout:; cat "$at_stdout" |
| 10882 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10883 | $at_failed && at_fn_log_failure |
| 10884 | $at_traceon; } |
| 10885 | |
| 10886 | { set +x |
| 10887 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10888 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt" |
| 10889 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10890 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10891 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt |
| 10892 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10893 | at_status=$? at_failed=false |
| 10894 | $at_check_filter |
| 10895 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_env |
| 10896 | " | \ |
| 10897 | $at_diff - "$at_stderr" || at_failed=: |
| 10898 | echo stdout:; cat "$at_stdout" |
| 10899 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10900 | $at_failed && at_fn_log_failure |
| 10901 | $at_traceon; } |
| 10902 | |
| 10903 | { set +x |
| 10904 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10905 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 10906 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10907 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10908 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt |
| 10909 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10910 | at_status=$? at_failed=false |
| 10911 | $at_check_filter |
| 10912 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 10913 | " | \ |
| 10914 | $at_diff - "$at_stderr" || at_failed=: |
| 10915 | echo stdout:; cat "$at_stdout" |
| 10916 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10917 | $at_failed && at_fn_log_failure |
| 10918 | $at_traceon; } |
| 10919 | |
| 10920 | { set +x |
| 10921 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10922 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 10923 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10924 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10925 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --root=/rootdir_opt |
| 10926 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10927 | at_status=$? at_failed=false |
| 10928 | $at_check_filter |
| 10929 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10930 | " | \ |
| 10931 | $at_diff - "$at_stderr" || at_failed=: |
| 10932 | echo stdout:; cat "$at_stdout" |
| 10933 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10934 | $at_failed && at_fn_log_failure |
| 10935 | $at_traceon; } |
| 10936 | |
| 10937 | { set +x |
| 10938 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10939 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 10940 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10941 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10942 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --instdir=/instdir_opt |
| 10943 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10944 | at_status=$? at_failed=false |
| 10945 | $at_check_filter |
| 10946 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10947 | " | \ |
| 10948 | $at_diff - "$at_stderr" || at_failed=: |
| 10949 | echo stdout:; cat "$at_stdout" |
| 10950 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10951 | $at_failed && at_fn_log_failure |
| 10952 | $at_traceon; } |
| 10953 | |
| 10954 | { set +x |
| 10955 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10956 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 10957 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10958 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10959 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --root=/rootdir_opt |
| 10960 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10961 | at_status=$? at_failed=false |
| 10962 | $at_check_filter |
| 10963 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 10964 | " | \ |
| 10965 | $at_diff - "$at_stderr" || at_failed=: |
| 10966 | echo stdout:; cat "$at_stdout" |
| 10967 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10968 | $at_failed && at_fn_log_failure |
| 10969 | $at_traceon; } |
| 10970 | |
| 10971 | { set +x |
| 10972 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10973 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 10974 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10975 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10976 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 10977 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10978 | at_status=$? at_failed=false |
| 10979 | $at_check_filter |
| 10980 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10981 | " | \ |
| 10982 | $at_diff - "$at_stderr" || at_failed=: |
| 10983 | echo stdout:; cat "$at_stdout" |
| 10984 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 10985 | $at_failed && at_fn_log_failure |
| 10986 | $at_traceon; } |
| 10987 | |
| 10988 | { set +x |
| 10989 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 10990 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 10991 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 10992 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 10993 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 10994 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 10995 | at_status=$? at_failed=false |
| 10996 | $at_check_filter |
| 10997 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 10998 | " | \ |
| 10999 | $at_diff - "$at_stderr" || at_failed=: |
| 11000 | echo stdout:; cat "$at_stdout" |
| 11001 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11002 | $at_failed && at_fn_log_failure |
| 11003 | $at_traceon; } |
| 11004 | |
| 11005 | { set +x |
| 11006 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11007 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11008 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11009 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11010 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 11011 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11012 | at_status=$? at_failed=false |
| 11013 | $at_check_filter |
| 11014 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11015 | " | \ |
| 11016 | $at_diff - "$at_stderr" || at_failed=: |
| 11017 | echo stdout:; cat "$at_stdout" |
| 11018 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11019 | $at_failed && at_fn_log_failure |
| 11020 | $at_traceon; } |
| 11021 | |
| 11022 | { set +x |
| 11023 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11024 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 11025 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11026 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11027 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 11028 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11029 | at_status=$? at_failed=false |
| 11030 | $at_check_filter |
| 11031 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11032 | " | \ |
| 11033 | $at_diff - "$at_stderr" || at_failed=: |
| 11034 | echo stdout:; cat "$at_stdout" |
| 11035 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11036 | $at_failed && at_fn_log_failure |
| 11037 | $at_traceon; } |
| 11038 | |
| 11039 | |
| 11040 | set +x |
| 11041 | $at_times_p && times >"$at_times_file" |
| 11042 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 11043 | read at_status <"$at_status_file" |
| 11044 | #AT_STOP_54 |
| 11045 | #AT_START_55 |
| 11046 | at_fn_group_banner 55 'chdir.at:5' \ |
| 11047 | "dpkg-divert chdir env+opt root" " " 6 |
| 11048 | at_xfail=no |
| 11049 | ( |
| 11050 | printf "%s\n" "55. $at_setup_line: testing $at_desc ..." |
| 11051 | $at_traceon |
| 11052 | |
| 11053 | |
| 11054 | |
| 11055 | DPKG_ROOT= |
| 11056 | DPKG_ADMINDIR= |
| 11057 | |
| 11058 | { set +x |
| 11059 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11060 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt" |
| 11061 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11062 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11063 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt |
| 11064 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11065 | at_status=$? at_failed=false |
| 11066 | $at_check_filter |
| 11067 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11068 | " | \ |
| 11069 | $at_diff - "$at_stderr" || at_failed=: |
| 11070 | echo stdout:; cat "$at_stdout" |
| 11071 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11072 | $at_failed && at_fn_log_failure |
| 11073 | $at_traceon; } |
| 11074 | |
| 11075 | { set +x |
| 11076 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11077 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt" |
| 11078 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11079 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11080 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt |
| 11081 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11082 | at_status=$? at_failed=false |
| 11083 | $at_check_filter |
| 11084 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 11085 | " | \ |
| 11086 | $at_diff - "$at_stderr" || at_failed=: |
| 11087 | echo stdout:; cat "$at_stdout" |
| 11088 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11089 | $at_failed && at_fn_log_failure |
| 11090 | $at_traceon; } |
| 11091 | |
| 11092 | { set +x |
| 11093 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11094 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt" |
| 11095 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11096 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11097 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt |
| 11098 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11099 | at_status=$? at_failed=false |
| 11100 | $at_check_filter |
| 11101 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 11102 | " | \ |
| 11103 | $at_diff - "$at_stderr" || at_failed=: |
| 11104 | echo stdout:; cat "$at_stdout" |
| 11105 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11106 | $at_failed && at_fn_log_failure |
| 11107 | $at_traceon; } |
| 11108 | |
| 11109 | { set +x |
| 11110 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11111 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 11112 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11113 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11114 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt |
| 11115 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11116 | at_status=$? at_failed=false |
| 11117 | $at_check_filter |
| 11118 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 11119 | " | \ |
| 11120 | $at_diff - "$at_stderr" || at_failed=: |
| 11121 | echo stdout:; cat "$at_stdout" |
| 11122 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11123 | $at_failed && at_fn_log_failure |
| 11124 | $at_traceon; } |
| 11125 | |
| 11126 | { set +x |
| 11127 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11128 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 11129 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11130 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11131 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --root=/rootdir_opt |
| 11132 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11133 | at_status=$? at_failed=false |
| 11134 | $at_check_filter |
| 11135 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11136 | " | \ |
| 11137 | $at_diff - "$at_stderr" || at_failed=: |
| 11138 | echo stdout:; cat "$at_stdout" |
| 11139 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11140 | $at_failed && at_fn_log_failure |
| 11141 | $at_traceon; } |
| 11142 | |
| 11143 | { set +x |
| 11144 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11145 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 11146 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11147 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11148 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --instdir=/instdir_opt |
| 11149 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11150 | at_status=$? at_failed=false |
| 11151 | $at_check_filter |
| 11152 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11153 | " | \ |
| 11154 | $at_diff - "$at_stderr" || at_failed=: |
| 11155 | echo stdout:; cat "$at_stdout" |
| 11156 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11157 | $at_failed && at_fn_log_failure |
| 11158 | $at_traceon; } |
| 11159 | |
| 11160 | { set +x |
| 11161 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11162 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 11163 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11164 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11165 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --root=/rootdir_opt |
| 11166 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11167 | at_status=$? at_failed=false |
| 11168 | $at_check_filter |
| 11169 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11170 | " | \ |
| 11171 | $at_diff - "$at_stderr" || at_failed=: |
| 11172 | echo stdout:; cat "$at_stdout" |
| 11173 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11174 | $at_failed && at_fn_log_failure |
| 11175 | $at_traceon; } |
| 11176 | |
| 11177 | { set +x |
| 11178 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11179 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 11180 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11181 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11182 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 11183 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11184 | at_status=$? at_failed=false |
| 11185 | $at_check_filter |
| 11186 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11187 | " | \ |
| 11188 | $at_diff - "$at_stderr" || at_failed=: |
| 11189 | echo stdout:; cat "$at_stdout" |
| 11190 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11191 | $at_failed && at_fn_log_failure |
| 11192 | $at_traceon; } |
| 11193 | |
| 11194 | { set +x |
| 11195 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11196 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11197 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11198 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11199 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 11200 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11201 | at_status=$? at_failed=false |
| 11202 | $at_check_filter |
| 11203 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11204 | " | \ |
| 11205 | $at_diff - "$at_stderr" || at_failed=: |
| 11206 | echo stdout:; cat "$at_stdout" |
| 11207 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11208 | $at_failed && at_fn_log_failure |
| 11209 | $at_traceon; } |
| 11210 | |
| 11211 | { set +x |
| 11212 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11213 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11214 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11215 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11216 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 11217 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11218 | at_status=$? at_failed=false |
| 11219 | $at_check_filter |
| 11220 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11221 | " | \ |
| 11222 | $at_diff - "$at_stderr" || at_failed=: |
| 11223 | echo stdout:; cat "$at_stdout" |
| 11224 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11225 | $at_failed && at_fn_log_failure |
| 11226 | $at_traceon; } |
| 11227 | |
| 11228 | { set +x |
| 11229 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11230 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 11231 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11232 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11233 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 11234 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11235 | at_status=$? at_failed=false |
| 11236 | $at_check_filter |
| 11237 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11238 | " | \ |
| 11239 | $at_diff - "$at_stderr" || at_failed=: |
| 11240 | echo stdout:; cat "$at_stdout" |
| 11241 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11242 | $at_failed && at_fn_log_failure |
| 11243 | $at_traceon; } |
| 11244 | |
| 11245 | |
| 11246 | set +x |
| 11247 | $at_times_p && times >"$at_times_file" |
| 11248 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 11249 | read at_status <"$at_status_file" |
| 11250 | #AT_STOP_55 |
| 11251 | #AT_START_56 |
| 11252 | at_fn_group_banner 56 'chdir.at:5' \ |
| 11253 | "dpkg-divert chdir env+opt root+admindir" " " 6 |
| 11254 | at_xfail=no |
| 11255 | ( |
| 11256 | printf "%s\n" "56. $at_setup_line: testing $at_desc ..." |
| 11257 | $at_traceon |
| 11258 | |
| 11259 | |
| 11260 | |
| 11261 | DPKG_ROOT= |
| 11262 | DPKG_ADMINDIR= |
| 11263 | |
| 11264 | { set +x |
| 11265 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11266 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt" |
| 11267 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11268 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11269 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt |
| 11270 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11271 | at_status=$? at_failed=false |
| 11272 | $at_check_filter |
| 11273 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11274 | " | \ |
| 11275 | $at_diff - "$at_stderr" || at_failed=: |
| 11276 | echo stdout:; cat "$at_stdout" |
| 11277 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11278 | $at_failed && at_fn_log_failure |
| 11279 | $at_traceon; } |
| 11280 | |
| 11281 | { set +x |
| 11282 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11283 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt" |
| 11284 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11285 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11286 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt |
| 11287 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11288 | at_status=$? at_failed=false |
| 11289 | $at_check_filter |
| 11290 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 11291 | " | \ |
| 11292 | $at_diff - "$at_stderr" || at_failed=: |
| 11293 | echo stdout:; cat "$at_stdout" |
| 11294 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11295 | $at_failed && at_fn_log_failure |
| 11296 | $at_traceon; } |
| 11297 | |
| 11298 | { set +x |
| 11299 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11300 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt" |
| 11301 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11302 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11303 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt |
| 11304 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11305 | at_status=$? at_failed=false |
| 11306 | $at_check_filter |
| 11307 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_env |
| 11308 | " | \ |
| 11309 | $at_diff - "$at_stderr" || at_failed=: |
| 11310 | echo stdout:; cat "$at_stdout" |
| 11311 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11312 | $at_failed && at_fn_log_failure |
| 11313 | $at_traceon; } |
| 11314 | |
| 11315 | { set +x |
| 11316 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11317 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 11318 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11319 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11320 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt |
| 11321 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11322 | at_status=$? at_failed=false |
| 11323 | $at_check_filter |
| 11324 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 11325 | " | \ |
| 11326 | $at_diff - "$at_stderr" || at_failed=: |
| 11327 | echo stdout:; cat "$at_stdout" |
| 11328 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11329 | $at_failed && at_fn_log_failure |
| 11330 | $at_traceon; } |
| 11331 | |
| 11332 | { set +x |
| 11333 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11334 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 11335 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11336 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11337 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --root=/rootdir_opt |
| 11338 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11339 | at_status=$? at_failed=false |
| 11340 | $at_check_filter |
| 11341 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11342 | " | \ |
| 11343 | $at_diff - "$at_stderr" || at_failed=: |
| 11344 | echo stdout:; cat "$at_stdout" |
| 11345 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11346 | $at_failed && at_fn_log_failure |
| 11347 | $at_traceon; } |
| 11348 | |
| 11349 | { set +x |
| 11350 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11351 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 11352 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11353 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11354 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --instdir=/instdir_opt |
| 11355 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11356 | at_status=$? at_failed=false |
| 11357 | $at_check_filter |
| 11358 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11359 | " | \ |
| 11360 | $at_diff - "$at_stderr" || at_failed=: |
| 11361 | echo stdout:; cat "$at_stdout" |
| 11362 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11363 | $at_failed && at_fn_log_failure |
| 11364 | $at_traceon; } |
| 11365 | |
| 11366 | { set +x |
| 11367 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11368 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 11369 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11370 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11371 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --root=/rootdir_opt |
| 11372 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11373 | at_status=$? at_failed=false |
| 11374 | $at_check_filter |
| 11375 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11376 | " | \ |
| 11377 | $at_diff - "$at_stderr" || at_failed=: |
| 11378 | echo stdout:; cat "$at_stdout" |
| 11379 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11380 | $at_failed && at_fn_log_failure |
| 11381 | $at_traceon; } |
| 11382 | |
| 11383 | { set +x |
| 11384 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11385 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 11386 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11387 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11388 | DPKG_DEBUG=1 dpkg-divert --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 11389 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11390 | at_status=$? at_failed=false |
| 11391 | $at_check_filter |
| 11392 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11393 | " | \ |
| 11394 | $at_diff - "$at_stderr" || at_failed=: |
| 11395 | echo stdout:; cat "$at_stdout" |
| 11396 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11397 | $at_failed && at_fn_log_failure |
| 11398 | $at_traceon; } |
| 11399 | |
| 11400 | { set +x |
| 11401 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11402 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11403 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11404 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11405 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 11406 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11407 | at_status=$? at_failed=false |
| 11408 | $at_check_filter |
| 11409 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11410 | " | \ |
| 11411 | $at_diff - "$at_stderr" || at_failed=: |
| 11412 | echo stdout:; cat "$at_stdout" |
| 11413 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11414 | $at_failed && at_fn_log_failure |
| 11415 | $at_traceon; } |
| 11416 | |
| 11417 | { set +x |
| 11418 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11419 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11420 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11421 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11422 | DPKG_DEBUG=1 dpkg-divert --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 11423 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11424 | at_status=$? at_failed=false |
| 11425 | $at_check_filter |
| 11426 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11427 | " | \ |
| 11428 | $at_diff - "$at_stderr" || at_failed=: |
| 11429 | echo stdout:; cat "$at_stdout" |
| 11430 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11431 | $at_failed && at_fn_log_failure |
| 11432 | $at_traceon; } |
| 11433 | |
| 11434 | { set +x |
| 11435 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11436 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 11437 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11438 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11439 | DPKG_DEBUG=1 dpkg-divert --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 11440 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11441 | at_status=$? at_failed=false |
| 11442 | $at_check_filter |
| 11443 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11444 | " | \ |
| 11445 | $at_diff - "$at_stderr" || at_failed=: |
| 11446 | echo stdout:; cat "$at_stdout" |
| 11447 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11448 | $at_failed && at_fn_log_failure |
| 11449 | $at_traceon; } |
| 11450 | |
| 11451 | |
| 11452 | set +x |
| 11453 | $at_times_p && times >"$at_times_file" |
| 11454 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 11455 | read at_status <"$at_status_file" |
| 11456 | #AT_STOP_56 |
| 11457 | #AT_START_57 |
| 11458 | at_fn_group_banner 57 'chdir.at:5' \ |
| 11459 | "dpkg-statoverride chdir opts normalize" " " 6 |
| 11460 | at_xfail=no |
| 11461 | ( |
| 11462 | printf "%s\n" "57. $at_setup_line: testing $at_desc ..." |
| 11463 | $at_traceon |
| 11464 | |
| 11465 | |
| 11466 | |
| 11467 | DPKG_ROOT= |
| 11468 | DPKG_ADMINDIR= |
| 11469 | |
| 11470 | { set +x |
| 11471 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --root=/" |
| 11472 | at_fn_check_prepare_trace "chdir.at:5" |
| 11473 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --root=/ |
| 11474 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11475 | at_status=$? at_failed=false |
| 11476 | $at_check_filter |
| 11477 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=$DEFAULT_ADMINDIR |
| 11478 | " | \ |
| 11479 | $at_diff - "$at_stderr" || at_failed=: |
| 11480 | echo stdout:; cat "$at_stdout" |
| 11481 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11482 | $at_failed && at_fn_log_failure |
| 11483 | $at_traceon; } |
| 11484 | |
| 11485 | |
| 11486 | { set +x |
| 11487 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --root=//./..///../././..///" |
| 11488 | at_fn_check_prepare_trace "chdir.at:5" |
| 11489 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --root=//./..///../././../// |
| 11490 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11491 | at_status=$? at_failed=false |
| 11492 | $at_check_filter |
| 11493 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=$DEFAULT_ADMINDIR |
| 11494 | " | \ |
| 11495 | $at_diff - "$at_stderr" || at_failed=: |
| 11496 | echo stdout:; cat "$at_stdout" |
| 11497 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11498 | $at_failed && at_fn_log_failure |
| 11499 | $at_traceon; } |
| 11500 | |
| 11501 | |
| 11502 | set +x |
| 11503 | $at_times_p && times >"$at_times_file" |
| 11504 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 11505 | read at_status <"$at_status_file" |
| 11506 | #AT_STOP_57 |
| 11507 | #AT_START_58 |
| 11508 | at_fn_group_banner 58 'chdir.at:5' \ |
| 11509 | "dpkg-statoverride chdir opts" " " 6 |
| 11510 | at_xfail=no |
| 11511 | ( |
| 11512 | printf "%s\n" "58. $at_setup_line: testing $at_desc ..." |
| 11513 | $at_traceon |
| 11514 | |
| 11515 | |
| 11516 | |
| 11517 | DPKG_ROOT= |
| 11518 | DPKG_ADMINDIR= |
| 11519 | |
| 11520 | { set +x |
| 11521 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt" |
| 11522 | at_fn_check_prepare_trace "chdir.at:5" |
| 11523 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt |
| 11524 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11525 | at_status=$? at_failed=false |
| 11526 | $at_check_filter |
| 11527 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11528 | " | \ |
| 11529 | $at_diff - "$at_stderr" || at_failed=: |
| 11530 | echo stdout:; cat "$at_stdout" |
| 11531 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11532 | $at_failed && at_fn_log_failure |
| 11533 | $at_traceon; } |
| 11534 | |
| 11535 | { set +x |
| 11536 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt" |
| 11537 | at_fn_check_prepare_trace "chdir.at:5" |
| 11538 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt |
| 11539 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11540 | at_status=$? at_failed=false |
| 11541 | $at_check_filter |
| 11542 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 11543 | " | \ |
| 11544 | $at_diff - "$at_stderr" || at_failed=: |
| 11545 | echo stdout:; cat "$at_stdout" |
| 11546 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11547 | $at_failed && at_fn_log_failure |
| 11548 | $at_traceon; } |
| 11549 | |
| 11550 | { set +x |
| 11551 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt" |
| 11552 | at_fn_check_prepare_trace "chdir.at:5" |
| 11553 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt |
| 11554 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11555 | at_status=$? at_failed=false |
| 11556 | $at_check_filter |
| 11557 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=$DEFAULT_ADMINDIR |
| 11558 | " | \ |
| 11559 | $at_diff - "$at_stderr" || at_failed=: |
| 11560 | echo stdout:; cat "$at_stdout" |
| 11561 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11562 | $at_failed && at_fn_log_failure |
| 11563 | $at_traceon; } |
| 11564 | |
| 11565 | { set +x |
| 11566 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 11567 | at_fn_check_prepare_trace "chdir.at:5" |
| 11568 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt |
| 11569 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11570 | at_status=$? at_failed=false |
| 11571 | $at_check_filter |
| 11572 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 11573 | " | \ |
| 11574 | $at_diff - "$at_stderr" || at_failed=: |
| 11575 | echo stdout:; cat "$at_stdout" |
| 11576 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11577 | $at_failed && at_fn_log_failure |
| 11578 | $at_traceon; } |
| 11579 | |
| 11580 | { set +x |
| 11581 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 11582 | at_fn_check_prepare_trace "chdir.at:5" |
| 11583 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --root=/rootdir_opt |
| 11584 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11585 | at_status=$? at_failed=false |
| 11586 | $at_check_filter |
| 11587 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11588 | " | \ |
| 11589 | $at_diff - "$at_stderr" || at_failed=: |
| 11590 | echo stdout:; cat "$at_stdout" |
| 11591 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11592 | $at_failed && at_fn_log_failure |
| 11593 | $at_traceon; } |
| 11594 | |
| 11595 | { set +x |
| 11596 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 11597 | at_fn_check_prepare_trace "chdir.at:5" |
| 11598 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --instdir=/instdir_opt |
| 11599 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11600 | at_status=$? at_failed=false |
| 11601 | $at_check_filter |
| 11602 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11603 | " | \ |
| 11604 | $at_diff - "$at_stderr" || at_failed=: |
| 11605 | echo stdout:; cat "$at_stdout" |
| 11606 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11607 | $at_failed && at_fn_log_failure |
| 11608 | $at_traceon; } |
| 11609 | |
| 11610 | { set +x |
| 11611 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 11612 | at_fn_check_prepare_trace "chdir.at:5" |
| 11613 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --root=/rootdir_opt |
| 11614 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11615 | at_status=$? at_failed=false |
| 11616 | $at_check_filter |
| 11617 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11618 | " | \ |
| 11619 | $at_diff - "$at_stderr" || at_failed=: |
| 11620 | echo stdout:; cat "$at_stdout" |
| 11621 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11622 | $at_failed && at_fn_log_failure |
| 11623 | $at_traceon; } |
| 11624 | |
| 11625 | { set +x |
| 11626 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 11627 | at_fn_check_prepare_trace "chdir.at:5" |
| 11628 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 11629 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11630 | at_status=$? at_failed=false |
| 11631 | $at_check_filter |
| 11632 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11633 | " | \ |
| 11634 | $at_diff - "$at_stderr" || at_failed=: |
| 11635 | echo stdout:; cat "$at_stdout" |
| 11636 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11637 | $at_failed && at_fn_log_failure |
| 11638 | $at_traceon; } |
| 11639 | |
| 11640 | { set +x |
| 11641 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11642 | at_fn_check_prepare_trace "chdir.at:5" |
| 11643 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 11644 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11645 | at_status=$? at_failed=false |
| 11646 | $at_check_filter |
| 11647 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11648 | " | \ |
| 11649 | $at_diff - "$at_stderr" || at_failed=: |
| 11650 | echo stdout:; cat "$at_stdout" |
| 11651 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11652 | $at_failed && at_fn_log_failure |
| 11653 | $at_traceon; } |
| 11654 | |
| 11655 | { set +x |
| 11656 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11657 | at_fn_check_prepare_trace "chdir.at:5" |
| 11658 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 11659 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11660 | at_status=$? at_failed=false |
| 11661 | $at_check_filter |
| 11662 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11663 | " | \ |
| 11664 | $at_diff - "$at_stderr" || at_failed=: |
| 11665 | echo stdout:; cat "$at_stdout" |
| 11666 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11667 | $at_failed && at_fn_log_failure |
| 11668 | $at_traceon; } |
| 11669 | |
| 11670 | { set +x |
| 11671 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 11672 | at_fn_check_prepare_trace "chdir.at:5" |
| 11673 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 11674 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11675 | at_status=$? at_failed=false |
| 11676 | $at_check_filter |
| 11677 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11678 | " | \ |
| 11679 | $at_diff - "$at_stderr" || at_failed=: |
| 11680 | echo stdout:; cat "$at_stdout" |
| 11681 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11682 | $at_failed && at_fn_log_failure |
| 11683 | $at_traceon; } |
| 11684 | |
| 11685 | |
| 11686 | set +x |
| 11687 | $at_times_p && times >"$at_times_file" |
| 11688 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 11689 | read at_status <"$at_status_file" |
| 11690 | #AT_STOP_58 |
| 11691 | #AT_START_59 |
| 11692 | at_fn_group_banner 59 'chdir.at:5' \ |
| 11693 | "dpkg-statoverride chdir env" " " 6 |
| 11694 | at_xfail=no |
| 11695 | ( |
| 11696 | printf "%s\n" "59. $at_setup_line: testing $at_desc ..." |
| 11697 | $at_traceon |
| 11698 | |
| 11699 | |
| 11700 | |
| 11701 | DPKG_ROOT= |
| 11702 | DPKG_ADMINDIR= |
| 11703 | |
| 11704 | { set +x |
| 11705 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11706 | DPKG_DEBUG=1 dpkg-statoverride --version" |
| 11707 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11708 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11709 | DPKG_DEBUG=1 dpkg-statoverride --version |
| 11710 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11711 | at_status=$? at_failed=false |
| 11712 | $at_check_filter |
| 11713 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_env |
| 11714 | " | \ |
| 11715 | $at_diff - "$at_stderr" || at_failed=: |
| 11716 | echo stdout:; cat "$at_stdout" |
| 11717 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11718 | $at_failed && at_fn_log_failure |
| 11719 | $at_traceon; } |
| 11720 | |
| 11721 | { set +x |
| 11722 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11723 | DPKG_DEBUG=1 dpkg-statoverride --version" |
| 11724 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11725 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11726 | DPKG_DEBUG=1 dpkg-statoverride --version |
| 11727 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11728 | at_status=$? at_failed=false |
| 11729 | $at_check_filter |
| 11730 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 11731 | " | \ |
| 11732 | $at_diff - "$at_stderr" || at_failed=: |
| 11733 | echo stdout:; cat "$at_stdout" |
| 11734 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11735 | $at_failed && at_fn_log_failure |
| 11736 | $at_traceon; } |
| 11737 | |
| 11738 | { set +x |
| 11739 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 11740 | DPKG_DEBUG=1 dpkg-statoverride --version" |
| 11741 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11742 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 11743 | DPKG_DEBUG=1 dpkg-statoverride --version |
| 11744 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11745 | at_status=$? at_failed=false |
| 11746 | $at_check_filter |
| 11747 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_env |
| 11748 | " | \ |
| 11749 | $at_diff - "$at_stderr" || at_failed=: |
| 11750 | echo stdout:; cat "$at_stdout" |
| 11751 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11752 | $at_failed && at_fn_log_failure |
| 11753 | $at_traceon; } |
| 11754 | |
| 11755 | |
| 11756 | set +x |
| 11757 | $at_times_p && times >"$at_times_file" |
| 11758 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 11759 | read at_status <"$at_status_file" |
| 11760 | #AT_STOP_59 |
| 11761 | #AT_START_60 |
| 11762 | at_fn_group_banner 60 'chdir.at:5' \ |
| 11763 | "dpkg-statoverride chdir env+opt admindir" " " 6 |
| 11764 | at_xfail=no |
| 11765 | ( |
| 11766 | printf "%s\n" "60. $at_setup_line: testing $at_desc ..." |
| 11767 | $at_traceon |
| 11768 | |
| 11769 | |
| 11770 | |
| 11771 | DPKG_ROOT= |
| 11772 | DPKG_ADMINDIR= |
| 11773 | |
| 11774 | { set +x |
| 11775 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11776 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt" |
| 11777 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11778 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11779 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt |
| 11780 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11781 | at_status=$? at_failed=false |
| 11782 | $at_check_filter |
| 11783 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11784 | " | \ |
| 11785 | $at_diff - "$at_stderr" || at_failed=: |
| 11786 | echo stdout:; cat "$at_stdout" |
| 11787 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11788 | $at_failed && at_fn_log_failure |
| 11789 | $at_traceon; } |
| 11790 | |
| 11791 | { set +x |
| 11792 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11793 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt" |
| 11794 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11795 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11796 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt |
| 11797 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11798 | at_status=$? at_failed=false |
| 11799 | $at_check_filter |
| 11800 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 11801 | " | \ |
| 11802 | $at_diff - "$at_stderr" || at_failed=: |
| 11803 | echo stdout:; cat "$at_stdout" |
| 11804 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11805 | $at_failed && at_fn_log_failure |
| 11806 | $at_traceon; } |
| 11807 | |
| 11808 | { set +x |
| 11809 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11810 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt" |
| 11811 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11812 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11813 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt |
| 11814 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11815 | at_status=$? at_failed=false |
| 11816 | $at_check_filter |
| 11817 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_env |
| 11818 | " | \ |
| 11819 | $at_diff - "$at_stderr" || at_failed=: |
| 11820 | echo stdout:; cat "$at_stdout" |
| 11821 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11822 | $at_failed && at_fn_log_failure |
| 11823 | $at_traceon; } |
| 11824 | |
| 11825 | { set +x |
| 11826 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11827 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 11828 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11829 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11830 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt |
| 11831 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11832 | at_status=$? at_failed=false |
| 11833 | $at_check_filter |
| 11834 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 11835 | " | \ |
| 11836 | $at_diff - "$at_stderr" || at_failed=: |
| 11837 | echo stdout:; cat "$at_stdout" |
| 11838 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11839 | $at_failed && at_fn_log_failure |
| 11840 | $at_traceon; } |
| 11841 | |
| 11842 | { set +x |
| 11843 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11844 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 11845 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11846 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11847 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --root=/rootdir_opt |
| 11848 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11849 | at_status=$? at_failed=false |
| 11850 | $at_check_filter |
| 11851 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11852 | " | \ |
| 11853 | $at_diff - "$at_stderr" || at_failed=: |
| 11854 | echo stdout:; cat "$at_stdout" |
| 11855 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11856 | $at_failed && at_fn_log_failure |
| 11857 | $at_traceon; } |
| 11858 | |
| 11859 | { set +x |
| 11860 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11861 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 11862 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11863 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11864 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --instdir=/instdir_opt |
| 11865 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11866 | at_status=$? at_failed=false |
| 11867 | $at_check_filter |
| 11868 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11869 | " | \ |
| 11870 | $at_diff - "$at_stderr" || at_failed=: |
| 11871 | echo stdout:; cat "$at_stdout" |
| 11872 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11873 | $at_failed && at_fn_log_failure |
| 11874 | $at_traceon; } |
| 11875 | |
| 11876 | { set +x |
| 11877 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11878 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 11879 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11880 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11881 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --root=/rootdir_opt |
| 11882 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11883 | at_status=$? at_failed=false |
| 11884 | $at_check_filter |
| 11885 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11886 | " | \ |
| 11887 | $at_diff - "$at_stderr" || at_failed=: |
| 11888 | echo stdout:; cat "$at_stdout" |
| 11889 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11890 | $at_failed && at_fn_log_failure |
| 11891 | $at_traceon; } |
| 11892 | |
| 11893 | { set +x |
| 11894 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11895 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 11896 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11897 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11898 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 11899 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11900 | at_status=$? at_failed=false |
| 11901 | $at_check_filter |
| 11902 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11903 | " | \ |
| 11904 | $at_diff - "$at_stderr" || at_failed=: |
| 11905 | echo stdout:; cat "$at_stdout" |
| 11906 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11907 | $at_failed && at_fn_log_failure |
| 11908 | $at_traceon; } |
| 11909 | |
| 11910 | { set +x |
| 11911 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11912 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11913 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11914 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11915 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 11916 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11917 | at_status=$? at_failed=false |
| 11918 | $at_check_filter |
| 11919 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11920 | " | \ |
| 11921 | $at_diff - "$at_stderr" || at_failed=: |
| 11922 | echo stdout:; cat "$at_stdout" |
| 11923 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11924 | $at_failed && at_fn_log_failure |
| 11925 | $at_traceon; } |
| 11926 | |
| 11927 | { set +x |
| 11928 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11929 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 11930 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11931 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11932 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 11933 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11934 | at_status=$? at_failed=false |
| 11935 | $at_check_filter |
| 11936 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 11937 | " | \ |
| 11938 | $at_diff - "$at_stderr" || at_failed=: |
| 11939 | echo stdout:; cat "$at_stdout" |
| 11940 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11941 | $at_failed && at_fn_log_failure |
| 11942 | $at_traceon; } |
| 11943 | |
| 11944 | { set +x |
| 11945 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ADMINDIR=/admindir_env \\ |
| 11946 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 11947 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11948 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 11949 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 11950 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11951 | at_status=$? at_failed=false |
| 11952 | $at_check_filter |
| 11953 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11954 | " | \ |
| 11955 | $at_diff - "$at_stderr" || at_failed=: |
| 11956 | echo stdout:; cat "$at_stdout" |
| 11957 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11958 | $at_failed && at_fn_log_failure |
| 11959 | $at_traceon; } |
| 11960 | |
| 11961 | |
| 11962 | set +x |
| 11963 | $at_times_p && times >"$at_times_file" |
| 11964 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 11965 | read at_status <"$at_status_file" |
| 11966 | #AT_STOP_60 |
| 11967 | #AT_START_61 |
| 11968 | at_fn_group_banner 61 'chdir.at:5' \ |
| 11969 | "dpkg-statoverride chdir env+opt root" " " 6 |
| 11970 | at_xfail=no |
| 11971 | ( |
| 11972 | printf "%s\n" "61. $at_setup_line: testing $at_desc ..." |
| 11973 | $at_traceon |
| 11974 | |
| 11975 | |
| 11976 | |
| 11977 | DPKG_ROOT= |
| 11978 | DPKG_ADMINDIR= |
| 11979 | |
| 11980 | { set +x |
| 11981 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11982 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt" |
| 11983 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 11984 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 11985 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt |
| 11986 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 11987 | at_status=$? at_failed=false |
| 11988 | $at_check_filter |
| 11989 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 11990 | " | \ |
| 11991 | $at_diff - "$at_stderr" || at_failed=: |
| 11992 | echo stdout:; cat "$at_stdout" |
| 11993 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 11994 | $at_failed && at_fn_log_failure |
| 11995 | $at_traceon; } |
| 11996 | |
| 11997 | { set +x |
| 11998 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 11999 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt" |
| 12000 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12001 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12002 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt |
| 12003 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12004 | at_status=$? at_failed=false |
| 12005 | $at_check_filter |
| 12006 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 12007 | " | \ |
| 12008 | $at_diff - "$at_stderr" || at_failed=: |
| 12009 | echo stdout:; cat "$at_stdout" |
| 12010 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12011 | $at_failed && at_fn_log_failure |
| 12012 | $at_traceon; } |
| 12013 | |
| 12014 | { set +x |
| 12015 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12016 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt" |
| 12017 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12018 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12019 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt |
| 12020 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12021 | at_status=$? at_failed=false |
| 12022 | $at_check_filter |
| 12023 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 12024 | " | \ |
| 12025 | $at_diff - "$at_stderr" || at_failed=: |
| 12026 | echo stdout:; cat "$at_stdout" |
| 12027 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12028 | $at_failed && at_fn_log_failure |
| 12029 | $at_traceon; } |
| 12030 | |
| 12031 | { set +x |
| 12032 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12033 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 12034 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12035 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12036 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt |
| 12037 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12038 | at_status=$? at_failed=false |
| 12039 | $at_check_filter |
| 12040 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 12041 | " | \ |
| 12042 | $at_diff - "$at_stderr" || at_failed=: |
| 12043 | echo stdout:; cat "$at_stdout" |
| 12044 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12045 | $at_failed && at_fn_log_failure |
| 12046 | $at_traceon; } |
| 12047 | |
| 12048 | { set +x |
| 12049 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12050 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 12051 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12052 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12053 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --root=/rootdir_opt |
| 12054 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12055 | at_status=$? at_failed=false |
| 12056 | $at_check_filter |
| 12057 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12058 | " | \ |
| 12059 | $at_diff - "$at_stderr" || at_failed=: |
| 12060 | echo stdout:; cat "$at_stdout" |
| 12061 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12062 | $at_failed && at_fn_log_failure |
| 12063 | $at_traceon; } |
| 12064 | |
| 12065 | { set +x |
| 12066 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12067 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 12068 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12069 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12070 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --instdir=/instdir_opt |
| 12071 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12072 | at_status=$? at_failed=false |
| 12073 | $at_check_filter |
| 12074 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12075 | " | \ |
| 12076 | $at_diff - "$at_stderr" || at_failed=: |
| 12077 | echo stdout:; cat "$at_stdout" |
| 12078 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12079 | $at_failed && at_fn_log_failure |
| 12080 | $at_traceon; } |
| 12081 | |
| 12082 | { set +x |
| 12083 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12084 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 12085 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12086 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12087 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --root=/rootdir_opt |
| 12088 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12089 | at_status=$? at_failed=false |
| 12090 | $at_check_filter |
| 12091 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12092 | " | \ |
| 12093 | $at_diff - "$at_stderr" || at_failed=: |
| 12094 | echo stdout:; cat "$at_stdout" |
| 12095 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12096 | $at_failed && at_fn_log_failure |
| 12097 | $at_traceon; } |
| 12098 | |
| 12099 | { set +x |
| 12100 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12101 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 12102 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12103 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12104 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 12105 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12106 | at_status=$? at_failed=false |
| 12107 | $at_check_filter |
| 12108 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 12109 | " | \ |
| 12110 | $at_diff - "$at_stderr" || at_failed=: |
| 12111 | echo stdout:; cat "$at_stdout" |
| 12112 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12113 | $at_failed && at_fn_log_failure |
| 12114 | $at_traceon; } |
| 12115 | |
| 12116 | { set +x |
| 12117 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12118 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 12119 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12120 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12121 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 12122 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12123 | at_status=$? at_failed=false |
| 12124 | $at_check_filter |
| 12125 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 12126 | " | \ |
| 12127 | $at_diff - "$at_stderr" || at_failed=: |
| 12128 | echo stdout:; cat "$at_stdout" |
| 12129 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12130 | $at_failed && at_fn_log_failure |
| 12131 | $at_traceon; } |
| 12132 | |
| 12133 | { set +x |
| 12134 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12135 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 12136 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12137 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12138 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 12139 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12140 | at_status=$? at_failed=false |
| 12141 | $at_check_filter |
| 12142 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 12143 | " | \ |
| 12144 | $at_diff - "$at_stderr" || at_failed=: |
| 12145 | echo stdout:; cat "$at_stdout" |
| 12146 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12147 | $at_failed && at_fn_log_failure |
| 12148 | $at_traceon; } |
| 12149 | |
| 12150 | { set +x |
| 12151 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env \\ |
| 12152 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 12153 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12154 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12155 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 12156 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12157 | at_status=$? at_failed=false |
| 12158 | $at_check_filter |
| 12159 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12160 | " | \ |
| 12161 | $at_diff - "$at_stderr" || at_failed=: |
| 12162 | echo stdout:; cat "$at_stdout" |
| 12163 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12164 | $at_failed && at_fn_log_failure |
| 12165 | $at_traceon; } |
| 12166 | |
| 12167 | |
| 12168 | set +x |
| 12169 | $at_times_p && times >"$at_times_file" |
| 12170 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12171 | read at_status <"$at_status_file" |
| 12172 | #AT_STOP_61 |
| 12173 | #AT_START_62 |
| 12174 | at_fn_group_banner 62 'chdir.at:5' \ |
| 12175 | "dpkg-statoverride chdir env+opt root+admindir" " " 6 |
| 12176 | at_xfail=no |
| 12177 | ( |
| 12178 | printf "%s\n" "62. $at_setup_line: testing $at_desc ..." |
| 12179 | $at_traceon |
| 12180 | |
| 12181 | |
| 12182 | |
| 12183 | DPKG_ROOT= |
| 12184 | DPKG_ADMINDIR= |
| 12185 | |
| 12186 | { set +x |
| 12187 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12188 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt" |
| 12189 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12190 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12191 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt |
| 12192 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12193 | at_status=$? at_failed=false |
| 12194 | $at_check_filter |
| 12195 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12196 | " | \ |
| 12197 | $at_diff - "$at_stderr" || at_failed=: |
| 12198 | echo stdout:; cat "$at_stdout" |
| 12199 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12200 | $at_failed && at_fn_log_failure |
| 12201 | $at_traceon; } |
| 12202 | |
| 12203 | { set +x |
| 12204 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12205 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt" |
| 12206 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12207 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12208 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt |
| 12209 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12210 | at_status=$? at_failed=false |
| 12211 | $at_check_filter |
| 12212 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 12213 | " | \ |
| 12214 | $at_diff - "$at_stderr" || at_failed=: |
| 12215 | echo stdout:; cat "$at_stdout" |
| 12216 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12217 | $at_failed && at_fn_log_failure |
| 12218 | $at_traceon; } |
| 12219 | |
| 12220 | { set +x |
| 12221 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12222 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt" |
| 12223 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12224 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12225 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt |
| 12226 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12227 | at_status=$? at_failed=false |
| 12228 | $at_check_filter |
| 12229 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_env |
| 12230 | " | \ |
| 12231 | $at_diff - "$at_stderr" || at_failed=: |
| 12232 | echo stdout:; cat "$at_stdout" |
| 12233 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12234 | $at_failed && at_fn_log_failure |
| 12235 | $at_traceon; } |
| 12236 | |
| 12237 | { set +x |
| 12238 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12239 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 12240 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12241 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12242 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt |
| 12243 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12244 | at_status=$? at_failed=false |
| 12245 | $at_check_filter |
| 12246 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 12247 | " | \ |
| 12248 | $at_diff - "$at_stderr" || at_failed=: |
| 12249 | echo stdout:; cat "$at_stdout" |
| 12250 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12251 | $at_failed && at_fn_log_failure |
| 12252 | $at_traceon; } |
| 12253 | |
| 12254 | { set +x |
| 12255 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12256 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 12257 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12258 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12259 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --root=/rootdir_opt |
| 12260 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12261 | at_status=$? at_failed=false |
| 12262 | $at_check_filter |
| 12263 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12264 | " | \ |
| 12265 | $at_diff - "$at_stderr" || at_failed=: |
| 12266 | echo stdout:; cat "$at_stdout" |
| 12267 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12268 | $at_failed && at_fn_log_failure |
| 12269 | $at_traceon; } |
| 12270 | |
| 12271 | { set +x |
| 12272 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12273 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --instdir=/instdir_opt" |
| 12274 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12275 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12276 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --instdir=/instdir_opt |
| 12277 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12278 | at_status=$? at_failed=false |
| 12279 | $at_check_filter |
| 12280 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12281 | " | \ |
| 12282 | $at_diff - "$at_stderr" || at_failed=: |
| 12283 | echo stdout:; cat "$at_stdout" |
| 12284 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12285 | $at_failed && at_fn_log_failure |
| 12286 | $at_traceon; } |
| 12287 | |
| 12288 | { set +x |
| 12289 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12290 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --root=/rootdir_opt" |
| 12291 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12292 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12293 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --root=/rootdir_opt |
| 12294 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12295 | at_status=$? at_failed=false |
| 12296 | $at_check_filter |
| 12297 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12298 | " | \ |
| 12299 | $at_diff - "$at_stderr" || at_failed=: |
| 12300 | echo stdout:; cat "$at_stdout" |
| 12301 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12302 | $at_failed && at_fn_log_failure |
| 12303 | $at_traceon; } |
| 12304 | |
| 12305 | { set +x |
| 12306 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12307 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --admindir=/admindir_opt" |
| 12308 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12309 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12310 | DPKG_DEBUG=1 dpkg-statoverride --version --instdir=/instdir_opt --admindir=/admindir_opt |
| 12311 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12312 | at_status=$? at_failed=false |
| 12313 | $at_check_filter |
| 12314 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 12315 | " | \ |
| 12316 | $at_diff - "$at_stderr" || at_failed=: |
| 12317 | echo stdout:; cat "$at_stdout" |
| 12318 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12319 | $at_failed && at_fn_log_failure |
| 12320 | $at_traceon; } |
| 12321 | |
| 12322 | { set +x |
| 12323 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12324 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt" |
| 12325 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12326 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12327 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt |
| 12328 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12329 | at_status=$? at_failed=false |
| 12330 | $at_check_filter |
| 12331 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 12332 | " | \ |
| 12333 | $at_diff - "$at_stderr" || at_failed=: |
| 12334 | echo stdout:; cat "$at_stdout" |
| 12335 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12336 | $at_failed && at_fn_log_failure |
| 12337 | $at_traceon; } |
| 12338 | |
| 12339 | { set +x |
| 12340 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12341 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt" |
| 12342 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12343 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12344 | DPKG_DEBUG=1 dpkg-statoverride --version --root=/rootdir_opt --admindir=/admindir_opt --instdir=/instdir_opt |
| 12345 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12346 | at_status=$? at_failed=false |
| 12347 | $at_check_filter |
| 12348 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/instdir_opt admindir=/admindir_opt |
| 12349 | " | \ |
| 12350 | $at_diff - "$at_stderr" || at_failed=: |
| 12351 | echo stdout:; cat "$at_stdout" |
| 12352 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12353 | $at_failed && at_fn_log_failure |
| 12354 | $at_traceon; } |
| 12355 | |
| 12356 | { set +x |
| 12357 | printf "%s\n" "$at_srcdir/chdir.at:5: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12358 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt" |
| 12359 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:5" |
| 12360 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12361 | DPKG_DEBUG=1 dpkg-statoverride --version --admindir=/admindir_opt --instdir=/instdir_opt --root=/rootdir_opt |
| 12362 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12363 | at_status=$? at_failed=false |
| 12364 | $at_check_filter |
| 12365 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12366 | " | \ |
| 12367 | $at_diff - "$at_stderr" || at_failed=: |
| 12368 | echo stdout:; cat "$at_stdout" |
| 12369 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:5" |
| 12370 | $at_failed && at_fn_log_failure |
| 12371 | $at_traceon; } |
| 12372 | |
| 12373 | |
| 12374 | set +x |
| 12375 | $at_times_p && times >"$at_times_file" |
| 12376 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12377 | read at_status <"$at_status_file" |
| 12378 | #AT_STOP_62 |
| 12379 | #AT_START_63 |
| 12380 | at_fn_group_banner 63 'chdir.at:349' \ |
| 12381 | "dpkg-split chdir opts" " " 6 |
| 12382 | at_xfail=no |
| 12383 | ( |
| 12384 | printf "%s\n" "63. $at_setup_line: testing $at_desc ..." |
| 12385 | $at_traceon |
| 12386 | |
| 12387 | |
| 12388 | |
| 12389 | DPKG_ROOT= |
| 12390 | DPKG_ADMINDIR= |
| 12391 | |
| 12392 | { set +x |
| 12393 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt" |
| 12394 | at_fn_check_prepare_trace "chdir.at:349" |
| 12395 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt |
| 12396 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12397 | at_status=$? at_failed=false |
| 12398 | $at_check_filter |
| 12399 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12400 | " | \ |
| 12401 | $at_diff - "$at_stderr" || at_failed=: |
| 12402 | echo stdout:; cat "$at_stdout" |
| 12403 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12404 | $at_failed && at_fn_log_failure |
| 12405 | $at_traceon; } |
| 12406 | |
| 12407 | |
| 12408 | { set +x |
| 12409 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt" |
| 12410 | at_fn_check_prepare_trace "chdir.at:349" |
| 12411 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt |
| 12412 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12413 | at_status=$? at_failed=false |
| 12414 | $at_check_filter |
| 12415 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 12416 | " | \ |
| 12417 | $at_diff - "$at_stderr" || at_failed=: |
| 12418 | echo stdout:; cat "$at_stdout" |
| 12419 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12420 | $at_failed && at_fn_log_failure |
| 12421 | $at_traceon; } |
| 12422 | |
| 12423 | |
| 12424 | { set +x |
| 12425 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 12426 | at_fn_check_prepare_trace "chdir.at:349" |
| 12427 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt --admindir=/admindir_opt |
| 12428 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12429 | at_status=$? at_failed=false |
| 12430 | $at_check_filter |
| 12431 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 12432 | " | \ |
| 12433 | $at_diff - "$at_stderr" || at_failed=: |
| 12434 | echo stdout:; cat "$at_stdout" |
| 12435 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12436 | $at_failed && at_fn_log_failure |
| 12437 | $at_traceon; } |
| 12438 | |
| 12439 | |
| 12440 | { set +x |
| 12441 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 12442 | at_fn_check_prepare_trace "chdir.at:349" |
| 12443 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt --root=/rootdir_opt |
| 12444 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12445 | at_status=$? at_failed=false |
| 12446 | $at_check_filter |
| 12447 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12448 | " | \ |
| 12449 | $at_diff - "$at_stderr" || at_failed=: |
| 12450 | echo stdout:; cat "$at_stdout" |
| 12451 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12452 | $at_failed && at_fn_log_failure |
| 12453 | $at_traceon; } |
| 12454 | |
| 12455 | |
| 12456 | set +x |
| 12457 | $at_times_p && times >"$at_times_file" |
| 12458 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12459 | read at_status <"$at_status_file" |
| 12460 | #AT_STOP_63 |
| 12461 | #AT_START_64 |
| 12462 | at_fn_group_banner 64 'chdir.at:349' \ |
| 12463 | "dpkg-split chdir env" " " 6 |
| 12464 | at_xfail=no |
| 12465 | ( |
| 12466 | printf "%s\n" "64. $at_setup_line: testing $at_desc ..." |
| 12467 | $at_traceon |
| 12468 | |
| 12469 | |
| 12470 | |
| 12471 | DPKG_ROOT= |
| 12472 | DPKG_ADMINDIR= |
| 12473 | |
| 12474 | { set +x |
| 12475 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12476 | DPKG_DEBUG=1 dpkg-split --version" |
| 12477 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12478 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 12479 | DPKG_DEBUG=1 dpkg-split --version |
| 12480 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12481 | at_status=$? at_failed=false |
| 12482 | $at_check_filter |
| 12483 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_env |
| 12484 | " | \ |
| 12485 | $at_diff - "$at_stderr" || at_failed=: |
| 12486 | echo stdout:; cat "$at_stdout" |
| 12487 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12488 | $at_failed && at_fn_log_failure |
| 12489 | $at_traceon; } |
| 12490 | |
| 12491 | |
| 12492 | { set +x |
| 12493 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 12494 | DPKG_DEBUG=1 dpkg-split --version" |
| 12495 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12496 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12497 | DPKG_DEBUG=1 dpkg-split --version |
| 12498 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12499 | at_status=$? at_failed=false |
| 12500 | $at_check_filter |
| 12501 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 12502 | " | \ |
| 12503 | $at_diff - "$at_stderr" || at_failed=: |
| 12504 | echo stdout:; cat "$at_stdout" |
| 12505 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12506 | $at_failed && at_fn_log_failure |
| 12507 | $at_traceon; } |
| 12508 | |
| 12509 | |
| 12510 | { set +x |
| 12511 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12512 | DPKG_DEBUG=1 dpkg-split --version" |
| 12513 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12514 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12515 | DPKG_DEBUG=1 dpkg-split --version |
| 12516 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12517 | at_status=$? at_failed=false |
| 12518 | $at_check_filter |
| 12519 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_env |
| 12520 | " | \ |
| 12521 | $at_diff - "$at_stderr" || at_failed=: |
| 12522 | echo stdout:; cat "$at_stdout" |
| 12523 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12524 | $at_failed && at_fn_log_failure |
| 12525 | $at_traceon; } |
| 12526 | |
| 12527 | |
| 12528 | set +x |
| 12529 | $at_times_p && times >"$at_times_file" |
| 12530 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12531 | read at_status <"$at_status_file" |
| 12532 | #AT_STOP_64 |
| 12533 | #AT_START_65 |
| 12534 | at_fn_group_banner 65 'chdir.at:349' \ |
| 12535 | "dpkg-split chdir env+opt admindir" " " 6 |
| 12536 | at_xfail=no |
| 12537 | ( |
| 12538 | printf "%s\n" "65. $at_setup_line: testing $at_desc ..." |
| 12539 | $at_traceon |
| 12540 | |
| 12541 | |
| 12542 | |
| 12543 | DPKG_ROOT= |
| 12544 | DPKG_ADMINDIR= |
| 12545 | |
| 12546 | { set +x |
| 12547 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12548 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt" |
| 12549 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12550 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 12551 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt |
| 12552 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12553 | at_status=$? at_failed=false |
| 12554 | $at_check_filter |
| 12555 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12556 | " | \ |
| 12557 | $at_diff - "$at_stderr" || at_failed=: |
| 12558 | echo stdout:; cat "$at_stdout" |
| 12559 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12560 | $at_failed && at_fn_log_failure |
| 12561 | $at_traceon; } |
| 12562 | |
| 12563 | { set +x |
| 12564 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12565 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt" |
| 12566 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12567 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 12568 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt |
| 12569 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12570 | at_status=$? at_failed=false |
| 12571 | $at_check_filter |
| 12572 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 12573 | " | \ |
| 12574 | $at_diff - "$at_stderr" || at_failed=: |
| 12575 | echo stdout:; cat "$at_stdout" |
| 12576 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12577 | $at_failed && at_fn_log_failure |
| 12578 | $at_traceon; } |
| 12579 | |
| 12580 | { set +x |
| 12581 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12582 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 12583 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12584 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 12585 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt --admindir=/admindir_opt |
| 12586 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12587 | at_status=$? at_failed=false |
| 12588 | $at_check_filter |
| 12589 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 12590 | " | \ |
| 12591 | $at_diff - "$at_stderr" || at_failed=: |
| 12592 | echo stdout:; cat "$at_stdout" |
| 12593 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12594 | $at_failed && at_fn_log_failure |
| 12595 | $at_traceon; } |
| 12596 | |
| 12597 | { set +x |
| 12598 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12599 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 12600 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12601 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 12602 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt --root=/rootdir_opt |
| 12603 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12604 | at_status=$? at_failed=false |
| 12605 | $at_check_filter |
| 12606 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12607 | " | \ |
| 12608 | $at_diff - "$at_stderr" || at_failed=: |
| 12609 | echo stdout:; cat "$at_stdout" |
| 12610 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12611 | $at_failed && at_fn_log_failure |
| 12612 | $at_traceon; } |
| 12613 | |
| 12614 | |
| 12615 | set +x |
| 12616 | $at_times_p && times >"$at_times_file" |
| 12617 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12618 | read at_status <"$at_status_file" |
| 12619 | #AT_STOP_65 |
| 12620 | #AT_START_66 |
| 12621 | at_fn_group_banner 66 'chdir.at:349' \ |
| 12622 | "dpkg-split chdir env+opt root" " " 6 |
| 12623 | at_xfail=no |
| 12624 | ( |
| 12625 | printf "%s\n" "66. $at_setup_line: testing $at_desc ..." |
| 12626 | $at_traceon |
| 12627 | |
| 12628 | |
| 12629 | |
| 12630 | DPKG_ROOT= |
| 12631 | DPKG_ADMINDIR= |
| 12632 | |
| 12633 | { set +x |
| 12634 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 12635 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt" |
| 12636 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12637 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12638 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt |
| 12639 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12640 | at_status=$? at_failed=false |
| 12641 | $at_check_filter |
| 12642 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12643 | " | \ |
| 12644 | $at_diff - "$at_stderr" || at_failed=: |
| 12645 | echo stdout:; cat "$at_stdout" |
| 12646 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12647 | $at_failed && at_fn_log_failure |
| 12648 | $at_traceon; } |
| 12649 | |
| 12650 | { set +x |
| 12651 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 12652 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt" |
| 12653 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12654 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12655 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt |
| 12656 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12657 | at_status=$? at_failed=false |
| 12658 | $at_check_filter |
| 12659 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 12660 | " | \ |
| 12661 | $at_diff - "$at_stderr" || at_failed=: |
| 12662 | echo stdout:; cat "$at_stdout" |
| 12663 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12664 | $at_failed && at_fn_log_failure |
| 12665 | $at_traceon; } |
| 12666 | |
| 12667 | { set +x |
| 12668 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 12669 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 12670 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12671 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12672 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt --admindir=/admindir_opt |
| 12673 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12674 | at_status=$? at_failed=false |
| 12675 | $at_check_filter |
| 12676 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 12677 | " | \ |
| 12678 | $at_diff - "$at_stderr" || at_failed=: |
| 12679 | echo stdout:; cat "$at_stdout" |
| 12680 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12681 | $at_failed && at_fn_log_failure |
| 12682 | $at_traceon; } |
| 12683 | |
| 12684 | { set +x |
| 12685 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 12686 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 12687 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12688 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12689 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt --root=/rootdir_opt |
| 12690 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12691 | at_status=$? at_failed=false |
| 12692 | $at_check_filter |
| 12693 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12694 | " | \ |
| 12695 | $at_diff - "$at_stderr" || at_failed=: |
| 12696 | echo stdout:; cat "$at_stdout" |
| 12697 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12698 | $at_failed && at_fn_log_failure |
| 12699 | $at_traceon; } |
| 12700 | |
| 12701 | |
| 12702 | set +x |
| 12703 | $at_times_p && times >"$at_times_file" |
| 12704 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12705 | read at_status <"$at_status_file" |
| 12706 | #AT_STOP_66 |
| 12707 | #AT_START_67 |
| 12708 | at_fn_group_banner 67 'chdir.at:349' \ |
| 12709 | "dpkg-split chdir env+opt root+admindir" " " 6 |
| 12710 | at_xfail=no |
| 12711 | ( |
| 12712 | printf "%s\n" "67. $at_setup_line: testing $at_desc ..." |
| 12713 | $at_traceon |
| 12714 | |
| 12715 | |
| 12716 | |
| 12717 | DPKG_ROOT= |
| 12718 | DPKG_ADMINDIR= |
| 12719 | |
| 12720 | { set +x |
| 12721 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12722 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt" |
| 12723 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12724 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12725 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt |
| 12726 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12727 | at_status=$? at_failed=false |
| 12728 | $at_check_filter |
| 12729 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12730 | " | \ |
| 12731 | $at_diff - "$at_stderr" || at_failed=: |
| 12732 | echo stdout:; cat "$at_stdout" |
| 12733 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12734 | $at_failed && at_fn_log_failure |
| 12735 | $at_traceon; } |
| 12736 | |
| 12737 | { set +x |
| 12738 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12739 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt" |
| 12740 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12741 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12742 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt |
| 12743 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12744 | at_status=$? at_failed=false |
| 12745 | $at_check_filter |
| 12746 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 12747 | " | \ |
| 12748 | $at_diff - "$at_stderr" || at_failed=: |
| 12749 | echo stdout:; cat "$at_stdout" |
| 12750 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12751 | $at_failed && at_fn_log_failure |
| 12752 | $at_traceon; } |
| 12753 | |
| 12754 | { set +x |
| 12755 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12756 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 12757 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12758 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12759 | DPKG_DEBUG=1 dpkg-split --version --root=/rootdir_opt --admindir=/admindir_opt |
| 12760 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12761 | at_status=$? at_failed=false |
| 12762 | $at_check_filter |
| 12763 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 12764 | " | \ |
| 12765 | $at_diff - "$at_stderr" || at_failed=: |
| 12766 | echo stdout:; cat "$at_stdout" |
| 12767 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12768 | $at_failed && at_fn_log_failure |
| 12769 | $at_traceon; } |
| 12770 | |
| 12771 | { set +x |
| 12772 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12773 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 12774 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12775 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12776 | DPKG_DEBUG=1 dpkg-split --version --admindir=/admindir_opt --root=/rootdir_opt |
| 12777 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12778 | at_status=$? at_failed=false |
| 12779 | $at_check_filter |
| 12780 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12781 | " | \ |
| 12782 | $at_diff - "$at_stderr" || at_failed=: |
| 12783 | echo stdout:; cat "$at_stdout" |
| 12784 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12785 | $at_failed && at_fn_log_failure |
| 12786 | $at_traceon; } |
| 12787 | |
| 12788 | |
| 12789 | set +x |
| 12790 | $at_times_p && times >"$at_times_file" |
| 12791 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12792 | read at_status <"$at_status_file" |
| 12793 | #AT_STOP_67 |
| 12794 | #AT_START_68 |
| 12795 | at_fn_group_banner 68 'chdir.at:349' \ |
| 12796 | "dpkg-query chdir opts" " " 6 |
| 12797 | at_xfail=no |
| 12798 | ( |
| 12799 | printf "%s\n" "68. $at_setup_line: testing $at_desc ..." |
| 12800 | $at_traceon |
| 12801 | |
| 12802 | |
| 12803 | |
| 12804 | DPKG_ROOT= |
| 12805 | DPKG_ADMINDIR= |
| 12806 | |
| 12807 | { set +x |
| 12808 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt" |
| 12809 | at_fn_check_prepare_trace "chdir.at:349" |
| 12810 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt |
| 12811 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12812 | at_status=$? at_failed=false |
| 12813 | $at_check_filter |
| 12814 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12815 | " | \ |
| 12816 | $at_diff - "$at_stderr" || at_failed=: |
| 12817 | echo stdout:; cat "$at_stdout" |
| 12818 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12819 | $at_failed && at_fn_log_failure |
| 12820 | $at_traceon; } |
| 12821 | |
| 12822 | |
| 12823 | { set +x |
| 12824 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt" |
| 12825 | at_fn_check_prepare_trace "chdir.at:349" |
| 12826 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt |
| 12827 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12828 | at_status=$? at_failed=false |
| 12829 | $at_check_filter |
| 12830 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 12831 | " | \ |
| 12832 | $at_diff - "$at_stderr" || at_failed=: |
| 12833 | echo stdout:; cat "$at_stdout" |
| 12834 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12835 | $at_failed && at_fn_log_failure |
| 12836 | $at_traceon; } |
| 12837 | |
| 12838 | |
| 12839 | { set +x |
| 12840 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 12841 | at_fn_check_prepare_trace "chdir.at:349" |
| 12842 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt --admindir=/admindir_opt |
| 12843 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12844 | at_status=$? at_failed=false |
| 12845 | $at_check_filter |
| 12846 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 12847 | " | \ |
| 12848 | $at_diff - "$at_stderr" || at_failed=: |
| 12849 | echo stdout:; cat "$at_stdout" |
| 12850 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12851 | $at_failed && at_fn_log_failure |
| 12852 | $at_traceon; } |
| 12853 | |
| 12854 | |
| 12855 | { set +x |
| 12856 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 12857 | at_fn_check_prepare_trace "chdir.at:349" |
| 12858 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt --root=/rootdir_opt |
| 12859 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12860 | at_status=$? at_failed=false |
| 12861 | $at_check_filter |
| 12862 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12863 | " | \ |
| 12864 | $at_diff - "$at_stderr" || at_failed=: |
| 12865 | echo stdout:; cat "$at_stdout" |
| 12866 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12867 | $at_failed && at_fn_log_failure |
| 12868 | $at_traceon; } |
| 12869 | |
| 12870 | |
| 12871 | set +x |
| 12872 | $at_times_p && times >"$at_times_file" |
| 12873 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12874 | read at_status <"$at_status_file" |
| 12875 | #AT_STOP_68 |
| 12876 | #AT_START_69 |
| 12877 | at_fn_group_banner 69 'chdir.at:349' \ |
| 12878 | "dpkg-query chdir env" " " 6 |
| 12879 | at_xfail=no |
| 12880 | ( |
| 12881 | printf "%s\n" "69. $at_setup_line: testing $at_desc ..." |
| 12882 | $at_traceon |
| 12883 | |
| 12884 | |
| 12885 | |
| 12886 | DPKG_ROOT= |
| 12887 | DPKG_ADMINDIR= |
| 12888 | |
| 12889 | { set +x |
| 12890 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12891 | DPKG_DEBUG=1 dpkg-query --version" |
| 12892 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12893 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 12894 | DPKG_DEBUG=1 dpkg-query --version |
| 12895 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12896 | at_status=$? at_failed=false |
| 12897 | $at_check_filter |
| 12898 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_env |
| 12899 | " | \ |
| 12900 | $at_diff - "$at_stderr" || at_failed=: |
| 12901 | echo stdout:; cat "$at_stdout" |
| 12902 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12903 | $at_failed && at_fn_log_failure |
| 12904 | $at_traceon; } |
| 12905 | |
| 12906 | |
| 12907 | { set +x |
| 12908 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 12909 | DPKG_DEBUG=1 dpkg-query --version" |
| 12910 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12911 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 12912 | DPKG_DEBUG=1 dpkg-query --version |
| 12913 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12914 | at_status=$? at_failed=false |
| 12915 | $at_check_filter |
| 12916 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 12917 | " | \ |
| 12918 | $at_diff - "$at_stderr" || at_failed=: |
| 12919 | echo stdout:; cat "$at_stdout" |
| 12920 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12921 | $at_failed && at_fn_log_failure |
| 12922 | $at_traceon; } |
| 12923 | |
| 12924 | |
| 12925 | { set +x |
| 12926 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 12927 | DPKG_DEBUG=1 dpkg-query --version" |
| 12928 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12929 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 12930 | DPKG_DEBUG=1 dpkg-query --version |
| 12931 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12932 | at_status=$? at_failed=false |
| 12933 | $at_check_filter |
| 12934 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_env |
| 12935 | " | \ |
| 12936 | $at_diff - "$at_stderr" || at_failed=: |
| 12937 | echo stdout:; cat "$at_stdout" |
| 12938 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12939 | $at_failed && at_fn_log_failure |
| 12940 | $at_traceon; } |
| 12941 | |
| 12942 | |
| 12943 | set +x |
| 12944 | $at_times_p && times >"$at_times_file" |
| 12945 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 12946 | read at_status <"$at_status_file" |
| 12947 | #AT_STOP_69 |
| 12948 | #AT_START_70 |
| 12949 | at_fn_group_banner 70 'chdir.at:349' \ |
| 12950 | "dpkg-query chdir env+opt admindir" " " 6 |
| 12951 | at_xfail=no |
| 12952 | ( |
| 12953 | printf "%s\n" "70. $at_setup_line: testing $at_desc ..." |
| 12954 | $at_traceon |
| 12955 | |
| 12956 | |
| 12957 | |
| 12958 | DPKG_ROOT= |
| 12959 | DPKG_ADMINDIR= |
| 12960 | |
| 12961 | { set +x |
| 12962 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12963 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt" |
| 12964 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12965 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 12966 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt |
| 12967 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12968 | at_status=$? at_failed=false |
| 12969 | $at_check_filter |
| 12970 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 12971 | " | \ |
| 12972 | $at_diff - "$at_stderr" || at_failed=: |
| 12973 | echo stdout:; cat "$at_stdout" |
| 12974 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12975 | $at_failed && at_fn_log_failure |
| 12976 | $at_traceon; } |
| 12977 | |
| 12978 | { set +x |
| 12979 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12980 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt" |
| 12981 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12982 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 12983 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt |
| 12984 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 12985 | at_status=$? at_failed=false |
| 12986 | $at_check_filter |
| 12987 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 12988 | " | \ |
| 12989 | $at_diff - "$at_stderr" || at_failed=: |
| 12990 | echo stdout:; cat "$at_stdout" |
| 12991 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 12992 | $at_failed && at_fn_log_failure |
| 12993 | $at_traceon; } |
| 12994 | |
| 12995 | { set +x |
| 12996 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 12997 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 12998 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 12999 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 13000 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt --admindir=/admindir_opt |
| 13001 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13002 | at_status=$? at_failed=false |
| 13003 | $at_check_filter |
| 13004 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 13005 | " | \ |
| 13006 | $at_diff - "$at_stderr" || at_failed=: |
| 13007 | echo stdout:; cat "$at_stdout" |
| 13008 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13009 | $at_failed && at_fn_log_failure |
| 13010 | $at_traceon; } |
| 13011 | |
| 13012 | { set +x |
| 13013 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 13014 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 13015 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13016 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 13017 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt --root=/rootdir_opt |
| 13018 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13019 | at_status=$? at_failed=false |
| 13020 | $at_check_filter |
| 13021 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13022 | " | \ |
| 13023 | $at_diff - "$at_stderr" || at_failed=: |
| 13024 | echo stdout:; cat "$at_stdout" |
| 13025 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13026 | $at_failed && at_fn_log_failure |
| 13027 | $at_traceon; } |
| 13028 | |
| 13029 | |
| 13030 | set +x |
| 13031 | $at_times_p && times >"$at_times_file" |
| 13032 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13033 | read at_status <"$at_status_file" |
| 13034 | #AT_STOP_70 |
| 13035 | #AT_START_71 |
| 13036 | at_fn_group_banner 71 'chdir.at:349' \ |
| 13037 | "dpkg-query chdir env+opt root" " " 6 |
| 13038 | at_xfail=no |
| 13039 | ( |
| 13040 | printf "%s\n" "71. $at_setup_line: testing $at_desc ..." |
| 13041 | $at_traceon |
| 13042 | |
| 13043 | |
| 13044 | |
| 13045 | DPKG_ROOT= |
| 13046 | DPKG_ADMINDIR= |
| 13047 | |
| 13048 | { set +x |
| 13049 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13050 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt" |
| 13051 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13052 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13053 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt |
| 13054 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13055 | at_status=$? at_failed=false |
| 13056 | $at_check_filter |
| 13057 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13058 | " | \ |
| 13059 | $at_diff - "$at_stderr" || at_failed=: |
| 13060 | echo stdout:; cat "$at_stdout" |
| 13061 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13062 | $at_failed && at_fn_log_failure |
| 13063 | $at_traceon; } |
| 13064 | |
| 13065 | { set +x |
| 13066 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13067 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt" |
| 13068 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13069 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13070 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt |
| 13071 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13072 | at_status=$? at_failed=false |
| 13073 | $at_check_filter |
| 13074 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 13075 | " | \ |
| 13076 | $at_diff - "$at_stderr" || at_failed=: |
| 13077 | echo stdout:; cat "$at_stdout" |
| 13078 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13079 | $at_failed && at_fn_log_failure |
| 13080 | $at_traceon; } |
| 13081 | |
| 13082 | { set +x |
| 13083 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13084 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 13085 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13086 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13087 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt --admindir=/admindir_opt |
| 13088 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13089 | at_status=$? at_failed=false |
| 13090 | $at_check_filter |
| 13091 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 13092 | " | \ |
| 13093 | $at_diff - "$at_stderr" || at_failed=: |
| 13094 | echo stdout:; cat "$at_stdout" |
| 13095 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13096 | $at_failed && at_fn_log_failure |
| 13097 | $at_traceon; } |
| 13098 | |
| 13099 | { set +x |
| 13100 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13101 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 13102 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13103 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13104 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt --root=/rootdir_opt |
| 13105 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13106 | at_status=$? at_failed=false |
| 13107 | $at_check_filter |
| 13108 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13109 | " | \ |
| 13110 | $at_diff - "$at_stderr" || at_failed=: |
| 13111 | echo stdout:; cat "$at_stdout" |
| 13112 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13113 | $at_failed && at_fn_log_failure |
| 13114 | $at_traceon; } |
| 13115 | |
| 13116 | |
| 13117 | set +x |
| 13118 | $at_times_p && times >"$at_times_file" |
| 13119 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13120 | read at_status <"$at_status_file" |
| 13121 | #AT_STOP_71 |
| 13122 | #AT_START_72 |
| 13123 | at_fn_group_banner 72 'chdir.at:349' \ |
| 13124 | "dpkg-query chdir env+opt root+admindir" " " 6 |
| 13125 | at_xfail=no |
| 13126 | ( |
| 13127 | printf "%s\n" "72. $at_setup_line: testing $at_desc ..." |
| 13128 | $at_traceon |
| 13129 | |
| 13130 | |
| 13131 | |
| 13132 | DPKG_ROOT= |
| 13133 | DPKG_ADMINDIR= |
| 13134 | |
| 13135 | { set +x |
| 13136 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13137 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt" |
| 13138 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13139 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13140 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt |
| 13141 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13142 | at_status=$? at_failed=false |
| 13143 | $at_check_filter |
| 13144 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13145 | " | \ |
| 13146 | $at_diff - "$at_stderr" || at_failed=: |
| 13147 | echo stdout:; cat "$at_stdout" |
| 13148 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13149 | $at_failed && at_fn_log_failure |
| 13150 | $at_traceon; } |
| 13151 | |
| 13152 | { set +x |
| 13153 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13154 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt" |
| 13155 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13156 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13157 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt |
| 13158 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13159 | at_status=$? at_failed=false |
| 13160 | $at_check_filter |
| 13161 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 13162 | " | \ |
| 13163 | $at_diff - "$at_stderr" || at_failed=: |
| 13164 | echo stdout:; cat "$at_stdout" |
| 13165 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13166 | $at_failed && at_fn_log_failure |
| 13167 | $at_traceon; } |
| 13168 | |
| 13169 | { set +x |
| 13170 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13171 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 13172 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13173 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13174 | DPKG_DEBUG=1 dpkg-query --version --root=/rootdir_opt --admindir=/admindir_opt |
| 13175 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13176 | at_status=$? at_failed=false |
| 13177 | $at_check_filter |
| 13178 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 13179 | " | \ |
| 13180 | $at_diff - "$at_stderr" || at_failed=: |
| 13181 | echo stdout:; cat "$at_stdout" |
| 13182 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13183 | $at_failed && at_fn_log_failure |
| 13184 | $at_traceon; } |
| 13185 | |
| 13186 | { set +x |
| 13187 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13188 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 13189 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13190 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13191 | DPKG_DEBUG=1 dpkg-query --version --admindir=/admindir_opt --root=/rootdir_opt |
| 13192 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13193 | at_status=$? at_failed=false |
| 13194 | $at_check_filter |
| 13195 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13196 | " | \ |
| 13197 | $at_diff - "$at_stderr" || at_failed=: |
| 13198 | echo stdout:; cat "$at_stdout" |
| 13199 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13200 | $at_failed && at_fn_log_failure |
| 13201 | $at_traceon; } |
| 13202 | |
| 13203 | |
| 13204 | set +x |
| 13205 | $at_times_p && times >"$at_times_file" |
| 13206 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13207 | read at_status <"$at_status_file" |
| 13208 | #AT_STOP_72 |
| 13209 | #AT_START_73 |
| 13210 | at_fn_group_banner 73 'chdir.at:349' \ |
| 13211 | "dpkg-trigger chdir opts" " " 6 |
| 13212 | at_xfail=no |
| 13213 | ( |
| 13214 | printf "%s\n" "73. $at_setup_line: testing $at_desc ..." |
| 13215 | $at_traceon |
| 13216 | |
| 13217 | |
| 13218 | |
| 13219 | DPKG_ROOT= |
| 13220 | DPKG_ADMINDIR= |
| 13221 | |
| 13222 | { set +x |
| 13223 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt" |
| 13224 | at_fn_check_prepare_trace "chdir.at:349" |
| 13225 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt |
| 13226 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13227 | at_status=$? at_failed=false |
| 13228 | $at_check_filter |
| 13229 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13230 | " | \ |
| 13231 | $at_diff - "$at_stderr" || at_failed=: |
| 13232 | echo stdout:; cat "$at_stdout" |
| 13233 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13234 | $at_failed && at_fn_log_failure |
| 13235 | $at_traceon; } |
| 13236 | |
| 13237 | |
| 13238 | { set +x |
| 13239 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt" |
| 13240 | at_fn_check_prepare_trace "chdir.at:349" |
| 13241 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt |
| 13242 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13243 | at_status=$? at_failed=false |
| 13244 | $at_check_filter |
| 13245 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 13246 | " | \ |
| 13247 | $at_diff - "$at_stderr" || at_failed=: |
| 13248 | echo stdout:; cat "$at_stdout" |
| 13249 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13250 | $at_failed && at_fn_log_failure |
| 13251 | $at_traceon; } |
| 13252 | |
| 13253 | |
| 13254 | { set +x |
| 13255 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 13256 | at_fn_check_prepare_trace "chdir.at:349" |
| 13257 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt --admindir=/admindir_opt |
| 13258 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13259 | at_status=$? at_failed=false |
| 13260 | $at_check_filter |
| 13261 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 13262 | " | \ |
| 13263 | $at_diff - "$at_stderr" || at_failed=: |
| 13264 | echo stdout:; cat "$at_stdout" |
| 13265 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13266 | $at_failed && at_fn_log_failure |
| 13267 | $at_traceon; } |
| 13268 | |
| 13269 | |
| 13270 | { set +x |
| 13271 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 13272 | at_fn_check_prepare_trace "chdir.at:349" |
| 13273 | ( $at_check_trace; DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt --root=/rootdir_opt |
| 13274 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13275 | at_status=$? at_failed=false |
| 13276 | $at_check_filter |
| 13277 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13278 | " | \ |
| 13279 | $at_diff - "$at_stderr" || at_failed=: |
| 13280 | echo stdout:; cat "$at_stdout" |
| 13281 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13282 | $at_failed && at_fn_log_failure |
| 13283 | $at_traceon; } |
| 13284 | |
| 13285 | |
| 13286 | set +x |
| 13287 | $at_times_p && times >"$at_times_file" |
| 13288 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13289 | read at_status <"$at_status_file" |
| 13290 | #AT_STOP_73 |
| 13291 | #AT_START_74 |
| 13292 | at_fn_group_banner 74 'chdir.at:349' \ |
| 13293 | "dpkg-trigger chdir env" " " 6 |
| 13294 | at_xfail=no |
| 13295 | ( |
| 13296 | printf "%s\n" "74. $at_setup_line: testing $at_desc ..." |
| 13297 | $at_traceon |
| 13298 | |
| 13299 | |
| 13300 | |
| 13301 | DPKG_ROOT= |
| 13302 | DPKG_ADMINDIR= |
| 13303 | |
| 13304 | { set +x |
| 13305 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 13306 | DPKG_DEBUG=1 dpkg-trigger --version" |
| 13307 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13308 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 13309 | DPKG_DEBUG=1 dpkg-trigger --version |
| 13310 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13311 | at_status=$? at_failed=false |
| 13312 | $at_check_filter |
| 13313 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_env |
| 13314 | " | \ |
| 13315 | $at_diff - "$at_stderr" || at_failed=: |
| 13316 | echo stdout:; cat "$at_stdout" |
| 13317 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13318 | $at_failed && at_fn_log_failure |
| 13319 | $at_traceon; } |
| 13320 | |
| 13321 | |
| 13322 | { set +x |
| 13323 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13324 | DPKG_DEBUG=1 dpkg-trigger --version" |
| 13325 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13326 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13327 | DPKG_DEBUG=1 dpkg-trigger --version |
| 13328 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13329 | at_status=$? at_failed=false |
| 13330 | $at_check_filter |
| 13331 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/rootdir_env$DEFAULT_ADMINDIR |
| 13332 | " | \ |
| 13333 | $at_diff - "$at_stderr" || at_failed=: |
| 13334 | echo stdout:; cat "$at_stdout" |
| 13335 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13336 | $at_failed && at_fn_log_failure |
| 13337 | $at_traceon; } |
| 13338 | |
| 13339 | |
| 13340 | { set +x |
| 13341 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13342 | DPKG_DEBUG=1 dpkg-trigger --version" |
| 13343 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13344 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13345 | DPKG_DEBUG=1 dpkg-trigger --version |
| 13346 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13347 | at_status=$? at_failed=false |
| 13348 | $at_check_filter |
| 13349 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_env |
| 13350 | " | \ |
| 13351 | $at_diff - "$at_stderr" || at_failed=: |
| 13352 | echo stdout:; cat "$at_stdout" |
| 13353 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13354 | $at_failed && at_fn_log_failure |
| 13355 | $at_traceon; } |
| 13356 | |
| 13357 | |
| 13358 | set +x |
| 13359 | $at_times_p && times >"$at_times_file" |
| 13360 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13361 | read at_status <"$at_status_file" |
| 13362 | #AT_STOP_74 |
| 13363 | #AT_START_75 |
| 13364 | at_fn_group_banner 75 'chdir.at:349' \ |
| 13365 | "dpkg-trigger chdir env+opt admindir" " " 6 |
| 13366 | at_xfail=no |
| 13367 | ( |
| 13368 | printf "%s\n" "75. $at_setup_line: testing $at_desc ..." |
| 13369 | $at_traceon |
| 13370 | |
| 13371 | |
| 13372 | |
| 13373 | DPKG_ROOT= |
| 13374 | DPKG_ADMINDIR= |
| 13375 | |
| 13376 | { set +x |
| 13377 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 13378 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt" |
| 13379 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13380 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 13381 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt |
| 13382 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13383 | at_status=$? at_failed=false |
| 13384 | $at_check_filter |
| 13385 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13386 | " | \ |
| 13387 | $at_diff - "$at_stderr" || at_failed=: |
| 13388 | echo stdout:; cat "$at_stdout" |
| 13389 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13390 | $at_failed && at_fn_log_failure |
| 13391 | $at_traceon; } |
| 13392 | |
| 13393 | { set +x |
| 13394 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 13395 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt" |
| 13396 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13397 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 13398 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt |
| 13399 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13400 | at_status=$? at_failed=false |
| 13401 | $at_check_filter |
| 13402 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=$DEFAULT_ROOTDIR admindir=/admindir_opt |
| 13403 | " | \ |
| 13404 | $at_diff - "$at_stderr" || at_failed=: |
| 13405 | echo stdout:; cat "$at_stdout" |
| 13406 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13407 | $at_failed && at_fn_log_failure |
| 13408 | $at_traceon; } |
| 13409 | |
| 13410 | { set +x |
| 13411 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 13412 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 13413 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13414 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 13415 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt --admindir=/admindir_opt |
| 13416 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13417 | at_status=$? at_failed=false |
| 13418 | $at_check_filter |
| 13419 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 13420 | " | \ |
| 13421 | $at_diff - "$at_stderr" || at_failed=: |
| 13422 | echo stdout:; cat "$at_stdout" |
| 13423 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13424 | $at_failed && at_fn_log_failure |
| 13425 | $at_traceon; } |
| 13426 | |
| 13427 | { set +x |
| 13428 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ADMINDIR=/admindir_env \\ |
| 13429 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 13430 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13431 | ( $at_check_trace; DPKG_ADMINDIR=/admindir_env \ |
| 13432 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt --root=/rootdir_opt |
| 13433 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13434 | at_status=$? at_failed=false |
| 13435 | $at_check_filter |
| 13436 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13437 | " | \ |
| 13438 | $at_diff - "$at_stderr" || at_failed=: |
| 13439 | echo stdout:; cat "$at_stdout" |
| 13440 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13441 | $at_failed && at_fn_log_failure |
| 13442 | $at_traceon; } |
| 13443 | |
| 13444 | |
| 13445 | set +x |
| 13446 | $at_times_p && times >"$at_times_file" |
| 13447 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13448 | read at_status <"$at_status_file" |
| 13449 | #AT_STOP_75 |
| 13450 | #AT_START_76 |
| 13451 | at_fn_group_banner 76 'chdir.at:349' \ |
| 13452 | "dpkg-trigger chdir env+opt root" " " 6 |
| 13453 | at_xfail=no |
| 13454 | ( |
| 13455 | printf "%s\n" "76. $at_setup_line: testing $at_desc ..." |
| 13456 | $at_traceon |
| 13457 | |
| 13458 | |
| 13459 | |
| 13460 | DPKG_ROOT= |
| 13461 | DPKG_ADMINDIR= |
| 13462 | |
| 13463 | { set +x |
| 13464 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13465 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt" |
| 13466 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13467 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13468 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt |
| 13469 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13470 | at_status=$? at_failed=false |
| 13471 | $at_check_filter |
| 13472 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13473 | " | \ |
| 13474 | $at_diff - "$at_stderr" || at_failed=: |
| 13475 | echo stdout:; cat "$at_stdout" |
| 13476 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13477 | $at_failed && at_fn_log_failure |
| 13478 | $at_traceon; } |
| 13479 | |
| 13480 | { set +x |
| 13481 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13482 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt" |
| 13483 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13484 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13485 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt |
| 13486 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13487 | at_status=$? at_failed=false |
| 13488 | $at_check_filter |
| 13489 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 13490 | " | \ |
| 13491 | $at_diff - "$at_stderr" || at_failed=: |
| 13492 | echo stdout:; cat "$at_stdout" |
| 13493 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13494 | $at_failed && at_fn_log_failure |
| 13495 | $at_traceon; } |
| 13496 | |
| 13497 | { set +x |
| 13498 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13499 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 13500 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13501 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13502 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt --admindir=/admindir_opt |
| 13503 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13504 | at_status=$? at_failed=false |
| 13505 | $at_check_filter |
| 13506 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 13507 | " | \ |
| 13508 | $at_diff - "$at_stderr" || at_failed=: |
| 13509 | echo stdout:; cat "$at_stdout" |
| 13510 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13511 | $at_failed && at_fn_log_failure |
| 13512 | $at_traceon; } |
| 13513 | |
| 13514 | { set +x |
| 13515 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env \\ |
| 13516 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 13517 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13518 | ( $at_check_trace; DPKG_ROOT=/rootdir_env \ |
| 13519 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt --root=/rootdir_opt |
| 13520 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13521 | at_status=$? at_failed=false |
| 13522 | $at_check_filter |
| 13523 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13524 | " | \ |
| 13525 | $at_diff - "$at_stderr" || at_failed=: |
| 13526 | echo stdout:; cat "$at_stdout" |
| 13527 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13528 | $at_failed && at_fn_log_failure |
| 13529 | $at_traceon; } |
| 13530 | |
| 13531 | |
| 13532 | set +x |
| 13533 | $at_times_p && times >"$at_times_file" |
| 13534 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13535 | read at_status <"$at_status_file" |
| 13536 | #AT_STOP_76 |
| 13537 | #AT_START_77 |
| 13538 | at_fn_group_banner 77 'chdir.at:349' \ |
| 13539 | "dpkg-trigger chdir env+opt root+admindir" " " 6 |
| 13540 | at_xfail=no |
| 13541 | ( |
| 13542 | printf "%s\n" "77. $at_setup_line: testing $at_desc ..." |
| 13543 | $at_traceon |
| 13544 | |
| 13545 | |
| 13546 | |
| 13547 | DPKG_ROOT= |
| 13548 | DPKG_ADMINDIR= |
| 13549 | |
| 13550 | { set +x |
| 13551 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13552 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt" |
| 13553 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13554 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13555 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt |
| 13556 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13557 | at_status=$? at_failed=false |
| 13558 | $at_check_filter |
| 13559 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13560 | " | \ |
| 13561 | $at_diff - "$at_stderr" || at_failed=: |
| 13562 | echo stdout:; cat "$at_stdout" |
| 13563 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13564 | $at_failed && at_fn_log_failure |
| 13565 | $at_traceon; } |
| 13566 | |
| 13567 | { set +x |
| 13568 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13569 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt" |
| 13570 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13571 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13572 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt |
| 13573 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13574 | at_status=$? at_failed=false |
| 13575 | $at_check_filter |
| 13576 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_env admindir=/admindir_opt |
| 13577 | " | \ |
| 13578 | $at_diff - "$at_stderr" || at_failed=: |
| 13579 | echo stdout:; cat "$at_stdout" |
| 13580 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13581 | $at_failed && at_fn_log_failure |
| 13582 | $at_traceon; } |
| 13583 | |
| 13584 | { set +x |
| 13585 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13586 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt --admindir=/admindir_opt" |
| 13587 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13588 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13589 | DPKG_DEBUG=1 dpkg-trigger --version --root=/rootdir_opt --admindir=/admindir_opt |
| 13590 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13591 | at_status=$? at_failed=false |
| 13592 | $at_check_filter |
| 13593 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/admindir_opt |
| 13594 | " | \ |
| 13595 | $at_diff - "$at_stderr" || at_failed=: |
| 13596 | echo stdout:; cat "$at_stdout" |
| 13597 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13598 | $at_failed && at_fn_log_failure |
| 13599 | $at_traceon; } |
| 13600 | |
| 13601 | { set +x |
| 13602 | printf "%s\n" "$at_srcdir/chdir.at:349: DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \\ |
| 13603 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt --root=/rootdir_opt" |
| 13604 | at_fn_check_prepare_notrace 'an embedded newline' "chdir.at:349" |
| 13605 | ( $at_check_trace; DPKG_ROOT=/rootdir_env DPKG_ADMINDIR=/admindir_env \ |
| 13606 | DPKG_DEBUG=1 dpkg-trigger --version --admindir=/admindir_opt --root=/rootdir_opt |
| 13607 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13608 | at_status=$? at_failed=false |
| 13609 | $at_check_filter |
| 13610 | echo >>"$at_stderr"; printf "%s\n" "D000001: root=/rootdir_opt admindir=/rootdir_opt$DEFAULT_ADMINDIR |
| 13611 | " | \ |
| 13612 | $at_diff - "$at_stderr" || at_failed=: |
| 13613 | echo stdout:; cat "$at_stdout" |
| 13614 | at_fn_check_status 0 $at_status "$at_srcdir/chdir.at:349" |
| 13615 | $at_failed && at_fn_log_failure |
| 13616 | $at_traceon; } |
| 13617 | |
| 13618 | |
| 13619 | set +x |
| 13620 | $at_times_p && times >"$at_times_file" |
| 13621 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13622 | read at_status <"$at_status_file" |
| 13623 | #AT_STOP_77 |
| 13624 | #AT_START_78 |
| 13625 | at_fn_group_banner 78 'dpkg-arch.at:5' \ |
| 13626 | "dpkg native architecture support" " " 7 |
| 13627 | at_xfail=no |
| 13628 | ( |
| 13629 | printf "%s\n" "78. $at_setup_line: testing $at_desc ..." |
| 13630 | $at_traceon |
| 13631 | |
| 13632 | |
| 13633 | |
| 13634 | |
| 13635 | mkdir -p "dpkgdb" |
| 13636 | cat >dpkgdb/arch <<'_ATEOF' |
| 13637 | arm64 |
| 13638 | _ATEOF |
| 13639 | |
| 13640 | |
| 13641 | |
| 13642 | mkdir -p "dpkgdb" |
| 13643 | cat >dpkgdb/arch-native <<'_ATEOF' |
| 13644 | arm64 |
| 13645 | _ATEOF |
| 13646 | |
| 13647 | |
| 13648 | { set +x |
| 13649 | printf "%s\n" "$at_srcdir/dpkg-arch.at:12: dpkg --admindir=dpkgdb --instdir=dpkginst --print-architecture" |
| 13650 | at_fn_check_prepare_trace "dpkg-arch.at:12" |
| 13651 | ( $at_check_trace; dpkg --admindir=dpkgdb --instdir=dpkginst --print-architecture |
| 13652 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13653 | at_status=$? at_failed=false |
| 13654 | $at_check_filter |
| 13655 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 13656 | echo >>"$at_stdout"; printf "%s\n" "arm64 |
| 13657 | " | \ |
| 13658 | $at_diff - "$at_stdout" || at_failed=: |
| 13659 | at_fn_check_status 0 $at_status "$at_srcdir/dpkg-arch.at:12" |
| 13660 | $at_failed && at_fn_log_failure |
| 13661 | $at_traceon; } |
| 13662 | |
| 13663 | { set +x |
| 13664 | printf "%s\n" "$at_srcdir/dpkg-arch.at:14: dpkg --admindir=dpkgdb --instdir=dpkginst --print-foreign-architectures" |
| 13665 | at_fn_check_prepare_trace "dpkg-arch.at:14" |
| 13666 | ( $at_check_trace; dpkg --admindir=dpkgdb --instdir=dpkginst --print-foreign-architectures |
| 13667 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13668 | at_status=$? at_failed=false |
| 13669 | $at_check_filter |
| 13670 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 13671 | at_fn_diff_devnull "$at_stdout" || at_failed=: |
| 13672 | at_fn_check_status 0 $at_status "$at_srcdir/dpkg-arch.at:14" |
| 13673 | $at_failed && at_fn_log_failure |
| 13674 | $at_traceon; } |
| 13675 | |
| 13676 | |
| 13677 | set +x |
| 13678 | $at_times_p && times >"$at_times_file" |
| 13679 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13680 | read at_status <"$at_status_file" |
| 13681 | #AT_STOP_78 |
| 13682 | #AT_START_79 |
| 13683 | at_fn_group_banner 79 'dpkg-arch.at:18' \ |
| 13684 | "dpkg foreign architecture support" " " 7 |
| 13685 | at_xfail=no |
| 13686 | ( |
| 13687 | printf "%s\n" "79. $at_setup_line: testing $at_desc ..." |
| 13688 | $at_traceon |
| 13689 | |
| 13690 | |
| 13691 | |
| 13692 | |
| 13693 | mkdir -p "dpkgdb" |
| 13694 | cat >dpkgdb/arch <<'_ATEOF' |
| 13695 | arm64 |
| 13696 | _ATEOF |
| 13697 | |
| 13698 | |
| 13699 | |
| 13700 | mkdir -p "dpkgdb" |
| 13701 | cat >dpkgdb/arch-native <<'_ATEOF' |
| 13702 | riscv64 |
| 13703 | _ATEOF |
| 13704 | |
| 13705 | |
| 13706 | { set +x |
| 13707 | printf "%s\n" "$at_srcdir/dpkg-arch.at:25: dpkg --admindir=dpkgdb --instdir=dpkginst --print-architecture" |
| 13708 | at_fn_check_prepare_trace "dpkg-arch.at:25" |
| 13709 | ( $at_check_trace; dpkg --admindir=dpkgdb --instdir=dpkginst --print-architecture |
| 13710 | ) >>"$at_stdout" 2>>"$at_stderr" 5>&- |
| 13711 | at_status=$? at_failed=false |
| 13712 | $at_check_filter |
| 13713 | at_fn_diff_devnull "$at_stderr" || at_failed=: |
| 13714 | echo >>"$at_stdout"; printf "%s\n" "riscv64 |
| 13715 | " | \ |
| 13716 | $at_diff - "$at_stdout" || at_failed=: |
| 13717 | at_fn_check_status 0 $at_status "$at_srcdir/dpkg-arch.at:25" |
| 13718 | $at_failed && at_fn_log_failure |
| 13719 | $at_traceon; } |
| 13720 | |
| 13721 | { set +x |
| 13722 | printf "%s\n" "$at_srcdir/dpkg-arch.at:27: dpkg --admindir=dpkgdb --instdir=dpkginst --print-foreign-architectures" |
| 13723 | at_fn_check_prepare_trace "dpkg-arch.at:27" |
| 13724 | ( $at_check_trace; dpkg --admindir=dpkgdb --instdir=dpkginst --print-foreign-architectures |
| 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"; printf "%s\n" "arm64 |
| 13730 | " | \ |
| 13731 | $at_diff - "$at_stdout" || at_failed=: |
| 13732 | at_fn_check_status 0 $at_status "$at_srcdir/dpkg-arch.at:27" |
| 13733 | $at_failed && at_fn_log_failure |
| 13734 | $at_traceon; } |
| 13735 | |
| 13736 | |
| 13737 | set +x |
| 13738 | $at_times_p && times >"$at_times_file" |
| 13739 | ) 5>&1 2>&1 7>&- | eval $at_tee_pipe |
| 13740 | read at_status <"$at_status_file" |
| 13741 | #AT_STOP_79 |