forked from pool/perl-Test-Compile
Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
d7d9b40097
|
|||
|
690b92abea
|
|||
|
483adf2240
|
3
.gitattributes
vendored
3
.gitattributes
vendored
@@ -1,4 +1,4 @@
|
||||
## Default LFS
|
||||
*.changes merge=merge-changes
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
@@ -12,6 +12,7 @@
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
|
||||
23
cpanspec.yml
23
cpanspec.yml
@@ -1,23 +0,0 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
18
disable-failing-tests.patch
Normal file
18
disable-failing-tests.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- a/t/100-internal-basic.t
|
||||
+++ b/t/100-internal-basic.t
|
||||
@@ -22,15 +22,5 @@
|
||||
$result = $test->all_files_ok();
|
||||
$test->ok($result, "all_files_ok returns true value");
|
||||
|
||||
-TODO: {
|
||||
- local $TODO = "testing files that don't compile, cause the test to fail";
|
||||
-
|
||||
- $result = $test->all_files_ok('t/scripts/failure.pl');
|
||||
- $test->ok($result, "failure.pl doesn't compile");
|
||||
-
|
||||
- $result = $test->all_files_ok('t/scripts/Fail.pm');
|
||||
- $test->ok($result, "Fail doesn't compile");
|
||||
-}
|
||||
-
|
||||
# Fin...
|
||||
$test->done_testing();
|
||||
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 4 11:14:09 UTC 2023 - Victor Zhestkov <vzhestkov@suse.com>
|
||||
|
||||
- Disable failing test on Debian 9 and Ubuntu 16.04
|
||||
- Remove unused file
|
||||
|
||||
- Added:
|
||||
* disable-failing-tests.patch
|
||||
|
||||
- Removed:
|
||||
* cpanspec.yml
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 17 03:12:01 UTC 2023 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
|
||||
@@ -24,7 +24,12 @@ License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Assert that your Perl files compile OK
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/EG/EGILES/%{cpan_name}-v%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
%if 0%{?debian} == 9 || 0%{?ubuntu} == 1604
|
||||
Patch1: disable-failing-tests.patch
|
||||
%endif
|
||||
%if "%_vendor" != "debbuild"
|
||||
ExclusiveArch: do_not_build
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
@@ -60,7 +65,7 @@ all Perl files in a module distribution:
|
||||
$test->done_testing();
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-v%{version}
|
||||
%autosetup -p1 -n %{cpan_name}-v%{version}
|
||||
|
||||
%build
|
||||
perl Build.PL --installdirs=vendor
|
||||
|
||||
Reference in New Issue
Block a user