Imported Upstream version 4.14.1
[platform/upstream/rpm.git] / tests / rpmtests
1 #! /bin/sh
2 # Generated from local.at by GNU Autoconf 2.69.
3 #
4 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
5 #
6 # This test suite is free software; the Free Software Foundation gives
7 # unlimited permission to copy, distribute and modify it.
8 ## -------------------- ##
9 ## M4sh Initialization. ##
10 ## -------------------- ##
11
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15   emulate sh
16   NULLCMD=:
17   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in #(
23   *posix*) :
24     set -o posix ;; #(
25   *) :
26      ;;
27 esac
28 fi
29
30
31 as_nl='
32 '
33 export as_nl
34 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38 # Prefer a ksh shell builtin over an external printf program on Solaris,
39 # but without wasting forks for bash or zsh.
40 if test -z "$BASH_VERSION$ZSH_VERSION" \
41     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
42   as_echo='print -r --'
43   as_echo_n='print -rn --'
44 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='printf %s\n'
46   as_echo_n='printf %s'
47 else
48   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
49     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50     as_echo_n='/usr/ucb/echo -n'
51   else
52     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
53     as_echo_n_body='eval
54       arg=$1;
55       case $arg in #(
56       *"$as_nl"*)
57         expr "X$arg" : "X\\(.*\\)$as_nl";
58         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
59       esac;
60       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
61     '
62     export as_echo_n_body
63     as_echo_n='sh -c $as_echo_n_body as_echo'
64   fi
65   export as_echo_body
66   as_echo='sh -c $as_echo_body as_echo'
67 fi
68
69 # The user is always right.
70 if test "${PATH_SEPARATOR+set}" != set; then
71   PATH_SEPARATOR=:
72   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
73     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
74       PATH_SEPARATOR=';'
75   }
76 fi
77
78
79 # IFS
80 # We need space, tab and new line, in precisely that order.  Quoting is
81 # there to prevent editors from complaining about space-tab.
82 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
83 # splitting by setting IFS to empty value.)
84 IFS=" ""        $as_nl"
85
86 # Find who we are.  Look in the path if we contain no directory separator.
87 as_myself=
88 case $0 in #((
89   *[\\/]* ) as_myself=$0 ;;
90   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91 for as_dir in $PATH
92 do
93   IFS=$as_save_IFS
94   test -z "$as_dir" && as_dir=.
95     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
96   done
97 IFS=$as_save_IFS
98
99      ;;
100 esac
101 # We did not find ourselves, most probably we were run as `sh COMMAND'
102 # in which case we are not to be found in the path.
103 if test "x$as_myself" = x; then
104   as_myself=$0
105 fi
106 if test ! -f "$as_myself"; then
107   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
108   exit 1
109 fi
110
111 # Unset variables that we do not need and which cause bugs (e.g. in
112 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
113 # suppresses any "Segmentation fault" message there.  '((' could
114 # trigger a bug in pdksh 5.2.14.
115 for as_var in BASH_ENV ENV MAIL MAILPATH
116 do eval test x\${$as_var+set} = xset \
117   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
118 done
119 PS1='$ '
120 PS2='> '
121 PS4='+ '
122
123 # NLS nuisances.
124 LC_ALL=C
125 export LC_ALL
126 LANGUAGE=C
127 export LANGUAGE
128
129 # CDPATH.
130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
131
132 if test "x$CONFIG_SHELL" = x; then
133   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
134   emulate sh
135   NULLCMD=:
136   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
137   # is contrary to our usage.  Disable this feature.
138   alias -g '\${1+\"\$@\"}'='\"\$@\"'
139   setopt NO_GLOB_SUBST
140 else
141   case \`(set -o) 2>/dev/null\` in #(
142   *posix*) :
143     set -o posix ;; #(
144   *) :
145      ;;
146 esac
147 fi
148 "
149   as_required="as_fn_return () { (exit \$1); }
150 as_fn_success () { as_fn_return 0; }
151 as_fn_failure () { as_fn_return 1; }
152 as_fn_ret_success () { return 0; }
153 as_fn_ret_failure () { return 1; }
154
155 exitcode=0
156 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
157 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
158 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
159 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
160 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
161
162 else
163   exitcode=1; echo positional parameters were not saved.
164 fi
165 test x\$exitcode = x0 || exit 1
166 test -x / || exit 1"
167   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
168   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
169   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
170   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
171 test \$(( 1 + 1 )) = 2 || exit 1"
172   if (eval "$as_required") 2>/dev/null; then :
173   as_have_required=yes
174 else
175   as_have_required=no
176 fi
177   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
178
179 else
180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181 as_found=false
182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
183 do
184   IFS=$as_save_IFS
185   test -z "$as_dir" && as_dir=.
186   as_found=:
187   case $as_dir in #(
188          /*)
189            for as_base in sh bash ksh sh5; do
190              # Try only shells that exist, to save several forks.
191              as_shell=$as_dir/$as_base
192              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194   CONFIG_SHELL=$as_shell as_have_required=yes
195                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196   break 2
197 fi
198 fi
199            done;;
200        esac
201   as_found=false
202 done
203 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205   CONFIG_SHELL=$SHELL as_have_required=yes
206 fi; }
207 IFS=$as_save_IFS
208
209
210       if test "x$CONFIG_SHELL" != x; then :
211   export CONFIG_SHELL
212              # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 # Preserve -v and -x to the replacement shell.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 case $- in # ((((
220   *v*x* | *x*v* ) as_opts=-vx ;;
221   *v* ) as_opts=-v ;;
222   *x* ) as_opts=-x ;;
223   * ) as_opts= ;;
224 esac
225 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
226 # Admittedly, this is quite paranoid, since all the known shells bail
227 # out after a failed `exec'.
228 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
229 exit 255
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331
332 # as_fn_executable_p FILE
333 # -----------------------
334 # Test if FILE is an executable regular file.
335 as_fn_executable_p ()
336 {
337   test -f "$1" && test -x "$1"
338 } # as_fn_executable_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 as_me=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406          X"$0" : 'X\(//\)$' \| \
407          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 $as_echo X/"$0" |
409     sed '/^.*\/\([^/][^/]*\)\/*$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\/\)$/{
414             s//\1/
415             q
416           }
417           /^X\/\(\/\).*/{
418             s//\1/
419             q
420           }
421           s/.*/./; q'`
422
423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
424   as_dirname=dirname
425 else
426   as_dirname=false
427 fi
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
461   # already done that, so ensure we don't try to do so again and fall
462   # in an infinite loop.  This has already happened in practice.
463   _as_can_reexec=no; export _as_can_reexec
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -pR'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -pR'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -pR'
505   fi
506 else
507   as_ln_s='cp -pR'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 as_test_x='test -x'
520 as_executable_p=as_fn_executable_p
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530
531
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 # How were we run?
535 at_cli_args="$@"
536
537
538 # Not all shells have the 'times' builtin; the subshell is needed to make
539 # sure we discard the 'times: not found' message from the shell.
540 at_times_p=false
541 (times) >/dev/null 2>&1 && at_times_p=:
542
543 # CLI Arguments to pass to the debugging scripts.
544 at_debug_args=
545 # -e sets to true
546 at_errexit_p=false
547 # Shall we be verbose?  ':' means no, empty means yes.
548 at_verbose=:
549 at_quiet=
550 # Running several jobs in parallel, 0 means as many as test groups.
551 at_jobs=1
552 at_traceon=:
553 at_trace_echo=:
554 at_check_filter_trace=:
555
556 # Shall we keep the debug scripts?  Must be `:' when the suite is
557 # run by a debug script, so that the script doesn't remove itself.
558 at_debug_p=false
559 # Display help message?
560 at_help_p=false
561 # Display the version message?
562 at_version_p=false
563 # List test groups?
564 at_list_p=false
565 # --clean
566 at_clean=false
567 # Test groups to run
568 at_groups=
569 # Whether to rerun failed tests.
570 at_recheck=
571 # Whether a write failure occurred
572 at_write_fail=0
573
574 # The directory we run the suite in.  Default to . if no -C option.
575 at_dir=`pwd`
576 # An absolute reference to this testsuite script.
577 case $as_myself in
578   [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
579   * ) at_myself=$at_dir/$as_myself ;;
580 esac
581 # Whether -C is in effect.
582 at_change_dir=false
583
584 # Whether to enable colored test results.
585 at_color=no
586 # List of the tested programs.
587 at_tested='rpm
588 rpmbuild
589 rpmquery'
590 # As many question marks as there are digits in the last test group number.
591 # Used to normalize the test group numbers so that `ls' lists them in
592 # numerical order.
593 at_format='???'
594 # Description of all the test groups.
595 at_help_all="1;rpmgeneral.at:22;rpm --version;basic;
596 2;rpmgeneral.at:31;rpmbuild --version;basic;
597 3;rpmgeneral.at:40;rpm --showrc;basic;
598 4;rpmgeneral.at:50;rpm --querytags;basic;
599 5;rpmio.at:21;SIGPIPE from install scriptlet;signals;
600 6;rpmquery.at:22;rpm --qf -p *.i386.rpm;query;
601 7;rpmquery.at:36;rpm --qf -p *.src.rpm;query;
602 8;rpmquery.at:50;rpm -ql -p *.src.rpm;query;
603 9;rpmquery.at:65;rpmspec -q;query;
604 10;rpmquery.at:77;rpm -ql -p *.i386.rpm;query;
605 11;rpmquery.at:94;rpm -qp <manifest>;query;
606 12;rpmquery.at:115;rpm -q --scripts -p *.i386.rpm;query;
607 13;rpmquery.at:136;rpm -q on installed package;rpmdb install query;
608 14;rpmquery.at:180;integer array query;query;
609 15;rpmquery.at:196;formatted filesbypkg query;query;
610 16;rpmquery.at:212;hex formatted integer array extension query;query;
611 17;rpmquery.at:228;base64 extension query;query;
612 18;rpmquery.at:241;pgpsig extension query;query signature;
613 19;rpmquery.at:255;integer array perms format query;query;
614 20;rpmquery.at:271;string array query;query;
615 21;rpmquery.at:284;empty string array query;query;
616 22;rpmquery.at:297;empty string array extension array format;query;
617 23;rpmquery.at:310;empty string array extension query;query;
618 24;rpmquery.at:323;different sizes arrays query 1;query;
619 25;rpmquery.at:339;different sizes arrays query 2;query;
620 26;rpmquery.at:353;different sizes arrays query 3;query;
621 27;rpmquery.at:367;different sizes arrays query 4;query;
622 28;rpmquery.at:383;non-existent string tag;query;
623 29;rpmquery.at:396;non-existent integer tag query;query;
624 30;rpmquery.at:409;conditional queryformat;query;
625 31;rpmquery.at:422;invalid tag query;query;
626 32;rpmquery.at:436;invalid data for format query;query;
627 33;rpmquery.at:449;invalid format width query;query;
628 34;rpmquery.at:462;xml format;query;
629 35;rpmquery.at:761;query file attribute filtering;query;
630 36;rpmverify.at:7;dependency problems;verify;
631 37;rpmverify.at:32;files with no problems;verify;
632 38;rpmverify.at:48;files with no problems in verbose mode;verify;
633 39;rpmverify.at:67;directory replaced with a directory symlink;verify;
634 40;rpmverify.at:98;directory replaced with an invalid directory symlink;verify;
635 41;rpmverify.at:128;verify from db, with problems present;verify;
636 42;rpmverify.at:150;verify from package, with problems present;verify;
637 43;rpmverify.at:171;verify file attribute filtering;query;
638 44;rpmverify.at:220;verifyscript failure;verify;
639 45;rpmverify.at:237;verifyscript success;verify;
640 46;rpmverify.at:256;shared file timestamp behavior;verify;
641 47;rpmverify.at:285;Upgraded verification with min_writes 1 (files);upgrade verify min_writes;
642 48;rpmverify.at:357;Upgraded verification with min_writes 2 (files);upgrade verify min_writes;
643 49;rpmverify.at:436;Upgraded verification with min_writes 3 (LINKs);upgrade verify min_writes;
644 50;rpmverify.at:503;Upgraded verification with min_writes 4 (LINKs);upgrade verify min_writes;
645 51;rpmsigdig.at:7;rpmkeys -Kv <unsigned> 1;rpmkeys digest;
646 52;rpmsigdig.at:31;rpmkeys -Kv <corrupted unsigned> 1;rpmkeys digest;
647 53;rpmsigdig.at:56;rpmkeys -Kv <corrupted unsigned> 2;rpmkeys digest;
648 54;rpmsigdig.at:81;rpmkeys -Kv <corrupted unsigned> 3;rpmkeys digest;
649 55;rpmsigdig.at:106;rpmkeys -Kv <unsigned> 2;rpmkeys digest;
650 56;rpmsigdig.at:135;rpmkeys --import rsa;rpmkeys import;
651 57;rpmsigdig.at:196;rpmkeys -K <signed> 1;rpmkeys digest signature;
652 58;rpmsigdig.at:216;rpmkeys -Kv <signed> 1;rpmkeys digest signature;
653 59;rpmsigdig.at:258;rpmkeys -Kv <corrupted signed> 1;rpmkeys digest signature;
654 60;rpmsigdig.at:294;rpmkeys -Kv <corrupted signed> 2;rpmkeys digest signature;
655 61;rpmsigdig.at:331;rpmkeys -Kv <corrupted signed> 3;rpmkeys digest signature;
656 62;rpmsigdig.at:368;rpmsign --addsign <unsigned>;rpmsign signature;
657 63;rpmsigdig.at:403;rpmsign --delsign <package>;rpmsign signature;
658 64;rpmsigdig.at:430;rpmsign --addsign <signed>;rpmsign signature;
659 65;rpmdb.at:23;rpm --initdb;rpmdb;
660 66;rpmdb.at:36;rpm -qa;rpmdb query;
661 67;rpmdb.at:49;rpm -q foo;rpmdb query;
662 68;rpmdb.at:69;rpm -q foo-;rpmdb query;
663 69;rpmdb.at:90;rpm -i *.noarch.rpm;rpmdb install;
664 70;rpmdb.at:106;rpm -U --replacepkgs 1;rpmdb install;
665 71;rpmdb.at:128;rpm -U --replacepkgs 2;rpmdb install;
666 72;rpmdb.at:150;rpm --reinstall 1;rpmdb install;
667 73;rpmdb.at:173;rpm -i --relocate=.. *.i386.rpm;rpmdb install;
668 74;rpmdb.at:192;rpm -i --relocate=.. *.ppc64.rpm;rpmdb install;
669 75;rpmdb.at:208;rpmdb --rebuilddb;rpmdb;
670 76;rpmdb.at:233;rpmdb --rebuilddb and verify empty database;rpmdb;
671 77;rpmdb.at:248;rpm -U and verify status;install rpmdb query;
672 78;rpmdb.at:271;rpm -U with _install_lang and verify status;install rpmdb query;
673 79;rpmdb.at:297;rpm -U and verify files on disk;install rpmdb;
674 80;rpmdb.at:318;rpm -e and verify files removed;install rpmdb;
675 81;rpmi.at:21;rpm -U <manifest>;install;
676 82;rpmi.at:36;rpm -U <manifest notfound 1>;install;
677 83;rpmi.at:52;rpm -U <manifest notfound 2>;install;
678 84;rpmi.at:68;rpm -U <notfound>;install;
679 85;rpmi.at:83;rpm -U <unsigned>;install;
680 86;rpmi.at:97;rpm -U <signed nokey>;install;
681 87;rpmi.at:112;rpm -U <signed>;install;
682 88;rpmi.at:127;rpm -U <corrupted signed 1>;install;
683 89;rpmi.at:148;rpm -U <corrupted signed 2>;install;
684 90;rpmi.at:173;rpm -U <corrupted signed 3>;install;
685 91;rpmi.at:197;rpm -U *.src.rpm;install;
686 92;rpmi.at:212;rpm -i *.src.rpm;install;
687 93;rpmi.at:228;rpm -i <nonexistent file>;install;
688 94;rpmi.at:240;rpm -i --nomanifest <garbage text file>;install;
689 95;rpmi.at:257;rpm -i <garbage text file;install;
690 96;rpmi.at:276;rpm -U upgrade to newer;;
691 97;rpmi.at:299;rpm -U upgrade to older;;
692 98;rpmi.at:314;rpm -U --oldpackage downgrade;;
693 99;rpmi.at:330;rpm -U two versions of same package 1;;
694 100;rpmi.at:350;rpm -U two versions of same package 2;;
695 101;rpmi.at:370;rpm -U obsoleted package 1;;
696 102;rpmi.at:399;rpm -U obsoleted package 2;;
697 103;rpmi.at:428;rpm -i two versions of same package;;
698 104;rpmi.at:447;rpm -i identical versions of same package;;
699 105;rpmi.at:465;rpm -U with invalid --relocate;install relocate;
700 106;rpmi.at:482;rpm -U --badreloc with invalid --relocate;install relocate;
701 107;rpmi.at:498;rpm -i with/without --excludedocs;install excludedocs;
702 108;rpmorder.at:3;basic install/erase order 1;install erase order;
703 109;rpmbuild.at:23;rpmbuild -ba *.spec;build;
704 110;rpmbuild.at:41;rpmbuild --rebuild;build;
705 111;rpmbuild.at:54;rpmbuild --short-circuit -bl;build;
706 112;rpmbuild.at:72;rpmbuild -tb <tar with bad spec>;build;
707 113;rpmbuild.at:89;rpmbuild -tb;build;
708 114;rpmbuild.at:104;rpmbuild %attr and %defattr;build;
709 115;rpmbuild.at:144;rpmbuild hardlink;build;
710 116;rpmbuild.at:175;rpmbuild unpackaged files;build;
711 117;rpmbuild.at:195;rpmbuild unpackaged directories;build;
712 118;rpmbuild.at:215;rpmbuild glob;build;
713 119;rpmbuild.at:247;rpmbuild prefixpostfix;build;
714 120;rpmbuild.at:282;Weak and reverse requires;build;
715 121;rpmbuild.at:310;Build requires;build;
716 122;rpmbuild.at:326;Dependency generation;build;
717 123;rpmbuild.at:369;rpmspec query 1;build;
718 124;rpmbuild.at:389;rpmbuild archive sanity;build;
719 125;rpmbuild.at:407;rpmbuild debuginfo minisymtab;build debuginfo;
720 126;rpmbuild.at:444;rpmbuild debuginfo minisymtab strip -g;build debuginfo;
721 127;rpmbuild.at:483;rpmbuild debuginfo dwz;build debuginfo dwz;
722 128;rpmbuild.at:575;rpmbuild debuginfo dwz unique debug names;build debuginfo dwz;
723 129;rpmbuild.at:664;rpmbuild debuginfo dwz gnu_debuglink crc;build debuginfo;
724 130;rpmbuild.at:698;rpmbuild implicit suid binary;build debuginfo dwz suid;
725 131;rpmbuild.at:732;rpmbuild debuginfo gdb index included;build debuginfo gdb;
726 132;rpmbuild.at:761;rpmbuild debuginfo no gdb index included;build debuginfo gdb;
727 133;rpmbuild.at:789;rpmbuild debuginfo unique debug src dir;build debuginfo;
728 134;rpmbuild.at:828;rpmbuild debuginfo no unique debug src dir;build debuginfo;
729 135;rpmbuild.at:864;rpmbuild debugsource;build debuginfo debugsource;
730 136;rpmbuild.at:899;rpmbuild debugsource debugsourcefiles.list path;build debuginfo debugsource;
731 137;rpmbuild.at:927;rpmbuild debuginfo subpackages single;build debuginfo debugsubpackage;
732 138;rpmbuild.at:969;rpmbuild debuginfo subpackages multiple;build debuginfo debugsubpackage;
733 139;rpmbuild.at:1053;rpmbuild debuginfo subpackages multiple unique;build debuginfo debugsubpackage;
734 140;rpmbuild.at:1137;rpmbuild debuginfo subpackages multiple unique debugsource;build debuginfo debugsubpackage debugsource;
735 141;rpmbuild.at:1224;rpmbuild debuginfo subpackages multiple excluded;build debuginfo debugsubpackage debugsource;
736 142;rpmbuild.at:1288;rpmbuild debuginfo subpackages multiple excluded;build debuginfo debugsubpackage debugsource;
737 143;rpmbuildid.at:23;rpmbuild buildid none;build debuginfo buildid;
738 144;rpmbuildid.at:57;rpmbuild buildid alldebug;build debuginfo buildid;
739 145;rpmbuildid.at:149;rpmbuild buildid alldebug unique debug names;build debuginfo buildid;
740 146;rpmbuildid.at:240;rpmbuild buildid separate;build debuginfo buildid;
741 147;rpmbuildid.at:331;rpmbuild buildid separate unique debug names;build debuginfo buildid;
742 148;rpmbuildid.at:421;rpmbuild buildid compat;build debuginfo buildid;
743 149;rpmbuildid.at:525;rpmbuild buildid compat unique debug names;build debuginfo buildid;
744 150;rpmbuildid.at:629;rpmbuild buildid duplicate alldebug;build debuginfo buildid;
745 151;rpmbuildid.at:697;rpmbuild buildid hardlink alldebug;build debuginfo buildid;
746 152;rpmbuildid.at:762;rpmbuild buildid duplicate separate;build debuginfo buildid;
747 153;rpmbuildid.at:827;rpmbuild buildid hardlink separate;build debuginfo buildid;
748 154;rpmbuildid.at:889;rpmbuild buildid duplicate compat;build debuginfo buildid;
749 155;rpmbuildid.at:966;rpmbuild buildid hardlink compat;build debuginfo buildid;
750 156;rpmbuildid.at:1039;rpmbuild buildid recompute;build debuginfo buildid;
751 157;rpmbuildid.at:1153;rpmbuild buildid unique r1 r2;build debuginfo buildid;
752 158;rpmbuildid.at:1201;rpmbuild buildid non-unique r1 r2;build debuginfo buildid;
753 159;rpmbuildid.at:1253;rpmbuild buildid attrs;build debuginfo buildid;
754 160;rpmbuildid.at:1287;rpmbuild buildid config attrs;build debuginfo buildid;
755 161;rpmscript.at:7;basic scripts and arguments;verify;
756 162;rpmscript.at:44;basic trigger scripts and arguments;trigger script;
757 163;rpmscript.at:102;basic file trigger scripts;file trigger script;
758 164;rpmscript.at:205;basic file triggers 2;filetrigger script;
759 165;rpmvercmp.at:13;rpmvercmp(1.0, 1.0) = 0;vercmp;
760 166;rpmvercmp.at:14;rpmvercmp(1.0, 2.0) = -1;vercmp;
761 167;rpmvercmp.at:15;rpmvercmp(2.0, 1.0) = 1;vercmp;
762 168;rpmvercmp.at:17;rpmvercmp(2.0.1, 2.0.1) = 0;vercmp;
763 169;rpmvercmp.at:18;rpmvercmp(2.0, 2.0.1) = -1;vercmp;
764 170;rpmvercmp.at:19;rpmvercmp(2.0.1, 2.0) = 1;vercmp;
765 171;rpmvercmp.at:21;rpmvercmp(2.0.1a, 2.0.1a) = 0;vercmp;
766 172;rpmvercmp.at:22;rpmvercmp(2.0.1a, 2.0.1) = 1;vercmp;
767 173;rpmvercmp.at:23;rpmvercmp(2.0.1, 2.0.1a) = -1;vercmp;
768 174;rpmvercmp.at:25;rpmvercmp(5.5p1, 5.5p1) = 0;vercmp;
769 175;rpmvercmp.at:26;rpmvercmp(5.5p1, 5.5p2) = -1;vercmp;
770 176;rpmvercmp.at:27;rpmvercmp(5.5p2, 5.5p1) = 1;vercmp;
771 177;rpmvercmp.at:29;rpmvercmp(5.5p10, 5.5p10) = 0;vercmp;
772 178;rpmvercmp.at:30;rpmvercmp(5.5p1, 5.5p10) = -1;vercmp;
773 179;rpmvercmp.at:31;rpmvercmp(5.5p10, 5.5p1) = 1;vercmp;
774 180;rpmvercmp.at:33;rpmvercmp(10xyz, 10.1xyz) = -1;vercmp;
775 181;rpmvercmp.at:34;rpmvercmp(10.1xyz, 10xyz) = 1;vercmp;
776 182;rpmvercmp.at:36;rpmvercmp(xyz10, xyz10) = 0;vercmp;
777 183;rpmvercmp.at:37;rpmvercmp(xyz10, xyz10.1) = -1;vercmp;
778 184;rpmvercmp.at:38;rpmvercmp(xyz10.1, xyz10) = 1;vercmp;
779 185;rpmvercmp.at:40;rpmvercmp(xyz.4, xyz.4) = 0;vercmp;
780 186;rpmvercmp.at:41;rpmvercmp(xyz.4, 8) = -1;vercmp;
781 187;rpmvercmp.at:42;rpmvercmp(8, xyz.4) = 1;vercmp;
782 188;rpmvercmp.at:43;rpmvercmp(xyz.4, 2) = -1;vercmp;
783 189;rpmvercmp.at:44;rpmvercmp(2, xyz.4) = 1;vercmp;
784 190;rpmvercmp.at:46;rpmvercmp(5.5p2, 5.6p1) = -1;vercmp;
785 191;rpmvercmp.at:47;rpmvercmp(5.6p1, 5.5p2) = 1;vercmp;
786 192;rpmvercmp.at:49;rpmvercmp(5.6p1, 6.5p1) = -1;vercmp;
787 193;rpmvercmp.at:50;rpmvercmp(6.5p1, 5.6p1) = 1;vercmp;
788 194;rpmvercmp.at:52;rpmvercmp(6.0.rc1, 6.0) = 1;vercmp;
789 195;rpmvercmp.at:53;rpmvercmp(6.0, 6.0.rc1) = -1;vercmp;
790 196;rpmvercmp.at:55;rpmvercmp(10b2, 10a1) = 1;vercmp;
791 197;rpmvercmp.at:56;rpmvercmp(10a2, 10b2) = -1;vercmp;
792 198;rpmvercmp.at:58;rpmvercmp(1.0aa, 1.0aa) = 0;vercmp;
793 199;rpmvercmp.at:59;rpmvercmp(1.0a, 1.0aa) = -1;vercmp;
794 200;rpmvercmp.at:60;rpmvercmp(1.0aa, 1.0a) = 1;vercmp;
795 201;rpmvercmp.at:62;rpmvercmp(10.0001, 10.0001) = 0;vercmp;
796 202;rpmvercmp.at:63;rpmvercmp(10.0001, 10.1) = 0;vercmp;
797 203;rpmvercmp.at:64;rpmvercmp(10.1, 10.0001) = 0;vercmp;
798 204;rpmvercmp.at:65;rpmvercmp(10.0001, 10.0039) = -1;vercmp;
799 205;rpmvercmp.at:66;rpmvercmp(10.0039, 10.0001) = 1;vercmp;
800 206;rpmvercmp.at:68;rpmvercmp(4.999.9, 5.0) = -1;vercmp;
801 207;rpmvercmp.at:69;rpmvercmp(5.0, 4.999.9) = 1;vercmp;
802 208;rpmvercmp.at:71;rpmvercmp(20101121, 20101121) = 0;vercmp;
803 209;rpmvercmp.at:72;rpmvercmp(20101121, 20101122) = -1;vercmp;
804 210;rpmvercmp.at:73;rpmvercmp(20101122, 20101121) = 1;vercmp;
805 211;rpmvercmp.at:75;rpmvercmp(2_0, 2_0) = 0;vercmp;
806 212;rpmvercmp.at:76;rpmvercmp(2.0, 2_0) = 0;vercmp;
807 213;rpmvercmp.at:77;rpmvercmp(2_0, 2.0) = 0;vercmp;
808 214;rpmvercmp.at:80;rpmvercmp(a, a) = 0;vercmp;
809 215;rpmvercmp.at:81;rpmvercmp(a+, a+) = 0;vercmp;
810 216;rpmvercmp.at:82;rpmvercmp(a+, a_) = 0;vercmp;
811 217;rpmvercmp.at:83;rpmvercmp(a_, a+) = 0;vercmp;
812 218;rpmvercmp.at:84;rpmvercmp(+a, +a) = 0;vercmp;
813 219;rpmvercmp.at:85;rpmvercmp(+a, _a) = 0;vercmp;
814 220;rpmvercmp.at:86;rpmvercmp(_a, +a) = 0;vercmp;
815 221;rpmvercmp.at:87;rpmvercmp(+_, +_) = 0;vercmp;
816 222;rpmvercmp.at:88;rpmvercmp(_+, +_) = 0;vercmp;
817 223;rpmvercmp.at:89;rpmvercmp(_+, _+) = 0;vercmp;
818 224;rpmvercmp.at:90;rpmvercmp(+, _) = 0;vercmp;
819 225;rpmvercmp.at:91;rpmvercmp(_, +) = 0;vercmp;
820 226;rpmvercmp.at:94;rpmvercmp(1.0~rc1, 1.0~rc1) = 0;vercmp;
821 227;rpmvercmp.at:95;rpmvercmp(1.0~rc1, 1.0) = -1;vercmp;
822 228;rpmvercmp.at:96;rpmvercmp(1.0, 1.0~rc1) = 1;vercmp;
823 229;rpmvercmp.at:97;rpmvercmp(1.0~rc1, 1.0~rc2) = -1;vercmp;
824 230;rpmvercmp.at:98;rpmvercmp(1.0~rc2, 1.0~rc1) = 1;vercmp;
825 231;rpmvercmp.at:99;rpmvercmp(1.0~rc1~git123, 1.0~rc1~git123) = 0;vercmp;
826 232;rpmvercmp.at:100;rpmvercmp(1.0~rc1~git123, 1.0~rc1) = -1;vercmp;
827 233;rpmvercmp.at:101;rpmvercmp(1.0~rc1, 1.0~rc1~git123) = 1;vercmp;
828 234;rpmdeps.at:7;missing dependency;install;
829 235;rpmdeps.at:30;cross-depending packages;install;
830 236;rpmdeps.at:56;unsatisfied versioned require;install;
831 237;rpmdeps.at:84;satisfied versioned require;install;
832 238;rpmdeps.at:110;versioned conflict in transaction;install;
833 239;rpmdeps.at:137;versioned conflict in database;install;
834 240;rpmdeps.at:163;install and verify self-conflicting package;install;
835 241;rpmdeps.at:185;explicit file conflicts;install;
836 242;rpmdeps.at:224;erase to break dependencies;install;
837 243;rpmdeps.at:252;erase to break colored file dependency;install;
838 244;rpmdeps.at:281;erase on wrong-colored file dependency;install;
839 245;rpmdeps.at:309;unsatisfied WITH require;install, boolean;
840 246;rpmdeps.at:340;unsatisfied WITH require (rpmdb);install, boolean;
841 247;rpmdeps.at:373;satisfied WITH require;install, boolean;
842 248;rpmdeps.at:397;satisfied WITH require (rpmdb);install, boolean;
843 249;rpmdeps.at:425;unsatisfied WITHOUT require;install, boolean;
844 250;rpmdeps.at:451;unsatisfied WITHOUT require (rpmdb);install, boolean;
845 251;rpmdeps.at:479;satisfied WITHOUT require;install, boolean;
846 252;rpmdeps.at:502;satisfied WITHOUT require (rpmdb);install, boolean;
847 253;rpmdeps.at:529;unsatisfied AND require - all missing;install, boolean;
848 254;rpmdeps.at:550;unsatisfied AND require - first is missing;install, boolean;
849 255;rpmdeps.at:575;unsatisfied AND require - second is missing;install, boolean;
850 256;rpmdeps.at:600;satisfied AND require;install, boolean;
851 257;rpmdeps.at:629;unsatisfied OR require - all missing;install, boolean;
852 258;rpmdeps.at:650;satisfied OR require - first is missing;install, boolean;
853 259;rpmdeps.at:673;satisfied OR require - second is missing;install, boolean;
854 260;rpmdeps.at:696;satisfied OR require - both present;install, boolean;
855 261;rpmdeps.at:725;unsatisfied IF require;install, boolean;
856 262;rpmdeps.at:750;satisfied IF require;install, boolean;
857 263;rpmdeps.at:777;unsatisfied IF-ELSE require;install, boolean;
858 264;rpmdeps.at:798;satisfied IF-ELSE require - right clause;install, boolean;
859 265;rpmdeps.at:821;satisfied IF-ELSE require - left clause;install, boolean;
860 266;rpmdeps.at:850;unsatisfied nested AND-OR require;install, boolean;
861 267;rpmdeps.at:875;satisfied nested AND-OR require;install, boolean;
862 268;rpmdeps.at:904;satisfied nested AND-IF require - without right clause;install, boolean;
863 269;rpmdeps.at:927;satisfied nested AND-IF require - with right clause;install, boolean;
864 270;rpmconflict.at:7;package with file conflict;install;
865 271;rpmconflict.at:31;two packages with a conflicting file;install;
866 272;rpmconflict.at:48;package with shareable file;install;
867 273;rpmconflict.at:72;two packages with shareable file;install;
868 274;rpmconflict.at:89;non-conflicting identical basenames;install;
869 275;rpmconflict.at:107;conflicting identical basenames;install;
870 276;rpmconflict.at:127;multilib elf conflict, prefer 64bit 1;install;
871 277;rpmconflict.at:149;multilib elf conflict, prefer 64bit 2;install;
872 278;rpmconflict.at:176;multilib elf conflict, prefer 64bit 3;install;
873 279;rpmconflict.at:203;multilib elf conflict, prefer 32bit 1;install;
874 280;rpmconflict.at:225;multilib elf conflict, prefer 32bit 2;install;
875 281;rpmconflict.at:252;multilib elf conflict, prefer 32bit 3;install;
876 282;rpmconflict.at:279;multilib elf vs non-elf file conflict 1;install;
877 283;rpmconflict.at:300;multilib elf vs non-elf file conflict 2;install;
878 284;rpmconflict.at:325;multilib elf vs non-elf file conflict 3;install;
879 285;rpmconflict.at:351;replacing directory with symlink;install;
880 286;rpmconflict.at:375;replacing symlink with directory;install;
881 287;rpmconflict.at:400;real file with shared ghost;install;
882 288;rpmreplace.at:4;upgrade to/from regular file;install;
883 289;rpmreplace.at:40;upgrade regular file to/from broken link;install;
884 290;rpmreplace.at:76;upgrade regular file to/from file link;install;
885 291;rpmreplace.at:112;upgrade broken link to broken link;install;
886 292;rpmreplace.at:145;upgrade file link to file link;install;
887 293;rpmreplace.at:178;upgrade directory link to directory link;install;
888 294;rpmreplace.at:211;upgrade regular file to directory;install;
889 295;rpmreplace.at:242;upgrade broken link to directory;install;
890 296;rpmreplace.at:273;upgrade file link to directory;install;
891 297;rpmreplace.at:304;upgrade directory link to directory;install;
892 298;rpmreplace.at:335;upgrade empty directory to empty directory;install;
893 299;rpmreplace.at:363;upgrade empty directory to regular file;install;
894 300;rpmreplace.at:392;upgrade locally symlinked directory;install;
895 301;rpmreplace.at:428;upgrade invalid locally symlinked directory;install;
896 302;rpmreplace.at:460;upgrade empty directory to broken link;install;
897 303;rpmreplace.at:489;upgrade empty directory to file link;install;
898 304;rpmreplace.at:518;upgrade removed empty directory to file link;install;
899 305;rpmreplace.at:548;upgrade replaced empty directory to file link;install;
900 306;rpmreplace.at:578;upgrade empty directory to file link with pretrans;install;
901 307;rpmconfig.at:6;install config on existiting file;install;
902 308;rpmconfig.at:35;install config(noreplace) on existing file;install;
903 309;rpmconfig.at:70;install config on existiting identical file;install;
904 310;rpmconfig.at:97;erase unchanged config;install;
905 311;rpmconfig.at:123;erase changed config;install;
906 312;rpmconfig.at:153;erase changed config(noreplace);install;
907 313;rpmconfig.at:185;upgrade unchanged config;install;
908 314;rpmconfig.at:215;upgrade unchanged config - touching test;install;
909 315;rpmconfig.at:243;upgrade modified config;install;
910 316;rpmconfig.at:276;upgrade changing config;install;
911 317;rpmconfig.at:306;upgrade changing, modified config 1;install;
912 318;rpmconfig.at:342;upgrade changing, modified config 2;install;
913 319;rpmconfig.at:377;upgrade unchanged config(noreplace);install;
914 320;rpmconfig.at:409;upgrade modified config(noreplace);install;
915 321;rpmconfig.at:443;upgrade changing config(noreplace);install;
916 322;rpmconfig.at:474;upgrade changing, modified config(noreplace) 1;install;
917 323;rpmconfig.at:511;upgrade changing, modified config(noreplace) 2;install;
918 324;rpmconfig.at:546;upgrade unchanged shared config;install;
919 325;rpmconfig.at:584;upgrade modified shared config;install;
920 326;rpmconfig.at:624;upgrade changing shared config;install;
921 327;rpmconfig.at:661;upgrade changing, modified shared config 1;install;
922 328;rpmconfig.at:704;upgrade changing, modified shared config 2;install;
923 329;rpmconfig.at:745;upgrade changing, modified shared config(noreplace) 1;install;
924 330;rpmconfig.at:789;upgrade changing, modified shared config(noreplace) 2;install;
925 331;rpmconfig.at:830;install/upgrade/erase ghost config;install;
926 332;rpmconfig2.at:6;install config on existiting symlink;install;
927 333;rpmconfig2.at:36;install config on existiting identical link;install;
928 334;rpmconfig2.at:66;erase unchanged config link;install;
929 335;rpmconfig2.at:93;erase changed config link;install;
930 336;rpmconfig2.at:124;upgrade unchanged config link;install;
931 337;rpmconfig2.at:155;upgrade unchanged config link - touching test;install;
932 338;rpmconfig2.at:185;upgrade modified config link;install;
933 339;rpmconfig2.at:219;upgrade changing config link;install;
934 340;rpmconfig2.at:250;upgrade changing, modified config link 1;install;
935 341;rpmconfig2.at:287;upgrade changing, modified config link 2;install;
936 342;rpmconfig2.at:323;upgrade unchanged config(noreplace) link;install;
937 343;rpmconfig2.at:356;upgrade modified config(noreplace) link;install;
938 344;rpmconfig2.at:391;upgrade changing config(noreplace) link;install;
939 345;rpmconfig2.at:423;upgrade changing, modified config(noreplace) link 1;install;
940 346;rpmconfig2.at:461;upgrade changing, modified config(noreplace) link 2;install;
941 347;rpmconfig2.at:498;upgrade unchanged shared config link;install;
942 348;rpmconfig2.at:537;upgrade modified shared config link;install;
943 349;rpmconfig2.at:578;upgrade changing shared config link;install;
944 350;rpmconfig2.at:616;upgrade changing, modified shared config link 1;install;
945 351;rpmconfig2.at:660;upgrade changing, modified shared config link 2;install;
946 352;rpmconfig2.at:702;upgrade changing, modified shared config(noreplace) link 1;install;
947 353;rpmconfig2.at:747;upgrade changing, modified shared config(noreplace) link 2;install;
948 354;rpmconfig3.at:6;upgrade config to/from non-config;install;
949 355;rpmconfig3.at:44;upgrade modified config to/from non-config 1;install;
950 356;rpmconfig3.at:88;upgrade modified config to/from non-config 2;install;
951 357;rpmconfig3.at:129;upgrade config to/from config link;install;
952 358;rpmconfig3.at:166;upgrade modified config to config link;install;
953 359;rpmconfig3.at:206;upgrade modified config link to config;install;
954 360;rpmconfig3.at:246;upgrade config to directory;install;
955 361;rpmconfig3.at:278;upgrade modified config to directory;install;
956 362;rpmmacro.at:6;simple rpm --eval;macros;
957 363;rpmmacro.at:17;invalid rpm --eval;macros;
958 364;rpmmacro.at:29;invalid rpm --define;macros;
959 365;rpmmacro.at:40;rpm --undefine;macros;
960 366;rpmmacro.at:55;simple true conditional rpm --eval;macros;
961 367;rpmmacro.at:65;simple false conditional rpm --eval;macros;
962 368;rpmmacro.at:75;nested macro in name;macros;
963 369;rpmmacro.at:85;parametrized macro 1;macros;
964 370;rpmmacro.at:121;parametrized macro 2;macros;
965 371;rpmmacro.at:134;parametrized macro 3;macros;
966 372;rpmmacro.at:146;parametrized macro 4;macros;
967 373;rpmmacro.at:161;parametrized macro 5;macros;
968 374;rpmmacro.at:190;uncompress macro;macros;
969 375;rpmmacro.at:202;basename macro;macros;
970 376;rpmmacro.at:213;shrink macro;macros;
971 377;rpmmacro.at:224;suffix macro;macros;
972 378;rpmmacro.at:235;url2path macro;macros;
973 379;rpmmacro.at:246;shell expansion;macros;
974 380;rpmmacro.at:257;simple lua --eval;macros lua;
975 381;rpmmacro.at:267;lua rpm extensions;macros lua;
976 382;rpmmacro.at:277;lua posix extensions;macros lua;
977 383;rpmmacro.at:288;lua script exit behavior;macros lua;
978 384;rpmmacro.at:300;%define + %undefine in nested levels 1;macros define undefine;
979 385;rpmmacro.at:315;%define + %undefine in nested levels 2;macros define;
980 386;rpmmacro.at:331;%define + %undefine in nested levels 3;macros define;
981 387;rpmmacro.at:349;%define + %undefine in nested levels 4;macros define global;
982 388;rpmmacro.at:371;%define in conditional macro;macros;
983 389;rpmmacro.at:389;%verbose negative test;macros verbose;
984 390;rpmmacro.at:407;%verbose positive test;macros verbose;
985 391;rpmpython.at:6;module import;python;
986 392;rpmpython.at:12;macro manipulation;python;
987 393;rpmpython.at:35;basic rpmio;python;
988 394;rpmpython.at:70;spec parse;python;
989 395;rpmpython.at:85;basic header manipulation;python;
990 396;rpmpython.at:110;invalid header data;python;
991 397;rpmpython.at:129;reading a package file;python;
992 398;rpmpython.at:137;reading a signed package file 1;python;
993 399;rpmpython.at:152;reading a signed package file 2;python;
994 400;rpmpython.at:170;add package to transaction;python;
995 401;rpmpython.at:182;add bogus package to transaction 1;python;
996 402;rpmpython.at:196;add bogus package to transaction 2;python;
997 403;rpmpython.at:217;database iterators;python rpmdb;
998 404;rpmpython.at:316;dependency sets 1;python;
999 405;rpmpython.at:333;dependency sets 2;python;
1000 406;rpmpython.at:343;file info sets 1;python;
1001 407;rpmpython.at:360;string pool 1;python;
1002 408;rpmpython.at:375;string pool 2;python;
1003 409;rpmpython.at:393;archive 1;python;
1004 410;rpmpython.at:413;header unload;python;
1005 411;rpmdepmatch.at:4;provide - require pairs;python;
1006 "
1007 # List of the all the test groups.
1008 at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
1009
1010 # at_fn_validate_ranges NAME...
1011 # -----------------------------
1012 # Validate and normalize the test group number contained in each variable
1013 # NAME. Leading zeroes are treated as decimal.
1014 at_fn_validate_ranges ()
1015 {
1016   for at_grp
1017   do
1018     eval at_value=\$$at_grp
1019     if test $at_value -lt 1 || test $at_value -gt 411; then
1020       $as_echo "invalid test group: $at_value" >&2
1021       exit 1
1022     fi
1023     case $at_value in
1024       0*) # We want to treat leading 0 as decimal, like expr and test, but
1025           # AS_VAR_ARITH treats it as octal if it uses $(( )).
1026           # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
1027           # expr fork, but it is not worth the effort to determine if the
1028           # shell supports XSI when the user can just avoid leading 0.
1029           eval $at_grp='`expr $at_value + 0`' ;;
1030     esac
1031   done
1032 }
1033
1034 at_prev=
1035 for at_option
1036 do
1037   # If the previous option needs an argument, assign it.
1038   if test -n "$at_prev"; then
1039     at_option=$at_prev=$at_option
1040     at_prev=
1041   fi
1042
1043   case $at_option in
1044   *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
1045   *)    at_optarg= ;;
1046   esac
1047
1048   # Accept the important Cygnus configure options, so we can diagnose typos.
1049
1050   case $at_option in
1051     --help | -h )
1052         at_help_p=:
1053         ;;
1054
1055     --list | -l )
1056         at_list_p=:
1057         ;;
1058
1059     --version | -V )
1060         at_version_p=:
1061         ;;
1062
1063     --clean | -c )
1064         at_clean=:
1065         ;;
1066
1067     --color )
1068         at_color=always
1069         ;;
1070     --color=* )
1071         case $at_optarg in
1072         no | never | none) at_color=never ;;
1073         auto | tty | if-tty) at_color=auto ;;
1074         always | yes | force) at_color=always ;;
1075         *) at_optname=`echo " $at_option" | sed 's/^ //; s/=.*//'`
1076            as_fn_error $? "unrecognized argument to $at_optname: $at_optarg" ;;
1077         esac
1078         ;;
1079
1080     --debug | -d )
1081         at_debug_p=:
1082         ;;
1083
1084     --errexit | -e )
1085         at_debug_p=:
1086         at_errexit_p=:
1087         ;;
1088
1089     --verbose | -v )
1090         at_verbose=; at_quiet=:
1091         ;;
1092
1093     --trace | -x )
1094         at_traceon='set -x'
1095         at_trace_echo=echo
1096         at_check_filter_trace=at_fn_filter_trace
1097         ;;
1098
1099     [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
1100         at_fn_validate_ranges at_option
1101         as_fn_append at_groups "$at_option$as_nl"
1102         ;;
1103
1104     # Ranges
1105     [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
1106         at_range_start=`echo $at_option |tr -d X-`
1107         at_fn_validate_ranges at_range_start
1108         at_range=`$as_echo "$at_groups_all" | \
1109           sed -ne '/^'$at_range_start'$/,$p'`
1110         as_fn_append at_groups "$at_range$as_nl"
1111         ;;
1112
1113     -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
1114         at_range_end=`echo $at_option |tr -d X-`
1115         at_fn_validate_ranges at_range_end
1116         at_range=`$as_echo "$at_groups_all" | \
1117           sed -ne '1,/^'$at_range_end'$/p'`
1118         as_fn_append at_groups "$at_range$as_nl"
1119         ;;
1120
1121     [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
1122     [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
1123     [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
1124     [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
1125     [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
1126     [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
1127         at_range_start=`expr $at_option : '\(.*\)-'`
1128         at_range_end=`expr $at_option : '.*-\(.*\)'`
1129         if test $at_range_start -gt $at_range_end; then
1130           at_tmp=$at_range_end
1131           at_range_end=$at_range_start
1132           at_range_start=$at_tmp
1133         fi
1134         at_fn_validate_ranges at_range_start at_range_end
1135         at_range=`$as_echo "$at_groups_all" | \
1136           sed -ne '/^'$at_range_start'$/,/^'$at_range_end'$/p'`
1137         as_fn_append at_groups "$at_range$as_nl"
1138         ;;
1139
1140     # Directory selection.
1141     --directory | -C )
1142         at_prev=--directory
1143         ;;
1144     --directory=* )
1145         at_change_dir=:
1146         at_dir=$at_optarg
1147         if test x- = "x$at_dir" ; then
1148           at_dir=./-
1149         fi
1150         ;;
1151
1152     # Parallel execution.
1153     --jobs | -j )
1154         at_jobs=0
1155         ;;
1156     --jobs=* | -j[0-9]* )
1157         if test -n "$at_optarg"; then
1158           at_jobs=$at_optarg
1159         else
1160           at_jobs=`expr X$at_option : 'X-j\(.*\)'`
1161         fi
1162         case $at_jobs in *[!0-9]*)
1163           at_optname=`echo " $at_option" | sed 's/^ //; s/[0-9=].*//'`
1164           as_fn_error $? "non-numeric argument to $at_optname: $at_jobs" ;;
1165         esac
1166         ;;
1167
1168     # Keywords.
1169     --keywords | -k )
1170         at_prev=--keywords
1171         ;;
1172     --keywords=* )
1173         at_groups_selected=$at_help_all
1174         at_save_IFS=$IFS
1175         IFS=,
1176         set X $at_optarg
1177         shift
1178         IFS=$at_save_IFS
1179         for at_keyword
1180         do
1181           at_invert=
1182           case $at_keyword in
1183           '!'*)
1184             at_invert="-v"
1185             at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
1186             ;;
1187           esac
1188           # It is on purpose that we match the test group titles too.
1189           at_groups_selected=`$as_echo "$at_groups_selected" |
1190               grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
1191         done
1192         # Smash the keywords.
1193         at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//'`
1194         as_fn_append at_groups "$at_groups_selected$as_nl"
1195         ;;
1196     --recheck)
1197         at_recheck=:
1198         ;;
1199
1200     *=*)
1201         at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
1202         # Reject names that are not valid shell variable names.
1203         case $at_envvar in
1204           '' | [0-9]* | *[!_$as_cr_alnum]* )
1205             as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
1206         esac
1207         at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
1208         # Export now, but save eval for later and for debug scripts.
1209         export $at_envvar
1210         as_fn_append at_debug_args " $at_envvar='$at_value'"
1211         ;;
1212
1213      *) $as_echo "$as_me: invalid option: $at_option" >&2
1214         $as_echo "Try \`$0 --help' for more information." >&2
1215         exit 1
1216         ;;
1217   esac
1218 done
1219
1220 # Verify our last option didn't require an argument
1221 if test -n "$at_prev"; then :
1222   as_fn_error $? "\`$at_prev' requires an argument"
1223 fi
1224
1225 # The file containing the suite.
1226 at_suite_log=$at_dir/$as_me.log
1227
1228 # Selected test groups.
1229 if test -z "$at_groups$at_recheck"; then
1230   at_groups=$at_groups_all
1231 else
1232   if test -n "$at_recheck" && test -r "$at_suite_log"; then
1233     at_oldfails=`sed -n '
1234       /^Failed tests:$/,/^Skipped tests:$/{
1235         s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1236       }
1237       /^Unexpected passes:$/,/^## Detailed failed tests/{
1238         s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1239       }
1240       /^## Detailed failed tests/q
1241       ' "$at_suite_log"`
1242     as_fn_append at_groups "$at_oldfails$as_nl"
1243   fi
1244   # Sort the tests, removing duplicates.
1245   at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
1246 fi
1247
1248 if test x"$at_color" = xalways \
1249    || { test x"$at_color" = xauto && test -t 1; }; then
1250   at_red=`printf '\033[0;31m'`
1251   at_grn=`printf '\033[0;32m'`
1252   at_lgn=`printf '\033[1;32m'`
1253   at_blu=`printf '\033[1;34m'`
1254   at_std=`printf '\033[m'`
1255 else
1256   at_red= at_grn= at_lgn= at_blu= at_std=
1257 fi
1258
1259 # Help message.
1260 if $at_help_p; then
1261   cat <<_ATEOF || at_write_fail=1
1262 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
1263
1264 Run all the tests, or the selected TESTS, given by numeric ranges, and
1265 save a detailed log file.  Upon failure, create debugging scripts.
1266
1267 Do not change environment variables directly.  Instead, set them via
1268 command line arguments.  Set \`AUTOTEST_PATH' to select the executables
1269 to exercise.  Each relative directory is expanded as build and source
1270 directories relative to the top level of this distribution.
1271 E.g., from within the build directory /tmp/foo-1.0, invoking this:
1272
1273   $ $0 AUTOTEST_PATH=bin
1274
1275 is equivalent to the following, assuming the source directory is /src/foo-1.0:
1276
1277   PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
1278 _ATEOF
1279 cat <<_ATEOF || at_write_fail=1
1280
1281 Operation modes:
1282   -h, --help     print the help message, then exit
1283   -V, --version  print version number, then exit
1284   -c, --clean    remove all the files this test suite might create and exit
1285   -l, --list     describes all the tests, or the selected TESTS
1286 _ATEOF
1287 cat <<_ATEOF || at_write_fail=1
1288
1289 Execution tuning:
1290   -C, --directory=DIR
1291                  change to directory DIR before starting
1292       --color[=never|auto|always]
1293                  enable colored test results on terminal, or always
1294   -j, --jobs[=N]
1295                  Allow N jobs at once; infinite jobs with no arg (default 1)
1296   -k, --keywords=KEYWORDS
1297                  select the tests matching all the comma-separated KEYWORDS
1298                  multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
1299       --recheck  select all tests that failed or passed unexpectedly last time
1300   -e, --errexit  abort as soon as a test fails; implies --debug
1301   -v, --verbose  force more detailed output
1302                  default for debugging scripts
1303   -d, --debug    inhibit clean up and top-level logging
1304                  default for debugging scripts
1305   -x, --trace    enable tests shell tracing
1306 _ATEOF
1307 cat <<_ATEOF || at_write_fail=1
1308
1309 Report bugs to <rpm-maint@lists.rpm.org>.
1310 _ATEOF
1311   exit $at_write_fail
1312 fi
1313
1314 # List of tests.
1315 if $at_list_p; then
1316   cat <<_ATEOF || at_write_fail=1
1317 rpm 4.14.1 test suite test groups:
1318
1319  NUM: FILE-NAME:LINE     TEST-GROUP-NAME
1320       KEYWORDS
1321
1322 _ATEOF
1323   # Pass an empty line as separator between selected groups and help.
1324   $as_echo "$at_groups$as_nl$as_nl$at_help_all" |
1325     awk 'NF == 1 && FS != ";" {
1326            selected[$ 1] = 1
1327            next
1328          }
1329          /^$/ { FS = ";" }
1330          NF > 0 {
1331            if (selected[$ 1]) {
1332              printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1333              if ($ 4) {
1334                lmax = 79
1335                indent = "     "
1336                line = indent
1337                len = length (line)
1338                n = split ($ 4, a, " ")
1339                for (i = 1; i <= n; i++) {
1340                  l = length (a[i]) + 1
1341                  if (i > 1 && len + l > lmax) {
1342                    print line
1343                    line = indent " " a[i]
1344                    len = length (line)
1345                  } else {
1346                    line = line " " a[i]
1347                    len += l
1348                  }
1349                }
1350                if (n)
1351                  print line
1352              }
1353            }
1354          }' || at_write_fail=1
1355   exit $at_write_fail
1356 fi
1357 if $at_version_p; then
1358   $as_echo "$as_me (rpm 4.14.1)" &&
1359   cat <<\_ATEOF || at_write_fail=1
1360
1361 Copyright (C) 2012 Free Software Foundation, Inc.
1362 This test suite is free software; the Free Software Foundation gives
1363 unlimited permission to copy, distribute and modify it.
1364 _ATEOF
1365   exit $at_write_fail
1366 fi
1367
1368 # Should we print banners?  Yes if more than one test is run.
1369 case $at_groups in #(
1370   *$as_nl* )
1371       at_print_banners=: ;; #(
1372   * ) at_print_banners=false ;;
1373 esac
1374 # Text for banner N, set to a single space once printed.
1375 # Banner 1. rpmgeneral.at:19
1376 # Category starts at test group 1.
1377 at_banner_text_1="Basic tests"
1378 # Banner 2. rpmio.at:3
1379 # Category starts at test group 5.
1380 at_banner_text_2="I/O"
1381 # Banner 3. rpmquery.at:19
1382 # Category starts at test group 6.
1383 at_banner_text_3="RPM queries"
1384 # Banner 4. rpmverify.at:3
1385 # Category starts at test group 36.
1386 at_banner_text_4="RPM verification"
1387 # Banner 5. rpmsigdig.at:3
1388 # Category starts at test group 51.
1389 at_banner_text_5="RPM signatures and digests"
1390 # Banner 6. rpmdb.at:19
1391 # Category starts at test group 65.
1392 at_banner_text_6="RPM database access"
1393 # Banner 7. rpmi.at:19
1394 # Category starts at test group 81.
1395 at_banner_text_7="RPM install tests"
1396 # Banner 8. rpmorder.at:1
1397 # Category starts at test group 108.
1398 at_banner_text_8="RPM install/erase ordering"
1399 # Banner 9. rpmbuild.at:19
1400 # Category starts at test group 109.
1401 at_banner_text_9="RPM build"
1402 # Banner 10. rpmbuildid.at:19
1403 # Category starts at test group 143.
1404 at_banner_text_10="RPM buildid tests"
1405 # Banner 11. rpmscript.at:3
1406 # Category starts at test group 161.
1407 at_banner_text_11="RPM scriptlets"
1408 # Banner 12. rpmvercmp.at:11
1409 # Category starts at test group 165.
1410 at_banner_text_12="RPM version comparison"
1411 # Banner 13. rpmdeps.at:3
1412 # Category starts at test group 234.
1413 at_banner_text_13="RPM dependencies"
1414 # Banner 14. rpmconflict.at:3
1415 # Category starts at test group 270.
1416 at_banner_text_14="RPM implicit file conflicts"
1417 # Banner 15. rpmreplace.at:2
1418 # Category starts at test group 288.
1419 at_banner_text_15="RPM file replacement"
1420 # Banner 16. rpmconfig.at:3
1421 # Category starts at test group 307.
1422 at_banner_text_16="RPM config file behavior"
1423 # Banner 17. rpmconfig2.at:3
1424 # Category starts at test group 332.
1425 at_banner_text_17="RPM config symlink behavior"
1426 # Banner 18. rpmconfig3.at:3
1427 # Category starts at test group 354.
1428 at_banner_text_18="RPM config filetype changes"
1429 # Banner 19. rpmmacro.at:3
1430 # Category starts at test group 362.
1431 at_banner_text_19="RPM macros"
1432 # Banner 20. rpmpython.at:4
1433 # Category starts at test group 391.
1434 at_banner_text_20="Python bindings"
1435 # Banner 21. rpmdepmatch.at:2
1436 # Category starts at test group 411.
1437 at_banner_text_21="RPM dependency matching"
1438
1439 # Take any -C into account.
1440 if $at_change_dir ; then
1441   test x != "x$at_dir" && cd "$at_dir" \
1442     || as_fn_error $? "unable to change directory"
1443   at_dir=`pwd`
1444 fi
1445
1446 # Load the config files for any default variable assignments.
1447 for at_file in atconfig atlocal
1448 do
1449   test -r $at_file || continue
1450   . ./$at_file || as_fn_error $? "invalid content: $at_file"
1451 done
1452
1453 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1454 : "${at_top_build_prefix=$at_top_builddir}"
1455
1456 # Perform any assignments requested during argument parsing.
1457 eval "$at_debug_args"
1458
1459 # atconfig delivers names relative to the directory the test suite is
1460 # in, but the groups themselves are run in testsuite-dir/group-dir.
1461 if test -n "$at_top_srcdir"; then
1462   builddir=../..
1463   for at_dir_var in srcdir top_srcdir top_build_prefix
1464   do
1465     eval at_val=\$at_$at_dir_var
1466     case $at_val in
1467       [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1468       *) at_prefix=../../ ;;
1469     esac
1470     eval "$at_dir_var=\$at_prefix\$at_val"
1471   done
1472 fi
1473
1474 ## -------------------- ##
1475 ## Directory structure. ##
1476 ## -------------------- ##
1477
1478 # This is the set of directories and files used by this script
1479 # (non-literals are capitalized):
1480 #
1481 # TESTSUITE         - the testsuite
1482 # TESTSUITE.log     - summarizes the complete testsuite run
1483 # TESTSUITE.dir/    - created during a run, remains after -d or failed test
1484 # + at-groups/      - during a run: status of all groups in run
1485 # | + NNN/          - during a run: meta-data about test group NNN
1486 # | | + check-line  - location (source file and line) of current AT_CHECK
1487 # | | + status      - exit status of current AT_CHECK
1488 # | | + stdout      - stdout of current AT_CHECK
1489 # | | + stder1      - stderr, including trace
1490 # | | + stderr      - stderr, with trace filtered out
1491 # | | + test-source - portion of testsuite that defines group
1492 # | | + times       - timestamps for computing duration
1493 # | | + pass        - created if group passed
1494 # | | + xpass       - created if group xpassed
1495 # | | + fail        - created if group failed
1496 # | | + xfail       - created if group xfailed
1497 # | | + skip        - created if group skipped
1498 # + at-stop         - during a run: end the run if this file exists
1499 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1500 # + 0..NNN/         - created for each group NNN, remains after -d or failed test
1501 # | + TESTSUITE.log - summarizes the group results
1502 # | + ...           - files created during the group
1503
1504 # The directory the whole suite works in.
1505 # Should be absolute to let the user `cd' at will.
1506 at_suite_dir=$at_dir/$as_me.dir
1507 # The file containing the suite ($at_dir might have changed since earlier).
1508 at_suite_log=$at_dir/$as_me.log
1509 # The directory containing helper files per test group.
1510 at_helper_dir=$at_suite_dir/at-groups
1511 # Stop file: if it exists, do not start new jobs.
1512 at_stop_file=$at_suite_dir/at-stop
1513 # The fifo used for the job dispatcher.
1514 at_job_fifo=$at_suite_dir/at-job-fifo
1515
1516 if $at_clean; then
1517   test -d "$at_suite_dir" &&
1518     find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1519   rm -f -r "$at_suite_dir" "$at_suite_log"
1520   exit $?
1521 fi
1522
1523 # Don't take risks: use only absolute directories in PATH.
1524 #
1525 # For stand-alone test suites (ie. atconfig was not found),
1526 # AUTOTEST_PATH is relative to `.'.
1527 #
1528 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1529 # of the package.  Then expand it into build/src parts, since users
1530 # may create executables in both places.
1531 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1532 at_path=
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 for as_dir in $AUTOTEST_PATH $PATH
1535 do
1536   IFS=$as_save_IFS
1537   test -z "$as_dir" && as_dir=.
1538     test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1539 case $as_dir in
1540   [\\/]* | ?:[\\/]* )
1541     as_fn_append at_path "$as_dir"
1542     ;;
1543   * )
1544     if test -z "$at_top_build_prefix"; then
1545       # Stand-alone test suite.
1546       as_fn_append at_path "$as_dir"
1547     else
1548       # Embedded test suite.
1549       as_fn_append at_path "$at_top_build_prefix$as_dir$PATH_SEPARATOR"
1550       as_fn_append at_path "$at_top_srcdir/$as_dir"
1551     fi
1552     ;;
1553 esac
1554   done
1555 IFS=$as_save_IFS
1556
1557
1558 # Now build and simplify PATH.
1559 #
1560 # There might be directories that don't exist, but don't redirect
1561 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1562 at_new_path=
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $at_path
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568     test -d "$as_dir" || continue
1569 case $as_dir in
1570   [\\/]* | ?:[\\/]* ) ;;
1571   * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1572 esac
1573 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1574   *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1575   $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1576   *) as_fn_append at_new_path "$PATH_SEPARATOR$as_dir" ;;
1577 esac
1578   done
1579 IFS=$as_save_IFS
1580
1581 PATH=$at_new_path
1582 export PATH
1583
1584 # Setting up the FDs.
1585
1586
1587
1588 # 5 is the log file.  Not to be overwritten if `-d'.
1589 if $at_debug_p; then
1590   at_suite_log=/dev/null
1591 else
1592   : >"$at_suite_log"
1593 fi
1594 exec 5>>"$at_suite_log"
1595
1596 # Banners and logs.
1597 $as_echo "## ---------------------- ##
1598 ## rpm 4.14.1 test suite. ##
1599 ## ---------------------- ##"
1600 {
1601   $as_echo "## ---------------------- ##
1602 ## rpm 4.14.1 test suite. ##
1603 ## ---------------------- ##"
1604   echo
1605
1606   $as_echo "$as_me: command line was:"
1607   $as_echo "  \$ $0 $at_cli_args"
1608   echo
1609
1610   # If ChangeLog exists, list a few lines in case it might help determining
1611   # the exact version.
1612   if test -n "$at_top_srcdir" && test -f "$at_top_srcdir/ChangeLog"; then
1613     $as_echo "## ---------- ##
1614 ## ChangeLog. ##
1615 ## ---------- ##"
1616     echo
1617     sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
1618     echo
1619   fi
1620
1621   {
1622 cat <<_ASUNAME
1623 ## --------- ##
1624 ## Platform. ##
1625 ## --------- ##
1626
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1632
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1635
1636 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1637 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1640 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1641 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1642 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1643
1644 _ASUNAME
1645
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651     $as_echo "PATH: $as_dir"
1652   done
1653 IFS=$as_save_IFS
1654
1655 }
1656   echo
1657
1658   # Contents of the config files.
1659   for at_file in atconfig atlocal
1660   do
1661     test -r $at_file || continue
1662     $as_echo "$as_me: $at_file:"
1663     sed 's/^/| /' $at_file
1664     echo
1665   done
1666 } >&5
1667
1668
1669 ## ------------------------- ##
1670 ## Autotest shell functions. ##
1671 ## ------------------------- ##
1672
1673 # at_fn_banner NUMBER
1674 # -------------------
1675 # Output banner NUMBER, provided the testsuite is running multiple groups and
1676 # this particular banner has not yet been printed.
1677 at_fn_banner ()
1678 {
1679   $at_print_banners || return 0
1680   eval at_banner_text=\$at_banner_text_$1
1681   test "x$at_banner_text" = "x " && return 0
1682   eval "at_banner_text_$1=\" \""
1683   if test -z "$at_banner_text"; then
1684     $at_first || echo
1685   else
1686     $as_echo "$as_nl$at_banner_text$as_nl"
1687   fi
1688 } # at_fn_banner
1689
1690 # at_fn_check_prepare_notrace REASON LINE
1691 # ---------------------------------------
1692 # Perform AT_CHECK preparations for the command at LINE for an untraceable
1693 # command; REASON is the reason for disabling tracing.
1694 at_fn_check_prepare_notrace ()
1695 {
1696   $at_trace_echo "Not enabling shell tracing (command contains $1)"
1697   $as_echo "$2" >"$at_check_line_file"
1698   at_check_trace=: at_check_filter=:
1699   : >"$at_stdout"; : >"$at_stderr"
1700 }
1701
1702 # at_fn_check_prepare_trace LINE
1703 # ------------------------------
1704 # Perform AT_CHECK preparations for the command at LINE for a traceable
1705 # command.
1706 at_fn_check_prepare_trace ()
1707 {
1708   $as_echo "$1" >"$at_check_line_file"
1709   at_check_trace=$at_traceon at_check_filter=$at_check_filter_trace
1710   : >"$at_stdout"; : >"$at_stderr"
1711 }
1712
1713 # at_fn_check_prepare_dynamic COMMAND LINE
1714 # ----------------------------------------
1715 # Decide if COMMAND at LINE is traceable at runtime, and call the appropriate
1716 # preparation function.
1717 at_fn_check_prepare_dynamic ()
1718 {
1719   case $1 in
1720     *$as_nl*)
1721       at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1722     *)
1723       at_fn_check_prepare_trace "$2" ;;
1724   esac
1725 }
1726
1727 # at_fn_filter_trace
1728 # ------------------
1729 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1730 # them to stderr.
1731 at_fn_filter_trace ()
1732 {
1733   mv "$at_stderr" "$at_stder1"
1734   grep '^ *+' "$at_stder1" >&2
1735   grep -v '^ *+' "$at_stder1" >"$at_stderr"
1736 }
1737
1738 # at_fn_log_failure FILE-LIST
1739 # ---------------------------
1740 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1741 # with a failure exit code.
1742 at_fn_log_failure ()
1743 {
1744   for file
1745     do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1746   echo 1 > "$at_status_file"
1747   exit 1
1748 }
1749
1750 # at_fn_check_skip EXIT-CODE LINE
1751 # -------------------------------
1752 # Check whether EXIT-CODE is a special exit code (77 or 99), and if so exit
1753 # the test group subshell with that same exit code. Use LINE in any report
1754 # about test failure.
1755 at_fn_check_skip ()
1756 {
1757   case $1 in
1758     99) echo 99 > "$at_status_file"; at_failed=:
1759         $as_echo "$2: hard failure"; exit 99;;
1760     77) echo 77 > "$at_status_file"; exit 77;;
1761   esac
1762 }
1763
1764 # at_fn_check_status EXPECTED EXIT-CODE LINE
1765 # ------------------------------------------
1766 # Check whether EXIT-CODE is the EXPECTED exit code, and if so do nothing.
1767 # Otherwise, if it is 77 or 99, exit the test group subshell with that same
1768 # exit code; if it is anything else print an error message referring to LINE,
1769 # and fail the test.
1770 at_fn_check_status ()
1771 {
1772   case $2 in
1773     $1 ) ;;
1774     77) echo 77 > "$at_status_file"; exit 77;;
1775     99) echo 99 > "$at_status_file"; at_failed=:
1776         $as_echo "$3: hard failure"; exit 99;;
1777     *) $as_echo "$3: exit code was $2, expected $1"
1778       at_failed=:;;
1779   esac
1780 }
1781
1782 # at_fn_diff_devnull FILE
1783 # -----------------------
1784 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1785 # invocations.
1786 at_fn_diff_devnull ()
1787 {
1788   test -s "$1" || return 0
1789   $at_diff "$at_devnull" "$1"
1790 }
1791
1792 # at_fn_test NUMBER
1793 # -----------------
1794 # Parse out test NUMBER from the tail of this file.
1795 at_fn_test ()
1796 {
1797   eval at_sed=\$at_sed$1
1798   sed "$at_sed" "$at_myself" > "$at_test_source"
1799 }
1800
1801 # at_fn_create_debugging_script
1802 # -----------------------------
1803 # Create the debugging script $at_group_dir/run which will reproduce the
1804 # current test group.
1805 at_fn_create_debugging_script ()
1806 {
1807   {
1808     echo "#! /bin/sh" &&
1809     echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1810     $as_echo "cd '$at_dir'" &&
1811     $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1812     echo 'exit 1'
1813   } >"$at_group_dir/run" &&
1814   chmod +x "$at_group_dir/run"
1815 }
1816
1817 ## -------------------------------- ##
1818 ## End of autotest shell functions. ##
1819 ## -------------------------------- ##
1820 {
1821   $as_echo "## ---------------- ##
1822 ## Tested programs. ##
1823 ## ---------------- ##"
1824   echo
1825 } >&5
1826
1827 # Report what programs are being tested.
1828 for at_program in : $at_tested
1829 do
1830   test "$at_program" = : && continue
1831   case $at_program in
1832     [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
1833     * )
1834     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837   IFS=$as_save_IFS
1838   test -z "$as_dir" && as_dir=.
1839     test -f "$as_dir/$at_program" && break
1840   done
1841 IFS=$as_save_IFS
1842
1843     at_program_=$as_dir/$at_program ;;
1844   esac
1845   if test -f "$at_program_"; then
1846     {
1847       $as_echo "$at_srcdir/local.at:36: $at_program_ --version"
1848       "$at_program_" --version </dev/null
1849       echo
1850     } >&5 2>&1
1851   else
1852     as_fn_error $? "cannot find $at_program" "$LINENO" 5
1853   fi
1854 done
1855
1856 {
1857   $as_echo "## ------------------ ##
1858 ## Running the tests. ##
1859 ## ------------------ ##"
1860 } >&5
1861
1862 at_start_date=`date`
1863 at_start_time=`date +%s 2>/dev/null`
1864 $as_echo "$as_me: starting at: $at_start_date" >&5
1865
1866 # Create the master directory if it doesn't already exist.
1867 as_dir="$at_suite_dir"; as_fn_mkdir_p ||
1868   as_fn_error $? "cannot create \`$at_suite_dir'" "$LINENO" 5
1869
1870 # Can we diff with `/dev/null'?  DU 5.0 refuses.
1871 if diff /dev/null /dev/null >/dev/null 2>&1; then
1872   at_devnull=/dev/null
1873 else
1874   at_devnull=$at_suite_dir/devnull
1875   >"$at_devnull"
1876 fi
1877
1878 # Use `diff -u' when possible.
1879 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1880 then
1881   at_diff='diff -u'
1882 else
1883   at_diff=diff
1884 fi
1885
1886 # Get the last needed group.
1887 for at_group in : $at_groups; do :; done
1888
1889 # Extract the start and end lines of each test group at the tail
1890 # of this file
1891 awk '
1892 BEGIN { FS="\a" }
1893 /^#AT_START_/ {
1894   start = NR
1895 }
1896 /^#AT_STOP_/ {
1897   test = substr ($ 0, 10)
1898   print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1899   if (test == "'"$at_group"'") exit
1900 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1901 . "$at_suite_dir/at-source-lines" ||
1902   as_fn_error $? "cannot create test line number cache" "$LINENO" 5
1903 rm -f "$at_suite_dir/at-source-lines"
1904
1905 # Set number of jobs for `-j'; avoid more jobs than test groups.
1906 set X $at_groups; shift; at_max_jobs=$#
1907 if test $at_max_jobs -eq 0; then
1908   at_jobs=1
1909 fi
1910 if test $at_jobs -ne 1 &&
1911    { test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
1912   at_jobs=$at_max_jobs
1913 fi
1914
1915 # If parallel mode, don't output banners, don't split summary lines.
1916 if test $at_jobs -ne 1; then
1917   at_print_banners=false
1918   at_quiet=:
1919 fi
1920
1921 # Set up helper dirs.
1922 rm -rf "$at_helper_dir" &&
1923 mkdir "$at_helper_dir" &&
1924 cd "$at_helper_dir" &&
1925 { test -z "$at_groups" || mkdir $at_groups; } ||
1926 as_fn_error $? "testsuite directory setup failed" "$LINENO" 5
1927
1928 # Functions for running a test group.  We leave the actual
1929 # test group execution outside of a shell function in order
1930 # to avoid hitting zsh 4.x exit status bugs.
1931
1932 # at_fn_group_prepare
1933 # -------------------
1934 # Prepare for running a test group.
1935 at_fn_group_prepare ()
1936 {
1937   # The directory for additional per-group helper files.
1938   at_job_dir=$at_helper_dir/$at_group
1939   # The file containing the location of the last AT_CHECK.
1940   at_check_line_file=$at_job_dir/check-line
1941   # The file containing the exit status of the last command.
1942   at_status_file=$at_job_dir/status
1943   # The files containing the output of the tested commands.
1944   at_stdout=$at_job_dir/stdout
1945   at_stder1=$at_job_dir/stder1
1946   at_stderr=$at_job_dir/stderr
1947   # The file containing the code for a test group.
1948   at_test_source=$at_job_dir/test-source
1949   # The file containing dates.
1950   at_times_file=$at_job_dir/times
1951
1952   # Be sure to come back to the top test directory.
1953   cd "$at_suite_dir"
1954
1955   # Clearly separate the test groups when verbose.
1956   $at_first || $at_verbose echo
1957
1958   at_group_normalized=$at_group
1959
1960   eval 'while :; do
1961     case $at_group_normalized in #(
1962     '"$at_format"'*) break;;
1963     esac
1964     at_group_normalized=0$at_group_normalized
1965   done'
1966
1967
1968   # Create a fresh directory for the next test group, and enter.
1969   # If one already exists, the user may have invoked ./run from
1970   # within that directory; we remove the contents, but not the
1971   # directory itself, so that we aren't pulling the rug out from
1972   # under the shell's notion of the current directory.
1973   at_group_dir=$at_suite_dir/$at_group_normalized
1974   at_group_log=$at_group_dir/$as_me.log
1975   if test -d "$at_group_dir"; then
1976   find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx {} \;
1977   rm -fr "$at_group_dir"/* "$at_group_dir"/.[!.] "$at_group_dir"/.??*
1978 fi ||
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test directory for $at_group_normalized could not be cleaned" >&5
1980 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned" >&2;}
1981   # Be tolerant if the above `rm' was not able to remove the directory.
1982   as_dir="$at_group_dir"; as_fn_mkdir_p
1983
1984   echo 0 > "$at_status_file"
1985
1986   # In verbose mode, append to the log file *and* show on
1987   # the standard output; in quiet mode only write to the log.
1988   if test -z "$at_verbose"; then
1989     at_tee_pipe='tee -a "$at_group_log"'
1990   else
1991     at_tee_pipe='cat >> "$at_group_log"'
1992   fi
1993 }
1994
1995 # at_fn_group_banner ORDINAL LINE DESC PAD [BANNER]
1996 # -------------------------------------------------
1997 # Declare the test group ORDINAL, located at LINE with group description DESC,
1998 # and residing under BANNER. Use PAD to align the status column.
1999 at_fn_group_banner ()
2000 {
2001   at_setup_line="$2"
2002   test -n "$5" && at_fn_banner $5
2003   at_desc="$3"
2004   case $1 in
2005     [0-9])      at_desc_line="  $1: ";;
2006     [0-9][0-9]) at_desc_line=" $1: " ;;
2007     *)          at_desc_line="$1: "  ;;
2008   esac
2009   as_fn_append at_desc_line "$3$4"
2010   $at_quiet $as_echo_n "$at_desc_line"
2011   echo "#                             -*- compilation -*-" >> "$at_group_log"
2012 }
2013
2014 # at_fn_group_postprocess
2015 # -----------------------
2016 # Perform cleanup after running a test group.
2017 at_fn_group_postprocess ()
2018 {
2019   # Be sure to come back to the suite directory, in particular
2020   # since below we might `rm' the group directory we are in currently.
2021   cd "$at_suite_dir"
2022
2023   if test ! -f "$at_check_line_file"; then
2024     sed "s/^ */$as_me: WARNING: /" <<_ATEOF
2025       A failure happened in a test group before any test could be
2026       run. This means that test suite is improperly designed.  Please
2027       report this failure to <rpm-maint@lists.rpm.org>.
2028 _ATEOF
2029     $as_echo "$at_setup_line" >"$at_check_line_file"
2030     at_status=99
2031   fi
2032   $at_verbose $as_echo_n "$at_group. $at_setup_line: "
2033   $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
2034   case $at_xfail:$at_status in
2035     yes:0)
2036         at_msg="UNEXPECTED PASS"
2037         at_res=xpass
2038         at_errexit=$at_errexit_p
2039         at_color=$at_red
2040         ;;
2041     no:0)
2042         at_msg="ok"
2043         at_res=pass
2044         at_errexit=false
2045         at_color=$at_grn
2046         ;;
2047     *:77)
2048         at_msg='skipped ('`cat "$at_check_line_file"`')'
2049         at_res=skip
2050         at_errexit=false
2051         at_color=$at_blu
2052         ;;
2053     no:* | *:99)
2054         at_msg='FAILED ('`cat "$at_check_line_file"`')'
2055         at_res=fail
2056         at_errexit=$at_errexit_p
2057         at_color=$at_red
2058         ;;
2059     yes:*)
2060         at_msg='expected failure ('`cat "$at_check_line_file"`')'
2061         at_res=xfail
2062         at_errexit=false
2063         at_color=$at_lgn
2064         ;;
2065   esac
2066   echo "$at_res" > "$at_job_dir/$at_res"
2067   # In parallel mode, output the summary line only afterwards.
2068   if test $at_jobs -ne 1 && test -n "$at_verbose"; then
2069     $as_echo "$at_desc_line $at_color$at_msg$at_std"
2070   else
2071     # Make sure there is a separator even with long titles.
2072     $as_echo " $at_color$at_msg$at_std"
2073   fi
2074   at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
2075   case $at_status in
2076     0|77)
2077       # $at_times_file is only available if the group succeeded.
2078       # We're not including the group log, so the success message
2079       # is written in the global log separately.  But we also
2080       # write to the group log in case they're using -d.
2081       if test -f "$at_times_file"; then
2082         at_log_msg="$at_log_msg     ("`sed 1d "$at_times_file"`')'
2083         rm -f "$at_times_file"
2084       fi
2085       $as_echo "$at_log_msg" >> "$at_group_log"
2086       $as_echo "$at_log_msg" >&5
2087
2088       # Cleanup the group directory, unless the user wants the files
2089       # or the success was unexpected.
2090       if $at_debug_p || test $at_res = xpass; then
2091         at_fn_create_debugging_script
2092         if test $at_res = xpass && $at_errexit; then
2093           echo stop > "$at_stop_file"
2094         fi
2095       else
2096         if test -d "$at_group_dir"; then
2097           find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
2098           rm -fr "$at_group_dir"
2099         fi
2100         rm -f "$at_test_source"
2101       fi
2102       ;;
2103     *)
2104       # Upon failure, include the log into the testsuite's global
2105       # log.  The failure message is written in the group log.  It
2106       # is later included in the global log.
2107       $as_echo "$at_log_msg" >> "$at_group_log"
2108
2109       # Upon failure, keep the group directory for autopsy, and create
2110       # the debugging script.  With -e, do not start any further tests.
2111       at_fn_create_debugging_script
2112       if $at_errexit; then
2113         echo stop > "$at_stop_file"
2114       fi
2115       ;;
2116   esac
2117 }
2118
2119
2120 ## ------------ ##
2121 ## Driver loop. ##
2122 ## ------------ ##
2123
2124
2125 if (set -m && set +m && set +b) >/dev/null 2>&1; then
2126   set +b
2127   at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
2128 else
2129   at_job_control_on=: at_job_control_off=: at_job_group=
2130 fi
2131
2132 for at_signal in 1 2 15; do
2133   trap 'set +x; set +e
2134         $at_job_control_off
2135         at_signal='"$at_signal"'
2136         echo stop > "$at_stop_file"
2137         trap "" $at_signal
2138         at_pgids=
2139         for at_pgid in `jobs -p 2>/dev/null`; do
2140           at_pgids="$at_pgids $at_job_group$at_pgid"
2141         done
2142         test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
2143         wait
2144         if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
2145           echo >&2
2146         fi
2147         at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
2148         set x $at_signame
2149         test 0 -gt 2 && at_signame=$at_signal
2150         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: caught signal $at_signame, bailing out" >&5
2151 $as_echo "$as_me: WARNING: caught signal $at_signame, bailing out" >&2;}
2152         as_fn_arith 128 + $at_signal && exit_status=$as_val
2153         as_fn_exit $exit_status' $at_signal
2154 done
2155
2156 rm -f "$at_stop_file"
2157 at_first=:
2158
2159 if test $at_jobs -ne 1 &&
2160      rm -f "$at_job_fifo" &&
2161      test -n "$at_job_group" &&
2162      ( mkfifo "$at_job_fifo" && trap 'exit 1' PIPE STOP TSTP ) 2>/dev/null
2163 then
2164   # FIFO job dispatcher.
2165
2166   trap 'at_pids=
2167         for at_pid in `jobs -p`; do
2168           at_pids="$at_pids $at_job_group$at_pid"
2169         done
2170         if test -n "$at_pids"; then
2171           at_sig=TSTP
2172           test "${TMOUT+set}" = set && at_sig=STOP
2173           kill -$at_sig $at_pids 2>/dev/null
2174         fi
2175         kill -STOP $$
2176         test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
2177
2178   echo
2179   # Turn jobs into a list of numbers, starting from 1.
2180   at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
2181
2182   set X $at_joblist
2183   shift
2184   for at_group in $at_groups; do
2185     $at_job_control_on 2>/dev/null
2186     (
2187       # Start one test group.
2188       $at_job_control_off
2189       if $at_first; then
2190         exec 7>"$at_job_fifo"
2191       else
2192         exec 6<&-
2193       fi
2194       trap 'set +x; set +e
2195             trap "" PIPE
2196             echo stop > "$at_stop_file"
2197             echo >&7
2198             as_fn_exit 141' PIPE
2199       at_fn_group_prepare
2200       if cd "$at_group_dir" &&
2201          at_fn_test $at_group &&
2202          . "$at_test_source"
2203       then :; else
2204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2205 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2206         at_failed=:
2207       fi
2208       at_fn_group_postprocess
2209       echo >&7
2210     ) &
2211     $at_job_control_off
2212     if $at_first; then
2213       at_first=false
2214       exec 6<"$at_job_fifo" 7>"$at_job_fifo"
2215     fi
2216     shift # Consume one token.
2217     if test $# -gt 0; then :; else
2218       read at_token <&6 || break
2219       set x $*
2220     fi
2221     test -f "$at_stop_file" && break
2222   done
2223   exec 7>&-
2224   # Read back the remaining ($at_jobs - 1) tokens.
2225   set X $at_joblist
2226   shift
2227   if test $# -gt 0; then
2228     shift
2229     for at_job
2230     do
2231       read at_token
2232     done <&6
2233   fi
2234   exec 6<&-
2235   wait
2236 else
2237   # Run serially, avoid forks and other potential surprises.
2238   for at_group in $at_groups; do
2239     at_fn_group_prepare
2240     if cd "$at_group_dir" &&
2241        at_fn_test $at_group &&
2242        . "$at_test_source"; then :; else
2243       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to parse test group: $at_group" >&5
2244 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
2245       at_failed=:
2246     fi
2247     at_fn_group_postprocess
2248     test -f "$at_stop_file" && break
2249     at_first=false
2250   done
2251 fi
2252
2253 # Wrap up the test suite with summary statistics.
2254 cd "$at_helper_dir"
2255
2256 # Use ?..???? when the list must remain sorted, the faster * otherwise.
2257 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
2258 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
2259 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
2260 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
2261                  echo $f; done | sed '/?/d; s,/xpass,,'`
2262 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
2263                 echo $f; done | sed '/?/d; s,/fail,,'`
2264
2265 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
2266 shift; at_group_count=$#
2267 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
2268 set X $at_xfail_list; shift; at_xfail_count=$#
2269 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
2270 set X $at_skip_list; shift; at_skip_count=$#
2271
2272 as_fn_arith $at_group_count - $at_skip_count && at_run_count=$as_val
2273 as_fn_arith $at_xpass_count + $at_fail_count && at_unexpected_count=$as_val
2274 as_fn_arith $at_xfail_count + $at_fail_count && at_total_fail_count=$as_val
2275
2276 # Back to the top directory.
2277 cd "$at_dir"
2278 rm -rf "$at_helper_dir"
2279
2280 # Compute the duration of the suite.
2281 at_stop_date=`date`
2282 at_stop_time=`date +%s 2>/dev/null`
2283 $as_echo "$as_me: ending at: $at_stop_date" >&5
2284 case $at_start_time,$at_stop_time in
2285   [0-9]*,[0-9]*)
2286     as_fn_arith $at_stop_time - $at_start_time && at_duration_s=$as_val
2287     as_fn_arith $at_duration_s / 60 && at_duration_m=$as_val
2288     as_fn_arith $at_duration_m / 60 && at_duration_h=$as_val
2289     as_fn_arith $at_duration_s % 60 && at_duration_s=$as_val
2290     as_fn_arith $at_duration_m % 60 && at_duration_m=$as_val
2291     at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
2292     $as_echo "$as_me: test suite duration: $at_duration" >&5
2293     ;;
2294 esac
2295
2296 echo
2297 $as_echo "## ------------- ##
2298 ## Test results. ##
2299 ## ------------- ##"
2300 echo
2301 {
2302   echo
2303   $as_echo "## ------------- ##
2304 ## Test results. ##
2305 ## ------------- ##"
2306   echo
2307 } >&5
2308
2309 if test $at_run_count = 1; then
2310   at_result="1 test"
2311   at_were=was
2312 else
2313   at_result="$at_run_count tests"
2314   at_were=were
2315 fi
2316 if $at_errexit_p && test $at_unexpected_count != 0; then
2317   if test $at_xpass_count = 1; then
2318     at_result="$at_result $at_were run, one passed"
2319   else
2320     at_result="$at_result $at_were run, one failed"
2321   fi
2322   at_result="$at_result unexpectedly and inhibited subsequent tests."
2323   at_color=$at_red
2324 else
2325   # Don't you just love exponential explosion of the number of cases?
2326   at_color=$at_red
2327   case $at_xpass_count:$at_fail_count:$at_xfail_count in
2328     # So far, so good.
2329     0:0:0) at_result="$at_result $at_were successful." at_color=$at_grn ;;
2330     0:0:*) at_result="$at_result behaved as expected." at_color=$at_lgn ;;
2331
2332     # Some unexpected failures
2333     0:*:0) at_result="$at_result $at_were run,
2334 $at_fail_count failed unexpectedly." ;;
2335
2336     # Some failures, both expected and unexpected
2337     0:*:1) at_result="$at_result $at_were run,
2338 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2339     0:*:*) at_result="$at_result $at_were run,
2340 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2341
2342     # No unexpected failures, but some xpasses
2343     *:0:*) at_result="$at_result $at_were run,
2344 $at_xpass_count passed unexpectedly." ;;
2345
2346     # No expected failures, but failures and xpasses
2347     *:1:0) at_result="$at_result $at_were run,
2348 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
2349     *:*:0) at_result="$at_result $at_were run,
2350 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
2351
2352     # All of them.
2353     *:*:1) at_result="$at_result $at_were run,
2354 $at_xpass_count passed unexpectedly,
2355 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
2356     *:*:*) at_result="$at_result $at_were run,
2357 $at_xpass_count passed unexpectedly,
2358 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
2359   esac
2360
2361   if test $at_skip_count = 0 && test $at_run_count -gt 1; then
2362     at_result="All $at_result"
2363   fi
2364 fi
2365
2366 # Now put skips in the mix.
2367 case $at_skip_count in
2368   0) ;;
2369   1) at_result="$at_result
2370 1 test was skipped." ;;
2371   *) at_result="$at_result
2372 $at_skip_count tests were skipped." ;;
2373 esac
2374
2375 if test $at_unexpected_count = 0; then
2376   echo "$at_color$at_result$at_std"
2377   echo "$at_result" >&5
2378 else
2379   echo "${at_color}ERROR: $at_result$at_std" >&2
2380   echo "ERROR: $at_result" >&5
2381   {
2382     echo
2383     $as_echo "## ------------------------ ##
2384 ## Summary of the failures. ##
2385 ## ------------------------ ##"
2386
2387     # Summary of failed and skipped tests.
2388     if test $at_fail_count != 0; then
2389       echo "Failed tests:"
2390       $SHELL "$at_myself" $at_fail_list --list
2391       echo
2392     fi
2393     if test $at_skip_count != 0; then
2394       echo "Skipped tests:"
2395       $SHELL "$at_myself" $at_skip_list --list
2396       echo
2397     fi
2398     if test $at_xpass_count != 0; then
2399       echo "Unexpected passes:"
2400       $SHELL "$at_myself" $at_xpass_list --list
2401       echo
2402     fi
2403     if test $at_fail_count != 0; then
2404       $as_echo "## ---------------------- ##
2405 ## Detailed failed tests. ##
2406 ## ---------------------- ##"
2407       echo
2408       for at_group in $at_fail_list
2409       do
2410         at_group_normalized=$at_group
2411
2412   eval 'while :; do
2413     case $at_group_normalized in #(
2414     '"$at_format"'*) break;;
2415     esac
2416     at_group_normalized=0$at_group_normalized
2417   done'
2418
2419         cat "$at_suite_dir/$at_group_normalized/$as_me.log"
2420         echo
2421       done
2422       echo
2423     fi
2424     if test -n "$at_top_srcdir"; then
2425       sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2426 ## ${at_top_build_prefix}config.log ##
2427 _ASBOX
2428       sed 's/^/| /' ${at_top_build_prefix}config.log
2429       echo
2430     fi
2431   } >&5
2432
2433   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2434 ## $as_me.log was created. ##
2435 _ASBOX
2436
2437   echo
2438   if $at_debug_p; then
2439     at_msg='per-test log files'
2440   else
2441     at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
2442   fi
2443   $as_echo "Please send $at_msg and all information you think might help:
2444
2445    To: <rpm-maint@lists.rpm.org>
2446    Subject: [rpm 4.14.1] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
2447
2448 You may investigate any problem if you feel able to do so, in which
2449 case the test suite provides a good starting point.  Its output may
2450 be found below \`${at_testdir+${at_testdir}/}$as_me.dir'.
2451 "
2452   exit 1
2453 fi
2454
2455 exit 0
2456
2457 ## ------------- ##
2458 ## Actual tests. ##
2459 ## ------------- ##
2460 #AT_START_1
2461 at_fn_group_banner 1 'rpmgeneral.at:22' \
2462   "rpm --version" "                                  " 1
2463 at_xfail=no
2464 (
2465   $as_echo "1. $at_setup_line: testing $at_desc ..."
2466   $at_traceon
2467
2468
2469 { set +x
2470 $as_echo "$at_srcdir/rpmgeneral.at:24: runroot rpm --version"
2471 at_fn_check_prepare_trace "rpmgeneral.at:24"
2472 ( $at_check_trace; runroot rpm --version
2473 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2474 at_status=$? at_failed=false
2475 $at_check_filter
2476 at_fn_diff_devnull "$at_stderr" || at_failed=:
2477 echo >>"$at_stdout"; $as_echo "RPM version 4.14.1
2478 " | \
2479   $at_diff - "$at_stdout" || at_failed=:
2480 at_fn_check_status 0 $at_status "$at_srcdir/rpmgeneral.at:24"
2481 $at_failed && at_fn_log_failure
2482 $at_traceon; }
2483
2484   set +x
2485   $at_times_p && times >"$at_times_file"
2486 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2487 read at_status <"$at_status_file"
2488 #AT_STOP_1
2489 #AT_START_2
2490 at_fn_group_banner 2 'rpmgeneral.at:31' \
2491   "rpmbuild --version" "                             " 1
2492 at_xfail=no
2493 (
2494   $as_echo "2. $at_setup_line: testing $at_desc ..."
2495   $at_traceon
2496
2497
2498 { set +x
2499 $as_echo "$at_srcdir/rpmgeneral.at:33: runroot rpmbuild --version"
2500 at_fn_check_prepare_trace "rpmgeneral.at:33"
2501 ( $at_check_trace; runroot rpmbuild --version
2502 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2503 at_status=$? at_failed=false
2504 $at_check_filter
2505 at_fn_diff_devnull "$at_stderr" || at_failed=:
2506 echo >>"$at_stdout"; $as_echo "RPM version 4.14.1
2507 " | \
2508   $at_diff - "$at_stdout" || at_failed=:
2509 at_fn_check_status 0 $at_status "$at_srcdir/rpmgeneral.at:33"
2510 $at_failed && at_fn_log_failure
2511 $at_traceon; }
2512
2513   set +x
2514   $at_times_p && times >"$at_times_file"
2515 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2516 read at_status <"$at_status_file"
2517 #AT_STOP_2
2518 #AT_START_3
2519 at_fn_group_banner 3 'rpmgeneral.at:40' \
2520   "rpm --showrc" "                                   " 1
2521 at_xfail=no
2522 (
2523   $as_echo "3. $at_setup_line: testing $at_desc ..."
2524   $at_traceon
2525
2526
2527 { set +x
2528 $as_echo "$at_srcdir/rpmgeneral.at:42: runroot rpm --showrc"
2529 at_fn_check_prepare_trace "rpmgeneral.at:42"
2530 ( $at_check_trace; runroot rpm --showrc
2531 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2532 at_status=$? at_failed=false
2533 $at_check_filter
2534 at_fn_diff_devnull "$at_stderr" || at_failed=:
2535 echo stdout:; cat "$at_stdout"
2536 at_fn_check_status 0 $at_status "$at_srcdir/rpmgeneral.at:42"
2537 $at_failed && at_fn_log_failure
2538 $at_traceon; }
2539
2540   set +x
2541   $at_times_p && times >"$at_times_file"
2542 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2543 read at_status <"$at_status_file"
2544 #AT_STOP_3
2545 #AT_START_4
2546 at_fn_group_banner 4 'rpmgeneral.at:50' \
2547   "rpm --querytags" "                                " 1
2548 at_xfail=no
2549 (
2550   $as_echo "4. $at_setup_line: testing $at_desc ..."
2551   $at_traceon
2552
2553
2554 { set +x
2555 $as_echo "$at_srcdir/rpmgeneral.at:52: runroot rpm --querytags"
2556 at_fn_check_prepare_trace "rpmgeneral.at:52"
2557 ( $at_check_trace; runroot rpm --querytags
2558 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2559 at_status=$? at_failed=false
2560 $at_check_filter
2561 at_fn_diff_devnull "$at_stderr" || at_failed=:
2562 echo >>"$at_stdout"; $as_echo "ARCH
2563 ARCHIVESIZE
2564 BASENAMES
2565 BUGURL
2566 BUILDARCHS
2567 BUILDHOST
2568 BUILDTIME
2569 C
2570 CHANGELOGNAME
2571 CHANGELOGTEXT
2572 CHANGELOGTIME
2573 CLASSDICT
2574 CONFLICTFLAGS
2575 CONFLICTNAME
2576 CONFLICTNEVRS
2577 CONFLICTS
2578 CONFLICTVERSION
2579 COOKIE
2580 DBINSTANCE
2581 DEPENDSDICT
2582 DESCRIPTION
2583 DIRINDEXES
2584 DIRNAMES
2585 DISTRIBUTION
2586 DISTTAG
2587 DISTURL
2588 DSAHEADER
2589 E
2590 ENCODING
2591 ENHANCEFLAGS
2592 ENHANCENAME
2593 ENHANCENEVRS
2594 ENHANCES
2595 ENHANCEVERSION
2596 EPOCH
2597 EPOCHNUM
2598 EVR
2599 EXCLUDEARCH
2600 EXCLUDEOS
2601 EXCLUSIVEARCH
2602 EXCLUSIVEOS
2603 FILECAPS
2604 FILECLASS
2605 FILECOLORS
2606 FILECONTEXTS
2607 FILEDEPENDSN
2608 FILEDEPENDSX
2609 FILEDEVICES
2610 FILEDIGESTALGO
2611 FILEDIGESTS
2612 FILEFLAGS
2613 FILEGROUPNAME
2614 FILEINODES
2615 FILELANGS
2616 FILELINKTOS
2617 FILEMD5S
2618 FILEMODES
2619 FILEMTIMES
2620 FILENAMES
2621 FILENLINKS
2622 FILEPROVIDE
2623 FILERDEVS
2624 FILEREQUIRE
2625 FILESIGNATURELENGTH
2626 FILESIGNATURES
2627 FILESIZES
2628 FILESTATES
2629 FILETRIGGERCONDS
2630 FILETRIGGERFLAGS
2631 FILETRIGGERINDEX
2632 FILETRIGGERNAME
2633 FILETRIGGERPRIORITIES
2634 FILETRIGGERSCRIPTFLAGS
2635 FILETRIGGERSCRIPTPROG
2636 FILETRIGGERSCRIPTS
2637 FILETRIGGERTYPE
2638 FILETRIGGERVERSION
2639 FILEUSERNAME
2640 FILEVERIFYFLAGS
2641 FSCONTEXTS
2642 GIF
2643 GROUP
2644 HDRID
2645 HEADERCOLOR
2646 HEADERI18NTABLE
2647 HEADERIMAGE
2648 HEADERIMMUTABLE
2649 HEADERREGIONS
2650 HEADERSIGNATURES
2651 ICON
2652 INSTALLCOLOR
2653 INSTALLTID
2654 INSTALLTIME
2655 INSTFILENAMES
2656 INSTPREFIXES
2657 LICENSE
2658 LONGARCHIVESIZE
2659 LONGFILESIZES
2660 LONGSIGSIZE
2661 LONGSIZE
2662 N
2663 NAME
2664 NEVR
2665 NEVRA
2666 NOPATCH
2667 NOSOURCE
2668 NVR
2669 NVRA
2670 O
2671 OBSOLETEFLAGS
2672 OBSOLETENAME
2673 OBSOLETENEVRS
2674 OBSOLETES
2675 OBSOLETEVERSION
2676 OLDENHANCES
2677 OLDENHANCESFLAGS
2678 OLDENHANCESNAME
2679 OLDENHANCESVERSION
2680 OLDFILENAMES
2681 OLDSUGGESTS
2682 OLDSUGGESTSFLAGS
2683 OLDSUGGESTSNAME
2684 OLDSUGGESTSVERSION
2685 OPTFLAGS
2686 ORDERFLAGS
2687 ORDERNAME
2688 ORDERVERSION
2689 ORIGBASENAMES
2690 ORIGDIRINDEXES
2691 ORIGDIRNAMES
2692 ORIGFILENAMES
2693 OS
2694 P
2695 PACKAGER
2696 PATCH
2697 PATCHESFLAGS
2698 PATCHESNAME
2699 PATCHESVERSION
2700 PAYLOADCOMPRESSOR
2701 PAYLOADDIGEST
2702 PAYLOADDIGESTALGO
2703 PAYLOADFLAGS
2704 PAYLOADFORMAT
2705 PKGID
2706 PLATFORM
2707 POLICIES
2708 POLICYFLAGS
2709 POLICYNAMES
2710 POLICYTYPES
2711 POLICYTYPESINDEXES
2712 POSTIN
2713 POSTINFLAGS
2714 POSTINPROG
2715 POSTTRANS
2716 POSTTRANSFLAGS
2717 POSTTRANSPROG
2718 POSTUN
2719 POSTUNFLAGS
2720 POSTUNPROG
2721 PREFIXES
2722 PREIN
2723 PREINFLAGS
2724 PREINPROG
2725 PRETRANS
2726 PRETRANSFLAGS
2727 PRETRANSPROG
2728 PREUN
2729 PREUNFLAGS
2730 PREUNPROG
2731 PROVIDEFLAGS
2732 PROVIDENAME
2733 PROVIDENEVRS
2734 PROVIDES
2735 PROVIDEVERSION
2736 PUBKEYS
2737 R
2738 RECOMMENDFLAGS
2739 RECOMMENDNAME
2740 RECOMMENDNEVRS
2741 RECOMMENDS
2742 RECOMMENDVERSION
2743 RECONTEXTS
2744 RELEASE
2745 REMOVETID
2746 REQUIREFLAGS
2747 REQUIRENAME
2748 REQUIRENEVRS
2749 REQUIRES
2750 REQUIREVERSION
2751 RPMVERSION
2752 RSAHEADER
2753 SHA1HEADER
2754 SHA256HEADER
2755 SIGGPG
2756 SIGMD5
2757 SIGPGP
2758 SIGSIZE
2759 SIZE
2760 SOURCE
2761 SOURCEPACKAGE
2762 SOURCEPKGID
2763 SOURCERPM
2764 SUGGESTFLAGS
2765 SUGGESTNAME
2766 SUGGESTNEVRS
2767 SUGGESTS
2768 SUGGESTVERSION
2769 SUMMARY
2770 SUPPLEMENTFLAGS
2771 SUPPLEMENTNAME
2772 SUPPLEMENTNEVRS
2773 SUPPLEMENTS
2774 SUPPLEMENTVERSION
2775 TRANSFILETRIGGERCONDS
2776 TRANSFILETRIGGERFLAGS
2777 TRANSFILETRIGGERINDEX
2778 TRANSFILETRIGGERNAME
2779 TRANSFILETRIGGERPRIORITIES
2780 TRANSFILETRIGGERSCRIPTFLAGS
2781 TRANSFILETRIGGERSCRIPTPROG
2782 TRANSFILETRIGGERSCRIPTS
2783 TRANSFILETRIGGERTYPE
2784 TRANSFILETRIGGERVERSION
2785 TRIGGERCONDS
2786 TRIGGERFLAGS
2787 TRIGGERINDEX
2788 TRIGGERNAME
2789 TRIGGERSCRIPTFLAGS
2790 TRIGGERSCRIPTPROG
2791 TRIGGERSCRIPTS
2792 TRIGGERTYPE
2793 TRIGGERVERSION
2794 URL
2795 V
2796 VCS
2797 VENDOR
2798 VERBOSE
2799 VERIFYSCRIPT
2800 VERIFYSCRIPTFLAGS
2801 VERIFYSCRIPTPROG
2802 VERSION
2803 XPM
2804 " | \
2805   $at_diff - "$at_stdout" || at_failed=:
2806 at_fn_check_status 0 $at_status "$at_srcdir/rpmgeneral.at:52"
2807 $at_failed && at_fn_log_failure
2808 $at_traceon; }
2809
2810   set +x
2811   $at_times_p && times >"$at_times_file"
2812 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2813 read at_status <"$at_status_file"
2814 #AT_STOP_4
2815 #AT_START_5
2816 at_fn_group_banner 5 'rpmio.at:21' \
2817   "SIGPIPE from install scriptlet" "                 " 2
2818 at_xfail=no
2819 (
2820   $as_echo "5. $at_setup_line: testing $at_desc ..."
2821   $at_traceon
2822
2823
2824 { set +x
2825 $as_echo "$at_srcdir/rpmio.at:23:
2826
2827 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
2828
2829
2830 runroot rpm --initdb
2831
2832
2833 runroot rpmbuild --quiet -bb /data/SPECS/sigpipe.spec
2834 runroot rpm -U --nodeps /build/RPMS/noarch/sigpipe-1.0-1.noarch.rpm
2835 "
2836 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmio.at:23"
2837 ( $at_check_trace;
2838
2839 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
2840
2841
2842 runroot rpm --initdb
2843
2844
2845 runroot rpmbuild --quiet -bb /data/SPECS/sigpipe.spec
2846 runroot rpm -U --nodeps /build/RPMS/noarch/sigpipe-1.0-1.noarch.rpm
2847
2848 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2849 at_status=$? at_failed=false
2850 $at_check_filter
2851 at_fn_diff_devnull "$at_stderr" || at_failed=:
2852 at_fn_diff_devnull "$at_stdout" || at_failed=:
2853 at_fn_check_status 0 $at_status "$at_srcdir/rpmio.at:23"
2854 $at_failed && at_fn_log_failure
2855 $at_traceon; }
2856
2857   set +x
2858   $at_times_p && times >"$at_times_file"
2859 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2860 read at_status <"$at_status_file"
2861 #AT_STOP_5
2862 #AT_START_6
2863 at_fn_group_banner 6 'rpmquery.at:22' \
2864   "rpm --qf -p *.i386.rpm" "                         " 3
2865 at_xfail=no
2866 (
2867   $as_echo "6. $at_setup_line: testing $at_desc ..."
2868   $at_traceon
2869
2870
2871 { set +x
2872 $as_echo "$at_srcdir/rpmquery.at:24:
2873 runroot rpm \\
2874   -q --qf \"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\\n\" \\
2875   -p /data/RPMS/hello-1.0-1.i386.rpm
2876 "
2877 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:24"
2878 ( $at_check_trace;
2879 runroot rpm \
2880   -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" \
2881   -p /data/RPMS/hello-1.0-1.i386.rpm
2882
2883 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2884 at_status=$? at_failed=false
2885 $at_check_filter
2886 echo stderr:; cat "$at_stderr"
2887 echo >>"$at_stdout"; $as_echo "hello-1.0-1.i386
2888 " | \
2889   $at_diff - "$at_stdout" || at_failed=:
2890 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:24"
2891 $at_failed && at_fn_log_failure
2892 $at_traceon; }
2893
2894   set +x
2895   $at_times_p && times >"$at_times_file"
2896 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2897 read at_status <"$at_status_file"
2898 #AT_STOP_6
2899 #AT_START_7
2900 at_fn_group_banner 7 'rpmquery.at:36' \
2901   "rpm --qf -p *.src.rpm" "                          " 3
2902 at_xfail=no
2903 (
2904   $as_echo "7. $at_setup_line: testing $at_desc ..."
2905   $at_traceon
2906
2907
2908 { set +x
2909 $as_echo "$at_srcdir/rpmquery.at:38:
2910 runroot rpm \\
2911   -q --qf \"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\\n\" \\
2912   -p /data/SRPMS/hello-1.0-1.src.rpm
2913 "
2914 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:38"
2915 ( $at_check_trace;
2916 runroot rpm \
2917   -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" \
2918   -p /data/SRPMS/hello-1.0-1.src.rpm
2919
2920 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2921 at_status=$? at_failed=false
2922 $at_check_filter
2923 echo stderr:; cat "$at_stderr"
2924 echo >>"$at_stdout"; $as_echo "hello-1.0-1.i386
2925 " | \
2926   $at_diff - "$at_stdout" || at_failed=:
2927 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:38"
2928 $at_failed && at_fn_log_failure
2929 $at_traceon; }
2930
2931   set +x
2932   $at_times_p && times >"$at_times_file"
2933 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2934 read at_status <"$at_status_file"
2935 #AT_STOP_7
2936 #AT_START_8
2937 at_fn_group_banner 8 'rpmquery.at:50' \
2938   "rpm -ql -p *.src.rpm" "                           " 3
2939 at_xfail=no
2940 (
2941   $as_echo "8. $at_setup_line: testing $at_desc ..."
2942   $at_traceon
2943
2944
2945 { set +x
2946 $as_echo "$at_srcdir/rpmquery.at:52:
2947 runroot rpm \\
2948   -ql \\
2949   -p /data/SRPMS/hello-1.0-1.src.rpm
2950 "
2951 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:52"
2952 ( $at_check_trace;
2953 runroot rpm \
2954   -ql \
2955   -p /data/SRPMS/hello-1.0-1.src.rpm
2956
2957 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2958 at_status=$? at_failed=false
2959 $at_check_filter
2960 echo stderr:; cat "$at_stderr"
2961 echo >>"$at_stdout"; $as_echo "hello-1.0.tar.gz
2962 hello.spec
2963 " | \
2964   $at_diff - "$at_stdout" || at_failed=:
2965 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:52"
2966 $at_failed && at_fn_log_failure
2967 $at_traceon; }
2968
2969   set +x
2970   $at_times_p && times >"$at_times_file"
2971 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
2972 read at_status <"$at_status_file"
2973 #AT_STOP_8
2974 #AT_START_9
2975 at_fn_group_banner 9 'rpmquery.at:65' \
2976   "rpmspec -q" "                                     " 3
2977 at_xfail=no
2978 (
2979   $as_echo "9. $at_setup_line: testing $at_desc ..."
2980   $at_traceon
2981
2982
2983 { set +x
2984 $as_echo "$at_srcdir/rpmquery.at:67:
2985 runroot rpmspec \\
2986   -q --qf \"%{name}\" /data/SPECS/hello.spec
2987 "
2988 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:67"
2989 ( $at_check_trace;
2990 runroot rpmspec \
2991   -q --qf "%{name}" /data/SPECS/hello.spec
2992
2993 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2994 at_status=$? at_failed=false
2995 $at_check_filter
2996 at_fn_diff_devnull "$at_stderr" || at_failed=:
2997 echo >>"$at_stdout"; $as_echo "hello" | \
2998   $at_diff - "$at_stdout" || at_failed=:
2999 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:67"
3000 $at_failed && at_fn_log_failure
3001 $at_traceon; }
3002
3003   set +x
3004   $at_times_p && times >"$at_times_file"
3005 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3006 read at_status <"$at_status_file"
3007 #AT_STOP_9
3008 #AT_START_10
3009 at_fn_group_banner 10 'rpmquery.at:77' \
3010   "rpm -ql -p *.i386.rpm" "                          " 3
3011 at_xfail=no
3012 (
3013   $as_echo "10. $at_setup_line: testing $at_desc ..."
3014   $at_traceon
3015
3016
3017 { set +x
3018 $as_echo "$at_srcdir/rpmquery.at:79:
3019 runroot rpm \\
3020   -ql \\
3021   -p /data/RPMS/hello-1.0-1.i386.rpm
3022 "
3023 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:79"
3024 ( $at_check_trace;
3025 runroot rpm \
3026   -ql \
3027   -p /data/RPMS/hello-1.0-1.i386.rpm
3028
3029 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3030 at_status=$? at_failed=false
3031 $at_check_filter
3032 echo stderr:; cat "$at_stderr"
3033 echo >>"$at_stdout"; $as_echo "/usr/local/bin/hello
3034 /usr/share/doc/hello-1.0
3035 /usr/share/doc/hello-1.0/FAQ
3036 " | \
3037   $at_diff - "$at_stdout" || at_failed=:
3038 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:79"
3039 $at_failed && at_fn_log_failure
3040 $at_traceon; }
3041
3042   set +x
3043   $at_times_p && times >"$at_times_file"
3044 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3045 read at_status <"$at_status_file"
3046 #AT_STOP_10
3047 #AT_START_11
3048 at_fn_group_banner 11 'rpmquery.at:94' \
3049   "rpm -qp <manifest>" "                             " 3
3050 at_xfail=no
3051 (
3052   $as_echo "11. $at_setup_line: testing $at_desc ..."
3053   $at_traceon
3054
3055
3056 { set +x
3057 $as_echo "$at_srcdir/rpmquery.at:96:
3058 cat << EOF > \${RPMTEST}/query.mft
3059 /data/RPMS/hello-1.0-1.i386.rpm
3060 /data/RPMS/hello-1.0-1.ppc64.rpm
3061 /data/RPMS/foo-1.0-1.noarch.rpm
3062 EOF
3063 runroot rpm -qp --qf \"%{nvr}\\n\" /query.mft
3064 "
3065 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmquery.at:96"
3066 ( $at_check_trace;
3067 cat << EOF > ${RPMTEST}/query.mft
3068 /data/RPMS/hello-1.0-1.i386.rpm
3069 /data/RPMS/hello-1.0-1.ppc64.rpm
3070 /data/RPMS/foo-1.0-1.noarch.rpm
3071 EOF
3072 runroot rpm -qp --qf "%{nvr}\n" /query.mft
3073
3074 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3075 at_status=$? at_failed=false
3076 $at_check_filter
3077 at_fn_diff_devnull "$at_stderr" || at_failed=:
3078 echo >>"$at_stdout"; $as_echo "hello-1.0-1
3079 hello-1.0-1
3080 foo-1.0-1
3081 " | \
3082   $at_diff - "$at_stdout" || at_failed=:
3083 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:96"
3084 $at_failed && at_fn_log_failure
3085 $at_traceon; }
3086
3087   set +x
3088   $at_times_p && times >"$at_times_file"
3089 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3090 read at_status <"$at_status_file"
3091 #AT_STOP_11
3092 #AT_START_12
3093 at_fn_group_banner 12 'rpmquery.at:115' \
3094   "rpm -q --scripts -p *.i386.rpm" "                 " 3
3095 at_xfail=no
3096 (
3097   $as_echo "12. $at_setup_line: testing $at_desc ..."
3098   $at_traceon
3099
3100
3101 { set +x
3102 $as_echo "$at_srcdir/rpmquery.at:117:
3103 runroot rpm \\
3104   -q --scripts \\
3105   -p /data/RPMS/hello-1.0-1.i386.rpm
3106 "
3107 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:117"
3108 ( $at_check_trace;
3109 runroot rpm \
3110   -q --scripts \
3111   -p /data/RPMS/hello-1.0-1.i386.rpm
3112
3113 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3114 at_status=$? at_failed=false
3115 $at_check_filter
3116 echo stderr:; cat "$at_stderr"
3117 echo >>"$at_stdout"; $as_echo "preinstall program: /bin/sh
3118 postinstall program: /bin/sh
3119 preuninstall program: /bin/sh
3120 postuninstall program: /bin/sh
3121 " | \
3122   $at_diff - "$at_stdout" || at_failed=:
3123 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:117"
3124 $at_failed && at_fn_log_failure
3125 $at_traceon; }
3126
3127   set +x
3128   $at_times_p && times >"$at_times_file"
3129 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3130 read at_status <"$at_status_file"
3131 #AT_STOP_12
3132 #AT_START_13
3133 at_fn_group_banner 13 'rpmquery.at:136' \
3134   "rpm -q on installed package" "                    " 3
3135 at_xfail=no
3136 (
3137   $as_echo "13. $at_setup_line: testing $at_desc ..."
3138   $at_traceon
3139
3140
3141
3142 { set +x
3143 $as_echo "$at_srcdir/rpmquery.at:139:
3144
3145 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
3146
3147
3148 runroot rpm --initdb
3149
3150
3151 runroot rpm \\
3152   --noscripts --nodeps --ignorearch --relocate=/usr=/check \\
3153   -i /data/RPMS/hello-1.0-1.ppc64.rpm
3154 "
3155 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmquery.at:139"
3156 ( $at_check_trace;
3157
3158 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
3159
3160
3161 runroot rpm --initdb
3162
3163
3164 runroot rpm \
3165   --noscripts --nodeps --ignorearch --relocate=/usr=/check \
3166   -i /data/RPMS/hello-1.0-1.ppc64.rpm
3167
3168 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3169 at_status=$? at_failed=false
3170 $at_check_filter
3171 at_fn_diff_devnull "$at_stderr" || at_failed=:
3172 at_fn_diff_devnull "$at_stdout" || at_failed=:
3173 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:139"
3174 $at_failed && at_fn_log_failure
3175 $at_traceon; }
3176
3177
3178 # check common NVRA combinations
3179 { set +x
3180 $as_echo "$at_srcdir/rpmquery.at:150:
3181 runroot rpm \\
3182   -q hello hello-1.0 hello-1.0-1 \\
3183      hello.ppc64 hello-1.0.ppc64 hello-1.0-1.ppc64
3184 "
3185 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:150"
3186 ( $at_check_trace;
3187 runroot rpm \
3188   -q hello hello-1.0 hello-1.0-1 \
3189      hello.ppc64 hello-1.0.ppc64 hello-1.0-1.ppc64
3190
3191 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3192 at_status=$? at_failed=false
3193 $at_check_filter
3194 echo stderr:; cat "$at_stderr"
3195 echo >>"$at_stdout"; $as_echo "hello-1.0-1.ppc64
3196 hello-1.0-1.ppc64
3197 hello-1.0-1.ppc64
3198 hello-1.0-1.ppc64
3199 hello-1.0-1.ppc64
3200 hello-1.0-1.ppc64
3201 " | \
3202   $at_diff - "$at_stdout" || at_failed=:
3203 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:150"
3204 $at_failed && at_fn_log_failure
3205 $at_traceon; }
3206
3207
3208
3209 { set +x
3210 $as_echo "$at_srcdir/rpmquery.at:166:
3211 runroot rpm \\
3212   -ql hello
3213 "
3214 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:166"
3215 ( $at_check_trace;
3216 runroot rpm \
3217   -ql hello
3218
3219 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3220 at_status=$? at_failed=false
3221 $at_check_filter
3222 echo stderr:; cat "$at_stderr"
3223 echo >>"$at_stdout"; $as_echo "/check/local/bin/hello
3224 /check/share/doc/hello-1.0
3225 /check/share/doc/hello-1.0/FAQ
3226 " | \
3227   $at_diff - "$at_stdout" || at_failed=:
3228 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:166"
3229 $at_failed && at_fn_log_failure
3230 $at_traceon; }
3231
3232
3233   set +x
3234   $at_times_p && times >"$at_times_file"
3235 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3236 read at_status <"$at_status_file"
3237 #AT_STOP_13
3238 #AT_START_14
3239 at_fn_group_banner 14 'rpmquery.at:180' \
3240   "integer array query" "                            " 3
3241 at_xfail=no
3242 (
3243   $as_echo "14. $at_setup_line: testing $at_desc ..."
3244   $at_traceon
3245
3246
3247 { set +x
3248 $as_echo "$at_srcdir/rpmquery.at:182:
3249 runroot rpm \\
3250   --queryformat=\"[%{filemodes}\\n]\" \\
3251   -qp /data/RPMS/hello-1.0-1.i386.rpm
3252 "
3253 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:182"
3254 ( $at_check_trace;
3255 runroot rpm \
3256   --queryformat="[%{filemodes}\n]" \
3257   -qp /data/RPMS/hello-1.0-1.i386.rpm
3258
3259 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3260 at_status=$? at_failed=false
3261 $at_check_filter
3262 at_fn_diff_devnull "$at_stderr" || at_failed=:
3263 echo >>"$at_stdout"; $as_echo "33257
3264 16877
3265 33188
3266 " | \
3267   $at_diff - "$at_stdout" || at_failed=:
3268 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:182"
3269 $at_failed && at_fn_log_failure
3270 $at_traceon; }
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_14
3277 #AT_START_15
3278 at_fn_group_banner 15 'rpmquery.at:196' \
3279   "formatted filesbypkg query" "                     " 3
3280 at_xfail=no
3281 (
3282   $as_echo "15. $at_setup_line: testing $at_desc ..."
3283   $at_traceon
3284
3285
3286 { set +x
3287 $as_echo "$at_srcdir/rpmquery.at:198:
3288 runroot rpm \\
3289   --queryformat=\"[%-10{=NAME} %{FILENAMES}\\n]\" \\
3290   -qp /data/RPMS/hello-1.0-1.i386.rpm
3291 "
3292 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:198"
3293 ( $at_check_trace;
3294 runroot rpm \
3295   --queryformat="[%-10{=NAME} %{FILENAMES}\n]" \
3296   -qp /data/RPMS/hello-1.0-1.i386.rpm
3297
3298 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3299 at_status=$? at_failed=false
3300 $at_check_filter
3301 at_fn_diff_devnull "$at_stderr" || at_failed=:
3302 echo >>"$at_stdout"; $as_echo "hello      /usr/local/bin/hello
3303 hello      /usr/share/doc/hello-1.0
3304 hello      /usr/share/doc/hello-1.0/FAQ
3305 " | \
3306   $at_diff - "$at_stdout" || at_failed=:
3307 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:198"
3308 $at_failed && at_fn_log_failure
3309 $at_traceon; }
3310
3311   set +x
3312   $at_times_p && times >"$at_times_file"
3313 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3314 read at_status <"$at_status_file"
3315 #AT_STOP_15
3316 #AT_START_16
3317 at_fn_group_banner 16 'rpmquery.at:212' \
3318   "hex formatted integer array extension query" "    " 3
3319 at_xfail=no
3320 (
3321   $as_echo "16. $at_setup_line: testing $at_desc ..."
3322   $at_traceon
3323
3324
3325 { set +x
3326 $as_echo "$at_srcdir/rpmquery.at:214:
3327 runroot rpm \\
3328   --queryformat=\"[%5{longfilesizes:hex}\\n]\" \\
3329   -qp /data/RPMS/hello-1.0-1.i386.rpm
3330 "
3331 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:214"
3332 ( $at_check_trace;
3333 runroot rpm \
3334   --queryformat="[%5{longfilesizes:hex}\n]" \
3335   -qp /data/RPMS/hello-1.0-1.i386.rpm
3336
3337 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3338 at_status=$? at_failed=false
3339 $at_check_filter
3340 at_fn_diff_devnull "$at_stderr" || at_failed=:
3341 echo >>"$at_stdout"; $as_echo "  b40
3342  1000
3343    24
3344 " | \
3345   $at_diff - "$at_stdout" || at_failed=:
3346 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:214"
3347 $at_failed && at_fn_log_failure
3348 $at_traceon; }
3349
3350   set +x
3351   $at_times_p && times >"$at_times_file"
3352 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3353 read at_status <"$at_status_file"
3354 #AT_STOP_16
3355 #AT_START_17
3356 at_fn_group_banner 17 'rpmquery.at:228' \
3357   "base64 extension query" "                         " 3
3358 at_xfail=no
3359 (
3360   $as_echo "17. $at_setup_line: testing $at_desc ..."
3361   $at_traceon
3362
3363
3364 { set +x
3365 $as_echo "$at_srcdir/rpmquery.at:230:
3366 runroot rpm \\
3367   --queryformat=\"%{pkgid:base64}\" \\
3368   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3369 "
3370 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:230"
3371 ( $at_check_trace;
3372 runroot rpm \
3373   --queryformat="%{pkgid:base64}" \
3374   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3375
3376 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3377 at_status=$? at_failed=false
3378 $at_check_filter
3379 at_fn_diff_devnull "$at_stderr" || at_failed=:
3380 echo >>"$at_stdout"; $as_echo "qt8W635v5FKy1pILrW+0uw==
3381 " | \
3382   $at_diff - "$at_stdout" || at_failed=:
3383 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:230"
3384 $at_failed && at_fn_log_failure
3385 $at_traceon; }
3386
3387   set +x
3388   $at_times_p && times >"$at_times_file"
3389 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3390 read at_status <"$at_status_file"
3391 #AT_STOP_17
3392 #AT_START_18
3393 at_fn_group_banner 18 'rpmquery.at:241' \
3394   "pgpsig extension query" "                         " 3
3395 at_xfail=no
3396 (
3397   $as_echo "18. $at_setup_line: testing $at_desc ..."
3398   $at_traceon
3399
3400
3401 { set +x
3402 $as_echo "$at_srcdir/rpmquery.at:243:
3403 runroot rpm \\
3404     --queryformat=\"%{rsaheader:pgpsig}\" \\
3405     -qp /data/RPMS/hello-2.0-1.x86_64-signed.rpm
3406 "
3407 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:243"
3408 ( $at_check_trace;
3409 runroot rpm \
3410     --queryformat="%{rsaheader:pgpsig}" \
3411     -qp /data/RPMS/hello-2.0-1.x86_64-signed.rpm
3412
3413 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3414 at_status=$? at_failed=false
3415 $at_check_filter
3416 echo >>"$at_stderr"; $as_echo "warning: /data/RPMS/hello-2.0-1.x86_64-signed.rpm: Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
3417 " | \
3418   $at_diff - "$at_stderr" || at_failed=:
3419 echo >>"$at_stdout"; $as_echo "RSA/SHA256, Thu Apr  6 13:02:33 2017, Key ID 4344591e1964c5fc" | \
3420   $at_diff - "$at_stdout" || at_failed=:
3421 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:243"
3422 $at_failed && at_fn_log_failure
3423 $at_traceon; }
3424
3425   set +x
3426   $at_times_p && times >"$at_times_file"
3427 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3428 read at_status <"$at_status_file"
3429 #AT_STOP_18
3430 #AT_START_19
3431 at_fn_group_banner 19 'rpmquery.at:255' \
3432   "integer array perms format query" "               " 3
3433 at_xfail=no
3434 (
3435   $as_echo "19. $at_setup_line: testing $at_desc ..."
3436   $at_traceon
3437
3438
3439 { set +x
3440 $as_echo "$at_srcdir/rpmquery.at:257:
3441 runroot rpm \\
3442   --queryformat=\"[%{filemodes:perms}\\n]\" \\
3443   -qp /data/RPMS/hello-1.0-1.i386.rpm
3444 "
3445 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:257"
3446 ( $at_check_trace;
3447 runroot rpm \
3448   --queryformat="[%{filemodes:perms}\n]" \
3449   -qp /data/RPMS/hello-1.0-1.i386.rpm
3450
3451 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3452 at_status=$? at_failed=false
3453 $at_check_filter
3454 at_fn_diff_devnull "$at_stderr" || at_failed=:
3455 echo >>"$at_stdout"; $as_echo "-rwxr-x--x
3456 drwxr-xr-x
3457 -rw-r--r--
3458 " | \
3459   $at_diff - "$at_stdout" || at_failed=:
3460 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:257"
3461 $at_failed && at_fn_log_failure
3462 $at_traceon; }
3463
3464   set +x
3465   $at_times_p && times >"$at_times_file"
3466 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3467 read at_status <"$at_status_file"
3468 #AT_STOP_19
3469 #AT_START_20
3470 at_fn_group_banner 20 'rpmquery.at:271' \
3471   "string array query" "                             " 3
3472 at_xfail=no
3473 (
3474   $as_echo "20. $at_setup_line: testing $at_desc ..."
3475   $at_traceon
3476
3477
3478 { set +x
3479 $as_echo "$at_srcdir/rpmquery.at:273:
3480 runroot rpm \\
3481   --queryformat=\"[%{basenames} ]\" \\
3482   -qp /data/RPMS/hello-1.0-1.i386.rpm
3483 "
3484 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:273"
3485 ( $at_check_trace;
3486 runroot rpm \
3487   --queryformat="[%{basenames} ]" \
3488   -qp /data/RPMS/hello-1.0-1.i386.rpm
3489
3490 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3491 at_status=$? at_failed=false
3492 $at_check_filter
3493 at_fn_diff_devnull "$at_stderr" || at_failed=:
3494 echo >>"$at_stdout"; $as_echo "hello hello-1.0 FAQ " | \
3495   $at_diff - "$at_stdout" || at_failed=:
3496 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:273"
3497 $at_failed && at_fn_log_failure
3498 $at_traceon; }
3499
3500   set +x
3501   $at_times_p && times >"$at_times_file"
3502 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3503 read at_status <"$at_status_file"
3504 #AT_STOP_20
3505 #AT_START_21
3506 at_fn_group_banner 21 'rpmquery.at:284' \
3507   "empty string array query" "                       " 3
3508 at_xfail=no
3509 (
3510   $as_echo "21. $at_setup_line: testing $at_desc ..."
3511   $at_traceon
3512
3513
3514 { set +x
3515 $as_echo "$at_srcdir/rpmquery.at:286:
3516 runroot rpm \\
3517   --queryformat=\"[%{basenames}]\" \\
3518   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3519 "
3520 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:286"
3521 ( $at_check_trace;
3522 runroot rpm \
3523   --queryformat="[%{basenames}]" \
3524   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3525
3526 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3527 at_status=$? at_failed=false
3528 $at_check_filter
3529 at_fn_diff_devnull "$at_stderr" || at_failed=:
3530 at_fn_diff_devnull "$at_stdout" || at_failed=:
3531 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:286"
3532 $at_failed && at_fn_log_failure
3533 $at_traceon; }
3534
3535   set +x
3536   $at_times_p && times >"$at_times_file"
3537 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3538 read at_status <"$at_status_file"
3539 #AT_STOP_21
3540 #AT_START_22
3541 at_fn_group_banner 22 'rpmquery.at:297' \
3542   "empty string array extension array format" "      " 3
3543 at_xfail=no
3544 (
3545   $as_echo "22. $at_setup_line: testing $at_desc ..."
3546   $at_traceon
3547
3548
3549 { set +x
3550 $as_echo "$at_srcdir/rpmquery.at:299:
3551 runroot rpm \\
3552   --queryformat=\"[%{filenames}]\" \\
3553   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3554 "
3555 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:299"
3556 ( $at_check_trace;
3557 runroot rpm \
3558   --queryformat="[%{filenames}]" \
3559   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3560
3561 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3562 at_status=$? at_failed=false
3563 $at_check_filter
3564 at_fn_diff_devnull "$at_stderr" || at_failed=:
3565 at_fn_diff_devnull "$at_stdout" || at_failed=:
3566 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:299"
3567 $at_failed && at_fn_log_failure
3568 $at_traceon; }
3569
3570   set +x
3571   $at_times_p && times >"$at_times_file"
3572 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3573 read at_status <"$at_status_file"
3574 #AT_STOP_22
3575 #AT_START_23
3576 at_fn_group_banner 23 'rpmquery.at:310' \
3577   "empty string array extension query" "             " 3
3578 at_xfail=no
3579 (
3580   $as_echo "23. $at_setup_line: testing $at_desc ..."
3581   $at_traceon
3582
3583
3584 { set +x
3585 $as_echo "$at_srcdir/rpmquery.at:312:
3586 runroot rpm \\
3587   --queryformat=\"%{filenames}\" \\
3588   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3589 "
3590 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:312"
3591 ( $at_check_trace;
3592 runroot rpm \
3593   --queryformat="%{filenames}" \
3594   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3595
3596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3597 at_status=$? at_failed=false
3598 $at_check_filter
3599 at_fn_diff_devnull "$at_stderr" || at_failed=:
3600 echo >>"$at_stdout"; $as_echo "(none)" | \
3601   $at_diff - "$at_stdout" || at_failed=:
3602 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:312"
3603 $at_failed && at_fn_log_failure
3604 $at_traceon; }
3605
3606   set +x
3607   $at_times_p && times >"$at_times_file"
3608 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3609 read at_status <"$at_status_file"
3610 #AT_STOP_23
3611 #AT_START_24
3612 at_fn_group_banner 24 'rpmquery.at:323' \
3613   "different sizes arrays query 1" "                 " 3
3614 at_xfail=no
3615 (
3616   $as_echo "24. $at_setup_line: testing $at_desc ..."
3617   $at_traceon
3618
3619
3620 { set +x
3621 $as_echo "$at_srcdir/rpmquery.at:325:
3622 runroot rpm \\
3623   --queryformat=\"[%{basenames} %{changelogname}]\\n\" \\
3624   -qp /data/RPMS/hello-1.0-1.i386.rpm
3625 "
3626 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:325"
3627 ( $at_check_trace;
3628 runroot rpm \
3629   --queryformat="[%{basenames} %{changelogname}]\n" \
3630   -qp /data/RPMS/hello-1.0-1.i386.rpm
3631
3632 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3633 at_status=$? at_failed=false
3634 $at_check_filter
3635 echo >>"$at_stderr"; $as_echo "error: incorrect format: array iterator used with different sized arrays
3636 " | \
3637   $at_diff - "$at_stderr" || at_failed=:
3638 at_fn_diff_devnull "$at_stdout" || at_failed=:
3639 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:325"
3640 $at_failed && at_fn_log_failure
3641 $at_traceon; }
3642
3643   set +x
3644   $at_times_p && times >"$at_times_file"
3645 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3646 read at_status <"$at_status_file"
3647 #AT_STOP_24
3648 #AT_START_25
3649 at_fn_group_banner 25 'rpmquery.at:339' \
3650   "different sizes arrays query 2" "                 " 3
3651 at_xfail=no
3652 (
3653   $as_echo "25. $at_setup_line: testing $at_desc ..."
3654   $at_traceon
3655
3656
3657 { set +x
3658 $as_echo "$at_srcdir/rpmquery.at:341:
3659 runroot rpm \\
3660   --queryformat=\"[%{name} %{changelogtime}]\\n\" \\
3661   -qp /data/RPMS/hello-1.0-1.i386.rpm
3662 "
3663 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:341"
3664 ( $at_check_trace;
3665 runroot rpm \
3666   --queryformat="[%{name} %{changelogtime}]\n" \
3667   -qp /data/RPMS/hello-1.0-1.i386.rpm
3668
3669 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3670 at_status=$? at_failed=false
3671 $at_check_filter
3672 at_fn_diff_devnull "$at_stderr" || at_failed=:
3673 echo >>"$at_stdout"; $as_echo "hello 908877600
3674 " | \
3675   $at_diff - "$at_stdout" || at_failed=:
3676 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:341"
3677 $at_failed && at_fn_log_failure
3678 $at_traceon; }
3679
3680   set +x
3681   $at_times_p && times >"$at_times_file"
3682 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3683 read at_status <"$at_status_file"
3684 #AT_STOP_25
3685 #AT_START_26
3686 at_fn_group_banner 26 'rpmquery.at:353' \
3687   "different sizes arrays query 3" "                 " 3
3688 at_xfail=no
3689 (
3690   $as_echo "26. $at_setup_line: testing $at_desc ..."
3691   $at_traceon
3692
3693
3694 { set +x
3695 $as_echo "$at_srcdir/rpmquery.at:355:
3696 runroot rpm \\
3697   --queryformat=\"[%{name} %{basenames}]\\n\" \\
3698   -qp /data/RPMS/hello-1.0-1.i386.rpm
3699 "
3700 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:355"
3701 ( $at_check_trace;
3702 runroot rpm \
3703   --queryformat="[%{name} %{basenames}]\n" \
3704   -qp /data/RPMS/hello-1.0-1.i386.rpm
3705
3706 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3707 at_status=$? at_failed=false
3708 $at_check_filter
3709 echo >>"$at_stderr"; $as_echo "error: incorrect format: array iterator used with different sized arrays
3710 " | \
3711   $at_diff - "$at_stderr" || at_failed=:
3712 at_fn_diff_devnull "$at_stdout" || at_failed=:
3713 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:355"
3714 $at_failed && at_fn_log_failure
3715 $at_traceon; }
3716
3717   set +x
3718   $at_times_p && times >"$at_times_file"
3719 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3720 read at_status <"$at_status_file"
3721 #AT_STOP_26
3722 #AT_START_27
3723 at_fn_group_banner 27 'rpmquery.at:367' \
3724   "different sizes arrays query 4" "                 " 3
3725 at_xfail=no
3726 (
3727   $as_echo "27. $at_setup_line: testing $at_desc ..."
3728   $at_traceon
3729
3730
3731 { set +x
3732 $as_echo "$at_srcdir/rpmquery.at:369:
3733 runroot rpm \\
3734   --queryformat=\"[%{=name} %{basenames}\\n]\" \\
3735   -qp /data/RPMS/hello-1.0-1.i386.rpm
3736 "
3737 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:369"
3738 ( $at_check_trace;
3739 runroot rpm \
3740   --queryformat="[%{=name} %{basenames}\n]" \
3741   -qp /data/RPMS/hello-1.0-1.i386.rpm
3742
3743 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3744 at_status=$? at_failed=false
3745 $at_check_filter
3746 at_fn_diff_devnull "$at_stderr" || at_failed=:
3747 echo >>"$at_stdout"; $as_echo "hello hello
3748 hello hello-1.0
3749 hello FAQ
3750 " | \
3751   $at_diff - "$at_stdout" || at_failed=:
3752 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:369"
3753 $at_failed && at_fn_log_failure
3754 $at_traceon; }
3755
3756
3757   set +x
3758   $at_times_p && times >"$at_times_file"
3759 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3760 read at_status <"$at_status_file"
3761 #AT_STOP_27
3762 #AT_START_28
3763 at_fn_group_banner 28 'rpmquery.at:383' \
3764   "non-existent string tag" "                        " 3
3765 at_xfail=no
3766 (
3767   $as_echo "28. $at_setup_line: testing $at_desc ..."
3768   $at_traceon
3769
3770
3771 { set +x
3772 $as_echo "$at_srcdir/rpmquery.at:385:
3773 runroot rpm \\
3774   --queryformat=\"%{vendor}\" \\
3775   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3776 "
3777 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:385"
3778 ( $at_check_trace;
3779 runroot rpm \
3780   --queryformat="%{vendor}" \
3781   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3782
3783 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3784 at_status=$? at_failed=false
3785 $at_check_filter
3786 at_fn_diff_devnull "$at_stderr" || at_failed=:
3787 echo >>"$at_stdout"; $as_echo "(none)" | \
3788   $at_diff - "$at_stdout" || at_failed=:
3789 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:385"
3790 $at_failed && at_fn_log_failure
3791 $at_traceon; }
3792
3793   set +x
3794   $at_times_p && times >"$at_times_file"
3795 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3796 read at_status <"$at_status_file"
3797 #AT_STOP_28
3798 #AT_START_29
3799 at_fn_group_banner 29 'rpmquery.at:396' \
3800   "non-existent integer tag query" "                 " 3
3801 at_xfail=no
3802 (
3803   $as_echo "29. $at_setup_line: testing $at_desc ..."
3804   $at_traceon
3805
3806
3807 { set +x
3808 $as_echo "$at_srcdir/rpmquery.at:398:
3809 runroot rpm \\
3810   --queryformat=\"%{installcolor}\" \\
3811   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3812 "
3813 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:398"
3814 ( $at_check_trace;
3815 runroot rpm \
3816   --queryformat="%{installcolor}" \
3817   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3818
3819 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3820 at_status=$? at_failed=false
3821 $at_check_filter
3822 at_fn_diff_devnull "$at_stderr" || at_failed=:
3823 echo >>"$at_stdout"; $as_echo "(none)" | \
3824   $at_diff - "$at_stdout" || at_failed=:
3825 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:398"
3826 $at_failed && at_fn_log_failure
3827 $at_traceon; }
3828
3829   set +x
3830   $at_times_p && times >"$at_times_file"
3831 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3832 read at_status <"$at_status_file"
3833 #AT_STOP_29
3834 #AT_START_30
3835 at_fn_group_banner 30 'rpmquery.at:409' \
3836   "conditional queryformat" "                        " 3
3837 at_xfail=no
3838 (
3839   $as_echo "30. $at_setup_line: testing $at_desc ..."
3840   $at_traceon
3841
3842
3843 { set +x
3844 $as_echo "$at_srcdir/rpmquery.at:411:
3845 runroot rpm \\
3846   --queryformat=\"%|name?{%{name}}:{no}| %|installtime?{%{installtime}}:{(not installed)}|\" \\
3847   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3848 "
3849 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:411"
3850 ( $at_check_trace;
3851 runroot rpm \
3852   --queryformat="%|name?{%{name}}:{no}| %|installtime?{%{installtime}}:{(not installed)}|" \
3853   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3854
3855 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3856 at_status=$? at_failed=false
3857 $at_check_filter
3858 at_fn_diff_devnull "$at_stderr" || at_failed=:
3859 echo >>"$at_stdout"; $as_echo "foo (not installed)" | \
3860   $at_diff - "$at_stdout" || at_failed=:
3861 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:411"
3862 $at_failed && at_fn_log_failure
3863 $at_traceon; }
3864
3865   set +x
3866   $at_times_p && times >"$at_times_file"
3867 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3868 read at_status <"$at_status_file"
3869 #AT_STOP_30
3870 #AT_START_31
3871 at_fn_group_banner 31 'rpmquery.at:422' \
3872   "invalid tag query" "                              " 3
3873 at_xfail=no
3874 (
3875   $as_echo "31. $at_setup_line: testing $at_desc ..."
3876   $at_traceon
3877
3878
3879 { set +x
3880 $as_echo "$at_srcdir/rpmquery.at:424:
3881 runroot rpm \\
3882   --queryformat=\"%{notag}\" \\
3883   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3884 "
3885 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:424"
3886 ( $at_check_trace;
3887 runroot rpm \
3888   --queryformat="%{notag}" \
3889   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3890
3891 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3892 at_status=$? at_failed=false
3893 $at_check_filter
3894 echo >>"$at_stderr"; $as_echo "error: incorrect format: unknown tag: \"notag\"
3895 " | \
3896   $at_diff - "$at_stderr" || at_failed=:
3897 at_fn_diff_devnull "$at_stdout" || at_failed=:
3898 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:424"
3899 $at_failed && at_fn_log_failure
3900 $at_traceon; }
3901
3902   set +x
3903   $at_times_p && times >"$at_times_file"
3904 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3905 read at_status <"$at_status_file"
3906 #AT_STOP_31
3907 #AT_START_32
3908 at_fn_group_banner 32 'rpmquery.at:436' \
3909   "invalid data for format query" "                  " 3
3910 at_xfail=no
3911 (
3912   $as_echo "32. $at_setup_line: testing $at_desc ..."
3913   $at_traceon
3914
3915
3916 { set +x
3917 $as_echo "$at_srcdir/rpmquery.at:438:
3918 runroot rpm \\
3919   --queryformat=\"%{name:depflags}\" \\
3920   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3921 "
3922 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:438"
3923 ( $at_check_trace;
3924 runroot rpm \
3925   --queryformat="%{name:depflags}" \
3926   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3927
3928 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3929 at_status=$? at_failed=false
3930 $at_check_filter
3931 at_fn_diff_devnull "$at_stderr" || at_failed=:
3932 echo >>"$at_stdout"; $as_echo "(not a number)" | \
3933   $at_diff - "$at_stdout" || at_failed=:
3934 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:438"
3935 $at_failed && at_fn_log_failure
3936 $at_traceon; }
3937
3938   set +x
3939   $at_times_p && times >"$at_times_file"
3940 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3941 read at_status <"$at_status_file"
3942 #AT_STOP_32
3943 #AT_START_33
3944 at_fn_group_banner 33 'rpmquery.at:449' \
3945   "invalid format width query" "                     " 3
3946 at_xfail=no
3947 (
3948   $as_echo "33. $at_setup_line: testing $at_desc ..."
3949   $at_traceon
3950
3951
3952 { set +x
3953 $as_echo "$at_srcdir/rpmquery.at:451:
3954 runroot rpm \\
3955   --queryformat=\"%ss{size}\" \\
3956   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3957 "
3958 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:451"
3959 ( $at_check_trace;
3960 runroot rpm \
3961   --queryformat="%ss{size}" \
3962   -qp /data/RPMS/foo-1.0-1.noarch.rpm
3963
3964 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3965 at_status=$? at_failed=false
3966 $at_check_filter
3967 echo >>"$at_stderr"; $as_echo "error: incorrect format: invalid field width
3968 " | \
3969   $at_diff - "$at_stderr" || at_failed=:
3970 at_fn_diff_devnull "$at_stdout" || at_failed=:
3971 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:451"
3972 $at_failed && at_fn_log_failure
3973 $at_traceon; }
3974
3975   set +x
3976   $at_times_p && times >"$at_times_file"
3977 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
3978 read at_status <"$at_status_file"
3979 #AT_STOP_33
3980 #AT_START_34
3981 at_fn_group_banner 34 'rpmquery.at:462' \
3982   "xml format" "                                     " 3
3983 at_xfail=no
3984 (
3985   $as_echo "34. $at_setup_line: testing $at_desc ..."
3986   $at_traceon
3987
3988
3989 { set +x
3990 $as_echo "$at_srcdir/rpmquery.at:464:
3991 runroot rpm -qp --xml  data/RPMS/hello-2.0-1.x86_64.rpm
3992 "
3993 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:464"
3994 ( $at_check_trace;
3995 runroot rpm -qp --xml  data/RPMS/hello-2.0-1.x86_64.rpm
3996
3997 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3998 at_status=$? at_failed=false
3999 $at_check_filter
4000 at_fn_diff_devnull "$at_stderr" || at_failed=:
4001 echo >>"$at_stdout"; $as_echo "<rpmHeader>
4002   <rpmTag name=\"Headeri18ntable\">
4003         <string>C</string>
4004   </rpmTag>
4005   <rpmTag name=\"Sigsize\">
4006         <integer>5411</integer>
4007   </rpmTag>
4008   <rpmTag name=\"Sigmd5\">
4009         <base64>E3yh2LNcygKhhUujAcVDLg==
4010 </base64>
4011   </rpmTag>
4012   <rpmTag name=\"Sha1header\">
4013         <string>5cd9874c510b67b44483f9e382a1649ef7743bac</string>
4014   </rpmTag>
4015   <rpmTag name=\"Sha256header\">
4016         <string>ef920781af3bf072ae9888eec3de1c589143101dff9cc0b561468d395fb766d9</string>
4017   </rpmTag>
4018   <rpmTag name=\"Name\">
4019         <string>hello</string>
4020   </rpmTag>
4021   <rpmTag name=\"Version\">
4022         <string>2.0</string>
4023   </rpmTag>
4024   <rpmTag name=\"Release\">
4025         <string>1</string>
4026   </rpmTag>
4027   <rpmTag name=\"Summary\">
4028         <string>hello -- hello, world rpm</string>
4029   </rpmTag>
4030   <rpmTag name=\"Description\">
4031         <string>Simple rpm demonstration.</string>
4032   </rpmTag>
4033   <rpmTag name=\"Buildtime\">
4034         <integer>1227355200</integer>
4035   </rpmTag>
4036   <rpmTag name=\"Buildhost\">
4037         <string>localhost</string>
4038   </rpmTag>
4039   <rpmTag name=\"Size\">
4040         <integer>7243</integer>
4041   </rpmTag>
4042   <rpmTag name=\"License\">
4043         <string>GPL</string>
4044   </rpmTag>
4045   <rpmTag name=\"Group\">
4046         <string>Testing</string>
4047   </rpmTag>
4048   <rpmTag name=\"Os\">
4049         <string>linux</string>
4050   </rpmTag>
4051   <rpmTag name=\"Arch\">
4052         <string>x86_64</string>
4053   </rpmTag>
4054   <rpmTag name=\"Filesizes\">
4055         <integer>7120</integer>
4056         <integer>4096</integer>
4057         <integer>48</integer>
4058         <integer>36</integer>
4059         <integer>39</integer>
4060   </rpmTag>
4061   <rpmTag name=\"Filemodes\">
4062         <integer>33257</integer>
4063         <integer>16877</integer>
4064         <integer>33188</integer>
4065         <integer>33188</integer>
4066         <integer>33188</integer>
4067   </rpmTag>
4068   <rpmTag name=\"Filerdevs\">
4069         <integer>0</integer>
4070         <integer>0</integer>
4071         <integer>0</integer>
4072         <integer>0</integer>
4073         <integer>0</integer>
4074   </rpmTag>
4075   <rpmTag name=\"Filemtimes\">
4076         <integer>1489670606</integer>
4077         <integer>1489670606</integer>
4078         <integer>908894882</integer>
4079         <integer>908895030</integer>
4080         <integer>908884468</integer>
4081   </rpmTag>
4082   <rpmTag name=\"Filedigests\">
4083         <string>c89fa87aeb1143969c0b6be9334b21d932f77f74e8f60120b5de316406369cf0</string>
4084         <string/>
4085         <string>fac3b28492ecdc16da172a6f1a432ceed356ca4d9248157b2a962b395e37b3b0</string>
4086         <string>678b87e217a415f05e43460e2c7b668245b412e2b4f18a75aa7399d9774ed0b4</string>
4087         <string>d63fdc6c986106f57230f217d36b2395d83ecf491d2b7187af714dc8db9629e9</string>
4088   </rpmTag>
4089   <rpmTag name=\"Filelinktos\">
4090         <string/>
4091         <string/>
4092         <string/>
4093         <string/>
4094         <string/>
4095   </rpmTag>
4096   <rpmTag name=\"Fileflags\">
4097         <integer>0</integer>
4098         <integer>0</integer>
4099         <integer>2</integer>
4100         <integer>2</integer>
4101         <integer>2</integer>
4102   </rpmTag>
4103   <rpmTag name=\"Fileusername\">
4104         <string>root</string>
4105         <string>root</string>
4106         <string>root</string>
4107         <string>root</string>
4108         <string>root</string>
4109   </rpmTag>
4110   <rpmTag name=\"Filegroupname\">
4111         <string>root</string>
4112         <string>root</string>
4113         <string>root</string>
4114         <string>root</string>
4115         <string>root</string>
4116   </rpmTag>
4117   <rpmTag name=\"Sourcerpm\">
4118         <string>hello-2.0-1.src.rpm</string>
4119   </rpmTag>
4120   <rpmTag name=\"Fileverifyflags\">
4121         <integer>4294967295</integer>
4122         <integer>0</integer>
4123         <integer>4294967295</integer>
4124         <integer>4294967295</integer>
4125         <integer>4294967295</integer>
4126   </rpmTag>
4127   <rpmTag name=\"Archivesize\">
4128         <integer>8060</integer>
4129   </rpmTag>
4130   <rpmTag name=\"Providename\">
4131         <string>hello</string>
4132         <string>hello(x86-64)</string>
4133   </rpmTag>
4134   <rpmTag name=\"Requireflags\">
4135         <integer>16384</integer>
4136         <integer>16384</integer>
4137         <integer>16777226</integer>
4138         <integer>16777226</integer>
4139         <integer>16777226</integer>
4140         <integer>16384</integer>
4141   </rpmTag>
4142   <rpmTag name=\"Requirename\">
4143         <string>libc.so.6()(64bit)</string>
4144         <string>libc.so.6(GLIBC_2.2.5)(64bit)</string>
4145         <string>rpmlib(CompressedFileNames)</string>
4146         <string>rpmlib(FileDigests)</string>
4147         <string>rpmlib(PayloadFilesHavePrefix)</string>
4148         <string>rtld(GNU_HASH)</string>
4149   </rpmTag>
4150   <rpmTag name=\"Requireversion\">
4151         <string/>
4152         <string/>
4153         <string>3.0.4-1</string>
4154         <string>4.6.0-1</string>
4155         <string>4.0-1</string>
4156         <string/>
4157   </rpmTag>
4158   <rpmTag name=\"Rpmversion\">
4159         <string>4.13.90</string>
4160   </rpmTag>
4161   <rpmTag name=\"Changelogtime\">
4162         <integer>1227355200</integer>
4163         <integer>908884800</integer>
4164   </rpmTag>
4165   <rpmTag name=\"Changelogname\">
4166         <string>Panu Matilainen &lt;pmatilai@redhat.com&gt;</string>
4167         <string>Jeff Johnson &lt;jbj@redhat.com&gt;</string>
4168   </rpmTag>
4169   <rpmTag name=\"Changelogtext\">
4170         <string>- updated version</string>
4171         <string>- create.</string>
4172   </rpmTag>
4173   <rpmTag name=\"Filedevices\">
4174         <integer>1</integer>
4175         <integer>1</integer>
4176         <integer>1</integer>
4177         <integer>1</integer>
4178         <integer>1</integer>
4179   </rpmTag>
4180   <rpmTag name=\"Fileinodes\">
4181         <integer>1</integer>
4182         <integer>2</integer>
4183         <integer>3</integer>
4184         <integer>4</integer>
4185         <integer>5</integer>
4186   </rpmTag>
4187   <rpmTag name=\"Filelangs\">
4188         <string/>
4189         <string/>
4190         <string/>
4191         <string/>
4192         <string/>
4193   </rpmTag>
4194   <rpmTag name=\"Prefixes\">
4195         <string>/usr</string>
4196   </rpmTag>
4197   <rpmTag name=\"Provideflags\">
4198         <integer>8</integer>
4199         <integer>8</integer>
4200   </rpmTag>
4201   <rpmTag name=\"Provideversion\">
4202         <string>2.0-1</string>
4203         <string>2.0-1</string>
4204   </rpmTag>
4205   <rpmTag name=\"Dirindexes\">
4206         <integer>0</integer>
4207         <integer>1</integer>
4208         <integer>2</integer>
4209         <integer>2</integer>
4210         <integer>2</integer>
4211   </rpmTag>
4212   <rpmTag name=\"Basenames\">
4213         <string>hello</string>
4214         <string>hello-2.0</string>
4215         <string>COPYING</string>
4216         <string>FAQ</string>
4217         <string>README</string>
4218   </rpmTag>
4219   <rpmTag name=\"Dirnames\">
4220         <string>/usr/bin/</string>
4221         <string>/usr/share/doc/</string>
4222         <string>/usr/share/doc/hello-2.0/</string>
4223   </rpmTag>
4224   <rpmTag name=\"Optflags\">
4225         <string>-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic</string>
4226   </rpmTag>
4227   <rpmTag name=\"Payloadformat\">
4228         <string>cpio</string>
4229   </rpmTag>
4230   <rpmTag name=\"Payloadcompressor\">
4231         <string>gzip</string>
4232   </rpmTag>
4233   <rpmTag name=\"Payloadflags\">
4234         <string>9</string>
4235   </rpmTag>
4236   <rpmTag name=\"Platform\">
4237         <string>x86_64-redhat-linux-gnu</string>
4238   </rpmTag>
4239   <rpmTag name=\"Filecolors\">
4240         <integer>2</integer>
4241         <integer>0</integer>
4242         <integer>0</integer>
4243         <integer>0</integer>
4244         <integer>0</integer>
4245   </rpmTag>
4246   <rpmTag name=\"Fileclass\">
4247         <integer>0</integer>
4248         <integer>1</integer>
4249         <integer>2</integer>
4250         <integer>2</integer>
4251         <integer>2</integer>
4252   </rpmTag>
4253   <rpmTag name=\"Classdict\">
4254         <string>ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=775fdcb927e4300adbe83cfacec3cfeb1f63fe17, stripped</string>
4255         <string>directory</string>
4256         <string>ASCII text</string>
4257   </rpmTag>
4258   <rpmTag name=\"Filedependsx\">
4259         <integer>0</integer>
4260         <integer>0</integer>
4261         <integer>0</integer>
4262         <integer>0</integer>
4263         <integer>0</integer>
4264   </rpmTag>
4265   <rpmTag name=\"Filedependsn\">
4266         <integer>3</integer>
4267         <integer>0</integer>
4268         <integer>0</integer>
4269         <integer>0</integer>
4270         <integer>0</integer>
4271   </rpmTag>
4272   <rpmTag name=\"Dependsdict\">
4273         <integer>1375731713</integer>
4274         <integer>1375731712</integer>
4275         <integer>1375731717</integer>
4276   </rpmTag>
4277   <rpmTag name=\"Filedigestalgo\">
4278         <integer>8</integer>
4279   </rpmTag>
4280   <rpmTag name=\"Encoding\">
4281         <string>utf-8</string>
4282   </rpmTag>
4283   <rpmTag name=\"Payloaddigest\">
4284         <string>84a7338287bf19715c4eed0243f5cdb447eeb0ade37b2af718d4060aefca2f7c</string>
4285   </rpmTag>
4286   <rpmTag name=\"Payloaddigestalgo\">
4287         <integer>8</integer>
4288   </rpmTag>
4289 </rpmHeader>
4290 " | \
4291   $at_diff - "$at_stdout" || at_failed=:
4292 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:464"
4293 $at_failed && at_fn_log_failure
4294 $at_traceon; }
4295
4296   set +x
4297   $at_times_p && times >"$at_times_file"
4298 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4299 read at_status <"$at_status_file"
4300 #AT_STOP_34
4301 #AT_START_35
4302 at_fn_group_banner 35 'rpmquery.at:761' \
4303   "query file attribute filtering" "                 " 3
4304 at_xfail=no
4305 (
4306   $as_echo "35. $at_setup_line: testing $at_desc ..."
4307   $at_traceon
4308
4309
4310 { set +x
4311 $as_echo "$at_srcdir/rpmquery.at:763:
4312 runroot rpmbuild -bb --quiet \\
4313   /data/SPECS/vattrtest.spec
4314
4315 pkg=\"/build/RPMS/noarch/vattrtest-1.0-1.noarch.rpm\"
4316 cmd=\"rpm -qpl\"
4317 for filter in --noconfig --noghost --noartifact -A -c -d -L; do
4318     echo \${filter}
4319     runroot \${cmd} \${filter} \${pkg}
4320 done
4321 "
4322 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmquery.at:763"
4323 ( $at_check_trace;
4324 runroot rpmbuild -bb --quiet \
4325   /data/SPECS/vattrtest.spec
4326
4327 pkg="/build/RPMS/noarch/vattrtest-1.0-1.noarch.rpm"
4328 cmd="rpm -qpl"
4329 for filter in --noconfig --noghost --noartifact -A -c -d -L; do
4330     echo ${filter}
4331     runroot ${cmd} ${filter} ${pkg}
4332 done
4333
4334 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4335 at_status=$? at_failed=false
4336 $at_check_filter
4337 at_fn_diff_devnull "$at_stderr" || at_failed=:
4338 echo >>"$at_stdout"; $as_echo "--noconfig
4339 /opt/vattrtest
4340 /opt/vattrtest/a
4341 /opt/vattrtest/d
4342 /opt/vattrtest/g
4343 /opt/vattrtest/l
4344 /opt/vattrtest/m
4345 /opt/vattrtest/r
4346 --noghost
4347 /opt/vattrtest
4348 /opt/vattrtest/a
4349 /opt/vattrtest/c
4350 /opt/vattrtest/cn
4351 /opt/vattrtest/d
4352 /opt/vattrtest/l
4353 /opt/vattrtest/m
4354 /opt/vattrtest/r
4355 --noartifact
4356 /opt/vattrtest
4357 /opt/vattrtest/c
4358 /opt/vattrtest/cn
4359 /opt/vattrtest/d
4360 /opt/vattrtest/g
4361 /opt/vattrtest/l
4362 /opt/vattrtest/m
4363 /opt/vattrtest/r
4364 -A
4365 /opt/vattrtest/a
4366 -c
4367 /opt/vattrtest/c
4368 /opt/vattrtest/cn
4369 -d
4370 /opt/vattrtest/d
4371 -L
4372 /opt/vattrtest/l
4373 " | \
4374   $at_diff - "$at_stdout" || at_failed=:
4375 at_fn_check_status 0 $at_status "$at_srcdir/rpmquery.at:763"
4376 $at_failed && at_fn_log_failure
4377 $at_traceon; }
4378
4379   set +x
4380   $at_times_p && times >"$at_times_file"
4381 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4382 read at_status <"$at_status_file"
4383 #AT_STOP_35
4384 #AT_START_36
4385 at_fn_group_banner 36 'rpmverify.at:7' \
4386   "dependency problems" "                            " 4
4387 at_xfail=no
4388 (
4389   $as_echo "36. $at_setup_line: testing $at_desc ..."
4390   $at_traceon
4391
4392
4393 { set +x
4394 $as_echo "$at_srcdir/rpmverify.at:9:
4395
4396 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4397
4398
4399 runroot rpm --initdb
4400
4401 rm -rf \"\${TOPDIR}\"
4402
4403 runroot rpmbuild --quiet -bb \\
4404         --define \"pkg one\" \\
4405         --define \"reqs deptest-two\" \\
4406           /data/SPECS/deptest.spec
4407
4408 runroot rpm -U --nodeps /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
4409 runroot rpm -Va --nofiles
4410 "
4411 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:9"
4412 ( $at_check_trace;
4413
4414 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4415
4416
4417 runroot rpm --initdb
4418
4419 rm -rf "${TOPDIR}"
4420
4421 runroot rpmbuild --quiet -bb \
4422         --define "pkg one" \
4423         --define "reqs deptest-two" \
4424           /data/SPECS/deptest.spec
4425
4426 runroot rpm -U --nodeps /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
4427 runroot rpm -Va --nofiles
4428
4429 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4430 at_status=$? at_failed=false
4431 $at_check_filter
4432 at_fn_diff_devnull "$at_stderr" || at_failed=:
4433 echo >>"$at_stdout"; $as_echo "Unsatisfied dependencies for deptest-one-1.0-1.noarch:
4434         deptest-two is needed by (installed) deptest-one-1.0-1.noarch
4435 " | \
4436   $at_diff - "$at_stdout" || at_failed=:
4437 at_fn_check_status 1 $at_status "$at_srcdir/rpmverify.at:9"
4438 $at_failed && at_fn_log_failure
4439 $at_traceon; }
4440
4441   set +x
4442   $at_times_p && times >"$at_times_file"
4443 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4444 read at_status <"$at_status_file"
4445 #AT_STOP_36
4446 #AT_START_37
4447 at_fn_group_banner 37 'rpmverify.at:32' \
4448   "files with no problems" "                         " 4
4449 at_xfail=no
4450 (
4451   $as_echo "37. $at_setup_line: testing $at_desc ..."
4452   $at_traceon
4453
4454
4455 { set +x
4456 $as_echo "$at_srcdir/rpmverify.at:34:
4457
4458 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4459
4460
4461 runroot rpm --initdb
4462
4463
4464 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \\
4465         /data/RPMS/hello-1.0-1.i386.rpm
4466 runroot rpm -Va --nodeps --nouser --nogroup
4467 "
4468 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:34"
4469 ( $at_check_trace;
4470
4471 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4472
4473
4474 runroot rpm --initdb
4475
4476
4477 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \
4478         /data/RPMS/hello-1.0-1.i386.rpm
4479 runroot rpm -Va --nodeps --nouser --nogroup
4480
4481 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4482 at_status=$? at_failed=false
4483 $at_check_filter
4484 at_fn_diff_devnull "$at_stderr" || at_failed=:
4485 at_fn_diff_devnull "$at_stdout" || at_failed=:
4486 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:34"
4487 $at_failed && at_fn_log_failure
4488 $at_traceon; }
4489
4490   set +x
4491   $at_times_p && times >"$at_times_file"
4492 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4493 read at_status <"$at_status_file"
4494 #AT_STOP_37
4495 #AT_START_38
4496 at_fn_group_banner 38 'rpmverify.at:48' \
4497   "files with no problems in verbose mode" "         " 4
4498 at_xfail=no
4499 (
4500   $as_echo "38. $at_setup_line: testing $at_desc ..."
4501   $at_traceon
4502
4503
4504 { set +x
4505 $as_echo "$at_srcdir/rpmverify.at:50:
4506
4507 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4508
4509
4510 runroot rpm --initdb
4511
4512
4513 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \\
4514         /data/RPMS/hello-1.0-1.i386.rpm
4515 runroot rpm -Vva --nodeps --nouser --nogroup
4516 "
4517 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:50"
4518 ( $at_check_trace;
4519
4520 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4521
4522
4523 runroot rpm --initdb
4524
4525
4526 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \
4527         /data/RPMS/hello-1.0-1.i386.rpm
4528 runroot rpm -Vva --nodeps --nouser --nogroup
4529
4530 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4531 at_status=$? at_failed=false
4532 $at_check_filter
4533 at_fn_diff_devnull "$at_stderr" || at_failed=:
4534 echo >>"$at_stdout"; $as_echo ".........    /usr/local/bin/hello
4535 .........    /usr/share/doc/hello-1.0
4536 .........  d /usr/share/doc/hello-1.0/FAQ
4537 " | \
4538   $at_diff - "$at_stdout" || at_failed=:
4539 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:50"
4540 $at_failed && at_fn_log_failure
4541 $at_traceon; }
4542
4543   set +x
4544   $at_times_p && times >"$at_times_file"
4545 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4546 read at_status <"$at_status_file"
4547 #AT_STOP_38
4548 #AT_START_39
4549 at_fn_group_banner 39 'rpmverify.at:67' \
4550   "directory replaced with a directory symlink" "    " 4
4551 at_xfail=no
4552 (
4553   $as_echo "39. $at_setup_line: testing $at_desc ..."
4554   $at_traceon
4555
4556
4557 { set +x
4558 $as_echo "$at_srcdir/rpmverify.at:69:
4559
4560 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4561
4562
4563 runroot rpm --initdb
4564
4565 tf=\"\${RPMTEST}\"/opt/foo
4566 rm -rf \"\${RPMTEST}\"/opt/*
4567 rm -rf \"\${TOPDIR}\"
4568
4569 runroot rpmbuild --quiet -bb \\
4570         --define \"ver 1.0\" \\
4571         --define \"filetype datadir\" \\
4572         --define \"filedata README1\" \\
4573         --define \"user \$(id -u -n)\" \\
4574         --define \"grp \$(id -g -n)\" \\
4575           /data/SPECS/replacetest.spec
4576
4577 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
4578 mv \"\${RPMTEST}\"/opt/foo \"\${RPMTEST}\"/opt/was
4579 ln -s was \"\${RPMTEST}\"/opt/foo
4580 runroot rpm -Vv replacetest
4581 "
4582 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:69"
4583 ( $at_check_trace;
4584
4585 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4586
4587
4588 runroot rpm --initdb
4589
4590 tf="${RPMTEST}"/opt/foo
4591 rm -rf "${RPMTEST}"/opt/*
4592 rm -rf "${TOPDIR}"
4593
4594 runroot rpmbuild --quiet -bb \
4595         --define "ver 1.0" \
4596         --define "filetype datadir" \
4597         --define "filedata README1" \
4598         --define "user $(id -u -n)" \
4599         --define "grp $(id -g -n)" \
4600           /data/SPECS/replacetest.spec
4601
4602 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
4603 mv "${RPMTEST}"/opt/foo "${RPMTEST}"/opt/was
4604 ln -s was "${RPMTEST}"/opt/foo
4605 runroot rpm -Vv replacetest
4606
4607 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4608 at_status=$? at_failed=false
4609 $at_check_filter
4610 at_fn_diff_devnull "$at_stderr" || at_failed=:
4611 echo >>"$at_stdout"; $as_echo ".........    /opt/foo
4612 .........    /opt/foo/README1
4613 .........    /opt/goo
4614 .........    /opt/zoo
4615 " | \
4616   $at_diff - "$at_stdout" || at_failed=:
4617 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:69"
4618 $at_failed && at_fn_log_failure
4619 $at_traceon; }
4620
4621   set +x
4622   $at_times_p && times >"$at_times_file"
4623 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4624 read at_status <"$at_status_file"
4625 #AT_STOP_39
4626 #AT_START_40
4627 at_fn_group_banner 40 'rpmverify.at:98' \
4628   "directory replaced with an invalid directory symlink" "" 4
4629 at_xfail=no
4630 (
4631   $as_echo "40. $at_setup_line: testing $at_desc ..."
4632   $at_traceon
4633
4634
4635 { set +x
4636 $as_echo "$at_srcdir/rpmverify.at:100:
4637
4638 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4639
4640
4641 runroot rpm --initdb
4642
4643 tf=\"\${RPMTEST}\"/opt/foo
4644 rm -rf \"\${RPMTEST}\"/opt/*
4645 rm -rf \"\${TOPDIR}\"
4646
4647 runroot rpmbuild --quiet -bb \\
4648         --define \"ver 1.0\" \\
4649         --define \"filetype datadir\" \\
4650         --define \"filedata README1\" \\
4651           /data/SPECS/replacetest.spec
4652
4653 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
4654 mv \"\${RPMTEST}\"/opt/foo \"\${RPMTEST}\"/opt/was
4655 ln -s was \"\${RPMTEST}\"/opt/foo
4656 runroot rpm -Vv --nouser --nogroup replacetest
4657 "
4658 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:100"
4659 ( $at_check_trace;
4660
4661 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4662
4663
4664 runroot rpm --initdb
4665
4666 tf="${RPMTEST}"/opt/foo
4667 rm -rf "${RPMTEST}"/opt/*
4668 rm -rf "${TOPDIR}"
4669
4670 runroot rpmbuild --quiet -bb \
4671         --define "ver 1.0" \
4672         --define "filetype datadir" \
4673         --define "filedata README1" \
4674           /data/SPECS/replacetest.spec
4675
4676 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
4677 mv "${RPMTEST}"/opt/foo "${RPMTEST}"/opt/was
4678 ln -s was "${RPMTEST}"/opt/foo
4679 runroot rpm -Vv --nouser --nogroup replacetest
4680
4681 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4682 at_status=$? at_failed=false
4683 $at_check_filter
4684 at_fn_diff_devnull "$at_stderr" || at_failed=:
4685 echo >>"$at_stdout"; $as_echo "....L....    /opt/foo
4686 .........    /opt/foo/README1
4687 .........    /opt/goo
4688 .........    /opt/zoo
4689 " | \
4690   $at_diff - "$at_stdout" || at_failed=:
4691 at_fn_check_status 1 $at_status "$at_srcdir/rpmverify.at:100"
4692 $at_failed && at_fn_log_failure
4693 $at_traceon; }
4694
4695   set +x
4696   $at_times_p && times >"$at_times_file"
4697 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4698 read at_status <"$at_status_file"
4699 #AT_STOP_40
4700 #AT_START_41
4701 at_fn_group_banner 41 'rpmverify.at:128' \
4702   "verify from db, with problems present" "          " 4
4703 at_xfail=no
4704 (
4705   $as_echo "41. $at_setup_line: testing $at_desc ..."
4706   $at_traceon
4707
4708
4709 { set +x
4710 $as_echo "$at_srcdir/rpmverify.at:130:
4711
4712 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4713
4714
4715 runroot rpm --initdb
4716
4717
4718 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \\
4719         /data/RPMS/hello-1.0-1.i386.rpm
4720 rm -f \"\${RPMTEST}\"/usr/share/doc/hello-1.0/FAQ
4721 chmod u-x \"\${RPMTEST}\"/usr/local/bin/hello
4722 dd if=/dev/zero of=\"\${RPMTEST}\"/usr/local/bin/hello \\
4723    conv=notrunc bs=1 seek=5 count=6 2> /dev/null
4724 runroot rpm -Va --nodeps --nouser --nogroup
4725 "
4726 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:130"
4727 ( $at_check_trace;
4728
4729 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4730
4731
4732 runroot rpm --initdb
4733
4734
4735 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \
4736         /data/RPMS/hello-1.0-1.i386.rpm
4737 rm -f "${RPMTEST}"/usr/share/doc/hello-1.0/FAQ
4738 chmod u-x "${RPMTEST}"/usr/local/bin/hello
4739 dd if=/dev/zero of="${RPMTEST}"/usr/local/bin/hello \
4740    conv=notrunc bs=1 seek=5 count=6 2> /dev/null
4741 runroot rpm -Va --nodeps --nouser --nogroup
4742
4743 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4744 at_status=$? at_failed=false
4745 $at_check_filter
4746 at_fn_diff_devnull "$at_stderr" || at_failed=:
4747 echo >>"$at_stdout"; $as_echo ".M5....T.    /usr/local/bin/hello
4748 missing   d /usr/share/doc/hello-1.0/FAQ
4749 " | \
4750   $at_diff - "$at_stdout" || at_failed=:
4751 at_fn_check_status 1 $at_status "$at_srcdir/rpmverify.at:130"
4752 $at_failed && at_fn_log_failure
4753 $at_traceon; }
4754
4755   set +x
4756   $at_times_p && times >"$at_times_file"
4757 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4758 read at_status <"$at_status_file"
4759 #AT_STOP_41
4760 #AT_START_42
4761 at_fn_group_banner 42 'rpmverify.at:150' \
4762   "verify from package, with problems present" "     " 4
4763 at_xfail=no
4764 (
4765   $as_echo "42. $at_setup_line: testing $at_desc ..."
4766   $at_traceon
4767
4768
4769 { set +x
4770 $as_echo "$at_srcdir/rpmverify.at:152:
4771
4772 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4773
4774
4775 runroot rpm --initdb
4776
4777
4778 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \\
4779         /data/RPMS/hello-1.0-1.i386.rpm
4780 rm -f \"\${RPMTEST}\"/usr/share/doc/hello-1.0/FAQ
4781 chmod u-x \"\${RPMTEST}\"/usr/local/bin/hello
4782 dd if=/dev/zero of=\"\${RPMTEST}\"/usr/local/bin/hello \\
4783    conv=notrunc bs=1 seek=5 count=6 2> /dev/null
4784 runroot rpm -Vp --nodeps --nouser --nogroup /data/RPMS/hello-1.0-1.i386.rpm
4785 "
4786 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:152"
4787 ( $at_check_trace;
4788
4789 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4790
4791
4792 runroot rpm --initdb
4793
4794
4795 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \
4796         /data/RPMS/hello-1.0-1.i386.rpm
4797 rm -f "${RPMTEST}"/usr/share/doc/hello-1.0/FAQ
4798 chmod u-x "${RPMTEST}"/usr/local/bin/hello
4799 dd if=/dev/zero of="${RPMTEST}"/usr/local/bin/hello \
4800    conv=notrunc bs=1 seek=5 count=6 2> /dev/null
4801 runroot rpm -Vp --nodeps --nouser --nogroup /data/RPMS/hello-1.0-1.i386.rpm
4802
4803 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4804 at_status=$? at_failed=false
4805 $at_check_filter
4806 at_fn_diff_devnull "$at_stderr" || at_failed=:
4807 echo >>"$at_stdout"; $as_echo ".M5....T.    /usr/local/bin/hello
4808 missing   d /usr/share/doc/hello-1.0/FAQ
4809 " | \
4810   $at_diff - "$at_stdout" || at_failed=:
4811 at_fn_check_status 1 $at_status "$at_srcdir/rpmverify.at:152"
4812 $at_failed && at_fn_log_failure
4813 $at_traceon; }
4814
4815   set +x
4816   $at_times_p && times >"$at_times_file"
4817 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4818 read at_status <"$at_status_file"
4819 #AT_STOP_42
4820 #AT_START_43
4821 at_fn_group_banner 43 'rpmverify.at:171' \
4822   "verify file attribute filtering" "                " 4
4823 at_xfail=no
4824 (
4825   $as_echo "43. $at_setup_line: testing $at_desc ..."
4826   $at_traceon
4827
4828
4829 { set +x
4830 $as_echo "$at_srcdir/rpmverify.at:173:
4831 runroot rpmbuild -bb --quiet \\
4832   /data/SPECS/vattrtest.spec
4833
4834 runroot rpm -U /build/RPMS/noarch/vattrtest-1.0-1.noarch.rpm
4835 runroot_other touch /opt/vattrtest/g
4836 runroot_other chmod 644 /opt/vattrtest/g
4837
4838 cmd=\"rpm -Vv --nouser --nogroup\"
4839 for filter in --noconfig --noghost --noartifact; do
4840     echo \${filter}
4841     runroot \${cmd} \${filter} vattrtest
4842 done
4843 "
4844 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmverify.at:173"
4845 ( $at_check_trace;
4846 runroot rpmbuild -bb --quiet \
4847   /data/SPECS/vattrtest.spec
4848
4849 runroot rpm -U /build/RPMS/noarch/vattrtest-1.0-1.noarch.rpm
4850 runroot_other touch /opt/vattrtest/g
4851 runroot_other chmod 644 /opt/vattrtest/g
4852
4853 cmd="rpm -Vv --nouser --nogroup"
4854 for filter in --noconfig --noghost --noartifact; do
4855     echo ${filter}
4856     runroot ${cmd} ${filter} vattrtest
4857 done
4858
4859 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4860 at_status=$? at_failed=false
4861 $at_check_filter
4862 at_fn_diff_devnull "$at_stderr" || at_failed=:
4863 echo >>"$at_stdout"; $as_echo "--noconfig
4864 .........    /opt/vattrtest
4865 .........  a /opt/vattrtest/a
4866 .........  d /opt/vattrtest/d
4867 .........  g /opt/vattrtest/g
4868 .........  l /opt/vattrtest/l
4869 .........  m /opt/vattrtest/m
4870 .........  r /opt/vattrtest/r
4871 --noghost
4872 .........    /opt/vattrtest
4873 .........  a /opt/vattrtest/a
4874 .........  c /opt/vattrtest/c
4875 .........  c /opt/vattrtest/cn
4876 .........  d /opt/vattrtest/d
4877 .........  l /opt/vattrtest/l
4878 .........  m /opt/vattrtest/m
4879 .........  r /opt/vattrtest/r
4880 --noartifact
4881 .........    /opt/vattrtest
4882 .........  c /opt/vattrtest/c
4883 .........  c /opt/vattrtest/cn
4884 .........  d /opt/vattrtest/d
4885 .........  g /opt/vattrtest/g
4886 .........  l /opt/vattrtest/l
4887 .........  m /opt/vattrtest/m
4888 .........  r /opt/vattrtest/r
4889 " | \
4890   $at_diff - "$at_stdout" || at_failed=:
4891 at_fn_check_skip $at_status "$at_srcdir/rpmverify.at:173"
4892 $at_failed && at_fn_log_failure
4893 $at_traceon; }
4894
4895   set +x
4896   $at_times_p && times >"$at_times_file"
4897 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4898 read at_status <"$at_status_file"
4899 #AT_STOP_43
4900 #AT_START_44
4901 at_fn_group_banner 44 'rpmverify.at:220' \
4902   "verifyscript failure" "                           " 4
4903 at_xfail=no
4904 (
4905   $as_echo "44. $at_setup_line: testing $at_desc ..."
4906   $at_traceon
4907
4908
4909 { set +x
4910 $as_echo "$at_srcdir/rpmverify.at:222:
4911
4912 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4913
4914
4915 runroot rpm --initdb
4916
4917
4918 rm -rf \"\${TOPDIR}\"
4919 runroot rpmbuild --quiet -bb /data/SPECS/verifyscript.spec
4920 runroot rpm -U --nodeps /build/RPMS/noarch/verifyscript-1.0-1.noarch.rpm
4921 rm -f \"\${RPMTEST}\"/var/checkme
4922 runroot rpm -V --nodeps verifyscript
4923 "
4924 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:222"
4925 ( $at_check_trace;
4926
4927 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4928
4929
4930 runroot rpm --initdb
4931
4932
4933 rm -rf "${TOPDIR}"
4934 runroot rpmbuild --quiet -bb /data/SPECS/verifyscript.spec
4935 runroot rpm -U --nodeps /build/RPMS/noarch/verifyscript-1.0-1.noarch.rpm
4936 rm -f "${RPMTEST}"/var/checkme
4937 runroot rpm -V --nodeps verifyscript
4938
4939 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4940 at_status=$? at_failed=false
4941 $at_check_filter
4942 echo stderr:; cat "$at_stderr"
4943 at_fn_diff_devnull "$at_stdout" || at_failed=:
4944 at_fn_check_status 1 $at_status "$at_srcdir/rpmverify.at:222"
4945 $at_failed && at_fn_log_failure
4946 $at_traceon; }
4947
4948   set +x
4949   $at_times_p && times >"$at_times_file"
4950 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
4951 read at_status <"$at_status_file"
4952 #AT_STOP_44
4953 #AT_START_45
4954 at_fn_group_banner 45 'rpmverify.at:237' \
4955   "verifyscript success" "                           " 4
4956 at_xfail=no
4957 (
4958   $as_echo "45. $at_setup_line: testing $at_desc ..."
4959   $at_traceon
4960
4961
4962 { set +x
4963 $as_echo "$at_srcdir/rpmverify.at:239:
4964
4965 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4966
4967
4968 runroot rpm --initdb
4969
4970
4971 rm -rf \"\${TOPDIR}\"
4972 runroot rpmbuild --quiet -bb /data/SPECS/verifyscript.spec
4973 runroot rpm -U --nodeps /build/RPMS/noarch/verifyscript-1.0-1.noarch.rpm
4974 touch \"\${RPMTEST}\"/var/checkme
4975 runroot rpm -V --nodeps verifyscript
4976 "
4977 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:239"
4978 ( $at_check_trace;
4979
4980 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4981
4982
4983 runroot rpm --initdb
4984
4985
4986 rm -rf "${TOPDIR}"
4987 runroot rpmbuild --quiet -bb /data/SPECS/verifyscript.spec
4988 runroot rpm -U --nodeps /build/RPMS/noarch/verifyscript-1.0-1.noarch.rpm
4989 touch "${RPMTEST}"/var/checkme
4990 runroot rpm -V --nodeps verifyscript
4991
4992 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4993 at_status=$? at_failed=false
4994 $at_check_filter
4995 at_fn_diff_devnull "$at_stderr" || at_failed=:
4996 at_fn_diff_devnull "$at_stdout" || at_failed=:
4997 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:239"
4998 $at_failed && at_fn_log_failure
4999 $at_traceon; }
5000
5001   set +x
5002   $at_times_p && times >"$at_times_file"
5003 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5004 read at_status <"$at_status_file"
5005 #AT_STOP_45
5006 #AT_START_46
5007 at_fn_group_banner 46 'rpmverify.at:256' \
5008   "shared file timestamp behavior" "                 " 4
5009 at_xfail=no
5010 (
5011   $as_echo "46. $at_setup_line: testing $at_desc ..."
5012   $at_traceon
5013
5014
5015 { set +x
5016 $as_echo "$at_srcdir/rpmverify.at:258:
5017
5018 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5019
5020
5021 runroot rpm --initdb
5022
5023 rm -rf \"\${TOPDIR}\"
5024
5025 # create packages sharing a file but with different timestamp
5026 for p in \"one\" \"two\"; do
5027     runroot rpmbuild --quiet -bb \\
5028         --define \"pkg \$p\" \\
5029         --define \"filedata same_stuff\" \\
5030           /data/SPECS/conflicttest.spec
5031     sleep 1
5032 done
5033
5034 # first instance of a shared file is the one that actually gets created,
5035 # force the order so we know what to expect as these dont depend on each other
5036 runroot rpm -U --noorder /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
5037 runroot rpm -e conflicttwo
5038 runroot rpm -Va --nouser --nogroup
5039 "
5040 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:258"
5041 ( $at_check_trace;
5042
5043 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5044
5045
5046 runroot rpm --initdb
5047
5048 rm -rf "${TOPDIR}"
5049
5050 # create packages sharing a file but with different timestamp
5051 for p in "one" "two"; do
5052     runroot rpmbuild --quiet -bb \
5053         --define "pkg $p" \
5054         --define "filedata same_stuff" \
5055           /data/SPECS/conflicttest.spec
5056     sleep 1
5057 done
5058
5059 # first instance of a shared file is the one that actually gets created,
5060 # force the order so we know what to expect as these dont depend on each other
5061 runroot rpm -U --noorder /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
5062 runroot rpm -e conflicttwo
5063 runroot rpm -Va --nouser --nogroup
5064
5065 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5066 at_status=$? at_failed=false
5067 $at_check_filter
5068 at_fn_diff_devnull "$at_stderr" || at_failed=:
5069 at_fn_diff_devnull "$at_stdout" || at_failed=:
5070 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:258"
5071 $at_failed && at_fn_log_failure
5072 $at_traceon; }
5073
5074   set +x
5075   $at_times_p && times >"$at_times_file"
5076 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5077 read at_status <"$at_status_file"
5078 #AT_STOP_46
5079 #AT_START_47
5080 at_fn_group_banner 47 'rpmverify.at:285' \
5081   "Upgraded verification with min_writes 1 (files)" "" 4
5082 at_xfail=no
5083 (
5084   $as_echo "47. $at_setup_line: testing $at_desc ..."
5085   $at_traceon
5086
5087
5088 { set +x
5089 $as_echo "$at_srcdir/rpmverify.at:287:
5090
5091 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5092
5093
5094 runroot rpm --initdb
5095
5096 tf=\"\${RPMTEST}\"/opt/foo
5097 rm -rf \"\${tf}\" \"\${tf}\".rpm*
5098 rm -rf \"\${TOPDIR}\"
5099
5100 for v in \"1.0\" \"2.0\"; do
5101     runroot rpmbuild --quiet -bb \\
5102         --define \"ver \$v\" \\
5103         --define \"filetype file\" \\
5104         --define \"filedata foo\" \\
5105           /data/SPECS/replacetest.spec
5106 done
5107
5108 for v in \"3.0\" \"4.0\"; do
5109     runroot rpmbuild --quiet -bb \\
5110         --define \"ver \$v\" \\
5111         --define \"filetype file\" \\
5112         --define \"filedata fox\" \\
5113           /data/SPECS/replacetest.spec
5114 done
5115
5116 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5117 cat \"\${tf}\"
5118 touch -t 201703171717 \${tf}
5119
5120 runroot rpm -U \\
5121         --define \"_minimize_writes 1\" \\
5122          /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
5123 runroot rpm -Va --nouser --nogroup replacetest
5124 cat \"\${tf}\"
5125
5126 runroot rpm -U \\
5127         --define \"_minimize_writes 1\" \\
5128         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5129 runroot rpm -Va  --nouser --nogroup replacetest
5130 cat \"\${tf}\"
5131
5132 echo \"xx\" > \"\${tf}\"
5133 cat \"\${tf}\"
5134
5135 runroot rpm -U \\
5136         --define \"_minimize_writes 1\" \\
5137         /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm
5138 runroot rpm -Va  --nouser --nogroup replacetest
5139 cat \"\${tf}\"
5140
5141 touch -t 201703171717 \${tf}
5142
5143 runroot rpm -U --oldpackage \\
5144         --define \"_minimize_writes 1\" \\
5145         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5146 runroot rpm -Va  --nouser --nogroup replacetest
5147 cat \"\${tf}\"
5148 "
5149 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:287"
5150 ( $at_check_trace;
5151
5152 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5153
5154
5155 runroot rpm --initdb
5156
5157 tf="${RPMTEST}"/opt/foo
5158 rm -rf "${tf}" "${tf}".rpm*
5159 rm -rf "${TOPDIR}"
5160
5161 for v in "1.0" "2.0"; do
5162     runroot rpmbuild --quiet -bb \
5163         --define "ver $v" \
5164         --define "filetype file" \
5165         --define "filedata foo" \
5166           /data/SPECS/replacetest.spec
5167 done
5168
5169 for v in "3.0" "4.0"; do
5170     runroot rpmbuild --quiet -bb \
5171         --define "ver $v" \
5172         --define "filetype file" \
5173         --define "filedata fox" \
5174           /data/SPECS/replacetest.spec
5175 done
5176
5177 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5178 cat "${tf}"
5179 touch -t 201703171717 ${tf}
5180
5181 runroot rpm -U \
5182         --define "_minimize_writes 1" \
5183          /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
5184 runroot rpm -Va --nouser --nogroup replacetest
5185 cat "${tf}"
5186
5187 runroot rpm -U \
5188         --define "_minimize_writes 1" \
5189         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5190 runroot rpm -Va  --nouser --nogroup replacetest
5191 cat "${tf}"
5192
5193 echo "xx" > "${tf}"
5194 cat "${tf}"
5195
5196 runroot rpm -U \
5197         --define "_minimize_writes 1" \
5198         /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm
5199 runroot rpm -Va  --nouser --nogroup replacetest
5200 cat "${tf}"
5201
5202 touch -t 201703171717 ${tf}
5203
5204 runroot rpm -U --oldpackage \
5205         --define "_minimize_writes 1" \
5206         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5207 runroot rpm -Va  --nouser --nogroup replacetest
5208 cat "${tf}"
5209
5210 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5211 at_status=$? at_failed=false
5212 $at_check_filter
5213 at_fn_diff_devnull "$at_stderr" || at_failed=:
5214 echo >>"$at_stdout"; $as_echo "foo
5215 foo
5216 fox
5217 xx
5218 fox
5219 fox
5220 " | \
5221   $at_diff - "$at_stdout" || at_failed=:
5222 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:287"
5223 $at_failed && at_fn_log_failure
5224 $at_traceon; }
5225
5226   set +x
5227   $at_times_p && times >"$at_times_file"
5228 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5229 read at_status <"$at_status_file"
5230 #AT_STOP_47
5231 #AT_START_48
5232 at_fn_group_banner 48 'rpmverify.at:357' \
5233   "Upgraded verification with min_writes 2 (files)" "" 4
5234 at_xfail=no
5235 (
5236   $as_echo "48. $at_setup_line: testing $at_desc ..."
5237   $at_traceon
5238
5239
5240 { set +x
5241 $as_echo "$at_srcdir/rpmverify.at:359:
5242
5243 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5244
5245
5246 runroot rpm --initdb
5247
5248 tf=\"\${RPMTEST}\"/opt/foo
5249 rm -rf \"\${tf}\" \"\${tf}\".rpm*
5250 rm -rf \"\${TOPDIR}\"
5251
5252 for v in \"1.0\" \"2.0\"; do
5253     runroot rpmbuild --quiet -bb \\
5254         --define \"ver \$v\" \\
5255         --define \"filetype file\" \\
5256         --define \"filedata foo\" \\
5257           /data/SPECS/replacetest.spec
5258 done
5259
5260 for v in \"3.0\" \"4.0\"; do
5261     runroot rpmbuild --quiet -bb \\
5262         --define \"ver \$v\" \\
5263         --define \"filetype file\" \\
5264         --define \"filedata fox\" \\
5265           /data/SPECS/replacetest.spec
5266 done
5267
5268 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5269 cat \"\${tf}\"
5270 touch -t 201703171717 \${tf}
5271
5272 runroot rpm -Uvv --fsmdebug \\
5273         --define \"_minimize_writes 1\" \\
5274          /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm > output.txt 2>&1
5275 runroot rpm -Va --nouser --nogroup replacetest
5276 grep -c \"touch\" output.txt
5277 cat \"\${tf}\"
5278
5279
5280 runroot rpm -Uvv --fsmdebug \\
5281         --define \"_minimize_writes 1\" \\
5282         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm  > output.txt 2>&1
5283 runroot rpm -Va  --nouser --nogroup replacetest
5284 grep -c \"touch\" output.txt
5285 cat \"\${tf}\"
5286 echo \"xx\" > \"\${tf}\"
5287 cat \"\${tf}\"
5288
5289 runroot rpm -Uvv --fsmdebug \\
5290         --define \"_minimize_writes 1\" \\
5291         /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm  > output.txt 2>&1
5292 runroot rpm -Va  --nouser --nogroup replacetest
5293 grep -c \"touch\" output.txt
5294 cat \"\${tf}\"
5295
5296 touch -t 201703171717 \${tf}
5297
5298 runroot rpm -U -Uvv --fsmdebug  --oldpackage \\
5299         --define \"_minimize_writes 1\" \\
5300         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm  > output.txt 2>&1
5301 runroot rpm -Va  --nouser --nogroup replacetest
5302 grep -c  \"touch\" output.txt
5303 cat \"\${tf}\"
5304 "
5305 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:359"
5306 ( $at_check_trace;
5307
5308 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5309
5310
5311 runroot rpm --initdb
5312
5313 tf="${RPMTEST}"/opt/foo
5314 rm -rf "${tf}" "${tf}".rpm*
5315 rm -rf "${TOPDIR}"
5316
5317 for v in "1.0" "2.0"; do
5318     runroot rpmbuild --quiet -bb \
5319         --define "ver $v" \
5320         --define "filetype file" \
5321         --define "filedata foo" \
5322           /data/SPECS/replacetest.spec
5323 done
5324
5325 for v in "3.0" "4.0"; do
5326     runroot rpmbuild --quiet -bb \
5327         --define "ver $v" \
5328         --define "filetype file" \
5329         --define "filedata fox" \
5330           /data/SPECS/replacetest.spec
5331 done
5332
5333 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5334 cat "${tf}"
5335 touch -t 201703171717 ${tf}
5336
5337 runroot rpm -Uvv --fsmdebug \
5338         --define "_minimize_writes 1" \
5339          /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm > output.txt 2>&1
5340 runroot rpm -Va --nouser --nogroup replacetest
5341 grep -c "touch" output.txt
5342 cat "${tf}"
5343
5344
5345 runroot rpm -Uvv --fsmdebug \
5346         --define "_minimize_writes 1" \
5347         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm  > output.txt 2>&1
5348 runroot rpm -Va  --nouser --nogroup replacetest
5349 grep -c "touch" output.txt
5350 cat "${tf}"
5351 echo "xx" > "${tf}"
5352 cat "${tf}"
5353
5354 runroot rpm -Uvv --fsmdebug \
5355         --define "_minimize_writes 1" \
5356         /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm  > output.txt 2>&1
5357 runroot rpm -Va  --nouser --nogroup replacetest
5358 grep -c "touch" output.txt
5359 cat "${tf}"
5360
5361 touch -t 201703171717 ${tf}
5362
5363 runroot rpm -U -Uvv --fsmdebug  --oldpackage \
5364         --define "_minimize_writes 1" \
5365         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm  > output.txt 2>&1
5366 runroot rpm -Va  --nouser --nogroup replacetest
5367 grep -c  "touch" output.txt
5368 cat "${tf}"
5369
5370 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5371 at_status=$? at_failed=false
5372 $at_check_filter
5373 at_fn_diff_devnull "$at_stderr" || at_failed=:
5374 echo >>"$at_stdout"; $as_echo "foo
5375 2
5376 foo
5377 1
5378 fox
5379 xx
5380 1
5381 fox
5382 2
5383 fox
5384 " | \
5385   $at_diff - "$at_stdout" || at_failed=:
5386 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:359"
5387 $at_failed && at_fn_log_failure
5388 $at_traceon; }
5389
5390   set +x
5391   $at_times_p && times >"$at_times_file"
5392 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5393 read at_status <"$at_status_file"
5394 #AT_STOP_48
5395 #AT_START_49
5396 at_fn_group_banner 49 'rpmverify.at:436' \
5397   "Upgraded verification with min_writes 3 (LINKs)" "" 4
5398 at_xfail=no
5399 (
5400   $as_echo "49. $at_setup_line: testing $at_desc ..."
5401   $at_traceon
5402
5403
5404 { set +x
5405 $as_echo "$at_srcdir/rpmverify.at:438:
5406
5407 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5408
5409
5410 runroot rpm --initdb
5411
5412 tf=\"\${RPMTEST}\"/opt/foo
5413 rm -rf \"\${tf}\" \"\${tf}\".rpm*
5414 rm -rf \"\${TOPDIR}\"
5415
5416 for v in \"1.0\" \"2.0\"; do
5417     runroot rpmbuild --quiet -bb \\
5418         --define \"ver \$v\" \\
5419         --define \"filetype link\" \\
5420         --define \"filedata foo\" \\
5421           /data/SPECS/replacetest.spec
5422 done
5423
5424 for v in \"3.0\" \"4.0\"; do
5425     runroot rpmbuild --quiet -bb \\
5426         --define \"ver \$v\" \\
5427         --define \"filetype link\" \\
5428         --define \"filedata fox\" \\
5429           /data/SPECS/replacetest.spec
5430 done
5431
5432 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5433 readlink \"\${tf}\"
5434
5435 runroot rpm -U \\
5436         --define \"_minimize_writes 1\" \\
5437          /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
5438 runroot rpm -Va --nouser --nogroup replacetest
5439 readlink \"\${tf}\"
5440
5441 runroot rpm -U \\
5442         --define \"_minimize_writes 1\" \\
5443         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5444 runroot rpm -Va  --nouser --nogroup replacetest
5445 readlink \"\${tf}\"
5446
5447 ln -sf \"xx\" \"\${tf}\"
5448 readlink \"\${tf}\"
5449
5450 runroot rpm -U \\
5451         --define \"_minimize_writes 1\" \\
5452         /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm
5453 runroot rpm -Va  --nouser --nogroup replacetest
5454 readlink \"\${tf}\"
5455
5456 runroot rpm -U --oldpackage \\
5457         --define \"_minimize_writes 1\" \\
5458         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5459 runroot rpm -Va  --nouser --nogroup replacetest
5460 readlink \"\${tf}\"
5461 "
5462 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:438"
5463 ( $at_check_trace;
5464
5465 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5466
5467
5468 runroot rpm --initdb
5469
5470 tf="${RPMTEST}"/opt/foo
5471 rm -rf "${tf}" "${tf}".rpm*
5472 rm -rf "${TOPDIR}"
5473
5474 for v in "1.0" "2.0"; do
5475     runroot rpmbuild --quiet -bb \
5476         --define "ver $v" \
5477         --define "filetype link" \
5478         --define "filedata foo" \
5479           /data/SPECS/replacetest.spec
5480 done
5481
5482 for v in "3.0" "4.0"; do
5483     runroot rpmbuild --quiet -bb \
5484         --define "ver $v" \
5485         --define "filetype link" \
5486         --define "filedata fox" \
5487           /data/SPECS/replacetest.spec
5488 done
5489
5490 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5491 readlink "${tf}"
5492
5493 runroot rpm -U \
5494         --define "_minimize_writes 1" \
5495          /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
5496 runroot rpm -Va --nouser --nogroup replacetest
5497 readlink "${tf}"
5498
5499 runroot rpm -U \
5500         --define "_minimize_writes 1" \
5501         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5502 runroot rpm -Va  --nouser --nogroup replacetest
5503 readlink "${tf}"
5504
5505 ln -sf "xx" "${tf}"
5506 readlink "${tf}"
5507
5508 runroot rpm -U \
5509         --define "_minimize_writes 1" \
5510         /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm
5511 runroot rpm -Va  --nouser --nogroup replacetest
5512 readlink "${tf}"
5513
5514 runroot rpm -U --oldpackage \
5515         --define "_minimize_writes 1" \
5516         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5517 runroot rpm -Va  --nouser --nogroup replacetest
5518 readlink "${tf}"
5519
5520 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5521 at_status=$? at_failed=false
5522 $at_check_filter
5523 at_fn_diff_devnull "$at_stderr" || at_failed=:
5524 echo >>"$at_stdout"; $as_echo "foo
5525 foo
5526 fox
5527 xx
5528 fox
5529 fox
5530 " | \
5531   $at_diff - "$at_stdout" || at_failed=:
5532 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:438"
5533 $at_failed && at_fn_log_failure
5534 $at_traceon; }
5535
5536   set +x
5537   $at_times_p && times >"$at_times_file"
5538 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5539 read at_status <"$at_status_file"
5540 #AT_STOP_49
5541 #AT_START_50
5542 at_fn_group_banner 50 'rpmverify.at:503' \
5543   "Upgraded verification with min_writes 4 (LINKs)" "" 4
5544 at_xfail=no
5545 (
5546   $as_echo "50. $at_setup_line: testing $at_desc ..."
5547   $at_traceon
5548
5549
5550 { set +x
5551 $as_echo "$at_srcdir/rpmverify.at:505:
5552
5553 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5554
5555
5556 runroot rpm --initdb
5557
5558 tf=\"\${RPMTEST}\"/opt/foo
5559 rm -rf \"\${tf}\" \"\${tf}\".rpm*
5560 rm -rf \"\${TOPDIR}\"
5561
5562 for v in \"1.0\" \"2.0\"; do
5563     runroot rpmbuild --quiet -bb \\
5564         --define \"ver \$v\" \\
5565         --define \"filetype link\" \\
5566         --define \"filedata foo\" \\
5567           /data/SPECS/replacetest.spec
5568 done
5569
5570 for v in \"3.0\" \"4.0\"; do
5571     runroot rpmbuild --quiet -bb \\
5572         --define \"ver \$v\" \\
5573         --define \"filetype link\" \\
5574         --define \"filedata fox\" \\
5575           /data/SPECS/replacetest.spec
5576 done
5577
5578 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5579 readlink \"\${tf}\"
5580
5581 runroot rpm -Uvv --fsmdebug \\
5582         --define \"_minimize_writes 1\" \\
5583          /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm > output.txt 2>&1
5584 runroot rpm -Va --nouser --nogroup replacetest
5585 grep -c \"touch\" output.txt
5586 readlink \"\${tf}\"
5587
5588
5589 runroot rpm -Uvv --fsmdebug \\
5590         --define \"_minimize_writes 1\" \\
5591         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm > output.txt 2>&1
5592 runroot rpm -Va  --nouser --nogroup replacetest
5593 grep -c \"touch\" output.txt
5594 readlink \"\${tf}\"
5595 ln -sf \"xx\" \"\${tf}\"
5596 readlink \"\${tf}\"
5597
5598 runroot rpm -Uvv --fsmdebug \\
5599         --define \"_minimize_writes 1\" \\
5600         /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm  > output.txt 2>&1
5601 runroot rpm -Va  --nouser --nogroup replacetest
5602 grep -c \"touch\" output.txt
5603 readlink \"\${tf}\"
5604
5605 runroot rpm -U -Uvv --fsmdebug  --oldpackage \\
5606         --define \"_minimize_writes 1\" \\
5607         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm  > output.txt 2>&1
5608 runroot rpm -Va  --nouser --nogroup replacetest
5609 grep -c  \"touch\" output.txt
5610 readlink \"\${tf}\"
5611 "
5612 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:505"
5613 ( $at_check_trace;
5614
5615 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5616
5617
5618 runroot rpm --initdb
5619
5620 tf="${RPMTEST}"/opt/foo
5621 rm -rf "${tf}" "${tf}".rpm*
5622 rm -rf "${TOPDIR}"
5623
5624 for v in "1.0" "2.0"; do
5625     runroot rpmbuild --quiet -bb \
5626         --define "ver $v" \
5627         --define "filetype link" \
5628         --define "filedata foo" \
5629           /data/SPECS/replacetest.spec
5630 done
5631
5632 for v in "3.0" "4.0"; do
5633     runroot rpmbuild --quiet -bb \
5634         --define "ver $v" \
5635         --define "filetype link" \
5636         --define "filedata fox" \
5637           /data/SPECS/replacetest.spec
5638 done
5639
5640 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5641 readlink "${tf}"
5642
5643 runroot rpm -Uvv --fsmdebug \
5644         --define "_minimize_writes 1" \
5645          /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm > output.txt 2>&1
5646 runroot rpm -Va --nouser --nogroup replacetest
5647 grep -c "touch" output.txt
5648 readlink "${tf}"
5649
5650
5651 runroot rpm -Uvv --fsmdebug \
5652         --define "_minimize_writes 1" \
5653         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm > output.txt 2>&1
5654 runroot rpm -Va  --nouser --nogroup replacetest
5655 grep -c "touch" output.txt
5656 readlink "${tf}"
5657 ln -sf "xx" "${tf}"
5658 readlink "${tf}"
5659
5660 runroot rpm -Uvv --fsmdebug \
5661         --define "_minimize_writes 1" \
5662         /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm  > output.txt 2>&1
5663 runroot rpm -Va  --nouser --nogroup replacetest
5664 grep -c "touch" output.txt
5665 readlink "${tf}"
5666
5667 runroot rpm -U -Uvv --fsmdebug  --oldpackage \
5668         --define "_minimize_writes 1" \
5669         /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm  > output.txt 2>&1
5670 runroot rpm -Va  --nouser --nogroup replacetest
5671 grep -c  "touch" output.txt
5672 readlink "${tf}"
5673
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"; $as_echo "foo
5679 2
5680 foo
5681 1
5682 fox
5683 xx
5684 1
5685 fox
5686 2
5687 fox
5688 " | \
5689   $at_diff - "$at_stdout" || at_failed=:
5690 at_fn_check_status 0 $at_status "$at_srcdir/rpmverify.at:505"
5691 $at_failed && at_fn_log_failure
5692 $at_traceon; }
5693
5694   set +x
5695   $at_times_p && times >"$at_times_file"
5696 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5697 read at_status <"$at_status_file"
5698 #AT_STOP_50
5699 #AT_START_51
5700 at_fn_group_banner 51 'rpmsigdig.at:7' \
5701   "rpmkeys -Kv <unsigned> 1" "                       " 5
5702 at_xfail=no
5703 (
5704   $as_echo "51. $at_setup_line: testing $at_desc ..."
5705   $at_traceon
5706
5707
5708 { set +x
5709 $as_echo "$at_srcdir/rpmsigdig.at:9:
5710
5711 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5712
5713
5714 runroot rpm --initdb
5715
5716 rm -rf \"\${TOPDIR}\"
5717
5718 runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64.rpm /data/RPMS/hello-1.0-1.i386.rpm
5719 "
5720 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:9"
5721 ( $at_check_trace;
5722
5723 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5724
5725
5726 runroot rpm --initdb
5727
5728 rm -rf "${TOPDIR}"
5729
5730 runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64.rpm /data/RPMS/hello-1.0-1.i386.rpm
5731
5732 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5733 at_status=$? at_failed=false
5734 $at_check_filter
5735 at_fn_diff_devnull "$at_stderr" || at_failed=:
5736 echo >>"$at_stdout"; $as_echo "/data/RPMS/hello-2.0-1.x86_64.rpm:
5737     Header SHA1 digest: OK
5738     Header SHA256 digest: OK
5739     Payload SHA256 digest: OK
5740     MD5 digest: OK
5741 /data/RPMS/hello-1.0-1.i386.rpm:
5742     Header SHA1 digest: OK
5743     MD5 digest: OK
5744 " | \
5745   $at_diff - "$at_stdout" || at_failed=:
5746 at_fn_check_status 0 $at_status "$at_srcdir/rpmsigdig.at:9"
5747 $at_failed && at_fn_log_failure
5748 $at_traceon; }
5749
5750   set +x
5751   $at_times_p && times >"$at_times_file"
5752 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5753 read at_status <"$at_status_file"
5754 #AT_STOP_51
5755 #AT_START_52
5756 at_fn_group_banner 52 'rpmsigdig.at:31' \
5757   "rpmkeys -Kv <corrupted unsigned> 1" "             " 5
5758 at_xfail=no
5759 (
5760   $as_echo "52. $at_setup_line: testing $at_desc ..."
5761   $at_traceon
5762
5763
5764 { set +x
5765 $as_echo "$at_srcdir/rpmsigdig.at:33:
5766
5767 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5768
5769
5770 runroot rpm --initdb
5771
5772 rm -rf \"\${TOPDIR}\"
5773
5774 pkg=\"hello-2.0-1.x86_64.rpm\"
5775 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
5776 # conv=notrunc bs=1 seek=261 count=6 2> /dev/null
5777 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
5778    conv=notrunc bs=1 seek=333 count=4 2> /dev/null
5779 runroot rpmkeys -Kv /tmp/\${pkg}
5780 "
5781 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:33"
5782 ( $at_check_trace;
5783
5784 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5785
5786
5787 runroot rpm --initdb
5788
5789 rm -rf "${TOPDIR}"
5790
5791 pkg="hello-2.0-1.x86_64.rpm"
5792 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
5793 # conv=notrunc bs=1 seek=261 count=6 2> /dev/null
5794 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
5795    conv=notrunc bs=1 seek=333 count=4 2> /dev/null
5796 runroot rpmkeys -Kv /tmp/${pkg}
5797
5798 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5799 at_status=$? at_failed=false
5800 $at_check_filter
5801 at_fn_diff_devnull "$at_stderr" || at_failed=:
5802 echo >>"$at_stdout"; $as_echo "/tmp/hello-2.0-1.x86_64.rpm:
5803     Header SHA1 digest: OK
5804     Header SHA256 digest: OK
5805     Payload SHA256 digest: OK
5806     MD5 digest: BAD (Expected 007ca1d8b35cca02a1854ba301c5432e != 137ca1d8b35cca02a1854ba301c5432e)
5807 " | \
5808   $at_diff - "$at_stdout" || at_failed=:
5809 at_fn_check_status 1 $at_status "$at_srcdir/rpmsigdig.at:33"
5810 $at_failed && at_fn_log_failure
5811 $at_traceon; }
5812
5813   set +x
5814   $at_times_p && times >"$at_times_file"
5815 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5816 read at_status <"$at_status_file"
5817 #AT_STOP_52
5818 #AT_START_53
5819 at_fn_group_banner 53 'rpmsigdig.at:56' \
5820   "rpmkeys -Kv <corrupted unsigned> 2" "             " 5
5821 at_xfail=no
5822 (
5823   $as_echo "53. $at_setup_line: testing $at_desc ..."
5824   $at_traceon
5825
5826
5827 { set +x
5828 $as_echo "$at_srcdir/rpmsigdig.at:58:
5829
5830 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5831
5832
5833 runroot rpm --initdb
5834
5835 rm -rf \"\${TOPDIR}\"
5836
5837 pkg=\"hello-2.0-1.x86_64.rpm\"
5838 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
5839 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
5840    conv=notrunc bs=1 seek=5555 count=6 2> /dev/null
5841 runroot rpmkeys -Kv /tmp/\${pkg}
5842 "
5843 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:58"
5844 ( $at_check_trace;
5845
5846 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5847
5848
5849 runroot rpm --initdb
5850
5851 rm -rf "${TOPDIR}"
5852
5853 pkg="hello-2.0-1.x86_64.rpm"
5854 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
5855 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
5856    conv=notrunc bs=1 seek=5555 count=6 2> /dev/null
5857 runroot rpmkeys -Kv /tmp/${pkg}
5858
5859 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5860 at_status=$? at_failed=false
5861 $at_check_filter
5862 at_fn_diff_devnull "$at_stderr" || at_failed=:
5863 echo >>"$at_stdout"; $as_echo "/tmp/hello-2.0-1.x86_64.rpm:
5864     Header SHA1 digest: BAD (Expected 5cd9874c510b67b44483f9e382a1649ef7743bac != 4261b2c1eb861a4152c2239bce20bfbcaa8971ba)
5865     Header SHA256 digest: BAD (Expected ef920781af3bf072ae9888eec3de1c589143101dff9cc0b561468d395fb766d9 != 29fdfe92782fb0470a9a164a6c94af87d3b138c63b39d4c30e0223ca1202ba82)
5866     Payload SHA256 digest: OK
5867     MD5 digest: BAD (Expected 137ca1d8b35cca02a1854ba301c5432e != de65519eeb4ab52eb076ec054d42e34e)
5868 " | \
5869   $at_diff - "$at_stdout" || at_failed=:
5870 at_fn_check_status 1 $at_status "$at_srcdir/rpmsigdig.at:58"
5871 $at_failed && at_fn_log_failure
5872 $at_traceon; }
5873
5874   set +x
5875   $at_times_p && times >"$at_times_file"
5876 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5877 read at_status <"$at_status_file"
5878 #AT_STOP_53
5879 #AT_START_54
5880 at_fn_group_banner 54 'rpmsigdig.at:81' \
5881   "rpmkeys -Kv <corrupted unsigned> 3" "             " 5
5882 at_xfail=no
5883 (
5884   $as_echo "54. $at_setup_line: testing $at_desc ..."
5885   $at_traceon
5886
5887
5888 { set +x
5889 $as_echo "$at_srcdir/rpmsigdig.at:83:
5890
5891 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5892
5893
5894 runroot rpm --initdb
5895
5896 rm -rf \"\${TOPDIR}\"
5897
5898 pkg=\"hello-2.0-1.x86_64.rpm\"
5899 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
5900 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
5901    conv=notrunc bs=1 seek=7777 count=6 2> /dev/null
5902 runroot rpmkeys -Kv /tmp/\${pkg}
5903 "
5904 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:83"
5905 ( $at_check_trace;
5906
5907 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5908
5909
5910 runroot rpm --initdb
5911
5912 rm -rf "${TOPDIR}"
5913
5914 pkg="hello-2.0-1.x86_64.rpm"
5915 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
5916 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
5917    conv=notrunc bs=1 seek=7777 count=6 2> /dev/null
5918 runroot rpmkeys -Kv /tmp/${pkg}
5919
5920 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5921 at_status=$? at_failed=false
5922 $at_check_filter
5923 at_fn_diff_devnull "$at_stderr" || at_failed=:
5924 echo >>"$at_stdout"; $as_echo "/tmp/hello-2.0-1.x86_64.rpm:
5925     Header SHA1 digest: OK
5926     Header SHA256 digest: OK
5927     Payload SHA256 digest: BAD (Expected 84a7338287bf19715c4eed0243f5cdb447eeb0ade37b2af718d4060aefca2f7c != bea903609dceac36e1f26a983c493c98064d320fdfeb423034ed63d649b2c8dc)
5928     MD5 digest: BAD (Expected 137ca1d8b35cca02a1854ba301c5432e != d662cd0d81601a7107312684ad1ddf38)
5929 " | \
5930   $at_diff - "$at_stdout" || at_failed=:
5931 at_fn_check_status 1 $at_status "$at_srcdir/rpmsigdig.at:83"
5932 $at_failed && at_fn_log_failure
5933 $at_traceon; }
5934
5935   set +x
5936   $at_times_p && times >"$at_times_file"
5937 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
5938 read at_status <"$at_status_file"
5939 #AT_STOP_54
5940 #AT_START_55
5941 at_fn_group_banner 55 'rpmsigdig.at:106' \
5942   "rpmkeys -Kv <unsigned> 2" "                       " 5
5943 at_xfail=no
5944 (
5945   $as_echo "55. $at_setup_line: testing $at_desc ..."
5946   $at_traceon
5947
5948
5949 { set +x
5950 $as_echo "$at_srcdir/rpmsigdig.at:108:
5951
5952 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5953
5954
5955 runroot rpm --initdb
5956
5957 rm -rf \"\${TOPDIR}\"
5958
5959 runroot rpmbuild -bb --quiet \\
5960         --define \"%optflags -O2 -g\" \\
5961         --define \"%_target_platform noarch-linux\" \\
5962         --define \"%_binary_payload w.ufdio\" \\
5963         --define \"%_buildhost localhost\" \\
5964         --define \"%source_date_epoch_from_changelog 1\" \\
5965         --define \"%clamp_mtime_to_source_date_epoch 1\" \\
5966         /data/SPECS/attrtest.spec
5967 runroot rpmkeys -Kv /build/RPMS/noarch/attrtest-1.0-1.noarch.rpm
5968 "
5969 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:108"
5970 ( $at_check_trace;
5971
5972 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5973
5974
5975 runroot rpm --initdb
5976
5977 rm -rf "${TOPDIR}"
5978
5979 runroot rpmbuild -bb --quiet \
5980         --define "%optflags -O2 -g" \
5981         --define "%_target_platform noarch-linux" \
5982         --define "%_binary_payload w.ufdio" \
5983         --define "%_buildhost localhost" \
5984         --define "%source_date_epoch_from_changelog 1" \
5985         --define "%clamp_mtime_to_source_date_epoch 1" \
5986         /data/SPECS/attrtest.spec
5987 runroot rpmkeys -Kv /build/RPMS/noarch/attrtest-1.0-1.noarch.rpm
5988
5989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5990 at_status=$? at_failed=false
5991 $at_check_filter
5992 at_fn_diff_devnull "$at_stderr" || at_failed=:
5993 echo >>"$at_stdout"; $as_echo "/build/RPMS/noarch/attrtest-1.0-1.noarch.rpm:
5994     Header SHA1 digest: OK
5995     Header SHA256 digest: OK
5996     Payload SHA256 digest: OK
5997     MD5 digest: OK
5998 " | \
5999   $at_diff - "$at_stdout" || at_failed=:
6000 at_fn_check_status 0 $at_status "$at_srcdir/rpmsigdig.at:108"
6001 $at_failed && at_fn_log_failure
6002 $at_traceon; }
6003
6004   set +x
6005   $at_times_p && times >"$at_times_file"
6006 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6007 read at_status <"$at_status_file"
6008 #AT_STOP_55
6009 #AT_START_56
6010 at_fn_group_banner 56 'rpmsigdig.at:135' \
6011   "rpmkeys --import rsa" "                           " 5
6012 at_xfail=no
6013 (
6014   $as_echo "56. $at_setup_line: testing $at_desc ..."
6015   $at_traceon
6016
6017
6018 { set +x
6019 $as_echo "$at_srcdir/rpmsigdig.at:137:
6020
6021 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6022
6023
6024 runroot rpm --initdb
6025
6026 rm -rf \"\${TOPDIR}\"
6027
6028 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6029 runroot rpm -qi gpg-pubkey-1964c5fc-58e63918|grep -v Date|grep -v Version:
6030 "
6031 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:137"
6032 ( $at_check_trace;
6033
6034 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6035
6036
6037 runroot rpm --initdb
6038
6039 rm -rf "${TOPDIR}"
6040
6041 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6042 runroot rpm -qi gpg-pubkey-1964c5fc-58e63918|grep -v Date|grep -v Version:
6043
6044 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6045 at_status=$? at_failed=false
6046 $at_check_filter
6047 at_fn_diff_devnull "$at_stderr" || at_failed=:
6048 echo >>"$at_stdout"; $as_echo "Name        : gpg-pubkey
6049 Version     : 1964c5fc
6050 Release     : 58e63918
6051 Architecture: (none)
6052 Group       : Public Keys
6053 Size        : 0
6054 License     : pubkey
6055 Signature   : (none)
6056 Source RPM  : (none)
6057 Build Host  : localhost
6058 Relocations : (not relocatable)
6059 Packager    : rpm.org RSA testkey <rsa@rpm.org>
6060 Summary     : gpg(rpm.org RSA testkey <rsa@rpm.org>)
6061 Description :
6062 -----BEGIN PGP PUBLIC KEY BLOCK-----
6063
6064 mQENBFjmORgBCAC7TMEk6wnjSs8Dr4yqSScWdU2pjcqrkTxuzdWvowcIUPZI0w/g
6065 HkRqGd4apjvY2V15kjL10gk3QhFP3pZ/9p7zh8o8NHX7aGdSGDK7NOq1eFaErPRY
6066 91LW9RiZ0lbOjXEzIL0KHxUiTQEmdXJT43DJMFPyW9fkCWg0OltiX618FUdWWfI8
6067 eySdLur1utnqBvdEbCUvWK2RX3vQZQdvEBODnNk2pxqTyV0w6VPQ96W++lF/5Aas
6068 7rUv3HIyIXxIggc8FRrnH+y9XvvHDonhTIlGnYZN4ubm9i4y3gOkrZlGTrEw7elQ
6069 1QeMyG2QQEbze8YjpTm4iLABCBrRfPRaQpwrABEBAAG0IXJwbS5vcmcgUlNBIHRl
6070 c3RrZXkgPHJzYUBycG0ub3JnPokBNwQTAQgAIQUCWOY5GAIbAwULCQgHAgYVCAkK
6071 CwIEFgIDAQIeAQIXgAAKCRBDRFkeGWTF/MxxCACnjqFL+MmPh9W9JQKT2DcLbBzf
6072 Cqo6wcEBoCOcwgRSk8dSikhARoteoa55JRJhuMyeKhhEAogE9HRmCPFdjezFTwgB
6073 BDVBpO2dZ023mLXDVCYX3S8pShOgCP6Tn4wqCnYeAdLcGg106N4xcmgtcssJE+Pr
6074 XzTZksbZsrTVEmL/Ym+R5w5jBfFnGk7Yw7ndwfQsfNXQb5AZynClFxnX546lcyZX
6075 fEx3/e6ezw57WNOUK6WT+8b+EGovPkbetK/rGxNXuWaP6X4A/QUm8O98nCuHYFQq
6076 +mvNdsCBqGf7mhaRGtpHk/JgCn5rFvArMDqLVrR9hX0LdCSsH7EGE+bR3r7wuQEN
6077 BFjmORgBCACk+vDZrIXQuFXEYToZVwb2attzbbJJCqD71vmZTLsW0QxuPKRgbcYY
6078 zp4K4lVBnHhFrF8MOUOxJ7kQWIJZMZFt+BDcptCYurbD2H4W2xvnWViiC+LzCMzz
6079 iMJT6165uefL4JHTDPxC2fFiM9yrc72LmylJNkM/vepT128J5Qv0gRUaQbHiQuS6
6080 Dm/+WRnUfx3i89SV4mnBxb/Ta93GVqoOciWwzWSnwEnWYAvOb95JL4U7c5J5f/+c
6081 KnQDHsW7sIiIdscsWzvgf6qs2Ra1Zrt7Fdk4+ZS2f/adagLhDO1C24sXf5XfMk5m
6082 L0OGwZSr9m5s17VXxfspgU5ugc8kBJfzABEBAAGJAR8EGAEIAAkFAljmORgCGwwA
6083 CgkQQ0RZHhlkxfzwDQf/Y5on5o+s/xD3tDyRYa6SErfT44lEArdCD7Yi+cygJFox
6084 3jyM8ovtJAkwRegwyxcaLN7zeG1p1Sk9ZAYWQEJT6qSU4Ppu+CVGHgxgnTcfUiu6
6085 EZZQE6srvua53IMY1lT50M7vx0T5VicHFRWBFV2C/Mc32p7cEE6nn45nEZgUXQNl
6086 ySEyvoRlsAJq6gFsfqucVz2vMJDTMVczUtq1CjvUqFbif8JVL36EoZCf1SeRw6d6
6087 s1Kp3AA33Rjd+Uw87HJ4EIB75zMFQX2H0ggAVdYTQcqGXHP5MZK1jJrHfxJyMi3d
6088 UNW2iqnN3BA7guhOv6OMiROF1+I7Q5nWT63mQC7IgQ==
6089 =Z6nu
6090 -----END PGP PUBLIC KEY BLOCK-----
6091
6092 " | \
6093   $at_diff - "$at_stdout" || at_failed=:
6094 at_fn_check_status 0 $at_status "$at_srcdir/rpmsigdig.at:137"
6095 $at_failed && at_fn_log_failure
6096 $at_traceon; }
6097
6098   set +x
6099   $at_times_p && times >"$at_times_file"
6100 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6101 read at_status <"$at_status_file"
6102 #AT_STOP_56
6103 #AT_START_57
6104 at_fn_group_banner 57 'rpmsigdig.at:196' \
6105   "rpmkeys -K <signed> 1" "                          " 5
6106 at_xfail=no
6107 (
6108   $as_echo "57. $at_setup_line: testing $at_desc ..."
6109   $at_traceon
6110
6111
6112 { set +x
6113 $as_echo "$at_srcdir/rpmsigdig.at:198:
6114
6115 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6116
6117
6118 runroot rpm --initdb
6119
6120 rm -rf \"\${TOPDIR}\"
6121
6122 runroot rpmkeys -K /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6123 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6124 runroot rpmkeys -K /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6125 "
6126 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:198"
6127 ( $at_check_trace;
6128
6129 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6130
6131
6132 runroot rpm --initdb
6133
6134 rm -rf "${TOPDIR}"
6135
6136 runroot rpmkeys -K /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6137 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6138 runroot rpmkeys -K /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6139
6140 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6141 at_status=$? at_failed=false
6142 $at_check_filter
6143 at_fn_diff_devnull "$at_stderr" || at_failed=:
6144 echo >>"$at_stdout"; $as_echo "/data/RPMS/hello-2.0-1.x86_64-signed.rpm: digests SIGNATURES NOT OK
6145 /data/RPMS/hello-2.0-1.x86_64-signed.rpm: digests signatures OK
6146 " | \
6147   $at_diff - "$at_stdout" || at_failed=:
6148 at_fn_check_status 0 $at_status "$at_srcdir/rpmsigdig.at:198"
6149 $at_failed && at_fn_log_failure
6150 $at_traceon; }
6151
6152   set +x
6153   $at_times_p && times >"$at_times_file"
6154 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6155 read at_status <"$at_status_file"
6156 #AT_STOP_57
6157 #AT_START_58
6158 at_fn_group_banner 58 'rpmsigdig.at:216' \
6159   "rpmkeys -Kv <signed> 1" "                         " 5
6160 at_xfail=no
6161 (
6162   $as_echo "58. $at_setup_line: testing $at_desc ..."
6163   $at_traceon
6164
6165
6166 { set +x
6167 $as_echo "$at_srcdir/rpmsigdig.at:218:
6168
6169 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6170
6171
6172 runroot rpm --initdb
6173
6174 rm -rf \"\${TOPDIR}\"
6175
6176 runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6177 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6178 runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6179 runroot rpmkeys -Kv --nodigest /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6180 runroot rpmkeys -Kv --nosignature /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6181 "
6182 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:218"
6183 ( $at_check_trace;
6184
6185 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6186
6187
6188 runroot rpm --initdb
6189
6190 rm -rf "${TOPDIR}"
6191
6192 runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6193 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6194 runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6195 runroot rpmkeys -Kv --nodigest /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6196 runroot rpmkeys -Kv --nosignature /data/RPMS/hello-2.0-1.x86_64-signed.rpm
6197
6198 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6199 at_status=$? at_failed=false
6200 $at_check_filter
6201 at_fn_diff_devnull "$at_stderr" || at_failed=:
6202 echo >>"$at_stdout"; $as_echo "/data/RPMS/hello-2.0-1.x86_64-signed.rpm:
6203     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
6204     Header SHA1 digest: OK
6205     Header SHA256 digest: OK
6206     Payload SHA256 digest: OK
6207     V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
6208     MD5 digest: OK
6209 /data/RPMS/hello-2.0-1.x86_64-signed.rpm:
6210     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: OK
6211     Header SHA1 digest: OK
6212     Header SHA256 digest: OK
6213     Payload SHA256 digest: OK
6214     V4 RSA/SHA256 Signature, key ID 1964c5fc: OK
6215     MD5 digest: OK
6216 /data/RPMS/hello-2.0-1.x86_64-signed.rpm:
6217     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: OK
6218     V4 RSA/SHA256 Signature, key ID 1964c5fc: OK
6219 /data/RPMS/hello-2.0-1.x86_64-signed.rpm:
6220     Header SHA1 digest: OK
6221     Header SHA256 digest: OK
6222     Payload SHA256 digest: OK
6223     MD5 digest: OK
6224 " | \
6225   $at_diff - "$at_stdout" || at_failed=:
6226 at_fn_check_status 0 $at_status "$at_srcdir/rpmsigdig.at:218"
6227 $at_failed && at_fn_log_failure
6228 $at_traceon; }
6229
6230   set +x
6231   $at_times_p && times >"$at_times_file"
6232 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6233 read at_status <"$at_status_file"
6234 #AT_STOP_58
6235 #AT_START_59
6236 at_fn_group_banner 59 'rpmsigdig.at:258' \
6237   "rpmkeys -Kv <corrupted signed> 1" "               " 5
6238 at_xfail=no
6239 (
6240   $as_echo "59. $at_setup_line: testing $at_desc ..."
6241   $at_traceon
6242
6243
6244 { set +x
6245 $as_echo "$at_srcdir/rpmsigdig.at:260:
6246
6247 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6248
6249
6250 runroot rpm --initdb
6251
6252 rm -rf \"\${TOPDIR}\"
6253
6254 pkg=\"hello-2.0-1.x86_64-signed.rpm\"
6255 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
6256 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
6257    conv=notrunc bs=1 seek=264 count=6 2> /dev/null
6258
6259 runroot rpmkeys -Kv /tmp/\${pkg}
6260 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6261 runroot rpmkeys -Kv /tmp/\${pkg}
6262 "
6263 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:260"
6264 ( $at_check_trace;
6265
6266 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6267
6268
6269 runroot rpm --initdb
6270
6271 rm -rf "${TOPDIR}"
6272
6273 pkg="hello-2.0-1.x86_64-signed.rpm"
6274 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
6275 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
6276    conv=notrunc bs=1 seek=264 count=6 2> /dev/null
6277
6278 runroot rpmkeys -Kv /tmp/${pkg}
6279 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6280 runroot rpmkeys -Kv /tmp/${pkg}
6281
6282 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6283 at_status=$? at_failed=false
6284 $at_check_filter
6285 at_fn_diff_devnull "$at_stderr" || at_failed=:
6286 echo >>"$at_stdout"; $as_echo "/tmp/hello-2.0-1.x86_64-signed.rpm:
6287     Header signature: BAD (package tag 268: invalid OpenPGP signature)
6288     Header SHA1 digest: OK
6289     Header SHA256 digest: OK
6290     Payload SHA256 digest: OK
6291     V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
6292     MD5 digest: OK
6293 /tmp/hello-2.0-1.x86_64-signed.rpm:
6294     Header signature: BAD (package tag 268: invalid OpenPGP signature)
6295     Header SHA1 digest: OK
6296     Header SHA256 digest: OK
6297     Payload SHA256 digest: OK
6298     V4 RSA/SHA256 Signature, key ID 1964c5fc: OK
6299     MD5 digest: OK
6300 " | \
6301   $at_diff - "$at_stdout" || at_failed=:
6302 at_fn_check_status 1 $at_status "$at_srcdir/rpmsigdig.at:260"
6303 $at_failed && at_fn_log_failure
6304 $at_traceon; }
6305
6306   set +x
6307   $at_times_p && times >"$at_times_file"
6308 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6309 read at_status <"$at_status_file"
6310 #AT_STOP_59
6311 #AT_START_60
6312 at_fn_group_banner 60 'rpmsigdig.at:294' \
6313   "rpmkeys -Kv <corrupted signed> 2" "               " 5
6314 at_xfail=no
6315 (
6316   $as_echo "60. $at_setup_line: testing $at_desc ..."
6317   $at_traceon
6318
6319
6320 { set +x
6321 $as_echo "$at_srcdir/rpmsigdig.at:296:
6322
6323 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6324
6325
6326 runroot rpm --initdb
6327
6328 rm -rf \"\${TOPDIR}\"
6329
6330 pkg=\"hello-2.0-1.x86_64-signed.rpm\"
6331 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
6332 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
6333    conv=notrunc bs=1 seek=5555 count=6 2> /dev/null
6334
6335 runroot rpmkeys -Kv /tmp/\${pkg}
6336 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6337 runroot rpmkeys -Kv /tmp/\${pkg}
6338 "
6339 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:296"
6340 ( $at_check_trace;
6341
6342 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6343
6344
6345 runroot rpm --initdb
6346
6347 rm -rf "${TOPDIR}"
6348
6349 pkg="hello-2.0-1.x86_64-signed.rpm"
6350 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
6351 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
6352    conv=notrunc bs=1 seek=5555 count=6 2> /dev/null
6353
6354 runroot rpmkeys -Kv /tmp/${pkg}
6355 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6356 runroot rpmkeys -Kv /tmp/${pkg}
6357
6358 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6359 at_status=$? at_failed=false
6360 $at_check_filter
6361 at_fn_diff_devnull "$at_stderr" || at_failed=:
6362 echo >>"$at_stdout"; $as_echo "/tmp/hello-2.0-1.x86_64-signed.rpm:
6363     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: BAD
6364     Header SHA1 digest: BAD (Expected 5cd9874c510b67b44483f9e382a1649ef7743bac != 4261b2c1eb861a4152c2239bce20bfbcaa8971ba)
6365     Header SHA256 digest: BAD (Expected ef920781af3bf072ae9888eec3de1c589143101dff9cc0b561468d395fb766d9 != 29fdfe92782fb0470a9a164a6c94af87d3b138c63b39d4c30e0223ca1202ba82)
6366     Payload SHA256 digest: OK
6367     V4 RSA/SHA256 Signature, key ID 1964c5fc: BAD
6368     MD5 digest: BAD (Expected 137ca1d8b35cca02a1854ba301c5432e != de65519eeb4ab52eb076ec054d42e34e)
6369 /tmp/hello-2.0-1.x86_64-signed.rpm:
6370     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: BAD
6371     Header SHA1 digest: BAD (Expected 5cd9874c510b67b44483f9e382a1649ef7743bac != 4261b2c1eb861a4152c2239bce20bfbcaa8971ba)
6372     Header SHA256 digest: BAD (Expected ef920781af3bf072ae9888eec3de1c589143101dff9cc0b561468d395fb766d9 != 29fdfe92782fb0470a9a164a6c94af87d3b138c63b39d4c30e0223ca1202ba82)
6373     Payload SHA256 digest: OK
6374     V4 RSA/SHA256 Signature, key ID 1964c5fc: BAD
6375     MD5 digest: BAD (Expected 137ca1d8b35cca02a1854ba301c5432e != de65519eeb4ab52eb076ec054d42e34e)
6376 " | \
6377   $at_diff - "$at_stdout" || at_failed=:
6378 at_fn_check_status 1 $at_status "$at_srcdir/rpmsigdig.at:296"
6379 $at_failed && at_fn_log_failure
6380 $at_traceon; }
6381
6382   set +x
6383   $at_times_p && times >"$at_times_file"
6384 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6385 read at_status <"$at_status_file"
6386 #AT_STOP_60
6387 #AT_START_61
6388 at_fn_group_banner 61 'rpmsigdig.at:331' \
6389   "rpmkeys -Kv <corrupted signed> 3" "               " 5
6390 at_xfail=no
6391 (
6392   $as_echo "61. $at_setup_line: testing $at_desc ..."
6393   $at_traceon
6394
6395
6396 { set +x
6397 $as_echo "$at_srcdir/rpmsigdig.at:333:
6398
6399 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6400
6401
6402 runroot rpm --initdb
6403
6404 rm -rf \"\${TOPDIR}\"
6405
6406 pkg=\"hello-2.0-1.x86_64-signed.rpm\"
6407 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
6408 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
6409    conv=notrunc bs=1 seek=7777 count=6 2> /dev/null
6410
6411 runroot rpmkeys -Kv /tmp/\${pkg}
6412 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6413 runroot rpmkeys -Kv /tmp/\${pkg}
6414 "
6415 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:333"
6416 ( $at_check_trace;
6417
6418 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6419
6420
6421 runroot rpm --initdb
6422
6423 rm -rf "${TOPDIR}"
6424
6425 pkg="hello-2.0-1.x86_64-signed.rpm"
6426 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
6427 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
6428    conv=notrunc bs=1 seek=7777 count=6 2> /dev/null
6429
6430 runroot rpmkeys -Kv /tmp/${pkg}
6431 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6432 runroot rpmkeys -Kv /tmp/${pkg}
6433
6434 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6435 at_status=$? at_failed=false
6436 $at_check_filter
6437 at_fn_diff_devnull "$at_stderr" || at_failed=:
6438 echo >>"$at_stdout"; $as_echo "/tmp/hello-2.0-1.x86_64-signed.rpm:
6439     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
6440     Header SHA1 digest: OK
6441     Header SHA256 digest: OK
6442     Payload SHA256 digest: BAD (Expected 84a7338287bf19715c4eed0243f5cdb447eeb0ade37b2af718d4060aefca2f7c != bea903609dceac36e1f26a983c493c98064d320fdfeb423034ed63d649b2c8dc)
6443     V4 RSA/SHA256 Signature, key ID 1964c5fc: BAD
6444     MD5 digest: BAD (Expected 137ca1d8b35cca02a1854ba301c5432e != d662cd0d81601a7107312684ad1ddf38)
6445 /tmp/hello-2.0-1.x86_64-signed.rpm:
6446     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: OK
6447     Header SHA1 digest: OK
6448     Header SHA256 digest: OK
6449     Payload SHA256 digest: BAD (Expected 84a7338287bf19715c4eed0243f5cdb447eeb0ade37b2af718d4060aefca2f7c != bea903609dceac36e1f26a983c493c98064d320fdfeb423034ed63d649b2c8dc)
6450     V4 RSA/SHA256 Signature, key ID 1964c5fc: BAD
6451     MD5 digest: BAD (Expected 137ca1d8b35cca02a1854ba301c5432e != d662cd0d81601a7107312684ad1ddf38)
6452 " | \
6453   $at_diff - "$at_stdout" || at_failed=:
6454 at_fn_check_status 1 $at_status "$at_srcdir/rpmsigdig.at:333"
6455 $at_failed && at_fn_log_failure
6456 $at_traceon; }
6457
6458   set +x
6459   $at_times_p && times >"$at_times_file"
6460 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6461 read at_status <"$at_status_file"
6462 #AT_STOP_61
6463 #AT_START_62
6464 at_fn_group_banner 62 'rpmsigdig.at:368' \
6465   "rpmsign --addsign <unsigned>" "                   " 5
6466 at_xfail=no
6467 (
6468   $as_echo "62. $at_setup_line: testing $at_desc ..."
6469   $at_traceon
6470
6471
6472 { set +x
6473 $as_echo "$at_srcdir/rpmsigdig.at:370:
6474
6475 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6476
6477
6478 runroot rpm --initdb
6479
6480 rm -rf \"\${TOPDIR}\"
6481
6482 cp \"\${RPMTEST}\"/data/RPMS/hello-2.0-1.x86_64.rpm \"\${RPMTEST}\"/tmp/
6483 run rpmsign --key-id 1964C5FC --addsign \"\${RPMTEST}\"/tmp/hello-2.0-1.x86_64.rpm > /dev/null
6484 echo PRE-IMPORT
6485 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
6486 echo POST-IMPORT
6487 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6488 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
6489 run rpmsign --delsign \"\${RPMTEST}\"/tmp/hello-2.0-1.x86_64.rpm > /dev/null
6490 echo POST-DELSIGN
6491 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
6492 "
6493 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:370"
6494 ( $at_check_trace;
6495
6496 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6497
6498
6499 runroot rpm --initdb
6500
6501 rm -rf "${TOPDIR}"
6502
6503 cp "${RPMTEST}"/data/RPMS/hello-2.0-1.x86_64.rpm "${RPMTEST}"/tmp/
6504 run rpmsign --key-id 1964C5FC --addsign "${RPMTEST}"/tmp/hello-2.0-1.x86_64.rpm > /dev/null
6505 echo PRE-IMPORT
6506 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
6507 echo POST-IMPORT
6508 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6509 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
6510 run rpmsign --delsign "${RPMTEST}"/tmp/hello-2.0-1.x86_64.rpm > /dev/null
6511 echo POST-DELSIGN
6512 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
6513
6514 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6515 at_status=$? at_failed=false
6516 $at_check_filter
6517 at_fn_diff_devnull "$at_stderr" || at_failed=:
6518 echo >>"$at_stdout"; $as_echo "PRE-IMPORT
6519 /tmp/hello-2.0-1.x86_64.rpm:
6520     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
6521     V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
6522 POST-IMPORT
6523 /tmp/hello-2.0-1.x86_64.rpm:
6524     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: OK
6525     V4 RSA/SHA256 Signature, key ID 1964c5fc: OK
6526 POST-DELSIGN
6527 /tmp/hello-2.0-1.x86_64.rpm:
6528 " | \
6529   $at_diff - "$at_stdout" || at_failed=:
6530 at_fn_check_status 0 $at_status "$at_srcdir/rpmsigdig.at:370"
6531 $at_failed && at_fn_log_failure
6532 $at_traceon; }
6533
6534   set +x
6535   $at_times_p && times >"$at_times_file"
6536 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6537 read at_status <"$at_status_file"
6538 #AT_STOP_62
6539 #AT_START_63
6540 at_fn_group_banner 63 'rpmsigdig.at:403' \
6541   "rpmsign --delsign <package>" "                    " 5
6542 at_xfail=no
6543 (
6544   $as_echo "63. $at_setup_line: testing $at_desc ..."
6545   $at_traceon
6546
6547
6548 { set +x
6549 $as_echo "$at_srcdir/rpmsigdig.at:405:
6550
6551 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6552
6553
6554 runroot rpm --initdb
6555
6556 rm -rf \"\${TOPDIR}\"
6557
6558 cp \"\${RPMTEST}\"/data/RPMS/hello-2.0-1.x86_64-signed.rpm \"\${RPMTEST}\"/tmp/
6559 echo PRE-DELSIGN
6560 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64-signed.rpm|grep -v digest
6561 echo POST-DELSIGN
6562 run rpmsign --delsign \"\${RPMTEST}\"/tmp/hello-2.0-1.x86_64-signed.rpm > /dev/null
6563 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64-signed.rpm|grep -v digest
6564 "
6565 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:405"
6566 ( $at_check_trace;
6567
6568 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6569
6570
6571 runroot rpm --initdb
6572
6573 rm -rf "${TOPDIR}"
6574
6575 cp "${RPMTEST}"/data/RPMS/hello-2.0-1.x86_64-signed.rpm "${RPMTEST}"/tmp/
6576 echo PRE-DELSIGN
6577 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64-signed.rpm|grep -v digest
6578 echo POST-DELSIGN
6579 run rpmsign --delsign "${RPMTEST}"/tmp/hello-2.0-1.x86_64-signed.rpm > /dev/null
6580 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64-signed.rpm|grep -v digest
6581
6582 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6583 at_status=$? at_failed=false
6584 $at_check_filter
6585 at_fn_diff_devnull "$at_stderr" || at_failed=:
6586 echo >>"$at_stdout"; $as_echo "PRE-DELSIGN
6587 /tmp/hello-2.0-1.x86_64-signed.rpm:
6588     Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
6589     V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
6590 POST-DELSIGN
6591 /tmp/hello-2.0-1.x86_64-signed.rpm:
6592 " | \
6593   $at_diff - "$at_stdout" || at_failed=:
6594 at_fn_check_status 0 $at_status "$at_srcdir/rpmsigdig.at:405"
6595 $at_failed && at_fn_log_failure
6596 $at_traceon; }
6597
6598   set +x
6599   $at_times_p && times >"$at_times_file"
6600 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6601 read at_status <"$at_status_file"
6602 #AT_STOP_63
6603 #AT_START_64
6604 at_fn_group_banner 64 'rpmsigdig.at:430' \
6605   "rpmsign --addsign <signed>" "                     " 5
6606 at_xfail=no
6607 (
6608   $as_echo "64. $at_setup_line: testing $at_desc ..."
6609   $at_traceon
6610
6611
6612 { set +x
6613 $as_echo "$at_srcdir/rpmsigdig.at:432:
6614
6615 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6616
6617
6618 runroot rpm --initdb
6619
6620 rm -rf \"\${TOPDIR}\"
6621
6622 cp \"\${RPMTEST}\"/data/RPMS/hello-2.0-1.x86_64-signed.rpm \"\${RPMTEST}\"/tmp/
6623 run rpmsign --key-id 1964C5FC --addsign \"\${RPMTEST}\"/tmp/hello-2.0-1.x86_64-signed.rpm 2>&1 |grep -q \"already contains identical signature, skipping\"
6624 "
6625 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:432"
6626 ( $at_check_trace;
6627
6628 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6629
6630
6631 runroot rpm --initdb
6632
6633 rm -rf "${TOPDIR}"
6634
6635 cp "${RPMTEST}"/data/RPMS/hello-2.0-1.x86_64-signed.rpm "${RPMTEST}"/tmp/
6636 run rpmsign --key-id 1964C5FC --addsign "${RPMTEST}"/tmp/hello-2.0-1.x86_64-signed.rpm 2>&1 |grep -q "already contains identical signature, skipping"
6637
6638 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6639 at_status=$? at_failed=false
6640 $at_check_filter
6641 at_fn_diff_devnull "$at_stderr" || at_failed=:
6642 at_fn_diff_devnull "$at_stdout" || at_failed=:
6643 at_fn_check_status 0 $at_status "$at_srcdir/rpmsigdig.at:432"
6644 $at_failed && at_fn_log_failure
6645 $at_traceon; }
6646
6647   set +x
6648   $at_times_p && times >"$at_times_file"
6649 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6650 read at_status <"$at_status_file"
6651 #AT_STOP_64
6652 #AT_START_65
6653 at_fn_group_banner 65 'rpmdb.at:23' \
6654   "rpm --initdb" "                                   " 6
6655 at_xfail=no
6656 (
6657   $as_echo "65. $at_setup_line: testing $at_desc ..."
6658   $at_traceon
6659
6660
6661 { set +x
6662 $as_echo "$at_srcdir/rpmdb.at:25:
6663
6664 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6665
6666
6667 runroot rpm --initdb
6668
6669 "
6670 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:25"
6671 ( $at_check_trace;
6672
6673 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6674
6675
6676 runroot rpm --initdb
6677
6678
6679 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6680 at_status=$? at_failed=false
6681 $at_check_filter
6682 echo stderr:; cat "$at_stderr"
6683 echo stdout:; cat "$at_stdout"
6684 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:25"
6685 $at_failed && at_fn_log_failure
6686 $at_traceon; }
6687
6688   set +x
6689   $at_times_p && times >"$at_times_file"
6690 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6691 read at_status <"$at_status_file"
6692 #AT_STOP_65
6693 #AT_START_66
6694 at_fn_group_banner 66 'rpmdb.at:36' \
6695   "rpm -qa" "                                        " 6
6696 at_xfail=no
6697 (
6698   $as_echo "66. $at_setup_line: testing $at_desc ..."
6699   $at_traceon
6700
6701
6702 { set +x
6703 $as_echo "$at_srcdir/rpmdb.at:38:
6704
6705 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6706
6707
6708 runroot rpm --initdb
6709
6710 runroot rpm \\
6711   -qa
6712 "
6713 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:38"
6714 ( $at_check_trace;
6715
6716 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6717
6718
6719 runroot rpm --initdb
6720
6721 runroot rpm \
6722   -qa
6723
6724 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6725 at_status=$? at_failed=false
6726 $at_check_filter
6727 at_fn_diff_devnull "$at_stderr" || at_failed=:
6728 at_fn_diff_devnull "$at_stdout" || at_failed=:
6729 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:38"
6730 $at_failed && at_fn_log_failure
6731 $at_traceon; }
6732
6733   set +x
6734   $at_times_p && times >"$at_times_file"
6735 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6736 read at_status <"$at_status_file"
6737 #AT_STOP_66
6738 #AT_START_67
6739 at_fn_group_banner 67 'rpmdb.at:49' \
6740   "rpm -q foo" "                                     " 6
6741 at_xfail=no
6742 (
6743   $as_echo "67. $at_setup_line: testing $at_desc ..."
6744   $at_traceon
6745
6746
6747 { set +x
6748 $as_echo "$at_srcdir/rpmdb.at:51:
6749
6750 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6751
6752
6753 runroot rpm --initdb
6754
6755
6756 runroot rpm -i \\
6757   /data/RPMS/foo-1.0-1.noarch.rpm
6758
6759 runroot rpm -q foo
6760
6761 "
6762 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:51"
6763 ( $at_check_trace;
6764
6765 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6766
6767
6768 runroot rpm --initdb
6769
6770
6771 runroot rpm -i \
6772   /data/RPMS/foo-1.0-1.noarch.rpm
6773
6774 runroot rpm -q foo
6775
6776
6777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6778 at_status=$? at_failed=false
6779 $at_check_filter
6780 at_fn_diff_devnull "$at_stderr" || at_failed=:
6781 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
6782 " | \
6783   $at_diff - "$at_stdout" || at_failed=:
6784 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:51"
6785 $at_failed && at_fn_log_failure
6786 $at_traceon; }
6787
6788   set +x
6789   $at_times_p && times >"$at_times_file"
6790 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6791 read at_status <"$at_status_file"
6792 #AT_STOP_67
6793 #AT_START_68
6794 at_fn_group_banner 68 'rpmdb.at:69' \
6795   "rpm -q foo-" "                                    " 6
6796 at_xfail=no
6797 (
6798   $as_echo "68. $at_setup_line: testing $at_desc ..."
6799   $at_traceon
6800
6801
6802 { set +x
6803 $as_echo "$at_srcdir/rpmdb.at:71:
6804
6805 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6806
6807
6808 runroot rpm --initdb
6809
6810
6811 runroot rpm -i \\
6812   /data/RPMS/foo-1.0-1.noarch.rpm
6813
6814 runroot rpm -q foo-
6815
6816 "
6817 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:71"
6818 ( $at_check_trace;
6819
6820 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6821
6822
6823 runroot rpm --initdb
6824
6825
6826 runroot rpm -i \
6827   /data/RPMS/foo-1.0-1.noarch.rpm
6828
6829 runroot rpm -q foo-
6830
6831
6832 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6833 at_status=$? at_failed=false
6834 $at_check_filter
6835 at_fn_diff_devnull "$at_stderr" || at_failed=:
6836 echo >>"$at_stdout"; $as_echo "package foo- is not installed
6837 " | \
6838   $at_diff - "$at_stdout" || at_failed=:
6839 at_fn_check_status 1 $at_status "$at_srcdir/rpmdb.at:71"
6840 $at_failed && at_fn_log_failure
6841 $at_traceon; }
6842
6843   set +x
6844   $at_times_p && times >"$at_times_file"
6845 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6846 read at_status <"$at_status_file"
6847 #AT_STOP_68
6848 #AT_START_69
6849 at_fn_group_banner 69 'rpmdb.at:90' \
6850   "rpm -i *.noarch.rpm" "                            " 6
6851 at_xfail=no
6852 (
6853   $as_echo "69. $at_setup_line: testing $at_desc ..."
6854   $at_traceon
6855
6856
6857
6858 { set +x
6859 $as_echo "$at_srcdir/rpmdb.at:93:
6860
6861 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6862
6863
6864 runroot rpm --initdb
6865
6866
6867 runroot rpm -i \\
6868   /data/RPMS/foo-1.0-1.noarch.rpm
6869 "
6870 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:93"
6871 ( $at_check_trace;
6872
6873 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6874
6875
6876 runroot rpm --initdb
6877
6878
6879 runroot rpm -i \
6880   /data/RPMS/foo-1.0-1.noarch.rpm
6881
6882 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6883 at_status=$? at_failed=false
6884 $at_check_filter
6885 at_fn_diff_devnull "$at_stderr" || at_failed=:
6886 at_fn_diff_devnull "$at_stdout" || at_failed=:
6887 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:93"
6888 $at_failed && at_fn_log_failure
6889 $at_traceon; }
6890
6891
6892   set +x
6893   $at_times_p && times >"$at_times_file"
6894 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6895 read at_status <"$at_status_file"
6896 #AT_STOP_69
6897 #AT_START_70
6898 at_fn_group_banner 70 'rpmdb.at:106' \
6899   "rpm -U --replacepkgs 1" "                         " 6
6900 at_xfail=no
6901 (
6902   $as_echo "70. $at_setup_line: testing $at_desc ..."
6903   $at_traceon
6904
6905
6906
6907 { set +x
6908 $as_echo "$at_srcdir/rpmdb.at:109:
6909
6910 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6911
6912
6913 runroot rpm --initdb
6914
6915
6916 tpkg=\"/data/RPMS/foo-1.0-1.noarch.rpm\"
6917
6918 runroot rpm -i \"\${tpkg}\" &&
6919   runroot rpm -U --replacepkgs \"\${tpkg}\" &&
6920   runroot rpm -qa
6921 "
6922 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:109"
6923 ( $at_check_trace;
6924
6925 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6926
6927
6928 runroot rpm --initdb
6929
6930
6931 tpkg="/data/RPMS/foo-1.0-1.noarch.rpm"
6932
6933 runroot rpm -i "${tpkg}" &&
6934   runroot rpm -U --replacepkgs "${tpkg}" &&
6935   runroot rpm -qa
6936
6937 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6938 at_status=$? at_failed=false
6939 $at_check_filter
6940 at_fn_diff_devnull "$at_stderr" || at_failed=:
6941 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
6942 " | \
6943   $at_diff - "$at_stdout" || at_failed=:
6944 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:109"
6945 $at_failed && at_fn_log_failure
6946 $at_traceon; }
6947
6948
6949   set +x
6950   $at_times_p && times >"$at_times_file"
6951 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
6952 read at_status <"$at_status_file"
6953 #AT_STOP_70
6954 #AT_START_71
6955 at_fn_group_banner 71 'rpmdb.at:128' \
6956   "rpm -U --replacepkgs 2" "                         " 6
6957 at_xfail=no
6958       test $RPM_XFAIL -ne 0 && at_xfail=yes
6959 (
6960   $as_echo "71. $at_setup_line: testing $at_desc ..."
6961   $at_traceon
6962
6963
6964
6965 { set +x
6966 $as_echo "$at_srcdir/rpmdb.at:131:
6967
6968
6969 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6970
6971
6972 runroot rpm --initdb
6973
6974
6975 tpkg=\"/data/RPMS/hello-2.0-1.i686.rpm\"
6976
6977 runroot rpm -U --nodeps --ignorearch \"\${tpkg}\" &&
6978   runroot rpm -U --nodeps --ignorearch --nodocs --replacepkgs \"\${tpkg}\" &&
6979   runroot rpm -e hello
6980 test -d \"\${RPMTEST}\"/usr/share/doc/hello-2.0
6981 "
6982 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:131"
6983 ( $at_check_trace;
6984
6985
6986 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6987
6988
6989 runroot rpm --initdb
6990
6991
6992 tpkg="/data/RPMS/hello-2.0-1.i686.rpm"
6993
6994 runroot rpm -U --nodeps --ignorearch "${tpkg}" &&
6995   runroot rpm -U --nodeps --ignorearch --nodocs --replacepkgs "${tpkg}" &&
6996   runroot rpm -e hello
6997 test -d "${RPMTEST}"/usr/share/doc/hello-2.0
6998
6999 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7000 at_status=$? at_failed=false
7001 $at_check_filter
7002 at_fn_diff_devnull "$at_stderr" || at_failed=:
7003 at_fn_diff_devnull "$at_stdout" || at_failed=:
7004 at_fn_check_status 1 $at_status "$at_srcdir/rpmdb.at:131"
7005 $at_failed && at_fn_log_failure
7006 $at_traceon; }
7007
7008   set +x
7009   $at_times_p && times >"$at_times_file"
7010 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7011 read at_status <"$at_status_file"
7012 #AT_STOP_71
7013 #AT_START_72
7014 at_fn_group_banner 72 'rpmdb.at:150' \
7015   "rpm --reinstall 1" "                              " 6
7016 at_xfail=no
7017 (
7018   $as_echo "72. $at_setup_line: testing $at_desc ..."
7019   $at_traceon
7020
7021
7022
7023 { set +x
7024 $as_echo "$at_srcdir/rpmdb.at:153:
7025
7026 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7027
7028
7029 runroot rpm --initdb
7030
7031
7032 tpkg=\"/data/RPMS/hello-2.0-1.i686.rpm\"
7033
7034 runroot rpm -U --nodeps --ignorearch \"\${tpkg}\" &&
7035   runroot rpm --reinstall --nodeps --ignorearch --nodocs \"\${tpkg}\" &&
7036   runroot rpm -e hello
7037 test -d \"\${RPMTEST}\"/usr/share/doc/hello-2.0
7038 "
7039 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:153"
7040 ( $at_check_trace;
7041
7042 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7043
7044
7045 runroot rpm --initdb
7046
7047
7048 tpkg="/data/RPMS/hello-2.0-1.i686.rpm"
7049
7050 runroot rpm -U --nodeps --ignorearch "${tpkg}" &&
7051   runroot rpm --reinstall --nodeps --ignorearch --nodocs "${tpkg}" &&
7052   runroot rpm -e hello
7053 test -d "${RPMTEST}"/usr/share/doc/hello-2.0
7054
7055 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7056 at_status=$? at_failed=false
7057 $at_check_filter
7058 at_fn_diff_devnull "$at_stderr" || at_failed=:
7059 at_fn_diff_devnull "$at_stdout" || at_failed=:
7060 at_fn_check_status 1 $at_status "$at_srcdir/rpmdb.at:153"
7061 $at_failed && at_fn_log_failure
7062 $at_traceon; }
7063
7064   set +x
7065   $at_times_p && times >"$at_times_file"
7066 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7067 read at_status <"$at_status_file"
7068 #AT_STOP_72
7069 #AT_START_73
7070 at_fn_group_banner 73 'rpmdb.at:173' \
7071   "rpm -i --relocate=.. *.i386.rpm" "                " 6
7072 at_xfail=no
7073 (
7074   $as_echo "73. $at_setup_line: testing $at_desc ..."
7075   $at_traceon
7076
7077
7078 { set +x
7079 $as_echo "$at_srcdir/rpmdb.at:175:
7080
7081 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7082
7083
7084 runroot rpm --initdb
7085
7086
7087 runroot rpm -i \\
7088   --noscripts --nodeps --ignorearch --relocate=/usr=/check \\
7089   /data/RPMS/hello-1.0-1.i386.rpm
7090 "
7091 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:175"
7092 ( $at_check_trace;
7093
7094 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7095
7096
7097 runroot rpm --initdb
7098
7099
7100 runroot rpm -i \
7101   --noscripts --nodeps --ignorearch --relocate=/usr=/check \
7102   /data/RPMS/hello-1.0-1.i386.rpm
7103
7104 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7105 at_status=$? at_failed=false
7106 $at_check_filter
7107 at_fn_diff_devnull "$at_stderr" || at_failed=:
7108 at_fn_diff_devnull "$at_stdout" || at_failed=:
7109 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:175"
7110 $at_failed && at_fn_log_failure
7111 $at_traceon; }
7112
7113
7114   set +x
7115   $at_times_p && times >"$at_times_file"
7116 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7117 read at_status <"$at_status_file"
7118 #AT_STOP_73
7119 #AT_START_74
7120 at_fn_group_banner 74 'rpmdb.at:192' \
7121   "rpm -i --relocate=.. *.ppc64.rpm" "               " 6
7122 at_xfail=no
7123 (
7124   $as_echo "74. $at_setup_line: testing $at_desc ..."
7125   $at_traceon
7126
7127
7128 { set +x
7129 $as_echo "$at_srcdir/rpmdb.at:194:
7130
7131 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7132
7133
7134 runroot rpm --initdb
7135
7136
7137 runroot rpm -i \\
7138   --noscripts --nodeps --ignorearch --relocate=/usr=/check \\
7139   /data/RPMS/hello-1.0-1.ppc64.rpm
7140 "
7141 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:194"
7142 ( $at_check_trace;
7143
7144 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7145
7146
7147 runroot rpm --initdb
7148
7149
7150 runroot rpm -i \
7151   --noscripts --nodeps --ignorearch --relocate=/usr=/check \
7152   /data/RPMS/hello-1.0-1.ppc64.rpm
7153
7154 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7155 at_status=$? at_failed=false
7156 $at_check_filter
7157 echo stderr:; cat "$at_stderr"
7158 echo stdout:; cat "$at_stdout"
7159 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:194"
7160 $at_failed && at_fn_log_failure
7161 $at_traceon; }
7162
7163
7164   set +x
7165   $at_times_p && times >"$at_times_file"
7166 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7167 read at_status <"$at_status_file"
7168 #AT_STOP_74
7169 #AT_START_75
7170 at_fn_group_banner 75 'rpmdb.at:208' \
7171   "rpmdb --rebuilddb" "                              " 6
7172 at_xfail=no
7173 (
7174   $as_echo "75. $at_setup_line: testing $at_desc ..."
7175   $at_traceon
7176
7177
7178 { set +x
7179 $as_echo "$at_srcdir/rpmdb.at:210:
7180
7181 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7182
7183
7184 runroot rpm --initdb
7185
7186
7187 runroot rpm -U --noscripts --nodeps --ignorearch \\
7188   /data/RPMS/hello-1.0-1.i386.rpm
7189 runroot rpm -qa --qf \"%{nevra} %{dbinstance}\\n\"
7190 runroot rpm -U --noscripts --nodeps --ignorearch \\
7191   /data/RPMS/hello-2.0-1.i686.rpm
7192 runroot rpm -qa --qf \"%{nevra} %{dbinstance}\\n\"
7193 runroot rpmdb --rebuilddb
7194 runroot rpm -qa --qf \"%{nevra} %{dbinstance}\\n\"
7195 "
7196 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:210"
7197 ( $at_check_trace;
7198
7199 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7200
7201
7202 runroot rpm --initdb
7203
7204
7205 runroot rpm -U --noscripts --nodeps --ignorearch \
7206   /data/RPMS/hello-1.0-1.i386.rpm
7207 runroot rpm -qa --qf "%{nevra} %{dbinstance}\n"
7208 runroot rpm -U --noscripts --nodeps --ignorearch \
7209   /data/RPMS/hello-2.0-1.i686.rpm
7210 runroot rpm -qa --qf "%{nevra} %{dbinstance}\n"
7211 runroot rpmdb --rebuilddb
7212 runroot rpm -qa --qf "%{nevra} %{dbinstance}\n"
7213
7214 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7215 at_status=$? at_failed=false
7216 $at_check_filter
7217 at_fn_diff_devnull "$at_stderr" || at_failed=:
7218 echo >>"$at_stdout"; $as_echo "hello-1.0-1.i386 1
7219 hello-2.0-1.i686 2
7220 hello-2.0-1.i686 1
7221 " | \
7222   $at_diff - "$at_stdout" || at_failed=:
7223 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:210"
7224 $at_failed && at_fn_log_failure
7225 $at_traceon; }
7226
7227   set +x
7228   $at_times_p && times >"$at_times_file"
7229 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7230 read at_status <"$at_status_file"
7231 #AT_STOP_75
7232 #AT_START_76
7233 at_fn_group_banner 76 'rpmdb.at:233' \
7234   "rpmdb --rebuilddb and verify empty database" "    " 6
7235 at_xfail=no
7236 (
7237   $as_echo "76. $at_setup_line: testing $at_desc ..."
7238   $at_traceon
7239
7240
7241 { set +x
7242 $as_echo "$at_srcdir/rpmdb.at:235:
7243
7244 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7245
7246
7247 runroot rpm --initdb
7248
7249 runroot rpmdb --rebuilddb
7250 runroot rpmdb --verifydb
7251 "
7252 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:235"
7253 ( $at_check_trace;
7254
7255 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7256
7257
7258 runroot rpm --initdb
7259
7260 runroot rpmdb --rebuilddb
7261 runroot rpmdb --verifydb
7262
7263 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7264 at_status=$? at_failed=false
7265 $at_check_filter
7266 at_fn_diff_devnull "$at_stderr" || at_failed=:
7267 at_fn_diff_devnull "$at_stdout" || at_failed=:
7268 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:235"
7269 $at_failed && at_fn_log_failure
7270 $at_traceon; }
7271
7272   set +x
7273   $at_times_p && times >"$at_times_file"
7274 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7275 read at_status <"$at_status_file"
7276 #AT_STOP_76
7277 #AT_START_77
7278 at_fn_group_banner 77 'rpmdb.at:248' \
7279   "rpm -U and verify status" "                       " 6
7280 at_xfail=no
7281 (
7282   $as_echo "77. $at_setup_line: testing $at_desc ..."
7283   $at_traceon
7284
7285
7286 { set +x
7287 $as_echo "$at_srcdir/rpmdb.at:250:
7288
7289 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7290
7291
7292 runroot rpm --initdb
7293
7294 rm -rf \"\${TOPDIR}\"
7295
7296 runroot rpmbuild --quiet -bb \\
7297         --define \"pkg status\" \\
7298         --define \"filedata same_stuff\" \\
7299           /data/SPECS/conflicttest.spec
7300
7301 runroot rpm -U /build/RPMS/noarch/conflictstatus-1.0-1.noarch.rpm
7302 runroot rpm -qls conflictstatus
7303 "
7304 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:250"
7305 ( $at_check_trace;
7306
7307 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7308
7309
7310 runroot rpm --initdb
7311
7312 rm -rf "${TOPDIR}"
7313
7314 runroot rpmbuild --quiet -bb \
7315         --define "pkg status" \
7316         --define "filedata same_stuff" \
7317           /data/SPECS/conflicttest.spec
7318
7319 runroot rpm -U /build/RPMS/noarch/conflictstatus-1.0-1.noarch.rpm
7320 runroot rpm -qls conflictstatus
7321
7322 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7323 at_status=$? at_failed=false
7324 $at_check_filter
7325 at_fn_diff_devnull "$at_stderr" || at_failed=:
7326 echo >>"$at_stdout"; $as_echo "normal        /usr/share/my.version
7327 " | \
7328   $at_diff - "$at_stdout" || at_failed=:
7329 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:250"
7330 $at_failed && at_fn_log_failure
7331 $at_traceon; }
7332
7333   set +x
7334   $at_times_p && times >"$at_times_file"
7335 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7336 read at_status <"$at_status_file"
7337 #AT_STOP_77
7338 #AT_START_78
7339 at_fn_group_banner 78 'rpmdb.at:271' \
7340   "rpm -U with _install_lang and verify status" "    " 6
7341 at_xfail=no
7342 (
7343   $as_echo "78. $at_setup_line: testing $at_desc ..."
7344   $at_traceon
7345
7346
7347 { set +x
7348 $as_echo "$at_srcdir/rpmdb.at:273:
7349
7350 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7351
7352
7353 runroot rpm --initdb
7354
7355 rm -rf \"\${TOPDIR}\"
7356
7357 runroot rpmbuild --quiet -bb \\
7358           /data/SPECS/flangtest.spec
7359
7360 runroot rpm -U --define \"_install_langs de:fi\" /build/RPMS/noarch/flangtest-1.0-1.noarch.rpm
7361 runroot rpm -qls flangtest
7362 "
7363 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:273"
7364 ( $at_check_trace;
7365
7366 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7367
7368
7369 runroot rpm --initdb
7370
7371 rm -rf "${TOPDIR}"
7372
7373 runroot rpmbuild --quiet -bb \
7374           /data/SPECS/flangtest.spec
7375
7376 runroot rpm -U --define "_install_langs de:fi" /build/RPMS/noarch/flangtest-1.0-1.noarch.rpm
7377 runroot rpm -qls flangtest
7378
7379 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7380 at_status=$? at_failed=false
7381 $at_check_filter
7382 at_fn_diff_devnull "$at_stderr" || at_failed=:
7383 echo >>"$at_stdout"; $as_echo "normal        /usr/share/flangtest/de.txt
7384 normal        /usr/share/flangtest/empty.txt
7385 not installed /usr/share/flangtest/en.txt
7386 normal        /usr/share/flangtest/fi.txt
7387 normal        /usr/share/flangtest/none.txt
7388 not installed /usr/share/flangtest/pl.txt
7389 " | \
7390   $at_diff - "$at_stdout" || at_failed=:
7391 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:273"
7392 $at_failed && at_fn_log_failure
7393 $at_traceon; }
7394
7395   set +x
7396   $at_times_p && times >"$at_times_file"
7397 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7398 read at_status <"$at_status_file"
7399 #AT_STOP_78
7400 #AT_START_79
7401 at_fn_group_banner 79 'rpmdb.at:297' \
7402   "rpm -U and verify files on disk" "                " 6
7403 at_xfail=no
7404 (
7405   $as_echo "79. $at_setup_line: testing $at_desc ..."
7406   $at_traceon
7407
7408
7409 { set +x
7410 $as_echo "$at_srcdir/rpmdb.at:299:
7411
7412 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7413
7414
7415 runroot rpm --initdb
7416
7417 rm -rf \"\${TOPDIR}\"
7418 rm -rf \"\${RPMTEST}\"/opt/*
7419
7420 runroot rpmbuild --quiet -bb /data/SPECS/selfconflict.spec
7421 runroot rpm -U /build/RPMS/noarch/selfconflict-1.0-1.noarch.rpm
7422 find \"\${RPMTEST}\"/opt | wc -l
7423 "
7424 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:299"
7425 ( $at_check_trace;
7426
7427 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7428
7429
7430 runroot rpm --initdb
7431
7432 rm -rf "${TOPDIR}"
7433 rm -rf "${RPMTEST}"/opt/*
7434
7435 runroot rpmbuild --quiet -bb /data/SPECS/selfconflict.spec
7436 runroot rpm -U /build/RPMS/noarch/selfconflict-1.0-1.noarch.rpm
7437 find "${RPMTEST}"/opt | wc -l
7438
7439 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7440 at_status=$? at_failed=false
7441 $at_check_filter
7442 at_fn_diff_devnull "$at_stderr" || at_failed=:
7443 echo >>"$at_stdout"; $as_echo "6
7444 " | \
7445   $at_diff - "$at_stdout" || at_failed=:
7446 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:299"
7447 $at_failed && at_fn_log_failure
7448 $at_traceon; }
7449
7450   set +x
7451   $at_times_p && times >"$at_times_file"
7452 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7453 read at_status <"$at_status_file"
7454 #AT_STOP_79
7455 #AT_START_80
7456 at_fn_group_banner 80 'rpmdb.at:318' \
7457   "rpm -e and verify files removed" "                " 6
7458 at_xfail=no
7459 (
7460   $as_echo "80. $at_setup_line: testing $at_desc ..."
7461   $at_traceon
7462
7463
7464 { set +x
7465 $as_echo "$at_srcdir/rpmdb.at:320:
7466
7467 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7468
7469
7470 runroot rpm --initdb
7471
7472 rm -rf \"\${TOPDIR}\"
7473 rm -rf \"\${RPMTEST}\"/opt/*
7474
7475 runroot rpmbuild --quiet -bb /data/SPECS/selfconflict.spec
7476 runroot rpm -U /build/RPMS/noarch/selfconflict-1.0-1.noarch.rpm
7477 runroot rpm -e selfconflict
7478 find \"\${RPMTEST}\"/opt | wc -l
7479 "
7480 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:320"
7481 ( $at_check_trace;
7482
7483 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7484
7485
7486 runroot rpm --initdb
7487
7488 rm -rf "${TOPDIR}"
7489 rm -rf "${RPMTEST}"/opt/*
7490
7491 runroot rpmbuild --quiet -bb /data/SPECS/selfconflict.spec
7492 runroot rpm -U /build/RPMS/noarch/selfconflict-1.0-1.noarch.rpm
7493 runroot rpm -e selfconflict
7494 find "${RPMTEST}"/opt | wc -l
7495
7496 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7497 at_status=$? at_failed=false
7498 $at_check_filter
7499 at_fn_diff_devnull "$at_stderr" || at_failed=:
7500 echo >>"$at_stdout"; $as_echo "1
7501 " | \
7502   $at_diff - "$at_stdout" || at_failed=:
7503 at_fn_check_status 0 $at_status "$at_srcdir/rpmdb.at:320"
7504 $at_failed && at_fn_log_failure
7505 $at_traceon; }
7506
7507   set +x
7508   $at_times_p && times >"$at_times_file"
7509 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7510 read at_status <"$at_status_file"
7511 #AT_STOP_80
7512 #AT_START_81
7513 at_fn_group_banner 81 'rpmi.at:21' \
7514   "rpm -U <manifest>" "                              " 7
7515 at_xfail=no
7516 (
7517   $as_echo "81. $at_setup_line: testing $at_desc ..."
7518   $at_traceon
7519
7520
7521 { set +x
7522 $as_echo "$at_srcdir/rpmi.at:23:
7523
7524 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7525
7526
7527 runroot rpm --initdb
7528
7529
7530 echo /data/RPMS/hello-2.0-1.x86_64.rpm > \${RPMTEST}/tmp/test.mft
7531 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7532         /tmp/test.mft
7533 "
7534 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:23"
7535 ( $at_check_trace;
7536
7537 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7538
7539
7540 runroot rpm --initdb
7541
7542
7543 echo /data/RPMS/hello-2.0-1.x86_64.rpm > ${RPMTEST}/tmp/test.mft
7544 runroot rpm -U --ignorearch --ignoreos --nodeps \
7545         /tmp/test.mft
7546
7547 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7548 at_status=$? at_failed=false
7549 $at_check_filter
7550 at_fn_diff_devnull "$at_stderr" || at_failed=:
7551 at_fn_diff_devnull "$at_stdout" || at_failed=:
7552 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:23"
7553 $at_failed && at_fn_log_failure
7554 $at_traceon; }
7555
7556   set +x
7557   $at_times_p && times >"$at_times_file"
7558 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7559 read at_status <"$at_status_file"
7560 #AT_STOP_81
7561 #AT_START_82
7562 at_fn_group_banner 82 'rpmi.at:36' \
7563   "rpm -U <manifest notfound 1>" "                   " 7
7564 at_xfail=no
7565 (
7566   $as_echo "82. $at_setup_line: testing $at_desc ..."
7567   $at_traceon
7568
7569
7570 { set +x
7571 $as_echo "$at_srcdir/rpmi.at:38:
7572
7573 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7574
7575
7576 runroot rpm --initdb
7577
7578
7579 echo /data/RPMS/hello-2.0-1.x86_64.rpm > \${RPMTEST}/tmp/test.mft
7580 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7581         /tmp/test-not-there.mft
7582 "
7583 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:38"
7584 ( $at_check_trace;
7585
7586 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7587
7588
7589 runroot rpm --initdb
7590
7591
7592 echo /data/RPMS/hello-2.0-1.x86_64.rpm > ${RPMTEST}/tmp/test.mft
7593 runroot rpm -U --ignorearch --ignoreos --nodeps \
7594         /tmp/test-not-there.mft
7595
7596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7597 at_status=$? at_failed=false
7598 $at_check_filter
7599 echo >>"$at_stderr"; $as_echo "error: open of /tmp/test-not-there.mft failed: No such file or directory
7600 " | \
7601   $at_diff - "$at_stderr" || at_failed=:
7602 at_fn_diff_devnull "$at_stdout" || at_failed=:
7603 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:38"
7604 $at_failed && at_fn_log_failure
7605 $at_traceon; }
7606
7607   set +x
7608   $at_times_p && times >"$at_times_file"
7609 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7610 read at_status <"$at_status_file"
7611 #AT_STOP_82
7612 #AT_START_83
7613 at_fn_group_banner 83 'rpmi.at:52' \
7614   "rpm -U <manifest notfound 2>" "                   " 7
7615 at_xfail=no
7616 (
7617   $as_echo "83. $at_setup_line: testing $at_desc ..."
7618   $at_traceon
7619
7620
7621 { set +x
7622 $as_echo "$at_srcdir/rpmi.at:54:
7623
7624 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7625
7626
7627 runroot rpm --initdb
7628
7629
7630 echo /data/RPMS/hello-not-there-2.0-1.x86_64.rpm > \${RPMTEST}/tmp/test.mft
7631 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7632         /tmp/test.mft
7633 "
7634 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:54"
7635 ( $at_check_trace;
7636
7637 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7638
7639
7640 runroot rpm --initdb
7641
7642
7643 echo /data/RPMS/hello-not-there-2.0-1.x86_64.rpm > ${RPMTEST}/tmp/test.mft
7644 runroot rpm -U --ignorearch --ignoreos --nodeps \
7645         /tmp/test.mft
7646
7647 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7648 at_status=$? at_failed=false
7649 $at_check_filter
7650 echo >>"$at_stderr"; $as_echo "error: open of /data/RPMS/hello-not-there-2.0-1.x86_64.rpm failed: No such file or directory
7651 " | \
7652   $at_diff - "$at_stderr" || at_failed=:
7653 at_fn_diff_devnull "$at_stdout" || at_failed=:
7654 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:54"
7655 $at_failed && at_fn_log_failure
7656 $at_traceon; }
7657
7658   set +x
7659   $at_times_p && times >"$at_times_file"
7660 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7661 read at_status <"$at_status_file"
7662 #AT_STOP_83
7663 #AT_START_84
7664 at_fn_group_banner 84 'rpmi.at:68' \
7665   "rpm -U <notfound>" "                              " 7
7666 at_xfail=no
7667 (
7668   $as_echo "84. $at_setup_line: testing $at_desc ..."
7669   $at_traceon
7670
7671
7672 { set +x
7673 $as_echo "$at_srcdir/rpmi.at:70:
7674
7675 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7676
7677
7678 runroot rpm --initdb
7679
7680
7681 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7682         /data/RPMS/hello-not-there-2.0-1.x86_64.rpm
7683 "
7684 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:70"
7685 ( $at_check_trace;
7686
7687 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7688
7689
7690 runroot rpm --initdb
7691
7692
7693 runroot rpm -U --ignorearch --ignoreos --nodeps \
7694         /data/RPMS/hello-not-there-2.0-1.x86_64.rpm
7695
7696 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7697 at_status=$? at_failed=false
7698 $at_check_filter
7699 echo >>"$at_stderr"; $as_echo "error: open of /data/RPMS/hello-not-there-2.0-1.x86_64.rpm failed: No such file or directory
7700 " | \
7701   $at_diff - "$at_stderr" || at_failed=:
7702 at_fn_diff_devnull "$at_stdout" || at_failed=:
7703 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:70"
7704 $at_failed && at_fn_log_failure
7705 $at_traceon; }
7706
7707   set +x
7708   $at_times_p && times >"$at_times_file"
7709 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7710 read at_status <"$at_status_file"
7711 #AT_STOP_84
7712 #AT_START_85
7713 at_fn_group_banner 85 'rpmi.at:83' \
7714   "rpm -U <unsigned>" "                              " 7
7715 at_xfail=no
7716 (
7717   $as_echo "85. $at_setup_line: testing $at_desc ..."
7718   $at_traceon
7719
7720
7721 { set +x
7722 $as_echo "$at_srcdir/rpmi.at:85:
7723
7724 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7725
7726
7727 runroot rpm --initdb
7728
7729
7730 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7731         /data/RPMS/hello-2.0-1.x86_64.rpm
7732 "
7733 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:85"
7734 ( $at_check_trace;
7735
7736 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7737
7738
7739 runroot rpm --initdb
7740
7741
7742 runroot rpm -U --ignorearch --ignoreos --nodeps \
7743         /data/RPMS/hello-2.0-1.x86_64.rpm
7744
7745 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7746 at_status=$? at_failed=false
7747 $at_check_filter
7748 at_fn_diff_devnull "$at_stderr" || at_failed=:
7749 at_fn_diff_devnull "$at_stdout" || at_failed=:
7750 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:85"
7751 $at_failed && at_fn_log_failure
7752 $at_traceon; }
7753
7754   set +x
7755   $at_times_p && times >"$at_times_file"
7756 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7757 read at_status <"$at_status_file"
7758 #AT_STOP_85
7759 #AT_START_86
7760 at_fn_group_banner 86 'rpmi.at:97' \
7761   "rpm -U <signed nokey>" "                          " 7
7762 at_xfail=no
7763 (
7764   $as_echo "86. $at_setup_line: testing $at_desc ..."
7765   $at_traceon
7766
7767
7768 { set +x
7769 $as_echo "$at_srcdir/rpmi.at:99:
7770
7771 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7772
7773
7774 runroot rpm --initdb
7775
7776
7777 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7778         /data/RPMS/hello-2.0-1.x86_64-signed.rpm
7779 "
7780 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:99"
7781 ( $at_check_trace;
7782
7783 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7784
7785
7786 runroot rpm --initdb
7787
7788
7789 runroot rpm -U --ignorearch --ignoreos --nodeps \
7790         /data/RPMS/hello-2.0-1.x86_64-signed.rpm
7791
7792 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7793 at_status=$? at_failed=false
7794 $at_check_filter
7795 echo >>"$at_stderr"; $as_echo "warning: /data/RPMS/hello-2.0-1.x86_64-signed.rpm: Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
7796 " | \
7797   $at_diff - "$at_stderr" || at_failed=:
7798 at_fn_diff_devnull "$at_stdout" || at_failed=:
7799 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:99"
7800 $at_failed && at_fn_log_failure
7801 $at_traceon; }
7802
7803   set +x
7804   $at_times_p && times >"$at_times_file"
7805 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7806 read at_status <"$at_status_file"
7807 #AT_STOP_86
7808 #AT_START_87
7809 at_fn_group_banner 87 'rpmi.at:112' \
7810   "rpm -U <signed>" "                                " 7
7811 at_xfail=no
7812 (
7813   $as_echo "87. $at_setup_line: testing $at_desc ..."
7814   $at_traceon
7815
7816
7817 { set +x
7818 $as_echo "$at_srcdir/rpmi.at:114:
7819
7820 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7821
7822
7823 runroot rpm --initdb
7824
7825
7826 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
7827 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7828         /data/RPMS/hello-2.0-1.x86_64-signed.rpm
7829 "
7830 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:114"
7831 ( $at_check_trace;
7832
7833 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7834
7835
7836 runroot rpm --initdb
7837
7838
7839 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
7840 runroot rpm -U --ignorearch --ignoreos --nodeps \
7841         /data/RPMS/hello-2.0-1.x86_64-signed.rpm
7842
7843 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7844 at_status=$? at_failed=false
7845 $at_check_filter
7846 at_fn_diff_devnull "$at_stderr" || at_failed=:
7847 at_fn_diff_devnull "$at_stdout" || at_failed=:
7848 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:114"
7849 $at_failed && at_fn_log_failure
7850 $at_traceon; }
7851
7852   set +x
7853   $at_times_p && times >"$at_times_file"
7854 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7855 read at_status <"$at_status_file"
7856 #AT_STOP_87
7857 #AT_START_88
7858 at_fn_group_banner 88 'rpmi.at:127' \
7859   "rpm -U <corrupted signed 1>" "                    " 7
7860 at_xfail=no
7861 (
7862   $as_echo "88. $at_setup_line: testing $at_desc ..."
7863   $at_traceon
7864
7865
7866 { set +x
7867 $as_echo "$at_srcdir/rpmi.at:129:
7868
7869 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7870
7871
7872 runroot rpm --initdb
7873
7874
7875 pkg=\"hello-2.0-1.x86_64-signed.rpm\"
7876 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
7877 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
7878    conv=notrunc bs=1 seek=264 count=2 2> /dev/null
7879
7880 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7881         /tmp/\${pkg}
7882 "
7883 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:129"
7884 ( $at_check_trace;
7885
7886 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7887
7888
7889 runroot rpm --initdb
7890
7891
7892 pkg="hello-2.0-1.x86_64-signed.rpm"
7893 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
7894 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
7895    conv=notrunc bs=1 seek=264 count=2 2> /dev/null
7896
7897 runroot rpm -U --ignorearch --ignoreos --nodeps \
7898         /tmp/${pkg}
7899
7900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7901 at_status=$? at_failed=false
7902 $at_check_filter
7903 echo >>"$at_stderr"; $as_echo "error: /tmp/hello-2.0-1.x86_64-signed.rpm: Header signature: BAD (package tag 268: invalid OpenPGP signature)
7904 error: /tmp/hello-2.0-1.x86_64-signed.rpm cannot be installed
7905 " | \
7906   $at_diff - "$at_stderr" || at_failed=:
7907 at_fn_diff_devnull "$at_stdout" || at_failed=:
7908 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:129"
7909 $at_failed && at_fn_log_failure
7910 $at_traceon; }
7911
7912   set +x
7913   $at_times_p && times >"$at_times_file"
7914 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7915 read at_status <"$at_status_file"
7916 #AT_STOP_88
7917 #AT_START_89
7918 at_fn_group_banner 89 'rpmi.at:148' \
7919   "rpm -U <corrupted signed 2>" "                    " 7
7920 at_xfail=no
7921 (
7922   $as_echo "89. $at_setup_line: testing $at_desc ..."
7923   $at_traceon
7924
7925
7926 { set +x
7927 $as_echo "$at_srcdir/rpmi.at:150:
7928
7929 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7930
7931
7932 runroot rpm --initdb
7933
7934
7935 pkg=\"hello-2.0-1.x86_64-signed.rpm\"
7936 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
7937 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
7938    conv=notrunc bs=1 seek=5555 count=6 2> /dev/null
7939
7940 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7941         /tmp/\${pkg}
7942 "
7943 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:150"
7944 ( $at_check_trace;
7945
7946 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7947
7948
7949 runroot rpm --initdb
7950
7951
7952 pkg="hello-2.0-1.x86_64-signed.rpm"
7953 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
7954 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
7955    conv=notrunc bs=1 seek=5555 count=6 2> /dev/null
7956
7957 runroot rpm -U --ignorearch --ignoreos --nodeps \
7958         /tmp/${pkg}
7959
7960 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7961 at_status=$? at_failed=false
7962 $at_check_filter
7963 echo >>"$at_stderr"; $as_echo "error: /tmp/hello-2.0-1.x86_64-signed.rpm: Header V4 RSA/SHA256 Signature, key ID 1964c5fc: BAD
7964 error: /tmp/hello-2.0-1.x86_64-signed.rpm: Header SHA1 digest: BAD (Expected 5cd9874c510b67b44483f9e382a1649ef7743bac != 4261b2c1eb861a4152c2239bce20bfbcaa8971ba)
7965 error: /tmp/hello-2.0-1.x86_64-signed.rpm: Header SHA256 digest: BAD (Expected ef920781af3bf072ae9888eec3de1c589143101dff9cc0b561468d395fb766d9 != 29fdfe92782fb0470a9a164a6c94af87d3b138c63b39d4c30e0223ca1202ba82)
7966 error: /tmp/hello-2.0-1.x86_64-signed.rpm cannot be installed
7967 " | \
7968   $at_diff - "$at_stderr" || at_failed=:
7969 at_fn_diff_devnull "$at_stdout" || at_failed=:
7970 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:150"
7971 $at_failed && at_fn_log_failure
7972 $at_traceon; }
7973
7974   set +x
7975   $at_times_p && times >"$at_times_file"
7976 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
7977 read at_status <"$at_status_file"
7978 #AT_STOP_89
7979 #AT_START_90
7980 at_fn_group_banner 90 'rpmi.at:173' \
7981   "rpm -U <corrupted signed 3>" "                    " 7
7982 at_xfail=no
7983 (
7984   $as_echo "90. $at_setup_line: testing $at_desc ..."
7985   $at_traceon
7986
7987
7988 { set +x
7989 $as_echo "$at_srcdir/rpmi.at:175:
7990
7991 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7992
7993
7994 runroot rpm --initdb
7995
7996
7997 pkg=\"hello-2.0-1.x86_64-signed.rpm\"
7998 cp \"\${RPMTEST}\"/data/RPMS/\${pkg} \"\${RPMTEST}\"/tmp/\${pkg}
7999 dd if=/dev/zero of=\"\${RPMTEST}\"/tmp/\${pkg} \\
8000    conv=notrunc bs=1 seek=7788 count=6 2> /dev/null
8001
8002 runroot rpm -U --ignorearch --ignoreos --nodeps \\
8003         /tmp/\${pkg}
8004 "
8005 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:175"
8006 ( $at_check_trace;
8007
8008 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8009
8010
8011 runroot rpm --initdb
8012
8013
8014 pkg="hello-2.0-1.x86_64-signed.rpm"
8015 cp "${RPMTEST}"/data/RPMS/${pkg} "${RPMTEST}"/tmp/${pkg}
8016 dd if=/dev/zero of="${RPMTEST}"/tmp/${pkg} \
8017    conv=notrunc bs=1 seek=7788 count=6 2> /dev/null
8018
8019 runroot rpm -U --ignorearch --ignoreos --nodeps \
8020         /tmp/${pkg}
8021
8022 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8023 at_status=$? at_failed=false
8024 $at_check_filter
8025 echo >>"$at_stderr"; $as_echo "warning: /tmp/hello-2.0-1.x86_64-signed.rpm: Header V4 RSA/SHA256 Signature, key ID 1964c5fc: NOKEY
8026 error: unpacking of archive failed: cpio: Bad magic
8027 error: hello-2.0-1.x86_64: install failed
8028 " | \
8029   $at_diff - "$at_stderr" || at_failed=:
8030 at_fn_diff_devnull "$at_stdout" || at_failed=:
8031 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:175"
8032 $at_failed && at_fn_log_failure
8033 $at_traceon; }
8034
8035   set +x
8036   $at_times_p && times >"$at_times_file"
8037 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8038 read at_status <"$at_status_file"
8039 #AT_STOP_90
8040 #AT_START_91
8041 at_fn_group_banner 91 'rpmi.at:197' \
8042   "rpm -U *.src.rpm" "                               " 7
8043 at_xfail=no
8044 (
8045   $as_echo "91. $at_setup_line: testing $at_desc ..."
8046   $at_traceon
8047
8048
8049 { set +x
8050 $as_echo "$at_srcdir/rpmi.at:199:
8051 rm -rf \${TOPDIR}
8052
8053 runroot rpm \\
8054   -U /data/SRPMS/hello-1.0-1.src.rpm
8055 "
8056 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmi.at:199"
8057 ( $at_check_trace;
8058 rm -rf ${TOPDIR}
8059
8060 runroot rpm \
8061   -U /data/SRPMS/hello-1.0-1.src.rpm
8062
8063 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8064 at_status=$? at_failed=false
8065 $at_check_filter
8066 echo stderr:; cat "$at_stderr"
8067 echo stdout:; cat "$at_stdout"
8068 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:199"
8069 $at_failed && at_fn_log_failure
8070 $at_traceon; }
8071
8072   set +x
8073   $at_times_p && times >"$at_times_file"
8074 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8075 read at_status <"$at_status_file"
8076 #AT_STOP_91
8077 #AT_START_92
8078 at_fn_group_banner 92 'rpmi.at:212' \
8079   "rpm -i *.src.rpm" "                               " 7
8080 at_xfail=no
8081 (
8082   $as_echo "92. $at_setup_line: testing $at_desc ..."
8083   $at_traceon
8084
8085
8086 { set +x
8087 $as_echo "$at_srcdir/rpmi.at:214:
8088 rm -rf \${TOPDIR}
8089
8090 runroot rpm \\
8091   -i /data/SRPMS/hello-1.0-1.src.rpm
8092 "
8093 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmi.at:214"
8094 ( $at_check_trace;
8095 rm -rf ${TOPDIR}
8096
8097 runroot rpm \
8098   -i /data/SRPMS/hello-1.0-1.src.rpm
8099
8100 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8101 at_status=$? at_failed=false
8102 $at_check_filter
8103 echo stderr:; cat "$at_stderr"
8104 echo stdout:; cat "$at_stdout"
8105 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:214"
8106 $at_failed && at_fn_log_failure
8107 $at_traceon; }
8108
8109   set +x
8110   $at_times_p && times >"$at_times_file"
8111 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8112 read at_status <"$at_status_file"
8113 #AT_STOP_92
8114 #AT_START_93
8115 at_fn_group_banner 93 'rpmi.at:228' \
8116   "rpm -i <nonexistent file>" "                      " 7
8117 at_xfail=no
8118 (
8119   $as_echo "93. $at_setup_line: testing $at_desc ..."
8120   $at_traceon
8121
8122
8123 { set +x
8124 $as_echo "$at_srcdir/rpmi.at:230:
8125 runroot rpm \\
8126   -i no_such_file
8127 "
8128 at_fn_check_prepare_notrace 'an embedded newline' "rpmi.at:230"
8129 ( $at_check_trace;
8130 runroot rpm \
8131   -i no_such_file
8132
8133 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8134 at_status=$? at_failed=false
8135 $at_check_filter
8136 echo stderr:; cat "$at_stderr"
8137 echo stdout:; cat "$at_stdout"
8138 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:230"
8139 $at_failed && at_fn_log_failure
8140 $at_traceon; }
8141
8142   set +x
8143   $at_times_p && times >"$at_times_file"
8144 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8145 read at_status <"$at_status_file"
8146 #AT_STOP_93
8147 #AT_START_94
8148 at_fn_group_banner 94 'rpmi.at:240' \
8149   "rpm -i --nomanifest <garbage text file>" "        " 7
8150 at_xfail=no
8151 (
8152   $as_echo "94. $at_setup_line: testing $at_desc ..."
8153   $at_traceon
8154
8155
8156 { set +x
8157 $as_echo "$at_srcdir/rpmi.at:242:
8158 junk=\"\${RPMTEST}/textfile\"
8159 cat << EOF > \"\${junk}\"
8160 no_such.file
8161 not_an.rpm
8162 EOF
8163
8164 runroot rpm \\
8165   -Uvv --nomanifest /textfile
8166 "
8167 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmi.at:242"
8168 ( $at_check_trace;
8169 junk="${RPMTEST}/textfile"
8170 cat << EOF > "${junk}"
8171 no_such.file
8172 not_an.rpm
8173 EOF
8174
8175 runroot rpm \
8176   -Uvv --nomanifest /textfile
8177
8178 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8179 at_status=$? at_failed=false
8180 $at_check_filter
8181 echo stderr:; cat "$at_stderr"
8182 echo stdout:; cat "$at_stdout"
8183 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:242"
8184 $at_failed && at_fn_log_failure
8185 $at_traceon; }
8186
8187   set +x
8188   $at_times_p && times >"$at_times_file"
8189 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8190 read at_status <"$at_status_file"
8191 #AT_STOP_94
8192 #AT_START_95
8193 at_fn_group_banner 95 'rpmi.at:257' \
8194   "rpm -i <garbage text file" "                      " 7
8195 at_xfail=no
8196 (
8197   $as_echo "95. $at_setup_line: testing $at_desc ..."
8198   $at_traceon
8199
8200
8201 { set +x
8202 $as_echo "$at_srcdir/rpmi.at:259:
8203 junk=\"\${RPMTEST}/not_an.rpm\"
8204 cat << EOF > \"\${junk}\"
8205 no_such.file
8206 not_pkg.rpm
8207 EOF
8208
8209 runroot rpm \\
8210   -Uvv /not_an.rpm
8211 "
8212 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmi.at:259"
8213 ( $at_check_trace;
8214 junk="${RPMTEST}/not_an.rpm"
8215 cat << EOF > "${junk}"
8216 no_such.file
8217 not_pkg.rpm
8218 EOF
8219
8220 runroot rpm \
8221   -Uvv /not_an.rpm
8222
8223 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8224 at_status=$? at_failed=false
8225 $at_check_filter
8226 echo stderr:; cat "$at_stderr"
8227 echo stdout:; cat "$at_stdout"
8228 at_fn_check_status 2 $at_status "$at_srcdir/rpmi.at:259"
8229 $at_failed && at_fn_log_failure
8230 $at_traceon; }
8231
8232   set +x
8233   $at_times_p && times >"$at_times_file"
8234 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8235 read at_status <"$at_status_file"
8236 #AT_STOP_95
8237 #AT_START_96
8238 at_fn_group_banner 96 'rpmi.at:276' \
8239   "rpm -U upgrade to newer" "                        " 7
8240 at_xfail=no
8241 (
8242   $as_echo "96. $at_setup_line: testing $at_desc ..."
8243   $at_traceon
8244
8245 { set +x
8246 $as_echo "$at_srcdir/rpmi.at:277:
8247
8248 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8249
8250
8251 runroot rpm --initdb
8252
8253 rm -rf \"\${TOPDIR}\"
8254
8255 for v in \"1.0\" \"2.0\"; do
8256     runroot rpmbuild --quiet -bb \\
8257         --define \"ver \$v\" \\
8258           /data/SPECS/versiontest.spec
8259 done
8260
8261 runroot rpm -U /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8262 runroot rpm -U /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8263 runroot rpm -q versiontest
8264 "
8265 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:277"
8266 ( $at_check_trace;
8267
8268 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8269
8270
8271 runroot rpm --initdb
8272
8273 rm -rf "${TOPDIR}"
8274
8275 for v in "1.0" "2.0"; do
8276     runroot rpmbuild --quiet -bb \
8277         --define "ver $v" \
8278           /data/SPECS/versiontest.spec
8279 done
8280
8281 runroot rpm -U /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8282 runroot rpm -U /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8283 runroot rpm -q versiontest
8284
8285 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8286 at_status=$? at_failed=false
8287 $at_check_filter
8288 at_fn_diff_devnull "$at_stderr" || at_failed=:
8289 echo >>"$at_stdout"; $as_echo "versiontest-2.0-1.noarch
8290 " | \
8291   $at_diff - "$at_stdout" || at_failed=:
8292 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:277"
8293 $at_failed && at_fn_log_failure
8294 $at_traceon; }
8295
8296   set +x
8297   $at_times_p && times >"$at_times_file"
8298 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8299 read at_status <"$at_status_file"
8300 #AT_STOP_96
8301 #AT_START_97
8302 at_fn_group_banner 97 'rpmi.at:299' \
8303   "rpm -U upgrade to older" "                        " 7
8304 at_xfail=no
8305 (
8306   $as_echo "97. $at_setup_line: testing $at_desc ..."
8307   $at_traceon
8308
8309 { set +x
8310 $as_echo "$at_srcdir/rpmi.at:300:
8311
8312 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8313
8314
8315 runroot rpm --initdb
8316
8317
8318 runroot rpm -U /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8319 runroot rpm -U /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8320 "
8321 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:300"
8322 ( $at_check_trace;
8323
8324 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8325
8326
8327 runroot rpm --initdb
8328
8329
8330 runroot rpm -U /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8331 runroot rpm -U /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8332
8333 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8334 at_status=$? at_failed=false
8335 $at_check_filter
8336 echo >>"$at_stderr"; $as_echo " package versiontest-2.0-1.noarch (which is newer than versiontest-1.0-1.noarch) is already installed
8337 " | \
8338   $at_diff - "$at_stderr" || at_failed=:
8339 at_fn_diff_devnull "$at_stdout" || at_failed=:
8340 at_fn_check_status 2 $at_status "$at_srcdir/rpmi.at:300"
8341 $at_failed && at_fn_log_failure
8342 $at_traceon; }
8343
8344   set +x
8345   $at_times_p && times >"$at_times_file"
8346 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8347 read at_status <"$at_status_file"
8348 #AT_STOP_97
8349 #AT_START_98
8350 at_fn_group_banner 98 'rpmi.at:314' \
8351   "rpm -U --oldpackage downgrade" "                  " 7
8352 at_xfail=no
8353 (
8354   $as_echo "98. $at_setup_line: testing $at_desc ..."
8355   $at_traceon
8356
8357 { set +x
8358 $as_echo "$at_srcdir/rpmi.at:315:
8359
8360 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8361
8362
8363 runroot rpm --initdb
8364
8365
8366 runroot rpm -U /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8367 runroot rpm -U --oldpackage /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8368 runroot rpm -q versiontest
8369 "
8370 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:315"
8371 ( $at_check_trace;
8372
8373 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8374
8375
8376 runroot rpm --initdb
8377
8378
8379 runroot rpm -U /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8380 runroot rpm -U --oldpackage /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8381 runroot rpm -q versiontest
8382
8383 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8384 at_status=$? at_failed=false
8385 $at_check_filter
8386 echo stderr:; cat "$at_stderr"
8387 echo >>"$at_stdout"; $as_echo "versiontest-1.0-1.noarch
8388 " | \
8389   $at_diff - "$at_stdout" || at_failed=:
8390 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:315"
8391 $at_failed && at_fn_log_failure
8392 $at_traceon; }
8393
8394   set +x
8395   $at_times_p && times >"$at_times_file"
8396 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8397 read at_status <"$at_status_file"
8398 #AT_STOP_98
8399 #AT_START_99
8400 at_fn_group_banner 99 'rpmi.at:330' \
8401   "rpm -U two versions of same package 1" "          " 7
8402 at_xfail=no
8403 (
8404   $as_echo "99. $at_setup_line: testing $at_desc ..."
8405   $at_traceon
8406
8407 { set +x
8408 $as_echo "$at_srcdir/rpmi.at:331:
8409
8410 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8411
8412
8413 runroot rpm --initdb
8414
8415
8416 runroot rpm -Uv \\
8417   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm \\
8418   /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8419 runroot rpm -q versiontest
8420 "
8421 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:331"
8422 ( $at_check_trace;
8423
8424 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8425
8426
8427 runroot rpm --initdb
8428
8429
8430 runroot rpm -Uv \
8431   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm \
8432   /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8433 runroot rpm -q versiontest
8434
8435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8436 at_status=$? at_failed=false
8437 $at_check_filter
8438 echo >>"$at_stderr"; $as_echo "warning: package versiontest-1.0-1.noarch was already added, replacing with versiontest-2.0-1.noarch
8439 " | \
8440   $at_diff - "$at_stderr" || at_failed=:
8441 echo >>"$at_stdout"; $as_echo "Preparing packages...
8442 versiontest-2.0-1.noarch
8443 versiontest-2.0-1.noarch
8444 " | \
8445   $at_diff - "$at_stdout" || at_failed=:
8446 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:331"
8447 $at_failed && at_fn_log_failure
8448 $at_traceon; }
8449
8450   set +x
8451   $at_times_p && times >"$at_times_file"
8452 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8453 read at_status <"$at_status_file"
8454 #AT_STOP_99
8455 #AT_START_100
8456 at_fn_group_banner 100 'rpmi.at:350' \
8457   "rpm -U two versions of same package 2" "          " 7
8458 at_xfail=no
8459 (
8460   $as_echo "100. $at_setup_line: testing $at_desc ..."
8461   $at_traceon
8462
8463 { set +x
8464 $as_echo "$at_srcdir/rpmi.at:351:
8465
8466 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8467
8468
8469 runroot rpm --initdb
8470
8471
8472 runroot rpm -Uv \\
8473   /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm \\
8474   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8475 runroot rpm -q versiontest
8476 "
8477 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:351"
8478 ( $at_check_trace;
8479
8480 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8481
8482
8483 runroot rpm --initdb
8484
8485
8486 runroot rpm -Uv \
8487   /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm \
8488   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8489 runroot rpm -q versiontest
8490
8491 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8492 at_status=$? at_failed=false
8493 $at_check_filter
8494 echo >>"$at_stderr"; $as_echo "warning: package versiontest-2.0-1.noarch was already added, skipping versiontest-1.0-1.noarch
8495 " | \
8496   $at_diff - "$at_stderr" || at_failed=:
8497 echo >>"$at_stdout"; $as_echo "Preparing packages...
8498 versiontest-2.0-1.noarch
8499 versiontest-2.0-1.noarch
8500 " | \
8501   $at_diff - "$at_stdout" || at_failed=:
8502 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:351"
8503 $at_failed && at_fn_log_failure
8504 $at_traceon; }
8505
8506   set +x
8507   $at_times_p && times >"$at_times_file"
8508 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8509 read at_status <"$at_status_file"
8510 #AT_STOP_100
8511 #AT_START_101
8512 at_fn_group_banner 101 'rpmi.at:370' \
8513   "rpm -U obsoleted package 1" "                     " 7
8514 at_xfail=no
8515 (
8516   $as_echo "101. $at_setup_line: testing $at_desc ..."
8517   $at_traceon
8518
8519 { set +x
8520 $as_echo "$at_srcdir/rpmi.at:371:
8521
8522 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8523
8524
8525 runroot rpm --initdb
8526
8527
8528 runroot rpmbuild --quiet -bb \\
8529         --define \"pkg one\" \\
8530         --define \"obs deptest-two\" \\
8531         /data/SPECS/deptest.spec
8532 runroot rpmbuild --quiet -bb \\
8533         --define \"pkg two\" \\
8534         /data/SPECS/deptest.spec
8535
8536
8537 runroot rpm -Uv \\
8538   /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm \\
8539   /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
8540 runroot rpm -q deptest-one
8541 "
8542 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:371"
8543 ( $at_check_trace;
8544
8545 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8546
8547
8548 runroot rpm --initdb
8549
8550
8551 runroot rpmbuild --quiet -bb \
8552         --define "pkg one" \
8553         --define "obs deptest-two" \
8554         /data/SPECS/deptest.spec
8555 runroot rpmbuild --quiet -bb \
8556         --define "pkg two" \
8557         /data/SPECS/deptest.spec
8558
8559
8560 runroot rpm -Uv \
8561   /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm \
8562   /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
8563 runroot rpm -q deptest-one
8564
8565 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8566 at_status=$? at_failed=false
8567 $at_check_filter
8568 echo >>"$at_stderr"; $as_echo "warning: package deptest-two-1.0-1.noarch was already added, replacing with deptest-one-1.0-1.noarch
8569 " | \
8570   $at_diff - "$at_stderr" || at_failed=:
8571 echo >>"$at_stdout"; $as_echo "Preparing packages...
8572 deptest-one-1.0-1.noarch
8573 deptest-one-1.0-1.noarch
8574 " | \
8575   $at_diff - "$at_stdout" || at_failed=:
8576 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:371"
8577 $at_failed && at_fn_log_failure
8578 $at_traceon; }
8579
8580   set +x
8581   $at_times_p && times >"$at_times_file"
8582 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8583 read at_status <"$at_status_file"
8584 #AT_STOP_101
8585 #AT_START_102
8586 at_fn_group_banner 102 'rpmi.at:399' \
8587   "rpm -U obsoleted package 2" "                     " 7
8588 at_xfail=no
8589 (
8590   $as_echo "102. $at_setup_line: testing $at_desc ..."
8591   $at_traceon
8592
8593 { set +x
8594 $as_echo "$at_srcdir/rpmi.at:400:
8595
8596 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8597
8598
8599 runroot rpm --initdb
8600
8601
8602 runroot rpmbuild --quiet -bb \\
8603         --define \"pkg one\" \\
8604         --define \"obs deptest-two\" \\
8605         /data/SPECS/deptest.spec
8606 runroot rpmbuild --quiet -bb \\
8607         --define \"pkg two\" \\
8608         /data/SPECS/deptest.spec
8609
8610
8611 runroot rpm -Uv \\
8612   /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm \\
8613   /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
8614 runroot rpm -q deptest-one
8615 "
8616 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:400"
8617 ( $at_check_trace;
8618
8619 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8620
8621
8622 runroot rpm --initdb
8623
8624
8625 runroot rpmbuild --quiet -bb \
8626         --define "pkg one" \
8627         --define "obs deptest-two" \
8628         /data/SPECS/deptest.spec
8629 runroot rpmbuild --quiet -bb \
8630         --define "pkg two" \
8631         /data/SPECS/deptest.spec
8632
8633
8634 runroot rpm -Uv \
8635   /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm \
8636   /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
8637 runroot rpm -q deptest-one
8638
8639 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8640 at_status=$? at_failed=false
8641 $at_check_filter
8642 echo >>"$at_stderr"; $as_echo "warning: package deptest-one-1.0-1.noarch was already added, skipping deptest-two-1.0-1.noarch
8643 " | \
8644   $at_diff - "$at_stderr" || at_failed=:
8645 echo >>"$at_stdout"; $as_echo "Preparing packages...
8646 deptest-one-1.0-1.noarch
8647 deptest-one-1.0-1.noarch
8648 " | \
8649   $at_diff - "$at_stdout" || at_failed=:
8650 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:400"
8651 $at_failed && at_fn_log_failure
8652 $at_traceon; }
8653
8654   set +x
8655   $at_times_p && times >"$at_times_file"
8656 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8657 read at_status <"$at_status_file"
8658 #AT_STOP_102
8659 #AT_START_103
8660 at_fn_group_banner 103 'rpmi.at:428' \
8661   "rpm -i two versions of same package" "            " 7
8662 at_xfail=no
8663 (
8664   $as_echo "103. $at_setup_line: testing $at_desc ..."
8665   $at_traceon
8666
8667 { set +x
8668 $as_echo "$at_srcdir/rpmi.at:429:
8669
8670 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8671
8672
8673 runroot rpm --initdb
8674
8675
8676 runroot rpm -i \\
8677   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm \\
8678   /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8679 runroot rpm -q versiontest
8680 "
8681 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:429"
8682 ( $at_check_trace;
8683
8684 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8685
8686
8687 runroot rpm --initdb
8688
8689
8690 runroot rpm -i \
8691   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm \
8692   /build/RPMS/noarch/versiontest-2.0-1.noarch.rpm
8693 runroot rpm -q versiontest
8694
8695 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8696 at_status=$? at_failed=false
8697 $at_check_filter
8698 at_fn_diff_devnull "$at_stderr" || at_failed=:
8699 echo >>"$at_stdout"; $as_echo "versiontest-2.0-1.noarch
8700 versiontest-1.0-1.noarch
8701 " | \
8702   $at_diff - "$at_stdout" || at_failed=:
8703 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:429"
8704 $at_failed && at_fn_log_failure
8705 $at_traceon; }
8706
8707   set +x
8708   $at_times_p && times >"$at_times_file"
8709 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8710 read at_status <"$at_status_file"
8711 #AT_STOP_103
8712 #AT_START_104
8713 at_fn_group_banner 104 'rpmi.at:447' \
8714   "rpm -i identical versions of same package" "      " 7
8715 at_xfail=no
8716 (
8717   $as_echo "104. $at_setup_line: testing $at_desc ..."
8718   $at_traceon
8719
8720 { set +x
8721 $as_echo "$at_srcdir/rpmi.at:448:
8722
8723 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8724
8725
8726 runroot rpm --initdb
8727
8728
8729 runroot rpm -i \\
8730   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm \\
8731   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8732 runroot rpm -q versiontest
8733 "
8734 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:448"
8735 ( $at_check_trace;
8736
8737 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8738
8739
8740 runroot rpm --initdb
8741
8742
8743 runroot rpm -i \
8744   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm \
8745   /build/RPMS/noarch/versiontest-1.0-1.noarch.rpm
8746 runroot rpm -q versiontest
8747
8748 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8749 at_status=$? at_failed=false
8750 $at_check_filter
8751 at_fn_diff_devnull "$at_stderr" || at_failed=:
8752 echo >>"$at_stdout"; $as_echo "versiontest-1.0-1.noarch
8753 " | \
8754   $at_diff - "$at_stdout" || at_failed=:
8755 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:448"
8756 $at_failed && at_fn_log_failure
8757 $at_traceon; }
8758
8759   set +x
8760   $at_times_p && times >"$at_times_file"
8761 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8762 read at_status <"$at_status_file"
8763 #AT_STOP_104
8764 #AT_START_105
8765 at_fn_group_banner 105 'rpmi.at:465' \
8766   "rpm -U with invalid --relocate" "                 " 7
8767 at_xfail=no
8768 (
8769   $as_echo "105. $at_setup_line: testing $at_desc ..."
8770   $at_traceon
8771
8772
8773 { set +x
8774 $as_echo "$at_srcdir/rpmi.at:467:
8775
8776 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8777
8778
8779 runroot rpm --initdb
8780
8781
8782 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
8783
8784 runroot rpm -U --test --ignoreos --relocate /usr=/opt \\
8785   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
8786 "
8787 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:467"
8788 ( $at_check_trace;
8789
8790 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8791
8792
8793 runroot rpm --initdb
8794
8795
8796 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
8797
8798 runroot rpm -U --test --ignoreos --relocate /usr=/opt \
8799   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
8800
8801 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8802 at_status=$? at_failed=false
8803 $at_check_filter
8804 echo >>"$at_stderr"; $as_echo " path /usr in package hello-script-1.0-1.noarch is not relocatable
8805 " | \
8806   $at_diff - "$at_stderr" || at_failed=:
8807 at_fn_diff_devnull "$at_stdout" || at_failed=:
8808 at_fn_check_status 1 $at_status "$at_srcdir/rpmi.at:467"
8809 $at_failed && at_fn_log_failure
8810 $at_traceon; }
8811
8812   set +x
8813   $at_times_p && times >"$at_times_file"
8814 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8815 read at_status <"$at_status_file"
8816 #AT_STOP_105
8817 #AT_START_106
8818 at_fn_group_banner 106 'rpmi.at:482' \
8819   "rpm -U --badreloc with invalid --relocate" "      " 7
8820 at_xfail=no
8821 (
8822   $as_echo "106. $at_setup_line: testing $at_desc ..."
8823   $at_traceon
8824
8825
8826 { set +x
8827 $as_echo "$at_srcdir/rpmi.at:484:
8828
8829 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8830
8831
8832 runroot rpm --initdb
8833
8834
8835 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
8836
8837 runroot rpm -U --test --ignoreos --badreloc --relocate /usr=/opt \\
8838   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
8839 "
8840 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:484"
8841 ( $at_check_trace;
8842
8843 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8844
8845
8846 runroot rpm --initdb
8847
8848
8849 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
8850
8851 runroot rpm -U --test --ignoreos --badreloc --relocate /usr=/opt \
8852   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
8853
8854 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8855 at_status=$? at_failed=false
8856 $at_check_filter
8857 at_fn_diff_devnull "$at_stderr" || at_failed=:
8858 at_fn_diff_devnull "$at_stdout" || at_failed=:
8859 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:484"
8860 $at_failed && at_fn_log_failure
8861 $at_traceon; }
8862
8863   set +x
8864   $at_times_p && times >"$at_times_file"
8865 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8866 read at_status <"$at_status_file"
8867 #AT_STOP_106
8868 #AT_START_107
8869 at_fn_group_banner 107 'rpmi.at:498' \
8870   "rpm -i with/without --excludedocs" "              " 7
8871 at_xfail=no
8872 (
8873   $as_echo "107. $at_setup_line: testing $at_desc ..."
8874   $at_traceon
8875
8876
8877 { set +x
8878 $as_echo "$at_srcdir/rpmi.at:500:
8879
8880 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8881
8882
8883 runroot rpm --initdb
8884
8885
8886 runroot rpmbuild --quiet -bb /data/SPECS/testdoc.spec
8887
8888 runroot rpm -i --excludedocs \\
8889   /build/RPMS/noarch/testdoc-1.0-1.noarch.rpm
8890
8891 RPM_DOCDIR=\$(runroot rpm --eval '%_defaultdocdir')
8892 RPM_DATADIR=\$(runroot rpm --eval '%_datadir')
8893
8894 test ! -e \${RPMTEST}\${RPM_DOCDIR}/testdoc || exit 1
8895 test -e \${RPMTEST}\${RPM_DATADIR}/testdoc/nodoc || exit 1
8896
8897 runroot rpm -e testdoc
8898
8899 runroot rpm -i \\
8900   /build/RPMS/noarch/testdoc-1.0-1.noarch.rpm
8901 test -e \${RPMTEST}\${RPM_DOCDIR}/testdoc/documentation1 || exit 1
8902 test -e \${RPMTEST}\${RPM_DOCDIR}/testdoc/documentation2 || exit 1
8903 test -e \${RPMTEST}\${RPM_DOCDIR}/testdoc/examples/example1 || exit 1
8904 test -e \${RPMTEST}\${RPM_DOCDIR}/testdoc/examples/example2 || exit 1
8905 test -e \${RPMTEST}\${RPM_DATADIR}/testdoc/nodoc || exit 1
8906
8907 runroot rpm -e testdoc
8908 "
8909 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:500"
8910 ( $at_check_trace;
8911
8912 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8913
8914
8915 runroot rpm --initdb
8916
8917
8918 runroot rpmbuild --quiet -bb /data/SPECS/testdoc.spec
8919
8920 runroot rpm -i --excludedocs \
8921   /build/RPMS/noarch/testdoc-1.0-1.noarch.rpm
8922
8923 RPM_DOCDIR=$(runroot rpm --eval '%_defaultdocdir')
8924 RPM_DATADIR=$(runroot rpm --eval '%_datadir')
8925
8926 test ! -e ${RPMTEST}${RPM_DOCDIR}/testdoc || exit 1
8927 test -e ${RPMTEST}${RPM_DATADIR}/testdoc/nodoc || exit 1
8928
8929 runroot rpm -e testdoc
8930
8931 runroot rpm -i \
8932   /build/RPMS/noarch/testdoc-1.0-1.noarch.rpm
8933 test -e ${RPMTEST}${RPM_DOCDIR}/testdoc/documentation1 || exit 1
8934 test -e ${RPMTEST}${RPM_DOCDIR}/testdoc/documentation2 || exit 1
8935 test -e ${RPMTEST}${RPM_DOCDIR}/testdoc/examples/example1 || exit 1
8936 test -e ${RPMTEST}${RPM_DOCDIR}/testdoc/examples/example2 || exit 1
8937 test -e ${RPMTEST}${RPM_DATADIR}/testdoc/nodoc || exit 1
8938
8939 runroot rpm -e testdoc
8940
8941 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8942 at_status=$? at_failed=false
8943 $at_check_filter
8944 at_fn_diff_devnull "$at_stderr" || at_failed=:
8945 at_fn_diff_devnull "$at_stdout" || at_failed=:
8946 at_fn_check_status 0 $at_status "$at_srcdir/rpmi.at:500"
8947 $at_failed && at_fn_log_failure
8948 $at_traceon; }
8949
8950   set +x
8951   $at_times_p && times >"$at_times_file"
8952 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
8953 read at_status <"$at_status_file"
8954 #AT_STOP_107
8955 #AT_START_108
8956 at_fn_group_banner 108 'rpmorder.at:3' \
8957   "basic install/erase order 1" "                    " 8
8958 at_xfail=no
8959 (
8960   $as_echo "108. $at_setup_line: testing $at_desc ..."
8961   $at_traceon
8962
8963
8964 { set +x
8965 $as_echo "$at_srcdir/rpmorder.at:5:
8966
8967 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8968
8969
8970 runroot rpm --initdb
8971
8972
8973 runroot rpmbuild --quiet -bb \\
8974         --define \"pkg one\" \\
8975         --define \"reqs deptest-two\" \\
8976         /data/SPECS/deptest.spec
8977 runroot rpmbuild --quiet -bb \\
8978         --define \"pkg two\" \\
8979         --define \"reqs deptest-three\" \\
8980         /data/SPECS/deptest.spec
8981 runroot rpmbuild --quiet -bb \\
8982         --define \"pkg three\" \\
8983         /data/SPECS/deptest.spec
8984
8985 echo INSTALL:
8986 runroot rpm -Uv --justdb \\
8987         /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm \\
8988         /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm \\
8989         /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
8990 echo ERASE:
8991 runroot rpm -ev --justdb \\
8992         deptest-three \\
8993         deptest-one \\
8994         deptest-two
8995 "
8996 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmorder.at:5"
8997 ( $at_check_trace;
8998
8999 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9000
9001
9002 runroot rpm --initdb
9003
9004
9005 runroot rpmbuild --quiet -bb \
9006         --define "pkg one" \
9007         --define "reqs deptest-two" \
9008         /data/SPECS/deptest.spec
9009 runroot rpmbuild --quiet -bb \
9010         --define "pkg two" \
9011         --define "reqs deptest-three" \
9012         /data/SPECS/deptest.spec
9013 runroot rpmbuild --quiet -bb \
9014         --define "pkg three" \
9015         /data/SPECS/deptest.spec
9016
9017 echo INSTALL:
9018 runroot rpm -Uv --justdb \
9019         /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm \
9020         /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm \
9021         /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
9022 echo ERASE:
9023 runroot rpm -ev --justdb \
9024         deptest-three \
9025         deptest-one \
9026         deptest-two
9027
9028 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9029 at_status=$? at_failed=false
9030 $at_check_filter
9031 at_fn_diff_devnull "$at_stderr" || at_failed=:
9032 echo >>"$at_stdout"; $as_echo "INSTALL:
9033 Preparing packages...
9034 deptest-three-1.0-1.noarch
9035 deptest-two-1.0-1.noarch
9036 deptest-one-1.0-1.noarch
9037 ERASE:
9038 Preparing packages...
9039 deptest-one-1.0-1.noarch
9040 deptest-two-1.0-1.noarch
9041 deptest-three-1.0-1.noarch
9042 " | \
9043   $at_diff - "$at_stdout" || at_failed=:
9044 at_fn_check_status 0 $at_status "$at_srcdir/rpmorder.at:5"
9045 $at_failed && at_fn_log_failure
9046 $at_traceon; }
9047
9048   set +x
9049   $at_times_p && times >"$at_times_file"
9050 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9051 read at_status <"$at_status_file"
9052 #AT_STOP_108
9053 #AT_START_109
9054 at_fn_group_banner 109 'rpmbuild.at:23' \
9055   "rpmbuild -ba *.spec" "                            " 9
9056 at_xfail=no
9057 (
9058   $as_echo "109. $at_setup_line: testing $at_desc ..."
9059   $at_traceon
9060
9061
9062 { set +x
9063 $as_echo "$at_srcdir/rpmbuild.at:25:
9064 rm -rf \${TOPDIR}
9065 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
9066
9067 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
9068
9069 run rpmbuild \\
9070   -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
9071 "
9072 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:25"
9073 ( $at_check_trace;
9074 rm -rf ${TOPDIR}
9075 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
9076
9077 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
9078
9079 run rpmbuild \
9080   -ba "${abs_srcdir}"/data/SPECS/hello.spec
9081
9082 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9083 at_status=$? at_failed=false
9084 $at_check_filter
9085 echo stderr:; cat "$at_stderr"
9086 echo stdout:; cat "$at_stdout"
9087 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:25"
9088 $at_failed && at_fn_log_failure
9089 $at_traceon; }
9090
9091   set +x
9092   $at_times_p && times >"$at_times_file"
9093 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9094 read at_status <"$at_status_file"
9095 #AT_STOP_109
9096 #AT_START_110
9097 at_fn_group_banner 110 'rpmbuild.at:41' \
9098   "rpmbuild --rebuild" "                             " 9
9099 at_xfail=no
9100 (
9101   $as_echo "110. $at_setup_line: testing $at_desc ..."
9102   $at_traceon
9103
9104
9105 { set +x
9106 $as_echo "$at_srcdir/rpmbuild.at:43:
9107 rm -rf \${TOPDIR}
9108
9109 run rpmbuild \\
9110   --rebuild \"\${abs_srcdir}\"/data/SRPMS/hello-1.0-1.src.rpm
9111 "
9112 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:43"
9113 ( $at_check_trace;
9114 rm -rf ${TOPDIR}
9115
9116 run rpmbuild \
9117   --rebuild "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm
9118
9119 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9120 at_status=$? at_failed=false
9121 $at_check_filter
9122 echo stderr:; cat "$at_stderr"
9123 echo stdout:; cat "$at_stdout"
9124 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:43"
9125 $at_failed && at_fn_log_failure
9126 $at_traceon; }
9127
9128   set +x
9129   $at_times_p && times >"$at_times_file"
9130 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9131 read at_status <"$at_status_file"
9132 #AT_STOP_110
9133 #AT_START_111
9134 at_fn_group_banner 111 'rpmbuild.at:54' \
9135   "rpmbuild --short-circuit -bl" "                   " 9
9136 at_xfail=no
9137 (
9138   $as_echo "111. $at_setup_line: testing $at_desc ..."
9139   $at_traceon
9140
9141
9142 { set +x
9143 $as_echo "$at_srcdir/rpmbuild.at:56:
9144 rm -rf \${TOPDIR}
9145 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
9146
9147 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
9148
9149 run rpmbuild -bi \"\${abs_srcdir}\"/data/SPECS/hello.spec &> /dev/null
9150 run rpmbuild --quiet -bl --short-circuit \"\${abs_srcdir}\"/data/SPECS/hello.spec
9151 "
9152 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:56"
9153 ( $at_check_trace;
9154 rm -rf ${TOPDIR}
9155 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
9156
9157 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
9158
9159 run rpmbuild -bi "${abs_srcdir}"/data/SPECS/hello.spec &> /dev/null
9160 run rpmbuild --quiet -bl --short-circuit "${abs_srcdir}"/data/SPECS/hello.spec
9161
9162 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9163 at_status=$? at_failed=false
9164 $at_check_filter
9165 at_fn_diff_devnull "$at_stderr" || at_failed=:
9166 at_fn_diff_devnull "$at_stdout" || at_failed=:
9167 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:56"
9168 $at_failed && at_fn_log_failure
9169 $at_traceon; }
9170
9171   set +x
9172   $at_times_p && times >"$at_times_file"
9173 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9174 read at_status <"$at_status_file"
9175 #AT_STOP_111
9176 #AT_START_112
9177 at_fn_group_banner 112 'rpmbuild.at:72' \
9178   "rpmbuild -tb <tar with bad spec>" "               " 9
9179 at_xfail=no
9180 (
9181   $as_echo "112. $at_setup_line: testing $at_desc ..."
9182   $at_traceon
9183
9184
9185 { set +x
9186 $as_echo "$at_srcdir/rpmbuild.at:74:
9187 rm -rf \${TOPDIR}
9188
9189 run rpmbuild \\
9190   -tb \"\${RPMDATA}/SOURCES/hello-1.0.tar.gz\"
9191 "
9192 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:74"
9193 ( $at_check_trace;
9194 rm -rf ${TOPDIR}
9195
9196 run rpmbuild \
9197   -tb "${RPMDATA}/SOURCES/hello-1.0.tar.gz"
9198
9199 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9200 at_status=$? at_failed=false
9201 $at_check_filter
9202 echo >>"$at_stderr"; $as_echo "error: line 5: Unknown tag: Serial:      1
9203 " | \
9204   $at_diff - "$at_stderr" || at_failed=:
9205 echo stdout:; cat "$at_stdout"
9206 at_fn_check_status 1 $at_status "$at_srcdir/rpmbuild.at:74"
9207 $at_failed && at_fn_log_failure
9208 $at_traceon; }
9209
9210   set +x
9211   $at_times_p && times >"$at_times_file"
9212 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9213 read at_status <"$at_status_file"
9214 #AT_STOP_112
9215 #AT_START_113
9216 at_fn_group_banner 113 'rpmbuild.at:89' \
9217   "rpmbuild -tb" "                                   " 9
9218 at_xfail=no
9219 (
9220   $as_echo "113. $at_setup_line: testing $at_desc ..."
9221   $at_traceon
9222
9223
9224 { set +x
9225 $as_echo "$at_srcdir/rpmbuild.at:91:
9226 rm -rf \${TOPDIR}
9227
9228 run rpmbuild \\
9229   -ta \"\${RPMDATA}/SOURCES/hello-2.0.tar.gz\"
9230 "
9231 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:91"
9232 ( $at_check_trace;
9233 rm -rf ${TOPDIR}
9234
9235 run rpmbuild \
9236   -ta "${RPMDATA}/SOURCES/hello-2.0.tar.gz"
9237
9238 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9239 at_status=$? at_failed=false
9240 $at_check_filter
9241 echo stderr:; cat "$at_stderr"
9242 echo stdout:; cat "$at_stdout"
9243 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:91"
9244 $at_failed && at_fn_log_failure
9245 $at_traceon; }
9246
9247   set +x
9248   $at_times_p && times >"$at_times_file"
9249 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9250 read at_status <"$at_status_file"
9251 #AT_STOP_113
9252 #AT_START_114
9253 at_fn_group_banner 114 'rpmbuild.at:104' \
9254   "rpmbuild %attr and %defattr" "                    " 9
9255 at_xfail=no
9256 (
9257   $as_echo "114. $at_setup_line: testing $at_desc ..."
9258   $at_traceon
9259
9260
9261 { set +x
9262 $as_echo "$at_srcdir/rpmbuild.at:106:
9263 rm -rf \${TOPDIR}
9264
9265 runroot rpmbuild \\
9266   -bb --quiet /data/SPECS/attrtest.spec
9267
9268 runroot rpm -qp --qf \\
9269   \"\\n[%{filemodes:perms} %-8{fileusername} %-8{filegroupname} %{filenames}\\n]\"\\
9270   /build/RPMS/noarch/attrtest-1.0-1.noarch.rpm
9271 "
9272 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:106"
9273 ( $at_check_trace;
9274 rm -rf ${TOPDIR}
9275
9276 runroot rpmbuild \
9277   -bb --quiet /data/SPECS/attrtest.spec
9278
9279 runroot rpm -qp --qf \
9280   "\n[%{filemodes:perms} %-8{fileusername} %-8{filegroupname} %{filenames}\n]"\
9281   /build/RPMS/noarch/attrtest-1.0-1.noarch.rpm
9282
9283 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9284 at_status=$? at_failed=false
9285 $at_check_filter
9286 at_fn_diff_devnull "$at_stderr" || at_failed=:
9287 echo >>"$at_stdout"; $as_echo "
9288 drwx------ root     root     /a/dir
9289 -r-------- root     root     /a/file
9290 drwx------ daemon   adm      /b/dir
9291 -r-------- daemon   adm      /b/file
9292 drwxr-x--- root     adm      /c/dir
9293 -rw-r----- daemon   root     /c/file
9294 drwxr-x--x daemon   bin      /d/dir
9295 -rw-r--r-- bin      daemon   /d/file
9296 drwx------ foo      bar      /e/dir
9297 -r-------- foo      bar      /e/file
9298 drwxrwx--- bar      foo      /f/dir
9299 -rw-rw---- bar      foo      /f/file
9300 drwx------ adm      foo      /g/dir
9301 -r-------- bar      adm      /g/file
9302 drwxr-xr-x foo      bar      /h/dir
9303 -rw-r--r-- foo      bar      /h/file
9304 drwxr-x--- adm      root     /i/dir
9305 -rwsr-xr-x root     adm      /i/file
9306 drwxrwxrwx zoot     zoot     /j/dir
9307 --w--w--w- zoot     zoot     /j/file
9308 " | \
9309   $at_diff - "$at_stdout" || at_failed=:
9310 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:106"
9311 $at_failed && at_fn_log_failure
9312 $at_traceon; }
9313
9314   set +x
9315   $at_times_p && times >"$at_times_file"
9316 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9317 read at_status <"$at_status_file"
9318 #AT_STOP_114
9319 #AT_START_115
9320 at_fn_group_banner 115 'rpmbuild.at:144' \
9321   "rpmbuild hardlink" "                              " 9
9322 at_xfail=no
9323 (
9324   $as_echo "115. $at_setup_line: testing $at_desc ..."
9325   $at_traceon
9326
9327
9328 { set +x
9329 $as_echo "$at_srcdir/rpmbuild.at:146:
9330
9331 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9332
9333
9334 runroot rpm --initdb
9335
9336 rm -rf \${TOPDIR}
9337
9338 runroot rpmbuild \\
9339   -bb --quiet /data/SPECS/hlinktest.spec
9340
9341 runroot rpm -i /build/RPMS/noarch/hlinktest-1.0-1.noarch.rpm
9342
9343 runroot rpm -q --qf \"[%{filenlinks} %{filenames}\\n]%{longsize}\\n\" hlinktest
9344 runroot rpm -V --nouser --nogroup hlinktest
9345 ls -i \"\${RPMTEST}\"/foo/hello* | awk {'print \$1'} | sort -u | wc -l
9346
9347 "
9348 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:146"
9349 ( $at_check_trace;
9350
9351 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9352
9353
9354 runroot rpm --initdb
9355
9356 rm -rf ${TOPDIR}
9357
9358 runroot rpmbuild \
9359   -bb --quiet /data/SPECS/hlinktest.spec
9360
9361 runroot rpm -i /build/RPMS/noarch/hlinktest-1.0-1.noarch.rpm
9362
9363 runroot rpm -q --qf "[%{filenlinks} %{filenames}\n]%{longsize}\n" hlinktest
9364 runroot rpm -V --nouser --nogroup hlinktest
9365 ls -i "${RPMTEST}"/foo/hello* | awk {'print $1'} | sort -u | wc -l
9366
9367
9368 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9369 at_status=$? at_failed=false
9370 $at_check_filter
9371 at_fn_diff_devnull "$at_stderr" || at_failed=:
9372 echo >>"$at_stdout"; $as_echo "2 /foo/aaaa
9373 1 /foo/copyllo
9374 4 /foo/hello
9375 4 /foo/hello-bar
9376 4 /foo/hello-foo
9377 4 /foo/hello-world
9378 2 /foo/zzzz
9379 87
9380 1
9381 " | \
9382   $at_diff - "$at_stdout" || at_failed=:
9383 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:146"
9384 $at_failed && at_fn_log_failure
9385 $at_traceon; }
9386
9387   set +x
9388   $at_times_p && times >"$at_times_file"
9389 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9390 read at_status <"$at_status_file"
9391 #AT_STOP_115
9392 #AT_START_116
9393 at_fn_group_banner 116 'rpmbuild.at:175' \
9394   "rpmbuild unpackaged files" "                      " 9
9395 at_xfail=no
9396 (
9397   $as_echo "116. $at_setup_line: testing $at_desc ..."
9398   $at_traceon
9399
9400
9401 { set +x
9402 $as_echo "$at_srcdir/rpmbuild.at:177:
9403
9404 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9405
9406
9407 runroot rpm --initdb
9408
9409 rm -rf \${TOPDIR}
9410
9411 runroot rpmbuild \\
9412   -bb --quiet --with unpackaged_files /data/SPECS/hlinktest.spec
9413 "
9414 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:177"
9415 ( $at_check_trace;
9416
9417 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9418
9419
9420 runroot rpm --initdb
9421
9422 rm -rf ${TOPDIR}
9423
9424 runroot rpmbuild \
9425   -bb --quiet --with unpackaged_files /data/SPECS/hlinktest.spec
9426
9427 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9428 at_status=$? at_failed=false
9429 $at_check_filter
9430 echo >>"$at_stderr"; $as_echo "error: Installed (but unpackaged) file(s) found:
9431    /toot
9432     Installed (but unpackaged) file(s) found:
9433    /toot
9434 " | \
9435   $at_diff - "$at_stderr" || at_failed=:
9436 at_fn_diff_devnull "$at_stdout" || at_failed=:
9437 at_fn_check_status 1 $at_status "$at_srcdir/rpmbuild.at:177"
9438 $at_failed && at_fn_log_failure
9439 $at_traceon; }
9440
9441   set +x
9442   $at_times_p && times >"$at_times_file"
9443 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9444 read at_status <"$at_status_file"
9445 #AT_STOP_116
9446 #AT_START_117
9447 at_fn_group_banner 117 'rpmbuild.at:195' \
9448   "rpmbuild unpackaged directories" "                " 9
9449 at_xfail=no
9450       test $RPM_XFAIL -ne 0 && at_xfail=yes
9451 (
9452   $as_echo "117. $at_setup_line: testing $at_desc ..."
9453   $at_traceon
9454
9455
9456
9457 { set +x
9458 $as_echo "$at_srcdir/rpmbuild.at:198:
9459
9460 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9461
9462
9463 runroot rpm --initdb
9464
9465 rm -rf \${TOPDIR}
9466
9467 runroot rpmbuild \\
9468   -bb --quiet --with unpackaged_dirs /data/SPECS/hlinktest.spec
9469 "
9470 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:198"
9471 ( $at_check_trace;
9472
9473 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9474
9475
9476 runroot rpm --initdb
9477
9478 rm -rf ${TOPDIR}
9479
9480 runroot rpmbuild \
9481   -bb --quiet --with unpackaged_dirs /data/SPECS/hlinktest.spec
9482
9483 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9484 at_status=$? at_failed=false
9485 $at_check_filter
9486 echo >>"$at_stderr"; $as_echo "error: Installed (but unpackaged) file(s) found:
9487    /zoo
9488     Installed (but unpackaged) file(s) found:
9489    /zoo
9490 " | \
9491   $at_diff - "$at_stderr" || at_failed=:
9492 at_fn_diff_devnull "$at_stdout" || at_failed=:
9493 at_fn_check_status 1 $at_status "$at_srcdir/rpmbuild.at:198"
9494 $at_failed && at_fn_log_failure
9495 $at_traceon; }
9496
9497   set +x
9498   $at_times_p && times >"$at_times_file"
9499 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9500 read at_status <"$at_status_file"
9501 #AT_STOP_117
9502 #AT_START_118
9503 at_fn_group_banner 118 'rpmbuild.at:215' \
9504   "rpmbuild glob" "                                  " 9
9505 at_xfail=no
9506 (
9507   $as_echo "118. $at_setup_line: testing $at_desc ..."
9508   $at_traceon
9509
9510
9511 { set +x
9512 $as_echo "$at_srcdir/rpmbuild.at:217:
9513
9514 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9515
9516
9517 runroot rpm --initdb
9518
9519 rm -rf \${TOPDIR}
9520
9521 runroot rpmbuild -bb --quiet /data/SPECS/globtest.spec
9522 runroot rpm -qp \\
9523         --qf \"[%{filemodes:perms} %{filenames}\\n]\" \\
9524         /build/RPMS/noarch/globtest-1.0-1.noarch.rpm
9525 "
9526 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:217"
9527 ( $at_check_trace;
9528
9529 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9530
9531
9532 runroot rpm --initdb
9533
9534 rm -rf ${TOPDIR}
9535
9536 runroot rpmbuild -bb --quiet /data/SPECS/globtest.spec
9537 runroot rpm -qp \
9538         --qf "[%{filemodes:perms} %{filenames}\n]" \
9539         /build/RPMS/noarch/globtest-1.0-1.noarch.rpm
9540
9541 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9542 at_status=$? at_failed=false
9543 $at_check_filter
9544 at_fn_diff_devnull "$at_stderr" || at_failed=:
9545 echo >>"$at_stdout"; $as_echo "-rw-r--r-- /opt/globtest/baf
9546 drwxr-xr-x /opt/globtest/bang
9547 -rw-r--r-- /opt/globtest/bif
9548 drwxr-xr-x /opt/globtest/bing
9549 drwxr-xr-x /opt/globtest/bong
9550 drwxr-xr-x /opt/globtest/foo
9551 -rw-r--r-- /opt/globtest/foo/one
9552 -rw-r--r-- /opt/globtest/foo/three
9553 -rw-r--r-- /opt/globtest/foo/two
9554 lrwxrwxrwx /opt/globtest/linkbad
9555 lrwxrwxrwx /opt/globtest/linkgood
9556 -rw-r--r-- /opt/globtest/weird%name
9557 -rw-r--r-- /opt/globtest/zab
9558 -rw-r--r-- /opt/globtest/zeb
9559 -rw-r--r-- /opt/globtest/zib
9560 " | \
9561   $at_diff - "$at_stdout" || at_failed=:
9562 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:217"
9563 $at_failed && at_fn_log_failure
9564 $at_traceon; }
9565
9566   set +x
9567   $at_times_p && times >"$at_times_file"
9568 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9569 read at_status <"$at_status_file"
9570 #AT_STOP_118
9571 #AT_START_119
9572 at_fn_group_banner 119 'rpmbuild.at:247' \
9573   "rpmbuild prefixpostfix" "                         " 9
9574 at_xfail=no
9575 (
9576   $as_echo "119. $at_setup_line: testing $at_desc ..."
9577   $at_traceon
9578
9579
9580 { set +x
9581 $as_echo "$at_srcdir/rpmbuild.at:249:
9582
9583 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9584
9585
9586 runroot rpm --initdb
9587
9588 rm -rf \${TOPDIR}
9589
9590 runroot rpmbuild -bb --quiet \\
9591         /data/SPECS/prefixtest.spec
9592 runroot rpm -qp \\
9593         --qf \"[%{filemodes:perms} %{filenames}\\n]\" \\
9594         /build/RPMS/noarch/prefixtest-1.0-1.noarch.rpm
9595 "
9596 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:249"
9597 ( $at_check_trace;
9598
9599 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9600
9601
9602 runroot rpm --initdb
9603
9604 rm -rf ${TOPDIR}
9605
9606 runroot rpmbuild -bb --quiet \
9607         /data/SPECS/prefixtest.spec
9608 runroot rpm -qp \
9609         --qf "[%{filemodes:perms} %{filenames}\n]" \
9610         /build/RPMS/noarch/prefixtest-1.0-1.noarch.rpm
9611
9612 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9613 at_status=$? at_failed=false
9614 $at_check_filter
9615 at_fn_diff_devnull "$at_stderr" || at_failed=:
9616 echo >>"$at_stdout"; $as_echo "-rw-r--r-- /opt/prefixtest/ba
9617 drwxr-xr-x /opt/prefixtest/ban
9618 -rw-r--r-- /opt/prefixtest/bi
9619 drwxr-xr-x /opt/prefixtest/bin
9620 drwxr-xr-x /opt/prefixtest/bon
9621 drwxr-xr-x /opt/prefixtest/foo
9622 -rw-r--r-- /opt/prefixtest/foo/one
9623 -rw-r--r-- /opt/prefixtest/foo/three
9624 -rw-r--r-- /opt/prefixtest/foo/two
9625 lrwxrwxrwx /opt/prefixtest/linkbad
9626 lrwxrwxrwx /opt/prefixtest/linkgood
9627 -rw-r--r-- /opt/prefixtest/weird%name
9628 -rw-r--r-- /opt/prefixtest/zab
9629 -rw-r--r-- /opt/prefixtest/zeb
9630 -rw-r--r-- /opt/prefixtest/zib
9631 " | \
9632   $at_diff - "$at_stdout" || at_failed=:
9633 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:249"
9634 $at_failed && at_fn_log_failure
9635 $at_traceon; }
9636
9637   set +x
9638   $at_times_p && times >"$at_times_file"
9639 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9640 read at_status <"$at_status_file"
9641 #AT_STOP_119
9642 #AT_START_120
9643 at_fn_group_banner 120 'rpmbuild.at:282' \
9644   "Weak and reverse requires" "                      " 9
9645 at_xfail=no
9646 (
9647   $as_echo "120. $at_setup_line: testing $at_desc ..."
9648   $at_traceon
9649
9650
9651 { set +x
9652 $as_echo "$at_srcdir/rpmbuild.at:284:
9653
9654 runroot rpmbuild -bb --quiet \\
9655         --define \"pkg weakdeps\" \\
9656         --define \"recs foo > 1.2.3\" \\
9657         --define \"sugs bar >= 0.1.2\" \\
9658         --define \"sups baz\" \\
9659         --define \"ens zap = 3\" \\
9660           /data/SPECS/deptest.spec
9661
9662 runroot rpm -qp --recommends /build/RPMS/noarch/deptest-weakdeps-1.0-1.noarch.rpm
9663 runroot rpm -qp --suggests /build/RPMS/noarch/deptest-weakdeps-1.0-1.noarch.rpm
9664 runroot rpm -qp --supplements /build/RPMS/noarch/deptest-weakdeps-1.0-1.noarch.rpm
9665 runroot rpm -qp --enhances /build/RPMS/noarch/deptest-weakdeps-1.0-1.noarch.rpm
9666 "
9667 at_fn_check_prepare_notrace 'an embedded newline' "rpmbuild.at:284"
9668 ( $at_check_trace;
9669
9670 runroot rpmbuild -bb --quiet \
9671         --define "pkg weakdeps" \
9672         --define "recs foo > 1.2.3" \
9673         --define "sugs bar >= 0.1.2" \
9674         --define "sups baz" \
9675         --define "ens zap = 3" \
9676           /data/SPECS/deptest.spec
9677
9678 runroot rpm -qp --recommends /build/RPMS/noarch/deptest-weakdeps-1.0-1.noarch.rpm
9679 runroot rpm -qp --suggests /build/RPMS/noarch/deptest-weakdeps-1.0-1.noarch.rpm
9680 runroot rpm -qp --supplements /build/RPMS/noarch/deptest-weakdeps-1.0-1.noarch.rpm
9681 runroot rpm -qp --enhances /build/RPMS/noarch/deptest-weakdeps-1.0-1.noarch.rpm
9682
9683 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9684 at_status=$? at_failed=false
9685 $at_check_filter
9686 echo stderr:; cat "$at_stderr"
9687 echo >>"$at_stdout"; $as_echo "foo > 1.2.3
9688 bar >= 0.1.2
9689 baz
9690 zap = 3
9691 " | \
9692   $at_diff - "$at_stdout" || at_failed=:
9693 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:284"
9694 $at_failed && at_fn_log_failure
9695 $at_traceon; }
9696
9697   set +x
9698   $at_times_p && times >"$at_times_file"
9699 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9700 read at_status <"$at_status_file"
9701 #AT_STOP_120
9702 #AT_START_121
9703 at_fn_group_banner 121 'rpmbuild.at:310' \
9704   "Build requires" "                                 " 9
9705 at_xfail=no
9706 (
9707   $as_echo "121. $at_setup_line: testing $at_desc ..."
9708   $at_traceon
9709
9710
9711 { set +x
9712 $as_echo "$at_srcdir/rpmbuild.at:312:
9713
9714 runroot rpmbuild -bb --quiet \\
9715                 --define \"pkg buildreq\" \\
9716                 --define \"buildreqs foo > 1.2.3\" \\
9717                 /data/SPECS/deptest.spec
9718 "
9719 at_fn_check_prepare_notrace 'an embedded newline' "rpmbuild.at:312"
9720 ( $at_check_trace;
9721
9722 runroot rpmbuild -bb --quiet \
9723                 --define "pkg buildreq" \
9724                 --define "buildreqs foo > 1.2.3" \
9725                 /data/SPECS/deptest.spec
9726
9727 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9728 at_status=$? at_failed=false
9729 $at_check_filter
9730 echo >>"$at_stderr"; $as_echo "error: Failed build dependencies:
9731         foo > 1.2.3 is needed by deptest-buildreq-1.0-1.noarch
9732 " | \
9733   $at_diff - "$at_stderr" || at_failed=:
9734 at_fn_diff_devnull "$at_stdout" || at_failed=:
9735 at_fn_check_status 1 $at_status "$at_srcdir/rpmbuild.at:312"
9736 $at_failed && at_fn_log_failure
9737 $at_traceon; }
9738
9739   set +x
9740   $at_times_p && times >"$at_times_file"
9741 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9742 read at_status <"$at_status_file"
9743 #AT_STOP_121
9744 #AT_START_122
9745 at_fn_group_banner 122 'rpmbuild.at:326' \
9746   "Dependency generation" "                          " 9
9747 at_xfail=no
9748 (
9749   $as_echo "122. $at_setup_line: testing $at_desc ..."
9750   $at_traceon
9751
9752
9753 { set +x
9754 $as_echo "$at_srcdir/rpmbuild.at:328:
9755
9756 runroot rpmbuild -bb --quiet \\
9757                 /data/SPECS/filedep.spec
9758 echo Requires:
9759 runroot rpm  -qp --requires /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9760 echo Provides:
9761 runroot rpm -qp --provides /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9762 echo Filerequires:
9763 runroot rpm -qp --qf '[\"%{FILENAMES}\\t%{FILEREQUIRE}\"\\n]' /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9764 echo Fileprovides:
9765 runroot rpm -qp --qf '[\"%{FILENAMES}\\t%{FILEPROVIDE}\"\\n]' /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9766 "
9767 at_fn_check_prepare_notrace 'an embedded newline' "rpmbuild.at:328"
9768 ( $at_check_trace;
9769
9770 runroot rpmbuild -bb --quiet \
9771                 /data/SPECS/filedep.spec
9772 echo Requires:
9773 runroot rpm  -qp --requires /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9774 echo Provides:
9775 runroot rpm -qp --provides /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9776 echo Filerequires:
9777 runroot rpm -qp --qf '["%{FILENAMES}\t%{FILEREQUIRE}"\n]' /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9778 echo Fileprovides:
9779 runroot rpm -qp --qf '["%{FILENAMES}\t%{FILEPROVIDE}"\n]' /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9780
9781 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9782 at_status=$? at_failed=false
9783 $at_check_filter
9784 at_fn_diff_devnull "$at_stderr" || at_failed=:
9785 echo >>"$at_stdout"; $as_echo "Requires:
9786 /bin/f00f
9787 /bin/sh
9788 rpmlib(CompressedFileNames) <= 3.0.4-1
9789 rpmlib(FileDigests) <= 4.6.0-1
9790 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
9791 Provides:
9792 filedep = 1.0-1
9793 Filerequires:
9794 \"/etc/foo.conf \"
9795 \"/usr/bin/bar  /bin/f00f\"
9796 \"/usr/bin/foo  /bin/sh\"
9797 \"/usr/share/doc/filedep        \"
9798 \"/usr/share/doc/filedep/README \"
9799 Fileprovides:
9800 \"/etc/foo.conf \"
9801 \"/usr/bin/bar  \"
9802 \"/usr/bin/foo  \"
9803 \"/usr/share/doc/filedep        \"
9804 \"/usr/share/doc/filedep/README \"
9805 " | \
9806   $at_diff - "$at_stdout" || at_failed=:
9807 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:328"
9808 $at_failed && at_fn_log_failure
9809 $at_traceon; }
9810
9811   set +x
9812   $at_times_p && times >"$at_times_file"
9813 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9814 read at_status <"$at_status_file"
9815 #AT_STOP_122
9816 #AT_START_123
9817 at_fn_group_banner 123 'rpmbuild.at:369' \
9818   "rpmspec query 1" "                                " 9
9819 at_xfail=no
9820 (
9821   $as_echo "123. $at_setup_line: testing $at_desc ..."
9822   $at_traceon
9823
9824
9825 { set +x
9826 $as_echo "$at_srcdir/rpmbuild.at:371:
9827
9828 runroot rpmspec -q \\
9829                 --define \"pkg dep\" \\
9830                 --define \"reqs foo > 1.2.3 bar <= 2.3\" \\
9831                 --requires \\
9832                 /data/SPECS/deptest.spec
9833 "
9834 at_fn_check_prepare_notrace 'an embedded newline' "rpmbuild.at:371"
9835 ( $at_check_trace;
9836
9837 runroot rpmspec -q \
9838                 --define "pkg dep" \
9839                 --define "reqs foo > 1.2.3 bar <= 2.3" \
9840                 --requires \
9841                 /data/SPECS/deptest.spec
9842
9843 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9844 at_status=$? at_failed=false
9845 $at_check_filter
9846 at_fn_diff_devnull "$at_stderr" || at_failed=:
9847 echo >>"$at_stdout"; $as_echo "bar <= 2.3
9848 foo > 1.2.3
9849 " | \
9850   $at_diff - "$at_stdout" || at_failed=:
9851 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:371"
9852 $at_failed && at_fn_log_failure
9853 $at_traceon; }
9854
9855
9856   set +x
9857   $at_times_p && times >"$at_times_file"
9858 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9859 read at_status <"$at_status_file"
9860 #AT_STOP_123
9861 #AT_START_124
9862 at_fn_group_banner 124 'rpmbuild.at:389' \
9863   "rpmbuild archive sanity" "                        " 9
9864 at_xfail=no
9865 (
9866   $as_echo "124. $at_setup_line: testing $at_desc ..."
9867   $at_traceon
9868
9869
9870 { set +x
9871 $as_echo "$at_srcdir/rpmbuild.at:391:
9872 rm -rf \${TOPDIR}
9873
9874 runroot rpmbuild \\
9875   -bb --quiet /data/SPECS/attrtest.spec
9876
9877 runroot rpm2cpio \\
9878   /build/RPMS/noarch/attrtest-1.0-1.noarch.rpm > /tmp/attrtest.cpio
9879 "
9880 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:391"
9881 ( $at_check_trace;
9882 rm -rf ${TOPDIR}
9883
9884 runroot rpmbuild \
9885   -bb --quiet /data/SPECS/attrtest.spec
9886
9887 runroot rpm2cpio \
9888   /build/RPMS/noarch/attrtest-1.0-1.noarch.rpm > /tmp/attrtest.cpio
9889
9890 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9891 at_status=$? at_failed=false
9892 $at_check_filter
9893 at_fn_diff_devnull "$at_stderr" || at_failed=:
9894 at_fn_diff_devnull "$at_stdout" || at_failed=:
9895 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:391"
9896 $at_failed && at_fn_log_failure
9897 $at_traceon; }
9898
9899   set +x
9900   $at_times_p && times >"$at_times_file"
9901 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9902 read at_status <"$at_status_file"
9903 #AT_STOP_124
9904 #AT_START_125
9905 at_fn_group_banner 125 'rpmbuild.at:407' \
9906   "rpmbuild debuginfo minisymtab" "                  " 9
9907 at_xfail=no
9908 (
9909   $as_echo "125. $at_setup_line: testing $at_desc ..."
9910   $at_traceon
9911
9912
9913 { set +x
9914 $as_echo "$at_srcdir/rpmbuild.at:409:
9915 rm -rf \${TOPDIR}
9916
9917 # Use macros.debug to generate a debuginfo package.
9918 export CFLAGS=\"-g\"
9919 rundebug rpmbuild --quiet \\
9920   --rebuild \"\${abs_srcdir}\"/data/SRPMS/hello-1.0-1.src.rpm
9921
9922 # Extract the main package and inspect the hello binary
9923 # It should contain .gnu_debugdata, but not the full .symtab
9924 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm | cpio -diu
9925 test -f ./usr/local/bin/hello || exit 1
9926 readelf -S ./usr/local/bin/hello |\\
9927    grep -q .gnu_debugdata; test \$? == 0 || exit 1
9928 readelf -S ./usr/local/bin/hello \\
9929   | grep -q .symtab; test \$? == 1 || exit 1
9930
9931 # And the opposite for the debuginfo package
9932 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
9933   | cpio -diu
9934 test -f ./usr/lib/debug/usr/local/bin/hello*.debug || exit 1
9935 readelf -S ./usr/lib/debug/usr/local/bin/hello*.debug \\
9936   | grep -q .gnu_debugdata; test \$? == 1 || exit 1
9937 readelf -S ./usr/lib/debug/usr/local/bin/hello*.debug \\
9938   | grep -q .symtab; test \$? == 0 || exit 1
9939 "
9940 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:409"
9941 ( $at_check_trace;
9942 rm -rf ${TOPDIR}
9943
9944 # Use macros.debug to generate a debuginfo package.
9945 export CFLAGS="-g"
9946 rundebug rpmbuild --quiet \
9947   --rebuild "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm
9948
9949 # Extract the main package and inspect the hello binary
9950 # It should contain .gnu_debugdata, but not the full .symtab
9951 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm | cpio -diu
9952 test -f ./usr/local/bin/hello || exit 1
9953 readelf -S ./usr/local/bin/hello |\
9954    grep -q .gnu_debugdata; test $? == 0 || exit 1
9955 readelf -S ./usr/local/bin/hello \
9956   | grep -q .symtab; test $? == 1 || exit 1
9957
9958 # And the opposite for the debuginfo package
9959 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
9960   | cpio -diu
9961 test -f ./usr/lib/debug/usr/local/bin/hello*.debug || exit 1
9962 readelf -S ./usr/lib/debug/usr/local/bin/hello*.debug \
9963   | grep -q .gnu_debugdata; test $? == 1 || exit 1
9964 readelf -S ./usr/lib/debug/usr/local/bin/hello*.debug \
9965   | grep -q .symtab; test $? == 0 || exit 1
9966
9967 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9968 at_status=$? at_failed=false
9969 $at_check_filter
9970 echo stderr:; cat "$at_stderr"
9971 at_fn_diff_devnull "$at_stdout" || at_failed=:
9972 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:409"
9973 $at_failed && at_fn_log_failure
9974 $at_traceon; }
9975
9976   set +x
9977   $at_times_p && times >"$at_times_file"
9978 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
9979 read at_status <"$at_status_file"
9980 #AT_STOP_125
9981 #AT_START_126
9982 at_fn_group_banner 126 'rpmbuild.at:444' \
9983   "rpmbuild debuginfo minisymtab strip -g" "         " 9
9984 at_xfail=no
9985 (
9986   $as_echo "126. $at_setup_line: testing $at_desc ..."
9987   $at_traceon
9988
9989
9990 { set +x
9991 $as_echo "$at_srcdir/rpmbuild.at:446:
9992 rm -rf \${TOPDIR}
9993
9994 # Use macros.debug to generate a debuginfo package.
9995 export CFLAGS=\"-g\"
9996 rundebug rpmbuild --quiet \\
9997   --define=\"_find_debuginfo_opts -g\" \\
9998   --rebuild \"\${abs_srcdir}\"/data/SRPMS/hello-1.0-1.src.rpm
9999
10000 # Extract the main package and inspect the hello binary
10001 # It should contain .symtab (because of strip -g), so doesn't .gnu_debugdata.
10002 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm | cpio -diu
10003 test -f ./usr/local/bin/hello || exit 1
10004 readelf -S ./usr/local/bin/hello \\
10005   | grep -q .gnu_debugdata; test \$? == 1 || exit 1
10006 readelf -S ./usr/local/bin/hello \\
10007   | grep -q .symtab; test \$? == 0 || exit 1
10008
10009 # The debuginfo package should contain neither. The .symtab is NOBITS.
10010 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
10011   | cpio -diu
10012 test -f ./usr/lib/debug/usr/local/bin/hello*.debug || exit 1
10013 readelf -S ./usr/lib/debug/usr/local/bin/hello*.debug \\
10014   | grep -q .gnu_debugdata; test \$? == 1 || exit 1
10015 readelf -S ./usr/lib/debug/usr/local/bin/hello*.debug \\
10016   | grep .symtab | grep -q NOBITS; test \$? == 0 || exit 1
10017 "
10018 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:446"
10019 ( $at_check_trace;
10020 rm -rf ${TOPDIR}
10021
10022 # Use macros.debug to generate a debuginfo package.
10023 export CFLAGS="-g"
10024 rundebug rpmbuild --quiet \
10025   --define="_find_debuginfo_opts -g" \
10026   --rebuild "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm
10027
10028 # Extract the main package and inspect the hello binary
10029 # It should contain .symtab (because of strip -g), so doesn't .gnu_debugdata.
10030 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm | cpio -diu
10031 test -f ./usr/local/bin/hello || exit 1
10032 readelf -S ./usr/local/bin/hello \
10033   | grep -q .gnu_debugdata; test $? == 1 || exit 1
10034 readelf -S ./usr/local/bin/hello \
10035   | grep -q .symtab; test $? == 0 || exit 1
10036
10037 # The debuginfo package should contain neither. The .symtab is NOBITS.
10038 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
10039   | cpio -diu
10040 test -f ./usr/lib/debug/usr/local/bin/hello*.debug || exit 1
10041 readelf -S ./usr/lib/debug/usr/local/bin/hello*.debug \
10042   | grep -q .gnu_debugdata; test $? == 1 || exit 1
10043 readelf -S ./usr/lib/debug/usr/local/bin/hello*.debug \
10044   | grep .symtab | grep -q NOBITS; test $? == 0 || exit 1
10045
10046 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10047 at_status=$? at_failed=false
10048 $at_check_filter
10049 echo stderr:; cat "$at_stderr"
10050 at_fn_diff_devnull "$at_stdout" || at_failed=:
10051 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:446"
10052 $at_failed && at_fn_log_failure
10053 $at_traceon; }
10054
10055   set +x
10056   $at_times_p && times >"$at_times_file"
10057 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10058 read at_status <"$at_status_file"
10059 #AT_STOP_126
10060 #AT_START_127
10061 at_fn_group_banner 127 'rpmbuild.at:483' \
10062   "rpmbuild debuginfo dwz" "                         " 9
10063 at_xfail=no
10064 (
10065   $as_echo "127. $at_setup_line: testing $at_desc ..."
10066   $at_traceon
10067
10068
10069 { set +x
10070 $as_echo "$at_srcdir/rpmbuild.at:485:
10071 rm -rf \${TOPDIR}
10072 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10073
10074 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10075
10076 rundebug rpmbuild --quiet \\
10077   --undefine \"_unique_debug_names\" \\
10078   --undefine \"_unique_debug_srcs\" \\
10079   -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
10080
10081 # The debuginfo package should contain a .debug file for each binary
10082 # and a dwz multi file that contains the shared debuginfo between them.
10083 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
10084   | cpio -diu
10085
10086 hello_file_debug=./usr/lib/debug/usr/local/bin/hello.debug
10087 hello2_file_debug=./usr/lib/debug/usr/local/bin/hello2.debug
10088 hello_multi_file=./usr/lib/debug/.dwz/hello2-1.0-1.*
10089 test -f \$hello_file_debug || echo \"no hello debug file: \$hello_file_debug\"
10090 test -f \$hello2_file_debug || echo \"no hello2 debug file: \$hello2_file_debug\"
10091 test -f \$hello_multi_file || echo \"no dwz multi file: \$hello_multi_file\"
10092
10093 # Make sure the main package binaries contain the correct build-ids
10094 # linking them to the debug packages.
10095 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
10096   | cpio -diu
10097 hello_file=./usr/local/bin/hello
10098 hello2_file=./usr/local/bin/hello2
10099 test -f \$hello_file || echo \"no hello file: \$hello_file\"
10100 test -f \$hello2_file || echo \"no hello2 file: \$hello2_file\"
10101
10102 id1=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10103 id2=\$(file \$hello2_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10104 id1debug=\$(file \$hello_file_debug | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10105 id2debug=\$(file \$hello2_file_debug | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10106 idmulti=\$(file \$hello_multi_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10107
10108 test \"\$id1\" = \"\$id1debug\" || echo \"id1: \$id1 != id1debug: \$id1debug\"
10109 test \"\$id2\" = \"\$id2debug\" || echo \"id2: \$id2 != id2debug: \$id2debug\"
10110
10111 # The build-id files should link to the .debug files.
10112 id1file=\"./usr/lib/debug/.build-id/\${id1:0:2}/\${id1:2}\"
10113 canonid1file=\$(readlink -f \${id1file})
10114 canonfile1=\$(readlink -f \$hello_file)
10115 canonid1debug=\$(readlink -f \${id1file}.debug)
10116 canondebug1=\$(readlink -f \$hello_file_debug)
10117
10118 test \"\$canonid1file\" = \"\$canonfile1\" \\
10119   || echo \"canonid1file: \$canonid1file != \$canonfile1\"
10120 test \"\$canonid1debug\" = \"\$canondebug1\" \\
10121   || echo \"canonid1debug: \$canonid1debug != \$canondebug1\"
10122
10123 id2file=\"./usr/lib/debug/.build-id/\${id2:0:2}/\${id2:2}\"
10124 canonid2file=\$(readlink -f \${id2file})
10125 canonfile2=\$(readlink -f \$hello2_file)
10126 canonid2debug=\$(readlink -f \${id2file}.debug)
10127 canondebug2=\$(readlink -f \$hello2_file_debug)
10128
10129 test \"\$canonid2file\" = \"\$canonfile2\" \\
10130   || echo \"canonid2: \$canonid2file != \$canonfile2\"
10131 test \"\$canonid2debug\" = \"\$canondebug2\" \\
10132   || echo \"canonid2debug: \$canonid2debug\" != \"\$canondebug2\"
10133
10134 # Both .debug files should point to the dwz multi file.
10135 # It would be nice to also test that they contain the correct dwz build-id
10136 # but that is a bit hard to grep out of the section data.
10137 multiref1=\$(readelf --string-dump=.gnu_debugaltlink \$hello_file_debug \\
10138   | grep '     0' | cut -c13-)
10139 multiref2=\$(readelf --string-dump=.gnu_debugaltlink \$hello2_file_debug \\
10140   | grep '     0' | cut -c13-)
10141
10142 test \"\$multiref1\" = \"\$multiref2\" || echo \"multiref: \$multiref1 != \$multiref2\"
10143
10144 canonmultiref=\$(readlink -f \$(dirname \$canondebug1)/\$multiref1)
10145 canonmultifile=\$(readlink -f \$hello_multi_file)
10146
10147 test \"\$canonmultiref\" = \"\$canonmultifile\" \\
10148   || echo \"canonmultiref: \$canonmultiref\" != \"\$canonmultifile\"
10149 "
10150 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:485"
10151 ( $at_check_trace;
10152 rm -rf ${TOPDIR}
10153 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10154
10155 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10156
10157 rundebug rpmbuild --quiet \
10158   --undefine "_unique_debug_names" \
10159   --undefine "_unique_debug_srcs" \
10160   -ba "${abs_srcdir}"/data/SPECS/hello2.spec
10161
10162 # The debuginfo package should contain a .debug file for each binary
10163 # and a dwz multi file that contains the shared debuginfo between them.
10164 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
10165   | cpio -diu
10166
10167 hello_file_debug=./usr/lib/debug/usr/local/bin/hello.debug
10168 hello2_file_debug=./usr/lib/debug/usr/local/bin/hello2.debug
10169 hello_multi_file=./usr/lib/debug/.dwz/hello2-1.0-1.*
10170 test -f $hello_file_debug || echo "no hello debug file: $hello_file_debug"
10171 test -f $hello2_file_debug || echo "no hello2 debug file: $hello2_file_debug"
10172 test -f $hello_multi_file || echo "no dwz multi file: $hello_multi_file"
10173
10174 # Make sure the main package binaries contain the correct build-ids
10175 # linking them to the debug packages.
10176 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
10177   | cpio -diu
10178 hello_file=./usr/local/bin/hello
10179 hello2_file=./usr/local/bin/hello2
10180 test -f $hello_file || echo "no hello file: $hello_file"
10181 test -f $hello2_file || echo "no hello2 file: $hello2_file"
10182
10183 id1=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10184 id2=$(file $hello2_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10185 id1debug=$(file $hello_file_debug | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10186 id2debug=$(file $hello2_file_debug | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10187 idmulti=$(file $hello_multi_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10188
10189 test "$id1" = "$id1debug" || echo "id1: $id1 != id1debug: $id1debug"
10190 test "$id2" = "$id2debug" || echo "id2: $id2 != id2debug: $id2debug"
10191
10192 # The build-id files should link to the .debug files.
10193 id1file="./usr/lib/debug/.build-id/${id1:0:2}/${id1:2}"
10194 canonid1file=$(readlink -f ${id1file})
10195 canonfile1=$(readlink -f $hello_file)
10196 canonid1debug=$(readlink -f ${id1file}.debug)
10197 canondebug1=$(readlink -f $hello_file_debug)
10198
10199 test "$canonid1file" = "$canonfile1" \
10200   || echo "canonid1file: $canonid1file != $canonfile1"
10201 test "$canonid1debug" = "$canondebug1" \
10202   || echo "canonid1debug: $canonid1debug != $canondebug1"
10203
10204 id2file="./usr/lib/debug/.build-id/${id2:0:2}/${id2:2}"
10205 canonid2file=$(readlink -f ${id2file})
10206 canonfile2=$(readlink -f $hello2_file)
10207 canonid2debug=$(readlink -f ${id2file}.debug)
10208 canondebug2=$(readlink -f $hello2_file_debug)
10209
10210 test "$canonid2file" = "$canonfile2" \
10211   || echo "canonid2: $canonid2file != $canonfile2"
10212 test "$canonid2debug" = "$canondebug2" \
10213   || echo "canonid2debug: $canonid2debug" != "$canondebug2"
10214
10215 # Both .debug files should point to the dwz multi file.
10216 # It would be nice to also test that they contain the correct dwz build-id
10217 # but that is a bit hard to grep out of the section data.
10218 multiref1=$(readelf --string-dump=.gnu_debugaltlink $hello_file_debug \
10219   | grep '     0' | cut -c13-)
10220 multiref2=$(readelf --string-dump=.gnu_debugaltlink $hello2_file_debug \
10221   | grep '     0' | cut -c13-)
10222
10223 test "$multiref1" = "$multiref2" || echo "multiref: $multiref1 != $multiref2"
10224
10225 canonmultiref=$(readlink -f $(dirname $canondebug1)/$multiref1)
10226 canonmultifile=$(readlink -f $hello_multi_file)
10227
10228 test "$canonmultiref" = "$canonmultifile" \
10229   || echo "canonmultiref: $canonmultiref" != "$canonmultifile"
10230
10231 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10232 at_status=$? at_failed=false
10233 $at_check_filter
10234 echo stderr:; cat "$at_stderr"
10235 at_fn_diff_devnull "$at_stdout" || at_failed=:
10236 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:485"
10237 $at_failed && at_fn_log_failure
10238 $at_traceon; }
10239
10240   set +x
10241   $at_times_p && times >"$at_times_file"
10242 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10243 read at_status <"$at_status_file"
10244 #AT_STOP_127
10245 #AT_START_128
10246 at_fn_group_banner 128 'rpmbuild.at:575' \
10247   "rpmbuild debuginfo dwz unique debug names" "      " 9
10248 at_xfail=no
10249 (
10250   $as_echo "128. $at_setup_line: testing $at_desc ..."
10251   $at_traceon
10252
10253
10254 { set +x
10255 $as_echo "$at_srcdir/rpmbuild.at:577:
10256 rm -rf \${TOPDIR}
10257 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10258
10259 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10260
10261 rundebug rpmbuild --quiet \\
10262   --define \"_unique_debug_names 1\" \\
10263   -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
10264
10265 # The debuginfo package should contain a .debug file for each binary
10266 # and a dwz multi file that contains the shared debuginfo between them.
10267 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
10268   | cpio -diu
10269
10270 hello_file_debug=./usr/lib/debug/usr/local/bin/hello-*.debug
10271 hello2_file_debug=./usr/lib/debug/usr/local/bin/hello2-*.debug
10272 hello_multi_file=./usr/lib/debug/.dwz/hello2-1.0-1.*
10273 test -f \$hello_file_debug || echo \"no hello debug file: \$hello_file_debug\"
10274 test -f \$hello2_file_debug || echo \"no hello2 debug file: \$hello2_file_debug\"
10275 test -f \$hello_multi_file || echo \"no dwz multi file: \$hello_multi_file\"
10276
10277 # Make sure the main package binaries contain the correct build-ids
10278 # linking them to the debug packages.
10279 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
10280   | cpio -diu
10281 hello_file=./usr/local/bin/hello
10282 hello2_file=./usr/local/bin/hello2
10283 test -f \$hello_file || echo \"no hello file: \$hello_file\"
10284 test -f \$hello2_file || echo \"no hello2 file: \$hello2_file\"
10285
10286 id1=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10287 id2=\$(file \$hello2_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10288 id1debug=\$(file \$hello_file_debug | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10289 id2debug=\$(file \$hello2_file_debug | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10290 idmulti=\$(file \$hello_multi_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
10291
10292 test \"\$id1\" = \"\$id1debug\" || echo \"id1: \$id1 != id1debug: \$id1debug\"
10293 test \"\$id2\" = \"\$id2debug\" || echo \"id2: \$id2 != id2debug: \$id2debug\"
10294
10295 # The build-id files should link to the .debug files.
10296 id1file=\"./usr/lib/debug/.build-id/\${id1:0:2}/\${id1:2}\"
10297 canonid1file=\$(readlink -f \${id1file})
10298 canonfile1=\$(readlink -f \$hello_file)
10299 canonid1debug=\$(readlink -f \${id1file}.debug)
10300 canondebug1=\$(readlink -f \$hello_file_debug)
10301
10302 test \"\$canonid1file\" = \"\$canonfile1\" \\
10303   || echo \"canonid1file: \$canonid1file != \$canonfile1\"
10304 test \"\$canonid1debug\" = \"\$canondebug1\" \\
10305   || echo \"canonid1debug: \$canonid1debug != \$canondebug1\"
10306
10307 id2file=\"./usr/lib/debug/.build-id/\${id2:0:2}/\${id2:2}\"
10308 canonid2file=\$(readlink -f \${id2file})
10309 canonfile2=\$(readlink -f \$hello2_file)
10310 canonid2debug=\$(readlink -f \${id2file}.debug)
10311 canondebug2=\$(readlink -f \$hello2_file_debug)
10312
10313 test \"\$canonid2file\" = \"\$canonfile2\" \\
10314   || echo \"canonid2: \$canonid2file != \$canonfile2\"
10315 test \"\$canonid2debug\" = \"\$canondebug2\" \\
10316   || echo \"canonid2debug: \$canonid2debug\" != \"\$canondebug2\"
10317
10318 # Both .debug files should point to the dwz multi file.
10319 # It would be nice to also test that they contain the correct dwz build-id
10320 # but that is a bit hard to grep out of the section data.
10321 multiref1=\$(readelf --string-dump=.gnu_debugaltlink \$hello_file_debug \\
10322   | grep '     0' | cut -c13-)
10323 multiref2=\$(readelf --string-dump=.gnu_debugaltlink \$hello2_file_debug \\
10324   | grep '     0' | cut -c13-)
10325
10326 test \"\$multiref1\" = \"\$multiref2\" || echo \"multiref: \$multiref1 != \$multiref2\"
10327
10328 canonmultiref=\$(readlink -f \$(dirname \$canondebug1)/\$multiref1)
10329 canonmultifile=\$(readlink -f \$hello_multi_file)
10330
10331 test \"\$canonmultiref\" = \"\$canonmultifile\" \\
10332   || echo \"canonmultiref: \$canonmultiref\" != \"\$canonmultifile\"
10333 "
10334 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:577"
10335 ( $at_check_trace;
10336 rm -rf ${TOPDIR}
10337 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10338
10339 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10340
10341 rundebug rpmbuild --quiet \
10342   --define "_unique_debug_names 1" \
10343   -ba "${abs_srcdir}"/data/SPECS/hello2.spec
10344
10345 # The debuginfo package should contain a .debug file for each binary
10346 # and a dwz multi file that contains the shared debuginfo between them.
10347 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
10348   | cpio -diu
10349
10350 hello_file_debug=./usr/lib/debug/usr/local/bin/hello-*.debug
10351 hello2_file_debug=./usr/lib/debug/usr/local/bin/hello2-*.debug
10352 hello_multi_file=./usr/lib/debug/.dwz/hello2-1.0-1.*
10353 test -f $hello_file_debug || echo "no hello debug file: $hello_file_debug"
10354 test -f $hello2_file_debug || echo "no hello2 debug file: $hello2_file_debug"
10355 test -f $hello_multi_file || echo "no dwz multi file: $hello_multi_file"
10356
10357 # Make sure the main package binaries contain the correct build-ids
10358 # linking them to the debug packages.
10359 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
10360   | cpio -diu
10361 hello_file=./usr/local/bin/hello
10362 hello2_file=./usr/local/bin/hello2
10363 test -f $hello_file || echo "no hello file: $hello_file"
10364 test -f $hello2_file || echo "no hello2 file: $hello2_file"
10365
10366 id1=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10367 id2=$(file $hello2_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10368 id1debug=$(file $hello_file_debug | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10369 id2debug=$(file $hello2_file_debug | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10370 idmulti=$(file $hello_multi_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
10371
10372 test "$id1" = "$id1debug" || echo "id1: $id1 != id1debug: $id1debug"
10373 test "$id2" = "$id2debug" || echo "id2: $id2 != id2debug: $id2debug"
10374
10375 # The build-id files should link to the .debug files.
10376 id1file="./usr/lib/debug/.build-id/${id1:0:2}/${id1:2}"
10377 canonid1file=$(readlink -f ${id1file})
10378 canonfile1=$(readlink -f $hello_file)
10379 canonid1debug=$(readlink -f ${id1file}.debug)
10380 canondebug1=$(readlink -f $hello_file_debug)
10381
10382 test "$canonid1file" = "$canonfile1" \
10383   || echo "canonid1file: $canonid1file != $canonfile1"
10384 test "$canonid1debug" = "$canondebug1" \
10385   || echo "canonid1debug: $canonid1debug != $canondebug1"
10386
10387 id2file="./usr/lib/debug/.build-id/${id2:0:2}/${id2:2}"
10388 canonid2file=$(readlink -f ${id2file})
10389 canonfile2=$(readlink -f $hello2_file)
10390 canonid2debug=$(readlink -f ${id2file}.debug)
10391 canondebug2=$(readlink -f $hello2_file_debug)
10392
10393 test "$canonid2file" = "$canonfile2" \
10394   || echo "canonid2: $canonid2file != $canonfile2"
10395 test "$canonid2debug" = "$canondebug2" \
10396   || echo "canonid2debug: $canonid2debug" != "$canondebug2"
10397
10398 # Both .debug files should point to the dwz multi file.
10399 # It would be nice to also test that they contain the correct dwz build-id
10400 # but that is a bit hard to grep out of the section data.
10401 multiref1=$(readelf --string-dump=.gnu_debugaltlink $hello_file_debug \
10402   | grep '     0' | cut -c13-)
10403 multiref2=$(readelf --string-dump=.gnu_debugaltlink $hello2_file_debug \
10404   | grep '     0' | cut -c13-)
10405
10406 test "$multiref1" = "$multiref2" || echo "multiref: $multiref1 != $multiref2"
10407
10408 canonmultiref=$(readlink -f $(dirname $canondebug1)/$multiref1)
10409 canonmultifile=$(readlink -f $hello_multi_file)
10410
10411 test "$canonmultiref" = "$canonmultifile" \
10412   || echo "canonmultiref: $canonmultiref" != "$canonmultifile"
10413
10414 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10415 at_status=$? at_failed=false
10416 $at_check_filter
10417 echo stderr:; cat "$at_stderr"
10418 at_fn_diff_devnull "$at_stdout" || at_failed=:
10419 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:577"
10420 $at_failed && at_fn_log_failure
10421 $at_traceon; }
10422
10423   set +x
10424   $at_times_p && times >"$at_times_file"
10425 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10426 read at_status <"$at_status_file"
10427 #AT_STOP_128
10428 #AT_START_129
10429 at_fn_group_banner 129 'rpmbuild.at:664' \
10430   "rpmbuild debuginfo dwz gnu_debuglink crc" "       " 9
10431 at_xfail=no
10432 (
10433   $as_echo "129. $at_setup_line: testing $at_desc ..."
10434   $at_traceon
10435
10436
10437 { set +x
10438 $as_echo "$at_srcdir/rpmbuild.at:666:
10439 rm -rf \${TOPDIR}
10440 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10441
10442 # Build a package that
10443 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10444
10445 rundebug rpmbuild --quiet \\
10446   -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
10447
10448 # Unpack the main and debuginfo rpms so we can check binaries and .debug files.
10449 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
10450   | cpio -diu
10451 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
10452   | cpio -diu
10453
10454 # Check that dwz has ran and a multi file has been produced
10455 test -f ./usr/lib/debug/.dwz/hello2-1.0-1.* || exit 1
10456
10457 # Run sepdbugcrcfix on the binaries, both should have correct CRC already.
10458 \${abs_top_builddir}/sepdebugcrcfix ./usr/lib/debug \\
10459   ./usr/local/bin/hello ./usr/local/bin/hello2 | grep CRC32 | cut -f2 -d:
10460 "
10461 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:666"
10462 ( $at_check_trace;
10463 rm -rf ${TOPDIR}
10464 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10465
10466 # Build a package that
10467 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10468
10469 rundebug rpmbuild --quiet \
10470   -ba "${abs_srcdir}"/data/SPECS/hello2.spec
10471
10472 # Unpack the main and debuginfo rpms so we can check binaries and .debug files.
10473 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
10474   | cpio -diu
10475 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
10476   | cpio -diu
10477
10478 # Check that dwz has ran and a multi file has been produced
10479 test -f ./usr/lib/debug/.dwz/hello2-1.0-1.* || exit 1
10480
10481 # Run sepdbugcrcfix on the binaries, both should have correct CRC already.
10482 ${abs_top_builddir}/sepdebugcrcfix ./usr/lib/debug \
10483   ./usr/local/bin/hello ./usr/local/bin/hello2 | grep CRC32 | cut -f2 -d:
10484
10485 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10486 at_status=$? at_failed=false
10487 $at_check_filter
10488 echo stderr:; cat "$at_stderr"
10489 echo >>"$at_stdout"; $as_echo " Updated 0 CRC32s, 2 CRC32s did match.
10490 " | \
10491   $at_diff - "$at_stdout" || at_failed=:
10492 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:666"
10493 $at_failed && at_fn_log_failure
10494 $at_traceon; }
10495
10496   set +x
10497   $at_times_p && times >"$at_times_file"
10498 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10499 read at_status <"$at_status_file"
10500 #AT_STOP_129
10501 #AT_START_130
10502 at_fn_group_banner 130 'rpmbuild.at:698' \
10503   "rpmbuild implicit suid binary" "                  " 9
10504 at_xfail=no
10505 (
10506   $as_echo "130. $at_setup_line: testing $at_desc ..."
10507   $at_traceon
10508
10509
10510 { set +x
10511 $as_echo "$at_srcdir/rpmbuild.at:700:
10512 rm -rf \${TOPDIR}
10513 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10514
10515 # Build a package that has some debuginfo
10516 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10517
10518 rundebug rpmbuild --quiet \\
10519   -ba \"\${abs_srcdir}\"/data/SPECS/hello2-suid.spec
10520
10521 # Unpack rpm so we can check the included binaries.
10522 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
10523   | cpio -diu --quiet
10524
10525 # List all binaries with suid bit set (should be one, hello).
10526 echo \"suid:\"
10527 find usr -executable -type f -perm /4000
10528 # List all binaries without suid bit set (should also be one, hello2).
10529 echo \"no-suid:\"
10530 find usr -executable -type f \\! -perm /4000
10531 "
10532 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:700"
10533 ( $at_check_trace;
10534 rm -rf ${TOPDIR}
10535 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10536
10537 # Build a package that has some debuginfo
10538 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10539
10540 rundebug rpmbuild --quiet \
10541   -ba "${abs_srcdir}"/data/SPECS/hello2-suid.spec
10542
10543 # Unpack rpm so we can check the included binaries.
10544 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
10545   | cpio -diu --quiet
10546
10547 # List all binaries with suid bit set (should be one, hello).
10548 echo "suid:"
10549 find usr -executable -type f -perm /4000
10550 # List all binaries without suid bit set (should also be one, hello2).
10551 echo "no-suid:"
10552 find usr -executable -type f \! -perm /4000
10553
10554 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10555 at_status=$? at_failed=false
10556 $at_check_filter
10557 echo stderr:; cat "$at_stderr"
10558 echo >>"$at_stdout"; $as_echo "suid:
10559 usr/local/bin/hello
10560 no-suid:
10561 usr/local/bin/hello2
10562 " | \
10563   $at_diff - "$at_stdout" || at_failed=:
10564 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:700"
10565 $at_failed && at_fn_log_failure
10566 $at_traceon; }
10567
10568   set +x
10569   $at_times_p && times >"$at_times_file"
10570 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10571 read at_status <"$at_status_file"
10572 #AT_STOP_130
10573 #AT_START_131
10574 at_fn_group_banner 131 'rpmbuild.at:732' \
10575   "rpmbuild debuginfo gdb index included" "          " 9
10576 at_xfail=no
10577 (
10578   $as_echo "131. $at_setup_line: testing $at_desc ..."
10579   $at_traceon
10580
10581
10582 { set +x
10583 $as_echo "$at_srcdir/rpmbuild.at:734:
10584 rm -rf \${TOPDIR}
10585 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10586
10587 # Build a package that has some debuginfo
10588 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10589
10590 rundebug rpmbuild --quiet \\
10591   --define \"_include_gdb_index 1\" \\
10592   -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
10593
10594 # Unpack the debuginfo rpms so we can check the .debug files.
10595 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
10596   | cpio -diu --quiet
10597
10598 # Check that gdb-add-index has ran and a .gdb_index section has been added
10599 readelf -S ./usr/lib/debug/usr/local/bin/hello2*.debug \\
10600   | grep gdb_index | cut -c8-17
10601 "
10602 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:734"
10603 ( $at_check_trace;
10604 rm -rf ${TOPDIR}
10605 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10606
10607 # Build a package that has some debuginfo
10608 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10609
10610 rundebug rpmbuild --quiet \
10611   --define "_include_gdb_index 1" \
10612   -ba "${abs_srcdir}"/data/SPECS/hello2.spec
10613
10614 # Unpack the debuginfo rpms so we can check the .debug files.
10615 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
10616   | cpio -diu --quiet
10617
10618 # Check that gdb-add-index has ran and a .gdb_index section has been added
10619 readelf -S ./usr/lib/debug/usr/local/bin/hello2*.debug \
10620   | grep gdb_index | cut -c8-17
10621
10622 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10623 at_status=$? at_failed=false
10624 $at_check_filter
10625 echo stderr:; cat "$at_stderr"
10626 echo >>"$at_stdout"; $as_echo ".gdb_index
10627 " | \
10628   $at_diff - "$at_stdout" || at_failed=:
10629 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:734"
10630 $at_failed && at_fn_log_failure
10631 $at_traceon; }
10632
10633   set +x
10634   $at_times_p && times >"$at_times_file"
10635 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10636 read at_status <"$at_status_file"
10637 #AT_STOP_131
10638 #AT_START_132
10639 at_fn_group_banner 132 'rpmbuild.at:761' \
10640   "rpmbuild debuginfo no gdb index included" "       " 9
10641 at_xfail=no
10642 (
10643   $as_echo "132. $at_setup_line: testing $at_desc ..."
10644   $at_traceon
10645
10646
10647 { set +x
10648 $as_echo "$at_srcdir/rpmbuild.at:763:
10649 rm -rf \${TOPDIR}
10650 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10651
10652 # Build a package that has some debuginfo
10653 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10654
10655 rundebug rpmbuild --quiet \\
10656   --undefine \"_include_gdb_index\" \\
10657   -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
10658
10659 # Unpack the debuginfo rpms so we can check the .debug files.
10660 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
10661   | cpio -diu --quiet
10662
10663 # Check that gdb-add-index has not ran and no .gdb_index section has been added
10664 readelf -S ./usr/lib/debug/usr/local/bin/hello2*.debug \\
10665   | grep gdb_index | cut -c8-17
10666 "
10667 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:763"
10668 ( $at_check_trace;
10669 rm -rf ${TOPDIR}
10670 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10671
10672 # Build a package that has some debuginfo
10673 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10674
10675 rundebug rpmbuild --quiet \
10676   --undefine "_include_gdb_index" \
10677   -ba "${abs_srcdir}"/data/SPECS/hello2.spec
10678
10679 # Unpack the debuginfo rpms so we can check the .debug files.
10680 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
10681   | cpio -diu --quiet
10682
10683 # Check that gdb-add-index has not ran and no .gdb_index section has been added
10684 readelf -S ./usr/lib/debug/usr/local/bin/hello2*.debug \
10685   | grep gdb_index | cut -c8-17
10686
10687 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10688 at_status=$? at_failed=false
10689 $at_check_filter
10690 echo stderr:; cat "$at_stderr"
10691 at_fn_diff_devnull "$at_stdout" || at_failed=:
10692 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:763"
10693 $at_failed && at_fn_log_failure
10694 $at_traceon; }
10695
10696   set +x
10697   $at_times_p && times >"$at_times_file"
10698 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10699 read at_status <"$at_status_file"
10700 #AT_STOP_132
10701 #AT_START_133
10702 at_fn_group_banner 133 'rpmbuild.at:789' \
10703   "rpmbuild debuginfo unique debug src dir" "        " 9
10704 at_xfail=no
10705 (
10706   $as_echo "133. $at_setup_line: testing $at_desc ..."
10707   $at_traceon
10708
10709
10710 { set +x
10711 $as_echo "$at_srcdir/rpmbuild.at:791:
10712 rm -rf \${TOPDIR}
10713 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10714
10715 # Build a package that has some debuginfo
10716 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10717
10718 # Note that the spec defines hello2 as name, but the source is hello-1.0.
10719 # Disable dwz to make debuginfo path rewrite checking easier.
10720 rundebug rpmbuild --quiet \\
10721   --undefine \"_find_debuginfo_dwz_opts\" \\
10722   --define \"_unique_debug_srcs 1\" \\
10723   -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
10724
10725 # Unpack the debuginfo rpms so we can check the .debug files.
10726 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
10727   | cpio -diu --quiet
10728
10729 # Check that the source path is \"unique\"
10730 # Drop the final arch prefix to make the test arch-independent.
10731 ls ./usr/src/debug/ | cut -f1,2 -d\\.
10732
10733 # Check that the source path has been rewritten in the .debug file.
10734 # Drop the final arch prefix to make the test arch-independent.
10735 readelf --debug-dump=info ./usr/lib/debug/usr/local/bin/hello2*.debug \\
10736   | grep comp_dir | sed -e 's/\\t\$//' | cut -f5- -d/ | cut -f1,2 -d\\.
10737 "
10738 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:791"
10739 ( $at_check_trace;
10740 rm -rf ${TOPDIR}
10741 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10742
10743 # Build a package that has some debuginfo
10744 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10745
10746 # Note that the spec defines hello2 as name, but the source is hello-1.0.
10747 # Disable dwz to make debuginfo path rewrite checking easier.
10748 rundebug rpmbuild --quiet \
10749   --undefine "_find_debuginfo_dwz_opts" \
10750   --define "_unique_debug_srcs 1" \
10751   -ba "${abs_srcdir}"/data/SPECS/hello2.spec
10752
10753 # Unpack the debuginfo rpms so we can check the .debug files.
10754 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
10755   | cpio -diu --quiet
10756
10757 # Check that the source path is "unique"
10758 # Drop the final arch prefix to make the test arch-independent.
10759 ls ./usr/src/debug/ | cut -f1,2 -d\.
10760
10761 # Check that the source path has been rewritten in the .debug file.
10762 # Drop the final arch prefix to make the test arch-independent.
10763 readelf --debug-dump=info ./usr/lib/debug/usr/local/bin/hello2*.debug \
10764   | grep comp_dir | sed -e 's/\t$//' | cut -f5- -d/ | cut -f1,2 -d\.
10765
10766 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10767 at_status=$? at_failed=false
10768 $at_check_filter
10769 echo stderr:; cat "$at_stderr"
10770 echo >>"$at_stdout"; $as_echo "hello2-1.0-1
10771 hello2-1.0-1
10772 " | \
10773   $at_diff - "$at_stdout" || at_failed=:
10774 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:791"
10775 $at_failed && at_fn_log_failure
10776 $at_traceon; }
10777
10778   set +x
10779   $at_times_p && times >"$at_times_file"
10780 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10781 read at_status <"$at_status_file"
10782 #AT_STOP_133
10783 #AT_START_134
10784 at_fn_group_banner 134 'rpmbuild.at:828' \
10785   "rpmbuild debuginfo no unique debug src dir" "     " 9
10786 at_xfail=no
10787 (
10788   $as_echo "134. $at_setup_line: testing $at_desc ..."
10789   $at_traceon
10790
10791
10792 { set +x
10793 $as_echo "$at_srcdir/rpmbuild.at:830:
10794 rm -rf \${TOPDIR}
10795 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10796
10797 # Build a package that has some debuginfo
10798 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10799
10800 # Note that the spec defines hello2 as name, but the source is hello-1.0.
10801 # Disable dwz to make debuginfo path rewrite checking easier.
10802 rundebug rpmbuild --quiet \\
10803   --undefine \"_find_debuginfo_dwz_opts\" \\
10804   --undefine \"_unique_debug_srcs\" \\
10805   -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
10806
10807 # Unpack the debuginfo rpms so we can check the .debug files.
10808 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
10809   | cpio -diu --quiet
10810
10811 # Check that the source path is \"unique\"
10812 ls ./usr/src/debug/
10813
10814 # Check that the source path has been rewritten in the .debug file.
10815 readelf --debug-dump=info ./usr/lib/debug/usr/local/bin/hello2*.debug \\
10816   | grep comp_dir | sed -e 's/\\t\$//' | cut -f5- -d/
10817 "
10818 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:830"
10819 ( $at_check_trace;
10820 rm -rf ${TOPDIR}
10821 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10822
10823 # Build a package that has some debuginfo
10824 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10825
10826 # Note that the spec defines hello2 as name, but the source is hello-1.0.
10827 # Disable dwz to make debuginfo path rewrite checking easier.
10828 rundebug rpmbuild --quiet \
10829   --undefine "_find_debuginfo_dwz_opts" \
10830   --undefine "_unique_debug_srcs" \
10831   -ba "${abs_srcdir}"/data/SPECS/hello2.spec
10832
10833 # Unpack the debuginfo rpms so we can check the .debug files.
10834 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
10835   | cpio -diu --quiet
10836
10837 # Check that the source path is "unique"
10838 ls ./usr/src/debug/
10839
10840 # Check that the source path has been rewritten in the .debug file.
10841 readelf --debug-dump=info ./usr/lib/debug/usr/local/bin/hello2*.debug \
10842   | grep comp_dir | sed -e 's/\t$//' | cut -f5- -d/
10843
10844 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10845 at_status=$? at_failed=false
10846 $at_check_filter
10847 echo stderr:; cat "$at_stderr"
10848 echo >>"$at_stdout"; $as_echo "hello-1.0
10849 hello-1.0
10850 " | \
10851   $at_diff - "$at_stdout" || at_failed=:
10852 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:830"
10853 $at_failed && at_fn_log_failure
10854 $at_traceon; }
10855
10856   set +x
10857   $at_times_p && times >"$at_times_file"
10858 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10859 read at_status <"$at_status_file"
10860 #AT_STOP_134
10861 #AT_START_135
10862 at_fn_group_banner 135 'rpmbuild.at:864' \
10863   "rpmbuild debugsource" "                           " 9
10864 at_xfail=no
10865 (
10866   $as_echo "135. $at_setup_line: testing $at_desc ..."
10867   $at_traceon
10868
10869
10870 { set +x
10871 $as_echo "$at_srcdir/rpmbuild.at:866:
10872 rm -rf \${TOPDIR}
10873 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10874
10875 # Build a package that has some debuginfo
10876 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10877
10878 rundebug rpmbuild --quiet \\
10879   --define \"_debugsource_packages 1\" \\
10880   -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
10881
10882 # Unpack the debugsource rpm so we can check the sources are there.
10883 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debugsource-1.0-1.*.rpm \\
10884   | cpio -diu --quiet
10885
10886 # Check that hello.c is there.
10887 ls ./usr/src/debug/hello2-1.0*/
10888
10889 # The debuginfo package should recommend the debugsource package (ignore arch).
10890 echo -n \"Recommends: \"
10891 run rpm -qp --recommends \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\\(.*\\) = ([-.0-9]+)/\\1\\(ignore-arch\\) = \\2/'
10892 "
10893 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:866"
10894 ( $at_check_trace;
10895 rm -rf ${TOPDIR}
10896 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10897
10898 # Build a package that has some debuginfo
10899 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10900
10901 rundebug rpmbuild --quiet \
10902   --define "_debugsource_packages 1" \
10903   -ba "${abs_srcdir}"/data/SPECS/hello2.spec
10904
10905 # Unpack the debugsource rpm so we can check the sources are there.
10906 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debugsource-1.0-1.*.rpm \
10907   | cpio -diu --quiet
10908
10909 # Check that hello.c is there.
10910 ls ./usr/src/debug/hello2-1.0*/
10911
10912 # The debuginfo package should recommend the debugsource package (ignore arch).
10913 echo -n "Recommends: "
10914 run rpm -qp --recommends ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\(.*\) = ([-.0-9]+)/\1\(ignore-arch\) = \2/'
10915
10916 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10917 at_status=$? at_failed=false
10918 $at_check_filter
10919 echo stderr:; cat "$at_stderr"
10920 echo >>"$at_stdout"; $as_echo "hello.c
10921 Recommends: hello2-debugsource(ignore-arch) = 1.0-1
10922 " | \
10923   $at_diff - "$at_stdout" || at_failed=:
10924 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:866"
10925 $at_failed && at_fn_log_failure
10926 $at_traceon; }
10927
10928   set +x
10929   $at_times_p && times >"$at_times_file"
10930 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10931 read at_status <"$at_status_file"
10932 #AT_STOP_135
10933 #AT_START_136
10934 at_fn_group_banner 136 'rpmbuild.at:899' \
10935   "rpmbuild debugsource debugsourcefiles.list path" "" 9
10936 at_xfail=no
10937 (
10938   $as_echo "136. $at_setup_line: testing $at_desc ..."
10939   $at_traceon
10940
10941
10942 { set +x
10943 $as_echo "$at_srcdir/rpmbuild.at:901:
10944 rm -rf \${TOPDIR}
10945 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10946
10947 # Setup sources
10948 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
10949
10950 rundebug rpmbuild --quiet \\
10951   --define \"_debugsource_packages 1\" \\
10952   -ba \"\${abs_srcdir}\"/data/SPECS/hello-cd.spec
10953
10954 # Unpack the debuginfo rpms so we can check the sources are there.
10955 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-debugsource-1.0-1.*.rpm \\
10956   | cpio -diu --quiet
10957
10958 # Check that hello.c is there.
10959 ls ./usr/src/debug/test-1.0*/
10960 "
10961 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:901"
10962 ( $at_check_trace;
10963 rm -rf ${TOPDIR}
10964 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10965
10966 # Setup sources
10967 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
10968
10969 rundebug rpmbuild --quiet \
10970   --define "_debugsource_packages 1" \
10971   -ba "${abs_srcdir}"/data/SPECS/hello-cd.spec
10972
10973 # Unpack the debuginfo rpms so we can check the sources are there.
10974 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-debugsource-1.0-1.*.rpm \
10975   | cpio -diu --quiet
10976
10977 # Check that hello.c is there.
10978 ls ./usr/src/debug/test-1.0*/
10979
10980 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10981 at_status=$? at_failed=false
10982 $at_check_filter
10983 echo stderr:; cat "$at_stderr"
10984 echo >>"$at_stdout"; $as_echo "hello.c
10985 " | \
10986   $at_diff - "$at_stdout" || at_failed=:
10987 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:901"
10988 $at_failed && at_fn_log_failure
10989 $at_traceon; }
10990
10991   set +x
10992   $at_times_p && times >"$at_times_file"
10993 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
10994 read at_status <"$at_status_file"
10995 #AT_STOP_136
10996 #AT_START_137
10997 at_fn_group_banner 137 'rpmbuild.at:927' \
10998   "rpmbuild debuginfo subpackages single" "          " 9
10999 at_xfail=no
11000 (
11001   $as_echo "137. $at_setup_line: testing $at_desc ..."
11002   $at_traceon
11003
11004
11005 { set +x
11006 $as_echo "$at_srcdir/rpmbuild.at:929:
11007 rm -rf \${TOPDIR}
11008 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11009
11010 # Setup sources
11011 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
11012
11013 rundebug rpmbuild --quiet \\
11014   --undefine \"_unique_debug_names\" \\
11015   --undefine \"_unique_debug_srcs\" \\
11016   --undefine \"_debugsource_packages\" \\
11017   --undefine \"_debuginfo_subpackages\" \\
11018   -ba \"\${abs_srcdir}\"/data/SPECS/test-subpackages.spec
11019
11020 # Check that there is just one debuginfo package.
11021 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11022
11023 # Which contains hello.debug
11024 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \\
11025   | cpio -diu --quiet
11026 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11027 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11028
11029 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \\
11030   | cpio -diu --quiet
11031 if test -f ./usr/lib/debug/bin/\$debug_name; then
11032   echo \"hello debug exists\"
11033 else
11034   echo \"No hello: \$debug_name\"
11035 fi
11036 "
11037 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:929"
11038 ( $at_check_trace;
11039 rm -rf ${TOPDIR}
11040 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11041
11042 # Setup sources
11043 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
11044
11045 rundebug rpmbuild --quiet \
11046   --undefine "_unique_debug_names" \
11047   --undefine "_unique_debug_srcs" \
11048   --undefine "_debugsource_packages" \
11049   --undefine "_debuginfo_subpackages" \
11050   -ba "${abs_srcdir}"/data/SPECS/test-subpackages.spec
11051
11052 # Check that there is just one debuginfo package.
11053 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11054
11055 # Which contains hello.debug
11056 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \
11057   | cpio -diu --quiet
11058 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11059 debug_name=$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11060
11061 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \
11062   | cpio -diu --quiet
11063 if test -f ./usr/lib/debug/bin/$debug_name; then
11064   echo "hello debug exists"
11065 else
11066   echo "No hello: $debug_name"
11067 fi
11068
11069 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11070 at_status=$? at_failed=false
11071 $at_check_filter
11072 echo stderr:; cat "$at_stderr"
11073 echo >>"$at_stdout"; $as_echo "1
11074 hello debug exists
11075 " | \
11076   $at_diff - "$at_stdout" || at_failed=:
11077 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:929"
11078 $at_failed && at_fn_log_failure
11079 $at_traceon; }
11080
11081   set +x
11082   $at_times_p && times >"$at_times_file"
11083 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11084 read at_status <"$at_status_file"
11085 #AT_STOP_137
11086 #AT_START_138
11087 at_fn_group_banner 138 'rpmbuild.at:969' \
11088   "rpmbuild debuginfo subpackages multiple" "        " 9
11089 at_xfail=no
11090 (
11091   $as_echo "138. $at_setup_line: testing $at_desc ..."
11092   $at_traceon
11093
11094
11095 { set +x
11096 $as_echo "$at_srcdir/rpmbuild.at:971:
11097 rm -rf \${TOPDIR}
11098 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11099
11100 # Setup sources
11101 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
11102
11103 rundebug rpmbuild --quiet \\
11104   --undefine \"_unique_debug_names\" \\
11105   --undefine \"_unique_debug_srcs\" \\
11106   --undefine \"_debugsource_packages\" \\
11107   --define \"_debuginfo_subpackages 1\" \\
11108   -ba \"\${abs_srcdir}\"/data/SPECS/test-subpackages.spec
11109
11110 # Check that there are 3 debuginfo packages.
11111 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11112
11113 # First contains hello.debug
11114 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \\
11115   | cpio -diu --quiet
11116 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11117 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11118
11119 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \\
11120   | cpio -diu --quiet
11121 if test -f ./usr/lib/debug/bin/\$debug_name; then
11122   echo \"hello debug exists\"
11123 else
11124   echo \"No hello: \$debug_name\"
11125 fi
11126
11127 # Second contains hello2.debug
11128 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \\
11129   | cpio -diu --quiet
11130 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11131 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello2 | grep hello | cut -c13-)
11132
11133 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \\
11134   | cpio -diu --quiet
11135 if test -f ./usr/lib/debug/bin/\$debug_name; then
11136   echo \"hello2 debug exists\"
11137 else
11138   echo \"No hello2: \$debug_name\"
11139 fi
11140
11141 # No debugsource package, so sources are in the main debuginfo package.
11142 # Make sure it is recommended.
11143 echo -n \"Recommends: \"
11144 run rpm -qp --recommends \${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\\(.*\\) = ([-.0-9]+)/\\1\\(ignore-arch\\) = \\2/'
11145
11146 # Third contains hello3.debug
11147 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test3-1.0-1.*.rpm \\
11148   | cpio -diu --quiet
11149 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11150 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello3 | grep hello | cut -c13-)
11151
11152 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm \\
11153   | cpio -diu --quiet
11154 if test -f ./usr/lib/debug/bin/\$debug_name; then
11155   echo \"hello3 debug exists\"
11156 else
11157   echo \"No hello3: \$debug_name\"
11158 fi
11159
11160 # No debugsource package, so sources are in the main debuginfo package.
11161 # Make sure it is recommended.
11162 echo -n \"Recommends: \"
11163 run rpm -qp --recommends \${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\\(.*\\) = ([-.0-9]+)/\\1\\(ignore-arch\\) = \\2/'
11164 "
11165 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:971"
11166 ( $at_check_trace;
11167 rm -rf ${TOPDIR}
11168 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11169
11170 # Setup sources
11171 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
11172
11173 rundebug rpmbuild --quiet \
11174   --undefine "_unique_debug_names" \
11175   --undefine "_unique_debug_srcs" \
11176   --undefine "_debugsource_packages" \
11177   --define "_debuginfo_subpackages 1" \
11178   -ba "${abs_srcdir}"/data/SPECS/test-subpackages.spec
11179
11180 # Check that there are 3 debuginfo packages.
11181 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11182
11183 # First contains hello.debug
11184 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \
11185   | cpio -diu --quiet
11186 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11187 debug_name=$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11188
11189 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \
11190   | cpio -diu --quiet
11191 if test -f ./usr/lib/debug/bin/$debug_name; then
11192   echo "hello debug exists"
11193 else
11194   echo "No hello: $debug_name"
11195 fi
11196
11197 # Second contains hello2.debug
11198 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \
11199   | cpio -diu --quiet
11200 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11201 debug_name=$(readelf -p .gnu_debuglink ./bin/hello2 | grep hello | cut -c13-)
11202
11203 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \
11204   | cpio -diu --quiet
11205 if test -f ./usr/lib/debug/bin/$debug_name; then
11206   echo "hello2 debug exists"
11207 else
11208   echo "No hello2: $debug_name"
11209 fi
11210
11211 # No debugsource package, so sources are in the main debuginfo package.
11212 # Make sure it is recommended.
11213 echo -n "Recommends: "
11214 run rpm -qp --recommends ${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\(.*\) = ([-.0-9]+)/\1\(ignore-arch\) = \2/'
11215
11216 # Third contains hello3.debug
11217 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test3-1.0-1.*.rpm \
11218   | cpio -diu --quiet
11219 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11220 debug_name=$(readelf -p .gnu_debuglink ./bin/hello3 | grep hello | cut -c13-)
11221
11222 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm \
11223   | cpio -diu --quiet
11224 if test -f ./usr/lib/debug/bin/$debug_name; then
11225   echo "hello3 debug exists"
11226 else
11227   echo "No hello3: $debug_name"
11228 fi
11229
11230 # No debugsource package, so sources are in the main debuginfo package.
11231 # Make sure it is recommended.
11232 echo -n "Recommends: "
11233 run rpm -qp --recommends ${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\(.*\) = ([-.0-9]+)/\1\(ignore-arch\) = \2/'
11234
11235 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11236 at_status=$? at_failed=false
11237 $at_check_filter
11238 echo stderr:; cat "$at_stderr"
11239 echo >>"$at_stdout"; $as_echo "3
11240 hello debug exists
11241 hello2 debug exists
11242 Recommends: test-debuginfo(ignore-arch) = 1.0-1
11243 hello3 debug exists
11244 Recommends: test-debuginfo(ignore-arch) = 1.0-1
11245 " | \
11246   $at_diff - "$at_stdout" || at_failed=:
11247 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:971"
11248 $at_failed && at_fn_log_failure
11249 $at_traceon; }
11250
11251   set +x
11252   $at_times_p && times >"$at_times_file"
11253 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11254 read at_status <"$at_status_file"
11255 #AT_STOP_138
11256 #AT_START_139
11257 at_fn_group_banner 139 'rpmbuild.at:1053' \
11258   "rpmbuild debuginfo subpackages multiple unique" " " 9
11259 at_xfail=no
11260 (
11261   $as_echo "139. $at_setup_line: testing $at_desc ..."
11262   $at_traceon
11263
11264
11265 { set +x
11266 $as_echo "$at_srcdir/rpmbuild.at:1055:
11267 rm -rf \${TOPDIR}
11268 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11269
11270 # Setup sources
11271 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
11272
11273 rundebug rpmbuild --quiet \\
11274   --define \"_unique_debug_names 1\" \\
11275   --define \"_unique_debug_srcs 1\" \\
11276   --undefine \"_debugsource_packages\" \\
11277   --define \"_debuginfo_subpackages 1\" \\
11278   -ba \"\${abs_srcdir}\"/data/SPECS/test-subpackages.spec
11279
11280 # Check that there are 3 debuginfo packages.
11281 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11282
11283 # First contains hello.debug
11284 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \\
11285   | cpio -diu --quiet
11286 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11287 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11288
11289 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \\
11290   | cpio -diu --quiet
11291 if test -f ./usr/lib/debug/bin/\$debug_name; then
11292   echo \"hello debug exists\"
11293 else
11294   echo \"No hello: \$debug_name\"
11295 fi
11296
11297 # Second contains hello2.debug
11298 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \\
11299   | cpio -diu --quiet
11300 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11301 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello2 | grep hello | cut -c13-)
11302
11303 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \\
11304   | cpio -diu --quiet
11305 if test -f ./usr/lib/debug/bin/\$debug_name; then
11306   echo \"hello2 debug exists\"
11307 else
11308   echo \"No hello2: \$debug_name\"
11309 fi
11310
11311 # No debugsource package, so sources are in the main debuginfo package.
11312 # Make sure it is recommended.
11313 echo -n \"Recommends: \"
11314 run rpm -qp --recommends \${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\\(.*\\) = ([-.0-9]+)/\\1\\(ignore-arch\\) = \\2/'
11315
11316 # Third contains hello3.debug
11317 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test3-1.0-1.*.rpm \\
11318   | cpio -diu --quiet
11319 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11320 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello3 | grep hello | cut -c13-)
11321
11322 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm \\
11323   | cpio -diu --quiet
11324 if test -f ./usr/lib/debug/bin/\$debug_name; then
11325   echo \"hello3 debug exists\"
11326 else
11327   echo \"No hello3: \$debug_name\"
11328 fi
11329
11330 # No debugsource package, so sources are in the main debuginfo package.
11331 # Make sure it is recommended.
11332 echo -n \"Recommends: \"
11333 run rpm -qp --recommends \${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\\(.*\\) = ([-.0-9]+)/\\1\\(ignore-arch\\) = \\2/'
11334 "
11335 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:1055"
11336 ( $at_check_trace;
11337 rm -rf ${TOPDIR}
11338 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11339
11340 # Setup sources
11341 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
11342
11343 rundebug rpmbuild --quiet \
11344   --define "_unique_debug_names 1" \
11345   --define "_unique_debug_srcs 1" \
11346   --undefine "_debugsource_packages" \
11347   --define "_debuginfo_subpackages 1" \
11348   -ba "${abs_srcdir}"/data/SPECS/test-subpackages.spec
11349
11350 # Check that there are 3 debuginfo packages.
11351 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11352
11353 # First contains hello.debug
11354 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \
11355   | cpio -diu --quiet
11356 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11357 debug_name=$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11358
11359 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \
11360   | cpio -diu --quiet
11361 if test -f ./usr/lib/debug/bin/$debug_name; then
11362   echo "hello debug exists"
11363 else
11364   echo "No hello: $debug_name"
11365 fi
11366
11367 # Second contains hello2.debug
11368 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \
11369   | cpio -diu --quiet
11370 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11371 debug_name=$(readelf -p .gnu_debuglink ./bin/hello2 | grep hello | cut -c13-)
11372
11373 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \
11374   | cpio -diu --quiet
11375 if test -f ./usr/lib/debug/bin/$debug_name; then
11376   echo "hello2 debug exists"
11377 else
11378   echo "No hello2: $debug_name"
11379 fi
11380
11381 # No debugsource package, so sources are in the main debuginfo package.
11382 # Make sure it is recommended.
11383 echo -n "Recommends: "
11384 run rpm -qp --recommends ${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\(.*\) = ([-.0-9]+)/\1\(ignore-arch\) = \2/'
11385
11386 # Third contains hello3.debug
11387 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test3-1.0-1.*.rpm \
11388   | cpio -diu --quiet
11389 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11390 debug_name=$(readelf -p .gnu_debuglink ./bin/hello3 | grep hello | cut -c13-)
11391
11392 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm \
11393   | cpio -diu --quiet
11394 if test -f ./usr/lib/debug/bin/$debug_name; then
11395   echo "hello3 debug exists"
11396 else
11397   echo "No hello3: $debug_name"
11398 fi
11399
11400 # No debugsource package, so sources are in the main debuginfo package.
11401 # Make sure it is recommended.
11402 echo -n "Recommends: "
11403 run rpm -qp --recommends ${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\(.*\) = ([-.0-9]+)/\1\(ignore-arch\) = \2/'
11404
11405 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11406 at_status=$? at_failed=false
11407 $at_check_filter
11408 echo stderr:; cat "$at_stderr"
11409 echo >>"$at_stdout"; $as_echo "3
11410 hello debug exists
11411 hello2 debug exists
11412 Recommends: test-debuginfo(ignore-arch) = 1.0-1
11413 hello3 debug exists
11414 Recommends: test-debuginfo(ignore-arch) = 1.0-1
11415 " | \
11416   $at_diff - "$at_stdout" || at_failed=:
11417 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:1055"
11418 $at_failed && at_fn_log_failure
11419 $at_traceon; }
11420
11421   set +x
11422   $at_times_p && times >"$at_times_file"
11423 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11424 read at_status <"$at_status_file"
11425 #AT_STOP_139
11426 #AT_START_140
11427 at_fn_group_banner 140 'rpmbuild.at:1137' \
11428   "rpmbuild debuginfo subpackages multiple unique debugsource" "" 9
11429 at_xfail=no
11430 (
11431   $as_echo "140. $at_setup_line: testing $at_desc ..."
11432   $at_traceon
11433
11434
11435 { set +x
11436 $as_echo "$at_srcdir/rpmbuild.at:1139:
11437 rm -rf \${TOPDIR}
11438 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11439
11440 # Setup sources
11441 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
11442
11443 rundebug rpmbuild --quiet \\
11444   --define \"_unique_debug_names 1\" \\
11445   --define \"_unique_debug_srcs 1\" \\
11446   --define \"_debugsource_packages 1\" \\
11447   --define \"_debuginfo_subpackages 1\" \\
11448   -ba \"\${abs_srcdir}\"/data/SPECS/test-subpackages.spec
11449
11450 # Check that there are 3 debuginfo packages.
11451 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11452
11453 # First contains hello.debug
11454 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \\
11455   | cpio -diu --quiet
11456 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11457 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11458
11459 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \\
11460   | cpio -diu --quiet
11461 if test -f ./usr/lib/debug/bin/\$debug_name; then
11462   echo \"hello debug exists\"
11463 else
11464   echo \"No hello: \$debug_name\"
11465 fi
11466
11467 # Sources are in debugsource package. Make sure it is recommended.
11468 echo -n \"Recommends: \"
11469 run rpm -qp --recommends \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\\(.*\\) = ([-.0-9]+)/\\1\\(ignore-arch\\) = \\2/'
11470
11471 # Second contains hello2.debug
11472 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \\
11473   | cpio -diu --quiet
11474 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11475 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello2 | grep hello | cut -c13-)
11476
11477 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \\
11478   | cpio -diu --quiet
11479 if test -f ./usr/lib/debug/bin/\$debug_name; then
11480   echo \"hello2 debug exists\"
11481 else
11482   echo \"No hello2: \$debug_name\"
11483 fi
11484
11485 # Sources are in debugsource package. Make sure it is recommended.
11486 echo -n \"Recommends: \"
11487 run rpm -qp --recommends \${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\\(.*\\) = ([-.0-9]+)/\\1\\(ignore-arch\\) = \\2/'
11488
11489 # Third contains hello3.debug
11490 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test3-1.0-1.*.rpm \\
11491   | cpio -diu --quiet
11492 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11493 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello3 | grep hello | cut -c13-)
11494
11495 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm \\
11496   | cpio -diu --quiet
11497 if test -f ./usr/lib/debug/bin/\$debug_name; then
11498   echo \"hello3 debug exists\"
11499 else
11500   echo \"No hello3: \$debug_name\"
11501 fi
11502
11503 # Sources are in debugsource package. Make sure it is recommended.
11504 echo -n \"Recommends: \"
11505 run rpm -qp --recommends \${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\\(.*\\) = ([-.0-9]+)/\\1\\(ignore-arch\\) = \\2/'
11506 "
11507 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:1139"
11508 ( $at_check_trace;
11509 rm -rf ${TOPDIR}
11510 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11511
11512 # Setup sources
11513 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
11514
11515 rundebug rpmbuild --quiet \
11516   --define "_unique_debug_names 1" \
11517   --define "_unique_debug_srcs 1" \
11518   --define "_debugsource_packages 1" \
11519   --define "_debuginfo_subpackages 1" \
11520   -ba "${abs_srcdir}"/data/SPECS/test-subpackages.spec
11521
11522 # Check that there are 3 debuginfo packages.
11523 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11524
11525 # First contains hello.debug
11526 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \
11527   | cpio -diu --quiet
11528 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11529 debug_name=$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11530
11531 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \
11532   | cpio -diu --quiet
11533 if test -f ./usr/lib/debug/bin/$debug_name; then
11534   echo "hello debug exists"
11535 else
11536   echo "No hello: $debug_name"
11537 fi
11538
11539 # Sources are in debugsource package. Make sure it is recommended.
11540 echo -n "Recommends: "
11541 run rpm -qp --recommends ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\(.*\) = ([-.0-9]+)/\1\(ignore-arch\) = \2/'
11542
11543 # Second contains hello2.debug
11544 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \
11545   | cpio -diu --quiet
11546 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11547 debug_name=$(readelf -p .gnu_debuglink ./bin/hello2 | grep hello | cut -c13-)
11548
11549 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \
11550   | cpio -diu --quiet
11551 if test -f ./usr/lib/debug/bin/$debug_name; then
11552   echo "hello2 debug exists"
11553 else
11554   echo "No hello2: $debug_name"
11555 fi
11556
11557 # Sources are in debugsource package. Make sure it is recommended.
11558 echo -n "Recommends: "
11559 run rpm -qp --recommends ${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\(.*\) = ([-.0-9]+)/\1\(ignore-arch\) = \2/'
11560
11561 # Third contains hello3.debug
11562 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test3-1.0-1.*.rpm \
11563   | cpio -diu --quiet
11564 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11565 debug_name=$(readelf -p .gnu_debuglink ./bin/hello3 | grep hello | cut -c13-)
11566
11567 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm \
11568   | cpio -diu --quiet
11569 if test -f ./usr/lib/debug/bin/$debug_name; then
11570   echo "hello3 debug exists"
11571 else
11572   echo "No hello3: $debug_name"
11573 fi
11574
11575 # Sources are in debugsource package. Make sure it is recommended.
11576 echo -n "Recommends: "
11577 run rpm -qp --recommends ${abs_builddir}/testing/build/RPMS/*/test-test3-debuginfo-1.0-1.*.rpm | sed -E 's/([-.a-z0-9]+)\(.*\) = ([-.0-9]+)/\1\(ignore-arch\) = \2/'
11578
11579 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11580 at_status=$? at_failed=false
11581 $at_check_filter
11582 echo stderr:; cat "$at_stderr"
11583 echo >>"$at_stdout"; $as_echo "3
11584 hello debug exists
11585 Recommends: test-debugsource(ignore-arch) = 1.0-1
11586 hello2 debug exists
11587 Recommends: test-debugsource(ignore-arch) = 1.0-1
11588 hello3 debug exists
11589 Recommends: test-debugsource(ignore-arch) = 1.0-1
11590 " | \
11591   $at_diff - "$at_stdout" || at_failed=:
11592 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:1139"
11593 $at_failed && at_fn_log_failure
11594 $at_traceon; }
11595
11596   set +x
11597   $at_times_p && times >"$at_times_file"
11598 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11599 read at_status <"$at_status_file"
11600 #AT_STOP_140
11601 #AT_START_141
11602 at_fn_group_banner 141 'rpmbuild.at:1224' \
11603   "rpmbuild debuginfo subpackages multiple excluded" "" 9
11604 at_xfail=no
11605 (
11606   $as_echo "141. $at_setup_line: testing $at_desc ..."
11607   $at_traceon
11608
11609
11610 { set +x
11611 $as_echo "$at_srcdir/rpmbuild.at:1226:
11612 rm -rf \${TOPDIR}
11613 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11614
11615 # Setup sources
11616 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
11617
11618 rundebug rpmbuild --quiet \\
11619   --define \"_unique_debug_names 1\" \\
11620   --define \"_unique_debug_srcs 1\" \\
11621   --define \"_debugsource_packages 1\" \\
11622   --define \"_debuginfo_subpackages 1\" \\
11623   -ba \"\${abs_srcdir}\"/data/SPECS/test-subpackages-exclude.spec
11624
11625 # Check that there are 2 debuginfo packages.
11626 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11627
11628 # First contains hello.debug
11629 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \\
11630   | cpio -diu --quiet
11631 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11632 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11633
11634 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \\
11635   | cpio -diu --quiet
11636 if test -f ./usr/lib/debug/bin/\$debug_name; then
11637   echo \"hello debug exists\"
11638 else
11639   echo \"No hello: \$debug_name\"
11640 fi
11641
11642 # Second contains hello2.debug but NOT hello3.debug
11643 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \\
11644   | cpio -diu --quiet
11645 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11646 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello2 | grep hello | cut -c13-)
11647
11648 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \\
11649   | cpio -diu --quiet
11650 if test -f ./usr/lib/debug/bin/\$debug_name; then
11651   echo \"hello2 debug exists\"
11652 else
11653   echo \"No hello2: \$debug_name\"
11654 fi
11655
11656 if test -f ./usr/lib/debug/bin/hello3*; then
11657   echo \"hello3 debug exists\"
11658 else
11659   echo \"No hello3 debug\"
11660 fi
11661 "
11662 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:1226"
11663 ( $at_check_trace;
11664 rm -rf ${TOPDIR}
11665 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11666
11667 # Setup sources
11668 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
11669
11670 rundebug rpmbuild --quiet \
11671   --define "_unique_debug_names 1" \
11672   --define "_unique_debug_srcs 1" \
11673   --define "_debugsource_packages 1" \
11674   --define "_debuginfo_subpackages 1" \
11675   -ba "${abs_srcdir}"/data/SPECS/test-subpackages-exclude.spec
11676
11677 # Check that there are 2 debuginfo packages.
11678 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11679
11680 # First contains hello.debug
11681 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \
11682   | cpio -diu --quiet
11683 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11684 debug_name=$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11685
11686 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \
11687   | cpio -diu --quiet
11688 if test -f ./usr/lib/debug/bin/$debug_name; then
11689   echo "hello debug exists"
11690 else
11691   echo "No hello: $debug_name"
11692 fi
11693
11694 # Second contains hello2.debug but NOT hello3.debug
11695 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \
11696   | cpio -diu --quiet
11697 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11698 debug_name=$(readelf -p .gnu_debuglink ./bin/hello2 | grep hello | cut -c13-)
11699
11700 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \
11701   | cpio -diu --quiet
11702 if test -f ./usr/lib/debug/bin/$debug_name; then
11703   echo "hello2 debug exists"
11704 else
11705   echo "No hello2: $debug_name"
11706 fi
11707
11708 if test -f ./usr/lib/debug/bin/hello3*; then
11709   echo "hello3 debug exists"
11710 else
11711   echo "No hello3 debug"
11712 fi
11713
11714 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11715 at_status=$? at_failed=false
11716 $at_check_filter
11717 echo stderr:; cat "$at_stderr"
11718 echo >>"$at_stdout"; $as_echo "2
11719 hello debug exists
11720 hello2 debug exists
11721 No hello3 debug
11722 " | \
11723   $at_diff - "$at_stdout" || at_failed=:
11724 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:1226"
11725 $at_failed && at_fn_log_failure
11726 $at_traceon; }
11727
11728   set +x
11729   $at_times_p && times >"$at_times_file"
11730 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11731 read at_status <"$at_status_file"
11732 #AT_STOP_141
11733 #AT_START_142
11734 at_fn_group_banner 142 'rpmbuild.at:1288' \
11735   "rpmbuild debuginfo subpackages multiple excluded" "" 9
11736 at_xfail=no
11737 (
11738   $as_echo "142. $at_setup_line: testing $at_desc ..."
11739   $at_traceon
11740
11741
11742 { set +x
11743 $as_echo "$at_srcdir/rpmbuild.at:1290:
11744 rm -rf \${TOPDIR}
11745 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11746
11747 # Setup sources
11748 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
11749
11750 rundebug rpmbuild --quiet \\
11751   --define \"_unique_debug_names 1\" \\
11752   --define \"_unique_debug_srcs 1\" \\
11753   --define \"_debugsource_packages 1\" \\
11754   --define \"_debuginfo_subpackages 1\" \\
11755   -ba \"\${abs_srcdir}\"/data/SPECS/test-subpackages-pathpostfixes.spec
11756
11757 # Check that there are 2 debuginfo packages.
11758 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11759
11760 # First contains hello.debug
11761 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \\
11762   | cpio -diu --quiet
11763 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11764 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11765
11766 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \\
11767   | cpio -diu --quiet
11768 if test -f ./usr/lib/debug/bin/\$debug_name; then
11769   echo \"hello debug exists\"
11770 else
11771   echo \"No hello: \$debug_name\"
11772 fi
11773
11774 # remove it, we are going to check the other debuginfo package.
11775 rm ./bin/hello
11776 rm ./usr/lib/debug/bin/\$debug_name
11777 orig_debugname=\$debugname
11778
11779 # Second contains hello.foobar.debug but NOT hello.debug
11780 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \\
11781   | cpio -diu --quiet
11782 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11783 debug_name=\$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11784
11785 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \\
11786   | cpio -diu --quiet
11787 if test -f ./usr/lib/debug/bin/\$debug_name; then
11788   echo \"hello.foobar debug exists\"
11789 else
11790   echo \"No hello2: \$debug_name\"
11791 fi
11792
11793 if test -f ./usr/lib/debug/bin/\$orig_debugname; then
11794   echo \"\$orig_debugname exists\"
11795 else
11796   echo \"No hello.debug\"
11797 fi
11798 "
11799 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:1290"
11800 ( $at_check_trace;
11801 rm -rf ${TOPDIR}
11802 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11803
11804 # Setup sources
11805 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
11806
11807 rundebug rpmbuild --quiet \
11808   --define "_unique_debug_names 1" \
11809   --define "_unique_debug_srcs 1" \
11810   --define "_debugsource_packages 1" \
11811   --define "_debuginfo_subpackages 1" \
11812   -ba "${abs_srcdir}"/data/SPECS/test-subpackages-pathpostfixes.spec
11813
11814 # Check that there are 2 debuginfo packages.
11815 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
11816
11817 # First contains hello.debug
11818 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-1.0-1.*.rpm \
11819   | cpio -diu --quiet
11820 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11821 debug_name=$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11822
11823 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1.*.rpm \
11824   | cpio -diu --quiet
11825 if test -f ./usr/lib/debug/bin/$debug_name; then
11826   echo "hello debug exists"
11827 else
11828   echo "No hello: $debug_name"
11829 fi
11830
11831 # remove it, we are going to check the other debuginfo package.
11832 rm ./bin/hello
11833 rm ./usr/lib/debug/bin/$debug_name
11834 orig_debugname=$debugname
11835
11836 # Second contains hello.foobar.debug but NOT hello.debug
11837 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-1.0-1.*.rpm \
11838   | cpio -diu --quiet
11839 # Extract the debug name from the exe (.gnu_debuglink section, first string)
11840 debug_name=$(readelf -p .gnu_debuglink ./bin/hello | grep hello | cut -c13-)
11841
11842 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/test-test2-debuginfo-1.0-1.*.rpm \
11843   | cpio -diu --quiet
11844 if test -f ./usr/lib/debug/bin/$debug_name; then
11845   echo "hello.foobar debug exists"
11846 else
11847   echo "No hello2: $debug_name"
11848 fi
11849
11850 if test -f ./usr/lib/debug/bin/$orig_debugname; then
11851   echo "$orig_debugname exists"
11852 else
11853   echo "No hello.debug"
11854 fi
11855
11856 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11857 at_status=$? at_failed=false
11858 $at_check_filter
11859 echo stderr:; cat "$at_stderr"
11860 echo >>"$at_stdout"; $as_echo "2
11861 hello debug exists
11862 hello.foobar debug exists
11863 No hello.debug
11864 " | \
11865   $at_diff - "$at_stdout" || at_failed=:
11866 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuild.at:1290"
11867 $at_failed && at_fn_log_failure
11868 $at_traceon; }
11869
11870   set +x
11871   $at_times_p && times >"$at_times_file"
11872 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11873 read at_status <"$at_status_file"
11874 #AT_STOP_142
11875 #AT_START_143
11876 at_fn_group_banner 143 'rpmbuildid.at:23' \
11877   "rpmbuild buildid none" "                          " 10
11878 at_xfail=no
11879 (
11880   $as_echo "143. $at_setup_line: testing $at_desc ..."
11881   $at_traceon
11882
11883
11884 { set +x
11885 $as_echo "$at_srcdir/rpmbuildid.at:25:
11886 rm -rf \${TOPDIR}
11887 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11888
11889 # Setup sources
11890 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
11891
11892 # Build, contains one ELF which should have a buildid.
11893 rundebug rpmbuild \\
11894   --define=\"_build_id_links none\" \\
11895   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
11896
11897 # There should be zero build-id files in both the main and debuginfo package
11898 echo -n \"hello build-id files: \"
11899 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-1.0-1.*.rpm \\
11900   | grep /.build-id/ | wc --lines
11901
11902 echo -n \"hello debuginfo build-id files: \"
11903 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
11904   | grep /.build-id/ | wc --lines
11905
11906 "
11907 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuildid.at:25"
11908 ( $at_check_trace;
11909 rm -rf ${TOPDIR}
11910 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11911
11912 # Setup sources
11913 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
11914
11915 # Build, contains one ELF which should have a buildid.
11916 rundebug rpmbuild \
11917   --define="_build_id_links none" \
11918   --quiet -ba "${abs_srcdir}"/data/SPECS/hello.spec
11919
11920 # There should be zero build-id files in both the main and debuginfo package
11921 echo -n "hello build-id files: "
11922 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-1.0-1.*.rpm \
11923   | grep /.build-id/ | wc --lines
11924
11925 echo -n "hello debuginfo build-id files: "
11926 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
11927   | grep /.build-id/ | wc --lines
11928
11929
11930 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11931 at_status=$? at_failed=false
11932 $at_check_filter
11933 echo stderr:; cat "$at_stderr"
11934 echo >>"$at_stdout"; $as_echo "hello build-id files: 0
11935 hello debuginfo build-id files: 0
11936 " | \
11937   $at_diff - "$at_stdout" || at_failed=:
11938 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:25"
11939 $at_failed && at_fn_log_failure
11940 $at_traceon; }
11941
11942   set +x
11943   $at_times_p && times >"$at_times_file"
11944 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
11945 read at_status <"$at_status_file"
11946 #AT_STOP_143
11947 #AT_START_144
11948 at_fn_group_banner 144 'rpmbuildid.at:57' \
11949   "rpmbuild buildid alldebug" "                      " 10
11950 at_xfail=no
11951 (
11952   $as_echo "144. $at_setup_line: testing $at_desc ..."
11953   $at_traceon
11954
11955
11956 { set +x
11957 $as_echo "$at_srcdir/rpmbuildid.at:59:
11958 rm -rf \${TOPDIR}
11959 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11960
11961 # Setup sources
11962 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
11963
11964 # Build, contains one ELF which should have a buildid.
11965 rundebug rpmbuild \\
11966   --define=\"_build_id_links alldebug\" \\
11967   --undefine \"_unique_debug_names\" \\
11968   --undefine \"_unique_debug_srcs\" \\
11969   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
11970
11971 # There should be zero build-id files in the main package
11972 # Main and debug should be in the debuginfo package,
11973 # plus the .build-id/xx subdir, 3 in total.
11974 echo -n \"hello build-id files: \"
11975 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-1.0-1.*.rpm \\
11976   | grep /.build-id/ | wc --lines
11977
11978 echo -n \"hello debuginfo build-id files: \"
11979 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
11980   | grep /.build-id/ | wc --lines
11981
11982 # Extract the both packages to check the build-id files link to the
11983 # main and .debug files.
11984 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
11985   | cpio -diu
11986 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
11987   | cpio -diu
11988
11989 # Check there is a build-id symlink for the main file.
11990 main_file=./usr/local/bin/hello
11991 test -f \"\${main_file}\" || echo \"No main file \${main_file}\"
11992
11993 # Extract the build-id from the main file
11994 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
11995
11996 id_main_file=\"./usr/lib/debug/.build-id/\${id_main:0:2}/\${id_main:2}\"
11997 test -L \"\$id_main_file\" || echo \"No build-id file \$id_main_file\"
11998
11999 canon_main_file=\$(readlink -f \${main_file})
12000
12001 test -f \"\$canon_main_file\" \\
12002   || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12003
12004 canon_main_id_file=\$(readlink -f \${id_main_file})
12005
12006 test -f \"\$canon_main_id_file\" \\
12007   || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12008
12009 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12010   || echo \"main and build-id file not linked\"
12011
12012 # And check the same for the debug file.
12013 debug_file=./usr/lib/debug/usr/local/bin/hello.debug
12014 test -f \${debug_file} || echo \"No debug file \${debug_file}\"
12015
12016 # Extract the build-id from the .debug file
12017 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12018
12019 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
12020
12021 id_debug_file=\"./usr/lib/debug/.build-id/\${id_debug:0:2}/\${id_debug:2}.debug\"
12022 test -L \"\$id_debug_file\" || echo \"No build-id file \$id_debug_file\"
12023
12024 canon_debug_file=\$(readlink -f \${debug_file})
12025
12026 test -f \"\$canon_debug_file\" \\
12027   || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12028
12029 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12030
12031 test -f \"\$canon_debug_id_file\" \\
12032   || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12033
12034 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12035   || echo \"debug and build-id not linked\"
12036 "
12037 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:59"
12038 ( $at_check_trace;
12039 rm -rf ${TOPDIR}
12040 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12041
12042 # Setup sources
12043 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
12044
12045 # Build, contains one ELF which should have a buildid.
12046 rundebug rpmbuild \
12047   --define="_build_id_links alldebug" \
12048   --undefine "_unique_debug_names" \
12049   --undefine "_unique_debug_srcs" \
12050   --quiet -ba "${abs_srcdir}"/data/SPECS/hello.spec
12051
12052 # There should be zero build-id files in the main package
12053 # Main and debug should be in the debuginfo package,
12054 # plus the .build-id/xx subdir, 3 in total.
12055 echo -n "hello build-id files: "
12056 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-1.0-1.*.rpm \
12057   | grep /.build-id/ | wc --lines
12058
12059 echo -n "hello debuginfo build-id files: "
12060 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12061   | grep /.build-id/ | wc --lines
12062
12063 # Extract the both packages to check the build-id files link to the
12064 # main and .debug files.
12065 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
12066   | cpio -diu
12067 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12068   | cpio -diu
12069
12070 # Check there is a build-id symlink for the main file.
12071 main_file=./usr/local/bin/hello
12072 test -f "${main_file}" || echo "No main file ${main_file}"
12073
12074 # Extract the build-id from the main file
12075 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12076
12077 id_main_file="./usr/lib/debug/.build-id/${id_main:0:2}/${id_main:2}"
12078 test -L "$id_main_file" || echo "No build-id file $id_main_file"
12079
12080 canon_main_file=$(readlink -f ${main_file})
12081
12082 test -f "$canon_main_file" \
12083   || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12084
12085 canon_main_id_file=$(readlink -f ${id_main_file})
12086
12087 test -f "$canon_main_id_file" \
12088   || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12089
12090 test "$canon_main_file" = "$canon_main_id_file" \
12091   || echo "main and build-id file not linked"
12092
12093 # And check the same for the debug file.
12094 debug_file=./usr/lib/debug/usr/local/bin/hello.debug
12095 test -f ${debug_file} || echo "No debug file ${debug_file}"
12096
12097 # Extract the build-id from the .debug file
12098 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12099
12100 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
12101
12102 id_debug_file="./usr/lib/debug/.build-id/${id_debug:0:2}/${id_debug:2}.debug"
12103 test -L "$id_debug_file" || echo "No build-id file $id_debug_file"
12104
12105 canon_debug_file=$(readlink -f ${debug_file})
12106
12107 test -f "$canon_debug_file" \
12108   || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12109
12110 canon_debug_id_file=$(readlink -f ${id_debug_file})
12111
12112 test -f "$canon_debug_id_file" \
12113   || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12114
12115 test "$canon_debug_file" = "$canon_debug_id_file" \
12116   || echo "debug and build-id not linked"
12117
12118 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12119 at_status=$? at_failed=false
12120 $at_check_filter
12121 echo stderr:; cat "$at_stderr"
12122 echo >>"$at_stdout"; $as_echo "hello build-id files: 0
12123 hello debuginfo build-id files: 3
12124 " | \
12125   $at_diff - "$at_stdout" || at_failed=:
12126 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:59"
12127 $at_failed && at_fn_log_failure
12128 $at_traceon; }
12129
12130   set +x
12131   $at_times_p && times >"$at_times_file"
12132 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12133 read at_status <"$at_status_file"
12134 #AT_STOP_144
12135 #AT_START_145
12136 at_fn_group_banner 145 'rpmbuildid.at:149' \
12137   "rpmbuild buildid alldebug unique debug names" "   " 10
12138 at_xfail=no
12139 (
12140   $as_echo "145. $at_setup_line: testing $at_desc ..."
12141   $at_traceon
12142
12143
12144 { set +x
12145 $as_echo "$at_srcdir/rpmbuildid.at:151:
12146 rm -rf \${TOPDIR}
12147 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12148
12149 # Setup sources
12150 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
12151
12152 # Build, contains one ELF which should have a buildid.
12153 rundebug rpmbuild \\
12154   --define=\"_build_id_links alldebug\" \\
12155   --define=\"_unique_debug_names 1\" \\
12156   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
12157
12158 # There should be zero build-id files in the main package
12159 # Main and debug should be in the debuginfo package,
12160 # plus the .build-id/xx subdir, 3 in total.
12161 echo -n \"hello build-id files: \"
12162 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-1.0-1.*.rpm \\
12163   | grep /.build-id/ | wc --lines
12164
12165 echo -n \"hello debuginfo build-id files: \"
12166 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12167   | grep /.build-id/ | wc --lines
12168
12169 # Extract the both packages to check the build-id files link to the
12170 # main and .debug files.
12171 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
12172   | cpio -diu
12173 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12174   | cpio -diu
12175
12176 # Check there is a build-id symlink for the main file.
12177 main_file=./usr/local/bin/hello
12178 test -f \"\${main_file}\" || echo \"No main file \${main_file}\"
12179
12180 # Extract the build-id from the main file
12181 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12182
12183 id_main_file=\"./usr/lib/debug/.build-id/\${id_main:0:2}/\${id_main:2}\"
12184 test -L \"\$id_main_file\" || echo \"No build-id file \$id_main_file\"
12185
12186 canon_main_file=\$(readlink -f \${main_file})
12187
12188 test -f \"\$canon_main_file\" \\
12189   || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12190
12191 canon_main_id_file=\$(readlink -f \${id_main_file})
12192
12193 test -f \"\$canon_main_id_file\" \\
12194   || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12195
12196 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12197   || echo \"main and build-id file not linked\"
12198
12199 # And check the same for the debug file.
12200 debug_file=./usr/lib/debug/usr/local/bin/hello-*.debug
12201 test -f \${debug_file} || echo \"No debug file \${debug_file}\"
12202
12203 # Extract the build-id from the .debug file
12204 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12205
12206 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
12207
12208 id_debug_file=\"./usr/lib/debug/.build-id/\${id_debug:0:2}/\${id_debug:2}.debug\"
12209 test -L \"\$id_debug_file\" || echo \"No build-id file \$id_debug_file\"
12210
12211 canon_debug_file=\$(readlink -f \${debug_file})
12212
12213 test -f \"\$canon_debug_file\" \\
12214   || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12215
12216 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12217
12218 test -f \"\$canon_debug_id_file\" \\
12219   || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12220
12221 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12222   || echo \"debug and build-id not linked\"
12223 "
12224 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:151"
12225 ( $at_check_trace;
12226 rm -rf ${TOPDIR}
12227 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12228
12229 # Setup sources
12230 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
12231
12232 # Build, contains one ELF which should have a buildid.
12233 rundebug rpmbuild \
12234   --define="_build_id_links alldebug" \
12235   --define="_unique_debug_names 1" \
12236   --quiet -ba "${abs_srcdir}"/data/SPECS/hello.spec
12237
12238 # There should be zero build-id files in the main package
12239 # Main and debug should be in the debuginfo package,
12240 # plus the .build-id/xx subdir, 3 in total.
12241 echo -n "hello build-id files: "
12242 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-1.0-1.*.rpm \
12243   | grep /.build-id/ | wc --lines
12244
12245 echo -n "hello debuginfo build-id files: "
12246 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12247   | grep /.build-id/ | wc --lines
12248
12249 # Extract the both packages to check the build-id files link to the
12250 # main and .debug files.
12251 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
12252   | cpio -diu
12253 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12254   | cpio -diu
12255
12256 # Check there is a build-id symlink for the main file.
12257 main_file=./usr/local/bin/hello
12258 test -f "${main_file}" || echo "No main file ${main_file}"
12259
12260 # Extract the build-id from the main file
12261 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12262
12263 id_main_file="./usr/lib/debug/.build-id/${id_main:0:2}/${id_main:2}"
12264 test -L "$id_main_file" || echo "No build-id file $id_main_file"
12265
12266 canon_main_file=$(readlink -f ${main_file})
12267
12268 test -f "$canon_main_file" \
12269   || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12270
12271 canon_main_id_file=$(readlink -f ${id_main_file})
12272
12273 test -f "$canon_main_id_file" \
12274   || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12275
12276 test "$canon_main_file" = "$canon_main_id_file" \
12277   || echo "main and build-id file not linked"
12278
12279 # And check the same for the debug file.
12280 debug_file=./usr/lib/debug/usr/local/bin/hello-*.debug
12281 test -f ${debug_file} || echo "No debug file ${debug_file}"
12282
12283 # Extract the build-id from the .debug file
12284 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12285
12286 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
12287
12288 id_debug_file="./usr/lib/debug/.build-id/${id_debug:0:2}/${id_debug:2}.debug"
12289 test -L "$id_debug_file" || echo "No build-id file $id_debug_file"
12290
12291 canon_debug_file=$(readlink -f ${debug_file})
12292
12293 test -f "$canon_debug_file" \
12294   || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12295
12296 canon_debug_id_file=$(readlink -f ${id_debug_file})
12297
12298 test -f "$canon_debug_id_file" \
12299   || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12300
12301 test "$canon_debug_file" = "$canon_debug_id_file" \
12302   || echo "debug and build-id not linked"
12303
12304 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12305 at_status=$? at_failed=false
12306 $at_check_filter
12307 echo stderr:; cat "$at_stderr"
12308 echo >>"$at_stdout"; $as_echo "hello build-id files: 0
12309 hello debuginfo build-id files: 3
12310 " | \
12311   $at_diff - "$at_stdout" || at_failed=:
12312 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:151"
12313 $at_failed && at_fn_log_failure
12314 $at_traceon; }
12315
12316   set +x
12317   $at_times_p && times >"$at_times_file"
12318 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12319 read at_status <"$at_status_file"
12320 #AT_STOP_145
12321 #AT_START_146
12322 at_fn_group_banner 146 'rpmbuildid.at:240' \
12323   "rpmbuild buildid separate" "                      " 10
12324 at_xfail=no
12325 (
12326   $as_echo "146. $at_setup_line: testing $at_desc ..."
12327   $at_traceon
12328
12329
12330 { set +x
12331 $as_echo "$at_srcdir/rpmbuildid.at:242:
12332 rm -rf \${TOPDIR}
12333 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12334
12335 # Setup sources
12336 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
12337
12338 # Build, contains one ELF which should have a buildid.
12339 rundebug rpmbuild \\
12340   --define=\"_build_id_links separate\" \\
12341   --undefine \"_unique_debug_names\" \\
12342   --undefine \"_unique_debug_srcs\" \\
12343   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
12344
12345 # There should be one build-id files in the main and debuginfo package
12346 # plus the .build-id/xx subdir, 2 in total.
12347 echo -n \"hello build-id files: \"
12348 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-1.0-1.*.rpm \\
12349   | grep /.build-id/ | wc --lines
12350
12351 echo -n \"hello debuginfo build-id files: \"
12352 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12353   | grep /.build-id/ | wc --lines
12354
12355 # Extract the both packages to check the build-id files link to the
12356 # main and .debug files.
12357 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
12358   | cpio -diu
12359 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12360   | cpio -diu
12361
12362 # Check there is a build-id symlink for the main file.
12363 main_file=./usr/local/bin/hello
12364 test -f \"\${main_file}\" || echo \"No main file \${main_file}\"
12365
12366 # Extract the build-id from the main file
12367 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12368
12369 id_main_file=\"./usr/lib/.build-id/\${id_main:0:2}/\${id_main:2}\"
12370 test -L \"\$id_main_file\" || echo \"No build-id file \$id_main_file\"
12371
12372 canon_main_file=\$(readlink -f \${main_file})
12373
12374 test -f \"\$canon_main_file\" \\
12375   || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12376
12377 canon_main_id_file=\$(readlink -f \${id_main_file})
12378
12379 test -f \"\$canon_main_id_file\" \\
12380   || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12381
12382 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12383   || echo \"main and build-id file not linked\"
12384
12385 # And check the same for the debug file.
12386 debug_file=./usr/lib/debug/usr/local/bin/hello.debug
12387 test -f \${debug_file} || echo \"No debug file \${debug_file}\"
12388
12389 # Extract the build-id from the .debug file
12390 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12391
12392 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
12393
12394 id_debug_file=\"./usr/lib/debug/.build-id/\${id_debug:0:2}/\${id_debug:2}.debug\"
12395 test -L \"\$id_debug_file\" || echo \"No build-id file \$id_debug_file\"
12396
12397 canon_debug_file=\$(readlink -f \${debug_file})
12398
12399 test -f \"\$canon_debug_file\" \\
12400   || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12401
12402 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12403
12404 test -f \"\$canon_debug_id_file\" \\
12405   || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12406
12407 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12408   || echo \"debug and build-id not linked\"
12409 "
12410 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:242"
12411 ( $at_check_trace;
12412 rm -rf ${TOPDIR}
12413 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12414
12415 # Setup sources
12416 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
12417
12418 # Build, contains one ELF which should have a buildid.
12419 rundebug rpmbuild \
12420   --define="_build_id_links separate" \
12421   --undefine "_unique_debug_names" \
12422   --undefine "_unique_debug_srcs" \
12423   --quiet -ba "${abs_srcdir}"/data/SPECS/hello.spec
12424
12425 # There should be one build-id files in the main and debuginfo package
12426 # plus the .build-id/xx subdir, 2 in total.
12427 echo -n "hello build-id files: "
12428 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-1.0-1.*.rpm \
12429   | grep /.build-id/ | wc --lines
12430
12431 echo -n "hello debuginfo build-id files: "
12432 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12433   | grep /.build-id/ | wc --lines
12434
12435 # Extract the both packages to check the build-id files link to the
12436 # main and .debug files.
12437 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
12438   | cpio -diu
12439 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12440   | cpio -diu
12441
12442 # Check there is a build-id symlink for the main file.
12443 main_file=./usr/local/bin/hello
12444 test -f "${main_file}" || echo "No main file ${main_file}"
12445
12446 # Extract the build-id from the main file
12447 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12448
12449 id_main_file="./usr/lib/.build-id/${id_main:0:2}/${id_main:2}"
12450 test -L "$id_main_file" || echo "No build-id file $id_main_file"
12451
12452 canon_main_file=$(readlink -f ${main_file})
12453
12454 test -f "$canon_main_file" \
12455   || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12456
12457 canon_main_id_file=$(readlink -f ${id_main_file})
12458
12459 test -f "$canon_main_id_file" \
12460   || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12461
12462 test "$canon_main_file" = "$canon_main_id_file" \
12463   || echo "main and build-id file not linked"
12464
12465 # And check the same for the debug file.
12466 debug_file=./usr/lib/debug/usr/local/bin/hello.debug
12467 test -f ${debug_file} || echo "No debug file ${debug_file}"
12468
12469 # Extract the build-id from the .debug file
12470 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12471
12472 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
12473
12474 id_debug_file="./usr/lib/debug/.build-id/${id_debug:0:2}/${id_debug:2}.debug"
12475 test -L "$id_debug_file" || echo "No build-id file $id_debug_file"
12476
12477 canon_debug_file=$(readlink -f ${debug_file})
12478
12479 test -f "$canon_debug_file" \
12480   || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12481
12482 canon_debug_id_file=$(readlink -f ${id_debug_file})
12483
12484 test -f "$canon_debug_id_file" \
12485   || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12486
12487 test "$canon_debug_file" = "$canon_debug_id_file" \
12488   || echo "debug and build-id not linked"
12489
12490 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12491 at_status=$? at_failed=false
12492 $at_check_filter
12493 echo stderr:; cat "$at_stderr"
12494 echo >>"$at_stdout"; $as_echo "hello build-id files: 2
12495 hello debuginfo build-id files: 2
12496 " | \
12497   $at_diff - "$at_stdout" || at_failed=:
12498 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:242"
12499 $at_failed && at_fn_log_failure
12500 $at_traceon; }
12501
12502   set +x
12503   $at_times_p && times >"$at_times_file"
12504 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12505 read at_status <"$at_status_file"
12506 #AT_STOP_146
12507 #AT_START_147
12508 at_fn_group_banner 147 'rpmbuildid.at:331' \
12509   "rpmbuild buildid separate unique debug names" "   " 10
12510 at_xfail=no
12511 (
12512   $as_echo "147. $at_setup_line: testing $at_desc ..."
12513   $at_traceon
12514
12515
12516 { set +x
12517 $as_echo "$at_srcdir/rpmbuildid.at:333:
12518 rm -rf \${TOPDIR}
12519 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12520
12521 # Setup sources
12522 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
12523
12524 # Build, contains one ELF which should have a buildid.
12525 rundebug rpmbuild \\
12526   --define=\"_build_id_links separate\" \\
12527   --define=\"_unique_debug_names 1\" \\
12528   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
12529
12530 # There should be one build-id files in the main and debuginfo package
12531 # plus the .build-id/xx subdir, 2 in total.
12532 echo -n \"hello build-id files: \"
12533 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-1.0-1.*.rpm \\
12534   | grep /.build-id/ | wc --lines
12535
12536 echo -n \"hello debuginfo build-id files: \"
12537 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12538   | grep /.build-id/ | wc --lines
12539
12540 # Extract the both packages to check the build-id files link to the
12541 # main and .debug files.
12542 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
12543   | cpio -diu
12544 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12545   | cpio -diu
12546
12547 # Check there is a build-id symlink for the main file.
12548 main_file=./usr/local/bin/hello
12549 test -f \"\${main_file}\" || echo \"No main file \${main_file}\"
12550
12551 # Extract the build-id from the main file
12552 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12553
12554 id_main_file=\"./usr/lib/.build-id/\${id_main:0:2}/\${id_main:2}\"
12555 test -L \"\$id_main_file\" || echo \"No build-id file \$id_main_file\"
12556
12557 canon_main_file=\$(readlink -f \${main_file})
12558
12559 test -f \"\$canon_main_file\" \\
12560   || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12561
12562 canon_main_id_file=\$(readlink -f \${id_main_file})
12563
12564 test -f \"\$canon_main_id_file\" \\
12565   || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12566
12567 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12568   || echo \"main and build-id file not linked\"
12569
12570 # And check the same for the debug file.
12571 debug_file=./usr/lib/debug/usr/local/bin/hello-*.debug
12572 test -f \${debug_file} || echo \"No debug file \${debug_file}\"
12573
12574 # Extract the build-id from the .debug file
12575 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12576
12577 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
12578
12579 id_debug_file=\"./usr/lib/debug/.build-id/\${id_debug:0:2}/\${id_debug:2}.debug\"
12580 test -L \"\$id_debug_file\" || echo \"No build-id file \$id_debug_file\"
12581
12582 canon_debug_file=\$(readlink -f \${debug_file})
12583
12584 test -f \"\$canon_debug_file\" \\
12585   || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12586
12587 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12588
12589 test -f \"\$canon_debug_id_file\" \\
12590   || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12591
12592 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12593   || echo \"debug and build-id not linked\"
12594 "
12595 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:333"
12596 ( $at_check_trace;
12597 rm -rf ${TOPDIR}
12598 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12599
12600 # Setup sources
12601 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
12602
12603 # Build, contains one ELF which should have a buildid.
12604 rundebug rpmbuild \
12605   --define="_build_id_links separate" \
12606   --define="_unique_debug_names 1" \
12607   --quiet -ba "${abs_srcdir}"/data/SPECS/hello.spec
12608
12609 # There should be one build-id files in the main and debuginfo package
12610 # plus the .build-id/xx subdir, 2 in total.
12611 echo -n "hello build-id files: "
12612 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-1.0-1.*.rpm \
12613   | grep /.build-id/ | wc --lines
12614
12615 echo -n "hello debuginfo build-id files: "
12616 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12617   | grep /.build-id/ | wc --lines
12618
12619 # Extract the both packages to check the build-id files link to the
12620 # main and .debug files.
12621 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
12622   | cpio -diu
12623 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12624   | cpio -diu
12625
12626 # Check there is a build-id symlink for the main file.
12627 main_file=./usr/local/bin/hello
12628 test -f "${main_file}" || echo "No main file ${main_file}"
12629
12630 # Extract the build-id from the main file
12631 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12632
12633 id_main_file="./usr/lib/.build-id/${id_main:0:2}/${id_main:2}"
12634 test -L "$id_main_file" || echo "No build-id file $id_main_file"
12635
12636 canon_main_file=$(readlink -f ${main_file})
12637
12638 test -f "$canon_main_file" \
12639   || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12640
12641 canon_main_id_file=$(readlink -f ${id_main_file})
12642
12643 test -f "$canon_main_id_file" \
12644   || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12645
12646 test "$canon_main_file" = "$canon_main_id_file" \
12647   || echo "main and build-id file not linked"
12648
12649 # And check the same for the debug file.
12650 debug_file=./usr/lib/debug/usr/local/bin/hello-*.debug
12651 test -f ${debug_file} || echo "No debug file ${debug_file}"
12652
12653 # Extract the build-id from the .debug file
12654 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12655
12656 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
12657
12658 id_debug_file="./usr/lib/debug/.build-id/${id_debug:0:2}/${id_debug:2}.debug"
12659 test -L "$id_debug_file" || echo "No build-id file $id_debug_file"
12660
12661 canon_debug_file=$(readlink -f ${debug_file})
12662
12663 test -f "$canon_debug_file" \
12664   || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12665
12666 canon_debug_id_file=$(readlink -f ${id_debug_file})
12667
12668 test -f "$canon_debug_id_file" \
12669   || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12670
12671 test "$canon_debug_file" = "$canon_debug_id_file" \
12672   || echo "debug and build-id not linked"
12673
12674 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12675 at_status=$? at_failed=false
12676 $at_check_filter
12677 echo stderr:; cat "$at_stderr"
12678 echo >>"$at_stdout"; $as_echo "hello build-id files: 2
12679 hello debuginfo build-id files: 2
12680 " | \
12681   $at_diff - "$at_stdout" || at_failed=:
12682 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:333"
12683 $at_failed && at_fn_log_failure
12684 $at_traceon; }
12685
12686   set +x
12687   $at_times_p && times >"$at_times_file"
12688 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12689 read at_status <"$at_status_file"
12690 #AT_STOP_147
12691 #AT_START_148
12692 at_fn_group_banner 148 'rpmbuildid.at:421' \
12693   "rpmbuild buildid compat" "                        " 10
12694 at_xfail=no
12695 (
12696   $as_echo "148. $at_setup_line: testing $at_desc ..."
12697   $at_traceon
12698
12699
12700 { set +x
12701 $as_echo "$at_srcdir/rpmbuildid.at:423:
12702 rm -rf \${TOPDIR}
12703 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12704
12705 # Setup sources
12706 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
12707
12708 # Build, contains one ELF which should have a buildid.
12709 rundebug rpmbuild \\
12710   --define=\"_build_id_links compat\" \\
12711   --undefine \"_unique_debug_names\" \\
12712   --undefine \"_unique_debug_srcs\" \\
12713   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
12714
12715 # There should be one build-id files in the main and debuginfo package.
12716 # the debuginfo package has one extra main build-id compat symlink
12717 # plus the .build-id/xx subdir, 2 in total in main, 3 in total in debug
12718 echo -n \"hello build-id files: \"
12719 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-1.0-1.*.rpm \\
12720   | grep /.build-id/ | wc --lines
12721
12722 echo -n \"hello debuginfo build-id files: \"
12723 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12724   | grep /.build-id/ | wc --lines
12725
12726 # Extract the both packages to check the build-id files link to the
12727 # main and .debug files.
12728 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
12729   | cpio -diu
12730 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12731   | cpio -diu
12732
12733 # Check there is a build-id symlink for the main file.
12734 main_file=./usr/local/bin/hello
12735 test -f \"\${main_file}\" || echo \"No main file \${main_file}\"
12736
12737 # Extract the build-id from the main file
12738 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12739
12740 id_main_file=\"./usr/lib/.build-id/\${id_main:0:2}/\${id_main:2}\"
12741 test -L \"\$id_main_file\" || echo \"No build-id file \$id_main_file\"
12742
12743 canon_main_file=\$(readlink -f \${main_file})
12744
12745 test -f \"\$canon_main_file\" \\
12746   || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12747
12748 canon_main_id_file=\$(readlink -f \${id_main_file})
12749
12750 test -f \"\$canon_main_id_file\" \\
12751   || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12752
12753 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12754   || echo \"main and build-id file not linked\"
12755
12756 # And check the same for the debug file.
12757 debug_file=./usr/lib/debug/usr/local/bin/hello.debug
12758 test -f \${debug_file} || echo \"No debug file \${debug_file}\"
12759
12760 # Extract the build-id from the .debug file
12761 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12762
12763 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
12764
12765 id_debug_file=\"./usr/lib/debug/.build-id/\${id_debug:0:2}/\${id_debug:2}.debug\"
12766 test -L \"\$id_debug_file\" || echo \"No build-id file \$id_debug_file\"
12767
12768 canon_debug_file=\$(readlink -f \${debug_file})
12769
12770 test -f \"\$canon_debug_file\" \\
12771   || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12772
12773 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12774
12775 test -f \"\$canon_debug_id_file\" \\
12776   || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12777
12778 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12779   || echo \"debug and build-id not linked\"
12780
12781 # The compat link should also point to the same (indirectly).
12782 id_compat_file=\"./usr/lib/debug/.build-id/\${id_main:0:2}/\${id_main:2}\"
12783 test -L \"\$id_compat_file\" || echo \"No build-id compat file \$id_compat_file\"
12784
12785 canon_compat_file=\$(readlink -f \${id_compat_file})
12786
12787 test -f \"\$canon_compat_file\" \\
12788   || echo \"Cannot resolve compat file \${id_compat_file} -> \${canon_compat_file}\"
12789
12790 test \"\$canon_compat_file\" = \"\$canon_main_file\" \\
12791   || echo \"compat and build-id not linked\"
12792 "
12793 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:423"
12794 ( $at_check_trace;
12795 rm -rf ${TOPDIR}
12796 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12797
12798 # Setup sources
12799 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
12800
12801 # Build, contains one ELF which should have a buildid.
12802 rundebug rpmbuild \
12803   --define="_build_id_links compat" \
12804   --undefine "_unique_debug_names" \
12805   --undefine "_unique_debug_srcs" \
12806   --quiet -ba "${abs_srcdir}"/data/SPECS/hello.spec
12807
12808 # There should be one build-id files in the main and debuginfo package.
12809 # the debuginfo package has one extra main build-id compat symlink
12810 # plus the .build-id/xx subdir, 2 in total in main, 3 in total in debug
12811 echo -n "hello build-id files: "
12812 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-1.0-1.*.rpm \
12813   | grep /.build-id/ | wc --lines
12814
12815 echo -n "hello debuginfo build-id files: "
12816 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12817   | grep /.build-id/ | wc --lines
12818
12819 # Extract the both packages to check the build-id files link to the
12820 # main and .debug files.
12821 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
12822   | cpio -diu
12823 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
12824   | cpio -diu
12825
12826 # Check there is a build-id symlink for the main file.
12827 main_file=./usr/local/bin/hello
12828 test -f "${main_file}" || echo "No main file ${main_file}"
12829
12830 # Extract the build-id from the main file
12831 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12832
12833 id_main_file="./usr/lib/.build-id/${id_main:0:2}/${id_main:2}"
12834 test -L "$id_main_file" || echo "No build-id file $id_main_file"
12835
12836 canon_main_file=$(readlink -f ${main_file})
12837
12838 test -f "$canon_main_file" \
12839   || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12840
12841 canon_main_id_file=$(readlink -f ${id_main_file})
12842
12843 test -f "$canon_main_id_file" \
12844   || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12845
12846 test "$canon_main_file" = "$canon_main_id_file" \
12847   || echo "main and build-id file not linked"
12848
12849 # And check the same for the debug file.
12850 debug_file=./usr/lib/debug/usr/local/bin/hello.debug
12851 test -f ${debug_file} || echo "No debug file ${debug_file}"
12852
12853 # Extract the build-id from the .debug file
12854 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12855
12856 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
12857
12858 id_debug_file="./usr/lib/debug/.build-id/${id_debug:0:2}/${id_debug:2}.debug"
12859 test -L "$id_debug_file" || echo "No build-id file $id_debug_file"
12860
12861 canon_debug_file=$(readlink -f ${debug_file})
12862
12863 test -f "$canon_debug_file" \
12864   || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12865
12866 canon_debug_id_file=$(readlink -f ${id_debug_file})
12867
12868 test -f "$canon_debug_id_file" \
12869   || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12870
12871 test "$canon_debug_file" = "$canon_debug_id_file" \
12872   || echo "debug and build-id not linked"
12873
12874 # The compat link should also point to the same (indirectly).
12875 id_compat_file="./usr/lib/debug/.build-id/${id_main:0:2}/${id_main:2}"
12876 test -L "$id_compat_file" || echo "No build-id compat file $id_compat_file"
12877
12878 canon_compat_file=$(readlink -f ${id_compat_file})
12879
12880 test -f "$canon_compat_file" \
12881   || echo "Cannot resolve compat file ${id_compat_file} -> ${canon_compat_file}"
12882
12883 test "$canon_compat_file" = "$canon_main_file" \
12884   || echo "compat and build-id not linked"
12885
12886 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12887 at_status=$? at_failed=false
12888 $at_check_filter
12889 echo stderr:; cat "$at_stderr"
12890 echo >>"$at_stdout"; $as_echo "hello build-id files: 2
12891 hello debuginfo build-id files: 3
12892 " | \
12893   $at_diff - "$at_stdout" || at_failed=:
12894 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:423"
12895 $at_failed && at_fn_log_failure
12896 $at_traceon; }
12897
12898   set +x
12899   $at_times_p && times >"$at_times_file"
12900 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
12901 read at_status <"$at_status_file"
12902 #AT_STOP_148
12903 #AT_START_149
12904 at_fn_group_banner 149 'rpmbuildid.at:525' \
12905   "rpmbuild buildid compat unique debug names" "     " 10
12906 at_xfail=no
12907 (
12908   $as_echo "149. $at_setup_line: testing $at_desc ..."
12909   $at_traceon
12910
12911
12912 { set +x
12913 $as_echo "$at_srcdir/rpmbuildid.at:527:
12914 rm -rf \${TOPDIR}
12915 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12916
12917 # Setup sources
12918 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
12919
12920 # Build, contains one ELF which should have a buildid.
12921 rundebug rpmbuild \\
12922   --define=\"_build_id_links compat\" \\
12923   --define=\"_unique_debug_names 1\" \\
12924   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
12925
12926 # There should be one build-id files in the main and debuginfo package.
12927 # the debuginfo package has one extra main build-id compat symlink
12928 # plus the .build-id/xx subdir, 2 in total in main, 3 in total in debug
12929 echo -n \"hello build-id files: \"
12930 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-1.0-1.*.rpm \\
12931   | grep /.build-id/ | wc --lines
12932
12933 echo -n \"hello debuginfo build-id files: \"
12934 run rpm -ql -p \"\${TOPDIR}\"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12935   | grep /.build-id/ | wc --lines
12936
12937 # Extract the both packages to check the build-id files link to the
12938 # main and .debug files.
12939 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
12940   | cpio -diu
12941 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
12942   | cpio -diu
12943
12944 # Check there is a build-id symlink for the main file.
12945 main_file=./usr/local/bin/hello
12946 test -f \"\${main_file}\" || echo \"No main file \${main_file}\"
12947
12948 # Extract the build-id from the main file
12949 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12950
12951 id_main_file=\"./usr/lib/.build-id/\${id_main:0:2}/\${id_main:2}\"
12952 test -L \"\$id_main_file\" || echo \"No build-id file \$id_main_file\"
12953
12954 canon_main_file=\$(readlink -f \${main_file})
12955
12956 test -f \"\$canon_main_file\" \\
12957   || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12958
12959 canon_main_id_file=\$(readlink -f \${id_main_file})
12960
12961 test -f \"\$canon_main_id_file\" \\
12962   || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12963
12964 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12965   || echo \"main and build-id file not linked\"
12966
12967 # And check the same for the debug file.
12968 debug_file=./usr/lib/debug/usr/local/bin/hello-*debug
12969 test -f \${debug_file} || echo \"No debug file \${debug_file}\"
12970
12971 # Extract the build-id from the .debug file
12972 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12973
12974 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
12975
12976 id_debug_file=\"./usr/lib/debug/.build-id/\${id_debug:0:2}/\${id_debug:2}.debug\"
12977 test -L \"\$id_debug_file\" || echo \"No build-id file \$id_debug_file\"
12978
12979 canon_debug_file=\$(readlink -f \${debug_file})
12980
12981 test -f \"\$canon_debug_file\" \\
12982   || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12983
12984 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12985
12986 test -f \"\$canon_debug_id_file\" \\
12987   || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12988
12989 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12990   || echo \"debug and build-id not linked\"
12991
12992 # The compat link should also point to the same (indirectly).
12993 id_compat_file=\"./usr/lib/debug/.build-id/\${id_main:0:2}/\${id_main:2}\"
12994 test -L \"\$id_compat_file\" || echo \"No build-id compat file \$id_compat_file\"
12995
12996 canon_compat_file=\$(readlink -f \${id_compat_file})
12997
12998 test -f \"\$canon_compat_file\" \\
12999   || echo \"Cannot resolve compat file \${id_compat_file} -> \${canon_compat_file}\"
13000
13001 test \"\$canon_compat_file\" = \"\$canon_main_file\" \\
13002   || echo \"compat and build-id not linked\"
13003 "
13004 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:527"
13005 ( $at_check_trace;
13006 rm -rf ${TOPDIR}
13007 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13008
13009 # Setup sources
13010 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
13011
13012 # Build, contains one ELF which should have a buildid.
13013 rundebug rpmbuild \
13014   --define="_build_id_links compat" \
13015   --define="_unique_debug_names 1" \
13016   --quiet -ba "${abs_srcdir}"/data/SPECS/hello.spec
13017
13018 # There should be one build-id files in the main and debuginfo package.
13019 # the debuginfo package has one extra main build-id compat symlink
13020 # plus the .build-id/xx subdir, 2 in total in main, 3 in total in debug
13021 echo -n "hello build-id files: "
13022 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-1.0-1.*.rpm \
13023   | grep /.build-id/ | wc --lines
13024
13025 echo -n "hello debuginfo build-id files: "
13026 run rpm -ql -p "${TOPDIR}"/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
13027   | grep /.build-id/ | wc --lines
13028
13029 # Extract the both packages to check the build-id files link to the
13030 # main and .debug files.
13031 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
13032   | cpio -diu
13033 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
13034   | cpio -diu
13035
13036 # Check there is a build-id symlink for the main file.
13037 main_file=./usr/local/bin/hello
13038 test -f "${main_file}" || echo "No main file ${main_file}"
13039
13040 # Extract the build-id from the main file
13041 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13042
13043 id_main_file="./usr/lib/.build-id/${id_main:0:2}/${id_main:2}"
13044 test -L "$id_main_file" || echo "No build-id file $id_main_file"
13045
13046 canon_main_file=$(readlink -f ${main_file})
13047
13048 test -f "$canon_main_file" \
13049   || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
13050
13051 canon_main_id_file=$(readlink -f ${id_main_file})
13052
13053 test -f "$canon_main_id_file" \
13054   || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
13055
13056 test "$canon_main_file" = "$canon_main_id_file" \
13057   || echo "main and build-id file not linked"
13058
13059 # And check the same for the debug file.
13060 debug_file=./usr/lib/debug/usr/local/bin/hello-*debug
13061 test -f ${debug_file} || echo "No debug file ${debug_file}"
13062
13063 # Extract the build-id from the .debug file
13064 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13065
13066 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
13067
13068 id_debug_file="./usr/lib/debug/.build-id/${id_debug:0:2}/${id_debug:2}.debug"
13069 test -L "$id_debug_file" || echo "No build-id file $id_debug_file"
13070
13071 canon_debug_file=$(readlink -f ${debug_file})
13072
13073 test -f "$canon_debug_file" \
13074   || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
13075
13076 canon_debug_id_file=$(readlink -f ${id_debug_file})
13077
13078 test -f "$canon_debug_id_file" \
13079   || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
13080
13081 test "$canon_debug_file" = "$canon_debug_id_file" \
13082   || echo "debug and build-id not linked"
13083
13084 # The compat link should also point to the same (indirectly).
13085 id_compat_file="./usr/lib/debug/.build-id/${id_main:0:2}/${id_main:2}"
13086 test -L "$id_compat_file" || echo "No build-id compat file $id_compat_file"
13087
13088 canon_compat_file=$(readlink -f ${id_compat_file})
13089
13090 test -f "$canon_compat_file" \
13091   || echo "Cannot resolve compat file ${id_compat_file} -> ${canon_compat_file}"
13092
13093 test "$canon_compat_file" = "$canon_main_file" \
13094   || echo "compat and build-id not linked"
13095
13096 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13097 at_status=$? at_failed=false
13098 $at_check_filter
13099 echo stderr:; cat "$at_stderr"
13100 echo >>"$at_stdout"; $as_echo "hello build-id files: 2
13101 hello debuginfo build-id files: 3
13102 " | \
13103   $at_diff - "$at_stdout" || at_failed=:
13104 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:527"
13105 $at_failed && at_fn_log_failure
13106 $at_traceon; }
13107
13108   set +x
13109   $at_times_p && times >"$at_times_file"
13110 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13111 read at_status <"$at_status_file"
13112 #AT_STOP_149
13113 #AT_START_150
13114 at_fn_group_banner 150 'rpmbuildid.at:629' \
13115   "rpmbuild buildid duplicate alldebug" "            " 10
13116 at_xfail=no
13117 (
13118   $as_echo "150. $at_setup_line: testing $at_desc ..."
13119   $at_traceon
13120
13121
13122 { set +x
13123 $as_echo "$at_srcdir/rpmbuildid.at:631:
13124 rm -rf \${TOPDIR}
13125 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13126
13127 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
13128
13129 # Should create two warnings
13130 rundebug rpmbuild --quiet \\
13131   --define=\"_build_id_links alldebug\" \\
13132   -ba \"\${abs_srcdir}\"/data/SPECS/hello2cp.spec 2>&1 | grep \"^warning: \" \\
13133   | cut -f1-3 -d' '
13134
13135 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13136   | cpio -diu --quiet
13137
13138 hello_file=./usr/local/bin/hello
13139
13140 # Extract the build-id from the main file
13141 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13142
13143 # alldebug not here...
13144 id_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}\"
13145 test -L \"\$id_file\" && echo \"main id in main package\"
13146 id_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1\"
13147 test -L \"\$id_dup_file\" && echo \"main dup id in main package\"
13148
13149 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13150   | cpio -diu --quiet
13151
13152 # alldebug, so they are all here
13153 test -L \"\$id_file\" && echo \"main id in debug package\"
13154 test -L \"\$id_dup_file\" && echo \"main dup id in debug package\"
13155
13156 debug_id_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.debug\"
13157 test -L \"\$debug_id_file\" && echo \"debug id in debug package\"
13158 debug_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1.debug\"
13159 test -L \"\$debug_dup_file\" && echo \"debug dup id in debug package\"
13160
13161 # We don't know which points to which, but we do know they point
13162 # to different files.
13163 canon_id_file=\$(readlink -f \${id_file})
13164 canon_dup_file=\$(readlink -f \${id_dup_file})
13165 test \"\$canon_id_file\" != \"\$canon_dup_file\" \\
13166   || echo \"id and dup same\"
13167
13168 canon_debug_id_file=\$(readlink -f \${debug_id_file})
13169 canon_debug_dup_file=\$(readlink -f \${debug_dup_file})
13170 test \"\$canon_debug_id_file\" != \"\$canon_debug_dup_file\" \\
13171   || echo \"debug id and dup same\"
13172 "
13173 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:631"
13174 ( $at_check_trace;
13175 rm -rf ${TOPDIR}
13176 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13177
13178 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
13179
13180 # Should create two warnings
13181 rundebug rpmbuild --quiet \
13182   --define="_build_id_links alldebug" \
13183   -ba "${abs_srcdir}"/data/SPECS/hello2cp.spec 2>&1 | grep "^warning: " \
13184   | cut -f1-3 -d' '
13185
13186 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13187   | cpio -diu --quiet
13188
13189 hello_file=./usr/local/bin/hello
13190
13191 # Extract the build-id from the main file
13192 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13193
13194 # alldebug not here...
13195 id_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}"
13196 test -L "$id_file" && echo "main id in main package"
13197 id_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1"
13198 test -L "$id_dup_file" && echo "main dup id in main package"
13199
13200 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13201   | cpio -diu --quiet
13202
13203 # alldebug, so they are all here
13204 test -L "$id_file" && echo "main id in debug package"
13205 test -L "$id_dup_file" && echo "main dup id in debug package"
13206
13207 debug_id_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.debug"
13208 test -L "$debug_id_file" && echo "debug id in debug package"
13209 debug_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1.debug"
13210 test -L "$debug_dup_file" && echo "debug dup id in debug package"
13211
13212 # We don't know which points to which, but we do know they point
13213 # to different files.
13214 canon_id_file=$(readlink -f ${id_file})
13215 canon_dup_file=$(readlink -f ${id_dup_file})
13216 test "$canon_id_file" != "$canon_dup_file" \
13217   || echo "id and dup same"
13218
13219 canon_debug_id_file=$(readlink -f ${debug_id_file})
13220 canon_debug_dup_file=$(readlink -f ${debug_dup_file})
13221 test "$canon_debug_id_file" != "$canon_debug_dup_file" \
13222   || echo "debug id and dup same"
13223
13224 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13225 at_status=$? at_failed=false
13226 $at_check_filter
13227 at_fn_diff_devnull "$at_stderr" || at_failed=:
13228 echo >>"$at_stdout"; $as_echo "warning: Duplicate build-ids
13229 warning: Duplicate build-ids
13230 main id in debug package
13231 main dup id in debug package
13232 debug id in debug package
13233 debug dup id in debug package
13234 " | \
13235   $at_diff - "$at_stdout" || at_failed=:
13236 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:631"
13237 $at_failed && at_fn_log_failure
13238 $at_traceon; }
13239
13240   set +x
13241   $at_times_p && times >"$at_times_file"
13242 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13243 read at_status <"$at_status_file"
13244 #AT_STOP_150
13245 #AT_START_151
13246 at_fn_group_banner 151 'rpmbuildid.at:697' \
13247   "rpmbuild buildid hardlink alldebug" "             " 10
13248 at_xfail=no
13249 (
13250   $as_echo "151. $at_setup_line: testing $at_desc ..."
13251   $at_traceon
13252
13253
13254 { set +x
13255 $as_echo "$at_srcdir/rpmbuildid.at:699:
13256 rm -rf \${TOPDIR}
13257 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13258
13259 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
13260
13261 # No warnings for hard links
13262 rundebug rpmbuild --quiet \\
13263   --define=\"_build_id_links alldebug\" \\
13264   -ba \"\${abs_srcdir}\"/data/SPECS/hello2ln.spec 2>&1 | grep \"^warning: \" \\
13265   | cut -f1-3 -d' '
13266
13267 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13268   | cpio -diu --quiet
13269
13270 hello_file=./usr/local/bin/hello
13271
13272 # Extract the build-id from the main file
13273 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13274
13275 # alldebug not here...
13276 id_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}\"
13277 test -L \"\$id_file\" && echo \"main id in main package\"
13278 id_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1\"
13279 test -L \"\$id_dup_file\" && echo \"main dup id in main package\"
13280
13281 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13282   | cpio -diu --quiet
13283
13284 # alldebug, so they are all here
13285 test -L \"\$id_file\" && echo \"main id in debug package\"
13286 test -L \"\$id_dup_file\" && echo \"main dup id in debug package\"
13287
13288 debug_id_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.debug\"
13289 test -L \"\$debug_id_file\" && echo \"debug id in debug package\"
13290 debug_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1.debug\"
13291 test -L \"\$debug_dup_file\" && echo \"debug dup id in debug package\"
13292
13293 # We don't know which points to which, but we do know they point
13294 # to different files.
13295 canon_id_file=\$(readlink -f \${id_file})
13296 canon_dup_file=\$(readlink -f \${id_dup_file})
13297 test \"\$canon_id_file\" != \"\$canon_dup_file\" \\
13298   || echo \"id and dup same\"
13299
13300 canon_debug_id_file=\$(readlink -f \${debug_id_file})
13301 canon_debug_dup_file=\$(readlink -f \${debug_dup_file})
13302 test \"\$canon_debug_id_file\" != \"\$canon_debug_dup_file\" \\
13303   || echo \"debug id and dup same\"
13304 "
13305 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:699"
13306 ( $at_check_trace;
13307 rm -rf ${TOPDIR}
13308 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13309
13310 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
13311
13312 # No warnings for hard links
13313 rundebug rpmbuild --quiet \
13314   --define="_build_id_links alldebug" \
13315   -ba "${abs_srcdir}"/data/SPECS/hello2ln.spec 2>&1 | grep "^warning: " \
13316   | cut -f1-3 -d' '
13317
13318 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13319   | cpio -diu --quiet
13320
13321 hello_file=./usr/local/bin/hello
13322
13323 # Extract the build-id from the main file
13324 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13325
13326 # alldebug not here...
13327 id_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}"
13328 test -L "$id_file" && echo "main id in main package"
13329 id_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1"
13330 test -L "$id_dup_file" && echo "main dup id in main package"
13331
13332 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13333   | cpio -diu --quiet
13334
13335 # alldebug, so they are all here
13336 test -L "$id_file" && echo "main id in debug package"
13337 test -L "$id_dup_file" && echo "main dup id in debug package"
13338
13339 debug_id_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.debug"
13340 test -L "$debug_id_file" && echo "debug id in debug package"
13341 debug_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1.debug"
13342 test -L "$debug_dup_file" && echo "debug dup id in debug package"
13343
13344 # We don't know which points to which, but we do know they point
13345 # to different files.
13346 canon_id_file=$(readlink -f ${id_file})
13347 canon_dup_file=$(readlink -f ${id_dup_file})
13348 test "$canon_id_file" != "$canon_dup_file" \
13349   || echo "id and dup same"
13350
13351 canon_debug_id_file=$(readlink -f ${debug_id_file})
13352 canon_debug_dup_file=$(readlink -f ${debug_dup_file})
13353 test "$canon_debug_id_file" != "$canon_debug_dup_file" \
13354   || echo "debug id and dup same"
13355
13356 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13357 at_status=$? at_failed=false
13358 $at_check_filter
13359 at_fn_diff_devnull "$at_stderr" || at_failed=:
13360 echo >>"$at_stdout"; $as_echo "main id in debug package
13361 main dup id in debug package
13362 debug id in debug package
13363 debug dup id in debug package
13364 " | \
13365   $at_diff - "$at_stdout" || at_failed=:
13366 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:699"
13367 $at_failed && at_fn_log_failure
13368 $at_traceon; }
13369
13370   set +x
13371   $at_times_p && times >"$at_times_file"
13372 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13373 read at_status <"$at_status_file"
13374 #AT_STOP_151
13375 #AT_START_152
13376 at_fn_group_banner 152 'rpmbuildid.at:762' \
13377   "rpmbuild buildid duplicate separate" "            " 10
13378 at_xfail=no
13379 (
13380   $as_echo "152. $at_setup_line: testing $at_desc ..."
13381   $at_traceon
13382
13383
13384 { set +x
13385 $as_echo "$at_srcdir/rpmbuildid.at:764:
13386 rm -rf \${TOPDIR}
13387 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13388
13389 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
13390
13391 # Should create two warnings
13392 rundebug rpmbuild --quiet \\
13393   --define=\"_build_id_links separate\" \\
13394   -ba \"\${abs_srcdir}\"/data/SPECS/hello2cp.spec 2>&1 | grep \"^warning: \" \\
13395   | cut -f1-3 -d' '
13396
13397 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13398   | cpio -diu --quiet
13399
13400 hello_file=./usr/local/bin/hello
13401
13402 # Extract the build-id from the main file
13403 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13404
13405 # separate build-ids split...
13406 id_file=\"./usr/lib/.build-id/\${id:0:2}/\${id:2}\"
13407 test -L \"\$id_file\" && echo \"main id in main package\"
13408 id_dup_file=\"./usr/lib/.build-id/\${id:0:2}/\${id:2}.1\"
13409 test -L \"\$id_dup_file\" && echo \"main dup id in main package\"
13410
13411 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13412   | cpio -diu --quiet
13413
13414 # separate, so debug ids are here
13415 debug_id_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.debug\"
13416 test -L \"\$debug_id_file\" && echo \"debug id in debug package\"
13417 debug_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1.debug\"
13418 test -L \"\$debug_dup_file\" && echo \"debug dup id in debug package\"
13419
13420 # We don't know which points to which, but we do know they point
13421 # to different files.
13422 canon_id_file=\$(readlink -f \${id_file})
13423 canon_dup_file=\$(readlink -f \${id_dup_file})
13424 test \"\$canon_id_file\" != \"\$canon_dup_file\" \\
13425   || echo \"id and dup same\"
13426
13427 canon_debug_id_file=\$(readlink -f \${debug_id_file})
13428 canon_debug_dup_file=\$(readlink -f \${debug_dup_file})
13429 test \"\$canon_debug_id_file\" != \"\$canon_debug_dup_file\" \\
13430   || echo \"debug id and dup same\"
13431 "
13432 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:764"
13433 ( $at_check_trace;
13434 rm -rf ${TOPDIR}
13435 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13436
13437 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
13438
13439 # Should create two warnings
13440 rundebug rpmbuild --quiet \
13441   --define="_build_id_links separate" \
13442   -ba "${abs_srcdir}"/data/SPECS/hello2cp.spec 2>&1 | grep "^warning: " \
13443   | cut -f1-3 -d' '
13444
13445 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13446   | cpio -diu --quiet
13447
13448 hello_file=./usr/local/bin/hello
13449
13450 # Extract the build-id from the main file
13451 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13452
13453 # separate build-ids split...
13454 id_file="./usr/lib/.build-id/${id:0:2}/${id:2}"
13455 test -L "$id_file" && echo "main id in main package"
13456 id_dup_file="./usr/lib/.build-id/${id:0:2}/${id:2}.1"
13457 test -L "$id_dup_file" && echo "main dup id in main package"
13458
13459 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13460   | cpio -diu --quiet
13461
13462 # separate, so debug ids are here
13463 debug_id_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.debug"
13464 test -L "$debug_id_file" && echo "debug id in debug package"
13465 debug_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1.debug"
13466 test -L "$debug_dup_file" && echo "debug dup id in debug package"
13467
13468 # We don't know which points to which, but we do know they point
13469 # to different files.
13470 canon_id_file=$(readlink -f ${id_file})
13471 canon_dup_file=$(readlink -f ${id_dup_file})
13472 test "$canon_id_file" != "$canon_dup_file" \
13473   || echo "id and dup same"
13474
13475 canon_debug_id_file=$(readlink -f ${debug_id_file})
13476 canon_debug_dup_file=$(readlink -f ${debug_dup_file})
13477 test "$canon_debug_id_file" != "$canon_debug_dup_file" \
13478   || echo "debug id and dup same"
13479
13480 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13481 at_status=$? at_failed=false
13482 $at_check_filter
13483 at_fn_diff_devnull "$at_stderr" || at_failed=:
13484 echo >>"$at_stdout"; $as_echo "warning: Duplicate build-ids
13485 warning: Duplicate build-ids
13486 main id in main package
13487 main dup id in main package
13488 debug id in debug package
13489 debug dup id in debug package
13490 " | \
13491   $at_diff - "$at_stdout" || at_failed=:
13492 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:764"
13493 $at_failed && at_fn_log_failure
13494 $at_traceon; }
13495
13496   set +x
13497   $at_times_p && times >"$at_times_file"
13498 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13499 read at_status <"$at_status_file"
13500 #AT_STOP_152
13501 #AT_START_153
13502 at_fn_group_banner 153 'rpmbuildid.at:827' \
13503   "rpmbuild buildid hardlink separate" "             " 10
13504 at_xfail=no
13505 (
13506   $as_echo "153. $at_setup_line: testing $at_desc ..."
13507   $at_traceon
13508
13509
13510 { set +x
13511 $as_echo "$at_srcdir/rpmbuildid.at:829:
13512 rm -rf \${TOPDIR}
13513 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13514
13515 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
13516
13517 # No warnings for hard links
13518 rundebug rpmbuild --quiet \\
13519   --define=\"_build_id_links separate\" \\
13520   -ba \"\${abs_srcdir}\"/data/SPECS/hello2ln.spec 2>&1 | grep \"^warning: \" \\
13521   | cut -f1-3 -d' '
13522
13523 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13524   | cpio -diu --quiet
13525
13526 hello_file=./usr/local/bin/hello
13527
13528 # Extract the build-id from the main file
13529 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13530
13531 # separate build-ids split...
13532 id_file=\"./usr/lib/.build-id/\${id:0:2}/\${id:2}\"
13533 test -L \"\$id_file\" && echo \"main id in main package\"
13534 id_dup_file=\"./usr/lib/.build-id/\${id:0:2}/\${id:2}.1\"
13535 test -L \"\$id_dup_file\" && echo \"main dup id in main package\"
13536
13537 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13538   | cpio -diu --quiet
13539
13540 # separate, so debug ids are here
13541 debug_id_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.debug\"
13542 test -L \"\$debug_id_file\" && echo \"debug id in debug package\"
13543 debug_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1.debug\"
13544 test -L \"\$debug_dup_file\" && echo \"debug dup id in debug package\"
13545
13546 # We don't know which points to which, but we do know they point
13547 # to different files.
13548 canon_id_file=\$(readlink -f \${id_file})
13549 canon_dup_file=\$(readlink -f \${id_dup_file})
13550 test \"\$canon_id_file\" != \"\$canon_dup_file\" \\
13551   || echo \"id and dup same\"
13552
13553 canon_debug_id_file=\$(readlink -f \${debug_id_file})
13554 canon_debug_dup_file=\$(readlink -f \${debug_dup_file})
13555 test \"\$canon_debug_id_file\" != \"\$canon_debug_dup_file\" \\
13556   || echo \"debug id and dup same\"
13557 "
13558 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:829"
13559 ( $at_check_trace;
13560 rm -rf ${TOPDIR}
13561 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13562
13563 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
13564
13565 # No warnings for hard links
13566 rundebug rpmbuild --quiet \
13567   --define="_build_id_links separate" \
13568   -ba "${abs_srcdir}"/data/SPECS/hello2ln.spec 2>&1 | grep "^warning: " \
13569   | cut -f1-3 -d' '
13570
13571 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13572   | cpio -diu --quiet
13573
13574 hello_file=./usr/local/bin/hello
13575
13576 # Extract the build-id from the main file
13577 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13578
13579 # separate build-ids split...
13580 id_file="./usr/lib/.build-id/${id:0:2}/${id:2}"
13581 test -L "$id_file" && echo "main id in main package"
13582 id_dup_file="./usr/lib/.build-id/${id:0:2}/${id:2}.1"
13583 test -L "$id_dup_file" && echo "main dup id in main package"
13584
13585 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13586   | cpio -diu --quiet
13587
13588 # separate, so debug ids are here
13589 debug_id_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.debug"
13590 test -L "$debug_id_file" && echo "debug id in debug package"
13591 debug_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1.debug"
13592 test -L "$debug_dup_file" && echo "debug dup id in debug package"
13593
13594 # We don't know which points to which, but we do know they point
13595 # to different files.
13596 canon_id_file=$(readlink -f ${id_file})
13597 canon_dup_file=$(readlink -f ${id_dup_file})
13598 test "$canon_id_file" != "$canon_dup_file" \
13599   || echo "id and dup same"
13600
13601 canon_debug_id_file=$(readlink -f ${debug_id_file})
13602 canon_debug_dup_file=$(readlink -f ${debug_dup_file})
13603 test "$canon_debug_id_file" != "$canon_debug_dup_file" \
13604   || echo "debug id and dup same"
13605
13606 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13607 at_status=$? at_failed=false
13608 $at_check_filter
13609 at_fn_diff_devnull "$at_stderr" || at_failed=:
13610 echo >>"$at_stdout"; $as_echo "main id in main package
13611 main dup id in main package
13612 debug id in debug package
13613 debug dup id in debug package
13614 " | \
13615   $at_diff - "$at_stdout" || at_failed=:
13616 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:829"
13617 $at_failed && at_fn_log_failure
13618 $at_traceon; }
13619
13620   set +x
13621   $at_times_p && times >"$at_times_file"
13622 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13623 read at_status <"$at_status_file"
13624 #AT_STOP_153
13625 #AT_START_154
13626 at_fn_group_banner 154 'rpmbuildid.at:889' \
13627   "rpmbuild buildid duplicate compat" "              " 10
13628 at_xfail=no
13629 (
13630   $as_echo "154. $at_setup_line: testing $at_desc ..."
13631   $at_traceon
13632
13633
13634 { set +x
13635 $as_echo "$at_srcdir/rpmbuildid.at:891:
13636 rm -rf \${TOPDIR}
13637 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13638
13639 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
13640
13641 # Should create two warnings
13642 rundebug rpmbuild --quiet \\
13643   --define=\"_build_id_links compat\" \\
13644   -ba \"\${abs_srcdir}\"/data/SPECS/hello2cp.spec 2>&1 | grep \"^warning: \" \\
13645   | cut -f1-3 -d' '
13646
13647 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13648   | cpio -diu --quiet
13649
13650 hello_file=./usr/local/bin/hello
13651
13652 # Extract the build-id from the main file
13653 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13654
13655 # compat build-ids split...
13656 id_file=\"./usr/lib/.build-id/\${id:0:2}/\${id:2}\"
13657 test -L \"\$id_file\" && echo \"main id in main package\"
13658 id_dup_file=\"./usr/lib/.build-id/\${id:0:2}/\${id:2}.1\"
13659 test -L \"\$id_dup_file\" && echo \"main dup id in main package\"
13660
13661 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13662   | cpio -diu --quiet
13663
13664 # compat, so main (and debug) ids are (also) here
13665 compat_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}\"
13666 test -L \"\$compat_file\" && echo \"compat id in debug package\"
13667 compat_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1\"
13668 test -L \"\$compat_dup_file\" && echo \"compat dup id in debug package\"
13669
13670 debug_id_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.debug\"
13671 test -L \"\$debug_id_file\" && echo \"debug id in debug package\"
13672 debug_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1.debug\"
13673 test -L \"\$debug_dup_file\" && echo \"debug dup id in debug package\"
13674
13675 # We don't know which points to which, but we do know they point
13676 # to different files.
13677 canon_id_file=\$(readlink -f \${id_file})
13678 canon_dup_file=\$(readlink -f \${id_dup_file})
13679 test \"\$canon_id_file\" != \"\$canon_dup_file\" \\
13680   || echo \"id and dup same\"
13681
13682 canon_debug_id_file=\$(readlink -f \${debug_id_file})
13683 canon_debug_dup_file=\$(readlink -f \${debug_dup_file})
13684 test \"\$canon_debug_id_file\" != \"\$canon_debug_dup_file\" \\
13685   || echo \"debug id and dup same\"
13686
13687 canon_compat_file=\$(readlink -f \${compat_file})
13688 canon_compat_dup_file=\$(readlink -f \${compat_dup_file})
13689 test \"\$canon_compat_file\" != \"\$canon_compat_dup_file\" \\
13690   || echo \"compat id and dup same\"
13691 "
13692 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:891"
13693 ( $at_check_trace;
13694 rm -rf ${TOPDIR}
13695 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13696
13697 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
13698
13699 # Should create two warnings
13700 rundebug rpmbuild --quiet \
13701   --define="_build_id_links compat" \
13702   -ba "${abs_srcdir}"/data/SPECS/hello2cp.spec 2>&1 | grep "^warning: " \
13703   | cut -f1-3 -d' '
13704
13705 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13706   | cpio -diu --quiet
13707
13708 hello_file=./usr/local/bin/hello
13709
13710 # Extract the build-id from the main file
13711 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13712
13713 # compat build-ids split...
13714 id_file="./usr/lib/.build-id/${id:0:2}/${id:2}"
13715 test -L "$id_file" && echo "main id in main package"
13716 id_dup_file="./usr/lib/.build-id/${id:0:2}/${id:2}.1"
13717 test -L "$id_dup_file" && echo "main dup id in main package"
13718
13719 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13720   | cpio -diu --quiet
13721
13722 # compat, so main (and debug) ids are (also) here
13723 compat_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}"
13724 test -L "$compat_file" && echo "compat id in debug package"
13725 compat_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1"
13726 test -L "$compat_dup_file" && echo "compat dup id in debug package"
13727
13728 debug_id_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.debug"
13729 test -L "$debug_id_file" && echo "debug id in debug package"
13730 debug_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1.debug"
13731 test -L "$debug_dup_file" && echo "debug dup id in debug package"
13732
13733 # We don't know which points to which, but we do know they point
13734 # to different files.
13735 canon_id_file=$(readlink -f ${id_file})
13736 canon_dup_file=$(readlink -f ${id_dup_file})
13737 test "$canon_id_file" != "$canon_dup_file" \
13738   || echo "id and dup same"
13739
13740 canon_debug_id_file=$(readlink -f ${debug_id_file})
13741 canon_debug_dup_file=$(readlink -f ${debug_dup_file})
13742 test "$canon_debug_id_file" != "$canon_debug_dup_file" \
13743   || echo "debug id and dup same"
13744
13745 canon_compat_file=$(readlink -f ${compat_file})
13746 canon_compat_dup_file=$(readlink -f ${compat_dup_file})
13747 test "$canon_compat_file" != "$canon_compat_dup_file" \
13748   || echo "compat id and dup same"
13749
13750 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13751 at_status=$? at_failed=false
13752 $at_check_filter
13753 at_fn_diff_devnull "$at_stderr" || at_failed=:
13754 echo >>"$at_stdout"; $as_echo "warning: Duplicate build-ids
13755 warning: Duplicate build-ids
13756 main id in main package
13757 main dup id in main package
13758 compat id in debug package
13759 compat dup id in debug package
13760 debug id in debug package
13761 debug dup id in debug package
13762 " | \
13763   $at_diff - "$at_stdout" || at_failed=:
13764 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:891"
13765 $at_failed && at_fn_log_failure
13766 $at_traceon; }
13767
13768   set +x
13769   $at_times_p && times >"$at_times_file"
13770 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13771 read at_status <"$at_status_file"
13772 #AT_STOP_154
13773 #AT_START_155
13774 at_fn_group_banner 155 'rpmbuildid.at:966' \
13775   "rpmbuild buildid hardlink compat" "               " 10
13776 at_xfail=no
13777 (
13778   $as_echo "155. $at_setup_line: testing $at_desc ..."
13779   $at_traceon
13780
13781
13782 { set +x
13783 $as_echo "$at_srcdir/rpmbuildid.at:968:
13784 rm -rf \${TOPDIR}
13785 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13786
13787 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
13788
13789 # No warnings for hard links
13790 rundebug rpmbuild --quiet \\
13791   --define=\"_build_id_links compat\" \\
13792   -ba \"\${abs_srcdir}\"/data/SPECS/hello2ln.spec 2>&1 | grep \"^warning: \" \\
13793   | cut -f1-3 -d' '
13794
13795 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13796   | cpio -diu --quiet
13797
13798 hello_file=./usr/local/bin/hello
13799
13800 # Extract the build-id from the main file
13801 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13802
13803 # compat build-ids split...
13804 id_file=\"./usr/lib/.build-id/\${id:0:2}/\${id:2}\"
13805 test -L \"\$id_file\" && echo \"main id in main package\"
13806 id_dup_file=\"./usr/lib/.build-id/\${id:0:2}/\${id:2}.1\"
13807 test -L \"\$id_dup_file\" && echo \"main dup id in main package\"
13808
13809 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13810   | cpio -diu --quiet
13811
13812 # compat, so main (and debug) ids are (also) here
13813 compat_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}\"
13814 test -L \"\$compat_file\" && echo \"compat id in debug package\"
13815 compat_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1\"
13816 test -L \"\$compat_dup_file\" && echo \"compat dup id in debug package\"
13817
13818 debug_id_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.debug\"
13819 test -L \"\$debug_id_file\" && echo \"debug id in debug package\"
13820 debug_dup_file=\"./usr/lib/debug/.build-id/\${id:0:2}/\${id:2}.1.debug\"
13821 test -L \"\$debug_dup_file\" && echo \"debug dup id in debug package\"
13822
13823 # We don't know which points to which, but we do know they point
13824 # to different files.
13825 canon_id_file=\$(readlink -f \${id_file})
13826 canon_dup_file=\$(readlink -f \${id_dup_file})
13827 test \"\$canon_id_file\" != \"\$canon_dup_file\" \\
13828   || echo \"id and dup same\"
13829
13830 canon_debug_id_file=\$(readlink -f \${debug_id_file})
13831 canon_debug_dup_file=\$(readlink -f \${debug_dup_file})
13832 test \"\$canon_debug_id_file\" != \"\$canon_debug_dup_file\" \\
13833   || echo \"debug id and dup same\"
13834
13835 canon_compat_file=\$(readlink -f \${compat_file})
13836 canon_compat_dup_file=\$(readlink -f \${compat_dup_file})
13837 test \"\$canon_compat_file\" != \"\$canon_compat_dup_file\" \\
13838   || echo \"compat id and dup same\"
13839 "
13840 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:968"
13841 ( $at_check_trace;
13842 rm -rf ${TOPDIR}
13843 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13844
13845 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
13846
13847 # No warnings for hard links
13848 rundebug rpmbuild --quiet \
13849   --define="_build_id_links compat" \
13850   -ba "${abs_srcdir}"/data/SPECS/hello2ln.spec 2>&1 | grep "^warning: " \
13851   | cut -f1-3 -d' '
13852
13853 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13854   | cpio -diu --quiet
13855
13856 hello_file=./usr/local/bin/hello
13857
13858 # Extract the build-id from the main file
13859 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13860
13861 # compat build-ids split...
13862 id_file="./usr/lib/.build-id/${id:0:2}/${id:2}"
13863 test -L "$id_file" && echo "main id in main package"
13864 id_dup_file="./usr/lib/.build-id/${id:0:2}/${id:2}.1"
13865 test -L "$id_dup_file" && echo "main dup id in main package"
13866
13867 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13868   | cpio -diu --quiet
13869
13870 # compat, so main (and debug) ids are (also) here
13871 compat_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}"
13872 test -L "$compat_file" && echo "compat id in debug package"
13873 compat_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1"
13874 test -L "$compat_dup_file" && echo "compat dup id in debug package"
13875
13876 debug_id_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.debug"
13877 test -L "$debug_id_file" && echo "debug id in debug package"
13878 debug_dup_file="./usr/lib/debug/.build-id/${id:0:2}/${id:2}.1.debug"
13879 test -L "$debug_dup_file" && echo "debug dup id in debug package"
13880
13881 # We don't know which points to which, but we do know they point
13882 # to different files.
13883 canon_id_file=$(readlink -f ${id_file})
13884 canon_dup_file=$(readlink -f ${id_dup_file})
13885 test "$canon_id_file" != "$canon_dup_file" \
13886   || echo "id and dup same"
13887
13888 canon_debug_id_file=$(readlink -f ${debug_id_file})
13889 canon_debug_dup_file=$(readlink -f ${debug_dup_file})
13890 test "$canon_debug_id_file" != "$canon_debug_dup_file" \
13891   || echo "debug id and dup same"
13892
13893 canon_compat_file=$(readlink -f ${compat_file})
13894 canon_compat_dup_file=$(readlink -f ${compat_dup_file})
13895 test "$canon_compat_file" != "$canon_compat_dup_file" \
13896   || echo "compat id and dup same"
13897
13898 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13899 at_status=$? at_failed=false
13900 $at_check_filter
13901 at_fn_diff_devnull "$at_stderr" || at_failed=:
13902 echo >>"$at_stdout"; $as_echo "main id in main package
13903 main dup id in main package
13904 compat id in debug package
13905 compat dup id in debug package
13906 debug id in debug package
13907 debug dup id in debug package
13908 " | \
13909   $at_diff - "$at_stdout" || at_failed=:
13910 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:968"
13911 $at_failed && at_fn_log_failure
13912 $at_traceon; }
13913
13914   set +x
13915   $at_times_p && times >"$at_times_file"
13916 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
13917 read at_status <"$at_status_file"
13918 #AT_STOP_155
13919 #AT_START_156
13920 at_fn_group_banner 156 'rpmbuildid.at:1039' \
13921   "rpmbuild buildid recompute" "                     " 10
13922 at_xfail=no
13923 (
13924   $as_echo "156. $at_setup_line: testing $at_desc ..."
13925   $at_traceon
13926
13927
13928 { set +x
13929 $as_echo "$at_srcdir/rpmbuildid.at:1041:
13930 rm -rf \${TOPDIR}
13931 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13932
13933 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
13934
13935 # Make sure we get debuginfo
13936 export CFLAGS=\"-g\"
13937
13938 # Unique 1
13939 rundebug rpmbuild --quiet \\
13940   --define=\"_unique_build_ids 1\" \\
13941   --undefine=\"_no_recompute_build_ids\" \\
13942   -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
13943
13944 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
13945   | cpio -diu --quiet
13946
13947 hello_file=./usr/local/bin/hello
13948
13949 # Extract the build-id from the main file
13950 test -f \$hello_file || echo \"No \$hello_file\"
13951 id1=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13952
13953 # Make sure we generate a new one
13954 rm \$hello_file
13955
13956 # Unique 2
13957 # Build the \"next\" release, which has no changes except for the release update.
13958 rundebug rpmbuild --quiet \\
13959   --define=\"_unique_build_ids 1\" \\
13960   --undefine=\"_no_recompute_build_ids\" \\
13961   -ba \"\${abs_srcdir}\"/data/SPECS/hello-r2.spec
13962
13963 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \\
13964   | cpio -diu --quiet
13965
13966 # Extract the build-id from the main file
13967 test -f \$hello_file || echo \"No \$hello_file\"
13968 id2=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13969
13970 # Two unique builds should not be equal
13971 if test \"\$id1\" == \"\$id2\"; then
13972   echo \"uniques equal\";
13973 else
13974   echo \"uniques unequal\";
13975 fi
13976
13977 # Make sure we generate a new one
13978 rm \$hello_file
13979
13980 # no-recompute 1
13981 rundebug rpmbuild --quiet \\
13982   --undefine=\"_unique_build_ids\" \\
13983   --undefine=\"_unique_debug_names\" \\
13984   --undefine=\"_unique_debug_srcs\" \\
13985   --define=\"_no_recompute_build_ids 1\" \\
13986   -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
13987
13988 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
13989   | cpio -diu --quiet
13990
13991 hello_file=./usr/local/bin/hello
13992
13993 # Extract the build-id from the main file
13994 test -f \$hello_file || echo \"No \$hello_file\"
13995 id3=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
13996
13997 # An unique and no-recompute build should be unequal
13998 if test \"\$id2\" == \"\$id3\"; then
13999   echo \"no-recompute unique equal\";
14000 else
14001   echo \"no-recompute unique unequal\";
14002 fi
14003
14004 # Make sure we generate a new one
14005 rm \$hello_file
14006
14007 # no-recompute 2
14008 # Build the \"next\" release, which has no changes except for the release update.
14009 rundebug rpmbuild --quiet \\
14010   --undefine=\"_unique_build_ids\" \\
14011   --undefine=\"_unique_debug_names\" \\
14012   --undefine=\"_unique_debug_srcs\" \\
14013   --define=\"_no_recompute_build_ids 1\" \\
14014   -ba \"\${abs_srcdir}\"/data/SPECS/hello-r2.spec
14015
14016 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \\
14017   | cpio -diu --quiet
14018
14019 # Extract the build-id from the main file
14020 test -f \$hello_file || echo \"No \$hello_file\"
14021 id4=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
14022
14023 # Two no-recompute builds should be equal. Even for different \"releases\".
14024 if test \"\$id3\" == \"\$id4\"; then
14025   echo \"no-recomputes equal\";
14026 else
14027   echo \"no-recomputes unequal\";
14028 fi
14029 "
14030 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:1041"
14031 ( $at_check_trace;
14032 rm -rf ${TOPDIR}
14033 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14034
14035 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
14036
14037 # Make sure we get debuginfo
14038 export CFLAGS="-g"
14039
14040 # Unique 1
14041 rundebug rpmbuild --quiet \
14042   --define="_unique_build_ids 1" \
14043   --undefine="_no_recompute_build_ids" \
14044   -ba "${abs_srcdir}"/data/SPECS/hello.spec
14045
14046 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
14047   | cpio -diu --quiet
14048
14049 hello_file=./usr/local/bin/hello
14050
14051 # Extract the build-id from the main file
14052 test -f $hello_file || echo "No $hello_file"
14053 id1=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
14054
14055 # Make sure we generate a new one
14056 rm $hello_file
14057
14058 # Unique 2
14059 # Build the "next" release, which has no changes except for the release update.
14060 rundebug rpmbuild --quiet \
14061   --define="_unique_build_ids 1" \
14062   --undefine="_no_recompute_build_ids" \
14063   -ba "${abs_srcdir}"/data/SPECS/hello-r2.spec
14064
14065 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \
14066   | cpio -diu --quiet
14067
14068 # Extract the build-id from the main file
14069 test -f $hello_file || echo "No $hello_file"
14070 id2=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
14071
14072 # Two unique builds should not be equal
14073 if test "$id1" == "$id2"; then
14074   echo "uniques equal";
14075 else
14076   echo "uniques unequal";
14077 fi
14078
14079 # Make sure we generate a new one
14080 rm $hello_file
14081
14082 # no-recompute 1
14083 rundebug rpmbuild --quiet \
14084   --undefine="_unique_build_ids" \
14085   --undefine="_unique_debug_names" \
14086   --undefine="_unique_debug_srcs" \
14087   --define="_no_recompute_build_ids 1" \
14088   -ba "${abs_srcdir}"/data/SPECS/hello.spec
14089
14090 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
14091   | cpio -diu --quiet
14092
14093 hello_file=./usr/local/bin/hello
14094
14095 # Extract the build-id from the main file
14096 test -f $hello_file || echo "No $hello_file"
14097 id3=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
14098
14099 # An unique and no-recompute build should be unequal
14100 if test "$id2" == "$id3"; then
14101   echo "no-recompute unique equal";
14102 else
14103   echo "no-recompute unique unequal";
14104 fi
14105
14106 # Make sure we generate a new one
14107 rm $hello_file
14108
14109 # no-recompute 2
14110 # Build the "next" release, which has no changes except for the release update.
14111 rundebug rpmbuild --quiet \
14112   --undefine="_unique_build_ids" \
14113   --undefine="_unique_debug_names" \
14114   --undefine="_unique_debug_srcs" \
14115   --define="_no_recompute_build_ids 1" \
14116   -ba "${abs_srcdir}"/data/SPECS/hello-r2.spec
14117
14118 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \
14119   | cpio -diu --quiet
14120
14121 # Extract the build-id from the main file
14122 test -f $hello_file || echo "No $hello_file"
14123 id4=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
14124
14125 # Two no-recompute builds should be equal. Even for different "releases".
14126 if test "$id3" == "$id4"; then
14127   echo "no-recomputes equal";
14128 else
14129   echo "no-recomputes unequal";
14130 fi
14131
14132 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14133 at_status=$? at_failed=false
14134 $at_check_filter
14135 echo stderr:; cat "$at_stderr"
14136 echo >>"$at_stdout"; $as_echo "uniques unequal
14137 no-recompute unique unequal
14138 no-recomputes equal
14139 " | \
14140   $at_diff - "$at_stdout" || at_failed=:
14141 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:1041"
14142 $at_failed && at_fn_log_failure
14143 $at_traceon; }
14144
14145   set +x
14146   $at_times_p && times >"$at_times_file"
14147 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14148 read at_status <"$at_status_file"
14149 #AT_STOP_156
14150 #AT_START_157
14151 at_fn_group_banner 157 'rpmbuildid.at:1153' \
14152   "rpmbuild buildid unique r1 r2" "                  " 10
14153 at_xfail=no
14154 (
14155   $as_echo "157. $at_setup_line: testing $at_desc ..."
14156   $at_traceon
14157
14158
14159 { set +x
14160 $as_echo "$at_srcdir/rpmbuildid.at:1155:
14161 rm -rf \${TOPDIR}
14162 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
14163
14164 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
14165
14166 # No warnings for hard links
14167 rundebug rpmbuild --quiet \\
14168   --define=\"_unique_build_ids 1\" \\
14169   -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
14170
14171 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
14172   | cpio -diu --quiet
14173
14174 hello_file=./usr/local/bin/hello
14175
14176 # Extract the build-id from the main file
14177 test -f \$hello_file || echo \"No \$hello_file\"
14178 id1=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
14179
14180 # Make sure we generate a new one
14181 rm \$hello_file
14182
14183 # Build the \"next\" release, which has no changes except for the release update.
14184 rundebug rpmbuild --quiet \\
14185   --define=\"_unique_build_ids 1\" \\
14186   -ba \"\${abs_srcdir}\"/data/SPECS/hello-r2.spec
14187
14188 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \\
14189   | cpio -diu --quiet
14190
14191 # Extract the build-id from the main file
14192 test -f \$hello_file || echo \"No \$hello_file\"
14193 id2=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
14194
14195 if test \"\$id1\" == \"\$id2\"; then echo \"equal \$id1\"; else echo \"unequal\"; fi
14196 "
14197 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:1155"
14198 ( $at_check_trace;
14199 rm -rf ${TOPDIR}
14200 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14201
14202 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
14203
14204 # No warnings for hard links
14205 rundebug rpmbuild --quiet \
14206   --define="_unique_build_ids 1" \
14207   -ba "${abs_srcdir}"/data/SPECS/hello.spec
14208
14209 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
14210   | cpio -diu --quiet
14211
14212 hello_file=./usr/local/bin/hello
14213
14214 # Extract the build-id from the main file
14215 test -f $hello_file || echo "No $hello_file"
14216 id1=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
14217
14218 # Make sure we generate a new one
14219 rm $hello_file
14220
14221 # Build the "next" release, which has no changes except for the release update.
14222 rundebug rpmbuild --quiet \
14223   --define="_unique_build_ids 1" \
14224   -ba "${abs_srcdir}"/data/SPECS/hello-r2.spec
14225
14226 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \
14227   | cpio -diu --quiet
14228
14229 # Extract the build-id from the main file
14230 test -f $hello_file || echo "No $hello_file"
14231 id2=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
14232
14233 if test "$id1" == "$id2"; then echo "equal $id1"; else echo "unequal"; fi
14234
14235 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14236 at_status=$? at_failed=false
14237 $at_check_filter
14238 echo stderr:; cat "$at_stderr"
14239 echo >>"$at_stdout"; $as_echo "unequal
14240 " | \
14241   $at_diff - "$at_stdout" || at_failed=:
14242 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:1155"
14243 $at_failed && at_fn_log_failure
14244 $at_traceon; }
14245
14246   set +x
14247   $at_times_p && times >"$at_times_file"
14248 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14249 read at_status <"$at_status_file"
14250 #AT_STOP_157
14251 #AT_START_158
14252 at_fn_group_banner 158 'rpmbuildid.at:1201' \
14253   "rpmbuild buildid non-unique r1 r2" "              " 10
14254 at_xfail=no
14255 (
14256   $as_echo "158. $at_setup_line: testing $at_desc ..."
14257   $at_traceon
14258
14259
14260 { set +x
14261 $as_echo "$at_srcdir/rpmbuildid.at:1203:
14262 rm -rf \${TOPDIR}
14263 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
14264
14265 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
14266
14267 # No warnings for hard links
14268 rundebug rpmbuild --quiet \\
14269   --undefine=\"_unique_build_ids\" \\
14270   --undefine=\"_unique_debug_names\" \\
14271   --undefine=\"_unique_debug_srcs\" \\
14272   -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
14273
14274 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
14275   | cpio -diu --quiet
14276
14277 hello_file=./usr/local/bin/hello
14278
14279 # Extract the build-id from the main file
14280 test -f \$hello_file || echo \"No \$hello_file\"
14281 id1=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
14282
14283 # Make sure we generate a new one
14284 rm \$hello_file
14285
14286 # Build the \"next\" release, which has no changes except for the release update.
14287 rundebug rpmbuild --quiet \\
14288   --undefine=\"_unique_build_ids\" \\
14289   --undefine=\"_unique_debug_names\" \\
14290   --undefine=\"_unique_debug_srcs\" \\
14291   -ba \"\${abs_srcdir}\"/data/SPECS/hello-r2.spec
14292
14293 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \\
14294   | cpio -diu --quiet
14295
14296 # Extract the build-id from the main file
14297 test -f \$hello_file || echo \"No \$hello_file\"
14298 id2=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
14299
14300 if test \"\$id1\" == \"\$id2\"; then echo \"equal\"; else echo \"unequal \$id1 \$id2\"; fi
14301 "
14302 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:1203"
14303 ( $at_check_trace;
14304 rm -rf ${TOPDIR}
14305 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14306
14307 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
14308
14309 # No warnings for hard links
14310 rundebug rpmbuild --quiet \
14311   --undefine="_unique_build_ids" \
14312   --undefine="_unique_debug_names" \
14313   --undefine="_unique_debug_srcs" \
14314   -ba "${abs_srcdir}"/data/SPECS/hello.spec
14315
14316 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
14317   | cpio -diu --quiet
14318
14319 hello_file=./usr/local/bin/hello
14320
14321 # Extract the build-id from the main file
14322 test -f $hello_file || echo "No $hello_file"
14323 id1=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
14324
14325 # Make sure we generate a new one
14326 rm $hello_file
14327
14328 # Build the "next" release, which has no changes except for the release update.
14329 rundebug rpmbuild --quiet \
14330   --undefine="_unique_build_ids" \
14331   --undefine="_unique_debug_names" \
14332   --undefine="_unique_debug_srcs" \
14333   -ba "${abs_srcdir}"/data/SPECS/hello-r2.spec
14334
14335 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \
14336   | cpio -diu --quiet
14337
14338 # Extract the build-id from the main file
14339 test -f $hello_file || echo "No $hello_file"
14340 id2=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
14341
14342 if test "$id1" == "$id2"; then echo "equal"; else echo "unequal $id1 $id2"; fi
14343
14344 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14345 at_status=$? at_failed=false
14346 $at_check_filter
14347 echo stderr:; cat "$at_stderr"
14348 echo >>"$at_stdout"; $as_echo "equal
14349 " | \
14350   $at_diff - "$at_stdout" || at_failed=:
14351 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:1203"
14352 $at_failed && at_fn_log_failure
14353 $at_traceon; }
14354
14355   set +x
14356   $at_times_p && times >"$at_times_file"
14357 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14358 read at_status <"$at_status_file"
14359 #AT_STOP_158
14360 #AT_START_159
14361 at_fn_group_banner 159 'rpmbuildid.at:1253' \
14362   "rpmbuild buildid attrs" "                         " 10
14363 at_xfail=no
14364 (
14365   $as_echo "159. $at_setup_line: testing $at_desc ..."
14366   $at_traceon
14367
14368
14369 { set +x
14370 $as_echo "$at_srcdir/rpmbuildid.at:1255:
14371 rm -rf \${TOPDIR}
14372 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
14373
14374 # Setup sources
14375 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
14376
14377 # Build, contains one ELF which should have a buildid.
14378 rundebug rpmbuild \\
14379   --define=\"_build_id_links compat\" \\
14380   --define \"_unique_debug_names 1\" \\
14381   --define \"_unique_debug_srcs 1\" \\
14382   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello-attr-buildid.spec
14383
14384 run rpm -qp --qf \"[%{filenames} %{filemodes:perms}\\n]\" \\
14385         \${abs_builddir}/testing/build/RPMS/*/test-1.0-1*rpm \\
14386         | grep \"build-id d\"
14387
14388 run rpm -qp --qf \"[%{filenames} %{filemodes:perms}\\n]\" \\
14389         \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1*rpm \\
14390         | grep \"build-id d\"
14391 "
14392 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuildid.at:1255"
14393 ( $at_check_trace;
14394 rm -rf ${TOPDIR}
14395 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14396
14397 # Setup sources
14398 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
14399
14400 # Build, contains one ELF which should have a buildid.
14401 rundebug rpmbuild \
14402   --define="_build_id_links compat" \
14403   --define "_unique_debug_names 1" \
14404   --define "_unique_debug_srcs 1" \
14405   --quiet -ba "${abs_srcdir}"/data/SPECS/hello-attr-buildid.spec
14406
14407 run rpm -qp --qf "[%{filenames} %{filemodes:perms}\n]" \
14408         ${abs_builddir}/testing/build/RPMS/*/test-1.0-1*rpm \
14409         | grep "build-id d"
14410
14411 run rpm -qp --qf "[%{filenames} %{filemodes:perms}\n]" \
14412         ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1*rpm \
14413         | grep "build-id d"
14414
14415 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14416 at_status=$? at_failed=false
14417 $at_check_filter
14418 echo stderr:; cat "$at_stderr"
14419 echo >>"$at_stdout"; $as_echo "/usr/lib/.build-id drwxr-xr-x
14420 /usr/lib/debug/.build-id drwxr-xr-x
14421 " | \
14422   $at_diff - "$at_stdout" || at_failed=:
14423 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:1255"
14424 $at_failed && at_fn_log_failure
14425 $at_traceon; }
14426
14427   set +x
14428   $at_times_p && times >"$at_times_file"
14429 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14430 read at_status <"$at_status_file"
14431 #AT_STOP_159
14432 #AT_START_160
14433 at_fn_group_banner 160 'rpmbuildid.at:1287' \
14434   "rpmbuild buildid config attrs" "                  " 10
14435 at_xfail=no
14436 (
14437   $as_echo "160. $at_setup_line: testing $at_desc ..."
14438   $at_traceon
14439
14440
14441 { set +x
14442 $as_echo "$at_srcdir/rpmbuildid.at:1289:
14443 rm -rf \${TOPDIR}
14444 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
14445
14446 # Setup sources
14447 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
14448
14449 # Build, contains one ELF which should have a buildid.
14450 rundebug rpmbuild \\
14451   --define=\"_build_id_links compat\" \\
14452   --define \"_unique_debug_names 1\" \\
14453   --define \"_unique_debug_srcs 1\" \\
14454   --quiet -ba \"\${abs_srcdir}\"/data/SPECS/hello-config-buildid.spec
14455
14456 # Should contain one config file.
14457 run rpm -c -qp \${abs_builddir}/testing/build/RPMS/*/test-1.0-1*rpm
14458 # Should not contain config files.
14459 run rpm -c -qp \${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1*rpm
14460 "
14461 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuildid.at:1289"
14462 ( $at_check_trace;
14463 rm -rf ${TOPDIR}
14464 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14465
14466 # Setup sources
14467 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
14468
14469 # Build, contains one ELF which should have a buildid.
14470 rundebug rpmbuild \
14471   --define="_build_id_links compat" \
14472   --define "_unique_debug_names 1" \
14473   --define "_unique_debug_srcs 1" \
14474   --quiet -ba "${abs_srcdir}"/data/SPECS/hello-config-buildid.spec
14475
14476 # Should contain one config file.
14477 run rpm -c -qp ${abs_builddir}/testing/build/RPMS/*/test-1.0-1*rpm
14478 # Should not contain config files.
14479 run rpm -c -qp ${abs_builddir}/testing/build/RPMS/*/test-debuginfo-1.0-1*rpm
14480
14481 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14482 at_status=$? at_failed=false
14483 $at_check_filter
14484 echo stderr:; cat "$at_stderr"
14485 echo >>"$at_stdout"; $as_echo "/etc/config.file
14486 " | \
14487   $at_diff - "$at_stdout" || at_failed=:
14488 at_fn_check_status 0 $at_status "$at_srcdir/rpmbuildid.at:1289"
14489 $at_failed && at_fn_log_failure
14490 $at_traceon; }
14491
14492   set +x
14493   $at_times_p && times >"$at_times_file"
14494 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14495 read at_status <"$at_status_file"
14496 #AT_STOP_160
14497 #AT_START_161
14498 at_fn_group_banner 161 'rpmscript.at:7' \
14499   "basic scripts and arguments" "                    " 11
14500 at_xfail=no
14501 (
14502   $as_echo "161. $at_setup_line: testing $at_desc ..."
14503   $at_traceon
14504
14505
14506 { set +x
14507 $as_echo "$at_srcdir/rpmscript.at:9:
14508
14509 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
14510
14511
14512 runroot rpm --initdb
14513
14514 rm -rf \"\${TOPDIR}\"
14515
14516 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
14517 runroot rpmbuild --quiet -bb --define \"rel 1\" /data/SPECS/scripts.spec
14518 runroot rpmbuild --quiet -bb --define \"rel 2\" /data/SPECS/scripts.spec
14519
14520 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14521 runroot rpm -Vvp /build/RPMS/noarch/scripts-1.0-1.noarch.rpm
14522 runroot rpm -U /build/RPMS/noarch/scripts-1.0-1.noarch.rpm
14523 runroot rpm -U /build/RPMS/noarch/scripts-1.0-2.noarch.rpm
14524 runroot rpm -Vv scripts
14525 runroot rpm -e scripts
14526 "
14527 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmscript.at:9"
14528 ( $at_check_trace;
14529
14530 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
14531
14532
14533 runroot rpm --initdb
14534
14535 rm -rf "${TOPDIR}"
14536
14537 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
14538 runroot rpmbuild --quiet -bb --define "rel 1" /data/SPECS/scripts.spec
14539 runroot rpmbuild --quiet -bb --define "rel 2" /data/SPECS/scripts.spec
14540
14541 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14542 runroot rpm -Vvp /build/RPMS/noarch/scripts-1.0-1.noarch.rpm
14543 runroot rpm -U /build/RPMS/noarch/scripts-1.0-1.noarch.rpm
14544 runroot rpm -U /build/RPMS/noarch/scripts-1.0-2.noarch.rpm
14545 runroot rpm -Vv scripts
14546 runroot rpm -e scripts
14547
14548 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14549 at_status=$? at_failed=false
14550 $at_check_filter
14551 at_fn_diff_devnull "$at_stderr" || at_failed=:
14552 echo >>"$at_stdout"; $as_echo "scripts-1.0-1 VERIFY 0
14553 scripts-1.0-1 PRETRANS 1
14554 scripts-1.0-1 PRE 1
14555 scripts-1.0-1 POST 1
14556 scripts-1.0-1 POSTTRANS 1
14557 scripts-1.0-2 PRETRANS 2
14558 scripts-1.0-2 PRE 2
14559 scripts-1.0-2 POST 2
14560 scripts-1.0-1 PREUN 1
14561 scripts-1.0-1 POSTUN 1
14562 scripts-1.0-2 POSTTRANS 1
14563 scripts-1.0-2 VERIFY 1
14564 scripts-1.0-2 PREUN 0
14565 scripts-1.0-2 POSTUN 0
14566 " | \
14567   $at_diff - "$at_stdout" || at_failed=:
14568 at_fn_check_status 0 $at_status "$at_srcdir/rpmscript.at:9"
14569 $at_failed && at_fn_log_failure
14570 $at_traceon; }
14571
14572   set +x
14573   $at_times_p && times >"$at_times_file"
14574 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14575 read at_status <"$at_status_file"
14576 #AT_STOP_161
14577 #AT_START_162
14578 at_fn_group_banner 162 'rpmscript.at:44' \
14579   "basic trigger scripts and arguments" "            " 11
14580 at_xfail=no
14581 (
14582   $as_echo "162. $at_setup_line: testing $at_desc ..."
14583   $at_traceon
14584
14585
14586 { set +x
14587 $as_echo "$at_srcdir/rpmscript.at:46:
14588
14589 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
14590
14591
14592 runroot rpm --initdb
14593
14594 rm -rf \"\${TOPDIR}\"
14595
14596 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
14597 runroot rpmbuild --quiet -bb --define \"rel 1\" /data/SPECS/scripts.spec
14598 runroot rpmbuild --quiet -bb --define \"rel 2\" /data/SPECS/scripts.spec
14599 runroot rpmbuild --quiet -bb --define \"rel 1\" --define \"trigpkg scripts\" /data/SPECS/triggers.spec
14600 runroot rpmbuild --quiet -bb --define \"rel 2\" --define \"trigpkg scripts\" /data/SPECS/triggers.spec
14601
14602 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14603 echo TRIGGERS 1
14604 runroot rpm -U /build/RPMS/noarch/triggers-1.0-1.noarch.rpm
14605 echo SCRIPTS 1
14606 runroot rpm -U /build/RPMS/noarch/scripts-1.0-1.noarch.rpm
14607 echo SCRIPTS 2
14608 runroot rpm -U /build/RPMS/noarch/scripts-1.0-2.noarch.rpm
14609 echo TRIGGERS 2
14610 runroot rpm -U /build/RPMS/noarch/triggers-1.0-2.noarch.rpm
14611 echo ERASE
14612 runroot rpm -e scripts
14613 "
14614 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmscript.at:46"
14615 ( $at_check_trace;
14616
14617 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
14618
14619
14620 runroot rpm --initdb
14621
14622 rm -rf "${TOPDIR}"
14623
14624 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
14625 runroot rpmbuild --quiet -bb --define "rel 1" /data/SPECS/scripts.spec
14626 runroot rpmbuild --quiet -bb --define "rel 2" /data/SPECS/scripts.spec
14627 runroot rpmbuild --quiet -bb --define "rel 1" --define "trigpkg scripts" /data/SPECS/triggers.spec
14628 runroot rpmbuild --quiet -bb --define "rel 2" --define "trigpkg scripts" /data/SPECS/triggers.spec
14629
14630 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14631 echo TRIGGERS 1
14632 runroot rpm -U /build/RPMS/noarch/triggers-1.0-1.noarch.rpm
14633 echo SCRIPTS 1
14634 runroot rpm -U /build/RPMS/noarch/scripts-1.0-1.noarch.rpm
14635 echo SCRIPTS 2
14636 runroot rpm -U /build/RPMS/noarch/scripts-1.0-2.noarch.rpm
14637 echo TRIGGERS 2
14638 runroot rpm -U /build/RPMS/noarch/triggers-1.0-2.noarch.rpm
14639 echo ERASE
14640 runroot rpm -e scripts
14641
14642 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14643 at_status=$? at_failed=false
14644 $at_check_filter
14645 at_fn_diff_devnull "$at_stderr" || at_failed=:
14646 echo >>"$at_stdout"; $as_echo "TRIGGERS 1
14647 SCRIPTS 1
14648 scripts-1.0-1 PRETRANS 1
14649 triggers-1.0-1 TRIGGERPREIN 1 0
14650 scripts-1.0-1 PRE 1
14651 scripts-1.0-1 POST 1
14652 triggers-1.0-1 TRIGGERIN 1 1
14653 scripts-1.0-1 POSTTRANS 1
14654 SCRIPTS 2
14655 scripts-1.0-2 PRETRANS 2
14656 triggers-1.0-1 TRIGGERPREIN 1 1
14657 scripts-1.0-2 PRE 2
14658 scripts-1.0-2 POST 2
14659 triggers-1.0-1 TRIGGERIN 1 2
14660 triggers-1.0-1 TRIGGERUN 1 1
14661 scripts-1.0-1 PREUN 1
14662 scripts-1.0-1 POSTUN 1
14663 triggers-1.0-1 TRIGGERPOSTUN 1 1
14664 scripts-1.0-2 POSTTRANS 1
14665 TRIGGERS 2
14666 triggers-1.0-2 TRIGGERPREIN 1 1
14667 triggers-1.0-2 TRIGGERIN 2 1
14668 triggers-1.0-1 TRIGGERUN 1 1
14669 ERASE
14670 triggers-1.0-2 TRIGGERUN 1 0
14671 scripts-1.0-2 PREUN 0
14672 scripts-1.0-2 POSTUN 0
14673 triggers-1.0-2 TRIGGERPOSTUN 1 0
14674 " | \
14675   $at_diff - "$at_stdout" || at_failed=:
14676 at_fn_check_status 0 $at_status "$at_srcdir/rpmscript.at:46"
14677 $at_failed && at_fn_log_failure
14678 $at_traceon; }
14679
14680   set +x
14681   $at_times_p && times >"$at_times_file"
14682 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14683 read at_status <"$at_status_file"
14684 #AT_STOP_162
14685 #AT_START_163
14686 at_fn_group_banner 163 'rpmscript.at:102' \
14687   "basic file trigger scripts" "                     " 11
14688 at_xfail=no
14689 (
14690   $as_echo "163. $at_setup_line: testing $at_desc ..."
14691   $at_traceon
14692
14693
14694 { set +x
14695 $as_echo "$at_srcdir/rpmscript.at:104:
14696
14697 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
14698
14699
14700 runroot rpm --initdb
14701
14702 rm -rf \"\${TOPDIR}\"
14703
14704 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
14705 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
14706 runroot rpmbuild --quiet -bb /data/SPECS/hlinktest.spec
14707 runroot rpmbuild --quiet -bb /data/SPECS/filetriggers.spec
14708
14709 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14710 runroot rpm -U /build/RPMS/noarch/filetriggers-1.0-1.noarch.rpm
14711 echo INSTALLATION
14712 runroot rpm -U /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm \\
14713 /build/RPMS/noarch/hlinktest-1.0-1.noarch.rpm
14714 echo ERASE
14715 runroot rpm -e hello-script hlinktest
14716 "
14717 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmscript.at:104"
14718 ( $at_check_trace;
14719
14720 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
14721
14722
14723 runroot rpm --initdb
14724
14725 rm -rf "${TOPDIR}"
14726
14727 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
14728 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
14729 runroot rpmbuild --quiet -bb /data/SPECS/hlinktest.spec
14730 runroot rpmbuild --quiet -bb /data/SPECS/filetriggers.spec
14731
14732 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14733 runroot rpm -U /build/RPMS/noarch/filetriggers-1.0-1.noarch.rpm
14734 echo INSTALLATION
14735 runroot rpm -U /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm \
14736 /build/RPMS/noarch/hlinktest-1.0-1.noarch.rpm
14737 echo ERASE
14738 runroot rpm -e hello-script hlinktest
14739
14740 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14741 at_status=$? at_failed=false
14742 $at_check_filter
14743 at_fn_diff_devnull "$at_stderr" || at_failed=:
14744 echo >>"$at_stdout"; $as_echo "INSTALLATION
14745 filetriggerin(/foo*):
14746 /foo/aaaa
14747 /foo/copyllo
14748 /foo/hello
14749 /foo/hello-bar
14750 /foo/hello-foo
14751 /foo/hello-world
14752 /foo/zzzz
14753
14754 filetriggerin(/foo*)<lua>:
14755 /foo/aaaa
14756 /foo/copyllo
14757 /foo/hello
14758 /foo/hello-bar
14759 /foo/hello-foo
14760 /foo/hello-world
14761 /foo/zzzz
14762
14763 filetriggerin(/usr/bin*):
14764 /usr/bin/hello
14765
14766 filetriggerin(/usr/bin*)<lua>:
14767 /usr/bin/hello
14768
14769 transfiletriggerin(/usr/bin*):
14770 /usr/bin/hello
14771
14772 transfiletriggerin(/foo*):
14773 /foo/aaaa
14774 /foo/copyllo
14775 /foo/hello
14776 /foo/hello-bar
14777 /foo/hello-foo
14778 /foo/hello-world
14779 /foo/zzzz
14780
14781 ERASE
14782 transfiletriggerun(/usr/bin*):
14783 /usr/bin/hello
14784
14785 transfiletriggerun(/foo*):
14786 /foo/aaaa
14787 /foo/copyllo
14788 /foo/hello
14789 /foo/hello-bar
14790 /foo/hello-foo
14791 /foo/hello-world
14792 /foo/zzzz
14793
14794 filetriggerun(/foo*):
14795 /foo/aaaa
14796 /foo/copyllo
14797 /foo/hello
14798 /foo/hello-bar
14799 /foo/hello-foo
14800 /foo/hello-world
14801 /foo/zzzz
14802
14803 filetriggerpostun(/foo*):
14804 /foo/aaaa
14805 /foo/copyllo
14806 /foo/hello
14807 /foo/hello-bar
14808 /foo/hello-foo
14809 /foo/hello-world
14810 /foo/zzzz
14811
14812 filetriggerun(/usr/bin*):
14813 /usr/bin/hello
14814
14815 filetriggerpostun(/usr/bin*):
14816 /usr/bin/hello
14817
14818 transfiletriggerpostun(/usr/bin*):
14819
14820 transfiletriggerpostun(/foo*):
14821
14822 " | \
14823   $at_diff - "$at_stdout" || at_failed=:
14824 at_fn_check_status 0 $at_status "$at_srcdir/rpmscript.at:104"
14825 $at_failed && at_fn_log_failure
14826 $at_traceon; }
14827
14828   set +x
14829   $at_times_p && times >"$at_times_file"
14830 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14831 read at_status <"$at_status_file"
14832 #AT_STOP_163
14833 #AT_START_164
14834 at_fn_group_banner 164 'rpmscript.at:205' \
14835   "basic file triggers 2" "                          " 11
14836 at_xfail=no
14837 (
14838   $as_echo "164. $at_setup_line: testing $at_desc ..."
14839   $at_traceon
14840
14841
14842 { set +x
14843 $as_echo "$at_srcdir/rpmscript.at:207:
14844
14845 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
14846
14847
14848 runroot rpm --initdb
14849
14850 rm -rf \"\${TOPDIR}\"
14851
14852 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
14853 for v in 1.0 2.0 3.0; do
14854     runroot rpmbuild --quiet -bb --define \"ver \${v}\" /data/SPECS/parallel.spec
14855 done
14856
14857 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14858 runroot rpm -i \\
14859         /build/RPMS/noarch/parallel-1.0-1.noarch.rpm \\
14860         /build/RPMS/noarch/parallel-2.0-1.noarch.rpm \\
14861         /build/RPMS/noarch/parallel-3.0-1.noarch.rpm
14862
14863 echo INSTALL:
14864 runroot rpm -U /build/RPMS/noarch/parallel-trigger-1.0-1.noarch.rpm
14865 echo UPGRADE:
14866 runroot rpm -U /build/RPMS/noarch/parallel-trigger-2.0-1.noarch.rpm
14867 echo ERASE:
14868 runroot rpm -e parallel-trigger
14869
14870 "
14871 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmscript.at:207"
14872 ( $at_check_trace;
14873
14874 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
14875
14876
14877 runroot rpm --initdb
14878
14879 rm -rf "${TOPDIR}"
14880
14881 runroot rpmbuild --quiet -bb /data/SPECS/fakeshell.spec
14882 for v in 1.0 2.0 3.0; do
14883     runroot rpmbuild --quiet -bb --define "ver ${v}" /data/SPECS/parallel.spec
14884 done
14885
14886 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14887 runroot rpm -i \
14888         /build/RPMS/noarch/parallel-1.0-1.noarch.rpm \
14889         /build/RPMS/noarch/parallel-2.0-1.noarch.rpm \
14890         /build/RPMS/noarch/parallel-3.0-1.noarch.rpm
14891
14892 echo INSTALL:
14893 runroot rpm -U /build/RPMS/noarch/parallel-trigger-1.0-1.noarch.rpm
14894 echo UPGRADE:
14895 runroot rpm -U /build/RPMS/noarch/parallel-trigger-2.0-1.noarch.rpm
14896 echo ERASE:
14897 runroot rpm -e parallel-trigger
14898
14899
14900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14901 at_status=$? at_failed=false
14902 $at_check_filter
14903 at_fn_diff_devnull "$at_stderr" || at_failed=:
14904 echo >>"$at_stdout"; $as_echo "INSTALL:
14905 %filetriggerin: 0 0
14906 36
14907 %transfiletriggerin: 0 0
14908 36
14909 UPGRADE:
14910 %transfiletriggerun: 0 0
14911 36
14912 %filetriggerin: 0 0
14913 36
14914 %transfiletriggerin: 0 0
14915 36
14916 ERASE:
14917 %transfiletriggerun: 0 0
14918 36
14919 " | \
14920   $at_diff - "$at_stdout" || at_failed=:
14921 at_fn_check_status 0 $at_status "$at_srcdir/rpmscript.at:207"
14922 $at_failed && at_fn_log_failure
14923 $at_traceon; }
14924
14925   set +x
14926   $at_times_p && times >"$at_times_file"
14927 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14928 read at_status <"$at_status_file"
14929 #AT_STOP_164
14930 #AT_START_165
14931 at_fn_group_banner 165 'rpmvercmp.at:13' \
14932   "rpmvercmp(1.0, 1.0) = 0" "                        " 12
14933 at_xfail=no
14934 (
14935   $as_echo "165. $at_setup_line: testing $at_desc ..."
14936   $at_traceon
14937
14938
14939 { set +x
14940 $as_echo "$at_srcdir/rpmvercmp.at:13: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0\", \"1.0\"))}'"
14941 at_fn_check_prepare_trace "rpmvercmp.at:13"
14942 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0", "1.0"))}'
14943 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14944 at_status=$? at_failed=false
14945 $at_check_filter
14946 at_fn_diff_devnull "$at_stderr" || at_failed=:
14947 echo >>"$at_stdout"; $as_echo "0
14948 " | \
14949   $at_diff - "$at_stdout" || at_failed=:
14950 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:13"
14951 $at_failed && at_fn_log_failure
14952 $at_traceon; }
14953
14954   set +x
14955   $at_times_p && times >"$at_times_file"
14956 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14957 read at_status <"$at_status_file"
14958 #AT_STOP_165
14959 #AT_START_166
14960 at_fn_group_banner 166 'rpmvercmp.at:14' \
14961   "rpmvercmp(1.0, 2.0) = -1" "                       " 12
14962 at_xfail=no
14963 (
14964   $as_echo "166. $at_setup_line: testing $at_desc ..."
14965   $at_traceon
14966
14967
14968 { set +x
14969 $as_echo "$at_srcdir/rpmvercmp.at:14: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0\", \"2.0\"))}'"
14970 at_fn_check_prepare_trace "rpmvercmp.at:14"
14971 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0", "2.0"))}'
14972 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14973 at_status=$? at_failed=false
14974 $at_check_filter
14975 at_fn_diff_devnull "$at_stderr" || at_failed=:
14976 echo >>"$at_stdout"; $as_echo "-1
14977 " | \
14978   $at_diff - "$at_stdout" || at_failed=:
14979 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:14"
14980 $at_failed && at_fn_log_failure
14981 $at_traceon; }
14982
14983   set +x
14984   $at_times_p && times >"$at_times_file"
14985 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
14986 read at_status <"$at_status_file"
14987 #AT_STOP_166
14988 #AT_START_167
14989 at_fn_group_banner 167 'rpmvercmp.at:15' \
14990   "rpmvercmp(2.0, 1.0) = 1" "                        " 12
14991 at_xfail=no
14992 (
14993   $as_echo "167. $at_setup_line: testing $at_desc ..."
14994   $at_traceon
14995
14996
14997 { set +x
14998 $as_echo "$at_srcdir/rpmvercmp.at:15: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2.0\", \"1.0\"))}'"
14999 at_fn_check_prepare_trace "rpmvercmp.at:15"
15000 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2.0", "1.0"))}'
15001 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15002 at_status=$? at_failed=false
15003 $at_check_filter
15004 at_fn_diff_devnull "$at_stderr" || at_failed=:
15005 echo >>"$at_stdout"; $as_echo "1
15006 " | \
15007   $at_diff - "$at_stdout" || at_failed=:
15008 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:15"
15009 $at_failed && at_fn_log_failure
15010 $at_traceon; }
15011
15012   set +x
15013   $at_times_p && times >"$at_times_file"
15014 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15015 read at_status <"$at_status_file"
15016 #AT_STOP_167
15017 #AT_START_168
15018 at_fn_group_banner 168 'rpmvercmp.at:17' \
15019   "rpmvercmp(2.0.1, 2.0.1) = 0" "                    " 12
15020 at_xfail=no
15021 (
15022   $as_echo "168. $at_setup_line: testing $at_desc ..."
15023   $at_traceon
15024
15025
15026 { set +x
15027 $as_echo "$at_srcdir/rpmvercmp.at:17: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2.0.1\", \"2.0.1\"))}'"
15028 at_fn_check_prepare_trace "rpmvercmp.at:17"
15029 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2.0.1", "2.0.1"))}'
15030 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15031 at_status=$? at_failed=false
15032 $at_check_filter
15033 at_fn_diff_devnull "$at_stderr" || at_failed=:
15034 echo >>"$at_stdout"; $as_echo "0
15035 " | \
15036   $at_diff - "$at_stdout" || at_failed=:
15037 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:17"
15038 $at_failed && at_fn_log_failure
15039 $at_traceon; }
15040
15041   set +x
15042   $at_times_p && times >"$at_times_file"
15043 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15044 read at_status <"$at_status_file"
15045 #AT_STOP_168
15046 #AT_START_169
15047 at_fn_group_banner 169 'rpmvercmp.at:18' \
15048   "rpmvercmp(2.0, 2.0.1) = -1" "                     " 12
15049 at_xfail=no
15050 (
15051   $as_echo "169. $at_setup_line: testing $at_desc ..."
15052   $at_traceon
15053
15054
15055 { set +x
15056 $as_echo "$at_srcdir/rpmvercmp.at:18: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2.0\", \"2.0.1\"))}'"
15057 at_fn_check_prepare_trace "rpmvercmp.at:18"
15058 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2.0", "2.0.1"))}'
15059 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15060 at_status=$? at_failed=false
15061 $at_check_filter
15062 at_fn_diff_devnull "$at_stderr" || at_failed=:
15063 echo >>"$at_stdout"; $as_echo "-1
15064 " | \
15065   $at_diff - "$at_stdout" || at_failed=:
15066 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:18"
15067 $at_failed && at_fn_log_failure
15068 $at_traceon; }
15069
15070   set +x
15071   $at_times_p && times >"$at_times_file"
15072 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15073 read at_status <"$at_status_file"
15074 #AT_STOP_169
15075 #AT_START_170
15076 at_fn_group_banner 170 'rpmvercmp.at:19' \
15077   "rpmvercmp(2.0.1, 2.0) = 1" "                      " 12
15078 at_xfail=no
15079 (
15080   $as_echo "170. $at_setup_line: testing $at_desc ..."
15081   $at_traceon
15082
15083
15084 { set +x
15085 $as_echo "$at_srcdir/rpmvercmp.at:19: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2.0.1\", \"2.0\"))}'"
15086 at_fn_check_prepare_trace "rpmvercmp.at:19"
15087 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2.0.1", "2.0"))}'
15088 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15089 at_status=$? at_failed=false
15090 $at_check_filter
15091 at_fn_diff_devnull "$at_stderr" || at_failed=:
15092 echo >>"$at_stdout"; $as_echo "1
15093 " | \
15094   $at_diff - "$at_stdout" || at_failed=:
15095 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:19"
15096 $at_failed && at_fn_log_failure
15097 $at_traceon; }
15098
15099   set +x
15100   $at_times_p && times >"$at_times_file"
15101 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15102 read at_status <"$at_status_file"
15103 #AT_STOP_170
15104 #AT_START_171
15105 at_fn_group_banner 171 'rpmvercmp.at:21' \
15106   "rpmvercmp(2.0.1a, 2.0.1a) = 0" "                  " 12
15107 at_xfail=no
15108 (
15109   $as_echo "171. $at_setup_line: testing $at_desc ..."
15110   $at_traceon
15111
15112
15113 { set +x
15114 $as_echo "$at_srcdir/rpmvercmp.at:21: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2.0.1a\", \"2.0.1a\"))}'"
15115 at_fn_check_prepare_trace "rpmvercmp.at:21"
15116 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2.0.1a", "2.0.1a"))}'
15117 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15118 at_status=$? at_failed=false
15119 $at_check_filter
15120 at_fn_diff_devnull "$at_stderr" || at_failed=:
15121 echo >>"$at_stdout"; $as_echo "0
15122 " | \
15123   $at_diff - "$at_stdout" || at_failed=:
15124 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:21"
15125 $at_failed && at_fn_log_failure
15126 $at_traceon; }
15127
15128   set +x
15129   $at_times_p && times >"$at_times_file"
15130 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15131 read at_status <"$at_status_file"
15132 #AT_STOP_171
15133 #AT_START_172
15134 at_fn_group_banner 172 'rpmvercmp.at:22' \
15135   "rpmvercmp(2.0.1a, 2.0.1) = 1" "                   " 12
15136 at_xfail=no
15137 (
15138   $as_echo "172. $at_setup_line: testing $at_desc ..."
15139   $at_traceon
15140
15141
15142 { set +x
15143 $as_echo "$at_srcdir/rpmvercmp.at:22: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2.0.1a\", \"2.0.1\"))}'"
15144 at_fn_check_prepare_trace "rpmvercmp.at:22"
15145 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2.0.1a", "2.0.1"))}'
15146 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15147 at_status=$? at_failed=false
15148 $at_check_filter
15149 at_fn_diff_devnull "$at_stderr" || at_failed=:
15150 echo >>"$at_stdout"; $as_echo "1
15151 " | \
15152   $at_diff - "$at_stdout" || at_failed=:
15153 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:22"
15154 $at_failed && at_fn_log_failure
15155 $at_traceon; }
15156
15157   set +x
15158   $at_times_p && times >"$at_times_file"
15159 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15160 read at_status <"$at_status_file"
15161 #AT_STOP_172
15162 #AT_START_173
15163 at_fn_group_banner 173 'rpmvercmp.at:23' \
15164   "rpmvercmp(2.0.1, 2.0.1a) = -1" "                  " 12
15165 at_xfail=no
15166 (
15167   $as_echo "173. $at_setup_line: testing $at_desc ..."
15168   $at_traceon
15169
15170
15171 { set +x
15172 $as_echo "$at_srcdir/rpmvercmp.at:23: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2.0.1\", \"2.0.1a\"))}'"
15173 at_fn_check_prepare_trace "rpmvercmp.at:23"
15174 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2.0.1", "2.0.1a"))}'
15175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15176 at_status=$? at_failed=false
15177 $at_check_filter
15178 at_fn_diff_devnull "$at_stderr" || at_failed=:
15179 echo >>"$at_stdout"; $as_echo "-1
15180 " | \
15181   $at_diff - "$at_stdout" || at_failed=:
15182 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:23"
15183 $at_failed && at_fn_log_failure
15184 $at_traceon; }
15185
15186   set +x
15187   $at_times_p && times >"$at_times_file"
15188 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15189 read at_status <"$at_status_file"
15190 #AT_STOP_173
15191 #AT_START_174
15192 at_fn_group_banner 174 'rpmvercmp.at:25' \
15193   "rpmvercmp(5.5p1, 5.5p1) = 0" "                    " 12
15194 at_xfail=no
15195 (
15196   $as_echo "174. $at_setup_line: testing $at_desc ..."
15197   $at_traceon
15198
15199
15200 { set +x
15201 $as_echo "$at_srcdir/rpmvercmp.at:25: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.5p1\", \"5.5p1\"))}'"
15202 at_fn_check_prepare_trace "rpmvercmp.at:25"
15203 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.5p1", "5.5p1"))}'
15204 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15205 at_status=$? at_failed=false
15206 $at_check_filter
15207 at_fn_diff_devnull "$at_stderr" || at_failed=:
15208 echo >>"$at_stdout"; $as_echo "0
15209 " | \
15210   $at_diff - "$at_stdout" || at_failed=:
15211 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:25"
15212 $at_failed && at_fn_log_failure
15213 $at_traceon; }
15214
15215   set +x
15216   $at_times_p && times >"$at_times_file"
15217 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15218 read at_status <"$at_status_file"
15219 #AT_STOP_174
15220 #AT_START_175
15221 at_fn_group_banner 175 'rpmvercmp.at:26' \
15222   "rpmvercmp(5.5p1, 5.5p2) = -1" "                   " 12
15223 at_xfail=no
15224 (
15225   $as_echo "175. $at_setup_line: testing $at_desc ..."
15226   $at_traceon
15227
15228
15229 { set +x
15230 $as_echo "$at_srcdir/rpmvercmp.at:26: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.5p1\", \"5.5p2\"))}'"
15231 at_fn_check_prepare_trace "rpmvercmp.at:26"
15232 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.5p1", "5.5p2"))}'
15233 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15234 at_status=$? at_failed=false
15235 $at_check_filter
15236 at_fn_diff_devnull "$at_stderr" || at_failed=:
15237 echo >>"$at_stdout"; $as_echo "-1
15238 " | \
15239   $at_diff - "$at_stdout" || at_failed=:
15240 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:26"
15241 $at_failed && at_fn_log_failure
15242 $at_traceon; }
15243
15244   set +x
15245   $at_times_p && times >"$at_times_file"
15246 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15247 read at_status <"$at_status_file"
15248 #AT_STOP_175
15249 #AT_START_176
15250 at_fn_group_banner 176 'rpmvercmp.at:27' \
15251   "rpmvercmp(5.5p2, 5.5p1) = 1" "                    " 12
15252 at_xfail=no
15253 (
15254   $as_echo "176. $at_setup_line: testing $at_desc ..."
15255   $at_traceon
15256
15257
15258 { set +x
15259 $as_echo "$at_srcdir/rpmvercmp.at:27: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.5p2\", \"5.5p1\"))}'"
15260 at_fn_check_prepare_trace "rpmvercmp.at:27"
15261 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.5p2", "5.5p1"))}'
15262 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15263 at_status=$? at_failed=false
15264 $at_check_filter
15265 at_fn_diff_devnull "$at_stderr" || at_failed=:
15266 echo >>"$at_stdout"; $as_echo "1
15267 " | \
15268   $at_diff - "$at_stdout" || at_failed=:
15269 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:27"
15270 $at_failed && at_fn_log_failure
15271 $at_traceon; }
15272
15273   set +x
15274   $at_times_p && times >"$at_times_file"
15275 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15276 read at_status <"$at_status_file"
15277 #AT_STOP_176
15278 #AT_START_177
15279 at_fn_group_banner 177 'rpmvercmp.at:29' \
15280   "rpmvercmp(5.5p10, 5.5p10) = 0" "                  " 12
15281 at_xfail=no
15282 (
15283   $as_echo "177. $at_setup_line: testing $at_desc ..."
15284   $at_traceon
15285
15286
15287 { set +x
15288 $as_echo "$at_srcdir/rpmvercmp.at:29: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.5p10\", \"5.5p10\"))}'"
15289 at_fn_check_prepare_trace "rpmvercmp.at:29"
15290 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.5p10", "5.5p10"))}'
15291 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15292 at_status=$? at_failed=false
15293 $at_check_filter
15294 at_fn_diff_devnull "$at_stderr" || at_failed=:
15295 echo >>"$at_stdout"; $as_echo "0
15296 " | \
15297   $at_diff - "$at_stdout" || at_failed=:
15298 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:29"
15299 $at_failed && at_fn_log_failure
15300 $at_traceon; }
15301
15302   set +x
15303   $at_times_p && times >"$at_times_file"
15304 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15305 read at_status <"$at_status_file"
15306 #AT_STOP_177
15307 #AT_START_178
15308 at_fn_group_banner 178 'rpmvercmp.at:30' \
15309   "rpmvercmp(5.5p1, 5.5p10) = -1" "                  " 12
15310 at_xfail=no
15311 (
15312   $as_echo "178. $at_setup_line: testing $at_desc ..."
15313   $at_traceon
15314
15315
15316 { set +x
15317 $as_echo "$at_srcdir/rpmvercmp.at:30: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.5p1\", \"5.5p10\"))}'"
15318 at_fn_check_prepare_trace "rpmvercmp.at:30"
15319 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.5p1", "5.5p10"))}'
15320 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15321 at_status=$? at_failed=false
15322 $at_check_filter
15323 at_fn_diff_devnull "$at_stderr" || at_failed=:
15324 echo >>"$at_stdout"; $as_echo "-1
15325 " | \
15326   $at_diff - "$at_stdout" || at_failed=:
15327 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:30"
15328 $at_failed && at_fn_log_failure
15329 $at_traceon; }
15330
15331   set +x
15332   $at_times_p && times >"$at_times_file"
15333 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15334 read at_status <"$at_status_file"
15335 #AT_STOP_178
15336 #AT_START_179
15337 at_fn_group_banner 179 'rpmvercmp.at:31' \
15338   "rpmvercmp(5.5p10, 5.5p1) = 1" "                   " 12
15339 at_xfail=no
15340 (
15341   $as_echo "179. $at_setup_line: testing $at_desc ..."
15342   $at_traceon
15343
15344
15345 { set +x
15346 $as_echo "$at_srcdir/rpmvercmp.at:31: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.5p10\", \"5.5p1\"))}'"
15347 at_fn_check_prepare_trace "rpmvercmp.at:31"
15348 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.5p10", "5.5p1"))}'
15349 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15350 at_status=$? at_failed=false
15351 $at_check_filter
15352 at_fn_diff_devnull "$at_stderr" || at_failed=:
15353 echo >>"$at_stdout"; $as_echo "1
15354 " | \
15355   $at_diff - "$at_stdout" || at_failed=:
15356 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:31"
15357 $at_failed && at_fn_log_failure
15358 $at_traceon; }
15359
15360   set +x
15361   $at_times_p && times >"$at_times_file"
15362 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15363 read at_status <"$at_status_file"
15364 #AT_STOP_179
15365 #AT_START_180
15366 at_fn_group_banner 180 'rpmvercmp.at:33' \
15367   "rpmvercmp(10xyz, 10.1xyz) = -1" "                 " 12
15368 at_xfail=no
15369 (
15370   $as_echo "180. $at_setup_line: testing $at_desc ..."
15371   $at_traceon
15372
15373
15374 { set +x
15375 $as_echo "$at_srcdir/rpmvercmp.at:33: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10xyz\", \"10.1xyz\"))}'"
15376 at_fn_check_prepare_trace "rpmvercmp.at:33"
15377 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10xyz", "10.1xyz"))}'
15378 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15379 at_status=$? at_failed=false
15380 $at_check_filter
15381 at_fn_diff_devnull "$at_stderr" || at_failed=:
15382 echo >>"$at_stdout"; $as_echo "-1
15383 " | \
15384   $at_diff - "$at_stdout" || at_failed=:
15385 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:33"
15386 $at_failed && at_fn_log_failure
15387 $at_traceon; }
15388
15389   set +x
15390   $at_times_p && times >"$at_times_file"
15391 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15392 read at_status <"$at_status_file"
15393 #AT_STOP_180
15394 #AT_START_181
15395 at_fn_group_banner 181 'rpmvercmp.at:34' \
15396   "rpmvercmp(10.1xyz, 10xyz) = 1" "                  " 12
15397 at_xfail=no
15398 (
15399   $as_echo "181. $at_setup_line: testing $at_desc ..."
15400   $at_traceon
15401
15402
15403 { set +x
15404 $as_echo "$at_srcdir/rpmvercmp.at:34: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10.1xyz\", \"10xyz\"))}'"
15405 at_fn_check_prepare_trace "rpmvercmp.at:34"
15406 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10.1xyz", "10xyz"))}'
15407 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15408 at_status=$? at_failed=false
15409 $at_check_filter
15410 at_fn_diff_devnull "$at_stderr" || at_failed=:
15411 echo >>"$at_stdout"; $as_echo "1
15412 " | \
15413   $at_diff - "$at_stdout" || at_failed=:
15414 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:34"
15415 $at_failed && at_fn_log_failure
15416 $at_traceon; }
15417
15418   set +x
15419   $at_times_p && times >"$at_times_file"
15420 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15421 read at_status <"$at_status_file"
15422 #AT_STOP_181
15423 #AT_START_182
15424 at_fn_group_banner 182 'rpmvercmp.at:36' \
15425   "rpmvercmp(xyz10, xyz10) = 0" "                    " 12
15426 at_xfail=no
15427 (
15428   $as_echo "182. $at_setup_line: testing $at_desc ..."
15429   $at_traceon
15430
15431
15432 { set +x
15433 $as_echo "$at_srcdir/rpmvercmp.at:36: runroot rpm --eval '%{lua: print(rpm.vercmp(\"xyz10\", \"xyz10\"))}'"
15434 at_fn_check_prepare_trace "rpmvercmp.at:36"
15435 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("xyz10", "xyz10"))}'
15436 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15437 at_status=$? at_failed=false
15438 $at_check_filter
15439 at_fn_diff_devnull "$at_stderr" || at_failed=:
15440 echo >>"$at_stdout"; $as_echo "0
15441 " | \
15442   $at_diff - "$at_stdout" || at_failed=:
15443 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:36"
15444 $at_failed && at_fn_log_failure
15445 $at_traceon; }
15446
15447   set +x
15448   $at_times_p && times >"$at_times_file"
15449 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15450 read at_status <"$at_status_file"
15451 #AT_STOP_182
15452 #AT_START_183
15453 at_fn_group_banner 183 'rpmvercmp.at:37' \
15454   "rpmvercmp(xyz10, xyz10.1) = -1" "                 " 12
15455 at_xfail=no
15456 (
15457   $as_echo "183. $at_setup_line: testing $at_desc ..."
15458   $at_traceon
15459
15460
15461 { set +x
15462 $as_echo "$at_srcdir/rpmvercmp.at:37: runroot rpm --eval '%{lua: print(rpm.vercmp(\"xyz10\", \"xyz10.1\"))}'"
15463 at_fn_check_prepare_trace "rpmvercmp.at:37"
15464 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("xyz10", "xyz10.1"))}'
15465 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15466 at_status=$? at_failed=false
15467 $at_check_filter
15468 at_fn_diff_devnull "$at_stderr" || at_failed=:
15469 echo >>"$at_stdout"; $as_echo "-1
15470 " | \
15471   $at_diff - "$at_stdout" || at_failed=:
15472 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:37"
15473 $at_failed && at_fn_log_failure
15474 $at_traceon; }
15475
15476   set +x
15477   $at_times_p && times >"$at_times_file"
15478 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15479 read at_status <"$at_status_file"
15480 #AT_STOP_183
15481 #AT_START_184
15482 at_fn_group_banner 184 'rpmvercmp.at:38' \
15483   "rpmvercmp(xyz10.1, xyz10) = 1" "                  " 12
15484 at_xfail=no
15485 (
15486   $as_echo "184. $at_setup_line: testing $at_desc ..."
15487   $at_traceon
15488
15489
15490 { set +x
15491 $as_echo "$at_srcdir/rpmvercmp.at:38: runroot rpm --eval '%{lua: print(rpm.vercmp(\"xyz10.1\", \"xyz10\"))}'"
15492 at_fn_check_prepare_trace "rpmvercmp.at:38"
15493 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("xyz10.1", "xyz10"))}'
15494 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15495 at_status=$? at_failed=false
15496 $at_check_filter
15497 at_fn_diff_devnull "$at_stderr" || at_failed=:
15498 echo >>"$at_stdout"; $as_echo "1
15499 " | \
15500   $at_diff - "$at_stdout" || at_failed=:
15501 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:38"
15502 $at_failed && at_fn_log_failure
15503 $at_traceon; }
15504
15505   set +x
15506   $at_times_p && times >"$at_times_file"
15507 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15508 read at_status <"$at_status_file"
15509 #AT_STOP_184
15510 #AT_START_185
15511 at_fn_group_banner 185 'rpmvercmp.at:40' \
15512   "rpmvercmp(xyz.4, xyz.4) = 0" "                    " 12
15513 at_xfail=no
15514 (
15515   $as_echo "185. $at_setup_line: testing $at_desc ..."
15516   $at_traceon
15517
15518
15519 { set +x
15520 $as_echo "$at_srcdir/rpmvercmp.at:40: runroot rpm --eval '%{lua: print(rpm.vercmp(\"xyz.4\", \"xyz.4\"))}'"
15521 at_fn_check_prepare_trace "rpmvercmp.at:40"
15522 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("xyz.4", "xyz.4"))}'
15523 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15524 at_status=$? at_failed=false
15525 $at_check_filter
15526 at_fn_diff_devnull "$at_stderr" || at_failed=:
15527 echo >>"$at_stdout"; $as_echo "0
15528 " | \
15529   $at_diff - "$at_stdout" || at_failed=:
15530 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:40"
15531 $at_failed && at_fn_log_failure
15532 $at_traceon; }
15533
15534   set +x
15535   $at_times_p && times >"$at_times_file"
15536 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15537 read at_status <"$at_status_file"
15538 #AT_STOP_185
15539 #AT_START_186
15540 at_fn_group_banner 186 'rpmvercmp.at:41' \
15541   "rpmvercmp(xyz.4, 8) = -1" "                       " 12
15542 at_xfail=no
15543 (
15544   $as_echo "186. $at_setup_line: testing $at_desc ..."
15545   $at_traceon
15546
15547
15548 { set +x
15549 $as_echo "$at_srcdir/rpmvercmp.at:41: runroot rpm --eval '%{lua: print(rpm.vercmp(\"xyz.4\", \"8\"))}'"
15550 at_fn_check_prepare_trace "rpmvercmp.at:41"
15551 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("xyz.4", "8"))}'
15552 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15553 at_status=$? at_failed=false
15554 $at_check_filter
15555 at_fn_diff_devnull "$at_stderr" || at_failed=:
15556 echo >>"$at_stdout"; $as_echo "-1
15557 " | \
15558   $at_diff - "$at_stdout" || at_failed=:
15559 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:41"
15560 $at_failed && at_fn_log_failure
15561 $at_traceon; }
15562
15563   set +x
15564   $at_times_p && times >"$at_times_file"
15565 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15566 read at_status <"$at_status_file"
15567 #AT_STOP_186
15568 #AT_START_187
15569 at_fn_group_banner 187 'rpmvercmp.at:42' \
15570   "rpmvercmp(8, xyz.4) = 1" "                        " 12
15571 at_xfail=no
15572 (
15573   $as_echo "187. $at_setup_line: testing $at_desc ..."
15574   $at_traceon
15575
15576
15577 { set +x
15578 $as_echo "$at_srcdir/rpmvercmp.at:42: runroot rpm --eval '%{lua: print(rpm.vercmp(\"8\", \"xyz.4\"))}'"
15579 at_fn_check_prepare_trace "rpmvercmp.at:42"
15580 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("8", "xyz.4"))}'
15581 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15582 at_status=$? at_failed=false
15583 $at_check_filter
15584 at_fn_diff_devnull "$at_stderr" || at_failed=:
15585 echo >>"$at_stdout"; $as_echo "1
15586 " | \
15587   $at_diff - "$at_stdout" || at_failed=:
15588 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:42"
15589 $at_failed && at_fn_log_failure
15590 $at_traceon; }
15591
15592   set +x
15593   $at_times_p && times >"$at_times_file"
15594 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15595 read at_status <"$at_status_file"
15596 #AT_STOP_187
15597 #AT_START_188
15598 at_fn_group_banner 188 'rpmvercmp.at:43' \
15599   "rpmvercmp(xyz.4, 2) = -1" "                       " 12
15600 at_xfail=no
15601 (
15602   $as_echo "188. $at_setup_line: testing $at_desc ..."
15603   $at_traceon
15604
15605
15606 { set +x
15607 $as_echo "$at_srcdir/rpmvercmp.at:43: runroot rpm --eval '%{lua: print(rpm.vercmp(\"xyz.4\", \"2\"))}'"
15608 at_fn_check_prepare_trace "rpmvercmp.at:43"
15609 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("xyz.4", "2"))}'
15610 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15611 at_status=$? at_failed=false
15612 $at_check_filter
15613 at_fn_diff_devnull "$at_stderr" || at_failed=:
15614 echo >>"$at_stdout"; $as_echo "-1
15615 " | \
15616   $at_diff - "$at_stdout" || at_failed=:
15617 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:43"
15618 $at_failed && at_fn_log_failure
15619 $at_traceon; }
15620
15621   set +x
15622   $at_times_p && times >"$at_times_file"
15623 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15624 read at_status <"$at_status_file"
15625 #AT_STOP_188
15626 #AT_START_189
15627 at_fn_group_banner 189 'rpmvercmp.at:44' \
15628   "rpmvercmp(2, xyz.4) = 1" "                        " 12
15629 at_xfail=no
15630 (
15631   $as_echo "189. $at_setup_line: testing $at_desc ..."
15632   $at_traceon
15633
15634
15635 { set +x
15636 $as_echo "$at_srcdir/rpmvercmp.at:44: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2\", \"xyz.4\"))}'"
15637 at_fn_check_prepare_trace "rpmvercmp.at:44"
15638 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2", "xyz.4"))}'
15639 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15640 at_status=$? at_failed=false
15641 $at_check_filter
15642 at_fn_diff_devnull "$at_stderr" || at_failed=:
15643 echo >>"$at_stdout"; $as_echo "1
15644 " | \
15645   $at_diff - "$at_stdout" || at_failed=:
15646 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:44"
15647 $at_failed && at_fn_log_failure
15648 $at_traceon; }
15649
15650   set +x
15651   $at_times_p && times >"$at_times_file"
15652 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15653 read at_status <"$at_status_file"
15654 #AT_STOP_189
15655 #AT_START_190
15656 at_fn_group_banner 190 'rpmvercmp.at:46' \
15657   "rpmvercmp(5.5p2, 5.6p1) = -1" "                   " 12
15658 at_xfail=no
15659 (
15660   $as_echo "190. $at_setup_line: testing $at_desc ..."
15661   $at_traceon
15662
15663
15664 { set +x
15665 $as_echo "$at_srcdir/rpmvercmp.at:46: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.5p2\", \"5.6p1\"))}'"
15666 at_fn_check_prepare_trace "rpmvercmp.at:46"
15667 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.5p2", "5.6p1"))}'
15668 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15669 at_status=$? at_failed=false
15670 $at_check_filter
15671 at_fn_diff_devnull "$at_stderr" || at_failed=:
15672 echo >>"$at_stdout"; $as_echo "-1
15673 " | \
15674   $at_diff - "$at_stdout" || at_failed=:
15675 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:46"
15676 $at_failed && at_fn_log_failure
15677 $at_traceon; }
15678
15679   set +x
15680   $at_times_p && times >"$at_times_file"
15681 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15682 read at_status <"$at_status_file"
15683 #AT_STOP_190
15684 #AT_START_191
15685 at_fn_group_banner 191 'rpmvercmp.at:47' \
15686   "rpmvercmp(5.6p1, 5.5p2) = 1" "                    " 12
15687 at_xfail=no
15688 (
15689   $as_echo "191. $at_setup_line: testing $at_desc ..."
15690   $at_traceon
15691
15692
15693 { set +x
15694 $as_echo "$at_srcdir/rpmvercmp.at:47: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.6p1\", \"5.5p2\"))}'"
15695 at_fn_check_prepare_trace "rpmvercmp.at:47"
15696 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.6p1", "5.5p2"))}'
15697 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15698 at_status=$? at_failed=false
15699 $at_check_filter
15700 at_fn_diff_devnull "$at_stderr" || at_failed=:
15701 echo >>"$at_stdout"; $as_echo "1
15702 " | \
15703   $at_diff - "$at_stdout" || at_failed=:
15704 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:47"
15705 $at_failed && at_fn_log_failure
15706 $at_traceon; }
15707
15708   set +x
15709   $at_times_p && times >"$at_times_file"
15710 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15711 read at_status <"$at_status_file"
15712 #AT_STOP_191
15713 #AT_START_192
15714 at_fn_group_banner 192 'rpmvercmp.at:49' \
15715   "rpmvercmp(5.6p1, 6.5p1) = -1" "                   " 12
15716 at_xfail=no
15717 (
15718   $as_echo "192. $at_setup_line: testing $at_desc ..."
15719   $at_traceon
15720
15721
15722 { set +x
15723 $as_echo "$at_srcdir/rpmvercmp.at:49: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.6p1\", \"6.5p1\"))}'"
15724 at_fn_check_prepare_trace "rpmvercmp.at:49"
15725 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.6p1", "6.5p1"))}'
15726 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15727 at_status=$? at_failed=false
15728 $at_check_filter
15729 at_fn_diff_devnull "$at_stderr" || at_failed=:
15730 echo >>"$at_stdout"; $as_echo "-1
15731 " | \
15732   $at_diff - "$at_stdout" || at_failed=:
15733 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:49"
15734 $at_failed && at_fn_log_failure
15735 $at_traceon; }
15736
15737   set +x
15738   $at_times_p && times >"$at_times_file"
15739 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15740 read at_status <"$at_status_file"
15741 #AT_STOP_192
15742 #AT_START_193
15743 at_fn_group_banner 193 'rpmvercmp.at:50' \
15744   "rpmvercmp(6.5p1, 5.6p1) = 1" "                    " 12
15745 at_xfail=no
15746 (
15747   $as_echo "193. $at_setup_line: testing $at_desc ..."
15748   $at_traceon
15749
15750
15751 { set +x
15752 $as_echo "$at_srcdir/rpmvercmp.at:50: runroot rpm --eval '%{lua: print(rpm.vercmp(\"6.5p1\", \"5.6p1\"))}'"
15753 at_fn_check_prepare_trace "rpmvercmp.at:50"
15754 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("6.5p1", "5.6p1"))}'
15755 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15756 at_status=$? at_failed=false
15757 $at_check_filter
15758 at_fn_diff_devnull "$at_stderr" || at_failed=:
15759 echo >>"$at_stdout"; $as_echo "1
15760 " | \
15761   $at_diff - "$at_stdout" || at_failed=:
15762 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:50"
15763 $at_failed && at_fn_log_failure
15764 $at_traceon; }
15765
15766   set +x
15767   $at_times_p && times >"$at_times_file"
15768 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15769 read at_status <"$at_status_file"
15770 #AT_STOP_193
15771 #AT_START_194
15772 at_fn_group_banner 194 'rpmvercmp.at:52' \
15773   "rpmvercmp(6.0.rc1, 6.0) = 1" "                    " 12
15774 at_xfail=no
15775 (
15776   $as_echo "194. $at_setup_line: testing $at_desc ..."
15777   $at_traceon
15778
15779
15780 { set +x
15781 $as_echo "$at_srcdir/rpmvercmp.at:52: runroot rpm --eval '%{lua: print(rpm.vercmp(\"6.0.rc1\", \"6.0\"))}'"
15782 at_fn_check_prepare_trace "rpmvercmp.at:52"
15783 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("6.0.rc1", "6.0"))}'
15784 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15785 at_status=$? at_failed=false
15786 $at_check_filter
15787 at_fn_diff_devnull "$at_stderr" || at_failed=:
15788 echo >>"$at_stdout"; $as_echo "1
15789 " | \
15790   $at_diff - "$at_stdout" || at_failed=:
15791 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:52"
15792 $at_failed && at_fn_log_failure
15793 $at_traceon; }
15794
15795   set +x
15796   $at_times_p && times >"$at_times_file"
15797 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15798 read at_status <"$at_status_file"
15799 #AT_STOP_194
15800 #AT_START_195
15801 at_fn_group_banner 195 'rpmvercmp.at:53' \
15802   "rpmvercmp(6.0, 6.0.rc1) = -1" "                   " 12
15803 at_xfail=no
15804 (
15805   $as_echo "195. $at_setup_line: testing $at_desc ..."
15806   $at_traceon
15807
15808
15809 { set +x
15810 $as_echo "$at_srcdir/rpmvercmp.at:53: runroot rpm --eval '%{lua: print(rpm.vercmp(\"6.0\", \"6.0.rc1\"))}'"
15811 at_fn_check_prepare_trace "rpmvercmp.at:53"
15812 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("6.0", "6.0.rc1"))}'
15813 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15814 at_status=$? at_failed=false
15815 $at_check_filter
15816 at_fn_diff_devnull "$at_stderr" || at_failed=:
15817 echo >>"$at_stdout"; $as_echo "-1
15818 " | \
15819   $at_diff - "$at_stdout" || at_failed=:
15820 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:53"
15821 $at_failed && at_fn_log_failure
15822 $at_traceon; }
15823
15824   set +x
15825   $at_times_p && times >"$at_times_file"
15826 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15827 read at_status <"$at_status_file"
15828 #AT_STOP_195
15829 #AT_START_196
15830 at_fn_group_banner 196 'rpmvercmp.at:55' \
15831   "rpmvercmp(10b2, 10a1) = 1" "                      " 12
15832 at_xfail=no
15833 (
15834   $as_echo "196. $at_setup_line: testing $at_desc ..."
15835   $at_traceon
15836
15837
15838 { set +x
15839 $as_echo "$at_srcdir/rpmvercmp.at:55: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10b2\", \"10a1\"))}'"
15840 at_fn_check_prepare_trace "rpmvercmp.at:55"
15841 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10b2", "10a1"))}'
15842 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15843 at_status=$? at_failed=false
15844 $at_check_filter
15845 at_fn_diff_devnull "$at_stderr" || at_failed=:
15846 echo >>"$at_stdout"; $as_echo "1
15847 " | \
15848   $at_diff - "$at_stdout" || at_failed=:
15849 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:55"
15850 $at_failed && at_fn_log_failure
15851 $at_traceon; }
15852
15853   set +x
15854   $at_times_p && times >"$at_times_file"
15855 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15856 read at_status <"$at_status_file"
15857 #AT_STOP_196
15858 #AT_START_197
15859 at_fn_group_banner 197 'rpmvercmp.at:56' \
15860   "rpmvercmp(10a2, 10b2) = -1" "                     " 12
15861 at_xfail=no
15862 (
15863   $as_echo "197. $at_setup_line: testing $at_desc ..."
15864   $at_traceon
15865
15866
15867 { set +x
15868 $as_echo "$at_srcdir/rpmvercmp.at:56: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10a2\", \"10b2\"))}'"
15869 at_fn_check_prepare_trace "rpmvercmp.at:56"
15870 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10a2", "10b2"))}'
15871 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15872 at_status=$? at_failed=false
15873 $at_check_filter
15874 at_fn_diff_devnull "$at_stderr" || at_failed=:
15875 echo >>"$at_stdout"; $as_echo "-1
15876 " | \
15877   $at_diff - "$at_stdout" || at_failed=:
15878 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:56"
15879 $at_failed && at_fn_log_failure
15880 $at_traceon; }
15881
15882   set +x
15883   $at_times_p && times >"$at_times_file"
15884 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15885 read at_status <"$at_status_file"
15886 #AT_STOP_197
15887 #AT_START_198
15888 at_fn_group_banner 198 'rpmvercmp.at:58' \
15889   "rpmvercmp(1.0aa, 1.0aa) = 0" "                    " 12
15890 at_xfail=no
15891 (
15892   $as_echo "198. $at_setup_line: testing $at_desc ..."
15893   $at_traceon
15894
15895
15896 { set +x
15897 $as_echo "$at_srcdir/rpmvercmp.at:58: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0aa\", \"1.0aa\"))}'"
15898 at_fn_check_prepare_trace "rpmvercmp.at:58"
15899 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0aa", "1.0aa"))}'
15900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15901 at_status=$? at_failed=false
15902 $at_check_filter
15903 at_fn_diff_devnull "$at_stderr" || at_failed=:
15904 echo >>"$at_stdout"; $as_echo "0
15905 " | \
15906   $at_diff - "$at_stdout" || at_failed=:
15907 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:58"
15908 $at_failed && at_fn_log_failure
15909 $at_traceon; }
15910
15911   set +x
15912   $at_times_p && times >"$at_times_file"
15913 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15914 read at_status <"$at_status_file"
15915 #AT_STOP_198
15916 #AT_START_199
15917 at_fn_group_banner 199 'rpmvercmp.at:59' \
15918   "rpmvercmp(1.0a, 1.0aa) = -1" "                    " 12
15919 at_xfail=no
15920 (
15921   $as_echo "199. $at_setup_line: testing $at_desc ..."
15922   $at_traceon
15923
15924
15925 { set +x
15926 $as_echo "$at_srcdir/rpmvercmp.at:59: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0a\", \"1.0aa\"))}'"
15927 at_fn_check_prepare_trace "rpmvercmp.at:59"
15928 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0a", "1.0aa"))}'
15929 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15930 at_status=$? at_failed=false
15931 $at_check_filter
15932 at_fn_diff_devnull "$at_stderr" || at_failed=:
15933 echo >>"$at_stdout"; $as_echo "-1
15934 " | \
15935   $at_diff - "$at_stdout" || at_failed=:
15936 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:59"
15937 $at_failed && at_fn_log_failure
15938 $at_traceon; }
15939
15940   set +x
15941   $at_times_p && times >"$at_times_file"
15942 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15943 read at_status <"$at_status_file"
15944 #AT_STOP_199
15945 #AT_START_200
15946 at_fn_group_banner 200 'rpmvercmp.at:60' \
15947   "rpmvercmp(1.0aa, 1.0a) = 1" "                     " 12
15948 at_xfail=no
15949 (
15950   $as_echo "200. $at_setup_line: testing $at_desc ..."
15951   $at_traceon
15952
15953
15954 { set +x
15955 $as_echo "$at_srcdir/rpmvercmp.at:60: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0aa\", \"1.0a\"))}'"
15956 at_fn_check_prepare_trace "rpmvercmp.at:60"
15957 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0aa", "1.0a"))}'
15958 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15959 at_status=$? at_failed=false
15960 $at_check_filter
15961 at_fn_diff_devnull "$at_stderr" || at_failed=:
15962 echo >>"$at_stdout"; $as_echo "1
15963 " | \
15964   $at_diff - "$at_stdout" || at_failed=:
15965 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:60"
15966 $at_failed && at_fn_log_failure
15967 $at_traceon; }
15968
15969   set +x
15970   $at_times_p && times >"$at_times_file"
15971 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
15972 read at_status <"$at_status_file"
15973 #AT_STOP_200
15974 #AT_START_201
15975 at_fn_group_banner 201 'rpmvercmp.at:62' \
15976   "rpmvercmp(10.0001, 10.0001) = 0" "                " 12
15977 at_xfail=no
15978 (
15979   $as_echo "201. $at_setup_line: testing $at_desc ..."
15980   $at_traceon
15981
15982
15983 { set +x
15984 $as_echo "$at_srcdir/rpmvercmp.at:62: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10.0001\", \"10.0001\"))}'"
15985 at_fn_check_prepare_trace "rpmvercmp.at:62"
15986 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10.0001", "10.0001"))}'
15987 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
15988 at_status=$? at_failed=false
15989 $at_check_filter
15990 at_fn_diff_devnull "$at_stderr" || at_failed=:
15991 echo >>"$at_stdout"; $as_echo "0
15992 " | \
15993   $at_diff - "$at_stdout" || at_failed=:
15994 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:62"
15995 $at_failed && at_fn_log_failure
15996 $at_traceon; }
15997
15998   set +x
15999   $at_times_p && times >"$at_times_file"
16000 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16001 read at_status <"$at_status_file"
16002 #AT_STOP_201
16003 #AT_START_202
16004 at_fn_group_banner 202 'rpmvercmp.at:63' \
16005   "rpmvercmp(10.0001, 10.1) = 0" "                   " 12
16006 at_xfail=no
16007 (
16008   $as_echo "202. $at_setup_line: testing $at_desc ..."
16009   $at_traceon
16010
16011
16012 { set +x
16013 $as_echo "$at_srcdir/rpmvercmp.at:63: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10.0001\", \"10.1\"))}'"
16014 at_fn_check_prepare_trace "rpmvercmp.at:63"
16015 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10.0001", "10.1"))}'
16016 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16017 at_status=$? at_failed=false
16018 $at_check_filter
16019 at_fn_diff_devnull "$at_stderr" || at_failed=:
16020 echo >>"$at_stdout"; $as_echo "0
16021 " | \
16022   $at_diff - "$at_stdout" || at_failed=:
16023 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:63"
16024 $at_failed && at_fn_log_failure
16025 $at_traceon; }
16026
16027   set +x
16028   $at_times_p && times >"$at_times_file"
16029 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16030 read at_status <"$at_status_file"
16031 #AT_STOP_202
16032 #AT_START_203
16033 at_fn_group_banner 203 'rpmvercmp.at:64' \
16034   "rpmvercmp(10.1, 10.0001) = 0" "                   " 12
16035 at_xfail=no
16036 (
16037   $as_echo "203. $at_setup_line: testing $at_desc ..."
16038   $at_traceon
16039
16040
16041 { set +x
16042 $as_echo "$at_srcdir/rpmvercmp.at:64: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10.1\", \"10.0001\"))}'"
16043 at_fn_check_prepare_trace "rpmvercmp.at:64"
16044 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10.1", "10.0001"))}'
16045 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16046 at_status=$? at_failed=false
16047 $at_check_filter
16048 at_fn_diff_devnull "$at_stderr" || at_failed=:
16049 echo >>"$at_stdout"; $as_echo "0
16050 " | \
16051   $at_diff - "$at_stdout" || at_failed=:
16052 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:64"
16053 $at_failed && at_fn_log_failure
16054 $at_traceon; }
16055
16056   set +x
16057   $at_times_p && times >"$at_times_file"
16058 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16059 read at_status <"$at_status_file"
16060 #AT_STOP_203
16061 #AT_START_204
16062 at_fn_group_banner 204 'rpmvercmp.at:65' \
16063   "rpmvercmp(10.0001, 10.0039) = -1" "               " 12
16064 at_xfail=no
16065 (
16066   $as_echo "204. $at_setup_line: testing $at_desc ..."
16067   $at_traceon
16068
16069
16070 { set +x
16071 $as_echo "$at_srcdir/rpmvercmp.at:65: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10.0001\", \"10.0039\"))}'"
16072 at_fn_check_prepare_trace "rpmvercmp.at:65"
16073 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10.0001", "10.0039"))}'
16074 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16075 at_status=$? at_failed=false
16076 $at_check_filter
16077 at_fn_diff_devnull "$at_stderr" || at_failed=:
16078 echo >>"$at_stdout"; $as_echo "-1
16079 " | \
16080   $at_diff - "$at_stdout" || at_failed=:
16081 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:65"
16082 $at_failed && at_fn_log_failure
16083 $at_traceon; }
16084
16085   set +x
16086   $at_times_p && times >"$at_times_file"
16087 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16088 read at_status <"$at_status_file"
16089 #AT_STOP_204
16090 #AT_START_205
16091 at_fn_group_banner 205 'rpmvercmp.at:66' \
16092   "rpmvercmp(10.0039, 10.0001) = 1" "                " 12
16093 at_xfail=no
16094 (
16095   $as_echo "205. $at_setup_line: testing $at_desc ..."
16096   $at_traceon
16097
16098
16099 { set +x
16100 $as_echo "$at_srcdir/rpmvercmp.at:66: runroot rpm --eval '%{lua: print(rpm.vercmp(\"10.0039\", \"10.0001\"))}'"
16101 at_fn_check_prepare_trace "rpmvercmp.at:66"
16102 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("10.0039", "10.0001"))}'
16103 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16104 at_status=$? at_failed=false
16105 $at_check_filter
16106 at_fn_diff_devnull "$at_stderr" || at_failed=:
16107 echo >>"$at_stdout"; $as_echo "1
16108 " | \
16109   $at_diff - "$at_stdout" || at_failed=:
16110 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:66"
16111 $at_failed && at_fn_log_failure
16112 $at_traceon; }
16113
16114   set +x
16115   $at_times_p && times >"$at_times_file"
16116 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16117 read at_status <"$at_status_file"
16118 #AT_STOP_205
16119 #AT_START_206
16120 at_fn_group_banner 206 'rpmvercmp.at:68' \
16121   "rpmvercmp(4.999.9, 5.0) = -1" "                   " 12
16122 at_xfail=no
16123 (
16124   $as_echo "206. $at_setup_line: testing $at_desc ..."
16125   $at_traceon
16126
16127
16128 { set +x
16129 $as_echo "$at_srcdir/rpmvercmp.at:68: runroot rpm --eval '%{lua: print(rpm.vercmp(\"4.999.9\", \"5.0\"))}'"
16130 at_fn_check_prepare_trace "rpmvercmp.at:68"
16131 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("4.999.9", "5.0"))}'
16132 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16133 at_status=$? at_failed=false
16134 $at_check_filter
16135 at_fn_diff_devnull "$at_stderr" || at_failed=:
16136 echo >>"$at_stdout"; $as_echo "-1
16137 " | \
16138   $at_diff - "$at_stdout" || at_failed=:
16139 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:68"
16140 $at_failed && at_fn_log_failure
16141 $at_traceon; }
16142
16143   set +x
16144   $at_times_p && times >"$at_times_file"
16145 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16146 read at_status <"$at_status_file"
16147 #AT_STOP_206
16148 #AT_START_207
16149 at_fn_group_banner 207 'rpmvercmp.at:69' \
16150   "rpmvercmp(5.0, 4.999.9) = 1" "                    " 12
16151 at_xfail=no
16152 (
16153   $as_echo "207. $at_setup_line: testing $at_desc ..."
16154   $at_traceon
16155
16156
16157 { set +x
16158 $as_echo "$at_srcdir/rpmvercmp.at:69: runroot rpm --eval '%{lua: print(rpm.vercmp(\"5.0\", \"4.999.9\"))}'"
16159 at_fn_check_prepare_trace "rpmvercmp.at:69"
16160 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("5.0", "4.999.9"))}'
16161 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16162 at_status=$? at_failed=false
16163 $at_check_filter
16164 at_fn_diff_devnull "$at_stderr" || at_failed=:
16165 echo >>"$at_stdout"; $as_echo "1
16166 " | \
16167   $at_diff - "$at_stdout" || at_failed=:
16168 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:69"
16169 $at_failed && at_fn_log_failure
16170 $at_traceon; }
16171
16172   set +x
16173   $at_times_p && times >"$at_times_file"
16174 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16175 read at_status <"$at_status_file"
16176 #AT_STOP_207
16177 #AT_START_208
16178 at_fn_group_banner 208 'rpmvercmp.at:71' \
16179   "rpmvercmp(20101121, 20101121) = 0" "              " 12
16180 at_xfail=no
16181 (
16182   $as_echo "208. $at_setup_line: testing $at_desc ..."
16183   $at_traceon
16184
16185
16186 { set +x
16187 $as_echo "$at_srcdir/rpmvercmp.at:71: runroot rpm --eval '%{lua: print(rpm.vercmp(\"20101121\", \"20101121\"))}'"
16188 at_fn_check_prepare_trace "rpmvercmp.at:71"
16189 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("20101121", "20101121"))}'
16190 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16191 at_status=$? at_failed=false
16192 $at_check_filter
16193 at_fn_diff_devnull "$at_stderr" || at_failed=:
16194 echo >>"$at_stdout"; $as_echo "0
16195 " | \
16196   $at_diff - "$at_stdout" || at_failed=:
16197 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:71"
16198 $at_failed && at_fn_log_failure
16199 $at_traceon; }
16200
16201   set +x
16202   $at_times_p && times >"$at_times_file"
16203 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16204 read at_status <"$at_status_file"
16205 #AT_STOP_208
16206 #AT_START_209
16207 at_fn_group_banner 209 'rpmvercmp.at:72' \
16208   "rpmvercmp(20101121, 20101122) = -1" "             " 12
16209 at_xfail=no
16210 (
16211   $as_echo "209. $at_setup_line: testing $at_desc ..."
16212   $at_traceon
16213
16214
16215 { set +x
16216 $as_echo "$at_srcdir/rpmvercmp.at:72: runroot rpm --eval '%{lua: print(rpm.vercmp(\"20101121\", \"20101122\"))}'"
16217 at_fn_check_prepare_trace "rpmvercmp.at:72"
16218 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("20101121", "20101122"))}'
16219 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16220 at_status=$? at_failed=false
16221 $at_check_filter
16222 at_fn_diff_devnull "$at_stderr" || at_failed=:
16223 echo >>"$at_stdout"; $as_echo "-1
16224 " | \
16225   $at_diff - "$at_stdout" || at_failed=:
16226 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:72"
16227 $at_failed && at_fn_log_failure
16228 $at_traceon; }
16229
16230   set +x
16231   $at_times_p && times >"$at_times_file"
16232 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16233 read at_status <"$at_status_file"
16234 #AT_STOP_209
16235 #AT_START_210
16236 at_fn_group_banner 210 'rpmvercmp.at:73' \
16237   "rpmvercmp(20101122, 20101121) = 1" "              " 12
16238 at_xfail=no
16239 (
16240   $as_echo "210. $at_setup_line: testing $at_desc ..."
16241   $at_traceon
16242
16243
16244 { set +x
16245 $as_echo "$at_srcdir/rpmvercmp.at:73: runroot rpm --eval '%{lua: print(rpm.vercmp(\"20101122\", \"20101121\"))}'"
16246 at_fn_check_prepare_trace "rpmvercmp.at:73"
16247 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("20101122", "20101121"))}'
16248 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16249 at_status=$? at_failed=false
16250 $at_check_filter
16251 at_fn_diff_devnull "$at_stderr" || at_failed=:
16252 echo >>"$at_stdout"; $as_echo "1
16253 " | \
16254   $at_diff - "$at_stdout" || at_failed=:
16255 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:73"
16256 $at_failed && at_fn_log_failure
16257 $at_traceon; }
16258
16259   set +x
16260   $at_times_p && times >"$at_times_file"
16261 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16262 read at_status <"$at_status_file"
16263 #AT_STOP_210
16264 #AT_START_211
16265 at_fn_group_banner 211 'rpmvercmp.at:75' \
16266   "rpmvercmp(2_0, 2_0) = 0" "                        " 12
16267 at_xfail=no
16268 (
16269   $as_echo "211. $at_setup_line: testing $at_desc ..."
16270   $at_traceon
16271
16272
16273 { set +x
16274 $as_echo "$at_srcdir/rpmvercmp.at:75: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2_0\", \"2_0\"))}'"
16275 at_fn_check_prepare_trace "rpmvercmp.at:75"
16276 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2_0", "2_0"))}'
16277 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16278 at_status=$? at_failed=false
16279 $at_check_filter
16280 at_fn_diff_devnull "$at_stderr" || at_failed=:
16281 echo >>"$at_stdout"; $as_echo "0
16282 " | \
16283   $at_diff - "$at_stdout" || at_failed=:
16284 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:75"
16285 $at_failed && at_fn_log_failure
16286 $at_traceon; }
16287
16288   set +x
16289   $at_times_p && times >"$at_times_file"
16290 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16291 read at_status <"$at_status_file"
16292 #AT_STOP_211
16293 #AT_START_212
16294 at_fn_group_banner 212 'rpmvercmp.at:76' \
16295   "rpmvercmp(2.0, 2_0) = 0" "                        " 12
16296 at_xfail=no
16297 (
16298   $as_echo "212. $at_setup_line: testing $at_desc ..."
16299   $at_traceon
16300
16301
16302 { set +x
16303 $as_echo "$at_srcdir/rpmvercmp.at:76: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2.0\", \"2_0\"))}'"
16304 at_fn_check_prepare_trace "rpmvercmp.at:76"
16305 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2.0", "2_0"))}'
16306 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16307 at_status=$? at_failed=false
16308 $at_check_filter
16309 at_fn_diff_devnull "$at_stderr" || at_failed=:
16310 echo >>"$at_stdout"; $as_echo "0
16311 " | \
16312   $at_diff - "$at_stdout" || at_failed=:
16313 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:76"
16314 $at_failed && at_fn_log_failure
16315 $at_traceon; }
16316
16317   set +x
16318   $at_times_p && times >"$at_times_file"
16319 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16320 read at_status <"$at_status_file"
16321 #AT_STOP_212
16322 #AT_START_213
16323 at_fn_group_banner 213 'rpmvercmp.at:77' \
16324   "rpmvercmp(2_0, 2.0) = 0" "                        " 12
16325 at_xfail=no
16326 (
16327   $as_echo "213. $at_setup_line: testing $at_desc ..."
16328   $at_traceon
16329
16330
16331 { set +x
16332 $as_echo "$at_srcdir/rpmvercmp.at:77: runroot rpm --eval '%{lua: print(rpm.vercmp(\"2_0\", \"2.0\"))}'"
16333 at_fn_check_prepare_trace "rpmvercmp.at:77"
16334 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("2_0", "2.0"))}'
16335 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16336 at_status=$? at_failed=false
16337 $at_check_filter
16338 at_fn_diff_devnull "$at_stderr" || at_failed=:
16339 echo >>"$at_stdout"; $as_echo "0
16340 " | \
16341   $at_diff - "$at_stdout" || at_failed=:
16342 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:77"
16343 $at_failed && at_fn_log_failure
16344 $at_traceon; }
16345
16346   set +x
16347   $at_times_p && times >"$at_times_file"
16348 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16349 read at_status <"$at_status_file"
16350 #AT_STOP_213
16351 #AT_START_214
16352 at_fn_group_banner 214 'rpmvercmp.at:80' \
16353   "rpmvercmp(a, a) = 0" "                            " 12
16354 at_xfail=no
16355 (
16356   $as_echo "214. $at_setup_line: testing $at_desc ..."
16357   $at_traceon
16358
16359
16360 { set +x
16361 $as_echo "$at_srcdir/rpmvercmp.at:80: runroot rpm --eval '%{lua: print(rpm.vercmp(\"a\", \"a\"))}'"
16362 at_fn_check_prepare_trace "rpmvercmp.at:80"
16363 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("a", "a"))}'
16364 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16365 at_status=$? at_failed=false
16366 $at_check_filter
16367 at_fn_diff_devnull "$at_stderr" || at_failed=:
16368 echo >>"$at_stdout"; $as_echo "0
16369 " | \
16370   $at_diff - "$at_stdout" || at_failed=:
16371 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:80"
16372 $at_failed && at_fn_log_failure
16373 $at_traceon; }
16374
16375   set +x
16376   $at_times_p && times >"$at_times_file"
16377 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16378 read at_status <"$at_status_file"
16379 #AT_STOP_214
16380 #AT_START_215
16381 at_fn_group_banner 215 'rpmvercmp.at:81' \
16382   "rpmvercmp(a+, a+) = 0" "                          " 12
16383 at_xfail=no
16384 (
16385   $as_echo "215. $at_setup_line: testing $at_desc ..."
16386   $at_traceon
16387
16388
16389 { set +x
16390 $as_echo "$at_srcdir/rpmvercmp.at:81: runroot rpm --eval '%{lua: print(rpm.vercmp(\"a+\", \"a+\"))}'"
16391 at_fn_check_prepare_trace "rpmvercmp.at:81"
16392 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("a+", "a+"))}'
16393 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16394 at_status=$? at_failed=false
16395 $at_check_filter
16396 at_fn_diff_devnull "$at_stderr" || at_failed=:
16397 echo >>"$at_stdout"; $as_echo "0
16398 " | \
16399   $at_diff - "$at_stdout" || at_failed=:
16400 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:81"
16401 $at_failed && at_fn_log_failure
16402 $at_traceon; }
16403
16404   set +x
16405   $at_times_p && times >"$at_times_file"
16406 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16407 read at_status <"$at_status_file"
16408 #AT_STOP_215
16409 #AT_START_216
16410 at_fn_group_banner 216 'rpmvercmp.at:82' \
16411   "rpmvercmp(a+, a_) = 0" "                          " 12
16412 at_xfail=no
16413 (
16414   $as_echo "216. $at_setup_line: testing $at_desc ..."
16415   $at_traceon
16416
16417
16418 { set +x
16419 $as_echo "$at_srcdir/rpmvercmp.at:82: runroot rpm --eval '%{lua: print(rpm.vercmp(\"a+\", \"a_\"))}'"
16420 at_fn_check_prepare_trace "rpmvercmp.at:82"
16421 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("a+", "a_"))}'
16422 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16423 at_status=$? at_failed=false
16424 $at_check_filter
16425 at_fn_diff_devnull "$at_stderr" || at_failed=:
16426 echo >>"$at_stdout"; $as_echo "0
16427 " | \
16428   $at_diff - "$at_stdout" || at_failed=:
16429 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:82"
16430 $at_failed && at_fn_log_failure
16431 $at_traceon; }
16432
16433   set +x
16434   $at_times_p && times >"$at_times_file"
16435 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16436 read at_status <"$at_status_file"
16437 #AT_STOP_216
16438 #AT_START_217
16439 at_fn_group_banner 217 'rpmvercmp.at:83' \
16440   "rpmvercmp(a_, a+) = 0" "                          " 12
16441 at_xfail=no
16442 (
16443   $as_echo "217. $at_setup_line: testing $at_desc ..."
16444   $at_traceon
16445
16446
16447 { set +x
16448 $as_echo "$at_srcdir/rpmvercmp.at:83: runroot rpm --eval '%{lua: print(rpm.vercmp(\"a_\", \"a+\"))}'"
16449 at_fn_check_prepare_trace "rpmvercmp.at:83"
16450 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("a_", "a+"))}'
16451 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16452 at_status=$? at_failed=false
16453 $at_check_filter
16454 at_fn_diff_devnull "$at_stderr" || at_failed=:
16455 echo >>"$at_stdout"; $as_echo "0
16456 " | \
16457   $at_diff - "$at_stdout" || at_failed=:
16458 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:83"
16459 $at_failed && at_fn_log_failure
16460 $at_traceon; }
16461
16462   set +x
16463   $at_times_p && times >"$at_times_file"
16464 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16465 read at_status <"$at_status_file"
16466 #AT_STOP_217
16467 #AT_START_218
16468 at_fn_group_banner 218 'rpmvercmp.at:84' \
16469   "rpmvercmp(+a, +a) = 0" "                          " 12
16470 at_xfail=no
16471 (
16472   $as_echo "218. $at_setup_line: testing $at_desc ..."
16473   $at_traceon
16474
16475
16476 { set +x
16477 $as_echo "$at_srcdir/rpmvercmp.at:84: runroot rpm --eval '%{lua: print(rpm.vercmp(\"+a\", \"+a\"))}'"
16478 at_fn_check_prepare_trace "rpmvercmp.at:84"
16479 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("+a", "+a"))}'
16480 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16481 at_status=$? at_failed=false
16482 $at_check_filter
16483 at_fn_diff_devnull "$at_stderr" || at_failed=:
16484 echo >>"$at_stdout"; $as_echo "0
16485 " | \
16486   $at_diff - "$at_stdout" || at_failed=:
16487 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:84"
16488 $at_failed && at_fn_log_failure
16489 $at_traceon; }
16490
16491   set +x
16492   $at_times_p && times >"$at_times_file"
16493 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16494 read at_status <"$at_status_file"
16495 #AT_STOP_218
16496 #AT_START_219
16497 at_fn_group_banner 219 'rpmvercmp.at:85' \
16498   "rpmvercmp(+a, _a) = 0" "                          " 12
16499 at_xfail=no
16500 (
16501   $as_echo "219. $at_setup_line: testing $at_desc ..."
16502   $at_traceon
16503
16504
16505 { set +x
16506 $as_echo "$at_srcdir/rpmvercmp.at:85: runroot rpm --eval '%{lua: print(rpm.vercmp(\"+a\", \"_a\"))}'"
16507 at_fn_check_prepare_trace "rpmvercmp.at:85"
16508 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("+a", "_a"))}'
16509 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16510 at_status=$? at_failed=false
16511 $at_check_filter
16512 at_fn_diff_devnull "$at_stderr" || at_failed=:
16513 echo >>"$at_stdout"; $as_echo "0
16514 " | \
16515   $at_diff - "$at_stdout" || at_failed=:
16516 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:85"
16517 $at_failed && at_fn_log_failure
16518 $at_traceon; }
16519
16520   set +x
16521   $at_times_p && times >"$at_times_file"
16522 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16523 read at_status <"$at_status_file"
16524 #AT_STOP_219
16525 #AT_START_220
16526 at_fn_group_banner 220 'rpmvercmp.at:86' \
16527   "rpmvercmp(_a, +a) = 0" "                          " 12
16528 at_xfail=no
16529 (
16530   $as_echo "220. $at_setup_line: testing $at_desc ..."
16531   $at_traceon
16532
16533
16534 { set +x
16535 $as_echo "$at_srcdir/rpmvercmp.at:86: runroot rpm --eval '%{lua: print(rpm.vercmp(\"_a\", \"+a\"))}'"
16536 at_fn_check_prepare_trace "rpmvercmp.at:86"
16537 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("_a", "+a"))}'
16538 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16539 at_status=$? at_failed=false
16540 $at_check_filter
16541 at_fn_diff_devnull "$at_stderr" || at_failed=:
16542 echo >>"$at_stdout"; $as_echo "0
16543 " | \
16544   $at_diff - "$at_stdout" || at_failed=:
16545 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:86"
16546 $at_failed && at_fn_log_failure
16547 $at_traceon; }
16548
16549   set +x
16550   $at_times_p && times >"$at_times_file"
16551 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16552 read at_status <"$at_status_file"
16553 #AT_STOP_220
16554 #AT_START_221
16555 at_fn_group_banner 221 'rpmvercmp.at:87' \
16556   "rpmvercmp(+_, +_) = 0" "                          " 12
16557 at_xfail=no
16558 (
16559   $as_echo "221. $at_setup_line: testing $at_desc ..."
16560   $at_traceon
16561
16562
16563 { set +x
16564 $as_echo "$at_srcdir/rpmvercmp.at:87: runroot rpm --eval '%{lua: print(rpm.vercmp(\"+_\", \"+_\"))}'"
16565 at_fn_check_prepare_trace "rpmvercmp.at:87"
16566 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("+_", "+_"))}'
16567 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16568 at_status=$? at_failed=false
16569 $at_check_filter
16570 at_fn_diff_devnull "$at_stderr" || at_failed=:
16571 echo >>"$at_stdout"; $as_echo "0
16572 " | \
16573   $at_diff - "$at_stdout" || at_failed=:
16574 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:87"
16575 $at_failed && at_fn_log_failure
16576 $at_traceon; }
16577
16578   set +x
16579   $at_times_p && times >"$at_times_file"
16580 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16581 read at_status <"$at_status_file"
16582 #AT_STOP_221
16583 #AT_START_222
16584 at_fn_group_banner 222 'rpmvercmp.at:88' \
16585   "rpmvercmp(_+, +_) = 0" "                          " 12
16586 at_xfail=no
16587 (
16588   $as_echo "222. $at_setup_line: testing $at_desc ..."
16589   $at_traceon
16590
16591
16592 { set +x
16593 $as_echo "$at_srcdir/rpmvercmp.at:88: runroot rpm --eval '%{lua: print(rpm.vercmp(\"_+\", \"+_\"))}'"
16594 at_fn_check_prepare_trace "rpmvercmp.at:88"
16595 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("_+", "+_"))}'
16596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16597 at_status=$? at_failed=false
16598 $at_check_filter
16599 at_fn_diff_devnull "$at_stderr" || at_failed=:
16600 echo >>"$at_stdout"; $as_echo "0
16601 " | \
16602   $at_diff - "$at_stdout" || at_failed=:
16603 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:88"
16604 $at_failed && at_fn_log_failure
16605 $at_traceon; }
16606
16607   set +x
16608   $at_times_p && times >"$at_times_file"
16609 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16610 read at_status <"$at_status_file"
16611 #AT_STOP_222
16612 #AT_START_223
16613 at_fn_group_banner 223 'rpmvercmp.at:89' \
16614   "rpmvercmp(_+, _+) = 0" "                          " 12
16615 at_xfail=no
16616 (
16617   $as_echo "223. $at_setup_line: testing $at_desc ..."
16618   $at_traceon
16619
16620
16621 { set +x
16622 $as_echo "$at_srcdir/rpmvercmp.at:89: runroot rpm --eval '%{lua: print(rpm.vercmp(\"_+\", \"_+\"))}'"
16623 at_fn_check_prepare_trace "rpmvercmp.at:89"
16624 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("_+", "_+"))}'
16625 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16626 at_status=$? at_failed=false
16627 $at_check_filter
16628 at_fn_diff_devnull "$at_stderr" || at_failed=:
16629 echo >>"$at_stdout"; $as_echo "0
16630 " | \
16631   $at_diff - "$at_stdout" || at_failed=:
16632 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:89"
16633 $at_failed && at_fn_log_failure
16634 $at_traceon; }
16635
16636   set +x
16637   $at_times_p && times >"$at_times_file"
16638 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16639 read at_status <"$at_status_file"
16640 #AT_STOP_223
16641 #AT_START_224
16642 at_fn_group_banner 224 'rpmvercmp.at:90' \
16643   "rpmvercmp(+, _) = 0" "                            " 12
16644 at_xfail=no
16645 (
16646   $as_echo "224. $at_setup_line: testing $at_desc ..."
16647   $at_traceon
16648
16649
16650 { set +x
16651 $as_echo "$at_srcdir/rpmvercmp.at:90: runroot rpm --eval '%{lua: print(rpm.vercmp(\"+\", \"_\"))}'"
16652 at_fn_check_prepare_trace "rpmvercmp.at:90"
16653 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("+", "_"))}'
16654 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16655 at_status=$? at_failed=false
16656 $at_check_filter
16657 at_fn_diff_devnull "$at_stderr" || at_failed=:
16658 echo >>"$at_stdout"; $as_echo "0
16659 " | \
16660   $at_diff - "$at_stdout" || at_failed=:
16661 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:90"
16662 $at_failed && at_fn_log_failure
16663 $at_traceon; }
16664
16665   set +x
16666   $at_times_p && times >"$at_times_file"
16667 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16668 read at_status <"$at_status_file"
16669 #AT_STOP_224
16670 #AT_START_225
16671 at_fn_group_banner 225 'rpmvercmp.at:91' \
16672   "rpmvercmp(_, +) = 0" "                            " 12
16673 at_xfail=no
16674 (
16675   $as_echo "225. $at_setup_line: testing $at_desc ..."
16676   $at_traceon
16677
16678
16679 { set +x
16680 $as_echo "$at_srcdir/rpmvercmp.at:91: runroot rpm --eval '%{lua: print(rpm.vercmp(\"_\", \"+\"))}'"
16681 at_fn_check_prepare_trace "rpmvercmp.at:91"
16682 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("_", "+"))}'
16683 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16684 at_status=$? at_failed=false
16685 $at_check_filter
16686 at_fn_diff_devnull "$at_stderr" || at_failed=:
16687 echo >>"$at_stdout"; $as_echo "0
16688 " | \
16689   $at_diff - "$at_stdout" || at_failed=:
16690 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:91"
16691 $at_failed && at_fn_log_failure
16692 $at_traceon; }
16693
16694   set +x
16695   $at_times_p && times >"$at_times_file"
16696 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16697 read at_status <"$at_status_file"
16698 #AT_STOP_225
16699 #AT_START_226
16700 at_fn_group_banner 226 'rpmvercmp.at:94' \
16701   "rpmvercmp(1.0~rc1, 1.0~rc1) = 0" "                " 12
16702 at_xfail=no
16703 (
16704   $as_echo "226. $at_setup_line: testing $at_desc ..."
16705   $at_traceon
16706
16707
16708 { set +x
16709 $as_echo "$at_srcdir/rpmvercmp.at:94: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0~rc1\", \"1.0~rc1\"))}'"
16710 at_fn_check_prepare_trace "rpmvercmp.at:94"
16711 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0~rc1", "1.0~rc1"))}'
16712 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16713 at_status=$? at_failed=false
16714 $at_check_filter
16715 at_fn_diff_devnull "$at_stderr" || at_failed=:
16716 echo >>"$at_stdout"; $as_echo "0
16717 " | \
16718   $at_diff - "$at_stdout" || at_failed=:
16719 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:94"
16720 $at_failed && at_fn_log_failure
16721 $at_traceon; }
16722
16723   set +x
16724   $at_times_p && times >"$at_times_file"
16725 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16726 read at_status <"$at_status_file"
16727 #AT_STOP_226
16728 #AT_START_227
16729 at_fn_group_banner 227 'rpmvercmp.at:95' \
16730   "rpmvercmp(1.0~rc1, 1.0) = -1" "                   " 12
16731 at_xfail=no
16732 (
16733   $as_echo "227. $at_setup_line: testing $at_desc ..."
16734   $at_traceon
16735
16736
16737 { set +x
16738 $as_echo "$at_srcdir/rpmvercmp.at:95: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0~rc1\", \"1.0\"))}'"
16739 at_fn_check_prepare_trace "rpmvercmp.at:95"
16740 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0~rc1", "1.0"))}'
16741 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16742 at_status=$? at_failed=false
16743 $at_check_filter
16744 at_fn_diff_devnull "$at_stderr" || at_failed=:
16745 echo >>"$at_stdout"; $as_echo "-1
16746 " | \
16747   $at_diff - "$at_stdout" || at_failed=:
16748 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:95"
16749 $at_failed && at_fn_log_failure
16750 $at_traceon; }
16751
16752   set +x
16753   $at_times_p && times >"$at_times_file"
16754 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16755 read at_status <"$at_status_file"
16756 #AT_STOP_227
16757 #AT_START_228
16758 at_fn_group_banner 228 'rpmvercmp.at:96' \
16759   "rpmvercmp(1.0, 1.0~rc1) = 1" "                    " 12
16760 at_xfail=no
16761 (
16762   $as_echo "228. $at_setup_line: testing $at_desc ..."
16763   $at_traceon
16764
16765
16766 { set +x
16767 $as_echo "$at_srcdir/rpmvercmp.at:96: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0\", \"1.0~rc1\"))}'"
16768 at_fn_check_prepare_trace "rpmvercmp.at:96"
16769 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0", "1.0~rc1"))}'
16770 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16771 at_status=$? at_failed=false
16772 $at_check_filter
16773 at_fn_diff_devnull "$at_stderr" || at_failed=:
16774 echo >>"$at_stdout"; $as_echo "1
16775 " | \
16776   $at_diff - "$at_stdout" || at_failed=:
16777 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:96"
16778 $at_failed && at_fn_log_failure
16779 $at_traceon; }
16780
16781   set +x
16782   $at_times_p && times >"$at_times_file"
16783 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16784 read at_status <"$at_status_file"
16785 #AT_STOP_228
16786 #AT_START_229
16787 at_fn_group_banner 229 'rpmvercmp.at:97' \
16788   "rpmvercmp(1.0~rc1, 1.0~rc2) = -1" "               " 12
16789 at_xfail=no
16790 (
16791   $as_echo "229. $at_setup_line: testing $at_desc ..."
16792   $at_traceon
16793
16794
16795 { set +x
16796 $as_echo "$at_srcdir/rpmvercmp.at:97: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0~rc1\", \"1.0~rc2\"))}'"
16797 at_fn_check_prepare_trace "rpmvercmp.at:97"
16798 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0~rc1", "1.0~rc2"))}'
16799 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16800 at_status=$? at_failed=false
16801 $at_check_filter
16802 at_fn_diff_devnull "$at_stderr" || at_failed=:
16803 echo >>"$at_stdout"; $as_echo "-1
16804 " | \
16805   $at_diff - "$at_stdout" || at_failed=:
16806 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:97"
16807 $at_failed && at_fn_log_failure
16808 $at_traceon; }
16809
16810   set +x
16811   $at_times_p && times >"$at_times_file"
16812 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16813 read at_status <"$at_status_file"
16814 #AT_STOP_229
16815 #AT_START_230
16816 at_fn_group_banner 230 'rpmvercmp.at:98' \
16817   "rpmvercmp(1.0~rc2, 1.0~rc1) = 1" "                " 12
16818 at_xfail=no
16819 (
16820   $as_echo "230. $at_setup_line: testing $at_desc ..."
16821   $at_traceon
16822
16823
16824 { set +x
16825 $as_echo "$at_srcdir/rpmvercmp.at:98: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0~rc2\", \"1.0~rc1\"))}'"
16826 at_fn_check_prepare_trace "rpmvercmp.at:98"
16827 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0~rc2", "1.0~rc1"))}'
16828 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16829 at_status=$? at_failed=false
16830 $at_check_filter
16831 at_fn_diff_devnull "$at_stderr" || at_failed=:
16832 echo >>"$at_stdout"; $as_echo "1
16833 " | \
16834   $at_diff - "$at_stdout" || at_failed=:
16835 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:98"
16836 $at_failed && at_fn_log_failure
16837 $at_traceon; }
16838
16839   set +x
16840   $at_times_p && times >"$at_times_file"
16841 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16842 read at_status <"$at_status_file"
16843 #AT_STOP_230
16844 #AT_START_231
16845 at_fn_group_banner 231 'rpmvercmp.at:99' \
16846   "rpmvercmp(1.0~rc1~git123, 1.0~rc1~git123) = 0" "  " 12
16847 at_xfail=no
16848 (
16849   $as_echo "231. $at_setup_line: testing $at_desc ..."
16850   $at_traceon
16851
16852
16853 { set +x
16854 $as_echo "$at_srcdir/rpmvercmp.at:99: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0~rc1~git123\", \"1.0~rc1~git123\"))}'"
16855 at_fn_check_prepare_trace "rpmvercmp.at:99"
16856 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0~rc1~git123", "1.0~rc1~git123"))}'
16857 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16858 at_status=$? at_failed=false
16859 $at_check_filter
16860 at_fn_diff_devnull "$at_stderr" || at_failed=:
16861 echo >>"$at_stdout"; $as_echo "0
16862 " | \
16863   $at_diff - "$at_stdout" || at_failed=:
16864 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:99"
16865 $at_failed && at_fn_log_failure
16866 $at_traceon; }
16867
16868   set +x
16869   $at_times_p && times >"$at_times_file"
16870 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16871 read at_status <"$at_status_file"
16872 #AT_STOP_231
16873 #AT_START_232
16874 at_fn_group_banner 232 'rpmvercmp.at:100' \
16875   "rpmvercmp(1.0~rc1~git123, 1.0~rc1) = -1" "        " 12
16876 at_xfail=no
16877 (
16878   $as_echo "232. $at_setup_line: testing $at_desc ..."
16879   $at_traceon
16880
16881
16882 { set +x
16883 $as_echo "$at_srcdir/rpmvercmp.at:100: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0~rc1~git123\", \"1.0~rc1\"))}'"
16884 at_fn_check_prepare_trace "rpmvercmp.at:100"
16885 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0~rc1~git123", "1.0~rc1"))}'
16886 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16887 at_status=$? at_failed=false
16888 $at_check_filter
16889 at_fn_diff_devnull "$at_stderr" || at_failed=:
16890 echo >>"$at_stdout"; $as_echo "-1
16891 " | \
16892   $at_diff - "$at_stdout" || at_failed=:
16893 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:100"
16894 $at_failed && at_fn_log_failure
16895 $at_traceon; }
16896
16897   set +x
16898   $at_times_p && times >"$at_times_file"
16899 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16900 read at_status <"$at_status_file"
16901 #AT_STOP_232
16902 #AT_START_233
16903 at_fn_group_banner 233 'rpmvercmp.at:101' \
16904   "rpmvercmp(1.0~rc1, 1.0~rc1~git123) = 1" "         " 12
16905 at_xfail=no
16906 (
16907   $as_echo "233. $at_setup_line: testing $at_desc ..."
16908   $at_traceon
16909
16910
16911 { set +x
16912 $as_echo "$at_srcdir/rpmvercmp.at:101: runroot rpm --eval '%{lua: print(rpm.vercmp(\"1.0~rc1\", \"1.0~rc1~git123\"))}'"
16913 at_fn_check_prepare_trace "rpmvercmp.at:101"
16914 ( $at_check_trace; runroot rpm --eval '%{lua: print(rpm.vercmp("1.0~rc1", "1.0~rc1~git123"))}'
16915 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16916 at_status=$? at_failed=false
16917 $at_check_filter
16918 at_fn_diff_devnull "$at_stderr" || at_failed=:
16919 echo >>"$at_stdout"; $as_echo "1
16920 " | \
16921   $at_diff - "$at_stdout" || at_failed=:
16922 at_fn_check_status 0 $at_status "$at_srcdir/rpmvercmp.at:101"
16923 $at_failed && at_fn_log_failure
16924 $at_traceon; }
16925
16926   set +x
16927   $at_times_p && times >"$at_times_file"
16928 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16929 read at_status <"$at_status_file"
16930 #AT_STOP_233
16931 #AT_START_234
16932 at_fn_group_banner 234 'rpmdeps.at:7' \
16933   "missing dependency" "                             " 13
16934 at_xfail=no
16935 (
16936   $as_echo "234. $at_setup_line: testing $at_desc ..."
16937   $at_traceon
16938
16939
16940 { set +x
16941 $as_echo "$at_srcdir/rpmdeps.at:9:
16942
16943 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
16944
16945
16946 runroot rpm --initdb
16947
16948 rm -rf \"\${TOPDIR}\"
16949
16950 runroot rpmbuild --quiet -bb \\
16951         --define \"pkg one\" \\
16952         --define \"reqs deptest-two\" \\
16953           /data/SPECS/deptest.spec
16954
16955 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
16956 "
16957 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:9"
16958 ( $at_check_trace;
16959
16960 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
16961
16962
16963 runroot rpm --initdb
16964
16965 rm -rf "${TOPDIR}"
16966
16967 runroot rpmbuild --quiet -bb \
16968         --define "pkg one" \
16969         --define "reqs deptest-two" \
16970           /data/SPECS/deptest.spec
16971
16972 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
16973
16974 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16975 at_status=$? at_failed=false
16976 $at_check_filter
16977 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
16978         deptest-two is needed by deptest-one-1.0-1.noarch
16979 " | \
16980   $at_diff - "$at_stderr" || at_failed=:
16981 at_fn_diff_devnull "$at_stdout" || at_failed=:
16982 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:9"
16983 $at_failed && at_fn_log_failure
16984 $at_traceon; }
16985
16986   set +x
16987   $at_times_p && times >"$at_times_file"
16988 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
16989 read at_status <"$at_status_file"
16990 #AT_STOP_234
16991 #AT_START_235
16992 at_fn_group_banner 235 'rpmdeps.at:30' \
16993   "cross-depending packages" "                       " 13
16994 at_xfail=no
16995 (
16996   $as_echo "235. $at_setup_line: testing $at_desc ..."
16997   $at_traceon
16998
16999
17000 { set +x
17001 $as_echo "$at_srcdir/rpmdeps.at:32:
17002
17003 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17004
17005
17006 runroot rpm --initdb
17007
17008 rm -rf \"\${TOPDIR}\"
17009
17010 runroot rpmbuild --quiet -bb \\
17011         --define \"pkg one\" \\
17012         --define \"reqs deptest-two\" \\
17013           /data/SPECS/deptest.spec
17014
17015 runroot rpmbuild --quiet -bb \\
17016         --define \"pkg two\" \\
17017         --define \"reqs deptest-one\" \\
17018           /data/SPECS/deptest.spec
17019
17020 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17021 "
17022 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:32"
17023 ( $at_check_trace;
17024
17025 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17026
17027
17028 runroot rpm --initdb
17029
17030 rm -rf "${TOPDIR}"
17031
17032 runroot rpmbuild --quiet -bb \
17033         --define "pkg one" \
17034         --define "reqs deptest-two" \
17035           /data/SPECS/deptest.spec
17036
17037 runroot rpmbuild --quiet -bb \
17038         --define "pkg two" \
17039         --define "reqs deptest-one" \
17040           /data/SPECS/deptest.spec
17041
17042 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17043
17044 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17045 at_status=$? at_failed=false
17046 $at_check_filter
17047 at_fn_diff_devnull "$at_stderr" || at_failed=:
17048 at_fn_diff_devnull "$at_stdout" || at_failed=:
17049 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:32"
17050 $at_failed && at_fn_log_failure
17051 $at_traceon; }
17052
17053   set +x
17054   $at_times_p && times >"$at_times_file"
17055 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17056 read at_status <"$at_status_file"
17057 #AT_STOP_235
17058 #AT_START_236
17059 at_fn_group_banner 236 'rpmdeps.at:56' \
17060   "unsatisfied versioned require" "                  " 13
17061 at_xfail=no
17062 (
17063   $as_echo "236. $at_setup_line: testing $at_desc ..."
17064   $at_traceon
17065
17066
17067 { set +x
17068 $as_echo "$at_srcdir/rpmdeps.at:58:
17069
17070 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17071
17072
17073 runroot rpm --initdb
17074
17075 rm -rf \"\${TOPDIR}\"
17076
17077 runroot rpmbuild --quiet -bb \\
17078         --define \"pkg one\" \\
17079         --define \"reqs deptest-two >= 2.0\" \\
17080           /data/SPECS/deptest.spec
17081
17082 runroot rpmbuild --quiet -bb \\
17083         --define \"pkg two\" \\
17084         --define \"provs deptest-foo = 1.0\" \\
17085           /data/SPECS/deptest.spec
17086
17087 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17088 "
17089 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:58"
17090 ( $at_check_trace;
17091
17092 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17093
17094
17095 runroot rpm --initdb
17096
17097 rm -rf "${TOPDIR}"
17098
17099 runroot rpmbuild --quiet -bb \
17100         --define "pkg one" \
17101         --define "reqs deptest-two >= 2.0" \
17102           /data/SPECS/deptest.spec
17103
17104 runroot rpmbuild --quiet -bb \
17105         --define "pkg two" \
17106         --define "provs deptest-foo = 1.0" \
17107           /data/SPECS/deptest.spec
17108
17109 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17110
17111 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17112 at_status=$? at_failed=false
17113 $at_check_filter
17114 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17115         deptest-two >= 2.0 is needed by deptest-one-1.0-1.noarch
17116 " | \
17117   $at_diff - "$at_stderr" || at_failed=:
17118 at_fn_diff_devnull "$at_stdout" || at_failed=:
17119 at_fn_check_status 2 $at_status "$at_srcdir/rpmdeps.at:58"
17120 $at_failed && at_fn_log_failure
17121 $at_traceon; }
17122
17123   set +x
17124   $at_times_p && times >"$at_times_file"
17125 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17126 read at_status <"$at_status_file"
17127 #AT_STOP_236
17128 #AT_START_237
17129 at_fn_group_banner 237 'rpmdeps.at:84' \
17130   "satisfied versioned require" "                    " 13
17131 at_xfail=no
17132 (
17133   $as_echo "237. $at_setup_line: testing $at_desc ..."
17134   $at_traceon
17135
17136
17137 { set +x
17138 $as_echo "$at_srcdir/rpmdeps.at:86:
17139
17140 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17141
17142
17143 runroot rpm --initdb
17144
17145 rm -rf \"\${TOPDIR}\"
17146
17147 runroot rpmbuild --quiet -bb \\
17148         --define \"pkg one\" \\
17149         --define \"reqs deptest-foo >= 2.0\" \\
17150           /data/SPECS/deptest.spec
17151
17152 runroot rpmbuild --quiet -bb \\
17153         --define \"pkg two\" \\
17154         --define \"provs deptest-foo = 2.0\" \\
17155           /data/SPECS/deptest.spec
17156
17157 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17158 "
17159 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:86"
17160 ( $at_check_trace;
17161
17162 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17163
17164
17165 runroot rpm --initdb
17166
17167 rm -rf "${TOPDIR}"
17168
17169 runroot rpmbuild --quiet -bb \
17170         --define "pkg one" \
17171         --define "reqs deptest-foo >= 2.0" \
17172           /data/SPECS/deptest.spec
17173
17174 runroot rpmbuild --quiet -bb \
17175         --define "pkg two" \
17176         --define "provs deptest-foo = 2.0" \
17177           /data/SPECS/deptest.spec
17178
17179 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17180
17181 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17182 at_status=$? at_failed=false
17183 $at_check_filter
17184 at_fn_diff_devnull "$at_stderr" || at_failed=:
17185 at_fn_diff_devnull "$at_stdout" || at_failed=:
17186 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:86"
17187 $at_failed && at_fn_log_failure
17188 $at_traceon; }
17189
17190   set +x
17191   $at_times_p && times >"$at_times_file"
17192 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17193 read at_status <"$at_status_file"
17194 #AT_STOP_237
17195 #AT_START_238
17196 at_fn_group_banner 238 'rpmdeps.at:110' \
17197   "versioned conflict in transaction" "              " 13
17198 at_xfail=no
17199 (
17200   $as_echo "238. $at_setup_line: testing $at_desc ..."
17201   $at_traceon
17202
17203
17204 { set +x
17205 $as_echo "$at_srcdir/rpmdeps.at:112:
17206
17207 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17208
17209
17210 runroot rpm --initdb
17211
17212 rm -rf \"\${TOPDIR}\"
17213
17214 runroot rpmbuild --quiet -bb \\
17215         --define \"pkg one\" \\
17216         --define \"cfls deptest-two < 2.0\" \\
17217           /data/SPECS/deptest.spec
17218
17219 runroot rpmbuild --quiet -bb \\
17220         --define \"pkg two\" \\
17221           /data/SPECS/deptest.spec
17222
17223 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17224 "
17225 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:112"
17226 ( $at_check_trace;
17227
17228 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17229
17230
17231 runroot rpm --initdb
17232
17233 rm -rf "${TOPDIR}"
17234
17235 runroot rpmbuild --quiet -bb \
17236         --define "pkg one" \
17237         --define "cfls deptest-two < 2.0" \
17238           /data/SPECS/deptest.spec
17239
17240 runroot rpmbuild --quiet -bb \
17241         --define "pkg two" \
17242           /data/SPECS/deptest.spec
17243
17244 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17245
17246 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17247 at_status=$? at_failed=false
17248 $at_check_filter
17249 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17250         deptest-two < 2.0 conflicts with deptest-one-1.0-1.noarch
17251 " | \
17252   $at_diff - "$at_stderr" || at_failed=:
17253 at_fn_diff_devnull "$at_stdout" || at_failed=:
17254 at_fn_check_status 2 $at_status "$at_srcdir/rpmdeps.at:112"
17255 $at_failed && at_fn_log_failure
17256 $at_traceon; }
17257
17258   set +x
17259   $at_times_p && times >"$at_times_file"
17260 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17261 read at_status <"$at_status_file"
17262 #AT_STOP_238
17263 #AT_START_239
17264 at_fn_group_banner 239 'rpmdeps.at:137' \
17265   "versioned conflict in database" "                 " 13
17266 at_xfail=no
17267 (
17268   $as_echo "239. $at_setup_line: testing $at_desc ..."
17269   $at_traceon
17270
17271
17272 { set +x
17273 $as_echo "$at_srcdir/rpmdeps.at:139:
17274
17275 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17276
17277
17278 runroot rpm --initdb
17279
17280 rm -rf \"\${TOPDIR}\"
17281
17282 runroot rpmbuild --quiet -bb \\
17283         --define \"pkg one\" \\
17284         --define \"cfls deptest-two < 2.0\" \\
17285           /data/SPECS/deptest.spec
17286
17287 runroot rpmbuild --quiet -bb \\
17288         --define \"pkg two\" \\
17289           /data/SPECS/deptest.spec
17290
17291 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17292 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17293 "
17294 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:139"
17295 ( $at_check_trace;
17296
17297 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17298
17299
17300 runroot rpm --initdb
17301
17302 rm -rf "${TOPDIR}"
17303
17304 runroot rpmbuild --quiet -bb \
17305         --define "pkg one" \
17306         --define "cfls deptest-two < 2.0" \
17307           /data/SPECS/deptest.spec
17308
17309 runroot rpmbuild --quiet -bb \
17310         --define "pkg two" \
17311           /data/SPECS/deptest.spec
17312
17313 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17314 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17315
17316 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17317 at_status=$? at_failed=false
17318 $at_check_filter
17319 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17320         deptest-two < 2.0 conflicts with (installed) deptest-one-1.0-1.noarch
17321 " | \
17322   $at_diff - "$at_stderr" || at_failed=:
17323 at_fn_diff_devnull "$at_stdout" || at_failed=:
17324 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:139"
17325 $at_failed && at_fn_log_failure
17326 $at_traceon; }
17327
17328   set +x
17329   $at_times_p && times >"$at_times_file"
17330 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17331 read at_status <"$at_status_file"
17332 #AT_STOP_239
17333 #AT_START_240
17334 at_fn_group_banner 240 'rpmdeps.at:163' \
17335   "install and verify self-conflicting package" "    " 13
17336 at_xfail=no
17337 (
17338   $as_echo "240. $at_setup_line: testing $at_desc ..."
17339   $at_traceon
17340
17341
17342 { set +x
17343 $as_echo "$at_srcdir/rpmdeps.at:165:
17344
17345 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17346
17347
17348 runroot rpm --initdb
17349
17350 rm -rf \"\${TOPDIR}\"
17351
17352 runroot rpmbuild --quiet -bb \\
17353         --define \"pkg one\" \\
17354         --define \"provs something\" \\
17355         --define \"cfls something\" \\
17356           /data/SPECS/deptest.spec
17357
17358 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17359 runroot rpm -V --nofiles deptest-one
17360 "
17361 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:165"
17362 ( $at_check_trace;
17363
17364 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17365
17366
17367 runroot rpm --initdb
17368
17369 rm -rf "${TOPDIR}"
17370
17371 runroot rpmbuild --quiet -bb \
17372         --define "pkg one" \
17373         --define "provs something" \
17374         --define "cfls something" \
17375           /data/SPECS/deptest.spec
17376
17377 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17378 runroot rpm -V --nofiles deptest-one
17379
17380 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17381 at_status=$? at_failed=false
17382 $at_check_filter
17383 at_fn_diff_devnull "$at_stderr" || at_failed=:
17384 at_fn_diff_devnull "$at_stdout" || at_failed=:
17385 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:165"
17386 $at_failed && at_fn_log_failure
17387 $at_traceon; }
17388
17389   set +x
17390   $at_times_p && times >"$at_times_file"
17391 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17392 read at_status <"$at_status_file"
17393 #AT_STOP_240
17394 #AT_START_241
17395 at_fn_group_banner 241 'rpmdeps.at:185' \
17396   "explicit file conflicts" "                        " 13
17397 at_xfail=no
17398 (
17399   $as_echo "241. $at_setup_line: testing $at_desc ..."
17400   $at_traceon
17401
17402
17403 { set +x
17404 $as_echo "$at_srcdir/rpmdeps.at:187:
17405
17406 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17407
17408
17409 runroot rpm --initdb
17410
17411 rm -rf \"\${TOPDIR}\"
17412
17413 runroot rpmbuild --quiet -bb \\
17414         --define \"pkg one\" \\
17415         --define \"cfls /opt/bar\" \\
17416           /data/SPECS/deptest.spec
17417
17418 runroot rpmbuild --quiet -bb \\
17419         --define \"pkg two\" \\
17420           /data/SPECS/deptest.spec
17421
17422 runroot rpm -U --test \\
17423         /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm \\
17424         /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17425 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17426 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17427 runroot rpm -e deptest-one
17428 # XXX FIXME: rpm's problem message for this case is higly bogus.
17429 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17430 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17431 runroot rpm -e deptest-two
17432 "
17433 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:187"
17434 ( $at_check_trace;
17435
17436 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17437
17438
17439 runroot rpm --initdb
17440
17441 rm -rf "${TOPDIR}"
17442
17443 runroot rpmbuild --quiet -bb \
17444         --define "pkg one" \
17445         --define "cfls /opt/bar" \
17446           /data/SPECS/deptest.spec
17447
17448 runroot rpmbuild --quiet -bb \
17449         --define "pkg two" \
17450           /data/SPECS/deptest.spec
17451
17452 runroot rpm -U --test \
17453         /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm \
17454         /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17455 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17456 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17457 runroot rpm -e deptest-one
17458 # XXX FIXME: rpm's problem message for this case is higly bogus.
17459 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17460 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17461 runroot rpm -e deptest-two
17462
17463 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17464 at_status=$? at_failed=false
17465 $at_check_filter
17466 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17467         /opt/bar conflicts with deptest-one-1.0-1.noarch
17468 error: Failed dependencies:
17469         /opt/bar conflicts with (installed) deptest-one-1.0-1.noarch
17470 error: Failed dependencies:
17471         /opt/bar conflicts with deptest-one-1.0-1.noarch
17472 " | \
17473   $at_diff - "$at_stderr" || at_failed=:
17474 at_fn_diff_devnull "$at_stdout" || at_failed=:
17475 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:187"
17476 $at_failed && at_fn_log_failure
17477 $at_traceon; }
17478
17479   set +x
17480   $at_times_p && times >"$at_times_file"
17481 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17482 read at_status <"$at_status_file"
17483 #AT_STOP_241
17484 #AT_START_242
17485 at_fn_group_banner 242 'rpmdeps.at:224' \
17486   "erase to break dependencies" "                    " 13
17487 at_xfail=no
17488 (
17489   $as_echo "242. $at_setup_line: testing $at_desc ..."
17490   $at_traceon
17491
17492
17493 { set +x
17494 $as_echo "$at_srcdir/rpmdeps.at:226:
17495
17496 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17497
17498
17499 runroot rpm --initdb
17500
17501 rm -rf \"\${TOPDIR}\"
17502
17503 runroot rpmbuild --quiet -bb \\
17504         --define \"pkg one\" \\
17505         --define \"reqs deptest-foo >= 2.0\" \\
17506           /data/SPECS/deptest.spec
17507
17508 runroot rpmbuild --quiet -bb \\
17509         --define \"pkg two\" \\
17510         --define \"provs deptest-foo = 2.0\" \\
17511           /data/SPECS/deptest.spec
17512
17513 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17514 runroot rpm -e deptest-two
17515 "
17516 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:226"
17517 ( $at_check_trace;
17518
17519 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17520
17521
17522 runroot rpm --initdb
17523
17524 rm -rf "${TOPDIR}"
17525
17526 runroot rpmbuild --quiet -bb \
17527         --define "pkg one" \
17528         --define "reqs deptest-foo >= 2.0" \
17529           /data/SPECS/deptest.spec
17530
17531 runroot rpmbuild --quiet -bb \
17532         --define "pkg two" \
17533         --define "provs deptest-foo = 2.0" \
17534           /data/SPECS/deptest.spec
17535
17536 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17537 runroot rpm -e deptest-two
17538
17539 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17540 at_status=$? at_failed=false
17541 $at_check_filter
17542 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17543         deptest-foo >= 2.0 is needed by (installed) deptest-one-1.0-1.noarch
17544 " | \
17545   $at_diff - "$at_stderr" || at_failed=:
17546 at_fn_diff_devnull "$at_stdout" || at_failed=:
17547 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:226"
17548 $at_failed && at_fn_log_failure
17549 $at_traceon; }
17550
17551   set +x
17552   $at_times_p && times >"$at_times_file"
17553 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17554 read at_status <"$at_status_file"
17555 #AT_STOP_242
17556 #AT_START_243
17557 at_fn_group_banner 243 'rpmdeps.at:252' \
17558   "erase to break colored file dependency" "         " 13
17559 at_xfail=no
17560 (
17561   $as_echo "243. $at_setup_line: testing $at_desc ..."
17562   $at_traceon
17563
17564
17565 { set +x
17566 $as_echo "$at_srcdir/rpmdeps.at:254:
17567
17568 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17569
17570
17571 runroot rpm --initdb
17572
17573 rm -rf \"\${TOPDIR}\"
17574
17575 runroot rpmbuild --quiet -bb \\
17576         --define \"pkg hello\" \\
17577         --define \"reqs /usr/bin/hello\" \\
17578           /data/SPECS/deptest.spec
17579
17580 runroot rpm -U --ignoreos --ignorearch --nodeps \\
17581         --define \"_transaction_color 3\" \\
17582         --define \"_prefer_color 2\" \\
17583         /data/RPMS/hello-2.0-1.i686.rpm \\
17584         /data/RPMS/hello-2.0-1.x86_64.rpm \\
17585         /build/RPMS/noarch/deptest-hello-1.0-1.noarch.rpm
17586
17587 runroot rpm -e hello.x86_64
17588 "
17589 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:254"
17590 ( $at_check_trace;
17591
17592 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17593
17594
17595 runroot rpm --initdb
17596
17597 rm -rf "${TOPDIR}"
17598
17599 runroot rpmbuild --quiet -bb \
17600         --define "pkg hello" \
17601         --define "reqs /usr/bin/hello" \
17602           /data/SPECS/deptest.spec
17603
17604 runroot rpm -U --ignoreos --ignorearch --nodeps \
17605         --define "_transaction_color 3" \
17606         --define "_prefer_color 2" \
17607         /data/RPMS/hello-2.0-1.i686.rpm \
17608         /data/RPMS/hello-2.0-1.x86_64.rpm \
17609         /build/RPMS/noarch/deptest-hello-1.0-1.noarch.rpm
17610
17611 runroot rpm -e hello.x86_64
17612
17613 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17614 at_status=$? at_failed=false
17615 $at_check_filter
17616 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17617         /usr/bin/hello is needed by (installed) deptest-hello-1.0-1.noarch
17618 " | \
17619   $at_diff - "$at_stderr" || at_failed=:
17620 at_fn_diff_devnull "$at_stdout" || at_failed=:
17621 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:254"
17622 $at_failed && at_fn_log_failure
17623 $at_traceon; }
17624
17625   set +x
17626   $at_times_p && times >"$at_times_file"
17627 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17628 read at_status <"$at_status_file"
17629 #AT_STOP_243
17630 #AT_START_244
17631 at_fn_group_banner 244 'rpmdeps.at:281' \
17632   "erase on wrong-colored file dependency" "         " 13
17633 at_xfail=no
17634 (
17635   $as_echo "244. $at_setup_line: testing $at_desc ..."
17636   $at_traceon
17637
17638
17639 { set +x
17640 $as_echo "$at_srcdir/rpmdeps.at:283:
17641
17642 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17643
17644
17645 runroot rpm --initdb
17646
17647 rm -rf \"\${TOPDIR}\"
17648
17649 runroot rpmbuild --quiet -bb \\
17650         --define \"pkg hello\" \\
17651         --define \"reqs /usr/bin/hello\" \\
17652           /data/SPECS/deptest.spec
17653
17654 runroot rpm -U --ignoreos --ignorearch --nodeps \\
17655         --define \"_transaction_color 3\" \\
17656         --define \"_prefer_color 2\" \\
17657         /data/RPMS/hello-2.0-1.i686.rpm \\
17658         /data/RPMS/hello-2.0-1.x86_64.rpm \\
17659         /build/RPMS/noarch/deptest-hello-1.0-1.noarch.rpm
17660
17661 runroot rpm -e hello.i686
17662 "
17663 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:283"
17664 ( $at_check_trace;
17665
17666 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17667
17668
17669 runroot rpm --initdb
17670
17671 rm -rf "${TOPDIR}"
17672
17673 runroot rpmbuild --quiet -bb \
17674         --define "pkg hello" \
17675         --define "reqs /usr/bin/hello" \
17676           /data/SPECS/deptest.spec
17677
17678 runroot rpm -U --ignoreos --ignorearch --nodeps \
17679         --define "_transaction_color 3" \
17680         --define "_prefer_color 2" \
17681         /data/RPMS/hello-2.0-1.i686.rpm \
17682         /data/RPMS/hello-2.0-1.x86_64.rpm \
17683         /build/RPMS/noarch/deptest-hello-1.0-1.noarch.rpm
17684
17685 runroot rpm -e hello.i686
17686
17687 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17688 at_status=$? at_failed=false
17689 $at_check_filter
17690 at_fn_diff_devnull "$at_stderr" || at_failed=:
17691 at_fn_diff_devnull "$at_stdout" || at_failed=:
17692 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:283"
17693 $at_failed && at_fn_log_failure
17694 $at_traceon; }
17695
17696   set +x
17697   $at_times_p && times >"$at_times_file"
17698 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17699 read at_status <"$at_status_file"
17700 #AT_STOP_244
17701 #AT_START_245
17702 at_fn_group_banner 245 'rpmdeps.at:309' \
17703   "unsatisfied WITH require" "                       " 13
17704 at_xfail=no
17705 (
17706   $as_echo "245. $at_setup_line: testing $at_desc ..."
17707   $at_traceon
17708
17709
17710 { set +x
17711 $as_echo "$at_srcdir/rpmdeps.at:311:
17712
17713 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17714
17715
17716 runroot rpm --initdb
17717
17718 rm -rf \"\${TOPDIR}\"
17719
17720 runroot rpmbuild --quiet -bb \\
17721         --define \"pkg one\" \\
17722         --define \"reqs (deptest-two with flavor = dekstop)\" \\
17723           /data/SPECS/deptest.spec
17724
17725 runroot rpmbuild --quiet -bb \\
17726         --define \"pkg two\" \\
17727         --define \"provs flavor = server\" \\
17728           /data/SPECS/deptest.spec
17729
17730 runroot rpmbuild --quiet -bb \\
17731         --define \"pkg three\" \\
17732         --define \"provs flavor = desktop\" \\
17733           /data/SPECS/deptest.spec
17734
17735 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
17736 "
17737 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:311"
17738 ( $at_check_trace;
17739
17740 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17741
17742
17743 runroot rpm --initdb
17744
17745 rm -rf "${TOPDIR}"
17746
17747 runroot rpmbuild --quiet -bb \
17748         --define "pkg one" \
17749         --define "reqs (deptest-two with flavor = dekstop)" \
17750           /data/SPECS/deptest.spec
17751
17752 runroot rpmbuild --quiet -bb \
17753         --define "pkg two" \
17754         --define "provs flavor = server" \
17755           /data/SPECS/deptest.spec
17756
17757 runroot rpmbuild --quiet -bb \
17758         --define "pkg three" \
17759         --define "provs flavor = desktop" \
17760           /data/SPECS/deptest.spec
17761
17762 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
17763
17764 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17765 at_status=$? at_failed=false
17766 $at_check_filter
17767 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17768         (deptest-two with flavor = dekstop) is needed by deptest-one-1.0-1.noarch
17769 " | \
17770   $at_diff - "$at_stderr" || at_failed=:
17771 at_fn_diff_devnull "$at_stdout" || at_failed=:
17772 at_fn_check_status 3 $at_status "$at_srcdir/rpmdeps.at:311"
17773 $at_failed && at_fn_log_failure
17774 $at_traceon; }
17775
17776   set +x
17777   $at_times_p && times >"$at_times_file"
17778 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17779 read at_status <"$at_status_file"
17780 #AT_STOP_245
17781 #AT_START_246
17782 at_fn_group_banner 246 'rpmdeps.at:340' \
17783   "unsatisfied WITH require (rpmdb)" "               " 13
17784 at_xfail=no
17785 (
17786   $as_echo "246. $at_setup_line: testing $at_desc ..."
17787   $at_traceon
17788
17789
17790 { set +x
17791 $as_echo "$at_srcdir/rpmdeps.at:342:
17792
17793 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17794
17795
17796 runroot rpm --initdb
17797
17798 rm -rf \"\${TOPDIR}\"
17799
17800 runroot rpmbuild --quiet -bb \\
17801         --define \"pkg one\" \\
17802         --define \"reqs (deptest-two with flavor = dekstop)\" \\
17803           /data/SPECS/deptest.spec
17804
17805 runroot rpmbuild --quiet -bb \\
17806         --define \"pkg two\" \\
17807         --define \"provs flavor = server\" \\
17808           /data/SPECS/deptest.spec
17809
17810 runroot rpmbuild --quiet -bb \\
17811         --define \"pkg three\" \\
17812         --define \"provs flavor = desktop\" \\
17813           /data/SPECS/deptest.spec
17814
17815 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
17816
17817 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17818 "
17819 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:342"
17820 ( $at_check_trace;
17821
17822 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17823
17824
17825 runroot rpm --initdb
17826
17827 rm -rf "${TOPDIR}"
17828
17829 runroot rpmbuild --quiet -bb \
17830         --define "pkg one" \
17831         --define "reqs (deptest-two with flavor = dekstop)" \
17832           /data/SPECS/deptest.spec
17833
17834 runroot rpmbuild --quiet -bb \
17835         --define "pkg two" \
17836         --define "provs flavor = server" \
17837           /data/SPECS/deptest.spec
17838
17839 runroot rpmbuild --quiet -bb \
17840         --define "pkg three" \
17841         --define "provs flavor = desktop" \
17842           /data/SPECS/deptest.spec
17843
17844 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
17845
17846 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17847
17848 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17849 at_status=$? at_failed=false
17850 $at_check_filter
17851 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17852         (deptest-two with flavor = dekstop) is needed by deptest-one-1.0-1.noarch
17853 " | \
17854   $at_diff - "$at_stderr" || at_failed=:
17855 at_fn_diff_devnull "$at_stdout" || at_failed=:
17856 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:342"
17857 $at_failed && at_fn_log_failure
17858 $at_traceon; }
17859
17860   set +x
17861   $at_times_p && times >"$at_times_file"
17862 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17863 read at_status <"$at_status_file"
17864 #AT_STOP_246
17865 #AT_START_247
17866 at_fn_group_banner 247 'rpmdeps.at:373' \
17867   "satisfied WITH require" "                         " 13
17868 at_xfail=no
17869 (
17870   $as_echo "247. $at_setup_line: testing $at_desc ..."
17871   $at_traceon
17872
17873
17874 { set +x
17875 $as_echo "$at_srcdir/rpmdeps.at:375:
17876
17877 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17878
17879
17880 runroot rpm --initdb
17881
17882 rm -rf \"\${TOPDIR}\"
17883
17884 runroot rpmbuild --quiet -bb \\
17885         --define \"pkg one\" \\
17886         --define \"reqs (deptest-two with flavor = desktop)\" \\
17887           /data/SPECS/deptest.spec
17888
17889 runroot rpmbuild --quiet -bb \\
17890         --define \"pkg two\" \\
17891         --define \"provs flavor = desktop\" \\
17892           /data/SPECS/deptest.spec
17893
17894 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17895 "
17896 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:375"
17897 ( $at_check_trace;
17898
17899 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17900
17901
17902 runroot rpm --initdb
17903
17904 rm -rf "${TOPDIR}"
17905
17906 runroot rpmbuild --quiet -bb \
17907         --define "pkg one" \
17908         --define "reqs (deptest-two with flavor = desktop)" \
17909           /data/SPECS/deptest.spec
17910
17911 runroot rpmbuild --quiet -bb \
17912         --define "pkg two" \
17913         --define "provs flavor = desktop" \
17914           /data/SPECS/deptest.spec
17915
17916 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17917
17918 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17919 at_status=$? at_failed=false
17920 $at_check_filter
17921 at_fn_diff_devnull "$at_stderr" || at_failed=:
17922 at_fn_diff_devnull "$at_stdout" || at_failed=:
17923 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:375"
17924 $at_failed && at_fn_log_failure
17925 $at_traceon; }
17926
17927   set +x
17928   $at_times_p && times >"$at_times_file"
17929 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
17930 read at_status <"$at_status_file"
17931 #AT_STOP_247
17932 #AT_START_248
17933 at_fn_group_banner 248 'rpmdeps.at:397' \
17934   "satisfied WITH require (rpmdb)" "                 " 13
17935 at_xfail=no
17936 (
17937   $as_echo "248. $at_setup_line: testing $at_desc ..."
17938   $at_traceon
17939
17940
17941 { set +x
17942 $as_echo "$at_srcdir/rpmdeps.at:399:
17943
17944 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17945
17946
17947 runroot rpm --initdb
17948
17949 rm -rf \"\${TOPDIR}\"
17950
17951 runroot rpmbuild --quiet -bb \\
17952         --define \"pkg one\" \\
17953         --define \"reqs (deptest-two with flavor = desktop)\" \\
17954           /data/SPECS/deptest.spec
17955
17956 runroot rpmbuild --quiet -bb \\
17957         --define \"pkg two\" \\
17958         --define \"provs flavor = desktop\" \\
17959           /data/SPECS/deptest.spec
17960
17961 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17962
17963 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17964 "
17965 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:399"
17966 ( $at_check_trace;
17967
17968 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17969
17970
17971 runroot rpm --initdb
17972
17973 rm -rf "${TOPDIR}"
17974
17975 runroot rpmbuild --quiet -bb \
17976         --define "pkg one" \
17977         --define "reqs (deptest-two with flavor = desktop)" \
17978           /data/SPECS/deptest.spec
17979
17980 runroot rpmbuild --quiet -bb \
17981         --define "pkg two" \
17982         --define "provs flavor = desktop" \
17983           /data/SPECS/deptest.spec
17984
17985 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17986
17987 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17988
17989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17990 at_status=$? at_failed=false
17991 $at_check_filter
17992 at_fn_diff_devnull "$at_stderr" || at_failed=:
17993 at_fn_diff_devnull "$at_stdout" || at_failed=:
17994 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:399"
17995 $at_failed && at_fn_log_failure
17996 $at_traceon; }
17997
17998   set +x
17999   $at_times_p && times >"$at_times_file"
18000 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18001 read at_status <"$at_status_file"
18002 #AT_STOP_248
18003 #AT_START_249
18004 at_fn_group_banner 249 'rpmdeps.at:425' \
18005   "unsatisfied WITHOUT require" "                    " 13
18006 at_xfail=no
18007 (
18008   $as_echo "249. $at_setup_line: testing $at_desc ..."
18009   $at_traceon
18010
18011
18012 { set +x
18013 $as_echo "$at_srcdir/rpmdeps.at:427:
18014
18015 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18016
18017
18018 runroot rpm --initdb
18019
18020 rm -rf \"\${TOPDIR}\"
18021
18022 runroot rpmbuild --quiet -bb \\
18023         --define \"pkg one\" \\
18024         --define \"reqs (deptest-two without flavor)\" \\
18025           /data/SPECS/deptest.spec
18026
18027 runroot rpmbuild --quiet -bb \\
18028         --define \"pkg two\" \\
18029         --define \"provs flavor = server\" \\
18030           /data/SPECS/deptest.spec
18031
18032 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18033 "
18034 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:427"
18035 ( $at_check_trace;
18036
18037 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18038
18039
18040 runroot rpm --initdb
18041
18042 rm -rf "${TOPDIR}"
18043
18044 runroot rpmbuild --quiet -bb \
18045         --define "pkg one" \
18046         --define "reqs (deptest-two without flavor)" \
18047           /data/SPECS/deptest.spec
18048
18049 runroot rpmbuild --quiet -bb \
18050         --define "pkg two" \
18051         --define "provs flavor = server" \
18052           /data/SPECS/deptest.spec
18053
18054 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18055
18056 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18057 at_status=$? at_failed=false
18058 $at_check_filter
18059 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18060         (deptest-two without flavor) is needed by deptest-one-1.0-1.noarch
18061 " | \
18062   $at_diff - "$at_stderr" || at_failed=:
18063 at_fn_diff_devnull "$at_stdout" || at_failed=:
18064 at_fn_check_status 2 $at_status "$at_srcdir/rpmdeps.at:427"
18065 $at_failed && at_fn_log_failure
18066 $at_traceon; }
18067
18068   set +x
18069   $at_times_p && times >"$at_times_file"
18070 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18071 read at_status <"$at_status_file"
18072 #AT_STOP_249
18073 #AT_START_250
18074 at_fn_group_banner 250 'rpmdeps.at:451' \
18075   "unsatisfied WITHOUT require (rpmdb)" "            " 13
18076 at_xfail=no
18077 (
18078   $as_echo "250. $at_setup_line: testing $at_desc ..."
18079   $at_traceon
18080
18081
18082 { set +x
18083 $as_echo "$at_srcdir/rpmdeps.at:453:
18084
18085 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18086
18087
18088 runroot rpm --initdb
18089
18090 rm -rf \"\${TOPDIR}\"
18091
18092 runroot rpmbuild --quiet -bb \\
18093         --define \"pkg one\" \\
18094         --define \"reqs (deptest-two without flavor)\" \\
18095           /data/SPECS/deptest.spec
18096
18097 runroot rpmbuild --quiet -bb \\
18098         --define \"pkg two\" \\
18099         --define \"provs flavor = server\" \\
18100           /data/SPECS/deptest.spec
18101
18102 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18103
18104 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18105 "
18106 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:453"
18107 ( $at_check_trace;
18108
18109 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18110
18111
18112 runroot rpm --initdb
18113
18114 rm -rf "${TOPDIR}"
18115
18116 runroot rpmbuild --quiet -bb \
18117         --define "pkg one" \
18118         --define "reqs (deptest-two without flavor)" \
18119           /data/SPECS/deptest.spec
18120
18121 runroot rpmbuild --quiet -bb \
18122         --define "pkg two" \
18123         --define "provs flavor = server" \
18124           /data/SPECS/deptest.spec
18125
18126 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18127
18128 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18129
18130 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18131 at_status=$? at_failed=false
18132 $at_check_filter
18133 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18134         (deptest-two without flavor) is needed by deptest-one-1.0-1.noarch
18135 " | \
18136   $at_diff - "$at_stderr" || at_failed=:
18137 at_fn_diff_devnull "$at_stdout" || at_failed=:
18138 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:453"
18139 $at_failed && at_fn_log_failure
18140 $at_traceon; }
18141
18142   set +x
18143   $at_times_p && times >"$at_times_file"
18144 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18145 read at_status <"$at_status_file"
18146 #AT_STOP_250
18147 #AT_START_251
18148 at_fn_group_banner 251 'rpmdeps.at:479' \
18149   "satisfied WITHOUT require" "                      " 13
18150 at_xfail=no
18151 (
18152   $as_echo "251. $at_setup_line: testing $at_desc ..."
18153   $at_traceon
18154
18155
18156 { set +x
18157 $as_echo "$at_srcdir/rpmdeps.at:481:
18158
18159 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18160
18161
18162 runroot rpm --initdb
18163
18164 rm -rf \"\${TOPDIR}\"
18165
18166 runroot rpmbuild --quiet -bb \\
18167         --define \"pkg one\" \\
18168         --define \"reqs (deptest-two without flavor)\" \\
18169           /data/SPECS/deptest.spec
18170
18171 runroot rpmbuild --quiet -bb \\
18172         --define \"pkg two\" \\
18173           /data/SPECS/deptest.spec
18174
18175 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18176 "
18177 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:481"
18178 ( $at_check_trace;
18179
18180 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18181
18182
18183 runroot rpm --initdb
18184
18185 rm -rf "${TOPDIR}"
18186
18187 runroot rpmbuild --quiet -bb \
18188         --define "pkg one" \
18189         --define "reqs (deptest-two without flavor)" \
18190           /data/SPECS/deptest.spec
18191
18192 runroot rpmbuild --quiet -bb \
18193         --define "pkg two" \
18194           /data/SPECS/deptest.spec
18195
18196 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18197
18198 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18199 at_status=$? at_failed=false
18200 $at_check_filter
18201 at_fn_diff_devnull "$at_stderr" || at_failed=:
18202 at_fn_diff_devnull "$at_stdout" || at_failed=:
18203 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:481"
18204 $at_failed && at_fn_log_failure
18205 $at_traceon; }
18206
18207   set +x
18208   $at_times_p && times >"$at_times_file"
18209 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18210 read at_status <"$at_status_file"
18211 #AT_STOP_251
18212 #AT_START_252
18213 at_fn_group_banner 252 'rpmdeps.at:502' \
18214   "satisfied WITHOUT require (rpmdb)" "              " 13
18215 at_xfail=no
18216 (
18217   $as_echo "252. $at_setup_line: testing $at_desc ..."
18218   $at_traceon
18219
18220
18221 { set +x
18222 $as_echo "$at_srcdir/rpmdeps.at:504:
18223
18224 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18225
18226
18227 runroot rpm --initdb
18228
18229 rm -rf \"\${TOPDIR}\"
18230
18231 runroot rpmbuild --quiet -bb \\
18232         --define \"pkg one\" \\
18233         --define \"reqs (deptest-two without flavor)\" \\
18234           /data/SPECS/deptest.spec
18235
18236 runroot rpmbuild --quiet -bb \\
18237         --define \"pkg two\" \\
18238           /data/SPECS/deptest.spec
18239
18240 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18241
18242 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18243 "
18244 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:504"
18245 ( $at_check_trace;
18246
18247 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18248
18249
18250 runroot rpm --initdb
18251
18252 rm -rf "${TOPDIR}"
18253
18254 runroot rpmbuild --quiet -bb \
18255         --define "pkg one" \
18256         --define "reqs (deptest-two without flavor)" \
18257           /data/SPECS/deptest.spec
18258
18259 runroot rpmbuild --quiet -bb \
18260         --define "pkg two" \
18261           /data/SPECS/deptest.spec
18262
18263 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18264
18265 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18266
18267 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18268 at_status=$? at_failed=false
18269 $at_check_filter
18270 at_fn_diff_devnull "$at_stderr" || at_failed=:
18271 at_fn_diff_devnull "$at_stdout" || at_failed=:
18272 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:504"
18273 $at_failed && at_fn_log_failure
18274 $at_traceon; }
18275
18276   set +x
18277   $at_times_p && times >"$at_times_file"
18278 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18279 read at_status <"$at_status_file"
18280 #AT_STOP_252
18281 #AT_START_253
18282 at_fn_group_banner 253 'rpmdeps.at:529' \
18283   "unsatisfied AND require - all missing" "          " 13
18284 at_xfail=no
18285 (
18286   $as_echo "253. $at_setup_line: testing $at_desc ..."
18287   $at_traceon
18288
18289
18290 { set +x
18291 $as_echo "$at_srcdir/rpmdeps.at:531:
18292
18293 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18294
18295
18296 runroot rpm --initdb
18297
18298 rm -rf \"\${TOPDIR}\"
18299
18300 runroot rpmbuild --quiet -bb \\
18301         --define \"pkg one\" \\
18302         --define \"reqs (deptest-two and deptest-three)\" \\
18303           /data/SPECS/deptest.spec
18304
18305 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18306 "
18307 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:531"
18308 ( $at_check_trace;
18309
18310 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18311
18312
18313 runroot rpm --initdb
18314
18315 rm -rf "${TOPDIR}"
18316
18317 runroot rpmbuild --quiet -bb \
18318         --define "pkg one" \
18319         --define "reqs (deptest-two and deptest-three)" \
18320           /data/SPECS/deptest.spec
18321
18322 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18323
18324 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18325 at_status=$? at_failed=false
18326 $at_check_filter
18327 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18328         (deptest-two and deptest-three) is needed by deptest-one-1.0-1.noarch
18329 " | \
18330   $at_diff - "$at_stderr" || at_failed=:
18331 at_fn_diff_devnull "$at_stdout" || at_failed=:
18332 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:531"
18333 $at_failed && at_fn_log_failure
18334 $at_traceon; }
18335
18336   set +x
18337   $at_times_p && times >"$at_times_file"
18338 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18339 read at_status <"$at_status_file"
18340 #AT_STOP_253
18341 #AT_START_254
18342 at_fn_group_banner 254 'rpmdeps.at:550' \
18343   "unsatisfied AND require - first is missing" "     " 13
18344 at_xfail=no
18345 (
18346   $as_echo "254. $at_setup_line: testing $at_desc ..."
18347   $at_traceon
18348
18349
18350 { set +x
18351 $as_echo "$at_srcdir/rpmdeps.at:552:
18352
18353 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18354
18355
18356 runroot rpm --initdb
18357
18358 rm -rf \"\${TOPDIR}\"
18359
18360 runroot rpmbuild --quiet -bb \\
18361         --define \"pkg one\" \\
18362         --define \"reqs (deptest-two and deptest-three)\" \\
18363           /data/SPECS/deptest.spec
18364
18365 runroot rpmbuild --quiet -bb \\
18366         --define \"pkg three\" \\
18367           /data/SPECS/deptest.spec
18368
18369 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18370 "
18371 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:552"
18372 ( $at_check_trace;
18373
18374 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18375
18376
18377 runroot rpm --initdb
18378
18379 rm -rf "${TOPDIR}"
18380
18381 runroot rpmbuild --quiet -bb \
18382         --define "pkg one" \
18383         --define "reqs (deptest-two and deptest-three)" \
18384           /data/SPECS/deptest.spec
18385
18386 runroot rpmbuild --quiet -bb \
18387         --define "pkg three" \
18388           /data/SPECS/deptest.spec
18389
18390 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18391
18392 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18393 at_status=$? at_failed=false
18394 $at_check_filter
18395 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18396         (deptest-two and deptest-three) is needed by deptest-one-1.0-1.noarch
18397 " | \
18398   $at_diff - "$at_stderr" || at_failed=:
18399 at_fn_diff_devnull "$at_stdout" || at_failed=:
18400 at_fn_check_status 2 $at_status "$at_srcdir/rpmdeps.at:552"
18401 $at_failed && at_fn_log_failure
18402 $at_traceon; }
18403
18404   set +x
18405   $at_times_p && times >"$at_times_file"
18406 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18407 read at_status <"$at_status_file"
18408 #AT_STOP_254
18409 #AT_START_255
18410 at_fn_group_banner 255 'rpmdeps.at:575' \
18411   "unsatisfied AND require - second is missing" "    " 13
18412 at_xfail=no
18413 (
18414   $as_echo "255. $at_setup_line: testing $at_desc ..."
18415   $at_traceon
18416
18417
18418 { set +x
18419 $as_echo "$at_srcdir/rpmdeps.at:577:
18420
18421 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18422
18423
18424 runroot rpm --initdb
18425
18426 rm -rf \"\${TOPDIR}\"
18427
18428 runroot rpmbuild --quiet -bb \\
18429         --define \"pkg one\" \\
18430         --define \"reqs (deptest-two and deptest-three)\" \\
18431           /data/SPECS/deptest.spec
18432
18433 runroot rpmbuild --quiet -bb \\
18434         --define \"pkg two\" \\
18435           /data/SPECS/deptest.spec
18436
18437 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18438 "
18439 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:577"
18440 ( $at_check_trace;
18441
18442 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18443
18444
18445 runroot rpm --initdb
18446
18447 rm -rf "${TOPDIR}"
18448
18449 runroot rpmbuild --quiet -bb \
18450         --define "pkg one" \
18451         --define "reqs (deptest-two and deptest-three)" \
18452           /data/SPECS/deptest.spec
18453
18454 runroot rpmbuild --quiet -bb \
18455         --define "pkg two" \
18456           /data/SPECS/deptest.spec
18457
18458 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18459
18460 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18461 at_status=$? at_failed=false
18462 $at_check_filter
18463 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18464         (deptest-two and deptest-three) is needed by deptest-one-1.0-1.noarch
18465 " | \
18466   $at_diff - "$at_stderr" || at_failed=:
18467 at_fn_diff_devnull "$at_stdout" || at_failed=:
18468 at_fn_check_status 2 $at_status "$at_srcdir/rpmdeps.at:577"
18469 $at_failed && at_fn_log_failure
18470 $at_traceon; }
18471
18472   set +x
18473   $at_times_p && times >"$at_times_file"
18474 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18475 read at_status <"$at_status_file"
18476 #AT_STOP_255
18477 #AT_START_256
18478 at_fn_group_banner 256 'rpmdeps.at:600' \
18479   "satisfied AND require" "                          " 13
18480 at_xfail=no
18481 (
18482   $as_echo "256. $at_setup_line: testing $at_desc ..."
18483   $at_traceon
18484
18485
18486 { set +x
18487 $as_echo "$at_srcdir/rpmdeps.at:602:
18488
18489 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18490
18491
18492 runroot rpm --initdb
18493
18494 rm -rf \"\${TOPDIR}\"
18495
18496 runroot rpmbuild --quiet -bb \\
18497         --define \"pkg one\" \\
18498         --define \"reqs (deptest-two and deptest-three)\" \\
18499           /data/SPECS/deptest.spec
18500
18501 runroot rpmbuild --quiet -bb \\
18502         --define \"pkg two\" \\
18503           /data/SPECS/deptest.spec
18504
18505 runroot rpmbuild --quiet -bb \\
18506         --define \"pkg three\" \\
18507           /data/SPECS/deptest.spec
18508
18509 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18510 "
18511 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:602"
18512 ( $at_check_trace;
18513
18514 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18515
18516
18517 runroot rpm --initdb
18518
18519 rm -rf "${TOPDIR}"
18520
18521 runroot rpmbuild --quiet -bb \
18522         --define "pkg one" \
18523         --define "reqs (deptest-two and deptest-three)" \
18524           /data/SPECS/deptest.spec
18525
18526 runroot rpmbuild --quiet -bb \
18527         --define "pkg two" \
18528           /data/SPECS/deptest.spec
18529
18530 runroot rpmbuild --quiet -bb \
18531         --define "pkg three" \
18532           /data/SPECS/deptest.spec
18533
18534 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18535
18536 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18537 at_status=$? at_failed=false
18538 $at_check_filter
18539 at_fn_diff_devnull "$at_stderr" || at_failed=:
18540 at_fn_diff_devnull "$at_stdout" || at_failed=:
18541 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:602"
18542 $at_failed && at_fn_log_failure
18543 $at_traceon; }
18544
18545   set +x
18546   $at_times_p && times >"$at_times_file"
18547 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18548 read at_status <"$at_status_file"
18549 #AT_STOP_256
18550 #AT_START_257
18551 at_fn_group_banner 257 'rpmdeps.at:629' \
18552   "unsatisfied OR require - all missing" "           " 13
18553 at_xfail=no
18554 (
18555   $as_echo "257. $at_setup_line: testing $at_desc ..."
18556   $at_traceon
18557
18558
18559 { set +x
18560 $as_echo "$at_srcdir/rpmdeps.at:631:
18561
18562 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18563
18564
18565 runroot rpm --initdb
18566
18567 rm -rf \"\${TOPDIR}\"
18568
18569 runroot rpmbuild --quiet -bb \\
18570         --define \"pkg one\" \\
18571         --define \"reqs (deptest-two or deptest-three)\" \\
18572           /data/SPECS/deptest.spec
18573
18574 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18575 "
18576 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:631"
18577 ( $at_check_trace;
18578
18579 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18580
18581
18582 runroot rpm --initdb
18583
18584 rm -rf "${TOPDIR}"
18585
18586 runroot rpmbuild --quiet -bb \
18587         --define "pkg one" \
18588         --define "reqs (deptest-two or deptest-three)" \
18589           /data/SPECS/deptest.spec
18590
18591 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18592
18593 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18594 at_status=$? at_failed=false
18595 $at_check_filter
18596 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18597         (deptest-two or deptest-three) is needed by deptest-one-1.0-1.noarch
18598 " | \
18599   $at_diff - "$at_stderr" || at_failed=:
18600 at_fn_diff_devnull "$at_stdout" || at_failed=:
18601 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:631"
18602 $at_failed && at_fn_log_failure
18603 $at_traceon; }
18604
18605   set +x
18606   $at_times_p && times >"$at_times_file"
18607 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18608 read at_status <"$at_status_file"
18609 #AT_STOP_257
18610 #AT_START_258
18611 at_fn_group_banner 258 'rpmdeps.at:650' \
18612   "satisfied OR require - first is missing" "        " 13
18613 at_xfail=no
18614 (
18615   $as_echo "258. $at_setup_line: testing $at_desc ..."
18616   $at_traceon
18617
18618
18619 { set +x
18620 $as_echo "$at_srcdir/rpmdeps.at:652:
18621
18622 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18623
18624
18625 runroot rpm --initdb
18626
18627 rm -rf \"\${TOPDIR}\"
18628
18629 runroot rpmbuild --quiet -bb \\
18630         --define \"pkg one\" \\
18631         --define \"reqs (deptest-two or deptest-three)\" \\
18632           /data/SPECS/deptest.spec
18633
18634 runroot rpmbuild --quiet -bb \\
18635         --define \"pkg three\" \\
18636           /data/SPECS/deptest.spec
18637
18638 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18639 "
18640 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:652"
18641 ( $at_check_trace;
18642
18643 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18644
18645
18646 runroot rpm --initdb
18647
18648 rm -rf "${TOPDIR}"
18649
18650 runroot rpmbuild --quiet -bb \
18651         --define "pkg one" \
18652         --define "reqs (deptest-two or deptest-three)" \
18653           /data/SPECS/deptest.spec
18654
18655 runroot rpmbuild --quiet -bb \
18656         --define "pkg three" \
18657           /data/SPECS/deptest.spec
18658
18659 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18660
18661 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18662 at_status=$? at_failed=false
18663 $at_check_filter
18664 at_fn_diff_devnull "$at_stderr" || at_failed=:
18665 at_fn_diff_devnull "$at_stdout" || at_failed=:
18666 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:652"
18667 $at_failed && at_fn_log_failure
18668 $at_traceon; }
18669
18670   set +x
18671   $at_times_p && times >"$at_times_file"
18672 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18673 read at_status <"$at_status_file"
18674 #AT_STOP_258
18675 #AT_START_259
18676 at_fn_group_banner 259 'rpmdeps.at:673' \
18677   "satisfied OR require - second is missing" "       " 13
18678 at_xfail=no
18679 (
18680   $as_echo "259. $at_setup_line: testing $at_desc ..."
18681   $at_traceon
18682
18683
18684 { set +x
18685 $as_echo "$at_srcdir/rpmdeps.at:675:
18686
18687 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18688
18689
18690 runroot rpm --initdb
18691
18692 rm -rf \"\${TOPDIR}\"
18693
18694 runroot rpmbuild --quiet -bb \\
18695         --define \"pkg one\" \\
18696         --define \"reqs (deptest-two or deptest-three)\" \\
18697           /data/SPECS/deptest.spec
18698
18699 runroot rpmbuild --quiet -bb \\
18700         --define \"pkg two\" \\
18701           /data/SPECS/deptest.spec
18702
18703 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18704 "
18705 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:675"
18706 ( $at_check_trace;
18707
18708 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18709
18710
18711 runroot rpm --initdb
18712
18713 rm -rf "${TOPDIR}"
18714
18715 runroot rpmbuild --quiet -bb \
18716         --define "pkg one" \
18717         --define "reqs (deptest-two or deptest-three)" \
18718           /data/SPECS/deptest.spec
18719
18720 runroot rpmbuild --quiet -bb \
18721         --define "pkg two" \
18722           /data/SPECS/deptest.spec
18723
18724 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18725
18726 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18727 at_status=$? at_failed=false
18728 $at_check_filter
18729 at_fn_diff_devnull "$at_stderr" || at_failed=:
18730 at_fn_diff_devnull "$at_stdout" || at_failed=:
18731 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:675"
18732 $at_failed && at_fn_log_failure
18733 $at_traceon; }
18734
18735   set +x
18736   $at_times_p && times >"$at_times_file"
18737 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18738 read at_status <"$at_status_file"
18739 #AT_STOP_259
18740 #AT_START_260
18741 at_fn_group_banner 260 'rpmdeps.at:696' \
18742   "satisfied OR require - both present" "            " 13
18743 at_xfail=no
18744 (
18745   $as_echo "260. $at_setup_line: testing $at_desc ..."
18746   $at_traceon
18747
18748
18749 { set +x
18750 $as_echo "$at_srcdir/rpmdeps.at:698:
18751
18752 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18753
18754
18755 runroot rpm --initdb
18756
18757 rm -rf \"\${TOPDIR}\"
18758
18759 runroot rpmbuild --quiet -bb \\
18760         --define \"pkg one\" \\
18761         --define \"reqs (deptest-two or deptest-three)\" \\
18762           /data/SPECS/deptest.spec
18763
18764 runroot rpmbuild --quiet -bb \\
18765         --define \"pkg two\" \\
18766           /data/SPECS/deptest.spec
18767
18768 runroot rpmbuild --quiet -bb \\
18769         --define \"pkg three\" \\
18770           /data/SPECS/deptest.spec
18771
18772 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18773 "
18774 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:698"
18775 ( $at_check_trace;
18776
18777 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18778
18779
18780 runroot rpm --initdb
18781
18782 rm -rf "${TOPDIR}"
18783
18784 runroot rpmbuild --quiet -bb \
18785         --define "pkg one" \
18786         --define "reqs (deptest-two or deptest-three)" \
18787           /data/SPECS/deptest.spec
18788
18789 runroot rpmbuild --quiet -bb \
18790         --define "pkg two" \
18791           /data/SPECS/deptest.spec
18792
18793 runroot rpmbuild --quiet -bb \
18794         --define "pkg three" \
18795           /data/SPECS/deptest.spec
18796
18797 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18798
18799 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18800 at_status=$? at_failed=false
18801 $at_check_filter
18802 at_fn_diff_devnull "$at_stderr" || at_failed=:
18803 at_fn_diff_devnull "$at_stdout" || at_failed=:
18804 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:698"
18805 $at_failed && at_fn_log_failure
18806 $at_traceon; }
18807
18808   set +x
18809   $at_times_p && times >"$at_times_file"
18810 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18811 read at_status <"$at_status_file"
18812 #AT_STOP_260
18813 #AT_START_261
18814 at_fn_group_banner 261 'rpmdeps.at:725' \
18815   "unsatisfied IF require" "                         " 13
18816 at_xfail=no
18817 (
18818   $as_echo "261. $at_setup_line: testing $at_desc ..."
18819   $at_traceon
18820
18821
18822 { set +x
18823 $as_echo "$at_srcdir/rpmdeps.at:727:
18824
18825 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18826
18827
18828 runroot rpm --initdb
18829
18830 rm -rf \"\${TOPDIR}\"
18831
18832 runroot rpmbuild --quiet -bb \\
18833         --define \"pkg one\" \\
18834         --define \"reqs (deptest-two if deptest-three)\" \\
18835           /data/SPECS/deptest.spec
18836
18837 runroot rpmbuild --quiet -bb \\
18838         --define \"pkg three\" \\
18839           /data/SPECS/deptest.spec
18840
18841 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18842 "
18843 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:727"
18844 ( $at_check_trace;
18845
18846 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18847
18848
18849 runroot rpm --initdb
18850
18851 rm -rf "${TOPDIR}"
18852
18853 runroot rpmbuild --quiet -bb \
18854         --define "pkg one" \
18855         --define "reqs (deptest-two if deptest-three)" \
18856           /data/SPECS/deptest.spec
18857
18858 runroot rpmbuild --quiet -bb \
18859         --define "pkg three" \
18860           /data/SPECS/deptest.spec
18861
18862 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18863
18864 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18865 at_status=$? at_failed=false
18866 $at_check_filter
18867 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18868         (deptest-two if deptest-three) is needed by deptest-one-1.0-1.noarch
18869 " | \
18870   $at_diff - "$at_stderr" || at_failed=:
18871 at_fn_diff_devnull "$at_stdout" || at_failed=:
18872 at_fn_check_status 2 $at_status "$at_srcdir/rpmdeps.at:727"
18873 $at_failed && at_fn_log_failure
18874 $at_traceon; }
18875
18876   set +x
18877   $at_times_p && times >"$at_times_file"
18878 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18879 read at_status <"$at_status_file"
18880 #AT_STOP_261
18881 #AT_START_262
18882 at_fn_group_banner 262 'rpmdeps.at:750' \
18883   "satisfied IF require" "                           " 13
18884 at_xfail=no
18885 (
18886   $as_echo "262. $at_setup_line: testing $at_desc ..."
18887   $at_traceon
18888
18889
18890 { set +x
18891 $as_echo "$at_srcdir/rpmdeps.at:752:
18892
18893 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18894
18895
18896 runroot rpm --initdb
18897
18898 rm -rf \"\${TOPDIR}\"
18899
18900 runroot rpmbuild --quiet -bb \\
18901         --define \"pkg one\" \\
18902         --define \"reqs (deptest-two if deptest-three)\" \\
18903           /data/SPECS/deptest.spec
18904
18905 runroot rpmbuild --quiet -bb \\
18906         --define \"pkg three\" \\
18907           /data/SPECS/deptest.spec
18908
18909 runroot rpmbuild --quiet -bb \\
18910         --define \"pkg two\" \\
18911           /data/SPECS/deptest.spec
18912
18913 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18914 "
18915 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:752"
18916 ( $at_check_trace;
18917
18918 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18919
18920
18921 runroot rpm --initdb
18922
18923 rm -rf "${TOPDIR}"
18924
18925 runroot rpmbuild --quiet -bb \
18926         --define "pkg one" \
18927         --define "reqs (deptest-two if deptest-three)" \
18928           /data/SPECS/deptest.spec
18929
18930 runroot rpmbuild --quiet -bb \
18931         --define "pkg three" \
18932           /data/SPECS/deptest.spec
18933
18934 runroot rpmbuild --quiet -bb \
18935         --define "pkg two" \
18936           /data/SPECS/deptest.spec
18937
18938 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18939
18940 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18941 at_status=$? at_failed=false
18942 $at_check_filter
18943 at_fn_diff_devnull "$at_stderr" || at_failed=:
18944 at_fn_diff_devnull "$at_stdout" || at_failed=:
18945 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:752"
18946 $at_failed && at_fn_log_failure
18947 $at_traceon; }
18948
18949   set +x
18950   $at_times_p && times >"$at_times_file"
18951 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
18952 read at_status <"$at_status_file"
18953 #AT_STOP_262
18954 #AT_START_263
18955 at_fn_group_banner 263 'rpmdeps.at:777' \
18956   "unsatisfied IF-ELSE require" "                    " 13
18957 at_xfail=no
18958 (
18959   $as_echo "263. $at_setup_line: testing $at_desc ..."
18960   $at_traceon
18961
18962
18963 { set +x
18964 $as_echo "$at_srcdir/rpmdeps.at:779:
18965
18966 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18967
18968
18969 runroot rpm --initdb
18970
18971 rm -rf \"\${TOPDIR}\"
18972
18973 runroot rpmbuild --quiet -bb \\
18974         --define \"pkg one\" \\
18975         --define \"reqs (deptest-two if deptest-three else deptest-four)\" \\
18976           /data/SPECS/deptest.spec
18977
18978 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18979 "
18980 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:779"
18981 ( $at_check_trace;
18982
18983 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18984
18985
18986 runroot rpm --initdb
18987
18988 rm -rf "${TOPDIR}"
18989
18990 runroot rpmbuild --quiet -bb \
18991         --define "pkg one" \
18992         --define "reqs (deptest-two if deptest-three else deptest-four)" \
18993           /data/SPECS/deptest.spec
18994
18995 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18996
18997 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18998 at_status=$? at_failed=false
18999 $at_check_filter
19000 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
19001         (deptest-two if deptest-three else deptest-four) is needed by deptest-one-1.0-1.noarch
19002 " | \
19003   $at_diff - "$at_stderr" || at_failed=:
19004 at_fn_diff_devnull "$at_stdout" || at_failed=:
19005 at_fn_check_status 1 $at_status "$at_srcdir/rpmdeps.at:779"
19006 $at_failed && at_fn_log_failure
19007 $at_traceon; }
19008
19009   set +x
19010   $at_times_p && times >"$at_times_file"
19011 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19012 read at_status <"$at_status_file"
19013 #AT_STOP_263
19014 #AT_START_264
19015 at_fn_group_banner 264 'rpmdeps.at:798' \
19016   "satisfied IF-ELSE require - right clause" "       " 13
19017 at_xfail=no
19018 (
19019   $as_echo "264. $at_setup_line: testing $at_desc ..."
19020   $at_traceon
19021
19022
19023 { set +x
19024 $as_echo "$at_srcdir/rpmdeps.at:800:
19025
19026 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19027
19028
19029 runroot rpm --initdb
19030
19031 rm -rf \"\${TOPDIR}\"
19032
19033 runroot rpmbuild --quiet -bb \\
19034         --define \"pkg one\" \\
19035         --define \"reqs (deptest-two if deptest-three else deptest-four)\" \\
19036           /data/SPECS/deptest.spec
19037
19038 runroot rpmbuild --quiet -bb \\
19039         --define \"pkg four\" \\
19040           /data/SPECS/deptest.spec
19041
19042 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-four-1.0-1.noarch.rpm
19043 "
19044 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:800"
19045 ( $at_check_trace;
19046
19047 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19048
19049
19050 runroot rpm --initdb
19051
19052 rm -rf "${TOPDIR}"
19053
19054 runroot rpmbuild --quiet -bb \
19055         --define "pkg one" \
19056         --define "reqs (deptest-two if deptest-three else deptest-four)" \
19057           /data/SPECS/deptest.spec
19058
19059 runroot rpmbuild --quiet -bb \
19060         --define "pkg four" \
19061           /data/SPECS/deptest.spec
19062
19063 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-four-1.0-1.noarch.rpm
19064
19065 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19066 at_status=$? at_failed=false
19067 $at_check_filter
19068 at_fn_diff_devnull "$at_stderr" || at_failed=:
19069 at_fn_diff_devnull "$at_stdout" || at_failed=:
19070 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:800"
19071 $at_failed && at_fn_log_failure
19072 $at_traceon; }
19073
19074   set +x
19075   $at_times_p && times >"$at_times_file"
19076 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19077 read at_status <"$at_status_file"
19078 #AT_STOP_264
19079 #AT_START_265
19080 at_fn_group_banner 265 'rpmdeps.at:821' \
19081   "satisfied IF-ELSE require - left clause" "        " 13
19082 at_xfail=no
19083 (
19084   $as_echo "265. $at_setup_line: testing $at_desc ..."
19085   $at_traceon
19086
19087
19088 { set +x
19089 $as_echo "$at_srcdir/rpmdeps.at:823:
19090
19091 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19092
19093
19094 runroot rpm --initdb
19095
19096 rm -rf \"\${TOPDIR}\"
19097
19098 runroot rpmbuild --quiet -bb \\
19099         --define \"pkg one\" \\
19100         --define \"reqs (deptest-two if deptest-three else deptest-four)\" \\
19101           /data/SPECS/deptest.spec
19102
19103 runroot rpmbuild --quiet -bb \\
19104         --define \"pkg three\" \\
19105           /data/SPECS/deptest.spec
19106
19107 runroot rpmbuild --quiet -bb \\
19108         --define \"pkg two\" \\
19109           /data/SPECS/deptest.spec
19110
19111 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19112 "
19113 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:823"
19114 ( $at_check_trace;
19115
19116 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19117
19118
19119 runroot rpm --initdb
19120
19121 rm -rf "${TOPDIR}"
19122
19123 runroot rpmbuild --quiet -bb \
19124         --define "pkg one" \
19125         --define "reqs (deptest-two if deptest-three else deptest-four)" \
19126           /data/SPECS/deptest.spec
19127
19128 runroot rpmbuild --quiet -bb \
19129         --define "pkg three" \
19130           /data/SPECS/deptest.spec
19131
19132 runroot rpmbuild --quiet -bb \
19133         --define "pkg two" \
19134           /data/SPECS/deptest.spec
19135
19136 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19137
19138 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19139 at_status=$? at_failed=false
19140 $at_check_filter
19141 at_fn_diff_devnull "$at_stderr" || at_failed=:
19142 at_fn_diff_devnull "$at_stdout" || at_failed=:
19143 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:823"
19144 $at_failed && at_fn_log_failure
19145 $at_traceon; }
19146
19147   set +x
19148   $at_times_p && times >"$at_times_file"
19149 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19150 read at_status <"$at_status_file"
19151 #AT_STOP_265
19152 #AT_START_266
19153 at_fn_group_banner 266 'rpmdeps.at:850' \
19154   "unsatisfied nested AND-OR require" "              " 13
19155 at_xfail=no
19156 (
19157   $as_echo "266. $at_setup_line: testing $at_desc ..."
19158   $at_traceon
19159
19160
19161 { set +x
19162 $as_echo "$at_srcdir/rpmdeps.at:852:
19163
19164 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19165
19166
19167 runroot rpm --initdb
19168
19169 rm -rf \"\${TOPDIR}\"
19170
19171 runroot rpmbuild --quiet -bb \\
19172         --define \"pkg one\" \\
19173         --define \"reqs (deptest-two and (deptest-three or deptest-four))\" \\
19174           /data/SPECS/deptest.spec
19175
19176 runroot rpmbuild --quiet -bb \\
19177         --define \"pkg two\" \\
19178           /data/SPECS/deptest.spec
19179
19180 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19181 "
19182 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:852"
19183 ( $at_check_trace;
19184
19185 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19186
19187
19188 runroot rpm --initdb
19189
19190 rm -rf "${TOPDIR}"
19191
19192 runroot rpmbuild --quiet -bb \
19193         --define "pkg one" \
19194         --define "reqs (deptest-two and (deptest-three or deptest-four))" \
19195           /data/SPECS/deptest.spec
19196
19197 runroot rpmbuild --quiet -bb \
19198         --define "pkg two" \
19199           /data/SPECS/deptest.spec
19200
19201 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19202
19203 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19204 at_status=$? at_failed=false
19205 $at_check_filter
19206 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
19207         (deptest-two and (deptest-three or deptest-four)) is needed by deptest-one-1.0-1.noarch
19208 " | \
19209   $at_diff - "$at_stderr" || at_failed=:
19210 at_fn_diff_devnull "$at_stdout" || at_failed=:
19211 at_fn_check_status 2 $at_status "$at_srcdir/rpmdeps.at:852"
19212 $at_failed && at_fn_log_failure
19213 $at_traceon; }
19214
19215   set +x
19216   $at_times_p && times >"$at_times_file"
19217 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19218 read at_status <"$at_status_file"
19219 #AT_STOP_266
19220 #AT_START_267
19221 at_fn_group_banner 267 'rpmdeps.at:875' \
19222   "satisfied nested AND-OR require" "                " 13
19223 at_xfail=no
19224 (
19225   $as_echo "267. $at_setup_line: testing $at_desc ..."
19226   $at_traceon
19227
19228
19229 { set +x
19230 $as_echo "$at_srcdir/rpmdeps.at:877:
19231
19232 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19233
19234
19235 runroot rpm --initdb
19236
19237 rm -rf \"\${TOPDIR}\"
19238
19239 runroot rpmbuild --quiet -bb \\
19240         --define \"pkg one\" \\
19241         --define \"reqs (deptest-two and (deptest-three or deptest-four))\" \\
19242           /data/SPECS/deptest.spec
19243
19244 runroot rpmbuild --quiet -bb \\
19245         --define \"pkg two\" \\
19246           /data/SPECS/deptest.spec
19247
19248 runroot rpmbuild --quiet -bb \\
19249         --define \"pkg three\" \\
19250           /data/SPECS/deptest.spec
19251
19252 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
19253 "
19254 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:877"
19255 ( $at_check_trace;
19256
19257 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19258
19259
19260 runroot rpm --initdb
19261
19262 rm -rf "${TOPDIR}"
19263
19264 runroot rpmbuild --quiet -bb \
19265         --define "pkg one" \
19266         --define "reqs (deptest-two and (deptest-three or deptest-four))" \
19267           /data/SPECS/deptest.spec
19268
19269 runroot rpmbuild --quiet -bb \
19270         --define "pkg two" \
19271           /data/SPECS/deptest.spec
19272
19273 runroot rpmbuild --quiet -bb \
19274         --define "pkg three" \
19275           /data/SPECS/deptest.spec
19276
19277 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
19278
19279 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19280 at_status=$? at_failed=false
19281 $at_check_filter
19282 at_fn_diff_devnull "$at_stderr" || at_failed=:
19283 at_fn_diff_devnull "$at_stdout" || at_failed=:
19284 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:877"
19285 $at_failed && at_fn_log_failure
19286 $at_traceon; }
19287
19288   set +x
19289   $at_times_p && times >"$at_times_file"
19290 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19291 read at_status <"$at_status_file"
19292 #AT_STOP_267
19293 #AT_START_268
19294 at_fn_group_banner 268 'rpmdeps.at:904' \
19295   "satisfied nested AND-IF require - without right clause" "" 13
19296 at_xfail=no
19297 (
19298   $as_echo "268. $at_setup_line: testing $at_desc ..."
19299   $at_traceon
19300
19301
19302 { set +x
19303 $as_echo "$at_srcdir/rpmdeps.at:906:
19304
19305 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19306
19307
19308 runroot rpm --initdb
19309
19310 rm -rf \"\${TOPDIR}\"
19311
19312 runroot rpmbuild --quiet -bb \\
19313         --define \"pkg one\" \\
19314         --define \"reqs (deptest-two and (deptest-three if deptest-four))\" \\
19315           /data/SPECS/deptest.spec
19316
19317 runroot rpmbuild --quiet -bb \\
19318         --define \"pkg two\" \\
19319           /data/SPECS/deptest.spec
19320
19321 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19322 "
19323 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:906"
19324 ( $at_check_trace;
19325
19326 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19327
19328
19329 runroot rpm --initdb
19330
19331 rm -rf "${TOPDIR}"
19332
19333 runroot rpmbuild --quiet -bb \
19334         --define "pkg one" \
19335         --define "reqs (deptest-two and (deptest-three if deptest-four))" \
19336           /data/SPECS/deptest.spec
19337
19338 runroot rpmbuild --quiet -bb \
19339         --define "pkg two" \
19340           /data/SPECS/deptest.spec
19341
19342 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19343
19344 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19345 at_status=$? at_failed=false
19346 $at_check_filter
19347 at_fn_diff_devnull "$at_stderr" || at_failed=:
19348 at_fn_diff_devnull "$at_stdout" || at_failed=:
19349 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:906"
19350 $at_failed && at_fn_log_failure
19351 $at_traceon; }
19352
19353   set +x
19354   $at_times_p && times >"$at_times_file"
19355 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19356 read at_status <"$at_status_file"
19357 #AT_STOP_268
19358 #AT_START_269
19359 at_fn_group_banner 269 'rpmdeps.at:927' \
19360   "satisfied nested AND-IF require - with right clause" "" 13
19361 at_xfail=no
19362 (
19363   $as_echo "269. $at_setup_line: testing $at_desc ..."
19364   $at_traceon
19365
19366
19367 { set +x
19368 $as_echo "$at_srcdir/rpmdeps.at:929:
19369
19370 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19371
19372
19373 runroot rpm --initdb
19374
19375 rm -rf \"\${TOPDIR}\"
19376
19377 runroot rpmbuild --quiet -bb \\
19378         --define \"pkg one\" \\
19379         --define \"reqs (deptest-two and (deptest-three if deptest-four))\" \\
19380           /data/SPECS/deptest.spec
19381
19382 runroot rpmbuild --quiet -bb \\
19383         --define \"pkg two\" \\
19384           /data/SPECS/deptest.spec
19385
19386 runroot rpmbuild --quiet -bb \\
19387         --define \"pkg four\" \\
19388           /data/SPECS/deptest.spec
19389
19390 runroot rpmbuild --quiet -bb \\
19391         --define \"pkg three\" \\
19392           /data/SPECS/deptest.spec
19393
19394 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-four-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
19395 "
19396 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:929"
19397 ( $at_check_trace;
19398
19399 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19400
19401
19402 runroot rpm --initdb
19403
19404 rm -rf "${TOPDIR}"
19405
19406 runroot rpmbuild --quiet -bb \
19407         --define "pkg one" \
19408         --define "reqs (deptest-two and (deptest-three if deptest-four))" \
19409           /data/SPECS/deptest.spec
19410
19411 runroot rpmbuild --quiet -bb \
19412         --define "pkg two" \
19413           /data/SPECS/deptest.spec
19414
19415 runroot rpmbuild --quiet -bb \
19416         --define "pkg four" \
19417           /data/SPECS/deptest.spec
19418
19419 runroot rpmbuild --quiet -bb \
19420         --define "pkg three" \
19421           /data/SPECS/deptest.spec
19422
19423 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-four-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
19424
19425 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19426 at_status=$? at_failed=false
19427 $at_check_filter
19428 at_fn_diff_devnull "$at_stderr" || at_failed=:
19429 at_fn_diff_devnull "$at_stdout" || at_failed=:
19430 at_fn_check_status 0 $at_status "$at_srcdir/rpmdeps.at:929"
19431 $at_failed && at_fn_log_failure
19432 $at_traceon; }
19433
19434   set +x
19435   $at_times_p && times >"$at_times_file"
19436 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19437 read at_status <"$at_status_file"
19438 #AT_STOP_269
19439 #AT_START_270
19440 at_fn_group_banner 270 'rpmconflict.at:7' \
19441   "package with file conflict" "                     " 14
19442 at_xfail=no
19443 (
19444   $as_echo "270. $at_setup_line: testing $at_desc ..."
19445   $at_traceon
19446
19447
19448 { set +x
19449 $as_echo "$at_srcdir/rpmconflict.at:9:
19450
19451 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19452
19453
19454 runroot rpm --initdb
19455
19456 rm -rf \"\${TOPDIR}\"
19457
19458 for p in \"one\" \"two\"; do
19459     runroot rpmbuild --quiet -bb \\
19460         --define \"pkg \$p\" \\
19461         --define \"filedata \$p\" \\
19462           /data/SPECS/conflicttest.spec
19463 done
19464
19465 runroot rpm -U /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm
19466 runroot rpm -U /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19467 "
19468 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:9"
19469 ( $at_check_trace;
19470
19471 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19472
19473
19474 runroot rpm --initdb
19475
19476 rm -rf "${TOPDIR}"
19477
19478 for p in "one" "two"; do
19479     runroot rpmbuild --quiet -bb \
19480         --define "pkg $p" \
19481         --define "filedata $p" \
19482           /data/SPECS/conflicttest.spec
19483 done
19484
19485 runroot rpm -U /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm
19486 runroot rpm -U /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19487
19488 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19489 at_status=$? at_failed=false
19490 $at_check_filter
19491 echo stderr:; cat "$at_stderr"
19492 echo stdout:; cat "$at_stdout"
19493 at_fn_check_status 1 $at_status "$at_srcdir/rpmconflict.at:9"
19494 $at_failed && at_fn_log_failure
19495 $at_traceon; }
19496
19497   set +x
19498   $at_times_p && times >"$at_times_file"
19499 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19500 read at_status <"$at_status_file"
19501 #AT_STOP_270
19502 #AT_START_271
19503 at_fn_group_banner 271 'rpmconflict.at:31' \
19504   "two packages with a conflicting file" "           " 14
19505 at_xfail=no
19506 (
19507   $as_echo "271. $at_setup_line: testing $at_desc ..."
19508   $at_traceon
19509
19510
19511 { set +x
19512 $as_echo "$at_srcdir/rpmconflict.at:33:
19513
19514 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19515
19516
19517 runroot rpm --initdb
19518
19519
19520 runroot rpm -U \\
19521   /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \\
19522   /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19523 "
19524 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:33"
19525 ( $at_check_trace;
19526
19527 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19528
19529
19530 runroot rpm --initdb
19531
19532
19533 runroot rpm -U \
19534   /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \
19535   /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19536
19537 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19538 at_status=$? at_failed=false
19539 $at_check_filter
19540 echo stderr:; cat "$at_stderr"
19541 echo stdout:; cat "$at_stdout"
19542 at_fn_check_status 2 $at_status "$at_srcdir/rpmconflict.at:33"
19543 $at_failed && at_fn_log_failure
19544 $at_traceon; }
19545
19546   set +x
19547   $at_times_p && times >"$at_times_file"
19548 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19549 read at_status <"$at_status_file"
19550 #AT_STOP_271
19551 #AT_START_272
19552 at_fn_group_banner 272 'rpmconflict.at:48' \
19553   "package with shareable file" "                    " 14
19554 at_xfail=no
19555 (
19556   $as_echo "272. $at_setup_line: testing $at_desc ..."
19557   $at_traceon
19558
19559
19560 { set +x
19561 $as_echo "$at_srcdir/rpmconflict.at:50:
19562
19563 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19564
19565
19566 runroot rpm --initdb
19567
19568 rm -rf \"\${TOPDIR}\"
19569
19570 for p in \"one\" \"two\"; do
19571     runroot rpmbuild --quiet -bb \\
19572         --define \"pkg \$p\" \\
19573         --define \"filedata same_stuff\" \\
19574           /data/SPECS/conflicttest.spec
19575 done
19576
19577 runroot rpm -U /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm
19578 runroot rpm -U /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19579 "
19580 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:50"
19581 ( $at_check_trace;
19582
19583 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19584
19585
19586 runroot rpm --initdb
19587
19588 rm -rf "${TOPDIR}"
19589
19590 for p in "one" "two"; do
19591     runroot rpmbuild --quiet -bb \
19592         --define "pkg $p" \
19593         --define "filedata same_stuff" \
19594           /data/SPECS/conflicttest.spec
19595 done
19596
19597 runroot rpm -U /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm
19598 runroot rpm -U /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19599
19600 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19601 at_status=$? at_failed=false
19602 $at_check_filter
19603 echo stderr:; cat "$at_stderr"
19604 echo stdout:; cat "$at_stdout"
19605 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:50"
19606 $at_failed && at_fn_log_failure
19607 $at_traceon; }
19608
19609   set +x
19610   $at_times_p && times >"$at_times_file"
19611 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19612 read at_status <"$at_status_file"
19613 #AT_STOP_272
19614 #AT_START_273
19615 at_fn_group_banner 273 'rpmconflict.at:72' \
19616   "two packages with shareable file" "               " 14
19617 at_xfail=no
19618 (
19619   $as_echo "273. $at_setup_line: testing $at_desc ..."
19620   $at_traceon
19621
19622
19623 { set +x
19624 $as_echo "$at_srcdir/rpmconflict.at:74:
19625
19626 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19627
19628
19629 runroot rpm --initdb
19630
19631
19632 runroot rpm -U \\
19633   /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \\
19634   /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19635 "
19636 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:74"
19637 ( $at_check_trace;
19638
19639 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19640
19641
19642 runroot rpm --initdb
19643
19644
19645 runroot rpm -U \
19646   /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \
19647   /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19648
19649 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19650 at_status=$? at_failed=false
19651 $at_check_filter
19652 echo stderr:; cat "$at_stderr"
19653 echo stdout:; cat "$at_stdout"
19654 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:74"
19655 $at_failed && at_fn_log_failure
19656 $at_traceon; }
19657
19658   set +x
19659   $at_times_p && times >"$at_times_file"
19660 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19661 read at_status <"$at_status_file"
19662 #AT_STOP_273
19663 #AT_START_274
19664 at_fn_group_banner 274 'rpmconflict.at:89' \
19665   "non-conflicting identical basenames" "            " 14
19666 at_xfail=no
19667 (
19668   $as_echo "274. $at_setup_line: testing $at_desc ..."
19669   $at_traceon
19670
19671
19672 { set +x
19673 $as_echo "$at_srcdir/rpmconflict.at:91:
19674
19675 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19676
19677
19678 runroot rpm --initdb
19679
19680 rm -rf \"\${TOPDIR}\"
19681
19682 runroot rpmbuild --quiet -bb /data/SPECS/selfconflict.spec
19683 rm -rf \"\${RPMTEST}\"/opt/mydir
19684 runroot rpm -U /build/RPMS/noarch/selfconflict-1.0-1.noarch.rpm
19685 "
19686 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:91"
19687 ( $at_check_trace;
19688
19689 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19690
19691
19692 runroot rpm --initdb
19693
19694 rm -rf "${TOPDIR}"
19695
19696 runroot rpmbuild --quiet -bb /data/SPECS/selfconflict.spec
19697 rm -rf "${RPMTEST}"/opt/mydir
19698 runroot rpm -U /build/RPMS/noarch/selfconflict-1.0-1.noarch.rpm
19699
19700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19701 at_status=$? at_failed=false
19702 $at_check_filter
19703 at_fn_diff_devnull "$at_stderr" || at_failed=:
19704 at_fn_diff_devnull "$at_stdout" || at_failed=:
19705 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:91"
19706 $at_failed && at_fn_log_failure
19707 $at_traceon; }
19708
19709   set +x
19710   $at_times_p && times >"$at_times_file"
19711 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19712 read at_status <"$at_status_file"
19713 #AT_STOP_274
19714 #AT_START_275
19715 at_fn_group_banner 275 'rpmconflict.at:107' \
19716   "conflicting identical basenames" "                " 14
19717 at_xfail=no
19718 (
19719   $as_echo "275. $at_setup_line: testing $at_desc ..."
19720   $at_traceon
19721
19722
19723 { set +x
19724 $as_echo "$at_srcdir/rpmconflict.at:109:
19725
19726 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19727
19728
19729 runroot rpm --initdb
19730
19731 rm -rf \"\${TOPDIR}\"
19732
19733 runroot rpmbuild --quiet -bb /data/SPECS/selfconflict.spec
19734 rm -rf \"\${RPMTEST}\"/opt/mydir
19735 mkdir -p \"\${RPMTEST}\"/opt/mydir/one
19736 ln -s one \"\${RPMTEST}\"/opt/mydir/two
19737 runroot rpm -U /build/RPMS/noarch/selfconflict-1.0-1.noarch.rpm
19738 "
19739 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:109"
19740 ( $at_check_trace;
19741
19742 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19743
19744
19745 runroot rpm --initdb
19746
19747 rm -rf "${TOPDIR}"
19748
19749 runroot rpmbuild --quiet -bb /data/SPECS/selfconflict.spec
19750 rm -rf "${RPMTEST}"/opt/mydir
19751 mkdir -p "${RPMTEST}"/opt/mydir/one
19752 ln -s one "${RPMTEST}"/opt/mydir/two
19753 runroot rpm -U /build/RPMS/noarch/selfconflict-1.0-1.noarch.rpm
19754
19755 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19756 at_status=$? at_failed=false
19757 $at_check_filter
19758 echo >>"$at_stderr"; $as_echo " file /opt/mydir/two/somefile conflicts between attempted installs of selfconflict-1.0-1.noarch and selfconflict-1.0-1.noarch
19759 " | \
19760   $at_diff - "$at_stderr" || at_failed=:
19761 at_fn_diff_devnull "$at_stdout" || at_failed=:
19762 at_fn_check_status 1 $at_status "$at_srcdir/rpmconflict.at:109"
19763 $at_failed && at_fn_log_failure
19764 $at_traceon; }
19765
19766   set +x
19767   $at_times_p && times >"$at_times_file"
19768 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19769 read at_status <"$at_status_file"
19770 #AT_STOP_275
19771 #AT_START_276
19772 at_fn_group_banner 276 'rpmconflict.at:127' \
19773   "multilib elf conflict, prefer 64bit 1" "          " 14
19774 at_xfail=no
19775 (
19776   $as_echo "276. $at_setup_line: testing $at_desc ..."
19777   $at_traceon
19778
19779
19780 { set +x
19781 $as_echo "$at_srcdir/rpmconflict.at:129:
19782
19783 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19784
19785
19786 runroot rpm --initdb
19787
19788
19789 runroot rpm -U --ignoreos --ignorearch --nodeps \\
19790   --define \"_transaction_color 3\" \\
19791   --define \"_prefer_color 2\" \\
19792   /data/RPMS/hello-2.0-1.i686.rpm \\
19793   /data/RPMS/hello-2.0-1.x86_64.rpm
19794 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.i686 hello.x86_64
19795 "
19796 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:129"
19797 ( $at_check_trace;
19798
19799 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19800
19801
19802 runroot rpm --initdb
19803
19804
19805 runroot rpm -U --ignoreos --ignorearch --nodeps \
19806   --define "_transaction_color 3" \
19807   --define "_prefer_color 2" \
19808   /data/RPMS/hello-2.0-1.i686.rpm \
19809   /data/RPMS/hello-2.0-1.x86_64.rpm
19810 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.i686 hello.x86_64
19811
19812 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19813 at_status=$? at_failed=false
19814 $at_check_filter
19815 at_fn_diff_devnull "$at_stderr" || at_failed=:
19816 echo >>"$at_stdout"; $as_echo "wrong color,normal,normal,normal,normal,
19817 normal,normal,normal,normal,normal,
19818 " | \
19819   $at_diff - "$at_stdout" || at_failed=:
19820 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:129"
19821 $at_failed && at_fn_log_failure
19822 $at_traceon; }
19823
19824   set +x
19825   $at_times_p && times >"$at_times_file"
19826 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19827 read at_status <"$at_status_file"
19828 #AT_STOP_276
19829 #AT_START_277
19830 at_fn_group_banner 277 'rpmconflict.at:149' \
19831   "multilib elf conflict, prefer 64bit 2" "          " 14
19832 at_xfail=no
19833 (
19834   $as_echo "277. $at_setup_line: testing $at_desc ..."
19835   $at_traceon
19836
19837
19838 { set +x
19839 $as_echo "$at_srcdir/rpmconflict.at:151:
19840
19841 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19842
19843
19844 runroot rpm --initdb
19845
19846
19847 runroot rpm -U --ignoreos --ignorearch --nodeps \\
19848   --define \"_transaction_color 3\" \\
19849   --define \"_prefer_color 2\" \\
19850   /data/RPMS/hello-2.0-1.i686.rpm
19851 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.i686
19852 runroot rpm -U --ignoreos --ignorearch --nodeps \\
19853   --define \"_transaction_color 3\" \\
19854   --define \"_prefer_color 2\" \\
19855   /data/RPMS/hello-2.0-1.x86_64.rpm
19856 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.i686 hello.x86_64
19857 "
19858 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:151"
19859 ( $at_check_trace;
19860
19861 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19862
19863
19864 runroot rpm --initdb
19865
19866
19867 runroot rpm -U --ignoreos --ignorearch --nodeps \
19868   --define "_transaction_color 3" \
19869   --define "_prefer_color 2" \
19870   /data/RPMS/hello-2.0-1.i686.rpm
19871 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.i686
19872 runroot rpm -U --ignoreos --ignorearch --nodeps \
19873   --define "_transaction_color 3" \
19874   --define "_prefer_color 2" \
19875   /data/RPMS/hello-2.0-1.x86_64.rpm
19876 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.i686 hello.x86_64
19877
19878 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19879 at_status=$? at_failed=false
19880 $at_check_filter
19881 at_fn_diff_devnull "$at_stderr" || at_failed=:
19882 echo >>"$at_stdout"; $as_echo "normal,normal,normal,normal,normal,
19883 wrong color,normal,normal,normal,normal,
19884 normal,normal,normal,normal,normal,
19885 " | \
19886   $at_diff - "$at_stdout" || at_failed=:
19887 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:151"
19888 $at_failed && at_fn_log_failure
19889 $at_traceon; }
19890
19891   set +x
19892   $at_times_p && times >"$at_times_file"
19893 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19894 read at_status <"$at_status_file"
19895 #AT_STOP_277
19896 #AT_START_278
19897 at_fn_group_banner 278 'rpmconflict.at:176' \
19898   "multilib elf conflict, prefer 64bit 3" "          " 14
19899 at_xfail=no
19900 (
19901   $as_echo "278. $at_setup_line: testing $at_desc ..."
19902   $at_traceon
19903
19904
19905 { set +x
19906 $as_echo "$at_srcdir/rpmconflict.at:178:
19907
19908 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19909
19910
19911 runroot rpm --initdb
19912
19913
19914 runroot rpm -U --ignoreos --ignorearch --nodeps \\
19915   --define \"_transaction_color 3\" \\
19916   --define \"_prefer_color 2\" \\
19917   /data/RPMS/hello-2.0-1.x86_64.rpm
19918 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.x86_64
19919 runroot rpm -U --ignoreos --ignorearch --nodeps \\
19920   --define \"_transaction_color 3\" \\
19921   --define \"_prefer_color 2\" \\
19922   /data/RPMS/hello-2.0-1.i686.rpm
19923 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.i686 hello.x86_64
19924 "
19925 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:178"
19926 ( $at_check_trace;
19927
19928 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19929
19930
19931 runroot rpm --initdb
19932
19933
19934 runroot rpm -U --ignoreos --ignorearch --nodeps \
19935   --define "_transaction_color 3" \
19936   --define "_prefer_color 2" \
19937   /data/RPMS/hello-2.0-1.x86_64.rpm
19938 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.x86_64
19939 runroot rpm -U --ignoreos --ignorearch --nodeps \
19940   --define "_transaction_color 3" \
19941   --define "_prefer_color 2" \
19942   /data/RPMS/hello-2.0-1.i686.rpm
19943 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.i686 hello.x86_64
19944
19945 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19946 at_status=$? at_failed=false
19947 $at_check_filter
19948 at_fn_diff_devnull "$at_stderr" || at_failed=:
19949 echo >>"$at_stdout"; $as_echo "normal,normal,normal,normal,normal,
19950 wrong color,normal,normal,normal,normal,
19951 normal,normal,normal,normal,normal,
19952 " | \
19953   $at_diff - "$at_stdout" || at_failed=:
19954 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:178"
19955 $at_failed && at_fn_log_failure
19956 $at_traceon; }
19957
19958   set +x
19959   $at_times_p && times >"$at_times_file"
19960 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
19961 read at_status <"$at_status_file"
19962 #AT_STOP_278
19963 #AT_START_279
19964 at_fn_group_banner 279 'rpmconflict.at:203' \
19965   "multilib elf conflict, prefer 32bit 1" "          " 14
19966 at_xfail=no
19967 (
19968   $as_echo "279. $at_setup_line: testing $at_desc ..."
19969   $at_traceon
19970
19971
19972 { set +x
19973 $as_echo "$at_srcdir/rpmconflict.at:205:
19974
19975 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19976
19977
19978 runroot rpm --initdb
19979
19980
19981 runroot rpm -U --ignoreos --ignorearch --nodeps \\
19982   --define \"_transaction_color 3\" \\
19983   --define \"_prefer_color 1\" \\
19984   /data/RPMS/hello-2.0-1.i686.rpm \\
19985   /data/RPMS/hello-2.0-1.x86_64.rpm
19986 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.i686 hello.x86_64
19987 "
19988 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:205"
19989 ( $at_check_trace;
19990
19991 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19992
19993
19994 runroot rpm --initdb
19995
19996
19997 runroot rpm -U --ignoreos --ignorearch --nodeps \
19998   --define "_transaction_color 3" \
19999   --define "_prefer_color 1" \
20000   /data/RPMS/hello-2.0-1.i686.rpm \
20001   /data/RPMS/hello-2.0-1.x86_64.rpm
20002 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.i686 hello.x86_64
20003
20004 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20005 at_status=$? at_failed=false
20006 $at_check_filter
20007 at_fn_diff_devnull "$at_stderr" || at_failed=:
20008 echo >>"$at_stdout"; $as_echo "normal,normal,normal,normal,normal,
20009 wrong color,normal,normal,normal,normal,
20010 " | \
20011   $at_diff - "$at_stdout" || at_failed=:
20012 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:205"
20013 $at_failed && at_fn_log_failure
20014 $at_traceon; }
20015
20016   set +x
20017   $at_times_p && times >"$at_times_file"
20018 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20019 read at_status <"$at_status_file"
20020 #AT_STOP_279
20021 #AT_START_280
20022 at_fn_group_banner 280 'rpmconflict.at:225' \
20023   "multilib elf conflict, prefer 32bit 2" "          " 14
20024 at_xfail=no
20025 (
20026   $as_echo "280. $at_setup_line: testing $at_desc ..."
20027   $at_traceon
20028
20029
20030 { set +x
20031 $as_echo "$at_srcdir/rpmconflict.at:227:
20032
20033 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20034
20035
20036 runroot rpm --initdb
20037
20038
20039 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20040   --define \"_transaction_color 3\" \\
20041   --define \"_prefer_color 1\" \\
20042   /data/RPMS/hello-2.0-1.i686.rpm
20043 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.i686
20044 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20045   --define \"_transaction_color 3\" \\
20046   --define \"_prefer_color 1\" \\
20047   /data/RPMS/hello-2.0-1.x86_64.rpm
20048 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.i686 hello.x86_64
20049 "
20050 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:227"
20051 ( $at_check_trace;
20052
20053 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20054
20055
20056 runroot rpm --initdb
20057
20058
20059 runroot rpm -U --ignoreos --ignorearch --nodeps \
20060   --define "_transaction_color 3" \
20061   --define "_prefer_color 1" \
20062   /data/RPMS/hello-2.0-1.i686.rpm
20063 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.i686
20064 runroot rpm -U --ignoreos --ignorearch --nodeps \
20065   --define "_transaction_color 3" \
20066   --define "_prefer_color 1" \
20067   /data/RPMS/hello-2.0-1.x86_64.rpm
20068 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.i686 hello.x86_64
20069
20070 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20071 at_status=$? at_failed=false
20072 $at_check_filter
20073 at_fn_diff_devnull "$at_stderr" || at_failed=:
20074 echo >>"$at_stdout"; $as_echo "normal,normal,normal,normal,normal,
20075 normal,normal,normal,normal,normal,
20076 wrong color,normal,normal,normal,normal,
20077 " | \
20078   $at_diff - "$at_stdout" || at_failed=:
20079 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:227"
20080 $at_failed && at_fn_log_failure
20081 $at_traceon; }
20082
20083   set +x
20084   $at_times_p && times >"$at_times_file"
20085 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20086 read at_status <"$at_status_file"
20087 #AT_STOP_280
20088 #AT_START_281
20089 at_fn_group_banner 281 'rpmconflict.at:252' \
20090   "multilib elf conflict, prefer 32bit 3" "          " 14
20091 at_xfail=no
20092 (
20093   $as_echo "281. $at_setup_line: testing $at_desc ..."
20094   $at_traceon
20095
20096
20097 { set +x
20098 $as_echo "$at_srcdir/rpmconflict.at:254:
20099
20100 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20101
20102
20103 runroot rpm --initdb
20104
20105
20106 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20107   --define \"_transaction_color 3\" \\
20108   --define \"_prefer_color 1\" \\
20109   /data/RPMS/hello-2.0-1.x86_64.rpm
20110 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.x86_64
20111 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20112   --define \"_transaction_color 3\" \\
20113   --define \"_prefer_color 1\" \\
20114   /data/RPMS/hello-2.0-1.i686.rpm
20115 runroot rpm -q --qf \"[%{filestates:fstate},]\\n\" hello.i686 hello.x86_64
20116 "
20117 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:254"
20118 ( $at_check_trace;
20119
20120 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20121
20122
20123 runroot rpm --initdb
20124
20125
20126 runroot rpm -U --ignoreos --ignorearch --nodeps \
20127   --define "_transaction_color 3" \
20128   --define "_prefer_color 1" \
20129   /data/RPMS/hello-2.0-1.x86_64.rpm
20130 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.x86_64
20131 runroot rpm -U --ignoreos --ignorearch --nodeps \
20132   --define "_transaction_color 3" \
20133   --define "_prefer_color 1" \
20134   /data/RPMS/hello-2.0-1.i686.rpm
20135 runroot rpm -q --qf "[%{filestates:fstate},]\n" hello.i686 hello.x86_64
20136
20137 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20138 at_status=$? at_failed=false
20139 $at_check_filter
20140 at_fn_diff_devnull "$at_stderr" || at_failed=:
20141 echo >>"$at_stdout"; $as_echo "normal,normal,normal,normal,normal,
20142 normal,normal,normal,normal,normal,
20143 wrong color,normal,normal,normal,normal,
20144 " | \
20145   $at_diff - "$at_stdout" || at_failed=:
20146 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:254"
20147 $at_failed && at_fn_log_failure
20148 $at_traceon; }
20149
20150   set +x
20151   $at_times_p && times >"$at_times_file"
20152 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20153 read at_status <"$at_status_file"
20154 #AT_STOP_281
20155 #AT_START_282
20156 at_fn_group_banner 282 'rpmconflict.at:279' \
20157   "multilib elf vs non-elf file conflict 1" "        " 14
20158 at_xfail=no
20159 (
20160   $as_echo "282. $at_setup_line: testing $at_desc ..."
20161   $at_traceon
20162
20163
20164 { set +x
20165 $as_echo "$at_srcdir/rpmconflict.at:281:
20166
20167 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20168
20169
20170 runroot rpm --initdb
20171
20172
20173 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
20174
20175 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20176   --define \"_transaction_color 3\" \\
20177   --define \"_prefer_color 2\" \\
20178   /data/RPMS/hello-2.0-1.x86_64.rpm \\
20179   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
20180 "
20181 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:281"
20182 ( $at_check_trace;
20183
20184 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20185
20186
20187 runroot rpm --initdb
20188
20189
20190 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
20191
20192 runroot rpm -U --ignoreos --ignorearch --nodeps \
20193   --define "_transaction_color 3" \
20194   --define "_prefer_color 2" \
20195   /data/RPMS/hello-2.0-1.x86_64.rpm \
20196   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
20197
20198 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20199 at_status=$? at_failed=false
20200 $at_check_filter
20201 echo >>"$at_stderr"; $as_echo " file /usr/bin/hello conflicts between attempted installs of hello-2.0-1.x86_64 and hello-script-1.0-1.noarch
20202 " | \
20203   $at_diff - "$at_stderr" || at_failed=:
20204 at_fn_diff_devnull "$at_stdout" || at_failed=:
20205 at_fn_check_status 2 $at_status "$at_srcdir/rpmconflict.at:281"
20206 $at_failed && at_fn_log_failure
20207 $at_traceon; }
20208
20209   set +x
20210   $at_times_p && times >"$at_times_file"
20211 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20212 read at_status <"$at_status_file"
20213 #AT_STOP_282
20214 #AT_START_283
20215 at_fn_group_banner 283 'rpmconflict.at:300' \
20216   "multilib elf vs non-elf file conflict 2" "        " 14
20217 at_xfail=no
20218 (
20219   $as_echo "283. $at_setup_line: testing $at_desc ..."
20220   $at_traceon
20221
20222
20223 { set +x
20224 $as_echo "$at_srcdir/rpmconflict.at:302:
20225
20226 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20227
20228
20229 runroot rpm --initdb
20230
20231
20232 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
20233
20234 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20235   --define \"_transaction_color 3\" \\
20236   --define \"_prefer_color 2\" \\
20237   /data/RPMS/hello-2.0-1.x86_64.rpm
20238
20239 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20240   --define \"_transaction_color 3\" \\
20241   --define \"_prefer_color 2\" \\
20242   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
20243 "
20244 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:302"
20245 ( $at_check_trace;
20246
20247 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20248
20249
20250 runroot rpm --initdb
20251
20252
20253 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
20254
20255 runroot rpm -U --ignoreos --ignorearch --nodeps \
20256   --define "_transaction_color 3" \
20257   --define "_prefer_color 2" \
20258   /data/RPMS/hello-2.0-1.x86_64.rpm
20259
20260 runroot rpm -U --ignoreos --ignorearch --nodeps \
20261   --define "_transaction_color 3" \
20262   --define "_prefer_color 2" \
20263   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
20264
20265 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20266 at_status=$? at_failed=false
20267 $at_check_filter
20268 echo >>"$at_stderr"; $as_echo " file /usr/bin/hello from install of hello-script-1.0-1.noarch conflicts with file from package hello-2.0-1.x86_64
20269 " | \
20270   $at_diff - "$at_stderr" || at_failed=:
20271 at_fn_diff_devnull "$at_stdout" || at_failed=:
20272 at_fn_check_status 1 $at_status "$at_srcdir/rpmconflict.at:302"
20273 $at_failed && at_fn_log_failure
20274 $at_traceon; }
20275
20276   set +x
20277   $at_times_p && times >"$at_times_file"
20278 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20279 read at_status <"$at_status_file"
20280 #AT_STOP_283
20281 #AT_START_284
20282 at_fn_group_banner 284 'rpmconflict.at:325' \
20283   "multilib elf vs non-elf file conflict 3" "        " 14
20284 at_xfail=no
20285 (
20286   $as_echo "284. $at_setup_line: testing $at_desc ..."
20287   $at_traceon
20288
20289
20290 { set +x
20291 $as_echo "$at_srcdir/rpmconflict.at:327:
20292
20293 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20294
20295
20296 runroot rpm --initdb
20297
20298
20299 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
20300
20301 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20302   --define \"_transaction_color 3\" \\
20303   --define \"_prefer_color 2\" \\
20304   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
20305
20306 runroot rpm -U --ignoreos --ignorearch --nodeps \\
20307   --define \"_transaction_color 3\" \\
20308   --define \"_prefer_color 2\" \\
20309   /data/RPMS/hello-2.0-1.x86_64.rpm
20310 "
20311 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:327"
20312 ( $at_check_trace;
20313
20314 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20315
20316
20317 runroot rpm --initdb
20318
20319
20320 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
20321
20322 runroot rpm -U --ignoreos --ignorearch --nodeps \
20323   --define "_transaction_color 3" \
20324   --define "_prefer_color 2" \
20325   /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
20326
20327 runroot rpm -U --ignoreos --ignorearch --nodeps \
20328   --define "_transaction_color 3" \
20329   --define "_prefer_color 2" \
20330   /data/RPMS/hello-2.0-1.x86_64.rpm
20331
20332 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20333 at_status=$? at_failed=false
20334 $at_check_filter
20335 echo >>"$at_stderr"; $as_echo " file /usr/bin/hello from install of hello-2.0-1.x86_64 conflicts with file from package hello-script-1.0-1.noarch
20336 " | \
20337   $at_diff - "$at_stderr" || at_failed=:
20338 at_fn_diff_devnull "$at_stdout" || at_failed=:
20339 at_fn_check_status 1 $at_status "$at_srcdir/rpmconflict.at:327"
20340 $at_failed && at_fn_log_failure
20341 $at_traceon; }
20342
20343   set +x
20344   $at_times_p && times >"$at_times_file"
20345 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20346 read at_status <"$at_status_file"
20347 #AT_STOP_284
20348 #AT_START_285
20349 at_fn_group_banner 285 'rpmconflict.at:351' \
20350   "replacing directory with symlink" "               " 14
20351 at_xfail=no
20352 (
20353   $as_echo "285. $at_setup_line: testing $at_desc ..."
20354   $at_traceon
20355
20356
20357 { set +x
20358 $as_echo "$at_srcdir/rpmconflict.at:353:
20359
20360 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20361
20362
20363 runroot rpm --initdb
20364
20365 rm -rf \"\${TOPDIR}\"
20366 rm -rf \"\${RPMTEST}\"/usr/{share,lib}/symlinktest*
20367
20368 runroot rpmbuild --quiet -bb \\
20369     --define \"rel 1\" --without symlink /data/SPECS/symlinktest.spec
20370 runroot rpmbuild --quiet -bb \\
20371     --define \"rel 2\" --with symlink /data/SPECS/symlinktest.spec
20372
20373 runroot rpm -U /build/RPMS/noarch/symlinktest-1.0-1.noarch.rpm
20374 runroot rpm -U /build/RPMS/noarch/symlinktest-1.0-2.noarch.rpm
20375 "
20376 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:353"
20377 ( $at_check_trace;
20378
20379 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20380
20381
20382 runroot rpm --initdb
20383
20384 rm -rf "${TOPDIR}"
20385 rm -rf "${RPMTEST}"/usr/{share,lib}/symlinktest*
20386
20387 runroot rpmbuild --quiet -bb \
20388     --define "rel 1" --without symlink /data/SPECS/symlinktest.spec
20389 runroot rpmbuild --quiet -bb \
20390     --define "rel 2" --with symlink /data/SPECS/symlinktest.spec
20391
20392 runroot rpm -U /build/RPMS/noarch/symlinktest-1.0-1.noarch.rpm
20393 runroot rpm -U /build/RPMS/noarch/symlinktest-1.0-2.noarch.rpm
20394
20395 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20396 at_status=$? at_failed=false
20397 $at_check_filter
20398 echo >>"$at_stderr"; $as_echo " file /usr/share/symlinktest from install of symlinktest-1.0-2.noarch conflicts with file from package symlinktest-1.0-1.noarch
20399 " | \
20400   $at_diff - "$at_stderr" || at_failed=:
20401 at_fn_diff_devnull "$at_stdout" || at_failed=:
20402 at_fn_check_status 2 $at_status "$at_srcdir/rpmconflict.at:353"
20403 $at_failed && at_fn_log_failure
20404 $at_traceon; }
20405
20406   set +x
20407   $at_times_p && times >"$at_times_file"
20408 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20409 read at_status <"$at_status_file"
20410 #AT_STOP_285
20411 #AT_START_286
20412 at_fn_group_banner 286 'rpmconflict.at:375' \
20413   "replacing symlink with directory" "               " 14
20414 at_xfail=no
20415 (
20416   $as_echo "286. $at_setup_line: testing $at_desc ..."
20417   $at_traceon
20418
20419
20420 { set +x
20421 $as_echo "$at_srcdir/rpmconflict.at:377:
20422
20423 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20424
20425
20426 runroot rpm --initdb
20427
20428 rm -rf \"\${TOPDIR}\"
20429 rm -rf \"\${RPMTEST}\"/usr/{share,lib}/symlinktest*
20430
20431 runroot rpmbuild --quiet -bb \\
20432     --define \"rel 1\" --with symlink /data/SPECS/symlinktest.spec
20433 runroot rpmbuild --quiet -bb \\
20434     --define \"rel 2\" --without symlink /data/SPECS/symlinktest.spec
20435
20436 runroot rpm -U /build/RPMS/noarch/symlinktest-1.0-1.noarch.rpm
20437 runroot rpm -U /build/RPMS/noarch/symlinktest-1.0-2.noarch.rpm
20438 "
20439 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:377"
20440 ( $at_check_trace;
20441
20442 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20443
20444
20445 runroot rpm --initdb
20446
20447 rm -rf "${TOPDIR}"
20448 rm -rf "${RPMTEST}"/usr/{share,lib}/symlinktest*
20449
20450 runroot rpmbuild --quiet -bb \
20451     --define "rel 1" --with symlink /data/SPECS/symlinktest.spec
20452 runroot rpmbuild --quiet -bb \
20453     --define "rel 2" --without symlink /data/SPECS/symlinktest.spec
20454
20455 runroot rpm -U /build/RPMS/noarch/symlinktest-1.0-1.noarch.rpm
20456 runroot rpm -U /build/RPMS/noarch/symlinktest-1.0-2.noarch.rpm
20457
20458 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20459 at_status=$? at_failed=false
20460 $at_check_filter
20461 echo >>"$at_stderr"; $as_echo " file /usr/share/symlinktest from install of symlinktest-1.0-2.noarch conflicts with file from package symlinktest-1.0-1.noarch
20462 " | \
20463   $at_diff - "$at_stderr" || at_failed=:
20464 at_fn_diff_devnull "$at_stdout" || at_failed=:
20465 at_fn_check_status 2 $at_status "$at_srcdir/rpmconflict.at:377"
20466 $at_failed && at_fn_log_failure
20467 $at_traceon; }
20468
20469   set +x
20470   $at_times_p && times >"$at_times_file"
20471 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20472 read at_status <"$at_status_file"
20473 #AT_STOP_286
20474 #AT_START_287
20475 at_fn_group_banner 287 'rpmconflict.at:400' \
20476   "real file with shared ghost" "                    " 14
20477 at_xfail=no
20478 (
20479   $as_echo "287. $at_setup_line: testing $at_desc ..."
20480   $at_traceon
20481
20482
20483 { set +x
20484 $as_echo "$at_srcdir/rpmconflict.at:402:
20485
20486 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20487
20488
20489 runroot rpm --initdb
20490
20491 fn=\"\${RPMTEST}\"/usr/share/my.version
20492 rm -rf \"\${TOPDIR}\" \"\${fn}\"
20493
20494 runroot rpmbuild --quiet -bb \\
20495     --define \"pkg one\" --define \"filedata one\" \\
20496     /data/SPECS/conflicttest.spec
20497 runroot rpmbuild --quiet -bb \\
20498     --define \"pkg two\" --define \"filedata two\" --define \"fileattr %ghost\"\\
20499     /data/SPECS/conflicttest.spec
20500
20501 test ! -f \"\${fn}\" && echo OK
20502 runroot rpm -U \\
20503     /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \\
20504     /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
20505 cat \"\${fn}\"
20506 runroot rpm -e conflicttwo
20507 cat \"\${fn}\"
20508 runroot rpm -e conflictone
20509 test ! -f \"\${fn}\" && echo OK
20510 "
20511 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:402"
20512 ( $at_check_trace;
20513
20514 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20515
20516
20517 runroot rpm --initdb
20518
20519 fn="${RPMTEST}"/usr/share/my.version
20520 rm -rf "${TOPDIR}" "${fn}"
20521
20522 runroot rpmbuild --quiet -bb \
20523     --define "pkg one" --define "filedata one" \
20524     /data/SPECS/conflicttest.spec
20525 runroot rpmbuild --quiet -bb \
20526     --define "pkg two" --define "filedata two" --define "fileattr %ghost"\
20527     /data/SPECS/conflicttest.spec
20528
20529 test ! -f "${fn}" && echo OK
20530 runroot rpm -U \
20531     /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \
20532     /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
20533 cat "${fn}"
20534 runroot rpm -e conflicttwo
20535 cat "${fn}"
20536 runroot rpm -e conflictone
20537 test ! -f "${fn}" && echo OK
20538
20539 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20540 at_status=$? at_failed=false
20541 $at_check_filter
20542 at_fn_diff_devnull "$at_stderr" || at_failed=:
20543 echo >>"$at_stdout"; $as_echo "OK
20544 one
20545 one
20546 OK
20547 " | \
20548   $at_diff - "$at_stdout" || at_failed=:
20549 at_fn_check_status 0 $at_status "$at_srcdir/rpmconflict.at:402"
20550 $at_failed && at_fn_log_failure
20551 $at_traceon; }
20552
20553   set +x
20554   $at_times_p && times >"$at_times_file"
20555 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20556 read at_status <"$at_status_file"
20557 #AT_STOP_287
20558 #AT_START_288
20559 at_fn_group_banner 288 'rpmreplace.at:4' \
20560   "upgrade to/from regular file" "                   " 15
20561 at_xfail=no
20562 (
20563   $as_echo "288. $at_setup_line: testing $at_desc ..."
20564   $at_traceon
20565
20566
20567 { set +x
20568 $as_echo "$at_srcdir/rpmreplace.at:6:
20569
20570 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20571
20572
20573 runroot rpm --initdb
20574
20575 tf=\"\${RPMTEST}\"/opt/foo
20576 rm -rf \"\${tf}\" \"\${tf}\".rpm*
20577 rm -rf \"\${TOPDIR}\"
20578
20579 runroot rpmbuild --quiet -bb \\
20580         --define \"ver 1.0\" \\
20581         --define \"filetype file\" \\
20582         --define \"filedata foo\" \\
20583           /data/SPECS/replacetest.spec
20584
20585 runroot rpmbuild --quiet -bb \\
20586         --define \"ver 2.0\" \\
20587         --define \"filetype file\" \\
20588         --define \"filedata bar\" \\
20589           /data/SPECS/replacetest.spec
20590
20591 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20592 cat \"\${tf}\"
20593 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20594 cat \"\${tf}\"
20595 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20596 cat \"\${tf}\"
20597 "
20598 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:6"
20599 ( $at_check_trace;
20600
20601 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20602
20603
20604 runroot rpm --initdb
20605
20606 tf="${RPMTEST}"/opt/foo
20607 rm -rf "${tf}" "${tf}".rpm*
20608 rm -rf "${TOPDIR}"
20609
20610 runroot rpmbuild --quiet -bb \
20611         --define "ver 1.0" \
20612         --define "filetype file" \
20613         --define "filedata foo" \
20614           /data/SPECS/replacetest.spec
20615
20616 runroot rpmbuild --quiet -bb \
20617         --define "ver 2.0" \
20618         --define "filetype file" \
20619         --define "filedata bar" \
20620           /data/SPECS/replacetest.spec
20621
20622 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20623 cat "${tf}"
20624 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20625 cat "${tf}"
20626 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20627 cat "${tf}"
20628
20629 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20630 at_status=$? at_failed=false
20631 $at_check_filter
20632 at_fn_diff_devnull "$at_stderr" || at_failed=:
20633 echo >>"$at_stdout"; $as_echo "foo
20634 bar
20635 foo
20636 " | \
20637   $at_diff - "$at_stdout" || at_failed=:
20638 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:6"
20639 $at_failed && at_fn_log_failure
20640 $at_traceon; }
20641
20642   set +x
20643   $at_times_p && times >"$at_times_file"
20644 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20645 read at_status <"$at_status_file"
20646 #AT_STOP_288
20647 #AT_START_289
20648 at_fn_group_banner 289 'rpmreplace.at:40' \
20649   "upgrade regular file to/from broken link" "       " 15
20650 at_xfail=no
20651 (
20652   $as_echo "289. $at_setup_line: testing $at_desc ..."
20653   $at_traceon
20654
20655
20656 { set +x
20657 $as_echo "$at_srcdir/rpmreplace.at:42:
20658
20659 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20660
20661
20662 runroot rpm --initdb
20663
20664 tf=\"\${RPMTEST}\"/opt/foo
20665 rm -rf \"\${RPMTEST}\"/opt/*
20666 rm -rf \"\${TOPDIR}\"
20667
20668 runroot rpmbuild --quiet -bb \\
20669         --define \"ver 1.0\" \\
20670         --define \"filetype file\" \\
20671         --define \"filedata foo\" \\
20672           /data/SPECS/replacetest.spec
20673
20674 runroot rpmbuild --quiet -bb \\
20675         --define \"ver 2.0\" \\
20676         --define \"filetype link\" \\
20677         --define \"filedata stuff\" \\
20678           /data/SPECS/replacetest.spec
20679
20680 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20681 cat \"\${tf}\"
20682 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20683 readlink \"\${tf}\"
20684 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20685 cat \"\${tf}\"
20686 "
20687 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:42"
20688 ( $at_check_trace;
20689
20690 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20691
20692
20693 runroot rpm --initdb
20694
20695 tf="${RPMTEST}"/opt/foo
20696 rm -rf "${RPMTEST}"/opt/*
20697 rm -rf "${TOPDIR}"
20698
20699 runroot rpmbuild --quiet -bb \
20700         --define "ver 1.0" \
20701         --define "filetype file" \
20702         --define "filedata foo" \
20703           /data/SPECS/replacetest.spec
20704
20705 runroot rpmbuild --quiet -bb \
20706         --define "ver 2.0" \
20707         --define "filetype link" \
20708         --define "filedata stuff" \
20709           /data/SPECS/replacetest.spec
20710
20711 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20712 cat "${tf}"
20713 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20714 readlink "${tf}"
20715 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20716 cat "${tf}"
20717
20718 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20719 at_status=$? at_failed=false
20720 $at_check_filter
20721 at_fn_diff_devnull "$at_stderr" || at_failed=:
20722 echo >>"$at_stdout"; $as_echo "foo
20723 stuff
20724 foo
20725 " | \
20726   $at_diff - "$at_stdout" || at_failed=:
20727 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:42"
20728 $at_failed && at_fn_log_failure
20729 $at_traceon; }
20730
20731   set +x
20732   $at_times_p && times >"$at_times_file"
20733 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20734 read at_status <"$at_status_file"
20735 #AT_STOP_289
20736 #AT_START_290
20737 at_fn_group_banner 290 'rpmreplace.at:76' \
20738   "upgrade regular file to/from file link" "         " 15
20739 at_xfail=no
20740 (
20741   $as_echo "290. $at_setup_line: testing $at_desc ..."
20742   $at_traceon
20743
20744
20745 { set +x
20746 $as_echo "$at_srcdir/rpmreplace.at:78:
20747
20748 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20749
20750
20751 runroot rpm --initdb
20752
20753 tf=\"\${RPMTEST}\"/opt/foo
20754 rm -rf \"\${RPMTEST}\"/opt/*
20755 rm -rf \"\${TOPDIR}\"
20756
20757 runroot rpmbuild --quiet -bb \\
20758         --define \"ver 1.0\" \\
20759         --define \"filetype file\" \\
20760         --define \"filedata foo\" \\
20761           /data/SPECS/replacetest.spec
20762
20763 runroot rpmbuild --quiet -bb \\
20764         --define \"ver 2.0\" \\
20765         --define \"filetype link\" \\
20766         --define \"filedata goo\" \\
20767           /data/SPECS/replacetest.spec
20768
20769 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20770 cat \"\${tf}\"
20771 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20772 readlink \"\${tf}\"
20773 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20774 cat \"\${tf}\"
20775 "
20776 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:78"
20777 ( $at_check_trace;
20778
20779 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20780
20781
20782 runroot rpm --initdb
20783
20784 tf="${RPMTEST}"/opt/foo
20785 rm -rf "${RPMTEST}"/opt/*
20786 rm -rf "${TOPDIR}"
20787
20788 runroot rpmbuild --quiet -bb \
20789         --define "ver 1.0" \
20790         --define "filetype file" \
20791         --define "filedata foo" \
20792           /data/SPECS/replacetest.spec
20793
20794 runroot rpmbuild --quiet -bb \
20795         --define "ver 2.0" \
20796         --define "filetype link" \
20797         --define "filedata goo" \
20798           /data/SPECS/replacetest.spec
20799
20800 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20801 cat "${tf}"
20802 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20803 readlink "${tf}"
20804 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20805 cat "${tf}"
20806
20807 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20808 at_status=$? at_failed=false
20809 $at_check_filter
20810 at_fn_diff_devnull "$at_stderr" || at_failed=:
20811 echo >>"$at_stdout"; $as_echo "foo
20812 goo
20813 foo
20814 " | \
20815   $at_diff - "$at_stdout" || at_failed=:
20816 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:78"
20817 $at_failed && at_fn_log_failure
20818 $at_traceon; }
20819
20820   set +x
20821   $at_times_p && times >"$at_times_file"
20822 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20823 read at_status <"$at_status_file"
20824 #AT_STOP_290
20825 #AT_START_291
20826 at_fn_group_banner 291 'rpmreplace.at:112' \
20827   "upgrade broken link to broken link" "             " 15
20828 at_xfail=no
20829 (
20830   $as_echo "291. $at_setup_line: testing $at_desc ..."
20831   $at_traceon
20832
20833
20834 { set +x
20835 $as_echo "$at_srcdir/rpmreplace.at:114:
20836
20837 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20838
20839
20840 runroot rpm --initdb
20841
20842 tf=\"\${RPMTEST}\"/opt/foo
20843 rm -rf \"\${RPMTEST}\"/opt/*
20844 rm -rf \"\${TOPDIR}\"
20845
20846 runroot rpmbuild --quiet -bb \\
20847         --define \"ver 1.0\" \\
20848         --define \"filetype link\" \\
20849         --define \"filedata stiff\" \\
20850           /data/SPECS/replacetest.spec
20851
20852 runroot rpmbuild --quiet -bb \\
20853         --define \"ver 2.0\" \\
20854         --define \"filetype link\" \\
20855         --define \"filedata stuff\" \\
20856           /data/SPECS/replacetest.spec
20857
20858 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20859 readlink \"\${tf}\"
20860 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20861 readlink \"\${tf}\"
20862 "
20863 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:114"
20864 ( $at_check_trace;
20865
20866 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20867
20868
20869 runroot rpm --initdb
20870
20871 tf="${RPMTEST}"/opt/foo
20872 rm -rf "${RPMTEST}"/opt/*
20873 rm -rf "${TOPDIR}"
20874
20875 runroot rpmbuild --quiet -bb \
20876         --define "ver 1.0" \
20877         --define "filetype link" \
20878         --define "filedata stiff" \
20879           /data/SPECS/replacetest.spec
20880
20881 runroot rpmbuild --quiet -bb \
20882         --define "ver 2.0" \
20883         --define "filetype link" \
20884         --define "filedata stuff" \
20885           /data/SPECS/replacetest.spec
20886
20887 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20888 readlink "${tf}"
20889 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20890 readlink "${tf}"
20891
20892 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20893 at_status=$? at_failed=false
20894 $at_check_filter
20895 at_fn_diff_devnull "$at_stderr" || at_failed=:
20896 echo >>"$at_stdout"; $as_echo "stiff
20897 stuff
20898 " | \
20899   $at_diff - "$at_stdout" || at_failed=:
20900 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:114"
20901 $at_failed && at_fn_log_failure
20902 $at_traceon; }
20903
20904   set +x
20905   $at_times_p && times >"$at_times_file"
20906 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20907 read at_status <"$at_status_file"
20908 #AT_STOP_291
20909 #AT_START_292
20910 at_fn_group_banner 292 'rpmreplace.at:145' \
20911   "upgrade file link to file link" "                 " 15
20912 at_xfail=no
20913 (
20914   $as_echo "292. $at_setup_line: testing $at_desc ..."
20915   $at_traceon
20916
20917
20918 { set +x
20919 $as_echo "$at_srcdir/rpmreplace.at:147:
20920
20921 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20922
20923
20924 runroot rpm --initdb
20925
20926 tf=\"\${RPMTEST}\"/opt/foo
20927 rm -rf \"\${RPMTEST}\"/opt/*
20928 rm -rf \"\${TOPDIR}\"
20929
20930 runroot rpmbuild --quiet -bb \\
20931         --define \"ver 1.0\" \\
20932         --define \"filetype link\" \\
20933         --define \"filedata goo\" \\
20934           /data/SPECS/replacetest.spec
20935
20936 runroot rpmbuild --quiet -bb \\
20937         --define \"ver 2.0\" \\
20938         --define \"filetype link\" \\
20939         --define \"filedata goo\" \\
20940           /data/SPECS/replacetest.spec
20941
20942 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20943 readlink \"\${tf}\"
20944 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20945 readlink \"\${tf}\"
20946 "
20947 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:147"
20948 ( $at_check_trace;
20949
20950 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20951
20952
20953 runroot rpm --initdb
20954
20955 tf="${RPMTEST}"/opt/foo
20956 rm -rf "${RPMTEST}"/opt/*
20957 rm -rf "${TOPDIR}"
20958
20959 runroot rpmbuild --quiet -bb \
20960         --define "ver 1.0" \
20961         --define "filetype link" \
20962         --define "filedata goo" \
20963           /data/SPECS/replacetest.spec
20964
20965 runroot rpmbuild --quiet -bb \
20966         --define "ver 2.0" \
20967         --define "filetype link" \
20968         --define "filedata goo" \
20969           /data/SPECS/replacetest.spec
20970
20971 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20972 readlink "${tf}"
20973 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20974 readlink "${tf}"
20975
20976 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20977 at_status=$? at_failed=false
20978 $at_check_filter
20979 at_fn_diff_devnull "$at_stderr" || at_failed=:
20980 echo >>"$at_stdout"; $as_echo "goo
20981 goo
20982 " | \
20983   $at_diff - "$at_stdout" || at_failed=:
20984 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:147"
20985 $at_failed && at_fn_log_failure
20986 $at_traceon; }
20987
20988   set +x
20989   $at_times_p && times >"$at_times_file"
20990 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
20991 read at_status <"$at_status_file"
20992 #AT_STOP_292
20993 #AT_START_293
20994 at_fn_group_banner 293 'rpmreplace.at:178' \
20995   "upgrade directory link to directory link" "       " 15
20996 at_xfail=no
20997 (
20998   $as_echo "293. $at_setup_line: testing $at_desc ..."
20999   $at_traceon
21000
21001
21002 { set +x
21003 $as_echo "$at_srcdir/rpmreplace.at:180:
21004
21005 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21006
21007
21008 runroot rpm --initdb
21009
21010 tf=\"\${RPMTEST}\"/opt/foo
21011 rm -rf \"\${RPMTEST}\"/opt/*
21012 rm -rf \"\${TOPDIR}\"
21013
21014 runroot rpmbuild --quiet -bb \\
21015         --define \"ver 1.0\" \\
21016         --define \"filetype link\" \\
21017         --define \"filedata zoo\" \\
21018           /data/SPECS/replacetest.spec
21019
21020 runroot rpmbuild --quiet -bb \\
21021         --define \"ver 2.0\" \\
21022         --define \"filetype link\" \\
21023         --define \"filedata zoo\" \\
21024           /data/SPECS/replacetest.spec
21025
21026 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21027 readlink \"\${tf}\"
21028 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21029 readlink \"\${tf}\"
21030 "
21031 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:180"
21032 ( $at_check_trace;
21033
21034 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21035
21036
21037 runroot rpm --initdb
21038
21039 tf="${RPMTEST}"/opt/foo
21040 rm -rf "${RPMTEST}"/opt/*
21041 rm -rf "${TOPDIR}"
21042
21043 runroot rpmbuild --quiet -bb \
21044         --define "ver 1.0" \
21045         --define "filetype link" \
21046         --define "filedata zoo" \
21047           /data/SPECS/replacetest.spec
21048
21049 runroot rpmbuild --quiet -bb \
21050         --define "ver 2.0" \
21051         --define "filetype link" \
21052         --define "filedata zoo" \
21053           /data/SPECS/replacetest.spec
21054
21055 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21056 readlink "${tf}"
21057 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21058 readlink "${tf}"
21059
21060 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21061 at_status=$? at_failed=false
21062 $at_check_filter
21063 at_fn_diff_devnull "$at_stderr" || at_failed=:
21064 echo >>"$at_stdout"; $as_echo "zoo
21065 zoo
21066 " | \
21067   $at_diff - "$at_stdout" || at_failed=:
21068 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:180"
21069 $at_failed && at_fn_log_failure
21070 $at_traceon; }
21071
21072   set +x
21073   $at_times_p && times >"$at_times_file"
21074 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21075 read at_status <"$at_status_file"
21076 #AT_STOP_293
21077 #AT_START_294
21078 at_fn_group_banner 294 'rpmreplace.at:211' \
21079   "upgrade regular file to directory" "              " 15
21080 at_xfail=no
21081 (
21082   $as_echo "294. $at_setup_line: testing $at_desc ..."
21083   $at_traceon
21084
21085
21086 { set +x
21087 $as_echo "$at_srcdir/rpmreplace.at:213:
21088
21089 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21090
21091
21092 runroot rpm --initdb
21093
21094 tf=\"\${RPMTEST}\"/opt/foo
21095 rm -rf \"\${RPMTEST}\"/opt/*
21096 rm -rf \"\${TOPDIR}\"
21097
21098 runroot rpmbuild --quiet -bb \\
21099         --define \"ver 1.0\" \\
21100         --define \"filetype file\" \\
21101         --define \"filedata foo\" \\
21102           /data/SPECS/replacetest.spec
21103
21104 runroot rpmbuild --quiet -bb \\
21105         --define \"ver 2.0\" \\
21106         --define \"filetype dir\" \\
21107           /data/SPECS/replacetest.spec
21108
21109 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21110 cat \"\${tf}\"
21111 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21112 test -d \"\${tf}\"
21113 "
21114 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:213"
21115 ( $at_check_trace;
21116
21117 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21118
21119
21120 runroot rpm --initdb
21121
21122 tf="${RPMTEST}"/opt/foo
21123 rm -rf "${RPMTEST}"/opt/*
21124 rm -rf "${TOPDIR}"
21125
21126 runroot rpmbuild --quiet -bb \
21127         --define "ver 1.0" \
21128         --define "filetype file" \
21129         --define "filedata foo" \
21130           /data/SPECS/replacetest.spec
21131
21132 runroot rpmbuild --quiet -bb \
21133         --define "ver 2.0" \
21134         --define "filetype dir" \
21135           /data/SPECS/replacetest.spec
21136
21137 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21138 cat "${tf}"
21139 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21140 test -d "${tf}"
21141
21142 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21143 at_status=$? at_failed=false
21144 $at_check_filter
21145 at_fn_diff_devnull "$at_stderr" || at_failed=:
21146 echo >>"$at_stdout"; $as_echo "foo
21147 " | \
21148   $at_diff - "$at_stdout" || at_failed=:
21149 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:213"
21150 $at_failed && at_fn_log_failure
21151 $at_traceon; }
21152
21153   set +x
21154   $at_times_p && times >"$at_times_file"
21155 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21156 read at_status <"$at_status_file"
21157 #AT_STOP_294
21158 #AT_START_295
21159 at_fn_group_banner 295 'rpmreplace.at:242' \
21160   "upgrade broken link to directory" "               " 15
21161 at_xfail=no
21162 (
21163   $as_echo "295. $at_setup_line: testing $at_desc ..."
21164   $at_traceon
21165
21166
21167 { set +x
21168 $as_echo "$at_srcdir/rpmreplace.at:244:
21169
21170 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21171
21172
21173 runroot rpm --initdb
21174
21175 tf=\"\${RPMTEST}\"/opt/foo
21176 rm -rf \"\${RPMTEST}\"/opt/*
21177 rm -rf \"\${TOPDIR}\"
21178
21179 runroot rpmbuild --quiet -bb \\
21180         --define \"ver 1.0\" \\
21181         --define \"filetype link\" \\
21182         --define \"filedata other\" \\
21183           /data/SPECS/replacetest.spec
21184
21185 runroot rpmbuild --quiet -bb \\
21186         --define \"ver 2.0\" \\
21187         --define \"filetype dir\" \\
21188           /data/SPECS/replacetest.spec
21189
21190 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21191 readlink \"\${tf}\"
21192 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21193 test -d \"\${tf}\"
21194 "
21195 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:244"
21196 ( $at_check_trace;
21197
21198 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21199
21200
21201 runroot rpm --initdb
21202
21203 tf="${RPMTEST}"/opt/foo
21204 rm -rf "${RPMTEST}"/opt/*
21205 rm -rf "${TOPDIR}"
21206
21207 runroot rpmbuild --quiet -bb \
21208         --define "ver 1.0" \
21209         --define "filetype link" \
21210         --define "filedata other" \
21211           /data/SPECS/replacetest.spec
21212
21213 runroot rpmbuild --quiet -bb \
21214         --define "ver 2.0" \
21215         --define "filetype dir" \
21216           /data/SPECS/replacetest.spec
21217
21218 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21219 readlink "${tf}"
21220 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21221 test -d "${tf}"
21222
21223 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21224 at_status=$? at_failed=false
21225 $at_check_filter
21226 at_fn_diff_devnull "$at_stderr" || at_failed=:
21227 echo >>"$at_stdout"; $as_echo "other
21228 " | \
21229   $at_diff - "$at_stdout" || at_failed=:
21230 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:244"
21231 $at_failed && at_fn_log_failure
21232 $at_traceon; }
21233
21234   set +x
21235   $at_times_p && times >"$at_times_file"
21236 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21237 read at_status <"$at_status_file"
21238 #AT_STOP_295
21239 #AT_START_296
21240 at_fn_group_banner 296 'rpmreplace.at:273' \
21241   "upgrade file link to directory" "                 " 15
21242 at_xfail=no
21243 (
21244   $as_echo "296. $at_setup_line: testing $at_desc ..."
21245   $at_traceon
21246
21247
21248 { set +x
21249 $as_echo "$at_srcdir/rpmreplace.at:275:
21250
21251 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21252
21253
21254 runroot rpm --initdb
21255
21256 tf=\"\${RPMTEST}\"/opt/foo
21257 rm -rf \"\${RPMTEST}\"/opt/*
21258 rm -rf \"\${TOPDIR}\"
21259
21260 runroot rpmbuild --quiet -bb \\
21261         --define \"ver 1.0\" \\
21262         --define \"filetype link\" \\
21263         --define \"filedata goo\" \\
21264           /data/SPECS/replacetest.spec
21265
21266 runroot rpmbuild --quiet -bb \\
21267         --define \"ver 2.0\" \\
21268         --define \"filetype dir\" \\
21269           /data/SPECS/replacetest.spec
21270
21271 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21272 readlink \"\${tf}\"
21273 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21274 test -d \"\${tf}\"
21275 "
21276 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:275"
21277 ( $at_check_trace;
21278
21279 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21280
21281
21282 runroot rpm --initdb
21283
21284 tf="${RPMTEST}"/opt/foo
21285 rm -rf "${RPMTEST}"/opt/*
21286 rm -rf "${TOPDIR}"
21287
21288 runroot rpmbuild --quiet -bb \
21289         --define "ver 1.0" \
21290         --define "filetype link" \
21291         --define "filedata goo" \
21292           /data/SPECS/replacetest.spec
21293
21294 runroot rpmbuild --quiet -bb \
21295         --define "ver 2.0" \
21296         --define "filetype dir" \
21297           /data/SPECS/replacetest.spec
21298
21299 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21300 readlink "${tf}"
21301 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21302 test -d "${tf}"
21303
21304 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21305 at_status=$? at_failed=false
21306 $at_check_filter
21307 at_fn_diff_devnull "$at_stderr" || at_failed=:
21308 echo >>"$at_stdout"; $as_echo "goo
21309 " | \
21310   $at_diff - "$at_stdout" || at_failed=:
21311 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:275"
21312 $at_failed && at_fn_log_failure
21313 $at_traceon; }
21314
21315   set +x
21316   $at_times_p && times >"$at_times_file"
21317 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21318 read at_status <"$at_status_file"
21319 #AT_STOP_296
21320 #AT_START_297
21321 at_fn_group_banner 297 'rpmreplace.at:304' \
21322   "upgrade directory link to directory" "            " 15
21323 at_xfail=no
21324 (
21325   $as_echo "297. $at_setup_line: testing $at_desc ..."
21326   $at_traceon
21327
21328
21329 { set +x
21330 $as_echo "$at_srcdir/rpmreplace.at:306:
21331
21332 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21333
21334
21335 runroot rpm --initdb
21336
21337 tf=\"\${RPMTEST}\"/opt/foo
21338 rm -rf \"\${RPMTEST}\"/opt/*
21339 rm -rf \"\${TOPDIR}\"
21340
21341 runroot rpmbuild --quiet -bb \\
21342         --define \"ver 1.0\" \\
21343         --define \"filetype link\" \\
21344         --define \"filedata zoo\" \\
21345           /data/SPECS/replacetest.spec
21346
21347 runroot rpmbuild --quiet -bb \\
21348         --define \"ver 2.0\" \\
21349         --define \"filetype dir\" \\
21350           /data/SPECS/replacetest.spec
21351
21352 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21353 readlink \"\${tf}\"
21354 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21355 "
21356 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:306"
21357 ( $at_check_trace;
21358
21359 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21360
21361
21362 runroot rpm --initdb
21363
21364 tf="${RPMTEST}"/opt/foo
21365 rm -rf "${RPMTEST}"/opt/*
21366 rm -rf "${TOPDIR}"
21367
21368 runroot rpmbuild --quiet -bb \
21369         --define "ver 1.0" \
21370         --define "filetype link" \
21371         --define "filedata zoo" \
21372           /data/SPECS/replacetest.spec
21373
21374 runroot rpmbuild --quiet -bb \
21375         --define "ver 2.0" \
21376         --define "filetype dir" \
21377           /data/SPECS/replacetest.spec
21378
21379 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21380 readlink "${tf}"
21381 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21382
21383 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21384 at_status=$? at_failed=false
21385 $at_check_filter
21386 echo >>"$at_stderr"; $as_echo " file /opt/foo from install of replacetest-2.0-1.noarch conflicts with file from package replacetest-1.0-1.noarch
21387 " | \
21388   $at_diff - "$at_stderr" || at_failed=:
21389 echo >>"$at_stdout"; $as_echo "zoo
21390 " | \
21391   $at_diff - "$at_stdout" || at_failed=:
21392 at_fn_check_status 2 $at_status "$at_srcdir/rpmreplace.at:306"
21393 $at_failed && at_fn_log_failure
21394 $at_traceon; }
21395
21396   set +x
21397   $at_times_p && times >"$at_times_file"
21398 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21399 read at_status <"$at_status_file"
21400 #AT_STOP_297
21401 #AT_START_298
21402 at_fn_group_banner 298 'rpmreplace.at:335' \
21403   "upgrade empty directory to empty directory" "     " 15
21404 at_xfail=no
21405 (
21406   $as_echo "298. $at_setup_line: testing $at_desc ..."
21407   $at_traceon
21408
21409
21410 { set +x
21411 $as_echo "$at_srcdir/rpmreplace.at:337:
21412
21413 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21414
21415
21416 runroot rpm --initdb
21417
21418 tf=\"\${RPMTEST}\"/opt/foo
21419 rm -rf \"\${RPMTEST}\"/opt/*
21420 rm -rf \"\${TOPDIR}\"
21421
21422 runroot rpmbuild --quiet -bb \\
21423         --define \"ver 1.0\" \\
21424         --define \"filetype dir\" \\
21425           /data/SPECS/replacetest.spec
21426
21427 runroot rpmbuild --quiet -bb \\
21428         --define \"ver 2.0\" \\
21429         --define \"filetype dir\" \\
21430           /data/SPECS/replacetest.spec
21431
21432 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21433 test -d \"\${tf}\" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21434 test -d \"\${tf}\"
21435 "
21436 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:337"
21437 ( $at_check_trace;
21438
21439 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21440
21441
21442 runroot rpm --initdb
21443
21444 tf="${RPMTEST}"/opt/foo
21445 rm -rf "${RPMTEST}"/opt/*
21446 rm -rf "${TOPDIR}"
21447
21448 runroot rpmbuild --quiet -bb \
21449         --define "ver 1.0" \
21450         --define "filetype dir" \
21451           /data/SPECS/replacetest.spec
21452
21453 runroot rpmbuild --quiet -bb \
21454         --define "ver 2.0" \
21455         --define "filetype dir" \
21456           /data/SPECS/replacetest.spec
21457
21458 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21459 test -d "${tf}" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21460 test -d "${tf}"
21461
21462 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21463 at_status=$? at_failed=false
21464 $at_check_filter
21465 at_fn_diff_devnull "$at_stderr" || at_failed=:
21466 at_fn_diff_devnull "$at_stdout" || at_failed=:
21467 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:337"
21468 $at_failed && at_fn_log_failure
21469 $at_traceon; }
21470
21471   set +x
21472   $at_times_p && times >"$at_times_file"
21473 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21474 read at_status <"$at_status_file"
21475 #AT_STOP_298
21476 #AT_START_299
21477 at_fn_group_banner 299 'rpmreplace.at:363' \
21478   "upgrade empty directory to regular file" "        " 15
21479 at_xfail=no
21480 (
21481   $as_echo "299. $at_setup_line: testing $at_desc ..."
21482   $at_traceon
21483
21484
21485 { set +x
21486 $as_echo "$at_srcdir/rpmreplace.at:365:
21487
21488 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21489
21490
21491 runroot rpm --initdb
21492
21493 tf=\"\${RPMTEST}\"/opt/foo
21494 rm -rf \"\${RPMTEST}\"/opt/*
21495 rm -rf \"\${TOPDIR}\"
21496
21497 runroot rpmbuild --quiet -bb \\
21498         --define \"ver 1.0\" \\
21499         --define \"filetype dir\" \\
21500           /data/SPECS/replacetest.spec
21501
21502 runroot rpmbuild --quiet -bb \\
21503         --define \"ver 2.0\" \\
21504         --define \"filetype file\" \\
21505         --define \"filedata woot\" \\
21506           /data/SPECS/replacetest.spec
21507
21508 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21509 test -d \"\${tf}\" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21510 "
21511 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:365"
21512 ( $at_check_trace;
21513
21514 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21515
21516
21517 runroot rpm --initdb
21518
21519 tf="${RPMTEST}"/opt/foo
21520 rm -rf "${RPMTEST}"/opt/*
21521 rm -rf "${TOPDIR}"
21522
21523 runroot rpmbuild --quiet -bb \
21524         --define "ver 1.0" \
21525         --define "filetype dir" \
21526           /data/SPECS/replacetest.spec
21527
21528 runroot rpmbuild --quiet -bb \
21529         --define "ver 2.0" \
21530         --define "filetype file" \
21531         --define "filedata woot" \
21532           /data/SPECS/replacetest.spec
21533
21534 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21535 test -d "${tf}" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21536
21537 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21538 at_status=$? at_failed=false
21539 $at_check_filter
21540 echo >>"$at_stderr"; $as_echo " file /opt/foo from install of replacetest-2.0-1.noarch conflicts with file from package replacetest-1.0-1.noarch
21541 " | \
21542   $at_diff - "$at_stderr" || at_failed=:
21543 at_fn_diff_devnull "$at_stdout" || at_failed=:
21544 at_fn_check_status 2 $at_status "$at_srcdir/rpmreplace.at:365"
21545 $at_failed && at_fn_log_failure
21546 $at_traceon; }
21547
21548   set +x
21549   $at_times_p && times >"$at_times_file"
21550 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21551 read at_status <"$at_status_file"
21552 #AT_STOP_299
21553 #AT_START_300
21554 at_fn_group_banner 300 'rpmreplace.at:392' \
21555   "upgrade locally symlinked directory" "            " 15
21556 at_xfail=no
21557 (
21558   $as_echo "300. $at_setup_line: testing $at_desc ..."
21559   $at_traceon
21560
21561
21562 { set +x
21563 $as_echo "$at_srcdir/rpmreplace.at:394:
21564
21565 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21566
21567
21568 runroot rpm --initdb
21569
21570 tf=\"\${RPMTEST}\"/opt/foo
21571 rm -rf \"\${RPMTEST}\"/opt/*
21572 rm -rf \"\${TOPDIR}\"
21573
21574 runroot rpmbuild --quiet -bb \\
21575         --define \"ver 1.0\" \\
21576         --define \"filetype datadir\" \\
21577         --define \"filedata README1\" \\
21578         --define \"user \$(id -u -n)\" \\
21579         --define \"grp \$(id -g -n)\" \\
21580           /data/SPECS/replacetest.spec
21581
21582 runroot rpmbuild --quiet -bb \\
21583         --define \"ver 2.0\" \\
21584         --define \"filetype datadir\" \\
21585         --define \"filedata README2\" \\
21586         --define \"user \$(id -u -n)\" \\
21587         --define \"grp \$(id -g -n)\" \\
21588           /data/SPECS/replacetest.spec
21589
21590 mkdir \"\${RPMTEST}\"/opt/f00f
21591 ln -s f00f \"\${RPMTEST}\"/opt/foo
21592 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21593 test -L \"\${tf}\" && test -d \"\${tf}\" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21594 test -L \"\${tf}\" && test -d \"\${tf}\"
21595 "
21596 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:394"
21597 ( $at_check_trace;
21598
21599 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21600
21601
21602 runroot rpm --initdb
21603
21604 tf="${RPMTEST}"/opt/foo
21605 rm -rf "${RPMTEST}"/opt/*
21606 rm -rf "${TOPDIR}"
21607
21608 runroot rpmbuild --quiet -bb \
21609         --define "ver 1.0" \
21610         --define "filetype datadir" \
21611         --define "filedata README1" \
21612         --define "user $(id -u -n)" \
21613         --define "grp $(id -g -n)" \
21614           /data/SPECS/replacetest.spec
21615
21616 runroot rpmbuild --quiet -bb \
21617         --define "ver 2.0" \
21618         --define "filetype datadir" \
21619         --define "filedata README2" \
21620         --define "user $(id -u -n)" \
21621         --define "grp $(id -g -n)" \
21622           /data/SPECS/replacetest.spec
21623
21624 mkdir "${RPMTEST}"/opt/f00f
21625 ln -s f00f "${RPMTEST}"/opt/foo
21626 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21627 test -L "${tf}" && test -d "${tf}" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21628 test -L "${tf}" && test -d "${tf}"
21629
21630 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21631 at_status=$? at_failed=false
21632 $at_check_filter
21633 at_fn_diff_devnull "$at_stderr" || at_failed=:
21634 at_fn_diff_devnull "$at_stdout" || at_failed=:
21635 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:394"
21636 $at_failed && at_fn_log_failure
21637 $at_traceon; }
21638
21639   set +x
21640   $at_times_p && times >"$at_times_file"
21641 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21642 read at_status <"$at_status_file"
21643 #AT_STOP_300
21644 #AT_START_301
21645 at_fn_group_banner 301 'rpmreplace.at:428' \
21646   "upgrade invalid locally symlinked directory" "    " 15
21647 at_xfail=no
21648 (
21649   $as_echo "301. $at_setup_line: testing $at_desc ..."
21650   $at_traceon
21651
21652
21653 { set +x
21654 $as_echo "$at_srcdir/rpmreplace.at:430:
21655
21656 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21657
21658
21659 runroot rpm --initdb
21660
21661 tf=\"\${RPMTEST}\"/opt/foo
21662 rm -rf \"\${RPMTEST}\"/opt/*
21663 rm -rf \"\${TOPDIR}\"
21664
21665 runroot rpmbuild --quiet -bb \\
21666         --define \"ver 1.0\" \\
21667         --define \"filetype datadir\" \\
21668         --define \"filedata README1\" \\
21669           /data/SPECS/replacetest.spec
21670
21671 runroot rpmbuild --quiet -bb \\
21672         --define \"ver 2.0\" \\
21673         --define \"filetype datadir\" \\
21674         --define \"filedata README2\" \\
21675           /data/SPECS/replacetest.spec
21676
21677 mkdir \"\${RPMTEST}\"/opt/f00f
21678 ln -s f00f \"\${RPMTEST}\"/opt/foo
21679 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21680 test -L \"\${tf}\" && test -d \"\${tf}\" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21681 test -d \"\${tf}\"
21682 "
21683 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:430"
21684 ( $at_check_trace;
21685
21686 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21687
21688
21689 runroot rpm --initdb
21690
21691 tf="${RPMTEST}"/opt/foo
21692 rm -rf "${RPMTEST}"/opt/*
21693 rm -rf "${TOPDIR}"
21694
21695 runroot rpmbuild --quiet -bb \
21696         --define "ver 1.0" \
21697         --define "filetype datadir" \
21698         --define "filedata README1" \
21699           /data/SPECS/replacetest.spec
21700
21701 runroot rpmbuild --quiet -bb \
21702         --define "ver 2.0" \
21703         --define "filetype datadir" \
21704         --define "filedata README2" \
21705           /data/SPECS/replacetest.spec
21706
21707 mkdir "${RPMTEST}"/opt/f00f
21708 ln -s f00f "${RPMTEST}"/opt/foo
21709 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21710 test -L "${tf}" && test -d "${tf}" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21711 test -d "${tf}"
21712
21713 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21714 at_status=$? at_failed=false
21715 $at_check_filter
21716 at_fn_diff_devnull "$at_stderr" || at_failed=:
21717 at_fn_diff_devnull "$at_stdout" || at_failed=:
21718 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:430"
21719 $at_failed && at_fn_log_failure
21720 $at_traceon; }
21721
21722   set +x
21723   $at_times_p && times >"$at_times_file"
21724 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21725 read at_status <"$at_status_file"
21726 #AT_STOP_301
21727 #AT_START_302
21728 at_fn_group_banner 302 'rpmreplace.at:460' \
21729   "upgrade empty directory to broken link" "         " 15
21730 at_xfail=no
21731 (
21732   $as_echo "302. $at_setup_line: testing $at_desc ..."
21733   $at_traceon
21734
21735
21736 { set +x
21737 $as_echo "$at_srcdir/rpmreplace.at:462:
21738
21739 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21740
21741
21742 runroot rpm --initdb
21743
21744 tf=\"\${RPMTEST}\"/opt/foo
21745 rm -rf \"\${RPMTEST}\"/opt/*
21746 rm -rf \"\${TOPDIR}\"
21747
21748 runroot rpmbuild --quiet -bb \\
21749         --define \"ver 1.0\" \\
21750         --define \"filetype dir\" \\
21751           /data/SPECS/replacetest.spec
21752
21753 runroot rpmbuild --quiet -bb \\
21754         --define \"ver 2.0\" \\
21755         --define \"filetype link\" \\
21756         --define \"filedata woot\" \\
21757           /data/SPECS/replacetest.spec
21758
21759 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21760 test -d \"\${tf}\" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21761 "
21762 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:462"
21763 ( $at_check_trace;
21764
21765 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21766
21767
21768 runroot rpm --initdb
21769
21770 tf="${RPMTEST}"/opt/foo
21771 rm -rf "${RPMTEST}"/opt/*
21772 rm -rf "${TOPDIR}"
21773
21774 runroot rpmbuild --quiet -bb \
21775         --define "ver 1.0" \
21776         --define "filetype dir" \
21777           /data/SPECS/replacetest.spec
21778
21779 runroot rpmbuild --quiet -bb \
21780         --define "ver 2.0" \
21781         --define "filetype link" \
21782         --define "filedata woot" \
21783           /data/SPECS/replacetest.spec
21784
21785 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21786 test -d "${tf}" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21787
21788 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21789 at_status=$? at_failed=false
21790 $at_check_filter
21791 echo >>"$at_stderr"; $as_echo " file /opt/foo from install of replacetest-2.0-1.noarch conflicts with file from package replacetest-1.0-1.noarch
21792 " | \
21793   $at_diff - "$at_stderr" || at_failed=:
21794 at_fn_diff_devnull "$at_stdout" || at_failed=:
21795 at_fn_check_status 2 $at_status "$at_srcdir/rpmreplace.at:462"
21796 $at_failed && at_fn_log_failure
21797 $at_traceon; }
21798
21799   set +x
21800   $at_times_p && times >"$at_times_file"
21801 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21802 read at_status <"$at_status_file"
21803 #AT_STOP_302
21804 #AT_START_303
21805 at_fn_group_banner 303 'rpmreplace.at:489' \
21806   "upgrade empty directory to file link" "           " 15
21807 at_xfail=no
21808 (
21809   $as_echo "303. $at_setup_line: testing $at_desc ..."
21810   $at_traceon
21811
21812
21813 { set +x
21814 $as_echo "$at_srcdir/rpmreplace.at:491:
21815
21816 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21817
21818
21819 runroot rpm --initdb
21820
21821 tf=\"\${RPMTEST}\"/opt/foo
21822 rm -rf \"\${RPMTEST}\"/opt/*
21823 rm -rf \"\${TOPDIR}\"
21824
21825 runroot rpmbuild --quiet -bb \\
21826         --define \"ver 1.0\" \\
21827         --define \"filetype dir\" \\
21828           /data/SPECS/replacetest.spec
21829
21830 runroot rpmbuild --quiet -bb \\
21831         --define \"ver 2.0\" \\
21832         --define \"filetype link\" \\
21833         --define \"filedata woot\" \\
21834           /data/SPECS/replacetest.spec
21835
21836 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21837 test -d \"\${tf}\" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21838 "
21839 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:491"
21840 ( $at_check_trace;
21841
21842 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21843
21844
21845 runroot rpm --initdb
21846
21847 tf="${RPMTEST}"/opt/foo
21848 rm -rf "${RPMTEST}"/opt/*
21849 rm -rf "${TOPDIR}"
21850
21851 runroot rpmbuild --quiet -bb \
21852         --define "ver 1.0" \
21853         --define "filetype dir" \
21854           /data/SPECS/replacetest.spec
21855
21856 runroot rpmbuild --quiet -bb \
21857         --define "ver 2.0" \
21858         --define "filetype link" \
21859         --define "filedata woot" \
21860           /data/SPECS/replacetest.spec
21861
21862 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21863 test -d "${tf}" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21864
21865 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21866 at_status=$? at_failed=false
21867 $at_check_filter
21868 echo >>"$at_stderr"; $as_echo " file /opt/foo from install of replacetest-2.0-1.noarch conflicts with file from package replacetest-1.0-1.noarch
21869 " | \
21870   $at_diff - "$at_stderr" || at_failed=:
21871 at_fn_diff_devnull "$at_stdout" || at_failed=:
21872 at_fn_check_status 2 $at_status "$at_srcdir/rpmreplace.at:491"
21873 $at_failed && at_fn_log_failure
21874 $at_traceon; }
21875
21876   set +x
21877   $at_times_p && times >"$at_times_file"
21878 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21879 read at_status <"$at_status_file"
21880 #AT_STOP_303
21881 #AT_START_304
21882 at_fn_group_banner 304 'rpmreplace.at:518' \
21883   "upgrade removed empty directory to file link" "   " 15
21884 at_xfail=no
21885 (
21886   $as_echo "304. $at_setup_line: testing $at_desc ..."
21887   $at_traceon
21888
21889
21890 { set +x
21891 $as_echo "$at_srcdir/rpmreplace.at:520:
21892
21893 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21894
21895
21896 runroot rpm --initdb
21897
21898 tf=\"\${RPMTEST}\"/opt/foo
21899 rm -rf \"\${RPMTEST}\"/opt/*
21900 rm -rf \"\${TOPDIR}\"
21901
21902 runroot rpmbuild --quiet -bb \\
21903         --define \"ver 1.0\" \\
21904         --define \"filetype dir\" \\
21905           /data/SPECS/replacetest.spec
21906
21907 runroot rpmbuild --quiet -bb \\
21908         --define \"ver 2.0\" \\
21909         --define \"filetype link\" \\
21910         --define \"filedata goo\" \\
21911           /data/SPECS/replacetest.spec
21912
21913 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21914 test -d \"\${tf}\" && rmdir \"\${tf}\" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21915 readlink \"\${tf}\"
21916 "
21917 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:520"
21918 ( $at_check_trace;
21919
21920 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21921
21922
21923 runroot rpm --initdb
21924
21925 tf="${RPMTEST}"/opt/foo
21926 rm -rf "${RPMTEST}"/opt/*
21927 rm -rf "${TOPDIR}"
21928
21929 runroot rpmbuild --quiet -bb \
21930         --define "ver 1.0" \
21931         --define "filetype dir" \
21932           /data/SPECS/replacetest.spec
21933
21934 runroot rpmbuild --quiet -bb \
21935         --define "ver 2.0" \
21936         --define "filetype link" \
21937         --define "filedata goo" \
21938           /data/SPECS/replacetest.spec
21939
21940 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21941 test -d "${tf}" && rmdir "${tf}" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21942 readlink "${tf}"
21943
21944 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21945 at_status=$? at_failed=false
21946 $at_check_filter
21947 at_fn_diff_devnull "$at_stderr" || at_failed=:
21948 echo >>"$at_stdout"; $as_echo "goo
21949 " | \
21950   $at_diff - "$at_stdout" || at_failed=:
21951 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:520"
21952 $at_failed && at_fn_log_failure
21953 $at_traceon; }
21954
21955   set +x
21956   $at_times_p && times >"$at_times_file"
21957 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
21958 read at_status <"$at_status_file"
21959 #AT_STOP_304
21960 #AT_START_305
21961 at_fn_group_banner 305 'rpmreplace.at:548' \
21962   "upgrade replaced empty directory to file link" "  " 15
21963 at_xfail=no
21964 (
21965   $as_echo "305. $at_setup_line: testing $at_desc ..."
21966   $at_traceon
21967
21968
21969 { set +x
21970 $as_echo "$at_srcdir/rpmreplace.at:550:
21971
21972 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21973
21974
21975 runroot rpm --initdb
21976
21977 tf=\"\${RPMTEST}\"/opt/foo
21978 rm -rf \"\${RPMTEST}\"/opt/*
21979 rm -rf \"\${TOPDIR}\"
21980
21981 runroot rpmbuild --quiet -bb \\
21982         --define \"ver 1.0\" \\
21983         --define \"filetype dir\" \\
21984           /data/SPECS/replacetest.spec
21985
21986 runroot rpmbuild --quiet -bb \\
21987         --define \"ver 2.0\" \\
21988         --define \"filetype link\" \\
21989         --define \"filedata goo\" \\
21990           /data/SPECS/replacetest.spec
21991
21992 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21993 test -d \"\${tf}\" && rmdir \"\${tf}\" && ln -sf goo \"\${tf}\" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21994 readlink \"\${tf}\"
21995 "
21996 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:550"
21997 ( $at_check_trace;
21998
21999 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22000
22001
22002 runroot rpm --initdb
22003
22004 tf="${RPMTEST}"/opt/foo
22005 rm -rf "${RPMTEST}"/opt/*
22006 rm -rf "${TOPDIR}"
22007
22008 runroot rpmbuild --quiet -bb \
22009         --define "ver 1.0" \
22010         --define "filetype dir" \
22011           /data/SPECS/replacetest.spec
22012
22013 runroot rpmbuild --quiet -bb \
22014         --define "ver 2.0" \
22015         --define "filetype link" \
22016         --define "filedata goo" \
22017           /data/SPECS/replacetest.spec
22018
22019 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
22020 test -d "${tf}" && rmdir "${tf}" && ln -sf goo "${tf}" && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
22021 readlink "${tf}"
22022
22023 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22024 at_status=$? at_failed=false
22025 $at_check_filter
22026 at_fn_diff_devnull "$at_stderr" || at_failed=:
22027 echo >>"$at_stdout"; $as_echo "goo
22028 " | \
22029   $at_diff - "$at_stdout" || at_failed=:
22030 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:550"
22031 $at_failed && at_fn_log_failure
22032 $at_traceon; }
22033
22034   set +x
22035   $at_times_p && times >"$at_times_file"
22036 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22037 read at_status <"$at_status_file"
22038 #AT_STOP_305
22039 #AT_START_306
22040 at_fn_group_banner 306 'rpmreplace.at:578' \
22041   "upgrade empty directory to file link with pretrans" "" 15
22042 at_xfail=no
22043 (
22044   $as_echo "306. $at_setup_line: testing $at_desc ..."
22045   $at_traceon
22046
22047
22048 { set +x
22049 $as_echo "$at_srcdir/rpmreplace.at:580:
22050
22051 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22052
22053
22054 runroot rpm --initdb
22055
22056 tf=\"\${RPMTEST}\"/opt/foo
22057 rm -rf \"\${RPMTEST}\"/opt/*
22058 rm -rf \"\${TOPDIR}\"
22059
22060 runroot rpmbuild --quiet -bb \\
22061         --define \"ver 1.0\" \\
22062         --define \"filetype dir\" \\
22063           /data/SPECS/replacetest.spec
22064
22065 runroot rpmbuild --quiet -bb \\
22066         --define \"ver 2.0\" \\
22067         --define \"filetype link\" \\
22068         --define \"filedata goo\" \\
22069         --define \"fixit posix.rmdir('/opt/foo')\" \\
22070           /data/SPECS/replacetest.spec
22071
22072 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
22073 test -d \"\${tf}\" && runroot rpm -U --test /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
22074 readlink \"\${tf}\"
22075 "
22076 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:580"
22077 ( $at_check_trace;
22078
22079 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22080
22081
22082 runroot rpm --initdb
22083
22084 tf="${RPMTEST}"/opt/foo
22085 rm -rf "${RPMTEST}"/opt/*
22086 rm -rf "${TOPDIR}"
22087
22088 runroot rpmbuild --quiet -bb \
22089         --define "ver 1.0" \
22090         --define "filetype dir" \
22091           /data/SPECS/replacetest.spec
22092
22093 runroot rpmbuild --quiet -bb \
22094         --define "ver 2.0" \
22095         --define "filetype link" \
22096         --define "filedata goo" \
22097         --define "fixit posix.rmdir('/opt/foo')" \
22098           /data/SPECS/replacetest.spec
22099
22100 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
22101 test -d "${tf}" && runroot rpm -U --test /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm && runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
22102 readlink "${tf}"
22103
22104 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22105 at_status=$? at_failed=false
22106 $at_check_filter
22107 at_fn_diff_devnull "$at_stderr" || at_failed=:
22108 echo >>"$at_stdout"; $as_echo "goo
22109 " | \
22110   $at_diff - "$at_stdout" || at_failed=:
22111 at_fn_check_status 0 $at_status "$at_srcdir/rpmreplace.at:580"
22112 $at_failed && at_fn_log_failure
22113 $at_traceon; }
22114
22115   set +x
22116   $at_times_p && times >"$at_times_file"
22117 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22118 read at_status <"$at_status_file"
22119 #AT_STOP_306
22120 #AT_START_307
22121 at_fn_group_banner 307 'rpmconfig.at:6' \
22122   "install config on existiting file" "              " 16
22123 at_xfail=no
22124 (
22125   $as_echo "307. $at_setup_line: testing $at_desc ..."
22126   $at_traceon
22127
22128
22129 { set +x
22130 $as_echo "$at_srcdir/rpmconfig.at:8:
22131
22132 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22133
22134
22135 runroot rpm --initdb
22136
22137 cf=\"\${RPMTEST}\"/etc/my.conf
22138 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22139 rm -rf \"\${TOPDIR}\"
22140
22141 runroot rpmbuild --quiet -bb \\
22142         --define \"ver 1.0\" \\
22143         --define \"filedata foo\" \\
22144           /data/SPECS/configtest.spec
22145
22146 echo \"otherstuff\" > \"\${cf}\"
22147 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22148 cat \"\${cf}\"
22149 runroot rpm -e configtest
22150 cat \"\${cf}.rpmorig\"
22151 "
22152 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:8"
22153 ( $at_check_trace;
22154
22155 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22156
22157
22158 runroot rpm --initdb
22159
22160 cf="${RPMTEST}"/etc/my.conf
22161 rm -rf "${cf}" "${cf}".rpm*
22162 rm -rf "${TOPDIR}"
22163
22164 runroot rpmbuild --quiet -bb \
22165         --define "ver 1.0" \
22166         --define "filedata foo" \
22167           /data/SPECS/configtest.spec
22168
22169 echo "otherstuff" > "${cf}"
22170 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22171 cat "${cf}"
22172 runroot rpm -e configtest
22173 cat "${cf}.rpmorig"
22174
22175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22176 at_status=$? at_failed=false
22177 $at_check_filter
22178 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmorig
22179 " | \
22180   $at_diff - "$at_stderr" || at_failed=:
22181 echo >>"$at_stdout"; $as_echo "foo
22182 otherstuff
22183 " | \
22184   $at_diff - "$at_stdout" || at_failed=:
22185 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:8"
22186 $at_failed && at_fn_log_failure
22187 $at_traceon; }
22188
22189   set +x
22190   $at_times_p && times >"$at_times_file"
22191 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22192 read at_status <"$at_status_file"
22193 #AT_STOP_307
22194 #AT_START_308
22195 at_fn_group_banner 308 'rpmconfig.at:35' \
22196   "install config(noreplace) on existing file" "     " 16
22197 at_xfail=no
22198 (
22199   $as_echo "308. $at_setup_line: testing $at_desc ..."
22200   $at_traceon
22201
22202
22203 { set +x
22204 $as_echo "$at_srcdir/rpmconfig.at:37:
22205
22206 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22207
22208
22209 runroot rpm --initdb
22210
22211 cf=\"\${RPMTEST}\"/etc/my.conf
22212 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22213 rm -rf \"\${TOPDIR}\"
22214
22215 runroot rpmbuild --quiet -bb \\
22216         --define \"ver 1.0\" \\
22217         --define \"filedata foo\" \\
22218         --define \"noreplace 1\" \\
22219           /data/SPECS/configtest.spec
22220
22221 echo \"otherstuff\" > \"\${cf}\"
22222 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22223 cat \"\${cf}\"
22224 cat \"\${cf}.rpmnew\"
22225 runroot rpm -e configtest
22226 cat \"\${cf}.rpmsave\"
22227 cat \"\${cf}.rpmnew\"
22228 "
22229 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:37"
22230 ( $at_check_trace;
22231
22232 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22233
22234
22235 runroot rpm --initdb
22236
22237 cf="${RPMTEST}"/etc/my.conf
22238 rm -rf "${cf}" "${cf}".rpm*
22239 rm -rf "${TOPDIR}"
22240
22241 runroot rpmbuild --quiet -bb \
22242         --define "ver 1.0" \
22243         --define "filedata foo" \
22244         --define "noreplace 1" \
22245           /data/SPECS/configtest.spec
22246
22247 echo "otherstuff" > "${cf}"
22248 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22249 cat "${cf}"
22250 cat "${cf}.rpmnew"
22251 runroot rpm -e configtest
22252 cat "${cf}.rpmsave"
22253 cat "${cf}.rpmnew"
22254
22255 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22256 at_status=$? at_failed=false
22257 $at_check_filter
22258 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
22259 warning: /etc/my.conf saved as /etc/my.conf.rpmsave
22260 " | \
22261   $at_diff - "$at_stderr" || at_failed=:
22262 echo >>"$at_stdout"; $as_echo "otherstuff
22263 foo
22264 otherstuff
22265 foo
22266 " | \
22267   $at_diff - "$at_stdout" || at_failed=:
22268 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:37"
22269 $at_failed && at_fn_log_failure
22270 $at_traceon; }
22271
22272   set +x
22273   $at_times_p && times >"$at_times_file"
22274 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22275 read at_status <"$at_status_file"
22276 #AT_STOP_308
22277 #AT_START_309
22278 at_fn_group_banner 309 'rpmconfig.at:70' \
22279   "install config on existiting identical file" "    " 16
22280 at_xfail=no
22281 (
22282   $as_echo "309. $at_setup_line: testing $at_desc ..."
22283   $at_traceon
22284
22285
22286 { set +x
22287 $as_echo "$at_srcdir/rpmconfig.at:72:
22288
22289 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22290
22291
22292 runroot rpm --initdb
22293
22294 cf=\"\${RPMTEST}\"/etc/my.conf
22295 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22296 rm -rf \"\${TOPDIR}\"
22297
22298 runroot rpmbuild --quiet -bb \\
22299         --define \"ver 1.0\" \\
22300         --define \"filedata foo\" \\
22301           /data/SPECS/configtest.spec
22302
22303 echo \"foo\" > \"\${cf}\"
22304 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22305 cat \"\${cf}\"
22306 runroot rpm -e configtest
22307 test ! -f \"\${cf}\"
22308 "
22309 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:72"
22310 ( $at_check_trace;
22311
22312 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22313
22314
22315 runroot rpm --initdb
22316
22317 cf="${RPMTEST}"/etc/my.conf
22318 rm -rf "${cf}" "${cf}".rpm*
22319 rm -rf "${TOPDIR}"
22320
22321 runroot rpmbuild --quiet -bb \
22322         --define "ver 1.0" \
22323         --define "filedata foo" \
22324           /data/SPECS/configtest.spec
22325
22326 echo "foo" > "${cf}"
22327 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22328 cat "${cf}"
22329 runroot rpm -e configtest
22330 test ! -f "${cf}"
22331
22332 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22333 at_status=$? at_failed=false
22334 $at_check_filter
22335 at_fn_diff_devnull "$at_stderr" || at_failed=:
22336 echo >>"$at_stdout"; $as_echo "foo
22337 " | \
22338   $at_diff - "$at_stdout" || at_failed=:
22339 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:72"
22340 $at_failed && at_fn_log_failure
22341 $at_traceon; }
22342
22343   set +x
22344   $at_times_p && times >"$at_times_file"
22345 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22346 read at_status <"$at_status_file"
22347 #AT_STOP_309
22348 #AT_START_310
22349 at_fn_group_banner 310 'rpmconfig.at:97' \
22350   "erase unchanged config" "                         " 16
22351 at_xfail=no
22352 (
22353   $as_echo "310. $at_setup_line: testing $at_desc ..."
22354   $at_traceon
22355
22356
22357 { set +x
22358 $as_echo "$at_srcdir/rpmconfig.at:99:
22359
22360 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22361
22362
22363 runroot rpm --initdb
22364
22365 cf=\"\${RPMTEST}\"/etc/my.conf
22366 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22367 rm -rf \"\${TOPDIR}\"
22368
22369 runroot rpmbuild --quiet -bb \\
22370         --define \"ver 1.0\" \\
22371         --define \"filedata foo\" \\
22372           /data/SPECS/configtest.spec
22373
22374 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22375 cat \"\${cf}\"
22376 runroot rpm -e configtest
22377 test ! -f \"\${cf}\"
22378 "
22379 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:99"
22380 ( $at_check_trace;
22381
22382 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22383
22384
22385 runroot rpm --initdb
22386
22387 cf="${RPMTEST}"/etc/my.conf
22388 rm -rf "${cf}" "${cf}".rpm*
22389 rm -rf "${TOPDIR}"
22390
22391 runroot rpmbuild --quiet -bb \
22392         --define "ver 1.0" \
22393         --define "filedata foo" \
22394           /data/SPECS/configtest.spec
22395
22396 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22397 cat "${cf}"
22398 runroot rpm -e configtest
22399 test ! -f "${cf}"
22400
22401 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22402 at_status=$? at_failed=false
22403 $at_check_filter
22404 at_fn_diff_devnull "$at_stderr" || at_failed=:
22405 echo >>"$at_stdout"; $as_echo "foo
22406 " | \
22407   $at_diff - "$at_stdout" || at_failed=:
22408 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:99"
22409 $at_failed && at_fn_log_failure
22410 $at_traceon; }
22411
22412   set +x
22413   $at_times_p && times >"$at_times_file"
22414 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22415 read at_status <"$at_status_file"
22416 #AT_STOP_310
22417 #AT_START_311
22418 at_fn_group_banner 311 'rpmconfig.at:123' \
22419   "erase changed config" "                           " 16
22420 at_xfail=no
22421 (
22422   $as_echo "311. $at_setup_line: testing $at_desc ..."
22423   $at_traceon
22424
22425
22426 { set +x
22427 $as_echo "$at_srcdir/rpmconfig.at:125:
22428
22429 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22430
22431
22432 runroot rpm --initdb
22433
22434 cf=\"\${RPMTEST}\"/etc/my.conf
22435 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22436 rm -rf \"\${TOPDIR}\"
22437
22438 runroot rpmbuild --quiet -bb \\
22439         --define \"ver 1.0\" \\
22440         --define \"filedata foo\" \\
22441           /data/SPECS/configtest.spec
22442
22443 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22444 cat \"\${cf}\"
22445 echo \"otherstuff\" > \"\${cf}\"
22446 runroot rpm -e configtest
22447 cat \"\${cf}.rpmsave\"
22448 test ! -f \"\${cf}\"
22449 "
22450 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:125"
22451 ( $at_check_trace;
22452
22453 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22454
22455
22456 runroot rpm --initdb
22457
22458 cf="${RPMTEST}"/etc/my.conf
22459 rm -rf "${cf}" "${cf}".rpm*
22460 rm -rf "${TOPDIR}"
22461
22462 runroot rpmbuild --quiet -bb \
22463         --define "ver 1.0" \
22464         --define "filedata foo" \
22465           /data/SPECS/configtest.spec
22466
22467 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22468 cat "${cf}"
22469 echo "otherstuff" > "${cf}"
22470 runroot rpm -e configtest
22471 cat "${cf}.rpmsave"
22472 test ! -f "${cf}"
22473
22474 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22475 at_status=$? at_failed=false
22476 $at_check_filter
22477 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
22478 " | \
22479   $at_diff - "$at_stderr" || at_failed=:
22480 echo >>"$at_stdout"; $as_echo "foo
22481 otherstuff
22482 " | \
22483   $at_diff - "$at_stdout" || at_failed=:
22484 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:125"
22485 $at_failed && at_fn_log_failure
22486 $at_traceon; }
22487
22488   set +x
22489   $at_times_p && times >"$at_times_file"
22490 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22491 read at_status <"$at_status_file"
22492 #AT_STOP_311
22493 #AT_START_312
22494 at_fn_group_banner 312 'rpmconfig.at:153' \
22495   "erase changed config(noreplace)" "                " 16
22496 at_xfail=no
22497 (
22498   $as_echo "312. $at_setup_line: testing $at_desc ..."
22499   $at_traceon
22500
22501
22502 { set +x
22503 $as_echo "$at_srcdir/rpmconfig.at:155:
22504
22505 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22506
22507
22508 runroot rpm --initdb
22509
22510 cf=\"\${RPMTEST}\"/etc/my.conf
22511 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22512 rm -rf \"\${TOPDIR}\"
22513
22514 runroot rpmbuild --quiet -bb \\
22515         --define \"ver 1.0\" \\
22516         --define \"filedata foo\" \\
22517         --define \"noreplace 1\" \\
22518           /data/SPECS/configtest.spec
22519
22520 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22521 cat \"\${cf}\"
22522 echo \"otherstuff\" > \"\${cf}\"
22523 runroot rpm -e configtest
22524 cat \"\${cf}.rpmsave\"
22525 test ! -f \"\${cf}\"
22526 "
22527 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:155"
22528 ( $at_check_trace;
22529
22530 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22531
22532
22533 runroot rpm --initdb
22534
22535 cf="${RPMTEST}"/etc/my.conf
22536 rm -rf "${cf}" "${cf}".rpm*
22537 rm -rf "${TOPDIR}"
22538
22539 runroot rpmbuild --quiet -bb \
22540         --define "ver 1.0" \
22541         --define "filedata foo" \
22542         --define "noreplace 1" \
22543           /data/SPECS/configtest.spec
22544
22545 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22546 cat "${cf}"
22547 echo "otherstuff" > "${cf}"
22548 runroot rpm -e configtest
22549 cat "${cf}.rpmsave"
22550 test ! -f "${cf}"
22551
22552 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22553 at_status=$? at_failed=false
22554 $at_check_filter
22555 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
22556 " | \
22557   $at_diff - "$at_stderr" || at_failed=:
22558 echo >>"$at_stdout"; $as_echo "foo
22559 otherstuff
22560 " | \
22561   $at_diff - "$at_stdout" || at_failed=:
22562 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:155"
22563 $at_failed && at_fn_log_failure
22564 $at_traceon; }
22565
22566   set +x
22567   $at_times_p && times >"$at_times_file"
22568 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22569 read at_status <"$at_status_file"
22570 #AT_STOP_312
22571 #AT_START_313
22572 at_fn_group_banner 313 'rpmconfig.at:185' \
22573   "upgrade unchanged config" "                       " 16
22574 at_xfail=no
22575 (
22576   $as_echo "313. $at_setup_line: testing $at_desc ..."
22577   $at_traceon
22578
22579
22580 { set +x
22581 $as_echo "$at_srcdir/rpmconfig.at:187:
22582
22583 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22584
22585
22586 runroot rpm --initdb
22587
22588 cf=\"\${RPMTEST}\"/etc/my.conf
22589 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22590 rm -rf \"\${TOPDIR}\"
22591
22592 for v in \"1.0\" \"2.0\"; do
22593     runroot rpmbuild --quiet -bb \\
22594         --define \"ver \$v\" \\
22595         --define \"filedata foo\" \\
22596           /data/SPECS/configtest.spec
22597 done
22598
22599 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22600 cat \"\${cf}\"
22601 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22602 cat \"\${cf}\"
22603 "
22604 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:187"
22605 ( $at_check_trace;
22606
22607 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22608
22609
22610 runroot rpm --initdb
22611
22612 cf="${RPMTEST}"/etc/my.conf
22613 rm -rf "${cf}" "${cf}".rpm*
22614 rm -rf "${TOPDIR}"
22615
22616 for v in "1.0" "2.0"; do
22617     runroot rpmbuild --quiet -bb \
22618         --define "ver $v" \
22619         --define "filedata foo" \
22620           /data/SPECS/configtest.spec
22621 done
22622
22623 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22624 cat "${cf}"
22625 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22626 cat "${cf}"
22627
22628 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22629 at_status=$? at_failed=false
22630 $at_check_filter
22631 at_fn_diff_devnull "$at_stderr" || at_failed=:
22632 echo >>"$at_stdout"; $as_echo "foo
22633 foo
22634 " | \
22635   $at_diff - "$at_stdout" || at_failed=:
22636 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:187"
22637 $at_failed && at_fn_log_failure
22638 $at_traceon; }
22639
22640   set +x
22641   $at_times_p && times >"$at_times_file"
22642 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22643 read at_status <"$at_status_file"
22644 #AT_STOP_313
22645 #AT_START_314
22646 at_fn_group_banner 314 'rpmconfig.at:215' \
22647   "upgrade unchanged config - touching test" "       " 16
22648 at_xfail=no
22649 (
22650   $as_echo "314. $at_setup_line: testing $at_desc ..."
22651   $at_traceon
22652
22653
22654 { set +x
22655 $as_echo "$at_srcdir/rpmconfig.at:217:
22656
22657 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22658
22659
22660 runroot rpm --initdb
22661
22662 cf=\"\${RPMTEST}\"/etc/my.conf
22663 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22664 rm -rf \"\${TOPDIR}\"
22665
22666 for v in \"1.0\" \"2.0\"; do
22667     runroot rpmbuild --quiet -bb \\
22668         --define \"ver \$v\" \\
22669         --define \"filedata foo\" \\
22670           /data/SPECS/configtest.spec
22671 done
22672
22673 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22674 runroot rpm -Uvv --fsmdebug /build/RPMS/noarch/configtest-2.0-1.noarch.rpm > output.txt 2>&1
22675 grep -c  \"touch\" output.txt
22676 "
22677 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:217"
22678 ( $at_check_trace;
22679
22680 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22681
22682
22683 runroot rpm --initdb
22684
22685 cf="${RPMTEST}"/etc/my.conf
22686 rm -rf "${cf}" "${cf}".rpm*
22687 rm -rf "${TOPDIR}"
22688
22689 for v in "1.0" "2.0"; do
22690     runroot rpmbuild --quiet -bb \
22691         --define "ver $v" \
22692         --define "filedata foo" \
22693           /data/SPECS/configtest.spec
22694 done
22695
22696 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22697 runroot rpm -Uvv --fsmdebug /build/RPMS/noarch/configtest-2.0-1.noarch.rpm > output.txt 2>&1
22698 grep -c  "touch" output.txt
22699
22700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22701 at_status=$? at_failed=false
22702 $at_check_filter
22703 at_fn_diff_devnull "$at_stderr" || at_failed=:
22704 echo >>"$at_stdout"; $as_echo "1
22705 " | \
22706   $at_diff - "$at_stdout" || at_failed=:
22707 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:217"
22708 $at_failed && at_fn_log_failure
22709 $at_traceon; }
22710
22711   set +x
22712   $at_times_p && times >"$at_times_file"
22713 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22714 read at_status <"$at_status_file"
22715 #AT_STOP_314
22716 #AT_START_315
22717 at_fn_group_banner 315 'rpmconfig.at:243' \
22718   "upgrade modified config" "                        " 16
22719 at_xfail=no
22720 (
22721   $as_echo "315. $at_setup_line: testing $at_desc ..."
22722   $at_traceon
22723
22724
22725 { set +x
22726 $as_echo "$at_srcdir/rpmconfig.at:245:
22727
22728 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22729
22730
22731 runroot rpm --initdb
22732
22733 cf=\"\${RPMTEST}\"/etc/my.conf
22734 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22735 rm -rf \"\${TOPDIR}\"
22736
22737 for v in \"1.0\" \"2.0\"; do
22738     runroot rpmbuild --quiet -bb \\
22739         --define \"ver \$v\" \\
22740         --define \"filedata foo\" \\
22741           /data/SPECS/configtest.spec
22742 done
22743
22744 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22745 cat \"\${cf}\"
22746 echo \"otherstuff\" > \"\${cf}\"
22747 cat \"\${cf}\"
22748 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22749 cat \"\${cf}\"
22750 "
22751 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:245"
22752 ( $at_check_trace;
22753
22754 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22755
22756
22757 runroot rpm --initdb
22758
22759 cf="${RPMTEST}"/etc/my.conf
22760 rm -rf "${cf}" "${cf}".rpm*
22761 rm -rf "${TOPDIR}"
22762
22763 for v in "1.0" "2.0"; do
22764     runroot rpmbuild --quiet -bb \
22765         --define "ver $v" \
22766         --define "filedata foo" \
22767           /data/SPECS/configtest.spec
22768 done
22769
22770 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22771 cat "${cf}"
22772 echo "otherstuff" > "${cf}"
22773 cat "${cf}"
22774 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22775 cat "${cf}"
22776
22777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22778 at_status=$? at_failed=false
22779 $at_check_filter
22780 at_fn_diff_devnull "$at_stderr" || at_failed=:
22781 echo >>"$at_stdout"; $as_echo "foo
22782 otherstuff
22783 otherstuff
22784 " | \
22785   $at_diff - "$at_stdout" || at_failed=:
22786 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:245"
22787 $at_failed && at_fn_log_failure
22788 $at_traceon; }
22789
22790   set +x
22791   $at_times_p && times >"$at_times_file"
22792 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22793 read at_status <"$at_status_file"
22794 #AT_STOP_315
22795 #AT_START_316
22796 at_fn_group_banner 316 'rpmconfig.at:276' \
22797   "upgrade changing config" "                        " 16
22798 at_xfail=no
22799 (
22800   $as_echo "316. $at_setup_line: testing $at_desc ..."
22801   $at_traceon
22802
22803
22804 { set +x
22805 $as_echo "$at_srcdir/rpmconfig.at:278:
22806
22807 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22808
22809
22810 runroot rpm --initdb
22811
22812 cf=\"\${RPMTEST}\"/etc/my.conf
22813 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22814 rm -rf \"\${TOPDIR}\"
22815
22816 for v in \"1.0\" \"2.0\"; do
22817     runroot rpmbuild --quiet -bb \\
22818         --define \"ver \$v\" \\
22819         --define \"filedata foo-\$v\" \\
22820           /data/SPECS/configtest.spec
22821 done
22822
22823 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22824 cat \"\${cf}\"
22825 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22826 cat \"\${cf}\"
22827 "
22828 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:278"
22829 ( $at_check_trace;
22830
22831 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22832
22833
22834 runroot rpm --initdb
22835
22836 cf="${RPMTEST}"/etc/my.conf
22837 rm -rf "${cf}" "${cf}".rpm*
22838 rm -rf "${TOPDIR}"
22839
22840 for v in "1.0" "2.0"; do
22841     runroot rpmbuild --quiet -bb \
22842         --define "ver $v" \
22843         --define "filedata foo-$v" \
22844           /data/SPECS/configtest.spec
22845 done
22846
22847 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22848 cat "${cf}"
22849 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22850 cat "${cf}"
22851
22852 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22853 at_status=$? at_failed=false
22854 $at_check_filter
22855 at_fn_diff_devnull "$at_stderr" || at_failed=:
22856 echo >>"$at_stdout"; $as_echo "foo-1.0
22857 foo-2.0
22858 " | \
22859   $at_diff - "$at_stdout" || at_failed=:
22860 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:278"
22861 $at_failed && at_fn_log_failure
22862 $at_traceon; }
22863
22864   set +x
22865   $at_times_p && times >"$at_times_file"
22866 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22867 read at_status <"$at_status_file"
22868 #AT_STOP_316
22869 #AT_START_317
22870 at_fn_group_banner 317 'rpmconfig.at:306' \
22871   "upgrade changing, modified config 1" "            " 16
22872 at_xfail=no
22873 (
22874   $as_echo "317. $at_setup_line: testing $at_desc ..."
22875   $at_traceon
22876
22877
22878 { set +x
22879 $as_echo "$at_srcdir/rpmconfig.at:308:
22880
22881 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22882
22883
22884 runroot rpm --initdb
22885
22886 cf=\"\${RPMTEST}\"/etc/my.conf
22887 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22888 rm -rf \"\${TOPDIR}\"
22889
22890 for v in \"1.0\" \"2.0\"; do
22891     runroot rpmbuild --quiet -bb \\
22892         --define \"ver \$v\" \\
22893         --define \"filedata foo-\$v\" \\
22894           /data/SPECS/configtest.spec
22895 done
22896
22897 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22898 cat \"\${cf}\"
22899 echo \"otherstuff\" > \"\${RPMTEST}\"/etc/my.conf
22900 cat \"\${cf}\"
22901 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22902 cat \"\${cf}\"
22903 cat \"\${cf}.rpmsave\"
22904 "
22905 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:308"
22906 ( $at_check_trace;
22907
22908 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22909
22910
22911 runroot rpm --initdb
22912
22913 cf="${RPMTEST}"/etc/my.conf
22914 rm -rf "${cf}" "${cf}".rpm*
22915 rm -rf "${TOPDIR}"
22916
22917 for v in "1.0" "2.0"; do
22918     runroot rpmbuild --quiet -bb \
22919         --define "ver $v" \
22920         --define "filedata foo-$v" \
22921           /data/SPECS/configtest.spec
22922 done
22923
22924 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22925 cat "${cf}"
22926 echo "otherstuff" > "${RPMTEST}"/etc/my.conf
22927 cat "${cf}"
22928 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22929 cat "${cf}"
22930 cat "${cf}.rpmsave"
22931
22932 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22933 at_status=$? at_failed=false
22934 $at_check_filter
22935 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
22936 " | \
22937   $at_diff - "$at_stderr" || at_failed=:
22938 echo >>"$at_stdout"; $as_echo "foo-1.0
22939 otherstuff
22940 foo-2.0
22941 otherstuff
22942 " | \
22943   $at_diff - "$at_stdout" || at_failed=:
22944 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:308"
22945 $at_failed && at_fn_log_failure
22946 $at_traceon; }
22947
22948   set +x
22949   $at_times_p && times >"$at_times_file"
22950 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
22951 read at_status <"$at_status_file"
22952 #AT_STOP_317
22953 #AT_START_318
22954 at_fn_group_banner 318 'rpmconfig.at:342' \
22955   "upgrade changing, modified config 2" "            " 16
22956 at_xfail=no
22957 (
22958   $as_echo "318. $at_setup_line: testing $at_desc ..."
22959   $at_traceon
22960
22961
22962 { set +x
22963 $as_echo "$at_srcdir/rpmconfig.at:344:
22964
22965 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22966
22967
22968 runroot rpm --initdb
22969
22970 cf=\"\${RPMTEST}\"/etc/my.conf
22971 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22972 rm -rf \"\${TOPDIR}\"
22973
22974 for v in \"1.0\" \"2.0\"; do
22975     runroot rpmbuild --quiet -bb \\
22976         --define \"ver \$v\" \\
22977         --define \"filedata foo-\$v\" \\
22978           /data/SPECS/configtest.spec
22979 done
22980
22981 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22982 cat \"\${cf}\"
22983 echo \"foo-2.0\" > \"\${RPMTEST}\"/etc/my.conf
22984 cat \"\${cf}\"
22985 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22986 cat \"\${cf}\"
22987 "
22988 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:344"
22989 ( $at_check_trace;
22990
22991 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22992
22993
22994 runroot rpm --initdb
22995
22996 cf="${RPMTEST}"/etc/my.conf
22997 rm -rf "${cf}" "${cf}".rpm*
22998 rm -rf "${TOPDIR}"
22999
23000 for v in "1.0" "2.0"; do
23001     runroot rpmbuild --quiet -bb \
23002         --define "ver $v" \
23003         --define "filedata foo-$v" \
23004           /data/SPECS/configtest.spec
23005 done
23006
23007 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23008 cat "${cf}"
23009 echo "foo-2.0" > "${RPMTEST}"/etc/my.conf
23010 cat "${cf}"
23011 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23012 cat "${cf}"
23013
23014 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23015 at_status=$? at_failed=false
23016 $at_check_filter
23017 at_fn_diff_devnull "$at_stderr" || at_failed=:
23018 echo >>"$at_stdout"; $as_echo "foo-1.0
23019 foo-2.0
23020 foo-2.0
23021 " | \
23022   $at_diff - "$at_stdout" || at_failed=:
23023 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:344"
23024 $at_failed && at_fn_log_failure
23025 $at_traceon; }
23026
23027   set +x
23028   $at_times_p && times >"$at_times_file"
23029 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23030 read at_status <"$at_status_file"
23031 #AT_STOP_318
23032 #AT_START_319
23033 at_fn_group_banner 319 'rpmconfig.at:377' \
23034   "upgrade unchanged config(noreplace)" "            " 16
23035 at_xfail=no
23036 (
23037   $as_echo "319. $at_setup_line: testing $at_desc ..."
23038   $at_traceon
23039
23040
23041 { set +x
23042 $as_echo "$at_srcdir/rpmconfig.at:379:
23043
23044 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23045
23046
23047 runroot rpm --initdb
23048
23049 cf=\"\${RPMTEST}\"/etc/my.conf
23050 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23051 rm -rf \"\${TOPDIR}\"
23052
23053 for v in \"1.0\" \"2.0\"; do
23054     runroot rpmbuild --quiet -bb \\
23055         --define \"ver \$v\" \\
23056         --define \"filedata foo\" \\
23057         --define \"noreplace 1\" \\
23058           /data/SPECS/configtest.spec
23059 done
23060
23061 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23062 cat \"\${cf}\"
23063 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23064 cat \"\${cf}\"
23065 "
23066 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:379"
23067 ( $at_check_trace;
23068
23069 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23070
23071
23072 runroot rpm --initdb
23073
23074 cf="${RPMTEST}"/etc/my.conf
23075 rm -rf "${cf}" "${cf}".rpm*
23076 rm -rf "${TOPDIR}"
23077
23078 for v in "1.0" "2.0"; do
23079     runroot rpmbuild --quiet -bb \
23080         --define "ver $v" \
23081         --define "filedata foo" \
23082         --define "noreplace 1" \
23083           /data/SPECS/configtest.spec
23084 done
23085
23086 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23087 cat "${cf}"
23088 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23089 cat "${cf}"
23090
23091 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23092 at_status=$? at_failed=false
23093 $at_check_filter
23094 at_fn_diff_devnull "$at_stderr" || at_failed=:
23095 echo >>"$at_stdout"; $as_echo "foo
23096 foo
23097 " | \
23098   $at_diff - "$at_stdout" || at_failed=:
23099 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:379"
23100 $at_failed && at_fn_log_failure
23101 $at_traceon; }
23102
23103   set +x
23104   $at_times_p && times >"$at_times_file"
23105 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23106 read at_status <"$at_status_file"
23107 #AT_STOP_319
23108 #AT_START_320
23109 at_fn_group_banner 320 'rpmconfig.at:409' \
23110   "upgrade modified config(noreplace)" "             " 16
23111 at_xfail=no
23112 (
23113   $as_echo "320. $at_setup_line: testing $at_desc ..."
23114   $at_traceon
23115
23116
23117 { set +x
23118 $as_echo "$at_srcdir/rpmconfig.at:411:
23119
23120 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23121
23122
23123 runroot rpm --initdb
23124
23125 cf=\"\${RPMTEST}\"/etc/my.conf
23126 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23127 rm -rf \"\${TOPDIR}\"
23128
23129 for v in \"1.0\" \"2.0\"; do
23130     runroot rpmbuild --quiet -bb \\
23131         --define \"ver \$v\" \\
23132         --define \"filedata foo\" \\
23133         --define \"noreplace 1\" \\
23134           /data/SPECS/configtest.spec
23135 done
23136
23137 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23138 cat \"\${cf}\"
23139 echo \"otherstuff\" > \"\${cf}\"
23140 cat \"\${cf}\"
23141 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23142 cat \"\${cf}\"
23143 "
23144 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:411"
23145 ( $at_check_trace;
23146
23147 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23148
23149
23150 runroot rpm --initdb
23151
23152 cf="${RPMTEST}"/etc/my.conf
23153 rm -rf "${cf}" "${cf}".rpm*
23154 rm -rf "${TOPDIR}"
23155
23156 for v in "1.0" "2.0"; do
23157     runroot rpmbuild --quiet -bb \
23158         --define "ver $v" \
23159         --define "filedata foo" \
23160         --define "noreplace 1" \
23161           /data/SPECS/configtest.spec
23162 done
23163
23164 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23165 cat "${cf}"
23166 echo "otherstuff" > "${cf}"
23167 cat "${cf}"
23168 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23169 cat "${cf}"
23170
23171 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23172 at_status=$? at_failed=false
23173 $at_check_filter
23174 at_fn_diff_devnull "$at_stderr" || at_failed=:
23175 echo >>"$at_stdout"; $as_echo "foo
23176 otherstuff
23177 otherstuff
23178 " | \
23179   $at_diff - "$at_stdout" || at_failed=:
23180 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:411"
23181 $at_failed && at_fn_log_failure
23182 $at_traceon; }
23183
23184   set +x
23185   $at_times_p && times >"$at_times_file"
23186 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23187 read at_status <"$at_status_file"
23188 #AT_STOP_320
23189 #AT_START_321
23190 at_fn_group_banner 321 'rpmconfig.at:443' \
23191   "upgrade changing config(noreplace)" "             " 16
23192 at_xfail=no
23193 (
23194   $as_echo "321. $at_setup_line: testing $at_desc ..."
23195   $at_traceon
23196
23197
23198 { set +x
23199 $as_echo "$at_srcdir/rpmconfig.at:445:
23200
23201 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23202
23203
23204 runroot rpm --initdb
23205
23206 cf=\"\${RPMTEST}\"/etc/my.conf
23207 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23208 rm -rf \"\${TOPDIR}\"
23209
23210 for v in \"1.0\" \"2.0\"; do
23211     runroot rpmbuild --quiet -bb \\
23212         --define \"ver \$v\" \\
23213         --define \"filedata foo-\$v\" \\
23214         --define \"noreplace 1\" \\
23215           /data/SPECS/configtest.spec
23216 done
23217
23218 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23219 cat \"\${cf}\"
23220 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23221 cat \"\${cf}\"
23222 "
23223 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:445"
23224 ( $at_check_trace;
23225
23226 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23227
23228
23229 runroot rpm --initdb
23230
23231 cf="${RPMTEST}"/etc/my.conf
23232 rm -rf "${cf}" "${cf}".rpm*
23233 rm -rf "${TOPDIR}"
23234
23235 for v in "1.0" "2.0"; do
23236     runroot rpmbuild --quiet -bb \
23237         --define "ver $v" \
23238         --define "filedata foo-$v" \
23239         --define "noreplace 1" \
23240           /data/SPECS/configtest.spec
23241 done
23242
23243 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23244 cat "${cf}"
23245 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23246 cat "${cf}"
23247
23248 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23249 at_status=$? at_failed=false
23250 $at_check_filter
23251 at_fn_diff_devnull "$at_stderr" || at_failed=:
23252 echo >>"$at_stdout"; $as_echo "foo-1.0
23253 foo-2.0
23254 " | \
23255   $at_diff - "$at_stdout" || at_failed=:
23256 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:445"
23257 $at_failed && at_fn_log_failure
23258 $at_traceon; }
23259
23260   set +x
23261   $at_times_p && times >"$at_times_file"
23262 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23263 read at_status <"$at_status_file"
23264 #AT_STOP_321
23265 #AT_START_322
23266 at_fn_group_banner 322 'rpmconfig.at:474' \
23267   "upgrade changing, modified config(noreplace) 1" " " 16
23268 at_xfail=no
23269 (
23270   $as_echo "322. $at_setup_line: testing $at_desc ..."
23271   $at_traceon
23272
23273
23274 { set +x
23275 $as_echo "$at_srcdir/rpmconfig.at:476:
23276
23277 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23278
23279
23280 runroot rpm --initdb
23281
23282 cf=\"\${RPMTEST}\"/etc/my.conf
23283 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23284 rm -rf \"\${TOPDIR}\"
23285
23286 for v in \"1.0\" \"2.0\"; do
23287     runroot rpmbuild --quiet -bb \\
23288         --define \"ver \$v\" \\
23289         --define \"filedata foo-\$v\" \\
23290         --define \"noreplace 1\" \\
23291           /data/SPECS/configtest.spec
23292 done
23293
23294 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23295 cat \"\${cf}\"
23296 echo \"otherstuff\" > \"\${RPMTEST}\"/etc/my.conf
23297 cat \"\${cf}\"
23298 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23299 cat \"\${cf}\"
23300 cat \"\${cf}.rpmnew\"
23301 "
23302 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:476"
23303 ( $at_check_trace;
23304
23305 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23306
23307
23308 runroot rpm --initdb
23309
23310 cf="${RPMTEST}"/etc/my.conf
23311 rm -rf "${cf}" "${cf}".rpm*
23312 rm -rf "${TOPDIR}"
23313
23314 for v in "1.0" "2.0"; do
23315     runroot rpmbuild --quiet -bb \
23316         --define "ver $v" \
23317         --define "filedata foo-$v" \
23318         --define "noreplace 1" \
23319           /data/SPECS/configtest.spec
23320 done
23321
23322 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23323 cat "${cf}"
23324 echo "otherstuff" > "${RPMTEST}"/etc/my.conf
23325 cat "${cf}"
23326 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23327 cat "${cf}"
23328 cat "${cf}.rpmnew"
23329
23330 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23331 at_status=$? at_failed=false
23332 $at_check_filter
23333 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
23334 " | \
23335   $at_diff - "$at_stderr" || at_failed=:
23336 echo >>"$at_stdout"; $as_echo "foo-1.0
23337 otherstuff
23338 otherstuff
23339 foo-2.0
23340 " | \
23341   $at_diff - "$at_stdout" || at_failed=:
23342 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:476"
23343 $at_failed && at_fn_log_failure
23344 $at_traceon; }
23345
23346   set +x
23347   $at_times_p && times >"$at_times_file"
23348 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23349 read at_status <"$at_status_file"
23350 #AT_STOP_322
23351 #AT_START_323
23352 at_fn_group_banner 323 'rpmconfig.at:511' \
23353   "upgrade changing, modified config(noreplace) 2" " " 16
23354 at_xfail=no
23355 (
23356   $as_echo "323. $at_setup_line: testing $at_desc ..."
23357   $at_traceon
23358
23359
23360 { set +x
23361 $as_echo "$at_srcdir/rpmconfig.at:513:
23362
23363 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23364
23365
23366 runroot rpm --initdb
23367
23368 cf=\"\${RPMTEST}\"/etc/my.conf
23369 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23370 rm -rf \"\${TOPDIR}\"
23371
23372 for v in \"1.0\" \"2.0\"; do
23373     runroot rpmbuild --quiet -bb \\
23374         --define \"ver \$v\" \\
23375         --define \"filedata foo-\$v\" \\
23376         --define \"noreplace 1\" \\
23377           /data/SPECS/configtest.spec
23378 done
23379
23380 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23381 cat \"\${cf}\"
23382 echo \"foo-2.0\" > \"\${RPMTEST}\"/etc/my.conf
23383 cat \"\${cf}\"
23384 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23385 cat \"\${cf}\"
23386 "
23387 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:513"
23388 ( $at_check_trace;
23389
23390 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23391
23392
23393 runroot rpm --initdb
23394
23395 cf="${RPMTEST}"/etc/my.conf
23396 rm -rf "${cf}" "${cf}".rpm*
23397 rm -rf "${TOPDIR}"
23398
23399 for v in "1.0" "2.0"; do
23400     runroot rpmbuild --quiet -bb \
23401         --define "ver $v" \
23402         --define "filedata foo-$v" \
23403         --define "noreplace 1" \
23404           /data/SPECS/configtest.spec
23405 done
23406
23407 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23408 cat "${cf}"
23409 echo "foo-2.0" > "${RPMTEST}"/etc/my.conf
23410 cat "${cf}"
23411 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23412 cat "${cf}"
23413
23414 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23415 at_status=$? at_failed=false
23416 $at_check_filter
23417 at_fn_diff_devnull "$at_stderr" || at_failed=:
23418 echo >>"$at_stdout"; $as_echo "foo-1.0
23419 foo-2.0
23420 foo-2.0
23421 " | \
23422   $at_diff - "$at_stdout" || at_failed=:
23423 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:513"
23424 $at_failed && at_fn_log_failure
23425 $at_traceon; }
23426
23427   set +x
23428   $at_times_p && times >"$at_times_file"
23429 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23430 read at_status <"$at_status_file"
23431 #AT_STOP_323
23432 #AT_START_324
23433 at_fn_group_banner 324 'rpmconfig.at:546' \
23434   "upgrade unchanged shared config" "                " 16
23435 at_xfail=no
23436 (
23437   $as_echo "324. $at_setup_line: testing $at_desc ..."
23438   $at_traceon
23439
23440
23441 { set +x
23442 $as_echo "$at_srcdir/rpmconfig.at:548:
23443
23444 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23445
23446
23447 runroot rpm --initdb
23448
23449 cf=\"\${RPMTEST}\"/etc/my.conf
23450 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23451 rm -rf \"\${TOPDIR}\"
23452
23453 for s in \"A\" \"B\"; do
23454     for v in \"1.0\" \"2.0\"; do
23455         runroot rpmbuild --quiet -bb \\
23456             --define \"sub \$s\" \\
23457             --define \"ver \$v\" \\
23458             --define \"filedata foo\" \\
23459               /data/SPECS/configtest.spec
23460     done
23461 done
23462
23463 runroot rpm -U \\
23464     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23465     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23466 cat \"\${cf}\"
23467 runroot rpm -U \\
23468     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23469     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23470 cat \"\${cf}\"
23471 "
23472 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:548"
23473 ( $at_check_trace;
23474
23475 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23476
23477
23478 runroot rpm --initdb
23479
23480 cf="${RPMTEST}"/etc/my.conf
23481 rm -rf "${cf}" "${cf}".rpm*
23482 rm -rf "${TOPDIR}"
23483
23484 for s in "A" "B"; do
23485     for v in "1.0" "2.0"; do
23486         runroot rpmbuild --quiet -bb \
23487             --define "sub $s" \
23488             --define "ver $v" \
23489             --define "filedata foo" \
23490               /data/SPECS/configtest.spec
23491     done
23492 done
23493
23494 runroot rpm -U \
23495     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23496     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23497 cat "${cf}"
23498 runroot rpm -U \
23499     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23500     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23501 cat "${cf}"
23502
23503 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23504 at_status=$? at_failed=false
23505 $at_check_filter
23506 at_fn_diff_devnull "$at_stderr" || at_failed=:
23507 echo >>"$at_stdout"; $as_echo "foo
23508 foo
23509 " | \
23510   $at_diff - "$at_stdout" || at_failed=:
23511 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:548"
23512 $at_failed && at_fn_log_failure
23513 $at_traceon; }
23514
23515
23516   set +x
23517   $at_times_p && times >"$at_times_file"
23518 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23519 read at_status <"$at_status_file"
23520 #AT_STOP_324
23521 #AT_START_325
23522 at_fn_group_banner 325 'rpmconfig.at:584' \
23523   "upgrade modified shared config" "                 " 16
23524 at_xfail=no
23525 (
23526   $as_echo "325. $at_setup_line: testing $at_desc ..."
23527   $at_traceon
23528
23529
23530 { set +x
23531 $as_echo "$at_srcdir/rpmconfig.at:586:
23532
23533 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23534
23535
23536 runroot rpm --initdb
23537
23538 cf=\"\${RPMTEST}\"/etc/my.conf
23539 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23540 rm -rf \"\${TOPDIR}\"
23541
23542 for s in \"A\" \"B\"; do
23543     for v in \"1.0\" \"2.0\"; do
23544         runroot rpmbuild --quiet -bb \\
23545             --define \"sub \$s\" \\
23546             --define \"ver \$v\" \\
23547             --define \"filedata foo\" \\
23548               /data/SPECS/configtest.spec
23549     done
23550 done
23551
23552 runroot rpm -U \\
23553     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23554     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23555 cat \"\${cf}\"
23556 echo \"otherstuff\" > \"\${cf}\"
23557 cat \"\${cf}\"
23558 runroot rpm -U \\
23559     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23560     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23561 cat \"\${cf}\"
23562 "
23563 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:586"
23564 ( $at_check_trace;
23565
23566 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23567
23568
23569 runroot rpm --initdb
23570
23571 cf="${RPMTEST}"/etc/my.conf
23572 rm -rf "${cf}" "${cf}".rpm*
23573 rm -rf "${TOPDIR}"
23574
23575 for s in "A" "B"; do
23576     for v in "1.0" "2.0"; do
23577         runroot rpmbuild --quiet -bb \
23578             --define "sub $s" \
23579             --define "ver $v" \
23580             --define "filedata foo" \
23581               /data/SPECS/configtest.spec
23582     done
23583 done
23584
23585 runroot rpm -U \
23586     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23587     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23588 cat "${cf}"
23589 echo "otherstuff" > "${cf}"
23590 cat "${cf}"
23591 runroot rpm -U \
23592     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23593     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23594 cat "${cf}"
23595
23596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23597 at_status=$? at_failed=false
23598 $at_check_filter
23599 at_fn_diff_devnull "$at_stderr" || at_failed=:
23600 echo >>"$at_stdout"; $as_echo "foo
23601 otherstuff
23602 otherstuff
23603 " | \
23604   $at_diff - "$at_stdout" || at_failed=:
23605 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:586"
23606 $at_failed && at_fn_log_failure
23607 $at_traceon; }
23608
23609   set +x
23610   $at_times_p && times >"$at_times_file"
23611 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23612 read at_status <"$at_status_file"
23613 #AT_STOP_325
23614 #AT_START_326
23615 at_fn_group_banner 326 'rpmconfig.at:624' \
23616   "upgrade changing shared config" "                 " 16
23617 at_xfail=no
23618 (
23619   $as_echo "326. $at_setup_line: testing $at_desc ..."
23620   $at_traceon
23621
23622
23623 { set +x
23624 $as_echo "$at_srcdir/rpmconfig.at:626:
23625
23626 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23627
23628
23629 runroot rpm --initdb
23630
23631 cf=\"\${RPMTEST}\"/etc/my.conf
23632 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23633 rm -rf \"\${TOPDIR}\"
23634
23635 for s in \"A\" \"B\"; do
23636     for v in \"1.0\" \"2.0\"; do
23637         runroot rpmbuild --quiet -bb \\
23638             --define \"sub \$s\" \\
23639             --define \"ver \$v\" \\
23640             --define \"filedata foo-\$v\" \\
23641               /data/SPECS/configtest.spec
23642     done
23643 done
23644
23645 runroot rpm -U \\
23646     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23647     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23648 cat \"\${cf}\"
23649 runroot rpm -U \\
23650     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23651     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23652 cat \"\${cf}\"
23653 "
23654 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:626"
23655 ( $at_check_trace;
23656
23657 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23658
23659
23660 runroot rpm --initdb
23661
23662 cf="${RPMTEST}"/etc/my.conf
23663 rm -rf "${cf}" "${cf}".rpm*
23664 rm -rf "${TOPDIR}"
23665
23666 for s in "A" "B"; do
23667     for v in "1.0" "2.0"; do
23668         runroot rpmbuild --quiet -bb \
23669             --define "sub $s" \
23670             --define "ver $v" \
23671             --define "filedata foo-$v" \
23672               /data/SPECS/configtest.spec
23673     done
23674 done
23675
23676 runroot rpm -U \
23677     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23678     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23679 cat "${cf}"
23680 runroot rpm -U \
23681     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23682     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23683 cat "${cf}"
23684
23685 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23686 at_status=$? at_failed=false
23687 $at_check_filter
23688 at_fn_diff_devnull "$at_stderr" || at_failed=:
23689 echo >>"$at_stdout"; $as_echo "foo-1.0
23690 foo-2.0
23691 " | \
23692   $at_diff - "$at_stdout" || at_failed=:
23693 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:626"
23694 $at_failed && at_fn_log_failure
23695 $at_traceon; }
23696
23697   set +x
23698   $at_times_p && times >"$at_times_file"
23699 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23700 read at_status <"$at_status_file"
23701 #AT_STOP_326
23702 #AT_START_327
23703 at_fn_group_banner 327 'rpmconfig.at:661' \
23704   "upgrade changing, modified shared config 1" "     " 16
23705 at_xfail=no
23706 (
23707   $as_echo "327. $at_setup_line: testing $at_desc ..."
23708   $at_traceon
23709
23710
23711 { set +x
23712 $as_echo "$at_srcdir/rpmconfig.at:663:
23713
23714 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23715
23716
23717 runroot rpm --initdb
23718
23719 cf=\"\${RPMTEST}\"/etc/my.conf
23720 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23721 rm -rf \"\${TOPDIR}\"
23722
23723 for s in \"A\" \"B\"; do
23724     for v in \"1.0\" \"2.0\"; do
23725         runroot rpmbuild --quiet -bb \\
23726             --define \"sub \$s\" \\
23727             --define \"ver \$v\" \\
23728             --define \"filedata foo-\$v\" \\
23729               /data/SPECS/configtest.spec
23730     done
23731 done
23732
23733 runroot rpm -U \\
23734     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23735     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23736 cat \"\${cf}\"
23737 echo \"otherstuff\" > \"\${RPMTEST}\"/etc/my.conf
23738 cat \"\${cf}\"
23739 runroot rpm -U \\
23740     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23741     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23742 cat \"\${cf}\"
23743 cat \"\${cf}.rpmsave\"
23744 "
23745 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:663"
23746 ( $at_check_trace;
23747
23748 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23749
23750
23751 runroot rpm --initdb
23752
23753 cf="${RPMTEST}"/etc/my.conf
23754 rm -rf "${cf}" "${cf}".rpm*
23755 rm -rf "${TOPDIR}"
23756
23757 for s in "A" "B"; do
23758     for v in "1.0" "2.0"; do
23759         runroot rpmbuild --quiet -bb \
23760             --define "sub $s" \
23761             --define "ver $v" \
23762             --define "filedata foo-$v" \
23763               /data/SPECS/configtest.spec
23764     done
23765 done
23766
23767 runroot rpm -U \
23768     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23769     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23770 cat "${cf}"
23771 echo "otherstuff" > "${RPMTEST}"/etc/my.conf
23772 cat "${cf}"
23773 runroot rpm -U \
23774     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23775     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23776 cat "${cf}"
23777 cat "${cf}.rpmsave"
23778
23779 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23780 at_status=$? at_failed=false
23781 $at_check_filter
23782 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
23783 " | \
23784   $at_diff - "$at_stderr" || at_failed=:
23785 echo >>"$at_stdout"; $as_echo "foo-1.0
23786 otherstuff
23787 foo-2.0
23788 otherstuff
23789 " | \
23790   $at_diff - "$at_stdout" || at_failed=:
23791 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:663"
23792 $at_failed && at_fn_log_failure
23793 $at_traceon; }
23794
23795   set +x
23796   $at_times_p && times >"$at_times_file"
23797 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23798 read at_status <"$at_status_file"
23799 #AT_STOP_327
23800 #AT_START_328
23801 at_fn_group_banner 328 'rpmconfig.at:704' \
23802   "upgrade changing, modified shared config 2" "     " 16
23803 at_xfail=no
23804 (
23805   $as_echo "328. $at_setup_line: testing $at_desc ..."
23806   $at_traceon
23807
23808
23809 { set +x
23810 $as_echo "$at_srcdir/rpmconfig.at:706:
23811
23812 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23813
23814
23815 runroot rpm --initdb
23816
23817 cf=\"\${RPMTEST}\"/etc/my.conf
23818 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23819 rm -rf \"\${TOPDIR}\"
23820
23821 for s in \"A\" \"B\"; do
23822     for v in \"1.0\" \"2.0\"; do
23823         runroot rpmbuild --quiet -bb \\
23824             --define \"sub \$s\" \\
23825             --define \"ver \$v\" \\
23826             --define \"filedata foo-\$v\" \\
23827               /data/SPECS/configtest.spec
23828     done
23829 done
23830
23831 runroot rpm -U \\
23832     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23833     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23834 cat \"\${cf}\"
23835 echo \"foo-2.0\" > \"\${RPMTEST}\"/etc/my.conf
23836 cat \"\${cf}\"
23837 runroot rpm -U \\
23838     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23839     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23840 cat \"\${cf}\"
23841 "
23842 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:706"
23843 ( $at_check_trace;
23844
23845 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23846
23847
23848 runroot rpm --initdb
23849
23850 cf="${RPMTEST}"/etc/my.conf
23851 rm -rf "${cf}" "${cf}".rpm*
23852 rm -rf "${TOPDIR}"
23853
23854 for s in "A" "B"; do
23855     for v in "1.0" "2.0"; do
23856         runroot rpmbuild --quiet -bb \
23857             --define "sub $s" \
23858             --define "ver $v" \
23859             --define "filedata foo-$v" \
23860               /data/SPECS/configtest.spec
23861     done
23862 done
23863
23864 runroot rpm -U \
23865     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23866     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23867 cat "${cf}"
23868 echo "foo-2.0" > "${RPMTEST}"/etc/my.conf
23869 cat "${cf}"
23870 runroot rpm -U \
23871     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23872     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23873 cat "${cf}"
23874
23875 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23876 at_status=$? at_failed=false
23877 $at_check_filter
23878 at_fn_diff_devnull "$at_stderr" || at_failed=:
23879 echo >>"$at_stdout"; $as_echo "foo-1.0
23880 foo-2.0
23881 foo-2.0
23882 " | \
23883   $at_diff - "$at_stdout" || at_failed=:
23884 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:706"
23885 $at_failed && at_fn_log_failure
23886 $at_traceon; }
23887
23888   set +x
23889   $at_times_p && times >"$at_times_file"
23890 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23891 read at_status <"$at_status_file"
23892 #AT_STOP_328
23893 #AT_START_329
23894 at_fn_group_banner 329 'rpmconfig.at:745' \
23895   "upgrade changing, modified shared config(noreplace) 1" "" 16
23896 at_xfail=no
23897 (
23898   $as_echo "329. $at_setup_line: testing $at_desc ..."
23899   $at_traceon
23900
23901
23902 { set +x
23903 $as_echo "$at_srcdir/rpmconfig.at:747:
23904
23905 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23906
23907
23908 runroot rpm --initdb
23909
23910 cf=\"\${RPMTEST}\"/etc/my.conf
23911 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23912 rm -rf \"\${TOPDIR}\"
23913
23914 for s in \"A\" \"B\"; do
23915     for v in \"1.0\" \"2.0\"; do
23916         runroot rpmbuild --quiet -bb \\
23917             --define \"sub \$s\" \\
23918             --define \"ver \$v\" \\
23919             --define \"filedata foo-\$v\" \\
23920             --define \"noreplace 1\" \\
23921               /data/SPECS/configtest.spec
23922     done
23923 done
23924
23925 runroot rpm -U \\
23926     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23927     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23928 cat \"\${cf}\"
23929 echo \"otherstuff\" > \"\${RPMTEST}\"/etc/my.conf
23930 cat \"\${cf}\"
23931 runroot rpm -U \\
23932     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23933     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23934 cat \"\${cf}\"
23935 cat \"\${cf}.rpmnew\"
23936 "
23937 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:747"
23938 ( $at_check_trace;
23939
23940 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23941
23942
23943 runroot rpm --initdb
23944
23945 cf="${RPMTEST}"/etc/my.conf
23946 rm -rf "${cf}" "${cf}".rpm*
23947 rm -rf "${TOPDIR}"
23948
23949 for s in "A" "B"; do
23950     for v in "1.0" "2.0"; do
23951         runroot rpmbuild --quiet -bb \
23952             --define "sub $s" \
23953             --define "ver $v" \
23954             --define "filedata foo-$v" \
23955             --define "noreplace 1" \
23956               /data/SPECS/configtest.spec
23957     done
23958 done
23959
23960 runroot rpm -U \
23961     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23962     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23963 cat "${cf}"
23964 echo "otherstuff" > "${RPMTEST}"/etc/my.conf
23965 cat "${cf}"
23966 runroot rpm -U \
23967     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23968     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23969 cat "${cf}"
23970 cat "${cf}.rpmnew"
23971
23972 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23973 at_status=$? at_failed=false
23974 $at_check_filter
23975 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
23976 " | \
23977   $at_diff - "$at_stderr" || at_failed=:
23978 echo >>"$at_stdout"; $as_echo "foo-1.0
23979 otherstuff
23980 otherstuff
23981 foo-2.0
23982 " | \
23983   $at_diff - "$at_stdout" || at_failed=:
23984 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:747"
23985 $at_failed && at_fn_log_failure
23986 $at_traceon; }
23987
23988   set +x
23989   $at_times_p && times >"$at_times_file"
23990 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
23991 read at_status <"$at_status_file"
23992 #AT_STOP_329
23993 #AT_START_330
23994 at_fn_group_banner 330 'rpmconfig.at:789' \
23995   "upgrade changing, modified shared config(noreplace) 2" "" 16
23996 at_xfail=no
23997 (
23998   $as_echo "330. $at_setup_line: testing $at_desc ..."
23999   $at_traceon
24000
24001
24002 { set +x
24003 $as_echo "$at_srcdir/rpmconfig.at:791:
24004
24005 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24006
24007
24008 runroot rpm --initdb
24009
24010 cf=\"\${RPMTEST}\"/etc/my.conf
24011 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24012 rm -rf \"\${TOPDIR}\"
24013
24014 for s in \"A\" \"B\"; do
24015     for v in \"1.0\" \"2.0\"; do
24016         runroot rpmbuild --quiet -bb \\
24017             --define \"sub \$s\" \\
24018             --define \"ver \$v\" \\
24019             --define \"filedata foo-\$v\" \\
24020             --define \"noreplace 1\" \\
24021               /data/SPECS/configtest.spec
24022     done
24023 done
24024
24025 runroot rpm -U \\
24026     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
24027     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
24028 cat \"\${cf}\"
24029 echo \"foo-2.0\" > \"\${RPMTEST}\"/etc/my.conf
24030 cat \"\${cf}\"
24031 runroot rpm -U \\
24032     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
24033     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
24034 cat \"\${cf}\"
24035 "
24036 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:791"
24037 ( $at_check_trace;
24038
24039 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24040
24041
24042 runroot rpm --initdb
24043
24044 cf="${RPMTEST}"/etc/my.conf
24045 rm -rf "${cf}" "${cf}".rpm*
24046 rm -rf "${TOPDIR}"
24047
24048 for s in "A" "B"; do
24049     for v in "1.0" "2.0"; do
24050         runroot rpmbuild --quiet -bb \
24051             --define "sub $s" \
24052             --define "ver $v" \
24053             --define "filedata foo-$v" \
24054             --define "noreplace 1" \
24055               /data/SPECS/configtest.spec
24056     done
24057 done
24058
24059 runroot rpm -U \
24060     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
24061     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
24062 cat "${cf}"
24063 echo "foo-2.0" > "${RPMTEST}"/etc/my.conf
24064 cat "${cf}"
24065 runroot rpm -U \
24066     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
24067     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
24068 cat "${cf}"
24069
24070 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24071 at_status=$? at_failed=false
24072 $at_check_filter
24073 at_fn_diff_devnull "$at_stderr" || at_failed=:
24074 echo >>"$at_stdout"; $as_echo "foo-1.0
24075 foo-2.0
24076 foo-2.0
24077 " | \
24078   $at_diff - "$at_stdout" || at_failed=:
24079 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:791"
24080 $at_failed && at_fn_log_failure
24081 $at_traceon; }
24082
24083   set +x
24084   $at_times_p && times >"$at_times_file"
24085 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24086 read at_status <"$at_status_file"
24087 #AT_STOP_330
24088 #AT_START_331
24089 at_fn_group_banner 331 'rpmconfig.at:830' \
24090   "install/upgrade/erase ghost config" "             " 16
24091 at_xfail=no
24092 (
24093   $as_echo "331. $at_setup_line: testing $at_desc ..."
24094   $at_traceon
24095
24096
24097 { set +x
24098 $as_echo "$at_srcdir/rpmconfig.at:832:
24099
24100 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24101
24102
24103 runroot rpm --initdb
24104
24105 cf=\"\${RPMTEST}\"/etc/my.conf
24106 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24107 rm -rf \"\${TOPDIR}\"
24108
24109 for v in 1.0 2.0; do
24110     runroot rpmbuild --quiet -bb \\
24111         --define \"ver \${v}\" \\
24112         --define \"filetype file\" \\
24113         --define \"filedata buster\" \\
24114         --define \"fileattr %ghost\" \\
24115           /data/SPECS/configtest.spec
24116 done
24117
24118 # pre-existing config, install, erase
24119 test ! -f \"\${cf}\" && echo OK1
24120 echo \"keaton\" > \"\${cf}\"
24121 cat \"\${cf}\"
24122 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24123 cat \"\${cf}\"
24124 runroot rpm -e configtest
24125 cat \"\${cf}\"
24126 rm -f \"\${cf}\"
24127
24128 # post-install config, upgrade, erase
24129 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24130 test ! -f \"\${cf}\" && echo OK2
24131 echo \"buster\" > \"\${cf}\"
24132 cat \"\${cf}\"
24133 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24134 cat \"\${cf}\"
24135 runroot rpm -e configtest
24136 cat \"\${cf}\"
24137 "
24138 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:832"
24139 ( $at_check_trace;
24140
24141 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24142
24143
24144 runroot rpm --initdb
24145
24146 cf="${RPMTEST}"/etc/my.conf
24147 rm -rf "${cf}" "${cf}".rpm*
24148 rm -rf "${TOPDIR}"
24149
24150 for v in 1.0 2.0; do
24151     runroot rpmbuild --quiet -bb \
24152         --define "ver ${v}" \
24153         --define "filetype file" \
24154         --define "filedata buster" \
24155         --define "fileattr %ghost" \
24156           /data/SPECS/configtest.spec
24157 done
24158
24159 # pre-existing config, install, erase
24160 test ! -f "${cf}" && echo OK1
24161 echo "keaton" > "${cf}"
24162 cat "${cf}"
24163 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24164 cat "${cf}"
24165 runroot rpm -e configtest
24166 cat "${cf}"
24167 rm -f "${cf}"
24168
24169 # post-install config, upgrade, erase
24170 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24171 test ! -f "${cf}" && echo OK2
24172 echo "buster" > "${cf}"
24173 cat "${cf}"
24174 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24175 cat "${cf}"
24176 runroot rpm -e configtest
24177 cat "${cf}"
24178
24179 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24180 at_status=$? at_failed=false
24181 $at_check_filter
24182 at_fn_diff_devnull "$at_stderr" || at_failed=:
24183 echo >>"$at_stdout"; $as_echo "OK1
24184 keaton
24185 keaton
24186 keaton
24187 OK2
24188 buster
24189 buster
24190 buster
24191 " | \
24192   $at_diff - "$at_stdout" || at_failed=:
24193 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig.at:832"
24194 $at_failed && at_fn_log_failure
24195 $at_traceon; }
24196
24197   set +x
24198   $at_times_p && times >"$at_times_file"
24199 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24200 read at_status <"$at_status_file"
24201 #AT_STOP_331
24202 #AT_START_332
24203 at_fn_group_banner 332 'rpmconfig2.at:6' \
24204   "install config on existiting symlink" "           " 17
24205 at_xfail=no
24206 (
24207   $as_echo "332. $at_setup_line: testing $at_desc ..."
24208   $at_traceon
24209
24210
24211 { set +x
24212 $as_echo "$at_srcdir/rpmconfig2.at:8:
24213
24214 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24215
24216
24217 runroot rpm --initdb
24218
24219 cf=\"\${RPMTEST}\"/etc/my.conf
24220 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24221 rm -rf \"\${TOPDIR}\"
24222
24223 runroot rpmbuild --quiet -bb \\
24224         --define \"ver 1.0\" \\
24225         --define \"filedata foo\" \\
24226         --define \"filetype link\" \\
24227           /data/SPECS/configtest.spec
24228
24229 ln -s \"otherstuff\" \"\${cf}\"
24230 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24231 readlink \"\${cf}\"
24232 runroot rpm -e configtest
24233 readlink \"\${cf}.rpmorig\"
24234 "
24235 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:8"
24236 ( $at_check_trace;
24237
24238 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24239
24240
24241 runroot rpm --initdb
24242
24243 cf="${RPMTEST}"/etc/my.conf
24244 rm -rf "${cf}" "${cf}".rpm*
24245 rm -rf "${TOPDIR}"
24246
24247 runroot rpmbuild --quiet -bb \
24248         --define "ver 1.0" \
24249         --define "filedata foo" \
24250         --define "filetype link" \
24251           /data/SPECS/configtest.spec
24252
24253 ln -s "otherstuff" "${cf}"
24254 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24255 readlink "${cf}"
24256 runroot rpm -e configtest
24257 readlink "${cf}.rpmorig"
24258
24259 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24260 at_status=$? at_failed=false
24261 $at_check_filter
24262 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmorig
24263 " | \
24264   $at_diff - "$at_stderr" || at_failed=:
24265 echo >>"$at_stdout"; $as_echo "foo
24266 otherstuff
24267 " | \
24268   $at_diff - "$at_stdout" || at_failed=:
24269 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:8"
24270 $at_failed && at_fn_log_failure
24271 $at_traceon; }
24272
24273   set +x
24274   $at_times_p && times >"$at_times_file"
24275 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24276 read at_status <"$at_status_file"
24277 #AT_STOP_332
24278 #AT_START_333
24279 at_fn_group_banner 333 'rpmconfig2.at:36' \
24280   "install config on existiting identical link" "    " 17
24281 at_xfail=no
24282 (
24283   $as_echo "333. $at_setup_line: testing $at_desc ..."
24284   $at_traceon
24285
24286
24287 { set +x
24288 $as_echo "$at_srcdir/rpmconfig2.at:38:
24289
24290 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24291
24292
24293 runroot rpm --initdb
24294
24295 cf=\"\${RPMTEST}\"/etc/my.conf
24296 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24297 rm -rf \"\${TOPDIR}\"
24298
24299 runroot rpmbuild --quiet -bb \\
24300         --define \"ver 1.0\" \\
24301         --define \"filedata foo\" \\
24302         --define \"filetype link\" \\
24303           /data/SPECS/configtest.spec
24304
24305 ln -s \"foo\" \"\${cf}\"
24306 readlink \"\${cf}\"
24307 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24308 readlink \"\${cf}\"
24309 runroot rpm -e configtest
24310 test ! -L \"\${cf}\"
24311 "
24312 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:38"
24313 ( $at_check_trace;
24314
24315 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24316
24317
24318 runroot rpm --initdb
24319
24320 cf="${RPMTEST}"/etc/my.conf
24321 rm -rf "${cf}" "${cf}".rpm*
24322 rm -rf "${TOPDIR}"
24323
24324 runroot rpmbuild --quiet -bb \
24325         --define "ver 1.0" \
24326         --define "filedata foo" \
24327         --define "filetype link" \
24328           /data/SPECS/configtest.spec
24329
24330 ln -s "foo" "${cf}"
24331 readlink "${cf}"
24332 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24333 readlink "${cf}"
24334 runroot rpm -e configtest
24335 test ! -L "${cf}"
24336
24337 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24338 at_status=$? at_failed=false
24339 $at_check_filter
24340 at_fn_diff_devnull "$at_stderr" || at_failed=:
24341 echo >>"$at_stdout"; $as_echo "foo
24342 foo
24343 " | \
24344   $at_diff - "$at_stdout" || at_failed=:
24345 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:38"
24346 $at_failed && at_fn_log_failure
24347 $at_traceon; }
24348
24349   set +x
24350   $at_times_p && times >"$at_times_file"
24351 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24352 read at_status <"$at_status_file"
24353 #AT_STOP_333
24354 #AT_START_334
24355 at_fn_group_banner 334 'rpmconfig2.at:66' \
24356   "erase unchanged config link" "                    " 17
24357 at_xfail=no
24358 (
24359   $as_echo "334. $at_setup_line: testing $at_desc ..."
24360   $at_traceon
24361
24362
24363 { set +x
24364 $as_echo "$at_srcdir/rpmconfig2.at:68:
24365
24366 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24367
24368
24369 runroot rpm --initdb
24370
24371 cf=\"\${RPMTEST}\"/etc/my.conf
24372 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24373 rm -rf \"\${TOPDIR}\"
24374
24375 runroot rpmbuild --quiet -bb \\
24376         --define \"ver 1.0\" \\
24377         --define \"filedata foo\" \\
24378         --define \"filetype link\" \\
24379           /data/SPECS/configtest.spec
24380
24381 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24382 readlink \"\${cf}\"
24383 runroot rpm -e configtest
24384 test ! -L \"\${cf}\"
24385 "
24386 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:68"
24387 ( $at_check_trace;
24388
24389 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24390
24391
24392 runroot rpm --initdb
24393
24394 cf="${RPMTEST}"/etc/my.conf
24395 rm -rf "${cf}" "${cf}".rpm*
24396 rm -rf "${TOPDIR}"
24397
24398 runroot rpmbuild --quiet -bb \
24399         --define "ver 1.0" \
24400         --define "filedata foo" \
24401         --define "filetype link" \
24402           /data/SPECS/configtest.spec
24403
24404 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24405 readlink "${cf}"
24406 runroot rpm -e configtest
24407 test ! -L "${cf}"
24408
24409 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24410 at_status=$? at_failed=false
24411 $at_check_filter
24412 at_fn_diff_devnull "$at_stderr" || at_failed=:
24413 echo >>"$at_stdout"; $as_echo "foo
24414 " | \
24415   $at_diff - "$at_stdout" || at_failed=:
24416 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:68"
24417 $at_failed && at_fn_log_failure
24418 $at_traceon; }
24419
24420   set +x
24421   $at_times_p && times >"$at_times_file"
24422 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24423 read at_status <"$at_status_file"
24424 #AT_STOP_334
24425 #AT_START_335
24426 at_fn_group_banner 335 'rpmconfig2.at:93' \
24427   "erase changed config link" "                      " 17
24428 at_xfail=no
24429 (
24430   $as_echo "335. $at_setup_line: testing $at_desc ..."
24431   $at_traceon
24432
24433
24434 { set +x
24435 $as_echo "$at_srcdir/rpmconfig2.at:95:
24436
24437 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24438
24439
24440 runroot rpm --initdb
24441
24442 cf=\"\${RPMTEST}\"/etc/my.conf
24443 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24444 rm -rf \"\${TOPDIR}\"
24445
24446 runroot rpmbuild --quiet -bb \\
24447         --define \"ver 1.0\" \\
24448         --define \"filedata foo\" \\
24449         --define \"filetype link\" \\
24450           /data/SPECS/configtest.spec
24451
24452 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24453 readlink \"\${cf}\"
24454 ln -sf \"otherstuff\" \"\${cf}\"
24455 runroot rpm -e configtest
24456 readlink \"\${cf}.rpmsave\"
24457 "
24458 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:95"
24459 ( $at_check_trace;
24460
24461 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24462
24463
24464 runroot rpm --initdb
24465
24466 cf="${RPMTEST}"/etc/my.conf
24467 rm -rf "${cf}" "${cf}".rpm*
24468 rm -rf "${TOPDIR}"
24469
24470 runroot rpmbuild --quiet -bb \
24471         --define "ver 1.0" \
24472         --define "filedata foo" \
24473         --define "filetype link" \
24474           /data/SPECS/configtest.spec
24475
24476 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24477 readlink "${cf}"
24478 ln -sf "otherstuff" "${cf}"
24479 runroot rpm -e configtest
24480 readlink "${cf}.rpmsave"
24481
24482 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24483 at_status=$? at_failed=false
24484 $at_check_filter
24485 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
24486 " | \
24487   $at_diff - "$at_stderr" || at_failed=:
24488 echo >>"$at_stdout"; $as_echo "foo
24489 otherstuff
24490 " | \
24491   $at_diff - "$at_stdout" || at_failed=:
24492 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:95"
24493 $at_failed && at_fn_log_failure
24494 $at_traceon; }
24495
24496   set +x
24497   $at_times_p && times >"$at_times_file"
24498 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24499 read at_status <"$at_status_file"
24500 #AT_STOP_335
24501 #AT_START_336
24502 at_fn_group_banner 336 'rpmconfig2.at:124' \
24503   "upgrade unchanged config link" "                  " 17
24504 at_xfail=no
24505 (
24506   $as_echo "336. $at_setup_line: testing $at_desc ..."
24507   $at_traceon
24508
24509
24510 { set +x
24511 $as_echo "$at_srcdir/rpmconfig2.at:126:
24512
24513 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24514
24515
24516 runroot rpm --initdb
24517
24518 cf=\"\${RPMTEST}\"/etc/my.conf
24519 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24520 rm -rf \"\${TOPDIR}\"
24521
24522 for v in \"1.0\" \"2.0\"; do
24523     runroot rpmbuild --quiet -bb \\
24524         --define \"ver \$v\" \\
24525         --define \"filedata foo\" \\
24526         --define \"filetype link\" \\
24527           /data/SPECS/configtest.spec
24528 done
24529
24530 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24531 readlink \"\${cf}\"
24532 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24533 readlink \"\${cf}\"
24534 "
24535 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:126"
24536 ( $at_check_trace;
24537
24538 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24539
24540
24541 runroot rpm --initdb
24542
24543 cf="${RPMTEST}"/etc/my.conf
24544 rm -rf "${cf}" "${cf}".rpm*
24545 rm -rf "${TOPDIR}"
24546
24547 for v in "1.0" "2.0"; do
24548     runroot rpmbuild --quiet -bb \
24549         --define "ver $v" \
24550         --define "filedata foo" \
24551         --define "filetype link" \
24552           /data/SPECS/configtest.spec
24553 done
24554
24555 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24556 readlink "${cf}"
24557 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24558 readlink "${cf}"
24559
24560 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24561 at_status=$? at_failed=false
24562 $at_check_filter
24563 at_fn_diff_devnull "$at_stderr" || at_failed=:
24564 echo >>"$at_stdout"; $as_echo "foo
24565 foo
24566 " | \
24567   $at_diff - "$at_stdout" || at_failed=:
24568 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:126"
24569 $at_failed && at_fn_log_failure
24570 $at_traceon; }
24571
24572   set +x
24573   $at_times_p && times >"$at_times_file"
24574 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24575 read at_status <"$at_status_file"
24576 #AT_STOP_336
24577 #AT_START_337
24578 at_fn_group_banner 337 'rpmconfig2.at:155' \
24579   "upgrade unchanged config link - touching test" "  " 17
24580 at_xfail=no
24581 (
24582   $as_echo "337. $at_setup_line: testing $at_desc ..."
24583   $at_traceon
24584
24585
24586 { set +x
24587 $as_echo "$at_srcdir/rpmconfig2.at:157:
24588
24589 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24590
24591
24592 runroot rpm --initdb
24593
24594 cf=\"\${RPMTEST}\"/etc/my.conf
24595 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24596 rm -rf \"\${TOPDIR}\"
24597
24598 for v in \"1.0\" \"2.0\"; do
24599     runroot rpmbuild --quiet -bb \\
24600         --define \"ver \$v\" \\
24601         --define \"filedata foo\" \\
24602         --define \"filetype link\" \\
24603           /data/SPECS/configtest.spec
24604 done
24605
24606 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24607 runroot rpm -Uvv --fsmdebug /build/RPMS/noarch/configtest-2.0-1.noarch.rpm > output.txt 2>&1
24608 grep -c  \"touch\" output.txt
24609 "
24610 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:157"
24611 ( $at_check_trace;
24612
24613 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24614
24615
24616 runroot rpm --initdb
24617
24618 cf="${RPMTEST}"/etc/my.conf
24619 rm -rf "${cf}" "${cf}".rpm*
24620 rm -rf "${TOPDIR}"
24621
24622 for v in "1.0" "2.0"; do
24623     runroot rpmbuild --quiet -bb \
24624         --define "ver $v" \
24625         --define "filedata foo" \
24626         --define "filetype link" \
24627           /data/SPECS/configtest.spec
24628 done
24629
24630 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24631 runroot rpm -Uvv --fsmdebug /build/RPMS/noarch/configtest-2.0-1.noarch.rpm > output.txt 2>&1
24632 grep -c  "touch" output.txt
24633
24634 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24635 at_status=$? at_failed=false
24636 $at_check_filter
24637 at_fn_diff_devnull "$at_stderr" || at_failed=:
24638 echo >>"$at_stdout"; $as_echo "1
24639 " | \
24640   $at_diff - "$at_stdout" || at_failed=:
24641 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:157"
24642 $at_failed && at_fn_log_failure
24643 $at_traceon; }
24644
24645   set +x
24646   $at_times_p && times >"$at_times_file"
24647 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24648 read at_status <"$at_status_file"
24649 #AT_STOP_337
24650 #AT_START_338
24651 at_fn_group_banner 338 'rpmconfig2.at:185' \
24652   "upgrade modified config link" "                   " 17
24653 at_xfail=no
24654 (
24655   $as_echo "338. $at_setup_line: testing $at_desc ..."
24656   $at_traceon
24657
24658
24659 { set +x
24660 $as_echo "$at_srcdir/rpmconfig2.at:187:
24661
24662 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24663
24664
24665 runroot rpm --initdb
24666
24667 cf=\"\${RPMTEST}\"/etc/my.conf
24668 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24669 rm -rf \"\${TOPDIR}\"
24670
24671 for v in \"1.0\" \"2.0\"; do
24672     runroot rpmbuild --quiet -bb \\
24673         --define \"ver \$v\" \\
24674         --define \"filedata foo\" \\
24675         --define \"filetype link\" \\
24676           /data/SPECS/configtest.spec
24677 done
24678
24679 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24680 readlink \"\${cf}\"
24681 ln -sf \"otherstuff\" \"\${cf}\"
24682 readlink \"\${cf}\"
24683 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24684 readlink \"\${cf}\"
24685 "
24686 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:187"
24687 ( $at_check_trace;
24688
24689 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24690
24691
24692 runroot rpm --initdb
24693
24694 cf="${RPMTEST}"/etc/my.conf
24695 rm -rf "${cf}" "${cf}".rpm*
24696 rm -rf "${TOPDIR}"
24697
24698 for v in "1.0" "2.0"; do
24699     runroot rpmbuild --quiet -bb \
24700         --define "ver $v" \
24701         --define "filedata foo" \
24702         --define "filetype link" \
24703           /data/SPECS/configtest.spec
24704 done
24705
24706 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24707 readlink "${cf}"
24708 ln -sf "otherstuff" "${cf}"
24709 readlink "${cf}"
24710 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24711 readlink "${cf}"
24712
24713 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24714 at_status=$? at_failed=false
24715 $at_check_filter
24716 at_fn_diff_devnull "$at_stderr" || at_failed=:
24717 echo >>"$at_stdout"; $as_echo "foo
24718 otherstuff
24719 otherstuff
24720 " | \
24721   $at_diff - "$at_stdout" || at_failed=:
24722 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:187"
24723 $at_failed && at_fn_log_failure
24724 $at_traceon; }
24725
24726   set +x
24727   $at_times_p && times >"$at_times_file"
24728 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24729 read at_status <"$at_status_file"
24730 #AT_STOP_338
24731 #AT_START_339
24732 at_fn_group_banner 339 'rpmconfig2.at:219' \
24733   "upgrade changing config link" "                   " 17
24734 at_xfail=no
24735 (
24736   $as_echo "339. $at_setup_line: testing $at_desc ..."
24737   $at_traceon
24738
24739
24740 { set +x
24741 $as_echo "$at_srcdir/rpmconfig2.at:221:
24742
24743 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24744
24745
24746 runroot rpm --initdb
24747
24748 cf=\"\${RPMTEST}\"/etc/my.conf
24749 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24750 rm -rf \"\${TOPDIR}\"
24751
24752 for v in \"1.0\" \"2.0\"; do
24753     runroot rpmbuild --quiet -bb \\
24754         --define \"ver \$v\" \\
24755         --define \"filedata foo-\$v\" \\
24756         --define \"filetype link\" \\
24757           /data/SPECS/configtest.spec
24758 done
24759
24760 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24761 readlink \"\${cf}\"
24762 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24763 readlink \"\${cf}\"
24764 "
24765 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:221"
24766 ( $at_check_trace;
24767
24768 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24769
24770
24771 runroot rpm --initdb
24772
24773 cf="${RPMTEST}"/etc/my.conf
24774 rm -rf "${cf}" "${cf}".rpm*
24775 rm -rf "${TOPDIR}"
24776
24777 for v in "1.0" "2.0"; do
24778     runroot rpmbuild --quiet -bb \
24779         --define "ver $v" \
24780         --define "filedata foo-$v" \
24781         --define "filetype link" \
24782           /data/SPECS/configtest.spec
24783 done
24784
24785 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24786 readlink "${cf}"
24787 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24788 readlink "${cf}"
24789
24790 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24791 at_status=$? at_failed=false
24792 $at_check_filter
24793 at_fn_diff_devnull "$at_stderr" || at_failed=:
24794 echo >>"$at_stdout"; $as_echo "foo-1.0
24795 foo-2.0
24796 " | \
24797   $at_diff - "$at_stdout" || at_failed=:
24798 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:221"
24799 $at_failed && at_fn_log_failure
24800 $at_traceon; }
24801
24802   set +x
24803   $at_times_p && times >"$at_times_file"
24804 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24805 read at_status <"$at_status_file"
24806 #AT_STOP_339
24807 #AT_START_340
24808 at_fn_group_banner 340 'rpmconfig2.at:250' \
24809   "upgrade changing, modified config link 1" "       " 17
24810 at_xfail=no
24811 (
24812   $as_echo "340. $at_setup_line: testing $at_desc ..."
24813   $at_traceon
24814
24815
24816 { set +x
24817 $as_echo "$at_srcdir/rpmconfig2.at:252:
24818
24819 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24820
24821
24822 runroot rpm --initdb
24823
24824 cf=\"\${RPMTEST}\"/etc/my.conf
24825 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24826 rm -rf \"\${TOPDIR}\"
24827
24828 for v in \"1.0\" \"2.0\"; do
24829     runroot rpmbuild --quiet -bb \\
24830         --define \"ver \$v\" \\
24831         --define \"filedata foo-\$v\" \\
24832         --define \"filetype link\" \\
24833           /data/SPECS/configtest.spec
24834 done
24835
24836 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24837 readlink \"\${cf}\"
24838 ln -sf \"otherstuff\" \"\${cf}\"
24839 readlink \"\${cf}\"
24840 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24841 readlink \"\${cf}\"
24842 readlink \"\${cf}.rpmsave\"
24843 "
24844 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:252"
24845 ( $at_check_trace;
24846
24847 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24848
24849
24850 runroot rpm --initdb
24851
24852 cf="${RPMTEST}"/etc/my.conf
24853 rm -rf "${cf}" "${cf}".rpm*
24854 rm -rf "${TOPDIR}"
24855
24856 for v in "1.0" "2.0"; do
24857     runroot rpmbuild --quiet -bb \
24858         --define "ver $v" \
24859         --define "filedata foo-$v" \
24860         --define "filetype link" \
24861           /data/SPECS/configtest.spec
24862 done
24863
24864 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24865 readlink "${cf}"
24866 ln -sf "otherstuff" "${cf}"
24867 readlink "${cf}"
24868 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24869 readlink "${cf}"
24870 readlink "${cf}.rpmsave"
24871
24872 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24873 at_status=$? at_failed=false
24874 $at_check_filter
24875 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
24876 " | \
24877   $at_diff - "$at_stderr" || at_failed=:
24878 echo >>"$at_stdout"; $as_echo "foo-1.0
24879 otherstuff
24880 foo-2.0
24881 otherstuff
24882 " | \
24883   $at_diff - "$at_stdout" || at_failed=:
24884 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:252"
24885 $at_failed && at_fn_log_failure
24886 $at_traceon; }
24887
24888   set +x
24889   $at_times_p && times >"$at_times_file"
24890 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24891 read at_status <"$at_status_file"
24892 #AT_STOP_340
24893 #AT_START_341
24894 at_fn_group_banner 341 'rpmconfig2.at:287' \
24895   "upgrade changing, modified config link 2" "       " 17
24896 at_xfail=no
24897 (
24898   $as_echo "341. $at_setup_line: testing $at_desc ..."
24899   $at_traceon
24900
24901
24902 { set +x
24903 $as_echo "$at_srcdir/rpmconfig2.at:289:
24904
24905 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24906
24907
24908 runroot rpm --initdb
24909
24910 cf=\"\${RPMTEST}\"/etc/my.conf
24911 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24912 rm -rf \"\${TOPDIR}\"
24913
24914 for v in \"1.0\" \"2.0\"; do
24915     runroot rpmbuild --quiet -bb \\
24916         --define \"ver \$v\" \\
24917         --define \"filedata foo-\$v\" \\
24918         --define \"filetype link\" \\
24919           /data/SPECS/configtest.spec
24920 done
24921
24922 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24923 readlink \"\${cf}\"
24924 ln -sf \"foo-2.0\" \"\${cf}\"
24925 readlink \"\${cf}\"
24926 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24927 readlink \"\${cf}\"
24928 "
24929 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:289"
24930 ( $at_check_trace;
24931
24932 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24933
24934
24935 runroot rpm --initdb
24936
24937 cf="${RPMTEST}"/etc/my.conf
24938 rm -rf "${cf}" "${cf}".rpm*
24939 rm -rf "${TOPDIR}"
24940
24941 for v in "1.0" "2.0"; do
24942     runroot rpmbuild --quiet -bb \
24943         --define "ver $v" \
24944         --define "filedata foo-$v" \
24945         --define "filetype link" \
24946           /data/SPECS/configtest.spec
24947 done
24948
24949 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24950 readlink "${cf}"
24951 ln -sf "foo-2.0" "${cf}"
24952 readlink "${cf}"
24953 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24954 readlink "${cf}"
24955
24956 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24957 at_status=$? at_failed=false
24958 $at_check_filter
24959 at_fn_diff_devnull "$at_stderr" || at_failed=:
24960 echo >>"$at_stdout"; $as_echo "foo-1.0
24961 foo-2.0
24962 foo-2.0
24963 " | \
24964   $at_diff - "$at_stdout" || at_failed=:
24965 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:289"
24966 $at_failed && at_fn_log_failure
24967 $at_traceon; }
24968
24969   set +x
24970   $at_times_p && times >"$at_times_file"
24971 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
24972 read at_status <"$at_status_file"
24973 #AT_STOP_341
24974 #AT_START_342
24975 at_fn_group_banner 342 'rpmconfig2.at:323' \
24976   "upgrade unchanged config(noreplace) link" "       " 17
24977 at_xfail=no
24978 (
24979   $as_echo "342. $at_setup_line: testing $at_desc ..."
24980   $at_traceon
24981
24982
24983 { set +x
24984 $as_echo "$at_srcdir/rpmconfig2.at:325:
24985
24986 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24987
24988
24989 runroot rpm --initdb
24990
24991 cf=\"\${RPMTEST}\"/etc/my.conf
24992 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24993 rm -rf \"\${TOPDIR}\"
24994
24995 for v in \"1.0\" \"2.0\"; do
24996     runroot rpmbuild --quiet -bb \\
24997         --define \"ver \$v\" \\
24998         --define \"filedata foo\" \\
24999         --define \"filetype link\" \\
25000         --define \"noreplace 1\" \\
25001           /data/SPECS/configtest.spec
25002 done
25003
25004 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25005 readlink \"\${cf}\"
25006 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25007 readlink \"\${cf}\"
25008 "
25009 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:325"
25010 ( $at_check_trace;
25011
25012 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25013
25014
25015 runroot rpm --initdb
25016
25017 cf="${RPMTEST}"/etc/my.conf
25018 rm -rf "${cf}" "${cf}".rpm*
25019 rm -rf "${TOPDIR}"
25020
25021 for v in "1.0" "2.0"; do
25022     runroot rpmbuild --quiet -bb \
25023         --define "ver $v" \
25024         --define "filedata foo" \
25025         --define "filetype link" \
25026         --define "noreplace 1" \
25027           /data/SPECS/configtest.spec
25028 done
25029
25030 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25031 readlink "${cf}"
25032 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25033 readlink "${cf}"
25034
25035 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25036 at_status=$? at_failed=false
25037 $at_check_filter
25038 at_fn_diff_devnull "$at_stderr" || at_failed=:
25039 echo >>"$at_stdout"; $as_echo "foo
25040 foo
25041 " | \
25042   $at_diff - "$at_stdout" || at_failed=:
25043 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:325"
25044 $at_failed && at_fn_log_failure
25045 $at_traceon; }
25046
25047   set +x
25048   $at_times_p && times >"$at_times_file"
25049 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25050 read at_status <"$at_status_file"
25051 #AT_STOP_342
25052 #AT_START_343
25053 at_fn_group_banner 343 'rpmconfig2.at:356' \
25054   "upgrade modified config(noreplace) link" "        " 17
25055 at_xfail=no
25056 (
25057   $as_echo "343. $at_setup_line: testing $at_desc ..."
25058   $at_traceon
25059
25060
25061 { set +x
25062 $as_echo "$at_srcdir/rpmconfig2.at:358:
25063
25064 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25065
25066
25067 runroot rpm --initdb
25068
25069 cf=\"\${RPMTEST}\"/etc/my.conf
25070 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25071 rm -rf \"\${TOPDIR}\"
25072
25073 for v in \"1.0\" \"2.0\"; do
25074     runroot rpmbuild --quiet -bb \\
25075         --define \"ver \$v\" \\
25076         --define \"filedata foo\" \\
25077         --define \"filetype link\" \\
25078         --define \"noreplace 1\" \\
25079           /data/SPECS/configtest.spec
25080 done
25081
25082 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25083 readlink \"\${cf}\"
25084 ln -sf \"otherstuff\" \"\${cf}\"
25085 readlink \"\${cf}\"
25086 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25087 readlink \"\${cf}\"
25088 "
25089 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:358"
25090 ( $at_check_trace;
25091
25092 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25093
25094
25095 runroot rpm --initdb
25096
25097 cf="${RPMTEST}"/etc/my.conf
25098 rm -rf "${cf}" "${cf}".rpm*
25099 rm -rf "${TOPDIR}"
25100
25101 for v in "1.0" "2.0"; do
25102     runroot rpmbuild --quiet -bb \
25103         --define "ver $v" \
25104         --define "filedata foo" \
25105         --define "filetype link" \
25106         --define "noreplace 1" \
25107           /data/SPECS/configtest.spec
25108 done
25109
25110 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25111 readlink "${cf}"
25112 ln -sf "otherstuff" "${cf}"
25113 readlink "${cf}"
25114 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25115 readlink "${cf}"
25116
25117 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25118 at_status=$? at_failed=false
25119 $at_check_filter
25120 at_fn_diff_devnull "$at_stderr" || at_failed=:
25121 echo >>"$at_stdout"; $as_echo "foo
25122 otherstuff
25123 otherstuff
25124 " | \
25125   $at_diff - "$at_stdout" || at_failed=:
25126 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:358"
25127 $at_failed && at_fn_log_failure
25128 $at_traceon; }
25129
25130   set +x
25131   $at_times_p && times >"$at_times_file"
25132 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25133 read at_status <"$at_status_file"
25134 #AT_STOP_343
25135 #AT_START_344
25136 at_fn_group_banner 344 'rpmconfig2.at:391' \
25137   "upgrade changing config(noreplace) link" "        " 17
25138 at_xfail=no
25139 (
25140   $as_echo "344. $at_setup_line: testing $at_desc ..."
25141   $at_traceon
25142
25143
25144 { set +x
25145 $as_echo "$at_srcdir/rpmconfig2.at:393:
25146
25147 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25148
25149
25150 runroot rpm --initdb
25151
25152 cf=\"\${RPMTEST}\"/etc/my.conf
25153 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25154 rm -rf \"\${TOPDIR}\"
25155
25156 for v in \"1.0\" \"2.0\"; do
25157     runroot rpmbuild --quiet -bb \\
25158         --define \"ver \$v\" \\
25159         --define \"filedata foo-\$v\" \\
25160         --define \"filetype link\" \\
25161         --define \"noreplace 1\" \\
25162           /data/SPECS/configtest.spec
25163 done
25164
25165 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25166 readlink \"\${cf}\"
25167 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25168 readlink \"\${cf}\"
25169 "
25170 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:393"
25171 ( $at_check_trace;
25172
25173 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25174
25175
25176 runroot rpm --initdb
25177
25178 cf="${RPMTEST}"/etc/my.conf
25179 rm -rf "${cf}" "${cf}".rpm*
25180 rm -rf "${TOPDIR}"
25181
25182 for v in "1.0" "2.0"; do
25183     runroot rpmbuild --quiet -bb \
25184         --define "ver $v" \
25185         --define "filedata foo-$v" \
25186         --define "filetype link" \
25187         --define "noreplace 1" \
25188           /data/SPECS/configtest.spec
25189 done
25190
25191 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25192 readlink "${cf}"
25193 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25194 readlink "${cf}"
25195
25196 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25197 at_status=$? at_failed=false
25198 $at_check_filter
25199 at_fn_diff_devnull "$at_stderr" || at_failed=:
25200 echo >>"$at_stdout"; $as_echo "foo-1.0
25201 foo-2.0
25202 " | \
25203   $at_diff - "$at_stdout" || at_failed=:
25204 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:393"
25205 $at_failed && at_fn_log_failure
25206 $at_traceon; }
25207
25208   set +x
25209   $at_times_p && times >"$at_times_file"
25210 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25211 read at_status <"$at_status_file"
25212 #AT_STOP_344
25213 #AT_START_345
25214 at_fn_group_banner 345 'rpmconfig2.at:423' \
25215   "upgrade changing, modified config(noreplace) link 1" "" 17
25216 at_xfail=no
25217 (
25218   $as_echo "345. $at_setup_line: testing $at_desc ..."
25219   $at_traceon
25220
25221
25222 { set +x
25223 $as_echo "$at_srcdir/rpmconfig2.at:425:
25224
25225 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25226
25227
25228 runroot rpm --initdb
25229
25230 cf=\"\${RPMTEST}\"/etc/my.conf
25231 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25232 rm -rf \"\${TOPDIR}\"
25233
25234 for v in \"1.0\" \"2.0\"; do
25235     runroot rpmbuild --quiet -bb \\
25236         --define \"ver \$v\" \\
25237         --define \"filedata foo-\$v\" \\
25238         --define \"filetype link\" \\
25239         --define \"noreplace 1\" \\
25240           /data/SPECS/configtest.spec
25241 done
25242
25243 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25244 readlink \"\${cf}\"
25245 ln -sf \"otherstuff\" \"\${cf}\"
25246 readlink \"\${cf}\"
25247 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25248 readlink \"\${cf}\"
25249 readlink \"\${cf}.rpmnew\"
25250 "
25251 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:425"
25252 ( $at_check_trace;
25253
25254 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25255
25256
25257 runroot rpm --initdb
25258
25259 cf="${RPMTEST}"/etc/my.conf
25260 rm -rf "${cf}" "${cf}".rpm*
25261 rm -rf "${TOPDIR}"
25262
25263 for v in "1.0" "2.0"; do
25264     runroot rpmbuild --quiet -bb \
25265         --define "ver $v" \
25266         --define "filedata foo-$v" \
25267         --define "filetype link" \
25268         --define "noreplace 1" \
25269           /data/SPECS/configtest.spec
25270 done
25271
25272 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25273 readlink "${cf}"
25274 ln -sf "otherstuff" "${cf}"
25275 readlink "${cf}"
25276 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25277 readlink "${cf}"
25278 readlink "${cf}.rpmnew"
25279
25280 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25281 at_status=$? at_failed=false
25282 $at_check_filter
25283 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
25284 " | \
25285   $at_diff - "$at_stderr" || at_failed=:
25286 echo >>"$at_stdout"; $as_echo "foo-1.0
25287 otherstuff
25288 otherstuff
25289 foo-2.0
25290 " | \
25291   $at_diff - "$at_stdout" || at_failed=:
25292 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:425"
25293 $at_failed && at_fn_log_failure
25294 $at_traceon; }
25295
25296   set +x
25297   $at_times_p && times >"$at_times_file"
25298 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25299 read at_status <"$at_status_file"
25300 #AT_STOP_345
25301 #AT_START_346
25302 at_fn_group_banner 346 'rpmconfig2.at:461' \
25303   "upgrade changing, modified config(noreplace) link 2" "" 17
25304 at_xfail=no
25305 (
25306   $as_echo "346. $at_setup_line: testing $at_desc ..."
25307   $at_traceon
25308
25309
25310 { set +x
25311 $as_echo "$at_srcdir/rpmconfig2.at:463:
25312
25313 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25314
25315
25316 runroot rpm --initdb
25317
25318 cf=\"\${RPMTEST}\"/etc/my.conf
25319 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25320 rm -rf \"\${TOPDIR}\"
25321
25322 for v in \"1.0\" \"2.0\"; do
25323     runroot rpmbuild --quiet -bb \\
25324         --define \"ver \$v\" \\
25325         --define \"filedata foo-\$v\" \\
25326         --define \"filetype link\" \\
25327         --define \"noreplace 1\" \\
25328           /data/SPECS/configtest.spec
25329 done
25330
25331 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25332 readlink \"\${cf}\"
25333 ln -sf \"foo-2.0\" \"\${cf}\"
25334 readlink \"\${cf}\"
25335 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25336 readlink \"\${cf}\"
25337 test ! -L \"\${cf}.rpmnew\"
25338 "
25339 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:463"
25340 ( $at_check_trace;
25341
25342 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25343
25344
25345 runroot rpm --initdb
25346
25347 cf="${RPMTEST}"/etc/my.conf
25348 rm -rf "${cf}" "${cf}".rpm*
25349 rm -rf "${TOPDIR}"
25350
25351 for v in "1.0" "2.0"; do
25352     runroot rpmbuild --quiet -bb \
25353         --define "ver $v" \
25354         --define "filedata foo-$v" \
25355         --define "filetype link" \
25356         --define "noreplace 1" \
25357           /data/SPECS/configtest.spec
25358 done
25359
25360 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25361 readlink "${cf}"
25362 ln -sf "foo-2.0" "${cf}"
25363 readlink "${cf}"
25364 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25365 readlink "${cf}"
25366 test ! -L "${cf}.rpmnew"
25367
25368 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25369 at_status=$? at_failed=false
25370 $at_check_filter
25371 at_fn_diff_devnull "$at_stderr" || at_failed=:
25372 echo >>"$at_stdout"; $as_echo "foo-1.0
25373 foo-2.0
25374 foo-2.0
25375 " | \
25376   $at_diff - "$at_stdout" || at_failed=:
25377 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:463"
25378 $at_failed && at_fn_log_failure
25379 $at_traceon; }
25380
25381   set +x
25382   $at_times_p && times >"$at_times_file"
25383 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25384 read at_status <"$at_status_file"
25385 #AT_STOP_346
25386 #AT_START_347
25387 at_fn_group_banner 347 'rpmconfig2.at:498' \
25388   "upgrade unchanged shared config link" "           " 17
25389 at_xfail=no
25390 (
25391   $as_echo "347. $at_setup_line: testing $at_desc ..."
25392   $at_traceon
25393
25394
25395 { set +x
25396 $as_echo "$at_srcdir/rpmconfig2.at:500:
25397
25398 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25399
25400
25401 runroot rpm --initdb
25402
25403 cf=\"\${RPMTEST}\"/etc/my.conf
25404 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25405 rm -rf \"\${TOPDIR}\"
25406
25407 for s in \"A\" \"B\"; do
25408     for v in \"1.0\" \"2.0\"; do
25409         runroot rpmbuild --quiet -bb \\
25410             --define \"sub \$s\" \\
25411             --define \"ver \$v\" \\
25412             --define \"filedata foo\" \\
25413             --define \"filetype link\" \\
25414               /data/SPECS/configtest.spec
25415     done
25416 done
25417
25418 runroot rpm -U \\
25419     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
25420     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25421 readlink \"\${cf}\"
25422 runroot rpm -U \\
25423     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
25424     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25425 readlink \"\${cf}\"
25426 "
25427 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:500"
25428 ( $at_check_trace;
25429
25430 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25431
25432
25433 runroot rpm --initdb
25434
25435 cf="${RPMTEST}"/etc/my.conf
25436 rm -rf "${cf}" "${cf}".rpm*
25437 rm -rf "${TOPDIR}"
25438
25439 for s in "A" "B"; do
25440     for v in "1.0" "2.0"; do
25441         runroot rpmbuild --quiet -bb \
25442             --define "sub $s" \
25443             --define "ver $v" \
25444             --define "filedata foo" \
25445             --define "filetype link" \
25446               /data/SPECS/configtest.spec
25447     done
25448 done
25449
25450 runroot rpm -U \
25451     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25452     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25453 readlink "${cf}"
25454 runroot rpm -U \
25455     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25456     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25457 readlink "${cf}"
25458
25459 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25460 at_status=$? at_failed=false
25461 $at_check_filter
25462 at_fn_diff_devnull "$at_stderr" || at_failed=:
25463 echo >>"$at_stdout"; $as_echo "foo
25464 foo
25465 " | \
25466   $at_diff - "$at_stdout" || at_failed=:
25467 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:500"
25468 $at_failed && at_fn_log_failure
25469 $at_traceon; }
25470
25471
25472   set +x
25473   $at_times_p && times >"$at_times_file"
25474 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25475 read at_status <"$at_status_file"
25476 #AT_STOP_347
25477 #AT_START_348
25478 at_fn_group_banner 348 'rpmconfig2.at:537' \
25479   "upgrade modified shared config link" "            " 17
25480 at_xfail=no
25481 (
25482   $as_echo "348. $at_setup_line: testing $at_desc ..."
25483   $at_traceon
25484
25485
25486 { set +x
25487 $as_echo "$at_srcdir/rpmconfig2.at:539:
25488
25489 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25490
25491
25492 runroot rpm --initdb
25493
25494 cf=\"\${RPMTEST}\"/etc/my.conf
25495 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25496 rm -rf \"\${TOPDIR}\"
25497
25498 for s in \"A\" \"B\"; do
25499     for v in \"1.0\" \"2.0\"; do
25500         runroot rpmbuild --quiet -bb \\
25501             --define \"sub \$s\" \\
25502             --define \"ver \$v\" \\
25503             --define \"filedata foo\" \\
25504             --define \"filetype link\" \\
25505               /data/SPECS/configtest.spec
25506     done
25507 done
25508
25509 runroot rpm -U \\
25510     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
25511     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25512 readlink \"\${cf}\"
25513 ln -sf \"otherstuff\" \"\${cf}\"
25514 readlink \"\${cf}\"
25515 runroot rpm -U \\
25516     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
25517     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25518 readlink \"\${cf}\"
25519 "
25520 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:539"
25521 ( $at_check_trace;
25522
25523 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25524
25525
25526 runroot rpm --initdb
25527
25528 cf="${RPMTEST}"/etc/my.conf
25529 rm -rf "${cf}" "${cf}".rpm*
25530 rm -rf "${TOPDIR}"
25531
25532 for s in "A" "B"; do
25533     for v in "1.0" "2.0"; do
25534         runroot rpmbuild --quiet -bb \
25535             --define "sub $s" \
25536             --define "ver $v" \
25537             --define "filedata foo" \
25538             --define "filetype link" \
25539               /data/SPECS/configtest.spec
25540     done
25541 done
25542
25543 runroot rpm -U \
25544     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25545     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25546 readlink "${cf}"
25547 ln -sf "otherstuff" "${cf}"
25548 readlink "${cf}"
25549 runroot rpm -U \
25550     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25551     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25552 readlink "${cf}"
25553
25554 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25555 at_status=$? at_failed=false
25556 $at_check_filter
25557 at_fn_diff_devnull "$at_stderr" || at_failed=:
25558 echo >>"$at_stdout"; $as_echo "foo
25559 otherstuff
25560 otherstuff
25561 " | \
25562   $at_diff - "$at_stdout" || at_failed=:
25563 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:539"
25564 $at_failed && at_fn_log_failure
25565 $at_traceon; }
25566
25567   set +x
25568   $at_times_p && times >"$at_times_file"
25569 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25570 read at_status <"$at_status_file"
25571 #AT_STOP_348
25572 #AT_START_349
25573 at_fn_group_banner 349 'rpmconfig2.at:578' \
25574   "upgrade changing shared config link" "            " 17
25575 at_xfail=no
25576 (
25577   $as_echo "349. $at_setup_line: testing $at_desc ..."
25578   $at_traceon
25579
25580
25581 { set +x
25582 $as_echo "$at_srcdir/rpmconfig2.at:580:
25583
25584 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25585
25586
25587 runroot rpm --initdb
25588
25589 cf=\"\${RPMTEST}\"/etc/my.conf
25590 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25591 rm -rf \"\${TOPDIR}\"
25592
25593 for s in \"A\" \"B\"; do
25594     for v in \"1.0\" \"2.0\"; do
25595         runroot rpmbuild --quiet -bb \\
25596             --define \"sub \$s\" \\
25597             --define \"ver \$v\" \\
25598             --define \"filedata foo-\$v\" \\
25599             --define \"filetype link\" \\
25600               /data/SPECS/configtest.spec
25601     done
25602 done
25603
25604 runroot rpm -U \\
25605     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
25606     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25607 readlink \"\${cf}\"
25608 runroot rpm -U \\
25609     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
25610     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25611 readlink \"\${cf}\"
25612 "
25613 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:580"
25614 ( $at_check_trace;
25615
25616 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25617
25618
25619 runroot rpm --initdb
25620
25621 cf="${RPMTEST}"/etc/my.conf
25622 rm -rf "${cf}" "${cf}".rpm*
25623 rm -rf "${TOPDIR}"
25624
25625 for s in "A" "B"; do
25626     for v in "1.0" "2.0"; do
25627         runroot rpmbuild --quiet -bb \
25628             --define "sub $s" \
25629             --define "ver $v" \
25630             --define "filedata foo-$v" \
25631             --define "filetype link" \
25632               /data/SPECS/configtest.spec
25633     done
25634 done
25635
25636 runroot rpm -U \
25637     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25638     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25639 readlink "${cf}"
25640 runroot rpm -U \
25641     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25642     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25643 readlink "${cf}"
25644
25645 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25646 at_status=$? at_failed=false
25647 $at_check_filter
25648 at_fn_diff_devnull "$at_stderr" || at_failed=:
25649 echo >>"$at_stdout"; $as_echo "foo-1.0
25650 foo-2.0
25651 " | \
25652   $at_diff - "$at_stdout" || at_failed=:
25653 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:580"
25654 $at_failed && at_fn_log_failure
25655 $at_traceon; }
25656
25657   set +x
25658   $at_times_p && times >"$at_times_file"
25659 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25660 read at_status <"$at_status_file"
25661 #AT_STOP_349
25662 #AT_START_350
25663 at_fn_group_banner 350 'rpmconfig2.at:616' \
25664   "upgrade changing, modified shared config link 1" "" 17
25665 at_xfail=no
25666 (
25667   $as_echo "350. $at_setup_line: testing $at_desc ..."
25668   $at_traceon
25669
25670
25671 { set +x
25672 $as_echo "$at_srcdir/rpmconfig2.at:618:
25673
25674 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25675
25676
25677 runroot rpm --initdb
25678
25679 cf=\"\${RPMTEST}\"/etc/my.conf
25680 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25681 rm -rf \"\${TOPDIR}\"
25682
25683 for s in \"A\" \"B\"; do
25684     for v in \"1.0\" \"2.0\"; do
25685         runroot rpmbuild --quiet -bb \\
25686             --define \"sub \$s\" \\
25687             --define \"ver \$v\" \\
25688             --define \"filedata foo-\$v\" \\
25689             --define \"filetype link\" \\
25690               /data/SPECS/configtest.spec
25691     done
25692 done
25693
25694 runroot rpm -U \\
25695     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
25696     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25697 readlink \"\${cf}\"
25698 ln -sf \"otherstuff\" \"\${cf}\"
25699 readlink \"\${cf}\"
25700 runroot rpm -U \\
25701     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
25702     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25703 readlink \"\${cf}\"
25704 readlink \"\${cf}.rpmsave\"
25705 "
25706 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:618"
25707 ( $at_check_trace;
25708
25709 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25710
25711
25712 runroot rpm --initdb
25713
25714 cf="${RPMTEST}"/etc/my.conf
25715 rm -rf "${cf}" "${cf}".rpm*
25716 rm -rf "${TOPDIR}"
25717
25718 for s in "A" "B"; do
25719     for v in "1.0" "2.0"; do
25720         runroot rpmbuild --quiet -bb \
25721             --define "sub $s" \
25722             --define "ver $v" \
25723             --define "filedata foo-$v" \
25724             --define "filetype link" \
25725               /data/SPECS/configtest.spec
25726     done
25727 done
25728
25729 runroot rpm -U \
25730     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25731     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25732 readlink "${cf}"
25733 ln -sf "otherstuff" "${cf}"
25734 readlink "${cf}"
25735 runroot rpm -U \
25736     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25737     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25738 readlink "${cf}"
25739 readlink "${cf}.rpmsave"
25740
25741 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25742 at_status=$? at_failed=false
25743 $at_check_filter
25744 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
25745 " | \
25746   $at_diff - "$at_stderr" || at_failed=:
25747 echo >>"$at_stdout"; $as_echo "foo-1.0
25748 otherstuff
25749 foo-2.0
25750 otherstuff
25751 " | \
25752   $at_diff - "$at_stdout" || at_failed=:
25753 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:618"
25754 $at_failed && at_fn_log_failure
25755 $at_traceon; }
25756
25757   set +x
25758   $at_times_p && times >"$at_times_file"
25759 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25760 read at_status <"$at_status_file"
25761 #AT_STOP_350
25762 #AT_START_351
25763 at_fn_group_banner 351 'rpmconfig2.at:660' \
25764   "upgrade changing, modified shared config link 2" "" 17
25765 at_xfail=no
25766 (
25767   $as_echo "351. $at_setup_line: testing $at_desc ..."
25768   $at_traceon
25769
25770
25771 { set +x
25772 $as_echo "$at_srcdir/rpmconfig2.at:662:
25773
25774 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25775
25776
25777 runroot rpm --initdb
25778
25779 cf=\"\${RPMTEST}\"/etc/my.conf
25780 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25781 rm -rf \"\${TOPDIR}\"
25782
25783 for s in \"A\" \"B\"; do
25784     for v in \"1.0\" \"2.0\"; do
25785         runroot rpmbuild --quiet -bb \\
25786             --define \"sub \$s\" \\
25787             --define \"ver \$v\" \\
25788             --define \"filedata foo-\$v\" \\
25789             --define \"filetype link\" \\
25790               /data/SPECS/configtest.spec
25791     done
25792 done
25793
25794 runroot rpm -U \\
25795     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
25796     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25797 readlink \"\${cf}\"
25798 ln -sf \"foo-2.0\" \"\${cf}\"
25799 readlink \"\${cf}\"
25800 runroot rpm -U \\
25801     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
25802     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25803 readlink \"\${cf}\"
25804 "
25805 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:662"
25806 ( $at_check_trace;
25807
25808 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25809
25810
25811 runroot rpm --initdb
25812
25813 cf="${RPMTEST}"/etc/my.conf
25814 rm -rf "${cf}" "${cf}".rpm*
25815 rm -rf "${TOPDIR}"
25816
25817 for s in "A" "B"; do
25818     for v in "1.0" "2.0"; do
25819         runroot rpmbuild --quiet -bb \
25820             --define "sub $s" \
25821             --define "ver $v" \
25822             --define "filedata foo-$v" \
25823             --define "filetype link" \
25824               /data/SPECS/configtest.spec
25825     done
25826 done
25827
25828 runroot rpm -U \
25829     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25830     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25831 readlink "${cf}"
25832 ln -sf "foo-2.0" "${cf}"
25833 readlink "${cf}"
25834 runroot rpm -U \
25835     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25836     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25837 readlink "${cf}"
25838
25839 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25840 at_status=$? at_failed=false
25841 $at_check_filter
25842 at_fn_diff_devnull "$at_stderr" || at_failed=:
25843 echo >>"$at_stdout"; $as_echo "foo-1.0
25844 foo-2.0
25845 foo-2.0
25846 " | \
25847   $at_diff - "$at_stdout" || at_failed=:
25848 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:662"
25849 $at_failed && at_fn_log_failure
25850 $at_traceon; }
25851
25852   set +x
25853   $at_times_p && times >"$at_times_file"
25854 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25855 read at_status <"$at_status_file"
25856 #AT_STOP_351
25857 #AT_START_352
25858 at_fn_group_banner 352 'rpmconfig2.at:702' \
25859   "upgrade changing, modified shared config(noreplace) link 1" "" 17
25860 at_xfail=no
25861 (
25862   $as_echo "352. $at_setup_line: testing $at_desc ..."
25863   $at_traceon
25864
25865
25866 { set +x
25867 $as_echo "$at_srcdir/rpmconfig2.at:704:
25868
25869 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25870
25871
25872 runroot rpm --initdb
25873
25874 cf=\"\${RPMTEST}\"/etc/my.conf
25875 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25876 rm -rf \"\${TOPDIR}\"
25877
25878 for s in \"A\" \"B\"; do
25879     for v in \"1.0\" \"2.0\"; do
25880         runroot rpmbuild --quiet -bb \\
25881             --define \"sub \$s\" \\
25882             --define \"ver \$v\" \\
25883             --define \"filedata foo-\$v\" \\
25884             --define \"filetype link\" \\
25885             --define \"noreplace 1\" \\
25886               /data/SPECS/configtest.spec
25887     done
25888 done
25889
25890 runroot rpm -U \\
25891     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
25892     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25893 readlink \"\${cf}\"
25894 ln -sf \"otherstuff\" \"\${cf}\"
25895 readlink \"\${cf}\"
25896 runroot rpm -U \\
25897     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
25898     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25899 readlink \"\${cf}\"
25900 readlink \"\${cf}.rpmnew\"
25901 "
25902 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:704"
25903 ( $at_check_trace;
25904
25905 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25906
25907
25908 runroot rpm --initdb
25909
25910 cf="${RPMTEST}"/etc/my.conf
25911 rm -rf "${cf}" "${cf}".rpm*
25912 rm -rf "${TOPDIR}"
25913
25914 for s in "A" "B"; do
25915     for v in "1.0" "2.0"; do
25916         runroot rpmbuild --quiet -bb \
25917             --define "sub $s" \
25918             --define "ver $v" \
25919             --define "filedata foo-$v" \
25920             --define "filetype link" \
25921             --define "noreplace 1" \
25922               /data/SPECS/configtest.spec
25923     done
25924 done
25925
25926 runroot rpm -U \
25927     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25928     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25929 readlink "${cf}"
25930 ln -sf "otherstuff" "${cf}"
25931 readlink "${cf}"
25932 runroot rpm -U \
25933     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25934     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25935 readlink "${cf}"
25936 readlink "${cf}.rpmnew"
25937
25938 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25939 at_status=$? at_failed=false
25940 $at_check_filter
25941 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
25942 " | \
25943   $at_diff - "$at_stderr" || at_failed=:
25944 echo >>"$at_stdout"; $as_echo "foo-1.0
25945 otherstuff
25946 otherstuff
25947 foo-2.0
25948 " | \
25949   $at_diff - "$at_stdout" || at_failed=:
25950 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:704"
25951 $at_failed && at_fn_log_failure
25952 $at_traceon; }
25953
25954   set +x
25955   $at_times_p && times >"$at_times_file"
25956 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
25957 read at_status <"$at_status_file"
25958 #AT_STOP_352
25959 #AT_START_353
25960 at_fn_group_banner 353 'rpmconfig2.at:747' \
25961   "upgrade changing, modified shared config(noreplace) link 2" "" 17
25962 at_xfail=no
25963 (
25964   $as_echo "353. $at_setup_line: testing $at_desc ..."
25965   $at_traceon
25966
25967
25968 { set +x
25969 $as_echo "$at_srcdir/rpmconfig2.at:749:
25970
25971 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25972
25973
25974 runroot rpm --initdb
25975
25976 cf=\"\${RPMTEST}\"/etc/my.conf
25977 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25978 rm -rf \"\${TOPDIR}\"
25979
25980 for s in \"A\" \"B\"; do
25981     for v in \"1.0\" \"2.0\"; do
25982         runroot rpmbuild --quiet -bb \\
25983             --define \"sub \$s\" \\
25984             --define \"ver \$v\" \\
25985             --define \"filedata foo-\$v\" \\
25986             --define \"filetype link\" \\
25987             --define \"noreplace 1\" \\
25988               /data/SPECS/configtest.spec
25989     done
25990 done
25991
25992 runroot rpm -U \\
25993     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
25994     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25995 readlink \"\${cf}\"
25996 ln -sf \"foo-2.0\" \"\${cf}\"
25997 readlink \"\${cf}\"
25998 runroot rpm -U \\
25999     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
26000     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
26001 readlink \"\${cf}\"
26002 test ! -L \"\${cf}.rpmnew\"
26003 "
26004 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:749"
26005 ( $at_check_trace;
26006
26007 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26008
26009
26010 runroot rpm --initdb
26011
26012 cf="${RPMTEST}"/etc/my.conf
26013 rm -rf "${cf}" "${cf}".rpm*
26014 rm -rf "${TOPDIR}"
26015
26016 for s in "A" "B"; do
26017     for v in "1.0" "2.0"; do
26018         runroot rpmbuild --quiet -bb \
26019             --define "sub $s" \
26020             --define "ver $v" \
26021             --define "filedata foo-$v" \
26022             --define "filetype link" \
26023             --define "noreplace 1" \
26024               /data/SPECS/configtest.spec
26025     done
26026 done
26027
26028 runroot rpm -U \
26029     /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
26030     /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
26031 readlink "${cf}"
26032 ln -sf "foo-2.0" "${cf}"
26033 readlink "${cf}"
26034 runroot rpm -U \
26035     /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
26036     /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
26037 readlink "${cf}"
26038 test ! -L "${cf}.rpmnew"
26039
26040 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26041 at_status=$? at_failed=false
26042 $at_check_filter
26043 at_fn_diff_devnull "$at_stderr" || at_failed=:
26044 echo >>"$at_stdout"; $as_echo "foo-1.0
26045 foo-2.0
26046 foo-2.0
26047 " | \
26048   $at_diff - "$at_stdout" || at_failed=:
26049 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig2.at:749"
26050 $at_failed && at_fn_log_failure
26051 $at_traceon; }
26052
26053   set +x
26054   $at_times_p && times >"$at_times_file"
26055 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26056 read at_status <"$at_status_file"
26057 #AT_STOP_353
26058 #AT_START_354
26059 at_fn_group_banner 354 'rpmconfig3.at:6' \
26060   "upgrade config to/from non-config" "              " 18
26061 at_xfail=no
26062 (
26063   $as_echo "354. $at_setup_line: testing $at_desc ..."
26064   $at_traceon
26065
26066
26067 { set +x
26068 $as_echo "$at_srcdir/rpmconfig3.at:8:
26069
26070 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26071
26072
26073 runroot rpm --initdb
26074
26075 cf=\"\${RPMTEST}\"/etc/my.conf
26076 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26077 rm -rf \"\${TOPDIR}\"
26078
26079 runroot rpmbuild --quiet -bb \\
26080         --define \"ver 1.0\" \\
26081         --define \"filetype file\" \\
26082         --define \"filedata foo\" \\
26083           /data/SPECS/configtest.spec
26084
26085 runroot rpmbuild --quiet -bb \\
26086         --define \"ver 2.0\" \\
26087         --define \"filetype file\" \\
26088         --define \"filedata bar\" \\
26089         --define \"noconfig 1\" \\
26090           /data/SPECS/configtest.spec
26091
26092 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26093 cat \"\${cf}\"
26094 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26095 cat \"\${cf}\"
26096 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26097 cat \"\${cf}\"
26098 "
26099 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:8"
26100 ( $at_check_trace;
26101
26102 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26103
26104
26105 runroot rpm --initdb
26106
26107 cf="${RPMTEST}"/etc/my.conf
26108 rm -rf "${cf}" "${cf}".rpm*
26109 rm -rf "${TOPDIR}"
26110
26111 runroot rpmbuild --quiet -bb \
26112         --define "ver 1.0" \
26113         --define "filetype file" \
26114         --define "filedata foo" \
26115           /data/SPECS/configtest.spec
26116
26117 runroot rpmbuild --quiet -bb \
26118         --define "ver 2.0" \
26119         --define "filetype file" \
26120         --define "filedata bar" \
26121         --define "noconfig 1" \
26122           /data/SPECS/configtest.spec
26123
26124 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26125 cat "${cf}"
26126 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26127 cat "${cf}"
26128 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26129 cat "${cf}"
26130
26131 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26132 at_status=$? at_failed=false
26133 $at_check_filter
26134 at_fn_diff_devnull "$at_stderr" || at_failed=:
26135 echo >>"$at_stdout"; $as_echo "foo
26136 bar
26137 foo
26138 " | \
26139   $at_diff - "$at_stdout" || at_failed=:
26140 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig3.at:8"
26141 $at_failed && at_fn_log_failure
26142 $at_traceon; }
26143
26144   set +x
26145   $at_times_p && times >"$at_times_file"
26146 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26147 read at_status <"$at_status_file"
26148 #AT_STOP_354
26149 #AT_START_355
26150 at_fn_group_banner 355 'rpmconfig3.at:44' \
26151   "upgrade modified config to/from non-config 1" "   " 18
26152 at_xfail=no
26153 (
26154   $as_echo "355. $at_setup_line: testing $at_desc ..."
26155   $at_traceon
26156
26157
26158 { set +x
26159 $as_echo "$at_srcdir/rpmconfig3.at:46:
26160
26161 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26162
26163
26164 runroot rpm --initdb
26165
26166 cf=\"\${RPMTEST}\"/etc/my.conf
26167 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26168 rm -rf \"\${TOPDIR}\"
26169
26170 runroot rpmbuild --quiet -bb \\
26171         --define \"ver 1.0\" \\
26172         --define \"filetype file\" \\
26173         --define \"filedata foo\" \\
26174           /data/SPECS/configtest.spec
26175
26176 runroot rpmbuild --quiet -bb \\
26177         --define \"ver 2.0\" \\
26178         --define \"filetype file\" \\
26179         --define \"filedata bar\" \\
26180         --define \"noconfig 1\" \\
26181           /data/SPECS/configtest.spec
26182
26183 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26184 cat \"\${cf}\"
26185 echo \"otherstuff\" > \"\${cf}\"
26186 cat \"\${cf}\"
26187 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26188 cat \"\${cf}\"
26189 cat \"\${cf}.rpmsave\"
26190 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26191 cat \"\${cf}\"
26192 "
26193 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:46"
26194 ( $at_check_trace;
26195
26196 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26197
26198
26199 runroot rpm --initdb
26200
26201 cf="${RPMTEST}"/etc/my.conf
26202 rm -rf "${cf}" "${cf}".rpm*
26203 rm -rf "${TOPDIR}"
26204
26205 runroot rpmbuild --quiet -bb \
26206         --define "ver 1.0" \
26207         --define "filetype file" \
26208         --define "filedata foo" \
26209           /data/SPECS/configtest.spec
26210
26211 runroot rpmbuild --quiet -bb \
26212         --define "ver 2.0" \
26213         --define "filetype file" \
26214         --define "filedata bar" \
26215         --define "noconfig 1" \
26216           /data/SPECS/configtest.spec
26217
26218 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26219 cat "${cf}"
26220 echo "otherstuff" > "${cf}"
26221 cat "${cf}"
26222 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26223 cat "${cf}"
26224 cat "${cf}.rpmsave"
26225 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26226 cat "${cf}"
26227
26228 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26229 at_status=$? at_failed=false
26230 $at_check_filter
26231 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
26232 " | \
26233   $at_diff - "$at_stderr" || at_failed=:
26234 echo >>"$at_stdout"; $as_echo "foo
26235 otherstuff
26236 bar
26237 otherstuff
26238 foo
26239 " | \
26240   $at_diff - "$at_stdout" || at_failed=:
26241 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig3.at:46"
26242 $at_failed && at_fn_log_failure
26243 $at_traceon; }
26244
26245   set +x
26246   $at_times_p && times >"$at_times_file"
26247 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26248 read at_status <"$at_status_file"
26249 #AT_STOP_355
26250 #AT_START_356
26251 at_fn_group_banner 356 'rpmconfig3.at:88' \
26252   "upgrade modified config to/from non-config 2" "   " 18
26253 at_xfail=no
26254 (
26255   $as_echo "356. $at_setup_line: testing $at_desc ..."
26256   $at_traceon
26257
26258
26259 { set +x
26260 $as_echo "$at_srcdir/rpmconfig3.at:90:
26261
26262 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26263
26264
26265 runroot rpm --initdb
26266
26267 cf=\"\${RPMTEST}\"/etc/my.conf
26268 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26269 rm -rf \"\${TOPDIR}\"
26270
26271 runroot rpmbuild --quiet -bb \\
26272         --define \"ver 1.0\" \\
26273         --define \"filetype file\" \\
26274         --define \"filedata foo\" \\
26275           /data/SPECS/configtest.spec
26276
26277 runroot rpmbuild --quiet -bb \\
26278         --define \"ver 2.0\" \\
26279         --define \"filetype file\" \\
26280         --define \"filedata bar\" \\
26281         --define \"noconfig 1\" \\
26282           /data/SPECS/configtest.spec
26283
26284 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26285 cat \"\${cf}\"
26286 echo \"bar\" > \"\${cf}\"
26287 cat \"\${cf}\"
26288 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26289 cat \"\${cf}\"
26290 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26291 cat \"\${cf}\"
26292 "
26293 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:90"
26294 ( $at_check_trace;
26295
26296 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26297
26298
26299 runroot rpm --initdb
26300
26301 cf="${RPMTEST}"/etc/my.conf
26302 rm -rf "${cf}" "${cf}".rpm*
26303 rm -rf "${TOPDIR}"
26304
26305 runroot rpmbuild --quiet -bb \
26306         --define "ver 1.0" \
26307         --define "filetype file" \
26308         --define "filedata foo" \
26309           /data/SPECS/configtest.spec
26310
26311 runroot rpmbuild --quiet -bb \
26312         --define "ver 2.0" \
26313         --define "filetype file" \
26314         --define "filedata bar" \
26315         --define "noconfig 1" \
26316           /data/SPECS/configtest.spec
26317
26318 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26319 cat "${cf}"
26320 echo "bar" > "${cf}"
26321 cat "${cf}"
26322 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26323 cat "${cf}"
26324 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26325 cat "${cf}"
26326
26327 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26328 at_status=$? at_failed=false
26329 $at_check_filter
26330 at_fn_diff_devnull "$at_stderr" || at_failed=:
26331 echo >>"$at_stdout"; $as_echo "foo
26332 bar
26333 bar
26334 foo
26335 " | \
26336   $at_diff - "$at_stdout" || at_failed=:
26337 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig3.at:90"
26338 $at_failed && at_fn_log_failure
26339 $at_traceon; }
26340
26341   set +x
26342   $at_times_p && times >"$at_times_file"
26343 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26344 read at_status <"$at_status_file"
26345 #AT_STOP_356
26346 #AT_START_357
26347 at_fn_group_banner 357 'rpmconfig3.at:129' \
26348   "upgrade config to/from config link" "             " 18
26349 at_xfail=no
26350 (
26351   $as_echo "357. $at_setup_line: testing $at_desc ..."
26352   $at_traceon
26353
26354
26355 { set +x
26356 $as_echo "$at_srcdir/rpmconfig3.at:131:
26357
26358 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26359
26360
26361 runroot rpm --initdb
26362
26363 cf=\"\${RPMTEST}\"/etc/my.conf
26364 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26365 rm -rf \"\${TOPDIR}\"
26366
26367 runroot rpmbuild --quiet -bb \\
26368         --define \"ver 1.0\" \\
26369         --define \"filetype file\" \\
26370         --define \"filedata foo\" \\
26371           /data/SPECS/configtest.spec
26372
26373 runroot rpmbuild --quiet -bb \\
26374         --define \"ver 2.0\" \\
26375         --define \"filetype link\" \\
26376         --define \"filedata bar\" \\
26377           /data/SPECS/configtest.spec
26378
26379 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26380 cat \"\${cf}\"
26381 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26382 readlink \"\${cf}\"
26383 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26384 cat \"\${cf}\"
26385 "
26386 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:131"
26387 ( $at_check_trace;
26388
26389 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26390
26391
26392 runroot rpm --initdb
26393
26394 cf="${RPMTEST}"/etc/my.conf
26395 rm -rf "${cf}" "${cf}".rpm*
26396 rm -rf "${TOPDIR}"
26397
26398 runroot rpmbuild --quiet -bb \
26399         --define "ver 1.0" \
26400         --define "filetype file" \
26401         --define "filedata foo" \
26402           /data/SPECS/configtest.spec
26403
26404 runroot rpmbuild --quiet -bb \
26405         --define "ver 2.0" \
26406         --define "filetype link" \
26407         --define "filedata bar" \
26408           /data/SPECS/configtest.spec
26409
26410 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26411 cat "${cf}"
26412 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26413 readlink "${cf}"
26414 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26415 cat "${cf}"
26416
26417 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26418 at_status=$? at_failed=false
26419 $at_check_filter
26420 at_fn_diff_devnull "$at_stderr" || at_failed=:
26421 echo >>"$at_stdout"; $as_echo "foo
26422 bar
26423 foo
26424 " | \
26425   $at_diff - "$at_stdout" || at_failed=:
26426 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig3.at:131"
26427 $at_failed && at_fn_log_failure
26428 $at_traceon; }
26429
26430   set +x
26431   $at_times_p && times >"$at_times_file"
26432 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26433 read at_status <"$at_status_file"
26434 #AT_STOP_357
26435 #AT_START_358
26436 at_fn_group_banner 358 'rpmconfig3.at:166' \
26437   "upgrade modified config to config link" "         " 18
26438 at_xfail=no
26439 (
26440   $as_echo "358. $at_setup_line: testing $at_desc ..."
26441   $at_traceon
26442
26443
26444 { set +x
26445 $as_echo "$at_srcdir/rpmconfig3.at:168:
26446
26447 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26448
26449
26450 runroot rpm --initdb
26451
26452 cf=\"\${RPMTEST}\"/etc/my.conf
26453 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26454 rm -rf \"\${TOPDIR}\"
26455
26456 runroot rpmbuild --quiet -bb \\
26457         --define \"ver 1.0\" \\
26458         --define \"filetype file\" \\
26459         --define \"filedata foo\" \\
26460           /data/SPECS/configtest.spec
26461
26462 runroot rpmbuild --quiet -bb \\
26463         --define \"ver 2.0\" \\
26464         --define \"filetype link\" \\
26465         --define \"filedata bar\" \\
26466           /data/SPECS/configtest.spec
26467
26468 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26469 cat \"\${cf}\"
26470 echo \"otherstuff\" > \"\${cf}\"
26471 cat \"\${cf}\"
26472 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26473 readlink \"\${cf}\"
26474 cat \"\${cf}.rpmsave\"
26475 "
26476 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:168"
26477 ( $at_check_trace;
26478
26479 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26480
26481
26482 runroot rpm --initdb
26483
26484 cf="${RPMTEST}"/etc/my.conf
26485 rm -rf "${cf}" "${cf}".rpm*
26486 rm -rf "${TOPDIR}"
26487
26488 runroot rpmbuild --quiet -bb \
26489         --define "ver 1.0" \
26490         --define "filetype file" \
26491         --define "filedata foo" \
26492           /data/SPECS/configtest.spec
26493
26494 runroot rpmbuild --quiet -bb \
26495         --define "ver 2.0" \
26496         --define "filetype link" \
26497         --define "filedata bar" \
26498           /data/SPECS/configtest.spec
26499
26500 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26501 cat "${cf}"
26502 echo "otherstuff" > "${cf}"
26503 cat "${cf}"
26504 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26505 readlink "${cf}"
26506 cat "${cf}.rpmsave"
26507
26508 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26509 at_status=$? at_failed=false
26510 $at_check_filter
26511 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
26512 " | \
26513   $at_diff - "$at_stderr" || at_failed=:
26514 echo >>"$at_stdout"; $as_echo "foo
26515 otherstuff
26516 bar
26517 otherstuff
26518 " | \
26519   $at_diff - "$at_stdout" || at_failed=:
26520 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig3.at:168"
26521 $at_failed && at_fn_log_failure
26522 $at_traceon; }
26523
26524   set +x
26525   $at_times_p && times >"$at_times_file"
26526 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26527 read at_status <"$at_status_file"
26528 #AT_STOP_358
26529 #AT_START_359
26530 at_fn_group_banner 359 'rpmconfig3.at:206' \
26531   "upgrade modified config link to config" "         " 18
26532 at_xfail=no
26533 (
26534   $as_echo "359. $at_setup_line: testing $at_desc ..."
26535   $at_traceon
26536
26537
26538 { set +x
26539 $as_echo "$at_srcdir/rpmconfig3.at:208:
26540
26541 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26542
26543
26544 runroot rpm --initdb
26545
26546 cf=\"\${RPMTEST}\"/etc/my.conf
26547 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26548 rm -rf \"\${TOPDIR}\"
26549
26550 runroot rpmbuild --quiet -bb \\
26551         --define \"ver 1.0\" \\
26552         --define \"filetype link\" \\
26553         --define \"filedata foo\" \\
26554           /data/SPECS/configtest.spec
26555
26556 runroot rpmbuild --quiet -bb \\
26557         --define \"ver 2.0\" \\
26558         --define \"filetype file\" \\
26559         --define \"filedata bar\" \\
26560           /data/SPECS/configtest.spec
26561
26562 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26563 readlink \"\${cf}\"
26564 ln -sf \"otherstuff\" \"\${cf}\"
26565 readlink \"\${cf}\"
26566 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26567 cat \"\${cf}\"
26568 readlink \"\${cf}.rpmsave\"
26569 "
26570 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:208"
26571 ( $at_check_trace;
26572
26573 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26574
26575
26576 runroot rpm --initdb
26577
26578 cf="${RPMTEST}"/etc/my.conf
26579 rm -rf "${cf}" "${cf}".rpm*
26580 rm -rf "${TOPDIR}"
26581
26582 runroot rpmbuild --quiet -bb \
26583         --define "ver 1.0" \
26584         --define "filetype link" \
26585         --define "filedata foo" \
26586           /data/SPECS/configtest.spec
26587
26588 runroot rpmbuild --quiet -bb \
26589         --define "ver 2.0" \
26590         --define "filetype file" \
26591         --define "filedata bar" \
26592           /data/SPECS/configtest.spec
26593
26594 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26595 readlink "${cf}"
26596 ln -sf "otherstuff" "${cf}"
26597 readlink "${cf}"
26598 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26599 cat "${cf}"
26600 readlink "${cf}.rpmsave"
26601
26602 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26603 at_status=$? at_failed=false
26604 $at_check_filter
26605 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
26606 " | \
26607   $at_diff - "$at_stderr" || at_failed=:
26608 echo >>"$at_stdout"; $as_echo "foo
26609 otherstuff
26610 bar
26611 otherstuff
26612 " | \
26613   $at_diff - "$at_stdout" || at_failed=:
26614 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig3.at:208"
26615 $at_failed && at_fn_log_failure
26616 $at_traceon; }
26617
26618   set +x
26619   $at_times_p && times >"$at_times_file"
26620 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26621 read at_status <"$at_status_file"
26622 #AT_STOP_359
26623 #AT_START_360
26624 at_fn_group_banner 360 'rpmconfig3.at:246' \
26625   "upgrade config to directory" "                    " 18
26626 at_xfail=no
26627 (
26628   $as_echo "360. $at_setup_line: testing $at_desc ..."
26629   $at_traceon
26630
26631
26632 { set +x
26633 $as_echo "$at_srcdir/rpmconfig3.at:248:
26634
26635 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26636
26637
26638 runroot rpm --initdb
26639
26640 cf=\"\${RPMTEST}\"/etc/my.conf
26641 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26642 rm -rf \"\${TOPDIR}\"
26643
26644 runroot rpmbuild --quiet -bb \\
26645         --define \"ver 1.0\" \\
26646         --define \"filetype file\" \\
26647         --define \"filedata foo\" \\
26648           /data/SPECS/configtest.spec
26649
26650 runroot rpmbuild --quiet -bb \\
26651         --define \"ver 2.0\" \\
26652         --define \"filetype dir\" \\
26653           /data/SPECS/configtest.spec
26654
26655 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26656 cat \"\${cf}\"
26657 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26658 test -d \"\${cf}\"
26659 "
26660 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:248"
26661 ( $at_check_trace;
26662
26663 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26664
26665
26666 runroot rpm --initdb
26667
26668 cf="${RPMTEST}"/etc/my.conf
26669 rm -rf "${cf}" "${cf}".rpm*
26670 rm -rf "${TOPDIR}"
26671
26672 runroot rpmbuild --quiet -bb \
26673         --define "ver 1.0" \
26674         --define "filetype file" \
26675         --define "filedata foo" \
26676           /data/SPECS/configtest.spec
26677
26678 runroot rpmbuild --quiet -bb \
26679         --define "ver 2.0" \
26680         --define "filetype dir" \
26681           /data/SPECS/configtest.spec
26682
26683 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26684 cat "${cf}"
26685 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26686 test -d "${cf}"
26687
26688 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26689 at_status=$? at_failed=false
26690 $at_check_filter
26691 at_fn_diff_devnull "$at_stderr" || at_failed=:
26692 echo >>"$at_stdout"; $as_echo "foo
26693 " | \
26694   $at_diff - "$at_stdout" || at_failed=:
26695 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig3.at:248"
26696 $at_failed && at_fn_log_failure
26697 $at_traceon; }
26698
26699   set +x
26700   $at_times_p && times >"$at_times_file"
26701 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26702 read at_status <"$at_status_file"
26703 #AT_STOP_360
26704 #AT_START_361
26705 at_fn_group_banner 361 'rpmconfig3.at:278' \
26706   "upgrade modified config to directory" "           " 18
26707 at_xfail=no
26708 (
26709   $as_echo "361. $at_setup_line: testing $at_desc ..."
26710   $at_traceon
26711
26712
26713 { set +x
26714 $as_echo "$at_srcdir/rpmconfig3.at:280:
26715
26716 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26717
26718
26719 runroot rpm --initdb
26720
26721 cf=\"\${RPMTEST}\"/etc/my.conf
26722 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26723 rm -rf \"\${TOPDIR}\"
26724
26725 runroot rpmbuild --quiet -bb \\
26726         --define \"ver 1.0\" \\
26727         --define \"filetype file\" \\
26728         --define \"filedata foo\" \\
26729           /data/SPECS/configtest.spec
26730
26731 runroot rpmbuild --quiet -bb \\
26732         --define \"ver 2.0\" \\
26733         --define \"filetype dir\" \\
26734           /data/SPECS/configtest.spec
26735
26736 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26737 cat \"\${cf}\"
26738 echo \"otherstuff\" > \"\${cf}\"
26739 cat \"\${cf}\"
26740 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26741 test -d \"\${cf}\"
26742 cat \"\${cf}.rpmsave\"
26743 "
26744 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:280"
26745 ( $at_check_trace;
26746
26747 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26748
26749
26750 runroot rpm --initdb
26751
26752 cf="${RPMTEST}"/etc/my.conf
26753 rm -rf "${cf}" "${cf}".rpm*
26754 rm -rf "${TOPDIR}"
26755
26756 runroot rpmbuild --quiet -bb \
26757         --define "ver 1.0" \
26758         --define "filetype file" \
26759         --define "filedata foo" \
26760           /data/SPECS/configtest.spec
26761
26762 runroot rpmbuild --quiet -bb \
26763         --define "ver 2.0" \
26764         --define "filetype dir" \
26765           /data/SPECS/configtest.spec
26766
26767 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26768 cat "${cf}"
26769 echo "otherstuff" > "${cf}"
26770 cat "${cf}"
26771 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26772 test -d "${cf}"
26773 cat "${cf}.rpmsave"
26774
26775 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26776 at_status=$? at_failed=false
26777 $at_check_filter
26778 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
26779 " | \
26780   $at_diff - "$at_stderr" || at_failed=:
26781 echo >>"$at_stdout"; $as_echo "foo
26782 otherstuff
26783 otherstuff
26784 " | \
26785   $at_diff - "$at_stdout" || at_failed=:
26786 at_fn_check_status 0 $at_status "$at_srcdir/rpmconfig3.at:280"
26787 $at_failed && at_fn_log_failure
26788 $at_traceon; }
26789
26790   set +x
26791   $at_times_p && times >"$at_times_file"
26792 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26793 read at_status <"$at_status_file"
26794 #AT_STOP_361
26795 #AT_START_362
26796 at_fn_group_banner 362 'rpmmacro.at:6' \
26797   "simple rpm --eval" "                              " 19
26798 at_xfail=no
26799 (
26800   $as_echo "362. $at_setup_line: testing $at_desc ..."
26801   $at_traceon
26802
26803
26804 { set +x
26805 $as_echo "$at_srcdir/rpmmacro.at:8:
26806 runroot rpm --define \"this that\" --eval '%{this}'
26807 "
26808 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:8"
26809 ( $at_check_trace;
26810 runroot rpm --define "this that" --eval '%{this}'
26811
26812 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26813 at_status=$? at_failed=false
26814 $at_check_filter
26815 at_fn_diff_devnull "$at_stderr" || at_failed=:
26816 echo >>"$at_stdout"; $as_echo "that
26817 " | \
26818   $at_diff - "$at_stdout" || at_failed=:
26819 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:8"
26820 $at_failed && at_fn_log_failure
26821 $at_traceon; }
26822
26823   set +x
26824   $at_times_p && times >"$at_times_file"
26825 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26826 read at_status <"$at_status_file"
26827 #AT_STOP_362
26828 #AT_START_363
26829 at_fn_group_banner 363 'rpmmacro.at:17' \
26830   "invalid rpm --eval" "                             " 19
26831 at_xfail=no
26832 (
26833   $as_echo "363. $at_setup_line: testing $at_desc ..."
26834   $at_traceon
26835
26836
26837 { set +x
26838 $as_echo "$at_srcdir/rpmmacro.at:19:
26839 runroot rpm --eval '%define _ that'
26840 "
26841 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:19"
26842 ( $at_check_trace;
26843 runroot rpm --eval '%define _ that'
26844
26845 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26846 at_status=$? at_failed=false
26847 $at_check_filter
26848 echo >>"$at_stderr"; $as_echo "error: Macro %_ has illegal name (%define)
26849 " | \
26850   $at_diff - "$at_stderr" || at_failed=:
26851 at_fn_diff_devnull "$at_stdout" || at_failed=:
26852 at_fn_check_status 1 $at_status "$at_srcdir/rpmmacro.at:19"
26853 $at_failed && at_fn_log_failure
26854 $at_traceon; }
26855
26856   set +x
26857   $at_times_p && times >"$at_times_file"
26858 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26859 read at_status <"$at_status_file"
26860 #AT_STOP_363
26861 #AT_START_364
26862 at_fn_group_banner 364 'rpmmacro.at:29' \
26863   "invalid rpm --define" "                           " 19
26864 at_xfail=no
26865 (
26866   $as_echo "364. $at_setup_line: testing $at_desc ..."
26867   $at_traceon
26868
26869
26870 { set +x
26871 $as_echo "$at_srcdir/rpmmacro.at:31:
26872 runroot rpm --define \"_ that\"
26873 "
26874 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:31"
26875 ( $at_check_trace;
26876 runroot rpm --define "_ that"
26877
26878 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26879 at_status=$? at_failed=false
26880 $at_check_filter
26881 echo >>"$at_stderr"; $as_echo "error: Macro %_ has illegal name (%define)
26882 " | \
26883   $at_diff - "$at_stderr" || at_failed=:
26884 at_fn_diff_devnull "$at_stdout" || at_failed=:
26885 at_fn_check_status 1 $at_status "$at_srcdir/rpmmacro.at:31"
26886 $at_failed && at_fn_log_failure
26887 $at_traceon; }
26888
26889   set +x
26890   $at_times_p && times >"$at_times_file"
26891 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26892 read at_status <"$at_status_file"
26893 #AT_STOP_364
26894 #AT_START_365
26895 at_fn_group_banner 365 'rpmmacro.at:40' \
26896   "rpm --undefine" "                                 " 19
26897 at_xfail=no
26898 (
26899   $as_echo "365. $at_setup_line: testing $at_desc ..."
26900   $at_traceon
26901
26902
26903 { set +x
26904 $as_echo "$at_srcdir/rpmmacro.at:42:
26905 runroot rpm --define \"this that\" --eval '1. %{this}' --undefine 'this' --eval '2. %{this'}
26906 runroot rpm --eval '1. %{this}' --define \"this that\" --eval '2. %{this}' --undefine 'this' --eval '3. %{this'}
26907 "
26908 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:42"
26909 ( $at_check_trace;
26910 runroot rpm --define "this that" --eval '1. %{this}' --undefine 'this' --eval '2. %{this'}
26911 runroot rpm --eval '1. %{this}' --define "this that" --eval '2. %{this}' --undefine 'this' --eval '3. %{this'}
26912
26913 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26914 at_status=$? at_failed=false
26915 $at_check_filter
26916 at_fn_diff_devnull "$at_stderr" || at_failed=:
26917 echo >>"$at_stdout"; $as_echo "1. that
26918 2. %{this}
26919 1. %{this}
26920 2. that
26921 3. %{this}
26922 " | \
26923   $at_diff - "$at_stdout" || at_failed=:
26924 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:42"
26925 $at_failed && at_fn_log_failure
26926 $at_traceon; }
26927
26928   set +x
26929   $at_times_p && times >"$at_times_file"
26930 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26931 read at_status <"$at_status_file"
26932 #AT_STOP_365
26933 #AT_START_366
26934 at_fn_group_banner 366 'rpmmacro.at:55' \
26935   "simple true conditional rpm --eval" "             " 19
26936 at_xfail=no
26937 (
26938   $as_echo "366. $at_setup_line: testing $at_desc ..."
26939   $at_traceon
26940
26941
26942 { set +x
26943 $as_echo "$at_srcdir/rpmmacro.at:57:
26944 runroot rpm --define \"this that\" --eval '%{?this}'
26945 "
26946 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:57"
26947 ( $at_check_trace;
26948 runroot rpm --define "this that" --eval '%{?this}'
26949
26950 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26951 at_status=$? at_failed=false
26952 $at_check_filter
26953 at_fn_diff_devnull "$at_stderr" || at_failed=:
26954 echo >>"$at_stdout"; $as_echo "that
26955 " | \
26956   $at_diff - "$at_stdout" || at_failed=:
26957 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:57"
26958 $at_failed && at_fn_log_failure
26959 $at_traceon; }
26960
26961   set +x
26962   $at_times_p && times >"$at_times_file"
26963 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26964 read at_status <"$at_status_file"
26965 #AT_STOP_366
26966 #AT_START_367
26967 at_fn_group_banner 367 'rpmmacro.at:65' \
26968   "simple false conditional rpm --eval" "            " 19
26969 at_xfail=no
26970 (
26971   $as_echo "367. $at_setup_line: testing $at_desc ..."
26972   $at_traceon
26973
26974
26975 { set +x
26976 $as_echo "$at_srcdir/rpmmacro.at:67:
26977 runroot rpm --define \"this that\" --eval '%{?that}'
26978 "
26979 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:67"
26980 ( $at_check_trace;
26981 runroot rpm --define "this that" --eval '%{?that}'
26982
26983 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26984 at_status=$? at_failed=false
26985 $at_check_filter
26986 at_fn_diff_devnull "$at_stderr" || at_failed=:
26987 echo >>"$at_stdout"; $as_echo "
26988 " | \
26989   $at_diff - "$at_stdout" || at_failed=:
26990 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:67"
26991 $at_failed && at_fn_log_failure
26992 $at_traceon; }
26993
26994   set +x
26995   $at_times_p && times >"$at_times_file"
26996 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
26997 read at_status <"$at_status_file"
26998 #AT_STOP_367
26999 #AT_START_368
27000 at_fn_group_banner 368 'rpmmacro.at:75' \
27001   "nested macro in name" "                           " 19
27002 at_xfail=no
27003 (
27004   $as_echo "368. $at_setup_line: testing $at_desc ..."
27005   $at_traceon
27006
27007
27008 { set +x
27009 $as_echo "$at_srcdir/rpmmacro.at:77:
27010 runroot rpm --define \"this that\" --define \"that_that foo\" --eval '%{expand:%{%{this}_that}}'
27011 "
27012 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:77"
27013 ( $at_check_trace;
27014 runroot rpm --define "this that" --define "that_that foo" --eval '%{expand:%{%{this}_that}}'
27015
27016 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27017 at_status=$? at_failed=false
27018 $at_check_filter
27019 at_fn_diff_devnull "$at_stderr" || at_failed=:
27020 echo >>"$at_stdout"; $as_echo "foo
27021 " | \
27022   $at_diff - "$at_stdout" || at_failed=:
27023 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:77"
27024 $at_failed && at_fn_log_failure
27025 $at_traceon; }
27026
27027   set +x
27028   $at_times_p && times >"$at_times_file"
27029 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27030 read at_status <"$at_status_file"
27031 #AT_STOP_368
27032 #AT_START_369
27033 at_fn_group_banner 369 'rpmmacro.at:85' \
27034   "parametrized macro 1" "                           " 19
27035 at_xfail=no
27036 (
27037   $as_echo "369. $at_setup_line: testing $at_desc ..."
27038   $at_traceon
27039
27040
27041 { set +x
27042 $as_echo "$at_srcdir/rpmmacro.at:87:
27043 cat << EOF > \${abs_builddir}/testing/mtest
27044 %bar() bar
27045 %foo()\\\\
27046 %bar\\\\
27047 foo 1\\\\
27048 %{bar}\\\\
27049 foo 2\\\\
27050 %bar x\\\\
27051 foo 3\\\\
27052 %{bar x}\\\\
27053 foo 4\\\\
27054 %bar \\\\
27055 foo 5
27056 EOF
27057
27058 runroot rpm --eval '%{load:mtest}%{foo}'
27059 "
27060 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmmacro.at:87"
27061 ( $at_check_trace;
27062 cat << EOF > ${abs_builddir}/testing/mtest
27063 %bar() bar
27064 %foo()\\
27065 %bar\\
27066 foo 1\\
27067 %{bar}\\
27068 foo 2\\
27069 %bar x\\
27070 foo 3\\
27071 %{bar x}\\
27072 foo 4\\
27073 %bar \\
27074 foo 5
27075 EOF
27076
27077 runroot rpm --eval '%{load:mtest}%{foo}'
27078
27079 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27080 at_status=$? at_failed=false
27081 $at_check_filter
27082 at_fn_diff_devnull "$at_stderr" || at_failed=:
27083 echo >>"$at_stdout"; $as_echo "
27084 bar
27085 foo 1
27086 bar
27087 foo 2
27088 bar
27089 foo 3
27090 bar
27091 foo 4
27092 bar
27093 foo 5
27094 " | \
27095   $at_diff - "$at_stdout" || at_failed=:
27096 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:87"
27097 $at_failed && at_fn_log_failure
27098 $at_traceon; }
27099
27100   set +x
27101   $at_times_p && times >"$at_times_file"
27102 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27103 read at_status <"$at_status_file"
27104 #AT_STOP_369
27105 #AT_START_370
27106 at_fn_group_banner 370 'rpmmacro.at:121' \
27107   "parametrized macro 2" "                           " 19
27108 at_xfail=no
27109 (
27110   $as_echo "370. $at_setup_line: testing $at_desc ..."
27111   $at_traceon
27112
27113
27114 { set +x
27115 $as_echo "$at_srcdir/rpmmacro.at:123:
27116 runroot rpm \\
27117     --define '%bar() \"Bar %#: %{?1} %{?2}\"' \\
27118     --define '%foo() \"Foo %#: %{?1} %{?2}\" %bar a' \\
27119     --eval '%foo 1 2'
27120 "
27121 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:123"
27122 ( $at_check_trace;
27123 runroot rpm \
27124     --define '%bar() "Bar %#: %{?1} %{?2}"' \
27125     --define '%foo() "Foo %#: %{?1} %{?2}" %bar a' \
27126     --eval '%foo 1 2'
27127
27128 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27129 at_status=$? at_failed=false
27130 $at_check_filter
27131 at_fn_diff_devnull "$at_stderr" || at_failed=:
27132 echo >>"$at_stdout"; $as_echo "\"Foo 2: 1 2\" \"Bar 1: a \"
27133 " | \
27134   $at_diff - "$at_stdout" || at_failed=:
27135 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:123"
27136 $at_failed && at_fn_log_failure
27137 $at_traceon; }
27138
27139   set +x
27140   $at_times_p && times >"$at_times_file"
27141 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27142 read at_status <"$at_status_file"
27143 #AT_STOP_370
27144 #AT_START_371
27145 at_fn_group_banner 371 'rpmmacro.at:134' \
27146   "parametrized macro 3" "                           " 19
27147 at_xfail=no
27148 (
27149   $as_echo "371. $at_setup_line: testing $at_desc ..."
27150   $at_traceon
27151
27152
27153 { set +x
27154 $as_echo "$at_srcdir/rpmmacro.at:136:
27155 runroot rpm \\
27156     --define '%foo() 1:%1 2:%2' \\
27157     --eval '%foo %nil bar'
27158 "
27159 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:136"
27160 ( $at_check_trace;
27161 runroot rpm \
27162     --define '%foo() 1:%1 2:%2' \
27163     --eval '%foo %nil bar'
27164
27165 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27166 at_status=$? at_failed=false
27167 $at_check_filter
27168 at_fn_diff_devnull "$at_stderr" || at_failed=:
27169 echo >>"$at_stdout"; $as_echo "1:bar 2:%2
27170 " | \
27171   $at_diff - "$at_stdout" || at_failed=:
27172 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:136"
27173 $at_failed && at_fn_log_failure
27174 $at_traceon; }
27175
27176   set +x
27177   $at_times_p && times >"$at_times_file"
27178 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27179 read at_status <"$at_status_file"
27180 #AT_STOP_371
27181 #AT_START_372
27182 at_fn_group_banner 372 'rpmmacro.at:146' \
27183   "parametrized macro 4" "                           " 19
27184 at_xfail=no
27185 (
27186   $as_echo "372. $at_setup_line: testing $at_desc ..."
27187   $at_traceon
27188
27189
27190 { set +x
27191 $as_echo "$at_srcdir/rpmmacro.at:148:
27192 runroot rpm \\
27193     --define '%bar yyy' \\
27194     --define '%foo() %1' \\
27195     --eval '%foo %bar' \\
27196     --eval '%foo %%bar'
27197 "
27198 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:148"
27199 ( $at_check_trace;
27200 runroot rpm \
27201     --define '%bar yyy' \
27202     --define '%foo() %1' \
27203     --eval '%foo %bar' \
27204     --eval '%foo %%bar'
27205
27206 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27207 at_status=$? at_failed=false
27208 $at_check_filter
27209 at_fn_diff_devnull "$at_stderr" || at_failed=:
27210 echo >>"$at_stdout"; $as_echo "yyy
27211 %bar
27212 " | \
27213   $at_diff - "$at_stdout" || at_failed=:
27214 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:148"
27215 $at_failed && at_fn_log_failure
27216 $at_traceon; }
27217
27218   set +x
27219   $at_times_p && times >"$at_times_file"
27220 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27221 read at_status <"$at_status_file"
27222 #AT_STOP_372
27223 #AT_START_373
27224 at_fn_group_banner 373 'rpmmacro.at:161' \
27225   "parametrized macro 5" "                           " 19
27226 at_xfail=no
27227 (
27228   $as_echo "373. $at_setup_line: testing $at_desc ..."
27229   $at_traceon
27230
27231
27232 { set +x
27233 $as_echo "$at_srcdir/rpmmacro.at:163:
27234 runroot rpm \\
27235     --define '%foo() %#:%{?1:\"%1\"}%{?2: \"%2\"}' \\
27236     --define 'bar zzz' \\
27237     --eval '%foo 1' \\
27238     --eval '%foo   2  ' \\
27239     --eval '%foo 1 2' \\
27240     --eval '%foo %{nil}' \\
27241     --eval '%foo %{nil} xx' \\
27242     --eval '%foo %{bar} xx' \\
27243     --eval '%foo %{quote:   2 3  5} %{quote:%{nil}}' \\
27244     --eval '%foo x%{quote:y}z 123' \\
27245     --eval '%foo x%{quote:%{nil}}z' \\
27246 "
27247 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:163"
27248 ( $at_check_trace;
27249 runroot rpm \
27250     --define '%foo() %#:%{?1:"%1"}%{?2: "%2"}' \
27251     --define 'bar zzz' \
27252     --eval '%foo 1' \
27253     --eval '%foo   2  ' \
27254     --eval '%foo 1 2' \
27255     --eval '%foo %{nil}' \
27256     --eval '%foo %{nil} xx' \
27257     --eval '%foo %{bar} xx' \
27258     --eval '%foo %{quote:   2 3  5} %{quote:%{nil}}' \
27259     --eval '%foo x%{quote:y}z 123' \
27260     --eval '%foo x%{quote:%{nil}}z' \
27261
27262 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27263 at_status=$? at_failed=false
27264 $at_check_filter
27265 at_fn_diff_devnull "$at_stderr" || at_failed=:
27266 echo >>"$at_stdout"; $as_echo "1:\"1\"
27267 1:\"2\"
27268 2:\"1\" \"2\"
27269 0:
27270 1:\"xx\"
27271 2:\"zzz\" \"xx\"
27272 2:\"   2 3  5\" \"\"
27273 2:\"xyz\" \"123\"
27274 1:\"xz\"
27275 " | \
27276   $at_diff - "$at_stdout" || at_failed=:
27277 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:163"
27278 $at_failed && at_fn_log_failure
27279 $at_traceon; }
27280
27281   set +x
27282   $at_times_p && times >"$at_times_file"
27283 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27284 read at_status <"$at_status_file"
27285 #AT_STOP_373
27286 #AT_START_374
27287 at_fn_group_banner 374 'rpmmacro.at:190' \
27288   "uncompress macro" "                               " 19
27289 at_xfail=no
27290 (
27291   $as_echo "374. $at_setup_line: testing $at_desc ..."
27292   $at_traceon
27293
27294
27295 { set +x
27296 $as_echo "$at_srcdir/rpmmacro.at:192:
27297 runroot rpm \\
27298     --define \"__gzip /my/bin/gzip\" \\
27299     --eval \"%{uncompress:/data/SOURCES/hello-2.0.tar.gz}\"
27300 "
27301 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:192"
27302 ( $at_check_trace;
27303 runroot rpm \
27304     --define "__gzip /my/bin/gzip" \
27305     --eval "%{uncompress:/data/SOURCES/hello-2.0.tar.gz}"
27306
27307 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27308 at_status=$? at_failed=false
27309 $at_check_filter
27310 at_fn_diff_devnull "$at_stderr" || at_failed=:
27311 echo >>"$at_stdout"; $as_echo "/my/bin/gzip -dc /data/SOURCES/hello-2.0.tar.gz
27312 " | \
27313   $at_diff - "$at_stdout" || at_failed=:
27314 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:192"
27315 $at_failed && at_fn_log_failure
27316 $at_traceon; }
27317
27318   set +x
27319   $at_times_p && times >"$at_times_file"
27320 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27321 read at_status <"$at_status_file"
27322 #AT_STOP_374
27323 #AT_START_375
27324 at_fn_group_banner 375 'rpmmacro.at:202' \
27325   "basename macro" "                                 " 19
27326 at_xfail=no
27327 (
27328   $as_echo "375. $at_setup_line: testing $at_desc ..."
27329   $at_traceon
27330
27331
27332 { set +x
27333 $as_echo "$at_srcdir/rpmmacro.at:204:
27334 runroot rpm \\
27335     --eval \"%{basename:/data/SOURCES/hello-2.0.tar.gz}\"
27336 "
27337 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:204"
27338 ( $at_check_trace;
27339 runroot rpm \
27340     --eval "%{basename:/data/SOURCES/hello-2.0.tar.gz}"
27341
27342 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27343 at_status=$? at_failed=false
27344 $at_check_filter
27345 at_fn_diff_devnull "$at_stderr" || at_failed=:
27346 echo >>"$at_stdout"; $as_echo "hello-2.0.tar.gz
27347 " | \
27348   $at_diff - "$at_stdout" || at_failed=:
27349 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:204"
27350 $at_failed && at_fn_log_failure
27351 $at_traceon; }
27352
27353   set +x
27354   $at_times_p && times >"$at_times_file"
27355 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27356 read at_status <"$at_status_file"
27357 #AT_STOP_375
27358 #AT_START_376
27359 at_fn_group_banner 376 'rpmmacro.at:213' \
27360   "shrink macro" "                                   " 19
27361 at_xfail=no
27362 (
27363   $as_echo "376. $at_setup_line: testing $at_desc ..."
27364   $at_traceon
27365
27366
27367 { set +x
27368 $as_echo "$at_srcdir/rpmmacro.at:215:
27369 runroot rpm \\
27370     --eval \"%{shrink:  h e  l   lo  }\"
27371 "
27372 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:215"
27373 ( $at_check_trace;
27374 runroot rpm \
27375     --eval "%{shrink:  h e  l   lo  }"
27376
27377 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27378 at_status=$? at_failed=false
27379 $at_check_filter
27380 at_fn_diff_devnull "$at_stderr" || at_failed=:
27381 echo >>"$at_stdout"; $as_echo "h e l lo
27382 " | \
27383   $at_diff - "$at_stdout" || at_failed=:
27384 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:215"
27385 $at_failed && at_fn_log_failure
27386 $at_traceon; }
27387
27388   set +x
27389   $at_times_p && times >"$at_times_file"
27390 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27391 read at_status <"$at_status_file"
27392 #AT_STOP_376
27393 #AT_START_377
27394 at_fn_group_banner 377 'rpmmacro.at:224' \
27395   "suffix macro" "                                   " 19
27396 at_xfail=no
27397 (
27398   $as_echo "377. $at_setup_line: testing $at_desc ..."
27399   $at_traceon
27400
27401
27402 { set +x
27403 $as_echo "$at_srcdir/rpmmacro.at:226:
27404 runroot rpm \\
27405     --eval \"%{suffix:/data/SOURCES/hello-2.0.tar.gz}\"
27406 "
27407 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:226"
27408 ( $at_check_trace;
27409 runroot rpm \
27410     --eval "%{suffix:/data/SOURCES/hello-2.0.tar.gz}"
27411
27412 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27413 at_status=$? at_failed=false
27414 $at_check_filter
27415 at_fn_diff_devnull "$at_stderr" || at_failed=:
27416 echo >>"$at_stdout"; $as_echo "gz
27417 " | \
27418   $at_diff - "$at_stdout" || at_failed=:
27419 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:226"
27420 $at_failed && at_fn_log_failure
27421 $at_traceon; }
27422
27423   set +x
27424   $at_times_p && times >"$at_times_file"
27425 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27426 read at_status <"$at_status_file"
27427 #AT_STOP_377
27428 #AT_START_378
27429 at_fn_group_banner 378 'rpmmacro.at:235' \
27430   "url2path macro" "                                 " 19
27431 at_xfail=no
27432 (
27433   $as_echo "378. $at_setup_line: testing $at_desc ..."
27434   $at_traceon
27435
27436
27437 { set +x
27438 $as_echo "$at_srcdir/rpmmacro.at:237:
27439 runroot rpm \\
27440     --eval \"%{url2path:http://hello.org/releases/hello-2.0.tar.gz}\"
27441 "
27442 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:237"
27443 ( $at_check_trace;
27444 runroot rpm \
27445     --eval "%{url2path:http://hello.org/releases/hello-2.0.tar.gz}"
27446
27447 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27448 at_status=$? at_failed=false
27449 $at_check_filter
27450 at_fn_diff_devnull "$at_stderr" || at_failed=:
27451 echo >>"$at_stdout"; $as_echo "/releases/hello-2.0.tar.gz
27452 " | \
27453   $at_diff - "$at_stdout" || at_failed=:
27454 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:237"
27455 $at_failed && at_fn_log_failure
27456 $at_traceon; }
27457
27458   set +x
27459   $at_times_p && times >"$at_times_file"
27460 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27461 read at_status <"$at_status_file"
27462 #AT_STOP_378
27463 #AT_START_379
27464 at_fn_group_banner 379 'rpmmacro.at:246' \
27465   "shell expansion" "                                " 19
27466 at_xfail=no
27467 (
27468   $as_echo "379. $at_setup_line: testing $at_desc ..."
27469   $at_traceon
27470
27471
27472 { set +x
27473 $as_echo "$at_srcdir/rpmmacro.at:248:
27474 runroot rpm \\
27475     --eval \"%(echo foo)\"
27476 "
27477 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:248"
27478 ( $at_check_trace;
27479 runroot rpm \
27480     --eval "%(echo foo)"
27481
27482 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27483 at_status=$? at_failed=false
27484 $at_check_filter
27485 at_fn_diff_devnull "$at_stderr" || at_failed=:
27486 echo >>"$at_stdout"; $as_echo "foo
27487 " | \
27488   $at_diff - "$at_stdout" || at_failed=:
27489 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:248"
27490 $at_failed && at_fn_log_failure
27491 $at_traceon; }
27492
27493   set +x
27494   $at_times_p && times >"$at_times_file"
27495 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27496 read at_status <"$at_status_file"
27497 #AT_STOP_379
27498 #AT_START_380
27499 at_fn_group_banner 380 'rpmmacro.at:257' \
27500   "simple lua --eval" "                              " 19
27501 at_xfail=no
27502 (
27503   $as_echo "380. $at_setup_line: testing $at_desc ..."
27504   $at_traceon
27505
27506
27507 { set +x
27508 $as_echo "$at_srcdir/rpmmacro.at:259:
27509 runroot rpm --eval '%{lua:print(5*5)}'
27510 "
27511 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:259"
27512 ( $at_check_trace;
27513 runroot rpm --eval '%{lua:print(5*5)}'
27514
27515 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27516 at_status=$? at_failed=false
27517 $at_check_filter
27518 at_fn_diff_devnull "$at_stderr" || at_failed=:
27519 echo >>"$at_stdout"; $as_echo "25
27520 " | \
27521   $at_diff - "$at_stdout" || at_failed=:
27522 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:259"
27523 $at_failed && at_fn_log_failure
27524 $at_traceon; }
27525
27526   set +x
27527   $at_times_p && times >"$at_times_file"
27528 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27529 read at_status <"$at_status_file"
27530 #AT_STOP_380
27531 #AT_START_381
27532 at_fn_group_banner 381 'rpmmacro.at:267' \
27533   "lua rpm extensions" "                             " 19
27534 at_xfail=no
27535 (
27536   $as_echo "381. $at_setup_line: testing $at_desc ..."
27537   $at_traceon
27538
27539
27540 { set +x
27541 $as_echo "$at_srcdir/rpmmacro.at:269:
27542 runroot rpm --eval '%{lua: rpm.define(\"foo bar\") print(rpm.expand(\"%{foo}\"))}'
27543 "
27544 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:269"
27545 ( $at_check_trace;
27546 runroot rpm --eval '%{lua: rpm.define("foo bar") print(rpm.expand("%{foo}"))}'
27547
27548 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27549 at_status=$? at_failed=false
27550 $at_check_filter
27551 at_fn_diff_devnull "$at_stderr" || at_failed=:
27552 echo >>"$at_stdout"; $as_echo "bar
27553 " | \
27554   $at_diff - "$at_stdout" || at_failed=:
27555 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:269"
27556 $at_failed && at_fn_log_failure
27557 $at_traceon; }
27558
27559   set +x
27560   $at_times_p && times >"$at_times_file"
27561 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27562 read at_status <"$at_status_file"
27563 #AT_STOP_381
27564 #AT_START_382
27565 at_fn_group_banner 382 'rpmmacro.at:277' \
27566   "lua posix extensions" "                           " 19
27567 at_xfail=no
27568 (
27569   $as_echo "382. $at_setup_line: testing $at_desc ..."
27570   $at_traceon
27571
27572
27573 { set +x
27574 $as_echo "$at_srcdir/rpmmacro.at:279:
27575 runroot rpm \\
27576   --eval '%{lua: posix.putenv(\"LUATEST=ok\") print(posix.getenv(\"LUATEST\"))}'
27577 "
27578 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:279"
27579 ( $at_check_trace;
27580 runroot rpm \
27581   --eval '%{lua: posix.putenv("LUATEST=ok") print(posix.getenv("LUATEST"))}'
27582
27583 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27584 at_status=$? at_failed=false
27585 $at_check_filter
27586 at_fn_diff_devnull "$at_stderr" || at_failed=:
27587 echo >>"$at_stdout"; $as_echo "ok
27588 " | \
27589   $at_diff - "$at_stdout" || at_failed=:
27590 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:279"
27591 $at_failed && at_fn_log_failure
27592 $at_traceon; }
27593
27594   set +x
27595   $at_times_p && times >"$at_times_file"
27596 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27597 read at_status <"$at_status_file"
27598 #AT_STOP_382
27599 #AT_START_383
27600 at_fn_group_banner 383 'rpmmacro.at:288' \
27601   "lua script exit behavior" "                       " 19
27602 at_xfail=no
27603 (
27604   $as_echo "383. $at_setup_line: testing $at_desc ..."
27605   $at_traceon
27606
27607
27608 { set +x
27609 $as_echo "$at_srcdir/rpmmacro.at:290:
27610 runroot rpm \\
27611   --eval '%{lua: os.exit()}))}'
27612 "
27613 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:290"
27614 ( $at_check_trace;
27615 runroot rpm \
27616   --eval '%{lua: os.exit()}))}'
27617
27618 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27619 at_status=$? at_failed=false
27620 $at_check_filter
27621 echo >>"$at_stderr"; $as_echo "error: lua script failed: [string \"<lua>\"]:1: exit not permitted in this context
27622 " | \
27623   $at_diff - "$at_stderr" || at_failed=:
27624 at_fn_diff_devnull "$at_stdout" || at_failed=:
27625 at_fn_check_status 1 $at_status "$at_srcdir/rpmmacro.at:290"
27626 $at_failed && at_fn_log_failure
27627 $at_traceon; }
27628
27629   set +x
27630   $at_times_p && times >"$at_times_file"
27631 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27632 read at_status <"$at_status_file"
27633 #AT_STOP_383
27634 #AT_START_384
27635 at_fn_group_banner 384 'rpmmacro.at:300' \
27636   "%define + %undefine in nested levels 1" "         " 19
27637 at_xfail=no
27638 (
27639   $as_echo "384. $at_setup_line: testing $at_desc ..."
27640   $at_traceon
27641
27642
27643 { set +x
27644 $as_echo "$at_srcdir/rpmmacro.at:302:
27645 # basic %define in nested scoping level
27646 runroot rpm \\
27647     --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand:%undefine xxx} %{echo:%xxx}' \\
27648     --eval .'%foo'.
27649 "
27650 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:302"
27651 ( $at_check_trace;
27652 # basic %define in nested scoping level
27653 runroot rpm \
27654     --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand:%undefine xxx} %{echo:%xxx}' \
27655     --eval .'%foo'.
27656
27657 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27658 at_status=$? at_failed=false
27659 $at_check_filter
27660 at_fn_diff_devnull "$at_stderr" || at_failed=:
27661 echo >>"$at_stdout"; $as_echo "1
27662 %xxx
27663 .   .
27664 " | \
27665   $at_diff - "$at_stdout" || at_failed=:
27666 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:302"
27667 $at_failed && at_fn_log_failure
27668 $at_traceon; }
27669
27670   set +x
27671   $at_times_p && times >"$at_times_file"
27672 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27673 read at_status <"$at_status_file"
27674 #AT_STOP_384
27675 #AT_START_385
27676 at_fn_group_banner 385 'rpmmacro.at:315' \
27677   "%define + %undefine in nested levels 2" "         " 19
27678 at_xfail=no
27679 (
27680   $as_echo "385. $at_setup_line: testing $at_desc ..."
27681   $at_traceon
27682
27683
27684 { set +x
27685 $as_echo "$at_srcdir/rpmmacro.at:317:
27686 # %define macro once in a nested scope
27687 runroot rpm \\
27688     --define '%foo() %{expand:%define xxx 1} %{echo:%xxx}' \\
27689     --eval .'%foo'. \\
27690     --eval '%xxx'
27691 "
27692 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:317"
27693 ( $at_check_trace;
27694 # %define macro once in a nested scope
27695 runroot rpm \
27696     --define '%foo() %{expand:%define xxx 1} %{echo:%xxx}' \
27697     --eval .'%foo'. \
27698     --eval '%xxx'
27699
27700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27701 at_status=$? at_failed=false
27702 $at_check_filter
27703 at_fn_diff_devnull "$at_stderr" || at_failed=:
27704 echo >>"$at_stdout"; $as_echo "1
27705 . .
27706 %xxx
27707 " | \
27708   $at_diff - "$at_stdout" || at_failed=:
27709 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:317"
27710 $at_failed && at_fn_log_failure
27711 $at_traceon; }
27712
27713   set +x
27714   $at_times_p && times >"$at_times_file"
27715 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27716 read at_status <"$at_status_file"
27717 #AT_STOP_385
27718 #AT_START_386
27719 at_fn_group_banner 386 'rpmmacro.at:331' \
27720   "%define + %undefine in nested levels 3" "         " 19
27721 at_xfail=no
27722       test $RPM_XFAIL -ne 0 && at_xfail=yes
27723 (
27724   $as_echo "386. $at_setup_line: testing $at_desc ..."
27725   $at_traceon
27726
27727
27728 { set +x
27729 $as_echo "$at_srcdir/rpmmacro.at:333:
27730
27731 # %define macro twice in a nested scope
27732 runroot rpm \\
27733     --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand: %define xxx 2} %{echo:%xxx}' \\
27734     --eval .'%foo'. \\
27735     --eval '%xxx'
27736 "
27737 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:333"
27738 ( $at_check_trace;
27739
27740 # %define macro twice in a nested scope
27741 runroot rpm \
27742     --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand: %define xxx 2} %{echo:%xxx}' \
27743     --eval .'%foo'. \
27744     --eval '%xxx'
27745
27746 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27747 at_status=$? at_failed=false
27748 $at_check_filter
27749 at_fn_diff_devnull "$at_stderr" || at_failed=:
27750 echo >>"$at_stdout"; $as_echo "1
27751 2
27752 .    .
27753 %xxx
27754 " | \
27755   $at_diff - "$at_stdout" || at_failed=:
27756 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:333"
27757 $at_failed && at_fn_log_failure
27758 $at_traceon; }
27759
27760   set +x
27761   $at_times_p && times >"$at_times_file"
27762 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27763 read at_status <"$at_status_file"
27764 #AT_STOP_386
27765 #AT_START_387
27766 at_fn_group_banner 387 'rpmmacro.at:349' \
27767   "%define + %undefine in nested levels 4" "         " 19
27768 at_xfail=no
27769       test $RPM_XFAIL -ne 0 && at_xfail=yes
27770 (
27771   $as_echo "387. $at_setup_line: testing $at_desc ..."
27772   $at_traceon
27773
27774
27775 { set +x
27776 $as_echo "$at_srcdir/rpmmacro.at:351:
27777
27778 # %define in a nested level covered by %global
27779 runroot rpm \\
27780     --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand: %global xxx 2} %{echo:%xxx}' \\
27781     --eval .'%foo'. \\
27782     --eval '%xxx' \\
27783     --eval .'%undefine xxx'. \\
27784     --eval '%xxx'
27785 "
27786 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:351"
27787 ( $at_check_trace;
27788
27789 # %define in a nested level covered by %global
27790 runroot rpm \
27791     --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand: %global xxx 2} %{echo:%xxx}' \
27792     --eval .'%foo'. \
27793     --eval '%xxx' \
27794     --eval .'%undefine xxx'. \
27795     --eval '%xxx'
27796
27797 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27798 at_status=$? at_failed=false
27799 $at_check_filter
27800 at_fn_diff_devnull "$at_stderr" || at_failed=:
27801 echo >>"$at_stdout"; $as_echo "1
27802 2
27803 .    .
27804 2
27805 ..
27806 %xxx
27807 " | \
27808   $at_diff - "$at_stdout" || at_failed=:
27809 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:351"
27810 $at_failed && at_fn_log_failure
27811 $at_traceon; }
27812
27813   set +x
27814   $at_times_p && times >"$at_times_file"
27815 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27816 read at_status <"$at_status_file"
27817 #AT_STOP_387
27818 #AT_START_388
27819 at_fn_group_banner 388 'rpmmacro.at:371' \
27820   "%define in conditional macro" "                   " 19
27821 at_xfail=no
27822 (
27823   $as_echo "388. $at_setup_line: testing $at_desc ..."
27824   $at_traceon
27825
27826
27827 { set +x
27828 $as_echo "$at_srcdir/rpmmacro.at:373:
27829 runroot rpm \\
27830     --define 'dofoo() true'\\
27831     --eval '.%{!?foo: %define foo bar}.'\\
27832     --eval '%foo' \\
27833     --eval '%dofoo'\\
27834     --eval '%foo'
27835 "
27836 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:373"
27837 ( $at_check_trace;
27838 runroot rpm \
27839     --define 'dofoo() true'\
27840     --eval '.%{!?foo: %define foo bar}.'\
27841     --eval '%foo' \
27842     --eval '%dofoo'\
27843     --eval '%foo'
27844
27845 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27846 at_status=$? at_failed=false
27847 $at_check_filter
27848 at_fn_diff_devnull "$at_stderr" || at_failed=:
27849 echo >>"$at_stdout"; $as_echo ". .
27850 bar
27851 true
27852 bar
27853 " | \
27854   $at_diff - "$at_stdout" || at_failed=:
27855 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:373"
27856 $at_failed && at_fn_log_failure
27857 $at_traceon; }
27858
27859   set +x
27860   $at_times_p && times >"$at_times_file"
27861 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27862 read at_status <"$at_status_file"
27863 #AT_STOP_388
27864 #AT_START_389
27865 at_fn_group_banner 389 'rpmmacro.at:389' \
27866   "%verbose negative test" "                         " 19
27867 at_xfail=no
27868 (
27869   $as_echo "389. $at_setup_line: testing $at_desc ..."
27870   $at_traceon
27871
27872
27873 { set +x
27874 $as_echo "$at_srcdir/rpmmacro.at:391:
27875 runroot rpm \\
27876   --eval '%{verbose:%{echo:is verbose}}' \\
27877   --eval '%{verbose:is verbose text}'\\
27878   --eval '%{!verbose:%{echo:is not verbose}}'\\
27879   --eval '%{!verbose:is not verbose text}'
27880 "
27881 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:391"
27882 ( $at_check_trace;
27883 runroot rpm \
27884   --eval '%{verbose:%{echo:is verbose}}' \
27885   --eval '%{verbose:is verbose text}'\
27886   --eval '%{!verbose:%{echo:is not verbose}}'\
27887   --eval '%{!verbose:is not verbose text}'
27888
27889 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27890 at_status=$? at_failed=false
27891 $at_check_filter
27892 at_fn_diff_devnull "$at_stderr" || at_failed=:
27893 echo >>"$at_stdout"; $as_echo "
27894
27895 is not verbose
27896
27897 is not verbose text
27898 " | \
27899   $at_diff - "$at_stdout" || at_failed=:
27900 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:391"
27901 $at_failed && at_fn_log_failure
27902 $at_traceon; }
27903
27904   set +x
27905   $at_times_p && times >"$at_times_file"
27906 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27907 read at_status <"$at_status_file"
27908 #AT_STOP_389
27909 #AT_START_390
27910 at_fn_group_banner 390 'rpmmacro.at:407' \
27911   "%verbose positive test" "                         " 19
27912 at_xfail=no
27913 (
27914   $as_echo "390. $at_setup_line: testing $at_desc ..."
27915   $at_traceon
27916
27917
27918 { set +x
27919 $as_echo "$at_srcdir/rpmmacro.at:409:
27920 runroot rpm -v \\
27921   --eval '%{!verbose:%{echo:is not verbose}}' \\
27922   --eval '%{!verbose:is not verbose text}'\\
27923   --eval '%{verbose:%{echo:is verbose}}'\\
27924   --eval '%{verbose:is verbose text}'
27925 "
27926 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:409"
27927 ( $at_check_trace;
27928 runroot rpm -v \
27929   --eval '%{!verbose:%{echo:is not verbose}}' \
27930   --eval '%{!verbose:is not verbose text}'\
27931   --eval '%{verbose:%{echo:is verbose}}'\
27932   --eval '%{verbose:is verbose text}'
27933
27934 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27935 at_status=$? at_failed=false
27936 $at_check_filter
27937 at_fn_diff_devnull "$at_stderr" || at_failed=:
27938 echo >>"$at_stdout"; $as_echo "
27939
27940 is verbose
27941
27942 is verbose text
27943 " | \
27944   $at_diff - "$at_stdout" || at_failed=:
27945 at_fn_check_status 0 $at_status "$at_srcdir/rpmmacro.at:409"
27946 $at_failed && at_fn_log_failure
27947 $at_traceon; }
27948
27949   set +x
27950   $at_times_p && times >"$at_times_file"
27951 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
27952 read at_status <"$at_status_file"
27953 #AT_STOP_390
27954 #AT_START_391
27955 at_fn_group_banner 391 'rpmpython.at:6' \
27956   "module import" "                                  " 20
27957 at_xfail=no
27958 (
27959   $as_echo "391. $at_setup_line: testing $at_desc ..."
27960   $at_traceon
27961
27962
27963
27964 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
27965
27966
27967 runroot rpm --initdb
27968
27969
27970 { set +x
27971 $as_echo "$at_srcdir/rpmpython.at:6:
27972 cat << EOF > test.py
27973 import rpm, sys
27974 dbpath=rpm.expandMacro('%_dbpath')
27975 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
27976 def myprint(msg = ''):
27977     sys.stdout.write('%s\\n' % msg)
27978
27979 myprint(rpm.__version__)
27980
27981 EOF
27982 python test.py
27983 "
27984 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:6"
27985 ( $at_check_trace;
27986 cat << EOF > test.py
27987 import rpm, sys
27988 dbpath=rpm.expandMacro('%_dbpath')
27989 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
27990 def myprint(msg = ''):
27991     sys.stdout.write('%s\n' % msg)
27992
27993 myprint(rpm.__version__)
27994
27995 EOF
27996 python test.py
27997
27998 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27999 at_status=$? at_failed=false
28000 $at_check_filter
28001 at_fn_diff_devnull "$at_stderr" || at_failed=:
28002 echo >>"$at_stdout"; $as_echo "4.14.1
28003 " | \
28004   $at_diff - "$at_stdout" || at_failed=:
28005 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:6"
28006 $at_failed && at_fn_log_failure
28007 $at_traceon; }
28008
28009
28010   set +x
28011   $at_times_p && times >"$at_times_file"
28012 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28013 read at_status <"$at_status_file"
28014 #AT_STOP_391
28015 #AT_START_392
28016 at_fn_group_banner 392 'rpmpython.at:12' \
28017   "macro manipulation" "                             " 20
28018 at_xfail=no
28019 (
28020   $as_echo "392. $at_setup_line: testing $at_desc ..."
28021   $at_traceon
28022
28023
28024
28025 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28026
28027
28028 runroot rpm --initdb
28029
28030
28031 { set +x
28032 $as_echo "$at_srcdir/rpmpython.at:12:
28033 cat << EOF > test.py
28034 import rpm, sys
28035 dbpath=rpm.expandMacro('%_dbpath')
28036 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28037 def myprint(msg = ''):
28038     sys.stdout.write('%s\\n' % msg)
28039
28040 def prexp(m):
28041     myprint(rpm.expandMacro('%%{?%s}' % m))
28042
28043 mname = '__no_such_macro_yet'
28044 prexp(mname)
28045 rpm.addMacro(mname, '/bin/sh')
28046 prexp(mname)
28047 rpm.addMacro(mname, '/bin/false')
28048 prexp(mname)
28049 rpm.delMacro(mname)
28050 prexp(mname)
28051 rpm.delMacro(mname)
28052 prexp(mname)
28053
28054 EOF
28055 python test.py
28056 "
28057 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:12"
28058 ( $at_check_trace;
28059 cat << EOF > test.py
28060 import rpm, sys
28061 dbpath=rpm.expandMacro('%_dbpath')
28062 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28063 def myprint(msg = ''):
28064     sys.stdout.write('%s\n' % msg)
28065
28066 def prexp(m):
28067     myprint(rpm.expandMacro('%%{?%s}' % m))
28068
28069 mname = '__no_such_macro_yet'
28070 prexp(mname)
28071 rpm.addMacro(mname, '/bin/sh')
28072 prexp(mname)
28073 rpm.addMacro(mname, '/bin/false')
28074 prexp(mname)
28075 rpm.delMacro(mname)
28076 prexp(mname)
28077 rpm.delMacro(mname)
28078 prexp(mname)
28079
28080 EOF
28081 python test.py
28082
28083 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28084 at_status=$? at_failed=false
28085 $at_check_filter
28086 at_fn_diff_devnull "$at_stderr" || at_failed=:
28087 echo >>"$at_stdout"; $as_echo "
28088 /bin/sh
28089 /bin/false
28090 /bin/sh
28091
28092 " | \
28093   $at_diff - "$at_stdout" || at_failed=:
28094 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:12"
28095 $at_failed && at_fn_log_failure
28096 $at_traceon; }
28097
28098
28099   set +x
28100   $at_times_p && times >"$at_times_file"
28101 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28102 read at_status <"$at_status_file"
28103 #AT_STOP_392
28104 #AT_START_393
28105 at_fn_group_banner 393 'rpmpython.at:35' \
28106   "basic rpmio" "                                    " 20
28107 at_xfail=no
28108 (
28109   $as_echo "393. $at_setup_line: testing $at_desc ..."
28110   $at_traceon
28111
28112
28113
28114 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28115
28116
28117 runroot rpm --initdb
28118
28119
28120 { set +x
28121 $as_echo "$at_srcdir/rpmpython.at:35:
28122 cat << EOF > test.py
28123 import rpm, sys
28124 dbpath=rpm.expandMacro('%_dbpath')
28125 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28126 def myprint(msg = ''):
28127     sys.stdout.write('%s\\n' % msg)
28128
28129 msg = 'Killroy was here\\n'
28130 data = msg * 10
28131 # TODO: test other compression types too if built in
28132 for iot in [ 'fpio', 'fdio', 'ufdio', 'gzdio' ]:
28133     fn = 'pyio.%s' % iot
28134     fd = rpm.fd(fn, 'w', iot)
28135     pos = fd.tell()
28136     if pos != -2 and pos != 0:
28137         myprint('bad start pos %d' % fd.tell())
28138     if fd.write(data) != len(data):
28139         myprint('%s write fail' % iot)
28140     if fn != fd.name:
28141         myprint('bad file name %s' % fd.name)
28142     fd.flush()
28143     pos = fd.tell()
28144     if pos != -2 and pos != len(data):
28145         myprint('bad end pos %d' % fd.tell())
28146     fd = rpm.fd(fn, 'r', iot)
28147     rdata = fd.read()
28148     if rdata != data:
28149         myprint('%s read fail (got %d bytes)\\n%s' % (iot, len(rdata), rdata))
28150     # compressed io types can't seek
28151     if iot == 'ufdio':
28152         fd.seek(0)
28153     else:
28154         fd = rpm.fd(fn, 'r', iot)
28155     if fn != fd.name:
28156         myprint('bad file name %s' % fd.name)
28157     rdata = fd.read(len(msg))
28158     if rdata != msg:
28159         myprint('%s sized read fail (got %d bytes)\\n%s' % (iot, len(rdata), rdata))
28160
28161 EOF
28162 python test.py
28163 "
28164 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:35"
28165 ( $at_check_trace;
28166 cat << EOF > test.py
28167 import rpm, sys
28168 dbpath=rpm.expandMacro('%_dbpath')
28169 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28170 def myprint(msg = ''):
28171     sys.stdout.write('%s\n' % msg)
28172
28173 msg = 'Killroy was here\n'
28174 data = msg * 10
28175 # TODO: test other compression types too if built in
28176 for iot in [ 'fpio', 'fdio', 'ufdio', 'gzdio' ]:
28177     fn = 'pyio.%s' % iot
28178     fd = rpm.fd(fn, 'w', iot)
28179     pos = fd.tell()
28180     if pos != -2 and pos != 0:
28181         myprint('bad start pos %d' % fd.tell())
28182     if fd.write(data) != len(data):
28183         myprint('%s write fail' % iot)
28184     if fn != fd.name:
28185         myprint('bad file name %s' % fd.name)
28186     fd.flush()
28187     pos = fd.tell()
28188     if pos != -2 and pos != len(data):
28189         myprint('bad end pos %d' % fd.tell())
28190     fd = rpm.fd(fn, 'r', iot)
28191     rdata = fd.read()
28192     if rdata != data:
28193         myprint('%s read fail (got %d bytes)\n%s' % (iot, len(rdata), rdata))
28194     # compressed io types can't seek
28195     if iot == 'ufdio':
28196         fd.seek(0)
28197     else:
28198         fd = rpm.fd(fn, 'r', iot)
28199     if fn != fd.name:
28200         myprint('bad file name %s' % fd.name)
28201     rdata = fd.read(len(msg))
28202     if rdata != msg:
28203         myprint('%s sized read fail (got %d bytes)\n%s' % (iot, len(rdata), rdata))
28204
28205 EOF
28206 python test.py
28207
28208 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28209 at_status=$? at_failed=false
28210 $at_check_filter
28211 at_fn_diff_devnull "$at_stderr" || at_failed=:
28212 at_fn_diff_devnull "$at_stdout" || at_failed=:
28213 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:35"
28214 $at_failed && at_fn_log_failure
28215 $at_traceon; }
28216
28217
28218   set +x
28219   $at_times_p && times >"$at_times_file"
28220 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28221 read at_status <"$at_status_file"
28222 #AT_STOP_393
28223 #AT_START_394
28224 at_fn_group_banner 394 'rpmpython.at:70' \
28225   "spec parse" "                                     " 20
28226 at_xfail=no
28227 (
28228   $as_echo "394. $at_setup_line: testing $at_desc ..."
28229   $at_traceon
28230
28231
28232
28233 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28234
28235
28236 runroot rpm --initdb
28237
28238
28239 { set +x
28240 $as_echo "$at_srcdir/rpmpython.at:70:
28241 cat << EOF > test.py
28242 import rpm, sys
28243 dbpath=rpm.expandMacro('%_dbpath')
28244 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28245 def myprint(msg = ''):
28246     sys.stdout.write('%s\\n' % msg)
28247
28248 # TODO: add a better test spec with sub-packages etc
28249 spec = rpm.spec('\${RPMDATA}/SPECS/hello.spec')
28250 for (name, num, flags) in spec.sources:
28251     myprint('src %s %d %d' % (name, num, flags))
28252 for pkg in spec.packages:
28253     myprint(pkg.header.format('%{nvr}'))
28254 myprint(spec.sourceHeader.format('%{nvr}'))
28255
28256 EOF
28257 python test.py
28258 "
28259 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:70"
28260 ( $at_check_trace;
28261 cat << EOF > test.py
28262 import rpm, sys
28263 dbpath=rpm.expandMacro('%_dbpath')
28264 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28265 def myprint(msg = ''):
28266     sys.stdout.write('%s\n' % msg)
28267
28268 # TODO: add a better test spec with sub-packages etc
28269 spec = rpm.spec('${RPMDATA}/SPECS/hello.spec')
28270 for (name, num, flags) in spec.sources:
28271     myprint('src %s %d %d' % (name, num, flags))
28272 for pkg in spec.packages:
28273     myprint(pkg.header.format('%{nvr}'))
28274 myprint(spec.sourceHeader.format('%{nvr}'))
28275
28276 EOF
28277 python test.py
28278
28279 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28280 at_status=$? at_failed=false
28281 $at_check_filter
28282 at_fn_diff_devnull "$at_stderr" || at_failed=:
28283 echo >>"$at_stdout"; $as_echo "src hello-1.0-modernize.patch 0 2
28284 src hello-1.0.tar.gz 0 1
28285 hello-1.0-1
28286 hello-1.0-1
28287 " | \
28288   $at_diff - "$at_stdout" || at_failed=:
28289 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:70"
28290 $at_failed && at_fn_log_failure
28291 $at_traceon; }
28292
28293
28294   set +x
28295   $at_times_p && times >"$at_times_file"
28296 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28297 read at_status <"$at_status_file"
28298 #AT_STOP_394
28299 #AT_START_395
28300 at_fn_group_banner 395 'rpmpython.at:85' \
28301   "basic header manipulation" "                      " 20
28302 at_xfail=no
28303 (
28304   $as_echo "395. $at_setup_line: testing $at_desc ..."
28305   $at_traceon
28306
28307
28308
28309 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28310
28311
28312 runroot rpm --initdb
28313
28314
28315 { set +x
28316 $as_echo "$at_srcdir/rpmpython.at:85:
28317 cat << EOF > test.py
28318 import rpm, sys
28319 dbpath=rpm.expandMacro('%_dbpath')
28320 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28321 def myprint(msg = ''):
28322     sys.stdout.write('%s\\n' % msg)
28323
28324 h = rpm.hdr()
28325 h['name'] = 'testpkg'
28326 h['version'] = '1.0'
28327 h['release'] = '1'
28328 h['epoch'] = 5
28329 h['arch'] = 'noarch'
28330 myprint(h['nevra'])
28331 del h['epoch']
28332 myprint(h['nevra'])
28333 for a in ['name', 'bugurl', '__class__', '__foo__', ]:
28334     try:
28335         x = getattr(h, a)
28336         myprint(x)
28337     except AttributeError, exc:
28338         myprint(exc)
28339
28340 EOF
28341 python test.py
28342 "
28343 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:85"
28344 ( $at_check_trace;
28345 cat << EOF > test.py
28346 import rpm, sys
28347 dbpath=rpm.expandMacro('%_dbpath')
28348 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28349 def myprint(msg = ''):
28350     sys.stdout.write('%s\n' % msg)
28351
28352 h = rpm.hdr()
28353 h['name'] = 'testpkg'
28354 h['version'] = '1.0'
28355 h['release'] = '1'
28356 h['epoch'] = 5
28357 h['arch'] = 'noarch'
28358 myprint(h['nevra'])
28359 del h['epoch']
28360 myprint(h['nevra'])
28361 for a in ['name', 'bugurl', '__class__', '__foo__', ]:
28362     try:
28363         x = getattr(h, a)
28364         myprint(x)
28365     except AttributeError, exc:
28366         myprint(exc)
28367
28368 EOF
28369 python test.py
28370
28371 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28372 at_status=$? at_failed=false
28373 $at_check_filter
28374 at_fn_diff_devnull "$at_stderr" || at_failed=:
28375 echo >>"$at_stdout"; $as_echo "testpkg-5:1.0-1.noarch
28376 testpkg-1.0-1.noarch
28377 testpkg
28378 None
28379 <type 'rpm.hdr'>
28380 'rpm.hdr' object has no attribute '__foo__'
28381 " | \
28382   $at_diff - "$at_stdout" || at_failed=:
28383 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:85"
28384 $at_failed && at_fn_log_failure
28385 $at_traceon; }
28386
28387
28388   set +x
28389   $at_times_p && times >"$at_times_file"
28390 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28391 read at_status <"$at_status_file"
28392 #AT_STOP_395
28393 #AT_START_396
28394 at_fn_group_banner 396 'rpmpython.at:110' \
28395   "invalid header data" "                            " 20
28396 at_xfail=no
28397 (
28398   $as_echo "396. $at_setup_line: testing $at_desc ..."
28399   $at_traceon
28400
28401
28402
28403 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28404
28405
28406 runroot rpm --initdb
28407
28408
28409 { set +x
28410 $as_echo "$at_srcdir/rpmpython.at:110:
28411 cat << EOF > test.py
28412 import rpm, sys
28413 dbpath=rpm.expandMacro('%_dbpath')
28414 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28415 def myprint(msg = ''):
28416     sys.stdout.write('%s\\n' % msg)
28417
28418 h1 = rpm.hdr()
28419 h1['basenames'] = ['bing', 'bang', 'bong']
28420 h1['dirnames'] = ['/opt/', '/flopt/']
28421 h1['dirindexes'] = [ 1, 0, 3 ]
28422 h2 = rpm.hdr()
28423 h2['basenames'] = ['bing', 'bang', 'bong']
28424 h2['dirnames'] = ['/opt/', '/flopt/']
28425 h2['dirindexes'] = [ 0, 0, 1 ]
28426 for h in [h1, h2]:
28427     try:
28428         myprint(','.join(h['filenames']))
28429     except rpm.error, exc:
28430         myprint(exc)
28431
28432 EOF
28433 python test.py
28434 "
28435 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:110"
28436 ( $at_check_trace;
28437 cat << EOF > test.py
28438 import rpm, sys
28439 dbpath=rpm.expandMacro('%_dbpath')
28440 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28441 def myprint(msg = ''):
28442     sys.stdout.write('%s\n' % msg)
28443
28444 h1 = rpm.hdr()
28445 h1['basenames'] = ['bing', 'bang', 'bong']
28446 h1['dirnames'] = ['/opt/', '/flopt/']
28447 h1['dirindexes'] = [ 1, 0, 3 ]
28448 h2 = rpm.hdr()
28449 h2['basenames'] = ['bing', 'bang', 'bong']
28450 h2['dirnames'] = ['/opt/', '/flopt/']
28451 h2['dirindexes'] = [ 0, 0, 1 ]
28452 for h in [h1, h2]:
28453     try:
28454         myprint(','.join(h['filenames']))
28455     except rpm.error, exc:
28456         myprint(exc)
28457
28458 EOF
28459 python test.py
28460
28461 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28462 at_status=$? at_failed=false
28463 $at_check_filter
28464 at_fn_diff_devnull "$at_stderr" || at_failed=:
28465 echo >>"$at_stdout"; $as_echo "invalid header data
28466 /opt/bing,/opt/bang,/flopt/bong
28467 " | \
28468   $at_diff - "$at_stdout" || at_failed=:
28469 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:110"
28470 $at_failed && at_fn_log_failure
28471 $at_traceon; }
28472
28473
28474   set +x
28475   $at_times_p && times >"$at_times_file"
28476 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28477 read at_status <"$at_status_file"
28478 #AT_STOP_396
28479 #AT_START_397
28480 at_fn_group_banner 397 'rpmpython.at:129' \
28481   "reading a package file" "                         " 20
28482 at_xfail=no
28483 (
28484   $as_echo "397. $at_setup_line: testing $at_desc ..."
28485   $at_traceon
28486
28487
28488
28489 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28490
28491
28492 runroot rpm --initdb
28493
28494
28495 { set +x
28496 $as_echo "$at_srcdir/rpmpython.at:129:
28497 cat << EOF > test.py
28498 import rpm, sys
28499 dbpath=rpm.expandMacro('%_dbpath')
28500 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28501 def myprint(msg = ''):
28502     sys.stdout.write('%s\\n' % msg)
28503
28504 ts = rpm.ts()
28505 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-1.0-1.ppc64.rpm')
28506 myprint(h['arch'])
28507
28508 EOF
28509 python test.py
28510 "
28511 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:129"
28512 ( $at_check_trace;
28513 cat << EOF > test.py
28514 import rpm, sys
28515 dbpath=rpm.expandMacro('%_dbpath')
28516 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28517 def myprint(msg = ''):
28518     sys.stdout.write('%s\n' % msg)
28519
28520 ts = rpm.ts()
28521 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-1.0-1.ppc64.rpm')
28522 myprint(h['arch'])
28523
28524 EOF
28525 python test.py
28526
28527 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28528 at_status=$? at_failed=false
28529 $at_check_filter
28530 at_fn_diff_devnull "$at_stderr" || at_failed=:
28531 echo >>"$at_stdout"; $as_echo "ppc64
28532 " | \
28533   $at_diff - "$at_stdout" || at_failed=:
28534 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:129"
28535 $at_failed && at_fn_log_failure
28536 $at_traceon; }
28537
28538
28539   set +x
28540   $at_times_p && times >"$at_times_file"
28541 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28542 read at_status <"$at_status_file"
28543 #AT_STOP_397
28544 #AT_START_398
28545 at_fn_group_banner 398 'rpmpython.at:137' \
28546   "reading a signed package file 1" "                " 20
28547 at_xfail=no
28548 (
28549   $as_echo "398. $at_setup_line: testing $at_desc ..."
28550   $at_traceon
28551
28552
28553
28554 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28555
28556
28557 runroot rpm --initdb
28558
28559
28560 { set +x
28561 $as_echo "$at_srcdir/rpmpython.at:137:
28562 cat << EOF > test.py
28563 import rpm, sys
28564 dbpath=rpm.expandMacro('%_dbpath')
28565 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28566 def myprint(msg = ''):
28567     sys.stdout.write('%s\\n' % msg)
28568
28569 ts = rpm.ts()
28570 # avoid rpmlog spew with absolute path to package
28571 sink = open('/dev/null', 'w')
28572 rpm.setLogFile(sink)
28573 try:
28574     h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-2.0-1.x86_64-signed.rpm')
28575     myprint(h['arch'])
28576 except rpm.error, e:
28577     myprint(e)
28578
28579 EOF
28580 python test.py
28581 "
28582 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:137"
28583 ( $at_check_trace;
28584 cat << EOF > test.py
28585 import rpm, sys
28586 dbpath=rpm.expandMacro('%_dbpath')
28587 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28588 def myprint(msg = ''):
28589     sys.stdout.write('%s\n' % msg)
28590
28591 ts = rpm.ts()
28592 # avoid rpmlog spew with absolute path to package
28593 sink = open('/dev/null', 'w')
28594 rpm.setLogFile(sink)
28595 try:
28596     h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-2.0-1.x86_64-signed.rpm')
28597     myprint(h['arch'])
28598 except rpm.error, e:
28599     myprint(e)
28600
28601 EOF
28602 python test.py
28603
28604 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28605 at_status=$? at_failed=false
28606 $at_check_filter
28607 at_fn_diff_devnull "$at_stderr" || at_failed=:
28608 echo >>"$at_stdout"; $as_echo "public key not available
28609 " | \
28610   $at_diff - "$at_stdout" || at_failed=:
28611 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:137"
28612 $at_failed && at_fn_log_failure
28613 $at_traceon; }
28614
28615
28616   set +x
28617   $at_times_p && times >"$at_times_file"
28618 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28619 read at_status <"$at_status_file"
28620 #AT_STOP_398
28621 #AT_START_399
28622 at_fn_group_banner 399 'rpmpython.at:152' \
28623   "reading a signed package file 2" "                " 20
28624 at_xfail=no
28625 (
28626   $as_echo "399. $at_setup_line: testing $at_desc ..."
28627   $at_traceon
28628
28629
28630
28631 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28632
28633
28634 runroot rpm --initdb
28635
28636
28637 { set +x
28638 $as_echo "$at_srcdir/rpmpython.at:152:
28639 cat << EOF > test.py
28640 import rpm, sys
28641 dbpath=rpm.expandMacro('%_dbpath')
28642 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28643 def myprint(msg = ''):
28644     sys.stdout.write('%s\\n' % msg)
28645
28646
28647 keydata = open('\${RPMDATA}/keys/rpm.org-rsa-2048-test.pub').read()
28648 pubkey = rpm.pubkey(keydata)
28649 keyring = rpm.keyring()
28650 keyring.addKey(pubkey)
28651
28652 ts = rpm.ts()
28653 ts.setKeyring(keyring)
28654 try:
28655     h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-2.0-1.x86_64-signed.rpm')
28656     myprint(h['arch'])
28657 except rpm.error, e:
28658     myprint(e)
28659
28660 EOF
28661 python test.py
28662 "
28663 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:152"
28664 ( $at_check_trace;
28665 cat << EOF > test.py
28666 import rpm, sys
28667 dbpath=rpm.expandMacro('%_dbpath')
28668 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28669 def myprint(msg = ''):
28670     sys.stdout.write('%s\n' % msg)
28671
28672
28673 keydata = open('${RPMDATA}/keys/rpm.org-rsa-2048-test.pub').read()
28674 pubkey = rpm.pubkey(keydata)
28675 keyring = rpm.keyring()
28676 keyring.addKey(pubkey)
28677
28678 ts = rpm.ts()
28679 ts.setKeyring(keyring)
28680 try:
28681     h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-2.0-1.x86_64-signed.rpm')
28682     myprint(h['arch'])
28683 except rpm.error, e:
28684     myprint(e)
28685
28686 EOF
28687 python test.py
28688
28689 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28690 at_status=$? at_failed=false
28691 $at_check_filter
28692 at_fn_diff_devnull "$at_stderr" || at_failed=:
28693 echo >>"$at_stdout"; $as_echo "x86_64
28694 " | \
28695   $at_diff - "$at_stdout" || at_failed=:
28696 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:152"
28697 $at_failed && at_fn_log_failure
28698 $at_traceon; }
28699
28700
28701   set +x
28702   $at_times_p && times >"$at_times_file"
28703 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28704 read at_status <"$at_status_file"
28705 #AT_STOP_399
28706 #AT_START_400
28707 at_fn_group_banner 400 'rpmpython.at:170' \
28708   "add package to transaction" "                     " 20
28709 at_xfail=no
28710 (
28711   $as_echo "400. $at_setup_line: testing $at_desc ..."
28712   $at_traceon
28713
28714
28715
28716 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28717
28718
28719 runroot rpm --initdb
28720
28721
28722 { set +x
28723 $as_echo "$at_srcdir/rpmpython.at:170:
28724 cat << EOF > test.py
28725 import rpm, sys
28726 dbpath=rpm.expandMacro('%_dbpath')
28727 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28728 def myprint(msg = ''):
28729     sys.stdout.write('%s\\n' % msg)
28730
28731 ts = rpm.ts()
28732 ts.addInstall('\${RPMDATA}/RPMS/foo-1.0-1.noarch.rpm', 'u')
28733 for e in ts:
28734     myprint(e.NEVRA())
28735 ts.clear()
28736 for e in ts:
28737     myprint(e.NEVRA())
28738
28739 EOF
28740 python test.py
28741 "
28742 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:170"
28743 ( $at_check_trace;
28744 cat << EOF > test.py
28745 import rpm, sys
28746 dbpath=rpm.expandMacro('%_dbpath')
28747 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28748 def myprint(msg = ''):
28749     sys.stdout.write('%s\n' % msg)
28750
28751 ts = rpm.ts()
28752 ts.addInstall('${RPMDATA}/RPMS/foo-1.0-1.noarch.rpm', 'u')
28753 for e in ts:
28754     myprint(e.NEVRA())
28755 ts.clear()
28756 for e in ts:
28757     myprint(e.NEVRA())
28758
28759 EOF
28760 python test.py
28761
28762 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28763 at_status=$? at_failed=false
28764 $at_check_filter
28765 at_fn_diff_devnull "$at_stderr" || at_failed=:
28766 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
28767 " | \
28768   $at_diff - "$at_stdout" || at_failed=:
28769 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:170"
28770 $at_failed && at_fn_log_failure
28771 $at_traceon; }
28772
28773
28774   set +x
28775   $at_times_p && times >"$at_times_file"
28776 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28777 read at_status <"$at_status_file"
28778 #AT_STOP_400
28779 #AT_START_401
28780 at_fn_group_banner 401 'rpmpython.at:182' \
28781   "add bogus package to transaction 1" "             " 20
28782 at_xfail=no
28783 (
28784   $as_echo "401. $at_setup_line: testing $at_desc ..."
28785   $at_traceon
28786
28787
28788
28789 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28790
28791
28792 runroot rpm --initdb
28793
28794
28795 { set +x
28796 $as_echo "$at_srcdir/rpmpython.at:182:
28797 cat << EOF > test.py
28798 import rpm, sys
28799 dbpath=rpm.expandMacro('%_dbpath')
28800 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28801 def myprint(msg = ''):
28802     sys.stdout.write('%s\\n' % msg)
28803
28804 ts = rpm.ts()
28805 h = rpm.hdr()
28806 h['name'] = \"foo\"
28807 try:
28808     ts.addInstall(h, 'foo', 'u')
28809 except rpm.error, err:
28810     myprint(err)
28811 for e in ts:
28812     myprint(e.NEVRA())
28813
28814 EOF
28815 python test.py
28816 "
28817 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:182"
28818 ( $at_check_trace;
28819 cat << EOF > test.py
28820 import rpm, sys
28821 dbpath=rpm.expandMacro('%_dbpath')
28822 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28823 def myprint(msg = ''):
28824     sys.stdout.write('%s\n' % msg)
28825
28826 ts = rpm.ts()
28827 h = rpm.hdr()
28828 h['name'] = "foo"
28829 try:
28830     ts.addInstall(h, 'foo', 'u')
28831 except rpm.error, err:
28832     myprint(err)
28833 for e in ts:
28834     myprint(e.NEVRA())
28835
28836 EOF
28837 python test.py
28838
28839 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28840 at_status=$? at_failed=false
28841 $at_check_filter
28842 at_fn_diff_devnull "$at_stderr" || at_failed=:
28843 echo >>"$at_stdout"; $as_echo "adding package to transaction failed
28844 " | \
28845   $at_diff - "$at_stdout" || at_failed=:
28846 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:182"
28847 $at_failed && at_fn_log_failure
28848 $at_traceon; }
28849
28850
28851   set +x
28852   $at_times_p && times >"$at_times_file"
28853 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28854 read at_status <"$at_status_file"
28855 #AT_STOP_401
28856 #AT_START_402
28857 at_fn_group_banner 402 'rpmpython.at:196' \
28858   "add bogus package to transaction 2" "             " 20
28859 at_xfail=no
28860 (
28861   $as_echo "402. $at_setup_line: testing $at_desc ..."
28862   $at_traceon
28863
28864
28865
28866 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28867
28868
28869 runroot rpm --initdb
28870
28871
28872 { set +x
28873 $as_echo "$at_srcdir/rpmpython.at:196:
28874 cat << EOF > test.py
28875 import rpm, sys
28876 dbpath=rpm.expandMacro('%_dbpath')
28877 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28878 def myprint(msg = ''):
28879     sys.stdout.write('%s\\n' % msg)
28880
28881 ts = rpm.ts()
28882 h = rpm.hdr()
28883 h['name'] = 'foo'
28884 h['version'] = '1.0'
28885 h['release'] = '1'
28886 h['os'] = 'linux'
28887 h['arch'] = 'noarch'
28888 h['basenames'] = ['bing', 'bang', 'bong']
28889 h['dirnames'] = ['/opt' '/flopt']
28890 h['dirindexes'] = [ 1, 2, 3 ]
28891 try:
28892     ts.addInstall(h, 'foo', 'u')
28893 except rpm.error, err:
28894     myprint(err)
28895 for e in ts:
28896     myprint(e.NEVRA())
28897
28898 EOF
28899 python test.py
28900 "
28901 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:196"
28902 ( $at_check_trace;
28903 cat << EOF > test.py
28904 import rpm, sys
28905 dbpath=rpm.expandMacro('%_dbpath')
28906 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
28907 def myprint(msg = ''):
28908     sys.stdout.write('%s\n' % msg)
28909
28910 ts = rpm.ts()
28911 h = rpm.hdr()
28912 h['name'] = 'foo'
28913 h['version'] = '1.0'
28914 h['release'] = '1'
28915 h['os'] = 'linux'
28916 h['arch'] = 'noarch'
28917 h['basenames'] = ['bing', 'bang', 'bong']
28918 h['dirnames'] = ['/opt' '/flopt']
28919 h['dirindexes'] = [ 1, 2, 3 ]
28920 try:
28921     ts.addInstall(h, 'foo', 'u')
28922 except rpm.error, err:
28923     myprint(err)
28924 for e in ts:
28925     myprint(e.NEVRA())
28926
28927 EOF
28928 python test.py
28929
28930 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28931 at_status=$? at_failed=false
28932 $at_check_filter
28933 at_fn_diff_devnull "$at_stderr" || at_failed=:
28934 echo >>"$at_stdout"; $as_echo "adding package to transaction failed
28935 " | \
28936   $at_diff - "$at_stdout" || at_failed=:
28937 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:196"
28938 $at_failed && at_fn_log_failure
28939 $at_traceon; }
28940
28941
28942   set +x
28943   $at_times_p && times >"$at_times_file"
28944 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
28945 read at_status <"$at_status_file"
28946 #AT_STOP_402
28947 #AT_START_403
28948 at_fn_group_banner 403 'rpmpython.at:217' \
28949   "database iterators" "                             " 20
28950 at_xfail=no
28951 (
28952   $as_echo "403. $at_setup_line: testing $at_desc ..."
28953   $at_traceon
28954
28955
28956 { set +x
28957 $as_echo "$at_srcdir/rpmpython.at:219:
28958
28959 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
28960
28961
28962 runroot rpm --initdb
28963
28964 runroot rpm -i \\
28965   --justdb --nodeps --ignorearch --ignoreos \\
28966   /data/RPMS/foo-1.0-1.noarch.rpm \\
28967   /data/RPMS/hello-2.0-1.i686.rpm
28968 "
28969 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmpython.at:219"
28970 ( $at_check_trace;
28971
28972 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28973
28974
28975 runroot rpm --initdb
28976
28977 runroot rpm -i \
28978   --justdb --nodeps --ignorearch --ignoreos \
28979   /data/RPMS/foo-1.0-1.noarch.rpm \
28980   /data/RPMS/hello-2.0-1.i686.rpm
28981
28982 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28983 at_status=$? at_failed=false
28984 $at_check_filter
28985 at_fn_diff_devnull "$at_stderr" || at_failed=:
28986 at_fn_diff_devnull "$at_stdout" || at_failed=:
28987 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:219"
28988 $at_failed && at_fn_log_failure
28989 $at_traceon; }
28990
28991
28992
28993 { set +x
28994 $as_echo "$at_srcdir/rpmpython.at:231:
28995 cat << EOF > test.py
28996 import rpm, sys
28997 dbpath=rpm.expandMacro('%_dbpath')
28998 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
28999 def myprint(msg = ''):
29000     sys.stdout.write('%s\\n' % msg)
29001
29002 ts = rpm.ts()
29003 ix = 0
29004 mi = ts.dbMatch()
29005 mi.pattern('name', rpm.RPMMIRE_STRCMP, 'hello')
29006 for h in mi:
29007     ix = h['dbinstance']
29008     break
29009 del mi
29010 for h in ts.dbMatch('packages', ix):
29011     myprint(h['nevra'])
29012
29013 EOF
29014 python test.py
29015 "
29016 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:231"
29017 ( $at_check_trace;
29018 cat << EOF > test.py
29019 import rpm, sys
29020 dbpath=rpm.expandMacro('%_dbpath')
29021 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29022 def myprint(msg = ''):
29023     sys.stdout.write('%s\n' % msg)
29024
29025 ts = rpm.ts()
29026 ix = 0
29027 mi = ts.dbMatch()
29028 mi.pattern('name', rpm.RPMMIRE_STRCMP, 'hello')
29029 for h in mi:
29030     ix = h['dbinstance']
29031     break
29032 del mi
29033 for h in ts.dbMatch('packages', ix):
29034     myprint(h['nevra'])
29035
29036 EOF
29037 python test.py
29038
29039 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29040 at_status=$? at_failed=false
29041 $at_check_filter
29042 at_fn_diff_devnull "$at_stderr" || at_failed=:
29043 echo >>"$at_stdout"; $as_echo "hello-2.0-1.i686
29044 " | \
29045   $at_diff - "$at_stdout" || at_failed=:
29046 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:231"
29047 $at_failed && at_fn_log_failure
29048 $at_traceon; }
29049
29050
29051
29052
29053 { set +x
29054 $as_echo "$at_srcdir/rpmpython.at:247:
29055 cat << EOF > test.py
29056 import rpm, sys
29057 dbpath=rpm.expandMacro('%_dbpath')
29058 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29059 def myprint(msg = ''):
29060     sys.stdout.write('%s\\n' % msg)
29061
29062 ts = rpm.ts()
29063 mi = ts.dbMatch()
29064 mi.pattern('name', rpm.RPMMIRE_DEFAULT, 'f*')
29065 for h in mi:
29066     myprint(h['nevra'])
29067
29068 EOF
29069 python test.py
29070 "
29071 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:247"
29072 ( $at_check_trace;
29073 cat << EOF > test.py
29074 import rpm, sys
29075 dbpath=rpm.expandMacro('%_dbpath')
29076 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29077 def myprint(msg = ''):
29078     sys.stdout.write('%s\n' % msg)
29079
29080 ts = rpm.ts()
29081 mi = ts.dbMatch()
29082 mi.pattern('name', rpm.RPMMIRE_DEFAULT, 'f*')
29083 for h in mi:
29084     myprint(h['nevra'])
29085
29086 EOF
29087 python test.py
29088
29089 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29090 at_status=$? at_failed=false
29091 $at_check_filter
29092 at_fn_diff_devnull "$at_stderr" || at_failed=:
29093 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
29094 " | \
29095   $at_diff - "$at_stdout" || at_failed=:
29096 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:247"
29097 $at_failed && at_fn_log_failure
29098 $at_traceon; }
29099
29100
29101
29102
29103 { set +x
29104 $as_echo "$at_srcdir/rpmpython.at:258:
29105 cat << EOF > test.py
29106 import rpm, sys
29107 dbpath=rpm.expandMacro('%_dbpath')
29108 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29109 def myprint(msg = ''):
29110     sys.stdout.write('%s\\n' % msg)
29111
29112 ts = rpm.ts()
29113 for h in ts.dbMatch('name'):
29114     myprint(h['nevra'])
29115
29116 EOF
29117 python test.py
29118 "
29119 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:258"
29120 ( $at_check_trace;
29121 cat << EOF > test.py
29122 import rpm, sys
29123 dbpath=rpm.expandMacro('%_dbpath')
29124 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29125 def myprint(msg = ''):
29126     sys.stdout.write('%s\n' % msg)
29127
29128 ts = rpm.ts()
29129 for h in ts.dbMatch('name'):
29130     myprint(h['nevra'])
29131
29132 EOF
29133 python test.py
29134
29135 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29136 at_status=$? at_failed=false
29137 $at_check_filter
29138 at_fn_diff_devnull "$at_stderr" || at_failed=:
29139 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
29140 hello-2.0-1.i686
29141 " | \
29142   $at_diff - "$at_stdout" || at_failed=:
29143 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:258"
29144 $at_failed && at_fn_log_failure
29145 $at_traceon; }
29146
29147
29148
29149
29150 { set +x
29151 $as_echo "$at_srcdir/rpmpython.at:268:
29152 cat << EOF > test.py
29153 import rpm, sys
29154 dbpath=rpm.expandMacro('%_dbpath')
29155 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29156 def myprint(msg = ''):
29157     sys.stdout.write('%s\\n' % msg)
29158
29159 ts = rpm.ts()
29160 for h in ts.dbMatch('obsoletes'):
29161     myprint(h['nevra'])
29162
29163 EOF
29164 python test.py
29165 "
29166 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:268"
29167 ( $at_check_trace;
29168 cat << EOF > test.py
29169 import rpm, sys
29170 dbpath=rpm.expandMacro('%_dbpath')
29171 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29172 def myprint(msg = ''):
29173     sys.stdout.write('%s\n' % msg)
29174
29175 ts = rpm.ts()
29176 for h in ts.dbMatch('obsoletes'):
29177     myprint(h['nevra'])
29178
29179 EOF
29180 python test.py
29181
29182 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29183 at_status=$? at_failed=false
29184 $at_check_filter
29185 at_fn_diff_devnull "$at_stderr" || at_failed=:
29186 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
29187 " | \
29188   $at_diff - "$at_stdout" || at_failed=:
29189 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:268"
29190 $at_failed && at_fn_log_failure
29191 $at_traceon; }
29192
29193
29194
29195
29196 { set +x
29197 $as_echo "$at_srcdir/rpmpython.at:277:
29198 cat << EOF > test.py
29199 import rpm, sys
29200 dbpath=rpm.expandMacro('%_dbpath')
29201 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29202 def myprint(msg = ''):
29203     sys.stdout.write('%s\\n' % msg)
29204
29205 ts = rpm.ts()
29206 for h in ts.dbMatch('provides', 'hi'):
29207     myprint(h['nevra'])
29208
29209 EOF
29210 python test.py
29211 "
29212 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:277"
29213 ( $at_check_trace;
29214 cat << EOF > test.py
29215 import rpm, sys
29216 dbpath=rpm.expandMacro('%_dbpath')
29217 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29218 def myprint(msg = ''):
29219     sys.stdout.write('%s\n' % msg)
29220
29221 ts = rpm.ts()
29222 for h in ts.dbMatch('provides', 'hi'):
29223     myprint(h['nevra'])
29224
29225 EOF
29226 python test.py
29227
29228 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29229 at_status=$? at_failed=false
29230 $at_check_filter
29231 at_fn_diff_devnull "$at_stderr" || at_failed=:
29232 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
29233 " | \
29234   $at_diff - "$at_stdout" || at_failed=:
29235 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:277"
29236 $at_failed && at_fn_log_failure
29237 $at_traceon; }
29238
29239
29240
29241
29242 { set +x
29243 $as_echo "$at_srcdir/rpmpython.at:286:
29244 cat << EOF > test.py
29245 import rpm, sys
29246 dbpath=rpm.expandMacro('%_dbpath')
29247 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29248 def myprint(msg = ''):
29249     sys.stdout.write('%s\\n' % msg)
29250
29251 ts = rpm.ts()
29252 for h in ts.dbMatch('basenames', '/usr/share/doc/hello-2.0/FAQ'):
29253     myprint(h['nevra'])
29254
29255 EOF
29256 python test.py
29257 "
29258 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:286"
29259 ( $at_check_trace;
29260 cat << EOF > test.py
29261 import rpm, sys
29262 dbpath=rpm.expandMacro('%_dbpath')
29263 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29264 def myprint(msg = ''):
29265     sys.stdout.write('%s\n' % msg)
29266
29267 ts = rpm.ts()
29268 for h in ts.dbMatch('basenames', '/usr/share/doc/hello-2.0/FAQ'):
29269     myprint(h['nevra'])
29270
29271 EOF
29272 python test.py
29273
29274 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29275 at_status=$? at_failed=false
29276 $at_check_filter
29277 at_fn_diff_devnull "$at_stderr" || at_failed=:
29278 echo >>"$at_stdout"; $as_echo "hello-2.0-1.i686
29279 " | \
29280   $at_diff - "$at_stdout" || at_failed=:
29281 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:286"
29282 $at_failed && at_fn_log_failure
29283 $at_traceon; }
29284
29285
29286
29287 { set +x
29288 $as_echo "$at_srcdir/rpmpython.at:294:
29289 cat << EOF > test.py
29290 import rpm, sys
29291 dbpath=rpm.expandMacro('%_dbpath')
29292 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29293 def myprint(msg = ''):
29294     sys.stdout.write('%s\\n' % msg)
29295
29296 ts = rpm.ts()
29297 for di in sorted(ts.dbIndex('obsoletes')):
29298     myprint(di)
29299
29300 EOF
29301 python test.py
29302 "
29303 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:294"
29304 ( $at_check_trace;
29305 cat << EOF > test.py
29306 import rpm, sys
29307 dbpath=rpm.expandMacro('%_dbpath')
29308 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29309 def myprint(msg = ''):
29310     sys.stdout.write('%s\n' % msg)
29311
29312 ts = rpm.ts()
29313 for di in sorted(ts.dbIndex('obsoletes')):
29314     myprint(di)
29315
29316 EOF
29317 python test.py
29318
29319 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29320 at_status=$? at_failed=false
29321 $at_check_filter
29322 at_fn_diff_devnull "$at_stderr" || at_failed=:
29323 echo >>"$at_stdout"; $as_echo "howdy
29324 " | \
29325   $at_diff - "$at_stdout" || at_failed=:
29326 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:294"
29327 $at_failed && at_fn_log_failure
29328 $at_traceon; }
29329
29330
29331
29332
29333 { set +x
29334 $as_echo "$at_srcdir/rpmpython.at:303:
29335 cat << EOF > test.py
29336 import rpm, sys
29337 dbpath=rpm.expandMacro('%_dbpath')
29338 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29339 def myprint(msg = ''):
29340     sys.stdout.write('%s\\n' % msg)
29341
29342 ts = rpm.ts()
29343 for di in sorted(ts.dbIndex('provides')):
29344     myprint(di)
29345
29346 EOF
29347 python test.py
29348 "
29349 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:303"
29350 ( $at_check_trace;
29351 cat << EOF > test.py
29352 import rpm, sys
29353 dbpath=rpm.expandMacro('%_dbpath')
29354 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29355 def myprint(msg = ''):
29356     sys.stdout.write('%s\n' % msg)
29357
29358 ts = rpm.ts()
29359 for di in sorted(ts.dbIndex('provides')):
29360     myprint(di)
29361
29362 EOF
29363 python test.py
29364
29365 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29366 at_status=$? at_failed=false
29367 $at_check_filter
29368 at_fn_diff_devnull "$at_stderr" || at_failed=:
29369 echo >>"$at_stdout"; $as_echo "foo
29370 hello
29371 hello(x86-32)
29372 hi
29373 " | \
29374   $at_diff - "$at_stdout" || at_failed=:
29375 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:303"
29376 $at_failed && at_fn_log_failure
29377 $at_traceon; }
29378
29379
29380   set +x
29381   $at_times_p && times >"$at_times_file"
29382 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29383 read at_status <"$at_status_file"
29384 #AT_STOP_403
29385 #AT_START_404
29386 at_fn_group_banner 404 'rpmpython.at:316' \
29387   "dependency sets 1" "                              " 20
29388 at_xfail=no
29389 (
29390   $as_echo "404. $at_setup_line: testing $at_desc ..."
29391   $at_traceon
29392
29393
29394
29395 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29396
29397
29398 runroot rpm --initdb
29399
29400
29401 { set +x
29402 $as_echo "$at_srcdir/rpmpython.at:316:
29403 cat << EOF > test.py
29404 import rpm, sys
29405 dbpath=rpm.expandMacro('%_dbpath')
29406 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29407 def myprint(msg = ''):
29408     sys.stdout.write('%s\\n' % msg)
29409
29410 ts = rpm.ts()
29411 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-1.0-1.ppc64.rpm')
29412 for dep in rpm.ds(h, 'requires'):
29413     myprint(dep.DNEVR())
29414
29415 EOF
29416 python test.py
29417 "
29418 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:316"
29419 ( $at_check_trace;
29420 cat << EOF > test.py
29421 import rpm, sys
29422 dbpath=rpm.expandMacro('%_dbpath')
29423 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29424 def myprint(msg = ''):
29425     sys.stdout.write('%s\n' % msg)
29426
29427 ts = rpm.ts()
29428 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-1.0-1.ppc64.rpm')
29429 for dep in rpm.ds(h, 'requires'):
29430     myprint(dep.DNEVR())
29431
29432 EOF
29433 python test.py
29434
29435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29436 at_status=$? at_failed=false
29437 $at_check_filter
29438 at_fn_diff_devnull "$at_stderr" || at_failed=:
29439 echo >>"$at_stdout"; $as_echo "R /bin/sh
29440 R /bin/sh
29441 R /bin/sh
29442 R /bin/sh
29443 R libc.so.6
29444 R libc.so.6(GLIBC_2.0)
29445 R rpmlib(CompressedFileNames) <= 3.0.4-1
29446 R rpmlib(PayloadFilesHavePrefix) <= 4.0-1
29447 R rtld(GNU_HASH)
29448 " | \
29449   $at_diff - "$at_stdout" || at_failed=:
29450 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:316"
29451 $at_failed && at_fn_log_failure
29452 $at_traceon; }
29453
29454
29455   set +x
29456   $at_times_p && times >"$at_times_file"
29457 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29458 read at_status <"$at_status_file"
29459 #AT_STOP_404
29460 #AT_START_405
29461 at_fn_group_banner 405 'rpmpython.at:333' \
29462   "dependency sets 2" "                              " 20
29463 at_xfail=no
29464 (
29465   $as_echo "405. $at_setup_line: testing $at_desc ..."
29466   $at_traceon
29467
29468
29469
29470 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29471
29472
29473 runroot rpm --initdb
29474
29475
29476 { set +x
29477 $as_echo "$at_srcdir/rpmpython.at:333:
29478 cat << EOF > test.py
29479 import rpm, sys
29480 dbpath=rpm.expandMacro('%_dbpath')
29481 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29482 def myprint(msg = ''):
29483     sys.stdout.write('%s\\n' % msg)
29484
29485 ts = rpm.ts()
29486 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-2.0-1.i686.rpm')
29487 ds = rpm.ds(h, 'provides')
29488 myprint('%d %d' % (ds.Instance(), ds.Count()))
29489
29490 EOF
29491 python test.py
29492 "
29493 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:333"
29494 ( $at_check_trace;
29495 cat << EOF > test.py
29496 import rpm, sys
29497 dbpath=rpm.expandMacro('%_dbpath')
29498 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29499 def myprint(msg = ''):
29500     sys.stdout.write('%s\n' % msg)
29501
29502 ts = rpm.ts()
29503 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-2.0-1.i686.rpm')
29504 ds = rpm.ds(h, 'provides')
29505 myprint('%d %d' % (ds.Instance(), ds.Count()))
29506
29507 EOF
29508 python test.py
29509
29510 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29511 at_status=$? at_failed=false
29512 $at_check_filter
29513 at_fn_diff_devnull "$at_stderr" || at_failed=:
29514 echo >>"$at_stdout"; $as_echo "0 2
29515 " | \
29516   $at_diff - "$at_stdout" || at_failed=:
29517 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:333"
29518 $at_failed && at_fn_log_failure
29519 $at_traceon; }
29520
29521
29522   set +x
29523   $at_times_p && times >"$at_times_file"
29524 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29525 read at_status <"$at_status_file"
29526 #AT_STOP_405
29527 #AT_START_406
29528 at_fn_group_banner 406 'rpmpython.at:343' \
29529   "file info sets 1" "                               " 20
29530 at_xfail=no
29531 (
29532   $as_echo "406. $at_setup_line: testing $at_desc ..."
29533   $at_traceon
29534
29535
29536
29537 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29538
29539
29540 runroot rpm --initdb
29541
29542
29543 { set +x
29544 $as_echo "$at_srcdir/rpmpython.at:343:
29545 cat << EOF > test.py
29546 import rpm, sys
29547 dbpath=rpm.expandMacro('%_dbpath')
29548 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29549 def myprint(msg = ''):
29550     sys.stdout.write('%s\\n' % msg)
29551
29552 ts = rpm.ts()
29553 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-2.0-1.i686.rpm')
29554 fi = rpm.fi(h)
29555 myprint(fi.FC())
29556 for f in fi:
29557    myprint('%x: %s' % (fi.FFlags(), fi.FN()))
29558
29559 EOF
29560 python test.py
29561 "
29562 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:343"
29563 ( $at_check_trace;
29564 cat << EOF > test.py
29565 import rpm, sys
29566 dbpath=rpm.expandMacro('%_dbpath')
29567 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29568 def myprint(msg = ''):
29569     sys.stdout.write('%s\n' % msg)
29570
29571 ts = rpm.ts()
29572 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-2.0-1.i686.rpm')
29573 fi = rpm.fi(h)
29574 myprint(fi.FC())
29575 for f in fi:
29576    myprint('%x: %s' % (fi.FFlags(), fi.FN()))
29577
29578 EOF
29579 python test.py
29580
29581 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29582 at_status=$? at_failed=false
29583 $at_check_filter
29584 at_fn_diff_devnull "$at_stderr" || at_failed=:
29585 echo >>"$at_stdout"; $as_echo "5
29586 0: /usr/bin/hello
29587 0: /usr/share/doc/hello-2.0
29588 2: /usr/share/doc/hello-2.0/COPYING
29589 2: /usr/share/doc/hello-2.0/FAQ
29590 2: /usr/share/doc/hello-2.0/README
29591 " | \
29592   $at_diff - "$at_stdout" || at_failed=:
29593 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:343"
29594 $at_failed && at_fn_log_failure
29595 $at_traceon; }
29596
29597
29598   set +x
29599   $at_times_p && times >"$at_times_file"
29600 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29601 read at_status <"$at_status_file"
29602 #AT_STOP_406
29603 #AT_START_407
29604 at_fn_group_banner 407 'rpmpython.at:360' \
29605   "string pool 1" "                                  " 20
29606 at_xfail=no
29607 (
29608   $as_echo "407. $at_setup_line: testing $at_desc ..."
29609   $at_traceon
29610
29611
29612
29613 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29614
29615
29616 runroot rpm --initdb
29617
29618
29619 { set +x
29620 $as_echo "$at_srcdir/rpmpython.at:360:
29621 cat << EOF > test.py
29622 import rpm, sys
29623 dbpath=rpm.expandMacro('%_dbpath')
29624 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29625 def myprint(msg = ''):
29626     sys.stdout.write('%s\\n' % msg)
29627
29628 p = rpm.strpool()
29629 for s in ['foo', 'bar', 'foo', 'zoo']:
29630     p.str2id(s)
29631 myprint('%s' % len(p))
29632 for i in range(1, len(p)+1):
29633     myprint('%s: %s' % (i, p[i]))
29634
29635 EOF
29636 python test.py
29637 "
29638 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:360"
29639 ( $at_check_trace;
29640 cat << EOF > test.py
29641 import rpm, sys
29642 dbpath=rpm.expandMacro('%_dbpath')
29643 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29644 def myprint(msg = ''):
29645     sys.stdout.write('%s\n' % msg)
29646
29647 p = rpm.strpool()
29648 for s in ['foo', 'bar', 'foo', 'zoo']:
29649     p.str2id(s)
29650 myprint('%s' % len(p))
29651 for i in range(1, len(p)+1):
29652     myprint('%s: %s' % (i, p[i]))
29653
29654 EOF
29655 python test.py
29656
29657 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29658 at_status=$? at_failed=false
29659 $at_check_filter
29660 at_fn_diff_devnull "$at_stderr" || at_failed=:
29661 echo >>"$at_stdout"; $as_echo "3
29662 1: foo
29663 2: bar
29664 3: zoo
29665 " | \
29666   $at_diff - "$at_stdout" || at_failed=:
29667 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:360"
29668 $at_failed && at_fn_log_failure
29669 $at_traceon; }
29670
29671
29672   set +x
29673   $at_times_p && times >"$at_times_file"
29674 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29675 read at_status <"$at_status_file"
29676 #AT_STOP_407
29677 #AT_START_408
29678 at_fn_group_banner 408 'rpmpython.at:375' \
29679   "string pool 2" "                                  " 20
29680 at_xfail=no
29681 (
29682   $as_echo "408. $at_setup_line: testing $at_desc ..."
29683   $at_traceon
29684
29685
29686
29687 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29688
29689
29690 runroot rpm --initdb
29691
29692
29693 { set +x
29694 $as_echo "$at_srcdir/rpmpython.at:375:
29695 cat << EOF > test.py
29696 import rpm, sys
29697 dbpath=rpm.expandMacro('%_dbpath')
29698 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29699 def myprint(msg = ''):
29700     sys.stdout.write('%s\\n' % msg)
29701
29702 p = rpm.strpool()
29703 d1 = rpm.ds(('foo', rpm.RPMSENSE_EQUAL, '2.0'), rpm.RPMTAG_PROVIDES, pool=p)
29704 d2 = rpm.ds(('bar', rpm.RPMSENSE_EQUAL, '2.0'), rpm.RPMTAG_PROVIDES, pool=p)
29705 d3 = rpm.ds(('bar', rpm.RPMSENSE_EQUAL, '2.0'), rpm.RPMTAG_PROVIDES, pool=p)
29706 myprint('%s' % len(p))
29707 del p
29708 myprint(d1.DNEVR())
29709 myprint(d2.DNEVR())
29710 myprint(d3.DNEVR())
29711
29712 EOF
29713 python test.py
29714 "
29715 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:375"
29716 ( $at_check_trace;
29717 cat << EOF > test.py
29718 import rpm, sys
29719 dbpath=rpm.expandMacro('%_dbpath')
29720 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29721 def myprint(msg = ''):
29722     sys.stdout.write('%s\n' % msg)
29723
29724 p = rpm.strpool()
29725 d1 = rpm.ds(('foo', rpm.RPMSENSE_EQUAL, '2.0'), rpm.RPMTAG_PROVIDES, pool=p)
29726 d2 = rpm.ds(('bar', rpm.RPMSENSE_EQUAL, '2.0'), rpm.RPMTAG_PROVIDES, pool=p)
29727 d3 = rpm.ds(('bar', rpm.RPMSENSE_EQUAL, '2.0'), rpm.RPMTAG_PROVIDES, pool=p)
29728 myprint('%s' % len(p))
29729 del p
29730 myprint(d1.DNEVR())
29731 myprint(d2.DNEVR())
29732 myprint(d3.DNEVR())
29733
29734 EOF
29735 python test.py
29736
29737 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29738 at_status=$? at_failed=false
29739 $at_check_filter
29740 at_fn_diff_devnull "$at_stderr" || at_failed=:
29741 echo >>"$at_stdout"; $as_echo "3
29742 P foo = 2.0
29743 P bar = 2.0
29744 P bar = 2.0
29745 " | \
29746   $at_diff - "$at_stdout" || at_failed=:
29747 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:375"
29748 $at_failed && at_fn_log_failure
29749 $at_traceon; }
29750
29751
29752   set +x
29753   $at_times_p && times >"$at_times_file"
29754 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29755 read at_status <"$at_status_file"
29756 #AT_STOP_408
29757 #AT_START_409
29758 at_fn_group_banner 409 'rpmpython.at:393' \
29759   "archive 1" "                                      " 20
29760 at_xfail=no
29761 (
29762   $as_echo "409. $at_setup_line: testing $at_desc ..."
29763   $at_traceon
29764
29765
29766
29767 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29768
29769
29770 runroot rpm --initdb
29771
29772
29773 { set +x
29774 $as_echo "$at_srcdir/rpmpython.at:393:
29775 cat << EOF > test.py
29776 import rpm, sys
29777 dbpath=rpm.expandMacro('%_dbpath')
29778 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29779 def myprint(msg = ''):
29780     sys.stdout.write('%s\\n' % msg)
29781
29782 import hashlib
29783 ts = rpm.ts()
29784 fd = rpm.fd.open('\${RPMDATA}/SRPMS/hello-1.0-1.src.rpm')
29785 h = ts.hdrFromFdno(fd)
29786 payload = rpm.fd.open(fd, flags=h['payloadcompressor'])
29787 files = rpm.files(h)
29788 archive = files.archive(payload)
29789 for f in archive:
29790     if not f.fflags & rpm.RPMFILE_SPECFILE:
29791         continue
29792     spec = archive.read()
29793     hash = hashlib.md5(spec)
29794     if f.digest != hash.hexdigest():
29795         myprint('%s should be %s' % (hash.hexdigest(), f.digest))
29796     break
29797
29798 EOF
29799 python test.py
29800 "
29801 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:393"
29802 ( $at_check_trace;
29803 cat << EOF > test.py
29804 import rpm, sys
29805 dbpath=rpm.expandMacro('%_dbpath')
29806 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29807 def myprint(msg = ''):
29808     sys.stdout.write('%s\n' % msg)
29809
29810 import hashlib
29811 ts = rpm.ts()
29812 fd = rpm.fd.open('${RPMDATA}/SRPMS/hello-1.0-1.src.rpm')
29813 h = ts.hdrFromFdno(fd)
29814 payload = rpm.fd.open(fd, flags=h['payloadcompressor'])
29815 files = rpm.files(h)
29816 archive = files.archive(payload)
29817 for f in archive:
29818     if not f.fflags & rpm.RPMFILE_SPECFILE:
29819         continue
29820     spec = archive.read()
29821     hash = hashlib.md5(spec)
29822     if f.digest != hash.hexdigest():
29823         myprint('%s should be %s' % (hash.hexdigest(), f.digest))
29824     break
29825
29826 EOF
29827 python test.py
29828
29829 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29830 at_status=$? at_failed=false
29831 $at_check_filter
29832 at_fn_diff_devnull "$at_stderr" || at_failed=:
29833 at_fn_diff_devnull "$at_stdout" || at_failed=:
29834 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:393"
29835 $at_failed && at_fn_log_failure
29836 $at_traceon; }
29837
29838
29839   set +x
29840   $at_times_p && times >"$at_times_file"
29841 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29842 read at_status <"$at_status_file"
29843 #AT_STOP_409
29844 #AT_START_410
29845 at_fn_group_banner 410 'rpmpython.at:413' \
29846   "header unload" "                                  " 20
29847 at_xfail=no
29848 (
29849   $as_echo "410. $at_setup_line: testing $at_desc ..."
29850   $at_traceon
29851
29852
29853
29854 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29855
29856
29857 runroot rpm --initdb
29858
29859
29860 { set +x
29861 $as_echo "$at_srcdir/rpmpython.at:413:
29862 cat << EOF > test.py
29863 import rpm, sys
29864 dbpath=rpm.expandMacro('%_dbpath')
29865 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29866 def myprint(msg = ''):
29867     sys.stdout.write('%s\\n' % msg)
29868
29869 ts = rpm.ts()
29870 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-2.0-1.i686.rpm')
29871 # Add some garbage to header to make it non-sorted
29872 h['installtime'] = 0
29873 # RhBug:1061730 causes export of non-sorted header to be larger than it should
29874 len1 = len(h.unload())
29875 # Accessing the header before export forces sorting to take place even on
29876 # buggy versions
29877 t = h['installtime']
29878 len2 = len(h.unload())
29879 myprint(len1 == len2)
29880
29881 EOF
29882 python test.py
29883 "
29884 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:413"
29885 ( $at_check_trace;
29886 cat << EOF > test.py
29887 import rpm, sys
29888 dbpath=rpm.expandMacro('%_dbpath')
29889 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
29890 def myprint(msg = ''):
29891     sys.stdout.write('%s\n' % msg)
29892
29893 ts = rpm.ts()
29894 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-2.0-1.i686.rpm')
29895 # Add some garbage to header to make it non-sorted
29896 h['installtime'] = 0
29897 # RhBug:1061730 causes export of non-sorted header to be larger than it should
29898 len1 = len(h.unload())
29899 # Accessing the header before export forces sorting to take place even on
29900 # buggy versions
29901 t = h['installtime']
29902 len2 = len(h.unload())
29903 myprint(len1 == len2)
29904
29905 EOF
29906 python test.py
29907
29908 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29909 at_status=$? at_failed=false
29910 $at_check_filter
29911 at_fn_diff_devnull "$at_stderr" || at_failed=:
29912 echo >>"$at_stdout"; $as_echo "True
29913 " | \
29914   $at_diff - "$at_stdout" || at_failed=:
29915 at_fn_check_status 0 $at_status "$at_srcdir/rpmpython.at:413"
29916 $at_failed && at_fn_log_failure
29917 $at_traceon; }
29918
29919
29920   set +x
29921   $at_times_p && times >"$at_times_file"
29922 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
29923 read at_status <"$at_status_file"
29924 #AT_STOP_410
29925 #AT_START_411
29926 at_fn_group_banner 411 'rpmdepmatch.at:4' \
29927   "provide - require pairs" "                        " 21
29928 at_xfail=no
29929 (
29930   $as_echo "411. $at_setup_line: testing $at_desc ..."
29931   $at_traceon
29932
29933
29934
29935 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29936
29937
29938 runroot rpm --initdb
29939
29940
29941 { set +x
29942 $as_echo "$at_srcdir/rpmdepmatch.at:4:
29943 cat << EOF > test.py
29944 import rpm, sys
29945 dbpath=rpm.expandMacro('%_dbpath')
29946 rpm.addMacro('_dbpath', '\${abs_builddir}/testing%s' % dbpath)
29947 def myprint(msg = ''):
29948     sys.stdout.write('%s\\n' % msg)
29949
29950 # ((provides), (requires), match) expected values
29951 tests = [
29952     # Different names never match
29953     (('b',),                    ('a',),                 0),
29954     (('b',),                    ('a', '=', '1.2'),      0),
29955     (('b',),                    ('a', '>=', '1.2'),     0),
29956     (('b',),                    ('a', '<=', '1.2'),     0),
29957     (('b',),                    ('a', '<', '1.2'),      0),
29958     (('b',),                    ('a', '>', '1.2'),      0),
29959     (('b',),                    ('a', '<>', '1.2'),     0),
29960
29961     # Unversioned provide matches all versions
29962     (('a',),                    ('a',),                 1),
29963     (('a',),                    ('a', '=', '1.2'),      1),
29964     (('a',),                    ('a', '>=', '1.2'),     1),
29965     (('a',),                    ('a', '<=', '1.2'),     1),
29966     (('a',),                    ('a', '<', '1.2'),      1),
29967     (('a',),                    ('a', '>', '1.2'),      1),
29968     (('a',),                    ('a', '<>', '1.2'),     1),
29969
29970     # Unversioned require matches all versions
29971     (('a', '=', '1.2'),         ('a',),                 1),
29972     (('a', '<', '1.2'),         ('a',),                 1),
29973     (('a', '>', '1.2'),         ('a',),                 1),
29974     (('a', '<=', '1.2'),        ('a',),                 1),
29975     (('a', '>=', '1.2'),        ('a',),                 1),
29976     (('a', '<>', '1.2'),        ('a',),                 1),
29977
29978     # Simple, obvious version comparisons
29979     (('a', '=', '1.2'),         ('a', '=', '1.2'),      1),
29980     (('a', '=', '1.2'),         ('a', '>=', '1.2'),     1),
29981     (('a', '=', '1.2'),         ('a', '<=', '1.2'),     1),
29982     (('a', '=', '1.2'),         ('a', '<', '1.2'),      0),
29983     (('a', '=', '1.2'),         ('a', '>', '1.2'),      0),
29984     (('a', '=', '1.2'),         ('a', '<>', '1.2'),     0),
29985
29986     (('a', '=', '1.2'),         ('a', '=', '1.3'),      0),
29987     (('a', '=', '1.2'),         ('a', '>=', '1.3'),     0),
29988     (('a', '=', '1.2'),         ('a', '<=', '1.3'),     1),
29989     (('a', '=', '1.2'),         ('a', '<', '1.3'),      1),
29990     (('a', '=', '1.2'),         ('a', '>', '1.3'),      0),
29991     (('a', '=', '1.2'),         ('a', '<>', '1.3'),     1),
29992
29993     # Simple, obvious version-release comparisons
29994     (('a', '=', '1.2-1'),       ('a', '=', '1.2-1'),    1),
29995     (('a', '=', '1.2-1'),       ('a', '>=', '1.2-1'),   1),
29996     (('a', '=', '1.2-1'),       ('a', '<=', '1.2-1'),   1),
29997     (('a', '=', '1.2-1'),       ('a', '<', '1.2-1'),    0),
29998     (('a', '=', '1.2-1'),       ('a', '>', '1.2-1'),    0),
29999     (('a', '=', '1.2-1'),       ('a', '<>', '1.2-1'),   0),
30000
30001     (('a', '=', '1.2-1'),       ('a', '=', '1.2-2'),    0),
30002     (('a', '=', '1.2-1'),       ('a', '>=', '1.2-2'),   0),
30003     (('a', '=', '1.2-1'),       ('a', '<=', '1.2-2'),   1),
30004     (('a', '=', '1.2-1'),       ('a', '<', '1.2-2'),    1),
30005     (('a', '=', '1.2-1'),       ('a', '>', '1.2-2'),    0),
30006     (('a', '=', '1.2-1'),       ('a', '<>', '1.2-2'),   1),
30007
30008     (('a', '=', '1.3-1'),       ('a', '=', '1.2-2'),    0),
30009     (('a', '=', '1.3-1'),       ('a', '>=', '1.2-2'),   1),
30010     (('a', '=', '1.3-1'),       ('a', '<=', '1.2-2'),   0),
30011     (('a', '=', '1.3-1'),       ('a', '<', '1.2-2'),    0),
30012     (('a', '=', '1.3-1'),       ('a', '>', '1.2-2'),    1),
30013     (('a', '=', '1.3-1'),       ('a', '<>', '1.2-2'),   1),
30014
30015     # Zero epoch is same as no epoch
30016     (('a', '=', '0:1.2'),       ('a', '=', '1.2'),      1),
30017     (('a', '=', '0:1.2'),       ('a', '>=', '1.2'),     1),
30018     (('a', '=', '0:1.2'),       ('a', '<=', '1.2'),     1),
30019     (('a', '=', '0:1.2'),       ('a', '<', '1.2'),      0),
30020     (('a', '=', '0:1.2'),       ('a', '>', '1.2'),      0),
30021     (('a', '=', '0:1.2'),       ('a', '<>', '1.2'),     0),
30022
30023     (('a', '=', '1.2'),         ('a', '=', '0:1.2'),    1),
30024     (('a', '=', '1.2'),         ('a', '>=', '0:1.2'),   1),
30025     (('a', '=', '1.2'),         ('a', '<=', '0:1.2'),   1),
30026     (('a', '=', '1.2'),         ('a', '<', '0:1.2'),    0),
30027     (('a', '=', '1.2'),         ('a', '>', '0:1.2'),    0),
30028     (('a', '=', '1.2'),         ('a', '<>', '0:1.2'),   0),
30029
30030     # Non-zero epochs
30031     (('a', '=', '1:1.2'),       ('a', '=', '1.2'),      0),
30032     (('a', '=', '1:1.2'),       ('a', '>=', '1.2'),     1),
30033     (('a', '=', '1:1.2'),       ('a', '<=', '1.2'),     0),
30034     (('a', '=', '1:1.2'),       ('a', '<', '1.2'),      0),
30035     (('a', '=', '1:1.2'),       ('a', '>', '1.2'),      1),
30036     (('a', '=', '1:1.2'),       ('a', '<>', '1.2'),     1),
30037
30038     (('a', '=', '1.2'),         ('a', '=', '1:1.2'),    0),
30039     (('a', '=', '1.2'),         ('a', '>=', '1:1.2'),   0),
30040     (('a', '=', '1.2'),         ('a', '<=', '1:1.2'),   1),
30041     (('a', '=', '1.2'),         ('a', '<', '1:1.2'),    1),
30042     (('a', '=', '1.2'),         ('a', '>', '1:1.2'),    0),
30043     (('a', '=', '1.2'),         ('a', '<>', '1:1.2'),   1),
30044
30045     (('a', '=', '2:1.2'),       ('a', '=', '2:1.2'),    1),
30046     (('a', '=', '2:1.2'),       ('a', '>=', '2:1.2'),   1),
30047     (('a', '=', '2:1.2'),       ('a', '<=', '2:1.2'),   1),
30048     (('a', '=', '2:1.2'),       ('a', '<', '2:1.2'),    0),
30049     (('a', '=', '2:1.2'),       ('a', '>', '2:1.2'),    0),
30050     (('a', '=', '2:1.2'),       ('a', '<>', '2:1.2'),   0),
30051
30052     # Simple, obvious version comparisons with provide ranges
30053     (('a', '>', '1.2'),         ('a', '=', '1.2'),      0),
30054     (('a', '>', '1.2'),         ('a', '>=', '1.2'),     1),
30055     (('a', '>', '1.2'),         ('a', '<=', '1.2'),     0),
30056     (('a', '>', '1.2'),         ('a', '<', '1.2'),      0),
30057     (('a', '>', '1.2'),         ('a', '>', '1.2'),      1),
30058     (('a', '>', '1.2'),         ('a', '<>', '1.2'),     1),
30059
30060     (('a', '<', '1.2'),         ('a', '=', '1.2'),      0),
30061     (('a', '<', '1.2'),         ('a', '>=', '1.2'),     0),
30062     (('a', '<', '1.2'),         ('a', '<=', '1.2'),     1),
30063     (('a', '<', '1.2'),         ('a', '<', '1.2'),      1),
30064     (('a', '<', '1.2'),         ('a', '>', '1.2'),      0),
30065     (('a', '<', '1.2'),         ('a', '<>', '1.2'),     1),
30066
30067     (('a', '>=', '1.2'),        ('a', '=', '1.2'),      1),
30068     (('a', '>=', '1.2'),        ('a', '>=', '1.2'),     1),
30069     (('a', '>=', '1.2'),        ('a', '<=', '1.2'),     1),
30070     (('a', '>=', '1.2'),        ('a', '<', '1.2'),      0),
30071     (('a', '>=', '1.2'),        ('a', '>', '1.2'),      1),
30072     (('a', '>=', '1.2'),        ('a', '<>', '1.2'),     1),
30073
30074     (('a', '<=', '1.2'),        ('a', '=', '1.2'),      1),
30075     (('a', '<=', '1.2'),        ('a', '>=', '1.2'),     1),
30076     (('a', '<=', '1.2'),        ('a', '<=', '1.2'),     1),
30077     (('a', '<=', '1.2'),        ('a', '<', '1.2'),      1),
30078     (('a', '<=', '1.2'),        ('a', '>', '1.2'),      0),
30079     (('a', '<=', '1.2'),        ('a', '<>', '1.2'),     1),
30080
30081     (('a', '<>', '1.2'),        ('a', '=', '1.2'),      0),
30082     (('a', '<>', '1.2'),        ('a', '>=', '1.2'),     1),
30083     (('a', '<>', '1.2'),        ('a', '<=', '1.2'),     1),
30084     (('a', '<>', '1.2'),        ('a', '<', '1.2'),      1),
30085     (('a', '<>', '1.2'),        ('a', '>', '1.2'),      1),
30086     (('a', '<>', '1.2'),        ('a', '<>', '1.2'),     1),
30087
30088     # Missing release should be considered \"any release will do\"
30089     # but this is not always so (the cases with \"???\")
30090     (('a', '=', '1.2-1'),       ('a', '=', '1.2'),      1),
30091     (('a', '=', '1.2-1'),       ('a', '>=', '1.2'),     1),
30092     (('a', '=', '1.2-1'),       ('a', '<=', '1.2'),     1),
30093     (('a', '=', '1.2-1'),       ('a', '<', '1.2'),      0),
30094     (('a', '=', '1.2-1'),       ('a', '>', '1.2'),      0),
30095     (('a', '=', '1.2-1'),       ('a', '<>', '1.2'),     0),
30096
30097     (('a', '>', '1.2-1'),       ('a', '=', '1.2'),      1),
30098     (('a', '>', '1.2-1'),       ('a', '>=', '1.2'),     1),
30099     (('a', '>', '1.2-1'),       ('a', '<=', '1.2'),     1),
30100     (('a', '>', '1.2-1'),       ('a', '<', '1.2'),      0),
30101     (('a', '>', '1.2-1'),       ('a', '>', '1.2'),      1),
30102     (('a', '>', '1.2-1'),       ('a', '<>', '1.2'),     1),
30103
30104     (('a', '<', '1.2-1'),       ('a', '=', '1.2'),      1),
30105     (('a', '<', '1.2-1'),       ('a', '>=', '1.2'),     1),
30106     (('a', '<', '1.2-1'),       ('a', '<=', '1.2'),     1),
30107     (('a', '<', '1.2-1'),       ('a', '<', '1.2'),      1),
30108     (('a', '<', '1.2-1'),       ('a', '>', '1.2'),      0),
30109     (('a', '<', '1.2-1'),       ('a', '<>', '1.2'),     1),
30110
30111     (('a', '>=', '1.2-1'),      ('a', '=', '1.2'),      1),
30112     (('a', '>=', '1.2-1'),      ('a', '>=', '1.2'),     1),
30113     (('a', '>=', '1.2-1'),      ('a', '<=', '1.2'),     1),
30114     (('a', '>=', '1.2-1'),      ('a', '<', '1.2'),      0),
30115     (('a', '>=', '1.2-1'),      ('a', '>', '1.2'),      1),
30116     (('a', '>=', '1.2-1'),      ('a', '<>', '1.2'),     1),
30117
30118     (('a', '<=', '1.2-1'),      ('a', '=', '1.2'),      1),
30119     (('a', '<=', '1.2-1'),      ('a', '>=', '1.2'),     1),
30120     (('a', '<=', '1.2-1'),      ('a', '<=', '1.2'),     1),
30121     (('a', '<=', '1.2-1'),      ('a', '<', '1.2'),      1),
30122     (('a', '<=', '1.2-1'),      ('a', '>', '1.2'),      0),
30123     (('a', '<=', '1.2-1'),      ('a', '<>', '1.2'),     1),
30124
30125     (('a', '<>', '1.2-1'),      ('a', '=', '1.2'),      1),
30126     (('a', '<>', '1.2-1'),      ('a', '>=', '1.2'),     1),
30127     (('a', '<>', '1.2-1'),      ('a', '<=', '1.2'),     1),
30128     (('a', '<>', '1.2-1'),      ('a', '<', '1.2'),      1),
30129     (('a', '<>', '1.2-1'),      ('a', '>', '1.2'),      1),
30130     (('a', '<>', '1.2-1'),      ('a', '<>', '1.2'),     1),
30131
30132     (('a', '=', '1.2'),         ('a', '=', '1.2-1'),    1),
30133     (('a', '=', '1.2'),         ('a', '>=', '1.2-1'),   1),
30134     (('a', '=', '1.2'),         ('a', '<=', '1.2-1'),   1),
30135     (('a', '=', '1.2'),         ('a', '<', '1.2-1'),    1),
30136     (('a', '=', '1.2'),         ('a', '>', '1.2-1'),    1),
30137     (('a', '=', '1.2'),         ('a', '<>', '1.2-1'),   1),
30138
30139     (('a', '>', '1.2'),         ('a', '=', '1.2-1'),    0),
30140     (('a', '>', '1.2'),         ('a', '>=', '1.2-1'),   1),
30141     (('a', '>', '1.2'),         ('a', '<=', '1.2-1'),   0),
30142     (('a', '>', '1.2'),         ('a', '<', '1.2-1'),    0),
30143     (('a', '>', '1.2'),         ('a', '>', '1.2-1'),    1),
30144     (('a', '>', '1.2'),         ('a', '<>', '1.2-1'),   1),
30145
30146     (('a', '<', '1.2'),         ('a', '=', '1.2-1'),    0),
30147     (('a', '<', '1.2'),         ('a', '>=', '1.2-1'),   0),
30148     (('a', '<', '1.2'),         ('a', '<=', '1.2-1'),   1),
30149     (('a', '<', '1.2'),         ('a', '<', '1.2-1'),    1),
30150     (('a', '<', '1.2'),         ('a', '>', '1.2-1'),    0),
30151     (('a', '<', '1.2'),         ('a', '<>', '1.2-1'),   1),
30152
30153     (('a', '>=', '1.2'),        ('a', '=', '1.2-1'),    1),
30154     (('a', '>=', '1.2'),        ('a', '>=', '1.2-1'),   1),
30155     (('a', '>=', '1.2'),        ('a', '<=', '1.2-1'),   1),
30156     (('a', '>=', '1.2'),        ('a', '<', '1.2-1'),    1),
30157     (('a', '>=', '1.2'),        ('a', '>', '1.2-1'),    1),
30158     (('a', '>=', '1.2'),        ('a', '<>', '1.2-1'),   1),
30159
30160     (('a', '<=', '1.2'),        ('a', '=', '1.2-1'),    1),
30161     (('a', '<=', '1.2'),        ('a', '>=', '1.2-1'),   1),
30162     (('a', '<=', '1.2'),        ('a', '<=', '1.2-1'),   1),
30163     (('a', '<=', '1.2'),        ('a', '<', '1.2-1'),    1),
30164     (('a', '<=', '1.2'),        ('a', '>', '1.2-1'),    1),
30165     (('a', '<=', '1.2'),        ('a', '<>', '1.2-1'),   1),
30166
30167     (('a', '<>', '1.2'),        ('a', '=', '1.2-1'),    0),
30168     (('a', '<>', '1.2'),        ('a', '>=', '1.2-1'),   1),
30169     (('a', '<>', '1.2'),        ('a', '<=', '1.2-1'),   1),
30170     (('a', '<>', '1.2'),        ('a', '<', '1.2-1'),    1),
30171     (('a', '<>', '1.2'),        ('a', '>', '1.2-1'),    1),
30172     (('a', '<>', '1.2'),        ('a', '<>', '1.2-1'),   1),
30173 ]
30174
30175 ms = ['no match', 'match']
30176
30177 myprint() # dumb kludge to fixup expected output
30178 for p, r, res in tests:
30179     d1 = rpm.ds(p, 'provides')
30180     d2 = rpm.ds(r, 'requires')
30181     match = d1.Compare(d2)
30182     if match != res:
30183         myprint('FAILED: %s with %s: %s' % (d1.DNEVR(), d2.DNEVR(),ms[res]))
30184
30185 EOF
30186 python test.py
30187 "
30188 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmdepmatch.at:4"
30189 ( $at_check_trace;
30190 cat << EOF > test.py
30191 import rpm, sys
30192 dbpath=rpm.expandMacro('%_dbpath')
30193 rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
30194 def myprint(msg = ''):
30195     sys.stdout.write('%s\n' % msg)
30196
30197 # ((provides), (requires), match) expected values
30198 tests = [
30199     # Different names never match
30200     (('b',),                    ('a',),                 0),
30201     (('b',),                    ('a', '=', '1.2'),      0),
30202     (('b',),                    ('a', '>=', '1.2'),     0),
30203     (('b',),                    ('a', '<=', '1.2'),     0),
30204     (('b',),                    ('a', '<', '1.2'),      0),
30205     (('b',),                    ('a', '>', '1.2'),      0),
30206     (('b',),                    ('a', '<>', '1.2'),     0),
30207
30208     # Unversioned provide matches all versions
30209     (('a',),                    ('a',),                 1),
30210     (('a',),                    ('a', '=', '1.2'),      1),
30211     (('a',),                    ('a', '>=', '1.2'),     1),
30212     (('a',),                    ('a', '<=', '1.2'),     1),
30213     (('a',),                    ('a', '<', '1.2'),      1),
30214     (('a',),                    ('a', '>', '1.2'),      1),
30215     (('a',),                    ('a', '<>', '1.2'),     1),
30216
30217     # Unversioned require matches all versions
30218     (('a', '=', '1.2'),         ('a',),                 1),
30219     (('a', '<', '1.2'),         ('a',),                 1),
30220     (('a', '>', '1.2'),         ('a',),                 1),
30221     (('a', '<=', '1.2'),        ('a',),                 1),
30222     (('a', '>=', '1.2'),        ('a',),                 1),
30223     (('a', '<>', '1.2'),        ('a',),                 1),
30224
30225     # Simple, obvious version comparisons
30226     (('a', '=', '1.2'),         ('a', '=', '1.2'),      1),
30227     (('a', '=', '1.2'),         ('a', '>=', '1.2'),     1),
30228     (('a', '=', '1.2'),         ('a', '<=', '1.2'),     1),
30229     (('a', '=', '1.2'),         ('a', '<', '1.2'),      0),
30230     (('a', '=', '1.2'),         ('a', '>', '1.2'),      0),
30231     (('a', '=', '1.2'),         ('a', '<>', '1.2'),     0),
30232
30233     (('a', '=', '1.2'),         ('a', '=', '1.3'),      0),
30234     (('a', '=', '1.2'),         ('a', '>=', '1.3'),     0),
30235     (('a', '=', '1.2'),         ('a', '<=', '1.3'),     1),
30236     (('a', '=', '1.2'),         ('a', '<', '1.3'),      1),
30237     (('a', '=', '1.2'),         ('a', '>', '1.3'),      0),
30238     (('a', '=', '1.2'),         ('a', '<>', '1.3'),     1),
30239
30240     # Simple, obvious version-release comparisons
30241     (('a', '=', '1.2-1'),       ('a', '=', '1.2-1'),    1),
30242     (('a', '=', '1.2-1'),       ('a', '>=', '1.2-1'),   1),
30243     (('a', '=', '1.2-1'),       ('a', '<=', '1.2-1'),   1),
30244     (('a', '=', '1.2-1'),       ('a', '<', '1.2-1'),    0),
30245     (('a', '=', '1.2-1'),       ('a', '>', '1.2-1'),    0),
30246     (('a', '=', '1.2-1'),       ('a', '<>', '1.2-1'),   0),
30247
30248     (('a', '=', '1.2-1'),       ('a', '=', '1.2-2'),    0),
30249     (('a', '=', '1.2-1'),       ('a', '>=', '1.2-2'),   0),
30250     (('a', '=', '1.2-1'),       ('a', '<=', '1.2-2'),   1),
30251     (('a', '=', '1.2-1'),       ('a', '<', '1.2-2'),    1),
30252     (('a', '=', '1.2-1'),       ('a', '>', '1.2-2'),    0),
30253     (('a', '=', '1.2-1'),       ('a', '<>', '1.2-2'),   1),
30254
30255     (('a', '=', '1.3-1'),       ('a', '=', '1.2-2'),    0),
30256     (('a', '=', '1.3-1'),       ('a', '>=', '1.2-2'),   1),
30257     (('a', '=', '1.3-1'),       ('a', '<=', '1.2-2'),   0),
30258     (('a', '=', '1.3-1'),       ('a', '<', '1.2-2'),    0),
30259     (('a', '=', '1.3-1'),       ('a', '>', '1.2-2'),    1),
30260     (('a', '=', '1.3-1'),       ('a', '<>', '1.2-2'),   1),
30261
30262     # Zero epoch is same as no epoch
30263     (('a', '=', '0:1.2'),       ('a', '=', '1.2'),      1),
30264     (('a', '=', '0:1.2'),       ('a', '>=', '1.2'),     1),
30265     (('a', '=', '0:1.2'),       ('a', '<=', '1.2'),     1),
30266     (('a', '=', '0:1.2'),       ('a', '<', '1.2'),      0),
30267     (('a', '=', '0:1.2'),       ('a', '>', '1.2'),      0),
30268     (('a', '=', '0:1.2'),       ('a', '<>', '1.2'),     0),
30269
30270     (('a', '=', '1.2'),         ('a', '=', '0:1.2'),    1),
30271     (('a', '=', '1.2'),         ('a', '>=', '0:1.2'),   1),
30272     (('a', '=', '1.2'),         ('a', '<=', '0:1.2'),   1),
30273     (('a', '=', '1.2'),         ('a', '<', '0:1.2'),    0),
30274     (('a', '=', '1.2'),         ('a', '>', '0:1.2'),    0),
30275     (('a', '=', '1.2'),         ('a', '<>', '0:1.2'),   0),
30276
30277     # Non-zero epochs
30278     (('a', '=', '1:1.2'),       ('a', '=', '1.2'),      0),
30279     (('a', '=', '1:1.2'),       ('a', '>=', '1.2'),     1),
30280     (('a', '=', '1:1.2'),       ('a', '<=', '1.2'),     0),
30281     (('a', '=', '1:1.2'),       ('a', '<', '1.2'),      0),
30282     (('a', '=', '1:1.2'),       ('a', '>', '1.2'),      1),
30283     (('a', '=', '1:1.2'),       ('a', '<>', '1.2'),     1),
30284
30285     (('a', '=', '1.2'),         ('a', '=', '1:1.2'),    0),
30286     (('a', '=', '1.2'),         ('a', '>=', '1:1.2'),   0),
30287     (('a', '=', '1.2'),         ('a', '<=', '1:1.2'),   1),
30288     (('a', '=', '1.2'),         ('a', '<', '1:1.2'),    1),
30289     (('a', '=', '1.2'),         ('a', '>', '1:1.2'),    0),
30290     (('a', '=', '1.2'),         ('a', '<>', '1:1.2'),   1),
30291
30292     (('a', '=', '2:1.2'),       ('a', '=', '2:1.2'),    1),
30293     (('a', '=', '2:1.2'),       ('a', '>=', '2:1.2'),   1),
30294     (('a', '=', '2:1.2'),       ('a', '<=', '2:1.2'),   1),
30295     (('a', '=', '2:1.2'),       ('a', '<', '2:1.2'),    0),
30296     (('a', '=', '2:1.2'),       ('a', '>', '2:1.2'),    0),
30297     (('a', '=', '2:1.2'),       ('a', '<>', '2:1.2'),   0),
30298
30299     # Simple, obvious version comparisons with provide ranges
30300     (('a', '>', '1.2'),         ('a', '=', '1.2'),      0),
30301     (('a', '>', '1.2'),         ('a', '>=', '1.2'),     1),
30302     (('a', '>', '1.2'),         ('a', '<=', '1.2'),     0),
30303     (('a', '>', '1.2'),         ('a', '<', '1.2'),      0),
30304     (('a', '>', '1.2'),         ('a', '>', '1.2'),      1),
30305     (('a', '>', '1.2'),         ('a', '<>', '1.2'),     1),
30306
30307     (('a', '<', '1.2'),         ('a', '=', '1.2'),      0),
30308     (('a', '<', '1.2'),         ('a', '>=', '1.2'),     0),
30309     (('a', '<', '1.2'),         ('a', '<=', '1.2'),     1),
30310     (('a', '<', '1.2'),         ('a', '<', '1.2'),      1),
30311     (('a', '<', '1.2'),         ('a', '>', '1.2'),      0),
30312     (('a', '<', '1.2'),         ('a', '<>', '1.2'),     1),
30313
30314     (('a', '>=', '1.2'),        ('a', '=', '1.2'),      1),
30315     (('a', '>=', '1.2'),        ('a', '>=', '1.2'),     1),
30316     (('a', '>=', '1.2'),        ('a', '<=', '1.2'),     1),
30317     (('a', '>=', '1.2'),        ('a', '<', '1.2'),      0),
30318     (('a', '>=', '1.2'),        ('a', '>', '1.2'),      1),
30319     (('a', '>=', '1.2'),        ('a', '<>', '1.2'),     1),
30320
30321     (('a', '<=', '1.2'),        ('a', '=', '1.2'),      1),
30322     (('a', '<=', '1.2'),        ('a', '>=', '1.2'),     1),
30323     (('a', '<=', '1.2'),        ('a', '<=', '1.2'),     1),
30324     (('a', '<=', '1.2'),        ('a', '<', '1.2'),      1),
30325     (('a', '<=', '1.2'),        ('a', '>', '1.2'),      0),
30326     (('a', '<=', '1.2'),        ('a', '<>', '1.2'),     1),
30327
30328     (('a', '<>', '1.2'),        ('a', '=', '1.2'),      0),
30329     (('a', '<>', '1.2'),        ('a', '>=', '1.2'),     1),
30330     (('a', '<>', '1.2'),        ('a', '<=', '1.2'),     1),
30331     (('a', '<>', '1.2'),        ('a', '<', '1.2'),      1),
30332     (('a', '<>', '1.2'),        ('a', '>', '1.2'),      1),
30333     (('a', '<>', '1.2'),        ('a', '<>', '1.2'),     1),
30334
30335     # Missing release should be considered "any release will do"
30336     # but this is not always so (the cases with "???")
30337     (('a', '=', '1.2-1'),       ('a', '=', '1.2'),      1),
30338     (('a', '=', '1.2-1'),       ('a', '>=', '1.2'),     1),
30339     (('a', '=', '1.2-1'),       ('a', '<=', '1.2'),     1),
30340     (('a', '=', '1.2-1'),       ('a', '<', '1.2'),      0),
30341     (('a', '=', '1.2-1'),       ('a', '>', '1.2'),      0),
30342     (('a', '=', '1.2-1'),       ('a', '<>', '1.2'),     0),
30343
30344     (('a', '>', '1.2-1'),       ('a', '=', '1.2'),      1),
30345     (('a', '>', '1.2-1'),       ('a', '>=', '1.2'),     1),
30346     (('a', '>', '1.2-1'),       ('a', '<=', '1.2'),     1),
30347     (('a', '>', '1.2-1'),       ('a', '<', '1.2'),      0),
30348     (('a', '>', '1.2-1'),       ('a', '>', '1.2'),      1),
30349     (('a', '>', '1.2-1'),       ('a', '<>', '1.2'),     1),
30350
30351     (('a', '<', '1.2-1'),       ('a', '=', '1.2'),      1),
30352     (('a', '<', '1.2-1'),       ('a', '>=', '1.2'),     1),
30353     (('a', '<', '1.2-1'),       ('a', '<=', '1.2'),     1),
30354     (('a', '<', '1.2-1'),       ('a', '<', '1.2'),      1),
30355     (('a', '<', '1.2-1'),       ('a', '>', '1.2'),      0),
30356     (('a', '<', '1.2-1'),       ('a', '<>', '1.2'),     1),
30357
30358     (('a', '>=', '1.2-1'),      ('a', '=', '1.2'),      1),
30359     (('a', '>=', '1.2-1'),      ('a', '>=', '1.2'),     1),
30360     (('a', '>=', '1.2-1'),      ('a', '<=', '1.2'),     1),
30361     (('a', '>=', '1.2-1'),      ('a', '<', '1.2'),      0),
30362     (('a', '>=', '1.2-1'),      ('a', '>', '1.2'),      1),
30363     (('a', '>=', '1.2-1'),      ('a', '<>', '1.2'),     1),
30364
30365     (('a', '<=', '1.2-1'),      ('a', '=', '1.2'),      1),
30366     (('a', '<=', '1.2-1'),      ('a', '>=', '1.2'),     1),
30367     (('a', '<=', '1.2-1'),      ('a', '<=', '1.2'),     1),
30368     (('a', '<=', '1.2-1'),      ('a', '<', '1.2'),      1),
30369     (('a', '<=', '1.2-1'),      ('a', '>', '1.2'),      0),
30370     (('a', '<=', '1.2-1'),      ('a', '<>', '1.2'),     1),
30371
30372     (('a', '<>', '1.2-1'),      ('a', '=', '1.2'),      1),
30373     (('a', '<>', '1.2-1'),      ('a', '>=', '1.2'),     1),
30374     (('a', '<>', '1.2-1'),      ('a', '<=', '1.2'),     1),
30375     (('a', '<>', '1.2-1'),      ('a', '<', '1.2'),      1),
30376     (('a', '<>', '1.2-1'),      ('a', '>', '1.2'),      1),
30377     (('a', '<>', '1.2-1'),      ('a', '<>', '1.2'),     1),
30378
30379     (('a', '=', '1.2'),         ('a', '=', '1.2-1'),    1),
30380     (('a', '=', '1.2'),         ('a', '>=', '1.2-1'),   1),
30381     (('a', '=', '1.2'),         ('a', '<=', '1.2-1'),   1),
30382     (('a', '=', '1.2'),         ('a', '<', '1.2-1'),    1),
30383     (('a', '=', '1.2'),         ('a', '>', '1.2-1'),    1),
30384     (('a', '=', '1.2'),         ('a', '<>', '1.2-1'),   1),
30385
30386     (('a', '>', '1.2'),         ('a', '=', '1.2-1'),    0),
30387     (('a', '>', '1.2'),         ('a', '>=', '1.2-1'),   1),
30388     (('a', '>', '1.2'),         ('a', '<=', '1.2-1'),   0),
30389     (('a', '>', '1.2'),         ('a', '<', '1.2-1'),    0),
30390     (('a', '>', '1.2'),         ('a', '>', '1.2-1'),    1),
30391     (('a', '>', '1.2'),         ('a', '<>', '1.2-1'),   1),
30392
30393     (('a', '<', '1.2'),         ('a', '=', '1.2-1'),    0),
30394     (('a', '<', '1.2'),         ('a', '>=', '1.2-1'),   0),
30395     (('a', '<', '1.2'),         ('a', '<=', '1.2-1'),   1),
30396     (('a', '<', '1.2'),         ('a', '<', '1.2-1'),    1),
30397     (('a', '<', '1.2'),         ('a', '>', '1.2-1'),    0),
30398     (('a', '<', '1.2'),         ('a', '<>', '1.2-1'),   1),
30399
30400     (('a', '>=', '1.2'),        ('a', '=', '1.2-1'),    1),
30401     (('a', '>=', '1.2'),        ('a', '>=', '1.2-1'),   1),
30402     (('a', '>=', '1.2'),        ('a', '<=', '1.2-1'),   1),
30403     (('a', '>=', '1.2'),        ('a', '<', '1.2-1'),    1),
30404     (('a', '>=', '1.2'),        ('a', '>', '1.2-1'),    1),
30405     (('a', '>=', '1.2'),        ('a', '<>', '1.2-1'),   1),
30406
30407     (('a', '<=', '1.2'),        ('a', '=', '1.2-1'),    1),
30408     (('a', '<=', '1.2'),        ('a', '>=', '1.2-1'),   1),
30409     (('a', '<=', '1.2'),        ('a', '<=', '1.2-1'),   1),
30410     (('a', '<=', '1.2'),        ('a', '<', '1.2-1'),    1),
30411     (('a', '<=', '1.2'),        ('a', '>', '1.2-1'),    1),
30412     (('a', '<=', '1.2'),        ('a', '<>', '1.2-1'),   1),
30413
30414     (('a', '<>', '1.2'),        ('a', '=', '1.2-1'),    0),
30415     (('a', '<>', '1.2'),        ('a', '>=', '1.2-1'),   1),
30416     (('a', '<>', '1.2'),        ('a', '<=', '1.2-1'),   1),
30417     (('a', '<>', '1.2'),        ('a', '<', '1.2-1'),    1),
30418     (('a', '<>', '1.2'),        ('a', '>', '1.2-1'),    1),
30419     (('a', '<>', '1.2'),        ('a', '<>', '1.2-1'),   1),
30420 ]
30421
30422 ms = ['no match', 'match']
30423
30424 myprint() # dumb kludge to fixup expected output
30425 for p, r, res in tests:
30426     d1 = rpm.ds(p, 'provides')
30427     d2 = rpm.ds(r, 'requires')
30428     match = d1.Compare(d2)
30429     if match != res:
30430         myprint('FAILED: %s with %s: %s' % (d1.DNEVR(), d2.DNEVR(),ms[res]))
30431
30432 EOF
30433 python test.py
30434
30435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30436 at_status=$? at_failed=false
30437 $at_check_filter
30438 at_fn_diff_devnull "$at_stderr" || at_failed=:
30439 echo >>"$at_stdout"; $as_echo "
30440 " | \
30441   $at_diff - "$at_stdout" || at_failed=:
30442 at_fn_check_status 0 $at_status "$at_srcdir/rpmdepmatch.at:4"
30443 $at_failed && at_fn_log_failure
30444 $at_traceon; }
30445
30446
30447   set +x
30448   $at_times_p && times >"$at_times_file"
30449 ) 5>&1 2>&1 7>&- | eval $at_tee_pipe
30450 read at_status <"$at_status_file"
30451 #AT_STOP_411