Synchronise with Fedora 37: * Uses PCRE2 instead of PCRE. * Remove Obsolete/Provides etc used for upgrades from Fedora 31. * libguestfs-tools-c was renamed to guestfs-tools in Fedora 34. * gnulib removed upstream. * Some specfile modernization. Add gating tests resolves: rhbz#1990052
20 lines
573 B
Bash
Executable File
20 lines
573 B
Bash
Executable File
#!/bin/bash -
|
|
set -e
|
|
set -x
|
|
|
|
# This is a difficult package to test in gating because building the
|
|
# virt-p2v ISO requires virt-builder, and even if we run it, it
|
|
# doesn't prove anything useful. Doing a full P2V conversion is even
|
|
# more difficult (and requires virt-v2v which we are unlikely to
|
|
# have). So just check that the virt-p2v binary looks sane.
|
|
tmpdir="$( mktemp -d )"
|
|
cd "$tmpdir"
|
|
xzcat /usr/lib64/virt-p2v/virt-p2v.xz > virt-p2v
|
|
chmod +x virt-p2v
|
|
./virt-p2v --version
|
|
./virt-p2v --help
|
|
./virt-p2v --long-options
|
|
./virt-p2v --short-options
|
|
cd
|
|
rm -r "$tmpdir"
|