Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec'], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-1-armhfp-141266cba3a5b6ce740a2aa67f0f4b0fa39e3d05/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/rpkg-macros-1.0-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec'], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-1-armhfp-141266cba3a5b6ce740a2aa67f0f4b0fa39e3d05/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/rpkg-macros.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.PNwSNS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rpkg-util-macros + /usr/bin/gzip -dc /builddir/build/SOURCES/rpkg-util-macros-58eee122.tar.gz + /usr/bin/tar -xvvf - drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/ -rw-rw-r-- root/root 18092 2020-10-05 18:04 rpkg-util-macros/LICENSE drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/bin/ -rwxrwxr-x root/root 1599 2020-10-05 18:04 rpkg-util-macros/bin/pack_sources drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/examples/ -rw-rw-r-- root/root 2432 2020-10-05 18:04 rpkg-util-macros/examples/git.spec.rpkg -rw-rw-r-- root/root 1180 2020-10-05 18:04 rpkg-util-macros/examples/git_cwd.spec.rpkg -rw-rw-r-- root/root 1309 2020-10-05 18:04 rpkg-util-macros/examples/git_dir.spec.rpkg -rw-rw-r-- root/root 1076 2020-10-05 18:04 rpkg-util-macros/examples/git_repo.spec.rpkg drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/macros.d/ -rw-rw-r-- root/root 313 2020-10-05 18:04 rpkg-util-macros/macros.d/all.bash -rw-rw-r-- root/root 27066 2020-10-05 18:04 rpkg-util-macros/macros.d/git.bash drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/ -rwxrwxr-x root/root 625 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git -rwxrwxr-x root/root 168 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_branch -rwxrwxr-x root/root 126 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_head -rwxrwxr-x root/root 151 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_head_short -rwxrwxr-x root/root 769 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_merged_tag_refs -rwxrwxr-x root/root 533 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_remote -rwxrwxr-x root/root 357 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_remote_url -rwxrwxr-x root/root 239 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_root -rwxrwxr-x root/root 199 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_status -rwxrwxr-x root/root 995 2020-10-05 18:04 rpkg-util-macros/macros.d/helpers/git_submodule_refs drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/macros.d/library/ -rw-rw-r-- root/root 876 2020-10-05 18:04 rpkg-util-macros/macros.d/library/log.bash -rw-rw-r-- root/root 606 2020-10-05 18:04 rpkg-util-macros/macros.d/library/output.bash -rw-rw-r-- root/root 1281 2020-10-05 18:04 rpkg-util-macros/macros.d/library/query.bash -rw-rw-r-- root/root 376 2020-10-05 18:04 rpkg-util-macros/macros.d/library/utils.bash drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/man/ -rw-rw-r-- root/root 27952 2020-10-05 18:04 rpkg-util-macros/man/rpkg-macros.1 -rw-rw-r-- root/root 2119 2020-10-05 18:04 rpkg-util-macros/rpkg-macros.spec.rpkg drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/ -rw-rw-r-- root/root 716 2020-10-05 18:04 rpkg-util-macros/tests/README -rw-rw-r-- root/root 2559 2020-10-05 18:04 rpkg-util-macros/tests/input -rw-rw-r-- root/root 3125 2020-10-05 18:04 rpkg-util-macros/tests/lib.bash -rwxrwxr-x root/root 246 2020-10-05 18:04 rpkg-util-macros/tests/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_bash/ -rw-rw-r-- root/root 78 2020-10-05 18:04 rpkg-util-macros/tests/test_bash/input -rw-rw-r-- root/root 96 2020-10-05 18:04 rpkg-util-macros/tests/test_bash/log -rw-rw-r-- root/root 96 2020-10-05 18:04 rpkg-util-macros/tests/test_bash/output -rwxrwxr-x root/root 408 2020-10-05 18:04 rpkg-util-macros/tests/test_bash/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_committed/ -rw-rw-r-- root/root 3817 2020-10-05 18:04 rpkg-util-macros/tests/test_committed/log -rw-rw-r-- root/root 4164 2020-10-05 18:04 rpkg-util-macros/tests/test_committed/output -rwxrwxr-x root/root 817 2020-10-05 18:04 rpkg-util-macros/tests/test_committed/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_dirty/ -rw-rw-r-- root/root 3817 2020-10-05 18:04 rpkg-util-macros/tests/test_dirty/log -rw-rw-r-- root/root 4377 2020-10-05 18:04 rpkg-util-macros/tests/test_dirty/output -rwxrwxr-x root/root 668 2020-10-05 18:04 rpkg-util-macros/tests/test_dirty/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_bumped_version/ -rw-rw-r-- root/root 271 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_bumped_version/input -rw-rw-r-- root/root 465 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_bumped_version/log -rw-rw-r-- root/root 319 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_bumped_version/output -rwxrwxr-x root/root 351 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_bumped_version/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_git_prefix/ -rw-rw-r-- root/root 198 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_git_prefix/input -rw-rw-r-- root/root 234 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_git_prefix/log -rw-rw-r-- root/root 263 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_git_prefix/output -rwxrwxr-x root/root 627 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_git_prefix/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_physical_subpath/ -rw-rw-r-- root/root 515 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_physical_subpath/input -rw-rw-r-- root/root 581 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_physical_subpath/log -rw-rw-r-- root/root 565 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_physical_subpath/output -rwxrwxr-x root/root 408 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_physical_subpath/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_strict_physical_subpath/ -rw-rw-r-- root/root 589 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_strict_physical_subpath/input -rw-rw-r-- root/root 655 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_strict_physical_subpath/log -rw-rw-r-- root/root 636 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_strict_physical_subpath/output -rwxrwxr-x root/root 408 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_is_strict_physical_subpath/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_version_dirty_appendix/ -rw-rw-r-- root/root 27 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_version_dirty_appendix/input -rw-rw-r-- root/root 33 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_version_dirty_appendix/log -rw-rw-r-- root/root 29 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_version_dirty_appendix/output_clean -rw-rw-r-- root/root 42 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_version_dirty_appendix/output_dirty -rw-rw-r-- root/root 35 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_version_dirty_appendix/output_dirty_manual -rwxrwxr-x root/root 1118 2020-10-05 18:04 rpkg-util-macros/tests/test_fn_version_dirty_appendix/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_inited/ -rw-rw-r-- root/root 8188 2020-10-05 18:04 rpkg-util-macros/tests/test_inited/log -rw-rw-r-- root/root 2999 2020-10-05 18:04 rpkg-util-macros/tests/test_inited/output -rwxrwxr-x root/root 500 2020-10-05 18:04 rpkg-util-macros/tests/test_inited/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_inited_origin_set/ -rw-rw-r-- root/root 4643 2020-10-05 18:04 rpkg-util-macros/tests/test_inited_origin_set/log -rw-rw-r-- root/root 3558 2020-10-05 18:04 rpkg-util-macros/tests/test_inited_origin_set/output -rwxrwxr-x root/root 569 2020-10-05 18:04 rpkg-util-macros/tests/test_inited_origin_set/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_sources/ -rw-rw-r-- root/root 127 2020-10-05 18:04 rpkg-util-macros/tests/test_sources/input -rw-rw-r-- root/root 289 2020-10-05 18:04 rpkg-util-macros/tests/test_sources/log -rw-rw-r-- root/root 141 2020-10-05 18:04 rpkg-util-macros/tests/test_sources/output -rwxrwxr-x root/root 954 2020-10-05 18:04 rpkg-util-macros/tests/test_sources/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed/ -rw-rw-r-- root/root 127 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed/input -rw-rw-r-- root/root 247 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed/log -rw-rw-r-- root/root 151 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed/output -rwxrwxr-x root/root 2998 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed_dirty/ -rw-rw-r-- root/root 127 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed_dirty/input -rw-rw-r-- root/root 193 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed_dirty/log -rw-rw-r-- root/root 151 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed_dirty/output -rwxrwxr-x root/root 1281 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_committed_dirty/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_subdir/ -rw-rw-r-- root/root 763 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_subdir/input -rw-rw-r-- root/root 1478 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_subdir/log -rw-rw-r-- root/root 1069 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_subdir/output -rwxrwxr-x root/root 2682 2020-10-05 18:04 rpkg-util-macros/tests/test_sources_subdir/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_subdir/ -rw-rw-r-- root/root 4643 2020-10-05 18:04 rpkg-util-macros/tests/test_subdir/log -rw-rw-r-- root/root 3588 2020-10-05 18:04 rpkg-util-macros/tests/test_subdir/output -rwxrwxr-x root/root 546 2020-10-05 18:04 rpkg-util-macros/tests/test_subdir/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/ -rw-rw-r-- root/root 451 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/input -rw-rw-r-- root/root 106 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/input_cwd -rw-rw-r-- root/root 106 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/input_dir -rw-rw-r-- root/root 523 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/log -rw-rw-r-- root/root 148 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/log_cwd -rw-rw-r-- root/root 148 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/log_dir -rw-rw-r-- root/root 1010 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/output -rw-rw-r-- root/root 385 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/output_cwd -rw-rw-r-- root/root 350 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/output_dir -rwxrwxr-x root/root 1428 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule_sources/ -rw-rw-r-- root/root 114 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule_sources/input_archive -rw-rw-r-- root/root 105 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule_sources/input_pack -rwxrwxr-x root/root 5980 2020-10-05 18:04 rpkg-util-macros/tests/test_submodule_sources/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_tagged/ -rw-rw-r-- root/root 3817 2020-10-05 18:04 rpkg-util-macros/tests/test_tagged/log -rw-rw-r-- root/root 6953 2020-10-05 18:04 rpkg-util-macros/tests/test_tagged/output -rwxrwxr-x root/root 1676 2020-10-05 18:04 rpkg-util-macros/tests/test_tagged/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_tagged_committed/ -rw-rw-r-- root/root 3817 2020-10-05 18:04 rpkg-util-macros/tests/test_tagged_committed/log -rw-rw-r-- root/root 4436 2020-10-05 18:04 rpkg-util-macros/tests/test_tagged_committed/output -rwxrwxr-x root/root 796 2020-10-05 18:04 rpkg-util-macros/tests/test_tagged_committed/run drwxrwxr-x root/root 0 2020-10-05 18:04 rpkg-util-macros/tests/test_uninited/ -rw-rw-r-- root/root 10291 2020-10-05 18:04 rpkg-util-macros/tests/test_uninited/log -rw-rw-r-- root/root 2783 2020-10-05 18:04 rpkg-util-macros/tests/test_uninited/output -rwxrwxr-x root/root 355 2020-10-05 18:04 rpkg-util-macros/tests/test_uninited/run Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.yNv5vL + STATUS=0 + '[' 0 -ne 0 ']' + cd rpkg-util-macros + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch ++ dirname /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch + cd rpkg-util-macros + install -d /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/lib + install -d /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/lib/rpkg.macros.d + cp -ar macros.d/all.bash macros.d/git.bash macros.d/helpers macros.d/library /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/lib/rpkg.macros.d + install -d /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/bin + install -p -m 755 bin/pack_sources /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/bin/pack_sources + install -d /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/share/man/man1 + install -p -m 644 man/rpkg-macros.1 /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch//usr/share/man/man1/ + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/rpkg-util-macros /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ubeSxt + umask 022 + cd /builddir/build/BUILD + cd rpkg-util-macros + PATH=bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/.local/bin:/builddir/bin + tests/run ====================== test_bash ====================== Initialized empty Git repository in /tmp/tmp.H24kWqnWJE/.git/ > cat /tmp/tmp.H24kWqnWJE/input | preproc -C /tmp/tmp.H24kWqnWJE -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.H24kWqnWJE' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.osiFoiqpOW/output | log_filter > /tmp/tmp.osiFoiqpOW/log > diff /tmp/tmp.v8r6mEUdpH/output /tmp/tmp.osiFoiqpOW/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.osiFoiqpOW/log && die; } > diff log /tmp/tmp.osiFoiqpOW/log || die success. ====================== test_committed ====================== Initialized empty Git repository in /tmp/tmp.sEz4Ac3kp3/.git/ [master (root-commit) c1d9433] commit 1 1 file changed, 117 insertions(+) create mode 100644 input [master 9c7c7fe] commit 2 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 foo/file [master 1cbf53a] commit 3 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 bar/file > cat /tmp/tmp.sEz4Ac3kp3/input | preproc -C /tmp/tmp.sEz4Ac3kp3 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.sEz4Ac3kp3' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.jKPGGikTMf/output | log_filter > /tmp/tmp.jKPGGikTMf/log > diff /tmp/tmp.X0hYe9nIlT/output /tmp/tmp.jKPGGikTMf/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.jKPGGikTMf/log && die; } > diff log /tmp/tmp.jKPGGikTMf/log || die success. ====================== test_dirty ====================== Initialized empty Git repository in /tmp/tmp.Fu8oSofZrr/.git/ [master (root-commit) 95e7532] inital_commit 2 files changed, 117 insertions(+) create mode 100644 foo/file create mode 100644 input > cat /tmp/tmp.Fu8oSofZrr/input | preproc -C /tmp/tmp.Fu8oSofZrr -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.Fu8oSofZrr' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.qbe4DHRame/output | log_filter > /tmp/tmp.qbe4DHRame/log > diff /tmp/tmp.cyWlrfYN7D/output /tmp/tmp.qbe4DHRame/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.qbe4DHRame/log && die; } > diff log /tmp/tmp.qbe4DHRame/log || die success. ====================== test_fn_bumped_version ====================== > cat /tmp/tmp.33x7yEfLZk/input | preproc -C /tmp/tmp.33x7yEfLZk -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.33x7yEfLZk' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.ey40qq4VtI/output | log_filter > /tmp/tmp.ey40qq4VtI/log > diff /tmp/tmp.JFJdbyNZLR/output /tmp/tmp.ey40qq4VtI/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.ey40qq4VtI/log && die; } > diff log /tmp/tmp.ey40qq4VtI/log || die success. ====================== test_fn_git_prefix ====================== Initialized empty Git repository in /tmp/tmp.9AhptixZea/.git/ [master (root-commit) 4dd326a] add subdir with file 2 files changed, 6 insertions(+) create mode 100644 input create mode 100644 subdir/file Cloning into 'submodule'... done. [master 274d773] add submodule 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 submodule > cat /tmp/tmp.9AhptixZea/input | preproc -C /tmp/tmp.9AhptixZea -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.9AhptixZea' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.PIPlh9vfst/output | log_filter > /tmp/tmp.PIPlh9vfst/log > diff /tmp/tmp.s0Xp3VUp4A/output /tmp/tmp.PIPlh9vfst/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.PIPlh9vfst/log && die; } > diff log /tmp/tmp.PIPlh9vfst/log || die success. ====================== test_fn_is_physical_subpath ====================== Initialized empty Git repository in /tmp/tmp.3mfSexQCWg/.git/ > cat /tmp/tmp.3mfSexQCWg/input | preproc -C /tmp/tmp.3mfSexQCWg -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.3mfSexQCWg' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.Xz6ijgCDt7/output | log_filter > /tmp/tmp.Xz6ijgCDt7/log > diff /tmp/tmp.j2JQCzkcxN/output /tmp/tmp.Xz6ijgCDt7/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.Xz6ijgCDt7/log && die; } > diff log /tmp/tmp.Xz6ijgCDt7/log || die success. ====================== test_fn_is_strict_physical_subpath ====================== Initialized empty Git repository in /tmp/tmp.6PY2BzHzrT/.git/ > cat /tmp/tmp.6PY2BzHzrT/input | preproc -C /tmp/tmp.6PY2BzHzrT -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.6PY2BzHzrT' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.CxCSlz7zH9/output | log_filter > /tmp/tmp.CxCSlz7zH9/log > diff /tmp/tmp.X8Z6cCNfqg/output /tmp/tmp.CxCSlz7zH9/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.CxCSlz7zH9/log && die; } > diff log /tmp/tmp.CxCSlz7zH9/log || die success. ====================== test_fn_version_dirty_appendix ====================== Initialized empty Git repository in /tmp/tmp.QzBgp8e4ll/.git/ [master (root-commit) d6207ea] hello world 3 files changed, 3 insertions(+) create mode 100644 cookie create mode 100644 foo/cookie create mode 100644 input > cat /tmp/tmp.QzBgp8e4ll/input | preproc -C /tmp/tmp.QzBgp8e4ll -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.QzBgp8e4ll' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.HY4WXfIjB5/output | log_filter > /tmp/tmp.HY4WXfIjB5/log > diff /tmp/tmp.dvPuTEJmpw/output_clean /tmp/tmp.HY4WXfIjB5/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.HY4WXfIjB5/log && die; } > diff log /tmp/tmp.HY4WXfIjB5/log || die success. > cat /tmp/tmp.QzBgp8e4ll/input | preproc -C /tmp/tmp.QzBgp8e4ll -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.QzBgp8e4ll' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.HY4WXfIjB5/output | log_filter > /tmp/tmp.HY4WXfIjB5/log > diff /tmp/tmp.dvPuTEJmpw/output_dirty /tmp/tmp.HY4WXfIjB5/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.HY4WXfIjB5/log && die; } > diff log /tmp/tmp.HY4WXfIjB5/log || die success. > cat /tmp/tmp.QzBgp8e4ll/input | preproc -C /tmp/tmp.QzBgp8e4ll -e GIT_DIRTY=1 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.QzBgp8e4ll' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.HY4WXfIjB5/output | log_filter > /tmp/tmp.HY4WXfIjB5/log > diff /tmp/tmp.dvPuTEJmpw/output_dirty_manual /tmp/tmp.HY4WXfIjB5/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.HY4WXfIjB5/log && die; } > diff log /tmp/tmp.HY4WXfIjB5/log || die success. ====================== test_inited ====================== Initialized empty Git repository in /tmp/tmp.xEOvYYUoNW/.git/ > cat /tmp/tmp.xEOvYYUoNW/input | preproc -C /tmp/tmp.xEOvYYUoNW -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.xEOvYYUoNW' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.KpVCDDH2gB/output | log_filter > /tmp/tmp.KpVCDDH2gB/log > diff /tmp/tmp.dHqnpU8jDY/output /tmp/tmp.KpVCDDH2gB/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.KpVCDDH2gB/log && die; } > diff log /tmp/tmp.KpVCDDH2gB/log || die success. ====================== test_inited_origin_set ====================== Initialized empty Git repository in /tmp/tmp.68tcRcT8bu/.git/ > cat /tmp/tmp.68tcRcT8bu/input | preproc -C /tmp/tmp.68tcRcT8bu -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.68tcRcT8bu' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.8gXjwi8Pwe/output | log_filter > /tmp/tmp.8gXjwi8Pwe/log > diff /tmp/tmp.1yKQ8T1iN9/output /tmp/tmp.8gXjwi8Pwe/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.8gXjwi8Pwe/log && die; } > diff log /tmp/tmp.8gXjwi8Pwe/log || die success. ====================== test_sources ====================== Initialized empty Git repository in /tmp/tmp.QADj2MVpgC/.git/ > cat /tmp/tmp.QADj2MVpgC/input | preproc -C /tmp/tmp.QADj2MVpgC -e OUTDIR=/tmp/tmp.8QI3jr6Uj4 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.QADj2MVpgC' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.8QI3jr6Uj4/output | log_filter > /tmp/tmp.8QI3jr6Uj4/log > diff /tmp/tmp.mOKr2nSu5Z/output /tmp/tmp.8QI3jr6Uj4/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.8QI3jr6Uj4/log && die; } > diff log /tmp/tmp.8QI3jr6Uj4/log || die > custom_test > tar -C /tmp/tmp.8QI3jr6Uj4 -xf /tmp/tmp.8QI3jr6Uj4/foo.tar.gz || die > diff /tmp/tmp.8QI3jr6Uj4/foo/cookie /tmp/tmp.QADj2MVpgC/cookie || die > ls /tmp/tmp.8QI3jr6Uj4/foo/cookie_ignored 2>/dev/null && die > ls /tmp/tmp.8QI3jr6Uj4/foo/cookie_unadded 2>/dev/null && die success. ====================== test_sources_committed ====================== Initialized empty Git repository in /tmp/tmp.SjTror6LaB/.git/ [master (root-commit) 4e9ad9f] commit 1 2 files changed, 3 insertions(+) create mode 100644 cookie create mode 100644 input > cat /tmp/tmp.SjTror6LaB/input | preproc -C /tmp/tmp.SjTror6LaB -e OUTDIR=/tmp/tmp.3scR6G6LBD -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.SjTror6LaB' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.3scR6G6LBD/output | log_filter > /tmp/tmp.3scR6G6LBD/log > diff /tmp/tmp.9JddZ1jYeV/output /tmp/tmp.3scR6G6LBD/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.3scR6G6LBD/log && die; } > diff log /tmp/tmp.3scR6G6LBD/log || die > custom_test > tar -C /tmp/tmp.3scR6G6LBD -xf /tmp/tmp.3scR6G6LBD/foo.tar.gz || die > diff /tmp/tmp.3scR6G6LBD/foo/cookie /tmp/tmp.SjTror6LaB/cookie || die > [ '4e9ad9f9399a9560c107a72b8f794cd40389fe9e' = '4e9ad9f9399a9560c107a72b8f794cd40389fe9e' ] || die > tar -C /tmp/tmp.3scR6G6LBD -xf /tmp/tmp.3scR6G6LBD/bar.tar.gz || die > diff /tmp/tmp.3scR6G6LBD/bar/cookie /tmp/tmp.SjTror6LaB/cookie || die > [ '4e9ad9f9399a9560c107a72b8f794cd40389fe9e' = '4e9ad9f9399a9560c107a72b8f794cd40389fe9e' ] || die success. > cat /tmp/tmp.SjTror6LaB/input | preproc -C /tmp/tmp.SjTror6LaB -e OUTDIR=/tmp/tmp.3scR6G6LBD -e GIT_STATUS=somestatus -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.SjTror6LaB' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.3scR6G6LBD/output | log_filter > /tmp/tmp.3scR6G6LBD/log > test_nonempty_git_status > tar -C /tmp/tmp.3scR6G6LBD -xf /tmp/tmp.3scR6G6LBD/foo.tar.gz || die > diff /tmp/tmp.3scR6G6LBD/foo/cookie /tmp/tmp.SjTror6LaB/cookie || die > [ '4e9ad9f9399a9560c107a72b8f794cd40389fe9e' = '' ] && die > tar -C /tmp/tmp.3scR6G6LBD -xf /tmp/tmp.3scR6G6LBD/bar.tar.gz || die > diff /tmp/tmp.3scR6G6LBD/bar/cookie /tmp/tmp.SjTror6LaB/cookie || die > [ '4e9ad9f9399a9560c107a72b8f794cd40389fe9e' = '4e9ad9f9399a9560c107a72b8f794cd40389fe9e' ] || die success. > cat /tmp/tmp.SjTror6LaB/input | preproc -C /tmp/tmp.SjTror6LaB -e OUTDIR=/tmp/tmp.3scR6G6LBD -e GIT_HEAD=somehead -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.SjTror6LaB' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.3scR6G6LBD/output | log_filter > /tmp/tmp.3scR6G6LBD/log > test_invalid_git_head > [ -f '/tmp/tmp.3scR6G6LBD/foo.tar.gz' ] && die > [ -f '/tmp/tmp.3scR6G6LBD/bar.tar.gz' ] && die success. > cat /tmp/tmp.SjTror6LaB/input | preproc -C /tmp/tmp.SjTror6LaB -e OUTDIR=/tmp/tmp.3scR6G6LBD -e GIT_HEAD= -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.SjTror6LaB' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.3scR6G6LBD/output | log_filter > /tmp/tmp.3scR6G6LBD/log > test_empty_git_head > tar -C /tmp/tmp.3scR6G6LBD -xf /tmp/tmp.3scR6G6LBD/foo.tar.gz || die > diff /tmp/tmp.3scR6G6LBD/foo/cookie /tmp/tmp.SjTror6LaB/cookie || die > [ '4e9ad9f9399a9560c107a72b8f794cd40389fe9e' = '' ] && die > [ -f '/tmp/tmp.3scR6G6LBD/bar.tar.gz' ] && die success. ====================== test_sources_committed_dirty ====================== Initialized empty Git repository in /tmp/tmp.fZGnnJ8hgn/.git/ [master (root-commit) fd3b71b] commit 1 2 files changed, 3 insertions(+) create mode 100644 cookie create mode 100644 input > cat /tmp/tmp.fZGnnJ8hgn/input | preproc -C /tmp/tmp.fZGnnJ8hgn -e OUTDIR=/tmp/tmp.1yulG14Oo0 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.fZGnnJ8hgn' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.1yulG14Oo0/output | log_filter > /tmp/tmp.1yulG14Oo0/log > diff /tmp/tmp.pLXt5NvbD9/output /tmp/tmp.1yulG14Oo0/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.1yulG14Oo0/log && die; } > diff log /tmp/tmp.1yulG14Oo0/log || die > custom_test > tar -C /tmp/tmp.1yulG14Oo0 -xf /tmp/tmp.1yulG14Oo0/foo.tar.gz || die > diff /tmp/tmp.1yulG14Oo0/foo/cookie /tmp/tmp.fZGnnJ8hgn/cookie || die > [ 'fd3b71b1ec8ed58f10ad9f8e33d0e3b0e613c3c9' = '' ] && die > tar -C /tmp/tmp.1yulG14Oo0 -xf /tmp/tmp.1yulG14Oo0/bar.tar.gz || die > diff /tmp/tmp.1yulG14Oo0/bar/cookie /tmp/tmp.fZGnnJ8hgn/cookie >/dev/null && die > [ 'fd3b71b1ec8ed58f10ad9f8e33d0e3b0e613c3c9' = 'fd3b71b1ec8ed58f10ad9f8e33d0e3b0e613c3c9' ] || die success. ====================== test_sources_subdir ====================== Initialized empty Git repository in /tmp/tmp.eZvqxNhPeE/.git/ [master (root-commit) 04e7454] commit 1 5 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 bar/cookie create mode 100644 bar/input create mode 100644 baz/cookie create mode 100644 foo/cookie > cat /tmp/tmp.eZvqxNhPeE/bar/input | preproc -C /tmp/tmp.eZvqxNhPeE/foo -e OUTDIR=/tmp/tmp.RjoWwBogT5 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.eZvqxNhPeE/bar' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.RjoWwBogT5/output | log_filter > /tmp/tmp.RjoWwBogT5/log > diff /tmp/tmp.wtU1T05UMa/output /tmp/tmp.RjoWwBogT5/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.RjoWwBogT5/log && die; } > diff log /tmp/tmp.RjoWwBogT5/log || die > custom_test > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/dir_pack_nodirname.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/test-bar/cookie /tmp/tmp.eZvqxNhPeE/bar/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/dir_archive_nodirname.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/test-bar/cookie /tmp/tmp.eZvqxNhPeE/bar/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/dir_pack_foo.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/foo/cookie /tmp/tmp.eZvqxNhPeE/bar/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/dir_archive_bar.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/bar/cookie /tmp/tmp.eZvqxNhPeE/bar/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/cwd_pack_nodirname.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/test-foo/cookie /tmp/tmp.eZvqxNhPeE/foo/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/cwd_archive_nodirname.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/test-foo/cookie /tmp/tmp.eZvqxNhPeE/foo/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/cwd_pack_foo.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/foo/cookie /tmp/tmp.eZvqxNhPeE/foo/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/cwd_archive_bar.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/bar/cookie /tmp/tmp.eZvqxNhPeE/foo/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/baz_pack_nodirname.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/test-baz/cookie /tmp/tmp.eZvqxNhPeE/baz/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/baz_archive_nodirname.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/test-baz/cookie /tmp/tmp.eZvqxNhPeE/baz/cookie || die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/baz_pack_foo.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/foo/cookie /tmp/tmp.eZvqxNhPeE/baz/cookie || die > ls /tmp/tmp.RjoWwBogT5/foo/cookie_ignored 2>/dev/null && die > ls /tmp/tmp.RjoWwBogT5/foo/cookie_unadded 2>/dev/null && die > tar -C /tmp/tmp.RjoWwBogT5 -xf /tmp/tmp.RjoWwBogT5/baz_archive_bar.tar.gz || die > diff /tmp/tmp.RjoWwBogT5/bar/cookie /tmp/tmp.eZvqxNhPeE/baz/cookie || die > ls /tmp/tmp.RjoWwBogT5/bar/cookie_ignored 2>/dev/null && die > ls /tmp/tmp.RjoWwBogT5/bar/cookie_unadded 2>/dev/null && die success. ====================== test_subdir ====================== Initialized empty Git repository in /tmp/tmp.nYtuKvcnNm/.git/ > cat /tmp/tmp.nYtuKvcnNm/bar/input | preproc -C /tmp/tmp.nYtuKvcnNm/foo -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.nYtuKvcnNm/bar' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.a7nDOTkZjv/output | log_filter > /tmp/tmp.a7nDOTkZjv/log > diff /tmp/tmp.9nFhvJlogU/output /tmp/tmp.a7nDOTkZjv/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.a7nDOTkZjv/log && die; } > diff log /tmp/tmp.a7nDOTkZjv/log || die success. ====================== test_submodule ====================== Initialized empty Git repository in /tmp/tmp.EyRjXcj3UM/.git/ [master (root-commit) b8748f4] initial commit 4 files changed, 26 insertions(+) create mode 100644 input create mode 100644 input_cwd create mode 100644 input_dir create mode 100644 subdir/file Cloning into 'submodule'... done. [master 4dc9332] add submodule 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 submodule > cat /tmp/tmp.EyRjXcj3UM/input | preproc -C /tmp/tmp.EyRjXcj3UM -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.EyRjXcj3UM' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.tOEZjLuGtm/output | log_filter > /tmp/tmp.tOEZjLuGtm/log > diff /tmp/tmp.NZOmIpprk9/output /tmp/tmp.tOEZjLuGtm/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.tOEZjLuGtm/log && die; } > diff log /tmp/tmp.tOEZjLuGtm/log || die success. > cat /tmp/tmp.EyRjXcj3UM/submodule/input_dir | preproc -C /tmp/tmp.EyRjXcj3UM -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.EyRjXcj3UM/submodule' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.tOEZjLuGtm/output | log_filter > /tmp/tmp.tOEZjLuGtm/log > diff /tmp/tmp.NZOmIpprk9/output_dir /tmp/tmp.tOEZjLuGtm/output || { echo 'LOG DIFF:' && diff log_dir /tmp/tmp.tOEZjLuGtm/log && die; } > diff log_dir /tmp/tmp.tOEZjLuGtm/log || die success. > cat /tmp/tmp.EyRjXcj3UM/submodule/input_cwd | preproc -C /tmp/tmp.EyRjXcj3UM/submodule/subdir -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.EyRjXcj3UM/submodule' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.tOEZjLuGtm/output | log_filter > /tmp/tmp.tOEZjLuGtm/log > diff /tmp/tmp.NZOmIpprk9/output_cwd /tmp/tmp.tOEZjLuGtm/output || { echo 'LOG DIFF:' && diff log_cwd /tmp/tmp.tOEZjLuGtm/log && die; } > diff log_cwd /tmp/tmp.tOEZjLuGtm/log || die success. ====================== test_submodule_sources ====================== Initialized empty Git repository in /tmp/tmp.yVbmzhLYsD/.git/ [master (root-commit) cf139db] initial commit 3 files changed, 7 insertions(+) create mode 100644 input_archive create mode 100644 input_pack create mode 100644 subdir/cookie Cloning into 'submodule'... done. [master 806969d] add submodule 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 submodule > cat /tmp/tmp.yVbmzhLYsD/input_archive | preproc -C /tmp/tmp.yVbmzhLYsD -e OUTDIR=/tmp/tmp.TLURp1ksf0 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.yVbmzhLYsD' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.TLURp1ksf0/output | log_filter > /tmp/tmp.TLURp1ksf0/log > custom_test_archive_clean > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-806969d9.tar.gz || die > [ -d /tmp/tmp.TLURp1ksf0/test/submodule/subdir ] && die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie ] || die > cat /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie | grep -q 0 || die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-subdir-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie ] || die > cat /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie | grep -q 0 || die success. > cat /tmp/tmp.yVbmzhLYsD/input_pack | preproc -C /tmp/tmp.yVbmzhLYsD -e OUTDIR=/tmp/tmp.TLURp1ksf0 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.yVbmzhLYsD' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.TLURp1ksf0/output | log_filter > /tmp/tmp.TLURp1ksf0/log > custom_test_pack_clean > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test/submodule/subdir ] && die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie ] || die > cat /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie | grep -q 0 || die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-subdir-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie ] || die > cat /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie | grep -q 0 || die success. [master 4834d26] submodule new commit 1 file changed, 1 insertion(+) > cat /tmp/tmp.yVbmzhLYsD/input_archive | preproc -C /tmp/tmp.yVbmzhLYsD -e OUTDIR=/tmp/tmp.TLURp1ksf0 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.yVbmzhLYsD' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.TLURp1ksf0/output | log_filter > /tmp/tmp.TLURp1ksf0/log > custom_test_archive_submodule_new_commit > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-806969d9.tar.gz || die > [ -d /tmp/tmp.TLURp1ksf0/test/submodule/subdir ] && die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie ] || die > cat /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie | grep -q 0 || die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-subdir-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie ] || die > cat /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie | grep -q 0 || die success. > cat /tmp/tmp.yVbmzhLYsD/input_pack | preproc -C /tmp/tmp.yVbmzhLYsD -e OUTDIR=/tmp/tmp.TLURp1ksf0 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.yVbmzhLYsD' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.TLURp1ksf0/output | log_filter > /tmp/tmp.TLURp1ksf0/log > custom_test_pack_submodule_new_commit > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-806969d9-dirty.tar.gz || die > [ -d /tmp/tmp.TLURp1ksf0/test/submodule/subdir ] && die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-806969d9-dirty.tar.gz || die > cat /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie | grep -q 1 || die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-subdir-806969d9.tar.gz || die > cat /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie | grep -q 1 || die success. > cat /tmp/tmp.yVbmzhLYsD/input_archive | preproc -C /tmp/tmp.yVbmzhLYsD -e OUTDIR=/tmp/tmp.TLURp1ksf0 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.yVbmzhLYsD' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.TLURp1ksf0/output | log_filter > /tmp/tmp.TLURp1ksf0/log > custom_test_archive_submodule_dirty > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-806969d9.tar.gz || die > [ -d /tmp/tmp.TLURp1ksf0/test/submodule/subdir ] && die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie ] || die > cat /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie | grep -q 0 || die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-subdir-806969d9.tar.gz || die > [ -f /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie ] || die > cat /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie | grep -q 0 || die success. > cat /tmp/tmp.yVbmzhLYsD/input_pack | preproc -C /tmp/tmp.yVbmzhLYsD -e OUTDIR=/tmp/tmp.TLURp1ksf0 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.yVbmzhLYsD' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.TLURp1ksf0/output | log_filter > /tmp/tmp.TLURp1ksf0/log > custom_test_pack_submodule_dirty > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-806969d9-dirty.tar.gz || die > [ -d /tmp/tmp.TLURp1ksf0/test/submodule/subdir ] && die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-806969d9-dirty.tar.gz || die > cat /tmp/tmp.TLURp1ksf0/test-submodule/subdir/cookie | grep -q 2 || die > tar -C /tmp/tmp.TLURp1ksf0 -xf /tmp/tmp.TLURp1ksf0/test-submodule-subdir-806969d9.tar.gz || die > cat /tmp/tmp.TLURp1ksf0/test-submodule-subdir/cookie | grep -q 2 || die success. ====================== test_tagged ====================== Initialized empty Git repository in /tmp/tmp.z5npAand0Z/.git/ [master (root-commit) 1548bec] inital_commit 2 files changed, 117 insertions(+) create mode 100644 foo/file create mode 100644 input Switched to a new branch 'side_branch' [side_branch dc348e3] side branch commit 1 file changed, 1 insertion(+) Switched to branch 'master' > cat /tmp/tmp.z5npAand0Z/input | preproc -C /tmp/tmp.z5npAand0Z -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.z5npAand0Z' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.tr1v4NhwF4/output | log_filter > /tmp/tmp.tr1v4NhwF4/log > diff /tmp/tmp.Bp9mPZQv1A/output /tmp/tmp.tr1v4NhwF4/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.tr1v4NhwF4/log && die; } > diff log /tmp/tmp.tr1v4NhwF4/log || die success. ====================== test_tagged_committed ====================== Initialized empty Git repository in /tmp/tmp.5Vwl371PFc/.git/ [master (root-commit) 242101b] inital_commit 2 files changed, 117 insertions(+) create mode 100644 foo/file create mode 100644 input [master 256f10b] commit after tag 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 file > cat /tmp/tmp.5Vwl371PFc/input | preproc -C /tmp/tmp.5Vwl371PFc -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.5Vwl371PFc' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.Lmp58jgUpC/output | log_filter > /tmp/tmp.Lmp58jgUpC/log > diff /tmp/tmp.MMaiPUI8jP/output /tmp/tmp.Lmp58jgUpC/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.Lmp58jgUpC/log && die; } > diff log /tmp/tmp.Lmp58jgUpC/log || die success. ====================== test_uninited ====================== > cat /tmp/tmp.ysWKYm84n2/input | preproc -C /tmp/tmp.ysWKYm84n2 -e PATH=/builddir/build/BUILD/rpkg-util-macros/tests/../bin:/usr/bin:/bin -e INPUT_DIR_PATH='/tmp/tmp.ysWKYm84n2' -s /builddir/build/BUILD/rpkg-util-macros/tests/../macros.d/all.bash --debug --no-break-on-failure 2>&1 > /tmp/tmp.tMkhCgejUM/output | log_filter > /tmp/tmp.tMkhCgejUM/log > diff /tmp/tmp.4xF7HW89Yv/output /tmp/tmp.tMkhCgejUM/output || { echo 'LOG DIFF:' && diff log /tmp/tmp.tMkhCgejUM/log && die; } > diff log /tmp/tmp.tMkhCgejUM/log || die success. + exit 0 Processing files: rpkg-macros-1.0-1.el7.noarch Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.eKog1A + umask 022 + cd /builddir/build/BUILD + cd rpkg-util-macros + LICENSEDIR=/builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/share/licenses/rpkg-macros-1.0 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/share/licenses/rpkg-macros-1.0 + cp -pr LICENSE /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch/usr/share/licenses/rpkg-macros-1.0 + exit 0 Provides: rpkg-macros = 1.0-1.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/bash Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch Wrote: /builddir/build/RPMS/rpkg-macros-1.0-1.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.6kxPkG + umask 022 + cd /builddir/build/BUILD + cd rpkg-util-macros + /usr/bin/rm -rf /builddir/build/BUILDROOT/rpkg-macros-1.0-1.el7.noarch + exit 0 Child return code was: 0