2 # Generated from local.at by GNU Autoconf 2.69.
4 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in #(
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
43 as_echo_n='print -rn --'
44 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
52 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 expr "X$arg" : "X\\(.*\\)$as_nl";
58 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
60 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 as_echo_n='sh -c $as_echo_n_body as_echo'
66 as_echo='sh -c $as_echo_body as_echo'
69 # The user is always right.
70 if test "${PATH_SEPARATOR+set}" != set; then
72 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
73 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
86 # Find who we are. Look in the path if we contain no directory separator.
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 test -z "$as_dir" && as_dir=.
95 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
106 if test ! -f "$as_myself"; then
107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 :
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+\"\$@\"}'='\"\$@\"'
141 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
163 exitcode=1; echo positional parameters were not saved.
165 test x\$exitcode = x0 || 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 :
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 test -z "$as_dir" && as_dir=.
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 :
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
210 if test "x$CONFIG_SHELL" != x; then :
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.
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
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."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332 # as_fn_executable_p FILE
333 # -----------------------
334 # Test if FILE is an executable regular file.
335 as_fn_executable_p ()
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
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
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 :
370 as_val=`expr "$@" || test $? -eq 1`
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.
382 as_status=$1; test $as_status -eq 0 && as_status=1
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
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 as_me=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
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
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. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
520 as_executable_p=as_fn_executable_p
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'"
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'"
532 SHELL=${CONFIG_SHELL-/bin/sh}
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.
541 (times) >/dev/null 2>&1 && at_times_p=:
543 # CLI Arguments to pass to the debugging scripts.
547 # Shall we be verbose? ':' means no, empty means yes.
550 # Running several jobs in parallel, 0 means as many as test groups.
554 at_check_filter_trace=:
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.
559 # Display help message?
561 # Display the version message?
569 # Whether to rerun failed tests.
571 # Whether a write failure occurred
574 # The directory we run the suite in. Default to . if no -C option.
576 # An absolute reference to this testsuite script.
578 [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
579 * ) at_myself=$at_dir/$as_myself ;;
581 # Whether -C is in effect.
584 # Whether to enable colored test results.
586 # List of the tested programs.
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
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;
1007 # List of the all the test groups.
1008 at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
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 ()
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
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`' ;;
1037 # If the previous option needs an argument, assign it.
1038 if test -n "$at_prev"; then
1039 at_option=$at_prev=$at_option
1044 *=?*) at_optarg=`expr "X$at_option" : '[^=]*=\(.*\)'` ;;
1048 # Accept the important Cygnus configure options, so we can diagnose typos.
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" ;;
1090 at_verbose=; at_quiet=:
1096 at_check_filter_trace=at_fn_filter_trace
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"
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"
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"
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
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"
1140 # Directory selection.
1147 if test x- = "x$at_dir" ; then
1152 # Parallel execution.
1156 --jobs=* | -j[0-9]* )
1157 if test -n "$at_optarg"; then
1160 at_jobs=`expr X$at_option : 'X-j\(.*\)'`
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" ;;
1173 at_groups_selected=$at_help_all
1185 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
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[ ;]"`
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"
1201 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$at_envvar'" ;;
1207 at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
1208 # Export now, but save eval for later and for debug scripts.
1210 as_fn_append at_debug_args " $at_envvar='$at_value'"
1213 *) $as_echo "$as_me: invalid option: $at_option" >&2
1214 $as_echo "Try \`$0 --help' for more information." >&2
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"
1225 # The file containing the suite.
1226 at_suite_log=$at_dir/$as_me.log
1228 # Selected test groups.
1229 if test -z "$at_groups$at_recheck"; then
1230 at_groups=$at_groups_all
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
1237 /^Unexpected passes:$/,/^## Detailed failed tests/{
1238 s/^[ ]*\([1-9][0-9]*\):.*/\1/p
1240 /^## Detailed failed tests/q
1242 as_fn_append at_groups "$at_oldfails$as_nl"
1244 # Sort the tests, removing duplicates.
1245 at_groups=`$as_echo "$at_groups" | sort -nu | sed '/^$/d'`
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'`
1256 at_red= at_grn= at_lgn= at_blu= at_std=
1261 cat <<_ATEOF || at_write_fail=1
1262 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
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.
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:
1273 $ $0 AUTOTEST_PATH=bin
1275 is equivalent to the following, assuming the source directory is /src/foo-1.0:
1277 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH $0
1279 cat <<_ATEOF || at_write_fail=1
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
1287 cat <<_ATEOF || at_write_fail=1
1291 change to directory DIR before starting
1292 --color[=never|auto|always]
1293 enable colored test results on terminal, or always
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
1307 cat <<_ATEOF || at_write_fail=1
1309 Report bugs to <rpm-maint@lists.rpm.org>.
1316 cat <<_ATEOF || at_write_fail=1
1317 rpm 4.14.1 test suite test groups:
1319 NUM: FILE-NAME:LINE TEST-GROUP-NAME
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 != ";" {
1331 if (selected[$ 1]) {
1332 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
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) {
1343 line = indent " " a[i]
1346 line = line " " a[i]
1354 }' || at_write_fail=1
1357 if $at_version_p; then
1358 $as_echo "$as_me (rpm 4.14.1)" &&
1359 cat <<\_ATEOF || at_write_fail=1
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.
1368 # Should we print banners? Yes if more than one test is run.
1369 case $at_groups in #(
1371 at_print_banners=: ;; #(
1372 * ) at_print_banners=false ;;
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"
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"
1446 # Load the config files for any default variable assignments.
1447 for at_file in atconfig atlocal
1449 test -r $at_file || continue
1450 . ./$at_file || as_fn_error $? "invalid content: $at_file"
1453 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1454 : "${at_top_build_prefix=$at_top_builddir}"
1456 # Perform any assignments requested during argument parsing.
1457 eval "$at_debug_args"
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
1463 for at_dir_var in srcdir top_srcdir top_build_prefix
1465 eval at_val=\$at_$at_dir_var
1467 [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1468 *) at_prefix=../../ ;;
1470 eval "$at_dir_var=\$at_prefix\$at_val"
1474 ## -------------------- ##
1475 ## Directory structure. ##
1476 ## -------------------- ##
1478 # This is the set of directories and files used by this script
1479 # (non-literals are capitalized):
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
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
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"
1523 # Don't take risks: use only absolute directories in PATH.
1525 # For stand-alone test suites (ie. atconfig was not found),
1526 # AUTOTEST_PATH is relative to `.'.
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"`
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 for as_dir in $AUTOTEST_PATH $PATH
1537 test -z "$as_dir" && as_dir=.
1538 test -n "$at_path" && as_fn_append at_path $PATH_SEPARATOR
1541 as_fn_append at_path "$as_dir"
1544 if test -z "$at_top_build_prefix"; then
1545 # Stand-alone test suite.
1546 as_fn_append at_path "$as_dir"
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"
1558 # Now build and simplify PATH.
1560 # There might be directories that don't exist, but don't redirect
1561 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $at_path
1567 test -z "$as_dir" && as_dir=.
1568 test -d "$as_dir" || continue
1570 [\\/]* | ?:[\\/]* ) ;;
1571 * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
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" ;;
1584 # Setting up the FDs.
1588 # 5 is the log file. Not to be overwritten if `-d'.
1589 if $at_debug_p; then
1590 at_suite_log=/dev/null
1594 exec 5>>"$at_suite_log"
1597 $as_echo "## ---------------------- ##
1598 ## rpm 4.14.1 test suite. ##
1599 ## ---------------------- ##"
1601 $as_echo "## ---------------------- ##
1602 ## rpm 4.14.1 test suite. ##
1603 ## ---------------------- ##"
1606 $as_echo "$as_me: command line was:"
1607 $as_echo " \$ $0 $at_cli_args"
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 "## ---------- ##
1617 sed 's/^/| /;10q' "$at_top_srcdir/ChangeLog"
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`
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`
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`
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 $as_echo "PATH: $as_dir"
1658 # Contents of the config files.
1659 for at_file in atconfig atlocal
1661 test -r $at_file || continue
1662 $as_echo "$as_me: $at_file:"
1663 sed 's/^/| /' $at_file
1669 ## ------------------------- ##
1670 ## Autotest shell functions. ##
1671 ## ------------------------- ##
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.
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
1686 $as_echo "$as_nl$at_banner_text$as_nl"
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 ()
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"
1702 # at_fn_check_prepare_trace LINE
1703 # ------------------------------
1704 # Perform AT_CHECK preparations for the command at LINE for a traceable
1706 at_fn_check_prepare_trace ()
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"
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 ()
1721 at_fn_check_prepare_notrace 'an embedded newline' "$2" ;;
1723 at_fn_check_prepare_trace "$2" ;;
1727 # at_fn_filter_trace
1728 # ------------------
1729 # Remove the lines in the file "$at_stderr" generated by "set -x" and print
1731 at_fn_filter_trace ()
1733 mv "$at_stderr" "$at_stder1"
1734 grep '^ *+' "$at_stder1" >&2
1735 grep -v '^ *+' "$at_stder1" >"$at_stderr"
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 ()
1745 do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1746 echo 1 > "$at_status_file"
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.
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;;
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 ()
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"
1782 # at_fn_diff_devnull FILE
1783 # -----------------------
1784 # Emit a diff between /dev/null and FILE. Uses "test -s" to avoid useless diff
1786 at_fn_diff_devnull ()
1788 test -s "$1" || return 0
1789 $at_diff "$at_devnull" "$1"
1794 # Parse out test NUMBER from the tail of this file.
1797 eval at_sed=\$at_sed$1
1798 sed "$at_sed" "$at_myself" > "$at_test_source"
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 ()
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+\"\$@\"}" &&
1813 } >"$at_group_dir/run" &&
1814 chmod +x "$at_group_dir/run"
1817 ## -------------------------------- ##
1818 ## End of autotest shell functions. ##
1819 ## -------------------------------- ##
1821 $as_echo "## ---------------- ##
1822 ## Tested programs. ##
1823 ## ---------------- ##"
1827 # Report what programs are being tested.
1828 for at_program in : $at_tested
1830 test "$at_program" = : && continue
1832 [\\/]* | ?:[\\/]* ) $at_program_=$at_program ;;
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 test -z "$as_dir" && as_dir=.
1839 test -f "$as_dir/$at_program" && break
1843 at_program_=$as_dir/$at_program ;;
1845 if test -f "$at_program_"; then
1847 $as_echo "$at_srcdir/local.at:36: $at_program_ --version"
1848 "$at_program_" --version </dev/null
1852 as_fn_error $? "cannot find $at_program" "$LINENO" 5
1857 $as_echo "## ------------------ ##
1858 ## Running the tests. ##
1859 ## ------------------ ##"
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
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
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
1874 at_devnull=$at_suite_dir/devnull
1878 # Use `diff -u' when possible.
1879 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1886 # Get the last needed group.
1887 for at_group in : $at_groups; do :; done
1889 # Extract the start and end lines of each test group at the tail
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"
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
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
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
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
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.
1932 # at_fn_group_prepare
1933 # -------------------
1934 # Prepare for running a test group.
1935 at_fn_group_prepare ()
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
1952 # Be sure to come back to the top test directory.
1955 # Clearly separate the test groups when verbose.
1956 $at_first || $at_verbose echo
1958 at_group_normalized=$at_group
1961 case $at_group_normalized in #(
1962 '"$at_format"'*) break;;
1964 at_group_normalized=0$at_group_normalized
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"/.??*
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
1984 echo 0 > "$at_status_file"
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"'
1991 at_tee_pipe='cat >> "$at_group_log"'
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 ()
2002 test -n "$5" && at_fn_banner $5
2005 [0-9]) at_desc_line=" $1: ";;
2006 [0-9][0-9]) at_desc_line=" $1: " ;;
2007 *) at_desc_line="$1: " ;;
2009 as_fn_append at_desc_line "$3$4"
2010 $at_quiet $as_echo_n "$at_desc_line"
2011 echo "# -*- compilation -*-" >> "$at_group_log"
2014 # at_fn_group_postprocess
2015 # -----------------------
2016 # Perform cleanup after running a test group.
2017 at_fn_group_postprocess ()
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.
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>.
2029 $as_echo "$at_setup_line" >"$at_check_line_file"
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
2036 at_msg="UNEXPECTED PASS"
2038 at_errexit=$at_errexit_p
2048 at_msg='skipped ('`cat "$at_check_line_file"`')'
2054 at_msg='FAILED ('`cat "$at_check_line_file"`')'
2056 at_errexit=$at_errexit_p
2060 at_msg='expected failure ('`cat "$at_check_line_file"`')'
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"
2071 # Make sure there is a separator even with long titles.
2072 $as_echo " $at_color$at_msg$at_std"
2074 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
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"
2085 $as_echo "$at_log_msg" >> "$at_group_log"
2086 $as_echo "$at_log_msg" >&5
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"
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"
2100 rm -f "$at_test_source"
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"
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"
2125 if (set -m && set +m && set +b) >/dev/null 2>&1; then
2127 at_job_control_on='set -m' at_job_control_off='set +m' at_job_group=-
2129 at_job_control_on=: at_job_control_off=: at_job_group=
2132 for at_signal in 1 2 15; do
2133 trap 'set +x; set +e
2135 at_signal='"$at_signal"'
2136 echo stop > "$at_stop_file"
2139 for at_pgid in `jobs -p 2>/dev/null`; do
2140 at_pgids="$at_pgids $at_job_group$at_pgid"
2142 test -z "$at_pgids" || kill -$at_signal $at_pgids 2>/dev/null
2144 if test "$at_jobs" -eq 1 || test -z "$at_verbose"; then
2147 at_signame=`kill -l $at_signal 2>&1 || echo $at_signal`
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
2156 rm -f "$at_stop_file"
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
2164 # FIFO job dispatcher.
2167 for at_pid in `jobs -p`; do
2168 at_pids="$at_pids $at_job_group$at_pid"
2170 if test -n "$at_pids"; then
2172 test "${TMOUT+set}" = set && at_sig=STOP
2173 kill -$at_sig $at_pids 2>/dev/null
2176 test -z "$at_pids" || kill -CONT $at_pids 2>/dev/null' TSTP
2179 # Turn jobs into a list of numbers, starting from 1.
2180 at_joblist=`$as_echo "$at_groups" | sed -n 1,${at_jobs}p`
2184 for at_group in $at_groups; do
2185 $at_job_control_on 2>/dev/null
2187 # Start one test group.
2190 exec 7>"$at_job_fifo"
2194 trap 'set +x; set +e
2196 echo stop > "$at_stop_file"
2198 as_fn_exit 141' PIPE
2200 if cd "$at_group_dir" &&
2201 at_fn_test $at_group &&
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;}
2208 at_fn_group_postprocess
2214 exec 6<"$at_job_fifo" 7>"$at_job_fifo"
2216 shift # Consume one token.
2217 if test $# -gt 0; then :; else
2218 read at_token <&6 || break
2221 test -f "$at_stop_file" && break
2224 # Read back the remaining ($at_jobs - 1) tokens.
2227 if test $# -gt 0; then
2237 # Run serially, avoid forks and other potential surprises.
2238 for at_group in $at_groups; do
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;}
2247 at_fn_group_postprocess
2248 test -f "$at_stop_file" && break
2253 # Wrap up the test suite with summary statistics.
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,,'`
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=$#
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
2276 # Back to the top directory.
2278 rm -rf "$at_helper_dir"
2280 # Compute the duration of the suite.
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
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
2297 $as_echo "## ------------- ##
2299 ## ------------- ##"
2303 $as_echo "## ------------- ##
2305 ## ------------- ##"
2309 if test $at_run_count = 1; then
2313 at_result="$at_run_count tests"
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"
2320 at_result="$at_result $at_were run, one failed"
2322 at_result="$at_result unexpectedly and inhibited subsequent tests."
2325 # Don't you just love exponential explosion of the number of cases?
2327 case $at_xpass_count:$at_fail_count:$at_xfail_count in
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 ;;
2332 # Some unexpected failures
2333 0:*:0) at_result="$at_result $at_were run,
2334 $at_fail_count failed unexpectedly." ;;
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)." ;;
2342 # No unexpected failures, but some xpasses
2343 *:0:*) at_result="$at_result $at_were run,
2344 $at_xpass_count passed unexpectedly." ;;
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)." ;;
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)." ;;
2361 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
2362 at_result="All $at_result"
2366 # Now put skips in the mix.
2367 case $at_skip_count in
2369 1) at_result="$at_result
2370 1 test was skipped." ;;
2371 *) at_result="$at_result
2372 $at_skip_count tests were skipped." ;;
2375 if test $at_unexpected_count = 0; then
2376 echo "$at_color$at_result$at_std"
2377 echo "$at_result" >&5
2379 echo "${at_color}ERROR: $at_result$at_std" >&2
2380 echo "ERROR: $at_result" >&5
2383 $as_echo "## ------------------------ ##
2384 ## Summary of the failures. ##
2385 ## ------------------------ ##"
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
2393 if test $at_skip_count != 0; then
2394 echo "Skipped tests:"
2395 $SHELL "$at_myself" $at_skip_list --list
2398 if test $at_xpass_count != 0; then
2399 echo "Unexpected passes:"
2400 $SHELL "$at_myself" $at_xpass_list --list
2403 if test $at_fail_count != 0; then
2404 $as_echo "## ---------------------- ##
2405 ## Detailed failed tests. ##
2406 ## ---------------------- ##"
2408 for at_group in $at_fail_list
2410 at_group_normalized=$at_group
2413 case $at_group_normalized in #(
2414 '"$at_format"'*) break;;
2416 at_group_normalized=0$at_group_normalized
2419 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
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 ##
2428 sed 's/^/| /' ${at_top_build_prefix}config.log
2433 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2434 ## $as_me.log was created. ##
2438 if $at_debug_p; then
2439 at_msg='per-test log files'
2441 at_msg="\`${at_testdir+${at_testdir}/}$as_me.log'"
2443 $as_echo "Please send $at_msg and all information you think might help:
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}
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'.
2461 at_fn_group_banner 1 'rpmgeneral.at:22' \
2462 "rpm --version" " " 1
2465 $as_echo "1. $at_setup_line: testing $at_desc ..."
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
2476 at_fn_diff_devnull "$at_stderr" || at_failed=:
2477 echo >>"$at_stdout"; $as_echo "RPM version 4.14.1
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
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"
2490 at_fn_group_banner 2 'rpmgeneral.at:31' \
2491 "rpmbuild --version" " " 1
2494 $as_echo "2. $at_setup_line: testing $at_desc ..."
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
2505 at_fn_diff_devnull "$at_stderr" || at_failed=:
2506 echo >>"$at_stdout"; $as_echo "RPM version 4.14.1
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
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"
2519 at_fn_group_banner 3 'rpmgeneral.at:40' \
2520 "rpm --showrc" " " 1
2523 $as_echo "3. $at_setup_line: testing $at_desc ..."
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
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
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"
2546 at_fn_group_banner 4 'rpmgeneral.at:50' \
2547 "rpm --querytags" " " 1
2550 $as_echo "4. $at_setup_line: testing $at_desc ..."
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
2561 at_fn_diff_devnull "$at_stderr" || at_failed=:
2562 echo >>"$at_stdout"; $as_echo "ARCH
2633 FILETRIGGERPRIORITIES
2634 FILETRIGGERSCRIPTFLAGS
2635 FILETRIGGERSCRIPTPROG
2775 TRANSFILETRIGGERCONDS
2776 TRANSFILETRIGGERFLAGS
2777 TRANSFILETRIGGERINDEX
2778 TRANSFILETRIGGERNAME
2779 TRANSFILETRIGGERPRIORITIES
2780 TRANSFILETRIGGERSCRIPTFLAGS
2781 TRANSFILETRIGGERSCRIPTPROG
2782 TRANSFILETRIGGERSCRIPTS
2783 TRANSFILETRIGGERTYPE
2784 TRANSFILETRIGGERVERSION
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
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"
2816 at_fn_group_banner 5 'rpmio.at:21' \
2817 "SIGPIPE from install scriptlet" " " 2
2820 $as_echo "5. $at_setup_line: testing $at_desc ..."
2825 $as_echo "$at_srcdir/rpmio.at:23:
2827 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
2830 runroot rpm --initdb
2833 runroot rpmbuild --quiet -bb /data/SPECS/sigpipe.spec
2834 runroot rpm -U --nodeps /build/RPMS/noarch/sigpipe-1.0-1.noarch.rpm
2836 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmio.at:23"
2839 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
2842 runroot rpm --initdb
2845 runroot rpmbuild --quiet -bb /data/SPECS/sigpipe.spec
2846 runroot rpm -U --nodeps /build/RPMS/noarch/sigpipe-1.0-1.noarch.rpm
2848 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2849 at_status=$? at_failed=false
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
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"
2863 at_fn_group_banner 6 'rpmquery.at:22' \
2864 "rpm --qf -p *.i386.rpm" " " 3
2867 $as_echo "6. $at_setup_line: testing $at_desc ..."
2872 $as_echo "$at_srcdir/rpmquery.at:24:
2874 -q --qf \"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\\n\" \\
2875 -p /data/RPMS/hello-1.0-1.i386.rpm
2877 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:24"
2880 -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" \
2881 -p /data/RPMS/hello-1.0-1.i386.rpm
2883 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2884 at_status=$? at_failed=false
2886 echo stderr:; cat "$at_stderr"
2887 echo >>"$at_stdout"; $as_echo "hello-1.0-1.i386
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
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"
2900 at_fn_group_banner 7 'rpmquery.at:36' \
2901 "rpm --qf -p *.src.rpm" " " 3
2904 $as_echo "7. $at_setup_line: testing $at_desc ..."
2909 $as_echo "$at_srcdir/rpmquery.at:38:
2911 -q --qf \"%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\\n\" \\
2912 -p /data/SRPMS/hello-1.0-1.src.rpm
2914 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:38"
2917 -q --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" \
2918 -p /data/SRPMS/hello-1.0-1.src.rpm
2920 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2921 at_status=$? at_failed=false
2923 echo stderr:; cat "$at_stderr"
2924 echo >>"$at_stdout"; $as_echo "hello-1.0-1.i386
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
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"
2937 at_fn_group_banner 8 'rpmquery.at:50' \
2938 "rpm -ql -p *.src.rpm" " " 3
2941 $as_echo "8. $at_setup_line: testing $at_desc ..."
2946 $as_echo "$at_srcdir/rpmquery.at:52:
2949 -p /data/SRPMS/hello-1.0-1.src.rpm
2951 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:52"
2955 -p /data/SRPMS/hello-1.0-1.src.rpm
2957 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2958 at_status=$? at_failed=false
2960 echo stderr:; cat "$at_stderr"
2961 echo >>"$at_stdout"; $as_echo "hello-1.0.tar.gz
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
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"
2975 at_fn_group_banner 9 'rpmquery.at:65' \
2979 $as_echo "9. $at_setup_line: testing $at_desc ..."
2984 $as_echo "$at_srcdir/rpmquery.at:67:
2986 -q --qf \"%{name}\" /data/SPECS/hello.spec
2988 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:67"
2991 -q --qf "%{name}" /data/SPECS/hello.spec
2993 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
2994 at_status=$? at_failed=false
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
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"
3009 at_fn_group_banner 10 'rpmquery.at:77' \
3010 "rpm -ql -p *.i386.rpm" " " 3
3013 $as_echo "10. $at_setup_line: testing $at_desc ..."
3018 $as_echo "$at_srcdir/rpmquery.at:79:
3021 -p /data/RPMS/hello-1.0-1.i386.rpm
3023 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:79"
3027 -p /data/RPMS/hello-1.0-1.i386.rpm
3029 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3030 at_status=$? at_failed=false
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
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
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"
3048 at_fn_group_banner 11 'rpmquery.at:94' \
3049 "rpm -qp <manifest>" " " 3
3052 $as_echo "11. $at_setup_line: testing $at_desc ..."
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
3063 runroot rpm -qp --qf \"%{nvr}\\n\" /query.mft
3065 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmquery.at:96"
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
3072 runroot rpm -qp --qf "%{nvr}\n" /query.mft
3074 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3075 at_status=$? at_failed=false
3077 at_fn_diff_devnull "$at_stderr" || at_failed=:
3078 echo >>"$at_stdout"; $as_echo "hello-1.0-1
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
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"
3093 at_fn_group_banner 12 'rpmquery.at:115' \
3094 "rpm -q --scripts -p *.i386.rpm" " " 3
3097 $as_echo "12. $at_setup_line: testing $at_desc ..."
3102 $as_echo "$at_srcdir/rpmquery.at:117:
3105 -p /data/RPMS/hello-1.0-1.i386.rpm
3107 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:117"
3111 -p /data/RPMS/hello-1.0-1.i386.rpm
3113 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3114 at_status=$? at_failed=false
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
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
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"
3133 at_fn_group_banner 13 'rpmquery.at:136' \
3134 "rpm -q on installed package" " " 3
3137 $as_echo "13. $at_setup_line: testing $at_desc ..."
3143 $as_echo "$at_srcdir/rpmquery.at:139:
3145 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
3148 runroot rpm --initdb
3152 --noscripts --nodeps --ignorearch --relocate=/usr=/check \\
3153 -i /data/RPMS/hello-1.0-1.ppc64.rpm
3155 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmquery.at:139"
3158 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
3161 runroot rpm --initdb
3165 --noscripts --nodeps --ignorearch --relocate=/usr=/check \
3166 -i /data/RPMS/hello-1.0-1.ppc64.rpm
3168 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3169 at_status=$? at_failed=false
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
3178 # check common NVRA combinations
3180 $as_echo "$at_srcdir/rpmquery.at:150:
3182 -q hello hello-1.0 hello-1.0-1 \\
3183 hello.ppc64 hello-1.0.ppc64 hello-1.0-1.ppc64
3185 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:150"
3188 -q hello hello-1.0 hello-1.0-1 \
3189 hello.ppc64 hello-1.0.ppc64 hello-1.0-1.ppc64
3191 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3192 at_status=$? at_failed=false
3194 echo stderr:; cat "$at_stderr"
3195 echo >>"$at_stdout"; $as_echo "hello-1.0-1.ppc64
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
3210 $as_echo "$at_srcdir/rpmquery.at:166:
3214 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:166"
3219 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3220 at_status=$? at_failed=false
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
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
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"
3239 at_fn_group_banner 14 'rpmquery.at:180' \
3240 "integer array query" " " 3
3243 $as_echo "14. $at_setup_line: testing $at_desc ..."
3248 $as_echo "$at_srcdir/rpmquery.at:182:
3250 --queryformat=\"[%{filemodes}\\n]\" \\
3251 -qp /data/RPMS/hello-1.0-1.i386.rpm
3253 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:182"
3256 --queryformat="[%{filemodes}\n]" \
3257 -qp /data/RPMS/hello-1.0-1.i386.rpm
3259 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3260 at_status=$? at_failed=false
3262 at_fn_diff_devnull "$at_stderr" || at_failed=:
3263 echo >>"$at_stdout"; $as_echo "33257
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
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"
3278 at_fn_group_banner 15 'rpmquery.at:196' \
3279 "formatted filesbypkg query" " " 3
3282 $as_echo "15. $at_setup_line: testing $at_desc ..."
3287 $as_echo "$at_srcdir/rpmquery.at:198:
3289 --queryformat=\"[%-10{=NAME} %{FILENAMES}\\n]\" \\
3290 -qp /data/RPMS/hello-1.0-1.i386.rpm
3292 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:198"
3295 --queryformat="[%-10{=NAME} %{FILENAMES}\n]" \
3296 -qp /data/RPMS/hello-1.0-1.i386.rpm
3298 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3299 at_status=$? at_failed=false
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
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
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"
3317 at_fn_group_banner 16 'rpmquery.at:212' \
3318 "hex formatted integer array extension query" " " 3
3321 $as_echo "16. $at_setup_line: testing $at_desc ..."
3326 $as_echo "$at_srcdir/rpmquery.at:214:
3328 --queryformat=\"[%5{longfilesizes:hex}\\n]\" \\
3329 -qp /data/RPMS/hello-1.0-1.i386.rpm
3331 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:214"
3334 --queryformat="[%5{longfilesizes:hex}\n]" \
3335 -qp /data/RPMS/hello-1.0-1.i386.rpm
3337 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3338 at_status=$? at_failed=false
3340 at_fn_diff_devnull "$at_stderr" || at_failed=:
3341 echo >>"$at_stdout"; $as_echo " b40
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
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"
3356 at_fn_group_banner 17 'rpmquery.at:228' \
3357 "base64 extension query" " " 3
3360 $as_echo "17. $at_setup_line: testing $at_desc ..."
3365 $as_echo "$at_srcdir/rpmquery.at:230:
3367 --queryformat=\"%{pkgid:base64}\" \\
3368 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3370 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:230"
3373 --queryformat="%{pkgid:base64}" \
3374 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3376 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3377 at_status=$? at_failed=false
3379 at_fn_diff_devnull "$at_stderr" || at_failed=:
3380 echo >>"$at_stdout"; $as_echo "qt8W635v5FKy1pILrW+0uw==
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
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"
3393 at_fn_group_banner 18 'rpmquery.at:241' \
3394 "pgpsig extension query" " " 3
3397 $as_echo "18. $at_setup_line: testing $at_desc ..."
3402 $as_echo "$at_srcdir/rpmquery.at:243:
3404 --queryformat=\"%{rsaheader:pgpsig}\" \\
3405 -qp /data/RPMS/hello-2.0-1.x86_64-signed.rpm
3407 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:243"
3410 --queryformat="%{rsaheader:pgpsig}" \
3411 -qp /data/RPMS/hello-2.0-1.x86_64-signed.rpm
3413 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3414 at_status=$? at_failed=false
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
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
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"
3431 at_fn_group_banner 19 'rpmquery.at:255' \
3432 "integer array perms format query" " " 3
3435 $as_echo "19. $at_setup_line: testing $at_desc ..."
3440 $as_echo "$at_srcdir/rpmquery.at:257:
3442 --queryformat=\"[%{filemodes:perms}\\n]\" \\
3443 -qp /data/RPMS/hello-1.0-1.i386.rpm
3445 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:257"
3448 --queryformat="[%{filemodes:perms}\n]" \
3449 -qp /data/RPMS/hello-1.0-1.i386.rpm
3451 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3452 at_status=$? at_failed=false
3454 at_fn_diff_devnull "$at_stderr" || at_failed=:
3455 echo >>"$at_stdout"; $as_echo "-rwxr-x--x
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
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"
3470 at_fn_group_banner 20 'rpmquery.at:271' \
3471 "string array query" " " 3
3474 $as_echo "20. $at_setup_line: testing $at_desc ..."
3479 $as_echo "$at_srcdir/rpmquery.at:273:
3481 --queryformat=\"[%{basenames} ]\" \\
3482 -qp /data/RPMS/hello-1.0-1.i386.rpm
3484 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:273"
3487 --queryformat="[%{basenames} ]" \
3488 -qp /data/RPMS/hello-1.0-1.i386.rpm
3490 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3491 at_status=$? at_failed=false
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
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"
3506 at_fn_group_banner 21 'rpmquery.at:284' \
3507 "empty string array query" " " 3
3510 $as_echo "21. $at_setup_line: testing $at_desc ..."
3515 $as_echo "$at_srcdir/rpmquery.at:286:
3517 --queryformat=\"[%{basenames}]\" \\
3518 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3520 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:286"
3523 --queryformat="[%{basenames}]" \
3524 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3526 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3527 at_status=$? at_failed=false
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
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"
3541 at_fn_group_banner 22 'rpmquery.at:297' \
3542 "empty string array extension array format" " " 3
3545 $as_echo "22. $at_setup_line: testing $at_desc ..."
3550 $as_echo "$at_srcdir/rpmquery.at:299:
3552 --queryformat=\"[%{filenames}]\" \\
3553 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3555 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:299"
3558 --queryformat="[%{filenames}]" \
3559 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3561 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3562 at_status=$? at_failed=false
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
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"
3576 at_fn_group_banner 23 'rpmquery.at:310' \
3577 "empty string array extension query" " " 3
3580 $as_echo "23. $at_setup_line: testing $at_desc ..."
3585 $as_echo "$at_srcdir/rpmquery.at:312:
3587 --queryformat=\"%{filenames}\" \\
3588 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3590 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:312"
3593 --queryformat="%{filenames}" \
3594 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3597 at_status=$? at_failed=false
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
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"
3612 at_fn_group_banner 24 'rpmquery.at:323' \
3613 "different sizes arrays query 1" " " 3
3616 $as_echo "24. $at_setup_line: testing $at_desc ..."
3621 $as_echo "$at_srcdir/rpmquery.at:325:
3623 --queryformat=\"[%{basenames} %{changelogname}]\\n\" \\
3624 -qp /data/RPMS/hello-1.0-1.i386.rpm
3626 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:325"
3629 --queryformat="[%{basenames} %{changelogname}]\n" \
3630 -qp /data/RPMS/hello-1.0-1.i386.rpm
3632 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3633 at_status=$? at_failed=false
3635 echo >>"$at_stderr"; $as_echo "error: incorrect format: array iterator used with different sized arrays
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
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"
3649 at_fn_group_banner 25 'rpmquery.at:339' \
3650 "different sizes arrays query 2" " " 3
3653 $as_echo "25. $at_setup_line: testing $at_desc ..."
3658 $as_echo "$at_srcdir/rpmquery.at:341:
3660 --queryformat=\"[%{name} %{changelogtime}]\\n\" \\
3661 -qp /data/RPMS/hello-1.0-1.i386.rpm
3663 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:341"
3666 --queryformat="[%{name} %{changelogtime}]\n" \
3667 -qp /data/RPMS/hello-1.0-1.i386.rpm
3669 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3670 at_status=$? at_failed=false
3672 at_fn_diff_devnull "$at_stderr" || at_failed=:
3673 echo >>"$at_stdout"; $as_echo "hello 908877600
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
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"
3686 at_fn_group_banner 26 'rpmquery.at:353' \
3687 "different sizes arrays query 3" " " 3
3690 $as_echo "26. $at_setup_line: testing $at_desc ..."
3695 $as_echo "$at_srcdir/rpmquery.at:355:
3697 --queryformat=\"[%{name} %{basenames}]\\n\" \\
3698 -qp /data/RPMS/hello-1.0-1.i386.rpm
3700 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:355"
3703 --queryformat="[%{name} %{basenames}]\n" \
3704 -qp /data/RPMS/hello-1.0-1.i386.rpm
3706 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3707 at_status=$? at_failed=false
3709 echo >>"$at_stderr"; $as_echo "error: incorrect format: array iterator used with different sized arrays
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
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"
3723 at_fn_group_banner 27 'rpmquery.at:367' \
3724 "different sizes arrays query 4" " " 3
3727 $as_echo "27. $at_setup_line: testing $at_desc ..."
3732 $as_echo "$at_srcdir/rpmquery.at:369:
3734 --queryformat=\"[%{=name} %{basenames}\\n]\" \\
3735 -qp /data/RPMS/hello-1.0-1.i386.rpm
3737 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:369"
3740 --queryformat="[%{=name} %{basenames}\n]" \
3741 -qp /data/RPMS/hello-1.0-1.i386.rpm
3743 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3744 at_status=$? at_failed=false
3746 at_fn_diff_devnull "$at_stderr" || at_failed=:
3747 echo >>"$at_stdout"; $as_echo "hello hello
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
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"
3763 at_fn_group_banner 28 'rpmquery.at:383' \
3764 "non-existent string tag" " " 3
3767 $as_echo "28. $at_setup_line: testing $at_desc ..."
3772 $as_echo "$at_srcdir/rpmquery.at:385:
3774 --queryformat=\"%{vendor}\" \\
3775 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3777 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:385"
3780 --queryformat="%{vendor}" \
3781 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3783 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3784 at_status=$? at_failed=false
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
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"
3799 at_fn_group_banner 29 'rpmquery.at:396' \
3800 "non-existent integer tag query" " " 3
3803 $as_echo "29. $at_setup_line: testing $at_desc ..."
3808 $as_echo "$at_srcdir/rpmquery.at:398:
3810 --queryformat=\"%{installcolor}\" \\
3811 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3813 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:398"
3816 --queryformat="%{installcolor}" \
3817 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3819 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3820 at_status=$? at_failed=false
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
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"
3835 at_fn_group_banner 30 'rpmquery.at:409' \
3836 "conditional queryformat" " " 3
3839 $as_echo "30. $at_setup_line: testing $at_desc ..."
3844 $as_echo "$at_srcdir/rpmquery.at:411:
3846 --queryformat=\"%|name?{%{name}}:{no}| %|installtime?{%{installtime}}:{(not installed)}|\" \\
3847 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3849 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:411"
3852 --queryformat="%|name?{%{name}}:{no}| %|installtime?{%{installtime}}:{(not installed)}|" \
3853 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3855 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3856 at_status=$? at_failed=false
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
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"
3871 at_fn_group_banner 31 'rpmquery.at:422' \
3872 "invalid tag query" " " 3
3875 $as_echo "31. $at_setup_line: testing $at_desc ..."
3880 $as_echo "$at_srcdir/rpmquery.at:424:
3882 --queryformat=\"%{notag}\" \\
3883 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3885 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:424"
3888 --queryformat="%{notag}" \
3889 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3891 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3892 at_status=$? at_failed=false
3894 echo >>"$at_stderr"; $as_echo "error: incorrect format: unknown tag: \"notag\"
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
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"
3908 at_fn_group_banner 32 'rpmquery.at:436' \
3909 "invalid data for format query" " " 3
3912 $as_echo "32. $at_setup_line: testing $at_desc ..."
3917 $as_echo "$at_srcdir/rpmquery.at:438:
3919 --queryformat=\"%{name:depflags}\" \\
3920 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3922 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:438"
3925 --queryformat="%{name:depflags}" \
3926 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3928 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3929 at_status=$? at_failed=false
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
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"
3944 at_fn_group_banner 33 'rpmquery.at:449' \
3945 "invalid format width query" " " 3
3948 $as_echo "33. $at_setup_line: testing $at_desc ..."
3953 $as_echo "$at_srcdir/rpmquery.at:451:
3955 --queryformat=\"%ss{size}\" \\
3956 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3958 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:451"
3961 --queryformat="%ss{size}" \
3962 -qp /data/RPMS/foo-1.0-1.noarch.rpm
3964 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3965 at_status=$? at_failed=false
3967 echo >>"$at_stderr"; $as_echo "error: incorrect format: invalid field width
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
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"
3981 at_fn_group_banner 34 'rpmquery.at:462' \
3985 $as_echo "34. $at_setup_line: testing $at_desc ..."
3990 $as_echo "$at_srcdir/rpmquery.at:464:
3991 runroot rpm -qp --xml data/RPMS/hello-2.0-1.x86_64.rpm
3993 at_fn_check_prepare_notrace 'an embedded newline' "rpmquery.at:464"
3995 runroot rpm -qp --xml data/RPMS/hello-2.0-1.x86_64.rpm
3997 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
3998 at_status=$? at_failed=false
4000 at_fn_diff_devnull "$at_stderr" || at_failed=:
4001 echo >>"$at_stdout"; $as_echo "<rpmHeader>
4002 <rpmTag name=\"Headeri18ntable\">
4005 <rpmTag name=\"Sigsize\">
4006 <integer>5411</integer>
4008 <rpmTag name=\"Sigmd5\">
4009 <base64>E3yh2LNcygKhhUujAcVDLg==
4012 <rpmTag name=\"Sha1header\">
4013 <string>5cd9874c510b67b44483f9e382a1649ef7743bac</string>
4015 <rpmTag name=\"Sha256header\">
4016 <string>ef920781af3bf072ae9888eec3de1c589143101dff9cc0b561468d395fb766d9</string>
4018 <rpmTag name=\"Name\">
4019 <string>hello</string>
4021 <rpmTag name=\"Version\">
4022 <string>2.0</string>
4024 <rpmTag name=\"Release\">
4027 <rpmTag name=\"Summary\">
4028 <string>hello -- hello, world rpm</string>
4030 <rpmTag name=\"Description\">
4031 <string>Simple rpm demonstration.</string>
4033 <rpmTag name=\"Buildtime\">
4034 <integer>1227355200</integer>
4036 <rpmTag name=\"Buildhost\">
4037 <string>localhost</string>
4039 <rpmTag name=\"Size\">
4040 <integer>7243</integer>
4042 <rpmTag name=\"License\">
4043 <string>GPL</string>
4045 <rpmTag name=\"Group\">
4046 <string>Testing</string>
4048 <rpmTag name=\"Os\">
4049 <string>linux</string>
4051 <rpmTag name=\"Arch\">
4052 <string>x86_64</string>
4054 <rpmTag name=\"Filesizes\">
4055 <integer>7120</integer>
4056 <integer>4096</integer>
4057 <integer>48</integer>
4058 <integer>36</integer>
4059 <integer>39</integer>
4061 <rpmTag name=\"Filemodes\">
4062 <integer>33257</integer>
4063 <integer>16877</integer>
4064 <integer>33188</integer>
4065 <integer>33188</integer>
4066 <integer>33188</integer>
4068 <rpmTag name=\"Filerdevs\">
4069 <integer>0</integer>
4070 <integer>0</integer>
4071 <integer>0</integer>
4072 <integer>0</integer>
4073 <integer>0</integer>
4075 <rpmTag name=\"Filemtimes\">
4076 <integer>1489670606</integer>
4077 <integer>1489670606</integer>
4078 <integer>908894882</integer>
4079 <integer>908895030</integer>
4080 <integer>908884468</integer>
4082 <rpmTag name=\"Filedigests\">
4083 <string>c89fa87aeb1143969c0b6be9334b21d932f77f74e8f60120b5de316406369cf0</string>
4085 <string>fac3b28492ecdc16da172a6f1a432ceed356ca4d9248157b2a962b395e37b3b0</string>
4086 <string>678b87e217a415f05e43460e2c7b668245b412e2b4f18a75aa7399d9774ed0b4</string>
4087 <string>d63fdc6c986106f57230f217d36b2395d83ecf491d2b7187af714dc8db9629e9</string>
4089 <rpmTag name=\"Filelinktos\">
4096 <rpmTag name=\"Fileflags\">
4097 <integer>0</integer>
4098 <integer>0</integer>
4099 <integer>2</integer>
4100 <integer>2</integer>
4101 <integer>2</integer>
4103 <rpmTag name=\"Fileusername\">
4104 <string>root</string>
4105 <string>root</string>
4106 <string>root</string>
4107 <string>root</string>
4108 <string>root</string>
4110 <rpmTag name=\"Filegroupname\">
4111 <string>root</string>
4112 <string>root</string>
4113 <string>root</string>
4114 <string>root</string>
4115 <string>root</string>
4117 <rpmTag name=\"Sourcerpm\">
4118 <string>hello-2.0-1.src.rpm</string>
4120 <rpmTag name=\"Fileverifyflags\">
4121 <integer>4294967295</integer>
4122 <integer>0</integer>
4123 <integer>4294967295</integer>
4124 <integer>4294967295</integer>
4125 <integer>4294967295</integer>
4127 <rpmTag name=\"Archivesize\">
4128 <integer>8060</integer>
4130 <rpmTag name=\"Providename\">
4131 <string>hello</string>
4132 <string>hello(x86-64)</string>
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>
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>
4150 <rpmTag name=\"Requireversion\">
4153 <string>3.0.4-1</string>
4154 <string>4.6.0-1</string>
4155 <string>4.0-1</string>
4158 <rpmTag name=\"Rpmversion\">
4159 <string>4.13.90</string>
4161 <rpmTag name=\"Changelogtime\">
4162 <integer>1227355200</integer>
4163 <integer>908884800</integer>
4165 <rpmTag name=\"Changelogname\">
4166 <string>Panu Matilainen <pmatilai@redhat.com></string>
4167 <string>Jeff Johnson <jbj@redhat.com></string>
4169 <rpmTag name=\"Changelogtext\">
4170 <string>- updated version</string>
4171 <string>- create.</string>
4173 <rpmTag name=\"Filedevices\">
4174 <integer>1</integer>
4175 <integer>1</integer>
4176 <integer>1</integer>
4177 <integer>1</integer>
4178 <integer>1</integer>
4180 <rpmTag name=\"Fileinodes\">
4181 <integer>1</integer>
4182 <integer>2</integer>
4183 <integer>3</integer>
4184 <integer>4</integer>
4185 <integer>5</integer>
4187 <rpmTag name=\"Filelangs\">
4194 <rpmTag name=\"Prefixes\">
4195 <string>/usr</string>
4197 <rpmTag name=\"Provideflags\">
4198 <integer>8</integer>
4199 <integer>8</integer>
4201 <rpmTag name=\"Provideversion\">
4202 <string>2.0-1</string>
4203 <string>2.0-1</string>
4205 <rpmTag name=\"Dirindexes\">
4206 <integer>0</integer>
4207 <integer>1</integer>
4208 <integer>2</integer>
4209 <integer>2</integer>
4210 <integer>2</integer>
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>
4219 <rpmTag name=\"Dirnames\">
4220 <string>/usr/bin/</string>
4221 <string>/usr/share/doc/</string>
4222 <string>/usr/share/doc/hello-2.0/</string>
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>
4227 <rpmTag name=\"Payloadformat\">
4228 <string>cpio</string>
4230 <rpmTag name=\"Payloadcompressor\">
4231 <string>gzip</string>
4233 <rpmTag name=\"Payloadflags\">
4236 <rpmTag name=\"Platform\">
4237 <string>x86_64-redhat-linux-gnu</string>
4239 <rpmTag name=\"Filecolors\">
4240 <integer>2</integer>
4241 <integer>0</integer>
4242 <integer>0</integer>
4243 <integer>0</integer>
4244 <integer>0</integer>
4246 <rpmTag name=\"Fileclass\">
4247 <integer>0</integer>
4248 <integer>1</integer>
4249 <integer>2</integer>
4250 <integer>2</integer>
4251 <integer>2</integer>
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>
4258 <rpmTag name=\"Filedependsx\">
4259 <integer>0</integer>
4260 <integer>0</integer>
4261 <integer>0</integer>
4262 <integer>0</integer>
4263 <integer>0</integer>
4265 <rpmTag name=\"Filedependsn\">
4266 <integer>3</integer>
4267 <integer>0</integer>
4268 <integer>0</integer>
4269 <integer>0</integer>
4270 <integer>0</integer>
4272 <rpmTag name=\"Dependsdict\">
4273 <integer>1375731713</integer>
4274 <integer>1375731712</integer>
4275 <integer>1375731717</integer>
4277 <rpmTag name=\"Filedigestalgo\">
4278 <integer>8</integer>
4280 <rpmTag name=\"Encoding\">
4281 <string>utf-8</string>
4283 <rpmTag name=\"Payloaddigest\">
4284 <string>84a7338287bf19715c4eed0243f5cdb447eeb0ade37b2af718d4060aefca2f7c</string>
4286 <rpmTag name=\"Payloaddigestalgo\">
4287 <integer>8</integer>
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
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"
4302 at_fn_group_banner 35 'rpmquery.at:761' \
4303 "query file attribute filtering" " " 3
4306 $as_echo "35. $at_setup_line: testing $at_desc ..."
4311 $as_echo "$at_srcdir/rpmquery.at:763:
4312 runroot rpmbuild -bb --quiet \\
4313 /data/SPECS/vattrtest.spec
4315 pkg=\"/build/RPMS/noarch/vattrtest-1.0-1.noarch.rpm\"
4317 for filter in --noconfig --noghost --noartifact -A -c -d -L; do
4319 runroot \${cmd} \${filter} \${pkg}
4322 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmquery.at:763"
4324 runroot rpmbuild -bb --quiet \
4325 /data/SPECS/vattrtest.spec
4327 pkg="/build/RPMS/noarch/vattrtest-1.0-1.noarch.rpm"
4329 for filter in --noconfig --noghost --noartifact -A -c -d -L; do
4331 runroot ${cmd} ${filter} ${pkg}
4334 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4335 at_status=$? at_failed=false
4337 at_fn_diff_devnull "$at_stderr" || at_failed=:
4338 echo >>"$at_stdout"; $as_echo "--noconfig
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
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"
4385 at_fn_group_banner 36 'rpmverify.at:7' \
4386 "dependency problems" " " 4
4389 $as_echo "36. $at_setup_line: testing $at_desc ..."
4394 $as_echo "$at_srcdir/rpmverify.at:9:
4396 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4399 runroot rpm --initdb
4401 rm -rf \"\${TOPDIR}\"
4403 runroot rpmbuild --quiet -bb \\
4404 --define \"pkg one\" \\
4405 --define \"reqs deptest-two\" \\
4406 /data/SPECS/deptest.spec
4408 runroot rpm -U --nodeps /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
4409 runroot rpm -Va --nofiles
4411 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:9"
4414 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4417 runroot rpm --initdb
4421 runroot rpmbuild --quiet -bb \
4422 --define "pkg one" \
4423 --define "reqs deptest-two" \
4424 /data/SPECS/deptest.spec
4426 runroot rpm -U --nodeps /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
4427 runroot rpm -Va --nofiles
4429 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4430 at_status=$? at_failed=false
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
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
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"
4447 at_fn_group_banner 37 'rpmverify.at:32' \
4448 "files with no problems" " " 4
4451 $as_echo "37. $at_setup_line: testing $at_desc ..."
4456 $as_echo "$at_srcdir/rpmverify.at:34:
4458 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4461 runroot rpm --initdb
4464 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \\
4465 /data/RPMS/hello-1.0-1.i386.rpm
4466 runroot rpm -Va --nodeps --nouser --nogroup
4468 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:34"
4471 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4474 runroot rpm --initdb
4477 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \
4478 /data/RPMS/hello-1.0-1.i386.rpm
4479 runroot rpm -Va --nodeps --nouser --nogroup
4481 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4482 at_status=$? at_failed=false
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
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"
4496 at_fn_group_banner 38 'rpmverify.at:48' \
4497 "files with no problems in verbose mode" " " 4
4500 $as_echo "38. $at_setup_line: testing $at_desc ..."
4505 $as_echo "$at_srcdir/rpmverify.at:50:
4507 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4510 runroot rpm --initdb
4513 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \\
4514 /data/RPMS/hello-1.0-1.i386.rpm
4515 runroot rpm -Vva --nodeps --nouser --nogroup
4517 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:50"
4520 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4523 runroot rpm --initdb
4526 runroot rpm -U --nodeps --noscripts --ignorearch --ignoreos \
4527 /data/RPMS/hello-1.0-1.i386.rpm
4528 runroot rpm -Vva --nodeps --nouser --nogroup
4530 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4531 at_status=$? at_failed=false
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
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
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"
4549 at_fn_group_banner 39 'rpmverify.at:67' \
4550 "directory replaced with a directory symlink" " " 4
4553 $as_echo "39. $at_setup_line: testing $at_desc ..."
4558 $as_echo "$at_srcdir/rpmverify.at:69:
4560 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4563 runroot rpm --initdb
4565 tf=\"\${RPMTEST}\"/opt/foo
4566 rm -rf \"\${RPMTEST}\"/opt/*
4567 rm -rf \"\${TOPDIR}\"
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
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
4582 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:69"
4585 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4588 runroot rpm --initdb
4590 tf="${RPMTEST}"/opt/foo
4591 rm -rf "${RPMTEST}"/opt/*
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
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
4607 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4608 at_status=$? at_failed=false
4610 at_fn_diff_devnull "$at_stderr" || at_failed=:
4611 echo >>"$at_stdout"; $as_echo "......... /opt/foo
4612 ......... /opt/foo/README1
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
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"
4627 at_fn_group_banner 40 'rpmverify.at:98' \
4628 "directory replaced with an invalid directory symlink" "" 4
4631 $as_echo "40. $at_setup_line: testing $at_desc ..."
4636 $as_echo "$at_srcdir/rpmverify.at:100:
4638 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4641 runroot rpm --initdb
4643 tf=\"\${RPMTEST}\"/opt/foo
4644 rm -rf \"\${RPMTEST}\"/opt/*
4645 rm -rf \"\${TOPDIR}\"
4647 runroot rpmbuild --quiet -bb \\
4648 --define \"ver 1.0\" \\
4649 --define \"filetype datadir\" \\
4650 --define \"filedata README1\" \\
4651 /data/SPECS/replacetest.spec
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
4658 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:100"
4661 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4664 runroot rpm --initdb
4666 tf="${RPMTEST}"/opt/foo
4667 rm -rf "${RPMTEST}"/opt/*
4670 runroot rpmbuild --quiet -bb \
4671 --define "ver 1.0" \
4672 --define "filetype datadir" \
4673 --define "filedata README1" \
4674 /data/SPECS/replacetest.spec
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
4681 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4682 at_status=$? at_failed=false
4684 at_fn_diff_devnull "$at_stderr" || at_failed=:
4685 echo >>"$at_stdout"; $as_echo "....L.... /opt/foo
4686 ......... /opt/foo/README1
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
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"
4701 at_fn_group_banner 41 'rpmverify.at:128' \
4702 "verify from db, with problems present" " " 4
4705 $as_echo "41. $at_setup_line: testing $at_desc ..."
4710 $as_echo "$at_srcdir/rpmverify.at:130:
4712 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4715 runroot rpm --initdb
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
4726 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:130"
4729 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4732 runroot rpm --initdb
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
4743 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4744 at_status=$? at_failed=false
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
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
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"
4761 at_fn_group_banner 42 'rpmverify.at:150' \
4762 "verify from package, with problems present" " " 4
4765 $as_echo "42. $at_setup_line: testing $at_desc ..."
4770 $as_echo "$at_srcdir/rpmverify.at:152:
4772 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4775 runroot rpm --initdb
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
4786 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:152"
4789 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4792 runroot rpm --initdb
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
4803 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4804 at_status=$? at_failed=false
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
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
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"
4821 at_fn_group_banner 43 'rpmverify.at:171' \
4822 "verify file attribute filtering" " " 4
4825 $as_echo "43. $at_setup_line: testing $at_desc ..."
4830 $as_echo "$at_srcdir/rpmverify.at:173:
4831 runroot rpmbuild -bb --quiet \\
4832 /data/SPECS/vattrtest.spec
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
4838 cmd=\"rpm -Vv --nouser --nogroup\"
4839 for filter in --noconfig --noghost --noartifact; do
4841 runroot \${cmd} \${filter} vattrtest
4844 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmverify.at:173"
4846 runroot rpmbuild -bb --quiet \
4847 /data/SPECS/vattrtest.spec
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
4853 cmd="rpm -Vv --nouser --nogroup"
4854 for filter in --noconfig --noghost --noartifact; do
4856 runroot ${cmd} ${filter} vattrtest
4859 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4860 at_status=$? at_failed=false
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
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
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
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
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"
4901 at_fn_group_banner 44 'rpmverify.at:220' \
4902 "verifyscript failure" " " 4
4905 $as_echo "44. $at_setup_line: testing $at_desc ..."
4910 $as_echo "$at_srcdir/rpmverify.at:222:
4912 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4915 runroot rpm --initdb
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
4924 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:222"
4927 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4930 runroot rpm --initdb
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
4939 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4940 at_status=$? at_failed=false
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
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"
4954 at_fn_group_banner 45 'rpmverify.at:237' \
4955 "verifyscript success" " " 4
4958 $as_echo "45. $at_setup_line: testing $at_desc ..."
4963 $as_echo "$at_srcdir/rpmverify.at:239:
4965 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
4968 runroot rpm --initdb
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
4977 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:239"
4980 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
4983 runroot rpm --initdb
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
4992 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
4993 at_status=$? at_failed=false
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
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"
5007 at_fn_group_banner 46 'rpmverify.at:256' \
5008 "shared file timestamp behavior" " " 4
5011 $as_echo "46. $at_setup_line: testing $at_desc ..."
5016 $as_echo "$at_srcdir/rpmverify.at:258:
5018 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5021 runroot rpm --initdb
5023 rm -rf \"\${TOPDIR}\"
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
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
5040 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:258"
5043 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5046 runroot rpm --initdb
5050 # create packages sharing a file but with different timestamp
5051 for p in "one" "two"; do
5052 runroot rpmbuild --quiet -bb \
5054 --define "filedata same_stuff" \
5055 /data/SPECS/conflicttest.spec
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
5065 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5066 at_status=$? at_failed=false
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
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"
5080 at_fn_group_banner 47 'rpmverify.at:285' \
5081 "Upgraded verification with min_writes 1 (files)" "" 4
5084 $as_echo "47. $at_setup_line: testing $at_desc ..."
5089 $as_echo "$at_srcdir/rpmverify.at:287:
5091 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5094 runroot rpm --initdb
5096 tf=\"\${RPMTEST}\"/opt/foo
5097 rm -rf \"\${tf}\" \"\${tf}\".rpm*
5098 rm -rf \"\${TOPDIR}\"
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
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
5116 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5118 touch -t 201703171717 \${tf}
5121 --define \"_minimize_writes 1\" \\
5122 /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
5123 runroot rpm -Va --nouser --nogroup replacetest
5127 --define \"_minimize_writes 1\" \\
5128 /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5129 runroot rpm -Va --nouser --nogroup replacetest
5132 echo \"xx\" > \"\${tf}\"
5136 --define \"_minimize_writes 1\" \\
5137 /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm
5138 runroot rpm -Va --nouser --nogroup replacetest
5141 touch -t 201703171717 \${tf}
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
5149 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:287"
5152 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5155 runroot rpm --initdb
5157 tf="${RPMTEST}"/opt/foo
5158 rm -rf "${tf}" "${tf}".rpm*
5161 for v in "1.0" "2.0"; do
5162 runroot rpmbuild --quiet -bb \
5164 --define "filetype file" \
5165 --define "filedata foo" \
5166 /data/SPECS/replacetest.spec
5169 for v in "3.0" "4.0"; do
5170 runroot rpmbuild --quiet -bb \
5172 --define "filetype file" \
5173 --define "filedata fox" \
5174 /data/SPECS/replacetest.spec
5177 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5179 touch -t 201703171717 ${tf}
5182 --define "_minimize_writes 1" \
5183 /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
5184 runroot rpm -Va --nouser --nogroup replacetest
5188 --define "_minimize_writes 1" \
5189 /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5190 runroot rpm -Va --nouser --nogroup replacetest
5197 --define "_minimize_writes 1" \
5198 /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm
5199 runroot rpm -Va --nouser --nogroup replacetest
5202 touch -t 201703171717 ${tf}
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
5210 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5211 at_status=$? at_failed=false
5213 at_fn_diff_devnull "$at_stderr" || at_failed=:
5214 echo >>"$at_stdout"; $as_echo "foo
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
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"
5232 at_fn_group_banner 48 'rpmverify.at:357' \
5233 "Upgraded verification with min_writes 2 (files)" "" 4
5236 $as_echo "48. $at_setup_line: testing $at_desc ..."
5241 $as_echo "$at_srcdir/rpmverify.at:359:
5243 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5246 runroot rpm --initdb
5248 tf=\"\${RPMTEST}\"/opt/foo
5249 rm -rf \"\${tf}\" \"\${tf}\".rpm*
5250 rm -rf \"\${TOPDIR}\"
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
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
5268 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5270 touch -t 201703171717 \${tf}
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
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
5286 echo \"xx\" > \"\${tf}\"
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
5296 touch -t 201703171717 \${tf}
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
5305 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:359"
5308 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5311 runroot rpm --initdb
5313 tf="${RPMTEST}"/opt/foo
5314 rm -rf "${tf}" "${tf}".rpm*
5317 for v in "1.0" "2.0"; do
5318 runroot rpmbuild --quiet -bb \
5320 --define "filetype file" \
5321 --define "filedata foo" \
5322 /data/SPECS/replacetest.spec
5325 for v in "3.0" "4.0"; do
5326 runroot rpmbuild --quiet -bb \
5328 --define "filetype file" \
5329 --define "filedata fox" \
5330 /data/SPECS/replacetest.spec
5333 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5335 touch -t 201703171717 ${tf}
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
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
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
5361 touch -t 201703171717 ${tf}
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
5370 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5371 at_status=$? at_failed=false
5373 at_fn_diff_devnull "$at_stderr" || at_failed=:
5374 echo >>"$at_stdout"; $as_echo "foo
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
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"
5396 at_fn_group_banner 49 'rpmverify.at:436' \
5397 "Upgraded verification with min_writes 3 (LINKs)" "" 4
5400 $as_echo "49. $at_setup_line: testing $at_desc ..."
5405 $as_echo "$at_srcdir/rpmverify.at:438:
5407 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5410 runroot rpm --initdb
5412 tf=\"\${RPMTEST}\"/opt/foo
5413 rm -rf \"\${tf}\" \"\${tf}\".rpm*
5414 rm -rf \"\${TOPDIR}\"
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
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
5432 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5436 --define \"_minimize_writes 1\" \\
5437 /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
5438 runroot rpm -Va --nouser --nogroup replacetest
5442 --define \"_minimize_writes 1\" \\
5443 /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5444 runroot rpm -Va --nouser --nogroup replacetest
5447 ln -sf \"xx\" \"\${tf}\"
5451 --define \"_minimize_writes 1\" \\
5452 /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm
5453 runroot rpm -Va --nouser --nogroup replacetest
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
5462 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:438"
5465 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5468 runroot rpm --initdb
5470 tf="${RPMTEST}"/opt/foo
5471 rm -rf "${tf}" "${tf}".rpm*
5474 for v in "1.0" "2.0"; do
5475 runroot rpmbuild --quiet -bb \
5477 --define "filetype link" \
5478 --define "filedata foo" \
5479 /data/SPECS/replacetest.spec
5482 for v in "3.0" "4.0"; do
5483 runroot rpmbuild --quiet -bb \
5485 --define "filetype link" \
5486 --define "filedata fox" \
5487 /data/SPECS/replacetest.spec
5490 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
5494 --define "_minimize_writes 1" \
5495 /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
5496 runroot rpm -Va --nouser --nogroup replacetest
5500 --define "_minimize_writes 1" \
5501 /build/RPMS/noarch/replacetest-3.0-1.noarch.rpm
5502 runroot rpm -Va --nouser --nogroup replacetest
5509 --define "_minimize_writes 1" \
5510 /build/RPMS/noarch/replacetest-4.0-1.noarch.rpm
5511 runroot rpm -Va --nouser --nogroup replacetest
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
5520 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5521 at_status=$? at_failed=false
5523 at_fn_diff_devnull "$at_stderr" || at_failed=:
5524 echo >>"$at_stdout"; $as_echo "foo
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
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"
5542 at_fn_group_banner 50 'rpmverify.at:503' \
5543 "Upgraded verification with min_writes 4 (LINKs)" "" 4
5546 $as_echo "50. $at_setup_line: testing $at_desc ..."
5551 $as_echo "$at_srcdir/rpmverify.at:505:
5553 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5556 runroot rpm --initdb
5558 tf=\"\${RPMTEST}\"/opt/foo
5559 rm -rf \"\${tf}\" \"\${tf}\".rpm*
5560 rm -rf \"\${TOPDIR}\"
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
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
5578 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
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
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
5595 ln -sf \"xx\" \"\${tf}\"
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
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
5612 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmverify.at:505"
5615 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5618 runroot rpm --initdb
5620 tf="${RPMTEST}"/opt/foo
5621 rm -rf "${tf}" "${tf}".rpm*
5624 for v in "1.0" "2.0"; do
5625 runroot rpmbuild --quiet -bb \
5627 --define "filetype link" \
5628 --define "filedata foo" \
5629 /data/SPECS/replacetest.spec
5632 for v in "3.0" "4.0"; do
5633 runroot rpmbuild --quiet -bb \
5635 --define "filetype link" \
5636 --define "filedata fox" \
5637 /data/SPECS/replacetest.spec
5640 runroot rpm -i /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
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
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
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
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
5674 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5675 at_status=$? at_failed=false
5677 at_fn_diff_devnull "$at_stderr" || at_failed=:
5678 echo >>"$at_stdout"; $as_echo "foo
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
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"
5700 at_fn_group_banner 51 'rpmsigdig.at:7' \
5701 "rpmkeys -Kv <unsigned> 1" " " 5
5704 $as_echo "51. $at_setup_line: testing $at_desc ..."
5709 $as_echo "$at_srcdir/rpmsigdig.at:9:
5711 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5714 runroot rpm --initdb
5716 rm -rf \"\${TOPDIR}\"
5718 runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64.rpm /data/RPMS/hello-1.0-1.i386.rpm
5720 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:9"
5723 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5726 runroot rpm --initdb
5730 runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64.rpm /data/RPMS/hello-1.0-1.i386.rpm
5732 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5733 at_status=$? at_failed=false
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
5741 /data/RPMS/hello-1.0-1.i386.rpm:
5742 Header SHA1 digest: OK
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
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"
5756 at_fn_group_banner 52 'rpmsigdig.at:31' \
5757 "rpmkeys -Kv <corrupted unsigned> 1" " " 5
5760 $as_echo "52. $at_setup_line: testing $at_desc ..."
5765 $as_echo "$at_srcdir/rpmsigdig.at:33:
5767 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5770 runroot rpm --initdb
5772 rm -rf \"\${TOPDIR}\"
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}
5781 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:33"
5784 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5787 runroot rpm --initdb
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}
5798 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5799 at_status=$? at_failed=false
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)
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
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"
5819 at_fn_group_banner 53 'rpmsigdig.at:56' \
5820 "rpmkeys -Kv <corrupted unsigned> 2" " " 5
5823 $as_echo "53. $at_setup_line: testing $at_desc ..."
5828 $as_echo "$at_srcdir/rpmsigdig.at:58:
5830 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5833 runroot rpm --initdb
5835 rm -rf \"\${TOPDIR}\"
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}
5843 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:58"
5846 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5849 runroot rpm --initdb
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}
5859 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5860 at_status=$? at_failed=false
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)
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
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"
5880 at_fn_group_banner 54 'rpmsigdig.at:81' \
5881 "rpmkeys -Kv <corrupted unsigned> 3" " " 5
5884 $as_echo "54. $at_setup_line: testing $at_desc ..."
5889 $as_echo "$at_srcdir/rpmsigdig.at:83:
5891 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5894 runroot rpm --initdb
5896 rm -rf \"\${TOPDIR}\"
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}
5904 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:83"
5907 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5910 runroot rpm --initdb
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}
5920 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5921 at_status=$? at_failed=false
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)
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
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"
5941 at_fn_group_banner 55 'rpmsigdig.at:106' \
5942 "rpmkeys -Kv <unsigned> 2" " " 5
5945 $as_echo "55. $at_setup_line: testing $at_desc ..."
5950 $as_echo "$at_srcdir/rpmsigdig.at:108:
5952 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
5955 runroot rpm --initdb
5957 rm -rf \"\${TOPDIR}\"
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
5969 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:108"
5972 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
5975 runroot rpm --initdb
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
5989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
5990 at_status=$? at_failed=false
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
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
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"
6010 at_fn_group_banner 56 'rpmsigdig.at:135' \
6011 "rpmkeys --import rsa" " " 5
6014 $as_echo "56. $at_setup_line: testing $at_desc ..."
6019 $as_echo "$at_srcdir/rpmsigdig.at:137:
6021 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6024 runroot rpm --initdb
6026 rm -rf \"\${TOPDIR}\"
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:
6031 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:137"
6034 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6037 runroot rpm --initdb
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:
6044 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6045 at_status=$? at_failed=false
6047 at_fn_diff_devnull "$at_stderr" || at_failed=:
6048 echo >>"$at_stdout"; $as_echo "Name : gpg-pubkey
6051 Architecture: (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>)
6062 -----BEGIN PGP PUBLIC KEY BLOCK-----
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==
6090 -----END PGP PUBLIC KEY BLOCK-----
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
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"
6104 at_fn_group_banner 57 'rpmsigdig.at:196' \
6105 "rpmkeys -K <signed> 1" " " 5
6108 $as_echo "57. $at_setup_line: testing $at_desc ..."
6113 $as_echo "$at_srcdir/rpmsigdig.at:198:
6115 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6118 runroot rpm --initdb
6120 rm -rf \"\${TOPDIR}\"
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
6126 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:198"
6129 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6132 runroot rpm --initdb
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
6140 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6141 at_status=$? at_failed=false
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
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
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"
6158 at_fn_group_banner 58 'rpmsigdig.at:216' \
6159 "rpmkeys -Kv <signed> 1" " " 5
6162 $as_echo "58. $at_setup_line: testing $at_desc ..."
6167 $as_echo "$at_srcdir/rpmsigdig.at:218:
6169 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6172 runroot rpm --initdb
6174 rm -rf \"\${TOPDIR}\"
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
6182 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:218"
6185 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6188 runroot rpm --initdb
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
6198 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6199 at_status=$? at_failed=false
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
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
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
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
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"
6236 at_fn_group_banner 59 'rpmsigdig.at:258' \
6237 "rpmkeys -Kv <corrupted signed> 1" " " 5
6240 $as_echo "59. $at_setup_line: testing $at_desc ..."
6245 $as_echo "$at_srcdir/rpmsigdig.at:260:
6247 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6250 runroot rpm --initdb
6252 rm -rf \"\${TOPDIR}\"
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
6259 runroot rpmkeys -Kv /tmp/\${pkg}
6260 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6261 runroot rpmkeys -Kv /tmp/\${pkg}
6263 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:260"
6266 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6269 runroot rpm --initdb
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
6278 runroot rpmkeys -Kv /tmp/${pkg}
6279 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6280 runroot rpmkeys -Kv /tmp/${pkg}
6282 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6283 at_status=$? at_failed=false
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
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
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
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"
6312 at_fn_group_banner 60 'rpmsigdig.at:294' \
6313 "rpmkeys -Kv <corrupted signed> 2" " " 5
6316 $as_echo "60. $at_setup_line: testing $at_desc ..."
6321 $as_echo "$at_srcdir/rpmsigdig.at:296:
6323 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6326 runroot rpm --initdb
6328 rm -rf \"\${TOPDIR}\"
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
6335 runroot rpmkeys -Kv /tmp/\${pkg}
6336 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6337 runroot rpmkeys -Kv /tmp/\${pkg}
6339 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:296"
6342 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6345 runroot rpm --initdb
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
6354 runroot rpmkeys -Kv /tmp/${pkg}
6355 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6356 runroot rpmkeys -Kv /tmp/${pkg}
6358 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6359 at_status=$? at_failed=false
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)
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
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"
6388 at_fn_group_banner 61 'rpmsigdig.at:331' \
6389 "rpmkeys -Kv <corrupted signed> 3" " " 5
6392 $as_echo "61. $at_setup_line: testing $at_desc ..."
6397 $as_echo "$at_srcdir/rpmsigdig.at:333:
6399 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6402 runroot rpm --initdb
6404 rm -rf \"\${TOPDIR}\"
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
6411 runroot rpmkeys -Kv /tmp/\${pkg}
6412 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6413 runroot rpmkeys -Kv /tmp/\${pkg}
6415 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:333"
6418 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6421 runroot rpm --initdb
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
6430 runroot rpmkeys -Kv /tmp/${pkg}
6431 runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-test.pub
6432 runroot rpmkeys -Kv /tmp/${pkg}
6434 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6435 at_status=$? at_failed=false
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)
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
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"
6464 at_fn_group_banner 62 'rpmsigdig.at:368' \
6465 "rpmsign --addsign <unsigned>" " " 5
6468 $as_echo "62. $at_setup_line: testing $at_desc ..."
6473 $as_echo "$at_srcdir/rpmsigdig.at:370:
6475 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6478 runroot rpm --initdb
6480 rm -rf \"\${TOPDIR}\"
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
6485 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
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
6491 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
6493 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:370"
6496 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6499 runroot rpm --initdb
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
6506 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
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
6512 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm|grep -v digest
6514 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6515 at_status=$? at_failed=false
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
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
6527 /tmp/hello-2.0-1.x86_64.rpm:
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
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"
6540 at_fn_group_banner 63 'rpmsigdig.at:403' \
6541 "rpmsign --delsign <package>" " " 5
6544 $as_echo "63. $at_setup_line: testing $at_desc ..."
6549 $as_echo "$at_srcdir/rpmsigdig.at:405:
6551 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6554 runroot rpm --initdb
6556 rm -rf \"\${TOPDIR}\"
6558 cp \"\${RPMTEST}\"/data/RPMS/hello-2.0-1.x86_64-signed.rpm \"\${RPMTEST}\"/tmp/
6560 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64-signed.rpm|grep -v digest
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
6565 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:405"
6568 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6571 runroot rpm --initdb
6575 cp "${RPMTEST}"/data/RPMS/hello-2.0-1.x86_64-signed.rpm "${RPMTEST}"/tmp/
6577 runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64-signed.rpm|grep -v digest
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
6582 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6583 at_status=$? at_failed=false
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
6591 /tmp/hello-2.0-1.x86_64-signed.rpm:
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
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"
6604 at_fn_group_banner 64 'rpmsigdig.at:430' \
6605 "rpmsign --addsign <signed>" " " 5
6608 $as_echo "64. $at_setup_line: testing $at_desc ..."
6613 $as_echo "$at_srcdir/rpmsigdig.at:432:
6615 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6618 runroot rpm --initdb
6620 rm -rf \"\${TOPDIR}\"
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\"
6625 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmsigdig.at:432"
6628 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6631 runroot rpm --initdb
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"
6638 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6639 at_status=$? at_failed=false
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
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"
6653 at_fn_group_banner 65 'rpmdb.at:23' \
6654 "rpm --initdb" " " 6
6657 $as_echo "65. $at_setup_line: testing $at_desc ..."
6662 $as_echo "$at_srcdir/rpmdb.at:25:
6664 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6667 runroot rpm --initdb
6670 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:25"
6673 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6676 runroot rpm --initdb
6679 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6680 at_status=$? at_failed=false
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
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"
6694 at_fn_group_banner 66 'rpmdb.at:36' \
6698 $as_echo "66. $at_setup_line: testing $at_desc ..."
6703 $as_echo "$at_srcdir/rpmdb.at:38:
6705 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6708 runroot rpm --initdb
6713 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:38"
6716 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6719 runroot rpm --initdb
6724 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6725 at_status=$? at_failed=false
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
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"
6739 at_fn_group_banner 67 'rpmdb.at:49' \
6743 $as_echo "67. $at_setup_line: testing $at_desc ..."
6748 $as_echo "$at_srcdir/rpmdb.at:51:
6750 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6753 runroot rpm --initdb
6757 /data/RPMS/foo-1.0-1.noarch.rpm
6762 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:51"
6765 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6768 runroot rpm --initdb
6772 /data/RPMS/foo-1.0-1.noarch.rpm
6777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6778 at_status=$? at_failed=false
6780 at_fn_diff_devnull "$at_stderr" || at_failed=:
6781 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
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
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"
6794 at_fn_group_banner 68 'rpmdb.at:69' \
6798 $as_echo "68. $at_setup_line: testing $at_desc ..."
6803 $as_echo "$at_srcdir/rpmdb.at:71:
6805 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6808 runroot rpm --initdb
6812 /data/RPMS/foo-1.0-1.noarch.rpm
6817 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:71"
6820 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6823 runroot rpm --initdb
6827 /data/RPMS/foo-1.0-1.noarch.rpm
6832 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6833 at_status=$? at_failed=false
6835 at_fn_diff_devnull "$at_stderr" || at_failed=:
6836 echo >>"$at_stdout"; $as_echo "package foo- is not installed
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
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"
6849 at_fn_group_banner 69 'rpmdb.at:90' \
6850 "rpm -i *.noarch.rpm" " " 6
6853 $as_echo "69. $at_setup_line: testing $at_desc ..."
6859 $as_echo "$at_srcdir/rpmdb.at:93:
6861 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6864 runroot rpm --initdb
6868 /data/RPMS/foo-1.0-1.noarch.rpm
6870 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:93"
6873 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6876 runroot rpm --initdb
6880 /data/RPMS/foo-1.0-1.noarch.rpm
6882 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6883 at_status=$? at_failed=false
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
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"
6898 at_fn_group_banner 70 'rpmdb.at:106' \
6899 "rpm -U --replacepkgs 1" " " 6
6902 $as_echo "70. $at_setup_line: testing $at_desc ..."
6908 $as_echo "$at_srcdir/rpmdb.at:109:
6910 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6913 runroot rpm --initdb
6916 tpkg=\"/data/RPMS/foo-1.0-1.noarch.rpm\"
6918 runroot rpm -i \"\${tpkg}\" &&
6919 runroot rpm -U --replacepkgs \"\${tpkg}\" &&
6922 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:109"
6925 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6928 runroot rpm --initdb
6931 tpkg="/data/RPMS/foo-1.0-1.noarch.rpm"
6933 runroot rpm -i "${tpkg}" &&
6934 runroot rpm -U --replacepkgs "${tpkg}" &&
6937 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
6938 at_status=$? at_failed=false
6940 at_fn_diff_devnull "$at_stderr" || at_failed=:
6941 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
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
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"
6955 at_fn_group_banner 71 'rpmdb.at:128' \
6956 "rpm -U --replacepkgs 2" " " 6
6958 test $RPM_XFAIL -ne 0 && at_xfail=yes
6960 $as_echo "71. $at_setup_line: testing $at_desc ..."
6966 $as_echo "$at_srcdir/rpmdb.at:131:
6969 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
6972 runroot rpm --initdb
6975 tpkg=\"/data/RPMS/hello-2.0-1.i686.rpm\"
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
6982 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:131"
6986 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
6989 runroot rpm --initdb
6992 tpkg="/data/RPMS/hello-2.0-1.i686.rpm"
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
6999 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7000 at_status=$? at_failed=false
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
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"
7014 at_fn_group_banner 72 'rpmdb.at:150' \
7015 "rpm --reinstall 1" " " 6
7018 $as_echo "72. $at_setup_line: testing $at_desc ..."
7024 $as_echo "$at_srcdir/rpmdb.at:153:
7026 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7029 runroot rpm --initdb
7032 tpkg=\"/data/RPMS/hello-2.0-1.i686.rpm\"
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
7039 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:153"
7042 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7045 runroot rpm --initdb
7048 tpkg="/data/RPMS/hello-2.0-1.i686.rpm"
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
7055 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7056 at_status=$? at_failed=false
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
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"
7070 at_fn_group_banner 73 'rpmdb.at:173' \
7071 "rpm -i --relocate=.. *.i386.rpm" " " 6
7074 $as_echo "73. $at_setup_line: testing $at_desc ..."
7079 $as_echo "$at_srcdir/rpmdb.at:175:
7081 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7084 runroot rpm --initdb
7088 --noscripts --nodeps --ignorearch --relocate=/usr=/check \\
7089 /data/RPMS/hello-1.0-1.i386.rpm
7091 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:175"
7094 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7097 runroot rpm --initdb
7101 --noscripts --nodeps --ignorearch --relocate=/usr=/check \
7102 /data/RPMS/hello-1.0-1.i386.rpm
7104 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7105 at_status=$? at_failed=false
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
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"
7120 at_fn_group_banner 74 'rpmdb.at:192' \
7121 "rpm -i --relocate=.. *.ppc64.rpm" " " 6
7124 $as_echo "74. $at_setup_line: testing $at_desc ..."
7129 $as_echo "$at_srcdir/rpmdb.at:194:
7131 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7134 runroot rpm --initdb
7138 --noscripts --nodeps --ignorearch --relocate=/usr=/check \\
7139 /data/RPMS/hello-1.0-1.ppc64.rpm
7141 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:194"
7144 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7147 runroot rpm --initdb
7151 --noscripts --nodeps --ignorearch --relocate=/usr=/check \
7152 /data/RPMS/hello-1.0-1.ppc64.rpm
7154 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7155 at_status=$? at_failed=false
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
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"
7170 at_fn_group_banner 75 'rpmdb.at:208' \
7171 "rpmdb --rebuilddb" " " 6
7174 $as_echo "75. $at_setup_line: testing $at_desc ..."
7179 $as_echo "$at_srcdir/rpmdb.at:210:
7181 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7184 runroot rpm --initdb
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\"
7196 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:210"
7199 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7202 runroot rpm --initdb
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"
7214 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7215 at_status=$? at_failed=false
7217 at_fn_diff_devnull "$at_stderr" || at_failed=:
7218 echo >>"$at_stdout"; $as_echo "hello-1.0-1.i386 1
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
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"
7233 at_fn_group_banner 76 'rpmdb.at:233' \
7234 "rpmdb --rebuilddb and verify empty database" " " 6
7237 $as_echo "76. $at_setup_line: testing $at_desc ..."
7242 $as_echo "$at_srcdir/rpmdb.at:235:
7244 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7247 runroot rpm --initdb
7249 runroot rpmdb --rebuilddb
7250 runroot rpmdb --verifydb
7252 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:235"
7255 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7258 runroot rpm --initdb
7260 runroot rpmdb --rebuilddb
7261 runroot rpmdb --verifydb
7263 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7264 at_status=$? at_failed=false
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
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"
7278 at_fn_group_banner 77 'rpmdb.at:248' \
7279 "rpm -U and verify status" " " 6
7282 $as_echo "77. $at_setup_line: testing $at_desc ..."
7287 $as_echo "$at_srcdir/rpmdb.at:250:
7289 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7292 runroot rpm --initdb
7294 rm -rf \"\${TOPDIR}\"
7296 runroot rpmbuild --quiet -bb \\
7297 --define \"pkg status\" \\
7298 --define \"filedata same_stuff\" \\
7299 /data/SPECS/conflicttest.spec
7301 runroot rpm -U /build/RPMS/noarch/conflictstatus-1.0-1.noarch.rpm
7302 runroot rpm -qls conflictstatus
7304 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:250"
7307 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7310 runroot rpm --initdb
7314 runroot rpmbuild --quiet -bb \
7315 --define "pkg status" \
7316 --define "filedata same_stuff" \
7317 /data/SPECS/conflicttest.spec
7319 runroot rpm -U /build/RPMS/noarch/conflictstatus-1.0-1.noarch.rpm
7320 runroot rpm -qls conflictstatus
7322 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7323 at_status=$? at_failed=false
7325 at_fn_diff_devnull "$at_stderr" || at_failed=:
7326 echo >>"$at_stdout"; $as_echo "normal /usr/share/my.version
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
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"
7339 at_fn_group_banner 78 'rpmdb.at:271' \
7340 "rpm -U with _install_lang and verify status" " " 6
7343 $as_echo "78. $at_setup_line: testing $at_desc ..."
7348 $as_echo "$at_srcdir/rpmdb.at:273:
7350 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7353 runroot rpm --initdb
7355 rm -rf \"\${TOPDIR}\"
7357 runroot rpmbuild --quiet -bb \\
7358 /data/SPECS/flangtest.spec
7360 runroot rpm -U --define \"_install_langs de:fi\" /build/RPMS/noarch/flangtest-1.0-1.noarch.rpm
7361 runroot rpm -qls flangtest
7363 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:273"
7366 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7369 runroot rpm --initdb
7373 runroot rpmbuild --quiet -bb \
7374 /data/SPECS/flangtest.spec
7376 runroot rpm -U --define "_install_langs de:fi" /build/RPMS/noarch/flangtest-1.0-1.noarch.rpm
7377 runroot rpm -qls flangtest
7379 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7380 at_status=$? at_failed=false
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
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
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"
7401 at_fn_group_banner 79 'rpmdb.at:297' \
7402 "rpm -U and verify files on disk" " " 6
7405 $as_echo "79. $at_setup_line: testing $at_desc ..."
7410 $as_echo "$at_srcdir/rpmdb.at:299:
7412 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7415 runroot rpm --initdb
7417 rm -rf \"\${TOPDIR}\"
7418 rm -rf \"\${RPMTEST}\"/opt/*
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
7424 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:299"
7427 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7430 runroot rpm --initdb
7433 rm -rf "${RPMTEST}"/opt/*
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
7439 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7440 at_status=$? at_failed=false
7442 at_fn_diff_devnull "$at_stderr" || at_failed=:
7443 echo >>"$at_stdout"; $as_echo "6
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
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"
7456 at_fn_group_banner 80 'rpmdb.at:318' \
7457 "rpm -e and verify files removed" " " 6
7460 $as_echo "80. $at_setup_line: testing $at_desc ..."
7465 $as_echo "$at_srcdir/rpmdb.at:320:
7467 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7470 runroot rpm --initdb
7472 rm -rf \"\${TOPDIR}\"
7473 rm -rf \"\${RPMTEST}\"/opt/*
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
7480 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdb.at:320"
7483 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7486 runroot rpm --initdb
7489 rm -rf "${RPMTEST}"/opt/*
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
7496 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7497 at_status=$? at_failed=false
7499 at_fn_diff_devnull "$at_stderr" || at_failed=:
7500 echo >>"$at_stdout"; $as_echo "1
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
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"
7513 at_fn_group_banner 81 'rpmi.at:21' \
7514 "rpm -U <manifest>" " " 7
7517 $as_echo "81. $at_setup_line: testing $at_desc ..."
7522 $as_echo "$at_srcdir/rpmi.at:23:
7524 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7527 runroot rpm --initdb
7530 echo /data/RPMS/hello-2.0-1.x86_64.rpm > \${RPMTEST}/tmp/test.mft
7531 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7534 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:23"
7537 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7540 runroot rpm --initdb
7543 echo /data/RPMS/hello-2.0-1.x86_64.rpm > ${RPMTEST}/tmp/test.mft
7544 runroot rpm -U --ignorearch --ignoreos --nodeps \
7547 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7548 at_status=$? at_failed=false
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
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"
7562 at_fn_group_banner 82 'rpmi.at:36' \
7563 "rpm -U <manifest notfound 1>" " " 7
7566 $as_echo "82. $at_setup_line: testing $at_desc ..."
7571 $as_echo "$at_srcdir/rpmi.at:38:
7573 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7576 runroot rpm --initdb
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
7583 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:38"
7586 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7589 runroot rpm --initdb
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
7596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7597 at_status=$? at_failed=false
7599 echo >>"$at_stderr"; $as_echo "error: open of /tmp/test-not-there.mft failed: No such file or directory
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
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"
7613 at_fn_group_banner 83 'rpmi.at:52' \
7614 "rpm -U <manifest notfound 2>" " " 7
7617 $as_echo "83. $at_setup_line: testing $at_desc ..."
7622 $as_echo "$at_srcdir/rpmi.at:54:
7624 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7627 runroot rpm --initdb
7630 echo /data/RPMS/hello-not-there-2.0-1.x86_64.rpm > \${RPMTEST}/tmp/test.mft
7631 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7634 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:54"
7637 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7640 runroot rpm --initdb
7643 echo /data/RPMS/hello-not-there-2.0-1.x86_64.rpm > ${RPMTEST}/tmp/test.mft
7644 runroot rpm -U --ignorearch --ignoreos --nodeps \
7647 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7648 at_status=$? at_failed=false
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
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
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"
7664 at_fn_group_banner 84 'rpmi.at:68' \
7665 "rpm -U <notfound>" " " 7
7668 $as_echo "84. $at_setup_line: testing $at_desc ..."
7673 $as_echo "$at_srcdir/rpmi.at:70:
7675 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7678 runroot rpm --initdb
7681 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7682 /data/RPMS/hello-not-there-2.0-1.x86_64.rpm
7684 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:70"
7687 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7690 runroot rpm --initdb
7693 runroot rpm -U --ignorearch --ignoreos --nodeps \
7694 /data/RPMS/hello-not-there-2.0-1.x86_64.rpm
7696 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7697 at_status=$? at_failed=false
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
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
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"
7713 at_fn_group_banner 85 'rpmi.at:83' \
7714 "rpm -U <unsigned>" " " 7
7717 $as_echo "85. $at_setup_line: testing $at_desc ..."
7722 $as_echo "$at_srcdir/rpmi.at:85:
7724 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7727 runroot rpm --initdb
7730 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7731 /data/RPMS/hello-2.0-1.x86_64.rpm
7733 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:85"
7736 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7739 runroot rpm --initdb
7742 runroot rpm -U --ignorearch --ignoreos --nodeps \
7743 /data/RPMS/hello-2.0-1.x86_64.rpm
7745 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7746 at_status=$? at_failed=false
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
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"
7760 at_fn_group_banner 86 'rpmi.at:97' \
7761 "rpm -U <signed nokey>" " " 7
7764 $as_echo "86. $at_setup_line: testing $at_desc ..."
7769 $as_echo "$at_srcdir/rpmi.at:99:
7771 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7774 runroot rpm --initdb
7777 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7778 /data/RPMS/hello-2.0-1.x86_64-signed.rpm
7780 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:99"
7783 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7786 runroot rpm --initdb
7789 runroot rpm -U --ignorearch --ignoreos --nodeps \
7790 /data/RPMS/hello-2.0-1.x86_64-signed.rpm
7792 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7793 at_status=$? at_failed=false
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
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
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"
7809 at_fn_group_banner 87 'rpmi.at:112' \
7810 "rpm -U <signed>" " " 7
7813 $as_echo "87. $at_setup_line: testing $at_desc ..."
7818 $as_echo "$at_srcdir/rpmi.at:114:
7820 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7823 runroot rpm --initdb
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
7830 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:114"
7833 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7836 runroot rpm --initdb
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
7843 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7844 at_status=$? at_failed=false
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
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"
7858 at_fn_group_banner 88 'rpmi.at:127' \
7859 "rpm -U <corrupted signed 1>" " " 7
7862 $as_echo "88. $at_setup_line: testing $at_desc ..."
7867 $as_echo "$at_srcdir/rpmi.at:129:
7869 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7872 runroot rpm --initdb
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
7880 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7883 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:129"
7886 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7889 runroot rpm --initdb
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
7897 runroot rpm -U --ignorearch --ignoreos --nodeps \
7900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7901 at_status=$? at_failed=false
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
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
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"
7918 at_fn_group_banner 89 'rpmi.at:148' \
7919 "rpm -U <corrupted signed 2>" " " 7
7922 $as_echo "89. $at_setup_line: testing $at_desc ..."
7927 $as_echo "$at_srcdir/rpmi.at:150:
7929 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7932 runroot rpm --initdb
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
7940 runroot rpm -U --ignorearch --ignoreos --nodeps \\
7943 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:150"
7946 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
7949 runroot rpm --initdb
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
7957 runroot rpm -U --ignorearch --ignoreos --nodeps \
7960 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
7961 at_status=$? at_failed=false
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
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
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"
7980 at_fn_group_banner 90 'rpmi.at:173' \
7981 "rpm -U <corrupted signed 3>" " " 7
7984 $as_echo "90. $at_setup_line: testing $at_desc ..."
7989 $as_echo "$at_srcdir/rpmi.at:175:
7991 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
7994 runroot rpm --initdb
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
8002 runroot rpm -U --ignorearch --ignoreos --nodeps \\
8005 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:175"
8008 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8011 runroot rpm --initdb
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
8019 runroot rpm -U --ignorearch --ignoreos --nodeps \
8022 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8023 at_status=$? at_failed=false
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
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
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"
8041 at_fn_group_banner 91 'rpmi.at:197' \
8042 "rpm -U *.src.rpm" " " 7
8045 $as_echo "91. $at_setup_line: testing $at_desc ..."
8050 $as_echo "$at_srcdir/rpmi.at:199:
8054 -U /data/SRPMS/hello-1.0-1.src.rpm
8056 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmi.at:199"
8061 -U /data/SRPMS/hello-1.0-1.src.rpm
8063 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8064 at_status=$? at_failed=false
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
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"
8078 at_fn_group_banner 92 'rpmi.at:212' \
8079 "rpm -i *.src.rpm" " " 7
8082 $as_echo "92. $at_setup_line: testing $at_desc ..."
8087 $as_echo "$at_srcdir/rpmi.at:214:
8091 -i /data/SRPMS/hello-1.0-1.src.rpm
8093 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmi.at:214"
8098 -i /data/SRPMS/hello-1.0-1.src.rpm
8100 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8101 at_status=$? at_failed=false
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
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"
8115 at_fn_group_banner 93 'rpmi.at:228' \
8116 "rpm -i <nonexistent file>" " " 7
8119 $as_echo "93. $at_setup_line: testing $at_desc ..."
8124 $as_echo "$at_srcdir/rpmi.at:230:
8128 at_fn_check_prepare_notrace 'an embedded newline' "rpmi.at:230"
8133 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8134 at_status=$? at_failed=false
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
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"
8148 at_fn_group_banner 94 'rpmi.at:240' \
8149 "rpm -i --nomanifest <garbage text file>" " " 7
8152 $as_echo "94. $at_setup_line: testing $at_desc ..."
8157 $as_echo "$at_srcdir/rpmi.at:242:
8158 junk=\"\${RPMTEST}/textfile\"
8159 cat << EOF > \"\${junk}\"
8165 -Uvv --nomanifest /textfile
8167 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmi.at:242"
8169 junk="${RPMTEST}/textfile"
8170 cat << EOF > "${junk}"
8176 -Uvv --nomanifest /textfile
8178 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8179 at_status=$? at_failed=false
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
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"
8193 at_fn_group_banner 95 'rpmi.at:257' \
8194 "rpm -i <garbage text file" " " 7
8197 $as_echo "95. $at_setup_line: testing $at_desc ..."
8202 $as_echo "$at_srcdir/rpmi.at:259:
8203 junk=\"\${RPMTEST}/not_an.rpm\"
8204 cat << EOF > \"\${junk}\"
8212 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmi.at:259"
8214 junk="${RPMTEST}/not_an.rpm"
8215 cat << EOF > "${junk}"
8223 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8224 at_status=$? at_failed=false
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
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"
8238 at_fn_group_banner 96 'rpmi.at:276' \
8239 "rpm -U upgrade to newer" " " 7
8242 $as_echo "96. $at_setup_line: testing $at_desc ..."
8246 $as_echo "$at_srcdir/rpmi.at:277:
8248 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8251 runroot rpm --initdb
8253 rm -rf \"\${TOPDIR}\"
8255 for v in \"1.0\" \"2.0\"; do
8256 runroot rpmbuild --quiet -bb \\
8257 --define \"ver \$v\" \\
8258 /data/SPECS/versiontest.spec
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
8265 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:277"
8268 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8271 runroot rpm --initdb
8275 for v in "1.0" "2.0"; do
8276 runroot rpmbuild --quiet -bb \
8278 /data/SPECS/versiontest.spec
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
8285 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8286 at_status=$? at_failed=false
8288 at_fn_diff_devnull "$at_stderr" || at_failed=:
8289 echo >>"$at_stdout"; $as_echo "versiontest-2.0-1.noarch
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
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"
8302 at_fn_group_banner 97 'rpmi.at:299' \
8303 "rpm -U upgrade to older" " " 7
8306 $as_echo "97. $at_setup_line: testing $at_desc ..."
8310 $as_echo "$at_srcdir/rpmi.at:300:
8312 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8315 runroot rpm --initdb
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
8321 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:300"
8324 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8327 runroot rpm --initdb
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
8333 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8334 at_status=$? at_failed=false
8336 echo >>"$at_stderr"; $as_echo " package versiontest-2.0-1.noarch (which is newer than versiontest-1.0-1.noarch) is already installed
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
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"
8350 at_fn_group_banner 98 'rpmi.at:314' \
8351 "rpm -U --oldpackage downgrade" " " 7
8354 $as_echo "98. $at_setup_line: testing $at_desc ..."
8358 $as_echo "$at_srcdir/rpmi.at:315:
8360 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8363 runroot rpm --initdb
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
8370 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:315"
8373 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8376 runroot rpm --initdb
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
8383 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8384 at_status=$? at_failed=false
8386 echo stderr:; cat "$at_stderr"
8387 echo >>"$at_stdout"; $as_echo "versiontest-1.0-1.noarch
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
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"
8400 at_fn_group_banner 99 'rpmi.at:330' \
8401 "rpm -U two versions of same package 1" " " 7
8404 $as_echo "99. $at_setup_line: testing $at_desc ..."
8408 $as_echo "$at_srcdir/rpmi.at:331:
8410 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8413 runroot rpm --initdb
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
8421 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:331"
8424 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8427 runroot rpm --initdb
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
8435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8436 at_status=$? at_failed=false
8438 echo >>"$at_stderr"; $as_echo "warning: package versiontest-1.0-1.noarch was already added, replacing with versiontest-2.0-1.noarch
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
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
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"
8456 at_fn_group_banner 100 'rpmi.at:350' \
8457 "rpm -U two versions of same package 2" " " 7
8460 $as_echo "100. $at_setup_line: testing $at_desc ..."
8464 $as_echo "$at_srcdir/rpmi.at:351:
8466 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8469 runroot rpm --initdb
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
8477 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:351"
8480 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8483 runroot rpm --initdb
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
8491 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8492 at_status=$? at_failed=false
8494 echo >>"$at_stderr"; $as_echo "warning: package versiontest-2.0-1.noarch was already added, skipping versiontest-1.0-1.noarch
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
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
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"
8512 at_fn_group_banner 101 'rpmi.at:370' \
8513 "rpm -U obsoleted package 1" " " 7
8516 $as_echo "101. $at_setup_line: testing $at_desc ..."
8520 $as_echo "$at_srcdir/rpmi.at:371:
8522 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8525 runroot rpm --initdb
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
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
8542 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:371"
8545 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8548 runroot rpm --initdb
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
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
8565 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8566 at_status=$? at_failed=false
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
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
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
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"
8586 at_fn_group_banner 102 'rpmi.at:399' \
8587 "rpm -U obsoleted package 2" " " 7
8590 $as_echo "102. $at_setup_line: testing $at_desc ..."
8594 $as_echo "$at_srcdir/rpmi.at:400:
8596 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8599 runroot rpm --initdb
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
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
8616 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:400"
8619 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8622 runroot rpm --initdb
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
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
8639 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8640 at_status=$? at_failed=false
8642 echo >>"$at_stderr"; $as_echo "warning: package deptest-one-1.0-1.noarch was already added, skipping deptest-two-1.0-1.noarch
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
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
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"
8660 at_fn_group_banner 103 'rpmi.at:428' \
8661 "rpm -i two versions of same package" " " 7
8664 $as_echo "103. $at_setup_line: testing $at_desc ..."
8668 $as_echo "$at_srcdir/rpmi.at:429:
8670 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8673 runroot rpm --initdb
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
8681 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:429"
8684 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8687 runroot rpm --initdb
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
8695 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8696 at_status=$? at_failed=false
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
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
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"
8713 at_fn_group_banner 104 'rpmi.at:447' \
8714 "rpm -i identical versions of same package" " " 7
8717 $as_echo "104. $at_setup_line: testing $at_desc ..."
8721 $as_echo "$at_srcdir/rpmi.at:448:
8723 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8726 runroot rpm --initdb
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
8734 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:448"
8737 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8740 runroot rpm --initdb
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
8748 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8749 at_status=$? at_failed=false
8751 at_fn_diff_devnull "$at_stderr" || at_failed=:
8752 echo >>"$at_stdout"; $as_echo "versiontest-1.0-1.noarch
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
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"
8765 at_fn_group_banner 105 'rpmi.at:465' \
8766 "rpm -U with invalid --relocate" " " 7
8769 $as_echo "105. $at_setup_line: testing $at_desc ..."
8774 $as_echo "$at_srcdir/rpmi.at:467:
8776 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8779 runroot rpm --initdb
8782 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
8784 runroot rpm -U --test --ignoreos --relocate /usr=/opt \\
8785 /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
8787 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:467"
8790 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8793 runroot rpm --initdb
8796 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
8798 runroot rpm -U --test --ignoreos --relocate /usr=/opt \
8799 /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
8801 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8802 at_status=$? at_failed=false
8804 echo >>"$at_stderr"; $as_echo " path /usr in package hello-script-1.0-1.noarch is not relocatable
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
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"
8818 at_fn_group_banner 106 'rpmi.at:482' \
8819 "rpm -U --badreloc with invalid --relocate" " " 7
8822 $as_echo "106. $at_setup_line: testing $at_desc ..."
8827 $as_echo "$at_srcdir/rpmi.at:484:
8829 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8832 runroot rpm --initdb
8835 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
8837 runroot rpm -U --test --ignoreos --badreloc --relocate /usr=/opt \\
8838 /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
8840 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:484"
8843 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8846 runroot rpm --initdb
8849 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
8851 runroot rpm -U --test --ignoreos --badreloc --relocate /usr=/opt \
8852 /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm
8854 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8855 at_status=$? at_failed=false
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
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"
8869 at_fn_group_banner 107 'rpmi.at:498' \
8870 "rpm -i with/without --excludedocs" " " 7
8873 $as_echo "107. $at_setup_line: testing $at_desc ..."
8878 $as_echo "$at_srcdir/rpmi.at:500:
8880 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8883 runroot rpm --initdb
8886 runroot rpmbuild --quiet -bb /data/SPECS/testdoc.spec
8888 runroot rpm -i --excludedocs \\
8889 /build/RPMS/noarch/testdoc-1.0-1.noarch.rpm
8891 RPM_DOCDIR=\$(runroot rpm --eval '%_defaultdocdir')
8892 RPM_DATADIR=\$(runroot rpm --eval '%_datadir')
8894 test ! -e \${RPMTEST}\${RPM_DOCDIR}/testdoc || exit 1
8895 test -e \${RPMTEST}\${RPM_DATADIR}/testdoc/nodoc || exit 1
8897 runroot rpm -e testdoc
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
8907 runroot rpm -e testdoc
8909 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmi.at:500"
8912 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
8915 runroot rpm --initdb
8918 runroot rpmbuild --quiet -bb /data/SPECS/testdoc.spec
8920 runroot rpm -i --excludedocs \
8921 /build/RPMS/noarch/testdoc-1.0-1.noarch.rpm
8923 RPM_DOCDIR=$(runroot rpm --eval '%_defaultdocdir')
8924 RPM_DATADIR=$(runroot rpm --eval '%_datadir')
8926 test ! -e ${RPMTEST}${RPM_DOCDIR}/testdoc || exit 1
8927 test -e ${RPMTEST}${RPM_DATADIR}/testdoc/nodoc || exit 1
8929 runroot rpm -e testdoc
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
8939 runroot rpm -e testdoc
8941 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
8942 at_status=$? at_failed=false
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
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"
8956 at_fn_group_banner 108 'rpmorder.at:3' \
8957 "basic install/erase order 1" " " 8
8960 $as_echo "108. $at_setup_line: testing $at_desc ..."
8965 $as_echo "$at_srcdir/rpmorder.at:5:
8967 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
8970 runroot rpm --initdb
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
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
8991 runroot rpm -ev --justdb \\
8996 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmorder.at:5"
8999 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9002 runroot rpm --initdb
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
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
9023 runroot rpm -ev --justdb \
9028 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9029 at_status=$? at_failed=false
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
9038 Preparing packages...
9039 deptest-one-1.0-1.noarch
9040 deptest-two-1.0-1.noarch
9041 deptest-three-1.0-1.noarch
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
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"
9054 at_fn_group_banner 109 'rpmbuild.at:23' \
9055 "rpmbuild -ba *.spec" " " 9
9058 $as_echo "109. $at_setup_line: testing $at_desc ..."
9063 $as_echo "$at_srcdir/rpmbuild.at:25:
9065 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
9067 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
9070 -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
9072 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:25"
9075 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
9077 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
9080 -ba "${abs_srcdir}"/data/SPECS/hello.spec
9082 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9083 at_status=$? at_failed=false
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
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"
9097 at_fn_group_banner 110 'rpmbuild.at:41' \
9098 "rpmbuild --rebuild" " " 9
9101 $as_echo "110. $at_setup_line: testing $at_desc ..."
9106 $as_echo "$at_srcdir/rpmbuild.at:43:
9110 --rebuild \"\${abs_srcdir}\"/data/SRPMS/hello-1.0-1.src.rpm
9112 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:43"
9117 --rebuild "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm
9119 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9120 at_status=$? at_failed=false
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
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"
9134 at_fn_group_banner 111 'rpmbuild.at:54' \
9135 "rpmbuild --short-circuit -bl" " " 9
9138 $as_echo "111. $at_setup_line: testing $at_desc ..."
9143 $as_echo "$at_srcdir/rpmbuild.at:56:
9145 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
9147 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
9152 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:56"
9155 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
9157 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
9162 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9163 at_status=$? at_failed=false
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
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"
9177 at_fn_group_banner 112 'rpmbuild.at:72' \
9178 "rpmbuild -tb <tar with bad spec>" " " 9
9181 $as_echo "112. $at_setup_line: testing $at_desc ..."
9186 $as_echo "$at_srcdir/rpmbuild.at:74:
9190 -tb \"\${RPMDATA}/SOURCES/hello-1.0.tar.gz\"
9192 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:74"
9197 -tb "${RPMDATA}/SOURCES/hello-1.0.tar.gz"
9199 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9200 at_status=$? at_failed=false
9202 echo >>"$at_stderr"; $as_echo "error: line 5: Unknown tag: Serial: 1
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
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"
9216 at_fn_group_banner 113 'rpmbuild.at:89' \
9217 "rpmbuild -tb" " " 9
9220 $as_echo "113. $at_setup_line: testing $at_desc ..."
9225 $as_echo "$at_srcdir/rpmbuild.at:91:
9229 -ta \"\${RPMDATA}/SOURCES/hello-2.0.tar.gz\"
9231 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:91"
9236 -ta "${RPMDATA}/SOURCES/hello-2.0.tar.gz"
9238 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9239 at_status=$? at_failed=false
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
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"
9253 at_fn_group_banner 114 'rpmbuild.at:104' \
9254 "rpmbuild %attr and %defattr" " " 9
9257 $as_echo "114. $at_setup_line: testing $at_desc ..."
9262 $as_echo "$at_srcdir/rpmbuild.at:106:
9266 -bb --quiet /data/SPECS/attrtest.spec
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
9272 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:106"
9277 -bb --quiet /data/SPECS/attrtest.spec
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
9283 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9284 at_status=$? at_failed=false
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
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
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"
9320 at_fn_group_banner 115 'rpmbuild.at:144' \
9321 "rpmbuild hardlink" " " 9
9324 $as_echo "115. $at_setup_line: testing $at_desc ..."
9329 $as_echo "$at_srcdir/rpmbuild.at:146:
9331 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9334 runroot rpm --initdb
9339 -bb --quiet /data/SPECS/hlinktest.spec
9341 runroot rpm -i /build/RPMS/noarch/hlinktest-1.0-1.noarch.rpm
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
9348 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:146"
9351 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9354 runroot rpm --initdb
9359 -bb --quiet /data/SPECS/hlinktest.spec
9361 runroot rpm -i /build/RPMS/noarch/hlinktest-1.0-1.noarch.rpm
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
9368 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9369 at_status=$? at_failed=false
9371 at_fn_diff_devnull "$at_stderr" || at_failed=:
9372 echo >>"$at_stdout"; $as_echo "2 /foo/aaaa
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
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"
9393 at_fn_group_banner 116 'rpmbuild.at:175' \
9394 "rpmbuild unpackaged files" " " 9
9397 $as_echo "116. $at_setup_line: testing $at_desc ..."
9402 $as_echo "$at_srcdir/rpmbuild.at:177:
9404 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9407 runroot rpm --initdb
9412 -bb --quiet --with unpackaged_files /data/SPECS/hlinktest.spec
9414 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:177"
9417 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9420 runroot rpm --initdb
9425 -bb --quiet --with unpackaged_files /data/SPECS/hlinktest.spec
9427 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9428 at_status=$? at_failed=false
9430 echo >>"$at_stderr"; $as_echo "error: Installed (but unpackaged) file(s) found:
9432 Installed (but unpackaged) file(s) found:
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
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"
9447 at_fn_group_banner 117 'rpmbuild.at:195' \
9448 "rpmbuild unpackaged directories" " " 9
9450 test $RPM_XFAIL -ne 0 && at_xfail=yes
9452 $as_echo "117. $at_setup_line: testing $at_desc ..."
9458 $as_echo "$at_srcdir/rpmbuild.at:198:
9460 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9463 runroot rpm --initdb
9468 -bb --quiet --with unpackaged_dirs /data/SPECS/hlinktest.spec
9470 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:198"
9473 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9476 runroot rpm --initdb
9481 -bb --quiet --with unpackaged_dirs /data/SPECS/hlinktest.spec
9483 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9484 at_status=$? at_failed=false
9486 echo >>"$at_stderr"; $as_echo "error: Installed (but unpackaged) file(s) found:
9488 Installed (but unpackaged) file(s) found:
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
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"
9503 at_fn_group_banner 118 'rpmbuild.at:215' \
9504 "rpmbuild glob" " " 9
9507 $as_echo "118. $at_setup_line: testing $at_desc ..."
9512 $as_echo "$at_srcdir/rpmbuild.at:217:
9514 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9517 runroot rpm --initdb
9521 runroot rpmbuild -bb --quiet /data/SPECS/globtest.spec
9523 --qf \"[%{filemodes:perms} %{filenames}\\n]\" \\
9524 /build/RPMS/noarch/globtest-1.0-1.noarch.rpm
9526 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:217"
9529 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9532 runroot rpm --initdb
9536 runroot rpmbuild -bb --quiet /data/SPECS/globtest.spec
9538 --qf "[%{filemodes:perms} %{filenames}\n]" \
9539 /build/RPMS/noarch/globtest-1.0-1.noarch.rpm
9541 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9542 at_status=$? at_failed=false
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
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
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"
9572 at_fn_group_banner 119 'rpmbuild.at:247' \
9573 "rpmbuild prefixpostfix" " " 9
9576 $as_echo "119. $at_setup_line: testing $at_desc ..."
9581 $as_echo "$at_srcdir/rpmbuild.at:249:
9583 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
9586 runroot rpm --initdb
9590 runroot rpmbuild -bb --quiet \\
9591 /data/SPECS/prefixtest.spec
9593 --qf \"[%{filemodes:perms} %{filenames}\\n]\" \\
9594 /build/RPMS/noarch/prefixtest-1.0-1.noarch.rpm
9596 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmbuild.at:249"
9599 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
9602 runroot rpm --initdb
9606 runroot rpmbuild -bb --quiet \
9607 /data/SPECS/prefixtest.spec
9609 --qf "[%{filemodes:perms} %{filenames}\n]" \
9610 /build/RPMS/noarch/prefixtest-1.0-1.noarch.rpm
9612 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9613 at_status=$? at_failed=false
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
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
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"
9643 at_fn_group_banner 120 'rpmbuild.at:282' \
9644 "Weak and reverse requires" " " 9
9647 $as_echo "120. $at_setup_line: testing $at_desc ..."
9652 $as_echo "$at_srcdir/rpmbuild.at:284:
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
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
9667 at_fn_check_prepare_notrace 'an embedded newline' "rpmbuild.at:284"
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
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
9683 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9684 at_status=$? at_failed=false
9686 echo stderr:; cat "$at_stderr"
9687 echo >>"$at_stdout"; $as_echo "foo > 1.2.3
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
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"
9703 at_fn_group_banner 121 'rpmbuild.at:310' \
9704 "Build requires" " " 9
9707 $as_echo "121. $at_setup_line: testing $at_desc ..."
9712 $as_echo "$at_srcdir/rpmbuild.at:312:
9714 runroot rpmbuild -bb --quiet \\
9715 --define \"pkg buildreq\" \\
9716 --define \"buildreqs foo > 1.2.3\" \\
9717 /data/SPECS/deptest.spec
9719 at_fn_check_prepare_notrace 'an embedded newline' "rpmbuild.at:312"
9722 runroot rpmbuild -bb --quiet \
9723 --define "pkg buildreq" \
9724 --define "buildreqs foo > 1.2.3" \
9725 /data/SPECS/deptest.spec
9727 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9728 at_status=$? at_failed=false
9730 echo >>"$at_stderr"; $as_echo "error: Failed build dependencies:
9731 foo > 1.2.3 is needed by deptest-buildreq-1.0-1.noarch
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
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"
9745 at_fn_group_banner 122 'rpmbuild.at:326' \
9746 "Dependency generation" " " 9
9749 $as_echo "122. $at_setup_line: testing $at_desc ..."
9754 $as_echo "$at_srcdir/rpmbuild.at:328:
9756 runroot rpmbuild -bb --quiet \\
9757 /data/SPECS/filedep.spec
9759 runroot rpm -qp --requires /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9761 runroot rpm -qp --provides /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9763 runroot rpm -qp --qf '[\"%{FILENAMES}\\t%{FILEREQUIRE}\"\\n]' /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9765 runroot rpm -qp --qf '[\"%{FILENAMES}\\t%{FILEPROVIDE}\"\\n]' /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9767 at_fn_check_prepare_notrace 'an embedded newline' "rpmbuild.at:328"
9770 runroot rpmbuild -bb --quiet \
9771 /data/SPECS/filedep.spec
9773 runroot rpm -qp --requires /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9775 runroot rpm -qp --provides /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9777 runroot rpm -qp --qf '["%{FILENAMES}\t%{FILEREQUIRE}"\n]' /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9779 runroot rpm -qp --qf '["%{FILENAMES}\t%{FILEPROVIDE}"\n]' /build/RPMS/noarch/filedep-1.0-1.noarch.rpm
9781 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9782 at_status=$? at_failed=false
9784 at_fn_diff_devnull "$at_stderr" || at_failed=:
9785 echo >>"$at_stdout"; $as_echo "Requires:
9788 rpmlib(CompressedFileNames) <= 3.0.4-1
9789 rpmlib(FileDigests) <= 4.6.0-1
9790 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
9795 \"/usr/bin/bar /bin/f00f\"
9796 \"/usr/bin/foo /bin/sh\"
9797 \"/usr/share/doc/filedep \"
9798 \"/usr/share/doc/filedep/README \"
9803 \"/usr/share/doc/filedep \"
9804 \"/usr/share/doc/filedep/README \"
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
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"
9817 at_fn_group_banner 123 'rpmbuild.at:369' \
9818 "rpmspec query 1" " " 9
9821 $as_echo "123. $at_setup_line: testing $at_desc ..."
9826 $as_echo "$at_srcdir/rpmbuild.at:371:
9828 runroot rpmspec -q \\
9829 --define \"pkg dep\" \\
9830 --define \"reqs foo > 1.2.3 bar <= 2.3\" \\
9832 /data/SPECS/deptest.spec
9834 at_fn_check_prepare_notrace 'an embedded newline' "rpmbuild.at:371"
9837 runroot rpmspec -q \
9838 --define "pkg dep" \
9839 --define "reqs foo > 1.2.3 bar <= 2.3" \
9841 /data/SPECS/deptest.spec
9843 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9844 at_status=$? at_failed=false
9846 at_fn_diff_devnull "$at_stderr" || at_failed=:
9847 echo >>"$at_stdout"; $as_echo "bar <= 2.3
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
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"
9862 at_fn_group_banner 124 'rpmbuild.at:389' \
9863 "rpmbuild archive sanity" " " 9
9866 $as_echo "124. $at_setup_line: testing $at_desc ..."
9871 $as_echo "$at_srcdir/rpmbuild.at:391:
9875 -bb --quiet /data/SPECS/attrtest.spec
9878 /build/RPMS/noarch/attrtest-1.0-1.noarch.rpm > /tmp/attrtest.cpio
9880 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:391"
9885 -bb --quiet /data/SPECS/attrtest.spec
9888 /build/RPMS/noarch/attrtest-1.0-1.noarch.rpm > /tmp/attrtest.cpio
9890 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9891 at_status=$? at_failed=false
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
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"
9905 at_fn_group_banner 125 'rpmbuild.at:407' \
9906 "rpmbuild debuginfo minisymtab" " " 9
9909 $as_echo "125. $at_setup_line: testing $at_desc ..."
9914 $as_echo "$at_srcdir/rpmbuild.at:409:
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
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
9931 # And the opposite for the debuginfo package
9932 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
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
9940 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:409"
9944 # Use macros.debug to generate a debuginfo package.
9946 rundebug rpmbuild --quiet \
9947 --rebuild "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm
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
9958 # And the opposite for the debuginfo package
9959 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
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
9967 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
9968 at_status=$? at_failed=false
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
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"
9982 at_fn_group_banner 126 'rpmbuild.at:444' \
9983 "rpmbuild debuginfo minisymtab strip -g" " " 9
9986 $as_echo "126. $at_setup_line: testing $at_desc ..."
9991 $as_echo "$at_srcdir/rpmbuild.at:446:
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
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
10009 # The debuginfo package should contain neither. The .symtab is NOBITS.
10010 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
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
10018 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:446"
10022 # Use macros.debug to generate a debuginfo package.
10024 rundebug rpmbuild --quiet \
10025 --define="_find_debuginfo_opts -g" \
10026 --rebuild "${abs_srcdir}"/data/SRPMS/hello-1.0-1.src.rpm
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
10037 # The debuginfo package should contain neither. The .symtab is NOBITS.
10038 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
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
10046 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10047 at_status=$? at_failed=false
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
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"
10061 at_fn_group_banner 127 'rpmbuild.at:483' \
10062 "rpmbuild debuginfo dwz" " " 9
10065 $as_echo "127. $at_setup_line: testing $at_desc ..."
10070 $as_echo "$at_srcdir/rpmbuild.at:485:
10072 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10074 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10076 rundebug rpmbuild --quiet \\
10077 --undefine \"_unique_debug_names\" \\
10078 --undefine \"_unique_debug_srcs\" \\
10079 -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
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 \\
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\"
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 \\
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\"
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/')
10108 test \"\$id1\" = \"\$id1debug\" || echo \"id1: \$id1 != id1debug: \$id1debug\"
10109 test \"\$id2\" = \"\$id2debug\" || echo \"id2: \$id2 != id2debug: \$id2debug\"
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)
10118 test \"\$canonid1file\" = \"\$canonfile1\" \\
10119 || echo \"canonid1file: \$canonid1file != \$canonfile1\"
10120 test \"\$canonid1debug\" = \"\$canondebug1\" \\
10121 || echo \"canonid1debug: \$canonid1debug != \$canondebug1\"
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)
10129 test \"\$canonid2file\" = \"\$canonfile2\" \\
10130 || echo \"canonid2: \$canonid2file != \$canonfile2\"
10131 test \"\$canonid2debug\" = \"\$canondebug2\" \\
10132 || echo \"canonid2debug: \$canonid2debug\" != \"\$canondebug2\"
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-)
10142 test \"\$multiref1\" = \"\$multiref2\" || echo \"multiref: \$multiref1 != \$multiref2\"
10144 canonmultiref=\$(readlink -f \$(dirname \$canondebug1)/\$multiref1)
10145 canonmultifile=\$(readlink -f \$hello_multi_file)
10147 test \"\$canonmultiref\" = \"\$canonmultifile\" \\
10148 || echo \"canonmultiref: \$canonmultiref\" != \"\$canonmultifile\"
10150 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:485"
10153 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10155 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10157 rundebug rpmbuild --quiet \
10158 --undefine "_unique_debug_names" \
10159 --undefine "_unique_debug_srcs" \
10160 -ba "${abs_srcdir}"/data/SPECS/hello2.spec
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 \
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"
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 \
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"
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/')
10189 test "$id1" = "$id1debug" || echo "id1: $id1 != id1debug: $id1debug"
10190 test "$id2" = "$id2debug" || echo "id2: $id2 != id2debug: $id2debug"
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)
10199 test "$canonid1file" = "$canonfile1" \
10200 || echo "canonid1file: $canonid1file != $canonfile1"
10201 test "$canonid1debug" = "$canondebug1" \
10202 || echo "canonid1debug: $canonid1debug != $canondebug1"
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)
10210 test "$canonid2file" = "$canonfile2" \
10211 || echo "canonid2: $canonid2file != $canonfile2"
10212 test "$canonid2debug" = "$canondebug2" \
10213 || echo "canonid2debug: $canonid2debug" != "$canondebug2"
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-)
10223 test "$multiref1" = "$multiref2" || echo "multiref: $multiref1 != $multiref2"
10225 canonmultiref=$(readlink -f $(dirname $canondebug1)/$multiref1)
10226 canonmultifile=$(readlink -f $hello_multi_file)
10228 test "$canonmultiref" = "$canonmultifile" \
10229 || echo "canonmultiref: $canonmultiref" != "$canonmultifile"
10231 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10232 at_status=$? at_failed=false
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
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"
10246 at_fn_group_banner 128 'rpmbuild.at:575' \
10247 "rpmbuild debuginfo dwz unique debug names" " " 9
10250 $as_echo "128. $at_setup_line: testing $at_desc ..."
10255 $as_echo "$at_srcdir/rpmbuild.at:577:
10257 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10259 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
10261 rundebug rpmbuild --quiet \\
10262 --define \"_unique_debug_names 1\" \\
10263 -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
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 \\
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\"
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 \\
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\"
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/')
10292 test \"\$id1\" = \"\$id1debug\" || echo \"id1: \$id1 != id1debug: \$id1debug\"
10293 test \"\$id2\" = \"\$id2debug\" || echo \"id2: \$id2 != id2debug: \$id2debug\"
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)
10302 test \"\$canonid1file\" = \"\$canonfile1\" \\
10303 || echo \"canonid1file: \$canonid1file != \$canonfile1\"
10304 test \"\$canonid1debug\" = \"\$canondebug1\" \\
10305 || echo \"canonid1debug: \$canonid1debug != \$canondebug1\"
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)
10313 test \"\$canonid2file\" = \"\$canonfile2\" \\
10314 || echo \"canonid2: \$canonid2file != \$canonfile2\"
10315 test \"\$canonid2debug\" = \"\$canondebug2\" \\
10316 || echo \"canonid2debug: \$canonid2debug\" != \"\$canondebug2\"
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-)
10326 test \"\$multiref1\" = \"\$multiref2\" || echo \"multiref: \$multiref1 != \$multiref2\"
10328 canonmultiref=\$(readlink -f \$(dirname \$canondebug1)/\$multiref1)
10329 canonmultifile=\$(readlink -f \$hello_multi_file)
10331 test \"\$canonmultiref\" = \"\$canonmultifile\" \\
10332 || echo \"canonmultiref: \$canonmultiref\" != \"\$canonmultifile\"
10334 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:577"
10337 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10339 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
10341 rundebug rpmbuild --quiet \
10342 --define "_unique_debug_names 1" \
10343 -ba "${abs_srcdir}"/data/SPECS/hello2.spec
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 \
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"
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 \
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"
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/')
10372 test "$id1" = "$id1debug" || echo "id1: $id1 != id1debug: $id1debug"
10373 test "$id2" = "$id2debug" || echo "id2: $id2 != id2debug: $id2debug"
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)
10382 test "$canonid1file" = "$canonfile1" \
10383 || echo "canonid1file: $canonid1file != $canonfile1"
10384 test "$canonid1debug" = "$canondebug1" \
10385 || echo "canonid1debug: $canonid1debug != $canondebug1"
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)
10393 test "$canonid2file" = "$canonfile2" \
10394 || echo "canonid2: $canonid2file != $canonfile2"
10395 test "$canonid2debug" = "$canondebug2" \
10396 || echo "canonid2debug: $canonid2debug" != "$canondebug2"
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-)
10406 test "$multiref1" = "$multiref2" || echo "multiref: $multiref1 != $multiref2"
10408 canonmultiref=$(readlink -f $(dirname $canondebug1)/$multiref1)
10409 canonmultifile=$(readlink -f $hello_multi_file)
10411 test "$canonmultiref" = "$canonmultifile" \
10412 || echo "canonmultiref: $canonmultiref" != "$canonmultifile"
10414 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10415 at_status=$? at_failed=false
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
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"
10429 at_fn_group_banner 129 'rpmbuild.at:664' \
10430 "rpmbuild debuginfo dwz gnu_debuglink crc" " " 9
10433 $as_echo "129. $at_setup_line: testing $at_desc ..."
10438 $as_echo "$at_srcdir/rpmbuild.at:666:
10440 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10445 rundebug rpmbuild --quiet \\
10446 -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
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 \\
10451 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
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
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:
10461 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:666"
10464 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10469 rundebug rpmbuild --quiet \
10470 -ba "${abs_srcdir}"/data/SPECS/hello2.spec
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 \
10475 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
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
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:
10485 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10486 at_status=$? at_failed=false
10488 echo stderr:; cat "$at_stderr"
10489 echo >>"$at_stdout"; $as_echo " Updated 0 CRC32s, 2 CRC32s did match.
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
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"
10502 at_fn_group_banner 130 'rpmbuild.at:698' \
10503 "rpmbuild implicit suid binary" " " 9
10506 $as_echo "130. $at_setup_line: testing $at_desc ..."
10511 $as_echo "$at_srcdir/rpmbuild.at:700:
10513 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10518 rundebug rpmbuild --quiet \\
10519 -ba \"\${abs_srcdir}\"/data/SPECS/hello2-suid.spec
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
10525 # List all binaries with suid bit set (should be one, hello).
10527 find usr -executable -type f -perm /4000
10528 # List all binaries without suid bit set (should also be one, hello2).
10530 find usr -executable -type f \\! -perm /4000
10532 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:700"
10535 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10540 rundebug rpmbuild --quiet \
10541 -ba "${abs_srcdir}"/data/SPECS/hello2-suid.spec
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
10547 # List all binaries with suid bit set (should be one, hello).
10549 find usr -executable -type f -perm /4000
10550 # List all binaries without suid bit set (should also be one, hello2).
10552 find usr -executable -type f \! -perm /4000
10554 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10555 at_status=$? at_failed=false
10557 echo stderr:; cat "$at_stderr"
10558 echo >>"$at_stdout"; $as_echo "suid:
10559 usr/local/bin/hello
10561 usr/local/bin/hello2
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
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"
10574 at_fn_group_banner 131 'rpmbuild.at:732' \
10575 "rpmbuild debuginfo gdb index included" " " 9
10578 $as_echo "131. $at_setup_line: testing $at_desc ..."
10583 $as_echo "$at_srcdir/rpmbuild.at:734:
10585 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10590 rundebug rpmbuild --quiet \\
10591 --define \"_include_gdb_index 1\" \\
10592 -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
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
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
10602 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:734"
10605 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10610 rundebug rpmbuild --quiet \
10611 --define "_include_gdb_index 1" \
10612 -ba "${abs_srcdir}"/data/SPECS/hello2.spec
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
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
10622 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10623 at_status=$? at_failed=false
10625 echo stderr:; cat "$at_stderr"
10626 echo >>"$at_stdout"; $as_echo ".gdb_index
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
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"
10639 at_fn_group_banner 132 'rpmbuild.at:761' \
10640 "rpmbuild debuginfo no gdb index included" " " 9
10643 $as_echo "132. $at_setup_line: testing $at_desc ..."
10648 $as_echo "$at_srcdir/rpmbuild.at:763:
10650 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10655 rundebug rpmbuild --quiet \\
10656 --undefine \"_include_gdb_index\" \\
10657 -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
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
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
10667 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:763"
10670 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10675 rundebug rpmbuild --quiet \
10676 --undefine "_include_gdb_index" \
10677 -ba "${abs_srcdir}"/data/SPECS/hello2.spec
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
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
10687 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10688 at_status=$? at_failed=false
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
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"
10702 at_fn_group_banner 133 'rpmbuild.at:789' \
10703 "rpmbuild debuginfo unique debug src dir" " " 9
10706 $as_echo "133. $at_setup_line: testing $at_desc ..."
10711 $as_echo "$at_srcdir/rpmbuild.at:791:
10713 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
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
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
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
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\\.
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\\.
10738 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:791"
10741 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
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
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
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
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\.
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\.
10766 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10767 at_status=$? at_failed=false
10769 echo stderr:; cat "$at_stderr"
10770 echo >>"$at_stdout"; $as_echo "hello2-1.0-1
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
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"
10784 at_fn_group_banner 134 'rpmbuild.at:828' \
10785 "rpmbuild debuginfo no unique debug src dir" " " 9
10788 $as_echo "134. $at_setup_line: testing $at_desc ..."
10793 $as_echo "$at_srcdir/rpmbuild.at:830:
10795 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
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
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
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
10811 # Check that the source path is \"unique\"
10812 ls ./usr/src/debug/
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/
10818 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:830"
10821 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
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
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
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
10837 # Check that the source path is "unique"
10838 ls ./usr/src/debug/
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/
10844 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10845 at_status=$? at_failed=false
10847 echo stderr:; cat "$at_stderr"
10848 echo >>"$at_stdout"; $as_echo "hello-1.0
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
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"
10862 at_fn_group_banner 135 'rpmbuild.at:864' \
10863 "rpmbuild debugsource" " " 9
10866 $as_echo "135. $at_setup_line: testing $at_desc ..."
10871 $as_echo "$at_srcdir/rpmbuild.at:866:
10873 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10878 rundebug rpmbuild --quiet \\
10879 --define \"_debugsource_packages 1\" \\
10880 -ba \"\${abs_srcdir}\"/data/SPECS/hello2.spec
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
10886 # Check that hello.c is there.
10887 ls ./usr/src/debug/hello2-1.0*/
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/'
10893 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:866"
10896 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
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
10901 rundebug rpmbuild --quiet \
10902 --define "_debugsource_packages 1" \
10903 -ba "${abs_srcdir}"/data/SPECS/hello2.spec
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
10909 # Check that hello.c is there.
10910 ls ./usr/src/debug/hello2-1.0*/
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/'
10916 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10917 at_status=$? at_failed=false
10919 echo stderr:; cat "$at_stderr"
10920 echo >>"$at_stdout"; $as_echo "hello.c
10921 Recommends: hello2-debugsource(ignore-arch) = 1.0-1
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
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"
10934 at_fn_group_banner 136 'rpmbuild.at:899' \
10935 "rpmbuild debugsource debugsourcefiles.list path" "" 9
10938 $as_echo "136. $at_setup_line: testing $at_desc ..."
10943 $as_echo "$at_srcdir/rpmbuild.at:901:
10945 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
10948 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
10950 rundebug rpmbuild --quiet \\
10951 --define \"_debugsource_packages 1\" \\
10952 -ba \"\${abs_srcdir}\"/data/SPECS/hello-cd.spec
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
10958 # Check that hello.c is there.
10959 ls ./usr/src/debug/test-1.0*/
10961 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuild.at:901"
10964 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
10967 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
10969 rundebug rpmbuild --quiet \
10970 --define "_debugsource_packages 1" \
10971 -ba "${abs_srcdir}"/data/SPECS/hello-cd.spec
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
10977 # Check that hello.c is there.
10978 ls ./usr/src/debug/test-1.0*/
10980 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
10981 at_status=$? at_failed=false
10983 echo stderr:; cat "$at_stderr"
10984 echo >>"$at_stdout"; $as_echo "hello.c
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
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"
10997 at_fn_group_banner 137 'rpmbuild.at:927' \
10998 "rpmbuild debuginfo subpackages single" " " 9
11001 $as_echo "137. $at_setup_line: testing $at_desc ..."
11006 $as_echo "$at_srcdir/rpmbuild.at:929:
11008 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11011 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
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
11020 # Check that there is just one debuginfo package.
11021 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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\"
11034 echo \"No hello: \$debug_name\"
11037 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:929"
11040 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11043 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
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
11052 # Check that there is just one debuginfo package.
11053 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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"
11066 echo "No hello: $debug_name"
11069 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11070 at_status=$? at_failed=false
11072 echo stderr:; cat "$at_stderr"
11073 echo >>"$at_stdout"; $as_echo "1
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
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"
11087 at_fn_group_banner 138 'rpmbuild.at:969' \
11088 "rpmbuild debuginfo subpackages multiple" " " 9
11091 $as_echo "138. $at_setup_line: testing $at_desc ..."
11096 $as_echo "$at_srcdir/rpmbuild.at:971:
11098 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11101 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
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
11110 # Check that there are 3 debuginfo packages.
11111 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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\"
11124 echo \"No hello: \$debug_name\"
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-)
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\"
11138 echo \"No hello2: \$debug_name\"
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/'
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-)
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\"
11157 echo \"No hello3: \$debug_name\"
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/'
11165 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:971"
11168 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11171 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
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
11180 # Check that there are 3 debuginfo packages.
11181 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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"
11194 echo "No hello: $debug_name"
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-)
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"
11208 echo "No hello2: $debug_name"
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/'
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-)
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"
11227 echo "No hello3: $debug_name"
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/'
11235 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11236 at_status=$? at_failed=false
11238 echo stderr:; cat "$at_stderr"
11239 echo >>"$at_stdout"; $as_echo "3
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
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
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"
11257 at_fn_group_banner 139 'rpmbuild.at:1053' \
11258 "rpmbuild debuginfo subpackages multiple unique" " " 9
11261 $as_echo "139. $at_setup_line: testing $at_desc ..."
11266 $as_echo "$at_srcdir/rpmbuild.at:1055:
11268 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11271 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
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
11280 # Check that there are 3 debuginfo packages.
11281 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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\"
11294 echo \"No hello: \$debug_name\"
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-)
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\"
11308 echo \"No hello2: \$debug_name\"
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/'
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-)
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\"
11327 echo \"No hello3: \$debug_name\"
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/'
11335 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:1055"
11338 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11341 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
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
11350 # Check that there are 3 debuginfo packages.
11351 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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"
11364 echo "No hello: $debug_name"
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-)
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"
11378 echo "No hello2: $debug_name"
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/'
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-)
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"
11397 echo "No hello3: $debug_name"
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/'
11405 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11406 at_status=$? at_failed=false
11408 echo stderr:; cat "$at_stderr"
11409 echo >>"$at_stdout"; $as_echo "3
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
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
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"
11427 at_fn_group_banner 140 'rpmbuild.at:1137' \
11428 "rpmbuild debuginfo subpackages multiple unique debugsource" "" 9
11431 $as_echo "140. $at_setup_line: testing $at_desc ..."
11436 $as_echo "$at_srcdir/rpmbuild.at:1139:
11438 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11441 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
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
11450 # Check that there are 3 debuginfo packages.
11451 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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\"
11464 echo \"No hello: \$debug_name\"
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/'
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-)
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\"
11482 echo \"No hello2: \$debug_name\"
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/'
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-)
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\"
11500 echo \"No hello3: \$debug_name\"
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/'
11507 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:1139"
11510 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11513 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
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
11522 # Check that there are 3 debuginfo packages.
11523 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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"
11536 echo "No hello: $debug_name"
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/'
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-)
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"
11554 echo "No hello2: $debug_name"
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/'
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-)
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"
11572 echo "No hello3: $debug_name"
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/'
11579 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11580 at_status=$? at_failed=false
11582 echo stderr:; cat "$at_stderr"
11583 echo >>"$at_stdout"; $as_echo "3
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
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
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"
11602 at_fn_group_banner 141 'rpmbuild.at:1224' \
11603 "rpmbuild debuginfo subpackages multiple excluded" "" 9
11606 $as_echo "141. $at_setup_line: testing $at_desc ..."
11611 $as_echo "$at_srcdir/rpmbuild.at:1226:
11613 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11616 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
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
11625 # Check that there are 2 debuginfo packages.
11626 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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\"
11639 echo \"No hello: \$debug_name\"
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-)
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\"
11653 echo \"No hello2: \$debug_name\"
11656 if test -f ./usr/lib/debug/bin/hello3*; then
11657 echo \"hello3 debug exists\"
11659 echo \"No hello3 debug\"
11662 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:1226"
11665 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11668 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
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
11677 # Check that there are 2 debuginfo packages.
11678 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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"
11691 echo "No hello: $debug_name"
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-)
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"
11705 echo "No hello2: $debug_name"
11708 if test -f ./usr/lib/debug/bin/hello3*; then
11709 echo "hello3 debug exists"
11711 echo "No hello3 debug"
11714 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11715 at_status=$? at_failed=false
11717 echo stderr:; cat "$at_stderr"
11718 echo >>"$at_stdout"; $as_echo "2
11720 hello2 debug exists
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
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"
11734 at_fn_group_banner 142 'rpmbuild.at:1288' \
11735 "rpmbuild debuginfo subpackages multiple excluded" "" 9
11738 $as_echo "142. $at_setup_line: testing $at_desc ..."
11743 $as_echo "$at_srcdir/rpmbuild.at:1290:
11745 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11748 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
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
11757 # Check that there are 2 debuginfo packages.
11758 ls \${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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\"
11771 echo \"No hello: \$debug_name\"
11774 # remove it, we are going to check the other debuginfo package.
11776 rm ./usr/lib/debug/bin/\$debug_name
11777 orig_debugname=\$debugname
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-)
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\"
11790 echo \"No hello2: \$debug_name\"
11793 if test -f ./usr/lib/debug/bin/\$orig_debugname; then
11794 echo \"\$orig_debugname exists\"
11796 echo \"No hello.debug\"
11799 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuild.at:1290"
11802 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11805 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
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
11814 # Check that there are 2 debuginfo packages.
11815 ls ${abs_builddir}/testing/build/RPMS/*/*debuginfo*rpm | wc --lines
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-)
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"
11828 echo "No hello: $debug_name"
11831 # remove it, we are going to check the other debuginfo package.
11833 rm ./usr/lib/debug/bin/$debug_name
11834 orig_debugname=$debugname
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-)
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"
11847 echo "No hello2: $debug_name"
11850 if test -f ./usr/lib/debug/bin/$orig_debugname; then
11851 echo "$orig_debugname exists"
11853 echo "No hello.debug"
11856 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11857 at_status=$? at_failed=false
11859 echo stderr:; cat "$at_stderr"
11860 echo >>"$at_stdout"; $as_echo "2
11862 hello.foobar debug exists
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
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"
11876 at_fn_group_banner 143 'rpmbuildid.at:23' \
11877 "rpmbuild buildid none" " " 10
11880 $as_echo "143. $at_setup_line: testing $at_desc ..."
11885 $as_echo "$at_srcdir/rpmbuildid.at:25:
11887 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11890 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
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
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
11907 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuildid.at:25"
11910 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
11913 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
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
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
11930 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
11931 at_status=$? at_failed=false
11933 echo stderr:; cat "$at_stderr"
11934 echo >>"$at_stdout"; $as_echo "hello build-id files: 0
11935 hello debuginfo build-id files: 0
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
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"
11948 at_fn_group_banner 144 'rpmbuildid.at:57' \
11949 "rpmbuild buildid alldebug" " " 10
11952 $as_echo "144. $at_setup_line: testing $at_desc ..."
11957 $as_echo "$at_srcdir/rpmbuildid.at:59:
11959 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
11962 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
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
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
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 \\
11986 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
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}\"
11993 # Extract the build-id from the main file
11994 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
11999 canon_main_file=\$(readlink -f \${main_file})
12001 test -f \"\$canon_main_file\" \\
12002 || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12004 canon_main_id_file=\$(readlink -f \${id_main_file})
12006 test -f \"\$canon_main_id_file\" \\
12007 || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12009 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12010 || echo \"main and build-id file not linked\"
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}\"
12016 # Extract the build-id from the .debug file
12017 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12019 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
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\"
12024 canon_debug_file=\$(readlink -f \${debug_file})
12026 test -f \"\$canon_debug_file\" \\
12027 || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12029 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12031 test -f \"\$canon_debug_id_file\" \\
12032 || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12034 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12035 || echo \"debug and build-id not linked\"
12037 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:59"
12040 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12043 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
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
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
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 \
12067 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
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}"
12074 # Extract the build-id from the main file
12075 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
12080 canon_main_file=$(readlink -f ${main_file})
12082 test -f "$canon_main_file" \
12083 || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12085 canon_main_id_file=$(readlink -f ${id_main_file})
12087 test -f "$canon_main_id_file" \
12088 || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12090 test "$canon_main_file" = "$canon_main_id_file" \
12091 || echo "main and build-id file not linked"
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}"
12097 # Extract the build-id from the .debug file
12098 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12100 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
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"
12105 canon_debug_file=$(readlink -f ${debug_file})
12107 test -f "$canon_debug_file" \
12108 || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12110 canon_debug_id_file=$(readlink -f ${id_debug_file})
12112 test -f "$canon_debug_id_file" \
12113 || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12115 test "$canon_debug_file" = "$canon_debug_id_file" \
12116 || echo "debug and build-id not linked"
12118 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12119 at_status=$? at_failed=false
12121 echo stderr:; cat "$at_stderr"
12122 echo >>"$at_stdout"; $as_echo "hello build-id files: 0
12123 hello debuginfo build-id files: 3
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
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"
12136 at_fn_group_banner 145 'rpmbuildid.at:149' \
12137 "rpmbuild buildid alldebug unique debug names" " " 10
12140 $as_echo "145. $at_setup_line: testing $at_desc ..."
12145 $as_echo "$at_srcdir/rpmbuildid.at:151:
12147 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12150 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
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
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
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 \\
12173 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
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}\"
12180 # Extract the build-id from the main file
12181 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
12186 canon_main_file=\$(readlink -f \${main_file})
12188 test -f \"\$canon_main_file\" \\
12189 || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12191 canon_main_id_file=\$(readlink -f \${id_main_file})
12193 test -f \"\$canon_main_id_file\" \\
12194 || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12196 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12197 || echo \"main and build-id file not linked\"
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}\"
12203 # Extract the build-id from the .debug file
12204 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12206 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
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\"
12211 canon_debug_file=\$(readlink -f \${debug_file})
12213 test -f \"\$canon_debug_file\" \\
12214 || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12216 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12218 test -f \"\$canon_debug_id_file\" \\
12219 || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12221 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12222 || echo \"debug and build-id not linked\"
12224 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:151"
12227 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12230 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
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
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
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 \
12253 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
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}"
12260 # Extract the build-id from the main file
12261 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
12266 canon_main_file=$(readlink -f ${main_file})
12268 test -f "$canon_main_file" \
12269 || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12271 canon_main_id_file=$(readlink -f ${id_main_file})
12273 test -f "$canon_main_id_file" \
12274 || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12276 test "$canon_main_file" = "$canon_main_id_file" \
12277 || echo "main and build-id file not linked"
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}"
12283 # Extract the build-id from the .debug file
12284 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12286 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
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"
12291 canon_debug_file=$(readlink -f ${debug_file})
12293 test -f "$canon_debug_file" \
12294 || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12296 canon_debug_id_file=$(readlink -f ${id_debug_file})
12298 test -f "$canon_debug_id_file" \
12299 || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12301 test "$canon_debug_file" = "$canon_debug_id_file" \
12302 || echo "debug and build-id not linked"
12304 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12305 at_status=$? at_failed=false
12307 echo stderr:; cat "$at_stderr"
12308 echo >>"$at_stdout"; $as_echo "hello build-id files: 0
12309 hello debuginfo build-id files: 3
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
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"
12322 at_fn_group_banner 146 'rpmbuildid.at:240' \
12323 "rpmbuild buildid separate" " " 10
12326 $as_echo "146. $at_setup_line: testing $at_desc ..."
12331 $as_echo "$at_srcdir/rpmbuildid.at:242:
12333 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12336 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
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
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
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 \\
12359 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
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}\"
12366 # Extract the build-id from the main file
12367 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
12372 canon_main_file=\$(readlink -f \${main_file})
12374 test -f \"\$canon_main_file\" \\
12375 || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12377 canon_main_id_file=\$(readlink -f \${id_main_file})
12379 test -f \"\$canon_main_id_file\" \\
12380 || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12382 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12383 || echo \"main and build-id file not linked\"
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}\"
12389 # Extract the build-id from the .debug file
12390 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12392 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
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\"
12397 canon_debug_file=\$(readlink -f \${debug_file})
12399 test -f \"\$canon_debug_file\" \\
12400 || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12402 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12404 test -f \"\$canon_debug_id_file\" \\
12405 || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12407 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12408 || echo \"debug and build-id not linked\"
12410 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:242"
12413 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12416 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
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
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
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 \
12439 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
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}"
12446 # Extract the build-id from the main file
12447 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
12452 canon_main_file=$(readlink -f ${main_file})
12454 test -f "$canon_main_file" \
12455 || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12457 canon_main_id_file=$(readlink -f ${id_main_file})
12459 test -f "$canon_main_id_file" \
12460 || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12462 test "$canon_main_file" = "$canon_main_id_file" \
12463 || echo "main and build-id file not linked"
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}"
12469 # Extract the build-id from the .debug file
12470 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12472 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
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"
12477 canon_debug_file=$(readlink -f ${debug_file})
12479 test -f "$canon_debug_file" \
12480 || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12482 canon_debug_id_file=$(readlink -f ${id_debug_file})
12484 test -f "$canon_debug_id_file" \
12485 || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12487 test "$canon_debug_file" = "$canon_debug_id_file" \
12488 || echo "debug and build-id not linked"
12490 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12491 at_status=$? at_failed=false
12493 echo stderr:; cat "$at_stderr"
12494 echo >>"$at_stdout"; $as_echo "hello build-id files: 2
12495 hello debuginfo build-id files: 2
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
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"
12508 at_fn_group_banner 147 'rpmbuildid.at:331' \
12509 "rpmbuild buildid separate unique debug names" " " 10
12512 $as_echo "147. $at_setup_line: testing $at_desc ..."
12517 $as_echo "$at_srcdir/rpmbuildid.at:333:
12519 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12522 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
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
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
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 \\
12544 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
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}\"
12551 # Extract the build-id from the main file
12552 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
12557 canon_main_file=\$(readlink -f \${main_file})
12559 test -f \"\$canon_main_file\" \\
12560 || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12562 canon_main_id_file=\$(readlink -f \${id_main_file})
12564 test -f \"\$canon_main_id_file\" \\
12565 || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12567 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12568 || echo \"main and build-id file not linked\"
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}\"
12574 # Extract the build-id from the .debug file
12575 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12577 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
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\"
12582 canon_debug_file=\$(readlink -f \${debug_file})
12584 test -f \"\$canon_debug_file\" \\
12585 || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12587 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12589 test -f \"\$canon_debug_id_file\" \\
12590 || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12592 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12593 || echo \"debug and build-id not linked\"
12595 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:333"
12598 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12601 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
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
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
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 \
12623 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
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}"
12630 # Extract the build-id from the main file
12631 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
12636 canon_main_file=$(readlink -f ${main_file})
12638 test -f "$canon_main_file" \
12639 || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12641 canon_main_id_file=$(readlink -f ${id_main_file})
12643 test -f "$canon_main_id_file" \
12644 || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12646 test "$canon_main_file" = "$canon_main_id_file" \
12647 || echo "main and build-id file not linked"
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}"
12653 # Extract the build-id from the .debug file
12654 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12656 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
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"
12661 canon_debug_file=$(readlink -f ${debug_file})
12663 test -f "$canon_debug_file" \
12664 || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12666 canon_debug_id_file=$(readlink -f ${id_debug_file})
12668 test -f "$canon_debug_id_file" \
12669 || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12671 test "$canon_debug_file" = "$canon_debug_id_file" \
12672 || echo "debug and build-id not linked"
12674 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12675 at_status=$? at_failed=false
12677 echo stderr:; cat "$at_stderr"
12678 echo >>"$at_stdout"; $as_echo "hello build-id files: 2
12679 hello debuginfo build-id files: 2
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
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"
12692 at_fn_group_banner 148 'rpmbuildid.at:421' \
12693 "rpmbuild buildid compat" " " 10
12696 $as_echo "148. $at_setup_line: testing $at_desc ..."
12701 $as_echo "$at_srcdir/rpmbuildid.at:423:
12703 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12706 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
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
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
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 \\
12730 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
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}\"
12737 # Extract the build-id from the main file
12738 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
12743 canon_main_file=\$(readlink -f \${main_file})
12745 test -f \"\$canon_main_file\" \\
12746 || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12748 canon_main_id_file=\$(readlink -f \${id_main_file})
12750 test -f \"\$canon_main_id_file\" \\
12751 || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12753 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12754 || echo \"main and build-id file not linked\"
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}\"
12760 # Extract the build-id from the .debug file
12761 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12763 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
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\"
12768 canon_debug_file=\$(readlink -f \${debug_file})
12770 test -f \"\$canon_debug_file\" \\
12771 || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12773 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12775 test -f \"\$canon_debug_id_file\" \\
12776 || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12778 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12779 || echo \"debug and build-id not linked\"
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\"
12785 canon_compat_file=\$(readlink -f \${id_compat_file})
12787 test -f \"\$canon_compat_file\" \\
12788 || echo \"Cannot resolve compat file \${id_compat_file} -> \${canon_compat_file}\"
12790 test \"\$canon_compat_file\" = \"\$canon_main_file\" \\
12791 || echo \"compat and build-id not linked\"
12793 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:423"
12796 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
12799 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
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
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
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 \
12823 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
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}"
12830 # Extract the build-id from the main file
12831 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
12836 canon_main_file=$(readlink -f ${main_file})
12838 test -f "$canon_main_file" \
12839 || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
12841 canon_main_id_file=$(readlink -f ${id_main_file})
12843 test -f "$canon_main_id_file" \
12844 || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
12846 test "$canon_main_file" = "$canon_main_id_file" \
12847 || echo "main and build-id file not linked"
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}"
12853 # Extract the build-id from the .debug file
12854 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
12856 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
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"
12861 canon_debug_file=$(readlink -f ${debug_file})
12863 test -f "$canon_debug_file" \
12864 || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
12866 canon_debug_id_file=$(readlink -f ${id_debug_file})
12868 test -f "$canon_debug_id_file" \
12869 || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
12871 test "$canon_debug_file" = "$canon_debug_id_file" \
12872 || echo "debug and build-id not linked"
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"
12878 canon_compat_file=$(readlink -f ${id_compat_file})
12880 test -f "$canon_compat_file" \
12881 || echo "Cannot resolve compat file ${id_compat_file} -> ${canon_compat_file}"
12883 test "$canon_compat_file" = "$canon_main_file" \
12884 || echo "compat and build-id not linked"
12886 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
12887 at_status=$? at_failed=false
12889 echo stderr:; cat "$at_stderr"
12890 echo >>"$at_stdout"; $as_echo "hello build-id files: 2
12891 hello debuginfo build-id files: 3
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
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"
12904 at_fn_group_banner 149 'rpmbuildid.at:525' \
12905 "rpmbuild buildid compat unique debug names" " " 10
12908 $as_echo "149. $at_setup_line: testing $at_desc ..."
12913 $as_echo "$at_srcdir/rpmbuildid.at:527:
12915 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
12918 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
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
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
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 \\
12941 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \\
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}\"
12948 # Extract the build-id from the main file
12949 id_main=\$(file \$main_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
12954 canon_main_file=\$(readlink -f \${main_file})
12956 test -f \"\$canon_main_file\" \\
12957 || echo \"Cannot resolve main file \${main_file} -> \${canon_main_file}\"
12959 canon_main_id_file=\$(readlink -f \${id_main_file})
12961 test -f \"\$canon_main_id_file\" \\
12962 || echo \"Cannot resolve main build-id file \${id_main_file} -> \${canon_main_id_file}\"
12964 test \"\$canon_main_file\" = \"\$canon_main_id_file\" \\
12965 || echo \"main and build-id file not linked\"
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}\"
12971 # Extract the build-id from the .debug file
12972 id_debug=\$(file \$debug_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
12974 test \${id_main} = \${id_debug} || echo \"unequal main and debug id\"
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\"
12979 canon_debug_file=\$(readlink -f \${debug_file})
12981 test -f \"\$canon_debug_file\" \\
12982 || echo \"Cannot resolve debug file \${debug_file} -> \${canon_debug_file}\"
12984 canon_debug_id_file=\$(readlink -f \${id_debug_file})
12986 test -f \"\$canon_debug_id_file\" \\
12987 || echo \"Cannot resolve debug build-id file \${id_debug_file} -> \${canon_debug_id_file}\"
12989 test \"\$canon_debug_file\" = \"\$canon_debug_id_file\" \\
12990 || echo \"debug and build-id not linked\"
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\"
12996 canon_compat_file=\$(readlink -f \${id_compat_file})
12998 test -f \"\$canon_compat_file\" \\
12999 || echo \"Cannot resolve compat file \${id_compat_file} -> \${canon_compat_file}\"
13001 test \"\$canon_compat_file\" = \"\$canon_main_file\" \\
13002 || echo \"compat and build-id not linked\"
13004 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:527"
13007 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13010 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
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
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
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 \
13033 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-debuginfo-1.0-1.*.rpm \
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}"
13040 # Extract the build-id from the main file
13041 id_main=$(file $main_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
13046 canon_main_file=$(readlink -f ${main_file})
13048 test -f "$canon_main_file" \
13049 || echo "Cannot resolve main file ${main_file} -> ${canon_main_file}"
13051 canon_main_id_file=$(readlink -f ${id_main_file})
13053 test -f "$canon_main_id_file" \
13054 || echo "Cannot resolve main build-id file ${id_main_file} -> ${canon_main_id_file}"
13056 test "$canon_main_file" = "$canon_main_id_file" \
13057 || echo "main and build-id file not linked"
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}"
13063 # Extract the build-id from the .debug file
13064 id_debug=$(file $debug_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
13066 test ${id_main} = ${id_debug} || echo "unequal main and debug id"
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"
13071 canon_debug_file=$(readlink -f ${debug_file})
13073 test -f "$canon_debug_file" \
13074 || echo "Cannot resolve debug file ${debug_file} -> ${canon_debug_file}"
13076 canon_debug_id_file=$(readlink -f ${id_debug_file})
13078 test -f "$canon_debug_id_file" \
13079 || echo "Cannot resolve debug build-id file ${id_debug_file} -> ${canon_debug_id_file}"
13081 test "$canon_debug_file" = "$canon_debug_id_file" \
13082 || echo "debug and build-id not linked"
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"
13088 canon_compat_file=$(readlink -f ${id_compat_file})
13090 test -f "$canon_compat_file" \
13091 || echo "Cannot resolve compat file ${id_compat_file} -> ${canon_compat_file}"
13093 test "$canon_compat_file" = "$canon_main_file" \
13094 || echo "compat and build-id not linked"
13096 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13097 at_status=$? at_failed=false
13099 echo stderr:; cat "$at_stderr"
13100 echo >>"$at_stdout"; $as_echo "hello build-id files: 2
13101 hello debuginfo build-id files: 3
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
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"
13114 at_fn_group_banner 150 'rpmbuildid.at:629' \
13115 "rpmbuild buildid duplicate alldebug" " " 10
13118 $as_echo "150. $at_setup_line: testing $at_desc ..."
13123 $as_echo "$at_srcdir/rpmbuildid.at:631:
13125 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13127 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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: \" \\
13135 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13136 | cpio -diu --quiet
13138 hello_file=./usr/local/bin/hello
13140 # Extract the build-id from the main file
13141 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
13149 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13150 | cpio -diu --quiet
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\"
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\"
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\"
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\"
13173 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:631"
13176 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13178 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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: " \
13186 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13187 | cpio -diu --quiet
13189 hello_file=./usr/local/bin/hello
13191 # Extract the build-id from the main file
13192 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
13200 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13201 | cpio -diu --quiet
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"
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"
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"
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"
13224 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13225 at_status=$? at_failed=false
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
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
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"
13246 at_fn_group_banner 151 'rpmbuildid.at:697' \
13247 "rpmbuild buildid hardlink alldebug" " " 10
13250 $as_echo "151. $at_setup_line: testing $at_desc ..."
13255 $as_echo "$at_srcdir/rpmbuildid.at:699:
13257 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13259 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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: \" \\
13267 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13268 | cpio -diu --quiet
13270 hello_file=./usr/local/bin/hello
13272 # Extract the build-id from the main file
13273 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
13281 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13282 | cpio -diu --quiet
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\"
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\"
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\"
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\"
13305 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:699"
13308 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13310 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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: " \
13318 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13319 | cpio -diu --quiet
13321 hello_file=./usr/local/bin/hello
13323 # Extract the build-id from the main file
13324 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
13332 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13333 | cpio -diu --quiet
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"
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"
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"
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"
13356 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13357 at_status=$? at_failed=false
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
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
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"
13376 at_fn_group_banner 152 'rpmbuildid.at:762' \
13377 "rpmbuild buildid duplicate separate" " " 10
13380 $as_echo "152. $at_setup_line: testing $at_desc ..."
13385 $as_echo "$at_srcdir/rpmbuildid.at:764:
13387 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13389 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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: \" \\
13397 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13398 | cpio -diu --quiet
13400 hello_file=./usr/local/bin/hello
13402 # Extract the build-id from the main file
13403 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
13411 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13412 | cpio -diu --quiet
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\"
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\"
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\"
13432 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:764"
13435 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13437 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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: " \
13445 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13446 | cpio -diu --quiet
13448 hello_file=./usr/local/bin/hello
13450 # Extract the build-id from the main file
13451 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
13459 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13460 | cpio -diu --quiet
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"
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"
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"
13480 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13481 at_status=$? at_failed=false
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
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
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"
13502 at_fn_group_banner 153 'rpmbuildid.at:827' \
13503 "rpmbuild buildid hardlink separate" " " 10
13506 $as_echo "153. $at_setup_line: testing $at_desc ..."
13511 $as_echo "$at_srcdir/rpmbuildid.at:829:
13513 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13515 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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: \" \\
13523 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13524 | cpio -diu --quiet
13526 hello_file=./usr/local/bin/hello
13528 # Extract the build-id from the main file
13529 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
13537 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13538 | cpio -diu --quiet
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\"
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\"
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\"
13558 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:829"
13561 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13563 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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: " \
13571 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13572 | cpio -diu --quiet
13574 hello_file=./usr/local/bin/hello
13576 # Extract the build-id from the main file
13577 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
13585 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13586 | cpio -diu --quiet
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"
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"
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"
13606 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13607 at_status=$? at_failed=false
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
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
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"
13626 at_fn_group_banner 154 'rpmbuildid.at:889' \
13627 "rpmbuild buildid duplicate compat" " " 10
13630 $as_echo "154. $at_setup_line: testing $at_desc ..."
13635 $as_echo "$at_srcdir/rpmbuildid.at:891:
13637 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13639 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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: \" \\
13647 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13648 | cpio -diu --quiet
13650 hello_file=./usr/local/bin/hello
13652 # Extract the build-id from the main file
13653 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
13661 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13662 | cpio -diu --quiet
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\"
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\"
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\"
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\"
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\"
13692 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:891"
13695 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13697 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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: " \
13705 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13706 | cpio -diu --quiet
13708 hello_file=./usr/local/bin/hello
13710 # Extract the build-id from the main file
13711 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
13719 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13720 | cpio -diu --quiet
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"
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"
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"
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"
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"
13750 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13751 at_status=$? at_failed=false
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
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
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"
13774 at_fn_group_banner 155 'rpmbuildid.at:966' \
13775 "rpmbuild buildid hardlink compat" " " 10
13778 $as_echo "155. $at_setup_line: testing $at_desc ..."
13783 $as_echo "$at_srcdir/rpmbuildid.at:968:
13785 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13787 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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: \" \\
13795 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \\
13796 | cpio -diu --quiet
13798 hello_file=./usr/local/bin/hello
13800 # Extract the build-id from the main file
13801 id=\$(file \$hello_file | sed 's/.*, BuildID\\[.*\\]=\\([0-9a-f]*\\),.*/\\1/')
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\"
13809 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \\
13810 | cpio -diu --quiet
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\"
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\"
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\"
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\"
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\"
13840 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:968"
13843 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
13845 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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: " \
13853 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-1.0-1.*.rpm \
13854 | cpio -diu --quiet
13856 hello_file=./usr/local/bin/hello
13858 # Extract the build-id from the main file
13859 id=$(file $hello_file | sed 's/.*, BuildID\[.*\]=\([0-9a-f]*\),.*/\1/')
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"
13867 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello2-debuginfo-1.0-1.*.rpm \
13868 | cpio -diu --quiet
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"
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"
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"
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"
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"
13898 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
13899 at_status=$? at_failed=false
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
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
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"
13920 at_fn_group_banner 156 'rpmbuildid.at:1039' \
13921 "rpmbuild buildid recompute" " " 10
13924 $as_echo "156. $at_setup_line: testing $at_desc ..."
13929 $as_echo "$at_srcdir/rpmbuildid.at:1041:
13931 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
13933 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
13935 # Make sure we get debuginfo
13936 export CFLAGS=\"-g\"
13939 rundebug rpmbuild --quiet \\
13940 --define=\"_unique_build_ids 1\" \\
13941 --undefine=\"_no_recompute_build_ids\" \\
13942 -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
13944 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
13945 | cpio -diu --quiet
13947 hello_file=./usr/local/bin/hello
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/')
13953 # Make sure we generate a new one
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
13963 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \\
13964 | cpio -diu --quiet
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/')
13970 # Two unique builds should not be equal
13971 if test \"\$id1\" == \"\$id2\"; then
13972 echo \"uniques equal\";
13974 echo \"uniques unequal\";
13977 # Make sure we generate a new one
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
13988 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
13989 | cpio -diu --quiet
13991 hello_file=./usr/local/bin/hello
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/')
13997 # An unique and no-recompute build should be unequal
13998 if test \"\$id2\" == \"\$id3\"; then
13999 echo \"no-recompute unique equal\";
14001 echo \"no-recompute unique unequal\";
14004 # Make sure we generate a new one
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
14016 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \\
14017 | cpio -diu --quiet
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/')
14023 # Two no-recompute builds should be equal. Even for different \"releases\".
14024 if test \"\$id3\" == \"\$id4\"; then
14025 echo \"no-recomputes equal\";
14027 echo \"no-recomputes unequal\";
14030 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:1041"
14033 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14035 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
14037 # Make sure we get debuginfo
14041 rundebug rpmbuild --quiet \
14042 --define="_unique_build_ids 1" \
14043 --undefine="_no_recompute_build_ids" \
14044 -ba "${abs_srcdir}"/data/SPECS/hello.spec
14046 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
14047 | cpio -diu --quiet
14049 hello_file=./usr/local/bin/hello
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/')
14055 # Make sure we generate a new one
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
14065 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \
14066 | cpio -diu --quiet
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/')
14072 # Two unique builds should not be equal
14073 if test "$id1" == "$id2"; then
14074 echo "uniques equal";
14076 echo "uniques unequal";
14079 # Make sure we generate a new one
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
14090 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
14091 | cpio -diu --quiet
14093 hello_file=./usr/local/bin/hello
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/')
14099 # An unique and no-recompute build should be unequal
14100 if test "$id2" == "$id3"; then
14101 echo "no-recompute unique equal";
14103 echo "no-recompute unique unequal";
14106 # Make sure we generate a new one
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
14118 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \
14119 | cpio -diu --quiet
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/')
14125 # Two no-recompute builds should be equal. Even for different "releases".
14126 if test "$id3" == "$id4"; then
14127 echo "no-recomputes equal";
14129 echo "no-recomputes unequal";
14132 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14133 at_status=$? at_failed=false
14135 echo stderr:; cat "$at_stderr"
14136 echo >>"$at_stdout"; $as_echo "uniques unequal
14137 no-recompute unique unequal
14138 no-recomputes equal
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
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"
14151 at_fn_group_banner 157 'rpmbuildid.at:1153' \
14152 "rpmbuild buildid unique r1 r2" " " 10
14155 $as_echo "157. $at_setup_line: testing $at_desc ..."
14160 $as_echo "$at_srcdir/rpmbuildid.at:1155:
14162 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
14164 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
14166 # No warnings for hard links
14167 rundebug rpmbuild --quiet \\
14168 --define=\"_unique_build_ids 1\" \\
14169 -ba \"\${abs_srcdir}\"/data/SPECS/hello.spec
14171 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
14172 | cpio -diu --quiet
14174 hello_file=./usr/local/bin/hello
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/')
14180 # Make sure we generate a new one
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
14188 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \\
14189 | cpio -diu --quiet
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/')
14195 if test \"\$id1\" == \"\$id2\"; then echo \"equal \$id1\"; else echo \"unequal\"; fi
14197 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:1155"
14200 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14202 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
14204 # No warnings for hard links
14205 rundebug rpmbuild --quiet \
14206 --define="_unique_build_ids 1" \
14207 -ba "${abs_srcdir}"/data/SPECS/hello.spec
14209 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
14210 | cpio -diu --quiet
14212 hello_file=./usr/local/bin/hello
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/')
14218 # Make sure we generate a new one
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
14226 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \
14227 | cpio -diu --quiet
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/')
14233 if test "$id1" == "$id2"; then echo "equal $id1"; else echo "unequal"; fi
14235 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14236 at_status=$? at_failed=false
14238 echo stderr:; cat "$at_stderr"
14239 echo >>"$at_stdout"; $as_echo "unequal
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
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"
14252 at_fn_group_banner 158 'rpmbuildid.at:1201' \
14253 "rpmbuild buildid non-unique r1 r2" " " 10
14256 $as_echo "158. $at_setup_line: testing $at_desc ..."
14261 $as_echo "$at_srcdir/rpmbuildid.at:1203:
14263 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
14265 cp \"\${abs_srcdir}\"/data/SOURCES/hello-1.0.tar.gz \"\${abs_srcdir}\"/data/SOURCES/hello-1.0-modernize.patch \${TOPDIR}/SOURCES
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
14274 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \\
14275 | cpio -diu --quiet
14277 hello_file=./usr/local/bin/hello
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/')
14283 # Make sure we generate a new one
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
14293 rpm2cpio \${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \\
14294 | cpio -diu --quiet
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/')
14300 if test \"\$id1\" == \"\$id2\"; then echo \"equal\"; else echo \"unequal \$id1 \$id2\"; fi
14302 at_fn_check_prepare_notrace 'a $(...) command substitution' "rpmbuildid.at:1203"
14305 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14307 cp "${abs_srcdir}"/data/SOURCES/hello-1.0.tar.gz "${abs_srcdir}"/data/SOURCES/hello-1.0-modernize.patch ${TOPDIR}/SOURCES
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
14316 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-1.*.rpm \
14317 | cpio -diu --quiet
14319 hello_file=./usr/local/bin/hello
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/')
14325 # Make sure we generate a new one
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
14335 rpm2cpio ${abs_builddir}/testing/build/RPMS/*/hello-1.0-2.*.rpm \
14336 | cpio -diu --quiet
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/')
14342 if test "$id1" == "$id2"; then echo "equal"; else echo "unequal $id1 $id2"; fi
14344 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14345 at_status=$? at_failed=false
14347 echo stderr:; cat "$at_stderr"
14348 echo >>"$at_stdout"; $as_echo "equal
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
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"
14361 at_fn_group_banner 159 'rpmbuildid.at:1253' \
14362 "rpmbuild buildid attrs" " " 10
14365 $as_echo "159. $at_setup_line: testing $at_desc ..."
14370 $as_echo "$at_srcdir/rpmbuildid.at:1255:
14372 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
14375 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
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
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\"
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\"
14392 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuildid.at:1255"
14395 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14398 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
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
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"
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"
14415 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14416 at_status=$? at_failed=false
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
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
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"
14433 at_fn_group_banner 160 'rpmbuildid.at:1287' \
14434 "rpmbuild buildid config attrs" " " 10
14437 $as_echo "160. $at_setup_line: testing $at_desc ..."
14442 $as_echo "$at_srcdir/rpmbuildid.at:1289:
14444 as_dir=\${TOPDIR}/SOURCES; as_fn_mkdir_p
14447 cp \"\${abs_srcdir}\"/data/SOURCES/hello.c \${TOPDIR}/SOURCES
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
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
14461 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmbuildid.at:1289"
14464 as_dir=${TOPDIR}/SOURCES; as_fn_mkdir_p
14467 cp "${abs_srcdir}"/data/SOURCES/hello.c ${TOPDIR}/SOURCES
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
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
14481 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14482 at_status=$? at_failed=false
14484 echo stderr:; cat "$at_stderr"
14485 echo >>"$at_stdout"; $as_echo "/etc/config.file
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
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"
14498 at_fn_group_banner 161 'rpmscript.at:7' \
14499 "basic scripts and arguments" " " 11
14502 $as_echo "161. $at_setup_line: testing $at_desc ..."
14507 $as_echo "$at_srcdir/rpmscript.at:9:
14509 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
14512 runroot rpm --initdb
14514 rm -rf \"\${TOPDIR}\"
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
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
14527 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmscript.at:9"
14530 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
14533 runroot rpm --initdb
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
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
14548 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14549 at_status=$? at_failed=false
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
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
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"
14578 at_fn_group_banner 162 'rpmscript.at:44' \
14579 "basic trigger scripts and arguments" " " 11
14582 $as_echo "162. $at_setup_line: testing $at_desc ..."
14587 $as_echo "$at_srcdir/rpmscript.at:46:
14589 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
14592 runroot rpm --initdb
14594 rm -rf \"\${TOPDIR}\"
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
14602 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14604 runroot rpm -U /build/RPMS/noarch/triggers-1.0-1.noarch.rpm
14606 runroot rpm -U /build/RPMS/noarch/scripts-1.0-1.noarch.rpm
14608 runroot rpm -U /build/RPMS/noarch/scripts-1.0-2.noarch.rpm
14610 runroot rpm -U /build/RPMS/noarch/triggers-1.0-2.noarch.rpm
14612 runroot rpm -e scripts
14614 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmscript.at:46"
14617 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
14620 runroot rpm --initdb
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
14630 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
14632 runroot rpm -U /build/RPMS/noarch/triggers-1.0-1.noarch.rpm
14634 runroot rpm -U /build/RPMS/noarch/scripts-1.0-1.noarch.rpm
14636 runroot rpm -U /build/RPMS/noarch/scripts-1.0-2.noarch.rpm
14638 runroot rpm -U /build/RPMS/noarch/triggers-1.0-2.noarch.rpm
14640 runroot rpm -e scripts
14642 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14643 at_status=$? at_failed=false
14645 at_fn_diff_devnull "$at_stderr" || at_failed=:
14646 echo >>"$at_stdout"; $as_echo "TRIGGERS 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
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
14666 triggers-1.0-2 TRIGGERPREIN 1 1
14667 triggers-1.0-2 TRIGGERIN 2 1
14668 triggers-1.0-1 TRIGGERUN 1 1
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
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
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"
14686 at_fn_group_banner 163 'rpmscript.at:102' \
14687 "basic file trigger scripts" " " 11
14690 $as_echo "163. $at_setup_line: testing $at_desc ..."
14695 $as_echo "$at_srcdir/rpmscript.at:104:
14697 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
14700 runroot rpm --initdb
14702 rm -rf \"\${TOPDIR}\"
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
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
14712 runroot rpm -U /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm \\
14713 /build/RPMS/noarch/hlinktest-1.0-1.noarch.rpm
14715 runroot rpm -e hello-script hlinktest
14717 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmscript.at:104"
14720 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
14723 runroot rpm --initdb
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
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
14735 runroot rpm -U /build/RPMS/noarch/hello-script-1.0-1.noarch.rpm \
14736 /build/RPMS/noarch/hlinktest-1.0-1.noarch.rpm
14738 runroot rpm -e hello-script hlinktest
14740 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14741 at_status=$? at_failed=false
14743 at_fn_diff_devnull "$at_stderr" || at_failed=:
14744 echo >>"$at_stdout"; $as_echo "INSTALLATION
14745 filetriggerin(/foo*):
14754 filetriggerin(/foo*)<lua>:
14763 filetriggerin(/usr/bin*):
14766 filetriggerin(/usr/bin*)<lua>:
14769 transfiletriggerin(/usr/bin*):
14772 transfiletriggerin(/foo*):
14782 transfiletriggerun(/usr/bin*):
14785 transfiletriggerun(/foo*):
14794 filetriggerun(/foo*):
14803 filetriggerpostun(/foo*):
14812 filetriggerun(/usr/bin*):
14815 filetriggerpostun(/usr/bin*):
14818 transfiletriggerpostun(/usr/bin*):
14820 transfiletriggerpostun(/foo*):
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
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"
14834 at_fn_group_banner 164 'rpmscript.at:205' \
14835 "basic file triggers 2" " " 11
14838 $as_echo "164. $at_setup_line: testing $at_desc ..."
14843 $as_echo "$at_srcdir/rpmscript.at:207:
14845 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
14848 runroot rpm --initdb
14850 rm -rf \"\${TOPDIR}\"
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
14857 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
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
14864 runroot rpm -U /build/RPMS/noarch/parallel-trigger-1.0-1.noarch.rpm
14866 runroot rpm -U /build/RPMS/noarch/parallel-trigger-2.0-1.noarch.rpm
14868 runroot rpm -e parallel-trigger
14871 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmscript.at:207"
14874 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
14877 runroot rpm --initdb
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
14886 runroot rpm -U /build/RPMS/noarch/fakeshell-1.0-1.noarch.rpm
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
14893 runroot rpm -U /build/RPMS/noarch/parallel-trigger-1.0-1.noarch.rpm
14895 runroot rpm -U /build/RPMS/noarch/parallel-trigger-2.0-1.noarch.rpm
14897 runroot rpm -e parallel-trigger
14900 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
14901 at_status=$? at_failed=false
14903 at_fn_diff_devnull "$at_stderr" || at_failed=:
14904 echo >>"$at_stdout"; $as_echo "INSTALL:
14905 %filetriggerin: 0 0
14907 %transfiletriggerin: 0 0
14910 %transfiletriggerun: 0 0
14912 %filetriggerin: 0 0
14914 %transfiletriggerin: 0 0
14917 %transfiletriggerun: 0 0
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
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"
14931 at_fn_group_banner 165 'rpmvercmp.at:13' \
14932 "rpmvercmp(1.0, 1.0) = 0" " " 12
14935 $as_echo "165. $at_setup_line: testing $at_desc ..."
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
14946 at_fn_diff_devnull "$at_stderr" || at_failed=:
14947 echo >>"$at_stdout"; $as_echo "0
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
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"
14960 at_fn_group_banner 166 'rpmvercmp.at:14' \
14961 "rpmvercmp(1.0, 2.0) = -1" " " 12
14964 $as_echo "166. $at_setup_line: testing $at_desc ..."
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
14975 at_fn_diff_devnull "$at_stderr" || at_failed=:
14976 echo >>"$at_stdout"; $as_echo "-1
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
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"
14989 at_fn_group_banner 167 'rpmvercmp.at:15' \
14990 "rpmvercmp(2.0, 1.0) = 1" " " 12
14993 $as_echo "167. $at_setup_line: testing $at_desc ..."
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
15004 at_fn_diff_devnull "$at_stderr" || at_failed=:
15005 echo >>"$at_stdout"; $as_echo "1
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
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"
15018 at_fn_group_banner 168 'rpmvercmp.at:17' \
15019 "rpmvercmp(2.0.1, 2.0.1) = 0" " " 12
15022 $as_echo "168. $at_setup_line: testing $at_desc ..."
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
15033 at_fn_diff_devnull "$at_stderr" || at_failed=:
15034 echo >>"$at_stdout"; $as_echo "0
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
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"
15047 at_fn_group_banner 169 'rpmvercmp.at:18' \
15048 "rpmvercmp(2.0, 2.0.1) = -1" " " 12
15051 $as_echo "169. $at_setup_line: testing $at_desc ..."
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
15062 at_fn_diff_devnull "$at_stderr" || at_failed=:
15063 echo >>"$at_stdout"; $as_echo "-1
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
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"
15076 at_fn_group_banner 170 'rpmvercmp.at:19' \
15077 "rpmvercmp(2.0.1, 2.0) = 1" " " 12
15080 $as_echo "170. $at_setup_line: testing $at_desc ..."
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
15091 at_fn_diff_devnull "$at_stderr" || at_failed=:
15092 echo >>"$at_stdout"; $as_echo "1
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
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"
15105 at_fn_group_banner 171 'rpmvercmp.at:21' \
15106 "rpmvercmp(2.0.1a, 2.0.1a) = 0" " " 12
15109 $as_echo "171. $at_setup_line: testing $at_desc ..."
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
15120 at_fn_diff_devnull "$at_stderr" || at_failed=:
15121 echo >>"$at_stdout"; $as_echo "0
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
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"
15134 at_fn_group_banner 172 'rpmvercmp.at:22' \
15135 "rpmvercmp(2.0.1a, 2.0.1) = 1" " " 12
15138 $as_echo "172. $at_setup_line: testing $at_desc ..."
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
15149 at_fn_diff_devnull "$at_stderr" || at_failed=:
15150 echo >>"$at_stdout"; $as_echo "1
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
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"
15163 at_fn_group_banner 173 'rpmvercmp.at:23' \
15164 "rpmvercmp(2.0.1, 2.0.1a) = -1" " " 12
15167 $as_echo "173. $at_setup_line: testing $at_desc ..."
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
15178 at_fn_diff_devnull "$at_stderr" || at_failed=:
15179 echo >>"$at_stdout"; $as_echo "-1
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
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"
15192 at_fn_group_banner 174 'rpmvercmp.at:25' \
15193 "rpmvercmp(5.5p1, 5.5p1) = 0" " " 12
15196 $as_echo "174. $at_setup_line: testing $at_desc ..."
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
15207 at_fn_diff_devnull "$at_stderr" || at_failed=:
15208 echo >>"$at_stdout"; $as_echo "0
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
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"
15221 at_fn_group_banner 175 'rpmvercmp.at:26' \
15222 "rpmvercmp(5.5p1, 5.5p2) = -1" " " 12
15225 $as_echo "175. $at_setup_line: testing $at_desc ..."
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
15236 at_fn_diff_devnull "$at_stderr" || at_failed=:
15237 echo >>"$at_stdout"; $as_echo "-1
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
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"
15250 at_fn_group_banner 176 'rpmvercmp.at:27' \
15251 "rpmvercmp(5.5p2, 5.5p1) = 1" " " 12
15254 $as_echo "176. $at_setup_line: testing $at_desc ..."
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
15265 at_fn_diff_devnull "$at_stderr" || at_failed=:
15266 echo >>"$at_stdout"; $as_echo "1
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
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"
15279 at_fn_group_banner 177 'rpmvercmp.at:29' \
15280 "rpmvercmp(5.5p10, 5.5p10) = 0" " " 12
15283 $as_echo "177. $at_setup_line: testing $at_desc ..."
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
15294 at_fn_diff_devnull "$at_stderr" || at_failed=:
15295 echo >>"$at_stdout"; $as_echo "0
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
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"
15308 at_fn_group_banner 178 'rpmvercmp.at:30' \
15309 "rpmvercmp(5.5p1, 5.5p10) = -1" " " 12
15312 $as_echo "178. $at_setup_line: testing $at_desc ..."
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
15323 at_fn_diff_devnull "$at_stderr" || at_failed=:
15324 echo >>"$at_stdout"; $as_echo "-1
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
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"
15337 at_fn_group_banner 179 'rpmvercmp.at:31' \
15338 "rpmvercmp(5.5p10, 5.5p1) = 1" " " 12
15341 $as_echo "179. $at_setup_line: testing $at_desc ..."
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
15352 at_fn_diff_devnull "$at_stderr" || at_failed=:
15353 echo >>"$at_stdout"; $as_echo "1
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
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"
15366 at_fn_group_banner 180 'rpmvercmp.at:33' \
15367 "rpmvercmp(10xyz, 10.1xyz) = -1" " " 12
15370 $as_echo "180. $at_setup_line: testing $at_desc ..."
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
15381 at_fn_diff_devnull "$at_stderr" || at_failed=:
15382 echo >>"$at_stdout"; $as_echo "-1
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
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"
15395 at_fn_group_banner 181 'rpmvercmp.at:34' \
15396 "rpmvercmp(10.1xyz, 10xyz) = 1" " " 12
15399 $as_echo "181. $at_setup_line: testing $at_desc ..."
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
15410 at_fn_diff_devnull "$at_stderr" || at_failed=:
15411 echo >>"$at_stdout"; $as_echo "1
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
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"
15424 at_fn_group_banner 182 'rpmvercmp.at:36' \
15425 "rpmvercmp(xyz10, xyz10) = 0" " " 12
15428 $as_echo "182. $at_setup_line: testing $at_desc ..."
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
15439 at_fn_diff_devnull "$at_stderr" || at_failed=:
15440 echo >>"$at_stdout"; $as_echo "0
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
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"
15453 at_fn_group_banner 183 'rpmvercmp.at:37' \
15454 "rpmvercmp(xyz10, xyz10.1) = -1" " " 12
15457 $as_echo "183. $at_setup_line: testing $at_desc ..."
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
15468 at_fn_diff_devnull "$at_stderr" || at_failed=:
15469 echo >>"$at_stdout"; $as_echo "-1
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
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"
15482 at_fn_group_banner 184 'rpmvercmp.at:38' \
15483 "rpmvercmp(xyz10.1, xyz10) = 1" " " 12
15486 $as_echo "184. $at_setup_line: testing $at_desc ..."
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
15497 at_fn_diff_devnull "$at_stderr" || at_failed=:
15498 echo >>"$at_stdout"; $as_echo "1
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
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"
15511 at_fn_group_banner 185 'rpmvercmp.at:40' \
15512 "rpmvercmp(xyz.4, xyz.4) = 0" " " 12
15515 $as_echo "185. $at_setup_line: testing $at_desc ..."
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
15526 at_fn_diff_devnull "$at_stderr" || at_failed=:
15527 echo >>"$at_stdout"; $as_echo "0
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
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"
15540 at_fn_group_banner 186 'rpmvercmp.at:41' \
15541 "rpmvercmp(xyz.4, 8) = -1" " " 12
15544 $as_echo "186. $at_setup_line: testing $at_desc ..."
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
15555 at_fn_diff_devnull "$at_stderr" || at_failed=:
15556 echo >>"$at_stdout"; $as_echo "-1
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
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"
15569 at_fn_group_banner 187 'rpmvercmp.at:42' \
15570 "rpmvercmp(8, xyz.4) = 1" " " 12
15573 $as_echo "187. $at_setup_line: testing $at_desc ..."
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
15584 at_fn_diff_devnull "$at_stderr" || at_failed=:
15585 echo >>"$at_stdout"; $as_echo "1
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
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"
15598 at_fn_group_banner 188 'rpmvercmp.at:43' \
15599 "rpmvercmp(xyz.4, 2) = -1" " " 12
15602 $as_echo "188. $at_setup_line: testing $at_desc ..."
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
15613 at_fn_diff_devnull "$at_stderr" || at_failed=:
15614 echo >>"$at_stdout"; $as_echo "-1
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
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"
15627 at_fn_group_banner 189 'rpmvercmp.at:44' \
15628 "rpmvercmp(2, xyz.4) = 1" " " 12
15631 $as_echo "189. $at_setup_line: testing $at_desc ..."
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
15642 at_fn_diff_devnull "$at_stderr" || at_failed=:
15643 echo >>"$at_stdout"; $as_echo "1
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
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"
15656 at_fn_group_banner 190 'rpmvercmp.at:46' \
15657 "rpmvercmp(5.5p2, 5.6p1) = -1" " " 12
15660 $as_echo "190. $at_setup_line: testing $at_desc ..."
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
15671 at_fn_diff_devnull "$at_stderr" || at_failed=:
15672 echo >>"$at_stdout"; $as_echo "-1
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
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"
15685 at_fn_group_banner 191 'rpmvercmp.at:47' \
15686 "rpmvercmp(5.6p1, 5.5p2) = 1" " " 12
15689 $as_echo "191. $at_setup_line: testing $at_desc ..."
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
15700 at_fn_diff_devnull "$at_stderr" || at_failed=:
15701 echo >>"$at_stdout"; $as_echo "1
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
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"
15714 at_fn_group_banner 192 'rpmvercmp.at:49' \
15715 "rpmvercmp(5.6p1, 6.5p1) = -1" " " 12
15718 $as_echo "192. $at_setup_line: testing $at_desc ..."
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
15729 at_fn_diff_devnull "$at_stderr" || at_failed=:
15730 echo >>"$at_stdout"; $as_echo "-1
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
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"
15743 at_fn_group_banner 193 'rpmvercmp.at:50' \
15744 "rpmvercmp(6.5p1, 5.6p1) = 1" " " 12
15747 $as_echo "193. $at_setup_line: testing $at_desc ..."
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
15758 at_fn_diff_devnull "$at_stderr" || at_failed=:
15759 echo >>"$at_stdout"; $as_echo "1
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
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"
15772 at_fn_group_banner 194 'rpmvercmp.at:52' \
15773 "rpmvercmp(6.0.rc1, 6.0) = 1" " " 12
15776 $as_echo "194. $at_setup_line: testing $at_desc ..."
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
15787 at_fn_diff_devnull "$at_stderr" || at_failed=:
15788 echo >>"$at_stdout"; $as_echo "1
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
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"
15801 at_fn_group_banner 195 'rpmvercmp.at:53' \
15802 "rpmvercmp(6.0, 6.0.rc1) = -1" " " 12
15805 $as_echo "195. $at_setup_line: testing $at_desc ..."
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
15816 at_fn_diff_devnull "$at_stderr" || at_failed=:
15817 echo >>"$at_stdout"; $as_echo "-1
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
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"
15830 at_fn_group_banner 196 'rpmvercmp.at:55' \
15831 "rpmvercmp(10b2, 10a1) = 1" " " 12
15834 $as_echo "196. $at_setup_line: testing $at_desc ..."
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
15845 at_fn_diff_devnull "$at_stderr" || at_failed=:
15846 echo >>"$at_stdout"; $as_echo "1
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
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"
15859 at_fn_group_banner 197 'rpmvercmp.at:56' \
15860 "rpmvercmp(10a2, 10b2) = -1" " " 12
15863 $as_echo "197. $at_setup_line: testing $at_desc ..."
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
15874 at_fn_diff_devnull "$at_stderr" || at_failed=:
15875 echo >>"$at_stdout"; $as_echo "-1
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
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"
15888 at_fn_group_banner 198 'rpmvercmp.at:58' \
15889 "rpmvercmp(1.0aa, 1.0aa) = 0" " " 12
15892 $as_echo "198. $at_setup_line: testing $at_desc ..."
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
15903 at_fn_diff_devnull "$at_stderr" || at_failed=:
15904 echo >>"$at_stdout"; $as_echo "0
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
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"
15917 at_fn_group_banner 199 'rpmvercmp.at:59' \
15918 "rpmvercmp(1.0a, 1.0aa) = -1" " " 12
15921 $as_echo "199. $at_setup_line: testing $at_desc ..."
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
15932 at_fn_diff_devnull "$at_stderr" || at_failed=:
15933 echo >>"$at_stdout"; $as_echo "-1
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
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"
15946 at_fn_group_banner 200 'rpmvercmp.at:60' \
15947 "rpmvercmp(1.0aa, 1.0a) = 1" " " 12
15950 $as_echo "200. $at_setup_line: testing $at_desc ..."
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
15961 at_fn_diff_devnull "$at_stderr" || at_failed=:
15962 echo >>"$at_stdout"; $as_echo "1
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
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"
15975 at_fn_group_banner 201 'rpmvercmp.at:62' \
15976 "rpmvercmp(10.0001, 10.0001) = 0" " " 12
15979 $as_echo "201. $at_setup_line: testing $at_desc ..."
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
15990 at_fn_diff_devnull "$at_stderr" || at_failed=:
15991 echo >>"$at_stdout"; $as_echo "0
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
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"
16004 at_fn_group_banner 202 'rpmvercmp.at:63' \
16005 "rpmvercmp(10.0001, 10.1) = 0" " " 12
16008 $as_echo "202. $at_setup_line: testing $at_desc ..."
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
16019 at_fn_diff_devnull "$at_stderr" || at_failed=:
16020 echo >>"$at_stdout"; $as_echo "0
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
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"
16033 at_fn_group_banner 203 'rpmvercmp.at:64' \
16034 "rpmvercmp(10.1, 10.0001) = 0" " " 12
16037 $as_echo "203. $at_setup_line: testing $at_desc ..."
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
16048 at_fn_diff_devnull "$at_stderr" || at_failed=:
16049 echo >>"$at_stdout"; $as_echo "0
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
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"
16062 at_fn_group_banner 204 'rpmvercmp.at:65' \
16063 "rpmvercmp(10.0001, 10.0039) = -1" " " 12
16066 $as_echo "204. $at_setup_line: testing $at_desc ..."
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
16077 at_fn_diff_devnull "$at_stderr" || at_failed=:
16078 echo >>"$at_stdout"; $as_echo "-1
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
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"
16091 at_fn_group_banner 205 'rpmvercmp.at:66' \
16092 "rpmvercmp(10.0039, 10.0001) = 1" " " 12
16095 $as_echo "205. $at_setup_line: testing $at_desc ..."
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
16106 at_fn_diff_devnull "$at_stderr" || at_failed=:
16107 echo >>"$at_stdout"; $as_echo "1
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
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"
16120 at_fn_group_banner 206 'rpmvercmp.at:68' \
16121 "rpmvercmp(4.999.9, 5.0) = -1" " " 12
16124 $as_echo "206. $at_setup_line: testing $at_desc ..."
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
16135 at_fn_diff_devnull "$at_stderr" || at_failed=:
16136 echo >>"$at_stdout"; $as_echo "-1
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
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"
16149 at_fn_group_banner 207 'rpmvercmp.at:69' \
16150 "rpmvercmp(5.0, 4.999.9) = 1" " " 12
16153 $as_echo "207. $at_setup_line: testing $at_desc ..."
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
16164 at_fn_diff_devnull "$at_stderr" || at_failed=:
16165 echo >>"$at_stdout"; $as_echo "1
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
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"
16178 at_fn_group_banner 208 'rpmvercmp.at:71' \
16179 "rpmvercmp(20101121, 20101121) = 0" " " 12
16182 $as_echo "208. $at_setup_line: testing $at_desc ..."
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
16193 at_fn_diff_devnull "$at_stderr" || at_failed=:
16194 echo >>"$at_stdout"; $as_echo "0
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
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"
16207 at_fn_group_banner 209 'rpmvercmp.at:72' \
16208 "rpmvercmp(20101121, 20101122) = -1" " " 12
16211 $as_echo "209. $at_setup_line: testing $at_desc ..."
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
16222 at_fn_diff_devnull "$at_stderr" || at_failed=:
16223 echo >>"$at_stdout"; $as_echo "-1
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
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"
16236 at_fn_group_banner 210 'rpmvercmp.at:73' \
16237 "rpmvercmp(20101122, 20101121) = 1" " " 12
16240 $as_echo "210. $at_setup_line: testing $at_desc ..."
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
16251 at_fn_diff_devnull "$at_stderr" || at_failed=:
16252 echo >>"$at_stdout"; $as_echo "1
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
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"
16265 at_fn_group_banner 211 'rpmvercmp.at:75' \
16266 "rpmvercmp(2_0, 2_0) = 0" " " 12
16269 $as_echo "211. $at_setup_line: testing $at_desc ..."
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
16280 at_fn_diff_devnull "$at_stderr" || at_failed=:
16281 echo >>"$at_stdout"; $as_echo "0
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
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"
16294 at_fn_group_banner 212 'rpmvercmp.at:76' \
16295 "rpmvercmp(2.0, 2_0) = 0" " " 12
16298 $as_echo "212. $at_setup_line: testing $at_desc ..."
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
16309 at_fn_diff_devnull "$at_stderr" || at_failed=:
16310 echo >>"$at_stdout"; $as_echo "0
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
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"
16323 at_fn_group_banner 213 'rpmvercmp.at:77' \
16324 "rpmvercmp(2_0, 2.0) = 0" " " 12
16327 $as_echo "213. $at_setup_line: testing $at_desc ..."
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
16338 at_fn_diff_devnull "$at_stderr" || at_failed=:
16339 echo >>"$at_stdout"; $as_echo "0
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
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"
16352 at_fn_group_banner 214 'rpmvercmp.at:80' \
16353 "rpmvercmp(a, a) = 0" " " 12
16356 $as_echo "214. $at_setup_line: testing $at_desc ..."
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
16367 at_fn_diff_devnull "$at_stderr" || at_failed=:
16368 echo >>"$at_stdout"; $as_echo "0
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
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"
16381 at_fn_group_banner 215 'rpmvercmp.at:81' \
16382 "rpmvercmp(a+, a+) = 0" " " 12
16385 $as_echo "215. $at_setup_line: testing $at_desc ..."
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
16396 at_fn_diff_devnull "$at_stderr" || at_failed=:
16397 echo >>"$at_stdout"; $as_echo "0
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
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"
16410 at_fn_group_banner 216 'rpmvercmp.at:82' \
16411 "rpmvercmp(a+, a_) = 0" " " 12
16414 $as_echo "216. $at_setup_line: testing $at_desc ..."
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
16425 at_fn_diff_devnull "$at_stderr" || at_failed=:
16426 echo >>"$at_stdout"; $as_echo "0
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
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"
16439 at_fn_group_banner 217 'rpmvercmp.at:83' \
16440 "rpmvercmp(a_, a+) = 0" " " 12
16443 $as_echo "217. $at_setup_line: testing $at_desc ..."
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
16454 at_fn_diff_devnull "$at_stderr" || at_failed=:
16455 echo >>"$at_stdout"; $as_echo "0
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
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"
16468 at_fn_group_banner 218 'rpmvercmp.at:84' \
16469 "rpmvercmp(+a, +a) = 0" " " 12
16472 $as_echo "218. $at_setup_line: testing $at_desc ..."
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
16483 at_fn_diff_devnull "$at_stderr" || at_failed=:
16484 echo >>"$at_stdout"; $as_echo "0
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
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"
16497 at_fn_group_banner 219 'rpmvercmp.at:85' \
16498 "rpmvercmp(+a, _a) = 0" " " 12
16501 $as_echo "219. $at_setup_line: testing $at_desc ..."
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
16512 at_fn_diff_devnull "$at_stderr" || at_failed=:
16513 echo >>"$at_stdout"; $as_echo "0
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
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"
16526 at_fn_group_banner 220 'rpmvercmp.at:86' \
16527 "rpmvercmp(_a, +a) = 0" " " 12
16530 $as_echo "220. $at_setup_line: testing $at_desc ..."
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
16541 at_fn_diff_devnull "$at_stderr" || at_failed=:
16542 echo >>"$at_stdout"; $as_echo "0
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
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"
16555 at_fn_group_banner 221 'rpmvercmp.at:87' \
16556 "rpmvercmp(+_, +_) = 0" " " 12
16559 $as_echo "221. $at_setup_line: testing $at_desc ..."
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
16570 at_fn_diff_devnull "$at_stderr" || at_failed=:
16571 echo >>"$at_stdout"; $as_echo "0
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
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"
16584 at_fn_group_banner 222 'rpmvercmp.at:88' \
16585 "rpmvercmp(_+, +_) = 0" " " 12
16588 $as_echo "222. $at_setup_line: testing $at_desc ..."
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
16599 at_fn_diff_devnull "$at_stderr" || at_failed=:
16600 echo >>"$at_stdout"; $as_echo "0
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
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"
16613 at_fn_group_banner 223 'rpmvercmp.at:89' \
16614 "rpmvercmp(_+, _+) = 0" " " 12
16617 $as_echo "223. $at_setup_line: testing $at_desc ..."
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
16628 at_fn_diff_devnull "$at_stderr" || at_failed=:
16629 echo >>"$at_stdout"; $as_echo "0
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
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"
16642 at_fn_group_banner 224 'rpmvercmp.at:90' \
16643 "rpmvercmp(+, _) = 0" " " 12
16646 $as_echo "224. $at_setup_line: testing $at_desc ..."
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
16657 at_fn_diff_devnull "$at_stderr" || at_failed=:
16658 echo >>"$at_stdout"; $as_echo "0
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
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"
16671 at_fn_group_banner 225 'rpmvercmp.at:91' \
16672 "rpmvercmp(_, +) = 0" " " 12
16675 $as_echo "225. $at_setup_line: testing $at_desc ..."
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
16686 at_fn_diff_devnull "$at_stderr" || at_failed=:
16687 echo >>"$at_stdout"; $as_echo "0
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
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"
16700 at_fn_group_banner 226 'rpmvercmp.at:94' \
16701 "rpmvercmp(1.0~rc1, 1.0~rc1) = 0" " " 12
16704 $as_echo "226. $at_setup_line: testing $at_desc ..."
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
16715 at_fn_diff_devnull "$at_stderr" || at_failed=:
16716 echo >>"$at_stdout"; $as_echo "0
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
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"
16729 at_fn_group_banner 227 'rpmvercmp.at:95' \
16730 "rpmvercmp(1.0~rc1, 1.0) = -1" " " 12
16733 $as_echo "227. $at_setup_line: testing $at_desc ..."
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
16744 at_fn_diff_devnull "$at_stderr" || at_failed=:
16745 echo >>"$at_stdout"; $as_echo "-1
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
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"
16758 at_fn_group_banner 228 'rpmvercmp.at:96' \
16759 "rpmvercmp(1.0, 1.0~rc1) = 1" " " 12
16762 $as_echo "228. $at_setup_line: testing $at_desc ..."
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
16773 at_fn_diff_devnull "$at_stderr" || at_failed=:
16774 echo >>"$at_stdout"; $as_echo "1
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
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"
16787 at_fn_group_banner 229 'rpmvercmp.at:97' \
16788 "rpmvercmp(1.0~rc1, 1.0~rc2) = -1" " " 12
16791 $as_echo "229. $at_setup_line: testing $at_desc ..."
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
16802 at_fn_diff_devnull "$at_stderr" || at_failed=:
16803 echo >>"$at_stdout"; $as_echo "-1
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
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"
16816 at_fn_group_banner 230 'rpmvercmp.at:98' \
16817 "rpmvercmp(1.0~rc2, 1.0~rc1) = 1" " " 12
16820 $as_echo "230. $at_setup_line: testing $at_desc ..."
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
16831 at_fn_diff_devnull "$at_stderr" || at_failed=:
16832 echo >>"$at_stdout"; $as_echo "1
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
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"
16845 at_fn_group_banner 231 'rpmvercmp.at:99' \
16846 "rpmvercmp(1.0~rc1~git123, 1.0~rc1~git123) = 0" " " 12
16849 $as_echo "231. $at_setup_line: testing $at_desc ..."
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
16860 at_fn_diff_devnull "$at_stderr" || at_failed=:
16861 echo >>"$at_stdout"; $as_echo "0
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
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"
16874 at_fn_group_banner 232 'rpmvercmp.at:100' \
16875 "rpmvercmp(1.0~rc1~git123, 1.0~rc1) = -1" " " 12
16878 $as_echo "232. $at_setup_line: testing $at_desc ..."
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
16889 at_fn_diff_devnull "$at_stderr" || at_failed=:
16890 echo >>"$at_stdout"; $as_echo "-1
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
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"
16903 at_fn_group_banner 233 'rpmvercmp.at:101' \
16904 "rpmvercmp(1.0~rc1, 1.0~rc1~git123) = 1" " " 12
16907 $as_echo "233. $at_setup_line: testing $at_desc ..."
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
16918 at_fn_diff_devnull "$at_stderr" || at_failed=:
16919 echo >>"$at_stdout"; $as_echo "1
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
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"
16932 at_fn_group_banner 234 'rpmdeps.at:7' \
16933 "missing dependency" " " 13
16936 $as_echo "234. $at_setup_line: testing $at_desc ..."
16941 $as_echo "$at_srcdir/rpmdeps.at:9:
16943 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
16946 runroot rpm --initdb
16948 rm -rf \"\${TOPDIR}\"
16950 runroot rpmbuild --quiet -bb \\
16951 --define \"pkg one\" \\
16952 --define \"reqs deptest-two\" \\
16953 /data/SPECS/deptest.spec
16955 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
16957 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:9"
16960 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
16963 runroot rpm --initdb
16967 runroot rpmbuild --quiet -bb \
16968 --define "pkg one" \
16969 --define "reqs deptest-two" \
16970 /data/SPECS/deptest.spec
16972 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
16974 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
16975 at_status=$? at_failed=false
16977 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
16978 deptest-two is needed by deptest-one-1.0-1.noarch
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
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"
16992 at_fn_group_banner 235 'rpmdeps.at:30' \
16993 "cross-depending packages" " " 13
16996 $as_echo "235. $at_setup_line: testing $at_desc ..."
17001 $as_echo "$at_srcdir/rpmdeps.at:32:
17003 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17006 runroot rpm --initdb
17008 rm -rf \"\${TOPDIR}\"
17010 runroot rpmbuild --quiet -bb \\
17011 --define \"pkg one\" \\
17012 --define \"reqs deptest-two\" \\
17013 /data/SPECS/deptest.spec
17015 runroot rpmbuild --quiet -bb \\
17016 --define \"pkg two\" \\
17017 --define \"reqs deptest-one\" \\
17018 /data/SPECS/deptest.spec
17020 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17022 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:32"
17025 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17028 runroot rpm --initdb
17032 runroot rpmbuild --quiet -bb \
17033 --define "pkg one" \
17034 --define "reqs deptest-two" \
17035 /data/SPECS/deptest.spec
17037 runroot rpmbuild --quiet -bb \
17038 --define "pkg two" \
17039 --define "reqs deptest-one" \
17040 /data/SPECS/deptest.spec
17042 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17044 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17045 at_status=$? at_failed=false
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
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"
17059 at_fn_group_banner 236 'rpmdeps.at:56' \
17060 "unsatisfied versioned require" " " 13
17063 $as_echo "236. $at_setup_line: testing $at_desc ..."
17068 $as_echo "$at_srcdir/rpmdeps.at:58:
17070 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17073 runroot rpm --initdb
17075 rm -rf \"\${TOPDIR}\"
17077 runroot rpmbuild --quiet -bb \\
17078 --define \"pkg one\" \\
17079 --define \"reqs deptest-two >= 2.0\" \\
17080 /data/SPECS/deptest.spec
17082 runroot rpmbuild --quiet -bb \\
17083 --define \"pkg two\" \\
17084 --define \"provs deptest-foo = 1.0\" \\
17085 /data/SPECS/deptest.spec
17087 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17089 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:58"
17092 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17095 runroot rpm --initdb
17099 runroot rpmbuild --quiet -bb \
17100 --define "pkg one" \
17101 --define "reqs deptest-two >= 2.0" \
17102 /data/SPECS/deptest.spec
17104 runroot rpmbuild --quiet -bb \
17105 --define "pkg two" \
17106 --define "provs deptest-foo = 1.0" \
17107 /data/SPECS/deptest.spec
17109 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17111 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17112 at_status=$? at_failed=false
17114 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17115 deptest-two >= 2.0 is needed by deptest-one-1.0-1.noarch
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
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"
17129 at_fn_group_banner 237 'rpmdeps.at:84' \
17130 "satisfied versioned require" " " 13
17133 $as_echo "237. $at_setup_line: testing $at_desc ..."
17138 $as_echo "$at_srcdir/rpmdeps.at:86:
17140 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17143 runroot rpm --initdb
17145 rm -rf \"\${TOPDIR}\"
17147 runroot rpmbuild --quiet -bb \\
17148 --define \"pkg one\" \\
17149 --define \"reqs deptest-foo >= 2.0\" \\
17150 /data/SPECS/deptest.spec
17152 runroot rpmbuild --quiet -bb \\
17153 --define \"pkg two\" \\
17154 --define \"provs deptest-foo = 2.0\" \\
17155 /data/SPECS/deptest.spec
17157 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17159 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:86"
17162 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17165 runroot rpm --initdb
17169 runroot rpmbuild --quiet -bb \
17170 --define "pkg one" \
17171 --define "reqs deptest-foo >= 2.0" \
17172 /data/SPECS/deptest.spec
17174 runroot rpmbuild --quiet -bb \
17175 --define "pkg two" \
17176 --define "provs deptest-foo = 2.0" \
17177 /data/SPECS/deptest.spec
17179 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17181 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17182 at_status=$? at_failed=false
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
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"
17196 at_fn_group_banner 238 'rpmdeps.at:110' \
17197 "versioned conflict in transaction" " " 13
17200 $as_echo "238. $at_setup_line: testing $at_desc ..."
17205 $as_echo "$at_srcdir/rpmdeps.at:112:
17207 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17210 runroot rpm --initdb
17212 rm -rf \"\${TOPDIR}\"
17214 runroot rpmbuild --quiet -bb \\
17215 --define \"pkg one\" \\
17216 --define \"cfls deptest-two < 2.0\" \\
17217 /data/SPECS/deptest.spec
17219 runroot rpmbuild --quiet -bb \\
17220 --define \"pkg two\" \\
17221 /data/SPECS/deptest.spec
17223 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17225 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:112"
17228 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17231 runroot rpm --initdb
17235 runroot rpmbuild --quiet -bb \
17236 --define "pkg one" \
17237 --define "cfls deptest-two < 2.0" \
17238 /data/SPECS/deptest.spec
17240 runroot rpmbuild --quiet -bb \
17241 --define "pkg two" \
17242 /data/SPECS/deptest.spec
17244 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17246 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17247 at_status=$? at_failed=false
17249 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17250 deptest-two < 2.0 conflicts with deptest-one-1.0-1.noarch
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
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"
17264 at_fn_group_banner 239 'rpmdeps.at:137' \
17265 "versioned conflict in database" " " 13
17268 $as_echo "239. $at_setup_line: testing $at_desc ..."
17273 $as_echo "$at_srcdir/rpmdeps.at:139:
17275 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17278 runroot rpm --initdb
17280 rm -rf \"\${TOPDIR}\"
17282 runroot rpmbuild --quiet -bb \\
17283 --define \"pkg one\" \\
17284 --define \"cfls deptest-two < 2.0\" \\
17285 /data/SPECS/deptest.spec
17287 runroot rpmbuild --quiet -bb \\
17288 --define \"pkg two\" \\
17289 /data/SPECS/deptest.spec
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
17294 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:139"
17297 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17300 runroot rpm --initdb
17304 runroot rpmbuild --quiet -bb \
17305 --define "pkg one" \
17306 --define "cfls deptest-two < 2.0" \
17307 /data/SPECS/deptest.spec
17309 runroot rpmbuild --quiet -bb \
17310 --define "pkg two" \
17311 /data/SPECS/deptest.spec
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
17316 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17317 at_status=$? at_failed=false
17319 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17320 deptest-two < 2.0 conflicts with (installed) deptest-one-1.0-1.noarch
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
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"
17334 at_fn_group_banner 240 'rpmdeps.at:163' \
17335 "install and verify self-conflicting package" " " 13
17338 $as_echo "240. $at_setup_line: testing $at_desc ..."
17343 $as_echo "$at_srcdir/rpmdeps.at:165:
17345 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17348 runroot rpm --initdb
17350 rm -rf \"\${TOPDIR}\"
17352 runroot rpmbuild --quiet -bb \\
17353 --define \"pkg one\" \\
17354 --define \"provs something\" \\
17355 --define \"cfls something\" \\
17356 /data/SPECS/deptest.spec
17358 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17359 runroot rpm -V --nofiles deptest-one
17361 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:165"
17364 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17367 runroot rpm --initdb
17371 runroot rpmbuild --quiet -bb \
17372 --define "pkg one" \
17373 --define "provs something" \
17374 --define "cfls something" \
17375 /data/SPECS/deptest.spec
17377 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17378 runroot rpm -V --nofiles deptest-one
17380 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17381 at_status=$? at_failed=false
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
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"
17395 at_fn_group_banner 241 'rpmdeps.at:185' \
17396 "explicit file conflicts" " " 13
17399 $as_echo "241. $at_setup_line: testing $at_desc ..."
17404 $as_echo "$at_srcdir/rpmdeps.at:187:
17406 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17409 runroot rpm --initdb
17411 rm -rf \"\${TOPDIR}\"
17413 runroot rpmbuild --quiet -bb \\
17414 --define \"pkg one\" \\
17415 --define \"cfls /opt/bar\" \\
17416 /data/SPECS/deptest.spec
17418 runroot rpmbuild --quiet -bb \\
17419 --define \"pkg two\" \\
17420 /data/SPECS/deptest.spec
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
17433 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:187"
17436 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17439 runroot rpm --initdb
17443 runroot rpmbuild --quiet -bb \
17444 --define "pkg one" \
17445 --define "cfls /opt/bar" \
17446 /data/SPECS/deptest.spec
17448 runroot rpmbuild --quiet -bb \
17449 --define "pkg two" \
17450 /data/SPECS/deptest.spec
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
17463 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17464 at_status=$? at_failed=false
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
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
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"
17485 at_fn_group_banner 242 'rpmdeps.at:224' \
17486 "erase to break dependencies" " " 13
17489 $as_echo "242. $at_setup_line: testing $at_desc ..."
17494 $as_echo "$at_srcdir/rpmdeps.at:226:
17496 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17499 runroot rpm --initdb
17501 rm -rf \"\${TOPDIR}\"
17503 runroot rpmbuild --quiet -bb \\
17504 --define \"pkg one\" \\
17505 --define \"reqs deptest-foo >= 2.0\" \\
17506 /data/SPECS/deptest.spec
17508 runroot rpmbuild --quiet -bb \\
17509 --define \"pkg two\" \\
17510 --define \"provs deptest-foo = 2.0\" \\
17511 /data/SPECS/deptest.spec
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
17516 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:226"
17519 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17522 runroot rpm --initdb
17526 runroot rpmbuild --quiet -bb \
17527 --define "pkg one" \
17528 --define "reqs deptest-foo >= 2.0" \
17529 /data/SPECS/deptest.spec
17531 runroot rpmbuild --quiet -bb \
17532 --define "pkg two" \
17533 --define "provs deptest-foo = 2.0" \
17534 /data/SPECS/deptest.spec
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
17539 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17540 at_status=$? at_failed=false
17542 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17543 deptest-foo >= 2.0 is needed by (installed) deptest-one-1.0-1.noarch
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
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"
17557 at_fn_group_banner 243 'rpmdeps.at:252' \
17558 "erase to break colored file dependency" " " 13
17561 $as_echo "243. $at_setup_line: testing $at_desc ..."
17566 $as_echo "$at_srcdir/rpmdeps.at:254:
17568 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17571 runroot rpm --initdb
17573 rm -rf \"\${TOPDIR}\"
17575 runroot rpmbuild --quiet -bb \\
17576 --define \"pkg hello\" \\
17577 --define \"reqs /usr/bin/hello\" \\
17578 /data/SPECS/deptest.spec
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
17587 runroot rpm -e hello.x86_64
17589 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:254"
17592 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17595 runroot rpm --initdb
17599 runroot rpmbuild --quiet -bb \
17600 --define "pkg hello" \
17601 --define "reqs /usr/bin/hello" \
17602 /data/SPECS/deptest.spec
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
17611 runroot rpm -e hello.x86_64
17613 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17614 at_status=$? at_failed=false
17616 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17617 /usr/bin/hello is needed by (installed) deptest-hello-1.0-1.noarch
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
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"
17631 at_fn_group_banner 244 'rpmdeps.at:281' \
17632 "erase on wrong-colored file dependency" " " 13
17635 $as_echo "244. $at_setup_line: testing $at_desc ..."
17640 $as_echo "$at_srcdir/rpmdeps.at:283:
17642 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17645 runroot rpm --initdb
17647 rm -rf \"\${TOPDIR}\"
17649 runroot rpmbuild --quiet -bb \\
17650 --define \"pkg hello\" \\
17651 --define \"reqs /usr/bin/hello\" \\
17652 /data/SPECS/deptest.spec
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
17661 runroot rpm -e hello.i686
17663 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:283"
17666 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17669 runroot rpm --initdb
17673 runroot rpmbuild --quiet -bb \
17674 --define "pkg hello" \
17675 --define "reqs /usr/bin/hello" \
17676 /data/SPECS/deptest.spec
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
17685 runroot rpm -e hello.i686
17687 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17688 at_status=$? at_failed=false
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
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"
17702 at_fn_group_banner 245 'rpmdeps.at:309' \
17703 "unsatisfied WITH require" " " 13
17706 $as_echo "245. $at_setup_line: testing $at_desc ..."
17711 $as_echo "$at_srcdir/rpmdeps.at:311:
17713 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17716 runroot rpm --initdb
17718 rm -rf \"\${TOPDIR}\"
17720 runroot rpmbuild --quiet -bb \\
17721 --define \"pkg one\" \\
17722 --define \"reqs (deptest-two with flavor = dekstop)\" \\
17723 /data/SPECS/deptest.spec
17725 runroot rpmbuild --quiet -bb \\
17726 --define \"pkg two\" \\
17727 --define \"provs flavor = server\" \\
17728 /data/SPECS/deptest.spec
17730 runroot rpmbuild --quiet -bb \\
17731 --define \"pkg three\" \\
17732 --define \"provs flavor = desktop\" \\
17733 /data/SPECS/deptest.spec
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
17737 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:311"
17740 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17743 runroot rpm --initdb
17747 runroot rpmbuild --quiet -bb \
17748 --define "pkg one" \
17749 --define "reqs (deptest-two with flavor = dekstop)" \
17750 /data/SPECS/deptest.spec
17752 runroot rpmbuild --quiet -bb \
17753 --define "pkg two" \
17754 --define "provs flavor = server" \
17755 /data/SPECS/deptest.spec
17757 runroot rpmbuild --quiet -bb \
17758 --define "pkg three" \
17759 --define "provs flavor = desktop" \
17760 /data/SPECS/deptest.spec
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
17764 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17765 at_status=$? at_failed=false
17767 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17768 (deptest-two with flavor = dekstop) is needed by deptest-one-1.0-1.noarch
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
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"
17782 at_fn_group_banner 246 'rpmdeps.at:340' \
17783 "unsatisfied WITH require (rpmdb)" " " 13
17786 $as_echo "246. $at_setup_line: testing $at_desc ..."
17791 $as_echo "$at_srcdir/rpmdeps.at:342:
17793 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17796 runroot rpm --initdb
17798 rm -rf \"\${TOPDIR}\"
17800 runroot rpmbuild --quiet -bb \\
17801 --define \"pkg one\" \\
17802 --define \"reqs (deptest-two with flavor = dekstop)\" \\
17803 /data/SPECS/deptest.spec
17805 runroot rpmbuild --quiet -bb \\
17806 --define \"pkg two\" \\
17807 --define \"provs flavor = server\" \\
17808 /data/SPECS/deptest.spec
17810 runroot rpmbuild --quiet -bb \\
17811 --define \"pkg three\" \\
17812 --define \"provs flavor = desktop\" \\
17813 /data/SPECS/deptest.spec
17815 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
17817 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17819 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:342"
17822 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17825 runroot rpm --initdb
17829 runroot rpmbuild --quiet -bb \
17830 --define "pkg one" \
17831 --define "reqs (deptest-two with flavor = dekstop)" \
17832 /data/SPECS/deptest.spec
17834 runroot rpmbuild --quiet -bb \
17835 --define "pkg two" \
17836 --define "provs flavor = server" \
17837 /data/SPECS/deptest.spec
17839 runroot rpmbuild --quiet -bb \
17840 --define "pkg three" \
17841 --define "provs flavor = desktop" \
17842 /data/SPECS/deptest.spec
17844 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
17846 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17848 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17849 at_status=$? at_failed=false
17851 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
17852 (deptest-two with flavor = dekstop) is needed by deptest-one-1.0-1.noarch
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
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"
17866 at_fn_group_banner 247 'rpmdeps.at:373' \
17867 "satisfied WITH require" " " 13
17870 $as_echo "247. $at_setup_line: testing $at_desc ..."
17875 $as_echo "$at_srcdir/rpmdeps.at:375:
17877 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17880 runroot rpm --initdb
17882 rm -rf \"\${TOPDIR}\"
17884 runroot rpmbuild --quiet -bb \\
17885 --define \"pkg one\" \\
17886 --define \"reqs (deptest-two with flavor = desktop)\" \\
17887 /data/SPECS/deptest.spec
17889 runroot rpmbuild --quiet -bb \\
17890 --define \"pkg two\" \\
17891 --define \"provs flavor = desktop\" \\
17892 /data/SPECS/deptest.spec
17894 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17896 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:375"
17899 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17902 runroot rpm --initdb
17906 runroot rpmbuild --quiet -bb \
17907 --define "pkg one" \
17908 --define "reqs (deptest-two with flavor = desktop)" \
17909 /data/SPECS/deptest.spec
17911 runroot rpmbuild --quiet -bb \
17912 --define "pkg two" \
17913 --define "provs flavor = desktop" \
17914 /data/SPECS/deptest.spec
17916 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17918 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17919 at_status=$? at_failed=false
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
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"
17933 at_fn_group_banner 248 'rpmdeps.at:397' \
17934 "satisfied WITH require (rpmdb)" " " 13
17937 $as_echo "248. $at_setup_line: testing $at_desc ..."
17942 $as_echo "$at_srcdir/rpmdeps.at:399:
17944 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
17947 runroot rpm --initdb
17949 rm -rf \"\${TOPDIR}\"
17951 runroot rpmbuild --quiet -bb \\
17952 --define \"pkg one\" \\
17953 --define \"reqs (deptest-two with flavor = desktop)\" \\
17954 /data/SPECS/deptest.spec
17956 runroot rpmbuild --quiet -bb \\
17957 --define \"pkg two\" \\
17958 --define \"provs flavor = desktop\" \\
17959 /data/SPECS/deptest.spec
17961 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17963 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17965 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:399"
17968 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
17971 runroot rpm --initdb
17975 runroot rpmbuild --quiet -bb \
17976 --define "pkg one" \
17977 --define "reqs (deptest-two with flavor = desktop)" \
17978 /data/SPECS/deptest.spec
17980 runroot rpmbuild --quiet -bb \
17981 --define "pkg two" \
17982 --define "provs flavor = desktop" \
17983 /data/SPECS/deptest.spec
17985 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
17987 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
17989 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
17990 at_status=$? at_failed=false
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
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"
18004 at_fn_group_banner 249 'rpmdeps.at:425' \
18005 "unsatisfied WITHOUT require" " " 13
18008 $as_echo "249. $at_setup_line: testing $at_desc ..."
18013 $as_echo "$at_srcdir/rpmdeps.at:427:
18015 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18018 runroot rpm --initdb
18020 rm -rf \"\${TOPDIR}\"
18022 runroot rpmbuild --quiet -bb \\
18023 --define \"pkg one\" \\
18024 --define \"reqs (deptest-two without flavor)\" \\
18025 /data/SPECS/deptest.spec
18027 runroot rpmbuild --quiet -bb \\
18028 --define \"pkg two\" \\
18029 --define \"provs flavor = server\" \\
18030 /data/SPECS/deptest.spec
18032 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18034 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:427"
18037 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18040 runroot rpm --initdb
18044 runroot rpmbuild --quiet -bb \
18045 --define "pkg one" \
18046 --define "reqs (deptest-two without flavor)" \
18047 /data/SPECS/deptest.spec
18049 runroot rpmbuild --quiet -bb \
18050 --define "pkg two" \
18051 --define "provs flavor = server" \
18052 /data/SPECS/deptest.spec
18054 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18056 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18057 at_status=$? at_failed=false
18059 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18060 (deptest-two without flavor) is needed by deptest-one-1.0-1.noarch
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
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"
18074 at_fn_group_banner 250 'rpmdeps.at:451' \
18075 "unsatisfied WITHOUT require (rpmdb)" " " 13
18078 $as_echo "250. $at_setup_line: testing $at_desc ..."
18083 $as_echo "$at_srcdir/rpmdeps.at:453:
18085 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18088 runroot rpm --initdb
18090 rm -rf \"\${TOPDIR}\"
18092 runroot rpmbuild --quiet -bb \\
18093 --define \"pkg one\" \\
18094 --define \"reqs (deptest-two without flavor)\" \\
18095 /data/SPECS/deptest.spec
18097 runroot rpmbuild --quiet -bb \\
18098 --define \"pkg two\" \\
18099 --define \"provs flavor = server\" \\
18100 /data/SPECS/deptest.spec
18102 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18104 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18106 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:453"
18109 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18112 runroot rpm --initdb
18116 runroot rpmbuild --quiet -bb \
18117 --define "pkg one" \
18118 --define "reqs (deptest-two without flavor)" \
18119 /data/SPECS/deptest.spec
18121 runroot rpmbuild --quiet -bb \
18122 --define "pkg two" \
18123 --define "provs flavor = server" \
18124 /data/SPECS/deptest.spec
18126 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18128 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18130 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18131 at_status=$? at_failed=false
18133 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18134 (deptest-two without flavor) is needed by deptest-one-1.0-1.noarch
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
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"
18148 at_fn_group_banner 251 'rpmdeps.at:479' \
18149 "satisfied WITHOUT require" " " 13
18152 $as_echo "251. $at_setup_line: testing $at_desc ..."
18157 $as_echo "$at_srcdir/rpmdeps.at:481:
18159 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18162 runroot rpm --initdb
18164 rm -rf \"\${TOPDIR}\"
18166 runroot rpmbuild --quiet -bb \\
18167 --define \"pkg one\" \\
18168 --define \"reqs (deptest-two without flavor)\" \\
18169 /data/SPECS/deptest.spec
18171 runroot rpmbuild --quiet -bb \\
18172 --define \"pkg two\" \\
18173 /data/SPECS/deptest.spec
18175 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18177 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:481"
18180 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18183 runroot rpm --initdb
18187 runroot rpmbuild --quiet -bb \
18188 --define "pkg one" \
18189 --define "reqs (deptest-two without flavor)" \
18190 /data/SPECS/deptest.spec
18192 runroot rpmbuild --quiet -bb \
18193 --define "pkg two" \
18194 /data/SPECS/deptest.spec
18196 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18198 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18199 at_status=$? at_failed=false
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
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"
18213 at_fn_group_banner 252 'rpmdeps.at:502' \
18214 "satisfied WITHOUT require (rpmdb)" " " 13
18217 $as_echo "252. $at_setup_line: testing $at_desc ..."
18222 $as_echo "$at_srcdir/rpmdeps.at:504:
18224 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18227 runroot rpm --initdb
18229 rm -rf \"\${TOPDIR}\"
18231 runroot rpmbuild --quiet -bb \\
18232 --define \"pkg one\" \\
18233 --define \"reqs (deptest-two without flavor)\" \\
18234 /data/SPECS/deptest.spec
18236 runroot rpmbuild --quiet -bb \\
18237 --define \"pkg two\" \\
18238 /data/SPECS/deptest.spec
18240 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18242 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18244 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:504"
18247 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18250 runroot rpm --initdb
18254 runroot rpmbuild --quiet -bb \
18255 --define "pkg one" \
18256 --define "reqs (deptest-two without flavor)" \
18257 /data/SPECS/deptest.spec
18259 runroot rpmbuild --quiet -bb \
18260 --define "pkg two" \
18261 /data/SPECS/deptest.spec
18263 runroot rpm -U /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18265 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18267 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18268 at_status=$? at_failed=false
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
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"
18282 at_fn_group_banner 253 'rpmdeps.at:529' \
18283 "unsatisfied AND require - all missing" " " 13
18286 $as_echo "253. $at_setup_line: testing $at_desc ..."
18291 $as_echo "$at_srcdir/rpmdeps.at:531:
18293 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18296 runroot rpm --initdb
18298 rm -rf \"\${TOPDIR}\"
18300 runroot rpmbuild --quiet -bb \\
18301 --define \"pkg one\" \\
18302 --define \"reqs (deptest-two and deptest-three)\" \\
18303 /data/SPECS/deptest.spec
18305 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18307 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:531"
18310 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18313 runroot rpm --initdb
18317 runroot rpmbuild --quiet -bb \
18318 --define "pkg one" \
18319 --define "reqs (deptest-two and deptest-three)" \
18320 /data/SPECS/deptest.spec
18322 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18324 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18325 at_status=$? at_failed=false
18327 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18328 (deptest-two and deptest-three) is needed by deptest-one-1.0-1.noarch
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
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"
18342 at_fn_group_banner 254 'rpmdeps.at:550' \
18343 "unsatisfied AND require - first is missing" " " 13
18346 $as_echo "254. $at_setup_line: testing $at_desc ..."
18351 $as_echo "$at_srcdir/rpmdeps.at:552:
18353 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18356 runroot rpm --initdb
18358 rm -rf \"\${TOPDIR}\"
18360 runroot rpmbuild --quiet -bb \\
18361 --define \"pkg one\" \\
18362 --define \"reqs (deptest-two and deptest-three)\" \\
18363 /data/SPECS/deptest.spec
18365 runroot rpmbuild --quiet -bb \\
18366 --define \"pkg three\" \\
18367 /data/SPECS/deptest.spec
18369 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18371 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:552"
18374 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18377 runroot rpm --initdb
18381 runroot rpmbuild --quiet -bb \
18382 --define "pkg one" \
18383 --define "reqs (deptest-two and deptest-three)" \
18384 /data/SPECS/deptest.spec
18386 runroot rpmbuild --quiet -bb \
18387 --define "pkg three" \
18388 /data/SPECS/deptest.spec
18390 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18392 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18393 at_status=$? at_failed=false
18395 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18396 (deptest-two and deptest-three) is needed by deptest-one-1.0-1.noarch
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
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"
18410 at_fn_group_banner 255 'rpmdeps.at:575' \
18411 "unsatisfied AND require - second is missing" " " 13
18414 $as_echo "255. $at_setup_line: testing $at_desc ..."
18419 $as_echo "$at_srcdir/rpmdeps.at:577:
18421 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18424 runroot rpm --initdb
18426 rm -rf \"\${TOPDIR}\"
18428 runroot rpmbuild --quiet -bb \\
18429 --define \"pkg one\" \\
18430 --define \"reqs (deptest-two and deptest-three)\" \\
18431 /data/SPECS/deptest.spec
18433 runroot rpmbuild --quiet -bb \\
18434 --define \"pkg two\" \\
18435 /data/SPECS/deptest.spec
18437 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18439 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:577"
18442 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18445 runroot rpm --initdb
18449 runroot rpmbuild --quiet -bb \
18450 --define "pkg one" \
18451 --define "reqs (deptest-two and deptest-three)" \
18452 /data/SPECS/deptest.spec
18454 runroot rpmbuild --quiet -bb \
18455 --define "pkg two" \
18456 /data/SPECS/deptest.spec
18458 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18460 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18461 at_status=$? at_failed=false
18463 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18464 (deptest-two and deptest-three) is needed by deptest-one-1.0-1.noarch
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
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"
18478 at_fn_group_banner 256 'rpmdeps.at:600' \
18479 "satisfied AND require" " " 13
18482 $as_echo "256. $at_setup_line: testing $at_desc ..."
18487 $as_echo "$at_srcdir/rpmdeps.at:602:
18489 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18492 runroot rpm --initdb
18494 rm -rf \"\${TOPDIR}\"
18496 runroot rpmbuild --quiet -bb \\
18497 --define \"pkg one\" \\
18498 --define \"reqs (deptest-two and deptest-three)\" \\
18499 /data/SPECS/deptest.spec
18501 runroot rpmbuild --quiet -bb \\
18502 --define \"pkg two\" \\
18503 /data/SPECS/deptest.spec
18505 runroot rpmbuild --quiet -bb \\
18506 --define \"pkg three\" \\
18507 /data/SPECS/deptest.spec
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
18511 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:602"
18514 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18517 runroot rpm --initdb
18521 runroot rpmbuild --quiet -bb \
18522 --define "pkg one" \
18523 --define "reqs (deptest-two and deptest-three)" \
18524 /data/SPECS/deptest.spec
18526 runroot rpmbuild --quiet -bb \
18527 --define "pkg two" \
18528 /data/SPECS/deptest.spec
18530 runroot rpmbuild --quiet -bb \
18531 --define "pkg three" \
18532 /data/SPECS/deptest.spec
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
18536 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18537 at_status=$? at_failed=false
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
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"
18551 at_fn_group_banner 257 'rpmdeps.at:629' \
18552 "unsatisfied OR require - all missing" " " 13
18555 $as_echo "257. $at_setup_line: testing $at_desc ..."
18560 $as_echo "$at_srcdir/rpmdeps.at:631:
18562 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18565 runroot rpm --initdb
18567 rm -rf \"\${TOPDIR}\"
18569 runroot rpmbuild --quiet -bb \\
18570 --define \"pkg one\" \\
18571 --define \"reqs (deptest-two or deptest-three)\" \\
18572 /data/SPECS/deptest.spec
18574 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18576 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:631"
18579 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18582 runroot rpm --initdb
18586 runroot rpmbuild --quiet -bb \
18587 --define "pkg one" \
18588 --define "reqs (deptest-two or deptest-three)" \
18589 /data/SPECS/deptest.spec
18591 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18593 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18594 at_status=$? at_failed=false
18596 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18597 (deptest-two or deptest-three) is needed by deptest-one-1.0-1.noarch
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
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"
18611 at_fn_group_banner 258 'rpmdeps.at:650' \
18612 "satisfied OR require - first is missing" " " 13
18615 $as_echo "258. $at_setup_line: testing $at_desc ..."
18620 $as_echo "$at_srcdir/rpmdeps.at:652:
18622 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18625 runroot rpm --initdb
18627 rm -rf \"\${TOPDIR}\"
18629 runroot rpmbuild --quiet -bb \\
18630 --define \"pkg one\" \\
18631 --define \"reqs (deptest-two or deptest-three)\" \\
18632 /data/SPECS/deptest.spec
18634 runroot rpmbuild --quiet -bb \\
18635 --define \"pkg three\" \\
18636 /data/SPECS/deptest.spec
18638 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18640 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:652"
18643 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18646 runroot rpm --initdb
18650 runroot rpmbuild --quiet -bb \
18651 --define "pkg one" \
18652 --define "reqs (deptest-two or deptest-three)" \
18653 /data/SPECS/deptest.spec
18655 runroot rpmbuild --quiet -bb \
18656 --define "pkg three" \
18657 /data/SPECS/deptest.spec
18659 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18661 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18662 at_status=$? at_failed=false
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
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"
18676 at_fn_group_banner 259 'rpmdeps.at:673' \
18677 "satisfied OR require - second is missing" " " 13
18680 $as_echo "259. $at_setup_line: testing $at_desc ..."
18685 $as_echo "$at_srcdir/rpmdeps.at:675:
18687 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18690 runroot rpm --initdb
18692 rm -rf \"\${TOPDIR}\"
18694 runroot rpmbuild --quiet -bb \\
18695 --define \"pkg one\" \\
18696 --define \"reqs (deptest-two or deptest-three)\" \\
18697 /data/SPECS/deptest.spec
18699 runroot rpmbuild --quiet -bb \\
18700 --define \"pkg two\" \\
18701 /data/SPECS/deptest.spec
18703 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18705 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:675"
18708 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18711 runroot rpm --initdb
18715 runroot rpmbuild --quiet -bb \
18716 --define "pkg one" \
18717 --define "reqs (deptest-two or deptest-three)" \
18718 /data/SPECS/deptest.spec
18720 runroot rpmbuild --quiet -bb \
18721 --define "pkg two" \
18722 /data/SPECS/deptest.spec
18724 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
18726 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18727 at_status=$? at_failed=false
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
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"
18741 at_fn_group_banner 260 'rpmdeps.at:696' \
18742 "satisfied OR require - both present" " " 13
18745 $as_echo "260. $at_setup_line: testing $at_desc ..."
18750 $as_echo "$at_srcdir/rpmdeps.at:698:
18752 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18755 runroot rpm --initdb
18757 rm -rf \"\${TOPDIR}\"
18759 runroot rpmbuild --quiet -bb \\
18760 --define \"pkg one\" \\
18761 --define \"reqs (deptest-two or deptest-three)\" \\
18762 /data/SPECS/deptest.spec
18764 runroot rpmbuild --quiet -bb \\
18765 --define \"pkg two\" \\
18766 /data/SPECS/deptest.spec
18768 runroot rpmbuild --quiet -bb \\
18769 --define \"pkg three\" \\
18770 /data/SPECS/deptest.spec
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
18774 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:698"
18777 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18780 runroot rpm --initdb
18784 runroot rpmbuild --quiet -bb \
18785 --define "pkg one" \
18786 --define "reqs (deptest-two or deptest-three)" \
18787 /data/SPECS/deptest.spec
18789 runroot rpmbuild --quiet -bb \
18790 --define "pkg two" \
18791 /data/SPECS/deptest.spec
18793 runroot rpmbuild --quiet -bb \
18794 --define "pkg three" \
18795 /data/SPECS/deptest.spec
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
18799 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18800 at_status=$? at_failed=false
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
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"
18814 at_fn_group_banner 261 'rpmdeps.at:725' \
18815 "unsatisfied IF require" " " 13
18818 $as_echo "261. $at_setup_line: testing $at_desc ..."
18823 $as_echo "$at_srcdir/rpmdeps.at:727:
18825 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18828 runroot rpm --initdb
18830 rm -rf \"\${TOPDIR}\"
18832 runroot rpmbuild --quiet -bb \\
18833 --define \"pkg one\" \\
18834 --define \"reqs (deptest-two if deptest-three)\" \\
18835 /data/SPECS/deptest.spec
18837 runroot rpmbuild --quiet -bb \\
18838 --define \"pkg three\" \\
18839 /data/SPECS/deptest.spec
18841 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18843 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:727"
18846 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18849 runroot rpm --initdb
18853 runroot rpmbuild --quiet -bb \
18854 --define "pkg one" \
18855 --define "reqs (deptest-two if deptest-three)" \
18856 /data/SPECS/deptest.spec
18858 runroot rpmbuild --quiet -bb \
18859 --define "pkg three" \
18860 /data/SPECS/deptest.spec
18862 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-three-1.0-1.noarch.rpm
18864 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18865 at_status=$? at_failed=false
18867 echo >>"$at_stderr"; $as_echo "error: Failed dependencies:
18868 (deptest-two if deptest-three) is needed by deptest-one-1.0-1.noarch
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
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"
18882 at_fn_group_banner 262 'rpmdeps.at:750' \
18883 "satisfied IF require" " " 13
18886 $as_echo "262. $at_setup_line: testing $at_desc ..."
18891 $as_echo "$at_srcdir/rpmdeps.at:752:
18893 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18896 runroot rpm --initdb
18898 rm -rf \"\${TOPDIR}\"
18900 runroot rpmbuild --quiet -bb \\
18901 --define \"pkg one\" \\
18902 --define \"reqs (deptest-two if deptest-three)\" \\
18903 /data/SPECS/deptest.spec
18905 runroot rpmbuild --quiet -bb \\
18906 --define \"pkg three\" \\
18907 /data/SPECS/deptest.spec
18909 runroot rpmbuild --quiet -bb \\
18910 --define \"pkg two\" \\
18911 /data/SPECS/deptest.spec
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
18915 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:752"
18918 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18921 runroot rpm --initdb
18925 runroot rpmbuild --quiet -bb \
18926 --define "pkg one" \
18927 --define "reqs (deptest-two if deptest-three)" \
18928 /data/SPECS/deptest.spec
18930 runroot rpmbuild --quiet -bb \
18931 --define "pkg three" \
18932 /data/SPECS/deptest.spec
18934 runroot rpmbuild --quiet -bb \
18935 --define "pkg two" \
18936 /data/SPECS/deptest.spec
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
18940 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18941 at_status=$? at_failed=false
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
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"
18955 at_fn_group_banner 263 'rpmdeps.at:777' \
18956 "unsatisfied IF-ELSE require" " " 13
18959 $as_echo "263. $at_setup_line: testing $at_desc ..."
18964 $as_echo "$at_srcdir/rpmdeps.at:779:
18966 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
18969 runroot rpm --initdb
18971 rm -rf \"\${TOPDIR}\"
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
18978 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18980 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:779"
18983 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
18986 runroot rpm --initdb
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
18995 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm
18997 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
18998 at_status=$? at_failed=false
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
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
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"
19015 at_fn_group_banner 264 'rpmdeps.at:798' \
19016 "satisfied IF-ELSE require - right clause" " " 13
19019 $as_echo "264. $at_setup_line: testing $at_desc ..."
19024 $as_echo "$at_srcdir/rpmdeps.at:800:
19026 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19029 runroot rpm --initdb
19031 rm -rf \"\${TOPDIR}\"
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
19038 runroot rpmbuild --quiet -bb \\
19039 --define \"pkg four\" \\
19040 /data/SPECS/deptest.spec
19042 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-four-1.0-1.noarch.rpm
19044 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:800"
19047 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19050 runroot rpm --initdb
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
19059 runroot rpmbuild --quiet -bb \
19060 --define "pkg four" \
19061 /data/SPECS/deptest.spec
19063 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-four-1.0-1.noarch.rpm
19065 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19066 at_status=$? at_failed=false
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
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"
19080 at_fn_group_banner 265 'rpmdeps.at:821' \
19081 "satisfied IF-ELSE require - left clause" " " 13
19084 $as_echo "265. $at_setup_line: testing $at_desc ..."
19089 $as_echo "$at_srcdir/rpmdeps.at:823:
19091 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19094 runroot rpm --initdb
19096 rm -rf \"\${TOPDIR}\"
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
19103 runroot rpmbuild --quiet -bb \\
19104 --define \"pkg three\" \\
19105 /data/SPECS/deptest.spec
19107 runroot rpmbuild --quiet -bb \\
19108 --define \"pkg two\" \\
19109 /data/SPECS/deptest.spec
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
19113 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:823"
19116 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19119 runroot rpm --initdb
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
19128 runroot rpmbuild --quiet -bb \
19129 --define "pkg three" \
19130 /data/SPECS/deptest.spec
19132 runroot rpmbuild --quiet -bb \
19133 --define "pkg two" \
19134 /data/SPECS/deptest.spec
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
19138 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19139 at_status=$? at_failed=false
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
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"
19153 at_fn_group_banner 266 'rpmdeps.at:850' \
19154 "unsatisfied nested AND-OR require" " " 13
19157 $as_echo "266. $at_setup_line: testing $at_desc ..."
19162 $as_echo "$at_srcdir/rpmdeps.at:852:
19164 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19167 runroot rpm --initdb
19169 rm -rf \"\${TOPDIR}\"
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
19176 runroot rpmbuild --quiet -bb \\
19177 --define \"pkg two\" \\
19178 /data/SPECS/deptest.spec
19180 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19182 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:852"
19185 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19188 runroot rpm --initdb
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
19197 runroot rpmbuild --quiet -bb \
19198 --define "pkg two" \
19199 /data/SPECS/deptest.spec
19201 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19203 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19204 at_status=$? at_failed=false
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
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
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"
19221 at_fn_group_banner 267 'rpmdeps.at:875' \
19222 "satisfied nested AND-OR require" " " 13
19225 $as_echo "267. $at_setup_line: testing $at_desc ..."
19230 $as_echo "$at_srcdir/rpmdeps.at:877:
19232 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19235 runroot rpm --initdb
19237 rm -rf \"\${TOPDIR}\"
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
19244 runroot rpmbuild --quiet -bb \\
19245 --define \"pkg two\" \\
19246 /data/SPECS/deptest.spec
19248 runroot rpmbuild --quiet -bb \\
19249 --define \"pkg three\" \\
19250 /data/SPECS/deptest.spec
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
19254 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:877"
19257 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19260 runroot rpm --initdb
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
19269 runroot rpmbuild --quiet -bb \
19270 --define "pkg two" \
19271 /data/SPECS/deptest.spec
19273 runroot rpmbuild --quiet -bb \
19274 --define "pkg three" \
19275 /data/SPECS/deptest.spec
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
19279 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19280 at_status=$? at_failed=false
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
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"
19294 at_fn_group_banner 268 'rpmdeps.at:904' \
19295 "satisfied nested AND-IF require - without right clause" "" 13
19298 $as_echo "268. $at_setup_line: testing $at_desc ..."
19303 $as_echo "$at_srcdir/rpmdeps.at:906:
19305 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19308 runroot rpm --initdb
19310 rm -rf \"\${TOPDIR}\"
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
19317 runroot rpmbuild --quiet -bb \\
19318 --define \"pkg two\" \\
19319 /data/SPECS/deptest.spec
19321 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19323 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:906"
19326 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19329 runroot rpm --initdb
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
19338 runroot rpmbuild --quiet -bb \
19339 --define "pkg two" \
19340 /data/SPECS/deptest.spec
19342 runroot rpm -U /build/RPMS/noarch/deptest-one-1.0-1.noarch.rpm /build/RPMS/noarch/deptest-two-1.0-1.noarch.rpm
19344 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19345 at_status=$? at_failed=false
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
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"
19359 at_fn_group_banner 269 'rpmdeps.at:927' \
19360 "satisfied nested AND-IF require - with right clause" "" 13
19363 $as_echo "269. $at_setup_line: testing $at_desc ..."
19368 $as_echo "$at_srcdir/rpmdeps.at:929:
19370 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19373 runroot rpm --initdb
19375 rm -rf \"\${TOPDIR}\"
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
19382 runroot rpmbuild --quiet -bb \\
19383 --define \"pkg two\" \\
19384 /data/SPECS/deptest.spec
19386 runroot rpmbuild --quiet -bb \\
19387 --define \"pkg four\" \\
19388 /data/SPECS/deptest.spec
19390 runroot rpmbuild --quiet -bb \\
19391 --define \"pkg three\" \\
19392 /data/SPECS/deptest.spec
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
19396 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmdeps.at:929"
19399 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19402 runroot rpm --initdb
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
19411 runroot rpmbuild --quiet -bb \
19412 --define "pkg two" \
19413 /data/SPECS/deptest.spec
19415 runroot rpmbuild --quiet -bb \
19416 --define "pkg four" \
19417 /data/SPECS/deptest.spec
19419 runroot rpmbuild --quiet -bb \
19420 --define "pkg three" \
19421 /data/SPECS/deptest.spec
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
19425 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19426 at_status=$? at_failed=false
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
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"
19440 at_fn_group_banner 270 'rpmconflict.at:7' \
19441 "package with file conflict" " " 14
19444 $as_echo "270. $at_setup_line: testing $at_desc ..."
19449 $as_echo "$at_srcdir/rpmconflict.at:9:
19451 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19454 runroot rpm --initdb
19456 rm -rf \"\${TOPDIR}\"
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
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
19468 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:9"
19471 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19474 runroot rpm --initdb
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
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
19488 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19489 at_status=$? at_failed=false
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
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"
19503 at_fn_group_banner 271 'rpmconflict.at:31' \
19504 "two packages with a conflicting file" " " 14
19507 $as_echo "271. $at_setup_line: testing $at_desc ..."
19512 $as_echo "$at_srcdir/rpmconflict.at:33:
19514 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19517 runroot rpm --initdb
19521 /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \\
19522 /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19524 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:33"
19527 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19530 runroot rpm --initdb
19534 /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \
19535 /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19537 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19538 at_status=$? at_failed=false
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
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"
19552 at_fn_group_banner 272 'rpmconflict.at:48' \
19553 "package with shareable file" " " 14
19556 $as_echo "272. $at_setup_line: testing $at_desc ..."
19561 $as_echo "$at_srcdir/rpmconflict.at:50:
19563 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19566 runroot rpm --initdb
19568 rm -rf \"\${TOPDIR}\"
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
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
19580 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:50"
19583 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19586 runroot rpm --initdb
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
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
19600 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19601 at_status=$? at_failed=false
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
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"
19615 at_fn_group_banner 273 'rpmconflict.at:72' \
19616 "two packages with shareable file" " " 14
19619 $as_echo "273. $at_setup_line: testing $at_desc ..."
19624 $as_echo "$at_srcdir/rpmconflict.at:74:
19626 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19629 runroot rpm --initdb
19633 /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \\
19634 /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19636 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:74"
19639 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19642 runroot rpm --initdb
19646 /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \
19647 /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
19649 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19650 at_status=$? at_failed=false
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
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"
19664 at_fn_group_banner 274 'rpmconflict.at:89' \
19665 "non-conflicting identical basenames" " " 14
19668 $as_echo "274. $at_setup_line: testing $at_desc ..."
19673 $as_echo "$at_srcdir/rpmconflict.at:91:
19675 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19678 runroot rpm --initdb
19680 rm -rf \"\${TOPDIR}\"
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
19686 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:91"
19689 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19692 runroot rpm --initdb
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
19700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19701 at_status=$? at_failed=false
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
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"
19715 at_fn_group_banner 275 'rpmconflict.at:107' \
19716 "conflicting identical basenames" " " 14
19719 $as_echo "275. $at_setup_line: testing $at_desc ..."
19724 $as_echo "$at_srcdir/rpmconflict.at:109:
19726 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19729 runroot rpm --initdb
19731 rm -rf \"\${TOPDIR}\"
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
19739 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:109"
19742 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19745 runroot rpm --initdb
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
19755 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19756 at_status=$? at_failed=false
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
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
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"
19772 at_fn_group_banner 276 'rpmconflict.at:127' \
19773 "multilib elf conflict, prefer 64bit 1" " " 14
19776 $as_echo "276. $at_setup_line: testing $at_desc ..."
19781 $as_echo "$at_srcdir/rpmconflict.at:129:
19783 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19786 runroot rpm --initdb
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
19796 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:129"
19799 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19802 runroot rpm --initdb
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
19812 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19813 at_status=$? at_failed=false
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,
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
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"
19830 at_fn_group_banner 277 'rpmconflict.at:149' \
19831 "multilib elf conflict, prefer 64bit 2" " " 14
19834 $as_echo "277. $at_setup_line: testing $at_desc ..."
19839 $as_echo "$at_srcdir/rpmconflict.at:151:
19841 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19844 runroot rpm --initdb
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
19858 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:151"
19861 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19864 runroot rpm --initdb
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
19878 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19879 at_status=$? at_failed=false
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,
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
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"
19897 at_fn_group_banner 278 'rpmconflict.at:176' \
19898 "multilib elf conflict, prefer 64bit 3" " " 14
19901 $as_echo "278. $at_setup_line: testing $at_desc ..."
19906 $as_echo "$at_srcdir/rpmconflict.at:178:
19908 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19911 runroot rpm --initdb
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
19925 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:178"
19928 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19931 runroot rpm --initdb
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
19945 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
19946 at_status=$? at_failed=false
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,
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
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"
19964 at_fn_group_banner 279 'rpmconflict.at:203' \
19965 "multilib elf conflict, prefer 32bit 1" " " 14
19968 $as_echo "279. $at_setup_line: testing $at_desc ..."
19973 $as_echo "$at_srcdir/rpmconflict.at:205:
19975 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
19978 runroot rpm --initdb
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
19988 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:205"
19991 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
19994 runroot rpm --initdb
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
20004 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20005 at_status=$? at_failed=false
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,
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
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"
20022 at_fn_group_banner 280 'rpmconflict.at:225' \
20023 "multilib elf conflict, prefer 32bit 2" " " 14
20026 $as_echo "280. $at_setup_line: testing $at_desc ..."
20031 $as_echo "$at_srcdir/rpmconflict.at:227:
20033 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20036 runroot rpm --initdb
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
20050 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:227"
20053 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20056 runroot rpm --initdb
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
20070 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20071 at_status=$? at_failed=false
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,
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
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"
20089 at_fn_group_banner 281 'rpmconflict.at:252' \
20090 "multilib elf conflict, prefer 32bit 3" " " 14
20093 $as_echo "281. $at_setup_line: testing $at_desc ..."
20098 $as_echo "$at_srcdir/rpmconflict.at:254:
20100 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20103 runroot rpm --initdb
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
20117 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:254"
20120 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20123 runroot rpm --initdb
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
20137 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20138 at_status=$? at_failed=false
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,
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
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"
20156 at_fn_group_banner 282 'rpmconflict.at:279' \
20157 "multilib elf vs non-elf file conflict 1" " " 14
20160 $as_echo "282. $at_setup_line: testing $at_desc ..."
20165 $as_echo "$at_srcdir/rpmconflict.at:281:
20167 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20170 runroot rpm --initdb
20173 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
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
20181 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:281"
20184 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20187 runroot rpm --initdb
20190 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
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
20198 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20199 at_status=$? at_failed=false
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
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
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"
20215 at_fn_group_banner 283 'rpmconflict.at:300' \
20216 "multilib elf vs non-elf file conflict 2" " " 14
20219 $as_echo "283. $at_setup_line: testing $at_desc ..."
20224 $as_echo "$at_srcdir/rpmconflict.at:302:
20226 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20229 runroot rpm --initdb
20232 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
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
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
20244 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:302"
20247 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20250 runroot rpm --initdb
20253 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
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
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
20265 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20266 at_status=$? at_failed=false
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
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
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"
20282 at_fn_group_banner 284 'rpmconflict.at:325' \
20283 "multilib elf vs non-elf file conflict 3" " " 14
20286 $as_echo "284. $at_setup_line: testing $at_desc ..."
20291 $as_echo "$at_srcdir/rpmconflict.at:327:
20293 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20296 runroot rpm --initdb
20299 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
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
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
20311 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:327"
20314 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20317 runroot rpm --initdb
20320 runroot rpmbuild --quiet -bb /data/SPECS/hello-script.spec
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
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
20332 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20333 at_status=$? at_failed=false
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
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
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"
20349 at_fn_group_banner 285 'rpmconflict.at:351' \
20350 "replacing directory with symlink" " " 14
20353 $as_echo "285. $at_setup_line: testing $at_desc ..."
20358 $as_echo "$at_srcdir/rpmconflict.at:353:
20360 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20363 runroot rpm --initdb
20365 rm -rf \"\${TOPDIR}\"
20366 rm -rf \"\${RPMTEST}\"/usr/{share,lib}/symlinktest*
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
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
20376 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:353"
20379 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20382 runroot rpm --initdb
20385 rm -rf "${RPMTEST}"/usr/{share,lib}/symlinktest*
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
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
20395 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20396 at_status=$? at_failed=false
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
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
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"
20412 at_fn_group_banner 286 'rpmconflict.at:375' \
20413 "replacing symlink with directory" " " 14
20416 $as_echo "286. $at_setup_line: testing $at_desc ..."
20421 $as_echo "$at_srcdir/rpmconflict.at:377:
20423 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20426 runroot rpm --initdb
20428 rm -rf \"\${TOPDIR}\"
20429 rm -rf \"\${RPMTEST}\"/usr/{share,lib}/symlinktest*
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
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
20439 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:377"
20442 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20445 runroot rpm --initdb
20448 rm -rf "${RPMTEST}"/usr/{share,lib}/symlinktest*
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
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
20458 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20459 at_status=$? at_failed=false
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
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
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"
20475 at_fn_group_banner 287 'rpmconflict.at:400' \
20476 "real file with shared ghost" " " 14
20479 $as_echo "287. $at_setup_line: testing $at_desc ..."
20484 $as_echo "$at_srcdir/rpmconflict.at:402:
20486 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20489 runroot rpm --initdb
20491 fn=\"\${RPMTEST}\"/usr/share/my.version
20492 rm -rf \"\${TOPDIR}\" \"\${fn}\"
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
20501 test ! -f \"\${fn}\" && echo OK
20503 /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \\
20504 /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
20506 runroot rpm -e conflicttwo
20508 runroot rpm -e conflictone
20509 test ! -f \"\${fn}\" && echo OK
20511 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconflict.at:402"
20514 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20517 runroot rpm --initdb
20519 fn="${RPMTEST}"/usr/share/my.version
20520 rm -rf "${TOPDIR}" "${fn}"
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
20529 test ! -f "${fn}" && echo OK
20531 /build/RPMS/noarch/conflictone-1.0-1.noarch.rpm \
20532 /build/RPMS/noarch/conflicttwo-1.0-1.noarch.rpm
20534 runroot rpm -e conflicttwo
20536 runroot rpm -e conflictone
20537 test ! -f "${fn}" && echo OK
20539 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20540 at_status=$? at_failed=false
20542 at_fn_diff_devnull "$at_stderr" || at_failed=:
20543 echo >>"$at_stdout"; $as_echo "OK
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
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"
20559 at_fn_group_banner 288 'rpmreplace.at:4' \
20560 "upgrade to/from regular file" " " 15
20563 $as_echo "288. $at_setup_line: testing $at_desc ..."
20568 $as_echo "$at_srcdir/rpmreplace.at:6:
20570 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20573 runroot rpm --initdb
20575 tf=\"\${RPMTEST}\"/opt/foo
20576 rm -rf \"\${tf}\" \"\${tf}\".rpm*
20577 rm -rf \"\${TOPDIR}\"
20579 runroot rpmbuild --quiet -bb \\
20580 --define \"ver 1.0\" \\
20581 --define \"filetype file\" \\
20582 --define \"filedata foo\" \\
20583 /data/SPECS/replacetest.spec
20585 runroot rpmbuild --quiet -bb \\
20586 --define \"ver 2.0\" \\
20587 --define \"filetype file\" \\
20588 --define \"filedata bar\" \\
20589 /data/SPECS/replacetest.spec
20591 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20593 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20595 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20598 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:6"
20601 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20604 runroot rpm --initdb
20606 tf="${RPMTEST}"/opt/foo
20607 rm -rf "${tf}" "${tf}".rpm*
20610 runroot rpmbuild --quiet -bb \
20611 --define "ver 1.0" \
20612 --define "filetype file" \
20613 --define "filedata foo" \
20614 /data/SPECS/replacetest.spec
20616 runroot rpmbuild --quiet -bb \
20617 --define "ver 2.0" \
20618 --define "filetype file" \
20619 --define "filedata bar" \
20620 /data/SPECS/replacetest.spec
20622 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20624 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20626 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20629 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20630 at_status=$? at_failed=false
20632 at_fn_diff_devnull "$at_stderr" || at_failed=:
20633 echo >>"$at_stdout"; $as_echo "foo
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
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"
20648 at_fn_group_banner 289 'rpmreplace.at:40' \
20649 "upgrade regular file to/from broken link" " " 15
20652 $as_echo "289. $at_setup_line: testing $at_desc ..."
20657 $as_echo "$at_srcdir/rpmreplace.at:42:
20659 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20662 runroot rpm --initdb
20664 tf=\"\${RPMTEST}\"/opt/foo
20665 rm -rf \"\${RPMTEST}\"/opt/*
20666 rm -rf \"\${TOPDIR}\"
20668 runroot rpmbuild --quiet -bb \\
20669 --define \"ver 1.0\" \\
20670 --define \"filetype file\" \\
20671 --define \"filedata foo\" \\
20672 /data/SPECS/replacetest.spec
20674 runroot rpmbuild --quiet -bb \\
20675 --define \"ver 2.0\" \\
20676 --define \"filetype link\" \\
20677 --define \"filedata stuff\" \\
20678 /data/SPECS/replacetest.spec
20680 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
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
20687 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:42"
20690 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20693 runroot rpm --initdb
20695 tf="${RPMTEST}"/opt/foo
20696 rm -rf "${RPMTEST}"/opt/*
20699 runroot rpmbuild --quiet -bb \
20700 --define "ver 1.0" \
20701 --define "filetype file" \
20702 --define "filedata foo" \
20703 /data/SPECS/replacetest.spec
20705 runroot rpmbuild --quiet -bb \
20706 --define "ver 2.0" \
20707 --define "filetype link" \
20708 --define "filedata stuff" \
20709 /data/SPECS/replacetest.spec
20711 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20713 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20715 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20718 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20719 at_status=$? at_failed=false
20721 at_fn_diff_devnull "$at_stderr" || at_failed=:
20722 echo >>"$at_stdout"; $as_echo "foo
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
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"
20737 at_fn_group_banner 290 'rpmreplace.at:76' \
20738 "upgrade regular file to/from file link" " " 15
20741 $as_echo "290. $at_setup_line: testing $at_desc ..."
20746 $as_echo "$at_srcdir/rpmreplace.at:78:
20748 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20751 runroot rpm --initdb
20753 tf=\"\${RPMTEST}\"/opt/foo
20754 rm -rf \"\${RPMTEST}\"/opt/*
20755 rm -rf \"\${TOPDIR}\"
20757 runroot rpmbuild --quiet -bb \\
20758 --define \"ver 1.0\" \\
20759 --define \"filetype file\" \\
20760 --define \"filedata foo\" \\
20761 /data/SPECS/replacetest.spec
20763 runroot rpmbuild --quiet -bb \\
20764 --define \"ver 2.0\" \\
20765 --define \"filetype link\" \\
20766 --define \"filedata goo\" \\
20767 /data/SPECS/replacetest.spec
20769 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
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
20776 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:78"
20779 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20782 runroot rpm --initdb
20784 tf="${RPMTEST}"/opt/foo
20785 rm -rf "${RPMTEST}"/opt/*
20788 runroot rpmbuild --quiet -bb \
20789 --define "ver 1.0" \
20790 --define "filetype file" \
20791 --define "filedata foo" \
20792 /data/SPECS/replacetest.spec
20794 runroot rpmbuild --quiet -bb \
20795 --define "ver 2.0" \
20796 --define "filetype link" \
20797 --define "filedata goo" \
20798 /data/SPECS/replacetest.spec
20800 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20802 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20804 runroot rpm -U --oldpackage /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20807 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20808 at_status=$? at_failed=false
20810 at_fn_diff_devnull "$at_stderr" || at_failed=:
20811 echo >>"$at_stdout"; $as_echo "foo
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
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"
20826 at_fn_group_banner 291 'rpmreplace.at:112' \
20827 "upgrade broken link to broken link" " " 15
20830 $as_echo "291. $at_setup_line: testing $at_desc ..."
20835 $as_echo "$at_srcdir/rpmreplace.at:114:
20837 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20840 runroot rpm --initdb
20842 tf=\"\${RPMTEST}\"/opt/foo
20843 rm -rf \"\${RPMTEST}\"/opt/*
20844 rm -rf \"\${TOPDIR}\"
20846 runroot rpmbuild --quiet -bb \\
20847 --define \"ver 1.0\" \\
20848 --define \"filetype link\" \\
20849 --define \"filedata stiff\" \\
20850 /data/SPECS/replacetest.spec
20852 runroot rpmbuild --quiet -bb \\
20853 --define \"ver 2.0\" \\
20854 --define \"filetype link\" \\
20855 --define \"filedata stuff\" \\
20856 /data/SPECS/replacetest.spec
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}\"
20863 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:114"
20866 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20869 runroot rpm --initdb
20871 tf="${RPMTEST}"/opt/foo
20872 rm -rf "${RPMTEST}"/opt/*
20875 runroot rpmbuild --quiet -bb \
20876 --define "ver 1.0" \
20877 --define "filetype link" \
20878 --define "filedata stiff" \
20879 /data/SPECS/replacetest.spec
20881 runroot rpmbuild --quiet -bb \
20882 --define "ver 2.0" \
20883 --define "filetype link" \
20884 --define "filedata stuff" \
20885 /data/SPECS/replacetest.spec
20887 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20889 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20892 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20893 at_status=$? at_failed=false
20895 at_fn_diff_devnull "$at_stderr" || at_failed=:
20896 echo >>"$at_stdout"; $as_echo "stiff
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
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"
20910 at_fn_group_banner 292 'rpmreplace.at:145' \
20911 "upgrade file link to file link" " " 15
20914 $as_echo "292. $at_setup_line: testing $at_desc ..."
20919 $as_echo "$at_srcdir/rpmreplace.at:147:
20921 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
20924 runroot rpm --initdb
20926 tf=\"\${RPMTEST}\"/opt/foo
20927 rm -rf \"\${RPMTEST}\"/opt/*
20928 rm -rf \"\${TOPDIR}\"
20930 runroot rpmbuild --quiet -bb \\
20931 --define \"ver 1.0\" \\
20932 --define \"filetype link\" \\
20933 --define \"filedata goo\" \\
20934 /data/SPECS/replacetest.spec
20936 runroot rpmbuild --quiet -bb \\
20937 --define \"ver 2.0\" \\
20938 --define \"filetype link\" \\
20939 --define \"filedata goo\" \\
20940 /data/SPECS/replacetest.spec
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}\"
20947 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:147"
20950 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
20953 runroot rpm --initdb
20955 tf="${RPMTEST}"/opt/foo
20956 rm -rf "${RPMTEST}"/opt/*
20959 runroot rpmbuild --quiet -bb \
20960 --define "ver 1.0" \
20961 --define "filetype link" \
20962 --define "filedata goo" \
20963 /data/SPECS/replacetest.spec
20965 runroot rpmbuild --quiet -bb \
20966 --define "ver 2.0" \
20967 --define "filetype link" \
20968 --define "filedata goo" \
20969 /data/SPECS/replacetest.spec
20971 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
20973 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
20976 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
20977 at_status=$? at_failed=false
20979 at_fn_diff_devnull "$at_stderr" || at_failed=:
20980 echo >>"$at_stdout"; $as_echo "goo
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
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"
20994 at_fn_group_banner 293 'rpmreplace.at:178' \
20995 "upgrade directory link to directory link" " " 15
20998 $as_echo "293. $at_setup_line: testing $at_desc ..."
21003 $as_echo "$at_srcdir/rpmreplace.at:180:
21005 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21008 runroot rpm --initdb
21010 tf=\"\${RPMTEST}\"/opt/foo
21011 rm -rf \"\${RPMTEST}\"/opt/*
21012 rm -rf \"\${TOPDIR}\"
21014 runroot rpmbuild --quiet -bb \\
21015 --define \"ver 1.0\" \\
21016 --define \"filetype link\" \\
21017 --define \"filedata zoo\" \\
21018 /data/SPECS/replacetest.spec
21020 runroot rpmbuild --quiet -bb \\
21021 --define \"ver 2.0\" \\
21022 --define \"filetype link\" \\
21023 --define \"filedata zoo\" \\
21024 /data/SPECS/replacetest.spec
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}\"
21031 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:180"
21034 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21037 runroot rpm --initdb
21039 tf="${RPMTEST}"/opt/foo
21040 rm -rf "${RPMTEST}"/opt/*
21043 runroot rpmbuild --quiet -bb \
21044 --define "ver 1.0" \
21045 --define "filetype link" \
21046 --define "filedata zoo" \
21047 /data/SPECS/replacetest.spec
21049 runroot rpmbuild --quiet -bb \
21050 --define "ver 2.0" \
21051 --define "filetype link" \
21052 --define "filedata zoo" \
21053 /data/SPECS/replacetest.spec
21055 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21057 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21060 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21061 at_status=$? at_failed=false
21063 at_fn_diff_devnull "$at_stderr" || at_failed=:
21064 echo >>"$at_stdout"; $as_echo "zoo
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
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"
21078 at_fn_group_banner 294 'rpmreplace.at:211' \
21079 "upgrade regular file to directory" " " 15
21082 $as_echo "294. $at_setup_line: testing $at_desc ..."
21087 $as_echo "$at_srcdir/rpmreplace.at:213:
21089 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21092 runroot rpm --initdb
21094 tf=\"\${RPMTEST}\"/opt/foo
21095 rm -rf \"\${RPMTEST}\"/opt/*
21096 rm -rf \"\${TOPDIR}\"
21098 runroot rpmbuild --quiet -bb \\
21099 --define \"ver 1.0\" \\
21100 --define \"filetype file\" \\
21101 --define \"filedata foo\" \\
21102 /data/SPECS/replacetest.spec
21104 runroot rpmbuild --quiet -bb \\
21105 --define \"ver 2.0\" \\
21106 --define \"filetype dir\" \\
21107 /data/SPECS/replacetest.spec
21109 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21111 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21114 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:213"
21117 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21120 runroot rpm --initdb
21122 tf="${RPMTEST}"/opt/foo
21123 rm -rf "${RPMTEST}"/opt/*
21126 runroot rpmbuild --quiet -bb \
21127 --define "ver 1.0" \
21128 --define "filetype file" \
21129 --define "filedata foo" \
21130 /data/SPECS/replacetest.spec
21132 runroot rpmbuild --quiet -bb \
21133 --define "ver 2.0" \
21134 --define "filetype dir" \
21135 /data/SPECS/replacetest.spec
21137 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21139 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21142 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21143 at_status=$? at_failed=false
21145 at_fn_diff_devnull "$at_stderr" || at_failed=:
21146 echo >>"$at_stdout"; $as_echo "foo
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
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"
21159 at_fn_group_banner 295 'rpmreplace.at:242' \
21160 "upgrade broken link to directory" " " 15
21163 $as_echo "295. $at_setup_line: testing $at_desc ..."
21168 $as_echo "$at_srcdir/rpmreplace.at:244:
21170 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21173 runroot rpm --initdb
21175 tf=\"\${RPMTEST}\"/opt/foo
21176 rm -rf \"\${RPMTEST}\"/opt/*
21177 rm -rf \"\${TOPDIR}\"
21179 runroot rpmbuild --quiet -bb \\
21180 --define \"ver 1.0\" \\
21181 --define \"filetype link\" \\
21182 --define \"filedata other\" \\
21183 /data/SPECS/replacetest.spec
21185 runroot rpmbuild --quiet -bb \\
21186 --define \"ver 2.0\" \\
21187 --define \"filetype dir\" \\
21188 /data/SPECS/replacetest.spec
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
21195 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:244"
21198 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21201 runroot rpm --initdb
21203 tf="${RPMTEST}"/opt/foo
21204 rm -rf "${RPMTEST}"/opt/*
21207 runroot rpmbuild --quiet -bb \
21208 --define "ver 1.0" \
21209 --define "filetype link" \
21210 --define "filedata other" \
21211 /data/SPECS/replacetest.spec
21213 runroot rpmbuild --quiet -bb \
21214 --define "ver 2.0" \
21215 --define "filetype dir" \
21216 /data/SPECS/replacetest.spec
21218 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21220 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21223 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21224 at_status=$? at_failed=false
21226 at_fn_diff_devnull "$at_stderr" || at_failed=:
21227 echo >>"$at_stdout"; $as_echo "other
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
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"
21240 at_fn_group_banner 296 'rpmreplace.at:273' \
21241 "upgrade file link to directory" " " 15
21244 $as_echo "296. $at_setup_line: testing $at_desc ..."
21249 $as_echo "$at_srcdir/rpmreplace.at:275:
21251 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21254 runroot rpm --initdb
21256 tf=\"\${RPMTEST}\"/opt/foo
21257 rm -rf \"\${RPMTEST}\"/opt/*
21258 rm -rf \"\${TOPDIR}\"
21260 runroot rpmbuild --quiet -bb \\
21261 --define \"ver 1.0\" \\
21262 --define \"filetype link\" \\
21263 --define \"filedata goo\" \\
21264 /data/SPECS/replacetest.spec
21266 runroot rpmbuild --quiet -bb \\
21267 --define \"ver 2.0\" \\
21268 --define \"filetype dir\" \\
21269 /data/SPECS/replacetest.spec
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
21276 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:275"
21279 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21282 runroot rpm --initdb
21284 tf="${RPMTEST}"/opt/foo
21285 rm -rf "${RPMTEST}"/opt/*
21288 runroot rpmbuild --quiet -bb \
21289 --define "ver 1.0" \
21290 --define "filetype link" \
21291 --define "filedata goo" \
21292 /data/SPECS/replacetest.spec
21294 runroot rpmbuild --quiet -bb \
21295 --define "ver 2.0" \
21296 --define "filetype dir" \
21297 /data/SPECS/replacetest.spec
21299 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21301 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21304 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21305 at_status=$? at_failed=false
21307 at_fn_diff_devnull "$at_stderr" || at_failed=:
21308 echo >>"$at_stdout"; $as_echo "goo
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
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"
21321 at_fn_group_banner 297 'rpmreplace.at:304' \
21322 "upgrade directory link to directory" " " 15
21325 $as_echo "297. $at_setup_line: testing $at_desc ..."
21330 $as_echo "$at_srcdir/rpmreplace.at:306:
21332 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21335 runroot rpm --initdb
21337 tf=\"\${RPMTEST}\"/opt/foo
21338 rm -rf \"\${RPMTEST}\"/opt/*
21339 rm -rf \"\${TOPDIR}\"
21341 runroot rpmbuild --quiet -bb \\
21342 --define \"ver 1.0\" \\
21343 --define \"filetype link\" \\
21344 --define \"filedata zoo\" \\
21345 /data/SPECS/replacetest.spec
21347 runroot rpmbuild --quiet -bb \\
21348 --define \"ver 2.0\" \\
21349 --define \"filetype dir\" \\
21350 /data/SPECS/replacetest.spec
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
21356 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:306"
21359 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21362 runroot rpm --initdb
21364 tf="${RPMTEST}"/opt/foo
21365 rm -rf "${RPMTEST}"/opt/*
21368 runroot rpmbuild --quiet -bb \
21369 --define "ver 1.0" \
21370 --define "filetype link" \
21371 --define "filedata zoo" \
21372 /data/SPECS/replacetest.spec
21374 runroot rpmbuild --quiet -bb \
21375 --define "ver 2.0" \
21376 --define "filetype dir" \
21377 /data/SPECS/replacetest.spec
21379 runroot rpm -U /build/RPMS/noarch/replacetest-1.0-1.noarch.rpm
21381 runroot rpm -U /build/RPMS/noarch/replacetest-2.0-1.noarch.rpm
21383 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21384 at_status=$? at_failed=false
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
21388 $at_diff - "$at_stderr" || at_failed=:
21389 echo >>"$at_stdout"; $as_echo "zoo
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
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"
21402 at_fn_group_banner 298 'rpmreplace.at:335' \
21403 "upgrade empty directory to empty directory" " " 15
21406 $as_echo "298. $at_setup_line: testing $at_desc ..."
21411 $as_echo "$at_srcdir/rpmreplace.at:337:
21413 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21416 runroot rpm --initdb
21418 tf=\"\${RPMTEST}\"/opt/foo
21419 rm -rf \"\${RPMTEST}\"/opt/*
21420 rm -rf \"\${TOPDIR}\"
21422 runroot rpmbuild --quiet -bb \\
21423 --define \"ver 1.0\" \\
21424 --define \"filetype dir\" \\
21425 /data/SPECS/replacetest.spec
21427 runroot rpmbuild --quiet -bb \\
21428 --define \"ver 2.0\" \\
21429 --define \"filetype dir\" \\
21430 /data/SPECS/replacetest.spec
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
21436 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:337"
21439 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21442 runroot rpm --initdb
21444 tf="${RPMTEST}"/opt/foo
21445 rm -rf "${RPMTEST}"/opt/*
21448 runroot rpmbuild --quiet -bb \
21449 --define "ver 1.0" \
21450 --define "filetype dir" \
21451 /data/SPECS/replacetest.spec
21453 runroot rpmbuild --quiet -bb \
21454 --define "ver 2.0" \
21455 --define "filetype dir" \
21456 /data/SPECS/replacetest.spec
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
21462 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21463 at_status=$? at_failed=false
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
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"
21477 at_fn_group_banner 299 'rpmreplace.at:363' \
21478 "upgrade empty directory to regular file" " " 15
21481 $as_echo "299. $at_setup_line: testing $at_desc ..."
21486 $as_echo "$at_srcdir/rpmreplace.at:365:
21488 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21491 runroot rpm --initdb
21493 tf=\"\${RPMTEST}\"/opt/foo
21494 rm -rf \"\${RPMTEST}\"/opt/*
21495 rm -rf \"\${TOPDIR}\"
21497 runroot rpmbuild --quiet -bb \\
21498 --define \"ver 1.0\" \\
21499 --define \"filetype dir\" \\
21500 /data/SPECS/replacetest.spec
21502 runroot rpmbuild --quiet -bb \\
21503 --define \"ver 2.0\" \\
21504 --define \"filetype file\" \\
21505 --define \"filedata woot\" \\
21506 /data/SPECS/replacetest.spec
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
21511 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:365"
21514 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21517 runroot rpm --initdb
21519 tf="${RPMTEST}"/opt/foo
21520 rm -rf "${RPMTEST}"/opt/*
21523 runroot rpmbuild --quiet -bb \
21524 --define "ver 1.0" \
21525 --define "filetype dir" \
21526 /data/SPECS/replacetest.spec
21528 runroot rpmbuild --quiet -bb \
21529 --define "ver 2.0" \
21530 --define "filetype file" \
21531 --define "filedata woot" \
21532 /data/SPECS/replacetest.spec
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
21537 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21538 at_status=$? at_failed=false
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
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
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"
21554 at_fn_group_banner 300 'rpmreplace.at:392' \
21555 "upgrade locally symlinked directory" " " 15
21558 $as_echo "300. $at_setup_line: testing $at_desc ..."
21563 $as_echo "$at_srcdir/rpmreplace.at:394:
21565 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21568 runroot rpm --initdb
21570 tf=\"\${RPMTEST}\"/opt/foo
21571 rm -rf \"\${RPMTEST}\"/opt/*
21572 rm -rf \"\${TOPDIR}\"
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
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
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}\"
21596 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:394"
21599 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21602 runroot rpm --initdb
21604 tf="${RPMTEST}"/opt/foo
21605 rm -rf "${RPMTEST}"/opt/*
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
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
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}"
21630 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21631 at_status=$? at_failed=false
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
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"
21645 at_fn_group_banner 301 'rpmreplace.at:428' \
21646 "upgrade invalid locally symlinked directory" " " 15
21649 $as_echo "301. $at_setup_line: testing $at_desc ..."
21654 $as_echo "$at_srcdir/rpmreplace.at:430:
21656 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21659 runroot rpm --initdb
21661 tf=\"\${RPMTEST}\"/opt/foo
21662 rm -rf \"\${RPMTEST}\"/opt/*
21663 rm -rf \"\${TOPDIR}\"
21665 runroot rpmbuild --quiet -bb \\
21666 --define \"ver 1.0\" \\
21667 --define \"filetype datadir\" \\
21668 --define \"filedata README1\" \\
21669 /data/SPECS/replacetest.spec
21671 runroot rpmbuild --quiet -bb \\
21672 --define \"ver 2.0\" \\
21673 --define \"filetype datadir\" \\
21674 --define \"filedata README2\" \\
21675 /data/SPECS/replacetest.spec
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
21683 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:430"
21686 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21689 runroot rpm --initdb
21691 tf="${RPMTEST}"/opt/foo
21692 rm -rf "${RPMTEST}"/opt/*
21695 runroot rpmbuild --quiet -bb \
21696 --define "ver 1.0" \
21697 --define "filetype datadir" \
21698 --define "filedata README1" \
21699 /data/SPECS/replacetest.spec
21701 runroot rpmbuild --quiet -bb \
21702 --define "ver 2.0" \
21703 --define "filetype datadir" \
21704 --define "filedata README2" \
21705 /data/SPECS/replacetest.spec
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
21713 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21714 at_status=$? at_failed=false
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
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"
21728 at_fn_group_banner 302 'rpmreplace.at:460' \
21729 "upgrade empty directory to broken link" " " 15
21732 $as_echo "302. $at_setup_line: testing $at_desc ..."
21737 $as_echo "$at_srcdir/rpmreplace.at:462:
21739 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21742 runroot rpm --initdb
21744 tf=\"\${RPMTEST}\"/opt/foo
21745 rm -rf \"\${RPMTEST}\"/opt/*
21746 rm -rf \"\${TOPDIR}\"
21748 runroot rpmbuild --quiet -bb \\
21749 --define \"ver 1.0\" \\
21750 --define \"filetype dir\" \\
21751 /data/SPECS/replacetest.spec
21753 runroot rpmbuild --quiet -bb \\
21754 --define \"ver 2.0\" \\
21755 --define \"filetype link\" \\
21756 --define \"filedata woot\" \\
21757 /data/SPECS/replacetest.spec
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
21762 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:462"
21765 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21768 runroot rpm --initdb
21770 tf="${RPMTEST}"/opt/foo
21771 rm -rf "${RPMTEST}"/opt/*
21774 runroot rpmbuild --quiet -bb \
21775 --define "ver 1.0" \
21776 --define "filetype dir" \
21777 /data/SPECS/replacetest.spec
21779 runroot rpmbuild --quiet -bb \
21780 --define "ver 2.0" \
21781 --define "filetype link" \
21782 --define "filedata woot" \
21783 /data/SPECS/replacetest.spec
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
21788 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21789 at_status=$? at_failed=false
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
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
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"
21805 at_fn_group_banner 303 'rpmreplace.at:489' \
21806 "upgrade empty directory to file link" " " 15
21809 $as_echo "303. $at_setup_line: testing $at_desc ..."
21814 $as_echo "$at_srcdir/rpmreplace.at:491:
21816 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21819 runroot rpm --initdb
21821 tf=\"\${RPMTEST}\"/opt/foo
21822 rm -rf \"\${RPMTEST}\"/opt/*
21823 rm -rf \"\${TOPDIR}\"
21825 runroot rpmbuild --quiet -bb \\
21826 --define \"ver 1.0\" \\
21827 --define \"filetype dir\" \\
21828 /data/SPECS/replacetest.spec
21830 runroot rpmbuild --quiet -bb \\
21831 --define \"ver 2.0\" \\
21832 --define \"filetype link\" \\
21833 --define \"filedata woot\" \\
21834 /data/SPECS/replacetest.spec
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
21839 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:491"
21842 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21845 runroot rpm --initdb
21847 tf="${RPMTEST}"/opt/foo
21848 rm -rf "${RPMTEST}"/opt/*
21851 runroot rpmbuild --quiet -bb \
21852 --define "ver 1.0" \
21853 --define "filetype dir" \
21854 /data/SPECS/replacetest.spec
21856 runroot rpmbuild --quiet -bb \
21857 --define "ver 2.0" \
21858 --define "filetype link" \
21859 --define "filedata woot" \
21860 /data/SPECS/replacetest.spec
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
21865 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21866 at_status=$? at_failed=false
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
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
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"
21882 at_fn_group_banner 304 'rpmreplace.at:518' \
21883 "upgrade removed empty directory to file link" " " 15
21886 $as_echo "304. $at_setup_line: testing $at_desc ..."
21891 $as_echo "$at_srcdir/rpmreplace.at:520:
21893 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21896 runroot rpm --initdb
21898 tf=\"\${RPMTEST}\"/opt/foo
21899 rm -rf \"\${RPMTEST}\"/opt/*
21900 rm -rf \"\${TOPDIR}\"
21902 runroot rpmbuild --quiet -bb \\
21903 --define \"ver 1.0\" \\
21904 --define \"filetype dir\" \\
21905 /data/SPECS/replacetest.spec
21907 runroot rpmbuild --quiet -bb \\
21908 --define \"ver 2.0\" \\
21909 --define \"filetype link\" \\
21910 --define \"filedata goo\" \\
21911 /data/SPECS/replacetest.spec
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}\"
21917 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:520"
21920 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
21923 runroot rpm --initdb
21925 tf="${RPMTEST}"/opt/foo
21926 rm -rf "${RPMTEST}"/opt/*
21929 runroot rpmbuild --quiet -bb \
21930 --define "ver 1.0" \
21931 --define "filetype dir" \
21932 /data/SPECS/replacetest.spec
21934 runroot rpmbuild --quiet -bb \
21935 --define "ver 2.0" \
21936 --define "filetype link" \
21937 --define "filedata goo" \
21938 /data/SPECS/replacetest.spec
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
21944 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
21945 at_status=$? at_failed=false
21947 at_fn_diff_devnull "$at_stderr" || at_failed=:
21948 echo >>"$at_stdout"; $as_echo "goo
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
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"
21961 at_fn_group_banner 305 'rpmreplace.at:548' \
21962 "upgrade replaced empty directory to file link" " " 15
21965 $as_echo "305. $at_setup_line: testing $at_desc ..."
21970 $as_echo "$at_srcdir/rpmreplace.at:550:
21972 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
21975 runroot rpm --initdb
21977 tf=\"\${RPMTEST}\"/opt/foo
21978 rm -rf \"\${RPMTEST}\"/opt/*
21979 rm -rf \"\${TOPDIR}\"
21981 runroot rpmbuild --quiet -bb \\
21982 --define \"ver 1.0\" \\
21983 --define \"filetype dir\" \\
21984 /data/SPECS/replacetest.spec
21986 runroot rpmbuild --quiet -bb \\
21987 --define \"ver 2.0\" \\
21988 --define \"filetype link\" \\
21989 --define \"filedata goo\" \\
21990 /data/SPECS/replacetest.spec
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}\"
21996 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:550"
21999 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22002 runroot rpm --initdb
22004 tf="${RPMTEST}"/opt/foo
22005 rm -rf "${RPMTEST}"/opt/*
22008 runroot rpmbuild --quiet -bb \
22009 --define "ver 1.0" \
22010 --define "filetype dir" \
22011 /data/SPECS/replacetest.spec
22013 runroot rpmbuild --quiet -bb \
22014 --define "ver 2.0" \
22015 --define "filetype link" \
22016 --define "filedata goo" \
22017 /data/SPECS/replacetest.spec
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
22023 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22024 at_status=$? at_failed=false
22026 at_fn_diff_devnull "$at_stderr" || at_failed=:
22027 echo >>"$at_stdout"; $as_echo "goo
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
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"
22040 at_fn_group_banner 306 'rpmreplace.at:578' \
22041 "upgrade empty directory to file link with pretrans" "" 15
22044 $as_echo "306. $at_setup_line: testing $at_desc ..."
22049 $as_echo "$at_srcdir/rpmreplace.at:580:
22051 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22054 runroot rpm --initdb
22056 tf=\"\${RPMTEST}\"/opt/foo
22057 rm -rf \"\${RPMTEST}\"/opt/*
22058 rm -rf \"\${TOPDIR}\"
22060 runroot rpmbuild --quiet -bb \\
22061 --define \"ver 1.0\" \\
22062 --define \"filetype dir\" \\
22063 /data/SPECS/replacetest.spec
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
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}\"
22076 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmreplace.at:580"
22079 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22082 runroot rpm --initdb
22084 tf="${RPMTEST}"/opt/foo
22085 rm -rf "${RPMTEST}"/opt/*
22088 runroot rpmbuild --quiet -bb \
22089 --define "ver 1.0" \
22090 --define "filetype dir" \
22091 /data/SPECS/replacetest.spec
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
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
22104 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22105 at_status=$? at_failed=false
22107 at_fn_diff_devnull "$at_stderr" || at_failed=:
22108 echo >>"$at_stdout"; $as_echo "goo
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
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"
22121 at_fn_group_banner 307 'rpmconfig.at:6' \
22122 "install config on existiting file" " " 16
22125 $as_echo "307. $at_setup_line: testing $at_desc ..."
22130 $as_echo "$at_srcdir/rpmconfig.at:8:
22132 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22135 runroot rpm --initdb
22137 cf=\"\${RPMTEST}\"/etc/my.conf
22138 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22139 rm -rf \"\${TOPDIR}\"
22141 runroot rpmbuild --quiet -bb \\
22142 --define \"ver 1.0\" \\
22143 --define \"filedata foo\" \\
22144 /data/SPECS/configtest.spec
22146 echo \"otherstuff\" > \"\${cf}\"
22147 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22149 runroot rpm -e configtest
22150 cat \"\${cf}.rpmorig\"
22152 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:8"
22155 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22158 runroot rpm --initdb
22160 cf="${RPMTEST}"/etc/my.conf
22161 rm -rf "${cf}" "${cf}".rpm*
22164 runroot rpmbuild --quiet -bb \
22165 --define "ver 1.0" \
22166 --define "filedata foo" \
22167 /data/SPECS/configtest.spec
22169 echo "otherstuff" > "${cf}"
22170 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22172 runroot rpm -e configtest
22173 cat "${cf}.rpmorig"
22175 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22176 at_status=$? at_failed=false
22178 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmorig
22180 $at_diff - "$at_stderr" || at_failed=:
22181 echo >>"$at_stdout"; $as_echo "foo
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
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"
22195 at_fn_group_banner 308 'rpmconfig.at:35' \
22196 "install config(noreplace) on existing file" " " 16
22199 $as_echo "308. $at_setup_line: testing $at_desc ..."
22204 $as_echo "$at_srcdir/rpmconfig.at:37:
22206 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22209 runroot rpm --initdb
22211 cf=\"\${RPMTEST}\"/etc/my.conf
22212 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22213 rm -rf \"\${TOPDIR}\"
22215 runroot rpmbuild --quiet -bb \\
22216 --define \"ver 1.0\" \\
22217 --define \"filedata foo\" \\
22218 --define \"noreplace 1\" \\
22219 /data/SPECS/configtest.spec
22221 echo \"otherstuff\" > \"\${cf}\"
22222 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22224 cat \"\${cf}.rpmnew\"
22225 runroot rpm -e configtest
22226 cat \"\${cf}.rpmsave\"
22227 cat \"\${cf}.rpmnew\"
22229 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:37"
22232 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22235 runroot rpm --initdb
22237 cf="${RPMTEST}"/etc/my.conf
22238 rm -rf "${cf}" "${cf}".rpm*
22241 runroot rpmbuild --quiet -bb \
22242 --define "ver 1.0" \
22243 --define "filedata foo" \
22244 --define "noreplace 1" \
22245 /data/SPECS/configtest.spec
22247 echo "otherstuff" > "${cf}"
22248 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22251 runroot rpm -e configtest
22252 cat "${cf}.rpmsave"
22255 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22256 at_status=$? at_failed=false
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
22261 $at_diff - "$at_stderr" || at_failed=:
22262 echo >>"$at_stdout"; $as_echo "otherstuff
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
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"
22278 at_fn_group_banner 309 'rpmconfig.at:70' \
22279 "install config on existiting identical file" " " 16
22282 $as_echo "309. $at_setup_line: testing $at_desc ..."
22287 $as_echo "$at_srcdir/rpmconfig.at:72:
22289 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22292 runroot rpm --initdb
22294 cf=\"\${RPMTEST}\"/etc/my.conf
22295 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22296 rm -rf \"\${TOPDIR}\"
22298 runroot rpmbuild --quiet -bb \\
22299 --define \"ver 1.0\" \\
22300 --define \"filedata foo\" \\
22301 /data/SPECS/configtest.spec
22303 echo \"foo\" > \"\${cf}\"
22304 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22306 runroot rpm -e configtest
22307 test ! -f \"\${cf}\"
22309 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:72"
22312 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22315 runroot rpm --initdb
22317 cf="${RPMTEST}"/etc/my.conf
22318 rm -rf "${cf}" "${cf}".rpm*
22321 runroot rpmbuild --quiet -bb \
22322 --define "ver 1.0" \
22323 --define "filedata foo" \
22324 /data/SPECS/configtest.spec
22326 echo "foo" > "${cf}"
22327 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22329 runroot rpm -e configtest
22332 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22333 at_status=$? at_failed=false
22335 at_fn_diff_devnull "$at_stderr" || at_failed=:
22336 echo >>"$at_stdout"; $as_echo "foo
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
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"
22349 at_fn_group_banner 310 'rpmconfig.at:97' \
22350 "erase unchanged config" " " 16
22353 $as_echo "310. $at_setup_line: testing $at_desc ..."
22358 $as_echo "$at_srcdir/rpmconfig.at:99:
22360 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22363 runroot rpm --initdb
22365 cf=\"\${RPMTEST}\"/etc/my.conf
22366 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22367 rm -rf \"\${TOPDIR}\"
22369 runroot rpmbuild --quiet -bb \\
22370 --define \"ver 1.0\" \\
22371 --define \"filedata foo\" \\
22372 /data/SPECS/configtest.spec
22374 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22376 runroot rpm -e configtest
22377 test ! -f \"\${cf}\"
22379 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:99"
22382 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22385 runroot rpm --initdb
22387 cf="${RPMTEST}"/etc/my.conf
22388 rm -rf "${cf}" "${cf}".rpm*
22391 runroot rpmbuild --quiet -bb \
22392 --define "ver 1.0" \
22393 --define "filedata foo" \
22394 /data/SPECS/configtest.spec
22396 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22398 runroot rpm -e configtest
22401 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22402 at_status=$? at_failed=false
22404 at_fn_diff_devnull "$at_stderr" || at_failed=:
22405 echo >>"$at_stdout"; $as_echo "foo
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
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"
22418 at_fn_group_banner 311 'rpmconfig.at:123' \
22419 "erase changed config" " " 16
22422 $as_echo "311. $at_setup_line: testing $at_desc ..."
22427 $as_echo "$at_srcdir/rpmconfig.at:125:
22429 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22432 runroot rpm --initdb
22434 cf=\"\${RPMTEST}\"/etc/my.conf
22435 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22436 rm -rf \"\${TOPDIR}\"
22438 runroot rpmbuild --quiet -bb \\
22439 --define \"ver 1.0\" \\
22440 --define \"filedata foo\" \\
22441 /data/SPECS/configtest.spec
22443 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22445 echo \"otherstuff\" > \"\${cf}\"
22446 runroot rpm -e configtest
22447 cat \"\${cf}.rpmsave\"
22448 test ! -f \"\${cf}\"
22450 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:125"
22453 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22456 runroot rpm --initdb
22458 cf="${RPMTEST}"/etc/my.conf
22459 rm -rf "${cf}" "${cf}".rpm*
22462 runroot rpmbuild --quiet -bb \
22463 --define "ver 1.0" \
22464 --define "filedata foo" \
22465 /data/SPECS/configtest.spec
22467 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22469 echo "otherstuff" > "${cf}"
22470 runroot rpm -e configtest
22471 cat "${cf}.rpmsave"
22474 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22475 at_status=$? at_failed=false
22477 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
22479 $at_diff - "$at_stderr" || at_failed=:
22480 echo >>"$at_stdout"; $as_echo "foo
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
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"
22494 at_fn_group_banner 312 'rpmconfig.at:153' \
22495 "erase changed config(noreplace)" " " 16
22498 $as_echo "312. $at_setup_line: testing $at_desc ..."
22503 $as_echo "$at_srcdir/rpmconfig.at:155:
22505 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22508 runroot rpm --initdb
22510 cf=\"\${RPMTEST}\"/etc/my.conf
22511 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22512 rm -rf \"\${TOPDIR}\"
22514 runroot rpmbuild --quiet -bb \\
22515 --define \"ver 1.0\" \\
22516 --define \"filedata foo\" \\
22517 --define \"noreplace 1\" \\
22518 /data/SPECS/configtest.spec
22520 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22522 echo \"otherstuff\" > \"\${cf}\"
22523 runroot rpm -e configtest
22524 cat \"\${cf}.rpmsave\"
22525 test ! -f \"\${cf}\"
22527 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:155"
22530 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22533 runroot rpm --initdb
22535 cf="${RPMTEST}"/etc/my.conf
22536 rm -rf "${cf}" "${cf}".rpm*
22539 runroot rpmbuild --quiet -bb \
22540 --define "ver 1.0" \
22541 --define "filedata foo" \
22542 --define "noreplace 1" \
22543 /data/SPECS/configtest.spec
22545 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22547 echo "otherstuff" > "${cf}"
22548 runroot rpm -e configtest
22549 cat "${cf}.rpmsave"
22552 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22553 at_status=$? at_failed=false
22555 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
22557 $at_diff - "$at_stderr" || at_failed=:
22558 echo >>"$at_stdout"; $as_echo "foo
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
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"
22572 at_fn_group_banner 313 'rpmconfig.at:185' \
22573 "upgrade unchanged config" " " 16
22576 $as_echo "313. $at_setup_line: testing $at_desc ..."
22581 $as_echo "$at_srcdir/rpmconfig.at:187:
22583 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22586 runroot rpm --initdb
22588 cf=\"\${RPMTEST}\"/etc/my.conf
22589 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22590 rm -rf \"\${TOPDIR}\"
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
22599 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22601 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22604 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:187"
22607 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22610 runroot rpm --initdb
22612 cf="${RPMTEST}"/etc/my.conf
22613 rm -rf "${cf}" "${cf}".rpm*
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
22623 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22625 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22628 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22629 at_status=$? at_failed=false
22631 at_fn_diff_devnull "$at_stderr" || at_failed=:
22632 echo >>"$at_stdout"; $as_echo "foo
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
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"
22646 at_fn_group_banner 314 'rpmconfig.at:215' \
22647 "upgrade unchanged config - touching test" " " 16
22650 $as_echo "314. $at_setup_line: testing $at_desc ..."
22655 $as_echo "$at_srcdir/rpmconfig.at:217:
22657 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22660 runroot rpm --initdb
22662 cf=\"\${RPMTEST}\"/etc/my.conf
22663 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22664 rm -rf \"\${TOPDIR}\"
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
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
22677 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:217"
22680 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22683 runroot rpm --initdb
22685 cf="${RPMTEST}"/etc/my.conf
22686 rm -rf "${cf}" "${cf}".rpm*
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
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
22700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22701 at_status=$? at_failed=false
22703 at_fn_diff_devnull "$at_stderr" || at_failed=:
22704 echo >>"$at_stdout"; $as_echo "1
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
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"
22717 at_fn_group_banner 315 'rpmconfig.at:243' \
22718 "upgrade modified config" " " 16
22721 $as_echo "315. $at_setup_line: testing $at_desc ..."
22726 $as_echo "$at_srcdir/rpmconfig.at:245:
22728 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22731 runroot rpm --initdb
22733 cf=\"\${RPMTEST}\"/etc/my.conf
22734 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22735 rm -rf \"\${TOPDIR}\"
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
22744 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22746 echo \"otherstuff\" > \"\${cf}\"
22748 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22751 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:245"
22754 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22757 runroot rpm --initdb
22759 cf="${RPMTEST}"/etc/my.conf
22760 rm -rf "${cf}" "${cf}".rpm*
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
22770 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22772 echo "otherstuff" > "${cf}"
22774 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22777 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22778 at_status=$? at_failed=false
22780 at_fn_diff_devnull "$at_stderr" || at_failed=:
22781 echo >>"$at_stdout"; $as_echo "foo
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
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"
22796 at_fn_group_banner 316 'rpmconfig.at:276' \
22797 "upgrade changing config" " " 16
22800 $as_echo "316. $at_setup_line: testing $at_desc ..."
22805 $as_echo "$at_srcdir/rpmconfig.at:278:
22807 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22810 runroot rpm --initdb
22812 cf=\"\${RPMTEST}\"/etc/my.conf
22813 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22814 rm -rf \"\${TOPDIR}\"
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
22823 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22825 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22828 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:278"
22831 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22834 runroot rpm --initdb
22836 cf="${RPMTEST}"/etc/my.conf
22837 rm -rf "${cf}" "${cf}".rpm*
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
22847 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22849 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22852 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22853 at_status=$? at_failed=false
22855 at_fn_diff_devnull "$at_stderr" || at_failed=:
22856 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
22870 at_fn_group_banner 317 'rpmconfig.at:306' \
22871 "upgrade changing, modified config 1" " " 16
22874 $as_echo "317. $at_setup_line: testing $at_desc ..."
22879 $as_echo "$at_srcdir/rpmconfig.at:308:
22881 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22884 runroot rpm --initdb
22886 cf=\"\${RPMTEST}\"/etc/my.conf
22887 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22888 rm -rf \"\${TOPDIR}\"
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
22897 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22899 echo \"otherstuff\" > \"\${RPMTEST}\"/etc/my.conf
22901 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22903 cat \"\${cf}.rpmsave\"
22905 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:308"
22908 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22911 runroot rpm --initdb
22913 cf="${RPMTEST}"/etc/my.conf
22914 rm -rf "${cf}" "${cf}".rpm*
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
22924 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22926 echo "otherstuff" > "${RPMTEST}"/etc/my.conf
22928 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22930 cat "${cf}.rpmsave"
22932 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
22933 at_status=$? at_failed=false
22935 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
22937 $at_diff - "$at_stderr" || at_failed=:
22938 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
22954 at_fn_group_banner 318 'rpmconfig.at:342' \
22955 "upgrade changing, modified config 2" " " 16
22958 $as_echo "318. $at_setup_line: testing $at_desc ..."
22963 $as_echo "$at_srcdir/rpmconfig.at:344:
22965 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
22968 runroot rpm --initdb
22970 cf=\"\${RPMTEST}\"/etc/my.conf
22971 rm -rf \"\${cf}\" \"\${cf}\".rpm*
22972 rm -rf \"\${TOPDIR}\"
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
22981 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
22983 echo \"foo-2.0\" > \"\${RPMTEST}\"/etc/my.conf
22985 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
22988 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:344"
22991 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
22994 runroot rpm --initdb
22996 cf="${RPMTEST}"/etc/my.conf
22997 rm -rf "${cf}" "${cf}".rpm*
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
23007 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23009 echo "foo-2.0" > "${RPMTEST}"/etc/my.conf
23011 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23014 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23015 at_status=$? at_failed=false
23017 at_fn_diff_devnull "$at_stderr" || at_failed=:
23018 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
23033 at_fn_group_banner 319 'rpmconfig.at:377' \
23034 "upgrade unchanged config(noreplace)" " " 16
23037 $as_echo "319. $at_setup_line: testing $at_desc ..."
23042 $as_echo "$at_srcdir/rpmconfig.at:379:
23044 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23047 runroot rpm --initdb
23049 cf=\"\${RPMTEST}\"/etc/my.conf
23050 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23051 rm -rf \"\${TOPDIR}\"
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
23061 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23063 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23066 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:379"
23069 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23072 runroot rpm --initdb
23074 cf="${RPMTEST}"/etc/my.conf
23075 rm -rf "${cf}" "${cf}".rpm*
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
23086 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23088 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23091 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23092 at_status=$? at_failed=false
23094 at_fn_diff_devnull "$at_stderr" || at_failed=:
23095 echo >>"$at_stdout"; $as_echo "foo
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
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"
23109 at_fn_group_banner 320 'rpmconfig.at:409' \
23110 "upgrade modified config(noreplace)" " " 16
23113 $as_echo "320. $at_setup_line: testing $at_desc ..."
23118 $as_echo "$at_srcdir/rpmconfig.at:411:
23120 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23123 runroot rpm --initdb
23125 cf=\"\${RPMTEST}\"/etc/my.conf
23126 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23127 rm -rf \"\${TOPDIR}\"
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
23137 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23139 echo \"otherstuff\" > \"\${cf}\"
23141 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23144 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:411"
23147 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23150 runroot rpm --initdb
23152 cf="${RPMTEST}"/etc/my.conf
23153 rm -rf "${cf}" "${cf}".rpm*
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
23164 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23166 echo "otherstuff" > "${cf}"
23168 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23171 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23172 at_status=$? at_failed=false
23174 at_fn_diff_devnull "$at_stderr" || at_failed=:
23175 echo >>"$at_stdout"; $as_echo "foo
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
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"
23190 at_fn_group_banner 321 'rpmconfig.at:443' \
23191 "upgrade changing config(noreplace)" " " 16
23194 $as_echo "321. $at_setup_line: testing $at_desc ..."
23199 $as_echo "$at_srcdir/rpmconfig.at:445:
23201 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23204 runroot rpm --initdb
23206 cf=\"\${RPMTEST}\"/etc/my.conf
23207 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23208 rm -rf \"\${TOPDIR}\"
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
23218 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23220 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23223 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:445"
23226 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23229 runroot rpm --initdb
23231 cf="${RPMTEST}"/etc/my.conf
23232 rm -rf "${cf}" "${cf}".rpm*
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
23243 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23245 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23248 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23249 at_status=$? at_failed=false
23251 at_fn_diff_devnull "$at_stderr" || at_failed=:
23252 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
23266 at_fn_group_banner 322 'rpmconfig.at:474' \
23267 "upgrade changing, modified config(noreplace) 1" " " 16
23270 $as_echo "322. $at_setup_line: testing $at_desc ..."
23275 $as_echo "$at_srcdir/rpmconfig.at:476:
23277 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23280 runroot rpm --initdb
23282 cf=\"\${RPMTEST}\"/etc/my.conf
23283 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23284 rm -rf \"\${TOPDIR}\"
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
23294 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23296 echo \"otherstuff\" > \"\${RPMTEST}\"/etc/my.conf
23298 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23300 cat \"\${cf}.rpmnew\"
23302 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:476"
23305 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23308 runroot rpm --initdb
23310 cf="${RPMTEST}"/etc/my.conf
23311 rm -rf "${cf}" "${cf}".rpm*
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
23322 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23324 echo "otherstuff" > "${RPMTEST}"/etc/my.conf
23326 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23330 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23331 at_status=$? at_failed=false
23333 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
23335 $at_diff - "$at_stderr" || at_failed=:
23336 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
23352 at_fn_group_banner 323 'rpmconfig.at:511' \
23353 "upgrade changing, modified config(noreplace) 2" " " 16
23356 $as_echo "323. $at_setup_line: testing $at_desc ..."
23361 $as_echo "$at_srcdir/rpmconfig.at:513:
23363 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23366 runroot rpm --initdb
23368 cf=\"\${RPMTEST}\"/etc/my.conf
23369 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23370 rm -rf \"\${TOPDIR}\"
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
23380 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23382 echo \"foo-2.0\" > \"\${RPMTEST}\"/etc/my.conf
23384 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23387 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:513"
23390 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23393 runroot rpm --initdb
23395 cf="${RPMTEST}"/etc/my.conf
23396 rm -rf "${cf}" "${cf}".rpm*
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
23407 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
23409 echo "foo-2.0" > "${RPMTEST}"/etc/my.conf
23411 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
23414 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23415 at_status=$? at_failed=false
23417 at_fn_diff_devnull "$at_stderr" || at_failed=:
23418 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
23433 at_fn_group_banner 324 'rpmconfig.at:546' \
23434 "upgrade unchanged shared config" " " 16
23437 $as_echo "324. $at_setup_line: testing $at_desc ..."
23442 $as_echo "$at_srcdir/rpmconfig.at:548:
23444 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23447 runroot rpm --initdb
23449 cf=\"\${RPMTEST}\"/etc/my.conf
23450 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23451 rm -rf \"\${TOPDIR}\"
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
23464 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23465 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23468 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23469 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23472 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:548"
23475 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23478 runroot rpm --initdb
23480 cf="${RPMTEST}"/etc/my.conf
23481 rm -rf "${cf}" "${cf}".rpm*
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
23495 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23496 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23499 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23500 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23503 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23504 at_status=$? at_failed=false
23506 at_fn_diff_devnull "$at_stderr" || at_failed=:
23507 echo >>"$at_stdout"; $as_echo "foo
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
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"
23522 at_fn_group_banner 325 'rpmconfig.at:584' \
23523 "upgrade modified shared config" " " 16
23526 $as_echo "325. $at_setup_line: testing $at_desc ..."
23531 $as_echo "$at_srcdir/rpmconfig.at:586:
23533 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23536 runroot rpm --initdb
23538 cf=\"\${RPMTEST}\"/etc/my.conf
23539 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23540 rm -rf \"\${TOPDIR}\"
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
23553 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23554 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23556 echo \"otherstuff\" > \"\${cf}\"
23559 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23560 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23563 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:586"
23566 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23569 runroot rpm --initdb
23571 cf="${RPMTEST}"/etc/my.conf
23572 rm -rf "${cf}" "${cf}".rpm*
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
23586 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23587 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23589 echo "otherstuff" > "${cf}"
23592 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23593 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23596 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23597 at_status=$? at_failed=false
23599 at_fn_diff_devnull "$at_stderr" || at_failed=:
23600 echo >>"$at_stdout"; $as_echo "foo
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
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"
23615 at_fn_group_banner 326 'rpmconfig.at:624' \
23616 "upgrade changing shared config" " " 16
23619 $as_echo "326. $at_setup_line: testing $at_desc ..."
23624 $as_echo "$at_srcdir/rpmconfig.at:626:
23626 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23629 runroot rpm --initdb
23631 cf=\"\${RPMTEST}\"/etc/my.conf
23632 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23633 rm -rf \"\${TOPDIR}\"
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
23646 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23647 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23650 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23651 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23654 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:626"
23657 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23660 runroot rpm --initdb
23662 cf="${RPMTEST}"/etc/my.conf
23663 rm -rf "${cf}" "${cf}".rpm*
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
23677 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23678 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23681 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23682 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23685 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23686 at_status=$? at_failed=false
23688 at_fn_diff_devnull "$at_stderr" || at_failed=:
23689 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
23703 at_fn_group_banner 327 'rpmconfig.at:661' \
23704 "upgrade changing, modified shared config 1" " " 16
23707 $as_echo "327. $at_setup_line: testing $at_desc ..."
23712 $as_echo "$at_srcdir/rpmconfig.at:663:
23714 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23717 runroot rpm --initdb
23719 cf=\"\${RPMTEST}\"/etc/my.conf
23720 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23721 rm -rf \"\${TOPDIR}\"
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
23734 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23735 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23737 echo \"otherstuff\" > \"\${RPMTEST}\"/etc/my.conf
23740 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23741 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23743 cat \"\${cf}.rpmsave\"
23745 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:663"
23748 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23751 runroot rpm --initdb
23753 cf="${RPMTEST}"/etc/my.conf
23754 rm -rf "${cf}" "${cf}".rpm*
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
23768 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23769 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23771 echo "otherstuff" > "${RPMTEST}"/etc/my.conf
23774 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23775 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23777 cat "${cf}.rpmsave"
23779 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23780 at_status=$? at_failed=false
23782 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
23784 $at_diff - "$at_stderr" || at_failed=:
23785 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
23801 at_fn_group_banner 328 'rpmconfig.at:704' \
23802 "upgrade changing, modified shared config 2" " " 16
23805 $as_echo "328. $at_setup_line: testing $at_desc ..."
23810 $as_echo "$at_srcdir/rpmconfig.at:706:
23812 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23815 runroot rpm --initdb
23817 cf=\"\${RPMTEST}\"/etc/my.conf
23818 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23819 rm -rf \"\${TOPDIR}\"
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
23832 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23833 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23835 echo \"foo-2.0\" > \"\${RPMTEST}\"/etc/my.conf
23838 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23839 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23842 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:706"
23845 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23848 runroot rpm --initdb
23850 cf="${RPMTEST}"/etc/my.conf
23851 rm -rf "${cf}" "${cf}".rpm*
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
23865 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23866 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23868 echo "foo-2.0" > "${RPMTEST}"/etc/my.conf
23871 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23872 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23875 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23876 at_status=$? at_failed=false
23878 at_fn_diff_devnull "$at_stderr" || at_failed=:
23879 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
23894 at_fn_group_banner 329 'rpmconfig.at:745' \
23895 "upgrade changing, modified shared config(noreplace) 1" "" 16
23898 $as_echo "329. $at_setup_line: testing $at_desc ..."
23903 $as_echo "$at_srcdir/rpmconfig.at:747:
23905 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
23908 runroot rpm --initdb
23910 cf=\"\${RPMTEST}\"/etc/my.conf
23911 rm -rf \"\${cf}\" \"\${cf}\".rpm*
23912 rm -rf \"\${TOPDIR}\"
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
23926 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
23927 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23929 echo \"otherstuff\" > \"\${RPMTEST}\"/etc/my.conf
23932 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
23933 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23935 cat \"\${cf}.rpmnew\"
23937 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:747"
23940 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
23943 runroot rpm --initdb
23945 cf="${RPMTEST}"/etc/my.conf
23946 rm -rf "${cf}" "${cf}".rpm*
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
23961 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
23962 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
23964 echo "otherstuff" > "${RPMTEST}"/etc/my.conf
23967 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
23968 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
23972 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
23973 at_status=$? at_failed=false
23975 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
23977 $at_diff - "$at_stderr" || at_failed=:
23978 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
23994 at_fn_group_banner 330 'rpmconfig.at:789' \
23995 "upgrade changing, modified shared config(noreplace) 2" "" 16
23998 $as_echo "330. $at_setup_line: testing $at_desc ..."
24003 $as_echo "$at_srcdir/rpmconfig.at:791:
24005 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24008 runroot rpm --initdb
24010 cf=\"\${RPMTEST}\"/etc/my.conf
24011 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24012 rm -rf \"\${TOPDIR}\"
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
24026 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \\
24027 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
24029 echo \"foo-2.0\" > \"\${RPMTEST}\"/etc/my.conf
24032 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \\
24033 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
24036 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:791"
24039 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24042 runroot rpm --initdb
24044 cf="${RPMTEST}"/etc/my.conf
24045 rm -rf "${cf}" "${cf}".rpm*
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
24060 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
24061 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
24063 echo "foo-2.0" > "${RPMTEST}"/etc/my.conf
24066 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
24067 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
24070 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24071 at_status=$? at_failed=false
24073 at_fn_diff_devnull "$at_stderr" || at_failed=:
24074 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
24089 at_fn_group_banner 331 'rpmconfig.at:830' \
24090 "install/upgrade/erase ghost config" " " 16
24093 $as_echo "331. $at_setup_line: testing $at_desc ..."
24098 $as_echo "$at_srcdir/rpmconfig.at:832:
24100 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24103 runroot rpm --initdb
24105 cf=\"\${RPMTEST}\"/etc/my.conf
24106 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24107 rm -rf \"\${TOPDIR}\"
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
24118 # pre-existing config, install, erase
24119 test ! -f \"\${cf}\" && echo OK1
24120 echo \"keaton\" > \"\${cf}\"
24122 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24124 runroot rpm -e configtest
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}\"
24133 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24135 runroot rpm -e configtest
24138 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig.at:832"
24141 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24144 runroot rpm --initdb
24146 cf="${RPMTEST}"/etc/my.conf
24147 rm -rf "${cf}" "${cf}".rpm*
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
24159 # pre-existing config, install, erase
24160 test ! -f "${cf}" && echo OK1
24161 echo "keaton" > "${cf}"
24163 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24165 runroot rpm -e configtest
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}"
24174 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24176 runroot rpm -e configtest
24179 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24180 at_status=$? at_failed=false
24182 at_fn_diff_devnull "$at_stderr" || at_failed=:
24183 echo >>"$at_stdout"; $as_echo "OK1
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
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"
24203 at_fn_group_banner 332 'rpmconfig2.at:6' \
24204 "install config on existiting symlink" " " 17
24207 $as_echo "332. $at_setup_line: testing $at_desc ..."
24212 $as_echo "$at_srcdir/rpmconfig2.at:8:
24214 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24217 runroot rpm --initdb
24219 cf=\"\${RPMTEST}\"/etc/my.conf
24220 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24221 rm -rf \"\${TOPDIR}\"
24223 runroot rpmbuild --quiet -bb \\
24224 --define \"ver 1.0\" \\
24225 --define \"filedata foo\" \\
24226 --define \"filetype link\" \\
24227 /data/SPECS/configtest.spec
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\"
24235 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:8"
24238 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24241 runroot rpm --initdb
24243 cf="${RPMTEST}"/etc/my.conf
24244 rm -rf "${cf}" "${cf}".rpm*
24247 runroot rpmbuild --quiet -bb \
24248 --define "ver 1.0" \
24249 --define "filedata foo" \
24250 --define "filetype link" \
24251 /data/SPECS/configtest.spec
24253 ln -s "otherstuff" "${cf}"
24254 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24256 runroot rpm -e configtest
24257 readlink "${cf}.rpmorig"
24259 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24260 at_status=$? at_failed=false
24262 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmorig
24264 $at_diff - "$at_stderr" || at_failed=:
24265 echo >>"$at_stdout"; $as_echo "foo
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
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"
24279 at_fn_group_banner 333 'rpmconfig2.at:36' \
24280 "install config on existiting identical link" " " 17
24283 $as_echo "333. $at_setup_line: testing $at_desc ..."
24288 $as_echo "$at_srcdir/rpmconfig2.at:38:
24290 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24293 runroot rpm --initdb
24295 cf=\"\${RPMTEST}\"/etc/my.conf
24296 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24297 rm -rf \"\${TOPDIR}\"
24299 runroot rpmbuild --quiet -bb \\
24300 --define \"ver 1.0\" \\
24301 --define \"filedata foo\" \\
24302 --define \"filetype link\" \\
24303 /data/SPECS/configtest.spec
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}\"
24312 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:38"
24315 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24318 runroot rpm --initdb
24320 cf="${RPMTEST}"/etc/my.conf
24321 rm -rf "${cf}" "${cf}".rpm*
24324 runroot rpmbuild --quiet -bb \
24325 --define "ver 1.0" \
24326 --define "filedata foo" \
24327 --define "filetype link" \
24328 /data/SPECS/configtest.spec
24330 ln -s "foo" "${cf}"
24332 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24334 runroot rpm -e configtest
24337 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24338 at_status=$? at_failed=false
24340 at_fn_diff_devnull "$at_stderr" || at_failed=:
24341 echo >>"$at_stdout"; $as_echo "foo
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
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"
24355 at_fn_group_banner 334 'rpmconfig2.at:66' \
24356 "erase unchanged config link" " " 17
24359 $as_echo "334. $at_setup_line: testing $at_desc ..."
24364 $as_echo "$at_srcdir/rpmconfig2.at:68:
24366 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24369 runroot rpm --initdb
24371 cf=\"\${RPMTEST}\"/etc/my.conf
24372 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24373 rm -rf \"\${TOPDIR}\"
24375 runroot rpmbuild --quiet -bb \\
24376 --define \"ver 1.0\" \\
24377 --define \"filedata foo\" \\
24378 --define \"filetype link\" \\
24379 /data/SPECS/configtest.spec
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}\"
24386 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:68"
24389 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24392 runroot rpm --initdb
24394 cf="${RPMTEST}"/etc/my.conf
24395 rm -rf "${cf}" "${cf}".rpm*
24398 runroot rpmbuild --quiet -bb \
24399 --define "ver 1.0" \
24400 --define "filedata foo" \
24401 --define "filetype link" \
24402 /data/SPECS/configtest.spec
24404 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24406 runroot rpm -e configtest
24409 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24410 at_status=$? at_failed=false
24412 at_fn_diff_devnull "$at_stderr" || at_failed=:
24413 echo >>"$at_stdout"; $as_echo "foo
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
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"
24426 at_fn_group_banner 335 'rpmconfig2.at:93' \
24427 "erase changed config link" " " 17
24430 $as_echo "335. $at_setup_line: testing $at_desc ..."
24435 $as_echo "$at_srcdir/rpmconfig2.at:95:
24437 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24440 runroot rpm --initdb
24442 cf=\"\${RPMTEST}\"/etc/my.conf
24443 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24444 rm -rf \"\${TOPDIR}\"
24446 runroot rpmbuild --quiet -bb \\
24447 --define \"ver 1.0\" \\
24448 --define \"filedata foo\" \\
24449 --define \"filetype link\" \\
24450 /data/SPECS/configtest.spec
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\"
24458 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:95"
24461 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24464 runroot rpm --initdb
24466 cf="${RPMTEST}"/etc/my.conf
24467 rm -rf "${cf}" "${cf}".rpm*
24470 runroot rpmbuild --quiet -bb \
24471 --define "ver 1.0" \
24472 --define "filedata foo" \
24473 --define "filetype link" \
24474 /data/SPECS/configtest.spec
24476 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24478 ln -sf "otherstuff" "${cf}"
24479 runroot rpm -e configtest
24480 readlink "${cf}.rpmsave"
24482 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24483 at_status=$? at_failed=false
24485 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
24487 $at_diff - "$at_stderr" || at_failed=:
24488 echo >>"$at_stdout"; $as_echo "foo
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
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"
24502 at_fn_group_banner 336 'rpmconfig2.at:124' \
24503 "upgrade unchanged config link" " " 17
24506 $as_echo "336. $at_setup_line: testing $at_desc ..."
24511 $as_echo "$at_srcdir/rpmconfig2.at:126:
24513 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24516 runroot rpm --initdb
24518 cf=\"\${RPMTEST}\"/etc/my.conf
24519 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24520 rm -rf \"\${TOPDIR}\"
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
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}\"
24535 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:126"
24538 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24541 runroot rpm --initdb
24543 cf="${RPMTEST}"/etc/my.conf
24544 rm -rf "${cf}" "${cf}".rpm*
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
24555 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24557 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24560 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24561 at_status=$? at_failed=false
24563 at_fn_diff_devnull "$at_stderr" || at_failed=:
24564 echo >>"$at_stdout"; $as_echo "foo
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
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"
24578 at_fn_group_banner 337 'rpmconfig2.at:155' \
24579 "upgrade unchanged config link - touching test" " " 17
24582 $as_echo "337. $at_setup_line: testing $at_desc ..."
24587 $as_echo "$at_srcdir/rpmconfig2.at:157:
24589 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24592 runroot rpm --initdb
24594 cf=\"\${RPMTEST}\"/etc/my.conf
24595 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24596 rm -rf \"\${TOPDIR}\"
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
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
24610 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:157"
24613 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24616 runroot rpm --initdb
24618 cf="${RPMTEST}"/etc/my.conf
24619 rm -rf "${cf}" "${cf}".rpm*
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
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
24634 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24635 at_status=$? at_failed=false
24637 at_fn_diff_devnull "$at_stderr" || at_failed=:
24638 echo >>"$at_stdout"; $as_echo "1
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
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"
24651 at_fn_group_banner 338 'rpmconfig2.at:185' \
24652 "upgrade modified config link" " " 17
24655 $as_echo "338. $at_setup_line: testing $at_desc ..."
24660 $as_echo "$at_srcdir/rpmconfig2.at:187:
24662 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24665 runroot rpm --initdb
24667 cf=\"\${RPMTEST}\"/etc/my.conf
24668 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24669 rm -rf \"\${TOPDIR}\"
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
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}\"
24686 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:187"
24689 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24692 runroot rpm --initdb
24694 cf="${RPMTEST}"/etc/my.conf
24695 rm -rf "${cf}" "${cf}".rpm*
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
24706 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24708 ln -sf "otherstuff" "${cf}"
24710 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24713 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24714 at_status=$? at_failed=false
24716 at_fn_diff_devnull "$at_stderr" || at_failed=:
24717 echo >>"$at_stdout"; $as_echo "foo
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
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"
24732 at_fn_group_banner 339 'rpmconfig2.at:219' \
24733 "upgrade changing config link" " " 17
24736 $as_echo "339. $at_setup_line: testing $at_desc ..."
24741 $as_echo "$at_srcdir/rpmconfig2.at:221:
24743 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24746 runroot rpm --initdb
24748 cf=\"\${RPMTEST}\"/etc/my.conf
24749 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24750 rm -rf \"\${TOPDIR}\"
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
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}\"
24765 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:221"
24768 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24771 runroot rpm --initdb
24773 cf="${RPMTEST}"/etc/my.conf
24774 rm -rf "${cf}" "${cf}".rpm*
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
24785 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24787 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24790 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24791 at_status=$? at_failed=false
24793 at_fn_diff_devnull "$at_stderr" || at_failed=:
24794 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
24808 at_fn_group_banner 340 'rpmconfig2.at:250' \
24809 "upgrade changing, modified config link 1" " " 17
24812 $as_echo "340. $at_setup_line: testing $at_desc ..."
24817 $as_echo "$at_srcdir/rpmconfig2.at:252:
24819 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24822 runroot rpm --initdb
24824 cf=\"\${RPMTEST}\"/etc/my.conf
24825 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24826 rm -rf \"\${TOPDIR}\"
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
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\"
24844 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:252"
24847 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24850 runroot rpm --initdb
24852 cf="${RPMTEST}"/etc/my.conf
24853 rm -rf "${cf}" "${cf}".rpm*
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
24864 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24866 ln -sf "otherstuff" "${cf}"
24868 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24870 readlink "${cf}.rpmsave"
24872 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24873 at_status=$? at_failed=false
24875 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
24877 $at_diff - "$at_stderr" || at_failed=:
24878 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
24894 at_fn_group_banner 341 'rpmconfig2.at:287' \
24895 "upgrade changing, modified config link 2" " " 17
24898 $as_echo "341. $at_setup_line: testing $at_desc ..."
24903 $as_echo "$at_srcdir/rpmconfig2.at:289:
24905 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24908 runroot rpm --initdb
24910 cf=\"\${RPMTEST}\"/etc/my.conf
24911 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24912 rm -rf \"\${TOPDIR}\"
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
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}\"
24929 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:289"
24932 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
24935 runroot rpm --initdb
24937 cf="${RPMTEST}"/etc/my.conf
24938 rm -rf "${cf}" "${cf}".rpm*
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
24949 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
24951 ln -sf "foo-2.0" "${cf}"
24953 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
24956 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
24957 at_status=$? at_failed=false
24959 at_fn_diff_devnull "$at_stderr" || at_failed=:
24960 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
24975 at_fn_group_banner 342 'rpmconfig2.at:323' \
24976 "upgrade unchanged config(noreplace) link" " " 17
24979 $as_echo "342. $at_setup_line: testing $at_desc ..."
24984 $as_echo "$at_srcdir/rpmconfig2.at:325:
24986 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
24989 runroot rpm --initdb
24991 cf=\"\${RPMTEST}\"/etc/my.conf
24992 rm -rf \"\${cf}\" \"\${cf}\".rpm*
24993 rm -rf \"\${TOPDIR}\"
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
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}\"
25009 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:325"
25012 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25015 runroot rpm --initdb
25017 cf="${RPMTEST}"/etc/my.conf
25018 rm -rf "${cf}" "${cf}".rpm*
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
25030 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25032 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25035 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25036 at_status=$? at_failed=false
25038 at_fn_diff_devnull "$at_stderr" || at_failed=:
25039 echo >>"$at_stdout"; $as_echo "foo
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
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"
25053 at_fn_group_banner 343 'rpmconfig2.at:356' \
25054 "upgrade modified config(noreplace) link" " " 17
25057 $as_echo "343. $at_setup_line: testing $at_desc ..."
25062 $as_echo "$at_srcdir/rpmconfig2.at:358:
25064 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25067 runroot rpm --initdb
25069 cf=\"\${RPMTEST}\"/etc/my.conf
25070 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25071 rm -rf \"\${TOPDIR}\"
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
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}\"
25089 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:358"
25092 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25095 runroot rpm --initdb
25097 cf="${RPMTEST}"/etc/my.conf
25098 rm -rf "${cf}" "${cf}".rpm*
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
25110 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25112 ln -sf "otherstuff" "${cf}"
25114 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25117 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25118 at_status=$? at_failed=false
25120 at_fn_diff_devnull "$at_stderr" || at_failed=:
25121 echo >>"$at_stdout"; $as_echo "foo
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
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"
25136 at_fn_group_banner 344 'rpmconfig2.at:391' \
25137 "upgrade changing config(noreplace) link" " " 17
25140 $as_echo "344. $at_setup_line: testing $at_desc ..."
25145 $as_echo "$at_srcdir/rpmconfig2.at:393:
25147 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25150 runroot rpm --initdb
25152 cf=\"\${RPMTEST}\"/etc/my.conf
25153 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25154 rm -rf \"\${TOPDIR}\"
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
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}\"
25170 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:393"
25173 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25176 runroot rpm --initdb
25178 cf="${RPMTEST}"/etc/my.conf
25179 rm -rf "${cf}" "${cf}".rpm*
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
25191 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25193 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25196 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25197 at_status=$? at_failed=false
25199 at_fn_diff_devnull "$at_stderr" || at_failed=:
25200 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
25214 at_fn_group_banner 345 'rpmconfig2.at:423' \
25215 "upgrade changing, modified config(noreplace) link 1" "" 17
25218 $as_echo "345. $at_setup_line: testing $at_desc ..."
25223 $as_echo "$at_srcdir/rpmconfig2.at:425:
25225 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25228 runroot rpm --initdb
25230 cf=\"\${RPMTEST}\"/etc/my.conf
25231 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25232 rm -rf \"\${TOPDIR}\"
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
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\"
25251 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:425"
25254 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25257 runroot rpm --initdb
25259 cf="${RPMTEST}"/etc/my.conf
25260 rm -rf "${cf}" "${cf}".rpm*
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
25272 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25274 ln -sf "otherstuff" "${cf}"
25276 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25278 readlink "${cf}.rpmnew"
25280 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25281 at_status=$? at_failed=false
25283 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
25285 $at_diff - "$at_stderr" || at_failed=:
25286 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
25302 at_fn_group_banner 346 'rpmconfig2.at:461' \
25303 "upgrade changing, modified config(noreplace) link 2" "" 17
25306 $as_echo "346. $at_setup_line: testing $at_desc ..."
25311 $as_echo "$at_srcdir/rpmconfig2.at:463:
25313 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25316 runroot rpm --initdb
25318 cf=\"\${RPMTEST}\"/etc/my.conf
25319 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25320 rm -rf \"\${TOPDIR}\"
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
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\"
25339 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:463"
25342 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25345 runroot rpm --initdb
25347 cf="${RPMTEST}"/etc/my.conf
25348 rm -rf "${cf}" "${cf}".rpm*
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
25360 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
25362 ln -sf "foo-2.0" "${cf}"
25364 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
25366 test ! -L "${cf}.rpmnew"
25368 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25369 at_status=$? at_failed=false
25371 at_fn_diff_devnull "$at_stderr" || at_failed=:
25372 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
25387 at_fn_group_banner 347 'rpmconfig2.at:498' \
25388 "upgrade unchanged shared config link" " " 17
25391 $as_echo "347. $at_setup_line: testing $at_desc ..."
25396 $as_echo "$at_srcdir/rpmconfig2.at:500:
25398 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25401 runroot rpm --initdb
25403 cf=\"\${RPMTEST}\"/etc/my.conf
25404 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25405 rm -rf \"\${TOPDIR}\"
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
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}\"
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}\"
25427 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:500"
25430 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25433 runroot rpm --initdb
25435 cf="${RPMTEST}"/etc/my.conf
25436 rm -rf "${cf}" "${cf}".rpm*
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
25451 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25452 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25455 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25456 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25459 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25460 at_status=$? at_failed=false
25462 at_fn_diff_devnull "$at_stderr" || at_failed=:
25463 echo >>"$at_stdout"; $as_echo "foo
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
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"
25478 at_fn_group_banner 348 'rpmconfig2.at:537' \
25479 "upgrade modified shared config link" " " 17
25482 $as_echo "348. $at_setup_line: testing $at_desc ..."
25487 $as_echo "$at_srcdir/rpmconfig2.at:539:
25489 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25492 runroot rpm --initdb
25494 cf=\"\${RPMTEST}\"/etc/my.conf
25495 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25496 rm -rf \"\${TOPDIR}\"
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
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}\"
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}\"
25520 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:539"
25523 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25526 runroot rpm --initdb
25528 cf="${RPMTEST}"/etc/my.conf
25529 rm -rf "${cf}" "${cf}".rpm*
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
25544 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25545 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25547 ln -sf "otherstuff" "${cf}"
25550 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25551 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25554 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25555 at_status=$? at_failed=false
25557 at_fn_diff_devnull "$at_stderr" || at_failed=:
25558 echo >>"$at_stdout"; $as_echo "foo
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
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"
25573 at_fn_group_banner 349 'rpmconfig2.at:578' \
25574 "upgrade changing shared config link" " " 17
25577 $as_echo "349. $at_setup_line: testing $at_desc ..."
25582 $as_echo "$at_srcdir/rpmconfig2.at:580:
25584 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25587 runroot rpm --initdb
25589 cf=\"\${RPMTEST}\"/etc/my.conf
25590 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25591 rm -rf \"\${TOPDIR}\"
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
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}\"
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}\"
25613 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:580"
25616 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25619 runroot rpm --initdb
25621 cf="${RPMTEST}"/etc/my.conf
25622 rm -rf "${cf}" "${cf}".rpm*
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
25637 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25638 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25641 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25642 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25645 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25646 at_status=$? at_failed=false
25648 at_fn_diff_devnull "$at_stderr" || at_failed=:
25649 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
25663 at_fn_group_banner 350 'rpmconfig2.at:616' \
25664 "upgrade changing, modified shared config link 1" "" 17
25667 $as_echo "350. $at_setup_line: testing $at_desc ..."
25672 $as_echo "$at_srcdir/rpmconfig2.at:618:
25674 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25677 runroot rpm --initdb
25679 cf=\"\${RPMTEST}\"/etc/my.conf
25680 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25681 rm -rf \"\${TOPDIR}\"
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
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}\"
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\"
25706 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:618"
25709 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25712 runroot rpm --initdb
25714 cf="${RPMTEST}"/etc/my.conf
25715 rm -rf "${cf}" "${cf}".rpm*
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
25730 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25731 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25733 ln -sf "otherstuff" "${cf}"
25736 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25737 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25739 readlink "${cf}.rpmsave"
25741 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25742 at_status=$? at_failed=false
25744 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
25746 $at_diff - "$at_stderr" || at_failed=:
25747 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
25763 at_fn_group_banner 351 'rpmconfig2.at:660' \
25764 "upgrade changing, modified shared config link 2" "" 17
25767 $as_echo "351. $at_setup_line: testing $at_desc ..."
25772 $as_echo "$at_srcdir/rpmconfig2.at:662:
25774 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25777 runroot rpm --initdb
25779 cf=\"\${RPMTEST}\"/etc/my.conf
25780 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25781 rm -rf \"\${TOPDIR}\"
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
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}\"
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}\"
25805 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:662"
25808 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25811 runroot rpm --initdb
25813 cf="${RPMTEST}"/etc/my.conf
25814 rm -rf "${cf}" "${cf}".rpm*
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
25829 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25830 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25832 ln -sf "foo-2.0" "${cf}"
25835 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25836 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25839 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25840 at_status=$? at_failed=false
25842 at_fn_diff_devnull "$at_stderr" || at_failed=:
25843 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
25858 at_fn_group_banner 352 'rpmconfig2.at:702' \
25859 "upgrade changing, modified shared config(noreplace) link 1" "" 17
25862 $as_echo "352. $at_setup_line: testing $at_desc ..."
25867 $as_echo "$at_srcdir/rpmconfig2.at:704:
25869 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25872 runroot rpm --initdb
25874 cf=\"\${RPMTEST}\"/etc/my.conf
25875 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25876 rm -rf \"\${TOPDIR}\"
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
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}\"
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\"
25902 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:704"
25905 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
25908 runroot rpm --initdb
25910 cf="${RPMTEST}"/etc/my.conf
25911 rm -rf "${cf}" "${cf}".rpm*
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
25927 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
25928 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
25930 ln -sf "otherstuff" "${cf}"
25933 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
25934 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
25936 readlink "${cf}.rpmnew"
25938 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
25939 at_status=$? at_failed=false
25941 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf created as /etc/my.conf.rpmnew
25943 $at_diff - "$at_stderr" || at_failed=:
25944 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
25960 at_fn_group_banner 353 'rpmconfig2.at:747' \
25961 "upgrade changing, modified shared config(noreplace) link 2" "" 17
25964 $as_echo "353. $at_setup_line: testing $at_desc ..."
25969 $as_echo "$at_srcdir/rpmconfig2.at:749:
25971 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
25974 runroot rpm --initdb
25976 cf=\"\${RPMTEST}\"/etc/my.conf
25977 rm -rf \"\${cf}\" \"\${cf}\".rpm*
25978 rm -rf \"\${TOPDIR}\"
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
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}\"
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\"
26004 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig2.at:749"
26007 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26010 runroot rpm --initdb
26012 cf="${RPMTEST}"/etc/my.conf
26013 rm -rf "${cf}" "${cf}".rpm*
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
26029 /build/RPMS/noarch/configtest-A-1.0-1.noarch.rpm \
26030 /build/RPMS/noarch/configtest-B-1.0-1.noarch.rpm
26032 ln -sf "foo-2.0" "${cf}"
26035 /build/RPMS/noarch/configtest-A-2.0-1.noarch.rpm \
26036 /build/RPMS/noarch/configtest-B-2.0-1.noarch.rpm
26038 test ! -L "${cf}.rpmnew"
26040 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26041 at_status=$? at_failed=false
26043 at_fn_diff_devnull "$at_stderr" || at_failed=:
26044 echo >>"$at_stdout"; $as_echo "foo-1.0
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
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"
26059 at_fn_group_banner 354 'rpmconfig3.at:6' \
26060 "upgrade config to/from non-config" " " 18
26063 $as_echo "354. $at_setup_line: testing $at_desc ..."
26068 $as_echo "$at_srcdir/rpmconfig3.at:8:
26070 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26073 runroot rpm --initdb
26075 cf=\"\${RPMTEST}\"/etc/my.conf
26076 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26077 rm -rf \"\${TOPDIR}\"
26079 runroot rpmbuild --quiet -bb \\
26080 --define \"ver 1.0\" \\
26081 --define \"filetype file\" \\
26082 --define \"filedata foo\" \\
26083 /data/SPECS/configtest.spec
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
26092 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26094 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26096 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26099 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:8"
26102 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26105 runroot rpm --initdb
26107 cf="${RPMTEST}"/etc/my.conf
26108 rm -rf "${cf}" "${cf}".rpm*
26111 runroot rpmbuild --quiet -bb \
26112 --define "ver 1.0" \
26113 --define "filetype file" \
26114 --define "filedata foo" \
26115 /data/SPECS/configtest.spec
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
26124 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26126 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26128 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26131 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26132 at_status=$? at_failed=false
26134 at_fn_diff_devnull "$at_stderr" || at_failed=:
26135 echo >>"$at_stdout"; $as_echo "foo
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
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"
26150 at_fn_group_banner 355 'rpmconfig3.at:44' \
26151 "upgrade modified config to/from non-config 1" " " 18
26154 $as_echo "355. $at_setup_line: testing $at_desc ..."
26159 $as_echo "$at_srcdir/rpmconfig3.at:46:
26161 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26164 runroot rpm --initdb
26166 cf=\"\${RPMTEST}\"/etc/my.conf
26167 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26168 rm -rf \"\${TOPDIR}\"
26170 runroot rpmbuild --quiet -bb \\
26171 --define \"ver 1.0\" \\
26172 --define \"filetype file\" \\
26173 --define \"filedata foo\" \\
26174 /data/SPECS/configtest.spec
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
26183 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26185 echo \"otherstuff\" > \"\${cf}\"
26187 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26189 cat \"\${cf}.rpmsave\"
26190 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26193 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:46"
26196 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26199 runroot rpm --initdb
26201 cf="${RPMTEST}"/etc/my.conf
26202 rm -rf "${cf}" "${cf}".rpm*
26205 runroot rpmbuild --quiet -bb \
26206 --define "ver 1.0" \
26207 --define "filetype file" \
26208 --define "filedata foo" \
26209 /data/SPECS/configtest.spec
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
26218 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26220 echo "otherstuff" > "${cf}"
26222 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26224 cat "${cf}.rpmsave"
26225 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26228 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26229 at_status=$? at_failed=false
26231 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
26233 $at_diff - "$at_stderr" || at_failed=:
26234 echo >>"$at_stdout"; $as_echo "foo
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
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"
26251 at_fn_group_banner 356 'rpmconfig3.at:88' \
26252 "upgrade modified config to/from non-config 2" " " 18
26255 $as_echo "356. $at_setup_line: testing $at_desc ..."
26260 $as_echo "$at_srcdir/rpmconfig3.at:90:
26262 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26265 runroot rpm --initdb
26267 cf=\"\${RPMTEST}\"/etc/my.conf
26268 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26269 rm -rf \"\${TOPDIR}\"
26271 runroot rpmbuild --quiet -bb \\
26272 --define \"ver 1.0\" \\
26273 --define \"filetype file\" \\
26274 --define \"filedata foo\" \\
26275 /data/SPECS/configtest.spec
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
26284 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26286 echo \"bar\" > \"\${cf}\"
26288 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26290 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26293 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:90"
26296 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26299 runroot rpm --initdb
26301 cf="${RPMTEST}"/etc/my.conf
26302 rm -rf "${cf}" "${cf}".rpm*
26305 runroot rpmbuild --quiet -bb \
26306 --define "ver 1.0" \
26307 --define "filetype file" \
26308 --define "filedata foo" \
26309 /data/SPECS/configtest.spec
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
26318 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26320 echo "bar" > "${cf}"
26322 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26324 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26327 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26328 at_status=$? at_failed=false
26330 at_fn_diff_devnull "$at_stderr" || at_failed=:
26331 echo >>"$at_stdout"; $as_echo "foo
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
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"
26347 at_fn_group_banner 357 'rpmconfig3.at:129' \
26348 "upgrade config to/from config link" " " 18
26351 $as_echo "357. $at_setup_line: testing $at_desc ..."
26356 $as_echo "$at_srcdir/rpmconfig3.at:131:
26358 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26361 runroot rpm --initdb
26363 cf=\"\${RPMTEST}\"/etc/my.conf
26364 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26365 rm -rf \"\${TOPDIR}\"
26367 runroot rpmbuild --quiet -bb \\
26368 --define \"ver 1.0\" \\
26369 --define \"filetype file\" \\
26370 --define \"filedata foo\" \\
26371 /data/SPECS/configtest.spec
26373 runroot rpmbuild --quiet -bb \\
26374 --define \"ver 2.0\" \\
26375 --define \"filetype link\" \\
26376 --define \"filedata bar\" \\
26377 /data/SPECS/configtest.spec
26379 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
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
26386 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:131"
26389 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26392 runroot rpm --initdb
26394 cf="${RPMTEST}"/etc/my.conf
26395 rm -rf "${cf}" "${cf}".rpm*
26398 runroot rpmbuild --quiet -bb \
26399 --define "ver 1.0" \
26400 --define "filetype file" \
26401 --define "filedata foo" \
26402 /data/SPECS/configtest.spec
26404 runroot rpmbuild --quiet -bb \
26405 --define "ver 2.0" \
26406 --define "filetype link" \
26407 --define "filedata bar" \
26408 /data/SPECS/configtest.spec
26410 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26412 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26414 runroot rpm -U --oldpackage /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26417 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26418 at_status=$? at_failed=false
26420 at_fn_diff_devnull "$at_stderr" || at_failed=:
26421 echo >>"$at_stdout"; $as_echo "foo
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
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"
26436 at_fn_group_banner 358 'rpmconfig3.at:166' \
26437 "upgrade modified config to config link" " " 18
26440 $as_echo "358. $at_setup_line: testing $at_desc ..."
26445 $as_echo "$at_srcdir/rpmconfig3.at:168:
26447 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26450 runroot rpm --initdb
26452 cf=\"\${RPMTEST}\"/etc/my.conf
26453 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26454 rm -rf \"\${TOPDIR}\"
26456 runroot rpmbuild --quiet -bb \\
26457 --define \"ver 1.0\" \\
26458 --define \"filetype file\" \\
26459 --define \"filedata foo\" \\
26460 /data/SPECS/configtest.spec
26462 runroot rpmbuild --quiet -bb \\
26463 --define \"ver 2.0\" \\
26464 --define \"filetype link\" \\
26465 --define \"filedata bar\" \\
26466 /data/SPECS/configtest.spec
26468 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26470 echo \"otherstuff\" > \"\${cf}\"
26472 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26473 readlink \"\${cf}\"
26474 cat \"\${cf}.rpmsave\"
26476 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:168"
26479 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26482 runroot rpm --initdb
26484 cf="${RPMTEST}"/etc/my.conf
26485 rm -rf "${cf}" "${cf}".rpm*
26488 runroot rpmbuild --quiet -bb \
26489 --define "ver 1.0" \
26490 --define "filetype file" \
26491 --define "filedata foo" \
26492 /data/SPECS/configtest.spec
26494 runroot rpmbuild --quiet -bb \
26495 --define "ver 2.0" \
26496 --define "filetype link" \
26497 --define "filedata bar" \
26498 /data/SPECS/configtest.spec
26500 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26502 echo "otherstuff" > "${cf}"
26504 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26506 cat "${cf}.rpmsave"
26508 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26509 at_status=$? at_failed=false
26511 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
26513 $at_diff - "$at_stderr" || at_failed=:
26514 echo >>"$at_stdout"; $as_echo "foo
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
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"
26530 at_fn_group_banner 359 'rpmconfig3.at:206' \
26531 "upgrade modified config link to config" " " 18
26534 $as_echo "359. $at_setup_line: testing $at_desc ..."
26539 $as_echo "$at_srcdir/rpmconfig3.at:208:
26541 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26544 runroot rpm --initdb
26546 cf=\"\${RPMTEST}\"/etc/my.conf
26547 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26548 rm -rf \"\${TOPDIR}\"
26550 runroot rpmbuild --quiet -bb \\
26551 --define \"ver 1.0\" \\
26552 --define \"filetype link\" \\
26553 --define \"filedata foo\" \\
26554 /data/SPECS/configtest.spec
26556 runroot rpmbuild --quiet -bb \\
26557 --define \"ver 2.0\" \\
26558 --define \"filetype file\" \\
26559 --define \"filedata bar\" \\
26560 /data/SPECS/configtest.spec
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
26568 readlink \"\${cf}.rpmsave\"
26570 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:208"
26573 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26576 runroot rpm --initdb
26578 cf="${RPMTEST}"/etc/my.conf
26579 rm -rf "${cf}" "${cf}".rpm*
26582 runroot rpmbuild --quiet -bb \
26583 --define "ver 1.0" \
26584 --define "filetype link" \
26585 --define "filedata foo" \
26586 /data/SPECS/configtest.spec
26588 runroot rpmbuild --quiet -bb \
26589 --define "ver 2.0" \
26590 --define "filetype file" \
26591 --define "filedata bar" \
26592 /data/SPECS/configtest.spec
26594 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26596 ln -sf "otherstuff" "${cf}"
26598 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26600 readlink "${cf}.rpmsave"
26602 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26603 at_status=$? at_failed=false
26605 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
26607 $at_diff - "$at_stderr" || at_failed=:
26608 echo >>"$at_stdout"; $as_echo "foo
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
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"
26624 at_fn_group_banner 360 'rpmconfig3.at:246' \
26625 "upgrade config to directory" " " 18
26628 $as_echo "360. $at_setup_line: testing $at_desc ..."
26633 $as_echo "$at_srcdir/rpmconfig3.at:248:
26635 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26638 runroot rpm --initdb
26640 cf=\"\${RPMTEST}\"/etc/my.conf
26641 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26642 rm -rf \"\${TOPDIR}\"
26644 runroot rpmbuild --quiet -bb \\
26645 --define \"ver 1.0\" \\
26646 --define \"filetype file\" \\
26647 --define \"filedata foo\" \\
26648 /data/SPECS/configtest.spec
26650 runroot rpmbuild --quiet -bb \\
26651 --define \"ver 2.0\" \\
26652 --define \"filetype dir\" \\
26653 /data/SPECS/configtest.spec
26655 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26657 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26660 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:248"
26663 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26666 runroot rpm --initdb
26668 cf="${RPMTEST}"/etc/my.conf
26669 rm -rf "${cf}" "${cf}".rpm*
26672 runroot rpmbuild --quiet -bb \
26673 --define "ver 1.0" \
26674 --define "filetype file" \
26675 --define "filedata foo" \
26676 /data/SPECS/configtest.spec
26678 runroot rpmbuild --quiet -bb \
26679 --define "ver 2.0" \
26680 --define "filetype dir" \
26681 /data/SPECS/configtest.spec
26683 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26685 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26688 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26689 at_status=$? at_failed=false
26691 at_fn_diff_devnull "$at_stderr" || at_failed=:
26692 echo >>"$at_stdout"; $as_echo "foo
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
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"
26705 at_fn_group_banner 361 'rpmconfig3.at:278' \
26706 "upgrade modified config to directory" " " 18
26709 $as_echo "361. $at_setup_line: testing $at_desc ..."
26714 $as_echo "$at_srcdir/rpmconfig3.at:280:
26716 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
26719 runroot rpm --initdb
26721 cf=\"\${RPMTEST}\"/etc/my.conf
26722 rm -rf \"\${cf}\" \"\${cf}\".rpm*
26723 rm -rf \"\${TOPDIR}\"
26725 runroot rpmbuild --quiet -bb \\
26726 --define \"ver 1.0\" \\
26727 --define \"filetype file\" \\
26728 --define \"filedata foo\" \\
26729 /data/SPECS/configtest.spec
26731 runroot rpmbuild --quiet -bb \\
26732 --define \"ver 2.0\" \\
26733 --define \"filetype dir\" \\
26734 /data/SPECS/configtest.spec
26736 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26738 echo \"otherstuff\" > \"\${cf}\"
26740 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26742 cat \"\${cf}.rpmsave\"
26744 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmconfig3.at:280"
26747 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
26750 runroot rpm --initdb
26752 cf="${RPMTEST}"/etc/my.conf
26753 rm -rf "${cf}" "${cf}".rpm*
26756 runroot rpmbuild --quiet -bb \
26757 --define "ver 1.0" \
26758 --define "filetype file" \
26759 --define "filedata foo" \
26760 /data/SPECS/configtest.spec
26762 runroot rpmbuild --quiet -bb \
26763 --define "ver 2.0" \
26764 --define "filetype dir" \
26765 /data/SPECS/configtest.spec
26767 runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
26769 echo "otherstuff" > "${cf}"
26771 runroot rpm -U /build/RPMS/noarch/configtest-2.0-1.noarch.rpm
26773 cat "${cf}.rpmsave"
26775 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26776 at_status=$? at_failed=false
26778 echo >>"$at_stderr"; $as_echo "warning: /etc/my.conf saved as /etc/my.conf.rpmsave
26780 $at_diff - "$at_stderr" || at_failed=:
26781 echo >>"$at_stdout"; $as_echo "foo
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
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"
26796 at_fn_group_banner 362 'rpmmacro.at:6' \
26797 "simple rpm --eval" " " 19
26800 $as_echo "362. $at_setup_line: testing $at_desc ..."
26805 $as_echo "$at_srcdir/rpmmacro.at:8:
26806 runroot rpm --define \"this that\" --eval '%{this}'
26808 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:8"
26810 runroot rpm --define "this that" --eval '%{this}'
26812 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26813 at_status=$? at_failed=false
26815 at_fn_diff_devnull "$at_stderr" || at_failed=:
26816 echo >>"$at_stdout"; $as_echo "that
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
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"
26829 at_fn_group_banner 363 'rpmmacro.at:17' \
26830 "invalid rpm --eval" " " 19
26833 $as_echo "363. $at_setup_line: testing $at_desc ..."
26838 $as_echo "$at_srcdir/rpmmacro.at:19:
26839 runroot rpm --eval '%define _ that'
26841 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:19"
26843 runroot rpm --eval '%define _ that'
26845 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26846 at_status=$? at_failed=false
26848 echo >>"$at_stderr"; $as_echo "error: Macro %_ has illegal name (%define)
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
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"
26862 at_fn_group_banner 364 'rpmmacro.at:29' \
26863 "invalid rpm --define" " " 19
26866 $as_echo "364. $at_setup_line: testing $at_desc ..."
26871 $as_echo "$at_srcdir/rpmmacro.at:31:
26872 runroot rpm --define \"_ that\"
26874 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:31"
26876 runroot rpm --define "_ that"
26878 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26879 at_status=$? at_failed=false
26881 echo >>"$at_stderr"; $as_echo "error: Macro %_ has illegal name (%define)
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
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"
26895 at_fn_group_banner 365 'rpmmacro.at:40' \
26896 "rpm --undefine" " " 19
26899 $as_echo "365. $at_setup_line: testing $at_desc ..."
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'}
26908 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:42"
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'}
26913 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26914 at_status=$? at_failed=false
26916 at_fn_diff_devnull "$at_stderr" || at_failed=:
26917 echo >>"$at_stdout"; $as_echo "1. that
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
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"
26934 at_fn_group_banner 366 'rpmmacro.at:55' \
26935 "simple true conditional rpm --eval" " " 19
26938 $as_echo "366. $at_setup_line: testing $at_desc ..."
26943 $as_echo "$at_srcdir/rpmmacro.at:57:
26944 runroot rpm --define \"this that\" --eval '%{?this}'
26946 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:57"
26948 runroot rpm --define "this that" --eval '%{?this}'
26950 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26951 at_status=$? at_failed=false
26953 at_fn_diff_devnull "$at_stderr" || at_failed=:
26954 echo >>"$at_stdout"; $as_echo "that
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
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"
26967 at_fn_group_banner 367 'rpmmacro.at:65' \
26968 "simple false conditional rpm --eval" " " 19
26971 $as_echo "367. $at_setup_line: testing $at_desc ..."
26976 $as_echo "$at_srcdir/rpmmacro.at:67:
26977 runroot rpm --define \"this that\" --eval '%{?that}'
26979 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:67"
26981 runroot rpm --define "this that" --eval '%{?that}'
26983 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
26984 at_status=$? at_failed=false
26986 at_fn_diff_devnull "$at_stderr" || at_failed=:
26987 echo >>"$at_stdout"; $as_echo "
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
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"
27000 at_fn_group_banner 368 'rpmmacro.at:75' \
27001 "nested macro in name" " " 19
27004 $as_echo "368. $at_setup_line: testing $at_desc ..."
27009 $as_echo "$at_srcdir/rpmmacro.at:77:
27010 runroot rpm --define \"this that\" --define \"that_that foo\" --eval '%{expand:%{%{this}_that}}'
27012 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:77"
27014 runroot rpm --define "this that" --define "that_that foo" --eval '%{expand:%{%{this}_that}}'
27016 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27017 at_status=$? at_failed=false
27019 at_fn_diff_devnull "$at_stderr" || at_failed=:
27020 echo >>"$at_stdout"; $as_echo "foo
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
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"
27033 at_fn_group_banner 369 'rpmmacro.at:85' \
27034 "parametrized macro 1" " " 19
27037 $as_echo "369. $at_setup_line: testing $at_desc ..."
27042 $as_echo "$at_srcdir/rpmmacro.at:87:
27043 cat << EOF > \${abs_builddir}/testing/mtest
27058 runroot rpm --eval '%{load:mtest}%{foo}'
27060 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmmacro.at:87"
27062 cat << EOF > ${abs_builddir}/testing/mtest
27077 runroot rpm --eval '%{load:mtest}%{foo}'
27079 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27080 at_status=$? at_failed=false
27082 at_fn_diff_devnull "$at_stderr" || at_failed=:
27083 echo >>"$at_stdout"; $as_echo "
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
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"
27106 at_fn_group_banner 370 'rpmmacro.at:121' \
27107 "parametrized macro 2" " " 19
27110 $as_echo "370. $at_setup_line: testing $at_desc ..."
27115 $as_echo "$at_srcdir/rpmmacro.at:123:
27117 --define '%bar() \"Bar %#: %{?1} %{?2}\"' \\
27118 --define '%foo() \"Foo %#: %{?1} %{?2}\" %bar a' \\
27121 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:123"
27124 --define '%bar() "Bar %#: %{?1} %{?2}"' \
27125 --define '%foo() "Foo %#: %{?1} %{?2}" %bar a' \
27128 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27129 at_status=$? at_failed=false
27131 at_fn_diff_devnull "$at_stderr" || at_failed=:
27132 echo >>"$at_stdout"; $as_echo "\"Foo 2: 1 2\" \"Bar 1: a \"
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
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"
27145 at_fn_group_banner 371 'rpmmacro.at:134' \
27146 "parametrized macro 3" " " 19
27149 $as_echo "371. $at_setup_line: testing $at_desc ..."
27154 $as_echo "$at_srcdir/rpmmacro.at:136:
27156 --define '%foo() 1:%1 2:%2' \\
27157 --eval '%foo %nil bar'
27159 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:136"
27162 --define '%foo() 1:%1 2:%2' \
27163 --eval '%foo %nil bar'
27165 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27166 at_status=$? at_failed=false
27168 at_fn_diff_devnull "$at_stderr" || at_failed=:
27169 echo >>"$at_stdout"; $as_echo "1:bar 2:%2
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
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"
27182 at_fn_group_banner 372 'rpmmacro.at:146' \
27183 "parametrized macro 4" " " 19
27186 $as_echo "372. $at_setup_line: testing $at_desc ..."
27191 $as_echo "$at_srcdir/rpmmacro.at:148:
27193 --define '%bar yyy' \\
27194 --define '%foo() %1' \\
27195 --eval '%foo %bar' \\
27196 --eval '%foo %%bar'
27198 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:148"
27201 --define '%bar yyy' \
27202 --define '%foo() %1' \
27203 --eval '%foo %bar' \
27204 --eval '%foo %%bar'
27206 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27207 at_status=$? at_failed=false
27209 at_fn_diff_devnull "$at_stderr" || at_failed=:
27210 echo >>"$at_stdout"; $as_echo "yyy
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
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"
27224 at_fn_group_banner 373 'rpmmacro.at:161' \
27225 "parametrized macro 5" " " 19
27228 $as_echo "373. $at_setup_line: testing $at_desc ..."
27233 $as_echo "$at_srcdir/rpmmacro.at:163:
27235 --define '%foo() %#:%{?1:\"%1\"}%{?2: \"%2\"}' \\
27236 --define 'bar zzz' \\
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' \\
27247 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:163"
27250 --define '%foo() %#:%{?1:"%1"}%{?2: "%2"}' \
27251 --define 'bar zzz' \
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' \
27262 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27263 at_status=$? at_failed=false
27265 at_fn_diff_devnull "$at_stderr" || at_failed=:
27266 echo >>"$at_stdout"; $as_echo "1:\"1\"
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
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"
27287 at_fn_group_banner 374 'rpmmacro.at:190' \
27288 "uncompress macro" " " 19
27291 $as_echo "374. $at_setup_line: testing $at_desc ..."
27296 $as_echo "$at_srcdir/rpmmacro.at:192:
27298 --define \"__gzip /my/bin/gzip\" \\
27299 --eval \"%{uncompress:/data/SOURCES/hello-2.0.tar.gz}\"
27301 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:192"
27304 --define "__gzip /my/bin/gzip" \
27305 --eval "%{uncompress:/data/SOURCES/hello-2.0.tar.gz}"
27307 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27308 at_status=$? at_failed=false
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
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
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"
27324 at_fn_group_banner 375 'rpmmacro.at:202' \
27325 "basename macro" " " 19
27328 $as_echo "375. $at_setup_line: testing $at_desc ..."
27333 $as_echo "$at_srcdir/rpmmacro.at:204:
27335 --eval \"%{basename:/data/SOURCES/hello-2.0.tar.gz}\"
27337 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:204"
27340 --eval "%{basename:/data/SOURCES/hello-2.0.tar.gz}"
27342 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27343 at_status=$? at_failed=false
27345 at_fn_diff_devnull "$at_stderr" || at_failed=:
27346 echo >>"$at_stdout"; $as_echo "hello-2.0.tar.gz
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
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"
27359 at_fn_group_banner 376 'rpmmacro.at:213' \
27360 "shrink macro" " " 19
27363 $as_echo "376. $at_setup_line: testing $at_desc ..."
27368 $as_echo "$at_srcdir/rpmmacro.at:215:
27370 --eval \"%{shrink: h e l lo }\"
27372 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:215"
27375 --eval "%{shrink: h e l lo }"
27377 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27378 at_status=$? at_failed=false
27380 at_fn_diff_devnull "$at_stderr" || at_failed=:
27381 echo >>"$at_stdout"; $as_echo "h e l lo
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
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"
27394 at_fn_group_banner 377 'rpmmacro.at:224' \
27395 "suffix macro" " " 19
27398 $as_echo "377. $at_setup_line: testing $at_desc ..."
27403 $as_echo "$at_srcdir/rpmmacro.at:226:
27405 --eval \"%{suffix:/data/SOURCES/hello-2.0.tar.gz}\"
27407 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:226"
27410 --eval "%{suffix:/data/SOURCES/hello-2.0.tar.gz}"
27412 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27413 at_status=$? at_failed=false
27415 at_fn_diff_devnull "$at_stderr" || at_failed=:
27416 echo >>"$at_stdout"; $as_echo "gz
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
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"
27429 at_fn_group_banner 378 'rpmmacro.at:235' \
27430 "url2path macro" " " 19
27433 $as_echo "378. $at_setup_line: testing $at_desc ..."
27438 $as_echo "$at_srcdir/rpmmacro.at:237:
27440 --eval \"%{url2path:http://hello.org/releases/hello-2.0.tar.gz}\"
27442 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:237"
27445 --eval "%{url2path:http://hello.org/releases/hello-2.0.tar.gz}"
27447 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27448 at_status=$? at_failed=false
27450 at_fn_diff_devnull "$at_stderr" || at_failed=:
27451 echo >>"$at_stdout"; $as_echo "/releases/hello-2.0.tar.gz
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
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"
27464 at_fn_group_banner 379 'rpmmacro.at:246' \
27465 "shell expansion" " " 19
27468 $as_echo "379. $at_setup_line: testing $at_desc ..."
27473 $as_echo "$at_srcdir/rpmmacro.at:248:
27475 --eval \"%(echo foo)\"
27477 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:248"
27480 --eval "%(echo foo)"
27482 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27483 at_status=$? at_failed=false
27485 at_fn_diff_devnull "$at_stderr" || at_failed=:
27486 echo >>"$at_stdout"; $as_echo "foo
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
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"
27499 at_fn_group_banner 380 'rpmmacro.at:257' \
27500 "simple lua --eval" " " 19
27503 $as_echo "380. $at_setup_line: testing $at_desc ..."
27508 $as_echo "$at_srcdir/rpmmacro.at:259:
27509 runroot rpm --eval '%{lua:print(5*5)}'
27511 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:259"
27513 runroot rpm --eval '%{lua:print(5*5)}'
27515 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27516 at_status=$? at_failed=false
27518 at_fn_diff_devnull "$at_stderr" || at_failed=:
27519 echo >>"$at_stdout"; $as_echo "25
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
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"
27532 at_fn_group_banner 381 'rpmmacro.at:267' \
27533 "lua rpm extensions" " " 19
27536 $as_echo "381. $at_setup_line: testing $at_desc ..."
27541 $as_echo "$at_srcdir/rpmmacro.at:269:
27542 runroot rpm --eval '%{lua: rpm.define(\"foo bar\") print(rpm.expand(\"%{foo}\"))}'
27544 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:269"
27546 runroot rpm --eval '%{lua: rpm.define("foo bar") print(rpm.expand("%{foo}"))}'
27548 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27549 at_status=$? at_failed=false
27551 at_fn_diff_devnull "$at_stderr" || at_failed=:
27552 echo >>"$at_stdout"; $as_echo "bar
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
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"
27565 at_fn_group_banner 382 'rpmmacro.at:277' \
27566 "lua posix extensions" " " 19
27569 $as_echo "382. $at_setup_line: testing $at_desc ..."
27574 $as_echo "$at_srcdir/rpmmacro.at:279:
27576 --eval '%{lua: posix.putenv(\"LUATEST=ok\") print(posix.getenv(\"LUATEST\"))}'
27578 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:279"
27581 --eval '%{lua: posix.putenv("LUATEST=ok") print(posix.getenv("LUATEST"))}'
27583 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27584 at_status=$? at_failed=false
27586 at_fn_diff_devnull "$at_stderr" || at_failed=:
27587 echo >>"$at_stdout"; $as_echo "ok
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
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"
27600 at_fn_group_banner 383 'rpmmacro.at:288' \
27601 "lua script exit behavior" " " 19
27604 $as_echo "383. $at_setup_line: testing $at_desc ..."
27609 $as_echo "$at_srcdir/rpmmacro.at:290:
27611 --eval '%{lua: os.exit()}))}'
27613 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:290"
27616 --eval '%{lua: os.exit()}))}'
27618 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27619 at_status=$? at_failed=false
27621 echo >>"$at_stderr"; $as_echo "error: lua script failed: [string \"<lua>\"]:1: exit not permitted in this context
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
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"
27635 at_fn_group_banner 384 'rpmmacro.at:300' \
27636 "%define + %undefine in nested levels 1" " " 19
27639 $as_echo "384. $at_setup_line: testing $at_desc ..."
27644 $as_echo "$at_srcdir/rpmmacro.at:302:
27645 # basic %define in nested scoping level
27647 --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand:%undefine xxx} %{echo:%xxx}' \\
27650 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:302"
27652 # basic %define in nested scoping level
27654 --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand:%undefine xxx} %{echo:%xxx}' \
27657 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27658 at_status=$? at_failed=false
27660 at_fn_diff_devnull "$at_stderr" || at_failed=:
27661 echo >>"$at_stdout"; $as_echo "1
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
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"
27676 at_fn_group_banner 385 'rpmmacro.at:315' \
27677 "%define + %undefine in nested levels 2" " " 19
27680 $as_echo "385. $at_setup_line: testing $at_desc ..."
27685 $as_echo "$at_srcdir/rpmmacro.at:317:
27686 # %define macro once in a nested scope
27688 --define '%foo() %{expand:%define xxx 1} %{echo:%xxx}' \\
27692 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:317"
27694 # %define macro once in a nested scope
27696 --define '%foo() %{expand:%define xxx 1} %{echo:%xxx}' \
27700 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27701 at_status=$? at_failed=false
27703 at_fn_diff_devnull "$at_stderr" || at_failed=:
27704 echo >>"$at_stdout"; $as_echo "1
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
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"
27719 at_fn_group_banner 386 'rpmmacro.at:331' \
27720 "%define + %undefine in nested levels 3" " " 19
27722 test $RPM_XFAIL -ne 0 && at_xfail=yes
27724 $as_echo "386. $at_setup_line: testing $at_desc ..."
27729 $as_echo "$at_srcdir/rpmmacro.at:333:
27731 # %define macro twice in a nested scope
27733 --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand: %define xxx 2} %{echo:%xxx}' \\
27737 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:333"
27740 # %define macro twice in a nested scope
27742 --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand: %define xxx 2} %{echo:%xxx}' \
27746 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27747 at_status=$? at_failed=false
27749 at_fn_diff_devnull "$at_stderr" || at_failed=:
27750 echo >>"$at_stdout"; $as_echo "1
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
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"
27766 at_fn_group_banner 387 'rpmmacro.at:349' \
27767 "%define + %undefine in nested levels 4" " " 19
27769 test $RPM_XFAIL -ne 0 && at_xfail=yes
27771 $as_echo "387. $at_setup_line: testing $at_desc ..."
27776 $as_echo "$at_srcdir/rpmmacro.at:351:
27778 # %define in a nested level covered by %global
27780 --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand: %global xxx 2} %{echo:%xxx}' \\
27783 --eval .'%undefine xxx'. \\
27786 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:351"
27789 # %define in a nested level covered by %global
27791 --define '%foo() %{expand:%define xxx 1} %{echo:%xxx} %{expand: %global xxx 2} %{echo:%xxx}' \
27794 --eval .'%undefine xxx'. \
27797 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27798 at_status=$? at_failed=false
27800 at_fn_diff_devnull "$at_stderr" || at_failed=:
27801 echo >>"$at_stdout"; $as_echo "1
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
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"
27819 at_fn_group_banner 388 'rpmmacro.at:371' \
27820 "%define in conditional macro" " " 19
27823 $as_echo "388. $at_setup_line: testing $at_desc ..."
27828 $as_echo "$at_srcdir/rpmmacro.at:373:
27830 --define 'dofoo() true'\\
27831 --eval '.%{!?foo: %define foo bar}.'\\
27836 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:373"
27839 --define 'dofoo() true'\
27840 --eval '.%{!?foo: %define foo bar}.'\
27845 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27846 at_status=$? at_failed=false
27848 at_fn_diff_devnull "$at_stderr" || at_failed=:
27849 echo >>"$at_stdout"; $as_echo ". .
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
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"
27865 at_fn_group_banner 389 'rpmmacro.at:389' \
27866 "%verbose negative test" " " 19
27869 $as_echo "389. $at_setup_line: testing $at_desc ..."
27874 $as_echo "$at_srcdir/rpmmacro.at:391:
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}'
27881 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:391"
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}'
27889 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27890 at_status=$? at_failed=false
27892 at_fn_diff_devnull "$at_stderr" || at_failed=:
27893 echo >>"$at_stdout"; $as_echo "
27897 is not verbose text
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
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"
27910 at_fn_group_banner 390 'rpmmacro.at:407' \
27911 "%verbose positive test" " " 19
27914 $as_echo "390. $at_setup_line: testing $at_desc ..."
27919 $as_echo "$at_srcdir/rpmmacro.at:409:
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}'
27926 at_fn_check_prepare_notrace 'an embedded newline' "rpmmacro.at:409"
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}'
27934 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27935 at_status=$? at_failed=false
27937 at_fn_diff_devnull "$at_stderr" || at_failed=:
27938 echo >>"$at_stdout"; $as_echo "
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
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"
27955 at_fn_group_banner 391 'rpmpython.at:6' \
27956 "module import" " " 20
27959 $as_echo "391. $at_setup_line: testing $at_desc ..."
27964 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
27967 runroot rpm --initdb
27971 $as_echo "$at_srcdir/rpmpython.at:6:
27972 cat << EOF > test.py
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)
27979 myprint(rpm.__version__)
27984 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:6"
27986 cat << EOF > test.py
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)
27993 myprint(rpm.__version__)
27998 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
27999 at_status=$? at_failed=false
28001 at_fn_diff_devnull "$at_stderr" || at_failed=:
28002 echo >>"$at_stdout"; $as_echo "4.14.1
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
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"
28016 at_fn_group_banner 392 'rpmpython.at:12' \
28017 "macro manipulation" " " 20
28020 $as_echo "392. $at_setup_line: testing $at_desc ..."
28025 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28028 runroot rpm --initdb
28032 $as_echo "$at_srcdir/rpmpython.at:12:
28033 cat << EOF > test.py
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)
28041 myprint(rpm.expandMacro('%%{?%s}' % m))
28043 mname = '__no_such_macro_yet'
28045 rpm.addMacro(mname, '/bin/sh')
28047 rpm.addMacro(mname, '/bin/false')
28049 rpm.delMacro(mname)
28051 rpm.delMacro(mname)
28057 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:12"
28059 cat << EOF > test.py
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)
28067 myprint(rpm.expandMacro('%%{?%s}' % m))
28069 mname = '__no_such_macro_yet'
28071 rpm.addMacro(mname, '/bin/sh')
28073 rpm.addMacro(mname, '/bin/false')
28075 rpm.delMacro(mname)
28077 rpm.delMacro(mname)
28083 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28084 at_status=$? at_failed=false
28086 at_fn_diff_devnull "$at_stderr" || at_failed=:
28087 echo >>"$at_stdout"; $as_echo "
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
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"
28105 at_fn_group_banner 393 'rpmpython.at:35' \
28106 "basic rpmio" " " 20
28109 $as_echo "393. $at_setup_line: testing $at_desc ..."
28114 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28117 runroot rpm --initdb
28121 $as_echo "$at_srcdir/rpmpython.at:35:
28122 cat << EOF > test.py
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)
28129 msg = 'Killroy was here\\n'
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)
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)
28141 myprint('bad file name %s' % fd.name)
28144 if pos != -2 and pos != len(data):
28145 myprint('bad end pos %d' % fd.tell())
28146 fd = rpm.fd(fn, 'r', iot)
28149 myprint('%s read fail (got %d bytes)\\n%s' % (iot, len(rdata), rdata))
28150 # compressed io types can't seek
28154 fd = rpm.fd(fn, 'r', iot)
28156 myprint('bad file name %s' % fd.name)
28157 rdata = fd.read(len(msg))
28159 myprint('%s sized read fail (got %d bytes)\\n%s' % (iot, len(rdata), rdata))
28164 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:35"
28166 cat << EOF > test.py
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)
28173 msg = 'Killroy was here\n'
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)
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)
28185 myprint('bad file name %s' % fd.name)
28188 if pos != -2 and pos != len(data):
28189 myprint('bad end pos %d' % fd.tell())
28190 fd = rpm.fd(fn, 'r', iot)
28193 myprint('%s read fail (got %d bytes)\n%s' % (iot, len(rdata), rdata))
28194 # compressed io types can't seek
28198 fd = rpm.fd(fn, 'r', iot)
28200 myprint('bad file name %s' % fd.name)
28201 rdata = fd.read(len(msg))
28203 myprint('%s sized read fail (got %d bytes)\n%s' % (iot, len(rdata), rdata))
28208 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28209 at_status=$? at_failed=false
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
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"
28224 at_fn_group_banner 394 'rpmpython.at:70' \
28225 "spec parse" " " 20
28228 $as_echo "394. $at_setup_line: testing $at_desc ..."
28233 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28236 runroot rpm --initdb
28240 $as_echo "$at_srcdir/rpmpython.at:70:
28241 cat << EOF > test.py
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)
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}'))
28259 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:70"
28261 cat << EOF > test.py
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)
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}'))
28279 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28280 at_status=$? at_failed=false
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
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
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"
28300 at_fn_group_banner 395 'rpmpython.at:85' \
28301 "basic header manipulation" " " 20
28304 $as_echo "395. $at_setup_line: testing $at_desc ..."
28309 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28312 runroot rpm --initdb
28316 $as_echo "$at_srcdir/rpmpython.at:85:
28317 cat << EOF > test.py
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)
28325 h['name'] = 'testpkg'
28326 h['version'] = '1.0'
28329 h['arch'] = 'noarch'
28330 myprint(h['nevra'])
28332 myprint(h['nevra'])
28333 for a in ['name', 'bugurl', '__class__', '__foo__', ]:
28337 except AttributeError, exc:
28343 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:85"
28345 cat << EOF > test.py
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)
28353 h['name'] = 'testpkg'
28354 h['version'] = '1.0'
28357 h['arch'] = 'noarch'
28358 myprint(h['nevra'])
28360 myprint(h['nevra'])
28361 for a in ['name', 'bugurl', '__class__', '__foo__', ]:
28365 except AttributeError, exc:
28371 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28372 at_status=$? at_failed=false
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
28380 'rpm.hdr' object has no attribute '__foo__'
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
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"
28394 at_fn_group_banner 396 'rpmpython.at:110' \
28395 "invalid header data" " " 20
28398 $as_echo "396. $at_setup_line: testing $at_desc ..."
28403 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28406 runroot rpm --initdb
28410 $as_echo "$at_srcdir/rpmpython.at:110:
28411 cat << EOF > test.py
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)
28419 h1['basenames'] = ['bing', 'bang', 'bong']
28420 h1['dirnames'] = ['/opt/', '/flopt/']
28421 h1['dirindexes'] = [ 1, 0, 3 ]
28423 h2['basenames'] = ['bing', 'bang', 'bong']
28424 h2['dirnames'] = ['/opt/', '/flopt/']
28425 h2['dirindexes'] = [ 0, 0, 1 ]
28428 myprint(','.join(h['filenames']))
28429 except rpm.error, exc:
28435 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:110"
28437 cat << EOF > test.py
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)
28445 h1['basenames'] = ['bing', 'bang', 'bong']
28446 h1['dirnames'] = ['/opt/', '/flopt/']
28447 h1['dirindexes'] = [ 1, 0, 3 ]
28449 h2['basenames'] = ['bing', 'bang', 'bong']
28450 h2['dirnames'] = ['/opt/', '/flopt/']
28451 h2['dirindexes'] = [ 0, 0, 1 ]
28454 myprint(','.join(h['filenames']))
28455 except rpm.error, exc:
28461 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28462 at_status=$? at_failed=false
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
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
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"
28480 at_fn_group_banner 397 'rpmpython.at:129' \
28481 "reading a package file" " " 20
28484 $as_echo "397. $at_setup_line: testing $at_desc ..."
28489 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28492 runroot rpm --initdb
28496 $as_echo "$at_srcdir/rpmpython.at:129:
28497 cat << EOF > test.py
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)
28505 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-1.0-1.ppc64.rpm')
28511 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:129"
28513 cat << EOF > test.py
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)
28521 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-1.0-1.ppc64.rpm')
28527 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28528 at_status=$? at_failed=false
28530 at_fn_diff_devnull "$at_stderr" || at_failed=:
28531 echo >>"$at_stdout"; $as_echo "ppc64
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
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"
28545 at_fn_group_banner 398 'rpmpython.at:137' \
28546 "reading a signed package file 1" " " 20
28549 $as_echo "398. $at_setup_line: testing $at_desc ..."
28554 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28557 runroot rpm --initdb
28561 $as_echo "$at_srcdir/rpmpython.at:137:
28562 cat << EOF > test.py
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)
28570 # avoid rpmlog spew with absolute path to package
28571 sink = open('/dev/null', 'w')
28572 rpm.setLogFile(sink)
28574 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-2.0-1.x86_64-signed.rpm')
28576 except rpm.error, e:
28582 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:137"
28584 cat << EOF > test.py
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)
28592 # avoid rpmlog spew with absolute path to package
28593 sink = open('/dev/null', 'w')
28594 rpm.setLogFile(sink)
28596 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-2.0-1.x86_64-signed.rpm')
28598 except rpm.error, e:
28604 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28605 at_status=$? at_failed=false
28607 at_fn_diff_devnull "$at_stderr" || at_failed=:
28608 echo >>"$at_stdout"; $as_echo "public key not available
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
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"
28622 at_fn_group_banner 399 'rpmpython.at:152' \
28623 "reading a signed package file 2" " " 20
28626 $as_echo "399. $at_setup_line: testing $at_desc ..."
28631 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28634 runroot rpm --initdb
28638 $as_echo "$at_srcdir/rpmpython.at:152:
28639 cat << EOF > test.py
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)
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)
28653 ts.setKeyring(keyring)
28655 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-2.0-1.x86_64-signed.rpm')
28657 except rpm.error, e:
28663 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:152"
28665 cat << EOF > test.py
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)
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)
28679 ts.setKeyring(keyring)
28681 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-2.0-1.x86_64-signed.rpm')
28683 except rpm.error, e:
28689 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28690 at_status=$? at_failed=false
28692 at_fn_diff_devnull "$at_stderr" || at_failed=:
28693 echo >>"$at_stdout"; $as_echo "x86_64
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
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"
28707 at_fn_group_banner 400 'rpmpython.at:170' \
28708 "add package to transaction" " " 20
28711 $as_echo "400. $at_setup_line: testing $at_desc ..."
28716 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28719 runroot rpm --initdb
28723 $as_echo "$at_srcdir/rpmpython.at:170:
28724 cat << EOF > test.py
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)
28732 ts.addInstall('\${RPMDATA}/RPMS/foo-1.0-1.noarch.rpm', 'u')
28742 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:170"
28744 cat << EOF > test.py
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)
28752 ts.addInstall('${RPMDATA}/RPMS/foo-1.0-1.noarch.rpm', 'u')
28762 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28763 at_status=$? at_failed=false
28765 at_fn_diff_devnull "$at_stderr" || at_failed=:
28766 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
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
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"
28780 at_fn_group_banner 401 'rpmpython.at:182' \
28781 "add bogus package to transaction 1" " " 20
28784 $as_echo "401. $at_setup_line: testing $at_desc ..."
28789 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28792 runroot rpm --initdb
28796 $as_echo "$at_srcdir/rpmpython.at:182:
28797 cat << EOF > test.py
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)
28806 h['name'] = \"foo\"
28808 ts.addInstall(h, 'foo', 'u')
28809 except rpm.error, err:
28817 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:182"
28819 cat << EOF > test.py
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)
28830 ts.addInstall(h, 'foo', 'u')
28831 except rpm.error, err:
28839 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28840 at_status=$? at_failed=false
28842 at_fn_diff_devnull "$at_stderr" || at_failed=:
28843 echo >>"$at_stdout"; $as_echo "adding package to transaction failed
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
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"
28857 at_fn_group_banner 402 'rpmpython.at:196' \
28858 "add bogus package to transaction 2" " " 20
28861 $as_echo "402. $at_setup_line: testing $at_desc ..."
28866 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28869 runroot rpm --initdb
28873 $as_echo "$at_srcdir/rpmpython.at:196:
28874 cat << EOF > test.py
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)
28884 h['version'] = '1.0'
28887 h['arch'] = 'noarch'
28888 h['basenames'] = ['bing', 'bang', 'bong']
28889 h['dirnames'] = ['/opt' '/flopt']
28890 h['dirindexes'] = [ 1, 2, 3 ]
28892 ts.addInstall(h, 'foo', 'u')
28893 except rpm.error, err:
28901 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:196"
28903 cat << EOF > test.py
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)
28913 h['version'] = '1.0'
28916 h['arch'] = 'noarch'
28917 h['basenames'] = ['bing', 'bang', 'bong']
28918 h['dirnames'] = ['/opt' '/flopt']
28919 h['dirindexes'] = [ 1, 2, 3 ]
28921 ts.addInstall(h, 'foo', 'u')
28922 except rpm.error, err:
28930 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28931 at_status=$? at_failed=false
28933 at_fn_diff_devnull "$at_stderr" || at_failed=:
28934 echo >>"$at_stdout"; $as_echo "adding package to transaction failed
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
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"
28948 at_fn_group_banner 403 'rpmpython.at:217' \
28949 "database iterators" " " 20
28952 $as_echo "403. $at_setup_line: testing $at_desc ..."
28957 $as_echo "$at_srcdir/rpmpython.at:219:
28959 rm -rf \"\${abs_builddir}\"/testing\`rpm --eval '%_dbpath'\`/*
28962 runroot rpm --initdb
28965 --justdb --nodeps --ignorearch --ignoreos \\
28966 /data/RPMS/foo-1.0-1.noarch.rpm \\
28967 /data/RPMS/hello-2.0-1.i686.rpm
28969 at_fn_check_prepare_notrace 'a `...` command substitution' "rpmpython.at:219"
28972 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
28975 runroot rpm --initdb
28978 --justdb --nodeps --ignorearch --ignoreos \
28979 /data/RPMS/foo-1.0-1.noarch.rpm \
28980 /data/RPMS/hello-2.0-1.i686.rpm
28982 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
28983 at_status=$? at_failed=false
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
28994 $as_echo "$at_srcdir/rpmpython.at:231:
28995 cat << EOF > test.py
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)
29005 mi.pattern('name', rpm.RPMMIRE_STRCMP, 'hello')
29007 ix = h['dbinstance']
29010 for h in ts.dbMatch('packages', ix):
29011 myprint(h['nevra'])
29016 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:231"
29018 cat << EOF > test.py
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)
29028 mi.pattern('name', rpm.RPMMIRE_STRCMP, 'hello')
29030 ix = h['dbinstance']
29033 for h in ts.dbMatch('packages', ix):
29034 myprint(h['nevra'])
29039 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29040 at_status=$? at_failed=false
29042 at_fn_diff_devnull "$at_stderr" || at_failed=:
29043 echo >>"$at_stdout"; $as_echo "hello-2.0-1.i686
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
29054 $as_echo "$at_srcdir/rpmpython.at:247:
29055 cat << EOF > test.py
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)
29064 mi.pattern('name', rpm.RPMMIRE_DEFAULT, 'f*')
29066 myprint(h['nevra'])
29071 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:247"
29073 cat << EOF > test.py
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)
29082 mi.pattern('name', rpm.RPMMIRE_DEFAULT, 'f*')
29084 myprint(h['nevra'])
29089 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29090 at_status=$? at_failed=false
29092 at_fn_diff_devnull "$at_stderr" || at_failed=:
29093 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
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
29104 $as_echo "$at_srcdir/rpmpython.at:258:
29105 cat << EOF > test.py
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)
29113 for h in ts.dbMatch('name'):
29114 myprint(h['nevra'])
29119 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:258"
29121 cat << EOF > test.py
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)
29129 for h in ts.dbMatch('name'):
29130 myprint(h['nevra'])
29135 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29136 at_status=$? at_failed=false
29138 at_fn_diff_devnull "$at_stderr" || at_failed=:
29139 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
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
29151 $as_echo "$at_srcdir/rpmpython.at:268:
29152 cat << EOF > test.py
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)
29160 for h in ts.dbMatch('obsoletes'):
29161 myprint(h['nevra'])
29166 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:268"
29168 cat << EOF > test.py
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)
29176 for h in ts.dbMatch('obsoletes'):
29177 myprint(h['nevra'])
29182 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29183 at_status=$? at_failed=false
29185 at_fn_diff_devnull "$at_stderr" || at_failed=:
29186 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
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
29197 $as_echo "$at_srcdir/rpmpython.at:277:
29198 cat << EOF > test.py
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)
29206 for h in ts.dbMatch('provides', 'hi'):
29207 myprint(h['nevra'])
29212 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:277"
29214 cat << EOF > test.py
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)
29222 for h in ts.dbMatch('provides', 'hi'):
29223 myprint(h['nevra'])
29228 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29229 at_status=$? at_failed=false
29231 at_fn_diff_devnull "$at_stderr" || at_failed=:
29232 echo >>"$at_stdout"; $as_echo "foo-1.0-1.noarch
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
29243 $as_echo "$at_srcdir/rpmpython.at:286:
29244 cat << EOF > test.py
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)
29252 for h in ts.dbMatch('basenames', '/usr/share/doc/hello-2.0/FAQ'):
29253 myprint(h['nevra'])
29258 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:286"
29260 cat << EOF > test.py
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)
29268 for h in ts.dbMatch('basenames', '/usr/share/doc/hello-2.0/FAQ'):
29269 myprint(h['nevra'])
29274 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29275 at_status=$? at_failed=false
29277 at_fn_diff_devnull "$at_stderr" || at_failed=:
29278 echo >>"$at_stdout"; $as_echo "hello-2.0-1.i686
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
29288 $as_echo "$at_srcdir/rpmpython.at:294:
29289 cat << EOF > test.py
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)
29297 for di in sorted(ts.dbIndex('obsoletes')):
29303 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:294"
29305 cat << EOF > test.py
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)
29313 for di in sorted(ts.dbIndex('obsoletes')):
29319 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29320 at_status=$? at_failed=false
29322 at_fn_diff_devnull "$at_stderr" || at_failed=:
29323 echo >>"$at_stdout"; $as_echo "howdy
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
29334 $as_echo "$at_srcdir/rpmpython.at:303:
29335 cat << EOF > test.py
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)
29343 for di in sorted(ts.dbIndex('provides')):
29349 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:303"
29351 cat << EOF > test.py
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)
29359 for di in sorted(ts.dbIndex('provides')):
29365 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29366 at_status=$? at_failed=false
29368 at_fn_diff_devnull "$at_stderr" || at_failed=:
29369 echo >>"$at_stdout"; $as_echo "foo
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
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"
29386 at_fn_group_banner 404 'rpmpython.at:316' \
29387 "dependency sets 1" " " 20
29390 $as_echo "404. $at_setup_line: testing $at_desc ..."
29395 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29398 runroot rpm --initdb
29402 $as_echo "$at_srcdir/rpmpython.at:316:
29403 cat << EOF > test.py
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)
29411 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-1.0-1.ppc64.rpm')
29412 for dep in rpm.ds(h, 'requires'):
29413 myprint(dep.DNEVR())
29418 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:316"
29420 cat << EOF > test.py
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)
29428 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-1.0-1.ppc64.rpm')
29429 for dep in rpm.ds(h, 'requires'):
29430 myprint(dep.DNEVR())
29435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29436 at_status=$? at_failed=false
29438 at_fn_diff_devnull "$at_stderr" || at_failed=:
29439 echo >>"$at_stdout"; $as_echo "R /bin/sh
29444 R libc.so.6(GLIBC_2.0)
29445 R rpmlib(CompressedFileNames) <= 3.0.4-1
29446 R rpmlib(PayloadFilesHavePrefix) <= 4.0-1
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
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"
29461 at_fn_group_banner 405 'rpmpython.at:333' \
29462 "dependency sets 2" " " 20
29465 $as_echo "405. $at_setup_line: testing $at_desc ..."
29470 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29473 runroot rpm --initdb
29477 $as_echo "$at_srcdir/rpmpython.at:333:
29478 cat << EOF > test.py
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)
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()))
29493 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:333"
29495 cat << EOF > test.py
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)
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()))
29510 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29511 at_status=$? at_failed=false
29513 at_fn_diff_devnull "$at_stderr" || at_failed=:
29514 echo >>"$at_stdout"; $as_echo "0 2
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
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"
29528 at_fn_group_banner 406 'rpmpython.at:343' \
29529 "file info sets 1" " " 20
29532 $as_echo "406. $at_setup_line: testing $at_desc ..."
29537 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29540 runroot rpm --initdb
29544 $as_echo "$at_srcdir/rpmpython.at:343:
29545 cat << EOF > test.py
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)
29553 h = ts.hdrFromFdno('\${RPMDATA}/RPMS/hello-2.0-1.i686.rpm')
29557 myprint('%x: %s' % (fi.FFlags(), fi.FN()))
29562 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:343"
29564 cat << EOF > test.py
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)
29572 h = ts.hdrFromFdno('${RPMDATA}/RPMS/hello-2.0-1.i686.rpm')
29576 myprint('%x: %s' % (fi.FFlags(), fi.FN()))
29581 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29582 at_status=$? at_failed=false
29584 at_fn_diff_devnull "$at_stderr" || at_failed=:
29585 echo >>"$at_stdout"; $as_echo "5
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
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
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"
29604 at_fn_group_banner 407 'rpmpython.at:360' \
29605 "string pool 1" " " 20
29608 $as_echo "407. $at_setup_line: testing $at_desc ..."
29613 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29616 runroot rpm --initdb
29620 $as_echo "$at_srcdir/rpmpython.at:360:
29621 cat << EOF > test.py
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)
29629 for s in ['foo', 'bar', 'foo', 'zoo']:
29631 myprint('%s' % len(p))
29632 for i in range(1, len(p)+1):
29633 myprint('%s: %s' % (i, p[i]))
29638 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:360"
29640 cat << EOF > test.py
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)
29648 for s in ['foo', 'bar', 'foo', 'zoo']:
29650 myprint('%s' % len(p))
29651 for i in range(1, len(p)+1):
29652 myprint('%s: %s' % (i, p[i]))
29657 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29658 at_status=$? at_failed=false
29660 at_fn_diff_devnull "$at_stderr" || at_failed=:
29661 echo >>"$at_stdout"; $as_echo "3
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
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"
29678 at_fn_group_banner 408 'rpmpython.at:375' \
29679 "string pool 2" " " 20
29682 $as_echo "408. $at_setup_line: testing $at_desc ..."
29687 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29690 runroot rpm --initdb
29694 $as_echo "$at_srcdir/rpmpython.at:375:
29695 cat << EOF > test.py
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)
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))
29708 myprint(d1.DNEVR())
29709 myprint(d2.DNEVR())
29710 myprint(d3.DNEVR())
29715 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:375"
29717 cat << EOF > test.py
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)
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))
29730 myprint(d1.DNEVR())
29731 myprint(d2.DNEVR())
29732 myprint(d3.DNEVR())
29737 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29738 at_status=$? at_failed=false
29740 at_fn_diff_devnull "$at_stderr" || at_failed=:
29741 echo >>"$at_stdout"; $as_echo "3
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
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"
29758 at_fn_group_banner 409 'rpmpython.at:393' \
29762 $as_echo "409. $at_setup_line: testing $at_desc ..."
29767 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29770 runroot rpm --initdb
29774 $as_echo "$at_srcdir/rpmpython.at:393:
29775 cat << EOF > test.py
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)
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)
29790 if not f.fflags & rpm.RPMFILE_SPECFILE:
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))
29801 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:393"
29803 cat << EOF > test.py
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)
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)
29818 if not f.fflags & rpm.RPMFILE_SPECFILE:
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))
29829 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29830 at_status=$? at_failed=false
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
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"
29845 at_fn_group_banner 410 'rpmpython.at:413' \
29846 "header unload" " " 20
29849 $as_echo "410. $at_setup_line: testing $at_desc ..."
29854 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29857 runroot rpm --initdb
29861 $as_echo "$at_srcdir/rpmpython.at:413:
29862 cat << EOF > test.py
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)
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
29877 t = h['installtime']
29878 len2 = len(h.unload())
29879 myprint(len1 == len2)
29884 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmpython.at:413"
29886 cat << EOF > test.py
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)
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
29901 t = h['installtime']
29902 len2 = len(h.unload())
29903 myprint(len1 == len2)
29908 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
29909 at_status=$? at_failed=false
29911 at_fn_diff_devnull "$at_stderr" || at_failed=:
29912 echo >>"$at_stdout"; $as_echo "True
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
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"
29926 at_fn_group_banner 411 'rpmdepmatch.at:4' \
29927 "provide - require pairs" " " 21
29930 $as_echo "411. $at_setup_line: testing $at_desc ..."
29935 rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
29938 runroot rpm --initdb
29942 $as_echo "$at_srcdir/rpmdepmatch.at:4:
29943 cat << EOF > test.py
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)
29950 # ((provides), (requires), match) expected values
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
30175 ms = ['no match', 'match']
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)
30183 myprint('FAILED: %s with %s: %s' % (d1.DNEVR(), d2.DNEVR(),ms[res]))
30188 at_fn_check_prepare_notrace 'a ${...} parameter expansion' "rpmdepmatch.at:4"
30190 cat << EOF > test.py
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)
30197 # ((provides), (requires), match) expected values
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
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),
30422 ms = ['no match', 'match']
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)
30430 myprint('FAILED: %s with %s: %s' % (d1.DNEVR(), d2.DNEVR(),ms[res]))
30435 ) >>"$at_stdout" 2>>"$at_stderr" 5>&-
30436 at_status=$? at_failed=false
30438 at_fn_diff_devnull "$at_stderr" || at_failed=:
30439 echo >>"$at_stdout"; $as_echo "
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
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"