| 1 | package Arepa::Builder::Test; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use Cwd; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use File::Basename; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use Arepa; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use base qw(Arepa::Builder); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 1 | our $last_build_log = undef; | |||||||||
| 15 | 2 | ▶ | sub last_build_log { | ||||||||
|
Subroutine
last_build_log: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 16 | 2 | return $last_build_log; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub do_init { | ||||||||
|
Subroutine
do_init: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 20 | 0 | my ($self, $builder) = @_; | |||||||||
| 21 | 0 | return 1; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 0 | ▶ | sub do_compile_package_from_dsc { | ||||||||
|
Subroutine
do_compile_package_from_dsc: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 25 | 0 | my ($self, $dsc_file, %user_opts) = @_; | |||||||||
| 26 | 0 | my %opts = (output_dir => '.', %user_opts); | |||||||||
| 27 | |||||||||||
| 28 | 0 | my $basename = basename($dsc_file); | |||||||||
| 29 | 0 | $basename =~ s/\.dsc$//go; | |||||||||
| 30 | 0 | ▶ | my $extra_version = $opts{bin_nmu} ? "+b1" : ""; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | 0 | my $package_file_name = "$basename$extra_version\_all.deb"; | |||||||||
| 32 | 0 | open F, ">$opts{output_dir}/$package_file_name"; | |||||||||
| 33 | 0 | print F "Fake contents of the package\n"; | |||||||||
| 34 | 0 | close F; | |||||||||
| 35 | 0 | $last_build_log = "Building $package_file_name. Not.\n"; | |||||||||
| 36 | 0 | return 1; | |||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | 2 | ▶ | sub do_compile_package_from_repository { | ||||||||
|
Subroutine
do_compile_package_from_repository: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 40 | 2 | my ($self, $package, $version, %user_opts) = @_; | |||||||||
| 41 | 2 | my %opts = (output_dir => '.', %user_opts); | |||||||||
| 42 | |||||||||||
| 43 | 2 | ▶ | my $extra_version = $opts{bin_nmu} ? "+b1" : ""; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 44 | 2 | my $package_file_name = "$package\_$version$extra_version\_all.deb"; | |||||||||
| 45 | 2 | open F, ">$opts{output_dir}/$package_file_name"; | |||||||||
| 46 | 2 | print F "Fake contents of the package\n"; | |||||||||
| 47 | 2 | close F; | |||||||||
| 48 | 2 | $last_build_log = "Building $package_file_name. Not.\n"; | |||||||||
| 49 | 2 | return 1; | |||||||||
| 50 | } | ||||||||||
| 51 | |||||||||||
| 52 | 0 | ▶ | sub do_create { | ||||||||
|
Subroutine
do_create: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 53 | 0 | my ($self, $builder_dir, $mirror, $distribution) = @_; | |||||||||
| 54 | 0 | return 1; | |||||||||
| 55 | } | ||||||||||
| 56 | |||||||||||
| 57 | 1 | 1; | |||||||||
| 58 | |||||||||||
| 59 | __END__ | ||||||||||