Skip to content

Commit

Permalink
sort test order by build time
Browse files Browse the repository at this point in the history
  • Loading branch information
psimovec committed Feb 22, 2022
1 parent 570cd81 commit 4bb8729
Show file tree
Hide file tree
Showing 2 changed files with 317 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/rpm-pkgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ macro(add_test_wrap name cmd)
if(NOT "${props}" STREQUAL "")
set_tests_properties(${name} PROPERTIES ${props})
endif()
execute_process(COMMAND python tests/rpm-pkgs/cost.py ${name}
OUTPUT_VARIABLE cost)
get_test_property(${name} LABELS labels)
if(NOT ${labels} STREQUAL "NOTFOUND")
set(labels "${tool} ${labels}")
else()
set(labels "${tool}")
endif()
set_tests_properties("${name}" PROPERTIES LABELS ${labels})
set_tests_properties("${name}" PROPERTIES COST ${cost})
endmacro()

# fetch ${build} using the fetch.sh script
Expand Down
314 changes: 314 additions & 0 deletions tests/rpm-pkgs/cost.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
import sys
packages=dict([
('usbutils-014-1.fc35', '64.0'),
('hostname-3.23-5.fc35', '66.0'),
('libaio-0.3.111-12.fc35', '66.0'),
('libpwquality-1.4.4-6.fc35', '66.0'),
('libutempter-1.2.1-5.fc35', '66.0'),
('python-dmidecode-3.12.2-25.fc35', '66.0'),
('traceroute-2.1.0-14.fc35', '68.0'),
('initscripts-10.11-1.fc35', '71.0'),
('libcap-2.48-3.fc35', '71.0'),
('glib-networking-2.70.0-1.fc35', '72.0'),
('libestr-0.1.11-2.fc35', '72.0'),
('libmnl-1.0.4-14.fc35', '73.0'),
('microcode_ctl-2.1-47.fc35', '73.0'),
('python-iniparse-0.4-45.fc35', '73.0'),
('which-2.21-27.fc35', '73.0'),
('iputils-20210722-1.fc35', '74.0'),
('libeconf-0.4.0-2.fc35', '74.0'),
('memstrack-0.2.3-2.fc35', '74.0'),
('sos-4.2-1.fc35', '74.0'),
('bubblewrap-0.5.0-1.fc35', '75.0'),
('libgusb-0.3.7-2.fc35', '75.0'),
('sgml-common-0.6.3-57.fc35', '75.0'),
('libatasmart-0.19-21.fc35', '76.0'),
('passwd-0.80-11.fc35', '76.0'),
('python-ethtool-0.15-1.fc35', '76.0'),
('less-590-1.fc35', '77.0'),
('libnfnetlink-1.0.1-20.fc35', '77.0'),
('pciutils-3.7.0-4.fc35', '77.0'),
('attr-2.5.1-3.fc35', '78.0'),
('npth-1.6-7.fc35', '78.0'),
('os-prober-1.77-8.fc35', '78.0'),
('polkit-pkla-compat-0.1-20.fc35', '78.0'),
('python-six-1.16.0-4.fc35', '78.0'),
('setup-2.13.9.1-2.fc35', '78.0'),
('libjaylink-0.2.0-3.fc35', '79.0'),
('zchunk-1.1.15-2.fc35', '79.0'),
('gsettings-desktop-schemas-41.0-1.fc35', '80.0'),
('grubby-8.40-55.fc35', '80.0'),
('libcap-ng-0.8.2-6.fc35', '80.0'),
('lsof-4.94.0-2.fc35', '80.0'),
('lz4-1.9.3-3.fc35', '81.0'),
('mdadm-4.2-rc2.fc35', '81.0'),
('pigz-2.5-2.fc35', '81.0'),
('acpid-2.0.32-7.fc35', '82.0'),
('keyutils-1.6.1-3.fc35', '82.0'),
('libjcat-0.1.8-2.fc35', '82.0'),
('mokutil-0.4.0-6.fc35', '82.0'),
('libbytesize-2.6-2.fc35', '83.0'),
('libndp-1.8-2.fc35', '83.0'),
('zlib-1.2.11-30.fc35', '83.0'),
('lmdb-0.9.29-2.fc35', '84.0'),
('mlocate-0.26-31.fc35', '84.0'),
('sysfsutils-2.1.1-2.fc35', '84.0'),
('xkeyboard-config-2.33-2.fc35', '84.0'),
('dosfstools-4.2-2.fc35', '85.0'),
('execstack-0.5.0-21.fc35', '85.0'),
('kmod-29-4.fc35', '85.0'),
('libxkbcommon-1.3.1-1.fc35', '85.0'),
('readline-8.1-3.fc35', '85.0'),
('vsftpd-3.0.3-45.fc35', '85.0'),
('at-3.2.2-2.fc35', '86.0'),
('bzip2-1.0.8-9.fc35', '86.0'),
('json-glib-1.6.6-1.fc35', '86.0'),
('libassuan-2.5.5-3.fc35', '86.0'),
('librhsm-0.0.3-5.fc35', '86.0'),
('libverto-0.3.2-2.fc35', '86.0'),
('netlabel_tools-0.30.0-12.fc35', '86.0'),
('virt-what-1.21-2.fc35', '86.0'),
('dracut-055-5.fc35', '87.0'),
('flashrom-1.2-7.fc35', '87.0'),
('fuse-2.9.9-13.fc35', '87.0'),
('libksba-1.6.0-2.fc35', '87.0'),
('libgudev-237-1.fc35', '87.0'),
('libnetfilter_conntrack-1.0.8-3.fc35', '87.0'),
('tmux-3.2a-2.fc35', '87.0'),
('libsecret-0.20.4-3.fc35', '88.0'),
('popt-1.18-6.fc35', '88.0'),
('psmisc-23.4-2.fc35', '88.0'),
('pygobject3-3.42.0-1.fc35', '88.0'),
('tzdata-2021b-1.fc35', '88.0'),
('acl-2.3.1-2.fc35', '89.0'),
('chkconfig-1.19-1.fc35', '89.0'),
('libfido2-1.8.0-1.fc35', '89.0'),
('gcab-1.4-5.fc35', '90.0'),
('hwdata-0.351-1.fc35', '90.0'),
('libfastjson-0.99.9-2.fc35', '90.0'),
('libxmlb-0.3.2-2.fc35', '90.0'),
('libyaml-0.2.5-6.fc35', '90.0'),
('ima-evm-utils-1.3.2-3.fc35', '91.0'),
('libftdi-1.5-2.fc35', '91.0'),
('libgpg-error-1.42-3.fc35', '91.0'),
('scrub-2.6.1-3.fc35', '91.0'),
('usermode-1.114-3.fc35', '91.0'),
('atk-2.36.0-4.fc35', '92.0'),
('dmidecode-3.3-2.fc35', '92.0'),
('json-c-0.15-2.fc35', '92.0'),
('libmetalink-0.1.3-15.fc35', '92.0'),
('microdnf-3.8.0-2.fc35', '93.0'),
('autofs-5.1.7-20.fc35', '94.0'),
('c-ares-1.17.2-1.fc35', '94.0'),
('device-mapper-multipath-0.8.6-5.fc35', '94.0'),
('jansson-2.13.1-3.fc35', '94.0'),
('libpcap-1.10.1-2.fc35', '94.0'),
('aide-0.16-18.fc35', '95.0'),
('cronie-1.5.7-3.fc35', '95.0'),
('compat-readline5-5.2-40.fc35', '95.0'),
('efi-rpm-macros-5-4.fc35', '95.0'),
('gdbm-1.20-2.fc35', '95.0'),
('gpm-1.20.7-28.fc35', '95.0'),
('ipset-7.15-1.fc35', '95.0'),
('libpsl-0.21.1-4.fc35', '95.0'),
('libusbx-1.0.24-3.fc35', '95.0'),
('fapolicyd-1.0.3-3.fc35', '96.0'),
('irqbalance-1.7.0-8.fc35', '96.0'),
('libedit-3.1-40.20210910cvs.fc35', '96.0'),
('libsigsegv-2.13-3.fc35', '96.0'),
('make-4.3-6.fc35', '96.0'),
('dbus-glib-0.112-2.fc35', '97.0'),
('libnftnl-1.2.0-2.fc35', '97.0'),
('subscription-manager-1.29.18-2.fc35', '97.0'),
('argon2-20171227-7.fc35', '98.0'),
('cracklib-2.9.6-27.fc35', '98.0'),
('libcbor-0.7.0-4.fc35', '98.0'),
('libproxy-0.4.17-3.fc35', '98.0'),
('file-5.40-9.fc35', '99.0'),
('libmaxminddb-1.5.2-2.fc35', '99.0'),
('openssl-pkcs11-0.4.11-4.fc35', '99.0'),
('volume_key-0.3.12-14.fc35', '99.0'),
('dbus-broker-29-4.fc35', '100.0'),
('tcpdump-4.99.1-2.fc35', '100.0'),
('python-slip-0.6.4-25.fc35', '101.0'),
('libnsl2-1.3.0-4.fc35', '102.0'),
('iptables-1.8.7-13.fc35', '103.0'),
('quota-4.06-6.fc35', '103.0'),
('cryptsetup-2.4.1-1.fc35', '104.0'),
('man-pages-5.12-2.fc35', '104.0'),
('python-inotify-0.9.6-25.fc35', '104.0'),
('smartmontools-7.2-8.fc35', '104.0'),
('trousers-0.3.15-4.fc35', '104.0'),
('sscg-3.0.0-1.fc35', '105.0'),
('gzip-1.10-5.fc35', '106.0'),
('nftables-1.0.0-1.fc35', '106.0'),
('efivar-37-17.fc35', '107.0'),
('libtirpc-1.3.2-1.fc35', '107.0'),
('gdisk-1.0.8-2.fc35', '108.0'),
('shared-mime-info-2.1-3.fc35', '108.0'),
('gobject-introspection-1.70.0-1.fc35', '109.0'),
('python-decorator-5.0.9-3.fc35', '109.0'),
('xz-5.2.5-7.fc35', '111.0'),
('policycoreutils-3.2-6.fc35', '112.0'),
('procps-ng-3.3.17-3.fc35', '112.0'),
('crontabs-1.11-25.20190603git.fc35', '113.0'),
('libsolv-0.7.19-3.fc35', '113.0'),
('libtasn1-4.16.0-6.fc35', '113.0'),
('nfs-utils-2.5.4-2.rc3.fc35', '113.0'),
('libblockdev-2.26-1.fc35', '114.0'),
('tss2-1.6.0-2.fc35', '114.0'),
('fonts-rpm-macros-2.0.5-6.fc35', '115.0'),
('libevent-2.1.12-4.fc35', '115.0'),
('numactl-2.0.14-4.fc35', '115.0'),
('ding-libs-0.6.1-48.fc35', '116.0'),
('libpipeline-1.5.3-3.fc35', '116.0'),
('qrencode-4.0.2-8.fc35', '116.0'),
('tpm2-tss-3.1.0-3.fc35', '116.0'),
('expat-2.4.1-2.fc35', '117.0'),
('libtevent-0.11.0-1.fc35', '117.0'),
('lua-5.4.3-2.fc35', '117.0'),
('basesystem-11-12.fc35', '118.0'),
('python-dateutil-2.8.1-7.fc35', '118.0'),
('firewalld-1.0.1-2.fc35', '119.0'),
('gc-8.0.4-6.fc35', '119.0'),
('libsoup-2.74.0-1.fc35', '119.0'),
('pcre-8.45-1.fc35', '119.0'),
('cyrus-sasl-2.1.27-13.fc35', '120.0'),
('publicsuffix-list-20210518-2.fc35', '120.0'),
('pinentry-1.2.0-1.fc35', '120.0'),
('python-pip-21.2.3-2.fc35', '120.0'),
('brotli-1.0.9-6.fc35', '121.0'),
('filesystem-3.14-7.fc35', '121.0'),
('protobuf-c-1.4.0-1.fc35', '121.0'),
('libreswan-4.5-1.fc35', '122.0'),
('logrotate-3.18.1-2.fc35', '122.0'),
('libidn2-2.3.2-3.fc35', '123.0'),
('libxslt-1.1.34-6.fc35', '125.0'),
('mpfr-4.1.0-8.fc35', '125.0'),
('nginx-1.20.1-6.fc35', '128.0'),
('pcre2-10.37-4.fc35', '130.0'),
('texinfo-6.8-2.fc35', '131.0'),
('bluez-5.61-1.fc35', '132.0'),
('libsmbios-2.4.3-4.fc35', '132.0'),
('augeas-1.12.1-0.2.git18558bb.fc35', '133.0'),
('libtalloc-2.3.3-2.fc35', '133.0'),
('nghttp2-1.45.1-1.fc35', '133.0'),
('stunnel-5.58-2.fc35', '133.0'),
('nettle-3.7.3-2.fc35', '134.0'),
('dbus-python-1.2.18-2.fc35', '135.0'),
('iproute-5.13.0-2.fc35', '135.0'),
('cockpit-254-1.fc35', '136.0'),
('freerdp-2.4.0-1.fc35', '136.0'),
('audit-3.0.6-1.fc35', '140.0'),
('libmodulemd-2.13.0-3.fc35', '140.0'),
('unbound-1.13.2-1.fc35', '142.0'),
('langpacks-3.0-15.fc35', '143.0'),
('libtdb-1.4.4-3.fc35', '145.0'),
('kbd-2.4.0-8.fc35', '148.0'),
('anaconda-35.22.2-3.fc35', '152.0'),
('ca-certificates-2021.2.50-3.fc35', '152.0'),
('polkit-0.118-3.fc35', '154.0'),
('postfix-3.6.2-5.fc35', '156.0'),
('rpm-4.17.0-1.fc35', '156.0'),
('libunistring-0.9.10-14.fc35', '157.0'),
('sendmail-8.17.1-1.fc35', '157.0'),
('dbus-1.12.20-5.fc35', '160.0'),
('libxcrypt-4.4.26-4.fc35', '160.0'),
('cpio-2.13-11.fc35', '161.0'),
('xfsprogs-5.12.0-2.fc35', '162.0'),
('httpd-2.4.51-2.fc35', '164.0'),
('groff-1.22.4-8.fc35', '167.0'),
('lvm2-2.03.11-6.fc35', '168.0'),
('openssh-8.7p1-2.fc35', '168.0'),
('setools-4.4.0-3.fc35', '168.0'),
('device-mapper-persistent-data-0.9.0-6.fc35', '173.0'),
('libuser-0.63-7.fc35', '174.0'),
('sed-4.8-8.fc35', '174.0'),
('authselect-1.2.4-2.fc35', '176.0'),
('libxml2-2.9.12-6.fc35', '176.0'),
('libffi-3.1-29.fc35', '178.0'),
('openscap-1.3.5-6.fc35', '179.0'),
('rdma-core-37.0-1.fc35', '182.0'),
('rsync-3.2.3-8.fc35', '182.0'),
('diffutils-3.8-1.fc35', '183.0'),
('shadow-utils-4.9-3.fc35', '184.0'),
('libpng-1.6.37-11.fc35', '186.0'),
('m4-1.4.19-2.fc35', '188.0'),
('libnl3-3.5.0-8.fc35', '194.0'),
('pykickstart-3.34-2.fc35', '194.0'),
('rootfiles-8.1-30.fc35', '194.0'),
('libgcrypt-1.9.4-1.fc35', '195.0'),
('fwupd-1.6.4-1.fc35', '197.0'),
('gpgme-1.15.1-4.fc35', '197.0'),
('gawk-5.1.0-4.fc35', '198.0'),
('parted-3.4-6.fc35', '202.0'),
('openldap-2.4.59-3.fc35', '205.0'),
('rsyslog-8.2102.0-4.fc35', '212.0'),
('elfutils-0.185-5.fc35', '215.0'),
('gmp-6.2.0-7.fc35', '216.0'),
('findutils-4.8.0-4.fc35', '217.0'),
('nmap-7.91-8.fc35', '219.0'),
('man-db-2.9.4-2.fc35', '234.0'),
('ldns-1.7.1-8.fc35', '237.0'),
('bash-5.1.8-2.fc35', '240.0'),
('util-linux-2.37.2-1.fc35', '244.0'),
('chrony-4.1-3.fc35', '248.0'),
('gnupg2-2.3.2-2.fc35', '248.0'),
('grep-3.6-4.fc35', '248.0'),
('libreport-2.15.2-6.fc35', '255.0'),
('wget-1.21.1-4.fc35', '255.0'),
('sudo-1.9.7p2-2.fc35', '257.0'),
('libldb-2.4.0-2.fc35', '260.0'),
('systemtap-4.6~pre16262021g84ef6bd9-3.fc35', '262.0'),
('pam-1.5.2-5.fc35', '267.0'),
('libqb-2.0.3-2.fc35', '277.0'),
('usbguard-1.0.0-6.fc35', '291.0'),
('vim-8.2.3404-1.fc35', '310.0'),
('libarchive-3.5.2-2.fc35', '314.0'),
('p11-kit-0.23.22-4.fc35', '324.0'),
('ncurses-6.2-8.20210508.fc35', '328.0'),
('grub2-2.06-6.fc35', '336.0'),
('udisks2-2.9.3-1.fc35', '343.0'),
('crypto-policies-20210819-1.gitd0fdcfb.fc35', '344.0'),
('python-setuptools-57.4.0-1.fc35', '357.0'),
('tar-1.34-2.fc35', '358.0'),
('autogen-5.18.16-9.fc35', '369.0'),
('libseccomp-2.5.0-5.fc35', '383.0'),
('icu-69.1-2.fc35', '395.0'),
('glib2-2.70.0-5.fc35', '413.0'),
('krb5-1.19.2-2.fc35', '424.0'),
('dhcp-4.4.2-16.b1.fc35', '441.0'),
('libssh-0.9.6-1.fc35', '475.0'),
('selinux-policy-35.3-1.20211019git94970fc.fc35', '510.0'),
('openssl-1.1.1l-2.fc35', '523.0'),
('sssd-2.5.2-5.fc35', '542.0'),
('coreutils-8.32-31.fc35', '544.0'),
('systemd-249.4-2.fc35', '572.0'),
('libvirt-7.6.0-3.fc35', '577.0'),
('gnutls-3.7.2-2.fc35', '581.0'),
('libdb-5.3.28-50.fc35', '603.0'),
('gdb-10.2-9.fc35', '628.0'),
('gettext-0.21-8.fc35', '729.0'),
('zstd-1.5.0-2.fc35', '747.0'),
('libkcapi-1.3.1-3.fc35', '820.0'),
('scap-security-guide-0.1.57-1.fc35', '834.0'),
('perl-5.34.0-481.fc35', '928.0'),
('linux-firmware-20210919-125.fc35', '1024.0'),
('sqlite-3.36.0-3.fc35', '1062.0'),
('NetworkManager-1.32.12-1.fc35', '1235.0'),
('samba-4.15.0-13.fc35', '1242.0'),
('glibc-2.34-7.fc35', '1508.0'),
('binutils-2.37-10.fc35', '1676.0'),
('mozjs78-78.15.0-1.fc35', '1738.0'),
('python3.9-3.9.7-1.fc35', '1788.0'),
('protobuf-3.14.0-6.fc35', '1883.0'),
('e2fsprogs-1.46.3-1.fc35', '2003.0'),
('curl-7.78.0-3.fc35', '2234.0'),
('kernel-5.14.10-300.fc35', '3182.0'),
('nss-3.71.0-1.fc35', '11278.0'),
('firefox-93.0-2.fc35', '16035.0'),
('gcc-11.2.1-1.fc35', '47358.0')
])

package=sys.argv[1].split('@')[0]
print(0 if package not in packages else 30000-int(float(packages[package])), end='')

0 comments on commit 4bb8729

Please sign in to comment.