diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2022-08-31 16:35:20 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2022-12-10 14:15:07 +0100 |
commit | d7d5ae0fb6aaf0f1de33eccd7749474f623ae205 (patch) | |
tree | f1f2f080540ccf4dae92bfc58862d2629687152d | |
parent | 6cf1685b5e5fb5b0dc51f166187606f65ab75867 (diff) | |
download | urpmi-d7d5ae0fb6aaf0f1de33eccd7749474f623ae205.tar urpmi-d7d5ae0fb6aaf0f1de33eccd7749474f623ae205.tar.gz urpmi-d7d5ae0fb6aaf0f1de33eccd7749474f623ae205.tar.bz2 urpmi-d7d5ae0fb6aaf0f1de33eccd7749474f623ae205.tar.xz urpmi-d7d5ae0fb6aaf0f1de33eccd7749474f623ae205.zip |
WIP: shortcut
Only build updated kernel pkgs for faster kernel ophan testing
-rw-r--r-- | t/02create_pkgs.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t index 7bd625f3..315c03fd 100644 --- a/t/02create_pkgs.t +++ b/t/02create_pkgs.t @@ -9,6 +9,8 @@ use Cwd; set_path(); +my $shortcut = 1; + # fix bundled genhdlist2 & co to use the right perl on CPAN smokers: system($^X, '-pi', '-e', qq(s@^#!/usr/bin/perl.*@#!$^X@), $_) foreach qw(gendistrib genhdlist2); @@ -40,12 +42,14 @@ is($first, "Usage:", "genhdlist2 --help works"); # locally build test rpms -foreach my $dir (grep { -d $_ } glob("data/SPECS/*")) { +foreach my $dir (grep { -d $_ } glob("data/SPECS/kernel*")) { my ($medium_name) = $dir =~ m!([^/]*)$!; next if $medium_name eq 'suggests' && !are_weak_deps_supported(); + next if $shortcut && -d "media/$medium_name"; rpmbuild($_, $medium_name) foreach glob("$dir/*.spec"); genhdlist_std($medium_name); } +exit 0; foreach my $spec (glob("data/SPECS/*.spec")) { warn "SKIPPING /rpm-query-in-scriptlet/" if $spec =~ /rpm-query-in-scriptlet/ && $is_bsd; |